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.deploymentmanager.v2beta1; | 3 library googleapis_beta.deploymentmanager.v2beta2; |
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:crypto/crypto.dart' as crypto; |
10 import 'package:http/http.dart' as http; | 11 import 'package:http/http.dart' as http; |
11 | 12 |
12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show | 13 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show |
13 ApiRequestError, DetailedApiRequestError; | 14 ApiRequestError, DetailedApiRequestError; |
14 | 15 |
15 const core.String USER_AGENT = 'dart-api-client deploymentmanager/v2beta1'; | 16 const core.String USER_AGENT = 'dart-api-client deploymentmanager/v2beta2'; |
16 | 17 |
17 /** | 18 /** |
18 * The Deployment Manager API allows users to declaratively configure, deploy | 19 * The Deployment Manager API allows users to declaratively configure, deploy |
19 * and run complex solutions on the Google Cloud Platform. | 20 * and run complex solutions on the Google Cloud Platform. |
20 */ | 21 */ |
21 class DeploymentmanagerApi { | 22 class DeploymentmanagerApi { |
22 /** View and manage your data across Google Cloud Platform services */ | 23 /** View and manage your data across Google Cloud Platform services */ |
23 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf
orm"; | 24 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf
orm"; |
24 | 25 |
25 /** | 26 /** |
| 27 * MESSAGE UNDER CONSTRUCTION View your data across Google Cloud Platform |
| 28 * services |
| 29 */ |
| 30 static const CloudPlatformReadOnlyScope = "https://www.googleapis.com/auth/clo
ud-platform.read-only"; |
| 31 |
| 32 /** |
26 * View and manage your Google Cloud Platform management resources and | 33 * View and manage your Google Cloud Platform management resources and |
27 * deployment status information | 34 * deployment status information |
28 */ | 35 */ |
29 static const NdevCloudmanScope = "https://www.googleapis.com/auth/ndev.cloudma
n"; | 36 static const NdevCloudmanScope = "https://www.googleapis.com/auth/ndev.cloudma
n"; |
30 | 37 |
31 /** | 38 /** |
32 * View your Google Cloud Platform management resources and deployment status | 39 * View your Google Cloud Platform management resources and deployment status |
33 * information | 40 * information |
34 */ | 41 */ |
35 static const NdevCloudmanReadonlyScope = "https://www.googleapis.com/auth/ndev
.cloudman.readonly"; | 42 static const NdevCloudmanReadonlyScope = "https://www.googleapis.com/auth/ndev
.cloudman.readonly"; |
36 | 43 |
37 | 44 |
38 final commons.ApiRequester _requester; | 45 final commons.ApiRequester _requester; |
39 | 46 |
40 DeploymentsResourceApi get deployments => new DeploymentsResourceApi(_requeste
r); | 47 DeploymentsResourceApi get deployments => new DeploymentsResourceApi(_requeste
r); |
41 ManifestsResourceApi get manifests => new ManifestsResourceApi(_requester); | 48 ManifestsResourceApi get manifests => new ManifestsResourceApi(_requester); |
42 OperationsResourceApi get operations => new OperationsResourceApi(_requester); | 49 OperationsResourceApi get operations => new OperationsResourceApi(_requester); |
43 ResourcesResourceApi get resources => new ResourcesResourceApi(_requester); | 50 ResourcesResourceApi get resources => new ResourcesResourceApi(_requester); |
44 TypesResourceApi get types => new TypesResourceApi(_requester); | 51 TypesResourceApi get types => new TypesResourceApi(_requester); |
45 | 52 |
46 DeploymentmanagerApi(http.Client client, {core.String rootUrl: "https://www.go
ogleapis.com/", core.String servicePath: "deploymentmanager/v2beta1/projects/"})
: | 53 DeploymentmanagerApi(http.Client client, {core.String rootUrl: "https://www.go
ogleapis.com/", core.String servicePath: "deploymentmanager/v2beta2/projects/"})
: |
47 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); | 54 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); |
48 } | 55 } |
49 | 56 |
50 | 57 |
51 class DeploymentsResourceApi { | 58 class DeploymentsResourceApi { |
52 final commons.ApiRequester _requester; | 59 final commons.ApiRequester _requester; |
53 | 60 |
54 DeploymentsResourceApi(commons.ApiRequester client) : | 61 DeploymentsResourceApi(commons.ApiRequester client) : |
55 _requester = client; | 62 _requester = client; |
56 | 63 |
57 /** | 64 /** |
58 * ! Deletes a deployment and all of the resources in the deployment. | 65 * Deletes a deployment and all of the resources in the deployment. |
59 * | 66 * |
60 * Request parameters: | 67 * Request parameters: |
61 * | 68 * |
62 * [project] - ! The project ID for this request. | 69 * [project] - The project ID for this request. |
63 * Value must have pattern | 70 * Value must have pattern |
64 * "(?:(?:[-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])?))". | 71 * "(?:(?:[-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])?))". |
65 * | 72 * |
66 * [deployment] - ! The name of the deployment for this request. | 73 * [deployment] - The name of the deployment for this request. |
67 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 74 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
68 * | 75 * |
69 * Completes with a [Operation]. | 76 * Completes with a [Operation]. |
70 * | 77 * |
71 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 78 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
72 * error. | 79 * error. |
73 * | 80 * |
74 * If the used [http.Client] completes with an error when making a REST call, | 81 * If the used [http.Client] completes with an error when making a REST call, |
75 * this method will complete with the same error. | 82 * this method will complete with the same error. |
76 */ | 83 */ |
(...skipping 18 matching lines...) Expand all Loading... |
95 "DELETE", | 102 "DELETE", |
96 body: _body, | 103 body: _body, |
97 queryParams: _queryParams, | 104 queryParams: _queryParams, |
98 uploadOptions: _uploadOptions, | 105 uploadOptions: _uploadOptions, |
99 uploadMedia: _uploadMedia, | 106 uploadMedia: _uploadMedia, |
100 downloadOptions: _downloadOptions); | 107 downloadOptions: _downloadOptions); |
101 return _response.then((data) => new Operation.fromJson(data)); | 108 return _response.then((data) => new Operation.fromJson(data)); |
102 } | 109 } |
103 | 110 |
104 /** | 111 /** |
105 * ! Gets information about a specific deployment. | 112 * Gets information about a specific deployment. |
106 * | 113 * |
107 * Request parameters: | 114 * Request parameters: |
108 * | 115 * |
109 * [project] - ! The project ID for this request. | 116 * [project] - The project ID for this request. |
110 * Value must have pattern | 117 * Value must have pattern |
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])?))". | 118 * "(?:(?:[-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])?))". |
112 * | 119 * |
113 * [deployment] - ! The name of the deployment for this request. | 120 * [deployment] - The name of the deployment for this request. |
114 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 121 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
115 * | 122 * |
116 * Completes with a [Deployment]. | 123 * Completes with a [Deployment]. |
117 * | 124 * |
118 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 125 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
119 * error. | 126 * error. |
120 * | 127 * |
121 * If the used [http.Client] completes with an error when making a REST call, | 128 * If the used [http.Client] completes with an error when making a REST call, |
122 * this method will complete with the same error. | 129 * this method will complete with the same error. |
123 */ | 130 */ |
(...skipping 18 matching lines...) Expand all Loading... |
142 "GET", | 149 "GET", |
143 body: _body, | 150 body: _body, |
144 queryParams: _queryParams, | 151 queryParams: _queryParams, |
145 uploadOptions: _uploadOptions, | 152 uploadOptions: _uploadOptions, |
146 uploadMedia: _uploadMedia, | 153 uploadMedia: _uploadMedia, |
147 downloadOptions: _downloadOptions); | 154 downloadOptions: _downloadOptions); |
148 return _response.then((data) => new Deployment.fromJson(data)); | 155 return _response.then((data) => new Deployment.fromJson(data)); |
149 } | 156 } |
150 | 157 |
151 /** | 158 /** |
152 * ! Creates a deployment and all of the resources described by the ! | 159 * Creates a deployment and all of the resources described by the deployment |
153 * deployment manifest. | 160 * manifest. |
154 * | 161 * |
155 * [request] - The metadata request object. | 162 * [request] - The metadata request object. |
156 * | 163 * |
157 * Request parameters: | 164 * Request parameters: |
158 * | 165 * |
159 * [project] - ! The project ID for this request. | 166 * [project] - The project ID for this request. |
160 * Value must have pattern | 167 * Value must have pattern |
161 * "(?:(?:[-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])?))". | 168 * "(?:(?:[-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])?))". |
162 * | 169 * |
163 * Completes with a [Operation]. | 170 * Completes with a [Operation]. |
164 * | 171 * |
165 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 172 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
166 * error. | 173 * error. |
167 * | 174 * |
168 * If the used [http.Client] completes with an error when making a REST call, | 175 * If the used [http.Client] completes with an error when making a REST call, |
169 * this method will complete with the same error. | 176 * this method will complete with the same error. |
(...skipping 19 matching lines...) Expand all Loading... |
189 "POST", | 196 "POST", |
190 body: _body, | 197 body: _body, |
191 queryParams: _queryParams, | 198 queryParams: _queryParams, |
192 uploadOptions: _uploadOptions, | 199 uploadOptions: _uploadOptions, |
193 uploadMedia: _uploadMedia, | 200 uploadMedia: _uploadMedia, |
194 downloadOptions: _downloadOptions); | 201 downloadOptions: _downloadOptions); |
195 return _response.then((data) => new Operation.fromJson(data)); | 202 return _response.then((data) => new Operation.fromJson(data)); |
196 } | 203 } |
197 | 204 |
198 /** | 205 /** |
199 * ! Lists all deployments for a given project. | 206 * Lists all deployments for a given project. |
200 * | 207 * |
201 * Request parameters: | 208 * Request parameters: |
202 * | 209 * |
203 * [project] - ! The project ID for this request. | 210 * [project] - The project ID for this request. |
204 * Value must have pattern | 211 * Value must have pattern |
205 * "(?:(?:[-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])?))". | 212 * "(?:(?:[-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])?))". |
206 * | 213 * |
207 * [maxResults] - ! Maximum count of results to be returned. ! Acceptable | 214 * [filter] - Sets a filter expression for filtering listed resources, in the |
208 * values are 0 to 100, inclusive. (Default: 50) | 215 * form filter={expression}. Your {expression} must be in the format: |
209 * Value must be between "0" and "100". | 216 * FIELD_NAME COMPARISON_STRING LITERAL_STRING. |
210 * | 217 * |
211 * [pageToken] - ! Specifies a nextPageToken returned by a previous list | 218 * The FIELD_NAME is the name of the field you want to compare. Only atomic |
212 * request. This ! token can be used to request the next page of results from | 219 * field types are supported (string, number, boolean). The COMPARISON_STRING |
213 * a previous ! list request. | 220 * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the |
| 221 * string value to filter to. The literal value must be valid for the type of |
| 222 * field (string, number, boolean). For string fields, the literal value is |
| 223 * interpreted as a regular expression using RE2 syntax. The literal value |
| 224 * must match the entire field. |
| 225 * |
| 226 * For example, filter=name ne example-instance. |
| 227 * |
| 228 * [maxResults] - Maximum count of results to be returned. |
| 229 * Value must be between "0" and "500". |
| 230 * |
| 231 * [pageToken] - Specifies a page token to use. Use this parameter if you want |
| 232 * to list the next page of results. Set pageToken to the nextPageToken |
| 233 * returned by a previous list request. |
214 * | 234 * |
215 * Completes with a [DeploymentsListResponse]. | 235 * Completes with a [DeploymentsListResponse]. |
216 * | 236 * |
217 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 237 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
218 * error. | 238 * error. |
219 * | 239 * |
220 * If the used [http.Client] completes with an error when making a REST call, | 240 * If the used [http.Client] completes with an error when making a REST call, |
221 * this method will complete with the same error. | 241 * this method will complete with the same error. |
222 */ | 242 */ |
223 async.Future<DeploymentsListResponse> list(core.String project, {core.int maxR
esults, core.String pageToken}) { | 243 async.Future<DeploymentsListResponse> list(core.String project, {core.String f
ilter, core.int maxResults, core.String pageToken}) { |
224 var _url = null; | 244 var _url = null; |
225 var _queryParams = new core.Map(); | 245 var _queryParams = new core.Map(); |
226 var _uploadMedia = null; | 246 var _uploadMedia = null; |
227 var _uploadOptions = null; | 247 var _uploadOptions = null; |
228 var _downloadOptions = commons.DownloadOptions.Metadata; | 248 var _downloadOptions = commons.DownloadOptions.Metadata; |
229 var _body = null; | 249 var _body = null; |
230 | 250 |
231 if (project == null) { | 251 if (project == null) { |
232 throw new core.ArgumentError("Parameter project is required."); | 252 throw new core.ArgumentError("Parameter project is required."); |
233 } | 253 } |
| 254 if (filter != null) { |
| 255 _queryParams["filter"] = [filter]; |
| 256 } |
234 if (maxResults != null) { | 257 if (maxResults != null) { |
235 _queryParams["maxResults"] = ["${maxResults}"]; | 258 _queryParams["maxResults"] = ["${maxResults}"]; |
236 } | 259 } |
237 if (pageToken != null) { | 260 if (pageToken != null) { |
238 _queryParams["pageToken"] = [pageToken]; | 261 _queryParams["pageToken"] = [pageToken]; |
239 } | 262 } |
240 | 263 |
241 _url = commons.Escaper.ecapeVariable('$project') + '/global/deployments'; | 264 _url = commons.Escaper.ecapeVariable('$project') + '/global/deployments'; |
242 | 265 |
243 var _response = _requester.request(_url, | 266 var _response = _requester.request(_url, |
244 "GET", | 267 "GET", |
245 body: _body, | 268 body: _body, |
246 queryParams: _queryParams, | 269 queryParams: _queryParams, |
247 uploadOptions: _uploadOptions, | 270 uploadOptions: _uploadOptions, |
248 uploadMedia: _uploadMedia, | 271 uploadMedia: _uploadMedia, |
249 downloadOptions: _downloadOptions); | 272 downloadOptions: _downloadOptions); |
250 return _response.then((data) => new DeploymentsListResponse.fromJson(data)); | 273 return _response.then((data) => new DeploymentsListResponse.fromJson(data)); |
251 } | 274 } |
252 | 275 |
| 276 /** |
| 277 * Updates a deployment and all of the resources described by the deployment |
| 278 * manifest. This method supports patch semantics. |
| 279 * |
| 280 * [request] - The metadata request object. |
| 281 * |
| 282 * Request parameters: |
| 283 * |
| 284 * [project] - The project ID for this request. |
| 285 * Value must have pattern |
| 286 * "(?:(?:[-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])?))". |
| 287 * |
| 288 * [deployment] - The name of the deployment for this request. |
| 289 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 290 * |
| 291 * [createPolicy] - Sets the policy to use for creating new resources. |
| 292 * Possible string values are: |
| 293 * - "ACQUIRE" |
| 294 * - "CREATE_OR_ACQUIRE" |
| 295 * |
| 296 * [deletePolicy] - Sets the policy to use for deleting resources. |
| 297 * Possible string values are: |
| 298 * - "ABANDON" |
| 299 * - "DELETE" |
| 300 * |
| 301 * [updatePolicy] - Sets the policy to use for updating resources. |
| 302 * Possible string values are: |
| 303 * - "PATCH" |
| 304 * - "UPDATE" |
| 305 * |
| 306 * Completes with a [Operation]. |
| 307 * |
| 308 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 309 * error. |
| 310 * |
| 311 * If the used [http.Client] completes with an error when making a REST call, |
| 312 * this method will complete with the same error. |
| 313 */ |
| 314 async.Future<Operation> patch(Deployment request, core.String project, core.St
ring deployment, {core.String createPolicy, core.String deletePolicy, core.Strin
g updatePolicy}) { |
| 315 var _url = null; |
| 316 var _queryParams = new core.Map(); |
| 317 var _uploadMedia = null; |
| 318 var _uploadOptions = null; |
| 319 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 320 var _body = null; |
| 321 |
| 322 if (request != null) { |
| 323 _body = convert.JSON.encode((request).toJson()); |
| 324 } |
| 325 if (project == null) { |
| 326 throw new core.ArgumentError("Parameter project is required."); |
| 327 } |
| 328 if (deployment == null) { |
| 329 throw new core.ArgumentError("Parameter deployment is required."); |
| 330 } |
| 331 if (createPolicy != null) { |
| 332 _queryParams["createPolicy"] = [createPolicy]; |
| 333 } |
| 334 if (deletePolicy != null) { |
| 335 _queryParams["deletePolicy"] = [deletePolicy]; |
| 336 } |
| 337 if (updatePolicy != null) { |
| 338 _queryParams["updatePolicy"] = [updatePolicy]; |
| 339 } |
| 340 |
| 341 _url = commons.Escaper.ecapeVariable('$project') + '/global/deployments/' +
commons.Escaper.ecapeVariable('$deployment'); |
| 342 |
| 343 var _response = _requester.request(_url, |
| 344 "PATCH", |
| 345 body: _body, |
| 346 queryParams: _queryParams, |
| 347 uploadOptions: _uploadOptions, |
| 348 uploadMedia: _uploadMedia, |
| 349 downloadOptions: _downloadOptions); |
| 350 return _response.then((data) => new Operation.fromJson(data)); |
| 351 } |
| 352 |
| 353 /** |
| 354 * Updates a deployment and all of the resources described by the deployment |
| 355 * manifest. |
| 356 * |
| 357 * [request] - The metadata request object. |
| 358 * |
| 359 * Request parameters: |
| 360 * |
| 361 * [project] - The project ID for this request. |
| 362 * Value must have pattern |
| 363 * "(?:(?:[-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])?))". |
| 364 * |
| 365 * [deployment] - The name of the deployment for this request. |
| 366 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 367 * |
| 368 * [createPolicy] - Sets the policy to use for creating new resources. |
| 369 * Possible string values are: |
| 370 * - "ACQUIRE" |
| 371 * - "CREATE_OR_ACQUIRE" |
| 372 * |
| 373 * [deletePolicy] - Sets the policy to use for deleting resources. |
| 374 * Possible string values are: |
| 375 * - "ABANDON" |
| 376 * - "DELETE" |
| 377 * |
| 378 * [updatePolicy] - Sets the policy to use for updating resources. |
| 379 * Possible string values are: |
| 380 * - "PATCH" |
| 381 * - "UPDATE" |
| 382 * |
| 383 * Completes with a [Operation]. |
| 384 * |
| 385 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 386 * error. |
| 387 * |
| 388 * If the used [http.Client] completes with an error when making a REST call, |
| 389 * this method will complete with the same error. |
| 390 */ |
| 391 async.Future<Operation> update(Deployment request, core.String project, core.S
tring deployment, {core.String createPolicy, core.String deletePolicy, core.Stri
ng updatePolicy}) { |
| 392 var _url = null; |
| 393 var _queryParams = new core.Map(); |
| 394 var _uploadMedia = null; |
| 395 var _uploadOptions = null; |
| 396 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 397 var _body = null; |
| 398 |
| 399 if (request != null) { |
| 400 _body = convert.JSON.encode((request).toJson()); |
| 401 } |
| 402 if (project == null) { |
| 403 throw new core.ArgumentError("Parameter project is required."); |
| 404 } |
| 405 if (deployment == null) { |
| 406 throw new core.ArgumentError("Parameter deployment is required."); |
| 407 } |
| 408 if (createPolicy != null) { |
| 409 _queryParams["createPolicy"] = [createPolicy]; |
| 410 } |
| 411 if (deletePolicy != null) { |
| 412 _queryParams["deletePolicy"] = [deletePolicy]; |
| 413 } |
| 414 if (updatePolicy != null) { |
| 415 _queryParams["updatePolicy"] = [updatePolicy]; |
| 416 } |
| 417 |
| 418 _url = commons.Escaper.ecapeVariable('$project') + '/global/deployments/' +
commons.Escaper.ecapeVariable('$deployment'); |
| 419 |
| 420 var _response = _requester.request(_url, |
| 421 "PUT", |
| 422 body: _body, |
| 423 queryParams: _queryParams, |
| 424 uploadOptions: _uploadOptions, |
| 425 uploadMedia: _uploadMedia, |
| 426 downloadOptions: _downloadOptions); |
| 427 return _response.then((data) => new Operation.fromJson(data)); |
| 428 } |
| 429 |
253 } | 430 } |
254 | 431 |
255 | 432 |
256 class ManifestsResourceApi { | 433 class ManifestsResourceApi { |
257 final commons.ApiRequester _requester; | 434 final commons.ApiRequester _requester; |
258 | 435 |
259 ManifestsResourceApi(commons.ApiRequester client) : | 436 ManifestsResourceApi(commons.ApiRequester client) : |
260 _requester = client; | 437 _requester = client; |
261 | 438 |
262 /** | 439 /** |
263 * ! Gets information about a specific manifest. | 440 * Gets information about a specific manifest. |
264 * | 441 * |
265 * Request parameters: | 442 * Request parameters: |
266 * | 443 * |
267 * [project] - ! The project ID for this request. | 444 * [project] - The project ID for this request. |
268 * Value must have pattern | 445 * Value must have pattern |
269 * "(?:(?:[-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])?))". | 446 * "(?:(?:[-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])?))". |
270 * | 447 * |
271 * [deployment] - ! The name of the deployment for this request. | 448 * [deployment] - The name of the deployment for this request. |
272 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 449 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
273 * | 450 * |
274 * [manifest] - ! The name of the manifest for this request. | 451 * [manifest] - The name of the manifest for this request. |
275 * Value must have pattern "[-a-z0-9]{1,61}". | 452 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
276 * | 453 * |
277 * Completes with a [Manifest]. | 454 * Completes with a [Manifest]. |
278 * | 455 * |
279 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 456 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
280 * error. | 457 * error. |
281 * | 458 * |
282 * If the used [http.Client] completes with an error when making a REST call, | 459 * If the used [http.Client] completes with an error when making a REST call, |
283 * this method will complete with the same error. | 460 * this method will complete with the same error. |
284 */ | 461 */ |
285 async.Future<Manifest> get(core.String project, core.String deployment, core.S
tring manifest) { | 462 async.Future<Manifest> get(core.String project, core.String deployment, core.S
tring manifest) { |
(...skipping 20 matching lines...) Expand all Loading... |
306 "GET", | 483 "GET", |
307 body: _body, | 484 body: _body, |
308 queryParams: _queryParams, | 485 queryParams: _queryParams, |
309 uploadOptions: _uploadOptions, | 486 uploadOptions: _uploadOptions, |
310 uploadMedia: _uploadMedia, | 487 uploadMedia: _uploadMedia, |
311 downloadOptions: _downloadOptions); | 488 downloadOptions: _downloadOptions); |
312 return _response.then((data) => new Manifest.fromJson(data)); | 489 return _response.then((data) => new Manifest.fromJson(data)); |
313 } | 490 } |
314 | 491 |
315 /** | 492 /** |
316 * ! Lists all manifests for a given deployment. | 493 * Lists all manifests for a given deployment. |
317 * | 494 * |
318 * Request parameters: | 495 * Request parameters: |
319 * | 496 * |
320 * [project] - ! The project ID for this request. | 497 * [project] - The project ID for this request. |
321 * Value must have pattern | 498 * Value must have pattern |
322 * "(?:(?:[-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])?))". | 499 * "(?:(?:[-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])?))". |
323 * | 500 * |
324 * [deployment] - ! The name of the deployment for this request. | 501 * [deployment] - The name of the deployment for this request. |
325 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 502 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
326 * | 503 * |
327 * [maxResults] - ! Maximum count of results to be returned. ! Acceptable | 504 * [filter] - Sets a filter expression for filtering listed resources, in the |
328 * values are 0 to 100, inclusive. (Default: 50) | 505 * form filter={expression}. Your {expression} must be in the format: |
329 * Value must be between "0" and "100". | 506 * FIELD_NAME COMPARISON_STRING LITERAL_STRING. |
330 * | 507 * |
331 * [pageToken] - ! Specifies a nextPageToken returned by a previous list | 508 * The FIELD_NAME is the name of the field you want to compare. Only atomic |
332 * request. This ! token can be used to request the next page of results from | 509 * field types are supported (string, number, boolean). The COMPARISON_STRING |
333 * a previous ! list request. | 510 * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the |
| 511 * string value to filter to. The literal value must be valid for the type of |
| 512 * field (string, number, boolean). For string fields, the literal value is |
| 513 * interpreted as a regular expression using RE2 syntax. The literal value |
| 514 * must match the entire field. |
| 515 * |
| 516 * For example, filter=name ne example-instance. |
| 517 * |
| 518 * [maxResults] - Maximum count of results to be returned. |
| 519 * Value must be between "0" and "500". |
| 520 * |
| 521 * [pageToken] - Specifies a page token to use. Use this parameter if you want |
| 522 * to list the next page of results. Set pageToken to the nextPageToken |
| 523 * returned by a previous list request. |
334 * | 524 * |
335 * Completes with a [ManifestsListResponse]. | 525 * Completes with a [ManifestsListResponse]. |
336 * | 526 * |
337 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 527 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
338 * error. | 528 * error. |
339 * | 529 * |
340 * If the used [http.Client] completes with an error when making a REST call, | 530 * If the used [http.Client] completes with an error when making a REST call, |
341 * this method will complete with the same error. | 531 * this method will complete with the same error. |
342 */ | 532 */ |
343 async.Future<ManifestsListResponse> list(core.String project, core.String depl
oyment, {core.int maxResults, core.String pageToken}) { | 533 async.Future<ManifestsListResponse> list(core.String project, core.String depl
oyment, {core.String filter, core.int maxResults, core.String pageToken}) { |
344 var _url = null; | 534 var _url = null; |
345 var _queryParams = new core.Map(); | 535 var _queryParams = new core.Map(); |
346 var _uploadMedia = null; | 536 var _uploadMedia = null; |
347 var _uploadOptions = null; | 537 var _uploadOptions = null; |
348 var _downloadOptions = commons.DownloadOptions.Metadata; | 538 var _downloadOptions = commons.DownloadOptions.Metadata; |
349 var _body = null; | 539 var _body = null; |
350 | 540 |
351 if (project == null) { | 541 if (project == null) { |
352 throw new core.ArgumentError("Parameter project is required."); | 542 throw new core.ArgumentError("Parameter project is required."); |
353 } | 543 } |
354 if (deployment == null) { | 544 if (deployment == null) { |
355 throw new core.ArgumentError("Parameter deployment is required."); | 545 throw new core.ArgumentError("Parameter deployment is required."); |
356 } | 546 } |
| 547 if (filter != null) { |
| 548 _queryParams["filter"] = [filter]; |
| 549 } |
357 if (maxResults != null) { | 550 if (maxResults != null) { |
358 _queryParams["maxResults"] = ["${maxResults}"]; | 551 _queryParams["maxResults"] = ["${maxResults}"]; |
359 } | 552 } |
360 if (pageToken != null) { | 553 if (pageToken != null) { |
361 _queryParams["pageToken"] = [pageToken]; | 554 _queryParams["pageToken"] = [pageToken]; |
362 } | 555 } |
363 | 556 |
364 _url = commons.Escaper.ecapeVariable('$project') + '/global/deployments/' +
commons.Escaper.ecapeVariable('$deployment') + '/manifests'; | 557 _url = commons.Escaper.ecapeVariable('$project') + '/global/deployments/' +
commons.Escaper.ecapeVariable('$deployment') + '/manifests'; |
365 | 558 |
366 var _response = _requester.request(_url, | 559 var _response = _requester.request(_url, |
367 "GET", | 560 "GET", |
368 body: _body, | 561 body: _body, |
369 queryParams: _queryParams, | 562 queryParams: _queryParams, |
370 uploadOptions: _uploadOptions, | 563 uploadOptions: _uploadOptions, |
371 uploadMedia: _uploadMedia, | 564 uploadMedia: _uploadMedia, |
372 downloadOptions: _downloadOptions); | 565 downloadOptions: _downloadOptions); |
373 return _response.then((data) => new ManifestsListResponse.fromJson(data)); | 566 return _response.then((data) => new ManifestsListResponse.fromJson(data)); |
374 } | 567 } |
375 | 568 |
376 } | 569 } |
377 | 570 |
378 | 571 |
379 class OperationsResourceApi { | 572 class OperationsResourceApi { |
380 final commons.ApiRequester _requester; | 573 final commons.ApiRequester _requester; |
381 | 574 |
382 OperationsResourceApi(commons.ApiRequester client) : | 575 OperationsResourceApi(commons.ApiRequester client) : |
383 _requester = client; | 576 _requester = client; |
384 | 577 |
385 /** | 578 /** |
386 * ! Gets information about a specific Operation. | 579 * Gets information about a specific operation. |
387 * | 580 * |
388 * Request parameters: | 581 * Request parameters: |
389 * | 582 * |
390 * [project] - ! The project ID for this request. | 583 * [project] - The project ID for this request. |
391 * Value must have pattern | 584 * Value must have pattern |
392 * "(?:(?:[-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])?))". | 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])?))". |
393 * | 586 * |
394 * [operation] - ! The name of the operation for this request. | 587 * [operation] - The name of the operation for this request. |
395 * | 588 * |
396 * Completes with a [Operation]. | 589 * Completes with a [Operation]. |
397 * | 590 * |
398 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 591 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
399 * error. | 592 * error. |
400 * | 593 * |
401 * If the used [http.Client] completes with an error when making a REST call, | 594 * If the used [http.Client] completes with an error when making a REST call, |
402 * this method will complete with the same error. | 595 * this method will complete with the same error. |
403 */ | 596 */ |
404 async.Future<Operation> get(core.String project, core.String operation) { | 597 async.Future<Operation> get(core.String project, core.String operation) { |
(...skipping 17 matching lines...) Expand all Loading... |
422 "GET", | 615 "GET", |
423 body: _body, | 616 body: _body, |
424 queryParams: _queryParams, | 617 queryParams: _queryParams, |
425 uploadOptions: _uploadOptions, | 618 uploadOptions: _uploadOptions, |
426 uploadMedia: _uploadMedia, | 619 uploadMedia: _uploadMedia, |
427 downloadOptions: _downloadOptions); | 620 downloadOptions: _downloadOptions); |
428 return _response.then((data) => new Operation.fromJson(data)); | 621 return _response.then((data) => new Operation.fromJson(data)); |
429 } | 622 } |
430 | 623 |
431 /** | 624 /** |
432 * ! Lists all Operations for a project. | 625 * Lists all operations for a project. |
433 * | 626 * |
434 * Request parameters: | 627 * Request parameters: |
435 * | 628 * |
436 * [project] - ! The project ID for this request. | 629 * [project] - The project ID for this request. |
437 * Value must have pattern | 630 * Value must have pattern |
438 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 631 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
439 * | 632 * |
440 * [maxResults] - ! Maximum count of results to be returned. ! Acceptable | 633 * [filter] - Sets a filter expression for filtering listed resources, in the |
441 * values are 0 to 100, inclusive. (Default: 50) | 634 * form filter={expression}. Your {expression} must be in the format: |
442 * Value must be between "0" and "100". | 635 * FIELD_NAME COMPARISON_STRING LITERAL_STRING. |
443 * | 636 * |
444 * [pageToken] - ! Specifies a nextPageToken returned by a previous list | 637 * The FIELD_NAME is the name of the field you want to compare. Only atomic |
445 * request. This ! token can be used to request the next page of results from | 638 * field types are supported (string, number, boolean). The COMPARISON_STRING |
446 * a previous ! list request. | 639 * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the |
| 640 * string value to filter to. The literal value must be valid for the type of |
| 641 * field (string, number, boolean). For string fields, the literal value is |
| 642 * interpreted as a regular expression using RE2 syntax. The literal value |
| 643 * must match the entire field. |
| 644 * |
| 645 * For example, filter=name ne example-instance. |
| 646 * |
| 647 * [maxResults] - Maximum count of results to be returned. |
| 648 * Value must be between "0" and "500". |
| 649 * |
| 650 * [pageToken] - Specifies a page token to use. Use this parameter if you want |
| 651 * to list the next page of results. Set pageToken to the nextPageToken |
| 652 * returned by a previous list request. |
447 * | 653 * |
448 * Completes with a [OperationsListResponse]. | 654 * Completes with a [OperationsListResponse]. |
449 * | 655 * |
450 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 656 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
451 * error. | 657 * error. |
452 * | 658 * |
453 * If the used [http.Client] completes with an error when making a REST call, | 659 * If the used [http.Client] completes with an error when making a REST call, |
454 * this method will complete with the same error. | 660 * this method will complete with the same error. |
455 */ | 661 */ |
456 async.Future<OperationsListResponse> list(core.String project, {core.int maxRe
sults, core.String pageToken}) { | 662 async.Future<OperationsListResponse> list(core.String project, {core.String fi
lter, core.int maxResults, core.String pageToken}) { |
457 var _url = null; | 663 var _url = null; |
458 var _queryParams = new core.Map(); | 664 var _queryParams = new core.Map(); |
459 var _uploadMedia = null; | 665 var _uploadMedia = null; |
460 var _uploadOptions = null; | 666 var _uploadOptions = null; |
461 var _downloadOptions = commons.DownloadOptions.Metadata; | 667 var _downloadOptions = commons.DownloadOptions.Metadata; |
462 var _body = null; | 668 var _body = null; |
463 | 669 |
464 if (project == null) { | 670 if (project == null) { |
465 throw new core.ArgumentError("Parameter project is required."); | 671 throw new core.ArgumentError("Parameter project is required."); |
466 } | 672 } |
| 673 if (filter != null) { |
| 674 _queryParams["filter"] = [filter]; |
| 675 } |
467 if (maxResults != null) { | 676 if (maxResults != null) { |
468 _queryParams["maxResults"] = ["${maxResults}"]; | 677 _queryParams["maxResults"] = ["${maxResults}"]; |
469 } | 678 } |
470 if (pageToken != null) { | 679 if (pageToken != null) { |
471 _queryParams["pageToken"] = [pageToken]; | 680 _queryParams["pageToken"] = [pageToken]; |
472 } | 681 } |
473 | 682 |
474 _url = commons.Escaper.ecapeVariable('$project') + '/global/operations'; | 683 _url = commons.Escaper.ecapeVariable('$project') + '/global/operations'; |
475 | 684 |
476 var _response = _requester.request(_url, | 685 var _response = _requester.request(_url, |
477 "GET", | 686 "GET", |
478 body: _body, | 687 body: _body, |
479 queryParams: _queryParams, | 688 queryParams: _queryParams, |
480 uploadOptions: _uploadOptions, | 689 uploadOptions: _uploadOptions, |
481 uploadMedia: _uploadMedia, | 690 uploadMedia: _uploadMedia, |
482 downloadOptions: _downloadOptions); | 691 downloadOptions: _downloadOptions); |
483 return _response.then((data) => new OperationsListResponse.fromJson(data)); | 692 return _response.then((data) => new OperationsListResponse.fromJson(data)); |
484 } | 693 } |
485 | 694 |
486 } | 695 } |
487 | 696 |
488 | 697 |
489 class ResourcesResourceApi { | 698 class ResourcesResourceApi { |
490 final commons.ApiRequester _requester; | 699 final commons.ApiRequester _requester; |
491 | 700 |
492 ResourcesResourceApi(commons.ApiRequester client) : | 701 ResourcesResourceApi(commons.ApiRequester client) : |
493 _requester = client; | 702 _requester = client; |
494 | 703 |
495 /** | 704 /** |
496 * ! Gets information about a single resource. | 705 * Gets information about a single resource. |
497 * | 706 * |
498 * Request parameters: | 707 * Request parameters: |
499 * | 708 * |
500 * [project] - ! The project ID for this request. | 709 * [project] - The project ID for this request. |
501 * Value must have pattern | 710 * Value must have pattern |
502 * "(?:(?:[-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])?))". | 711 * "(?:(?:[-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])?))". |
503 * | 712 * |
504 * [deployment] - ! The name of the deployment for this request. | 713 * [deployment] - The name of the deployment for this request. |
505 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 714 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
506 * | 715 * |
507 * [resource] - ! The name of the resource for this request. | 716 * [resource] - The name of the resource for this request. |
508 * Value must have pattern "[-a-z0-9]{1,61}". | |
509 * | 717 * |
510 * Completes with a [Resource]. | 718 * Completes with a [Resource]. |
511 * | 719 * |
512 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 720 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
513 * error. | 721 * error. |
514 * | 722 * |
515 * If the used [http.Client] completes with an error when making a REST call, | 723 * If the used [http.Client] completes with an error when making a REST call, |
516 * this method will complete with the same error. | 724 * this method will complete with the same error. |
517 */ | 725 */ |
518 async.Future<Resource> get(core.String project, core.String deployment, core.S
tring resource) { | 726 async.Future<Resource> get(core.String project, core.String deployment, core.S
tring resource) { |
(...skipping 20 matching lines...) Expand all Loading... |
539 "GET", | 747 "GET", |
540 body: _body, | 748 body: _body, |
541 queryParams: _queryParams, | 749 queryParams: _queryParams, |
542 uploadOptions: _uploadOptions, | 750 uploadOptions: _uploadOptions, |
543 uploadMedia: _uploadMedia, | 751 uploadMedia: _uploadMedia, |
544 downloadOptions: _downloadOptions); | 752 downloadOptions: _downloadOptions); |
545 return _response.then((data) => new Resource.fromJson(data)); | 753 return _response.then((data) => new Resource.fromJson(data)); |
546 } | 754 } |
547 | 755 |
548 /** | 756 /** |
549 * ! Lists all resources in a given deployment. | 757 * Lists all resources in a given deployment. |
550 * | 758 * |
551 * Request parameters: | 759 * Request parameters: |
552 * | 760 * |
553 * [project] - ! The project ID for this request. | 761 * [project] - The project ID for this request. |
554 * Value must have pattern | 762 * Value must have pattern |
555 * "(?:(?:[-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])?))". | 763 * "(?:(?:[-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])?))". |
556 * | 764 * |
557 * [deployment] - ! The name of the deployment for this request. | 765 * [deployment] - The name of the deployment for this request. |
558 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 766 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
559 * | 767 * |
560 * [maxResults] - ! Maximum count of results to be returned. ! Acceptable | 768 * [filter] - Sets a filter expression for filtering listed resources, in the |
561 * values are 0 to 100, inclusive. (Default: 50) | 769 * form filter={expression}. Your {expression} must be in the format: |
562 * Value must be between "0" and "100". | 770 * FIELD_NAME COMPARISON_STRING LITERAL_STRING. |
563 * | 771 * |
564 * [pageToken] - ! Specifies a nextPageToken returned by a previous list | 772 * The FIELD_NAME is the name of the field you want to compare. Only atomic |
565 * request. This ! token can be used to request the next page of results from | 773 * field types are supported (string, number, boolean). The COMPARISON_STRING |
566 * a previous ! list request. | 774 * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the |
| 775 * string value to filter to. The literal value must be valid for the type of |
| 776 * field (string, number, boolean). For string fields, the literal value is |
| 777 * interpreted as a regular expression using RE2 syntax. The literal value |
| 778 * must match the entire field. |
| 779 * |
| 780 * For example, filter=name ne example-instance. |
| 781 * |
| 782 * [maxResults] - Maximum count of results to be returned. |
| 783 * Value must be between "0" and "500". |
| 784 * |
| 785 * [pageToken] - Specifies a page token to use. Use this parameter if you want |
| 786 * to list the next page of results. Set pageToken to the nextPageToken |
| 787 * returned by a previous list request. |
567 * | 788 * |
568 * Completes with a [ResourcesListResponse]. | 789 * Completes with a [ResourcesListResponse]. |
569 * | 790 * |
570 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 791 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
571 * error. | 792 * error. |
572 * | 793 * |
573 * If the used [http.Client] completes with an error when making a REST call, | 794 * If the used [http.Client] completes with an error when making a REST call, |
574 * this method will complete with the same error. | 795 * this method will complete with the same error. |
575 */ | 796 */ |
576 async.Future<ResourcesListResponse> list(core.String project, core.String depl
oyment, {core.int maxResults, core.String pageToken}) { | 797 async.Future<ResourcesListResponse> list(core.String project, core.String depl
oyment, {core.String filter, core.int maxResults, core.String pageToken}) { |
577 var _url = null; | 798 var _url = null; |
578 var _queryParams = new core.Map(); | 799 var _queryParams = new core.Map(); |
579 var _uploadMedia = null; | 800 var _uploadMedia = null; |
580 var _uploadOptions = null; | 801 var _uploadOptions = null; |
581 var _downloadOptions = commons.DownloadOptions.Metadata; | 802 var _downloadOptions = commons.DownloadOptions.Metadata; |
582 var _body = null; | 803 var _body = null; |
583 | 804 |
584 if (project == null) { | 805 if (project == null) { |
585 throw new core.ArgumentError("Parameter project is required."); | 806 throw new core.ArgumentError("Parameter project is required."); |
586 } | 807 } |
587 if (deployment == null) { | 808 if (deployment == null) { |
588 throw new core.ArgumentError("Parameter deployment is required."); | 809 throw new core.ArgumentError("Parameter deployment is required."); |
589 } | 810 } |
| 811 if (filter != null) { |
| 812 _queryParams["filter"] = [filter]; |
| 813 } |
590 if (maxResults != null) { | 814 if (maxResults != null) { |
591 _queryParams["maxResults"] = ["${maxResults}"]; | 815 _queryParams["maxResults"] = ["${maxResults}"]; |
592 } | 816 } |
593 if (pageToken != null) { | 817 if (pageToken != null) { |
594 _queryParams["pageToken"] = [pageToken]; | 818 _queryParams["pageToken"] = [pageToken]; |
595 } | 819 } |
596 | 820 |
597 _url = commons.Escaper.ecapeVariable('$project') + '/global/deployments/' +
commons.Escaper.ecapeVariable('$deployment') + '/resources'; | 821 _url = commons.Escaper.ecapeVariable('$project') + '/global/deployments/' +
commons.Escaper.ecapeVariable('$deployment') + '/resources'; |
598 | 822 |
599 var _response = _requester.request(_url, | 823 var _response = _requester.request(_url, |
600 "GET", | 824 "GET", |
601 body: _body, | 825 body: _body, |
602 queryParams: _queryParams, | 826 queryParams: _queryParams, |
603 uploadOptions: _uploadOptions, | 827 uploadOptions: _uploadOptions, |
604 uploadMedia: _uploadMedia, | 828 uploadMedia: _uploadMedia, |
605 downloadOptions: _downloadOptions); | 829 downloadOptions: _downloadOptions); |
606 return _response.then((data) => new ResourcesListResponse.fromJson(data)); | 830 return _response.then((data) => new ResourcesListResponse.fromJson(data)); |
607 } | 831 } |
608 | 832 |
609 } | 833 } |
610 | 834 |
611 | 835 |
612 class TypesResourceApi { | 836 class TypesResourceApi { |
613 final commons.ApiRequester _requester; | 837 final commons.ApiRequester _requester; |
614 | 838 |
615 TypesResourceApi(commons.ApiRequester client) : | 839 TypesResourceApi(commons.ApiRequester client) : |
616 _requester = client; | 840 _requester = client; |
617 | 841 |
618 /** | 842 /** |
619 * ! Lists all Types for Deployment Manager. | 843 * Lists all resource types for Deployment Manager. |
620 * | 844 * |
621 * Request parameters: | 845 * Request parameters: |
622 * | 846 * |
623 * [project] - ! The project ID for this request. | 847 * [project] - The project ID for this request. |
624 * Value must have pattern | 848 * Value must have pattern |
625 * "(?:(?:[-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])?))". | 849 * "(?:(?:[-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])?))". |
626 * | 850 * |
627 * [maxResults] - ! Maximum count of results to be returned. ! Acceptable | 851 * [filter] - Sets a filter expression for filtering listed resources, in the |
628 * values are 0 to 100, inclusive. (Default: 50) | 852 * form filter={expression}. Your {expression} must be in the format: |
629 * Value must be between "0" and "100". | 853 * FIELD_NAME COMPARISON_STRING LITERAL_STRING. |
630 * | 854 * |
631 * [pageToken] - ! Specifies a nextPageToken returned by a previous list | 855 * The FIELD_NAME is the name of the field you want to compare. Only atomic |
632 * request. This ! token can be used to request the next page of results from | 856 * field types are supported (string, number, boolean). The COMPARISON_STRING |
633 * a previous ! list request. | 857 * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the |
| 858 * string value to filter to. The literal value must be valid for the type of |
| 859 * field (string, number, boolean). For string fields, the literal value is |
| 860 * interpreted as a regular expression using RE2 syntax. The literal value |
| 861 * must match the entire field. |
| 862 * |
| 863 * For example, filter=name ne example-instance. |
| 864 * |
| 865 * [maxResults] - Maximum count of results to be returned. |
| 866 * Value must be between "0" and "500". |
| 867 * |
| 868 * [pageToken] - Specifies a page token to use. Use this parameter if you want |
| 869 * to list the next page of results. Set pageToken to the nextPageToken |
| 870 * returned by a previous list request. |
634 * | 871 * |
635 * Completes with a [TypesListResponse]. | 872 * Completes with a [TypesListResponse]. |
636 * | 873 * |
637 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 874 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
638 * error. | 875 * error. |
639 * | 876 * |
640 * If the used [http.Client] completes with an error when making a REST call, | 877 * If the used [http.Client] completes with an error when making a REST call, |
641 * this method will complete with the same error. | 878 * this method will complete with the same error. |
642 */ | 879 */ |
643 async.Future<TypesListResponse> list(core.String project, {core.int maxResults
, core.String pageToken}) { | 880 async.Future<TypesListResponse> list(core.String project, {core.String filter,
core.int maxResults, core.String pageToken}) { |
644 var _url = null; | 881 var _url = null; |
645 var _queryParams = new core.Map(); | 882 var _queryParams = new core.Map(); |
646 var _uploadMedia = null; | 883 var _uploadMedia = null; |
647 var _uploadOptions = null; | 884 var _uploadOptions = null; |
648 var _downloadOptions = commons.DownloadOptions.Metadata; | 885 var _downloadOptions = commons.DownloadOptions.Metadata; |
649 var _body = null; | 886 var _body = null; |
650 | 887 |
651 if (project == null) { | 888 if (project == null) { |
652 throw new core.ArgumentError("Parameter project is required."); | 889 throw new core.ArgumentError("Parameter project is required."); |
653 } | 890 } |
| 891 if (filter != null) { |
| 892 _queryParams["filter"] = [filter]; |
| 893 } |
654 if (maxResults != null) { | 894 if (maxResults != null) { |
655 _queryParams["maxResults"] = ["${maxResults}"]; | 895 _queryParams["maxResults"] = ["${maxResults}"]; |
656 } | 896 } |
657 if (pageToken != null) { | 897 if (pageToken != null) { |
658 _queryParams["pageToken"] = [pageToken]; | 898 _queryParams["pageToken"] = [pageToken]; |
659 } | 899 } |
660 | 900 |
661 _url = commons.Escaper.ecapeVariable('$project') + '/global/types'; | 901 _url = commons.Escaper.ecapeVariable('$project') + '/global/types'; |
662 | 902 |
663 var _response = _requester.request(_url, | 903 var _response = _requester.request(_url, |
664 "GET", | 904 "GET", |
665 body: _body, | 905 body: _body, |
666 queryParams: _queryParams, | 906 queryParams: _queryParams, |
667 uploadOptions: _uploadOptions, | 907 uploadOptions: _uploadOptions, |
668 uploadMedia: _uploadMedia, | 908 uploadMedia: _uploadMedia, |
669 downloadOptions: _downloadOptions); | 909 downloadOptions: _downloadOptions); |
670 return _response.then((data) => new TypesListResponse.fromJson(data)); | 910 return _response.then((data) => new TypesListResponse.fromJson(data)); |
671 } | 911 } |
672 | 912 |
673 } | 913 } |
674 | 914 |
675 | 915 |
676 | 916 |
677 /** Next available tag: 8 */ | |
678 class Deployment { | 917 class Deployment { |
679 /** ! An optional user-provided description of the deployment. */ | 918 /** An optional user-provided description of the deployment. */ |
680 core.String description; | 919 core.String description; |
681 /** | 920 /** |
| 921 * Specifies a fingerprint for update() requests. A fingerprint is a randomly |
| 922 * generated value that must be provided in update() requests to perform |
| 923 * optimistic locking. This ensures optimistic concurrency so that only one |
| 924 * update can be performed at a time. The fingerprint is initially generated |
| 925 * by Deployment Manager and changes after every request to modify data. To |
| 926 * get the latest fingerprint value, perform a get() request to a deployment. |
| 927 */ |
| 928 core.String fingerprint; |
| 929 core.List<core.int> get fingerprintAsBytes { |
| 930 return crypto.CryptoUtils.base64StringToBytes(fingerprint); |
| 931 } |
| 932 |
| 933 void set fingerprintAsBytes(core.List<core.int> _bytes) { |
| 934 fingerprint = crypto.CryptoUtils.bytesToBase64(_bytes, urlSafe: true); |
| 935 } |
| 936 /** |
682 * [Output Only] Unique identifier for the resource; defined by the server. | 937 * [Output Only] Unique identifier for the resource; defined by the server. |
683 */ | 938 */ |
684 core.String id; | 939 core.String id; |
685 /** | 940 /** |
686 * ! [Output Only] URL of the manifest representing the full configuration ! | 941 * [Output Only] Timestamp when the deployment was created, in RFC3339 text |
687 * of this deployment. | 942 * format . |
| 943 */ |
| 944 core.String insertTime; |
| 945 /** |
| 946 * [Input Only] Specifies how Deployment Manager should apply this template. |
| 947 * Possible options are PREVIEW, UPDATE, and CANCEL. |
| 948 * |
| 949 * PREVIEW creates a deployment and creates "shell" resources but does not |
| 950 * actually instantiate these resources. This allows you to preview what your |
| 951 * deployment looks like. You can use this intent to preview updates to |
| 952 * deployments or preview new deployments. You must provide a target.config |
| 953 * with a configuration for this intent. After previewing a deployment, you |
| 954 * can deploy your resources by making a request with the UPDATE intent or you |
| 955 * can CANCEL the preview altogether. Note that the deployment will still |
| 956 * exist after you cancel the preview and you must separately delete this |
| 957 * deployment if you want to remove it. |
| 958 * |
| 959 * UPDATE performs an update to the underlying resources in a deployment. If |
| 960 * you provide a populated target.config field with this request, Deployment |
| 961 * Manager uses that configuration to perform an update. If you had previewed |
| 962 * this update beforehand, and do not supply a target.config or provide an |
| 963 * empty target.config, Deployment Manager uses the last previewed |
| 964 * configuration. |
| 965 * |
| 966 * CANCEL cancels an update that is in PREVIEW or UPDATE but does not undo any |
| 967 * changes already made. |
| 968 */ |
| 969 core.String intent; |
| 970 /** |
| 971 * [Output Only] URL of the manifest representing the last manifest that was |
| 972 * successfully deployed. |
688 */ | 973 */ |
689 core.String manifest; | 974 core.String manifest; |
690 /** ! The name of the deployment, which must be unique within the project. */ | 975 /** |
| 976 * Name of the resource; provided by the client when the resource is created. |
| 977 * The name must be 1-63 characters long, and comply with RFC1035. |
| 978 * Specifically, the name must be 1-63 characters long and match the regular |
| 979 * expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must |
| 980 * be a lowercase letter, and all following characters must be a dash, |
| 981 * lowercase letter, or digit, except the last character, which cannot be a |
| 982 * dash. |
| 983 */ |
691 core.String name; | 984 core.String name; |
692 /** | 985 /** |
693 * ! [Input Only] The YAML configuration to use in processing this deployment. | 986 * [Output Only] The current state of the deployment. This can be DEPLOYED, |
694 * ! ! When you create a deployment, the server creates a new manifest with | 987 * DEPLOYMENT_FAILED, PREVIEWING, UPDATING, and CANCELING. |
695 * the ! given YAML configuration and sets the `manifest` property to the URL | |
696 * of ! the manifest resource. | |
697 */ | 988 */ |
698 core.String targetConfig; | 989 core.String state; |
| 990 /** |
| 991 * [Input Only] The parameters that define your deployment, including the |
| 992 * deployment configuration and relevant templates. |
| 993 */ |
| 994 TargetConfiguration target; |
| 995 /** |
| 996 * [Output Only] If Deployment Manager is currently updating or previewing an |
| 997 * update to this deployment, the updated configuration appears here. |
| 998 */ |
| 999 DeploymentUpdate update; |
| 1000 /** |
| 1001 * [Output Only] Timestamp when the deployment was updated, in RFC3339 text |
| 1002 * format . |
| 1003 */ |
| 1004 core.String updateTime; |
699 | 1005 |
700 Deployment(); | 1006 Deployment(); |
701 | 1007 |
702 Deployment.fromJson(core.Map _json) { | 1008 Deployment.fromJson(core.Map _json) { |
703 if (_json.containsKey("description")) { | 1009 if (_json.containsKey("description")) { |
704 description = _json["description"]; | 1010 description = _json["description"]; |
705 } | 1011 } |
| 1012 if (_json.containsKey("fingerprint")) { |
| 1013 fingerprint = _json["fingerprint"]; |
| 1014 } |
706 if (_json.containsKey("id")) { | 1015 if (_json.containsKey("id")) { |
707 id = _json["id"]; | 1016 id = _json["id"]; |
708 } | 1017 } |
| 1018 if (_json.containsKey("insertTime")) { |
| 1019 insertTime = _json["insertTime"]; |
| 1020 } |
| 1021 if (_json.containsKey("intent")) { |
| 1022 intent = _json["intent"]; |
| 1023 } |
709 if (_json.containsKey("manifest")) { | 1024 if (_json.containsKey("manifest")) { |
710 manifest = _json["manifest"]; | 1025 manifest = _json["manifest"]; |
711 } | 1026 } |
712 if (_json.containsKey("name")) { | 1027 if (_json.containsKey("name")) { |
713 name = _json["name"]; | 1028 name = _json["name"]; |
714 } | 1029 } |
715 if (_json.containsKey("targetConfig")) { | 1030 if (_json.containsKey("state")) { |
716 targetConfig = _json["targetConfig"]; | 1031 state = _json["state"]; |
| 1032 } |
| 1033 if (_json.containsKey("target")) { |
| 1034 target = new TargetConfiguration.fromJson(_json["target"]); |
| 1035 } |
| 1036 if (_json.containsKey("update")) { |
| 1037 update = new DeploymentUpdate.fromJson(_json["update"]); |
| 1038 } |
| 1039 if (_json.containsKey("updateTime")) { |
| 1040 updateTime = _json["updateTime"]; |
717 } | 1041 } |
718 } | 1042 } |
719 | 1043 |
720 core.Map toJson() { | 1044 core.Map toJson() { |
721 var _json = new core.Map(); | 1045 var _json = new core.Map(); |
722 if (description != null) { | 1046 if (description != null) { |
723 _json["description"] = description; | 1047 _json["description"] = description; |
724 } | 1048 } |
| 1049 if (fingerprint != null) { |
| 1050 _json["fingerprint"] = fingerprint; |
| 1051 } |
725 if (id != null) { | 1052 if (id != null) { |
726 _json["id"] = id; | 1053 _json["id"] = id; |
727 } | 1054 } |
| 1055 if (insertTime != null) { |
| 1056 _json["insertTime"] = insertTime; |
| 1057 } |
| 1058 if (intent != null) { |
| 1059 _json["intent"] = intent; |
| 1060 } |
728 if (manifest != null) { | 1061 if (manifest != null) { |
729 _json["manifest"] = manifest; | 1062 _json["manifest"] = manifest; |
730 } | 1063 } |
731 if (name != null) { | 1064 if (name != null) { |
732 _json["name"] = name; | 1065 _json["name"] = name; |
733 } | 1066 } |
734 if (targetConfig != null) { | 1067 if (state != null) { |
735 _json["targetConfig"] = targetConfig; | 1068 _json["state"] = state; |
| 1069 } |
| 1070 if (target != null) { |
| 1071 _json["target"] = (target).toJson(); |
| 1072 } |
| 1073 if (update != null) { |
| 1074 _json["update"] = (update).toJson(); |
| 1075 } |
| 1076 if (updateTime != null) { |
| 1077 _json["updateTime"] = updateTime; |
| 1078 } |
| 1079 return _json; |
| 1080 } |
| 1081 } |
| 1082 |
| 1083 class DeploymentUpdate { |
| 1084 /** |
| 1085 * [Output Only] List of all errors encountered while trying to enact the |
| 1086 * update. |
| 1087 */ |
| 1088 core.List<core.String> errors; |
| 1089 /** |
| 1090 * [Output Only] URL of the manifest representing the update configuration of |
| 1091 * this deployment. |
| 1092 */ |
| 1093 core.String manifest; |
| 1094 |
| 1095 DeploymentUpdate(); |
| 1096 |
| 1097 DeploymentUpdate.fromJson(core.Map _json) { |
| 1098 if (_json.containsKey("errors")) { |
| 1099 errors = _json["errors"]; |
| 1100 } |
| 1101 if (_json.containsKey("manifest")) { |
| 1102 manifest = _json["manifest"]; |
| 1103 } |
| 1104 } |
| 1105 |
| 1106 core.Map toJson() { |
| 1107 var _json = new core.Map(); |
| 1108 if (errors != null) { |
| 1109 _json["errors"] = errors; |
| 1110 } |
| 1111 if (manifest != null) { |
| 1112 _json["manifest"] = manifest; |
736 } | 1113 } |
737 return _json; | 1114 return _json; |
738 } | 1115 } |
739 } | 1116 } |
740 | 1117 |
741 /** | 1118 /** |
742 * ! A response containing a partial list of deployments and a page token used ! | 1119 * A response containing a partial list of deployments and a page token used to |
743 * to build the next request if the request has been truncated. Next available | 1120 * build the next request if the request has been truncated. |
744 * tag: 4 | |
745 */ | 1121 */ |
746 class DeploymentsListResponse { | 1122 class DeploymentsListResponse { |
747 /** ! The deployments contained in this response. */ | 1123 /** [Output Only] The deployments contained in this response. */ |
748 core.List<Deployment> deployments; | 1124 core.List<Deployment> deployments; |
749 /** ! A token used to continue a truncated list request. */ | 1125 /** [Output Only] A token used to continue a truncated list request. */ |
750 core.String nextPageToken; | 1126 core.String nextPageToken; |
751 | 1127 |
752 DeploymentsListResponse(); | 1128 DeploymentsListResponse(); |
753 | 1129 |
754 DeploymentsListResponse.fromJson(core.Map _json) { | 1130 DeploymentsListResponse.fromJson(core.Map _json) { |
755 if (_json.containsKey("deployments")) { | 1131 if (_json.containsKey("deployments")) { |
756 deployments = _json["deployments"].map((value) => new Deployment.fromJson(
value)).toList(); | 1132 deployments = _json["deployments"].map((value) => new Deployment.fromJson(
value)).toList(); |
757 } | 1133 } |
758 if (_json.containsKey("nextPageToken")) { | 1134 if (_json.containsKey("nextPageToken")) { |
759 nextPageToken = _json["nextPageToken"]; | 1135 nextPageToken = _json["nextPageToken"]; |
760 } | 1136 } |
761 } | 1137 } |
762 | 1138 |
763 core.Map toJson() { | 1139 core.Map toJson() { |
764 var _json = new core.Map(); | 1140 var _json = new core.Map(); |
765 if (deployments != null) { | 1141 if (deployments != null) { |
766 _json["deployments"] = deployments.map((value) => (value).toJson()).toList
(); | 1142 _json["deployments"] = deployments.map((value) => (value).toJson()).toList
(); |
767 } | 1143 } |
768 if (nextPageToken != null) { | 1144 if (nextPageToken != null) { |
769 _json["nextPageToken"] = nextPageToken; | 1145 _json["nextPageToken"] = nextPageToken; |
770 } | 1146 } |
771 return _json; | 1147 return _json; |
772 } | 1148 } |
773 } | 1149 } |
774 | 1150 |
775 /** Next available tag: 10 */ | 1151 class ImportFile { |
| 1152 /** The contents of the file. */ |
| 1153 core.String content; |
| 1154 /** The name of the file. */ |
| 1155 core.String name; |
| 1156 |
| 1157 ImportFile(); |
| 1158 |
| 1159 ImportFile.fromJson(core.Map _json) { |
| 1160 if (_json.containsKey("content")) { |
| 1161 content = _json["content"]; |
| 1162 } |
| 1163 if (_json.containsKey("name")) { |
| 1164 name = _json["name"]; |
| 1165 } |
| 1166 } |
| 1167 |
| 1168 core.Map toJson() { |
| 1169 var _json = new core.Map(); |
| 1170 if (content != null) { |
| 1171 _json["content"] = content; |
| 1172 } |
| 1173 if (name != null) { |
| 1174 _json["name"] = name; |
| 1175 } |
| 1176 return _json; |
| 1177 } |
| 1178 } |
| 1179 |
776 class Manifest { | 1180 class Manifest { |
777 /** | 1181 /** [Output Only] The YAML configuration for this manifest. */ |
778 * v2beta1: YAML with config - described above v2beta2: YAML + templates. ! | |
779 * The YAML configuration for this manifest. | |
780 */ | |
781 core.String config; | 1182 core.String config; |
782 /** | 1183 /** |
783 * ! [Output Only] The fully-expanded configuration file, including any ! | 1184 * [Output Only] The fully-expanded configuration file, including any |
784 * templates and references. | 1185 * templates and references. |
785 */ | 1186 */ |
786 core.String evaluatedConfig; | 1187 core.String evaluatedConfig; |
787 /** | 1188 /** |
788 * [Output Only] Unique identifier for the resource; defined by the server. | 1189 * [Output Only] Unique identifier for the resource; defined by the server. |
789 */ | 1190 */ |
790 core.String id; | 1191 core.String id; |
791 /** ! [Output Only] The name of the manifest. */ | 1192 /** [Output Only] The imported files for this manifest. */ |
| 1193 core.List<ImportFile> imports; |
| 1194 /** |
| 1195 * [Output Only] Timestamp when the manifest was created, in RFC3339 text |
| 1196 * format. |
| 1197 */ |
| 1198 core.String insertTime; |
| 1199 /** [Output Only] The YAML layout for this manifest. */ |
| 1200 core.String layout; |
| 1201 /** [Output Only] The name of the manifest. */ |
792 core.String name; | 1202 core.String name; |
793 /** [Output Only] Self link for the manifest. */ | 1203 /** [Output Only] Self link for the manifest. */ |
794 core.String selfLink; | 1204 core.String selfLink; |
795 | 1205 |
796 Manifest(); | 1206 Manifest(); |
797 | 1207 |
798 Manifest.fromJson(core.Map _json) { | 1208 Manifest.fromJson(core.Map _json) { |
799 if (_json.containsKey("config")) { | 1209 if (_json.containsKey("config")) { |
800 config = _json["config"]; | 1210 config = _json["config"]; |
801 } | 1211 } |
802 if (_json.containsKey("evaluatedConfig")) { | 1212 if (_json.containsKey("evaluatedConfig")) { |
803 evaluatedConfig = _json["evaluatedConfig"]; | 1213 evaluatedConfig = _json["evaluatedConfig"]; |
804 } | 1214 } |
805 if (_json.containsKey("id")) { | 1215 if (_json.containsKey("id")) { |
806 id = _json["id"]; | 1216 id = _json["id"]; |
807 } | 1217 } |
| 1218 if (_json.containsKey("imports")) { |
| 1219 imports = _json["imports"].map((value) => new ImportFile.fromJson(value)).
toList(); |
| 1220 } |
| 1221 if (_json.containsKey("insertTime")) { |
| 1222 insertTime = _json["insertTime"]; |
| 1223 } |
| 1224 if (_json.containsKey("layout")) { |
| 1225 layout = _json["layout"]; |
| 1226 } |
808 if (_json.containsKey("name")) { | 1227 if (_json.containsKey("name")) { |
809 name = _json["name"]; | 1228 name = _json["name"]; |
810 } | 1229 } |
811 if (_json.containsKey("selfLink")) { | 1230 if (_json.containsKey("selfLink")) { |
812 selfLink = _json["selfLink"]; | 1231 selfLink = _json["selfLink"]; |
813 } | 1232 } |
814 } | 1233 } |
815 | 1234 |
816 core.Map toJson() { | 1235 core.Map toJson() { |
817 var _json = new core.Map(); | 1236 var _json = new core.Map(); |
818 if (config != null) { | 1237 if (config != null) { |
819 _json["config"] = config; | 1238 _json["config"] = config; |
820 } | 1239 } |
821 if (evaluatedConfig != null) { | 1240 if (evaluatedConfig != null) { |
822 _json["evaluatedConfig"] = evaluatedConfig; | 1241 _json["evaluatedConfig"] = evaluatedConfig; |
823 } | 1242 } |
824 if (id != null) { | 1243 if (id != null) { |
825 _json["id"] = id; | 1244 _json["id"] = id; |
826 } | 1245 } |
| 1246 if (imports != null) { |
| 1247 _json["imports"] = imports.map((value) => (value).toJson()).toList(); |
| 1248 } |
| 1249 if (insertTime != null) { |
| 1250 _json["insertTime"] = insertTime; |
| 1251 } |
| 1252 if (layout != null) { |
| 1253 _json["layout"] = layout; |
| 1254 } |
827 if (name != null) { | 1255 if (name != null) { |
828 _json["name"] = name; | 1256 _json["name"] = name; |
829 } | 1257 } |
830 if (selfLink != null) { | 1258 if (selfLink != null) { |
831 _json["selfLink"] = selfLink; | 1259 _json["selfLink"] = selfLink; |
832 } | 1260 } |
833 return _json; | 1261 return _json; |
834 } | 1262 } |
835 } | 1263 } |
836 | 1264 |
837 /** | 1265 /** |
838 * ! A response containing a partial list of manifests and a page token used ! | 1266 * A response containing a partial list of manifests and a page token used to |
839 * to build the next request if the request has been truncated. Next available | 1267 * build the next request if the request has been truncated. |
840 * tag: 4 | |
841 */ | 1268 */ |
842 class ManifestsListResponse { | 1269 class ManifestsListResponse { |
843 /** ! Manifests contained in this list response. */ | 1270 /** [Output Only] Manifests contained in this list response. */ |
844 core.List<Manifest> manifests; | 1271 core.List<Manifest> manifests; |
845 /** ! A token used to continue a truncated list request. */ | 1272 /** [Output Only] A token used to continue a truncated list request. */ |
846 core.String nextPageToken; | 1273 core.String nextPageToken; |
847 | 1274 |
848 ManifestsListResponse(); | 1275 ManifestsListResponse(); |
849 | 1276 |
850 ManifestsListResponse.fromJson(core.Map _json) { | 1277 ManifestsListResponse.fromJson(core.Map _json) { |
851 if (_json.containsKey("manifests")) { | 1278 if (_json.containsKey("manifests")) { |
852 manifests = _json["manifests"].map((value) => new Manifest.fromJson(value)
).toList(); | 1279 manifests = _json["manifests"].map((value) => new Manifest.fromJson(value)
).toList(); |
853 } | 1280 } |
854 if (_json.containsKey("nextPageToken")) { | 1281 if (_json.containsKey("nextPageToken")) { |
855 nextPageToken = _json["nextPageToken"]; | 1282 nextPageToken = _json["nextPageToken"]; |
856 } | 1283 } |
857 } | 1284 } |
858 | 1285 |
859 core.Map toJson() { | 1286 core.Map toJson() { |
860 var _json = new core.Map(); | 1287 var _json = new core.Map(); |
861 if (manifests != null) { | 1288 if (manifests != null) { |
862 _json["manifests"] = manifests.map((value) => (value).toJson()).toList(); | 1289 _json["manifests"] = manifests.map((value) => (value).toJson()).toList(); |
863 } | 1290 } |
864 if (nextPageToken != null) { | 1291 if (nextPageToken != null) { |
865 _json["nextPageToken"] = nextPageToken; | 1292 _json["nextPageToken"] = nextPageToken; |
866 } | 1293 } |
867 return _json; | 1294 return _json; |
868 } | 1295 } |
869 } | 1296 } |
870 | 1297 |
871 class OperationErrorErrors { | 1298 class OperationErrorErrors { |
872 /** ! The error type identifier for this error. */ | 1299 /** [Output Only] The error type identifier for this error. */ |
873 core.String code; | 1300 core.String code; |
874 /** | 1301 /** |
875 * ! Indicates the field in the request which caused the error. ! This | 1302 * [Output Only] Indicates the field in the request which caused the error. |
876 * property is optional. | 1303 * This property is optional. |
877 */ | 1304 */ |
878 core.String location; | 1305 core.String location; |
879 /** ! An optional, human-readable error message. */ | 1306 /** [Output Only] An optional, human-readable error message. */ |
880 core.String message; | 1307 core.String message; |
881 | 1308 |
882 OperationErrorErrors(); | 1309 OperationErrorErrors(); |
883 | 1310 |
884 OperationErrorErrors.fromJson(core.Map _json) { | 1311 OperationErrorErrors.fromJson(core.Map _json) { |
885 if (_json.containsKey("code")) { | 1312 if (_json.containsKey("code")) { |
886 code = _json["code"]; | 1313 code = _json["code"]; |
887 } | 1314 } |
888 if (_json.containsKey("location")) { | 1315 if (_json.containsKey("location")) { |
889 location = _json["location"]; | 1316 location = _json["location"]; |
(...skipping 12 matching lines...) Expand all Loading... |
902 _json["location"] = location; | 1329 _json["location"] = location; |
903 } | 1330 } |
904 if (message != null) { | 1331 if (message != null) { |
905 _json["message"] = message; | 1332 _json["message"] = message; |
906 } | 1333 } |
907 return _json; | 1334 return _json; |
908 } | 1335 } |
909 } | 1336 } |
910 | 1337 |
911 /** | 1338 /** |
912 * ! [Output Only] If errors occurred during processing of this operation, ! | 1339 * [Output Only] If errors are generated during processing of the operation, |
913 * this field will be populated. | 1340 * this field will be populated. |
914 */ | 1341 */ |
915 class OperationError { | 1342 class OperationError { |
916 /** ! The array of errors encountered while processing this operation. */ | 1343 /** |
| 1344 * [Output Only] The array of errors encountered while processing this |
| 1345 * operation. |
| 1346 */ |
917 core.List<OperationErrorErrors> errors; | 1347 core.List<OperationErrorErrors> errors; |
918 | 1348 |
919 OperationError(); | 1349 OperationError(); |
920 | 1350 |
921 OperationError.fromJson(core.Map _json) { | 1351 OperationError.fromJson(core.Map _json) { |
922 if (_json.containsKey("errors")) { | 1352 if (_json.containsKey("errors")) { |
923 errors = _json["errors"].map((value) => new OperationErrorErrors.fromJson(
value)).toList(); | 1353 errors = _json["errors"].map((value) => new OperationErrorErrors.fromJson(
value)).toList(); |
924 } | 1354 } |
925 } | 1355 } |
926 | 1356 |
927 core.Map toJson() { | 1357 core.Map toJson() { |
928 var _json = new core.Map(); | 1358 var _json = new core.Map(); |
929 if (errors != null) { | 1359 if (errors != null) { |
930 _json["errors"] = errors.map((value) => (value).toJson()).toList(); | 1360 _json["errors"] = errors.map((value) => (value).toJson()).toList(); |
931 } | 1361 } |
932 return _json; | 1362 return _json; |
933 } | 1363 } |
934 } | 1364 } |
935 | 1365 |
936 class OperationWarningsData { | 1366 class OperationWarningsData { |
937 /** ! A key for the warning data. */ | 1367 /** [Output Only] A key for the warning data. */ |
938 core.String key; | 1368 core.String key; |
939 /** ! A warning data value corresponding to the key. */ | 1369 /** [Output Only] A warning data value corresponding to the key. */ |
940 core.String value; | 1370 core.String value; |
941 | 1371 |
942 OperationWarningsData(); | 1372 OperationWarningsData(); |
943 | 1373 |
944 OperationWarningsData.fromJson(core.Map _json) { | 1374 OperationWarningsData.fromJson(core.Map _json) { |
945 if (_json.containsKey("key")) { | 1375 if (_json.containsKey("key")) { |
946 key = _json["key"]; | 1376 key = _json["key"]; |
947 } | 1377 } |
948 if (_json.containsKey("value")) { | 1378 if (_json.containsKey("value")) { |
949 value = _json["value"]; | 1379 value = _json["value"]; |
950 } | 1380 } |
951 } | 1381 } |
952 | 1382 |
953 core.Map toJson() { | 1383 core.Map toJson() { |
954 var _json = new core.Map(); | 1384 var _json = new core.Map(); |
955 if (key != null) { | 1385 if (key != null) { |
956 _json["key"] = key; | 1386 _json["key"] = key; |
957 } | 1387 } |
958 if (value != null) { | 1388 if (value != null) { |
959 _json["value"] = value; | 1389 _json["value"] = value; |
960 } | 1390 } |
961 return _json; | 1391 return _json; |
962 } | 1392 } |
963 } | 1393 } |
964 | 1394 |
965 class OperationWarnings { | 1395 class OperationWarnings { |
966 /** | 1396 /** [Output Only] The warning type identifier for this warning. */ |
967 * ! The warning type identifier for this warning. | 1397 core.String code; |
968 * | 1398 /** [Output Only] Metadata for this warning in key: value format. */ |
969 * The values for Object must be JSON objects. It can consist of `num`, | |
970 * `String`, `bool` and `null` as well as `Map` and `List` values. | |
971 */ | |
972 core.Object code; | |
973 /** ! Metadata for this warning in 'key: value' format. */ | |
974 core.List<OperationWarningsData> data; | 1399 core.List<OperationWarningsData> data; |
975 /** ! Optional human-readable details for this warning. */ | 1400 /** [Output Only] Optional human-readable details for this warning. */ |
976 core.String message; | 1401 core.String message; |
977 | 1402 |
978 OperationWarnings(); | 1403 OperationWarnings(); |
979 | 1404 |
980 OperationWarnings.fromJson(core.Map _json) { | 1405 OperationWarnings.fromJson(core.Map _json) { |
981 if (_json.containsKey("code")) { | 1406 if (_json.containsKey("code")) { |
982 code = _json["code"]; | 1407 code = _json["code"]; |
983 } | 1408 } |
984 if (_json.containsKey("data")) { | 1409 if (_json.containsKey("data")) { |
985 data = _json["data"].map((value) => new OperationWarningsData.fromJson(val
ue)).toList(); | 1410 data = _json["data"].map((value) => new OperationWarningsData.fromJson(val
ue)).toList(); |
(...skipping 11 matching lines...) Expand all Loading... |
997 if (data != null) { | 1422 if (data != null) { |
998 _json["data"] = data.map((value) => (value).toJson()).toList(); | 1423 _json["data"] = data.map((value) => (value).toJson()).toList(); |
999 } | 1424 } |
1000 if (message != null) { | 1425 if (message != null) { |
1001 _json["message"] = message; | 1426 _json["message"] = message; |
1002 } | 1427 } |
1003 return _json; | 1428 return _json; |
1004 } | 1429 } |
1005 } | 1430 } |
1006 | 1431 |
1007 /** | 1432 /** An Operation resource, used to manage asynchronous API requests. */ |
1008 * ! An operation resource, used to manage asynchronous API requests. Next | |
1009 * available tag: 24 | |
1010 */ | |
1011 class Operation { | 1433 class Operation { |
1012 /** ! [Output Only] Creation timestamp in RFC3339 text format. */ | 1434 /** |
| 1435 * [Output Only] An optional identifier specified by the client when the |
| 1436 * mutation was initiated. Must be unique for all Operation resources in the |
| 1437 * project. |
| 1438 */ |
| 1439 core.String clientOperationId; |
| 1440 /** [Output Only] Creation timestamp in RFC3339 text format. */ |
1013 core.String creationTimestamp; | 1441 core.String creationTimestamp; |
1014 /** | 1442 /** |
1015 * ! [Output Only] The time that this operation was completed. This is in ! | 1443 * [Output Only] The time that this operation was completed. This is in |
1016 * RFC3339 format. | 1444 * RFC3339 text format. |
1017 */ | 1445 */ |
1018 core.String endTime; | 1446 core.String endTime; |
1019 /** | 1447 /** |
1020 * ! [Output Only] If errors occurred during processing of this operation, ! | 1448 * [Output Only] If errors are generated during processing of the operation, |
1021 * this field will be populated. | 1449 * this field will be populated. |
1022 */ | 1450 */ |
1023 OperationError error; | 1451 OperationError error; |
1024 /** | 1452 /** |
1025 * ! [Output Only] If operation fails, the HTTP error message returned, ! e.g. | 1453 * [Output Only] If the operation fails, this field contains the HTTP error |
1026 * NOT FOUND. | 1454 * message that was returned, such as NOT FOUND. |
1027 */ | 1455 */ |
1028 core.String httpErrorMessage; | 1456 core.String httpErrorMessage; |
1029 /** | 1457 /** |
1030 * ! [Output Only] If operation fails, the HTTP error status code returned, ! | 1458 * [Output Only] If the operation fails, this field contains the HTTP error |
1031 * e.g. 404. | 1459 * message that was returned, such as 404. |
1032 */ | 1460 */ |
1033 core.int httpErrorStatusCode; | 1461 core.int httpErrorStatusCode; |
1034 /** | 1462 /** |
1035 * ! [Output Only] Unique identifier for the resource; defined by the server. | 1463 * [Output Only] Unique identifier for the resource; defined by the server. |
1036 */ | 1464 */ |
1037 core.String id; | 1465 core.String id; |
1038 /** | 1466 /** |
1039 * ! [Output Only] The time that this operation was requested. ! This is in | 1467 * [Output Only] The time that this operation was requested. This is in |
1040 * RFC 3339 format. | 1468 * RFC3339 text format. |
1041 */ | 1469 */ |
1042 core.String insertTime; | 1470 core.String insertTime; |
1043 /** ! [Output Only] Name of the operation. */ | 1471 /** |
| 1472 * [Output Only] Type of the resource. Always compute#Operation for Operation |
| 1473 * resources. |
| 1474 */ |
| 1475 core.String kind; |
| 1476 /** [Output Only] Name of the resource. */ |
1044 core.String name; | 1477 core.String name; |
1045 /** | 1478 /** |
1046 * ! [Output Only] Type of the operation. Examples include "insert", or ! | 1479 * [Output Only] Type of the operation, such as insert, update, and delete. |
1047 * "delete" | |
1048 */ | 1480 */ |
1049 core.String operationType; | 1481 core.String operationType; |
1050 /** | 1482 /** |
1051 * ! [Output Only] An optional progress indicator that ranges from 0 to 100. ! | 1483 * [Output Only] An optional progress indicator that ranges from 0 to 100. |
1052 * There is no requirement that this be linear or support any granularity ! of | 1484 * There is no requirement that this be linear or support any granularity of |
1053 * operations. This should not be used to guess at when the operation will ! | 1485 * operations. This should not be used to guess at when the operation will be |
1054 * be complete. This number should be monotonically increasing as the ! | 1486 * complete. This number should monotonically increase as the operation |
1055 * operation progresses. | 1487 * progresses. |
1056 */ | 1488 */ |
1057 core.int progress; | 1489 core.int progress; |
1058 /** [Output Only] Self link for the manifest. */ | 1490 /** |
| 1491 * [Output Only] URL of the region where the operation resides. Only |
| 1492 * applicable for regional resources. |
| 1493 */ |
| 1494 core.String region; |
| 1495 /** [Output Only] Server defined URL for the resource. */ |
1059 core.String selfLink; | 1496 core.String selfLink; |
1060 /** | 1497 /** |
1061 * ! [Output Only] The time that this operation was started by the server. ! | 1498 * [Output Only] The time that this operation was started by the server. This |
1062 * This is in RFC 3339 format. | 1499 * is in RFC3339 text format. |
1063 */ | 1500 */ |
1064 core.String startTime; | 1501 core.String startTime; |
1065 /** | 1502 /** |
1066 * ! [Output Only] Status of the operation. Can be one of the following: ! | 1503 * [Output Only] Status of the operation. Can be one of the following: |
1067 * "PENDING", "RUNNING", or "DONE". | 1504 * PENDING, RUNNING, or DONE. |
1068 */ | 1505 */ |
1069 core.String status; | 1506 core.String status; |
1070 /** | 1507 /** |
1071 * ! [Output Only] An optional textual description of the current status of ! | 1508 * [Output Only] An optional textual description of the current status of the |
1072 * the operation. | 1509 * operation. |
1073 */ | 1510 */ |
1074 core.String statusMessage; | 1511 core.String statusMessage; |
1075 /** | 1512 /** |
1076 * ! [Output Only] Unique target id which identifies a particular ! | 1513 * [Output Only] Unique target ID which identifies a particular incarnation of |
1077 * incarnation of the target. | 1514 * the target. |
1078 */ | 1515 */ |
1079 core.String targetId; | 1516 core.String targetId; |
1080 /** ! [Output Only] URL of the resource the operation is mutating. */ | 1517 /** [Output Only] URL of the resource the operation is mutating. */ |
1081 core.String targetLink; | 1518 core.String targetLink; |
1082 /** | 1519 /** |
1083 * ! [Output Only] User who requested the operation, for example ! | 1520 * [Output Only] User who requested the operation, for example: |
1084 * "user@example.com" | 1521 * user@example.com. |
1085 */ | 1522 */ |
1086 core.String user; | 1523 core.String user; |
1087 /** | 1524 /** |
1088 * ! [Output Only] If warning messages generated during processing of this ! | 1525 * [Output Only] If warning messages are generated during processing of the |
1089 * operation, this field will be populated. | 1526 * operation, this field will be populated. |
1090 */ | 1527 */ |
1091 core.List<OperationWarnings> warnings; | 1528 core.List<OperationWarnings> warnings; |
| 1529 /** [Output Only] URL of the zone where the operation resides. */ |
| 1530 core.String zone; |
1092 | 1531 |
1093 Operation(); | 1532 Operation(); |
1094 | 1533 |
1095 Operation.fromJson(core.Map _json) { | 1534 Operation.fromJson(core.Map _json) { |
| 1535 if (_json.containsKey("clientOperationId")) { |
| 1536 clientOperationId = _json["clientOperationId"]; |
| 1537 } |
1096 if (_json.containsKey("creationTimestamp")) { | 1538 if (_json.containsKey("creationTimestamp")) { |
1097 creationTimestamp = _json["creationTimestamp"]; | 1539 creationTimestamp = _json["creationTimestamp"]; |
1098 } | 1540 } |
1099 if (_json.containsKey("endTime")) { | 1541 if (_json.containsKey("endTime")) { |
1100 endTime = _json["endTime"]; | 1542 endTime = _json["endTime"]; |
1101 } | 1543 } |
1102 if (_json.containsKey("error")) { | 1544 if (_json.containsKey("error")) { |
1103 error = new OperationError.fromJson(_json["error"]); | 1545 error = new OperationError.fromJson(_json["error"]); |
1104 } | 1546 } |
1105 if (_json.containsKey("httpErrorMessage")) { | 1547 if (_json.containsKey("httpErrorMessage")) { |
1106 httpErrorMessage = _json["httpErrorMessage"]; | 1548 httpErrorMessage = _json["httpErrorMessage"]; |
1107 } | 1549 } |
1108 if (_json.containsKey("httpErrorStatusCode")) { | 1550 if (_json.containsKey("httpErrorStatusCode")) { |
1109 httpErrorStatusCode = _json["httpErrorStatusCode"]; | 1551 httpErrorStatusCode = _json["httpErrorStatusCode"]; |
1110 } | 1552 } |
1111 if (_json.containsKey("id")) { | 1553 if (_json.containsKey("id")) { |
1112 id = _json["id"]; | 1554 id = _json["id"]; |
1113 } | 1555 } |
1114 if (_json.containsKey("insertTime")) { | 1556 if (_json.containsKey("insertTime")) { |
1115 insertTime = _json["insertTime"]; | 1557 insertTime = _json["insertTime"]; |
1116 } | 1558 } |
| 1559 if (_json.containsKey("kind")) { |
| 1560 kind = _json["kind"]; |
| 1561 } |
1117 if (_json.containsKey("name")) { | 1562 if (_json.containsKey("name")) { |
1118 name = _json["name"]; | 1563 name = _json["name"]; |
1119 } | 1564 } |
1120 if (_json.containsKey("operationType")) { | 1565 if (_json.containsKey("operationType")) { |
1121 operationType = _json["operationType"]; | 1566 operationType = _json["operationType"]; |
1122 } | 1567 } |
1123 if (_json.containsKey("progress")) { | 1568 if (_json.containsKey("progress")) { |
1124 progress = _json["progress"]; | 1569 progress = _json["progress"]; |
1125 } | 1570 } |
| 1571 if (_json.containsKey("region")) { |
| 1572 region = _json["region"]; |
| 1573 } |
1126 if (_json.containsKey("selfLink")) { | 1574 if (_json.containsKey("selfLink")) { |
1127 selfLink = _json["selfLink"]; | 1575 selfLink = _json["selfLink"]; |
1128 } | 1576 } |
1129 if (_json.containsKey("startTime")) { | 1577 if (_json.containsKey("startTime")) { |
1130 startTime = _json["startTime"]; | 1578 startTime = _json["startTime"]; |
1131 } | 1579 } |
1132 if (_json.containsKey("status")) { | 1580 if (_json.containsKey("status")) { |
1133 status = _json["status"]; | 1581 status = _json["status"]; |
1134 } | 1582 } |
1135 if (_json.containsKey("statusMessage")) { | 1583 if (_json.containsKey("statusMessage")) { |
1136 statusMessage = _json["statusMessage"]; | 1584 statusMessage = _json["statusMessage"]; |
1137 } | 1585 } |
1138 if (_json.containsKey("targetId")) { | 1586 if (_json.containsKey("targetId")) { |
1139 targetId = _json["targetId"]; | 1587 targetId = _json["targetId"]; |
1140 } | 1588 } |
1141 if (_json.containsKey("targetLink")) { | 1589 if (_json.containsKey("targetLink")) { |
1142 targetLink = _json["targetLink"]; | 1590 targetLink = _json["targetLink"]; |
1143 } | 1591 } |
1144 if (_json.containsKey("user")) { | 1592 if (_json.containsKey("user")) { |
1145 user = _json["user"]; | 1593 user = _json["user"]; |
1146 } | 1594 } |
1147 if (_json.containsKey("warnings")) { | 1595 if (_json.containsKey("warnings")) { |
1148 warnings = _json["warnings"].map((value) => new OperationWarnings.fromJson
(value)).toList(); | 1596 warnings = _json["warnings"].map((value) => new OperationWarnings.fromJson
(value)).toList(); |
1149 } | 1597 } |
| 1598 if (_json.containsKey("zone")) { |
| 1599 zone = _json["zone"]; |
| 1600 } |
1150 } | 1601 } |
1151 | 1602 |
1152 core.Map toJson() { | 1603 core.Map toJson() { |
1153 var _json = new core.Map(); | 1604 var _json = new core.Map(); |
| 1605 if (clientOperationId != null) { |
| 1606 _json["clientOperationId"] = clientOperationId; |
| 1607 } |
1154 if (creationTimestamp != null) { | 1608 if (creationTimestamp != null) { |
1155 _json["creationTimestamp"] = creationTimestamp; | 1609 _json["creationTimestamp"] = creationTimestamp; |
1156 } | 1610 } |
1157 if (endTime != null) { | 1611 if (endTime != null) { |
1158 _json["endTime"] = endTime; | 1612 _json["endTime"] = endTime; |
1159 } | 1613 } |
1160 if (error != null) { | 1614 if (error != null) { |
1161 _json["error"] = (error).toJson(); | 1615 _json["error"] = (error).toJson(); |
1162 } | 1616 } |
1163 if (httpErrorMessage != null) { | 1617 if (httpErrorMessage != null) { |
1164 _json["httpErrorMessage"] = httpErrorMessage; | 1618 _json["httpErrorMessage"] = httpErrorMessage; |
1165 } | 1619 } |
1166 if (httpErrorStatusCode != null) { | 1620 if (httpErrorStatusCode != null) { |
1167 _json["httpErrorStatusCode"] = httpErrorStatusCode; | 1621 _json["httpErrorStatusCode"] = httpErrorStatusCode; |
1168 } | 1622 } |
1169 if (id != null) { | 1623 if (id != null) { |
1170 _json["id"] = id; | 1624 _json["id"] = id; |
1171 } | 1625 } |
1172 if (insertTime != null) { | 1626 if (insertTime != null) { |
1173 _json["insertTime"] = insertTime; | 1627 _json["insertTime"] = insertTime; |
1174 } | 1628 } |
| 1629 if (kind != null) { |
| 1630 _json["kind"] = kind; |
| 1631 } |
1175 if (name != null) { | 1632 if (name != null) { |
1176 _json["name"] = name; | 1633 _json["name"] = name; |
1177 } | 1634 } |
1178 if (operationType != null) { | 1635 if (operationType != null) { |
1179 _json["operationType"] = operationType; | 1636 _json["operationType"] = operationType; |
1180 } | 1637 } |
1181 if (progress != null) { | 1638 if (progress != null) { |
1182 _json["progress"] = progress; | 1639 _json["progress"] = progress; |
1183 } | 1640 } |
| 1641 if (region != null) { |
| 1642 _json["region"] = region; |
| 1643 } |
1184 if (selfLink != null) { | 1644 if (selfLink != null) { |
1185 _json["selfLink"] = selfLink; | 1645 _json["selfLink"] = selfLink; |
1186 } | 1646 } |
1187 if (startTime != null) { | 1647 if (startTime != null) { |
1188 _json["startTime"] = startTime; | 1648 _json["startTime"] = startTime; |
1189 } | 1649 } |
1190 if (status != null) { | 1650 if (status != null) { |
1191 _json["status"] = status; | 1651 _json["status"] = status; |
1192 } | 1652 } |
1193 if (statusMessage != null) { | 1653 if (statusMessage != null) { |
1194 _json["statusMessage"] = statusMessage; | 1654 _json["statusMessage"] = statusMessage; |
1195 } | 1655 } |
1196 if (targetId != null) { | 1656 if (targetId != null) { |
1197 _json["targetId"] = targetId; | 1657 _json["targetId"] = targetId; |
1198 } | 1658 } |
1199 if (targetLink != null) { | 1659 if (targetLink != null) { |
1200 _json["targetLink"] = targetLink; | 1660 _json["targetLink"] = targetLink; |
1201 } | 1661 } |
1202 if (user != null) { | 1662 if (user != null) { |
1203 _json["user"] = user; | 1663 _json["user"] = user; |
1204 } | 1664 } |
1205 if (warnings != null) { | 1665 if (warnings != null) { |
1206 _json["warnings"] = warnings.map((value) => (value).toJson()).toList(); | 1666 _json["warnings"] = warnings.map((value) => (value).toJson()).toList(); |
1207 } | 1667 } |
| 1668 if (zone != null) { |
| 1669 _json["zone"] = zone; |
| 1670 } |
1208 return _json; | 1671 return _json; |
1209 } | 1672 } |
1210 } | 1673 } |
1211 | 1674 |
1212 /** | 1675 /** |
1213 * ! A response containing a partial list of operations and a page token used ! | 1676 * A response containing a partial list of operations and a page token used to |
1214 * to build the next request if the request has been truncated. Next available | 1677 * build the next request if the request has been truncated. |
1215 * tag: 4 | |
1216 */ | 1678 */ |
1217 class OperationsListResponse { | 1679 class OperationsListResponse { |
1218 /** ! A token used to continue a truncated list request. */ | 1680 /** [Output Only] A token used to continue a truncated list request. */ |
1219 core.String nextPageToken; | 1681 core.String nextPageToken; |
1220 /** ! Operations contained in this list response. */ | 1682 /** [Output Only] Operations contained in this list response. */ |
1221 core.List<Operation> operations; | 1683 core.List<Operation> operations; |
1222 | 1684 |
1223 OperationsListResponse(); | 1685 OperationsListResponse(); |
1224 | 1686 |
1225 OperationsListResponse.fromJson(core.Map _json) { | 1687 OperationsListResponse.fromJson(core.Map _json) { |
1226 if (_json.containsKey("nextPageToken")) { | 1688 if (_json.containsKey("nextPageToken")) { |
1227 nextPageToken = _json["nextPageToken"]; | 1689 nextPageToken = _json["nextPageToken"]; |
1228 } | 1690 } |
1229 if (_json.containsKey("operations")) { | 1691 if (_json.containsKey("operations")) { |
1230 operations = _json["operations"].map((value) => new Operation.fromJson(val
ue)).toList(); | 1692 operations = _json["operations"].map((value) => new Operation.fromJson(val
ue)).toList(); |
1231 } | 1693 } |
1232 } | 1694 } |
1233 | 1695 |
1234 core.Map toJson() { | 1696 core.Map toJson() { |
1235 var _json = new core.Map(); | 1697 var _json = new core.Map(); |
1236 if (nextPageToken != null) { | 1698 if (nextPageToken != null) { |
1237 _json["nextPageToken"] = nextPageToken; | 1699 _json["nextPageToken"] = nextPageToken; |
1238 } | 1700 } |
1239 if (operations != null) { | 1701 if (operations != null) { |
1240 _json["operations"] = operations.map((value) => (value).toJson()).toList()
; | 1702 _json["operations"] = operations.map((value) => (value).toJson()).toList()
; |
1241 } | 1703 } |
1242 return _json; | 1704 return _json; |
1243 } | 1705 } |
1244 } | 1706 } |
1245 | 1707 |
1246 /** Next available tag: 12 */ | |
1247 class Resource { | 1708 class Resource { |
1248 /** ! [Output Only] A list of any errors that occurred during deployment. */ | 1709 /** |
1249 core.List<core.String> errors; | 1710 * [Output Only] The evaluated properties of the resource with references |
| 1711 * expanded. Returned as serialized YAML. |
| 1712 */ |
| 1713 core.String finalProperties; |
1250 /** | 1714 /** |
1251 * [Output Only] Unique identifier for the resource; defined by the server. | 1715 * [Output Only] Unique identifier for the resource; defined by the server. |
1252 */ | 1716 */ |
1253 core.String id; | 1717 core.String id; |
1254 /** ! [Output Only] The intended state of the resource. */ | |
1255 core.String intent; | |
1256 /** | 1718 /** |
1257 * ! [Output Only] URL of the manifest representing the current configuration | 1719 * [Output Only] Timestamp when the resource was created or acquired, in |
1258 * ! of this resource. | 1720 * RFC3339 text format . |
| 1721 */ |
| 1722 core.String insertTime; |
| 1723 /** |
| 1724 * [Output Only] URL of the manifest representing the current configuration of |
| 1725 * this resource. |
1259 */ | 1726 */ |
1260 core.String manifest; | 1727 core.String manifest; |
1261 /** | 1728 /** |
1262 * ! [Output Only] The name of the resource as it appears in the YAML config. | 1729 * [Output Only] The name of the resource as it appears in the YAML config. |
1263 */ | 1730 */ |
1264 core.String name; | 1731 core.String name; |
1265 /** ! [Output Only] The state of the resource. */ | |
1266 core.String state; | |
1267 /** | 1732 /** |
1268 * ! [Output Only] The type of the resource, for example ! | 1733 * [Output Only] The current properties of the resource before any references |
1269 * ?compute.v1.instance?, or ?replicaPools.v1beta2.instanceGroupManager? | 1734 * have been filled in. Returned as serialized YAML. |
| 1735 */ |
| 1736 core.String properties; |
| 1737 /** |
| 1738 * [Output Only] The type of the resource, for example compute.v1.instance, or |
| 1739 * replicaPools.v1beta2.instanceGroupManager. |
1270 */ | 1740 */ |
1271 core.String type; | 1741 core.String type; |
1272 /** ! [Output Only] The URL of the actual resource. */ | 1742 /** |
| 1743 * [Output Only] If Deployment Manager is currently updating or previewing an |
| 1744 * update to this resource, the updated configuration appears here. |
| 1745 */ |
| 1746 ResourceUpdate update; |
| 1747 /** |
| 1748 * [Output Only] Timestamp when the resource was updated, in RFC3339 text |
| 1749 * format . |
| 1750 */ |
| 1751 core.String updateTime; |
| 1752 /** [Output Only] The URL of the actual resource. */ |
1273 core.String url; | 1753 core.String url; |
1274 | 1754 |
1275 Resource(); | 1755 Resource(); |
1276 | 1756 |
1277 Resource.fromJson(core.Map _json) { | 1757 Resource.fromJson(core.Map _json) { |
1278 if (_json.containsKey("errors")) { | 1758 if (_json.containsKey("finalProperties")) { |
1279 errors = _json["errors"]; | 1759 finalProperties = _json["finalProperties"]; |
1280 } | 1760 } |
1281 if (_json.containsKey("id")) { | 1761 if (_json.containsKey("id")) { |
1282 id = _json["id"]; | 1762 id = _json["id"]; |
1283 } | 1763 } |
1284 if (_json.containsKey("intent")) { | 1764 if (_json.containsKey("insertTime")) { |
1285 intent = _json["intent"]; | 1765 insertTime = _json["insertTime"]; |
1286 } | 1766 } |
1287 if (_json.containsKey("manifest")) { | 1767 if (_json.containsKey("manifest")) { |
1288 manifest = _json["manifest"]; | 1768 manifest = _json["manifest"]; |
1289 } | 1769 } |
1290 if (_json.containsKey("name")) { | 1770 if (_json.containsKey("name")) { |
1291 name = _json["name"]; | 1771 name = _json["name"]; |
1292 } | 1772 } |
1293 if (_json.containsKey("state")) { | 1773 if (_json.containsKey("properties")) { |
1294 state = _json["state"]; | 1774 properties = _json["properties"]; |
1295 } | 1775 } |
1296 if (_json.containsKey("type")) { | 1776 if (_json.containsKey("type")) { |
1297 type = _json["type"]; | 1777 type = _json["type"]; |
1298 } | 1778 } |
| 1779 if (_json.containsKey("update")) { |
| 1780 update = new ResourceUpdate.fromJson(_json["update"]); |
| 1781 } |
| 1782 if (_json.containsKey("updateTime")) { |
| 1783 updateTime = _json["updateTime"]; |
| 1784 } |
1299 if (_json.containsKey("url")) { | 1785 if (_json.containsKey("url")) { |
1300 url = _json["url"]; | 1786 url = _json["url"]; |
1301 } | 1787 } |
1302 } | 1788 } |
1303 | 1789 |
1304 core.Map toJson() { | 1790 core.Map toJson() { |
1305 var _json = new core.Map(); | 1791 var _json = new core.Map(); |
1306 if (errors != null) { | 1792 if (finalProperties != null) { |
1307 _json["errors"] = errors; | 1793 _json["finalProperties"] = finalProperties; |
1308 } | 1794 } |
1309 if (id != null) { | 1795 if (id != null) { |
1310 _json["id"] = id; | 1796 _json["id"] = id; |
1311 } | 1797 } |
1312 if (intent != null) { | 1798 if (insertTime != null) { |
1313 _json["intent"] = intent; | 1799 _json["insertTime"] = insertTime; |
1314 } | 1800 } |
1315 if (manifest != null) { | 1801 if (manifest != null) { |
1316 _json["manifest"] = manifest; | 1802 _json["manifest"] = manifest; |
1317 } | 1803 } |
1318 if (name != null) { | 1804 if (name != null) { |
1319 _json["name"] = name; | 1805 _json["name"] = name; |
1320 } | 1806 } |
1321 if (state != null) { | 1807 if (properties != null) { |
1322 _json["state"] = state; | 1808 _json["properties"] = properties; |
1323 } | 1809 } |
1324 if (type != null) { | 1810 if (type != null) { |
1325 _json["type"] = type; | 1811 _json["type"] = type; |
1326 } | 1812 } |
| 1813 if (update != null) { |
| 1814 _json["update"] = (update).toJson(); |
| 1815 } |
| 1816 if (updateTime != null) { |
| 1817 _json["updateTime"] = updateTime; |
| 1818 } |
1327 if (url != null) { | 1819 if (url != null) { |
1328 _json["url"] = url; | 1820 _json["url"] = url; |
1329 } | 1821 } |
1330 return _json; | 1822 return _json; |
1331 } | 1823 } |
1332 } | 1824 } |
1333 | 1825 |
| 1826 class ResourceUpdate { |
| 1827 /** |
| 1828 * [Output Only] List of all errors encountered while trying to enact |
| 1829 * update.intent. |
| 1830 */ |
| 1831 core.List<core.String> errors; |
| 1832 /** |
| 1833 * [Output Only] The expanded properties of the resource with reference values |
| 1834 * expanded. Returned as serialized YAML. |
| 1835 */ |
| 1836 core.String finalProperties; |
| 1837 /** [Output Only] The intent of the resource: PREVIEW, UPDATE, or CANCEL. */ |
| 1838 core.String intent; |
| 1839 /** |
| 1840 * [Output Only] URL of the manifest representing the update configuration of |
| 1841 * this resource. |
| 1842 */ |
| 1843 core.String manifest; |
| 1844 /** |
| 1845 * [Output Only] The set of updated properties for this resource, before |
| 1846 * references are expanded. Returned as serialized YAML. |
| 1847 */ |
| 1848 core.String properties; |
| 1849 /** [Output Only] The state of the resource. */ |
| 1850 core.String state; |
| 1851 |
| 1852 ResourceUpdate(); |
| 1853 |
| 1854 ResourceUpdate.fromJson(core.Map _json) { |
| 1855 if (_json.containsKey("errors")) { |
| 1856 errors = _json["errors"]; |
| 1857 } |
| 1858 if (_json.containsKey("finalProperties")) { |
| 1859 finalProperties = _json["finalProperties"]; |
| 1860 } |
| 1861 if (_json.containsKey("intent")) { |
| 1862 intent = _json["intent"]; |
| 1863 } |
| 1864 if (_json.containsKey("manifest")) { |
| 1865 manifest = _json["manifest"]; |
| 1866 } |
| 1867 if (_json.containsKey("properties")) { |
| 1868 properties = _json["properties"]; |
| 1869 } |
| 1870 if (_json.containsKey("state")) { |
| 1871 state = _json["state"]; |
| 1872 } |
| 1873 } |
| 1874 |
| 1875 core.Map toJson() { |
| 1876 var _json = new core.Map(); |
| 1877 if (errors != null) { |
| 1878 _json["errors"] = errors; |
| 1879 } |
| 1880 if (finalProperties != null) { |
| 1881 _json["finalProperties"] = finalProperties; |
| 1882 } |
| 1883 if (intent != null) { |
| 1884 _json["intent"] = intent; |
| 1885 } |
| 1886 if (manifest != null) { |
| 1887 _json["manifest"] = manifest; |
| 1888 } |
| 1889 if (properties != null) { |
| 1890 _json["properties"] = properties; |
| 1891 } |
| 1892 if (state != null) { |
| 1893 _json["state"] = state; |
| 1894 } |
| 1895 return _json; |
| 1896 } |
| 1897 } |
| 1898 |
1334 /** | 1899 /** |
1335 * ! A response containing a partial list of resources and a page token used ! | 1900 * A response containing a partial list of resources and a page token used to |
1336 * to build the next request if the request has been truncated. Next available | 1901 * build the next request if the request has been truncated. |
1337 * tag: 4 | |
1338 */ | 1902 */ |
1339 class ResourcesListResponse { | 1903 class ResourcesListResponse { |
1340 /** ! A token used to continue a truncated list request. */ | 1904 /** A token used to continue a truncated list request. */ |
1341 core.String nextPageToken; | 1905 core.String nextPageToken; |
1342 /** ! Resources contained in this list response. */ | 1906 /** Resources contained in this list response. */ |
1343 core.List<Resource> resources; | 1907 core.List<Resource> resources; |
1344 | 1908 |
1345 ResourcesListResponse(); | 1909 ResourcesListResponse(); |
1346 | 1910 |
1347 ResourcesListResponse.fromJson(core.Map _json) { | 1911 ResourcesListResponse.fromJson(core.Map _json) { |
1348 if (_json.containsKey("nextPageToken")) { | 1912 if (_json.containsKey("nextPageToken")) { |
1349 nextPageToken = _json["nextPageToken"]; | 1913 nextPageToken = _json["nextPageToken"]; |
1350 } | 1914 } |
1351 if (_json.containsKey("resources")) { | 1915 if (_json.containsKey("resources")) { |
1352 resources = _json["resources"].map((value) => new Resource.fromJson(value)
).toList(); | 1916 resources = _json["resources"].map((value) => new Resource.fromJson(value)
).toList(); |
1353 } | 1917 } |
1354 } | 1918 } |
1355 | 1919 |
1356 core.Map toJson() { | 1920 core.Map toJson() { |
1357 var _json = new core.Map(); | 1921 var _json = new core.Map(); |
1358 if (nextPageToken != null) { | 1922 if (nextPageToken != null) { |
1359 _json["nextPageToken"] = nextPageToken; | 1923 _json["nextPageToken"] = nextPageToken; |
1360 } | 1924 } |
1361 if (resources != null) { | 1925 if (resources != null) { |
1362 _json["resources"] = resources.map((value) => (value).toJson()).toList(); | 1926 _json["resources"] = resources.map((value) => (value).toJson()).toList(); |
1363 } | 1927 } |
1364 return _json; | 1928 return _json; |
1365 } | 1929 } |
1366 } | 1930 } |
1367 | 1931 |
1368 /** ! A type supported by Deployment Manager. Next available tag: 4 */ | 1932 class TargetConfiguration { |
| 1933 /** The configuration to use for this deployment. */ |
| 1934 core.String config; |
| 1935 /** |
| 1936 * Specifies any files to import for this configuration. This can be used to |
| 1937 * import templates or other files. For example, you might import a text file |
| 1938 * in order to use the file in a template. |
| 1939 */ |
| 1940 core.List<ImportFile> imports; |
| 1941 |
| 1942 TargetConfiguration(); |
| 1943 |
| 1944 TargetConfiguration.fromJson(core.Map _json) { |
| 1945 if (_json.containsKey("config")) { |
| 1946 config = _json["config"]; |
| 1947 } |
| 1948 if (_json.containsKey("imports")) { |
| 1949 imports = _json["imports"].map((value) => new ImportFile.fromJson(value)).
toList(); |
| 1950 } |
| 1951 } |
| 1952 |
| 1953 core.Map toJson() { |
| 1954 var _json = new core.Map(); |
| 1955 if (config != null) { |
| 1956 _json["config"] = config; |
| 1957 } |
| 1958 if (imports != null) { |
| 1959 _json["imports"] = imports.map((value) => (value).toJson()).toList(); |
| 1960 } |
| 1961 return _json; |
| 1962 } |
| 1963 } |
| 1964 |
| 1965 /** A resource type supported by Deployment Manager. */ |
1369 class Type { | 1966 class Type { |
1370 /** ! Name of the type. */ | 1967 /** Name of the type. */ |
1371 core.String name; | 1968 core.String name; |
1372 | 1969 |
1373 Type(); | 1970 Type(); |
1374 | 1971 |
1375 Type.fromJson(core.Map _json) { | 1972 Type.fromJson(core.Map _json) { |
1376 if (_json.containsKey("name")) { | 1973 if (_json.containsKey("name")) { |
1377 name = _json["name"]; | 1974 name = _json["name"]; |
1378 } | 1975 } |
1379 } | 1976 } |
1380 | 1977 |
1381 core.Map toJson() { | 1978 core.Map toJson() { |
1382 var _json = new core.Map(); | 1979 var _json = new core.Map(); |
1383 if (name != null) { | 1980 if (name != null) { |
1384 _json["name"] = name; | 1981 _json["name"] = name; |
1385 } | 1982 } |
1386 return _json; | 1983 return _json; |
1387 } | 1984 } |
1388 } | 1985 } |
1389 | 1986 |
1390 /** | 1987 /** A response that returns all Types supported by Deployment Manager */ |
1391 * ! A response that returns all Types supported by Deployment Manager Next | |
1392 * available tag: 3 | |
1393 */ | |
1394 class TypesListResponse { | 1988 class TypesListResponse { |
1395 /** ! Types supported by Deployment Manager */ | 1989 /** A token used to continue a truncated list request. */ |
| 1990 core.String nextPageToken; |
| 1991 /** |
| 1992 * [Output Only] A list of resource types supported by Deployment Manager. |
| 1993 */ |
1396 core.List<Type> types; | 1994 core.List<Type> types; |
1397 | 1995 |
1398 TypesListResponse(); | 1996 TypesListResponse(); |
1399 | 1997 |
1400 TypesListResponse.fromJson(core.Map _json) { | 1998 TypesListResponse.fromJson(core.Map _json) { |
| 1999 if (_json.containsKey("nextPageToken")) { |
| 2000 nextPageToken = _json["nextPageToken"]; |
| 2001 } |
1401 if (_json.containsKey("types")) { | 2002 if (_json.containsKey("types")) { |
1402 types = _json["types"].map((value) => new Type.fromJson(value)).toList(); | 2003 types = _json["types"].map((value) => new Type.fromJson(value)).toList(); |
1403 } | 2004 } |
1404 } | 2005 } |
1405 | 2006 |
1406 core.Map toJson() { | 2007 core.Map toJson() { |
1407 var _json = new core.Map(); | 2008 var _json = new core.Map(); |
| 2009 if (nextPageToken != null) { |
| 2010 _json["nextPageToken"] = nextPageToken; |
| 2011 } |
1408 if (types != null) { | 2012 if (types != null) { |
1409 _json["types"] = types.map((value) => (value).toJson()).toList(); | 2013 _json["types"] = types.map((value) => (value).toJson()).toList(); |
1410 } | 2014 } |
1411 return _json; | 2015 return _json; |
1412 } | 2016 } |
1413 } | 2017 } |
OLD | NEW |