OLD | NEW |
| 1 // This is a generated file (see the discoveryapis_generator project). |
| 2 |
1 library googleapis_beta.deploymentmanager.v2beta1; | 3 library googleapis_beta.deploymentmanager.v2beta1; |
2 | 4 |
3 import "dart:core" as core; | 5 import 'dart:core' as core; |
4 import "dart:collection" as collection; | 6 import 'dart:collection' as collection; |
5 import "dart:async" as async; | 7 import 'dart:async' as async; |
6 import "dart:convert" as convert; | 8 import 'dart:convert' as convert; |
7 | 9 |
8 import "package:crypto/crypto.dart" as crypto; | 10 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
| 11 import 'package:crypto/crypto.dart' as crypto; |
9 import 'package:http/http.dart' as http; | 12 import 'package:http/http.dart' as http; |
10 import '../src/common_internal.dart' as common_internal; | |
11 import '../common/common.dart' as common; | |
12 | 13 |
13 export '../common/common.dart' show ApiRequestError; | 14 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show |
14 export '../common/common.dart' show DetailedApiRequestError; | 15 ApiRequestError, DetailedApiRequestError; |
| 16 |
| 17 const core.String USER_AGENT = 'dart-api-client deploymentmanager/v2beta1'; |
15 | 18 |
16 /** | 19 /** |
17 * The Deployment Manager API allows users to declaratively configure, deploy | 20 * The Deployment Manager API allows users to declaratively configure, deploy |
18 * and run complex solutions on the Google Cloud Platform. | 21 * and run complex solutions on the Google Cloud Platform. |
19 */ | 22 */ |
20 class DeploymentmanagerApi { | 23 class DeploymentmanagerApi { |
21 /** View and manage your data across Google Cloud Platform services */ | 24 /** View and manage your data across Google Cloud Platform services */ |
22 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf
orm"; | 25 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf
orm"; |
23 | 26 |
24 /** | 27 /** |
25 * View and manage your Google Cloud Platform management resources and | 28 * View and manage your Google Cloud Platform management resources and |
26 * deployment status information | 29 * deployment status information |
27 */ | 30 */ |
28 static const NdevCloudmanScope = "https://www.googleapis.com/auth/ndev.cloudma
n"; | 31 static const NdevCloudmanScope = "https://www.googleapis.com/auth/ndev.cloudma
n"; |
29 | 32 |
30 /** | 33 /** |
31 * View your Google Cloud Platform management resources and deployment status | 34 * View your Google Cloud Platform management resources and deployment status |
32 * information | 35 * information |
33 */ | 36 */ |
34 static const NdevCloudmanReadonlyScope = "https://www.googleapis.com/auth/ndev
.cloudman.readonly"; | 37 static const NdevCloudmanReadonlyScope = "https://www.googleapis.com/auth/ndev
.cloudman.readonly"; |
35 | 38 |
36 | 39 |
37 final common_internal.ApiRequester _requester; | 40 final commons.ApiRequester _requester; |
38 | 41 |
39 DeploymentsResourceApi get deployments => new DeploymentsResourceApi(_requeste
r); | 42 DeploymentsResourceApi get deployments => new DeploymentsResourceApi(_requeste
r); |
40 ManifestsResourceApi get manifests => new ManifestsResourceApi(_requester); | 43 ManifestsResourceApi get manifests => new ManifestsResourceApi(_requester); |
41 OperationsResourceApi get operations => new OperationsResourceApi(_requester); | 44 OperationsResourceApi get operations => new OperationsResourceApi(_requester); |
42 ResourcesResourceApi get resources => new ResourcesResourceApi(_requester); | 45 ResourcesResourceApi get resources => new ResourcesResourceApi(_requester); |
43 TypesResourceApi get types => new TypesResourceApi(_requester); | 46 TypesResourceApi get types => new TypesResourceApi(_requester); |
44 | 47 |
45 DeploymentmanagerApi(http.Client client, {core.String rootUrl: "https://www.go
ogleapis.com/", core.String servicePath: "deploymentmanager/v2beta1/projects/"})
: | 48 DeploymentmanagerApi(http.Client client, {core.String rootUrl: "https://www.go
ogleapis.com/", core.String servicePath: "deploymentmanager/v2beta1/projects/"})
: |
46 _requester = new common_internal.ApiRequester(client, rootUrl, servicePath
); | 49 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); |
47 } | 50 } |
48 | 51 |
49 | 52 |
50 /** Not documented yet. */ | |
51 class DeploymentsResourceApi { | 53 class DeploymentsResourceApi { |
52 final common_internal.ApiRequester _requester; | 54 final commons.ApiRequester _requester; |
53 | 55 |
54 DeploymentsResourceApi(common_internal.ApiRequester client) : | 56 DeploymentsResourceApi(commons.ApiRequester client) : |
55 _requester = client; | 57 _requester = client; |
56 | 58 |
57 /** | 59 /** |
58 * Deletes a deployment and all of the resources in the deployment. | 60 * ! Deletes a deployment and all of the resources in the deployment. |
59 * | 61 * |
60 * Request parameters: | 62 * Request parameters: |
61 * | 63 * |
62 * [project] - The project ID for this request. | 64 * [project] - ! The project ID for this request. |
63 * Value must have pattern | 65 * 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])?))". | 66 * "(?:(?:[-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 * | 67 * |
66 * [deployment] - The name of the deployment for this request. | 68 * [deployment] - ! The name of the deployment for this request. |
67 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 69 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
68 * | 70 * |
69 * Completes with a [Operation]. | 71 * Completes with a [Operation]. |
70 * | 72 * |
71 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 73 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
72 * error. | 74 * error. |
73 * | 75 * |
74 * If the used [http.Client] completes with an error when making a REST call, | 76 * If the used [http.Client] completes with an error when making a REST call, |
75 * this method will complete with the same error. | 77 * this method will complete with the same error. |
76 */ | 78 */ |
77 async.Future<Operation> delete(core.String project, core.String deployment) { | 79 async.Future<Operation> delete(core.String project, core.String deployment) { |
78 var _url = null; | 80 var _url = null; |
79 var _queryParams = new core.Map(); | 81 var _queryParams = new core.Map(); |
80 var _uploadMedia = null; | 82 var _uploadMedia = null; |
81 var _uploadOptions = null; | 83 var _uploadOptions = null; |
82 var _downloadOptions = common.DownloadOptions.Metadata; | 84 var _downloadOptions = commons.DownloadOptions.Metadata; |
83 var _body = null; | 85 var _body = null; |
84 | 86 |
85 if (project == null) { | 87 if (project == null) { |
86 throw new core.ArgumentError("Parameter project is required."); | 88 throw new core.ArgumentError("Parameter project is required."); |
87 } | 89 } |
88 if (deployment == null) { | 90 if (deployment == null) { |
89 throw new core.ArgumentError("Parameter deployment is required."); | 91 throw new core.ArgumentError("Parameter deployment is required."); |
90 } | 92 } |
91 | 93 |
92 | 94 |
93 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/deployme
nts/' + common_internal.Escaper.ecapeVariable('$deployment'); | 95 _url = commons.Escaper.ecapeVariable('$project') + '/global/deployments/' +
commons.Escaper.ecapeVariable('$deployment'); |
94 | 96 |
95 var _response = _requester.request(_url, | 97 var _response = _requester.request(_url, |
96 "DELETE", | 98 "DELETE", |
97 body: _body, | 99 body: _body, |
98 queryParams: _queryParams, | 100 queryParams: _queryParams, |
99 uploadOptions: _uploadOptions, | 101 uploadOptions: _uploadOptions, |
100 uploadMedia: _uploadMedia, | 102 uploadMedia: _uploadMedia, |
101 downloadOptions: _downloadOptions); | 103 downloadOptions: _downloadOptions); |
102 return _response.then((data) => new Operation.fromJson(data)); | 104 return _response.then((data) => new Operation.fromJson(data)); |
103 } | 105 } |
104 | 106 |
105 /** | 107 /** |
106 * Gets information about a specific deployment. | 108 * ! Gets information about a specific deployment. |
107 * | 109 * |
108 * Request parameters: | 110 * Request parameters: |
109 * | 111 * |
110 * [project] - The project ID for this request. | 112 * [project] - ! The project ID for this request. |
111 * Value must have pattern | 113 * Value must have pattern |
112 * "(?:(?:[-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])?))". | 114 * "(?:(?:[-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])?))". |
113 * | 115 * |
114 * [deployment] - The name of the deployment for this request. | 116 * [deployment] - ! The name of the deployment for this request. |
115 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 117 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
116 * | 118 * |
117 * Completes with a [Deployment]. | 119 * Completes with a [Deployment]. |
118 * | 120 * |
119 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 121 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
120 * error. | 122 * error. |
121 * | 123 * |
122 * If the used [http.Client] completes with an error when making a REST call, | 124 * If the used [http.Client] completes with an error when making a REST call, |
123 * this method will complete with the same error. | 125 * this method will complete with the same error. |
124 */ | 126 */ |
125 async.Future<Deployment> get(core.String project, core.String deployment) { | 127 async.Future<Deployment> get(core.String project, core.String deployment) { |
126 var _url = null; | 128 var _url = null; |
127 var _queryParams = new core.Map(); | 129 var _queryParams = new core.Map(); |
128 var _uploadMedia = null; | 130 var _uploadMedia = null; |
129 var _uploadOptions = null; | 131 var _uploadOptions = null; |
130 var _downloadOptions = common.DownloadOptions.Metadata; | 132 var _downloadOptions = commons.DownloadOptions.Metadata; |
131 var _body = null; | 133 var _body = null; |
132 | 134 |
133 if (project == null) { | 135 if (project == null) { |
134 throw new core.ArgumentError("Parameter project is required."); | 136 throw new core.ArgumentError("Parameter project is required."); |
135 } | 137 } |
136 if (deployment == null) { | 138 if (deployment == null) { |
137 throw new core.ArgumentError("Parameter deployment is required."); | 139 throw new core.ArgumentError("Parameter deployment is required."); |
138 } | 140 } |
139 | 141 |
140 | 142 |
141 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/deployme
nts/' + common_internal.Escaper.ecapeVariable('$deployment'); | 143 _url = commons.Escaper.ecapeVariable('$project') + '/global/deployments/' +
commons.Escaper.ecapeVariable('$deployment'); |
142 | 144 |
143 var _response = _requester.request(_url, | 145 var _response = _requester.request(_url, |
144 "GET", | 146 "GET", |
145 body: _body, | 147 body: _body, |
146 queryParams: _queryParams, | 148 queryParams: _queryParams, |
147 uploadOptions: _uploadOptions, | 149 uploadOptions: _uploadOptions, |
148 uploadMedia: _uploadMedia, | 150 uploadMedia: _uploadMedia, |
149 downloadOptions: _downloadOptions); | 151 downloadOptions: _downloadOptions); |
150 return _response.then((data) => new Deployment.fromJson(data)); | 152 return _response.then((data) => new Deployment.fromJson(data)); |
151 } | 153 } |
152 | 154 |
153 /** | 155 /** |
154 * Creates a deployment and all of the resources described by the deployment | 156 * ! Creates a deployment and all of the resources described by the ! |
155 * manifest. | 157 * deployment manifest. |
156 * | 158 * |
157 * [request] - The metadata request object. | 159 * [request] - The metadata request object. |
158 * | 160 * |
159 * Request parameters: | 161 * Request parameters: |
160 * | 162 * |
161 * [project] - The project ID for this request. | 163 * [project] - ! The project ID for this request. |
162 * Value must have pattern | 164 * Value must have pattern |
163 * "(?:(?:[-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])?))". | 165 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
164 * | 166 * |
165 * Completes with a [Operation]. | 167 * Completes with a [Operation]. |
166 * | 168 * |
167 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 169 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
168 * error. | 170 * error. |
169 * | 171 * |
170 * If the used [http.Client] completes with an error when making a REST call, | 172 * If the used [http.Client] completes with an error when making a REST call, |
171 * this method will complete with the same error. | 173 * this method will complete with the same error. |
172 */ | 174 */ |
173 async.Future<Operation> insert(Deployment request, core.String project) { | 175 async.Future<Operation> insert(Deployment request, core.String project) { |
174 var _url = null; | 176 var _url = null; |
175 var _queryParams = new core.Map(); | 177 var _queryParams = new core.Map(); |
176 var _uploadMedia = null; | 178 var _uploadMedia = null; |
177 var _uploadOptions = null; | 179 var _uploadOptions = null; |
178 var _downloadOptions = common.DownloadOptions.Metadata; | 180 var _downloadOptions = commons.DownloadOptions.Metadata; |
179 var _body = null; | 181 var _body = null; |
180 | 182 |
181 if (request != null) { | 183 if (request != null) { |
182 _body = convert.JSON.encode((request).toJson()); | 184 _body = convert.JSON.encode((request).toJson()); |
183 } | 185 } |
184 if (project == null) { | 186 if (project == null) { |
185 throw new core.ArgumentError("Parameter project is required."); | 187 throw new core.ArgumentError("Parameter project is required."); |
186 } | 188 } |
187 | 189 |
188 | 190 |
189 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/deployme
nts'; | 191 _url = commons.Escaper.ecapeVariable('$project') + '/global/deployments'; |
190 | 192 |
191 var _response = _requester.request(_url, | 193 var _response = _requester.request(_url, |
192 "POST", | 194 "POST", |
193 body: _body, | 195 body: _body, |
194 queryParams: _queryParams, | 196 queryParams: _queryParams, |
195 uploadOptions: _uploadOptions, | 197 uploadOptions: _uploadOptions, |
196 uploadMedia: _uploadMedia, | 198 uploadMedia: _uploadMedia, |
197 downloadOptions: _downloadOptions); | 199 downloadOptions: _downloadOptions); |
198 return _response.then((data) => new Operation.fromJson(data)); | 200 return _response.then((data) => new Operation.fromJson(data)); |
199 } | 201 } |
200 | 202 |
201 /** | 203 /** |
202 * Lists all deployments for a given project. | 204 * ! Lists all deployments for a given project. |
203 * | 205 * |
204 * Request parameters: | 206 * Request parameters: |
205 * | 207 * |
206 * [project] - The project ID for this request. | 208 * [project] - ! The project ID for this request. |
207 * Value must have pattern | 209 * Value must have pattern |
208 * "(?:(?:[-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])?))". | 210 * "(?:(?:[-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])?))". |
209 * | 211 * |
210 * [maxResults] - Maximum count of results to be returned. Acceptable values | 212 * [maxResults] - ! Maximum count of results to be returned. ! Acceptable |
211 * are 0 to 100, inclusive. (Default: 50) | 213 * values are 0 to 100, inclusive. (Default: 50) |
212 * Value must be between "0" and "100". | 214 * Value must be between "0" and "100". |
213 * | 215 * |
214 * [pageToken] - Specifies a nextPageToken returned by a previous list | 216 * [pageToken] - ! Specifies a nextPageToken returned by a previous list |
215 * request. This token can be used to request the next page of results from a | 217 * request. This ! token can be used to request the next page of results from |
216 * previous list request. | 218 * a previous ! list request. |
217 * | 219 * |
218 * Completes with a [DeploymentsListResponse]. | 220 * Completes with a [DeploymentsListResponse]. |
219 * | 221 * |
220 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 222 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
221 * error. | 223 * error. |
222 * | 224 * |
223 * If the used [http.Client] completes with an error when making a REST call, | 225 * If the used [http.Client] completes with an error when making a REST call, |
224 * this method will complete with the same error. | 226 * this method will complete with the same error. |
225 */ | 227 */ |
226 async.Future<DeploymentsListResponse> list(core.String project, {core.int maxR
esults, core.String pageToken}) { | 228 async.Future<DeploymentsListResponse> list(core.String project, {core.int maxR
esults, core.String pageToken}) { |
227 var _url = null; | 229 var _url = null; |
228 var _queryParams = new core.Map(); | 230 var _queryParams = new core.Map(); |
229 var _uploadMedia = null; | 231 var _uploadMedia = null; |
230 var _uploadOptions = null; | 232 var _uploadOptions = null; |
231 var _downloadOptions = common.DownloadOptions.Metadata; | 233 var _downloadOptions = commons.DownloadOptions.Metadata; |
232 var _body = null; | 234 var _body = null; |
233 | 235 |
234 if (project == null) { | 236 if (project == null) { |
235 throw new core.ArgumentError("Parameter project is required."); | 237 throw new core.ArgumentError("Parameter project is required."); |
236 } | 238 } |
237 if (maxResults != null) { | 239 if (maxResults != null) { |
238 _queryParams["maxResults"] = ["${maxResults}"]; | 240 _queryParams["maxResults"] = ["${maxResults}"]; |
239 } | 241 } |
240 if (pageToken != null) { | 242 if (pageToken != null) { |
241 _queryParams["pageToken"] = [pageToken]; | 243 _queryParams["pageToken"] = [pageToken]; |
242 } | 244 } |
243 | 245 |
244 | 246 |
245 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/deployme
nts'; | 247 _url = commons.Escaper.ecapeVariable('$project') + '/global/deployments'; |
246 | 248 |
247 var _response = _requester.request(_url, | 249 var _response = _requester.request(_url, |
248 "GET", | 250 "GET", |
249 body: _body, | 251 body: _body, |
250 queryParams: _queryParams, | 252 queryParams: _queryParams, |
251 uploadOptions: _uploadOptions, | 253 uploadOptions: _uploadOptions, |
252 uploadMedia: _uploadMedia, | 254 uploadMedia: _uploadMedia, |
253 downloadOptions: _downloadOptions); | 255 downloadOptions: _downloadOptions); |
254 return _response.then((data) => new DeploymentsListResponse.fromJson(data)); | 256 return _response.then((data) => new DeploymentsListResponse.fromJson(data)); |
255 } | 257 } |
256 | 258 |
257 } | 259 } |
258 | 260 |
259 | 261 |
260 /** Not documented yet. */ | |
261 class ManifestsResourceApi { | 262 class ManifestsResourceApi { |
262 final common_internal.ApiRequester _requester; | 263 final commons.ApiRequester _requester; |
263 | 264 |
264 ManifestsResourceApi(common_internal.ApiRequester client) : | 265 ManifestsResourceApi(commons.ApiRequester client) : |
265 _requester = client; | 266 _requester = client; |
266 | 267 |
267 /** | 268 /** |
268 * Gets information about a specific manifest. | 269 * ! Gets information about a specific manifest. |
269 * | 270 * |
270 * Request parameters: | 271 * Request parameters: |
271 * | 272 * |
272 * [project] - The project ID for this request. | 273 * [project] - ! The project ID for this request. |
273 * Value must have pattern | 274 * Value must have pattern |
274 * "(?:(?:[-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])?))". | 275 * "(?:(?:[-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])?))". |
275 * | 276 * |
276 * [deployment] - The name of the deployment for this request. | 277 * [deployment] - ! The name of the deployment for this request. |
277 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 278 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
278 * | 279 * |
279 * [manifest] - The name of the manifest for this request. | 280 * [manifest] - ! The name of the manifest for this request. |
280 * Value must have pattern "[-a-z0-9]{1,61}". | 281 * Value must have pattern "[-a-z0-9]{1,61}". |
281 * | 282 * |
282 * Completes with a [Manifest]. | 283 * Completes with a [Manifest]. |
283 * | 284 * |
284 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 285 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
285 * error. | 286 * error. |
286 * | 287 * |
287 * If the used [http.Client] completes with an error when making a REST call, | 288 * If the used [http.Client] completes with an error when making a REST call, |
288 * this method will complete with the same error. | 289 * this method will complete with the same error. |
289 */ | 290 */ |
290 async.Future<Manifest> get(core.String project, core.String deployment, core.S
tring manifest) { | 291 async.Future<Manifest> get(core.String project, core.String deployment, core.S
tring manifest) { |
291 var _url = null; | 292 var _url = null; |
292 var _queryParams = new core.Map(); | 293 var _queryParams = new core.Map(); |
293 var _uploadMedia = null; | 294 var _uploadMedia = null; |
294 var _uploadOptions = null; | 295 var _uploadOptions = null; |
295 var _downloadOptions = common.DownloadOptions.Metadata; | 296 var _downloadOptions = commons.DownloadOptions.Metadata; |
296 var _body = null; | 297 var _body = null; |
297 | 298 |
298 if (project == null) { | 299 if (project == null) { |
299 throw new core.ArgumentError("Parameter project is required."); | 300 throw new core.ArgumentError("Parameter project is required."); |
300 } | 301 } |
301 if (deployment == null) { | 302 if (deployment == null) { |
302 throw new core.ArgumentError("Parameter deployment is required."); | 303 throw new core.ArgumentError("Parameter deployment is required."); |
303 } | 304 } |
304 if (manifest == null) { | 305 if (manifest == null) { |
305 throw new core.ArgumentError("Parameter manifest is required."); | 306 throw new core.ArgumentError("Parameter manifest is required."); |
306 } | 307 } |
307 | 308 |
308 | 309 |
309 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/deployme
nts/' + common_internal.Escaper.ecapeVariable('$deployment') + '/manifests/' + c
ommon_internal.Escaper.ecapeVariable('$manifest'); | 310 _url = commons.Escaper.ecapeVariable('$project') + '/global/deployments/' +
commons.Escaper.ecapeVariable('$deployment') + '/manifests/' + commons.Escaper.e
capeVariable('$manifest'); |
310 | 311 |
311 var _response = _requester.request(_url, | 312 var _response = _requester.request(_url, |
312 "GET", | 313 "GET", |
313 body: _body, | 314 body: _body, |
314 queryParams: _queryParams, | 315 queryParams: _queryParams, |
315 uploadOptions: _uploadOptions, | 316 uploadOptions: _uploadOptions, |
316 uploadMedia: _uploadMedia, | 317 uploadMedia: _uploadMedia, |
317 downloadOptions: _downloadOptions); | 318 downloadOptions: _downloadOptions); |
318 return _response.then((data) => new Manifest.fromJson(data)); | 319 return _response.then((data) => new Manifest.fromJson(data)); |
319 } | 320 } |
320 | 321 |
321 /** | 322 /** |
322 * Lists all manifests for a given deployment. | 323 * ! Lists all manifests for a given deployment. |
323 * | 324 * |
324 * Request parameters: | 325 * Request parameters: |
325 * | 326 * |
326 * [project] - The project ID for this request. | 327 * [project] - ! The project ID for this request. |
327 * Value must have pattern | 328 * Value must have pattern |
328 * "(?:(?:[-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])?))". | 329 * "(?:(?:[-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])?))". |
329 * | 330 * |
330 * [deployment] - The name of the deployment for this request. | 331 * [deployment] - ! The name of the deployment for this request. |
331 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 332 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
332 * | 333 * |
333 * [maxResults] - Maximum count of results to be returned. Acceptable values | 334 * [maxResults] - ! Maximum count of results to be returned. ! Acceptable |
334 * are 0 to 100, inclusive. (Default: 50) | 335 * values are 0 to 100, inclusive. (Default: 50) |
335 * Value must be between "0" and "100". | 336 * Value must be between "0" and "100". |
336 * | 337 * |
337 * [pageToken] - Specifies a nextPageToken returned by a previous list | 338 * [pageToken] - ! Specifies a nextPageToken returned by a previous list |
338 * request. This token can be used to request the next page of results from a | 339 * request. This ! token can be used to request the next page of results from |
339 * previous list request. | 340 * a previous ! list request. |
340 * | 341 * |
341 * Completes with a [ManifestsListResponse]. | 342 * Completes with a [ManifestsListResponse]. |
342 * | 343 * |
343 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 344 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
344 * error. | 345 * error. |
345 * | 346 * |
346 * If the used [http.Client] completes with an error when making a REST call, | 347 * If the used [http.Client] completes with an error when making a REST call, |
347 * this method will complete with the same error. | 348 * this method will complete with the same error. |
348 */ | 349 */ |
349 async.Future<ManifestsListResponse> list(core.String project, core.String depl
oyment, {core.int maxResults, core.String pageToken}) { | 350 async.Future<ManifestsListResponse> list(core.String project, core.String depl
oyment, {core.int maxResults, core.String pageToken}) { |
350 var _url = null; | 351 var _url = null; |
351 var _queryParams = new core.Map(); | 352 var _queryParams = new core.Map(); |
352 var _uploadMedia = null; | 353 var _uploadMedia = null; |
353 var _uploadOptions = null; | 354 var _uploadOptions = null; |
354 var _downloadOptions = common.DownloadOptions.Metadata; | 355 var _downloadOptions = commons.DownloadOptions.Metadata; |
355 var _body = null; | 356 var _body = null; |
356 | 357 |
357 if (project == null) { | 358 if (project == null) { |
358 throw new core.ArgumentError("Parameter project is required."); | 359 throw new core.ArgumentError("Parameter project is required."); |
359 } | 360 } |
360 if (deployment == null) { | 361 if (deployment == null) { |
361 throw new core.ArgumentError("Parameter deployment is required."); | 362 throw new core.ArgumentError("Parameter deployment is required."); |
362 } | 363 } |
363 if (maxResults != null) { | 364 if (maxResults != null) { |
364 _queryParams["maxResults"] = ["${maxResults}"]; | 365 _queryParams["maxResults"] = ["${maxResults}"]; |
365 } | 366 } |
366 if (pageToken != null) { | 367 if (pageToken != null) { |
367 _queryParams["pageToken"] = [pageToken]; | 368 _queryParams["pageToken"] = [pageToken]; |
368 } | 369 } |
369 | 370 |
370 | 371 |
371 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/deployme
nts/' + common_internal.Escaper.ecapeVariable('$deployment') + '/manifests'; | 372 _url = commons.Escaper.ecapeVariable('$project') + '/global/deployments/' +
commons.Escaper.ecapeVariable('$deployment') + '/manifests'; |
372 | 373 |
373 var _response = _requester.request(_url, | 374 var _response = _requester.request(_url, |
374 "GET", | 375 "GET", |
375 body: _body, | 376 body: _body, |
376 queryParams: _queryParams, | 377 queryParams: _queryParams, |
377 uploadOptions: _uploadOptions, | 378 uploadOptions: _uploadOptions, |
378 uploadMedia: _uploadMedia, | 379 uploadMedia: _uploadMedia, |
379 downloadOptions: _downloadOptions); | 380 downloadOptions: _downloadOptions); |
380 return _response.then((data) => new ManifestsListResponse.fromJson(data)); | 381 return _response.then((data) => new ManifestsListResponse.fromJson(data)); |
381 } | 382 } |
382 | 383 |
383 } | 384 } |
384 | 385 |
385 | 386 |
386 /** Not documented yet. */ | |
387 class OperationsResourceApi { | 387 class OperationsResourceApi { |
388 final common_internal.ApiRequester _requester; | 388 final commons.ApiRequester _requester; |
389 | 389 |
390 OperationsResourceApi(common_internal.ApiRequester client) : | 390 OperationsResourceApi(commons.ApiRequester client) : |
391 _requester = client; | 391 _requester = client; |
392 | 392 |
393 /** | 393 /** |
394 * Gets information about a specific Operation. | 394 * ! Gets information about a specific Operation. |
395 * | 395 * |
396 * Request parameters: | 396 * Request parameters: |
397 * | 397 * |
398 * [project] - The project ID for this request. | 398 * [project] - ! The project ID for this request. |
399 * Value must have pattern | 399 * Value must have pattern |
400 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 400 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
401 * | 401 * |
402 * [operation] - The name of the operation for this request. | 402 * [operation] - ! The name of the operation for this request. |
403 * | 403 * |
404 * Completes with a [Operation]. | 404 * Completes with a [Operation]. |
405 * | 405 * |
406 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 406 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
407 * error. | 407 * error. |
408 * | 408 * |
409 * If the used [http.Client] completes with an error when making a REST call, | 409 * If the used [http.Client] completes with an error when making a REST call, |
410 * this method will complete with the same error. | 410 * this method will complete with the same error. |
411 */ | 411 */ |
412 async.Future<Operation> get(core.String project, core.String operation) { | 412 async.Future<Operation> get(core.String project, core.String operation) { |
413 var _url = null; | 413 var _url = null; |
414 var _queryParams = new core.Map(); | 414 var _queryParams = new core.Map(); |
415 var _uploadMedia = null; | 415 var _uploadMedia = null; |
416 var _uploadOptions = null; | 416 var _uploadOptions = null; |
417 var _downloadOptions = common.DownloadOptions.Metadata; | 417 var _downloadOptions = commons.DownloadOptions.Metadata; |
418 var _body = null; | 418 var _body = null; |
419 | 419 |
420 if (project == null) { | 420 if (project == null) { |
421 throw new core.ArgumentError("Parameter project is required."); | 421 throw new core.ArgumentError("Parameter project is required."); |
422 } | 422 } |
423 if (operation == null) { | 423 if (operation == null) { |
424 throw new core.ArgumentError("Parameter operation is required."); | 424 throw new core.ArgumentError("Parameter operation is required."); |
425 } | 425 } |
426 | 426 |
427 | 427 |
428 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/operatio
ns/' + common_internal.Escaper.ecapeVariable('$operation'); | 428 _url = commons.Escaper.ecapeVariable('$project') + '/global/operations/' + c
ommons.Escaper.ecapeVariable('$operation'); |
429 | 429 |
430 var _response = _requester.request(_url, | 430 var _response = _requester.request(_url, |
431 "GET", | 431 "GET", |
432 body: _body, | 432 body: _body, |
433 queryParams: _queryParams, | 433 queryParams: _queryParams, |
434 uploadOptions: _uploadOptions, | 434 uploadOptions: _uploadOptions, |
435 uploadMedia: _uploadMedia, | 435 uploadMedia: _uploadMedia, |
436 downloadOptions: _downloadOptions); | 436 downloadOptions: _downloadOptions); |
437 return _response.then((data) => new Operation.fromJson(data)); | 437 return _response.then((data) => new Operation.fromJson(data)); |
438 } | 438 } |
439 | 439 |
440 /** | 440 /** |
441 * Lists all Operations for a project. | 441 * ! Lists all Operations for a project. |
442 * | 442 * |
443 * Request parameters: | 443 * Request parameters: |
444 * | 444 * |
445 * [project] - The project ID for this request. | 445 * [project] - ! The project ID for this request. |
446 * Value must have pattern | 446 * Value must have pattern |
447 * "(?:(?:[-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])?))". | 447 * "(?:(?:[-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])?))". |
448 * | 448 * |
449 * [maxResults] - Maximum count of results to be returned. Acceptable values | 449 * [maxResults] - ! Maximum count of results to be returned. ! Acceptable |
450 * are 0 to 100, inclusive. (Default: 50) | 450 * values are 0 to 100, inclusive. (Default: 50) |
451 * Value must be between "0" and "100". | 451 * Value must be between "0" and "100". |
452 * | 452 * |
453 * [pageToken] - Specifies a nextPageToken returned by a previous list | 453 * [pageToken] - ! Specifies a nextPageToken returned by a previous list |
454 * request. This token can be used to request the next page of results from a | 454 * request. This ! token can be used to request the next page of results from |
455 * previous list request. | 455 * a previous ! list request. |
456 * | 456 * |
457 * Completes with a [OperationsListResponse]. | 457 * Completes with a [OperationsListResponse]. |
458 * | 458 * |
459 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 459 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
460 * error. | 460 * error. |
461 * | 461 * |
462 * If the used [http.Client] completes with an error when making a REST call, | 462 * If the used [http.Client] completes with an error when making a REST call, |
463 * this method will complete with the same error. | 463 * this method will complete with the same error. |
464 */ | 464 */ |
465 async.Future<OperationsListResponse> list(core.String project, {core.int maxRe
sults, core.String pageToken}) { | 465 async.Future<OperationsListResponse> list(core.String project, {core.int maxRe
sults, core.String pageToken}) { |
466 var _url = null; | 466 var _url = null; |
467 var _queryParams = new core.Map(); | 467 var _queryParams = new core.Map(); |
468 var _uploadMedia = null; | 468 var _uploadMedia = null; |
469 var _uploadOptions = null; | 469 var _uploadOptions = null; |
470 var _downloadOptions = common.DownloadOptions.Metadata; | 470 var _downloadOptions = commons.DownloadOptions.Metadata; |
471 var _body = null; | 471 var _body = null; |
472 | 472 |
473 if (project == null) { | 473 if (project == null) { |
474 throw new core.ArgumentError("Parameter project is required."); | 474 throw new core.ArgumentError("Parameter project is required."); |
475 } | 475 } |
476 if (maxResults != null) { | 476 if (maxResults != null) { |
477 _queryParams["maxResults"] = ["${maxResults}"]; | 477 _queryParams["maxResults"] = ["${maxResults}"]; |
478 } | 478 } |
479 if (pageToken != null) { | 479 if (pageToken != null) { |
480 _queryParams["pageToken"] = [pageToken]; | 480 _queryParams["pageToken"] = [pageToken]; |
481 } | 481 } |
482 | 482 |
483 | 483 |
484 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/operatio
ns'; | 484 _url = commons.Escaper.ecapeVariable('$project') + '/global/operations'; |
485 | 485 |
486 var _response = _requester.request(_url, | 486 var _response = _requester.request(_url, |
487 "GET", | 487 "GET", |
488 body: _body, | 488 body: _body, |
489 queryParams: _queryParams, | 489 queryParams: _queryParams, |
490 uploadOptions: _uploadOptions, | 490 uploadOptions: _uploadOptions, |
491 uploadMedia: _uploadMedia, | 491 uploadMedia: _uploadMedia, |
492 downloadOptions: _downloadOptions); | 492 downloadOptions: _downloadOptions); |
493 return _response.then((data) => new OperationsListResponse.fromJson(data)); | 493 return _response.then((data) => new OperationsListResponse.fromJson(data)); |
494 } | 494 } |
495 | 495 |
496 } | 496 } |
497 | 497 |
498 | 498 |
499 /** Not documented yet. */ | |
500 class ResourcesResourceApi { | 499 class ResourcesResourceApi { |
501 final common_internal.ApiRequester _requester; | 500 final commons.ApiRequester _requester; |
502 | 501 |
503 ResourcesResourceApi(common_internal.ApiRequester client) : | 502 ResourcesResourceApi(commons.ApiRequester client) : |
504 _requester = client; | 503 _requester = client; |
505 | 504 |
506 /** | 505 /** |
507 * Gets information about a single resource. | 506 * ! Gets information about a single resource. |
508 * | 507 * |
509 * Request parameters: | 508 * Request parameters: |
510 * | 509 * |
511 * [project] - The project ID for this request. | 510 * [project] - ! The project ID for this request. |
512 * Value must have pattern | 511 * Value must have pattern |
513 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 512 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
514 * | 513 * |
515 * [deployment] - The name of the deployment for this request. | 514 * [deployment] - ! The name of the deployment for this request. |
516 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 515 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
517 * | 516 * |
518 * [resource] - The name of the resource for this request. | 517 * [resource] - ! The name of the resource for this request. |
519 * Value must have pattern "[-a-z0-9]{1,61}". | 518 * Value must have pattern "[-a-z0-9]{1,61}". |
520 * | 519 * |
521 * Completes with a [Resource]. | 520 * Completes with a [Resource]. |
522 * | 521 * |
523 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 522 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
524 * error. | 523 * error. |
525 * | 524 * |
526 * If the used [http.Client] completes with an error when making a REST call, | 525 * If the used [http.Client] completes with an error when making a REST call, |
527 * this method will complete with the same error. | 526 * this method will complete with the same error. |
528 */ | 527 */ |
529 async.Future<Resource> get(core.String project, core.String deployment, core.S
tring resource) { | 528 async.Future<Resource> get(core.String project, core.String deployment, core.S
tring resource) { |
530 var _url = null; | 529 var _url = null; |
531 var _queryParams = new core.Map(); | 530 var _queryParams = new core.Map(); |
532 var _uploadMedia = null; | 531 var _uploadMedia = null; |
533 var _uploadOptions = null; | 532 var _uploadOptions = null; |
534 var _downloadOptions = common.DownloadOptions.Metadata; | 533 var _downloadOptions = commons.DownloadOptions.Metadata; |
535 var _body = null; | 534 var _body = null; |
536 | 535 |
537 if (project == null) { | 536 if (project == null) { |
538 throw new core.ArgumentError("Parameter project is required."); | 537 throw new core.ArgumentError("Parameter project is required."); |
539 } | 538 } |
540 if (deployment == null) { | 539 if (deployment == null) { |
541 throw new core.ArgumentError("Parameter deployment is required."); | 540 throw new core.ArgumentError("Parameter deployment is required."); |
542 } | 541 } |
543 if (resource == null) { | 542 if (resource == null) { |
544 throw new core.ArgumentError("Parameter resource is required."); | 543 throw new core.ArgumentError("Parameter resource is required."); |
545 } | 544 } |
546 | 545 |
547 | 546 |
548 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/deployme
nts/' + common_internal.Escaper.ecapeVariable('$deployment') + '/resources/' + c
ommon_internal.Escaper.ecapeVariable('$resource'); | 547 _url = commons.Escaper.ecapeVariable('$project') + '/global/deployments/' +
commons.Escaper.ecapeVariable('$deployment') + '/resources/' + commons.Escaper.e
capeVariable('$resource'); |
549 | 548 |
550 var _response = _requester.request(_url, | 549 var _response = _requester.request(_url, |
551 "GET", | 550 "GET", |
552 body: _body, | 551 body: _body, |
553 queryParams: _queryParams, | 552 queryParams: _queryParams, |
554 uploadOptions: _uploadOptions, | 553 uploadOptions: _uploadOptions, |
555 uploadMedia: _uploadMedia, | 554 uploadMedia: _uploadMedia, |
556 downloadOptions: _downloadOptions); | 555 downloadOptions: _downloadOptions); |
557 return _response.then((data) => new Resource.fromJson(data)); | 556 return _response.then((data) => new Resource.fromJson(data)); |
558 } | 557 } |
559 | 558 |
560 /** | 559 /** |
561 * Lists all resources in a given deployment. | 560 * ! Lists all resources in a given deployment. |
562 * | 561 * |
563 * Request parameters: | 562 * Request parameters: |
564 * | 563 * |
565 * [project] - The project ID for this request. | 564 * [project] - ! The project ID for this request. |
566 * Value must have pattern | 565 * Value must have pattern |
567 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 566 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
568 * | 567 * |
569 * [deployment] - The name of the deployment for this request. | 568 * [deployment] - ! The name of the deployment for this request. |
570 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 569 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
571 * | 570 * |
572 * [maxResults] - Maximum count of results to be returned. Acceptable values | 571 * [maxResults] - ! Maximum count of results to be returned. ! Acceptable |
573 * are 0 to 100, inclusive. (Default: 50) | 572 * values are 0 to 100, inclusive. (Default: 50) |
574 * Value must be between "0" and "100". | 573 * Value must be between "0" and "100". |
575 * | 574 * |
576 * [pageToken] - Specifies a nextPageToken returned by a previous list | 575 * [pageToken] - ! Specifies a nextPageToken returned by a previous list |
577 * request. This token can be used to request the next page of results from a | 576 * request. This ! token can be used to request the next page of results from |
578 * previous list request. | 577 * a previous ! list request. |
579 * | 578 * |
580 * Completes with a [ResourcesListResponse]. | 579 * Completes with a [ResourcesListResponse]. |
581 * | 580 * |
582 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 581 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
583 * error. | 582 * error. |
584 * | 583 * |
585 * If the used [http.Client] completes with an error when making a REST call, | 584 * If the used [http.Client] completes with an error when making a REST call, |
586 * this method will complete with the same error. | 585 * this method will complete with the same error. |
587 */ | 586 */ |
588 async.Future<ResourcesListResponse> list(core.String project, core.String depl
oyment, {core.int maxResults, core.String pageToken}) { | 587 async.Future<ResourcesListResponse> list(core.String project, core.String depl
oyment, {core.int maxResults, core.String pageToken}) { |
589 var _url = null; | 588 var _url = null; |
590 var _queryParams = new core.Map(); | 589 var _queryParams = new core.Map(); |
591 var _uploadMedia = null; | 590 var _uploadMedia = null; |
592 var _uploadOptions = null; | 591 var _uploadOptions = null; |
593 var _downloadOptions = common.DownloadOptions.Metadata; | 592 var _downloadOptions = commons.DownloadOptions.Metadata; |
594 var _body = null; | 593 var _body = null; |
595 | 594 |
596 if (project == null) { | 595 if (project == null) { |
597 throw new core.ArgumentError("Parameter project is required."); | 596 throw new core.ArgumentError("Parameter project is required."); |
598 } | 597 } |
599 if (deployment == null) { | 598 if (deployment == null) { |
600 throw new core.ArgumentError("Parameter deployment is required."); | 599 throw new core.ArgumentError("Parameter deployment is required."); |
601 } | 600 } |
602 if (maxResults != null) { | 601 if (maxResults != null) { |
603 _queryParams["maxResults"] = ["${maxResults}"]; | 602 _queryParams["maxResults"] = ["${maxResults}"]; |
604 } | 603 } |
605 if (pageToken != null) { | 604 if (pageToken != null) { |
606 _queryParams["pageToken"] = [pageToken]; | 605 _queryParams["pageToken"] = [pageToken]; |
607 } | 606 } |
608 | 607 |
609 | 608 |
610 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/deployme
nts/' + common_internal.Escaper.ecapeVariable('$deployment') + '/resources'; | 609 _url = commons.Escaper.ecapeVariable('$project') + '/global/deployments/' +
commons.Escaper.ecapeVariable('$deployment') + '/resources'; |
611 | 610 |
612 var _response = _requester.request(_url, | 611 var _response = _requester.request(_url, |
613 "GET", | 612 "GET", |
614 body: _body, | 613 body: _body, |
615 queryParams: _queryParams, | 614 queryParams: _queryParams, |
616 uploadOptions: _uploadOptions, | 615 uploadOptions: _uploadOptions, |
617 uploadMedia: _uploadMedia, | 616 uploadMedia: _uploadMedia, |
618 downloadOptions: _downloadOptions); | 617 downloadOptions: _downloadOptions); |
619 return _response.then((data) => new ResourcesListResponse.fromJson(data)); | 618 return _response.then((data) => new ResourcesListResponse.fromJson(data)); |
620 } | 619 } |
621 | 620 |
622 } | 621 } |
623 | 622 |
624 | 623 |
625 /** Not documented yet. */ | |
626 class TypesResourceApi { | 624 class TypesResourceApi { |
627 final common_internal.ApiRequester _requester; | 625 final commons.ApiRequester _requester; |
628 | 626 |
629 TypesResourceApi(common_internal.ApiRequester client) : | 627 TypesResourceApi(commons.ApiRequester client) : |
630 _requester = client; | 628 _requester = client; |
631 | 629 |
632 /** | 630 /** |
633 * Lists all Types for Deployment Manager. | 631 * ! Lists all Types for Deployment Manager. |
634 * | 632 * |
635 * Request parameters: | 633 * Request parameters: |
636 * | 634 * |
637 * [project] - The project ID for this request. | 635 * [project] - ! The project ID for this request. |
638 * Value must have pattern | 636 * Value must have pattern |
639 * "(?:(?:[-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])?))". | 637 * "(?:(?:[-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])?))". |
640 * | 638 * |
641 * [maxResults] - Maximum count of results to be returned. Acceptable values | 639 * [maxResults] - ! Maximum count of results to be returned. ! Acceptable |
642 * are 0 to 100, inclusive. (Default: 50) | 640 * values are 0 to 100, inclusive. (Default: 50) |
643 * Value must be between "0" and "100". | 641 * Value must be between "0" and "100". |
644 * | 642 * |
645 * [pageToken] - Specifies a nextPageToken returned by a previous list | 643 * [pageToken] - ! Specifies a nextPageToken returned by a previous list |
646 * request. This token can be used to request the next page of results from a | 644 * request. This ! token can be used to request the next page of results from |
647 * previous list request. | 645 * a previous ! list request. |
648 * | 646 * |
649 * Completes with a [TypesListResponse]. | 647 * Completes with a [TypesListResponse]. |
650 * | 648 * |
651 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 649 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
652 * error. | 650 * error. |
653 * | 651 * |
654 * If the used [http.Client] completes with an error when making a REST call, | 652 * If the used [http.Client] completes with an error when making a REST call, |
655 * this method will complete with the same error. | 653 * this method will complete with the same error. |
656 */ | 654 */ |
657 async.Future<TypesListResponse> list(core.String project, {core.int maxResults
, core.String pageToken}) { | 655 async.Future<TypesListResponse> list(core.String project, {core.int maxResults
, core.String pageToken}) { |
658 var _url = null; | 656 var _url = null; |
659 var _queryParams = new core.Map(); | 657 var _queryParams = new core.Map(); |
660 var _uploadMedia = null; | 658 var _uploadMedia = null; |
661 var _uploadOptions = null; | 659 var _uploadOptions = null; |
662 var _downloadOptions = common.DownloadOptions.Metadata; | 660 var _downloadOptions = commons.DownloadOptions.Metadata; |
663 var _body = null; | 661 var _body = null; |
664 | 662 |
665 if (project == null) { | 663 if (project == null) { |
666 throw new core.ArgumentError("Parameter project is required."); | 664 throw new core.ArgumentError("Parameter project is required."); |
667 } | 665 } |
668 if (maxResults != null) { | 666 if (maxResults != null) { |
669 _queryParams["maxResults"] = ["${maxResults}"]; | 667 _queryParams["maxResults"] = ["${maxResults}"]; |
670 } | 668 } |
671 if (pageToken != null) { | 669 if (pageToken != null) { |
672 _queryParams["pageToken"] = [pageToken]; | 670 _queryParams["pageToken"] = [pageToken]; |
673 } | 671 } |
674 | 672 |
675 | 673 |
676 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/types'; | 674 _url = commons.Escaper.ecapeVariable('$project') + '/global/types'; |
677 | 675 |
678 var _response = _requester.request(_url, | 676 var _response = _requester.request(_url, |
679 "GET", | 677 "GET", |
680 body: _body, | 678 body: _body, |
681 queryParams: _queryParams, | 679 queryParams: _queryParams, |
682 uploadOptions: _uploadOptions, | 680 uploadOptions: _uploadOptions, |
683 uploadMedia: _uploadMedia, | 681 uploadMedia: _uploadMedia, |
684 downloadOptions: _downloadOptions); | 682 downloadOptions: _downloadOptions); |
685 return _response.then((data) => new TypesListResponse.fromJson(data)); | 683 return _response.then((data) => new TypesListResponse.fromJson(data)); |
686 } | 684 } |
687 | 685 |
688 } | 686 } |
689 | 687 |
690 | 688 |
691 | 689 |
692 /** Not documented yet. */ | 690 /** Next available tag: 8 */ |
693 class Deployment { | 691 class Deployment { |
694 /** An optional user-provided description of the deployment. */ | 692 /** ! An optional user-provided description of the deployment. */ |
695 core.String description; | 693 core.String description; |
696 | 694 |
697 /** | 695 /** |
698 * [Output Only] Unique identifier for the resource; defined by the server. | 696 * [Output Only] Unique identifier for the resource; defined by the server. |
699 */ | 697 */ |
700 core.String id; | 698 core.String id; |
701 | 699 |
702 /** | 700 /** |
703 * [Output Only] URL of the manifest representing the full configuration of | 701 * ! [Output Only] URL of the manifest representing the full configuration ! |
704 * this deployment. | 702 * of this deployment. |
705 */ | 703 */ |
706 core.String manifest; | 704 core.String manifest; |
707 | 705 |
708 /** The name of the deployment, which must be unique within the project. */ | 706 /** ! The name of the deployment, which must be unique within the project. */ |
709 core.String name; | 707 core.String name; |
710 | 708 |
711 /** | 709 /** |
712 * [Input Only] The YAML configuration to use in processing this deployment. | 710 * ! [Input Only] The YAML configuration to use in processing this deployment. |
713 * | 711 * ! ! When you create a deployment, the server creates a new manifest with |
714 * When you create a deployment, the server creates a new manifest with the | 712 * the ! given YAML configuration and sets the `manifest` property to the URL |
715 * given YAML configuration and sets the `manifest` property to the URL of the | 713 * of ! the manifest resource. |
716 * manifest resource. | |
717 */ | 714 */ |
718 core.String targetConfig; | 715 core.String targetConfig; |
719 | 716 |
720 | 717 |
721 Deployment(); | 718 Deployment(); |
722 | 719 |
723 Deployment.fromJson(core.Map _json) { | 720 Deployment.fromJson(core.Map _json) { |
724 if (_json.containsKey("description")) { | 721 if (_json.containsKey("description")) { |
725 description = _json["description"]; | 722 description = _json["description"]; |
726 } | 723 } |
(...skipping 27 matching lines...) Expand all Loading... |
754 } | 751 } |
755 if (targetConfig != null) { | 752 if (targetConfig != null) { |
756 _json["targetConfig"] = targetConfig; | 753 _json["targetConfig"] = targetConfig; |
757 } | 754 } |
758 return _json; | 755 return _json; |
759 } | 756 } |
760 } | 757 } |
761 | 758 |
762 | 759 |
763 /** | 760 /** |
764 * A response containing a partial list of deployments and a page token used to | 761 * ! A response containing a partial list of deployments and a page token used ! |
765 * build the next request if the request has been truncated. | 762 * to build the next request if the request has been truncated. Next available |
| 763 * tag: 4 |
766 */ | 764 */ |
767 class DeploymentsListResponse { | 765 class DeploymentsListResponse { |
768 /** The deployments contained in this response. */ | 766 /** ! The deployments contained in this response. */ |
769 core.List<Deployment> deployments; | 767 core.List<Deployment> deployments; |
770 | 768 |
771 /** A token used to continue a truncated list request. */ | 769 /** ! A token used to continue a truncated list request. */ |
772 core.String nextPageToken; | 770 core.String nextPageToken; |
773 | 771 |
774 | 772 |
775 DeploymentsListResponse(); | 773 DeploymentsListResponse(); |
776 | 774 |
777 DeploymentsListResponse.fromJson(core.Map _json) { | 775 DeploymentsListResponse.fromJson(core.Map _json) { |
778 if (_json.containsKey("deployments")) { | 776 if (_json.containsKey("deployments")) { |
779 deployments = _json["deployments"].map((value) => new Deployment.fromJson(
value)).toList(); | 777 deployments = _json["deployments"].map((value) => new Deployment.fromJson(
value)).toList(); |
780 } | 778 } |
781 if (_json.containsKey("nextPageToken")) { | 779 if (_json.containsKey("nextPageToken")) { |
782 nextPageToken = _json["nextPageToken"]; | 780 nextPageToken = _json["nextPageToken"]; |
783 } | 781 } |
784 } | 782 } |
785 | 783 |
786 core.Map toJson() { | 784 core.Map toJson() { |
787 var _json = new core.Map(); | 785 var _json = new core.Map(); |
788 if (deployments != null) { | 786 if (deployments != null) { |
789 _json["deployments"] = deployments.map((value) => (value).toJson()).toList
(); | 787 _json["deployments"] = deployments.map((value) => (value).toJson()).toList
(); |
790 } | 788 } |
791 if (nextPageToken != null) { | 789 if (nextPageToken != null) { |
792 _json["nextPageToken"] = nextPageToken; | 790 _json["nextPageToken"] = nextPageToken; |
793 } | 791 } |
794 return _json; | 792 return _json; |
795 } | 793 } |
796 } | 794 } |
797 | 795 |
798 | 796 |
799 /** Not documented yet. */ | 797 /** Next available tag: 10 */ |
800 class Manifest { | 798 class Manifest { |
801 /** The YAML configuration for this manifest. */ | 799 /** |
| 800 * v2beta1: YAML with config - described above v2beta2: YAML + templates. ! |
| 801 * The YAML configuration for this manifest. |
| 802 */ |
802 core.String config; | 803 core.String config; |
803 | 804 |
804 /** | 805 /** |
805 * [Output Only] The fully-expanded configuration file, including any | 806 * ! [Output Only] The fully-expanded configuration file, including any ! |
806 * templates and references. | 807 * templates and references. |
807 */ | 808 */ |
808 core.String evaluatedConfig; | 809 core.String evaluatedConfig; |
809 | 810 |
810 /** | 811 /** |
811 * [Output Only] Unique identifier for the resource; defined by the server. | 812 * [Output Only] Unique identifier for the resource; defined by the server. |
812 */ | 813 */ |
813 core.String id; | 814 core.String id; |
814 | 815 |
815 /** [Output Only] The name of the manifest. */ | 816 /** ! [Output Only] The name of the manifest. */ |
816 core.String name; | 817 core.String name; |
817 | 818 |
818 /** [Output Only] Self link for the manifest. */ | 819 /** [Output Only] Self link for the manifest. */ |
819 core.String selfLink; | 820 core.String selfLink; |
820 | 821 |
821 | 822 |
822 Manifest(); | 823 Manifest(); |
823 | 824 |
824 Manifest.fromJson(core.Map _json) { | 825 Manifest.fromJson(core.Map _json) { |
825 if (_json.containsKey("config")) { | 826 if (_json.containsKey("config")) { |
(...skipping 29 matching lines...) Expand all Loading... |
855 } | 856 } |
856 if (selfLink != null) { | 857 if (selfLink != null) { |
857 _json["selfLink"] = selfLink; | 858 _json["selfLink"] = selfLink; |
858 } | 859 } |
859 return _json; | 860 return _json; |
860 } | 861 } |
861 } | 862 } |
862 | 863 |
863 | 864 |
864 /** | 865 /** |
865 * A response containing a partial list of manifests and a page token used to | 866 * ! A response containing a partial list of manifests and a page token used ! |
866 * build the next request if the request has been truncated. | 867 * to build the next request if the request has been truncated. Next available |
| 868 * tag: 4 |
867 */ | 869 */ |
868 class ManifestsListResponse { | 870 class ManifestsListResponse { |
869 /** Manifests contained in this list response. */ | 871 /** ! Manifests contained in this list response. */ |
870 core.List<Manifest> manifests; | 872 core.List<Manifest> manifests; |
871 | 873 |
872 /** A token used to continue a truncated list request. */ | 874 /** ! A token used to continue a truncated list request. */ |
873 core.String nextPageToken; | 875 core.String nextPageToken; |
874 | 876 |
875 | 877 |
876 ManifestsListResponse(); | 878 ManifestsListResponse(); |
877 | 879 |
878 ManifestsListResponse.fromJson(core.Map _json) { | 880 ManifestsListResponse.fromJson(core.Map _json) { |
879 if (_json.containsKey("manifests")) { | 881 if (_json.containsKey("manifests")) { |
880 manifests = _json["manifests"].map((value) => new Manifest.fromJson(value)
).toList(); | 882 manifests = _json["manifests"].map((value) => new Manifest.fromJson(value)
).toList(); |
881 } | 883 } |
882 if (_json.containsKey("nextPageToken")) { | 884 if (_json.containsKey("nextPageToken")) { |
883 nextPageToken = _json["nextPageToken"]; | 885 nextPageToken = _json["nextPageToken"]; |
884 } | 886 } |
885 } | 887 } |
886 | 888 |
887 core.Map toJson() { | 889 core.Map toJson() { |
888 var _json = new core.Map(); | 890 var _json = new core.Map(); |
889 if (manifests != null) { | 891 if (manifests != null) { |
890 _json["manifests"] = manifests.map((value) => (value).toJson()).toList(); | 892 _json["manifests"] = manifests.map((value) => (value).toJson()).toList(); |
891 } | 893 } |
892 if (nextPageToken != null) { | 894 if (nextPageToken != null) { |
893 _json["nextPageToken"] = nextPageToken; | 895 _json["nextPageToken"] = nextPageToken; |
894 } | 896 } |
895 return _json; | 897 return _json; |
896 } | 898 } |
897 } | 899 } |
898 | 900 |
899 | 901 |
900 /** Not documented yet. */ | |
901 class OperationErrorErrors { | 902 class OperationErrorErrors { |
902 /** The error type identifier for this error. */ | 903 /** ! The error type identifier for this error. */ |
903 core.String code; | 904 core.String code; |
904 | 905 |
905 /** | 906 /** |
906 * Indicates the field in the request which caused the error. This property is | 907 * ! Indicates the field in the request which caused the error. ! This |
907 * optional. | 908 * property is optional. |
908 */ | 909 */ |
909 core.String location; | 910 core.String location; |
910 | 911 |
911 /** An optional, human-readable error message. */ | 912 /** ! An optional, human-readable error message. */ |
912 core.String message; | 913 core.String message; |
913 | 914 |
914 | 915 |
915 OperationErrorErrors(); | 916 OperationErrorErrors(); |
916 | 917 |
917 OperationErrorErrors.fromJson(core.Map _json) { | 918 OperationErrorErrors.fromJson(core.Map _json) { |
918 if (_json.containsKey("code")) { | 919 if (_json.containsKey("code")) { |
919 code = _json["code"]; | 920 code = _json["code"]; |
920 } | 921 } |
921 if (_json.containsKey("location")) { | 922 if (_json.containsKey("location")) { |
(...skipping 14 matching lines...) Expand all Loading... |
936 } | 937 } |
937 if (message != null) { | 938 if (message != null) { |
938 _json["message"] = message; | 939 _json["message"] = message; |
939 } | 940 } |
940 return _json; | 941 return _json; |
941 } | 942 } |
942 } | 943 } |
943 | 944 |
944 | 945 |
945 /** | 946 /** |
946 * [Output Only] If errors occurred during processing of this operation, this | 947 * ! [Output Only] If errors occurred during processing of this operation, ! |
947 * field will be populated. | 948 * this field will be populated. |
948 */ | 949 */ |
949 class OperationError { | 950 class OperationError { |
950 /** The array of errors encountered while processing this operation. */ | 951 /** ! The array of errors encountered while processing this operation. */ |
951 core.List<OperationErrorErrors> errors; | 952 core.List<OperationErrorErrors> errors; |
952 | 953 |
953 | 954 |
954 OperationError(); | 955 OperationError(); |
955 | 956 |
956 OperationError.fromJson(core.Map _json) { | 957 OperationError.fromJson(core.Map _json) { |
957 if (_json.containsKey("errors")) { | 958 if (_json.containsKey("errors")) { |
958 errors = _json["errors"].map((value) => new OperationErrorErrors.fromJson(
value)).toList(); | 959 errors = _json["errors"].map((value) => new OperationErrorErrors.fromJson(
value)).toList(); |
959 } | 960 } |
960 } | 961 } |
961 | 962 |
962 core.Map toJson() { | 963 core.Map toJson() { |
963 var _json = new core.Map(); | 964 var _json = new core.Map(); |
964 if (errors != null) { | 965 if (errors != null) { |
965 _json["errors"] = errors.map((value) => (value).toJson()).toList(); | 966 _json["errors"] = errors.map((value) => (value).toJson()).toList(); |
966 } | 967 } |
967 return _json; | 968 return _json; |
968 } | 969 } |
969 } | 970 } |
970 | 971 |
971 | 972 |
972 /** Not documented yet. */ | |
973 class OperationWarningsData { | 973 class OperationWarningsData { |
974 /** A key for the warning data. */ | 974 /** ! A key for the warning data. */ |
975 core.String key; | 975 core.String key; |
976 | 976 |
977 /** A warning data value corresponding to the key. */ | 977 /** ! A warning data value corresponding to the key. */ |
978 core.String value; | 978 core.String value; |
979 | 979 |
980 | 980 |
981 OperationWarningsData(); | 981 OperationWarningsData(); |
982 | 982 |
983 OperationWarningsData.fromJson(core.Map _json) { | 983 OperationWarningsData.fromJson(core.Map _json) { |
984 if (_json.containsKey("key")) { | 984 if (_json.containsKey("key")) { |
985 key = _json["key"]; | 985 key = _json["key"]; |
986 } | 986 } |
987 if (_json.containsKey("value")) { | 987 if (_json.containsKey("value")) { |
988 value = _json["value"]; | 988 value = _json["value"]; |
989 } | 989 } |
990 } | 990 } |
991 | 991 |
992 core.Map toJson() { | 992 core.Map toJson() { |
993 var _json = new core.Map(); | 993 var _json = new core.Map(); |
994 if (key != null) { | 994 if (key != null) { |
995 _json["key"] = key; | 995 _json["key"] = key; |
996 } | 996 } |
997 if (value != null) { | 997 if (value != null) { |
998 _json["value"] = value; | 998 _json["value"] = value; |
999 } | 999 } |
1000 return _json; | 1000 return _json; |
1001 } | 1001 } |
1002 } | 1002 } |
1003 | 1003 |
1004 | 1004 |
1005 /** Not documented yet. */ | |
1006 class OperationWarnings { | 1005 class OperationWarnings { |
1007 /** | 1006 /** |
1008 * The warning type identifier for this warning. | 1007 * ! The warning type identifier for this warning. |
1009 * | 1008 * |
1010 * The values for Object must be JSON objects. It can consist of `num`, | 1009 * The values for Object must be JSON objects. It can consist of `num`, |
1011 * `String`, `bool` and `null` as well as `Map` and `List` values. | 1010 * `String`, `bool` and `null` as well as `Map` and `List` values. |
1012 */ | 1011 */ |
1013 core.Object code; | 1012 core.Object code; |
1014 | 1013 |
1015 /** Metadata for this warning in 'key: value' format. */ | 1014 /** ! Metadata for this warning in 'key: value' format. */ |
1016 core.List<OperationWarningsData> data; | 1015 core.List<OperationWarningsData> data; |
1017 | 1016 |
1018 /** Optional human-readable details for this warning. */ | 1017 /** ! Optional human-readable details for this warning. */ |
1019 core.String message; | 1018 core.String message; |
1020 | 1019 |
1021 | 1020 |
1022 OperationWarnings(); | 1021 OperationWarnings(); |
1023 | 1022 |
1024 OperationWarnings.fromJson(core.Map _json) { | 1023 OperationWarnings.fromJson(core.Map _json) { |
1025 if (_json.containsKey("code")) { | 1024 if (_json.containsKey("code")) { |
1026 code = _json["code"]; | 1025 code = _json["code"]; |
1027 } | 1026 } |
1028 if (_json.containsKey("data")) { | 1027 if (_json.containsKey("data")) { |
(...skipping 13 matching lines...) Expand all Loading... |
1042 _json["data"] = data.map((value) => (value).toJson()).toList(); | 1041 _json["data"] = data.map((value) => (value).toJson()).toList(); |
1043 } | 1042 } |
1044 if (message != null) { | 1043 if (message != null) { |
1045 _json["message"] = message; | 1044 _json["message"] = message; |
1046 } | 1045 } |
1047 return _json; | 1046 return _json; |
1048 } | 1047 } |
1049 } | 1048 } |
1050 | 1049 |
1051 | 1050 |
1052 /** An operation resource, used to manage asynchronous API requests. */ | 1051 /** |
| 1052 * ! An operation resource, used to manage asynchronous API requests. Next |
| 1053 * available tag: 24 |
| 1054 */ |
1053 class Operation { | 1055 class Operation { |
1054 /** [Output Only] Creation timestamp in RFC3339 text format. */ | 1056 /** ! [Output Only] Creation timestamp in RFC3339 text format. */ |
1055 core.String creationTimestamp; | 1057 core.String creationTimestamp; |
1056 | 1058 |
1057 /** | 1059 /** |
1058 * [Output Only] The time that this operation was completed. This is in | 1060 * ! [Output Only] The time that this operation was completed. This is in ! |
1059 * RFC3339 format. | 1061 * RFC3339 format. |
1060 */ | 1062 */ |
1061 core.String endTime; | 1063 core.String endTime; |
1062 | 1064 |
1063 /** | 1065 /** |
1064 * [Output Only] If errors occurred during processing of this operation, this | 1066 * ! [Output Only] If errors occurred during processing of this operation, ! |
1065 * field will be populated. | 1067 * this field will be populated. |
1066 */ | 1068 */ |
1067 OperationError error; | 1069 OperationError error; |
1068 | 1070 |
1069 /** | 1071 /** |
1070 * [Output Only] If operation fails, the HTTP error message returned, e.g. NOT | 1072 * ! [Output Only] If operation fails, the HTTP error message returned, ! e.g. |
1071 * FOUND. | 1073 * NOT FOUND. |
1072 */ | 1074 */ |
1073 core.String httpErrorMessage; | 1075 core.String httpErrorMessage; |
1074 | 1076 |
1075 /** | 1077 /** |
1076 * [Output Only] If operation fails, the HTTP error status code returned, e.g. | 1078 * ! [Output Only] If operation fails, the HTTP error status code returned, ! |
1077 * 404. | 1079 * e.g. 404. |
1078 */ | 1080 */ |
1079 core.int httpErrorStatusCode; | 1081 core.int httpErrorStatusCode; |
1080 | 1082 |
1081 /** | 1083 /** |
1082 * [Output Only] Unique identifier for the resource; defined by the server. | 1084 * ! [Output Only] Unique identifier for the resource; defined by the server. |
1083 */ | 1085 */ |
1084 core.String id; | 1086 core.String id; |
1085 | 1087 |
1086 /** | 1088 /** |
1087 * [Output Only] The time that this operation was requested. This is in RFC | 1089 * ! [Output Only] The time that this operation was requested. ! This is in |
1088 * 3339 format. | 1090 * RFC 3339 format. |
1089 */ | 1091 */ |
1090 core.String insertTime; | 1092 core.String insertTime; |
1091 | 1093 |
1092 /** [Output Only] Name of the operation. */ | 1094 /** ! [Output Only] Name of the operation. */ |
1093 core.String name; | 1095 core.String name; |
1094 | 1096 |
1095 /** | 1097 /** |
1096 * [Output Only] Type of the operation. Examples include "insert", or "delete" | 1098 * ! [Output Only] Type of the operation. Examples include "insert", or ! |
| 1099 * "delete" |
1097 */ | 1100 */ |
1098 core.String operationType; | 1101 core.String operationType; |
1099 | 1102 |
1100 /** | 1103 /** |
1101 * [Output Only] An optional progress indicator that ranges from 0 to 100. | 1104 * ! [Output Only] An optional progress indicator that ranges from 0 to 100. ! |
1102 * There is no requirement that this be linear or support any granularity of | 1105 * There is no requirement that this be linear or support any granularity ! of |
1103 * operations. This should not be used to guess at when the operation will be | 1106 * operations. This should not be used to guess at when the operation will ! |
1104 * complete. This number should be monotonically increasing as the operation | 1107 * be complete. This number should be monotonically increasing as the ! |
1105 * progresses. | 1108 * operation progresses. |
1106 */ | 1109 */ |
1107 core.int progress; | 1110 core.int progress; |
1108 | 1111 |
1109 /** [Output Only] Self link for the manifest. */ | 1112 /** [Output Only] Self link for the manifest. */ |
1110 core.String selfLink; | 1113 core.String selfLink; |
1111 | 1114 |
1112 /** | 1115 /** |
1113 * [Output Only] The time that this operation was started by the server. This | 1116 * ! [Output Only] The time that this operation was started by the server. ! |
1114 * is in RFC 3339 format. | 1117 * This is in RFC 3339 format. |
1115 */ | 1118 */ |
1116 core.String startTime; | 1119 core.String startTime; |
1117 | 1120 |
1118 /** | 1121 /** |
1119 * [Output Only] Status of the operation. Can be one of the following: | 1122 * ! [Output Only] Status of the operation. Can be one of the following: ! |
1120 * "PENDING", "RUNNING", or "DONE". | 1123 * "PENDING", "RUNNING", or "DONE". |
1121 */ | 1124 */ |
1122 core.String status; | 1125 core.String status; |
1123 | 1126 |
1124 /** | 1127 /** |
1125 * [Output Only] An optional textual description of the current status of the | 1128 * ! [Output Only] An optional textual description of the current status of ! |
1126 * operation. | 1129 * the operation. |
1127 */ | 1130 */ |
1128 core.String statusMessage; | 1131 core.String statusMessage; |
1129 | 1132 |
1130 /** | 1133 /** |
1131 * [Output Only] Unique target id which identifies a particular incarnation of | 1134 * ! [Output Only] Unique target id which identifies a particular ! |
1132 * the target. | 1135 * incarnation of the target. |
1133 */ | 1136 */ |
1134 core.String targetId; | 1137 core.String targetId; |
1135 | 1138 |
1136 /** [Output Only] URL of the resource the operation is mutating. */ | 1139 /** ! [Output Only] URL of the resource the operation is mutating. */ |
1137 core.String targetLink; | 1140 core.String targetLink; |
1138 | 1141 |
1139 /** | 1142 /** |
1140 * [Output Only] User who requested the operation, for example | 1143 * ! [Output Only] User who requested the operation, for example ! |
1141 * "user@example.com" | 1144 * "user@example.com" |
1142 */ | 1145 */ |
1143 core.String user; | 1146 core.String user; |
1144 | 1147 |
1145 /** | 1148 /** |
1146 * [Output Only] If warning messages generated during processing of this | 1149 * ! [Output Only] If warning messages generated during processing of this ! |
1147 * operation, this field will be populated. | 1150 * operation, this field will be populated. |
1148 */ | 1151 */ |
1149 core.List<OperationWarnings> warnings; | 1152 core.List<OperationWarnings> warnings; |
1150 | 1153 |
1151 | 1154 |
1152 Operation(); | 1155 Operation(); |
1153 | 1156 |
1154 Operation.fromJson(core.Map _json) { | 1157 Operation.fromJson(core.Map _json) { |
1155 if (_json.containsKey("creationTimestamp")) { | 1158 if (_json.containsKey("creationTimestamp")) { |
1156 creationTimestamp = _json["creationTimestamp"]; | 1159 creationTimestamp = _json["creationTimestamp"]; |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1263 } | 1266 } |
1264 if (warnings != null) { | 1267 if (warnings != null) { |
1265 _json["warnings"] = warnings.map((value) => (value).toJson()).toList(); | 1268 _json["warnings"] = warnings.map((value) => (value).toJson()).toList(); |
1266 } | 1269 } |
1267 return _json; | 1270 return _json; |
1268 } | 1271 } |
1269 } | 1272 } |
1270 | 1273 |
1271 | 1274 |
1272 /** | 1275 /** |
1273 * A response containing a partial list of operations and a page token used to | 1276 * ! A response containing a partial list of operations and a page token used ! |
1274 * build the next request if the request has been truncated. | 1277 * to build the next request if the request has been truncated. Next available |
| 1278 * tag: 4 |
1275 */ | 1279 */ |
1276 class OperationsListResponse { | 1280 class OperationsListResponse { |
1277 /** A token used to continue a truncated list request. */ | 1281 /** ! A token used to continue a truncated list request. */ |
1278 core.String nextPageToken; | 1282 core.String nextPageToken; |
1279 | 1283 |
1280 /** Operations contained in this list response. */ | 1284 /** ! Operations contained in this list response. */ |
1281 core.List<Operation> operations; | 1285 core.List<Operation> operations; |
1282 | 1286 |
1283 | 1287 |
1284 OperationsListResponse(); | 1288 OperationsListResponse(); |
1285 | 1289 |
1286 OperationsListResponse.fromJson(core.Map _json) { | 1290 OperationsListResponse.fromJson(core.Map _json) { |
1287 if (_json.containsKey("nextPageToken")) { | 1291 if (_json.containsKey("nextPageToken")) { |
1288 nextPageToken = _json["nextPageToken"]; | 1292 nextPageToken = _json["nextPageToken"]; |
1289 } | 1293 } |
1290 if (_json.containsKey("operations")) { | 1294 if (_json.containsKey("operations")) { |
1291 operations = _json["operations"].map((value) => new Operation.fromJson(val
ue)).toList(); | 1295 operations = _json["operations"].map((value) => new Operation.fromJson(val
ue)).toList(); |
1292 } | 1296 } |
1293 } | 1297 } |
1294 | 1298 |
1295 core.Map toJson() { | 1299 core.Map toJson() { |
1296 var _json = new core.Map(); | 1300 var _json = new core.Map(); |
1297 if (nextPageToken != null) { | 1301 if (nextPageToken != null) { |
1298 _json["nextPageToken"] = nextPageToken; | 1302 _json["nextPageToken"] = nextPageToken; |
1299 } | 1303 } |
1300 if (operations != null) { | 1304 if (operations != null) { |
1301 _json["operations"] = operations.map((value) => (value).toJson()).toList()
; | 1305 _json["operations"] = operations.map((value) => (value).toJson()).toList()
; |
1302 } | 1306 } |
1303 return _json; | 1307 return _json; |
1304 } | 1308 } |
1305 } | 1309 } |
1306 | 1310 |
1307 | 1311 |
1308 /** Not documented yet. */ | 1312 /** Next available tag: 12 */ |
1309 class Resource { | 1313 class Resource { |
1310 /** [Output Only] A list of any errors that occurred during deployment. */ | 1314 /** ! [Output Only] A list of any errors that occurred during deployment. */ |
1311 core.List<core.String> errors; | 1315 core.List<core.String> errors; |
1312 | 1316 |
1313 /** | 1317 /** |
1314 * [Output Only] Unique identifier for the resource; defined by the server. | 1318 * [Output Only] Unique identifier for the resource; defined by the server. |
1315 */ | 1319 */ |
1316 core.String id; | 1320 core.String id; |
1317 | 1321 |
1318 /** [Output Only] The intended state of the resource. */ | 1322 /** ! [Output Only] The intended state of the resource. */ |
1319 core.String intent; | 1323 core.String intent; |
1320 | 1324 |
1321 /** | 1325 /** |
1322 * [Output Only] URL of the manifest representing the current configuration of | 1326 * ! [Output Only] URL of the manifest representing the current configuration |
1323 * this resource. | 1327 * ! of this resource. |
1324 */ | 1328 */ |
1325 core.String manifest; | 1329 core.String manifest; |
1326 | 1330 |
1327 /** | 1331 /** |
1328 * [Output Only] The name of the resource as it appears in the YAML config. | 1332 * ! [Output Only] The name of the resource as it appears in the YAML config. |
1329 */ | 1333 */ |
1330 core.String name; | 1334 core.String name; |
1331 | 1335 |
1332 /** [Output Only] The state of the resource. */ | 1336 /** ! [Output Only] The state of the resource. */ |
1333 core.String state; | 1337 core.String state; |
1334 | 1338 |
1335 /** | 1339 /** |
1336 * [Output Only] The type of the resource, for example ?compute.v1.instance?, | 1340 * ! [Output Only] The type of the resource, for example ! |
1337 * or ?replicaPools.v1beta2.instanceGroupManager? | 1341 * ?compute.v1.instance?, or ?replicaPools.v1beta2.instanceGroupManager? |
1338 */ | 1342 */ |
1339 core.String type; | 1343 core.String type; |
1340 | 1344 |
1341 /** [Output Only] The URL of the actual resource. */ | 1345 /** ! [Output Only] The URL of the actual resource. */ |
1342 core.String url; | 1346 core.String url; |
1343 | 1347 |
1344 | 1348 |
1345 Resource(); | 1349 Resource(); |
1346 | 1350 |
1347 Resource.fromJson(core.Map _json) { | 1351 Resource.fromJson(core.Map _json) { |
1348 if (_json.containsKey("errors")) { | 1352 if (_json.containsKey("errors")) { |
1349 errors = _json["errors"]; | 1353 errors = _json["errors"]; |
1350 } | 1354 } |
1351 if (_json.containsKey("id")) { | 1355 if (_json.containsKey("id")) { |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1396 } | 1400 } |
1397 if (url != null) { | 1401 if (url != null) { |
1398 _json["url"] = url; | 1402 _json["url"] = url; |
1399 } | 1403 } |
1400 return _json; | 1404 return _json; |
1401 } | 1405 } |
1402 } | 1406 } |
1403 | 1407 |
1404 | 1408 |
1405 /** | 1409 /** |
1406 * A response containing a partial list of resources and a page token used to | 1410 * ! A response containing a partial list of resources and a page token used ! |
1407 * build the next request if the request has been truncated. | 1411 * to build the next request if the request has been truncated. Next available |
| 1412 * tag: 4 |
1408 */ | 1413 */ |
1409 class ResourcesListResponse { | 1414 class ResourcesListResponse { |
1410 /** A token used to continue a truncated list request. */ | 1415 /** ! A token used to continue a truncated list request. */ |
1411 core.String nextPageToken; | 1416 core.String nextPageToken; |
1412 | 1417 |
1413 /** Resources contained in this list response. */ | 1418 /** ! Resources contained in this list response. */ |
1414 core.List<Resource> resources; | 1419 core.List<Resource> resources; |
1415 | 1420 |
1416 | 1421 |
1417 ResourcesListResponse(); | 1422 ResourcesListResponse(); |
1418 | 1423 |
1419 ResourcesListResponse.fromJson(core.Map _json) { | 1424 ResourcesListResponse.fromJson(core.Map _json) { |
1420 if (_json.containsKey("nextPageToken")) { | 1425 if (_json.containsKey("nextPageToken")) { |
1421 nextPageToken = _json["nextPageToken"]; | 1426 nextPageToken = _json["nextPageToken"]; |
1422 } | 1427 } |
1423 if (_json.containsKey("resources")) { | 1428 if (_json.containsKey("resources")) { |
1424 resources = _json["resources"].map((value) => new Resource.fromJson(value)
).toList(); | 1429 resources = _json["resources"].map((value) => new Resource.fromJson(value)
).toList(); |
1425 } | 1430 } |
1426 } | 1431 } |
1427 | 1432 |
1428 core.Map toJson() { | 1433 core.Map toJson() { |
1429 var _json = new core.Map(); | 1434 var _json = new core.Map(); |
1430 if (nextPageToken != null) { | 1435 if (nextPageToken != null) { |
1431 _json["nextPageToken"] = nextPageToken; | 1436 _json["nextPageToken"] = nextPageToken; |
1432 } | 1437 } |
1433 if (resources != null) { | 1438 if (resources != null) { |
1434 _json["resources"] = resources.map((value) => (value).toJson()).toList(); | 1439 _json["resources"] = resources.map((value) => (value).toJson()).toList(); |
1435 } | 1440 } |
1436 return _json; | 1441 return _json; |
1437 } | 1442 } |
1438 } | 1443 } |
1439 | 1444 |
1440 | 1445 |
1441 /** A type supported by Deployment Manager. */ | 1446 /** ! A type supported by Deployment Manager. Next available tag: 4 */ |
1442 class Type { | 1447 class Type { |
1443 /** Name of the type. */ | 1448 /** ! Name of the type. */ |
1444 core.String name; | 1449 core.String name; |
1445 | 1450 |
1446 | 1451 |
1447 Type(); | 1452 Type(); |
1448 | 1453 |
1449 Type.fromJson(core.Map _json) { | 1454 Type.fromJson(core.Map _json) { |
1450 if (_json.containsKey("name")) { | 1455 if (_json.containsKey("name")) { |
1451 name = _json["name"]; | 1456 name = _json["name"]; |
1452 } | 1457 } |
1453 } | 1458 } |
1454 | 1459 |
1455 core.Map toJson() { | 1460 core.Map toJson() { |
1456 var _json = new core.Map(); | 1461 var _json = new core.Map(); |
1457 if (name != null) { | 1462 if (name != null) { |
1458 _json["name"] = name; | 1463 _json["name"] = name; |
1459 } | 1464 } |
1460 return _json; | 1465 return _json; |
1461 } | 1466 } |
1462 } | 1467 } |
1463 | 1468 |
1464 | 1469 |
1465 /** A response that returns all Types supported by Deployment Manager */ | 1470 /** |
| 1471 * ! A response that returns all Types supported by Deployment Manager Next |
| 1472 * available tag: 3 |
| 1473 */ |
1466 class TypesListResponse { | 1474 class TypesListResponse { |
1467 /** Types supported by Deployment Manager */ | 1475 /** ! Types supported by Deployment Manager */ |
1468 core.List<Type> types; | 1476 core.List<Type> types; |
1469 | 1477 |
1470 | 1478 |
1471 TypesListResponse(); | 1479 TypesListResponse(); |
1472 | 1480 |
1473 TypesListResponse.fromJson(core.Map _json) { | 1481 TypesListResponse.fromJson(core.Map _json) { |
1474 if (_json.containsKey("types")) { | 1482 if (_json.containsKey("types")) { |
1475 types = _json["types"].map((value) => new Type.fromJson(value)).toList(); | 1483 types = _json["types"].map((value) => new Type.fromJson(value)).toList(); |
1476 } | 1484 } |
1477 } | 1485 } |
1478 | 1486 |
1479 core.Map toJson() { | 1487 core.Map toJson() { |
1480 var _json = new core.Map(); | 1488 var _json = new core.Map(); |
1481 if (types != null) { | 1489 if (types != null) { |
1482 _json["types"] = types.map((value) => (value).toJson()).toList(); | 1490 _json["types"] = types.map((value) => (value).toJson()).toList(); |
1483 } | 1491 } |
1484 return _json; | 1492 return _json; |
1485 } | 1493 } |
1486 } | 1494 } |
1487 | |
1488 | |
OLD | NEW |