OLD | NEW |
| 1 // This is a generated file (see the discoveryapis_generator project). |
| 2 |
1 library googleapis_beta.replicapoolupdater.v1beta1; | 3 library googleapis_beta.replicapoolupdater.v1beta1; |
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 replicapoolupdater/v1beta1'; |
15 | 18 |
16 /** | 19 /** |
17 * The Google Compute Engine Instance Group Updater API provides services for | 20 * The Google Compute Engine Instance Group Updater API provides services for |
18 * updating groups of Compute Engine Instances. | 21 * updating groups of Compute Engine Instances. |
19 */ | 22 */ |
20 class ReplicapoolupdaterApi { | 23 class ReplicapoolupdaterApi { |
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 replica pools */ | 27 /** View and manage replica pools */ |
25 static const ReplicapoolScope = "https://www.googleapis.com/auth/replicapool"; | 28 static const ReplicapoolScope = "https://www.googleapis.com/auth/replicapool"; |
26 | 29 |
27 /** View replica pools */ | 30 /** View replica pools */ |
28 static const ReplicapoolReadonlyScope = "https://www.googleapis.com/auth/repli
capool.readonly"; | 31 static const ReplicapoolReadonlyScope = "https://www.googleapis.com/auth/repli
capool.readonly"; |
29 | 32 |
30 | 33 |
31 final common_internal.ApiRequester _requester; | 34 final commons.ApiRequester _requester; |
32 | 35 |
33 RollingUpdatesResourceApi get rollingUpdates => new RollingUpdatesResourceApi(
_requester); | 36 RollingUpdatesResourceApi get rollingUpdates => new RollingUpdatesResourceApi(
_requester); |
34 ZoneOperationsResourceApi get zoneOperations => new ZoneOperationsResourceApi(
_requester); | 37 ZoneOperationsResourceApi get zoneOperations => new ZoneOperationsResourceApi(
_requester); |
35 | 38 |
36 ReplicapoolupdaterApi(http.Client client, {core.String rootUrl: "https://www.g
oogleapis.com/", core.String servicePath: "replicapoolupdater/v1beta1/projects/"
}) : | 39 ReplicapoolupdaterApi(http.Client client, {core.String rootUrl: "https://www.g
oogleapis.com/", core.String servicePath: "replicapoolupdater/v1beta1/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 RollingUpdatesResourceApi { | 44 class RollingUpdatesResourceApi { |
43 final common_internal.ApiRequester _requester; | 45 final commons.ApiRequester _requester; |
44 | 46 |
45 RollingUpdatesResourceApi(common_internal.ApiRequester client) : | 47 RollingUpdatesResourceApi(commons.ApiRequester client) : |
46 _requester = client; | 48 _requester = client; |
47 | 49 |
48 /** | 50 /** |
49 * Cancels an update. The update must be PAUSED before it can be cancelled. | 51 * Cancels an update. The update must be PAUSED before it can be cancelled. |
50 * This has no effect if the update is already CANCELLED. | 52 * This has no effect if the update is already CANCELLED. |
51 * | 53 * |
52 * Request parameters: | 54 * Request parameters: |
53 * | 55 * |
54 * [project] - The Google Developers Console project name. | 56 * [project] - The Google Developers Console project name. |
55 * Value must have pattern | 57 * Value must have pattern |
56 * "(?:(?:[-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])?))". | 58 * "(?:(?:[-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])?))". |
57 * | 59 * |
58 * [zone] - The name of the zone in which the update's target resides. | 60 * [zone] - The name of the zone in which the update's target resides. |
59 * | 61 * |
60 * [rollingUpdate] - The name of the update. | 62 * [rollingUpdate] - The name of the update. |
61 * | 63 * |
62 * Completes with a [Operation]. | 64 * Completes with a [Operation]. |
63 * | 65 * |
64 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 66 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
65 * error. | 67 * error. |
66 * | 68 * |
67 * If the used [http.Client] completes with an error when making a REST call, | 69 * If the used [http.Client] completes with an error when making a REST call, |
68 * this method will complete with the same error. | 70 * this method will complete with the same error. |
69 */ | 71 */ |
70 async.Future<Operation> cancel(core.String project, core.String zone, core.Str
ing rollingUpdate) { | 72 async.Future<Operation> cancel(core.String project, core.String zone, core.Str
ing rollingUpdate) { |
71 var _url = null; | 73 var _url = null; |
72 var _queryParams = new core.Map(); | 74 var _queryParams = new core.Map(); |
73 var _uploadMedia = null; | 75 var _uploadMedia = null; |
74 var _uploadOptions = null; | 76 var _uploadOptions = null; |
75 var _downloadOptions = common.DownloadOptions.Metadata; | 77 var _downloadOptions = commons.DownloadOptions.Metadata; |
76 var _body = null; | 78 var _body = null; |
77 | 79 |
78 if (project == null) { | 80 if (project == null) { |
79 throw new core.ArgumentError("Parameter project is required."); | 81 throw new core.ArgumentError("Parameter project is required."); |
80 } | 82 } |
81 if (zone == null) { | 83 if (zone == null) { |
82 throw new core.ArgumentError("Parameter zone is required."); | 84 throw new core.ArgumentError("Parameter zone is required."); |
83 } | 85 } |
84 if (rollingUpdate == null) { | 86 if (rollingUpdate == null) { |
85 throw new core.ArgumentError("Parameter rollingUpdate is required."); | 87 throw new core.ArgumentError("Parameter rollingUpdate is required."); |
86 } | 88 } |
87 | 89 |
88 | 90 |
89 _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + commo
n_internal.Escaper.ecapeVariable('$zone') + '/rollingUpdates/' + common_internal
.Escaper.ecapeVariable('$rollingUpdate') + '/cancel'; | 91 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap
er.ecapeVariable('$zone') + '/rollingUpdates/' + commons.Escaper.ecapeVariable('
$rollingUpdate') + '/cancel'; |
90 | 92 |
91 var _response = _requester.request(_url, | 93 var _response = _requester.request(_url, |
92 "POST", | 94 "POST", |
93 body: _body, | 95 body: _body, |
94 queryParams: _queryParams, | 96 queryParams: _queryParams, |
95 uploadOptions: _uploadOptions, | 97 uploadOptions: _uploadOptions, |
96 uploadMedia: _uploadMedia, | 98 uploadMedia: _uploadMedia, |
97 downloadOptions: _downloadOptions); | 99 downloadOptions: _downloadOptions); |
98 return _response.then((data) => new Operation.fromJson(data)); | 100 return _response.then((data) => new Operation.fromJson(data)); |
99 } | 101 } |
100 | 102 |
101 /** | 103 /** |
102 * Returns information about an update. | 104 * Returns information about an update. |
103 * | 105 * |
104 * Request parameters: | 106 * Request parameters: |
105 * | 107 * |
106 * [project] - The Google Developers Console project name. | 108 * [project] - The Google Developers Console project name. |
107 * Value must have pattern | 109 * Value must have pattern |
108 * "(?:(?:[-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])?))". | 110 * "(?:(?:[-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])?))". |
109 * | 111 * |
110 * [zone] - The name of the zone in which the update's target resides. | 112 * [zone] - The name of the zone in which the update's target resides. |
111 * | 113 * |
112 * [rollingUpdate] - The name of the update. | 114 * [rollingUpdate] - The name of the update. |
113 * | 115 * |
114 * Completes with a [RollingUpdate]. | 116 * Completes with a [RollingUpdate]. |
115 * | 117 * |
116 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 118 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
117 * error. | 119 * error. |
118 * | 120 * |
119 * If the used [http.Client] completes with an error when making a REST call, | 121 * If the used [http.Client] completes with an error when making a REST call, |
120 * this method will complete with the same error. | 122 * this method will complete with the same error. |
121 */ | 123 */ |
122 async.Future<RollingUpdate> get(core.String project, core.String zone, core.St
ring rollingUpdate) { | 124 async.Future<RollingUpdate> get(core.String project, core.String zone, core.St
ring rollingUpdate) { |
123 var _url = null; | 125 var _url = null; |
124 var _queryParams = new core.Map(); | 126 var _queryParams = new core.Map(); |
125 var _uploadMedia = null; | 127 var _uploadMedia = null; |
126 var _uploadOptions = null; | 128 var _uploadOptions = null; |
127 var _downloadOptions = common.DownloadOptions.Metadata; | 129 var _downloadOptions = commons.DownloadOptions.Metadata; |
128 var _body = null; | 130 var _body = null; |
129 | 131 |
130 if (project == null) { | 132 if (project == null) { |
131 throw new core.ArgumentError("Parameter project is required."); | 133 throw new core.ArgumentError("Parameter project is required."); |
132 } | 134 } |
133 if (zone == null) { | 135 if (zone == null) { |
134 throw new core.ArgumentError("Parameter zone is required."); | 136 throw new core.ArgumentError("Parameter zone is required."); |
135 } | 137 } |
136 if (rollingUpdate == null) { | 138 if (rollingUpdate == null) { |
137 throw new core.ArgumentError("Parameter rollingUpdate is required."); | 139 throw new core.ArgumentError("Parameter rollingUpdate is required."); |
138 } | 140 } |
139 | 141 |
140 | 142 |
141 _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + commo
n_internal.Escaper.ecapeVariable('$zone') + '/rollingUpdates/' + common_internal
.Escaper.ecapeVariable('$rollingUpdate'); | 143 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap
er.ecapeVariable('$zone') + '/rollingUpdates/' + commons.Escaper.ecapeVariable('
$rollingUpdate'); |
142 | 144 |
143 var _response = _requester.request(_url, | 145 var _response = _requester.request(_url, |
144 "GET", | 146 "GET", |
145 body: _body, | 147 body: _body, |
146 queryParams: _queryParams, | 148 queryParams: _queryParams, |
147 uploadOptions: _uploadOptions, | 149 uploadOptions: _uploadOptions, |
148 uploadMedia: _uploadMedia, | 150 uploadMedia: _uploadMedia, |
149 downloadOptions: _downloadOptions); | 151 downloadOptions: _downloadOptions); |
150 return _response.then((data) => new RollingUpdate.fromJson(data)); | 152 return _response.then((data) => new RollingUpdate.fromJson(data)); |
151 } | 153 } |
152 | 154 |
153 /** | 155 /** |
154 * Inserts and starts a new update. | 156 * Inserts and starts a new update. |
155 * | 157 * |
156 * [request] - The metadata request object. | 158 * [request] - The metadata request object. |
157 * | 159 * |
158 * Request parameters: | 160 * Request parameters: |
159 * | 161 * |
160 * [project] - The Google Developers Console project name. | 162 * [project] - The Google Developers Console project name. |
161 * Value must have pattern | 163 * Value must have pattern |
162 * "(?:(?:[-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])?))". | 164 * "(?:(?:[-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])?))". |
163 * | 165 * |
164 * [zone] - The name of the zone in which the update's target resides. | 166 * [zone] - The name of the zone in which the update's target resides. |
165 * | 167 * |
166 * Completes with a [Operation]. | 168 * Completes with a [Operation]. |
167 * | 169 * |
168 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 170 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
169 * error. | 171 * error. |
170 * | 172 * |
171 * If the used [http.Client] completes with an error when making a REST call, | 173 * If the used [http.Client] completes with an error when making a REST call, |
172 * this method will complete with the same error. | 174 * this method will complete with the same error. |
173 */ | 175 */ |
174 async.Future<Operation> insert(RollingUpdate request, core.String project, cor
e.String zone) { | 176 async.Future<Operation> insert(RollingUpdate request, core.String project, cor
e.String zone) { |
175 var _url = null; | 177 var _url = null; |
176 var _queryParams = new core.Map(); | 178 var _queryParams = new core.Map(); |
177 var _uploadMedia = null; | 179 var _uploadMedia = null; |
178 var _uploadOptions = null; | 180 var _uploadOptions = null; |
179 var _downloadOptions = common.DownloadOptions.Metadata; | 181 var _downloadOptions = commons.DownloadOptions.Metadata; |
180 var _body = null; | 182 var _body = null; |
181 | 183 |
182 if (request != null) { | 184 if (request != null) { |
183 _body = convert.JSON.encode((request).toJson()); | 185 _body = convert.JSON.encode((request).toJson()); |
184 } | 186 } |
185 if (project == null) { | 187 if (project == null) { |
186 throw new core.ArgumentError("Parameter project is required."); | 188 throw new core.ArgumentError("Parameter project is required."); |
187 } | 189 } |
188 if (zone == null) { | 190 if (zone == null) { |
189 throw new core.ArgumentError("Parameter zone is required."); | 191 throw new core.ArgumentError("Parameter zone is required."); |
190 } | 192 } |
191 | 193 |
192 | 194 |
193 _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + commo
n_internal.Escaper.ecapeVariable('$zone') + '/rollingUpdates'; | 195 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap
er.ecapeVariable('$zone') + '/rollingUpdates'; |
194 | 196 |
195 var _response = _requester.request(_url, | 197 var _response = _requester.request(_url, |
196 "POST", | 198 "POST", |
197 body: _body, | 199 body: _body, |
198 queryParams: _queryParams, | 200 queryParams: _queryParams, |
199 uploadOptions: _uploadOptions, | 201 uploadOptions: _uploadOptions, |
200 uploadMedia: _uploadMedia, | 202 uploadMedia: _uploadMedia, |
201 downloadOptions: _downloadOptions); | 203 downloadOptions: _downloadOptions); |
202 return _response.then((data) => new Operation.fromJson(data)); | 204 return _response.then((data) => new Operation.fromJson(data)); |
203 } | 205 } |
(...skipping 17 matching lines...) Expand all Loading... |
221 * | 223 * |
222 * [maxResults] - Optional. Maximum count of results to be returned. Maximum | 224 * [maxResults] - Optional. Maximum count of results to be returned. Maximum |
223 * value is 500 and default value is 500. | 225 * value is 500 and default value is 500. |
224 * Value must be between "0" and "500". | 226 * Value must be between "0" and "500". |
225 * | 227 * |
226 * [pageToken] - Optional. Tag returned by a previous list request truncated | 228 * [pageToken] - Optional. Tag returned by a previous list request truncated |
227 * by maxResults. Used to continue a previous list request. | 229 * by maxResults. Used to continue a previous list request. |
228 * | 230 * |
229 * Completes with a [RollingUpdateList]. | 231 * Completes with a [RollingUpdateList]. |
230 * | 232 * |
231 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 233 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
232 * error. | 234 * error. |
233 * | 235 * |
234 * If the used [http.Client] completes with an error when making a REST call, | 236 * If the used [http.Client] completes with an error when making a REST call, |
235 * this method will complete with the same error. | 237 * this method will complete with the same error. |
236 */ | 238 */ |
237 async.Future<RollingUpdateList> list(core.String project, core.String zone, {c
ore.String filter, core.String instanceGroupManager, core.int maxResults, core.S
tring pageToken}) { | 239 async.Future<RollingUpdateList> list(core.String project, core.String zone, {c
ore.String filter, core.String instanceGroupManager, core.int maxResults, core.S
tring pageToken}) { |
238 var _url = null; | 240 var _url = null; |
239 var _queryParams = new core.Map(); | 241 var _queryParams = new core.Map(); |
240 var _uploadMedia = null; | 242 var _uploadMedia = null; |
241 var _uploadOptions = null; | 243 var _uploadOptions = null; |
242 var _downloadOptions = common.DownloadOptions.Metadata; | 244 var _downloadOptions = commons.DownloadOptions.Metadata; |
243 var _body = null; | 245 var _body = null; |
244 | 246 |
245 if (project == null) { | 247 if (project == null) { |
246 throw new core.ArgumentError("Parameter project is required."); | 248 throw new core.ArgumentError("Parameter project is required."); |
247 } | 249 } |
248 if (zone == null) { | 250 if (zone == null) { |
249 throw new core.ArgumentError("Parameter zone is required."); | 251 throw new core.ArgumentError("Parameter zone is required."); |
250 } | 252 } |
251 if (filter != null) { | 253 if (filter != null) { |
252 _queryParams["filter"] = [filter]; | 254 _queryParams["filter"] = [filter]; |
253 } | 255 } |
254 if (instanceGroupManager != null) { | 256 if (instanceGroupManager != null) { |
255 _queryParams["instanceGroupManager"] = [instanceGroupManager]; | 257 _queryParams["instanceGroupManager"] = [instanceGroupManager]; |
256 } | 258 } |
257 if (maxResults != null) { | 259 if (maxResults != null) { |
258 _queryParams["maxResults"] = ["${maxResults}"]; | 260 _queryParams["maxResults"] = ["${maxResults}"]; |
259 } | 261 } |
260 if (pageToken != null) { | 262 if (pageToken != null) { |
261 _queryParams["pageToken"] = [pageToken]; | 263 _queryParams["pageToken"] = [pageToken]; |
262 } | 264 } |
263 | 265 |
264 | 266 |
265 _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + commo
n_internal.Escaper.ecapeVariable('$zone') + '/rollingUpdates'; | 267 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap
er.ecapeVariable('$zone') + '/rollingUpdates'; |
266 | 268 |
267 var _response = _requester.request(_url, | 269 var _response = _requester.request(_url, |
268 "GET", | 270 "GET", |
269 body: _body, | 271 body: _body, |
270 queryParams: _queryParams, | 272 queryParams: _queryParams, |
271 uploadOptions: _uploadOptions, | 273 uploadOptions: _uploadOptions, |
272 uploadMedia: _uploadMedia, | 274 uploadMedia: _uploadMedia, |
273 downloadOptions: _downloadOptions); | 275 downloadOptions: _downloadOptions); |
274 return _response.then((data) => new RollingUpdateList.fromJson(data)); | 276 return _response.then((data) => new RollingUpdateList.fromJson(data)); |
275 } | 277 } |
(...skipping 15 matching lines...) Expand all Loading... |
291 * | 293 * |
292 * [maxResults] - Optional. Maximum count of results to be returned. Maximum | 294 * [maxResults] - Optional. Maximum count of results to be returned. Maximum |
293 * value is 500 and default value is 500. | 295 * value is 500 and default value is 500. |
294 * Value must be between "0" and "500". | 296 * Value must be between "0" and "500". |
295 * | 297 * |
296 * [pageToken] - Optional. Tag returned by a previous list request truncated | 298 * [pageToken] - Optional. Tag returned by a previous list request truncated |
297 * by maxResults. Used to continue a previous list request. | 299 * by maxResults. Used to continue a previous list request. |
298 * | 300 * |
299 * Completes with a [InstanceUpdateList]. | 301 * Completes with a [InstanceUpdateList]. |
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<InstanceUpdateList> listInstanceUpdates(core.String project, core
.String zone, core.String rollingUpdate, {core.String filter, core.int maxResult
s, core.String pageToken}) { | 309 async.Future<InstanceUpdateList> listInstanceUpdates(core.String project, core
.String zone, core.String rollingUpdate, {core.String filter, core.int maxResult
s, core.String pageToken}) { |
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 (project == null) { | 317 if (project == null) { |
316 throw new core.ArgumentError("Parameter project is required."); | 318 throw new core.ArgumentError("Parameter project is required."); |
317 } | 319 } |
318 if (zone == null) { | 320 if (zone == null) { |
319 throw new core.ArgumentError("Parameter zone is required."); | 321 throw new core.ArgumentError("Parameter zone is required."); |
320 } | 322 } |
321 if (rollingUpdate == null) { | 323 if (rollingUpdate == null) { |
322 throw new core.ArgumentError("Parameter rollingUpdate is required."); | 324 throw new core.ArgumentError("Parameter rollingUpdate is required."); |
323 } | 325 } |
324 if (filter != null) { | 326 if (filter != null) { |
325 _queryParams["filter"] = [filter]; | 327 _queryParams["filter"] = [filter]; |
326 } | 328 } |
327 if (maxResults != null) { | 329 if (maxResults != null) { |
328 _queryParams["maxResults"] = ["${maxResults}"]; | 330 _queryParams["maxResults"] = ["${maxResults}"]; |
329 } | 331 } |
330 if (pageToken != null) { | 332 if (pageToken != null) { |
331 _queryParams["pageToken"] = [pageToken]; | 333 _queryParams["pageToken"] = [pageToken]; |
332 } | 334 } |
333 | 335 |
334 | 336 |
335 _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + commo
n_internal.Escaper.ecapeVariable('$zone') + '/rollingUpdates/' + common_internal
.Escaper.ecapeVariable('$rollingUpdate') + '/instanceUpdates'; | 337 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap
er.ecapeVariable('$zone') + '/rollingUpdates/' + commons.Escaper.ecapeVariable('
$rollingUpdate') + '/instanceUpdates'; |
336 | 338 |
337 var _response = _requester.request(_url, | 339 var _response = _requester.request(_url, |
338 "GET", | 340 "GET", |
339 body: _body, | 341 body: _body, |
340 queryParams: _queryParams, | 342 queryParams: _queryParams, |
341 uploadOptions: _uploadOptions, | 343 uploadOptions: _uploadOptions, |
342 uploadMedia: _uploadMedia, | 344 uploadMedia: _uploadMedia, |
343 downloadOptions: _downloadOptions); | 345 downloadOptions: _downloadOptions); |
344 return _response.then((data) => new InstanceUpdateList.fromJson(data)); | 346 return _response.then((data) => new InstanceUpdateList.fromJson(data)); |
345 } | 347 } |
346 | 348 |
347 /** | 349 /** |
348 * Pauses the update in state from ROLLING_FORWARD or ROLLING_BACK. Has no | 350 * Pauses the update in state from ROLLING_FORWARD or ROLLING_BACK. Has no |
349 * effect if invoked when the state of the update is PAUSED. | 351 * effect if invoked when the state of the update is PAUSED. |
350 * | 352 * |
351 * Request parameters: | 353 * Request parameters: |
352 * | 354 * |
353 * [project] - The Google Developers Console project name. | 355 * [project] - The Google Developers Console project name. |
354 * Value must have pattern | 356 * Value must have pattern |
355 * "(?:(?:[-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])?))". | 357 * "(?:(?:[-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])?))". |
356 * | 358 * |
357 * [zone] - The name of the zone in which the update's target resides. | 359 * [zone] - The name of the zone in which the update's target resides. |
358 * | 360 * |
359 * [rollingUpdate] - The name of the update. | 361 * [rollingUpdate] - The name of the update. |
360 * | 362 * |
361 * Completes with a [Operation]. | 363 * Completes with a [Operation]. |
362 * | 364 * |
363 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 365 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
364 * error. | 366 * error. |
365 * | 367 * |
366 * If the used [http.Client] completes with an error when making a REST call, | 368 * If the used [http.Client] completes with an error when making a REST call, |
367 * this method will complete with the same error. | 369 * this method will complete with the same error. |
368 */ | 370 */ |
369 async.Future<Operation> pause(core.String project, core.String zone, core.Stri
ng rollingUpdate) { | 371 async.Future<Operation> pause(core.String project, core.String zone, core.Stri
ng rollingUpdate) { |
370 var _url = null; | 372 var _url = null; |
371 var _queryParams = new core.Map(); | 373 var _queryParams = new core.Map(); |
372 var _uploadMedia = null; | 374 var _uploadMedia = null; |
373 var _uploadOptions = null; | 375 var _uploadOptions = null; |
374 var _downloadOptions = common.DownloadOptions.Metadata; | 376 var _downloadOptions = commons.DownloadOptions.Metadata; |
375 var _body = null; | 377 var _body = null; |
376 | 378 |
377 if (project == null) { | 379 if (project == null) { |
378 throw new core.ArgumentError("Parameter project is required."); | 380 throw new core.ArgumentError("Parameter project is required."); |
379 } | 381 } |
380 if (zone == null) { | 382 if (zone == null) { |
381 throw new core.ArgumentError("Parameter zone is required."); | 383 throw new core.ArgumentError("Parameter zone is required."); |
382 } | 384 } |
383 if (rollingUpdate == null) { | 385 if (rollingUpdate == null) { |
384 throw new core.ArgumentError("Parameter rollingUpdate is required."); | 386 throw new core.ArgumentError("Parameter rollingUpdate is required."); |
385 } | 387 } |
386 | 388 |
387 | 389 |
388 _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + commo
n_internal.Escaper.ecapeVariable('$zone') + '/rollingUpdates/' + common_internal
.Escaper.ecapeVariable('$rollingUpdate') + '/pause'; | 390 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap
er.ecapeVariable('$zone') + '/rollingUpdates/' + commons.Escaper.ecapeVariable('
$rollingUpdate') + '/pause'; |
389 | 391 |
390 var _response = _requester.request(_url, | 392 var _response = _requester.request(_url, |
391 "POST", | 393 "POST", |
392 body: _body, | 394 body: _body, |
393 queryParams: _queryParams, | 395 queryParams: _queryParams, |
394 uploadOptions: _uploadOptions, | 396 uploadOptions: _uploadOptions, |
395 uploadMedia: _uploadMedia, | 397 uploadMedia: _uploadMedia, |
396 downloadOptions: _downloadOptions); | 398 downloadOptions: _downloadOptions); |
397 return _response.then((data) => new Operation.fromJson(data)); | 399 return _response.then((data) => new Operation.fromJson(data)); |
398 } | 400 } |
399 | 401 |
400 /** | 402 /** |
401 * Continues an update in PAUSED state. Has no effect if invoked when the | 403 * Continues an update in PAUSED state. Has no effect if invoked when the |
402 * state of the update is ROLLED_OUT. | 404 * state of the update is ROLLED_OUT. |
403 * | 405 * |
404 * Request parameters: | 406 * Request parameters: |
405 * | 407 * |
406 * [project] - The Google Developers Console project name. | 408 * [project] - The Google Developers Console project name. |
407 * Value must have pattern | 409 * Value must have pattern |
408 * "(?:(?:[-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])?))". | 410 * "(?:(?:[-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])?))". |
409 * | 411 * |
410 * [zone] - The name of the zone in which the update's target resides. | 412 * [zone] - The name of the zone in which the update's target resides. |
411 * | 413 * |
412 * [rollingUpdate] - The name of the update. | 414 * [rollingUpdate] - The name of the update. |
413 * | 415 * |
414 * Completes with a [Operation]. | 416 * Completes with a [Operation]. |
415 * | 417 * |
416 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 418 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
417 * error. | 419 * error. |
418 * | 420 * |
419 * If the used [http.Client] completes with an error when making a REST call, | 421 * If the used [http.Client] completes with an error when making a REST call, |
420 * this method will complete with the same error. | 422 * this method will complete with the same error. |
421 */ | 423 */ |
422 async.Future<Operation> resume(core.String project, core.String zone, core.Str
ing rollingUpdate) { | 424 async.Future<Operation> resume(core.String project, core.String zone, core.Str
ing rollingUpdate) { |
423 var _url = null; | 425 var _url = null; |
424 var _queryParams = new core.Map(); | 426 var _queryParams = new core.Map(); |
425 var _uploadMedia = null; | 427 var _uploadMedia = null; |
426 var _uploadOptions = null; | 428 var _uploadOptions = null; |
427 var _downloadOptions = common.DownloadOptions.Metadata; | 429 var _downloadOptions = commons.DownloadOptions.Metadata; |
428 var _body = null; | 430 var _body = null; |
429 | 431 |
430 if (project == null) { | 432 if (project == null) { |
431 throw new core.ArgumentError("Parameter project is required."); | 433 throw new core.ArgumentError("Parameter project is required."); |
432 } | 434 } |
433 if (zone == null) { | 435 if (zone == null) { |
434 throw new core.ArgumentError("Parameter zone is required."); | 436 throw new core.ArgumentError("Parameter zone is required."); |
435 } | 437 } |
436 if (rollingUpdate == null) { | 438 if (rollingUpdate == null) { |
437 throw new core.ArgumentError("Parameter rollingUpdate is required."); | 439 throw new core.ArgumentError("Parameter rollingUpdate is required."); |
438 } | 440 } |
439 | 441 |
440 | 442 |
441 _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + commo
n_internal.Escaper.ecapeVariable('$zone') + '/rollingUpdates/' + common_internal
.Escaper.ecapeVariable('$rollingUpdate') + '/resume'; | 443 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap
er.ecapeVariable('$zone') + '/rollingUpdates/' + commons.Escaper.ecapeVariable('
$rollingUpdate') + '/resume'; |
442 | 444 |
443 var _response = _requester.request(_url, | 445 var _response = _requester.request(_url, |
444 "POST", | 446 "POST", |
445 body: _body, | 447 body: _body, |
446 queryParams: _queryParams, | 448 queryParams: _queryParams, |
447 uploadOptions: _uploadOptions, | 449 uploadOptions: _uploadOptions, |
448 uploadMedia: _uploadMedia, | 450 uploadMedia: _uploadMedia, |
449 downloadOptions: _downloadOptions); | 451 downloadOptions: _downloadOptions); |
450 return _response.then((data) => new Operation.fromJson(data)); | 452 return _response.then((data) => new Operation.fromJson(data)); |
451 } | 453 } |
452 | 454 |
453 /** | 455 /** |
454 * Rolls back the update in state from ROLLING_FORWARD or PAUSED. Has no | 456 * Rolls back the update in state from ROLLING_FORWARD or PAUSED. Has no |
455 * effect if invoked when the state of the update is ROLLED_BACK. | 457 * effect if invoked when the state of the update is ROLLED_BACK. |
456 * | 458 * |
457 * Request parameters: | 459 * Request parameters: |
458 * | 460 * |
459 * [project] - The Google Developers Console project name. | 461 * [project] - The Google Developers Console project name. |
460 * Value must have pattern | 462 * Value must have pattern |
461 * "(?:(?:[-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])?))". | 463 * "(?:(?:[-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])?))". |
462 * | 464 * |
463 * [zone] - The name of the zone in which the update's target resides. | 465 * [zone] - The name of the zone in which the update's target resides. |
464 * | 466 * |
465 * [rollingUpdate] - The name of the update. | 467 * [rollingUpdate] - The name of the update. |
466 * | 468 * |
467 * Completes with a [Operation]. | 469 * Completes with a [Operation]. |
468 * | 470 * |
469 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 471 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
470 * error. | 472 * error. |
471 * | 473 * |
472 * If the used [http.Client] completes with an error when making a REST call, | 474 * If the used [http.Client] completes with an error when making a REST call, |
473 * this method will complete with the same error. | 475 * this method will complete with the same error. |
474 */ | 476 */ |
475 async.Future<Operation> rollback(core.String project, core.String zone, core.S
tring rollingUpdate) { | 477 async.Future<Operation> rollback(core.String project, core.String zone, core.S
tring rollingUpdate) { |
476 var _url = null; | 478 var _url = null; |
477 var _queryParams = new core.Map(); | 479 var _queryParams = new core.Map(); |
478 var _uploadMedia = null; | 480 var _uploadMedia = null; |
479 var _uploadOptions = null; | 481 var _uploadOptions = null; |
480 var _downloadOptions = common.DownloadOptions.Metadata; | 482 var _downloadOptions = commons.DownloadOptions.Metadata; |
481 var _body = null; | 483 var _body = null; |
482 | 484 |
483 if (project == null) { | 485 if (project == null) { |
484 throw new core.ArgumentError("Parameter project is required."); | 486 throw new core.ArgumentError("Parameter project is required."); |
485 } | 487 } |
486 if (zone == null) { | 488 if (zone == null) { |
487 throw new core.ArgumentError("Parameter zone is required."); | 489 throw new core.ArgumentError("Parameter zone is required."); |
488 } | 490 } |
489 if (rollingUpdate == null) { | 491 if (rollingUpdate == null) { |
490 throw new core.ArgumentError("Parameter rollingUpdate is required."); | 492 throw new core.ArgumentError("Parameter rollingUpdate is required."); |
491 } | 493 } |
492 | 494 |
493 | 495 |
494 _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + commo
n_internal.Escaper.ecapeVariable('$zone') + '/rollingUpdates/' + common_internal
.Escaper.ecapeVariable('$rollingUpdate') + '/rollback'; | 496 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap
er.ecapeVariable('$zone') + '/rollingUpdates/' + commons.Escaper.ecapeVariable('
$rollingUpdate') + '/rollback'; |
495 | 497 |
496 var _response = _requester.request(_url, | 498 var _response = _requester.request(_url, |
497 "POST", | 499 "POST", |
498 body: _body, | 500 body: _body, |
499 queryParams: _queryParams, | 501 queryParams: _queryParams, |
500 uploadOptions: _uploadOptions, | 502 uploadOptions: _uploadOptions, |
501 uploadMedia: _uploadMedia, | 503 uploadMedia: _uploadMedia, |
502 downloadOptions: _downloadOptions); | 504 downloadOptions: _downloadOptions); |
503 return _response.then((data) => new Operation.fromJson(data)); | 505 return _response.then((data) => new Operation.fromJson(data)); |
504 } | 506 } |
505 | 507 |
506 } | 508 } |
507 | 509 |
508 | 510 |
509 /** Not documented yet. */ | |
510 class ZoneOperationsResourceApi { | 511 class ZoneOperationsResourceApi { |
511 final common_internal.ApiRequester _requester; | 512 final commons.ApiRequester _requester; |
512 | 513 |
513 ZoneOperationsResourceApi(common_internal.ApiRequester client) : | 514 ZoneOperationsResourceApi(commons.ApiRequester client) : |
514 _requester = client; | 515 _requester = client; |
515 | 516 |
516 /** | 517 /** |
517 * Retrieves the specified zone-specific operation resource. | 518 * Retrieves the specified zone-specific operation resource. |
518 * | 519 * |
519 * Request parameters: | 520 * Request parameters: |
520 * | 521 * |
521 * [project] - Name of the project scoping this request. | 522 * [project] - Name of the project scoping this request. |
522 * Value must have pattern | 523 * Value must have pattern |
523 * "(?:(?:[-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])?))". | 524 * "(?:(?:[-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])?))". |
524 * | 525 * |
525 * [zone] - Name of the zone scoping this request. | 526 * [zone] - Name of the zone scoping this request. |
526 * | 527 * |
527 * [operation] - Name of the operation resource to return. | 528 * [operation] - Name of the operation resource to return. |
528 * | 529 * |
529 * Completes with a [Operation]. | 530 * Completes with a [Operation]. |
530 * | 531 * |
531 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 532 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
532 * error. | 533 * error. |
533 * | 534 * |
534 * If the used [http.Client] completes with an error when making a REST call, | 535 * If the used [http.Client] completes with an error when making a REST call, |
535 * this method will complete with the same error. | 536 * this method will complete with the same error. |
536 */ | 537 */ |
537 async.Future<Operation> get(core.String project, core.String zone, core.String
operation) { | 538 async.Future<Operation> get(core.String project, core.String zone, core.String
operation) { |
538 var _url = null; | 539 var _url = null; |
539 var _queryParams = new core.Map(); | 540 var _queryParams = new core.Map(); |
540 var _uploadMedia = null; | 541 var _uploadMedia = null; |
541 var _uploadOptions = null; | 542 var _uploadOptions = null; |
542 var _downloadOptions = common.DownloadOptions.Metadata; | 543 var _downloadOptions = commons.DownloadOptions.Metadata; |
543 var _body = null; | 544 var _body = null; |
544 | 545 |
545 if (project == null) { | 546 if (project == null) { |
546 throw new core.ArgumentError("Parameter project is required."); | 547 throw new core.ArgumentError("Parameter project is required."); |
547 } | 548 } |
548 if (zone == null) { | 549 if (zone == null) { |
549 throw new core.ArgumentError("Parameter zone is required."); | 550 throw new core.ArgumentError("Parameter zone is required."); |
550 } | 551 } |
551 if (operation == null) { | 552 if (operation == null) { |
552 throw new core.ArgumentError("Parameter operation is required."); | 553 throw new core.ArgumentError("Parameter operation is required."); |
553 } | 554 } |
554 | 555 |
555 | 556 |
556 _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + commo
n_internal.Escaper.ecapeVariable('$zone') + '/operations/' + common_internal.Esc
aper.ecapeVariable('$operation'); | 557 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap
er.ecapeVariable('$zone') + '/operations/' + commons.Escaper.ecapeVariable('$ope
ration'); |
557 | 558 |
558 var _response = _requester.request(_url, | 559 var _response = _requester.request(_url, |
559 "GET", | 560 "GET", |
560 body: _body, | 561 body: _body, |
561 queryParams: _queryParams, | 562 queryParams: _queryParams, |
562 uploadOptions: _uploadOptions, | 563 uploadOptions: _uploadOptions, |
563 uploadMedia: _uploadMedia, | 564 uploadMedia: _uploadMedia, |
564 downloadOptions: _downloadOptions); | 565 downloadOptions: _downloadOptions); |
565 return _response.then((data) => new Operation.fromJson(data)); | 566 return _response.then((data) => new Operation.fromJson(data)); |
566 } | 567 } |
567 | 568 |
568 } | 569 } |
569 | 570 |
570 | 571 |
571 | 572 |
572 /** Not documented yet. */ | |
573 class InstanceUpdateErrorErrors { | 573 class InstanceUpdateErrorErrors { |
574 /** [Output Only] The error type identifier for this error. */ | 574 /** [Output Only] The error type identifier for this error. */ |
575 core.String code; | 575 core.String code; |
576 | 576 |
577 /** | 577 /** |
578 * [Output Only] Indicates the field in the request which caused the error. | 578 * [Output Only] Indicates the field in the request which caused the error. |
579 * This property is optional. | 579 * This property is optional. |
580 */ | 580 */ |
581 core.String location; | 581 core.String location; |
582 | 582 |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
739 _json["nextPageToken"] = nextPageToken; | 739 _json["nextPageToken"] = nextPageToken; |
740 } | 740 } |
741 if (selfLink != null) { | 741 if (selfLink != null) { |
742 _json["selfLink"] = selfLink; | 742 _json["selfLink"] = selfLink; |
743 } | 743 } |
744 return _json; | 744 return _json; |
745 } | 745 } |
746 } | 746 } |
747 | 747 |
748 | 748 |
749 /** Not documented yet. */ | |
750 class OperationErrorErrors { | 749 class OperationErrorErrors { |
751 /** [Output Only] The error type identifier for this error. */ | 750 /** [Output Only] The error type identifier for this error. */ |
752 core.String code; | 751 core.String code; |
753 | 752 |
754 /** | 753 /** |
755 * [Output Only] Indicates the field in the request which caused the error. | 754 * [Output Only] Indicates the field in the request which caused the error. |
756 * This property is optional. | 755 * This property is optional. |
757 */ | 756 */ |
758 core.String location; | 757 core.String location; |
759 | 758 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
814 core.Map toJson() { | 813 core.Map toJson() { |
815 var _json = new core.Map(); | 814 var _json = new core.Map(); |
816 if (errors != null) { | 815 if (errors != null) { |
817 _json["errors"] = errors.map((value) => (value).toJson()).toList(); | 816 _json["errors"] = errors.map((value) => (value).toJson()).toList(); |
818 } | 817 } |
819 return _json; | 818 return _json; |
820 } | 819 } |
821 } | 820 } |
822 | 821 |
823 | 822 |
824 /** Not documented yet. */ | |
825 class OperationWarningsData { | 823 class OperationWarningsData { |
826 /** [Output Only] Metadata key for this warning. */ | 824 /** [Output Only] Metadata key for this warning. */ |
827 core.String key; | 825 core.String key; |
828 | 826 |
829 /** [Output Only] Metadata value for this warning. */ | 827 /** [Output Only] Metadata value for this warning. */ |
830 core.String value; | 828 core.String value; |
831 | 829 |
832 | 830 |
833 OperationWarningsData(); | 831 OperationWarningsData(); |
834 | 832 |
(...skipping 12 matching lines...) Expand all Loading... |
847 _json["key"] = key; | 845 _json["key"] = key; |
848 } | 846 } |
849 if (value != null) { | 847 if (value != null) { |
850 _json["value"] = value; | 848 _json["value"] = value; |
851 } | 849 } |
852 return _json; | 850 return _json; |
853 } | 851 } |
854 } | 852 } |
855 | 853 |
856 | 854 |
857 /** Not documented yet. */ | |
858 class OperationWarnings { | 855 class OperationWarnings { |
859 /** [Output only] The warning type identifier for this warning. */ | 856 /** [Output only] The warning type identifier for this warning. */ |
860 core.String code; | 857 core.String code; |
861 | 858 |
862 /** [Output only] Metadata for this warning in key:value format. */ | 859 /** [Output only] Metadata for this warning in key:value format. */ |
863 core.List<OperationWarningsData> data; | 860 core.List<OperationWarningsData> data; |
864 | 861 |
865 /** [Output only] Optional human-readable details for this warning. */ | 862 /** [Output only] Optional human-readable details for this warning. */ |
866 core.String message; | 863 core.String message; |
867 | 864 |
(...skipping 23 matching lines...) Expand all Loading... |
891 if (message != null) { | 888 if (message != null) { |
892 _json["message"] = message; | 889 _json["message"] = message; |
893 } | 890 } |
894 return _json; | 891 return _json; |
895 } | 892 } |
896 } | 893 } |
897 | 894 |
898 | 895 |
899 /** An operation resource, used to manage asynchronous API requests. */ | 896 /** An operation resource, used to manage asynchronous API requests. */ |
900 class Operation { | 897 class Operation { |
901 /** Not documented yet. */ | |
902 core.String clientOperationId; | 898 core.String clientOperationId; |
903 | 899 |
904 /** [Output Only] Creation timestamp in RFC3339 text format (output only). */ | 900 /** [Output Only] Creation timestamp in RFC3339 text format (output only). */ |
905 core.String creationTimestamp; | 901 core.String creationTimestamp; |
906 | 902 |
907 /** Not documented yet. */ | |
908 core.String endTime; | 903 core.String endTime; |
909 | 904 |
910 /** | 905 /** |
911 * [Output Only] If errors occurred during processing of this operation, this | 906 * [Output Only] If errors occurred during processing of this operation, this |
912 * field will be populated. | 907 * field will be populated. |
913 */ | 908 */ |
914 OperationError error; | 909 OperationError error; |
915 | 910 |
916 /** Not documented yet. */ | |
917 core.String httpErrorMessage; | 911 core.String httpErrorMessage; |
918 | 912 |
919 /** Not documented yet. */ | |
920 core.int httpErrorStatusCode; | 913 core.int httpErrorStatusCode; |
921 | 914 |
922 /** | 915 /** |
923 * [Output Only] Unique identifier for the resource; defined by the server. | 916 * [Output Only] Unique identifier for the resource; defined by the server. |
924 */ | 917 */ |
925 core.String id; | 918 core.String id; |
926 | 919 |
927 /** | 920 /** |
928 * [Output Only] The time that this operation was requested. This is in RFC | 921 * [Output Only] The time that this operation was requested. This is in RFC |
929 * 3339 format. | 922 * 3339 format. |
930 */ | 923 */ |
931 core.String insertTime; | 924 core.String insertTime; |
932 | 925 |
933 /** | 926 /** |
934 * [Output Only] Type of the resource. Always kind#operation for Operation | 927 * [Output Only] Type of the resource. Always kind#operation for Operation |
935 * resources. | 928 * resources. |
936 */ | 929 */ |
937 core.String kind; | 930 core.String kind; |
938 | 931 |
939 /** [Output Only] Name of the resource (output only). */ | 932 /** [Output Only] Name of the resource (output only). */ |
940 core.String name; | 933 core.String name; |
941 | 934 |
942 /** Not documented yet. */ | |
943 core.String operationType; | 935 core.String operationType; |
944 | 936 |
945 /** Not documented yet. */ | |
946 core.int progress; | 937 core.int progress; |
947 | 938 |
948 /** | 939 /** |
949 * [Output Only] URL of the region where the operation resides (output only). | 940 * [Output Only] URL of the region where the operation resides (output only). |
950 */ | 941 */ |
951 core.String region; | 942 core.String region; |
952 | 943 |
953 /** [Output Only] Server defined URL for the resource. */ | 944 /** [Output Only] Server defined URL for the resource. */ |
954 core.String selfLink; | 945 core.String selfLink; |
955 | 946 |
(...skipping 19 matching lines...) Expand all Loading... |
975 * [Output Only] Unique target id which identifies a particular incarnation of | 966 * [Output Only] Unique target id which identifies a particular incarnation of |
976 * the target. | 967 * the target. |
977 */ | 968 */ |
978 core.String targetId; | 969 core.String targetId; |
979 | 970 |
980 /** | 971 /** |
981 * [Output Only] URL of the resource the operation is mutating (output only). | 972 * [Output Only] URL of the resource the operation is mutating (output only). |
982 */ | 973 */ |
983 core.String targetLink; | 974 core.String targetLink; |
984 | 975 |
985 /** Not documented yet. */ | |
986 core.String user; | 976 core.String user; |
987 | 977 |
988 /** Not documented yet. */ | |
989 core.List<OperationWarnings> warnings; | 978 core.List<OperationWarnings> warnings; |
990 | 979 |
991 /** | 980 /** |
992 * [Output Only] URL of the zone where the operation resides (output only). | 981 * [Output Only] URL of the zone where the operation resides (output only). |
993 */ | 982 */ |
994 core.String zone; | 983 core.String zone; |
995 | 984 |
996 | 985 |
997 Operation(); | 986 Operation(); |
998 | 987 |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1131 _json["warnings"] = warnings.map((value) => (value).toJson()).toList(); | 1120 _json["warnings"] = warnings.map((value) => (value).toJson()).toList(); |
1132 } | 1121 } |
1133 if (zone != null) { | 1122 if (zone != null) { |
1134 _json["zone"] = zone; | 1123 _json["zone"] = zone; |
1135 } | 1124 } |
1136 return _json; | 1125 return _json; |
1137 } | 1126 } |
1138 } | 1127 } |
1139 | 1128 |
1140 | 1129 |
1141 /** Not documented yet. */ | |
1142 class RollingUpdateErrorErrors { | 1130 class RollingUpdateErrorErrors { |
1143 /** [Output Only] The error type identifier for this error. */ | 1131 /** [Output Only] The error type identifier for this error. */ |
1144 core.String code; | 1132 core.String code; |
1145 | 1133 |
1146 /** | 1134 /** |
1147 * [Output Only] Indicates the field in the request which caused the error. | 1135 * [Output Only] Indicates the field in the request which caused the error. |
1148 * This property is optional. | 1136 * This property is optional. |
1149 */ | 1137 */ |
1150 core.String location; | 1138 core.String location; |
1151 | 1139 |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1203 core.Map toJson() { | 1191 core.Map toJson() { |
1204 var _json = new core.Map(); | 1192 var _json = new core.Map(); |
1205 if (errors != null) { | 1193 if (errors != null) { |
1206 _json["errors"] = errors.map((value) => (value).toJson()).toList(); | 1194 _json["errors"] = errors.map((value) => (value).toJson()).toList(); |
1207 } | 1195 } |
1208 return _json; | 1196 return _json; |
1209 } | 1197 } |
1210 } | 1198 } |
1211 | 1199 |
1212 | 1200 |
1213 /** Parameters of a canary phase. If absent, canary will NOT be performed. */ | |
1214 class RollingUpdatePolicyCanary { | |
1215 /** | |
1216 * Number of instances updated as a part of canary phase. If absent, the | |
1217 * default number of instances will be used. | |
1218 */ | |
1219 core.int numInstances; | |
1220 | |
1221 | |
1222 RollingUpdatePolicyCanary(); | |
1223 | |
1224 RollingUpdatePolicyCanary.fromJson(core.Map _json) { | |
1225 if (_json.containsKey("numInstances")) { | |
1226 numInstances = _json["numInstances"]; | |
1227 } | |
1228 } | |
1229 | |
1230 core.Map toJson() { | |
1231 var _json = new core.Map(); | |
1232 if (numInstances != null) { | |
1233 _json["numInstances"] = numInstances; | |
1234 } | |
1235 return _json; | |
1236 } | |
1237 } | |
1238 | |
1239 | |
1240 /** Parameters of the update process. */ | 1201 /** Parameters of the update process. */ |
1241 class RollingUpdatePolicy { | 1202 class RollingUpdatePolicy { |
1242 /** | 1203 /** |
1243 * Number of instances updated before the update gets automatically paused. | 1204 * Number of instances updated before the update gets automatically paused. |
1244 */ | 1205 */ |
1245 core.int autoPauseAfterInstances; | 1206 core.int autoPauseAfterInstances; |
1246 | 1207 |
1247 /** Parameters of a canary phase. If absent, canary will NOT be performed. */ | |
1248 RollingUpdatePolicyCanary canary; | |
1249 | |
1250 /** | 1208 /** |
1251 * Maximum amount of time we will wait after finishing all steps until we | 1209 * Maximum amount of time we will wait after finishing all steps until we |
1252 * receive HEALTHY state for instance. If this deadline is exceeded instance | 1210 * receive HEALTHY state for instance. If this deadline is exceeded instance |
1253 * update is considered as failed. | 1211 * update is considered as failed. |
1254 */ | 1212 */ |
1255 core.int instanceStartupTimeoutSec; | 1213 core.int instanceStartupTimeoutSec; |
1256 | 1214 |
1257 /** | 1215 /** |
1258 * Maximum number of instances that can be updated simultaneously | 1216 * Maximum number of instances that can be updated simultaneously |
1259 * (concurrently). An update of an instance starts when the instance is about | 1217 * (concurrently). An update of an instance starts when the instance is about |
(...skipping 27 matching lines...) Expand all Loading... |
1287 */ | 1245 */ |
1288 core.int sleepAfterInstanceRestartSec; | 1246 core.int sleepAfterInstanceRestartSec; |
1289 | 1247 |
1290 | 1248 |
1291 RollingUpdatePolicy(); | 1249 RollingUpdatePolicy(); |
1292 | 1250 |
1293 RollingUpdatePolicy.fromJson(core.Map _json) { | 1251 RollingUpdatePolicy.fromJson(core.Map _json) { |
1294 if (_json.containsKey("autoPauseAfterInstances")) { | 1252 if (_json.containsKey("autoPauseAfterInstances")) { |
1295 autoPauseAfterInstances = _json["autoPauseAfterInstances"]; | 1253 autoPauseAfterInstances = _json["autoPauseAfterInstances"]; |
1296 } | 1254 } |
1297 if (_json.containsKey("canary")) { | |
1298 canary = new RollingUpdatePolicyCanary.fromJson(_json["canary"]); | |
1299 } | |
1300 if (_json.containsKey("instanceStartupTimeoutSec")) { | 1255 if (_json.containsKey("instanceStartupTimeoutSec")) { |
1301 instanceStartupTimeoutSec = _json["instanceStartupTimeoutSec"]; | 1256 instanceStartupTimeoutSec = _json["instanceStartupTimeoutSec"]; |
1302 } | 1257 } |
1303 if (_json.containsKey("maxNumConcurrentInstances")) { | 1258 if (_json.containsKey("maxNumConcurrentInstances")) { |
1304 maxNumConcurrentInstances = _json["maxNumConcurrentInstances"]; | 1259 maxNumConcurrentInstances = _json["maxNumConcurrentInstances"]; |
1305 } | 1260 } |
1306 if (_json.containsKey("maxNumFailedInstances")) { | 1261 if (_json.containsKey("maxNumFailedInstances")) { |
1307 maxNumFailedInstances = _json["maxNumFailedInstances"]; | 1262 maxNumFailedInstances = _json["maxNumFailedInstances"]; |
1308 } | 1263 } |
1309 if (_json.containsKey("minInstanceUpdateTimeSec")) { | 1264 if (_json.containsKey("minInstanceUpdateTimeSec")) { |
1310 minInstanceUpdateTimeSec = _json["minInstanceUpdateTimeSec"]; | 1265 minInstanceUpdateTimeSec = _json["minInstanceUpdateTimeSec"]; |
1311 } | 1266 } |
1312 if (_json.containsKey("sleepAfterInstanceRestartSec")) { | 1267 if (_json.containsKey("sleepAfterInstanceRestartSec")) { |
1313 sleepAfterInstanceRestartSec = _json["sleepAfterInstanceRestartSec"]; | 1268 sleepAfterInstanceRestartSec = _json["sleepAfterInstanceRestartSec"]; |
1314 } | 1269 } |
1315 } | 1270 } |
1316 | 1271 |
1317 core.Map toJson() { | 1272 core.Map toJson() { |
1318 var _json = new core.Map(); | 1273 var _json = new core.Map(); |
1319 if (autoPauseAfterInstances != null) { | 1274 if (autoPauseAfterInstances != null) { |
1320 _json["autoPauseAfterInstances"] = autoPauseAfterInstances; | 1275 _json["autoPauseAfterInstances"] = autoPauseAfterInstances; |
1321 } | 1276 } |
1322 if (canary != null) { | |
1323 _json["canary"] = (canary).toJson(); | |
1324 } | |
1325 if (instanceStartupTimeoutSec != null) { | 1277 if (instanceStartupTimeoutSec != null) { |
1326 _json["instanceStartupTimeoutSec"] = instanceStartupTimeoutSec; | 1278 _json["instanceStartupTimeoutSec"] = instanceStartupTimeoutSec; |
1327 } | 1279 } |
1328 if (maxNumConcurrentInstances != null) { | 1280 if (maxNumConcurrentInstances != null) { |
1329 _json["maxNumConcurrentInstances"] = maxNumConcurrentInstances; | 1281 _json["maxNumConcurrentInstances"] = maxNumConcurrentInstances; |
1330 } | 1282 } |
1331 if (maxNumFailedInstances != null) { | 1283 if (maxNumFailedInstances != null) { |
1332 _json["maxNumFailedInstances"] = maxNumFailedInstances; | 1284 _json["maxNumFailedInstances"] = maxNumFailedInstances; |
1333 } | 1285 } |
1334 if (minInstanceUpdateTimeSec != null) { | 1286 if (minInstanceUpdateTimeSec != null) { |
(...skipping 10 matching lines...) Expand all Loading... |
1345 /** | 1297 /** |
1346 * The following represents a resource describing a single update (rollout) of a | 1298 * The following represents a resource describing a single update (rollout) of a |
1347 * group of instances to the given template. | 1299 * group of instances to the given template. |
1348 */ | 1300 */ |
1349 class RollingUpdate { | 1301 class RollingUpdate { |
1350 /** | 1302 /** |
1351 * Specifies the action to take for each instance within the instance group. | 1303 * Specifies the action to take for each instance within the instance group. |
1352 * This can be RECREATE which will recreate each instance and is only | 1304 * This can be RECREATE which will recreate each instance and is only |
1353 * available for managed instance groups. It can also be REBOOT which performs | 1305 * available for managed instance groups. It can also be REBOOT which performs |
1354 * a soft reboot for each instance and is only available for regular | 1306 * a soft reboot for each instance and is only available for regular |
1355 * (non-managed) instance groups. | 1307 * (non-managed) instance groups and explicit lists of instances. |
1356 */ | 1308 */ |
1357 core.String actionType; | 1309 core.String actionType; |
1358 | 1310 |
1359 /** [Output Only] Creation timestamp in RFC3339 text format. */ | 1311 /** [Output Only] Creation timestamp in RFC3339 text format. */ |
1360 core.String creationTimestamp; | 1312 core.String creationTimestamp; |
1361 | 1313 |
1362 /** | 1314 /** |
1363 * An optional textual description of the resource; provided by the client | 1315 * An optional textual description of the resource; provided by the client |
1364 * when the resource is created. | 1316 * when the resource is created. |
1365 */ | 1317 */ |
1366 core.String description; | 1318 core.String description; |
1367 | 1319 |
1368 /** [Output Only] Errors that occurred during rolling update. */ | 1320 /** [Output Only] Errors that occurred during rolling update. */ |
1369 RollingUpdateError error; | 1321 RollingUpdateError error; |
1370 | 1322 |
1371 /** | 1323 /** |
1372 * [Output Only] Unique identifier for the resource; defined by the server. | 1324 * [Output Only] Unique identifier for the resource; defined by the server. |
1373 */ | 1325 */ |
1374 core.String id; | 1326 core.String id; |
1375 | 1327 |
1376 /** | 1328 /** |
1377 * Fully-qualified URL of an instance group being updated. Exactly one of | 1329 * Fully-qualified URL of an instance group being updated. Exactly one of |
1378 * instanceGroupManager and instanceGroup must be set. | 1330 * instanceGroupManager, instanceGroup and instance list must be set. |
1379 */ | 1331 */ |
1380 core.String instanceGroup; | 1332 core.String instanceGroup; |
1381 | 1333 |
1382 /** | 1334 /** |
1383 * Fully-qualified URL of an instance group manager being updated. Exactly one | 1335 * Fully-qualified URL of an instance group manager being updated. Exactly one |
1384 * of instanceGroupManager and instanceGroup must be set. | 1336 * of instanceGroupManager, instanceGroup and instance list must be set. |
1385 */ | 1337 */ |
1386 core.String instanceGroupManager; | 1338 core.String instanceGroupManager; |
1387 | 1339 |
1388 /** Fully-qualified URL of an instance template to apply. */ | 1340 /** Fully-qualified URL of an instance template to apply. */ |
1389 core.String instanceTemplate; | 1341 core.String instanceTemplate; |
1390 | 1342 |
| 1343 /** |
| 1344 * List of fully-qualified URLs of instances to be updated. Exactly one of |
| 1345 * instanceGroupManager, instanceGroup and instance list must be set. |
| 1346 */ |
| 1347 core.List<core.String> instances; |
| 1348 |
1391 /** [Output Only] Type of the resource. */ | 1349 /** [Output Only] Type of the resource. */ |
1392 core.String kind; | 1350 core.String kind; |
1393 | 1351 |
1394 /** Parameters of the update process. */ | 1352 /** Parameters of the update process. */ |
1395 RollingUpdatePolicy policy; | 1353 RollingUpdatePolicy policy; |
1396 | 1354 |
1397 /** | 1355 /** |
1398 * [Output Only] An optional progress indicator that ranges from 0 to 100. | 1356 * [Output Only] An optional progress indicator that ranges from 0 to 100. |
1399 * There is no requirement that this be linear or support any granularity of | 1357 * There is no requirement that this be linear or support any granularity of |
1400 * operations. This should not be used to guess at when the update will be | 1358 * operations. This should not be used to guess at when the update will be |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1452 } | 1410 } |
1453 if (_json.containsKey("instanceGroup")) { | 1411 if (_json.containsKey("instanceGroup")) { |
1454 instanceGroup = _json["instanceGroup"]; | 1412 instanceGroup = _json["instanceGroup"]; |
1455 } | 1413 } |
1456 if (_json.containsKey("instanceGroupManager")) { | 1414 if (_json.containsKey("instanceGroupManager")) { |
1457 instanceGroupManager = _json["instanceGroupManager"]; | 1415 instanceGroupManager = _json["instanceGroupManager"]; |
1458 } | 1416 } |
1459 if (_json.containsKey("instanceTemplate")) { | 1417 if (_json.containsKey("instanceTemplate")) { |
1460 instanceTemplate = _json["instanceTemplate"]; | 1418 instanceTemplate = _json["instanceTemplate"]; |
1461 } | 1419 } |
| 1420 if (_json.containsKey("instances")) { |
| 1421 instances = _json["instances"]; |
| 1422 } |
1462 if (_json.containsKey("kind")) { | 1423 if (_json.containsKey("kind")) { |
1463 kind = _json["kind"]; | 1424 kind = _json["kind"]; |
1464 } | 1425 } |
1465 if (_json.containsKey("policy")) { | 1426 if (_json.containsKey("policy")) { |
1466 policy = new RollingUpdatePolicy.fromJson(_json["policy"]); | 1427 policy = new RollingUpdatePolicy.fromJson(_json["policy"]); |
1467 } | 1428 } |
1468 if (_json.containsKey("progress")) { | 1429 if (_json.containsKey("progress")) { |
1469 progress = _json["progress"]; | 1430 progress = _json["progress"]; |
1470 } | 1431 } |
1471 if (_json.containsKey("selfLink")) { | 1432 if (_json.containsKey("selfLink")) { |
(...skipping 29 matching lines...) Expand all Loading... |
1501 } | 1462 } |
1502 if (instanceGroup != null) { | 1463 if (instanceGroup != null) { |
1503 _json["instanceGroup"] = instanceGroup; | 1464 _json["instanceGroup"] = instanceGroup; |
1504 } | 1465 } |
1505 if (instanceGroupManager != null) { | 1466 if (instanceGroupManager != null) { |
1506 _json["instanceGroupManager"] = instanceGroupManager; | 1467 _json["instanceGroupManager"] = instanceGroupManager; |
1507 } | 1468 } |
1508 if (instanceTemplate != null) { | 1469 if (instanceTemplate != null) { |
1509 _json["instanceTemplate"] = instanceTemplate; | 1470 _json["instanceTemplate"] = instanceTemplate; |
1510 } | 1471 } |
| 1472 if (instances != null) { |
| 1473 _json["instances"] = instances; |
| 1474 } |
1511 if (kind != null) { | 1475 if (kind != null) { |
1512 _json["kind"] = kind; | 1476 _json["kind"] = kind; |
1513 } | 1477 } |
1514 if (policy != null) { | 1478 if (policy != null) { |
1515 _json["policy"] = (policy).toJson(); | 1479 _json["policy"] = (policy).toJson(); |
1516 } | 1480 } |
1517 if (progress != null) { | 1481 if (progress != null) { |
1518 _json["progress"] = progress; | 1482 _json["progress"] = progress; |
1519 } | 1483 } |
1520 if (selfLink != null) { | 1484 if (selfLink != null) { |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1576 } | 1540 } |
1577 if (nextPageToken != null) { | 1541 if (nextPageToken != null) { |
1578 _json["nextPageToken"] = nextPageToken; | 1542 _json["nextPageToken"] = nextPageToken; |
1579 } | 1543 } |
1580 if (selfLink != null) { | 1544 if (selfLink != null) { |
1581 _json["selfLink"] = selfLink; | 1545 _json["selfLink"] = selfLink; |
1582 } | 1546 } |
1583 return _json; | 1547 return _json; |
1584 } | 1548 } |
1585 } | 1549 } |
1586 | |
1587 | |
OLD | NEW |