OLD | NEW |
1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). |
2 | 2 |
3 library googleapis_beta.replicapoolupdater.v1beta1; | 3 library googleapis_beta.replicapoolupdater.v1beta1; |
4 | 4 |
5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
6 import 'dart:async' as async; | 6 import 'dart:async' as async; |
7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; |
8 | 8 |
9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
10 import 'package:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
11 | 11 |
12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show | 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' |
13 ApiRequestError, DetailedApiRequestError; | 13 show ApiRequestError, DetailedApiRequestError; |
14 | 14 |
15 const core.String USER_AGENT = 'dart-api-client replicapoolupdater/v1beta1'; | 15 const core.String USER_AGENT = 'dart-api-client replicapoolupdater/v1beta1'; |
16 | 16 |
17 /** | 17 /// [Deprecated. Please use compute.instanceGroupManagers.update method. |
18 * [Deprecated. Please use compute.instanceGroupManagers.update method. | 18 /// replicapoolupdater API will be disabled after December 30th, 2016] Updates |
19 * replicapoolupdater API will be disabled after December 30th, 2016] Updates | 19 /// groups of Compute Engine instances. |
20 * groups of Compute Engine instances. | |
21 */ | |
22 class ReplicapoolupdaterApi { | 20 class ReplicapoolupdaterApi { |
23 /** View and manage your data across Google Cloud Platform services */ | 21 /// View and manage your data across Google Cloud Platform services |
24 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf
orm"; | 22 static const CloudPlatformScope = |
| 23 "https://www.googleapis.com/auth/cloud-platform"; |
25 | 24 |
26 /** View your data across Google Cloud Platform services */ | 25 /// View your data across Google Cloud Platform services |
27 static const CloudPlatformReadOnlyScope = "https://www.googleapis.com/auth/clo
ud-platform.read-only"; | 26 static const CloudPlatformReadOnlyScope = |
| 27 "https://www.googleapis.com/auth/cloud-platform.read-only"; |
28 | 28 |
29 /** View and manage replica pools */ | 29 /// View and manage replica pools |
30 static const ReplicapoolScope = "https://www.googleapis.com/auth/replicapool"; | 30 static const ReplicapoolScope = "https://www.googleapis.com/auth/replicapool"; |
31 | 31 |
32 /** View replica pools */ | 32 /// View replica pools |
33 static const ReplicapoolReadonlyScope = "https://www.googleapis.com/auth/repli
capool.readonly"; | 33 static const ReplicapoolReadonlyScope = |
34 | 34 "https://www.googleapis.com/auth/replicapool.readonly"; |
35 | 35 |
36 final commons.ApiRequester _requester; | 36 final commons.ApiRequester _requester; |
37 | 37 |
38 RollingUpdatesResourceApi get rollingUpdates => new RollingUpdatesResourceApi(
_requester); | 38 RollingUpdatesResourceApi get rollingUpdates => |
39 ZoneOperationsResourceApi get zoneOperations => new ZoneOperationsResourceApi(
_requester); | 39 new RollingUpdatesResourceApi(_requester); |
| 40 ZoneOperationsResourceApi get zoneOperations => |
| 41 new ZoneOperationsResourceApi(_requester); |
40 | 42 |
41 ReplicapoolupdaterApi(http.Client client, {core.String rootUrl: "https://www.g
oogleapis.com/", core.String servicePath: "replicapoolupdater/v1beta1/projects/"
}) : | 43 ReplicapoolupdaterApi(http.Client client, |
42 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); | 44 {core.String rootUrl: "https://www.googleapis.com/", |
| 45 core.String servicePath: "replicapoolupdater/v1beta1/projects/"}) |
| 46 : _requester = |
| 47 new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT); |
43 } | 48 } |
44 | 49 |
45 | |
46 class RollingUpdatesResourceApi { | 50 class RollingUpdatesResourceApi { |
47 final commons.ApiRequester _requester; | 51 final commons.ApiRequester _requester; |
48 | 52 |
49 RollingUpdatesResourceApi(commons.ApiRequester client) : | 53 RollingUpdatesResourceApi(commons.ApiRequester client) : _requester = client; |
50 _requester = client; | |
51 | 54 |
52 /** | 55 /// Cancels an update. The update must be PAUSED before it can be cancelled. |
53 * Cancels an update. The update must be PAUSED before it can be cancelled. | 56 /// This has no effect if the update is already CANCELLED. |
54 * This has no effect if the update is already CANCELLED. | 57 /// |
55 * | 58 /// Request parameters: |
56 * Request parameters: | 59 /// |
57 * | 60 /// [project] - The Google Developers Console project name. |
58 * [project] - The Google Developers Console project name. | 61 /// Value must have pattern |
59 * Value must have pattern | 62 /// "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]
{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
60 * "(?:(?:[-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])?))". | 63 /// |
61 * | 64 /// [zone] - The name of the zone in which the update's target resides. |
62 * [zone] - The name of the zone in which the update's target resides. | 65 /// |
63 * | 66 /// [rollingUpdate] - The name of the update. |
64 * [rollingUpdate] - The name of the update. | 67 /// |
65 * | 68 /// Completes with a [Operation]. |
66 * Completes with a [Operation]. | 69 /// |
67 * | 70 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
68 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 71 /// an error. |
69 * error. | 72 /// |
70 * | 73 /// If the used [http.Client] completes with an error when making a REST |
71 * If the used [http.Client] completes with an error when making a REST call, | 74 /// call, this method will complete with the same error. |
72 * this method will complete with the same error. | 75 async.Future<Operation> cancel( |
73 */ | 76 core.String project, core.String zone, core.String rollingUpdate) { |
74 async.Future<Operation> cancel(core.String project, core.String zone, core.Str
ing rollingUpdate) { | |
75 var _url = null; | 77 var _url = null; |
76 var _queryParams = new core.Map(); | 78 var _queryParams = new core.Map(); |
77 var _uploadMedia = null; | 79 var _uploadMedia = null; |
78 var _uploadOptions = null; | 80 var _uploadOptions = null; |
79 var _downloadOptions = commons.DownloadOptions.Metadata; | 81 var _downloadOptions = commons.DownloadOptions.Metadata; |
80 var _body = null; | 82 var _body = null; |
81 | 83 |
82 if (project == null) { | 84 if (project == null) { |
83 throw new core.ArgumentError("Parameter project is required."); | 85 throw new core.ArgumentError("Parameter project is required."); |
84 } | 86 } |
85 if (zone == null) { | 87 if (zone == null) { |
86 throw new core.ArgumentError("Parameter zone is required."); | 88 throw new core.ArgumentError("Parameter zone is required."); |
87 } | 89 } |
88 if (rollingUpdate == null) { | 90 if (rollingUpdate == null) { |
89 throw new core.ArgumentError("Parameter rollingUpdate is required."); | 91 throw new core.ArgumentError("Parameter rollingUpdate is required."); |
90 } | 92 } |
91 | 93 |
92 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap
er.ecapeVariable('$zone') + '/rollingUpdates/' + commons.Escaper.ecapeVariable('
$rollingUpdate') + '/cancel'; | 94 _url = commons.Escaper.ecapeVariable('$project') + |
| 95 '/zones/' + |
| 96 commons.Escaper.ecapeVariable('$zone') + |
| 97 '/rollingUpdates/' + |
| 98 commons.Escaper.ecapeVariable('$rollingUpdate') + |
| 99 '/cancel'; |
93 | 100 |
94 var _response = _requester.request(_url, | 101 var _response = _requester.request(_url, "POST", |
95 "POST", | 102 body: _body, |
96 body: _body, | 103 queryParams: _queryParams, |
97 queryParams: _queryParams, | 104 uploadOptions: _uploadOptions, |
98 uploadOptions: _uploadOptions, | 105 uploadMedia: _uploadMedia, |
99 uploadMedia: _uploadMedia, | 106 downloadOptions: _downloadOptions); |
100 downloadOptions: _downloadOptions); | |
101 return _response.then((data) => new Operation.fromJson(data)); | 107 return _response.then((data) => new Operation.fromJson(data)); |
102 } | 108 } |
103 | 109 |
104 /** | 110 /// Returns information about an update. |
105 * Returns information about an update. | 111 /// |
106 * | 112 /// Request parameters: |
107 * Request parameters: | 113 /// |
108 * | 114 /// [project] - The Google Developers Console project name. |
109 * [project] - The Google Developers Console project name. | 115 /// Value must have pattern |
110 * Value must have pattern | 116 /// "(?:(?:[-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])?))". |
111 * "(?:(?:[-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])?))". | 117 /// |
112 * | 118 /// [zone] - The name of the zone in which the update's target resides. |
113 * [zone] - The name of the zone in which the update's target resides. | 119 /// |
114 * | 120 /// [rollingUpdate] - The name of the update. |
115 * [rollingUpdate] - The name of the update. | 121 /// |
116 * | 122 /// Completes with a [RollingUpdate]. |
117 * Completes with a [RollingUpdate]. | 123 /// |
118 * | 124 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
119 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 125 /// an error. |
120 * error. | 126 /// |
121 * | 127 /// If the used [http.Client] completes with an error when making a REST |
122 * If the used [http.Client] completes with an error when making a REST call, | 128 /// call, this method will complete with the same error. |
123 * this method will complete with the same error. | 129 async.Future<RollingUpdate> get( |
124 */ | 130 core.String project, core.String zone, core.String rollingUpdate) { |
125 async.Future<RollingUpdate> get(core.String project, core.String zone, core.St
ring rollingUpdate) { | |
126 var _url = null; | 131 var _url = null; |
127 var _queryParams = new core.Map(); | 132 var _queryParams = new core.Map(); |
128 var _uploadMedia = null; | 133 var _uploadMedia = null; |
129 var _uploadOptions = null; | 134 var _uploadOptions = null; |
130 var _downloadOptions = commons.DownloadOptions.Metadata; | 135 var _downloadOptions = commons.DownloadOptions.Metadata; |
131 var _body = null; | 136 var _body = null; |
132 | 137 |
133 if (project == null) { | 138 if (project == null) { |
134 throw new core.ArgumentError("Parameter project is required."); | 139 throw new core.ArgumentError("Parameter project is required."); |
135 } | 140 } |
136 if (zone == null) { | 141 if (zone == null) { |
137 throw new core.ArgumentError("Parameter zone is required."); | 142 throw new core.ArgumentError("Parameter zone is required."); |
138 } | 143 } |
139 if (rollingUpdate == null) { | 144 if (rollingUpdate == null) { |
140 throw new core.ArgumentError("Parameter rollingUpdate is required."); | 145 throw new core.ArgumentError("Parameter rollingUpdate is required."); |
141 } | 146 } |
142 | 147 |
143 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap
er.ecapeVariable('$zone') + '/rollingUpdates/' + commons.Escaper.ecapeVariable('
$rollingUpdate'); | 148 _url = commons.Escaper.ecapeVariable('$project') + |
| 149 '/zones/' + |
| 150 commons.Escaper.ecapeVariable('$zone') + |
| 151 '/rollingUpdates/' + |
| 152 commons.Escaper.ecapeVariable('$rollingUpdate'); |
144 | 153 |
145 var _response = _requester.request(_url, | 154 var _response = _requester.request(_url, "GET", |
146 "GET", | 155 body: _body, |
147 body: _body, | 156 queryParams: _queryParams, |
148 queryParams: _queryParams, | 157 uploadOptions: _uploadOptions, |
149 uploadOptions: _uploadOptions, | 158 uploadMedia: _uploadMedia, |
150 uploadMedia: _uploadMedia, | 159 downloadOptions: _downloadOptions); |
151 downloadOptions: _downloadOptions); | |
152 return _response.then((data) => new RollingUpdate.fromJson(data)); | 160 return _response.then((data) => new RollingUpdate.fromJson(data)); |
153 } | 161 } |
154 | 162 |
155 /** | 163 /// Inserts and starts a new update. |
156 * Inserts and starts a new update. | 164 /// |
157 * | 165 /// [request] - The metadata request object. |
158 * [request] - The metadata request object. | 166 /// |
159 * | 167 /// Request parameters: |
160 * Request parameters: | 168 /// |
161 * | 169 /// [project] - The Google Developers Console project name. |
162 * [project] - The Google Developers Console project name. | 170 /// Value must have pattern |
163 * Value must have pattern | 171 /// "(?:(?:[-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])?))". | 172 /// |
165 * | 173 /// [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. | 174 /// |
167 * | 175 /// Completes with a [Operation]. |
168 * Completes with a [Operation]. | 176 /// |
169 * | 177 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
170 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 178 /// an error. |
171 * error. | 179 /// |
172 * | 180 /// If the used [http.Client] completes with an error when making a REST |
173 * If the used [http.Client] completes with an error when making a REST call, | 181 /// call, this method will complete with the same error. |
174 * this method will complete with the same error. | 182 async.Future<Operation> insert( |
175 */ | 183 RollingUpdate request, core.String project, core.String zone) { |
176 async.Future<Operation> insert(RollingUpdate request, core.String project, cor
e.String zone) { | |
177 var _url = null; | 184 var _url = null; |
178 var _queryParams = new core.Map(); | 185 var _queryParams = new core.Map(); |
179 var _uploadMedia = null; | 186 var _uploadMedia = null; |
180 var _uploadOptions = null; | 187 var _uploadOptions = null; |
181 var _downloadOptions = commons.DownloadOptions.Metadata; | 188 var _downloadOptions = commons.DownloadOptions.Metadata; |
182 var _body = null; | 189 var _body = null; |
183 | 190 |
184 if (request != null) { | 191 if (request != null) { |
185 _body = convert.JSON.encode((request).toJson()); | 192 _body = convert.JSON.encode((request).toJson()); |
186 } | 193 } |
187 if (project == null) { | 194 if (project == null) { |
188 throw new core.ArgumentError("Parameter project is required."); | 195 throw new core.ArgumentError("Parameter project is required."); |
189 } | 196 } |
190 if (zone == null) { | 197 if (zone == null) { |
191 throw new core.ArgumentError("Parameter zone is required."); | 198 throw new core.ArgumentError("Parameter zone is required."); |
192 } | 199 } |
193 | 200 |
194 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap
er.ecapeVariable('$zone') + '/rollingUpdates'; | 201 _url = commons.Escaper.ecapeVariable('$project') + |
| 202 '/zones/' + |
| 203 commons.Escaper.ecapeVariable('$zone') + |
| 204 '/rollingUpdates'; |
195 | 205 |
196 var _response = _requester.request(_url, | 206 var _response = _requester.request(_url, "POST", |
197 "POST", | 207 body: _body, |
198 body: _body, | 208 queryParams: _queryParams, |
199 queryParams: _queryParams, | 209 uploadOptions: _uploadOptions, |
200 uploadOptions: _uploadOptions, | 210 uploadMedia: _uploadMedia, |
201 uploadMedia: _uploadMedia, | 211 downloadOptions: _downloadOptions); |
202 downloadOptions: _downloadOptions); | |
203 return _response.then((data) => new Operation.fromJson(data)); | 212 return _response.then((data) => new Operation.fromJson(data)); |
204 } | 213 } |
205 | 214 |
206 /** | 215 /// Lists recent updates for a given managed instance group, in reverse |
207 * Lists recent updates for a given managed instance group, in reverse | 216 /// chronological order and paginated format. |
208 * chronological order and paginated format. | 217 /// |
209 * | 218 /// Request parameters: |
210 * Request parameters: | 219 /// |
211 * | 220 /// [project] - The Google Developers Console project name. |
212 * [project] - The Google Developers Console project name. | 221 /// Value must have pattern |
213 * Value must have pattern | 222 /// "(?:(?:[-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])?))". |
214 * "(?:(?:[-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])?))". | 223 /// |
215 * | 224 /// [zone] - The name of the zone in which the update's target resides. |
216 * [zone] - The name of the zone in which the update's target resides. | 225 /// |
217 * | 226 /// [filter] - Optional. Filter expression for filtering listed resources. |
218 * [filter] - Optional. Filter expression for filtering listed resources. | 227 /// |
219 * | 228 /// [maxResults] - Optional. Maximum count of results to be returned. Maximum |
220 * [maxResults] - Optional. Maximum count of results to be returned. Maximum | 229 /// value is 500 and default value is 500. |
221 * value is 500 and default value is 500. | 230 /// Value must be between "0" and "500". |
222 * Value must be between "0" and "500". | 231 /// |
223 * | 232 /// [pageToken] - Optional. Tag returned by a previous list request truncated |
224 * [pageToken] - Optional. Tag returned by a previous list request truncated | 233 /// by maxResults. Used to continue a previous list request. |
225 * by maxResults. Used to continue a previous list request. | 234 /// |
226 * | 235 /// Completes with a [RollingUpdateList]. |
227 * Completes with a [RollingUpdateList]. | 236 /// |
228 * | 237 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
229 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 238 /// an error. |
230 * error. | 239 /// |
231 * | 240 /// If the used [http.Client] completes with an error when making a REST |
232 * If the used [http.Client] completes with an error when making a REST call, | 241 /// call, this method will complete with the same error. |
233 * this method will complete with the same error. | 242 async.Future<RollingUpdateList> list(core.String project, core.String zone, |
234 */ | 243 {core.String filter, core.int maxResults, core.String pageToken}) { |
235 async.Future<RollingUpdateList> list(core.String project, core.String zone, {c
ore.String filter, core.int maxResults, core.String pageToken}) { | |
236 var _url = null; | 244 var _url = null; |
237 var _queryParams = new core.Map(); | 245 var _queryParams = new core.Map(); |
238 var _uploadMedia = null; | 246 var _uploadMedia = null; |
239 var _uploadOptions = null; | 247 var _uploadOptions = null; |
240 var _downloadOptions = commons.DownloadOptions.Metadata; | 248 var _downloadOptions = commons.DownloadOptions.Metadata; |
241 var _body = null; | 249 var _body = null; |
242 | 250 |
243 if (project == null) { | 251 if (project == null) { |
244 throw new core.ArgumentError("Parameter project is required."); | 252 throw new core.ArgumentError("Parameter project is required."); |
245 } | 253 } |
246 if (zone == null) { | 254 if (zone == null) { |
247 throw new core.ArgumentError("Parameter zone is required."); | 255 throw new core.ArgumentError("Parameter zone is required."); |
248 } | 256 } |
249 if (filter != null) { | 257 if (filter != null) { |
250 _queryParams["filter"] = [filter]; | 258 _queryParams["filter"] = [filter]; |
251 } | 259 } |
252 if (maxResults != null) { | 260 if (maxResults != null) { |
253 _queryParams["maxResults"] = ["${maxResults}"]; | 261 _queryParams["maxResults"] = ["${maxResults}"]; |
254 } | 262 } |
255 if (pageToken != null) { | 263 if (pageToken != null) { |
256 _queryParams["pageToken"] = [pageToken]; | 264 _queryParams["pageToken"] = [pageToken]; |
257 } | 265 } |
258 | 266 |
259 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap
er.ecapeVariable('$zone') + '/rollingUpdates'; | 267 _url = commons.Escaper.ecapeVariable('$project') + |
| 268 '/zones/' + |
| 269 commons.Escaper.ecapeVariable('$zone') + |
| 270 '/rollingUpdates'; |
260 | 271 |
261 var _response = _requester.request(_url, | 272 var _response = _requester.request(_url, "GET", |
262 "GET", | 273 body: _body, |
263 body: _body, | 274 queryParams: _queryParams, |
264 queryParams: _queryParams, | 275 uploadOptions: _uploadOptions, |
265 uploadOptions: _uploadOptions, | 276 uploadMedia: _uploadMedia, |
266 uploadMedia: _uploadMedia, | 277 downloadOptions: _downloadOptions); |
267 downloadOptions: _downloadOptions); | |
268 return _response.then((data) => new RollingUpdateList.fromJson(data)); | 278 return _response.then((data) => new RollingUpdateList.fromJson(data)); |
269 } | 279 } |
270 | 280 |
271 /** | 281 /// Lists the current status for each instance within a given update. |
272 * Lists the current status for each instance within a given update. | 282 /// |
273 * | 283 /// Request parameters: |
274 * Request parameters: | 284 /// |
275 * | 285 /// [project] - The Google Developers Console project name. |
276 * [project] - The Google Developers Console project name. | 286 /// Value must have pattern |
277 * Value must have pattern | 287 /// "(?:(?:[-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])?))". |
278 * "(?:(?:[-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])?))". | 288 /// |
279 * | 289 /// [zone] - The name of the zone in which the update's target resides. |
280 * [zone] - The name of the zone in which the update's target resides. | 290 /// |
281 * | 291 /// [rollingUpdate] - The name of the update. |
282 * [rollingUpdate] - The name of the update. | 292 /// |
283 * | 293 /// [filter] - Optional. Filter expression for filtering listed resources. |
284 * [filter] - Optional. Filter expression for filtering listed resources. | 294 /// |
285 * | 295 /// [maxResults] - Optional. Maximum count of results to be returned. Maximum |
286 * [maxResults] - Optional. Maximum count of results to be returned. Maximum | 296 /// value is 500 and default value is 500. |
287 * value is 500 and default value is 500. | 297 /// Value must be between "0" and "500". |
288 * Value must be between "0" and "500". | 298 /// |
289 * | 299 /// [pageToken] - Optional. Tag returned by a previous list request truncated |
290 * [pageToken] - Optional. Tag returned by a previous list request truncated | 300 /// by maxResults. Used to continue a previous list request. |
291 * by maxResults. Used to continue a previous list request. | 301 /// |
292 * | 302 /// Completes with a [InstanceUpdateList]. |
293 * Completes with a [InstanceUpdateList]. | 303 /// |
294 * | 304 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
295 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 305 /// an error. |
296 * error. | 306 /// |
297 * | 307 /// If the used [http.Client] completes with an error when making a REST |
298 * If the used [http.Client] completes with an error when making a REST call, | 308 /// call, this method will complete with the same error. |
299 * this method will complete with the same error. | 309 async.Future<InstanceUpdateList> listInstanceUpdates( |
300 */ | 310 core.String project, core.String zone, core.String rollingUpdate, |
301 async.Future<InstanceUpdateList> listInstanceUpdates(core.String project, core
.String zone, core.String rollingUpdate, {core.String filter, core.int maxResult
s, core.String pageToken}) { | 311 {core.String filter, core.int maxResults, core.String pageToken}) { |
302 var _url = null; | 312 var _url = null; |
303 var _queryParams = new core.Map(); | 313 var _queryParams = new core.Map(); |
304 var _uploadMedia = null; | 314 var _uploadMedia = null; |
305 var _uploadOptions = null; | 315 var _uploadOptions = null; |
306 var _downloadOptions = commons.DownloadOptions.Metadata; | 316 var _downloadOptions = commons.DownloadOptions.Metadata; |
307 var _body = null; | 317 var _body = null; |
308 | 318 |
309 if (project == null) { | 319 if (project == null) { |
310 throw new core.ArgumentError("Parameter project is required."); | 320 throw new core.ArgumentError("Parameter project is required."); |
311 } | 321 } |
312 if (zone == null) { | 322 if (zone == null) { |
313 throw new core.ArgumentError("Parameter zone is required."); | 323 throw new core.ArgumentError("Parameter zone is required."); |
314 } | 324 } |
315 if (rollingUpdate == null) { | 325 if (rollingUpdate == null) { |
316 throw new core.ArgumentError("Parameter rollingUpdate is required."); | 326 throw new core.ArgumentError("Parameter rollingUpdate is required."); |
317 } | 327 } |
318 if (filter != null) { | 328 if (filter != null) { |
319 _queryParams["filter"] = [filter]; | 329 _queryParams["filter"] = [filter]; |
320 } | 330 } |
321 if (maxResults != null) { | 331 if (maxResults != null) { |
322 _queryParams["maxResults"] = ["${maxResults}"]; | 332 _queryParams["maxResults"] = ["${maxResults}"]; |
323 } | 333 } |
324 if (pageToken != null) { | 334 if (pageToken != null) { |
325 _queryParams["pageToken"] = [pageToken]; | 335 _queryParams["pageToken"] = [pageToken]; |
326 } | 336 } |
327 | 337 |
328 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap
er.ecapeVariable('$zone') + '/rollingUpdates/' + commons.Escaper.ecapeVariable('
$rollingUpdate') + '/instanceUpdates'; | 338 _url = commons.Escaper.ecapeVariable('$project') + |
| 339 '/zones/' + |
| 340 commons.Escaper.ecapeVariable('$zone') + |
| 341 '/rollingUpdates/' + |
| 342 commons.Escaper.ecapeVariable('$rollingUpdate') + |
| 343 '/instanceUpdates'; |
329 | 344 |
330 var _response = _requester.request(_url, | 345 var _response = _requester.request(_url, "GET", |
331 "GET", | 346 body: _body, |
332 body: _body, | 347 queryParams: _queryParams, |
333 queryParams: _queryParams, | 348 uploadOptions: _uploadOptions, |
334 uploadOptions: _uploadOptions, | 349 uploadMedia: _uploadMedia, |
335 uploadMedia: _uploadMedia, | 350 downloadOptions: _downloadOptions); |
336 downloadOptions: _downloadOptions); | |
337 return _response.then((data) => new InstanceUpdateList.fromJson(data)); | 351 return _response.then((data) => new InstanceUpdateList.fromJson(data)); |
338 } | 352 } |
339 | 353 |
340 /** | 354 /// Pauses the update in state from ROLLING_FORWARD or ROLLING_BACK. Has no |
341 * Pauses the update in state from ROLLING_FORWARD or ROLLING_BACK. Has no | 355 /// effect if invoked when the state of the update is PAUSED. |
342 * effect if invoked when the state of the update is PAUSED. | 356 /// |
343 * | 357 /// Request parameters: |
344 * Request parameters: | 358 /// |
345 * | 359 /// [project] - The Google Developers Console project name. |
346 * [project] - The Google Developers Console project name. | 360 /// Value must have pattern |
347 * Value must have pattern | 361 /// "(?:(?:[-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])?))". |
348 * "(?:(?:[-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])?))". | 362 /// |
349 * | 363 /// [zone] - The name of the zone in which the update's target resides. |
350 * [zone] - The name of the zone in which the update's target resides. | 364 /// |
351 * | 365 /// [rollingUpdate] - The name of the update. |
352 * [rollingUpdate] - The name of the update. | 366 /// |
353 * | 367 /// Completes with a [Operation]. |
354 * Completes with a [Operation]. | 368 /// |
355 * | 369 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
356 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 370 /// an error. |
357 * error. | 371 /// |
358 * | 372 /// If the used [http.Client] completes with an error when making a REST |
359 * If the used [http.Client] completes with an error when making a REST call, | 373 /// call, this method will complete with the same error. |
360 * this method will complete with the same error. | 374 async.Future<Operation> pause( |
361 */ | 375 core.String project, core.String zone, core.String rollingUpdate) { |
362 async.Future<Operation> pause(core.String project, core.String zone, core.Stri
ng rollingUpdate) { | |
363 var _url = null; | 376 var _url = null; |
364 var _queryParams = new core.Map(); | 377 var _queryParams = new core.Map(); |
365 var _uploadMedia = null; | 378 var _uploadMedia = null; |
366 var _uploadOptions = null; | 379 var _uploadOptions = null; |
367 var _downloadOptions = commons.DownloadOptions.Metadata; | 380 var _downloadOptions = commons.DownloadOptions.Metadata; |
368 var _body = null; | 381 var _body = null; |
369 | 382 |
370 if (project == null) { | 383 if (project == null) { |
371 throw new core.ArgumentError("Parameter project is required."); | 384 throw new core.ArgumentError("Parameter project is required."); |
372 } | 385 } |
373 if (zone == null) { | 386 if (zone == null) { |
374 throw new core.ArgumentError("Parameter zone is required."); | 387 throw new core.ArgumentError("Parameter zone is required."); |
375 } | 388 } |
376 if (rollingUpdate == null) { | 389 if (rollingUpdate == null) { |
377 throw new core.ArgumentError("Parameter rollingUpdate is required."); | 390 throw new core.ArgumentError("Parameter rollingUpdate is required."); |
378 } | 391 } |
379 | 392 |
380 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap
er.ecapeVariable('$zone') + '/rollingUpdates/' + commons.Escaper.ecapeVariable('
$rollingUpdate') + '/pause'; | 393 _url = commons.Escaper.ecapeVariable('$project') + |
| 394 '/zones/' + |
| 395 commons.Escaper.ecapeVariable('$zone') + |
| 396 '/rollingUpdates/' + |
| 397 commons.Escaper.ecapeVariable('$rollingUpdate') + |
| 398 '/pause'; |
381 | 399 |
382 var _response = _requester.request(_url, | 400 var _response = _requester.request(_url, "POST", |
383 "POST", | 401 body: _body, |
384 body: _body, | 402 queryParams: _queryParams, |
385 queryParams: _queryParams, | 403 uploadOptions: _uploadOptions, |
386 uploadOptions: _uploadOptions, | 404 uploadMedia: _uploadMedia, |
387 uploadMedia: _uploadMedia, | 405 downloadOptions: _downloadOptions); |
388 downloadOptions: _downloadOptions); | |
389 return _response.then((data) => new Operation.fromJson(data)); | 406 return _response.then((data) => new Operation.fromJson(data)); |
390 } | 407 } |
391 | 408 |
392 /** | 409 /// Continues an update in PAUSED state. Has no effect if invoked when the |
393 * Continues an update in PAUSED state. Has no effect if invoked when the | 410 /// state of the update is ROLLED_OUT. |
394 * state of the update is ROLLED_OUT. | 411 /// |
395 * | 412 /// Request parameters: |
396 * Request parameters: | 413 /// |
397 * | 414 /// [project] - The Google Developers Console project name. |
398 * [project] - The Google Developers Console project name. | 415 /// Value must have pattern |
399 * Value must have pattern | 416 /// "(?:(?:[-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])?))". |
400 * "(?:(?:[-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])?))". | 417 /// |
401 * | 418 /// [zone] - The name of the zone in which the update's target resides. |
402 * [zone] - The name of the zone in which the update's target resides. | 419 /// |
403 * | 420 /// [rollingUpdate] - The name of the update. |
404 * [rollingUpdate] - The name of the update. | 421 /// |
405 * | 422 /// Completes with a [Operation]. |
406 * Completes with a [Operation]. | 423 /// |
407 * | 424 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
408 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 425 /// an error. |
409 * error. | 426 /// |
410 * | 427 /// If the used [http.Client] completes with an error when making a REST |
411 * If the used [http.Client] completes with an error when making a REST call, | 428 /// call, this method will complete with the same error. |
412 * this method will complete with the same error. | 429 async.Future<Operation> resume( |
413 */ | 430 core.String project, core.String zone, core.String rollingUpdate) { |
414 async.Future<Operation> resume(core.String project, core.String zone, core.Str
ing rollingUpdate) { | |
415 var _url = null; | 431 var _url = null; |
416 var _queryParams = new core.Map(); | 432 var _queryParams = new core.Map(); |
417 var _uploadMedia = null; | 433 var _uploadMedia = null; |
418 var _uploadOptions = null; | 434 var _uploadOptions = null; |
419 var _downloadOptions = commons.DownloadOptions.Metadata; | 435 var _downloadOptions = commons.DownloadOptions.Metadata; |
420 var _body = null; | 436 var _body = null; |
421 | 437 |
422 if (project == null) { | 438 if (project == null) { |
423 throw new core.ArgumentError("Parameter project is required."); | 439 throw new core.ArgumentError("Parameter project is required."); |
424 } | 440 } |
425 if (zone == null) { | 441 if (zone == null) { |
426 throw new core.ArgumentError("Parameter zone is required."); | 442 throw new core.ArgumentError("Parameter zone is required."); |
427 } | 443 } |
428 if (rollingUpdate == null) { | 444 if (rollingUpdate == null) { |
429 throw new core.ArgumentError("Parameter rollingUpdate is required."); | 445 throw new core.ArgumentError("Parameter rollingUpdate is required."); |
430 } | 446 } |
431 | 447 |
432 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap
er.ecapeVariable('$zone') + '/rollingUpdates/' + commons.Escaper.ecapeVariable('
$rollingUpdate') + '/resume'; | 448 _url = commons.Escaper.ecapeVariable('$project') + |
| 449 '/zones/' + |
| 450 commons.Escaper.ecapeVariable('$zone') + |
| 451 '/rollingUpdates/' + |
| 452 commons.Escaper.ecapeVariable('$rollingUpdate') + |
| 453 '/resume'; |
433 | 454 |
434 var _response = _requester.request(_url, | 455 var _response = _requester.request(_url, "POST", |
435 "POST", | 456 body: _body, |
436 body: _body, | 457 queryParams: _queryParams, |
437 queryParams: _queryParams, | 458 uploadOptions: _uploadOptions, |
438 uploadOptions: _uploadOptions, | 459 uploadMedia: _uploadMedia, |
439 uploadMedia: _uploadMedia, | 460 downloadOptions: _downloadOptions); |
440 downloadOptions: _downloadOptions); | |
441 return _response.then((data) => new Operation.fromJson(data)); | 461 return _response.then((data) => new Operation.fromJson(data)); |
442 } | 462 } |
443 | 463 |
444 /** | 464 /// Rolls back the update in state from ROLLING_FORWARD or PAUSED. Has no |
445 * Rolls back the update in state from ROLLING_FORWARD or PAUSED. Has no | 465 /// effect if invoked when the state of the update is ROLLED_BACK. |
446 * effect if invoked when the state of the update is ROLLED_BACK. | 466 /// |
447 * | 467 /// Request parameters: |
448 * Request parameters: | 468 /// |
449 * | 469 /// [project] - The Google Developers Console project name. |
450 * [project] - The Google Developers Console project name. | 470 /// Value must have pattern |
451 * Value must have pattern | 471 /// "(?:(?:[-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])?))". |
452 * "(?:(?:[-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])?))". | 472 /// |
453 * | 473 /// [zone] - The name of the zone in which the update's target resides. |
454 * [zone] - The name of the zone in which the update's target resides. | 474 /// |
455 * | 475 /// [rollingUpdate] - The name of the update. |
456 * [rollingUpdate] - The name of the update. | 476 /// |
457 * | 477 /// Completes with a [Operation]. |
458 * Completes with a [Operation]. | 478 /// |
459 * | 479 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
460 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 480 /// an error. |
461 * error. | 481 /// |
462 * | 482 /// If the used [http.Client] completes with an error when making a REST |
463 * If the used [http.Client] completes with an error when making a REST call, | 483 /// call, this method will complete with the same error. |
464 * this method will complete with the same error. | 484 async.Future<Operation> rollback( |
465 */ | 485 core.String project, core.String zone, core.String rollingUpdate) { |
466 async.Future<Operation> rollback(core.String project, core.String zone, core.S
tring rollingUpdate) { | |
467 var _url = null; | 486 var _url = null; |
468 var _queryParams = new core.Map(); | 487 var _queryParams = new core.Map(); |
469 var _uploadMedia = null; | 488 var _uploadMedia = null; |
470 var _uploadOptions = null; | 489 var _uploadOptions = null; |
471 var _downloadOptions = commons.DownloadOptions.Metadata; | 490 var _downloadOptions = commons.DownloadOptions.Metadata; |
472 var _body = null; | 491 var _body = null; |
473 | 492 |
474 if (project == null) { | 493 if (project == null) { |
475 throw new core.ArgumentError("Parameter project is required."); | 494 throw new core.ArgumentError("Parameter project is required."); |
476 } | 495 } |
477 if (zone == null) { | 496 if (zone == null) { |
478 throw new core.ArgumentError("Parameter zone is required."); | 497 throw new core.ArgumentError("Parameter zone is required."); |
479 } | 498 } |
480 if (rollingUpdate == null) { | 499 if (rollingUpdate == null) { |
481 throw new core.ArgumentError("Parameter rollingUpdate is required."); | 500 throw new core.ArgumentError("Parameter rollingUpdate is required."); |
482 } | 501 } |
483 | 502 |
484 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap
er.ecapeVariable('$zone') + '/rollingUpdates/' + commons.Escaper.ecapeVariable('
$rollingUpdate') + '/rollback'; | 503 _url = commons.Escaper.ecapeVariable('$project') + |
| 504 '/zones/' + |
| 505 commons.Escaper.ecapeVariable('$zone') + |
| 506 '/rollingUpdates/' + |
| 507 commons.Escaper.ecapeVariable('$rollingUpdate') + |
| 508 '/rollback'; |
485 | 509 |
486 var _response = _requester.request(_url, | 510 var _response = _requester.request(_url, "POST", |
487 "POST", | 511 body: _body, |
488 body: _body, | 512 queryParams: _queryParams, |
489 queryParams: _queryParams, | 513 uploadOptions: _uploadOptions, |
490 uploadOptions: _uploadOptions, | 514 uploadMedia: _uploadMedia, |
491 uploadMedia: _uploadMedia, | 515 downloadOptions: _downloadOptions); |
492 downloadOptions: _downloadOptions); | |
493 return _response.then((data) => new Operation.fromJson(data)); | 516 return _response.then((data) => new Operation.fromJson(data)); |
494 } | 517 } |
495 | |
496 } | 518 } |
497 | 519 |
498 | |
499 class ZoneOperationsResourceApi { | 520 class ZoneOperationsResourceApi { |
500 final commons.ApiRequester _requester; | 521 final commons.ApiRequester _requester; |
501 | 522 |
502 ZoneOperationsResourceApi(commons.ApiRequester client) : | 523 ZoneOperationsResourceApi(commons.ApiRequester client) : _requester = client; |
503 _requester = client; | |
504 | 524 |
505 /** | 525 /// Retrieves the specified zone-specific operation resource. |
506 * Retrieves the specified zone-specific operation resource. | 526 /// |
507 * | 527 /// Request parameters: |
508 * Request parameters: | 528 /// |
509 * | 529 /// [project] - Name of the project scoping this request. |
510 * [project] - Name of the project scoping this request. | 530 /// Value must have pattern |
511 * Value must have pattern | 531 /// "(?:(?:[-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])?))". |
512 * "(?:(?:[-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])?))". | 532 /// |
513 * | 533 /// [zone] - Name of the zone scoping this request. |
514 * [zone] - Name of the zone scoping this request. | 534 /// |
515 * | 535 /// [operation] - Name of the operation resource to return. |
516 * [operation] - Name of the operation resource to return. | 536 /// |
517 * | 537 /// Completes with a [Operation]. |
518 * Completes with a [Operation]. | 538 /// |
519 * | 539 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
520 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 540 /// an error. |
521 * error. | 541 /// |
522 * | 542 /// If the used [http.Client] completes with an error when making a REST |
523 * If the used [http.Client] completes with an error when making a REST call, | 543 /// call, this method will complete with the same error. |
524 * this method will complete with the same error. | 544 async.Future<Operation> get( |
525 */ | 545 core.String project, core.String zone, core.String operation) { |
526 async.Future<Operation> get(core.String project, core.String zone, core.String
operation) { | |
527 var _url = null; | 546 var _url = null; |
528 var _queryParams = new core.Map(); | 547 var _queryParams = new core.Map(); |
529 var _uploadMedia = null; | 548 var _uploadMedia = null; |
530 var _uploadOptions = null; | 549 var _uploadOptions = null; |
531 var _downloadOptions = commons.DownloadOptions.Metadata; | 550 var _downloadOptions = commons.DownloadOptions.Metadata; |
532 var _body = null; | 551 var _body = null; |
533 | 552 |
534 if (project == null) { | 553 if (project == null) { |
535 throw new core.ArgumentError("Parameter project is required."); | 554 throw new core.ArgumentError("Parameter project is required."); |
536 } | 555 } |
537 if (zone == null) { | 556 if (zone == null) { |
538 throw new core.ArgumentError("Parameter zone is required."); | 557 throw new core.ArgumentError("Parameter zone is required."); |
539 } | 558 } |
540 if (operation == null) { | 559 if (operation == null) { |
541 throw new core.ArgumentError("Parameter operation is required."); | 560 throw new core.ArgumentError("Parameter operation is required."); |
542 } | 561 } |
543 | 562 |
544 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap
er.ecapeVariable('$zone') + '/operations/' + commons.Escaper.ecapeVariable('$ope
ration'); | 563 _url = commons.Escaper.ecapeVariable('$project') + |
| 564 '/zones/' + |
| 565 commons.Escaper.ecapeVariable('$zone') + |
| 566 '/operations/' + |
| 567 commons.Escaper.ecapeVariable('$operation'); |
545 | 568 |
546 var _response = _requester.request(_url, | 569 var _response = _requester.request(_url, "GET", |
547 "GET", | 570 body: _body, |
548 body: _body, | 571 queryParams: _queryParams, |
549 queryParams: _queryParams, | 572 uploadOptions: _uploadOptions, |
550 uploadOptions: _uploadOptions, | 573 uploadMedia: _uploadMedia, |
551 uploadMedia: _uploadMedia, | 574 downloadOptions: _downloadOptions); |
552 downloadOptions: _downloadOptions); | |
553 return _response.then((data) => new Operation.fromJson(data)); | 575 return _response.then((data) => new Operation.fromJson(data)); |
554 } | 576 } |
555 | 577 |
556 /** | 578 /// Retrieves the list of Operation resources contained within the specified |
557 * Retrieves the list of Operation resources contained within the specified | 579 /// zone. |
558 * zone. | 580 /// |
559 * | 581 /// Request parameters: |
560 * Request parameters: | 582 /// |
561 * | 583 /// [project] - Name of the project scoping this request. |
562 * [project] - Name of the project scoping this request. | 584 /// Value must have pattern |
563 * Value must have pattern | 585 /// "(?:(?:[-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])?))". |
564 * "(?:(?:[-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])?))". | 586 /// |
565 * | 587 /// [zone] - Name of the zone scoping this request. |
566 * [zone] - Name of the zone scoping this request. | 588 /// |
567 * | 589 /// [filter] - Optional. Filter expression for filtering listed resources. |
568 * [filter] - Optional. Filter expression for filtering listed resources. | 590 /// |
569 * | 591 /// [maxResults] - Optional. Maximum count of results to be returned. Maximum |
570 * [maxResults] - Optional. Maximum count of results to be returned. Maximum | 592 /// value is 500 and default value is 500. |
571 * value is 500 and default value is 500. | 593 /// Value must be between "0" and "500". |
572 * Value must be between "0" and "500". | 594 /// |
573 * | 595 /// [pageToken] - Optional. Tag returned by a previous list request truncated |
574 * [pageToken] - Optional. Tag returned by a previous list request truncated | 596 /// by maxResults. Used to continue a previous list request. |
575 * by maxResults. Used to continue a previous list request. | 597 /// |
576 * | 598 /// Completes with a [OperationList]. |
577 * Completes with a [OperationList]. | 599 /// |
578 * | 600 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
579 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 601 /// an error. |
580 * error. | 602 /// |
581 * | 603 /// If the used [http.Client] completes with an error when making a REST |
582 * If the used [http.Client] completes with an error when making a REST call, | 604 /// call, this method will complete with the same error. |
583 * this method will complete with the same error. | 605 async.Future<OperationList> list(core.String project, core.String zone, |
584 */ | 606 {core.String filter, core.int maxResults, core.String pageToken}) { |
585 async.Future<OperationList> list(core.String project, core.String zone, {core.
String filter, core.int maxResults, core.String pageToken}) { | |
586 var _url = null; | 607 var _url = null; |
587 var _queryParams = new core.Map(); | 608 var _queryParams = new core.Map(); |
588 var _uploadMedia = null; | 609 var _uploadMedia = null; |
589 var _uploadOptions = null; | 610 var _uploadOptions = null; |
590 var _downloadOptions = commons.DownloadOptions.Metadata; | 611 var _downloadOptions = commons.DownloadOptions.Metadata; |
591 var _body = null; | 612 var _body = null; |
592 | 613 |
593 if (project == null) { | 614 if (project == null) { |
594 throw new core.ArgumentError("Parameter project is required."); | 615 throw new core.ArgumentError("Parameter project is required."); |
595 } | 616 } |
596 if (zone == null) { | 617 if (zone == null) { |
597 throw new core.ArgumentError("Parameter zone is required."); | 618 throw new core.ArgumentError("Parameter zone is required."); |
598 } | 619 } |
599 if (filter != null) { | 620 if (filter != null) { |
600 _queryParams["filter"] = [filter]; | 621 _queryParams["filter"] = [filter]; |
601 } | 622 } |
602 if (maxResults != null) { | 623 if (maxResults != null) { |
603 _queryParams["maxResults"] = ["${maxResults}"]; | 624 _queryParams["maxResults"] = ["${maxResults}"]; |
604 } | 625 } |
605 if (pageToken != null) { | 626 if (pageToken != null) { |
606 _queryParams["pageToken"] = [pageToken]; | 627 _queryParams["pageToken"] = [pageToken]; |
607 } | 628 } |
608 | 629 |
609 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap
er.ecapeVariable('$zone') + '/operations'; | 630 _url = commons.Escaper.ecapeVariable('$project') + |
| 631 '/zones/' + |
| 632 commons.Escaper.ecapeVariable('$zone') + |
| 633 '/operations'; |
610 | 634 |
611 var _response = _requester.request(_url, | 635 var _response = _requester.request(_url, "GET", |
612 "GET", | 636 body: _body, |
613 body: _body, | 637 queryParams: _queryParams, |
614 queryParams: _queryParams, | 638 uploadOptions: _uploadOptions, |
615 uploadOptions: _uploadOptions, | 639 uploadMedia: _uploadMedia, |
616 uploadMedia: _uploadMedia, | 640 downloadOptions: _downloadOptions); |
617 downloadOptions: _downloadOptions); | |
618 return _response.then((data) => new OperationList.fromJson(data)); | 641 return _response.then((data) => new OperationList.fromJson(data)); |
619 } | 642 } |
620 | |
621 } | 643 } |
622 | 644 |
| 645 class InstanceUpdateErrorErrors { |
| 646 /// [Output Only] The error type identifier for this error. |
| 647 core.String code; |
623 | 648 |
| 649 /// [Output Only] Indicates the field in the request that caused the error. |
| 650 /// This property is optional. |
| 651 core.String location; |
624 | 652 |
625 class InstanceUpdateErrorErrors { | 653 /// [Output Only] An optional, human-readable error message. |
626 /** [Output Only] The error type identifier for this error. */ | |
627 core.String code; | |
628 /** | |
629 * [Output Only] Indicates the field in the request that caused the error. | |
630 * This property is optional. | |
631 */ | |
632 core.String location; | |
633 /** [Output Only] An optional, human-readable error message. */ | |
634 core.String message; | 654 core.String message; |
635 | 655 |
636 InstanceUpdateErrorErrors(); | 656 InstanceUpdateErrorErrors(); |
637 | 657 |
638 InstanceUpdateErrorErrors.fromJson(core.Map _json) { | 658 InstanceUpdateErrorErrors.fromJson(core.Map _json) { |
639 if (_json.containsKey("code")) { | 659 if (_json.containsKey("code")) { |
640 code = _json["code"]; | 660 code = _json["code"]; |
641 } | 661 } |
642 if (_json.containsKey("location")) { | 662 if (_json.containsKey("location")) { |
643 location = _json["location"]; | 663 location = _json["location"]; |
644 } | 664 } |
645 if (_json.containsKey("message")) { | 665 if (_json.containsKey("message")) { |
646 message = _json["message"]; | 666 message = _json["message"]; |
647 } | 667 } |
648 } | 668 } |
649 | 669 |
650 core.Map<core.String, core.Object> toJson() { | 670 core.Map<core.String, core.Object> toJson() { |
651 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 671 final core.Map<core.String, core.Object> _json = |
| 672 new core.Map<core.String, core.Object>(); |
652 if (code != null) { | 673 if (code != null) { |
653 _json["code"] = code; | 674 _json["code"] = code; |
654 } | 675 } |
655 if (location != null) { | 676 if (location != null) { |
656 _json["location"] = location; | 677 _json["location"] = location; |
657 } | 678 } |
658 if (message != null) { | 679 if (message != null) { |
659 _json["message"] = message; | 680 _json["message"] = message; |
660 } | 681 } |
661 return _json; | 682 return _json; |
662 } | 683 } |
663 } | 684 } |
664 | 685 |
665 /** Errors that occurred during the instance update. */ | 686 /// Errors that occurred during the instance update. |
666 class InstanceUpdateError { | 687 class InstanceUpdateError { |
667 /** | 688 /// [Output Only] The array of errors encountered while processing this |
668 * [Output Only] The array of errors encountered while processing this | 689 /// operation. |
669 * operation. | |
670 */ | |
671 core.List<InstanceUpdateErrorErrors> errors; | 690 core.List<InstanceUpdateErrorErrors> errors; |
672 | 691 |
673 InstanceUpdateError(); | 692 InstanceUpdateError(); |
674 | 693 |
675 InstanceUpdateError.fromJson(core.Map _json) { | 694 InstanceUpdateError.fromJson(core.Map _json) { |
676 if (_json.containsKey("errors")) { | 695 if (_json.containsKey("errors")) { |
677 errors = _json["errors"].map((value) => new InstanceUpdateErrorErrors.from
Json(value)).toList(); | 696 errors = _json["errors"] |
| 697 .map((value) => new InstanceUpdateErrorErrors.fromJson(value)) |
| 698 .toList(); |
678 } | 699 } |
679 } | 700 } |
680 | 701 |
681 core.Map<core.String, core.Object> toJson() { | 702 core.Map<core.String, core.Object> toJson() { |
682 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 703 final core.Map<core.String, core.Object> _json = |
| 704 new core.Map<core.String, core.Object>(); |
683 if (errors != null) { | 705 if (errors != null) { |
684 _json["errors"] = errors.map((value) => (value).toJson()).toList(); | 706 _json["errors"] = errors.map((value) => (value).toJson()).toList(); |
685 } | 707 } |
686 return _json; | 708 return _json; |
687 } | 709 } |
688 } | 710 } |
689 | 711 |
690 /** Update of a single instance. */ | 712 /// Update of a single instance. |
691 class InstanceUpdate { | 713 class InstanceUpdate { |
692 /** Errors that occurred during the instance update. */ | 714 /// Errors that occurred during the instance update. |
693 InstanceUpdateError error; | 715 InstanceUpdateError error; |
694 /** Fully-qualified URL of the instance being updated. */ | 716 |
| 717 /// Fully-qualified URL of the instance being updated. |
695 core.String instance; | 718 core.String instance; |
696 /** | 719 |
697 * Status of the instance update. Possible values are: | 720 /// Status of the instance update. Possible values are: |
698 * - "PENDING": The instance update is pending execution. | 721 /// - "PENDING": The instance update is pending execution. |
699 * - "ROLLING_FORWARD": The instance update is going forward. | 722 /// - "ROLLING_FORWARD": The instance update is going forward. |
700 * - "ROLLING_BACK": The instance update is being rolled back. | 723 /// - "ROLLING_BACK": The instance update is being rolled back. |
701 * - "PAUSED": The instance update is temporarily paused (inactive). | 724 /// - "PAUSED": The instance update is temporarily paused (inactive). |
702 * - "ROLLED_OUT": The instance update is finished, the instance is running | 725 /// - "ROLLED_OUT": The instance update is finished, the instance is running |
703 * the new template. | 726 /// the new template. |
704 * - "ROLLED_BACK": The instance update is finished, the instance has been | 727 /// - "ROLLED_BACK": The instance update is finished, the instance has been |
705 * reverted to the previous template. | 728 /// reverted to the previous template. |
706 * - "CANCELLED": The instance update is paused and no longer can be resumed, | 729 /// - "CANCELLED": The instance update is paused and no longer can be |
707 * undefined in which template the instance is running. | 730 /// resumed, undefined in which template the instance is running. |
708 */ | |
709 core.String status; | 731 core.String status; |
710 | 732 |
711 InstanceUpdate(); | 733 InstanceUpdate(); |
712 | 734 |
713 InstanceUpdate.fromJson(core.Map _json) { | 735 InstanceUpdate.fromJson(core.Map _json) { |
714 if (_json.containsKey("error")) { | 736 if (_json.containsKey("error")) { |
715 error = new InstanceUpdateError.fromJson(_json["error"]); | 737 error = new InstanceUpdateError.fromJson(_json["error"]); |
716 } | 738 } |
717 if (_json.containsKey("instance")) { | 739 if (_json.containsKey("instance")) { |
718 instance = _json["instance"]; | 740 instance = _json["instance"]; |
719 } | 741 } |
720 if (_json.containsKey("status")) { | 742 if (_json.containsKey("status")) { |
721 status = _json["status"]; | 743 status = _json["status"]; |
722 } | 744 } |
723 } | 745 } |
724 | 746 |
725 core.Map<core.String, core.Object> toJson() { | 747 core.Map<core.String, core.Object> toJson() { |
726 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 748 final core.Map<core.String, core.Object> _json = |
| 749 new core.Map<core.String, core.Object>(); |
727 if (error != null) { | 750 if (error != null) { |
728 _json["error"] = (error).toJson(); | 751 _json["error"] = (error).toJson(); |
729 } | 752 } |
730 if (instance != null) { | 753 if (instance != null) { |
731 _json["instance"] = instance; | 754 _json["instance"] = instance; |
732 } | 755 } |
733 if (status != null) { | 756 if (status != null) { |
734 _json["status"] = status; | 757 _json["status"] = status; |
735 } | 758 } |
736 return _json; | 759 return _json; |
737 } | 760 } |
738 } | 761 } |
739 | 762 |
740 /** Response returned by ListInstanceUpdates method. */ | 763 /// Response returned by ListInstanceUpdates method. |
741 class InstanceUpdateList { | 764 class InstanceUpdateList { |
742 /** Collection of requested instance updates. */ | 765 /// Collection of requested instance updates. |
743 core.List<InstanceUpdate> items; | 766 core.List<InstanceUpdate> items; |
744 /** [Output Only] Type of the resource. */ | 767 |
| 768 /// [Output Only] Type of the resource. |
745 core.String kind; | 769 core.String kind; |
746 /** A token used to continue a truncated list request. */ | 770 |
| 771 /// A token used to continue a truncated list request. |
747 core.String nextPageToken; | 772 core.String nextPageToken; |
748 /** [Output Only] The fully qualified URL for the resource. */ | 773 |
| 774 /// [Output Only] The fully qualified URL for the resource. |
749 core.String selfLink; | 775 core.String selfLink; |
750 | 776 |
751 InstanceUpdateList(); | 777 InstanceUpdateList(); |
752 | 778 |
753 InstanceUpdateList.fromJson(core.Map _json) { | 779 InstanceUpdateList.fromJson(core.Map _json) { |
754 if (_json.containsKey("items")) { | 780 if (_json.containsKey("items")) { |
755 items = _json["items"].map((value) => new InstanceUpdate.fromJson(value)).
toList(); | 781 items = _json["items"] |
| 782 .map((value) => new InstanceUpdate.fromJson(value)) |
| 783 .toList(); |
756 } | 784 } |
757 if (_json.containsKey("kind")) { | 785 if (_json.containsKey("kind")) { |
758 kind = _json["kind"]; | 786 kind = _json["kind"]; |
759 } | 787 } |
760 if (_json.containsKey("nextPageToken")) { | 788 if (_json.containsKey("nextPageToken")) { |
761 nextPageToken = _json["nextPageToken"]; | 789 nextPageToken = _json["nextPageToken"]; |
762 } | 790 } |
763 if (_json.containsKey("selfLink")) { | 791 if (_json.containsKey("selfLink")) { |
764 selfLink = _json["selfLink"]; | 792 selfLink = _json["selfLink"]; |
765 } | 793 } |
766 } | 794 } |
767 | 795 |
768 core.Map<core.String, core.Object> toJson() { | 796 core.Map<core.String, core.Object> toJson() { |
769 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 797 final core.Map<core.String, core.Object> _json = |
| 798 new core.Map<core.String, core.Object>(); |
770 if (items != null) { | 799 if (items != null) { |
771 _json["items"] = items.map((value) => (value).toJson()).toList(); | 800 _json["items"] = items.map((value) => (value).toJson()).toList(); |
772 } | 801 } |
773 if (kind != null) { | 802 if (kind != null) { |
774 _json["kind"] = kind; | 803 _json["kind"] = kind; |
775 } | 804 } |
776 if (nextPageToken != null) { | 805 if (nextPageToken != null) { |
777 _json["nextPageToken"] = nextPageToken; | 806 _json["nextPageToken"] = nextPageToken; |
778 } | 807 } |
779 if (selfLink != null) { | 808 if (selfLink != null) { |
780 _json["selfLink"] = selfLink; | 809 _json["selfLink"] = selfLink; |
781 } | 810 } |
782 return _json; | 811 return _json; |
783 } | 812 } |
784 } | 813 } |
785 | 814 |
786 class OperationErrorErrors { | 815 class OperationErrorErrors { |
787 /** [Output Only] The error type identifier for this error. */ | 816 /// [Output Only] The error type identifier for this error. |
788 core.String code; | 817 core.String code; |
789 /** | 818 |
790 * [Output Only] Indicates the field in the request that caused the error. | 819 /// [Output Only] Indicates the field in the request that caused the error. |
791 * This property is optional. | 820 /// This property is optional. |
792 */ | |
793 core.String location; | 821 core.String location; |
794 /** [Output Only] An optional, human-readable error message. */ | 822 |
| 823 /// [Output Only] An optional, human-readable error message. |
795 core.String message; | 824 core.String message; |
796 | 825 |
797 OperationErrorErrors(); | 826 OperationErrorErrors(); |
798 | 827 |
799 OperationErrorErrors.fromJson(core.Map _json) { | 828 OperationErrorErrors.fromJson(core.Map _json) { |
800 if (_json.containsKey("code")) { | 829 if (_json.containsKey("code")) { |
801 code = _json["code"]; | 830 code = _json["code"]; |
802 } | 831 } |
803 if (_json.containsKey("location")) { | 832 if (_json.containsKey("location")) { |
804 location = _json["location"]; | 833 location = _json["location"]; |
805 } | 834 } |
806 if (_json.containsKey("message")) { | 835 if (_json.containsKey("message")) { |
807 message = _json["message"]; | 836 message = _json["message"]; |
808 } | 837 } |
809 } | 838 } |
810 | 839 |
811 core.Map<core.String, core.Object> toJson() { | 840 core.Map<core.String, core.Object> toJson() { |
812 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 841 final core.Map<core.String, core.Object> _json = |
| 842 new core.Map<core.String, core.Object>(); |
813 if (code != null) { | 843 if (code != null) { |
814 _json["code"] = code; | 844 _json["code"] = code; |
815 } | 845 } |
816 if (location != null) { | 846 if (location != null) { |
817 _json["location"] = location; | 847 _json["location"] = location; |
818 } | 848 } |
819 if (message != null) { | 849 if (message != null) { |
820 _json["message"] = message; | 850 _json["message"] = message; |
821 } | 851 } |
822 return _json; | 852 return _json; |
823 } | 853 } |
824 } | 854 } |
825 | 855 |
826 /** | 856 /// [Output Only] If errors occurred during processing of this operation, this |
827 * [Output Only] If errors occurred during processing of this operation, this | 857 /// field will be populated. |
828 * field will be populated. | |
829 */ | |
830 class OperationError { | 858 class OperationError { |
831 /** | 859 /// [Output Only] The array of errors encountered while processing this |
832 * [Output Only] The array of errors encountered while processing this | 860 /// operation. |
833 * operation. | |
834 */ | |
835 core.List<OperationErrorErrors> errors; | 861 core.List<OperationErrorErrors> errors; |
836 | 862 |
837 OperationError(); | 863 OperationError(); |
838 | 864 |
839 OperationError.fromJson(core.Map _json) { | 865 OperationError.fromJson(core.Map _json) { |
840 if (_json.containsKey("errors")) { | 866 if (_json.containsKey("errors")) { |
841 errors = _json["errors"].map((value) => new OperationErrorErrors.fromJson(
value)).toList(); | 867 errors = _json["errors"] |
| 868 .map((value) => new OperationErrorErrors.fromJson(value)) |
| 869 .toList(); |
842 } | 870 } |
843 } | 871 } |
844 | 872 |
845 core.Map<core.String, core.Object> toJson() { | 873 core.Map<core.String, core.Object> toJson() { |
846 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 874 final core.Map<core.String, core.Object> _json = |
| 875 new core.Map<core.String, core.Object>(); |
847 if (errors != null) { | 876 if (errors != null) { |
848 _json["errors"] = errors.map((value) => (value).toJson()).toList(); | 877 _json["errors"] = errors.map((value) => (value).toJson()).toList(); |
849 } | 878 } |
850 return _json; | 879 return _json; |
851 } | 880 } |
852 } | 881 } |
853 | 882 |
854 class OperationWarningsData { | 883 class OperationWarningsData { |
855 /** [Output Only] Metadata key for this warning. */ | 884 /// [Output Only] Metadata key for this warning. |
856 core.String key; | 885 core.String key; |
857 /** [Output Only] Metadata value for this warning. */ | 886 |
| 887 /// [Output Only] Metadata value for this warning. |
858 core.String value; | 888 core.String value; |
859 | 889 |
860 OperationWarningsData(); | 890 OperationWarningsData(); |
861 | 891 |
862 OperationWarningsData.fromJson(core.Map _json) { | 892 OperationWarningsData.fromJson(core.Map _json) { |
863 if (_json.containsKey("key")) { | 893 if (_json.containsKey("key")) { |
864 key = _json["key"]; | 894 key = _json["key"]; |
865 } | 895 } |
866 if (_json.containsKey("value")) { | 896 if (_json.containsKey("value")) { |
867 value = _json["value"]; | 897 value = _json["value"]; |
868 } | 898 } |
869 } | 899 } |
870 | 900 |
871 core.Map<core.String, core.Object> toJson() { | 901 core.Map<core.String, core.Object> toJson() { |
872 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 902 final core.Map<core.String, core.Object> _json = |
| 903 new core.Map<core.String, core.Object>(); |
873 if (key != null) { | 904 if (key != null) { |
874 _json["key"] = key; | 905 _json["key"] = key; |
875 } | 906 } |
876 if (value != null) { | 907 if (value != null) { |
877 _json["value"] = value; | 908 _json["value"] = value; |
878 } | 909 } |
879 return _json; | 910 return _json; |
880 } | 911 } |
881 } | 912 } |
882 | 913 |
883 class OperationWarnings { | 914 class OperationWarnings { |
884 /** [Output only] The warning type identifier for this warning. */ | 915 /// [Output only] The warning type identifier for this warning. |
885 core.String code; | 916 core.String code; |
886 /** [Output only] Metadata for this warning in key:value format. */ | 917 |
| 918 /// [Output only] Metadata for this warning in key:value format. |
887 core.List<OperationWarningsData> data; | 919 core.List<OperationWarningsData> data; |
888 /** [Output only] Optional human-readable details for this warning. */ | 920 |
| 921 /// [Output only] Optional human-readable details for this warning. |
889 core.String message; | 922 core.String message; |
890 | 923 |
891 OperationWarnings(); | 924 OperationWarnings(); |
892 | 925 |
893 OperationWarnings.fromJson(core.Map _json) { | 926 OperationWarnings.fromJson(core.Map _json) { |
894 if (_json.containsKey("code")) { | 927 if (_json.containsKey("code")) { |
895 code = _json["code"]; | 928 code = _json["code"]; |
896 } | 929 } |
897 if (_json.containsKey("data")) { | 930 if (_json.containsKey("data")) { |
898 data = _json["data"].map((value) => new OperationWarningsData.fromJson(val
ue)).toList(); | 931 data = _json["data"] |
| 932 .map((value) => new OperationWarningsData.fromJson(value)) |
| 933 .toList(); |
899 } | 934 } |
900 if (_json.containsKey("message")) { | 935 if (_json.containsKey("message")) { |
901 message = _json["message"]; | 936 message = _json["message"]; |
902 } | 937 } |
903 } | 938 } |
904 | 939 |
905 core.Map<core.String, core.Object> toJson() { | 940 core.Map<core.String, core.Object> toJson() { |
906 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 941 final core.Map<core.String, core.Object> _json = |
| 942 new core.Map<core.String, core.Object>(); |
907 if (code != null) { | 943 if (code != null) { |
908 _json["code"] = code; | 944 _json["code"] = code; |
909 } | 945 } |
910 if (data != null) { | 946 if (data != null) { |
911 _json["data"] = data.map((value) => (value).toJson()).toList(); | 947 _json["data"] = data.map((value) => (value).toJson()).toList(); |
912 } | 948 } |
913 if (message != null) { | 949 if (message != null) { |
914 _json["message"] = message; | 950 _json["message"] = message; |
915 } | 951 } |
916 return _json; | 952 return _json; |
917 } | 953 } |
918 } | 954 } |
919 | 955 |
920 /** An operation resource, used to manage asynchronous API requests. */ | 956 /// An operation resource, used to manage asynchronous API requests. |
921 class Operation { | 957 class Operation { |
922 core.String clientOperationId; | 958 core.String clientOperationId; |
923 /** [Output Only] Creation timestamp in RFC3339 text format. */ | 959 |
| 960 /// [Output Only] Creation timestamp in RFC3339 text format. |
924 core.String creationTimestamp; | 961 core.String creationTimestamp; |
925 core.String endTime; | 962 core.String endTime; |
926 /** | 963 |
927 * [Output Only] If errors occurred during processing of this operation, this | 964 /// [Output Only] If errors occurred during processing of this operation, |
928 * field will be populated. | 965 /// this field will be populated. |
929 */ | |
930 OperationError error; | 966 OperationError error; |
931 core.String httpErrorMessage; | 967 core.String httpErrorMessage; |
932 core.int httpErrorStatusCode; | 968 core.int httpErrorStatusCode; |
933 /** | 969 |
934 * [Output Only] Unique identifier for the resource; defined by the server. | 970 /// [Output Only] Unique identifier for the resource; defined by the server. |
935 */ | |
936 core.String id; | 971 core.String id; |
937 /** | 972 |
938 * [Output Only] The time that this operation was requested. This is in RFC | 973 /// [Output Only] The time that this operation was requested. This is in RFC |
939 * 3339 format. | 974 /// 3339 format. |
940 */ | |
941 core.String insertTime; | 975 core.String insertTime; |
942 /** | 976 |
943 * [Output Only] Type of the resource. Always replicapoolupdater#operation for | 977 /// [Output Only] Type of the resource. Always replicapoolupdater#operation |
944 * Operation resources. | 978 /// for Operation resources. |
945 */ | |
946 core.String kind; | 979 core.String kind; |
947 /** [Output Only] Name of the resource. */ | 980 |
| 981 /// [Output Only] Name of the resource. |
948 core.String name; | 982 core.String name; |
949 core.String operationType; | 983 core.String operationType; |
950 core.int progress; | 984 core.int progress; |
951 /** [Output Only] URL of the region where the operation resides. */ | 985 |
| 986 /// [Output Only] URL of the region where the operation resides. |
952 core.String region; | 987 core.String region; |
953 /** [Output Only] The fully qualified URL for the resource. */ | 988 |
| 989 /// [Output Only] The fully qualified URL for the resource. |
954 core.String selfLink; | 990 core.String selfLink; |
955 /** | 991 |
956 * [Output Only] The time that this operation was started by the server. This | 992 /// [Output Only] The time that this operation was started by the server. |
957 * is in RFC 3339 format. | 993 /// This is in RFC 3339 format. |
958 */ | |
959 core.String startTime; | 994 core.String startTime; |
960 /** | 995 |
961 * [Output Only] Status of the operation. Can be one of the following: | 996 /// [Output Only] Status of the operation. Can be one of the following: |
962 * "PENDING", "RUNNING", or "DONE". | 997 /// "PENDING", "RUNNING", or "DONE". |
963 */ | |
964 core.String status; | 998 core.String status; |
965 /** | 999 |
966 * [Output Only] An optional textual description of the current status of the | 1000 /// [Output Only] An optional textual description of the current status of |
967 * operation. | 1001 /// the operation. |
968 */ | |
969 core.String statusMessage; | 1002 core.String statusMessage; |
970 /** | 1003 |
971 * [Output Only] Unique target id which identifies a particular incarnation of | 1004 /// [Output Only] Unique target id which identifies a particular incarnation |
972 * the target. | 1005 /// of the target. |
973 */ | |
974 core.String targetId; | 1006 core.String targetId; |
975 /** [Output Only] URL of the resource the operation is mutating. */ | 1007 |
| 1008 /// [Output Only] URL of the resource the operation is mutating. |
976 core.String targetLink; | 1009 core.String targetLink; |
977 core.String user; | 1010 core.String user; |
978 core.List<OperationWarnings> warnings; | 1011 core.List<OperationWarnings> warnings; |
979 /** [Output Only] URL of the zone where the operation resides. */ | 1012 |
| 1013 /// [Output Only] URL of the zone where the operation resides. |
980 core.String zone; | 1014 core.String zone; |
981 | 1015 |
982 Operation(); | 1016 Operation(); |
983 | 1017 |
984 Operation.fromJson(core.Map _json) { | 1018 Operation.fromJson(core.Map _json) { |
985 if (_json.containsKey("clientOperationId")) { | 1019 if (_json.containsKey("clientOperationId")) { |
986 clientOperationId = _json["clientOperationId"]; | 1020 clientOperationId = _json["clientOperationId"]; |
987 } | 1021 } |
988 if (_json.containsKey("creationTimestamp")) { | 1022 if (_json.containsKey("creationTimestamp")) { |
989 creationTimestamp = _json["creationTimestamp"]; | 1023 creationTimestamp = _json["creationTimestamp"]; |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1036 if (_json.containsKey("targetId")) { | 1070 if (_json.containsKey("targetId")) { |
1037 targetId = _json["targetId"]; | 1071 targetId = _json["targetId"]; |
1038 } | 1072 } |
1039 if (_json.containsKey("targetLink")) { | 1073 if (_json.containsKey("targetLink")) { |
1040 targetLink = _json["targetLink"]; | 1074 targetLink = _json["targetLink"]; |
1041 } | 1075 } |
1042 if (_json.containsKey("user")) { | 1076 if (_json.containsKey("user")) { |
1043 user = _json["user"]; | 1077 user = _json["user"]; |
1044 } | 1078 } |
1045 if (_json.containsKey("warnings")) { | 1079 if (_json.containsKey("warnings")) { |
1046 warnings = _json["warnings"].map((value) => new OperationWarnings.fromJson
(value)).toList(); | 1080 warnings = _json["warnings"] |
| 1081 .map((value) => new OperationWarnings.fromJson(value)) |
| 1082 .toList(); |
1047 } | 1083 } |
1048 if (_json.containsKey("zone")) { | 1084 if (_json.containsKey("zone")) { |
1049 zone = _json["zone"]; | 1085 zone = _json["zone"]; |
1050 } | 1086 } |
1051 } | 1087 } |
1052 | 1088 |
1053 core.Map<core.String, core.Object> toJson() { | 1089 core.Map<core.String, core.Object> toJson() { |
1054 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1090 final core.Map<core.String, core.Object> _json = |
| 1091 new core.Map<core.String, core.Object>(); |
1055 if (clientOperationId != null) { | 1092 if (clientOperationId != null) { |
1056 _json["clientOperationId"] = clientOperationId; | 1093 _json["clientOperationId"] = clientOperationId; |
1057 } | 1094 } |
1058 if (creationTimestamp != null) { | 1095 if (creationTimestamp != null) { |
1059 _json["creationTimestamp"] = creationTimestamp; | 1096 _json["creationTimestamp"] = creationTimestamp; |
1060 } | 1097 } |
1061 if (endTime != null) { | 1098 if (endTime != null) { |
1062 _json["endTime"] = endTime; | 1099 _json["endTime"] = endTime; |
1063 } | 1100 } |
1064 if (error != null) { | 1101 if (error != null) { |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1115 if (warnings != null) { | 1152 if (warnings != null) { |
1116 _json["warnings"] = warnings.map((value) => (value).toJson()).toList(); | 1153 _json["warnings"] = warnings.map((value) => (value).toJson()).toList(); |
1117 } | 1154 } |
1118 if (zone != null) { | 1155 if (zone != null) { |
1119 _json["zone"] = zone; | 1156 _json["zone"] = zone; |
1120 } | 1157 } |
1121 return _json; | 1158 return _json; |
1122 } | 1159 } |
1123 } | 1160 } |
1124 | 1161 |
1125 /** Contains a list of Operation resources. */ | 1162 /// Contains a list of Operation resources. |
1126 class OperationList { | 1163 class OperationList { |
1127 /** | 1164 /// [Output Only] Unique identifier for the resource; defined by the server. |
1128 * [Output Only] Unique identifier for the resource; defined by the server. | |
1129 */ | |
1130 core.String id; | 1165 core.String id; |
1131 /** [Output Only] The Operation resources. */ | 1166 |
| 1167 /// [Output Only] The Operation resources. |
1132 core.List<Operation> items; | 1168 core.List<Operation> items; |
1133 /** | 1169 |
1134 * [Output Only] Type of resource. Always replicapoolupdater#operationList for | 1170 /// [Output Only] Type of resource. Always replicapoolupdater#operationList |
1135 * OperationList resources. | 1171 /// for OperationList resources. |
1136 */ | |
1137 core.String kind; | 1172 core.String kind; |
1138 /** [Output Only] A token used to continue a truncate. */ | 1173 |
| 1174 /// [Output Only] A token used to continue a truncate. |
1139 core.String nextPageToken; | 1175 core.String nextPageToken; |
1140 /** [Output Only] The fully qualified URL for the resource. */ | 1176 |
| 1177 /// [Output Only] The fully qualified URL for the resource. |
1141 core.String selfLink; | 1178 core.String selfLink; |
1142 | 1179 |
1143 OperationList(); | 1180 OperationList(); |
1144 | 1181 |
1145 OperationList.fromJson(core.Map _json) { | 1182 OperationList.fromJson(core.Map _json) { |
1146 if (_json.containsKey("id")) { | 1183 if (_json.containsKey("id")) { |
1147 id = _json["id"]; | 1184 id = _json["id"]; |
1148 } | 1185 } |
1149 if (_json.containsKey("items")) { | 1186 if (_json.containsKey("items")) { |
1150 items = _json["items"].map((value) => new Operation.fromJson(value)).toLis
t(); | 1187 items = |
| 1188 _json["items"].map((value) => new Operation.fromJson(value)).toList(); |
1151 } | 1189 } |
1152 if (_json.containsKey("kind")) { | 1190 if (_json.containsKey("kind")) { |
1153 kind = _json["kind"]; | 1191 kind = _json["kind"]; |
1154 } | 1192 } |
1155 if (_json.containsKey("nextPageToken")) { | 1193 if (_json.containsKey("nextPageToken")) { |
1156 nextPageToken = _json["nextPageToken"]; | 1194 nextPageToken = _json["nextPageToken"]; |
1157 } | 1195 } |
1158 if (_json.containsKey("selfLink")) { | 1196 if (_json.containsKey("selfLink")) { |
1159 selfLink = _json["selfLink"]; | 1197 selfLink = _json["selfLink"]; |
1160 } | 1198 } |
1161 } | 1199 } |
1162 | 1200 |
1163 core.Map<core.String, core.Object> toJson() { | 1201 core.Map<core.String, core.Object> toJson() { |
1164 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1202 final core.Map<core.String, core.Object> _json = |
| 1203 new core.Map<core.String, core.Object>(); |
1165 if (id != null) { | 1204 if (id != null) { |
1166 _json["id"] = id; | 1205 _json["id"] = id; |
1167 } | 1206 } |
1168 if (items != null) { | 1207 if (items != null) { |
1169 _json["items"] = items.map((value) => (value).toJson()).toList(); | 1208 _json["items"] = items.map((value) => (value).toJson()).toList(); |
1170 } | 1209 } |
1171 if (kind != null) { | 1210 if (kind != null) { |
1172 _json["kind"] = kind; | 1211 _json["kind"] = kind; |
1173 } | 1212 } |
1174 if (nextPageToken != null) { | 1213 if (nextPageToken != null) { |
1175 _json["nextPageToken"] = nextPageToken; | 1214 _json["nextPageToken"] = nextPageToken; |
1176 } | 1215 } |
1177 if (selfLink != null) { | 1216 if (selfLink != null) { |
1178 _json["selfLink"] = selfLink; | 1217 _json["selfLink"] = selfLink; |
1179 } | 1218 } |
1180 return _json; | 1219 return _json; |
1181 } | 1220 } |
1182 } | 1221 } |
1183 | 1222 |
1184 class RollingUpdateErrorErrors { | 1223 class RollingUpdateErrorErrors { |
1185 /** [Output Only] The error type identifier for this error. */ | 1224 /// [Output Only] The error type identifier for this error. |
1186 core.String code; | 1225 core.String code; |
1187 /** | 1226 |
1188 * [Output Only] Indicates the field in the request that caused the error. | 1227 /// [Output Only] Indicates the field in the request that caused the error. |
1189 * This property is optional. | 1228 /// This property is optional. |
1190 */ | |
1191 core.String location; | 1229 core.String location; |
1192 /** [Output Only] An optional, human-readable error message. */ | 1230 |
| 1231 /// [Output Only] An optional, human-readable error message. |
1193 core.String message; | 1232 core.String message; |
1194 | 1233 |
1195 RollingUpdateErrorErrors(); | 1234 RollingUpdateErrorErrors(); |
1196 | 1235 |
1197 RollingUpdateErrorErrors.fromJson(core.Map _json) { | 1236 RollingUpdateErrorErrors.fromJson(core.Map _json) { |
1198 if (_json.containsKey("code")) { | 1237 if (_json.containsKey("code")) { |
1199 code = _json["code"]; | 1238 code = _json["code"]; |
1200 } | 1239 } |
1201 if (_json.containsKey("location")) { | 1240 if (_json.containsKey("location")) { |
1202 location = _json["location"]; | 1241 location = _json["location"]; |
1203 } | 1242 } |
1204 if (_json.containsKey("message")) { | 1243 if (_json.containsKey("message")) { |
1205 message = _json["message"]; | 1244 message = _json["message"]; |
1206 } | 1245 } |
1207 } | 1246 } |
1208 | 1247 |
1209 core.Map<core.String, core.Object> toJson() { | 1248 core.Map<core.String, core.Object> toJson() { |
1210 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1249 final core.Map<core.String, core.Object> _json = |
| 1250 new core.Map<core.String, core.Object>(); |
1211 if (code != null) { | 1251 if (code != null) { |
1212 _json["code"] = code; | 1252 _json["code"] = code; |
1213 } | 1253 } |
1214 if (location != null) { | 1254 if (location != null) { |
1215 _json["location"] = location; | 1255 _json["location"] = location; |
1216 } | 1256 } |
1217 if (message != null) { | 1257 if (message != null) { |
1218 _json["message"] = message; | 1258 _json["message"] = message; |
1219 } | 1259 } |
1220 return _json; | 1260 return _json; |
1221 } | 1261 } |
1222 } | 1262 } |
1223 | 1263 |
1224 /** [Output Only] Errors that occurred during the rolling update. */ | 1264 /// [Output Only] Errors that occurred during the rolling update. |
1225 class RollingUpdateError { | 1265 class RollingUpdateError { |
1226 /** | 1266 /// [Output Only] The array of errors encountered while processing this |
1227 * [Output Only] The array of errors encountered while processing this | 1267 /// operation. |
1228 * operation. | |
1229 */ | |
1230 core.List<RollingUpdateErrorErrors> errors; | 1268 core.List<RollingUpdateErrorErrors> errors; |
1231 | 1269 |
1232 RollingUpdateError(); | 1270 RollingUpdateError(); |
1233 | 1271 |
1234 RollingUpdateError.fromJson(core.Map _json) { | 1272 RollingUpdateError.fromJson(core.Map _json) { |
1235 if (_json.containsKey("errors")) { | 1273 if (_json.containsKey("errors")) { |
1236 errors = _json["errors"].map((value) => new RollingUpdateErrorErrors.fromJ
son(value)).toList(); | 1274 errors = _json["errors"] |
| 1275 .map((value) => new RollingUpdateErrorErrors.fromJson(value)) |
| 1276 .toList(); |
1237 } | 1277 } |
1238 } | 1278 } |
1239 | 1279 |
1240 core.Map<core.String, core.Object> toJson() { | 1280 core.Map<core.String, core.Object> toJson() { |
1241 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1281 final core.Map<core.String, core.Object> _json = |
| 1282 new core.Map<core.String, core.Object>(); |
1242 if (errors != null) { | 1283 if (errors != null) { |
1243 _json["errors"] = errors.map((value) => (value).toJson()).toList(); | 1284 _json["errors"] = errors.map((value) => (value).toJson()).toList(); |
1244 } | 1285 } |
1245 return _json; | 1286 return _json; |
1246 } | 1287 } |
1247 } | 1288 } |
1248 | 1289 |
1249 /** Parameters of the update process. */ | 1290 /// Parameters of the update process. |
1250 class RollingUpdatePolicy { | 1291 class RollingUpdatePolicy { |
1251 /** | 1292 /// Number of instances to update before the updater pauses the rolling |
1252 * Number of instances to update before the updater pauses the rolling update. | 1293 /// update. |
1253 */ | |
1254 core.int autoPauseAfterInstances; | 1294 core.int autoPauseAfterInstances; |
1255 /** | 1295 |
1256 * The maximum amount of time that the updater waits for a HEALTHY state after | 1296 /// The maximum amount of time that the updater waits for a HEALTHY state |
1257 * all of the update steps are complete. If the HEALTHY state is not received | 1297 /// after all of the update steps are complete. If the HEALTHY state is not |
1258 * before the deadline, the instance update is considered a failure. | 1298 /// received before the deadline, the instance update is considered a |
1259 */ | 1299 /// failure. |
1260 core.int instanceStartupTimeoutSec; | 1300 core.int instanceStartupTimeoutSec; |
1261 /** | 1301 |
1262 * The maximum number of instances that can be updated simultaneously. An | 1302 /// The maximum number of instances that can be updated simultaneously. An |
1263 * instance update is considered complete only after the instance is restarted | 1303 /// instance update is considered complete only after the instance is |
1264 * and initialized. | 1304 /// restarted and initialized. |
1265 */ | |
1266 core.int maxNumConcurrentInstances; | 1305 core.int maxNumConcurrentInstances; |
1267 /** | 1306 |
1268 * The maximum number of instance updates that can fail before the group | 1307 /// The maximum number of instance updates that can fail before the group |
1269 * update is considered a failure. An instance update is considered failed if | 1308 /// update is considered a failure. An instance update is considered failed |
1270 * any of its update actions (e.g. Stop call on Instance resource in Rolling | 1309 /// if any of its update actions (e.g. Stop call on Instance resource in |
1271 * Reboot) failed with permanent failure, or if the instance is in an | 1310 /// Rolling Reboot) failed with permanent failure, or if the instance is in |
1272 * UNHEALTHY state after it finishes all of the update actions. | 1311 /// an UNHEALTHY state after it finishes all of the update actions. |
1273 */ | |
1274 core.int maxNumFailedInstances; | 1312 core.int maxNumFailedInstances; |
1275 /** | 1313 |
1276 * The minimum amount of time that the updater spends to update each instance. | 1314 /// The minimum amount of time that the updater spends to update each |
1277 * Update time is the time it takes to complete all update actions (e.g. Stop | 1315 /// instance. Update time is the time it takes to complete all update actions |
1278 * call on Instance resource in Rolling Reboot), reboot, and initialize. If | 1316 /// (e.g. Stop call on Instance resource in Rolling Reboot), reboot, and |
1279 * the instance update finishes early, the updater pauses for the remainder of | 1317 /// initialize. If the instance update finishes early, the updater pauses for |
1280 * the time before it starts the next instance update. | 1318 /// the remainder of the time before it starts the next instance update. |
1281 */ | |
1282 core.int minInstanceUpdateTimeSec; | 1319 core.int minInstanceUpdateTimeSec; |
1283 | 1320 |
1284 RollingUpdatePolicy(); | 1321 RollingUpdatePolicy(); |
1285 | 1322 |
1286 RollingUpdatePolicy.fromJson(core.Map _json) { | 1323 RollingUpdatePolicy.fromJson(core.Map _json) { |
1287 if (_json.containsKey("autoPauseAfterInstances")) { | 1324 if (_json.containsKey("autoPauseAfterInstances")) { |
1288 autoPauseAfterInstances = _json["autoPauseAfterInstances"]; | 1325 autoPauseAfterInstances = _json["autoPauseAfterInstances"]; |
1289 } | 1326 } |
1290 if (_json.containsKey("instanceStartupTimeoutSec")) { | 1327 if (_json.containsKey("instanceStartupTimeoutSec")) { |
1291 instanceStartupTimeoutSec = _json["instanceStartupTimeoutSec"]; | 1328 instanceStartupTimeoutSec = _json["instanceStartupTimeoutSec"]; |
1292 } | 1329 } |
1293 if (_json.containsKey("maxNumConcurrentInstances")) { | 1330 if (_json.containsKey("maxNumConcurrentInstances")) { |
1294 maxNumConcurrentInstances = _json["maxNumConcurrentInstances"]; | 1331 maxNumConcurrentInstances = _json["maxNumConcurrentInstances"]; |
1295 } | 1332 } |
1296 if (_json.containsKey("maxNumFailedInstances")) { | 1333 if (_json.containsKey("maxNumFailedInstances")) { |
1297 maxNumFailedInstances = _json["maxNumFailedInstances"]; | 1334 maxNumFailedInstances = _json["maxNumFailedInstances"]; |
1298 } | 1335 } |
1299 if (_json.containsKey("minInstanceUpdateTimeSec")) { | 1336 if (_json.containsKey("minInstanceUpdateTimeSec")) { |
1300 minInstanceUpdateTimeSec = _json["minInstanceUpdateTimeSec"]; | 1337 minInstanceUpdateTimeSec = _json["minInstanceUpdateTimeSec"]; |
1301 } | 1338 } |
1302 } | 1339 } |
1303 | 1340 |
1304 core.Map<core.String, core.Object> toJson() { | 1341 core.Map<core.String, core.Object> toJson() { |
1305 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1342 final core.Map<core.String, core.Object> _json = |
| 1343 new core.Map<core.String, core.Object>(); |
1306 if (autoPauseAfterInstances != null) { | 1344 if (autoPauseAfterInstances != null) { |
1307 _json["autoPauseAfterInstances"] = autoPauseAfterInstances; | 1345 _json["autoPauseAfterInstances"] = autoPauseAfterInstances; |
1308 } | 1346 } |
1309 if (instanceStartupTimeoutSec != null) { | 1347 if (instanceStartupTimeoutSec != null) { |
1310 _json["instanceStartupTimeoutSec"] = instanceStartupTimeoutSec; | 1348 _json["instanceStartupTimeoutSec"] = instanceStartupTimeoutSec; |
1311 } | 1349 } |
1312 if (maxNumConcurrentInstances != null) { | 1350 if (maxNumConcurrentInstances != null) { |
1313 _json["maxNumConcurrentInstances"] = maxNumConcurrentInstances; | 1351 _json["maxNumConcurrentInstances"] = maxNumConcurrentInstances; |
1314 } | 1352 } |
1315 if (maxNumFailedInstances != null) { | 1353 if (maxNumFailedInstances != null) { |
1316 _json["maxNumFailedInstances"] = maxNumFailedInstances; | 1354 _json["maxNumFailedInstances"] = maxNumFailedInstances; |
1317 } | 1355 } |
1318 if (minInstanceUpdateTimeSec != null) { | 1356 if (minInstanceUpdateTimeSec != null) { |
1319 _json["minInstanceUpdateTimeSec"] = minInstanceUpdateTimeSec; | 1357 _json["minInstanceUpdateTimeSec"] = minInstanceUpdateTimeSec; |
1320 } | 1358 } |
1321 return _json; | 1359 return _json; |
1322 } | 1360 } |
1323 } | 1361 } |
1324 | 1362 |
1325 /** | 1363 /// The following represents a resource describing a single update (rollout) of |
1326 * The following represents a resource describing a single update (rollout) of a | 1364 /// a group of instances to the given template. |
1327 * group of instances to the given template. | |
1328 */ | |
1329 class RollingUpdate { | 1365 class RollingUpdate { |
1330 /** | 1366 /// Specifies the action to take for each instance within the instance group. |
1331 * Specifies the action to take for each instance within the instance group. | 1367 /// This can be RECREATE which will recreate each instance and is only |
1332 * This can be RECREATE which will recreate each instance and is only | 1368 /// available for managed instance groups. It can also be REBOOT which |
1333 * available for managed instance groups. It can also be REBOOT which performs | 1369 /// performs a soft reboot for each instance and is only available for |
1334 * a soft reboot for each instance and is only available for regular | 1370 /// regular (non-managed) instance groups. |
1335 * (non-managed) instance groups. | |
1336 */ | |
1337 core.String actionType; | 1371 core.String actionType; |
1338 /** [Output Only] Creation timestamp in RFC3339 text format. */ | 1372 |
| 1373 /// [Output Only] Creation timestamp in RFC3339 text format. |
1339 core.String creationTimestamp; | 1374 core.String creationTimestamp; |
1340 /** | 1375 |
1341 * An optional textual description of the resource; provided by the client | 1376 /// An optional textual description of the resource; provided by the client |
1342 * when the resource is created. | 1377 /// when the resource is created. |
1343 */ | |
1344 core.String description; | 1378 core.String description; |
1345 /** [Output Only] Errors that occurred during the rolling update. */ | 1379 |
| 1380 /// [Output Only] Errors that occurred during the rolling update. |
1346 RollingUpdateError error; | 1381 RollingUpdateError error; |
1347 /** | 1382 |
1348 * [Output Only] Unique identifier for the resource; defined by the server. | 1383 /// [Output Only] Unique identifier for the resource; defined by the server. |
1349 */ | |
1350 core.String id; | 1384 core.String id; |
1351 /** | 1385 |
1352 * Fully-qualified URL of an instance group being updated. Exactly one of | 1386 /// Fully-qualified URL of an instance group being updated. Exactly one of |
1353 * instanceGroupManager and instanceGroup must be set. | 1387 /// instanceGroupManager and instanceGroup must be set. |
1354 */ | |
1355 core.String instanceGroup; | 1388 core.String instanceGroup; |
1356 /** | 1389 |
1357 * Fully-qualified URL of an instance group manager being updated. Exactly one | 1390 /// Fully-qualified URL of an instance group manager being updated. Exactly |
1358 * of instanceGroupManager and instanceGroup must be set. | 1391 /// one of instanceGroupManager and instanceGroup must be set. |
1359 */ | |
1360 core.String instanceGroupManager; | 1392 core.String instanceGroupManager; |
1361 /** Fully-qualified URL of an instance template to apply. */ | 1393 |
| 1394 /// Fully-qualified URL of an instance template to apply. |
1362 core.String instanceTemplate; | 1395 core.String instanceTemplate; |
1363 /** [Output Only] Type of the resource. */ | 1396 |
| 1397 /// [Output Only] Type of the resource. |
1364 core.String kind; | 1398 core.String kind; |
1365 /** | 1399 |
1366 * Fully-qualified URL of the instance template encountered while starting the | 1400 /// Fully-qualified URL of the instance template encountered while starting |
1367 * update. | 1401 /// the update. |
1368 */ | |
1369 core.String oldInstanceTemplate; | 1402 core.String oldInstanceTemplate; |
1370 /** Parameters of the update process. */ | 1403 |
| 1404 /// Parameters of the update process. |
1371 RollingUpdatePolicy policy; | 1405 RollingUpdatePolicy policy; |
1372 /** | 1406 |
1373 * [Output Only] An optional progress indicator that ranges from 0 to 100. | 1407 /// [Output Only] An optional progress indicator that ranges from 0 to 100. |
1374 * There is no requirement that this be linear or support any granularity of | 1408 /// There is no requirement that this be linear or support any granularity of |
1375 * operations. This should not be used to guess at when the update will be | 1409 /// operations. This should not be used to guess at when the update will be |
1376 * complete. This number should be monotonically increasing as the update | 1410 /// complete. This number should be monotonically increasing as the update |
1377 * progresses. | 1411 /// progresses. |
1378 */ | |
1379 core.int progress; | 1412 core.int progress; |
1380 /** [Output Only] The fully qualified URL for the resource. */ | 1413 |
| 1414 /// [Output Only] The fully qualified URL for the resource. |
1381 core.String selfLink; | 1415 core.String selfLink; |
1382 /** | 1416 |
1383 * [Output Only] Status of the update. Possible values are: | 1417 /// [Output Only] Status of the update. Possible values are: |
1384 * - "ROLLING_FORWARD": The update is going forward. | 1418 /// - "ROLLING_FORWARD": The update is going forward. |
1385 * - "ROLLING_BACK": The update is being rolled back. | 1419 /// - "ROLLING_BACK": The update is being rolled back. |
1386 * - "PAUSED": The update is temporarily paused (inactive). | 1420 /// - "PAUSED": The update is temporarily paused (inactive). |
1387 * - "ROLLED_OUT": The update is finished, all instances have been updated | 1421 /// - "ROLLED_OUT": The update is finished, all instances have been updated |
1388 * successfully. | 1422 /// successfully. |
1389 * - "ROLLED_BACK": The update is finished, all instances have been reverted | 1423 /// - "ROLLED_BACK": The update is finished, all instances have been reverted |
1390 * to the previous template. | 1424 /// to the previous template. |
1391 * - "CANCELLED": The update is paused and no longer can be resumed, undefined | 1425 /// - "CANCELLED": The update is paused and no longer can be resumed, |
1392 * how many instances are running in which template. | 1426 /// undefined how many instances are running in which template. |
1393 */ | |
1394 core.String status; | 1427 core.String status; |
1395 /** | 1428 |
1396 * [Output Only] An optional textual description of the current status of the | 1429 /// [Output Only] An optional textual description of the current status of |
1397 * update. | 1430 /// the update. |
1398 */ | |
1399 core.String statusMessage; | 1431 core.String statusMessage; |
1400 /** | 1432 |
1401 * [Output Only] User who requested the update, for example: user@example.com. | 1433 /// [Output Only] User who requested the update, for example: |
1402 */ | 1434 /// user@example.com. |
1403 core.String user; | 1435 core.String user; |
1404 | 1436 |
1405 RollingUpdate(); | 1437 RollingUpdate(); |
1406 | 1438 |
1407 RollingUpdate.fromJson(core.Map _json) { | 1439 RollingUpdate.fromJson(core.Map _json) { |
1408 if (_json.containsKey("actionType")) { | 1440 if (_json.containsKey("actionType")) { |
1409 actionType = _json["actionType"]; | 1441 actionType = _json["actionType"]; |
1410 } | 1442 } |
1411 if (_json.containsKey("creationTimestamp")) { | 1443 if (_json.containsKey("creationTimestamp")) { |
1412 creationTimestamp = _json["creationTimestamp"]; | 1444 creationTimestamp = _json["creationTimestamp"]; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1449 } | 1481 } |
1450 if (_json.containsKey("statusMessage")) { | 1482 if (_json.containsKey("statusMessage")) { |
1451 statusMessage = _json["statusMessage"]; | 1483 statusMessage = _json["statusMessage"]; |
1452 } | 1484 } |
1453 if (_json.containsKey("user")) { | 1485 if (_json.containsKey("user")) { |
1454 user = _json["user"]; | 1486 user = _json["user"]; |
1455 } | 1487 } |
1456 } | 1488 } |
1457 | 1489 |
1458 core.Map<core.String, core.Object> toJson() { | 1490 core.Map<core.String, core.Object> toJson() { |
1459 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1491 final core.Map<core.String, core.Object> _json = |
| 1492 new core.Map<core.String, core.Object>(); |
1460 if (actionType != null) { | 1493 if (actionType != null) { |
1461 _json["actionType"] = actionType; | 1494 _json["actionType"] = actionType; |
1462 } | 1495 } |
1463 if (creationTimestamp != null) { | 1496 if (creationTimestamp != null) { |
1464 _json["creationTimestamp"] = creationTimestamp; | 1497 _json["creationTimestamp"] = creationTimestamp; |
1465 } | 1498 } |
1466 if (description != null) { | 1499 if (description != null) { |
1467 _json["description"] = description; | 1500 _json["description"] = description; |
1468 } | 1501 } |
1469 if (error != null) { | 1502 if (error != null) { |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1502 if (statusMessage != null) { | 1535 if (statusMessage != null) { |
1503 _json["statusMessage"] = statusMessage; | 1536 _json["statusMessage"] = statusMessage; |
1504 } | 1537 } |
1505 if (user != null) { | 1538 if (user != null) { |
1506 _json["user"] = user; | 1539 _json["user"] = user; |
1507 } | 1540 } |
1508 return _json; | 1541 return _json; |
1509 } | 1542 } |
1510 } | 1543 } |
1511 | 1544 |
1512 /** Response returned by List method. */ | 1545 /// Response returned by List method. |
1513 class RollingUpdateList { | 1546 class RollingUpdateList { |
1514 /** Collection of requested updates. */ | 1547 /// Collection of requested updates. |
1515 core.List<RollingUpdate> items; | 1548 core.List<RollingUpdate> items; |
1516 /** [Output Only] Type of the resource. */ | 1549 |
| 1550 /// [Output Only] Type of the resource. |
1517 core.String kind; | 1551 core.String kind; |
1518 /** A token used to continue a truncated list request. */ | 1552 |
| 1553 /// A token used to continue a truncated list request. |
1519 core.String nextPageToken; | 1554 core.String nextPageToken; |
1520 /** [Output Only] The fully qualified URL for the resource. */ | 1555 |
| 1556 /// [Output Only] The fully qualified URL for the resource. |
1521 core.String selfLink; | 1557 core.String selfLink; |
1522 | 1558 |
1523 RollingUpdateList(); | 1559 RollingUpdateList(); |
1524 | 1560 |
1525 RollingUpdateList.fromJson(core.Map _json) { | 1561 RollingUpdateList.fromJson(core.Map _json) { |
1526 if (_json.containsKey("items")) { | 1562 if (_json.containsKey("items")) { |
1527 items = _json["items"].map((value) => new RollingUpdate.fromJson(value)).t
oList(); | 1563 items = _json["items"] |
| 1564 .map((value) => new RollingUpdate.fromJson(value)) |
| 1565 .toList(); |
1528 } | 1566 } |
1529 if (_json.containsKey("kind")) { | 1567 if (_json.containsKey("kind")) { |
1530 kind = _json["kind"]; | 1568 kind = _json["kind"]; |
1531 } | 1569 } |
1532 if (_json.containsKey("nextPageToken")) { | 1570 if (_json.containsKey("nextPageToken")) { |
1533 nextPageToken = _json["nextPageToken"]; | 1571 nextPageToken = _json["nextPageToken"]; |
1534 } | 1572 } |
1535 if (_json.containsKey("selfLink")) { | 1573 if (_json.containsKey("selfLink")) { |
1536 selfLink = _json["selfLink"]; | 1574 selfLink = _json["selfLink"]; |
1537 } | 1575 } |
1538 } | 1576 } |
1539 | 1577 |
1540 core.Map<core.String, core.Object> toJson() { | 1578 core.Map<core.String, core.Object> toJson() { |
1541 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1579 final core.Map<core.String, core.Object> _json = |
| 1580 new core.Map<core.String, core.Object>(); |
1542 if (items != null) { | 1581 if (items != null) { |
1543 _json["items"] = items.map((value) => (value).toJson()).toList(); | 1582 _json["items"] = items.map((value) => (value).toJson()).toList(); |
1544 } | 1583 } |
1545 if (kind != null) { | 1584 if (kind != null) { |
1546 _json["kind"] = kind; | 1585 _json["kind"] = kind; |
1547 } | 1586 } |
1548 if (nextPageToken != null) { | 1587 if (nextPageToken != null) { |
1549 _json["nextPageToken"] = nextPageToken; | 1588 _json["nextPageToken"] = nextPageToken; |
1550 } | 1589 } |
1551 if (selfLink != null) { | 1590 if (selfLink != null) { |
1552 _json["selfLink"] = selfLink; | 1591 _json["selfLink"] = selfLink; |
1553 } | 1592 } |
1554 return _json; | 1593 return _json; |
1555 } | 1594 } |
1556 } | 1595 } |
OLD | NEW |