Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(39)

Side by Side Diff: generated/googleapis/lib/deploymentmanager/v2.dart

Issue 3006323002: Api-Roll 54: 2017-09-11 (Closed)
Patch Set: use 2.0.0-dev.infinity sdk constraint in pubspecs Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « generated/googleapis/lib/datastore/v1.dart ('k') | generated/googleapis/lib/discovery/v1.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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.deploymentmanager.v2; 3 library googleapis.deploymentmanager.v2;
4 4
5 import 'dart:core' as core; 5 import 'dart:core' as core;
6 import 'dart:async' as async; 6 import 'dart:async' as async;
7 import 'dart:convert' as convert; 7 import 'dart:convert' as convert;
8 8
9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons;
10 import 'package:http/http.dart' as http; 10 import 'package:http/http.dart' as http;
11 11
12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart'
13 ApiRequestError, DetailedApiRequestError; 13 show ApiRequestError, DetailedApiRequestError;
14 14
15 const core.String USER_AGENT = 'dart-api-client deploymentmanager/v2'; 15 const core.String USER_AGENT = 'dart-api-client deploymentmanager/v2';
16 16
17 /** 17 /// Declares, configures, and deploys complex solutions on Google Cloud
18 * Declares, configures, and deploys complex solutions on Google Cloud Platform. 18 /// Platform.
19 */
20 class DeploymentmanagerApi { 19 class DeploymentmanagerApi {
21 /** View and manage your data across Google Cloud Platform services */ 20 /// View and manage your data across Google Cloud Platform services
22 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf orm"; 21 static const CloudPlatformScope =
22 "https://www.googleapis.com/auth/cloud-platform";
23 23
24 /** View your data across Google Cloud Platform services */ 24 /// View your data across Google Cloud Platform services
25 static const CloudPlatformReadOnlyScope = "https://www.googleapis.com/auth/clo ud-platform.read-only"; 25 static const CloudPlatformReadOnlyScope =
26 "https://www.googleapis.com/auth/cloud-platform.read-only";
26 27
27 /** 28 /// View and manage your Google Cloud Platform management resources and
28 * View and manage your Google Cloud Platform management resources and 29 /// deployment status information
29 * deployment status information 30 static const NdevCloudmanScope =
30 */ 31 "https://www.googleapis.com/auth/ndev.cloudman";
31 static const NdevCloudmanScope = "https://www.googleapis.com/auth/ndev.cloudma n";
32 32
33 /** 33 /// View your Google Cloud Platform management resources and deployment
34 * View your Google Cloud Platform management resources and deployment status 34 /// status information
35 * information 35 static const NdevCloudmanReadonlyScope =
36 */ 36 "https://www.googleapis.com/auth/ndev.cloudman.readonly";
37 static const NdevCloudmanReadonlyScope = "https://www.googleapis.com/auth/ndev .cloudman.readonly";
38
39 37
40 final commons.ApiRequester _requester; 38 final commons.ApiRequester _requester;
41 39
42 DeploymentsResourceApi get deployments => new DeploymentsResourceApi(_requeste r); 40 DeploymentsResourceApi get deployments =>
41 new DeploymentsResourceApi(_requester);
43 ManifestsResourceApi get manifests => new ManifestsResourceApi(_requester); 42 ManifestsResourceApi get manifests => new ManifestsResourceApi(_requester);
44 OperationsResourceApi get operations => new OperationsResourceApi(_requester); 43 OperationsResourceApi get operations => new OperationsResourceApi(_requester);
45 ResourcesResourceApi get resources => new ResourcesResourceApi(_requester); 44 ResourcesResourceApi get resources => new ResourcesResourceApi(_requester);
46 TypesResourceApi get types => new TypesResourceApi(_requester); 45 TypesResourceApi get types => new TypesResourceApi(_requester);
47 46
48 DeploymentmanagerApi(http.Client client, {core.String rootUrl: "https://www.go ogleapis.com/", core.String servicePath: "deploymentmanager/v2/projects/"}) : 47 DeploymentmanagerApi(http.Client client,
49 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A GENT); 48 {core.String rootUrl: "https://www.googleapis.com/",
49 core.String servicePath: "deploymentmanager/v2/projects/"})
50 : _requester =
51 new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT);
50 } 52 }
51 53
52
53 class DeploymentsResourceApi { 54 class DeploymentsResourceApi {
54 final commons.ApiRequester _requester; 55 final commons.ApiRequester _requester;
55 56
56 DeploymentsResourceApi(commons.ApiRequester client) : 57 DeploymentsResourceApi(commons.ApiRequester client) : _requester = client;
57 _requester = client;
58 58
59 /** 59 /// Cancels and removes the preview currently associated with the deployment.
60 * Cancels and removes the preview currently associated with the deployment. 60 ///
61 * 61 /// [request] - The metadata request object.
62 * [request] - The metadata request object. 62 ///
63 * 63 /// Request parameters:
64 * Request parameters: 64 ///
65 * 65 /// [project] - The project ID for this request.
66 * [project] - The project ID for this request. 66 /// Value must have pattern
67 * Value must have pattern 67 /// "(?:(?:[-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])?))".
68 * "(?:(?:[-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])?))". 68 ///
69 * 69 /// [deployment] - The name of the deployment for this request.
70 * [deployment] - The name of the deployment for this request. 70 /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
71 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". 71 ///
72 * 72 /// Completes with a [Operation].
73 * Completes with a [Operation]. 73 ///
74 * 74 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
75 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 75 /// an error.
76 * error. 76 ///
77 * 77 /// If the used [http.Client] completes with an error when making a REST
78 * If the used [http.Client] completes with an error when making a REST call, 78 /// call, this method will complete with the same error.
79 * this method will complete with the same error. 79 async.Future<Operation> cancelPreview(DeploymentsCancelPreviewRequest request,
80 */ 80 core.String project, core.String deployment) {
81 async.Future<Operation> cancelPreview(DeploymentsCancelPreviewRequest request, core.String project, core.String deployment) {
82 var _url = null; 81 var _url = null;
83 var _queryParams = new core.Map(); 82 var _queryParams = new core.Map();
84 var _uploadMedia = null; 83 var _uploadMedia = null;
85 var _uploadOptions = null; 84 var _uploadOptions = null;
86 var _downloadOptions = commons.DownloadOptions.Metadata; 85 var _downloadOptions = commons.DownloadOptions.Metadata;
87 var _body = null; 86 var _body = null;
88 87
89 if (request != null) { 88 if (request != null) {
90 _body = convert.JSON.encode((request).toJson()); 89 _body = convert.JSON.encode((request).toJson());
91 } 90 }
92 if (project == null) { 91 if (project == null) {
93 throw new core.ArgumentError("Parameter project is required."); 92 throw new core.ArgumentError("Parameter project is required.");
94 } 93 }
95 if (deployment == null) { 94 if (deployment == null) {
96 throw new core.ArgumentError("Parameter deployment is required."); 95 throw new core.ArgumentError("Parameter deployment is required.");
97 } 96 }
98 97
99 _url = commons.Escaper.ecapeVariable('$project') + '/global/deployments/' + commons.Escaper.ecapeVariable('$deployment') + '/cancelPreview'; 98 _url = commons.Escaper.ecapeVariable('$project') +
99 '/global/deployments/' +
100 commons.Escaper.ecapeVariable('$deployment') +
101 '/cancelPreview';
100 102
101 var _response = _requester.request(_url, 103 var _response = _requester.request(_url, "POST",
102 "POST", 104 body: _body,
103 body: _body, 105 queryParams: _queryParams,
104 queryParams: _queryParams, 106 uploadOptions: _uploadOptions,
105 uploadOptions: _uploadOptions, 107 uploadMedia: _uploadMedia,
106 uploadMedia: _uploadMedia, 108 downloadOptions: _downloadOptions);
107 downloadOptions: _downloadOptions);
108 return _response.then((data) => new Operation.fromJson(data)); 109 return _response.then((data) => new Operation.fromJson(data));
109 } 110 }
110 111
111 /** 112 /// Deletes a deployment and all of the resources in the deployment.
112 * Deletes a deployment and all of the resources in the deployment. 113 ///
113 * 114 /// Request parameters:
114 * Request parameters: 115 ///
115 * 116 /// [project] - The project ID for this request.
116 * [project] - The project ID for this request. 117 /// Value must have pattern
117 * Value must have pattern 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])?))".
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])?))". 119 ///
119 * 120 /// [deployment] - The name of the deployment for this request.
120 * [deployment] - The name of the deployment for this request. 121 /// 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])?". 122 ///
122 * 123 /// [deletePolicy] - Sets the policy to use for deleting resources.
123 * [deletePolicy] - Sets the policy to use for deleting resources. 124 /// Possible string values are:
124 * Possible string values are: 125 /// - "ABANDON"
125 * - "ABANDON" 126 /// - "DELETE"
126 * - "DELETE" 127 ///
127 * 128 /// Completes with a [Operation].
128 * Completes with a [Operation]. 129 ///
129 * 130 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
130 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 131 /// an error.
131 * error. 132 ///
132 * 133 /// If the used [http.Client] completes with an error when making a REST
133 * If the used [http.Client] completes with an error when making a REST call, 134 /// call, this method will complete with the same error.
134 * this method will complete with the same error. 135 async.Future<Operation> delete(core.String project, core.String deployment,
135 */ 136 {core.String deletePolicy}) {
136 async.Future<Operation> delete(core.String project, core.String deployment, {c ore.String deletePolicy}) {
137 var _url = null; 137 var _url = null;
138 var _queryParams = new core.Map(); 138 var _queryParams = new core.Map();
139 var _uploadMedia = null; 139 var _uploadMedia = null;
140 var _uploadOptions = null; 140 var _uploadOptions = null;
141 var _downloadOptions = commons.DownloadOptions.Metadata; 141 var _downloadOptions = commons.DownloadOptions.Metadata;
142 var _body = null; 142 var _body = null;
143 143
144 if (project == null) { 144 if (project == null) {
145 throw new core.ArgumentError("Parameter project is required."); 145 throw new core.ArgumentError("Parameter project is required.");
146 } 146 }
147 if (deployment == null) { 147 if (deployment == null) {
148 throw new core.ArgumentError("Parameter deployment is required."); 148 throw new core.ArgumentError("Parameter deployment is required.");
149 } 149 }
150 if (deletePolicy != null) { 150 if (deletePolicy != null) {
151 _queryParams["deletePolicy"] = [deletePolicy]; 151 _queryParams["deletePolicy"] = [deletePolicy];
152 } 152 }
153 153
154 _url = commons.Escaper.ecapeVariable('$project') + '/global/deployments/' + commons.Escaper.ecapeVariable('$deployment'); 154 _url = commons.Escaper.ecapeVariable('$project') +
155 '/global/deployments/' +
156 commons.Escaper.ecapeVariable('$deployment');
155 157
156 var _response = _requester.request(_url, 158 var _response = _requester.request(_url, "DELETE",
157 "DELETE", 159 body: _body,
158 body: _body, 160 queryParams: _queryParams,
159 queryParams: _queryParams, 161 uploadOptions: _uploadOptions,
160 uploadOptions: _uploadOptions, 162 uploadMedia: _uploadMedia,
161 uploadMedia: _uploadMedia, 163 downloadOptions: _downloadOptions);
162 downloadOptions: _downloadOptions);
163 return _response.then((data) => new Operation.fromJson(data)); 164 return _response.then((data) => new Operation.fromJson(data));
164 } 165 }
165 166
166 /** 167 /// Gets information about a specific deployment.
167 * Gets information about a specific deployment. 168 ///
168 * 169 /// Request parameters:
169 * Request parameters: 170 ///
170 * 171 /// [project] - The project ID for this request.
171 * [project] - The project ID for this request. 172 /// Value must have pattern
172 * Value must have pattern 173 /// "(?:(?:[-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])?))".
173 * "(?:(?:[-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])?))". 174 ///
174 * 175 /// [deployment] - The name of the deployment for this request.
175 * [deployment] - The name of the deployment for this request. 176 /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
176 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". 177 ///
177 * 178 /// Completes with a [Deployment].
178 * Completes with a [Deployment]. 179 ///
179 * 180 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
180 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 181 /// an error.
181 * error. 182 ///
182 * 183 /// If the used [http.Client] completes with an error when making a REST
183 * If the used [http.Client] completes with an error when making a REST call, 184 /// call, this method will complete with the same error.
184 * this method will complete with the same error.
185 */
186 async.Future<Deployment> get(core.String project, core.String deployment) { 185 async.Future<Deployment> get(core.String project, core.String deployment) {
187 var _url = null; 186 var _url = null;
188 var _queryParams = new core.Map(); 187 var _queryParams = new core.Map();
189 var _uploadMedia = null; 188 var _uploadMedia = null;
190 var _uploadOptions = null; 189 var _uploadOptions = null;
191 var _downloadOptions = commons.DownloadOptions.Metadata; 190 var _downloadOptions = commons.DownloadOptions.Metadata;
192 var _body = null; 191 var _body = null;
193 192
194 if (project == null) { 193 if (project == null) {
195 throw new core.ArgumentError("Parameter project is required."); 194 throw new core.ArgumentError("Parameter project is required.");
196 } 195 }
197 if (deployment == null) { 196 if (deployment == null) {
198 throw new core.ArgumentError("Parameter deployment is required."); 197 throw new core.ArgumentError("Parameter deployment is required.");
199 } 198 }
200 199
201 _url = commons.Escaper.ecapeVariable('$project') + '/global/deployments/' + commons.Escaper.ecapeVariable('$deployment'); 200 _url = commons.Escaper.ecapeVariable('$project') +
201 '/global/deployments/' +
202 commons.Escaper.ecapeVariable('$deployment');
202 203
203 var _response = _requester.request(_url, 204 var _response = _requester.request(_url, "GET",
204 "GET", 205 body: _body,
205 body: _body, 206 queryParams: _queryParams,
206 queryParams: _queryParams, 207 uploadOptions: _uploadOptions,
207 uploadOptions: _uploadOptions, 208 uploadMedia: _uploadMedia,
208 uploadMedia: _uploadMedia, 209 downloadOptions: _downloadOptions);
209 downloadOptions: _downloadOptions);
210 return _response.then((data) => new Deployment.fromJson(data)); 210 return _response.then((data) => new Deployment.fromJson(data));
211 } 211 }
212 212
213 /** 213 /// Gets the access control policy for a resource. May be empty if no such
214 * Gets the access control policy for a resource. May be empty if no such 214 /// policy or resource exists.
215 * policy or resource exists. 215 ///
216 * 216 /// Request parameters:
217 * Request parameters: 217 ///
218 * 218 /// [project] - Project ID for this request.
219 * [project] - Project ID for this request. 219 /// Value must have pattern
220 * Value must have pattern 220 /// "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9] {1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
221 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{ 1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". 221 ///
222 * 222 /// [resource] - Name of the resource for this request.
223 * [resource] - Name of the resource for this request. 223 /// Value must have pattern "[a-z0-9](?:[-a-z0-9_]{0,61}[a-z0-9])?".
224 * Value must have pattern "[a-z0-9](?:[-a-z0-9_]{0,61}[a-z0-9])?". 224 ///
225 * 225 /// Completes with a [Policy].
226 * Completes with a [Policy]. 226 ///
227 * 227 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
228 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 228 /// an error.
229 * error. 229 ///
230 * 230 /// If the used [http.Client] completes with an error when making a REST
231 * If the used [http.Client] completes with an error when making a REST call, 231 /// call, this method will complete with the same error.
232 * this method will complete with the same error.
233 */
234 async.Future<Policy> getIamPolicy(core.String project, core.String resource) { 232 async.Future<Policy> getIamPolicy(core.String project, core.String resource) {
235 var _url = null; 233 var _url = null;
236 var _queryParams = new core.Map(); 234 var _queryParams = new core.Map();
237 var _uploadMedia = null; 235 var _uploadMedia = null;
238 var _uploadOptions = null; 236 var _uploadOptions = null;
239 var _downloadOptions = commons.DownloadOptions.Metadata; 237 var _downloadOptions = commons.DownloadOptions.Metadata;
240 var _body = null; 238 var _body = null;
241 239
242 if (project == null) { 240 if (project == null) {
243 throw new core.ArgumentError("Parameter project is required."); 241 throw new core.ArgumentError("Parameter project is required.");
244 } 242 }
245 if (resource == null) { 243 if (resource == null) {
246 throw new core.ArgumentError("Parameter resource is required."); 244 throw new core.ArgumentError("Parameter resource is required.");
247 } 245 }
248 246
249 _url = commons.Escaper.ecapeVariable('$project') + '/global/deployments/' + commons.Escaper.ecapeVariable('$resource') + '/getIamPolicy'; 247 _url = commons.Escaper.ecapeVariable('$project') +
248 '/global/deployments/' +
249 commons.Escaper.ecapeVariable('$resource') +
250 '/getIamPolicy';
250 251
251 var _response = _requester.request(_url, 252 var _response = _requester.request(_url, "GET",
252 "GET", 253 body: _body,
253 body: _body, 254 queryParams: _queryParams,
254 queryParams: _queryParams, 255 uploadOptions: _uploadOptions,
255 uploadOptions: _uploadOptions, 256 uploadMedia: _uploadMedia,
256 uploadMedia: _uploadMedia, 257 downloadOptions: _downloadOptions);
257 downloadOptions: _downloadOptions);
258 return _response.then((data) => new Policy.fromJson(data)); 258 return _response.then((data) => new Policy.fromJson(data));
259 } 259 }
260 260
261 /** 261 /// Creates a deployment and all of the resources described by the deployment
262 * Creates a deployment and all of the resources described by the deployment 262 /// manifest.
263 * manifest. 263 ///
264 * 264 /// [request] - The metadata request object.
265 * [request] - The metadata request object. 265 ///
266 * 266 /// Request parameters:
267 * Request parameters: 267 ///
268 * 268 /// [project] - The project ID for this request.
269 * [project] - The project ID for this request. 269 /// Value must have pattern
270 * Value must have pattern 270 /// "(?:(?:[-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])?))".
271 * "(?:(?:[-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])?))". 271 ///
272 * 272 /// [preview] - If set to true, creates a deployment and creates "shell"
273 * [preview] - If set to true, creates a deployment and creates "shell" 273 /// resources but does not actually instantiate these resources. This allows
274 * resources but does not actually instantiate these resources. This allows 274 /// you to preview what your deployment looks like. After previewing a
275 * you to preview what your deployment looks like. After previewing a 275 /// deployment, you can deploy your resources by making a request with the
276 * deployment, you can deploy your resources by making a request with the 276 /// update() method or you can use the cancelPreview() method to cancel the
277 * update() method or you can use the cancelPreview() method to cancel the 277 /// preview altogether. Note that the deployment will still exist after you
278 * preview altogether. Note that the deployment will still exist after you 278 /// cancel the preview and you must separately delete this deployment if you
279 * cancel the preview and you must separately delete this deployment if you 279 /// want to remove it.
280 * want to remove it. 280 ///
281 * 281 /// Completes with a [Operation].
282 * Completes with a [Operation]. 282 ///
283 * 283 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
284 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 284 /// an error.
285 * error. 285 ///
286 * 286 /// If the used [http.Client] completes with an error when making a REST
287 * If the used [http.Client] completes with an error when making a REST call, 287 /// call, this method will complete with the same error.
288 * this method will complete with the same error. 288 async.Future<Operation> insert(Deployment request, core.String project,
289 */ 289 {core.bool preview}) {
290 async.Future<Operation> insert(Deployment request, core.String project, {core. bool preview}) {
291 var _url = null; 290 var _url = null;
292 var _queryParams = new core.Map(); 291 var _queryParams = new core.Map();
293 var _uploadMedia = null; 292 var _uploadMedia = null;
294 var _uploadOptions = null; 293 var _uploadOptions = null;
295 var _downloadOptions = commons.DownloadOptions.Metadata; 294 var _downloadOptions = commons.DownloadOptions.Metadata;
296 var _body = null; 295 var _body = null;
297 296
298 if (request != null) { 297 if (request != null) {
299 _body = convert.JSON.encode((request).toJson()); 298 _body = convert.JSON.encode((request).toJson());
300 } 299 }
301 if (project == null) { 300 if (project == null) {
302 throw new core.ArgumentError("Parameter project is required."); 301 throw new core.ArgumentError("Parameter project is required.");
303 } 302 }
304 if (preview != null) { 303 if (preview != null) {
305 _queryParams["preview"] = ["${preview}"]; 304 _queryParams["preview"] = ["${preview}"];
306 } 305 }
307 306
308 _url = commons.Escaper.ecapeVariable('$project') + '/global/deployments'; 307 _url = commons.Escaper.ecapeVariable('$project') + '/global/deployments';
309 308
310 var _response = _requester.request(_url, 309 var _response = _requester.request(_url, "POST",
311 "POST", 310 body: _body,
312 body: _body, 311 queryParams: _queryParams,
313 queryParams: _queryParams, 312 uploadOptions: _uploadOptions,
314 uploadOptions: _uploadOptions, 313 uploadMedia: _uploadMedia,
315 uploadMedia: _uploadMedia, 314 downloadOptions: _downloadOptions);
316 downloadOptions: _downloadOptions);
317 return _response.then((data) => new Operation.fromJson(data)); 315 return _response.then((data) => new Operation.fromJson(data));
318 } 316 }
319 317
320 /** 318 /// Lists all deployments for a given project.
321 * Lists all deployments for a given project. 319 ///
322 * 320 /// Request parameters:
323 * Request parameters: 321 ///
324 * 322 /// [project] - The project ID for this request.
325 * [project] - The project ID for this request. 323 /// Value must have pattern
326 * Value must have pattern 324 /// "(?:(?:[-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])?))".
327 * "(?:(?:[-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])?))". 325 ///
328 * 326 /// [filter] - Sets a filter {expression} for filtering listed resources.
329 * [filter] - Sets a filter {expression} for filtering listed resources. Your 327 /// Your {expression} must be in the format: field_name comparison_string
330 * {expression} must be in the format: field_name comparison_string 328 /// literal_string.
331 * literal_string. 329 ///
332 * 330 /// The field_name is the name of the field you want to compare. Only atomic
333 * The field_name is the name of the field you want to compare. Only atomic 331 /// field types are supported (string, number, boolean). The
334 * field types are supported (string, number, boolean). The comparison_string 332 /// comparison_string must be either eq (equals) or ne (not equals). The
335 * must be either eq (equals) or ne (not equals). The literal_string is the 333 /// literal_string is the string value to filter to. The literal value must
336 * string value to filter to. The literal value must be valid for the type of 334 /// be valid for the type of field you are filtering by (string, number,
337 * field you are filtering by (string, number, boolean). For string fields, 335 /// boolean). For string fields, the literal value is interpreted as a
338 * the literal value is interpreted as a regular expression using RE2 syntax. 336 /// regular expression using RE2 syntax. The literal value must match the
339 * The literal value must match the entire field. 337 /// entire field.
340 * 338 ///
341 * For example, to filter for instances that do not have a name of 339 /// For example, to filter for instances that do not have a name of
342 * example-instance, you would use name ne example-instance. 340 /// example-instance, you would use name ne example-instance.
343 * 341 ///
344 * You can filter on nested fields. For example, you could filter on instances 342 /// You can filter on nested fields. For example, you could filter on
345 * that have set the scheduling.automaticRestart field to true. Use filtering 343 /// instances that have set the scheduling.automaticRestart field to true.
346 * on nested fields to take advantage of labels to organize and search for 344 /// Use filtering on nested fields to take advantage of labels to organize
347 * results based on label values. 345 /// and search for results based on label values.
348 * 346 ///
349 * To filter on multiple expressions, provide each separate expression within 347 /// To filter on multiple expressions, provide each separate expression
350 * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq 348 /// within parentheses. For example, (scheduling.automaticRestart eq true)
351 * us-central1-f). Multiple expressions are treated as AND expressions, 349 /// (zone eq us-central1-f). Multiple expressions are treated as AND
352 * meaning that resources must match all expressions to pass the filters. 350 /// expressions, meaning that resources must match all expressions to pass
353 * 351 /// the filters.
354 * [maxResults] - The maximum number of results per page that should be 352 ///
355 * returned. If the number of available results is larger than maxResults, 353 /// [maxResults] - The maximum number of results per page that should be
356 * Compute Engine returns a nextPageToken that can be used to get the next 354 /// returned. If the number of available results is larger than maxResults,
357 * page of results in subsequent list requests. Acceptable values are 0 to 355 /// Compute Engine returns a nextPageToken that can be used to get the next
358 * 500, inclusive. (Default: 500) 356 /// page of results in subsequent list requests. Acceptable values are 0 to
359 * 357 /// 500, inclusive. (Default: 500)
360 * [orderBy] - Sorts list results by a certain order. By default, results are 358 ///
361 * returned in alphanumerical order based on the resource name. 359 /// [orderBy] - Sorts list results by a certain order. By default, results
362 * 360 /// are returned in alphanumerical order based on the resource name.
363 * You can also sort results in descending order based on the creation 361 ///
364 * timestamp using orderBy="creationTimestamp desc". This sorts results based 362 /// You can also sort results in descending order based on the creation
365 * on the creationTimestamp field in reverse chronological order (newest 363 /// timestamp using orderBy="creationTimestamp desc". This sorts results
366 * result first). Use this to sort resources like operations so that the 364 /// based on the creationTimestamp field in reverse chronological order
367 * newest operation is returned first. 365 /// (newest result first). Use this to sort resources like operations so that
368 * 366 /// the newest operation is returned first.
369 * Currently, only sorting by name or creationTimestamp desc is supported. 367 ///
370 * 368 /// Currently, only sorting by name or creationTimestamp desc is supported.
371 * [pageToken] - Specifies a page token to use. Set pageToken to the 369 ///
372 * nextPageToken returned by a previous list request to get the next page of 370 /// [pageToken] - Specifies a page token to use. Set pageToken to the
373 * results. 371 /// nextPageToken returned by a previous list request to get the next page of
374 * 372 /// results.
375 * Completes with a [DeploymentsListResponse]. 373 ///
376 * 374 /// Completes with a [DeploymentsListResponse].
377 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 375 ///
378 * error. 376 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
379 * 377 /// an error.
380 * If the used [http.Client] completes with an error when making a REST call, 378 ///
381 * this method will complete with the same error. 379 /// If the used [http.Client] completes with an error when making a REST
382 */ 380 /// call, this method will complete with the same error.
383 async.Future<DeploymentsListResponse> list(core.String project, {core.String f ilter, core.int maxResults, core.String orderBy, core.String pageToken}) { 381 async.Future<DeploymentsListResponse> list(core.String project,
382 {core.String filter,
383 core.int maxResults,
384 core.String orderBy,
385 core.String pageToken}) {
384 var _url = null; 386 var _url = null;
385 var _queryParams = new core.Map(); 387 var _queryParams = new core.Map();
386 var _uploadMedia = null; 388 var _uploadMedia = null;
387 var _uploadOptions = null; 389 var _uploadOptions = null;
388 var _downloadOptions = commons.DownloadOptions.Metadata; 390 var _downloadOptions = commons.DownloadOptions.Metadata;
389 var _body = null; 391 var _body = null;
390 392
391 if (project == null) { 393 if (project == null) {
392 throw new core.ArgumentError("Parameter project is required."); 394 throw new core.ArgumentError("Parameter project is required.");
393 } 395 }
394 if (filter != null) { 396 if (filter != null) {
395 _queryParams["filter"] = [filter]; 397 _queryParams["filter"] = [filter];
396 } 398 }
397 if (maxResults != null) { 399 if (maxResults != null) {
398 _queryParams["maxResults"] = ["${maxResults}"]; 400 _queryParams["maxResults"] = ["${maxResults}"];
399 } 401 }
400 if (orderBy != null) { 402 if (orderBy != null) {
401 _queryParams["orderBy"] = [orderBy]; 403 _queryParams["orderBy"] = [orderBy];
402 } 404 }
403 if (pageToken != null) { 405 if (pageToken != null) {
404 _queryParams["pageToken"] = [pageToken]; 406 _queryParams["pageToken"] = [pageToken];
405 } 407 }
406 408
407 _url = commons.Escaper.ecapeVariable('$project') + '/global/deployments'; 409 _url = commons.Escaper.ecapeVariable('$project') + '/global/deployments';
408 410
409 var _response = _requester.request(_url, 411 var _response = _requester.request(_url, "GET",
410 "GET", 412 body: _body,
411 body: _body, 413 queryParams: _queryParams,
412 queryParams: _queryParams, 414 uploadOptions: _uploadOptions,
413 uploadOptions: _uploadOptions, 415 uploadMedia: _uploadMedia,
414 uploadMedia: _uploadMedia, 416 downloadOptions: _downloadOptions);
415 downloadOptions: _downloadOptions);
416 return _response.then((data) => new DeploymentsListResponse.fromJson(data)); 417 return _response.then((data) => new DeploymentsListResponse.fromJson(data));
417 } 418 }
418 419
419 /** 420 /// Updates a deployment and all of the resources described by the deployment
420 * Updates a deployment and all of the resources described by the deployment 421 /// manifest. This method supports patch semantics.
421 * manifest. This method supports patch semantics. 422 ///
422 * 423 /// [request] - The metadata request object.
423 * [request] - The metadata request object. 424 ///
424 * 425 /// Request parameters:
425 * Request parameters: 426 ///
426 * 427 /// [project] - The project ID for this request.
427 * [project] - The project ID for this request. 428 /// Value must have pattern
428 * Value must have pattern 429 /// "(?:(?:[-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])?))".
429 * "(?:(?:[-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])?))". 430 ///
430 * 431 /// [deployment] - The name of the deployment for this request.
431 * [deployment] - The name of the deployment for this request. 432 /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
432 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". 433 ///
433 * 434 /// [createPolicy] - Sets the policy to use for creating new resources.
434 * [createPolicy] - Sets the policy to use for creating new resources. 435 /// Possible string values are:
435 * Possible string values are: 436 /// - "ACQUIRE"
436 * - "ACQUIRE" 437 /// - "CREATE_OR_ACQUIRE"
437 * - "CREATE_OR_ACQUIRE" 438 ///
438 * 439 /// [deletePolicy] - Sets the policy to use for deleting resources.
439 * [deletePolicy] - Sets the policy to use for deleting resources. 440 /// Possible string values are:
440 * Possible string values are: 441 /// - "ABANDON"
441 * - "ABANDON" 442 /// - "DELETE"
442 * - "DELETE" 443 ///
443 * 444 /// [preview] - If set to true, updates the deployment and creates and
444 * [preview] - If set to true, updates the deployment and creates and updates 445 /// updates the "shell" resources but does not actually alter or instantiate
445 * the "shell" resources but does not actually alter or instantiate these 446 /// these resources. This allows you to preview what your deployment will
446 * resources. This allows you to preview what your deployment will look like. 447 /// look like. You can use this intent to preview how an update would affect
447 * You can use this intent to preview how an update would affect your 448 /// your deployment. You must provide a target.config with a configuration if
448 * deployment. You must provide a target.config with a configuration if this 449 /// this is set to true. After previewing a deployment, you can deploy your
449 * is set to true. After previewing a deployment, you can deploy your 450 /// resources by making a request with the update() or you can
450 * resources by making a request with the update() or you can cancelPreview() 451 /// cancelPreview() to remove the preview altogether. Note that the
451 * to remove the preview altogether. Note that the deployment will still exist 452 /// deployment will still exist after you cancel the preview and you must
452 * after you cancel the preview and you must separately delete this deployment 453 /// separately delete this deployment if you want to remove it.
453 * if you want to remove it. 454 ///
454 * 455 /// Completes with a [Operation].
455 * Completes with a [Operation]. 456 ///
456 * 457 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
457 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 458 /// an error.
458 * error. 459 ///
459 * 460 /// If the used [http.Client] completes with an error when making a REST
460 * If the used [http.Client] completes with an error when making a REST call, 461 /// call, this method will complete with the same error.
461 * this method will complete with the same error. 462 async.Future<Operation> patch(
462 */ 463 Deployment request, core.String project, core.String deployment,
463 async.Future<Operation> patch(Deployment request, core.String project, core.St ring deployment, {core.String createPolicy, core.String deletePolicy, core.bool preview}) { 464 {core.String createPolicy, core.String deletePolicy, core.bool preview}) {
464 var _url = null; 465 var _url = null;
465 var _queryParams = new core.Map(); 466 var _queryParams = new core.Map();
466 var _uploadMedia = null; 467 var _uploadMedia = null;
467 var _uploadOptions = null; 468 var _uploadOptions = null;
468 var _downloadOptions = commons.DownloadOptions.Metadata; 469 var _downloadOptions = commons.DownloadOptions.Metadata;
469 var _body = null; 470 var _body = null;
470 471
471 if (request != null) { 472 if (request != null) {
472 _body = convert.JSON.encode((request).toJson()); 473 _body = convert.JSON.encode((request).toJson());
473 } 474 }
474 if (project == null) { 475 if (project == null) {
475 throw new core.ArgumentError("Parameter project is required."); 476 throw new core.ArgumentError("Parameter project is required.");
476 } 477 }
477 if (deployment == null) { 478 if (deployment == null) {
478 throw new core.ArgumentError("Parameter deployment is required."); 479 throw new core.ArgumentError("Parameter deployment is required.");
479 } 480 }
480 if (createPolicy != null) { 481 if (createPolicy != null) {
481 _queryParams["createPolicy"] = [createPolicy]; 482 _queryParams["createPolicy"] = [createPolicy];
482 } 483 }
483 if (deletePolicy != null) { 484 if (deletePolicy != null) {
484 _queryParams["deletePolicy"] = [deletePolicy]; 485 _queryParams["deletePolicy"] = [deletePolicy];
485 } 486 }
486 if (preview != null) { 487 if (preview != null) {
487 _queryParams["preview"] = ["${preview}"]; 488 _queryParams["preview"] = ["${preview}"];
488 } 489 }
489 490
490 _url = commons.Escaper.ecapeVariable('$project') + '/global/deployments/' + commons.Escaper.ecapeVariable('$deployment'); 491 _url = commons.Escaper.ecapeVariable('$project') +
492 '/global/deployments/' +
493 commons.Escaper.ecapeVariable('$deployment');
491 494
492 var _response = _requester.request(_url, 495 var _response = _requester.request(_url, "PATCH",
493 "PATCH", 496 body: _body,
494 body: _body, 497 queryParams: _queryParams,
495 queryParams: _queryParams, 498 uploadOptions: _uploadOptions,
496 uploadOptions: _uploadOptions, 499 uploadMedia: _uploadMedia,
497 uploadMedia: _uploadMedia, 500 downloadOptions: _downloadOptions);
498 downloadOptions: _downloadOptions);
499 return _response.then((data) => new Operation.fromJson(data)); 501 return _response.then((data) => new Operation.fromJson(data));
500 } 502 }
501 503
502 /** 504 /// Sets the access control policy on the specified resource. Replaces any
503 * Sets the access control policy on the specified resource. Replaces any 505 /// existing policy.
504 * existing policy. 506 ///
505 * 507 /// [request] - The metadata request object.
506 * [request] - The metadata request object. 508 ///
507 * 509 /// Request parameters:
508 * Request parameters: 510 ///
509 * 511 /// [project] - Project ID for this request.
510 * [project] - 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-z0-9](?:[-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-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". 514 ///
513 * 515 /// [resource] - Name of the resource for this request.
514 * [resource] - Name of the resource for this request. 516 /// Value must have pattern "[a-z0-9](?:[-a-z0-9_]{0,61}[a-z0-9])?".
515 * Value must have pattern "[a-z0-9](?:[-a-z0-9_]{0,61}[a-z0-9])?". 517 ///
516 * 518 /// Completes with a [Policy].
517 * Completes with a [Policy]. 519 ///
518 * 520 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
519 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 521 /// an error.
520 * error. 522 ///
521 * 523 /// If the used [http.Client] completes with an error when making a REST
522 * If the used [http.Client] completes with an error when making a REST call, 524 /// call, this method will complete with the same error.
523 * this method will complete with the same error. 525 async.Future<Policy> setIamPolicy(
524 */ 526 Policy request, core.String project, core.String resource) {
525 async.Future<Policy> setIamPolicy(Policy request, core.String project, core.St ring resource) {
526 var _url = null; 527 var _url = null;
527 var _queryParams = new core.Map(); 528 var _queryParams = new core.Map();
528 var _uploadMedia = null; 529 var _uploadMedia = null;
529 var _uploadOptions = null; 530 var _uploadOptions = null;
530 var _downloadOptions = commons.DownloadOptions.Metadata; 531 var _downloadOptions = commons.DownloadOptions.Metadata;
531 var _body = null; 532 var _body = null;
532 533
533 if (request != null) { 534 if (request != null) {
534 _body = convert.JSON.encode((request).toJson()); 535 _body = convert.JSON.encode((request).toJson());
535 } 536 }
536 if (project == null) { 537 if (project == null) {
537 throw new core.ArgumentError("Parameter project is required."); 538 throw new core.ArgumentError("Parameter project is required.");
538 } 539 }
539 if (resource == null) { 540 if (resource == null) {
540 throw new core.ArgumentError("Parameter resource is required."); 541 throw new core.ArgumentError("Parameter resource is required.");
541 } 542 }
542 543
543 _url = commons.Escaper.ecapeVariable('$project') + '/global/deployments/' + commons.Escaper.ecapeVariable('$resource') + '/setIamPolicy'; 544 _url = commons.Escaper.ecapeVariable('$project') +
545 '/global/deployments/' +
546 commons.Escaper.ecapeVariable('$resource') +
547 '/setIamPolicy';
544 548
545 var _response = _requester.request(_url, 549 var _response = _requester.request(_url, "POST",
546 "POST", 550 body: _body,
547 body: _body, 551 queryParams: _queryParams,
548 queryParams: _queryParams, 552 uploadOptions: _uploadOptions,
549 uploadOptions: _uploadOptions, 553 uploadMedia: _uploadMedia,
550 uploadMedia: _uploadMedia, 554 downloadOptions: _downloadOptions);
551 downloadOptions: _downloadOptions);
552 return _response.then((data) => new Policy.fromJson(data)); 555 return _response.then((data) => new Policy.fromJson(data));
553 } 556 }
554 557
555 /** 558 /// Stops an ongoing operation. This does not roll back any work that has
556 * Stops an ongoing operation. This does not roll back any work that has 559 /// already been completed, but prevents any new work from being started.
557 * already been completed, but prevents any new work from being started. 560 ///
558 * 561 /// [request] - The metadata request object.
559 * [request] - The metadata request object. 562 ///
560 * 563 /// Request parameters:
561 * Request parameters: 564 ///
562 * 565 /// [project] - The project ID for this request.
563 * [project] - The project ID for this request. 566 /// Value must have pattern
564 * Value must have pattern 567 /// "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9] {1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))".
565 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{ 1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". 568 ///
566 * 569 /// [deployment] - The name of the deployment for this request.
567 * [deployment] - The name of the deployment for this request. 570 /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
568 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". 571 ///
569 * 572 /// Completes with a [Operation].
570 * Completes with a [Operation]. 573 ///
571 * 574 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
572 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 575 /// an error.
573 * error. 576 ///
574 * 577 /// If the used [http.Client] completes with an error when making a REST
575 * If the used [http.Client] completes with an error when making a REST call, 578 /// call, this method will complete with the same error.
576 * this method will complete with the same error. 579 async.Future<Operation> stop(DeploymentsStopRequest request,
577 */ 580 core.String project, core.String deployment) {
578 async.Future<Operation> stop(DeploymentsStopRequest request, core.String proje ct, core.String deployment) {
579 var _url = null; 581 var _url = null;
580 var _queryParams = new core.Map(); 582 var _queryParams = new core.Map();
581 var _uploadMedia = null; 583 var _uploadMedia = null;
582 var _uploadOptions = null; 584 var _uploadOptions = null;
583 var _downloadOptions = commons.DownloadOptions.Metadata; 585 var _downloadOptions = commons.DownloadOptions.Metadata;
584 var _body = null; 586 var _body = null;
585 587
586 if (request != null) { 588 if (request != null) {
587 _body = convert.JSON.encode((request).toJson()); 589 _body = convert.JSON.encode((request).toJson());
588 } 590 }
589 if (project == null) { 591 if (project == null) {
590 throw new core.ArgumentError("Parameter project is required."); 592 throw new core.ArgumentError("Parameter project is required.");
591 } 593 }
592 if (deployment == null) { 594 if (deployment == null) {
593 throw new core.ArgumentError("Parameter deployment is required."); 595 throw new core.ArgumentError("Parameter deployment is required.");
594 } 596 }
595 597
596 _url = commons.Escaper.ecapeVariable('$project') + '/global/deployments/' + commons.Escaper.ecapeVariable('$deployment') + '/stop'; 598 _url = commons.Escaper.ecapeVariable('$project') +
599 '/global/deployments/' +
600 commons.Escaper.ecapeVariable('$deployment') +
601 '/stop';
597 602
598 var _response = _requester.request(_url, 603 var _response = _requester.request(_url, "POST",
599 "POST", 604 body: _body,
600 body: _body, 605 queryParams: _queryParams,
601 queryParams: _queryParams, 606 uploadOptions: _uploadOptions,
602 uploadOptions: _uploadOptions, 607 uploadMedia: _uploadMedia,
603 uploadMedia: _uploadMedia, 608 downloadOptions: _downloadOptions);
604 downloadOptions: _downloadOptions);
605 return _response.then((data) => new Operation.fromJson(data)); 609 return _response.then((data) => new Operation.fromJson(data));
606 } 610 }
607 611
608 /** 612 /// Returns permissions that a caller has on the specified resource.
609 * Returns permissions that a caller has on the specified resource. 613 ///
610 * 614 /// [request] - The metadata request object.
611 * [request] - The metadata request object. 615 ///
612 * 616 /// Request parameters:
613 * Request parameters: 617 ///
614 * 618 /// [project] - Project ID for this request.
615 * [project] - Project ID for this request. 619 /// Value must have pattern
616 * Value must have pattern 620 /// "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9] {1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
617 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{ 1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". 621 ///
618 * 622 /// [resource] - Name of the resource for this request.
619 * [resource] - Name of the resource for this request. 623 /// Value must have pattern "(?:[-a-z0-9_]{0,62}[a-z0-9])?".
620 * Value must have pattern "(?:[-a-z0-9_]{0,62}[a-z0-9])?". 624 ///
621 * 625 /// Completes with a [TestPermissionsResponse].
622 * Completes with a [TestPermissionsResponse]. 626 ///
623 * 627 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
624 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 628 /// an error.
625 * error. 629 ///
626 * 630 /// If the used [http.Client] completes with an error when making a REST
627 * If the used [http.Client] completes with an error when making a REST call, 631 /// call, this method will complete with the same error.
628 * this method will complete with the same error. 632 async.Future<TestPermissionsResponse> testIamPermissions(
629 */ 633 TestPermissionsRequest request,
630 async.Future<TestPermissionsResponse> testIamPermissions(TestPermissionsReques t request, core.String project, core.String resource) { 634 core.String project,
635 core.String resource) {
631 var _url = null; 636 var _url = null;
632 var _queryParams = new core.Map(); 637 var _queryParams = new core.Map();
633 var _uploadMedia = null; 638 var _uploadMedia = null;
634 var _uploadOptions = null; 639 var _uploadOptions = null;
635 var _downloadOptions = commons.DownloadOptions.Metadata; 640 var _downloadOptions = commons.DownloadOptions.Metadata;
636 var _body = null; 641 var _body = null;
637 642
638 if (request != null) { 643 if (request != null) {
639 _body = convert.JSON.encode((request).toJson()); 644 _body = convert.JSON.encode((request).toJson());
640 } 645 }
641 if (project == null) { 646 if (project == null) {
642 throw new core.ArgumentError("Parameter project is required."); 647 throw new core.ArgumentError("Parameter project is required.");
643 } 648 }
644 if (resource == null) { 649 if (resource == null) {
645 throw new core.ArgumentError("Parameter resource is required."); 650 throw new core.ArgumentError("Parameter resource is required.");
646 } 651 }
647 652
648 _url = commons.Escaper.ecapeVariable('$project') + '/global/deployments/' + commons.Escaper.ecapeVariable('$resource') + '/testIamPermissions'; 653 _url = commons.Escaper.ecapeVariable('$project') +
654 '/global/deployments/' +
655 commons.Escaper.ecapeVariable('$resource') +
656 '/testIamPermissions';
649 657
650 var _response = _requester.request(_url, 658 var _response = _requester.request(_url, "POST",
651 "POST", 659 body: _body,
652 body: _body, 660 queryParams: _queryParams,
653 queryParams: _queryParams, 661 uploadOptions: _uploadOptions,
654 uploadOptions: _uploadOptions, 662 uploadMedia: _uploadMedia,
655 uploadMedia: _uploadMedia, 663 downloadOptions: _downloadOptions);
656 downloadOptions: _downloadOptions);
657 return _response.then((data) => new TestPermissionsResponse.fromJson(data)); 664 return _response.then((data) => new TestPermissionsResponse.fromJson(data));
658 } 665 }
659 666
660 /** 667 /// Updates a deployment and all of the resources described by the deployment
661 * Updates a deployment and all of the resources described by the deployment 668 /// manifest.
662 * manifest. 669 ///
663 * 670 /// [request] - The metadata request object.
664 * [request] - The metadata request object. 671 ///
665 * 672 /// Request parameters:
666 * Request parameters: 673 ///
667 * 674 /// [project] - The project ID for this request.
668 * [project] - The project ID for this request. 675 /// Value must have pattern
669 * Value must have pattern 676 /// "(?:(?:[-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])?))".
670 * "(?:(?:[-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])?))". 677 ///
671 * 678 /// [deployment] - The name of the deployment for this request.
672 * [deployment] - The name of the deployment for this request. 679 /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
673 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". 680 ///
674 * 681 /// [createPolicy] - Sets the policy to use for creating new resources.
675 * [createPolicy] - Sets the policy to use for creating new resources. 682 /// Possible string values are:
676 * Possible string values are: 683 /// - "ACQUIRE"
677 * - "ACQUIRE" 684 /// - "CREATE_OR_ACQUIRE"
678 * - "CREATE_OR_ACQUIRE" 685 ///
679 * 686 /// [deletePolicy] - Sets the policy to use for deleting resources.
680 * [deletePolicy] - Sets the policy to use for deleting resources. 687 /// Possible string values are:
681 * Possible string values are: 688 /// - "ABANDON"
682 * - "ABANDON" 689 /// - "DELETE"
683 * - "DELETE" 690 ///
684 * 691 /// [preview] - If set to true, updates the deployment and creates and
685 * [preview] - If set to true, updates the deployment and creates and updates 692 /// updates the "shell" resources but does not actually alter or instantiate
686 * the "shell" resources but does not actually alter or instantiate these 693 /// these resources. This allows you to preview what your deployment will
687 * resources. This allows you to preview what your deployment will look like. 694 /// look like. You can use this intent to preview how an update would affect
688 * You can use this intent to preview how an update would affect your 695 /// your deployment. You must provide a target.config with a configuration if
689 * deployment. You must provide a target.config with a configuration if this 696 /// this is set to true. After previewing a deployment, you can deploy your
690 * is set to true. After previewing a deployment, you can deploy your 697 /// resources by making a request with the update() or you can
691 * resources by making a request with the update() or you can cancelPreview() 698 /// cancelPreview() to remove the preview altogether. Note that the
692 * to remove the preview altogether. Note that the deployment will still exist 699 /// deployment will still exist after you cancel the preview and you must
693 * after you cancel the preview and you must separately delete this deployment 700 /// separately delete this deployment if you want to remove it.
694 * if you want to remove it. 701 ///
695 * 702 /// Completes with a [Operation].
696 * Completes with a [Operation]. 703 ///
697 * 704 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
698 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 705 /// an error.
699 * error. 706 ///
700 * 707 /// If the used [http.Client] completes with an error when making a REST
701 * If the used [http.Client] completes with an error when making a REST call, 708 /// call, this method will complete with the same error.
702 * this method will complete with the same error. 709 async.Future<Operation> update(
703 */ 710 Deployment request, core.String project, core.String deployment,
704 async.Future<Operation> update(Deployment request, core.String project, core.S tring deployment, {core.String createPolicy, core.String deletePolicy, core.bool preview}) { 711 {core.String createPolicy, core.String deletePolicy, core.bool preview}) {
705 var _url = null; 712 var _url = null;
706 var _queryParams = new core.Map(); 713 var _queryParams = new core.Map();
707 var _uploadMedia = null; 714 var _uploadMedia = null;
708 var _uploadOptions = null; 715 var _uploadOptions = null;
709 var _downloadOptions = commons.DownloadOptions.Metadata; 716 var _downloadOptions = commons.DownloadOptions.Metadata;
710 var _body = null; 717 var _body = null;
711 718
712 if (request != null) { 719 if (request != null) {
713 _body = convert.JSON.encode((request).toJson()); 720 _body = convert.JSON.encode((request).toJson());
714 } 721 }
715 if (project == null) { 722 if (project == null) {
716 throw new core.ArgumentError("Parameter project is required."); 723 throw new core.ArgumentError("Parameter project is required.");
717 } 724 }
718 if (deployment == null) { 725 if (deployment == null) {
719 throw new core.ArgumentError("Parameter deployment is required."); 726 throw new core.ArgumentError("Parameter deployment is required.");
720 } 727 }
721 if (createPolicy != null) { 728 if (createPolicy != null) {
722 _queryParams["createPolicy"] = [createPolicy]; 729 _queryParams["createPolicy"] = [createPolicy];
723 } 730 }
724 if (deletePolicy != null) { 731 if (deletePolicy != null) {
725 _queryParams["deletePolicy"] = [deletePolicy]; 732 _queryParams["deletePolicy"] = [deletePolicy];
726 } 733 }
727 if (preview != null) { 734 if (preview != null) {
728 _queryParams["preview"] = ["${preview}"]; 735 _queryParams["preview"] = ["${preview}"];
729 } 736 }
730 737
731 _url = commons.Escaper.ecapeVariable('$project') + '/global/deployments/' + commons.Escaper.ecapeVariable('$deployment'); 738 _url = commons.Escaper.ecapeVariable('$project') +
739 '/global/deployments/' +
740 commons.Escaper.ecapeVariable('$deployment');
732 741
733 var _response = _requester.request(_url, 742 var _response = _requester.request(_url, "PUT",
734 "PUT", 743 body: _body,
735 body: _body, 744 queryParams: _queryParams,
736 queryParams: _queryParams, 745 uploadOptions: _uploadOptions,
737 uploadOptions: _uploadOptions, 746 uploadMedia: _uploadMedia,
738 uploadMedia: _uploadMedia, 747 downloadOptions: _downloadOptions);
739 downloadOptions: _downloadOptions);
740 return _response.then((data) => new Operation.fromJson(data)); 748 return _response.then((data) => new Operation.fromJson(data));
741 } 749 }
742
743 } 750 }
744 751
745
746 class ManifestsResourceApi { 752 class ManifestsResourceApi {
747 final commons.ApiRequester _requester; 753 final commons.ApiRequester _requester;
748 754
749 ManifestsResourceApi(commons.ApiRequester client) : 755 ManifestsResourceApi(commons.ApiRequester client) : _requester = client;
750 _requester = client;
751 756
752 /** 757 /// Gets information about a specific manifest.
753 * Gets information about a specific manifest. 758 ///
754 * 759 /// Request parameters:
755 * Request parameters: 760 ///
756 * 761 /// [project] - The project ID for this request.
757 * [project] - The project ID for this request. 762 /// Value must have pattern
758 * Value must have pattern 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])?))".
759 * "(?:(?:[-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])?))". 764 ///
760 * 765 /// [deployment] - The name of the deployment for this request.
761 * [deployment] - The name of the deployment for this request. 766 /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
762 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". 767 ///
763 * 768 /// [manifest] - The name of the manifest for this request.
764 * [manifest] - The name of the manifest for this request. 769 /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
765 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". 770 ///
766 * 771 /// Completes with a [Manifest].
767 * Completes with a [Manifest]. 772 ///
768 * 773 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
769 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 774 /// an error.
770 * error. 775 ///
771 * 776 /// If the used [http.Client] completes with an error when making a REST
772 * If the used [http.Client] completes with an error when making a REST call, 777 /// call, this method will complete with the same error.
773 * this method will complete with the same error. 778 async.Future<Manifest> get(
774 */ 779 core.String project, core.String deployment, core.String manifest) {
775 async.Future<Manifest> get(core.String project, core.String deployment, core.S tring manifest) {
776 var _url = null; 780 var _url = null;
777 var _queryParams = new core.Map(); 781 var _queryParams = new core.Map();
778 var _uploadMedia = null; 782 var _uploadMedia = null;
779 var _uploadOptions = null; 783 var _uploadOptions = null;
780 var _downloadOptions = commons.DownloadOptions.Metadata; 784 var _downloadOptions = commons.DownloadOptions.Metadata;
781 var _body = null; 785 var _body = null;
782 786
783 if (project == null) { 787 if (project == null) {
784 throw new core.ArgumentError("Parameter project is required."); 788 throw new core.ArgumentError("Parameter project is required.");
785 } 789 }
786 if (deployment == null) { 790 if (deployment == null) {
787 throw new core.ArgumentError("Parameter deployment is required."); 791 throw new core.ArgumentError("Parameter deployment is required.");
788 } 792 }
789 if (manifest == null) { 793 if (manifest == null) {
790 throw new core.ArgumentError("Parameter manifest is required."); 794 throw new core.ArgumentError("Parameter manifest is required.");
791 } 795 }
792 796
793 _url = commons.Escaper.ecapeVariable('$project') + '/global/deployments/' + commons.Escaper.ecapeVariable('$deployment') + '/manifests/' + commons.Escaper.e capeVariable('$manifest'); 797 _url = commons.Escaper.ecapeVariable('$project') +
798 '/global/deployments/' +
799 commons.Escaper.ecapeVariable('$deployment') +
800 '/manifests/' +
801 commons.Escaper.ecapeVariable('$manifest');
794 802
795 var _response = _requester.request(_url, 803 var _response = _requester.request(_url, "GET",
796 "GET", 804 body: _body,
797 body: _body, 805 queryParams: _queryParams,
798 queryParams: _queryParams, 806 uploadOptions: _uploadOptions,
799 uploadOptions: _uploadOptions, 807 uploadMedia: _uploadMedia,
800 uploadMedia: _uploadMedia, 808 downloadOptions: _downloadOptions);
801 downloadOptions: _downloadOptions);
802 return _response.then((data) => new Manifest.fromJson(data)); 809 return _response.then((data) => new Manifest.fromJson(data));
803 } 810 }
804 811
805 /** 812 /// Lists all manifests for a given deployment.
806 * Lists all manifests for a given deployment. 813 ///
807 * 814 /// Request parameters:
808 * Request parameters: 815 ///
809 * 816 /// [project] - The project ID for this request.
810 * [project] - The project ID for this request. 817 /// Value must have pattern
811 * Value must have pattern 818 /// "(?:(?:[-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])?))".
812 * "(?:(?:[-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])?))". 819 ///
813 * 820 /// [deployment] - The name of the deployment for this request.
814 * [deployment] - The name of the deployment for this request. 821 /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
815 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". 822 ///
816 * 823 /// [filter] - Sets a filter {expression} for filtering listed resources.
817 * [filter] - Sets a filter {expression} for filtering listed resources. Your 824 /// Your {expression} must be in the format: field_name comparison_string
818 * {expression} must be in the format: field_name comparison_string 825 /// literal_string.
819 * literal_string. 826 ///
820 * 827 /// The field_name is the name of the field you want to compare. Only atomic
821 * The field_name is the name of the field you want to compare. Only atomic 828 /// field types are supported (string, number, boolean). The
822 * field types are supported (string, number, boolean). The comparison_string 829 /// comparison_string must be either eq (equals) or ne (not equals). The
823 * must be either eq (equals) or ne (not equals). The literal_string is the 830 /// literal_string is the string value to filter to. The literal value must
824 * string value to filter to. The literal value must be valid for the type of 831 /// be valid for the type of field you are filtering by (string, number,
825 * field you are filtering by (string, number, boolean). For string fields, 832 /// boolean). For string fields, the literal value is interpreted as a
826 * the literal value is interpreted as a regular expression using RE2 syntax. 833 /// regular expression using RE2 syntax. The literal value must match the
827 * The literal value must match the entire field. 834 /// entire field.
828 * 835 ///
829 * For example, to filter for instances that do not have a name of 836 /// For example, to filter for instances that do not have a name of
830 * example-instance, you would use name ne example-instance. 837 /// example-instance, you would use name ne example-instance.
831 * 838 ///
832 * You can filter on nested fields. For example, you could filter on instances 839 /// You can filter on nested fields. For example, you could filter on
833 * that have set the scheduling.automaticRestart field to true. Use filtering 840 /// instances that have set the scheduling.automaticRestart field to true.
834 * on nested fields to take advantage of labels to organize and search for 841 /// Use filtering on nested fields to take advantage of labels to organize
835 * results based on label values. 842 /// and search for results based on label values.
836 * 843 ///
837 * To filter on multiple expressions, provide each separate expression within 844 /// To filter on multiple expressions, provide each separate expression
838 * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq 845 /// within parentheses. For example, (scheduling.automaticRestart eq true)
839 * us-central1-f). Multiple expressions are treated as AND expressions, 846 /// (zone eq us-central1-f). Multiple expressions are treated as AND
840 * meaning that resources must match all expressions to pass the filters. 847 /// expressions, meaning that resources must match all expressions to pass
841 * 848 /// the filters.
842 * [maxResults] - The maximum number of results per page that should be 849 ///
843 * returned. If the number of available results is larger than maxResults, 850 /// [maxResults] - The maximum number of results per page that should be
844 * Compute Engine returns a nextPageToken that can be used to get the next 851 /// returned. If the number of available results is larger than maxResults,
845 * page of results in subsequent list requests. Acceptable values are 0 to 852 /// Compute Engine returns a nextPageToken that can be used to get the next
846 * 500, inclusive. (Default: 500) 853 /// page of results in subsequent list requests. Acceptable values are 0 to
847 * 854 /// 500, inclusive. (Default: 500)
848 * [orderBy] - Sorts list results by a certain order. By default, results are 855 ///
849 * returned in alphanumerical order based on the resource name. 856 /// [orderBy] - Sorts list results by a certain order. By default, results
850 * 857 /// are returned in alphanumerical order based on the resource name.
851 * You can also sort results in descending order based on the creation 858 ///
852 * timestamp using orderBy="creationTimestamp desc". This sorts results based 859 /// You can also sort results in descending order based on the creation
853 * on the creationTimestamp field in reverse chronological order (newest 860 /// timestamp using orderBy="creationTimestamp desc". This sorts results
854 * result first). Use this to sort resources like operations so that the 861 /// based on the creationTimestamp field in reverse chronological order
855 * newest operation is returned first. 862 /// (newest result first). Use this to sort resources like operations so that
856 * 863 /// the newest operation is returned first.
857 * Currently, only sorting by name or creationTimestamp desc is supported. 864 ///
858 * 865 /// Currently, only sorting by name or creationTimestamp desc is supported.
859 * [pageToken] - Specifies a page token to use. Set pageToken to the 866 ///
860 * nextPageToken returned by a previous list request to get the next page of 867 /// [pageToken] - Specifies a page token to use. Set pageToken to the
861 * results. 868 /// nextPageToken returned by a previous list request to get the next page of
862 * 869 /// results.
863 * Completes with a [ManifestsListResponse]. 870 ///
864 * 871 /// Completes with a [ManifestsListResponse].
865 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 872 ///
866 * error. 873 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
867 * 874 /// an error.
868 * If the used [http.Client] completes with an error when making a REST call, 875 ///
869 * this method will complete with the same error. 876 /// If the used [http.Client] completes with an error when making a REST
870 */ 877 /// call, this method will complete with the same error.
871 async.Future<ManifestsListResponse> list(core.String project, core.String depl oyment, {core.String filter, core.int maxResults, core.String orderBy, core.Stri ng pageToken}) { 878 async.Future<ManifestsListResponse> list(
879 core.String project, core.String deployment,
880 {core.String filter,
881 core.int maxResults,
882 core.String orderBy,
883 core.String pageToken}) {
872 var _url = null; 884 var _url = null;
873 var _queryParams = new core.Map(); 885 var _queryParams = new core.Map();
874 var _uploadMedia = null; 886 var _uploadMedia = null;
875 var _uploadOptions = null; 887 var _uploadOptions = null;
876 var _downloadOptions = commons.DownloadOptions.Metadata; 888 var _downloadOptions = commons.DownloadOptions.Metadata;
877 var _body = null; 889 var _body = null;
878 890
879 if (project == null) { 891 if (project == null) {
880 throw new core.ArgumentError("Parameter project is required."); 892 throw new core.ArgumentError("Parameter project is required.");
881 } 893 }
882 if (deployment == null) { 894 if (deployment == null) {
883 throw new core.ArgumentError("Parameter deployment is required."); 895 throw new core.ArgumentError("Parameter deployment is required.");
884 } 896 }
885 if (filter != null) { 897 if (filter != null) {
886 _queryParams["filter"] = [filter]; 898 _queryParams["filter"] = [filter];
887 } 899 }
888 if (maxResults != null) { 900 if (maxResults != null) {
889 _queryParams["maxResults"] = ["${maxResults}"]; 901 _queryParams["maxResults"] = ["${maxResults}"];
890 } 902 }
891 if (orderBy != null) { 903 if (orderBy != null) {
892 _queryParams["orderBy"] = [orderBy]; 904 _queryParams["orderBy"] = [orderBy];
893 } 905 }
894 if (pageToken != null) { 906 if (pageToken != null) {
895 _queryParams["pageToken"] = [pageToken]; 907 _queryParams["pageToken"] = [pageToken];
896 } 908 }
897 909
898 _url = commons.Escaper.ecapeVariable('$project') + '/global/deployments/' + commons.Escaper.ecapeVariable('$deployment') + '/manifests'; 910 _url = commons.Escaper.ecapeVariable('$project') +
911 '/global/deployments/' +
912 commons.Escaper.ecapeVariable('$deployment') +
913 '/manifests';
899 914
900 var _response = _requester.request(_url, 915 var _response = _requester.request(_url, "GET",
901 "GET", 916 body: _body,
902 body: _body, 917 queryParams: _queryParams,
903 queryParams: _queryParams, 918 uploadOptions: _uploadOptions,
904 uploadOptions: _uploadOptions, 919 uploadMedia: _uploadMedia,
905 uploadMedia: _uploadMedia, 920 downloadOptions: _downloadOptions);
906 downloadOptions: _downloadOptions);
907 return _response.then((data) => new ManifestsListResponse.fromJson(data)); 921 return _response.then((data) => new ManifestsListResponse.fromJson(data));
908 } 922 }
909
910 } 923 }
911 924
912
913 class OperationsResourceApi { 925 class OperationsResourceApi {
914 final commons.ApiRequester _requester; 926 final commons.ApiRequester _requester;
915 927
916 OperationsResourceApi(commons.ApiRequester client) : 928 OperationsResourceApi(commons.ApiRequester client) : _requester = client;
917 _requester = client;
918 929
919 /** 930 /// Gets information about a specific operation.
920 * Gets information about a specific operation. 931 ///
921 * 932 /// Request parameters:
922 * Request parameters: 933 ///
923 * 934 /// [project] - The project ID for this request.
924 * [project] - The project ID for this request. 935 /// Value must have pattern
925 * Value must have pattern 936 /// "(?:(?:[-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])?))".
926 * "(?:(?:[-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])?))". 937 ///
927 * 938 /// [operation] - The name of the operation for this request.
928 * [operation] - The name of the operation for this request. 939 ///
929 * 940 /// Completes with a [Operation].
930 * Completes with a [Operation]. 941 ///
931 * 942 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
932 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 943 /// an error.
933 * error. 944 ///
934 * 945 /// If the used [http.Client] completes with an error when making a REST
935 * If the used [http.Client] completes with an error when making a REST call, 946 /// call, this method will complete with the same error.
936 * this method will complete with the same error.
937 */
938 async.Future<Operation> get(core.String project, core.String operation) { 947 async.Future<Operation> get(core.String project, core.String operation) {
939 var _url = null; 948 var _url = null;
940 var _queryParams = new core.Map(); 949 var _queryParams = new core.Map();
941 var _uploadMedia = null; 950 var _uploadMedia = null;
942 var _uploadOptions = null; 951 var _uploadOptions = null;
943 var _downloadOptions = commons.DownloadOptions.Metadata; 952 var _downloadOptions = commons.DownloadOptions.Metadata;
944 var _body = null; 953 var _body = null;
945 954
946 if (project == null) { 955 if (project == null) {
947 throw new core.ArgumentError("Parameter project is required."); 956 throw new core.ArgumentError("Parameter project is required.");
948 } 957 }
949 if (operation == null) { 958 if (operation == null) {
950 throw new core.ArgumentError("Parameter operation is required."); 959 throw new core.ArgumentError("Parameter operation is required.");
951 } 960 }
952 961
953 _url = commons.Escaper.ecapeVariable('$project') + '/global/operations/' + c ommons.Escaper.ecapeVariable('$operation'); 962 _url = commons.Escaper.ecapeVariable('$project') +
963 '/global/operations/' +
964 commons.Escaper.ecapeVariable('$operation');
954 965
955 var _response = _requester.request(_url, 966 var _response = _requester.request(_url, "GET",
956 "GET", 967 body: _body,
957 body: _body, 968 queryParams: _queryParams,
958 queryParams: _queryParams, 969 uploadOptions: _uploadOptions,
959 uploadOptions: _uploadOptions, 970 uploadMedia: _uploadMedia,
960 uploadMedia: _uploadMedia, 971 downloadOptions: _downloadOptions);
961 downloadOptions: _downloadOptions);
962 return _response.then((data) => new Operation.fromJson(data)); 972 return _response.then((data) => new Operation.fromJson(data));
963 } 973 }
964 974
965 /** 975 /// Lists all operations for a project.
966 * Lists all operations for a project. 976 ///
967 * 977 /// Request parameters:
968 * Request parameters: 978 ///
969 * 979 /// [project] - The project ID for this request.
970 * [project] - The project ID for this request. 980 /// Value must have pattern
971 * Value must have pattern 981 /// "(?:(?:[-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])?))".
972 * "(?:(?:[-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])?))". 982 ///
973 * 983 /// [filter] - Sets a filter {expression} for filtering listed resources.
974 * [filter] - Sets a filter {expression} for filtering listed resources. Your 984 /// Your {expression} must be in the format: field_name comparison_string
975 * {expression} must be in the format: field_name comparison_string 985 /// literal_string.
976 * literal_string. 986 ///
977 * 987 /// The field_name is the name of the field you want to compare. Only atomic
978 * The field_name is the name of the field you want to compare. Only atomic 988 /// field types are supported (string, number, boolean). The
979 * field types are supported (string, number, boolean). The comparison_string 989 /// comparison_string must be either eq (equals) or ne (not equals). The
980 * must be either eq (equals) or ne (not equals). The literal_string is the 990 /// literal_string is the string value to filter to. The literal value must
981 * string value to filter to. The literal value must be valid for the type of 991 /// be valid for the type of field you are filtering by (string, number,
982 * field you are filtering by (string, number, boolean). For string fields, 992 /// boolean). For string fields, the literal value is interpreted as a
983 * the literal value is interpreted as a regular expression using RE2 syntax. 993 /// regular expression using RE2 syntax. The literal value must match the
984 * The literal value must match the entire field. 994 /// entire field.
985 * 995 ///
986 * For example, to filter for instances that do not have a name of 996 /// For example, to filter for instances that do not have a name of
987 * example-instance, you would use name ne example-instance. 997 /// example-instance, you would use name ne example-instance.
988 * 998 ///
989 * You can filter on nested fields. For example, you could filter on instances 999 /// You can filter on nested fields. For example, you could filter on
990 * that have set the scheduling.automaticRestart field to true. Use filtering 1000 /// instances that have set the scheduling.automaticRestart field to true.
991 * on nested fields to take advantage of labels to organize and search for 1001 /// Use filtering on nested fields to take advantage of labels to organize
992 * results based on label values. 1002 /// and search for results based on label values.
993 * 1003 ///
994 * To filter on multiple expressions, provide each separate expression within 1004 /// To filter on multiple expressions, provide each separate expression
995 * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq 1005 /// within parentheses. For example, (scheduling.automaticRestart eq true)
996 * us-central1-f). Multiple expressions are treated as AND expressions, 1006 /// (zone eq us-central1-f). Multiple expressions are treated as AND
997 * meaning that resources must match all expressions to pass the filters. 1007 /// expressions, meaning that resources must match all expressions to pass
998 * 1008 /// the filters.
999 * [maxResults] - The maximum number of results per page that should be 1009 ///
1000 * returned. If the number of available results is larger than maxResults, 1010 /// [maxResults] - The maximum number of results per page that should be
1001 * Compute Engine returns a nextPageToken that can be used to get the next 1011 /// returned. If the number of available results is larger than maxResults,
1002 * page of results in subsequent list requests. Acceptable values are 0 to 1012 /// Compute Engine returns a nextPageToken that can be used to get the next
1003 * 500, inclusive. (Default: 500) 1013 /// page of results in subsequent list requests. Acceptable values are 0 to
1004 * 1014 /// 500, inclusive. (Default: 500)
1005 * [orderBy] - Sorts list results by a certain order. By default, results are 1015 ///
1006 * returned in alphanumerical order based on the resource name. 1016 /// [orderBy] - Sorts list results by a certain order. By default, results
1007 * 1017 /// are returned in alphanumerical order based on the resource name.
1008 * You can also sort results in descending order based on the creation 1018 ///
1009 * timestamp using orderBy="creationTimestamp desc". This sorts results based 1019 /// You can also sort results in descending order based on the creation
1010 * on the creationTimestamp field in reverse chronological order (newest 1020 /// timestamp using orderBy="creationTimestamp desc". This sorts results
1011 * result first). Use this to sort resources like operations so that the 1021 /// based on the creationTimestamp field in reverse chronological order
1012 * newest operation is returned first. 1022 /// (newest result first). Use this to sort resources like operations so that
1013 * 1023 /// the newest operation is returned first.
1014 * Currently, only sorting by name or creationTimestamp desc is supported. 1024 ///
1015 * 1025 /// Currently, only sorting by name or creationTimestamp desc is supported.
1016 * [pageToken] - Specifies a page token to use. Set pageToken to the 1026 ///
1017 * nextPageToken returned by a previous list request to get the next page of 1027 /// [pageToken] - Specifies a page token to use. Set pageToken to the
1018 * results. 1028 /// nextPageToken returned by a previous list request to get the next page of
1019 * 1029 /// results.
1020 * Completes with a [OperationsListResponse]. 1030 ///
1021 * 1031 /// Completes with a [OperationsListResponse].
1022 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1032 ///
1023 * error. 1033 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1024 * 1034 /// an error.
1025 * If the used [http.Client] completes with an error when making a REST call, 1035 ///
1026 * this method will complete with the same error. 1036 /// If the used [http.Client] completes with an error when making a REST
1027 */ 1037 /// call, this method will complete with the same error.
1028 async.Future<OperationsListResponse> list(core.String project, {core.String fi lter, core.int maxResults, core.String orderBy, core.String pageToken}) { 1038 async.Future<OperationsListResponse> list(core.String project,
1039 {core.String filter,
1040 core.int maxResults,
1041 core.String orderBy,
1042 core.String pageToken}) {
1029 var _url = null; 1043 var _url = null;
1030 var _queryParams = new core.Map(); 1044 var _queryParams = new core.Map();
1031 var _uploadMedia = null; 1045 var _uploadMedia = null;
1032 var _uploadOptions = null; 1046 var _uploadOptions = null;
1033 var _downloadOptions = commons.DownloadOptions.Metadata; 1047 var _downloadOptions = commons.DownloadOptions.Metadata;
1034 var _body = null; 1048 var _body = null;
1035 1049
1036 if (project == null) { 1050 if (project == null) {
1037 throw new core.ArgumentError("Parameter project is required."); 1051 throw new core.ArgumentError("Parameter project is required.");
1038 } 1052 }
1039 if (filter != null) { 1053 if (filter != null) {
1040 _queryParams["filter"] = [filter]; 1054 _queryParams["filter"] = [filter];
1041 } 1055 }
1042 if (maxResults != null) { 1056 if (maxResults != null) {
1043 _queryParams["maxResults"] = ["${maxResults}"]; 1057 _queryParams["maxResults"] = ["${maxResults}"];
1044 } 1058 }
1045 if (orderBy != null) { 1059 if (orderBy != null) {
1046 _queryParams["orderBy"] = [orderBy]; 1060 _queryParams["orderBy"] = [orderBy];
1047 } 1061 }
1048 if (pageToken != null) { 1062 if (pageToken != null) {
1049 _queryParams["pageToken"] = [pageToken]; 1063 _queryParams["pageToken"] = [pageToken];
1050 } 1064 }
1051 1065
1052 _url = commons.Escaper.ecapeVariable('$project') + '/global/operations'; 1066 _url = commons.Escaper.ecapeVariable('$project') + '/global/operations';
1053 1067
1054 var _response = _requester.request(_url, 1068 var _response = _requester.request(_url, "GET",
1055 "GET", 1069 body: _body,
1056 body: _body, 1070 queryParams: _queryParams,
1057 queryParams: _queryParams, 1071 uploadOptions: _uploadOptions,
1058 uploadOptions: _uploadOptions, 1072 uploadMedia: _uploadMedia,
1059 uploadMedia: _uploadMedia, 1073 downloadOptions: _downloadOptions);
1060 downloadOptions: _downloadOptions);
1061 return _response.then((data) => new OperationsListResponse.fromJson(data)); 1074 return _response.then((data) => new OperationsListResponse.fromJson(data));
1062 } 1075 }
1063
1064 } 1076 }
1065 1077
1066
1067 class ResourcesResourceApi { 1078 class ResourcesResourceApi {
1068 final commons.ApiRequester _requester; 1079 final commons.ApiRequester _requester;
1069 1080
1070 ResourcesResourceApi(commons.ApiRequester client) : 1081 ResourcesResourceApi(commons.ApiRequester client) : _requester = client;
1071 _requester = client;
1072 1082
1073 /** 1083 /// Gets information about a single resource.
1074 * Gets information about a single resource. 1084 ///
1075 * 1085 /// Request parameters:
1076 * Request parameters: 1086 ///
1077 * 1087 /// [project] - The project ID for this request.
1078 * [project] - The project ID for this request. 1088 /// Value must have pattern
1079 * Value must have pattern 1089 /// "(?:(?:[-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])?))".
1080 * "(?:(?:[-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])?))". 1090 ///
1081 * 1091 /// [deployment] - The name of the deployment for this request.
1082 * [deployment] - The name of the deployment for this request. 1092 /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
1083 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". 1093 ///
1084 * 1094 /// [resource] - The name of the resource for this request.
1085 * [resource] - The name of the resource for this request. 1095 ///
1086 * 1096 /// Completes with a [Resource].
1087 * Completes with a [Resource]. 1097 ///
1088 * 1098 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1089 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1099 /// an error.
1090 * error. 1100 ///
1091 * 1101 /// If the used [http.Client] completes with an error when making a REST
1092 * If the used [http.Client] completes with an error when making a REST call, 1102 /// call, this method will complete with the same error.
1093 * this method will complete with the same error. 1103 async.Future<Resource> get(
1094 */ 1104 core.String project, core.String deployment, core.String resource) {
1095 async.Future<Resource> get(core.String project, core.String deployment, core.S tring resource) {
1096 var _url = null; 1105 var _url = null;
1097 var _queryParams = new core.Map(); 1106 var _queryParams = new core.Map();
1098 var _uploadMedia = null; 1107 var _uploadMedia = null;
1099 var _uploadOptions = null; 1108 var _uploadOptions = null;
1100 var _downloadOptions = commons.DownloadOptions.Metadata; 1109 var _downloadOptions = commons.DownloadOptions.Metadata;
1101 var _body = null; 1110 var _body = null;
1102 1111
1103 if (project == null) { 1112 if (project == null) {
1104 throw new core.ArgumentError("Parameter project is required."); 1113 throw new core.ArgumentError("Parameter project is required.");
1105 } 1114 }
1106 if (deployment == null) { 1115 if (deployment == null) {
1107 throw new core.ArgumentError("Parameter deployment is required."); 1116 throw new core.ArgumentError("Parameter deployment is required.");
1108 } 1117 }
1109 if (resource == null) { 1118 if (resource == null) {
1110 throw new core.ArgumentError("Parameter resource is required."); 1119 throw new core.ArgumentError("Parameter resource is required.");
1111 } 1120 }
1112 1121
1113 _url = commons.Escaper.ecapeVariable('$project') + '/global/deployments/' + commons.Escaper.ecapeVariable('$deployment') + '/resources/' + commons.Escaper.e capeVariable('$resource'); 1122 _url = commons.Escaper.ecapeVariable('$project') +
1123 '/global/deployments/' +
1124 commons.Escaper.ecapeVariable('$deployment') +
1125 '/resources/' +
1126 commons.Escaper.ecapeVariable('$resource');
1114 1127
1115 var _response = _requester.request(_url, 1128 var _response = _requester.request(_url, "GET",
1116 "GET", 1129 body: _body,
1117 body: _body, 1130 queryParams: _queryParams,
1118 queryParams: _queryParams, 1131 uploadOptions: _uploadOptions,
1119 uploadOptions: _uploadOptions, 1132 uploadMedia: _uploadMedia,
1120 uploadMedia: _uploadMedia, 1133 downloadOptions: _downloadOptions);
1121 downloadOptions: _downloadOptions);
1122 return _response.then((data) => new Resource.fromJson(data)); 1134 return _response.then((data) => new Resource.fromJson(data));
1123 } 1135 }
1124 1136
1125 /** 1137 /// Lists all resources in a given deployment.
1126 * Lists all resources in a given deployment. 1138 ///
1127 * 1139 /// Request parameters:
1128 * Request parameters: 1140 ///
1129 * 1141 /// [project] - The project ID for this request.
1130 * [project] - The project ID for this request. 1142 /// Value must have pattern
1131 * Value must have pattern 1143 /// "(?:(?:[-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])?))".
1132 * "(?:(?:[-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])?))". 1144 ///
1133 * 1145 /// [deployment] - The name of the deployment for this request.
1134 * [deployment] - The name of the deployment for this request. 1146 /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
1135 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". 1147 ///
1136 * 1148 /// [filter] - Sets a filter {expression} for filtering listed resources.
1137 * [filter] - Sets a filter {expression} for filtering listed resources. Your 1149 /// Your {expression} must be in the format: field_name comparison_string
1138 * {expression} must be in the format: field_name comparison_string 1150 /// literal_string.
1139 * literal_string. 1151 ///
1140 * 1152 /// The field_name is the name of the field you want to compare. Only atomic
1141 * The field_name is the name of the field you want to compare. Only atomic 1153 /// field types are supported (string, number, boolean). The
1142 * field types are supported (string, number, boolean). The comparison_string 1154 /// comparison_string must be either eq (equals) or ne (not equals). The
1143 * must be either eq (equals) or ne (not equals). The literal_string is the 1155 /// literal_string is the string value to filter to. The literal value must
1144 * string value to filter to. The literal value must be valid for the type of 1156 /// be valid for the type of field you are filtering by (string, number,
1145 * field you are filtering by (string, number, boolean). For string fields, 1157 /// boolean). For string fields, the literal value is interpreted as a
1146 * the literal value is interpreted as a regular expression using RE2 syntax. 1158 /// regular expression using RE2 syntax. The literal value must match the
1147 * The literal value must match the entire field. 1159 /// entire field.
1148 * 1160 ///
1149 * For example, to filter for instances that do not have a name of 1161 /// For example, to filter for instances that do not have a name of
1150 * example-instance, you would use name ne example-instance. 1162 /// example-instance, you would use name ne example-instance.
1151 * 1163 ///
1152 * You can filter on nested fields. For example, you could filter on instances 1164 /// You can filter on nested fields. For example, you could filter on
1153 * that have set the scheduling.automaticRestart field to true. Use filtering 1165 /// instances that have set the scheduling.automaticRestart field to true.
1154 * on nested fields to take advantage of labels to organize and search for 1166 /// Use filtering on nested fields to take advantage of labels to organize
1155 * results based on label values. 1167 /// and search for results based on label values.
1156 * 1168 ///
1157 * To filter on multiple expressions, provide each separate expression within 1169 /// To filter on multiple expressions, provide each separate expression
1158 * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq 1170 /// within parentheses. For example, (scheduling.automaticRestart eq true)
1159 * us-central1-f). Multiple expressions are treated as AND expressions, 1171 /// (zone eq us-central1-f). Multiple expressions are treated as AND
1160 * meaning that resources must match all expressions to pass the filters. 1172 /// expressions, meaning that resources must match all expressions to pass
1161 * 1173 /// the filters.
1162 * [maxResults] - The maximum number of results per page that should be 1174 ///
1163 * returned. If the number of available results is larger than maxResults, 1175 /// [maxResults] - The maximum number of results per page that should be
1164 * Compute Engine returns a nextPageToken that can be used to get the next 1176 /// returned. If the number of available results is larger than maxResults,
1165 * page of results in subsequent list requests. Acceptable values are 0 to 1177 /// Compute Engine returns a nextPageToken that can be used to get the next
1166 * 500, inclusive. (Default: 500) 1178 /// page of results in subsequent list requests. Acceptable values are 0 to
1167 * 1179 /// 500, inclusive. (Default: 500)
1168 * [orderBy] - Sorts list results by a certain order. By default, results are 1180 ///
1169 * returned in alphanumerical order based on the resource name. 1181 /// [orderBy] - Sorts list results by a certain order. By default, results
1170 * 1182 /// are returned in alphanumerical order based on the resource name.
1171 * You can also sort results in descending order based on the creation 1183 ///
1172 * timestamp using orderBy="creationTimestamp desc". This sorts results based 1184 /// You can also sort results in descending order based on the creation
1173 * on the creationTimestamp field in reverse chronological order (newest 1185 /// timestamp using orderBy="creationTimestamp desc". This sorts results
1174 * result first). Use this to sort resources like operations so that the 1186 /// based on the creationTimestamp field in reverse chronological order
1175 * newest operation is returned first. 1187 /// (newest result first). Use this to sort resources like operations so that
1176 * 1188 /// the newest operation is returned first.
1177 * Currently, only sorting by name or creationTimestamp desc is supported. 1189 ///
1178 * 1190 /// Currently, only sorting by name or creationTimestamp desc is supported.
1179 * [pageToken] - Specifies a page token to use. Set pageToken to the 1191 ///
1180 * nextPageToken returned by a previous list request to get the next page of 1192 /// [pageToken] - Specifies a page token to use. Set pageToken to the
1181 * results. 1193 /// nextPageToken returned by a previous list request to get the next page of
1182 * 1194 /// results.
1183 * Completes with a [ResourcesListResponse]. 1195 ///
1184 * 1196 /// Completes with a [ResourcesListResponse].
1185 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1197 ///
1186 * error. 1198 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1187 * 1199 /// an error.
1188 * If the used [http.Client] completes with an error when making a REST call, 1200 ///
1189 * this method will complete with the same error. 1201 /// If the used [http.Client] completes with an error when making a REST
1190 */ 1202 /// call, this method will complete with the same error.
1191 async.Future<ResourcesListResponse> list(core.String project, core.String depl oyment, {core.String filter, core.int maxResults, core.String orderBy, core.Stri ng pageToken}) { 1203 async.Future<ResourcesListResponse> list(
1204 core.String project, core.String deployment,
1205 {core.String filter,
1206 core.int maxResults,
1207 core.String orderBy,
1208 core.String pageToken}) {
1192 var _url = null; 1209 var _url = null;
1193 var _queryParams = new core.Map(); 1210 var _queryParams = new core.Map();
1194 var _uploadMedia = null; 1211 var _uploadMedia = null;
1195 var _uploadOptions = null; 1212 var _uploadOptions = null;
1196 var _downloadOptions = commons.DownloadOptions.Metadata; 1213 var _downloadOptions = commons.DownloadOptions.Metadata;
1197 var _body = null; 1214 var _body = null;
1198 1215
1199 if (project == null) { 1216 if (project == null) {
1200 throw new core.ArgumentError("Parameter project is required."); 1217 throw new core.ArgumentError("Parameter project is required.");
1201 } 1218 }
1202 if (deployment == null) { 1219 if (deployment == null) {
1203 throw new core.ArgumentError("Parameter deployment is required."); 1220 throw new core.ArgumentError("Parameter deployment is required.");
1204 } 1221 }
1205 if (filter != null) { 1222 if (filter != null) {
1206 _queryParams["filter"] = [filter]; 1223 _queryParams["filter"] = [filter];
1207 } 1224 }
1208 if (maxResults != null) { 1225 if (maxResults != null) {
1209 _queryParams["maxResults"] = ["${maxResults}"]; 1226 _queryParams["maxResults"] = ["${maxResults}"];
1210 } 1227 }
1211 if (orderBy != null) { 1228 if (orderBy != null) {
1212 _queryParams["orderBy"] = [orderBy]; 1229 _queryParams["orderBy"] = [orderBy];
1213 } 1230 }
1214 if (pageToken != null) { 1231 if (pageToken != null) {
1215 _queryParams["pageToken"] = [pageToken]; 1232 _queryParams["pageToken"] = [pageToken];
1216 } 1233 }
1217 1234
1218 _url = commons.Escaper.ecapeVariable('$project') + '/global/deployments/' + commons.Escaper.ecapeVariable('$deployment') + '/resources'; 1235 _url = commons.Escaper.ecapeVariable('$project') +
1236 '/global/deployments/' +
1237 commons.Escaper.ecapeVariable('$deployment') +
1238 '/resources';
1219 1239
1220 var _response = _requester.request(_url, 1240 var _response = _requester.request(_url, "GET",
1221 "GET", 1241 body: _body,
1222 body: _body, 1242 queryParams: _queryParams,
1223 queryParams: _queryParams, 1243 uploadOptions: _uploadOptions,
1224 uploadOptions: _uploadOptions, 1244 uploadMedia: _uploadMedia,
1225 uploadMedia: _uploadMedia, 1245 downloadOptions: _downloadOptions);
1226 downloadOptions: _downloadOptions);
1227 return _response.then((data) => new ResourcesListResponse.fromJson(data)); 1246 return _response.then((data) => new ResourcesListResponse.fromJson(data));
1228 } 1247 }
1229
1230 } 1248 }
1231 1249
1232
1233 class TypesResourceApi { 1250 class TypesResourceApi {
1234 final commons.ApiRequester _requester; 1251 final commons.ApiRequester _requester;
1235 1252
1236 TypesResourceApi(commons.ApiRequester client) : 1253 TypesResourceApi(commons.ApiRequester client) : _requester = client;
1237 _requester = client;
1238 1254
1239 /** 1255 /// Lists all resource types for Deployment Manager.
1240 * Lists all resource types for Deployment Manager. 1256 ///
1241 * 1257 /// Request parameters:
1242 * Request parameters: 1258 ///
1243 * 1259 /// [project] - The project ID for this request.
1244 * [project] - The project ID for this request. 1260 /// Value must have pattern
1245 * Value must have pattern 1261 /// "(?:(?:[-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])?))".
1246 * "(?:(?:[-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])?))". 1262 ///
1247 * 1263 /// [filter] - Sets a filter {expression} for filtering listed resources.
1248 * [filter] - Sets a filter {expression} for filtering listed resources. Your 1264 /// Your {expression} must be in the format: field_name comparison_string
1249 * {expression} must be in the format: field_name comparison_string 1265 /// literal_string.
1250 * literal_string. 1266 ///
1251 * 1267 /// The field_name is the name of the field you want to compare. Only atomic
1252 * The field_name is the name of the field you want to compare. Only atomic 1268 /// field types are supported (string, number, boolean). The
1253 * field types are supported (string, number, boolean). The comparison_string 1269 /// comparison_string must be either eq (equals) or ne (not equals). The
1254 * must be either eq (equals) or ne (not equals). The literal_string is the 1270 /// literal_string is the string value to filter to. The literal value must
1255 * string value to filter to. The literal value must be valid for the type of 1271 /// be valid for the type of field you are filtering by (string, number,
1256 * field you are filtering by (string, number, boolean). For string fields, 1272 /// boolean). For string fields, the literal value is interpreted as a
1257 * the literal value is interpreted as a regular expression using RE2 syntax. 1273 /// regular expression using RE2 syntax. The literal value must match the
1258 * The literal value must match the entire field. 1274 /// entire field.
1259 * 1275 ///
1260 * For example, to filter for instances that do not have a name of 1276 /// For example, to filter for instances that do not have a name of
1261 * example-instance, you would use name ne example-instance. 1277 /// example-instance, you would use name ne example-instance.
1262 * 1278 ///
1263 * You can filter on nested fields. For example, you could filter on instances 1279 /// You can filter on nested fields. For example, you could filter on
1264 * that have set the scheduling.automaticRestart field to true. Use filtering 1280 /// instances that have set the scheduling.automaticRestart field to true.
1265 * on nested fields to take advantage of labels to organize and search for 1281 /// Use filtering on nested fields to take advantage of labels to organize
1266 * results based on label values. 1282 /// and search for results based on label values.
1267 * 1283 ///
1268 * To filter on multiple expressions, provide each separate expression within 1284 /// To filter on multiple expressions, provide each separate expression
1269 * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq 1285 /// within parentheses. For example, (scheduling.automaticRestart eq true)
1270 * us-central1-f). Multiple expressions are treated as AND expressions, 1286 /// (zone eq us-central1-f). Multiple expressions are treated as AND
1271 * meaning that resources must match all expressions to pass the filters. 1287 /// expressions, meaning that resources must match all expressions to pass
1272 * 1288 /// the filters.
1273 * [maxResults] - The maximum number of results per page that should be 1289 ///
1274 * returned. If the number of available results is larger than maxResults, 1290 /// [maxResults] - The maximum number of results per page that should be
1275 * Compute Engine returns a nextPageToken that can be used to get the next 1291 /// returned. If the number of available results is larger than maxResults,
1276 * page of results in subsequent list requests. Acceptable values are 0 to 1292 /// Compute Engine returns a nextPageToken that can be used to get the next
1277 * 500, inclusive. (Default: 500) 1293 /// page of results in subsequent list requests. Acceptable values are 0 to
1278 * 1294 /// 500, inclusive. (Default: 500)
1279 * [orderBy] - Sorts list results by a certain order. By default, results are 1295 ///
1280 * returned in alphanumerical order based on the resource name. 1296 /// [orderBy] - Sorts list results by a certain order. By default, results
1281 * 1297 /// are returned in alphanumerical order based on the resource name.
1282 * You can also sort results in descending order based on the creation 1298 ///
1283 * timestamp using orderBy="creationTimestamp desc". This sorts results based 1299 /// You can also sort results in descending order based on the creation
1284 * on the creationTimestamp field in reverse chronological order (newest 1300 /// timestamp using orderBy="creationTimestamp desc". This sorts results
1285 * result first). Use this to sort resources like operations so that the 1301 /// based on the creationTimestamp field in reverse chronological order
1286 * newest operation is returned first. 1302 /// (newest result first). Use this to sort resources like operations so that
1287 * 1303 /// the newest operation is returned first.
1288 * Currently, only sorting by name or creationTimestamp desc is supported. 1304 ///
1289 * 1305 /// Currently, only sorting by name or creationTimestamp desc is supported.
1290 * [pageToken] - Specifies a page token to use. Set pageToken to the 1306 ///
1291 * nextPageToken returned by a previous list request to get the next page of 1307 /// [pageToken] - Specifies a page token to use. Set pageToken to the
1292 * results. 1308 /// nextPageToken returned by a previous list request to get the next page of
1293 * 1309 /// results.
1294 * Completes with a [TypesListResponse]. 1310 ///
1295 * 1311 /// Completes with a [TypesListResponse].
1296 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1312 ///
1297 * error. 1313 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1298 * 1314 /// an error.
1299 * If the used [http.Client] completes with an error when making a REST call, 1315 ///
1300 * this method will complete with the same error. 1316 /// If the used [http.Client] completes with an error when making a REST
1301 */ 1317 /// call, this method will complete with the same error.
1302 async.Future<TypesListResponse> list(core.String project, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) { 1318 async.Future<TypesListResponse> list(core.String project,
1319 {core.String filter,
1320 core.int maxResults,
1321 core.String orderBy,
1322 core.String pageToken}) {
1303 var _url = null; 1323 var _url = null;
1304 var _queryParams = new core.Map(); 1324 var _queryParams = new core.Map();
1305 var _uploadMedia = null; 1325 var _uploadMedia = null;
1306 var _uploadOptions = null; 1326 var _uploadOptions = null;
1307 var _downloadOptions = commons.DownloadOptions.Metadata; 1327 var _downloadOptions = commons.DownloadOptions.Metadata;
1308 var _body = null; 1328 var _body = null;
1309 1329
1310 if (project == null) { 1330 if (project == null) {
1311 throw new core.ArgumentError("Parameter project is required."); 1331 throw new core.ArgumentError("Parameter project is required.");
1312 } 1332 }
1313 if (filter != null) { 1333 if (filter != null) {
1314 _queryParams["filter"] = [filter]; 1334 _queryParams["filter"] = [filter];
1315 } 1335 }
1316 if (maxResults != null) { 1336 if (maxResults != null) {
1317 _queryParams["maxResults"] = ["${maxResults}"]; 1337 _queryParams["maxResults"] = ["${maxResults}"];
1318 } 1338 }
1319 if (orderBy != null) { 1339 if (orderBy != null) {
1320 _queryParams["orderBy"] = [orderBy]; 1340 _queryParams["orderBy"] = [orderBy];
1321 } 1341 }
1322 if (pageToken != null) { 1342 if (pageToken != null) {
1323 _queryParams["pageToken"] = [pageToken]; 1343 _queryParams["pageToken"] = [pageToken];
1324 } 1344 }
1325 1345
1326 _url = commons.Escaper.ecapeVariable('$project') + '/global/types'; 1346 _url = commons.Escaper.ecapeVariable('$project') + '/global/types';
1327 1347
1328 var _response = _requester.request(_url, 1348 var _response = _requester.request(_url, "GET",
1329 "GET", 1349 body: _body,
1330 body: _body, 1350 queryParams: _queryParams,
1331 queryParams: _queryParams, 1351 uploadOptions: _uploadOptions,
1332 uploadOptions: _uploadOptions, 1352 uploadMedia: _uploadMedia,
1333 uploadMedia: _uploadMedia, 1353 downloadOptions: _downloadOptions);
1334 downloadOptions: _downloadOptions);
1335 return _response.then((data) => new TypesListResponse.fromJson(data)); 1354 return _response.then((data) => new TypesListResponse.fromJson(data));
1336 } 1355 }
1337
1338 } 1356 }
1339 1357
1340 1358 /// Specifies the audit configuration for a service. The configuration
1341 1359 /// determines which permission types are logged, and what identities, if any,
1342 /** 1360 /// are exempted from logging. An AuditConfig must have one or more
1343 * Specifies the audit configuration for a service. The configuration determines 1361 /// AuditLogConfigs.
1344 * which permission types are logged, and what identities, if any, are exempted 1362 ///
1345 * from logging. An AuditConfig must have one or more AuditLogConfigs. 1363 /// If there are AuditConfigs for both `allServices` and a specific service,
1346 * 1364 /// the union of the two AuditConfigs is used for that service: the log_types
1347 * If there are AuditConfigs for both `allServices` and a specific service, the 1365 /// specified in each AuditConfig are enabled, and the exempted_members in each
1348 * union of the two AuditConfigs is used for that service: the log_types 1366 /// AuditConfig are exempted.
1349 * specified in each AuditConfig are enabled, and the exempted_members in each 1367 ///
1350 * AuditConfig are exempted. 1368 /// Example Policy with multiple AuditConfigs:
1351 * 1369 ///
1352 * Example Policy with multiple AuditConfigs: 1370 /// { "audit_configs": [ { "service": "allServices" "audit_log_configs": [ {
1353 * 1371 /// "log_type": "DATA_READ", "exempted_members": [ "user:foo@gmail.com" ] }, {
1354 * { "audit_configs": [ { "service": "allServices" "audit_log_configs": [ { 1372 /// "log_type": "DATA_WRITE", }, { "log_type": "ADMIN_READ", } ] }, {
1355 * "log_type": "DATA_READ", "exempted_members": [ "user:foo@gmail.com" ] }, { 1373 /// "service": "fooservice.googleapis.com" "audit_log_configs": [ { "log_type":
1356 * "log_type": "DATA_WRITE", }, { "log_type": "ADMIN_READ", } ] }, { "service": 1374 /// "DATA_READ", }, { "log_type": "DATA_WRITE", "exempted_members": [
1357 * "fooservice.googleapis.com" "audit_log_configs": [ { "log_type": "DATA_READ", 1375 /// "user:bar@gmail.com" ] } ] } ] }
1358 * }, { "log_type": "DATA_WRITE", "exempted_members": [ "user:bar@gmail.com" ] } 1376 ///
1359 * ] } ] } 1377 /// For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
1360 * 1378 /// logging. It also exempts foo@gmail.com from DATA_READ logging, and
1361 * For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ 1379 /// bar@gmail.com from DATA_WRITE logging.
1362 * logging. It also exempts foo@gmail.com from DATA_READ logging, and
1363 * bar@gmail.com from DATA_WRITE logging.
1364 */
1365 class AuditConfig { 1380 class AuditConfig {
1366 /** The configuration for logging of each type of permission. */ 1381 /// The configuration for logging of each type of permission.
1367 core.List<AuditLogConfig> auditLogConfigs; 1382 core.List<AuditLogConfig> auditLogConfigs;
1368 core.List<core.String> exemptedMembers; 1383 core.List<core.String> exemptedMembers;
1369 /** 1384
1370 * Specifies a service that will be enabled for audit logging. For example, 1385 /// Specifies a service that will be enabled for audit logging. For example,
1371 * `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a 1386 /// `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a
1372 * special value that covers all services. 1387 /// special value that covers all services.
1373 */
1374 core.String service; 1388 core.String service;
1375 1389
1376 AuditConfig(); 1390 AuditConfig();
1377 1391
1378 AuditConfig.fromJson(core.Map _json) { 1392 AuditConfig.fromJson(core.Map _json) {
1379 if (_json.containsKey("auditLogConfigs")) { 1393 if (_json.containsKey("auditLogConfigs")) {
1380 auditLogConfigs = _json["auditLogConfigs"].map((value) => new AuditLogConf ig.fromJson(value)).toList(); 1394 auditLogConfigs = _json["auditLogConfigs"]
1395 .map((value) => new AuditLogConfig.fromJson(value))
1396 .toList();
1381 } 1397 }
1382 if (_json.containsKey("exemptedMembers")) { 1398 if (_json.containsKey("exemptedMembers")) {
1383 exemptedMembers = _json["exemptedMembers"]; 1399 exemptedMembers = _json["exemptedMembers"];
1384 } 1400 }
1385 if (_json.containsKey("service")) { 1401 if (_json.containsKey("service")) {
1386 service = _json["service"]; 1402 service = _json["service"];
1387 } 1403 }
1388 } 1404 }
1389 1405
1390 core.Map<core.String, core.Object> toJson() { 1406 core.Map<core.String, core.Object> toJson() {
1391 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1407 final core.Map<core.String, core.Object> _json =
1408 new core.Map<core.String, core.Object>();
1392 if (auditLogConfigs != null) { 1409 if (auditLogConfigs != null) {
1393 _json["auditLogConfigs"] = auditLogConfigs.map((value) => (value).toJson() ).toList(); 1410 _json["auditLogConfigs"] =
1411 auditLogConfigs.map((value) => (value).toJson()).toList();
1394 } 1412 }
1395 if (exemptedMembers != null) { 1413 if (exemptedMembers != null) {
1396 _json["exemptedMembers"] = exemptedMembers; 1414 _json["exemptedMembers"] = exemptedMembers;
1397 } 1415 }
1398 if (service != null) { 1416 if (service != null) {
1399 _json["service"] = service; 1417 _json["service"] = service;
1400 } 1418 }
1401 return _json; 1419 return _json;
1402 } 1420 }
1403 } 1421 }
1404 1422
1405 /** 1423 /// Provides the configuration for logging a type of permissions. Example:
1406 * Provides the configuration for logging a type of permissions. Example: 1424 ///
1407 * 1425 /// { "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [
1408 * { "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ 1426 /// "user:foo@gmail.com" ] }, { "log_type": "DATA_WRITE", } ] }
1409 * "user:foo@gmail.com" ] }, { "log_type": "DATA_WRITE", } ] } 1427 ///
1410 * 1428 /// This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting
1411 * This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting 1429 /// foo@gmail.com from DATA_READ logging.
1412 * foo@gmail.com from DATA_READ logging.
1413 */
1414 class AuditLogConfig { 1430 class AuditLogConfig {
1415 /** 1431 /// Specifies the identities that do not cause logging for this type of
1416 * Specifies the identities that do not cause logging for this type of 1432 /// permission. Follows the same format of [Binding.members][].
1417 * permission. Follows the same format of [Binding.members][].
1418 */
1419 core.List<core.String> exemptedMembers; 1433 core.List<core.String> exemptedMembers;
1420 /** The log type that this config enables. */ 1434
1435 /// The log type that this config enables.
1421 core.String logType; 1436 core.String logType;
1422 1437
1423 AuditLogConfig(); 1438 AuditLogConfig();
1424 1439
1425 AuditLogConfig.fromJson(core.Map _json) { 1440 AuditLogConfig.fromJson(core.Map _json) {
1426 if (_json.containsKey("exemptedMembers")) { 1441 if (_json.containsKey("exemptedMembers")) {
1427 exemptedMembers = _json["exemptedMembers"]; 1442 exemptedMembers = _json["exemptedMembers"];
1428 } 1443 }
1429 if (_json.containsKey("logType")) { 1444 if (_json.containsKey("logType")) {
1430 logType = _json["logType"]; 1445 logType = _json["logType"];
1431 } 1446 }
1432 } 1447 }
1433 1448
1434 core.Map<core.String, core.Object> toJson() { 1449 core.Map<core.String, core.Object> toJson() {
1435 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1450 final core.Map<core.String, core.Object> _json =
1451 new core.Map<core.String, core.Object>();
1436 if (exemptedMembers != null) { 1452 if (exemptedMembers != null) {
1437 _json["exemptedMembers"] = exemptedMembers; 1453 _json["exemptedMembers"] = exemptedMembers;
1438 } 1454 }
1439 if (logType != null) { 1455 if (logType != null) {
1440 _json["logType"] = logType; 1456 _json["logType"] = logType;
1441 } 1457 }
1442 return _json; 1458 return _json;
1443 } 1459 }
1444 } 1460 }
1445 1461
1446 /** Authorization-related information used by Cloud Audit Logging. */ 1462 /// Authorization-related information used by Cloud Audit Logging.
1447 class AuthorizationLoggingOptions { 1463 class AuthorizationLoggingOptions {
1448 /** The type of the permission that was checked. */ 1464 /// The type of the permission that was checked.
1449 core.String permissionType; 1465 core.String permissionType;
1450 1466
1451 AuthorizationLoggingOptions(); 1467 AuthorizationLoggingOptions();
1452 1468
1453 AuthorizationLoggingOptions.fromJson(core.Map _json) { 1469 AuthorizationLoggingOptions.fromJson(core.Map _json) {
1454 if (_json.containsKey("permissionType")) { 1470 if (_json.containsKey("permissionType")) {
1455 permissionType = _json["permissionType"]; 1471 permissionType = _json["permissionType"];
1456 } 1472 }
1457 } 1473 }
1458 1474
1459 core.Map<core.String, core.Object> toJson() { 1475 core.Map<core.String, core.Object> toJson() {
1460 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1476 final core.Map<core.String, core.Object> _json =
1477 new core.Map<core.String, core.Object>();
1461 if (permissionType != null) { 1478 if (permissionType != null) {
1462 _json["permissionType"] = permissionType; 1479 _json["permissionType"] = permissionType;
1463 } 1480 }
1464 return _json; 1481 return _json;
1465 } 1482 }
1466 } 1483 }
1467 1484
1468 /** Associates `members` with a `role`. */ 1485 /// Associates `members` with a `role`.
1469 class Binding { 1486 class Binding {
1470 /** 1487 /// The condition that is associated with this binding. NOTE: an unsatisfied
1471 * The condition that is associated with this binding. NOTE: an unsatisfied 1488 /// condition will not allow user access via current binding. Different
1472 * condition will not allow user access via current binding. Different 1489 /// bindings, including their conditions, are examined independently. This
1473 * bindings, including their conditions, are examined independently. This 1490 /// field is GOOGLE_INTERNAL.
1474 * field is GOOGLE_INTERNAL.
1475 */
1476 Expr condition; 1491 Expr condition;
1477 /** 1492
1478 * Specifies the identities requesting access for a Cloud Platform resource. 1493 /// Specifies the identities requesting access for a Cloud Platform resource.
1479 * `members` can have the following values: 1494 /// `members` can have the following values:
1480 * 1495 ///
1481 * * `allUsers`: A special identifier that represents anyone who is on the 1496 /// * `allUsers`: A special identifier that represents anyone who is on the
1482 * internet; with or without a Google account. 1497 /// internet; with or without a Google account.
1483 * 1498 ///
1484 * * `allAuthenticatedUsers`: A special identifier that represents anyone who 1499 /// * `allAuthenticatedUsers`: A special identifier that represents anyone
1485 * is authenticated with a Google account or a service account. 1500 /// who is authenticated with a Google account or a service account.
1486 * 1501 ///
1487 * * `user:{emailid}`: An email address that represents a specific Google 1502 /// * `user:{emailid}`: An email address that represents a specific Google
1488 * account. For example, `alice@gmail.com` or `joe@example.com`. 1503 /// account. For example, `alice@gmail.com` or `joe@example.com`.
1489 * 1504 ///
1490 * 1505 ///
1491 * 1506 ///
1492 * * `serviceAccount:{emailid}`: An email address that represents a service 1507 /// * `serviceAccount:{emailid}`: An email address that represents a service
1493 * account. For example, `my-other-app@appspot.gserviceaccount.com`. 1508 /// account. For example, `my-other-app@appspot.gserviceaccount.com`.
1494 * 1509 ///
1495 * * `group:{emailid}`: An email address that represents a Google group. For 1510 /// * `group:{emailid}`: An email address that represents a Google group. For
1496 * example, `admins@example.com`. 1511 /// example, `admins@example.com`.
1497 * 1512 ///
1498 * 1513 ///
1499 * 1514 ///
1500 * * `domain:{domain}`: A Google Apps domain name that represents all the 1515 /// * `domain:{domain}`: A Google Apps domain name that represents all the
1501 * users of that domain. For example, `google.com` or `example.com`. 1516 /// users of that domain. For example, `google.com` or `example.com`.
1502 */
1503 core.List<core.String> members; 1517 core.List<core.String> members;
1504 /** 1518
1505 * Role that is assigned to `members`. For example, `roles/viewer`, 1519 /// Role that is assigned to `members`. For example, `roles/viewer`,
1506 * `roles/editor`, or `roles/owner`. 1520 /// `roles/editor`, or `roles/owner`.
1507 */
1508 core.String role; 1521 core.String role;
1509 1522
1510 Binding(); 1523 Binding();
1511 1524
1512 Binding.fromJson(core.Map _json) { 1525 Binding.fromJson(core.Map _json) {
1513 if (_json.containsKey("condition")) { 1526 if (_json.containsKey("condition")) {
1514 condition = new Expr.fromJson(_json["condition"]); 1527 condition = new Expr.fromJson(_json["condition"]);
1515 } 1528 }
1516 if (_json.containsKey("members")) { 1529 if (_json.containsKey("members")) {
1517 members = _json["members"]; 1530 members = _json["members"];
1518 } 1531 }
1519 if (_json.containsKey("role")) { 1532 if (_json.containsKey("role")) {
1520 role = _json["role"]; 1533 role = _json["role"];
1521 } 1534 }
1522 } 1535 }
1523 1536
1524 core.Map<core.String, core.Object> toJson() { 1537 core.Map<core.String, core.Object> toJson() {
1525 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1538 final core.Map<core.String, core.Object> _json =
1539 new core.Map<core.String, core.Object>();
1526 if (condition != null) { 1540 if (condition != null) {
1527 _json["condition"] = (condition).toJson(); 1541 _json["condition"] = (condition).toJson();
1528 } 1542 }
1529 if (members != null) { 1543 if (members != null) {
1530 _json["members"] = members; 1544 _json["members"] = members;
1531 } 1545 }
1532 if (role != null) { 1546 if (role != null) {
1533 _json["role"] = role; 1547 _json["role"] = role;
1534 } 1548 }
1535 return _json; 1549 return _json;
1536 } 1550 }
1537 } 1551 }
1538 1552
1539 /** A condition to be met. */ 1553 /// A condition to be met.
1540 class Condition { 1554 class Condition {
1541 /** Trusted attributes supplied by the IAM system. */ 1555 /// Trusted attributes supplied by the IAM system.
1542 core.String iam; 1556 core.String iam;
1543 /** An operator to apply the subject with. */ 1557
1558 /// An operator to apply the subject with.
1544 core.String op; 1559 core.String op;
1545 /** Trusted attributes discharged by the service. */ 1560
1561 /// Trusted attributes discharged by the service.
1546 core.String svc; 1562 core.String svc;
1547 /** 1563
1548 * Trusted attributes supplied by any service that owns resources and uses the 1564 /// Trusted attributes supplied by any service that owns resources and uses
1549 * IAM system for access control. 1565 /// the IAM system for access control.
1550 */
1551 core.String sys; 1566 core.String sys;
1552 /** DEPRECATED. Use 'values' instead. */ 1567
1568 /// DEPRECATED. Use 'values' instead.
1553 core.String value; 1569 core.String value;
1554 /** The objects of the condition. This is mutually exclusive with 'value'. */ 1570
1571 /// The objects of the condition. This is mutually exclusive with 'value'.
1555 core.List<core.String> values; 1572 core.List<core.String> values;
1556 1573
1557 Condition(); 1574 Condition();
1558 1575
1559 Condition.fromJson(core.Map _json) { 1576 Condition.fromJson(core.Map _json) {
1560 if (_json.containsKey("iam")) { 1577 if (_json.containsKey("iam")) {
1561 iam = _json["iam"]; 1578 iam = _json["iam"];
1562 } 1579 }
1563 if (_json.containsKey("op")) { 1580 if (_json.containsKey("op")) {
1564 op = _json["op"]; 1581 op = _json["op"];
1565 } 1582 }
1566 if (_json.containsKey("svc")) { 1583 if (_json.containsKey("svc")) {
1567 svc = _json["svc"]; 1584 svc = _json["svc"];
1568 } 1585 }
1569 if (_json.containsKey("sys")) { 1586 if (_json.containsKey("sys")) {
1570 sys = _json["sys"]; 1587 sys = _json["sys"];
1571 } 1588 }
1572 if (_json.containsKey("value")) { 1589 if (_json.containsKey("value")) {
1573 value = _json["value"]; 1590 value = _json["value"];
1574 } 1591 }
1575 if (_json.containsKey("values")) { 1592 if (_json.containsKey("values")) {
1576 values = _json["values"]; 1593 values = _json["values"];
1577 } 1594 }
1578 } 1595 }
1579 1596
1580 core.Map<core.String, core.Object> toJson() { 1597 core.Map<core.String, core.Object> toJson() {
1581 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1598 final core.Map<core.String, core.Object> _json =
1599 new core.Map<core.String, core.Object>();
1582 if (iam != null) { 1600 if (iam != null) {
1583 _json["iam"] = iam; 1601 _json["iam"] = iam;
1584 } 1602 }
1585 if (op != null) { 1603 if (op != null) {
1586 _json["op"] = op; 1604 _json["op"] = op;
1587 } 1605 }
1588 if (svc != null) { 1606 if (svc != null) {
1589 _json["svc"] = svc; 1607 _json["svc"] = svc;
1590 } 1608 }
1591 if (sys != null) { 1609 if (sys != null) {
1592 _json["sys"] = sys; 1610 _json["sys"] = sys;
1593 } 1611 }
1594 if (value != null) { 1612 if (value != null) {
1595 _json["value"] = value; 1613 _json["value"] = value;
1596 } 1614 }
1597 if (values != null) { 1615 if (values != null) {
1598 _json["values"] = values; 1616 _json["values"] = values;
1599 } 1617 }
1600 return _json; 1618 return _json;
1601 } 1619 }
1602 } 1620 }
1603 1621
1604 class ConfigFile { 1622 class ConfigFile {
1605 /** The contents of the file. */ 1623 /// The contents of the file.
1606 core.String content; 1624 core.String content;
1607 1625
1608 ConfigFile(); 1626 ConfigFile();
1609 1627
1610 ConfigFile.fromJson(core.Map _json) { 1628 ConfigFile.fromJson(core.Map _json) {
1611 if (_json.containsKey("content")) { 1629 if (_json.containsKey("content")) {
1612 content = _json["content"]; 1630 content = _json["content"];
1613 } 1631 }
1614 } 1632 }
1615 1633
1616 core.Map<core.String, core.Object> toJson() { 1634 core.Map<core.String, core.Object> toJson() {
1617 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1635 final core.Map<core.String, core.Object> _json =
1636 new core.Map<core.String, core.Object>();
1618 if (content != null) { 1637 if (content != null) {
1619 _json["content"] = content; 1638 _json["content"] = content;
1620 } 1639 }
1621 return _json; 1640 return _json;
1622 } 1641 }
1623 } 1642 }
1624 1643
1625 class Deployment { 1644 class Deployment {
1626 /** An optional user-provided description of the deployment. */ 1645 /// An optional user-provided description of the deployment.
1627 core.String description; 1646 core.String description;
1628 /** 1647
1629 * Provides a fingerprint to use in requests to modify a deployment, such as 1648 /// Provides a fingerprint to use in requests to modify a deployment, such as
1630 * update(), stop(), and cancelPreview() requests. A fingerprint is a randomly 1649 /// update(), stop(), and cancelPreview() requests. A fingerprint is a
1631 * generated value that must be provided with update(), stop(), and 1650 /// randomly generated value that must be provided with update(), stop(), and
1632 * cancelPreview() requests to perform optimistic locking. This ensures 1651 /// cancelPreview() requests to perform optimistic locking. This ensures
1633 * optimistic concurrency so that only one request happens at a time. 1652 /// optimistic concurrency so that only one request happens at a time.
1634 * 1653 ///
1635 * The fingerprint is initially generated by Deployment Manager and changes 1654 /// The fingerprint is initially generated by Deployment Manager and changes
1636 * after every request to modify data. To get the latest fingerprint value, 1655 /// after every request to modify data. To get the latest fingerprint value,
1637 * perform a get() request to a deployment. 1656 /// perform a get() request to a deployment.
1638 */
1639 core.String fingerprint; 1657 core.String fingerprint;
1640 core.List<core.int> get fingerprintAsBytes { 1658 core.List<core.int> get fingerprintAsBytes {
1641 return convert.BASE64.decode(fingerprint); 1659 return convert.BASE64.decode(fingerprint);
1642 } 1660 }
1643 1661
1644 void set fingerprintAsBytes(core.List<core.int> _bytes) { 1662 void set fingerprintAsBytes(core.List<core.int> _bytes) {
1645 fingerprint = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll( "+", "-"); 1663 fingerprint =
1664 convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-");
1646 } 1665 }
1647 /** 1666
1648 * [Output Only] Unique identifier for the resource; defined by the server. 1667 /// [Output Only] Unique identifier for the resource; defined by the server.
1649 */
1650 core.String id; 1668 core.String id;
1651 /** 1669
1652 * [Output Only] Timestamp when the deployment was created, in RFC3339 text 1670 /// [Output Only] Timestamp when the deployment was created, in RFC3339 text
1653 * format . 1671 /// format .
1654 */
1655 core.String insertTime; 1672 core.String insertTime;
1656 /** 1673
1657 * Map of labels; provided by the client when the resource is created or 1674 /// Map of labels; provided by the client when the resource is created or
1658 * updated. Specifically: Label keys must be between 1 and 63 characters long 1675 /// updated. Specifically: Label keys must be between 1 and 63 characters
1659 * and must conform to the following regular expression: 1676 /// long and must conform to the following regular expression:
1660 * [a-z]([-a-z0-9]*[a-z0-9])? Label values must be between 0 and 63 characters 1677 /// [a-z]([-a-z0-9]*[a-z0-9])? Label values must be between 0 and 63
1661 * long and must conform to the regular expression 1678 /// characters long and must conform to the regular expression
1662 * ([a-z]([-a-z0-9]*[a-z0-9])?)? 1679 /// ([a-z]([-a-z0-9]*[a-z0-9])?)?
1663 */
1664 core.List<DeploymentLabelEntry> labels; 1680 core.List<DeploymentLabelEntry> labels;
1665 /** 1681
1666 * [Output Only] URL of the manifest representing the last manifest that was 1682 /// [Output Only] URL of the manifest representing the last manifest that was
1667 * successfully deployed. 1683 /// successfully deployed.
1668 */
1669 core.String manifest; 1684 core.String manifest;
1670 /** 1685
1671 * Name of the resource; provided by the client when the resource is created. 1686 /// Name of the resource; provided by the client when the resource is
1672 * The name must be 1-63 characters long, and comply with RFC1035. 1687 /// created. The name must be 1-63 characters long, and comply with RFC1035.
1673 * Specifically, the name must be 1-63 characters long and match the regular 1688 /// Specifically, the name must be 1-63 characters long and match the regular
1674 * expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must 1689 /// expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character
1675 * be a lowercase letter, and all following characters must be a dash, 1690 /// must be a lowercase letter, and all following characters must be a dash,
1676 * lowercase letter, or digit, except the last character, which cannot be a 1691 /// lowercase letter, or digit, except the last character, which cannot be a
1677 * dash. 1692 /// dash.
1678 */
1679 core.String name; 1693 core.String name;
1680 /** 1694
1681 * [Output Only] The Operation that most recently ran, or is currently 1695 /// [Output Only] The Operation that most recently ran, or is currently
1682 * running, on this deployment. 1696 /// running, on this deployment.
1683 */
1684 Operation operation; 1697 Operation operation;
1685 /** [Output Only] Self link for the deployment. */ 1698
1699 /// [Output Only] Self link for the deployment.
1686 core.String selfLink; 1700 core.String selfLink;
1687 /** 1701
1688 * [Input Only] The parameters that define your deployment, including the 1702 /// [Input Only] The parameters that define your deployment, including the
1689 * deployment configuration and relevant templates. 1703 /// deployment configuration and relevant templates.
1690 */
1691 TargetConfiguration target; 1704 TargetConfiguration target;
1692 /** 1705
1693 * [Output Only] If Deployment Manager is currently updating or previewing an 1706 /// [Output Only] If Deployment Manager is currently updating or previewing
1694 * update to this deployment, the updated configuration appears here. 1707 /// an update to this deployment, the updated configuration appears here.
1695 */
1696 DeploymentUpdate update; 1708 DeploymentUpdate update;
1697 1709
1698 Deployment(); 1710 Deployment();
1699 1711
1700 Deployment.fromJson(core.Map _json) { 1712 Deployment.fromJson(core.Map _json) {
1701 if (_json.containsKey("description")) { 1713 if (_json.containsKey("description")) {
1702 description = _json["description"]; 1714 description = _json["description"];
1703 } 1715 }
1704 if (_json.containsKey("fingerprint")) { 1716 if (_json.containsKey("fingerprint")) {
1705 fingerprint = _json["fingerprint"]; 1717 fingerprint = _json["fingerprint"];
1706 } 1718 }
1707 if (_json.containsKey("id")) { 1719 if (_json.containsKey("id")) {
1708 id = _json["id"]; 1720 id = _json["id"];
1709 } 1721 }
1710 if (_json.containsKey("insertTime")) { 1722 if (_json.containsKey("insertTime")) {
1711 insertTime = _json["insertTime"]; 1723 insertTime = _json["insertTime"];
1712 } 1724 }
1713 if (_json.containsKey("labels")) { 1725 if (_json.containsKey("labels")) {
1714 labels = _json["labels"].map((value) => new DeploymentLabelEntry.fromJson( value)).toList(); 1726 labels = _json["labels"]
1727 .map((value) => new DeploymentLabelEntry.fromJson(value))
1728 .toList();
1715 } 1729 }
1716 if (_json.containsKey("manifest")) { 1730 if (_json.containsKey("manifest")) {
1717 manifest = _json["manifest"]; 1731 manifest = _json["manifest"];
1718 } 1732 }
1719 if (_json.containsKey("name")) { 1733 if (_json.containsKey("name")) {
1720 name = _json["name"]; 1734 name = _json["name"];
1721 } 1735 }
1722 if (_json.containsKey("operation")) { 1736 if (_json.containsKey("operation")) {
1723 operation = new Operation.fromJson(_json["operation"]); 1737 operation = new Operation.fromJson(_json["operation"]);
1724 } 1738 }
1725 if (_json.containsKey("selfLink")) { 1739 if (_json.containsKey("selfLink")) {
1726 selfLink = _json["selfLink"]; 1740 selfLink = _json["selfLink"];
1727 } 1741 }
1728 if (_json.containsKey("target")) { 1742 if (_json.containsKey("target")) {
1729 target = new TargetConfiguration.fromJson(_json["target"]); 1743 target = new TargetConfiguration.fromJson(_json["target"]);
1730 } 1744 }
1731 if (_json.containsKey("update")) { 1745 if (_json.containsKey("update")) {
1732 update = new DeploymentUpdate.fromJson(_json["update"]); 1746 update = new DeploymentUpdate.fromJson(_json["update"]);
1733 } 1747 }
1734 } 1748 }
1735 1749
1736 core.Map<core.String, core.Object> toJson() { 1750 core.Map<core.String, core.Object> toJson() {
1737 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1751 final core.Map<core.String, core.Object> _json =
1752 new core.Map<core.String, core.Object>();
1738 if (description != null) { 1753 if (description != null) {
1739 _json["description"] = description; 1754 _json["description"] = description;
1740 } 1755 }
1741 if (fingerprint != null) { 1756 if (fingerprint != null) {
1742 _json["fingerprint"] = fingerprint; 1757 _json["fingerprint"] = fingerprint;
1743 } 1758 }
1744 if (id != null) { 1759 if (id != null) {
1745 _json["id"] = id; 1760 _json["id"] = id;
1746 } 1761 }
1747 if (insertTime != null) { 1762 if (insertTime != null) {
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
1781 DeploymentLabelEntry.fromJson(core.Map _json) { 1796 DeploymentLabelEntry.fromJson(core.Map _json) {
1782 if (_json.containsKey("key")) { 1797 if (_json.containsKey("key")) {
1783 key = _json["key"]; 1798 key = _json["key"];
1784 } 1799 }
1785 if (_json.containsKey("value")) { 1800 if (_json.containsKey("value")) {
1786 value = _json["value"]; 1801 value = _json["value"];
1787 } 1802 }
1788 } 1803 }
1789 1804
1790 core.Map<core.String, core.Object> toJson() { 1805 core.Map<core.String, core.Object> toJson() {
1791 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1806 final core.Map<core.String, core.Object> _json =
1807 new core.Map<core.String, core.Object>();
1792 if (key != null) { 1808 if (key != null) {
1793 _json["key"] = key; 1809 _json["key"] = key;
1794 } 1810 }
1795 if (value != null) { 1811 if (value != null) {
1796 _json["value"] = value; 1812 _json["value"] = value;
1797 } 1813 }
1798 return _json; 1814 return _json;
1799 } 1815 }
1800 } 1816 }
1801 1817
1802 class DeploymentUpdate { 1818 class DeploymentUpdate {
1803 /** 1819 /// [Output Only] An optional user-provided description of the deployment
1804 * [Output Only] An optional user-provided description of the deployment after 1820 /// after the current update has been applied.
1805 * the current update has been applied.
1806 */
1807 core.String description; 1821 core.String description;
1808 /** 1822
1809 * [Output Only] Map of labels; provided by the client when the resource is 1823 /// [Output Only] Map of labels; provided by the client when the resource is
1810 * created or updated. Specifically: Label keys must be between 1 and 63 1824 /// created or updated. Specifically: Label keys must be between 1 and 63
1811 * characters long and must conform to the following regular expression: 1825 /// characters long and must conform to the following regular expression:
1812 * [a-z]([-a-z0-9]*[a-z0-9])? Label values must be between 0 and 63 characters 1826 /// [a-z]([-a-z0-9]*[a-z0-9])? Label values must be between 0 and 63
1813 * long and must conform to the regular expression 1827 /// characters long and must conform to the regular expression
1814 * ([a-z]([-a-z0-9]*[a-z0-9])?)? 1828 /// ([a-z]([-a-z0-9]*[a-z0-9])?)?
1815 */
1816 core.List<DeploymentUpdateLabelEntry> labels; 1829 core.List<DeploymentUpdateLabelEntry> labels;
1817 /** 1830
1818 * [Output Only] URL of the manifest representing the update configuration of 1831 /// [Output Only] URL of the manifest representing the update configuration
1819 * this deployment. 1832 /// of this deployment.
1820 */
1821 core.String manifest; 1833 core.String manifest;
1822 1834
1823 DeploymentUpdate(); 1835 DeploymentUpdate();
1824 1836
1825 DeploymentUpdate.fromJson(core.Map _json) { 1837 DeploymentUpdate.fromJson(core.Map _json) {
1826 if (_json.containsKey("description")) { 1838 if (_json.containsKey("description")) {
1827 description = _json["description"]; 1839 description = _json["description"];
1828 } 1840 }
1829 if (_json.containsKey("labels")) { 1841 if (_json.containsKey("labels")) {
1830 labels = _json["labels"].map((value) => new DeploymentUpdateLabelEntry.fro mJson(value)).toList(); 1842 labels = _json["labels"]
1843 .map((value) => new DeploymentUpdateLabelEntry.fromJson(value))
1844 .toList();
1831 } 1845 }
1832 if (_json.containsKey("manifest")) { 1846 if (_json.containsKey("manifest")) {
1833 manifest = _json["manifest"]; 1847 manifest = _json["manifest"];
1834 } 1848 }
1835 } 1849 }
1836 1850
1837 core.Map<core.String, core.Object> toJson() { 1851 core.Map<core.String, core.Object> toJson() {
1838 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1852 final core.Map<core.String, core.Object> _json =
1853 new core.Map<core.String, core.Object>();
1839 if (description != null) { 1854 if (description != null) {
1840 _json["description"] = description; 1855 _json["description"] = description;
1841 } 1856 }
1842 if (labels != null) { 1857 if (labels != null) {
1843 _json["labels"] = labels.map((value) => (value).toJson()).toList(); 1858 _json["labels"] = labels.map((value) => (value).toJson()).toList();
1844 } 1859 }
1845 if (manifest != null) { 1860 if (manifest != null) {
1846 _json["manifest"] = manifest; 1861 _json["manifest"] = manifest;
1847 } 1862 }
1848 return _json; 1863 return _json;
1849 } 1864 }
1850 } 1865 }
1851 1866
1852 class DeploymentUpdateLabelEntry { 1867 class DeploymentUpdateLabelEntry {
1853 core.String key; 1868 core.String key;
1854 core.String value; 1869 core.String value;
1855 1870
1856 DeploymentUpdateLabelEntry(); 1871 DeploymentUpdateLabelEntry();
1857 1872
1858 DeploymentUpdateLabelEntry.fromJson(core.Map _json) { 1873 DeploymentUpdateLabelEntry.fromJson(core.Map _json) {
1859 if (_json.containsKey("key")) { 1874 if (_json.containsKey("key")) {
1860 key = _json["key"]; 1875 key = _json["key"];
1861 } 1876 }
1862 if (_json.containsKey("value")) { 1877 if (_json.containsKey("value")) {
1863 value = _json["value"]; 1878 value = _json["value"];
1864 } 1879 }
1865 } 1880 }
1866 1881
1867 core.Map<core.String, core.Object> toJson() { 1882 core.Map<core.String, core.Object> toJson() {
1868 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1883 final core.Map<core.String, core.Object> _json =
1884 new core.Map<core.String, core.Object>();
1869 if (key != null) { 1885 if (key != null) {
1870 _json["key"] = key; 1886 _json["key"] = key;
1871 } 1887 }
1872 if (value != null) { 1888 if (value != null) {
1873 _json["value"] = value; 1889 _json["value"] = value;
1874 } 1890 }
1875 return _json; 1891 return _json;
1876 } 1892 }
1877 } 1893 }
1878 1894
1879 class DeploymentsCancelPreviewRequest { 1895 class DeploymentsCancelPreviewRequest {
1880 /** 1896 /// Specifies a fingerprint for cancelPreview() requests. A fingerprint is a
1881 * Specifies a fingerprint for cancelPreview() requests. A fingerprint is a 1897 /// randomly generated value that must be provided in cancelPreview()
1882 * randomly generated value that must be provided in cancelPreview() requests 1898 /// requests to perform optimistic locking. This ensures optimistic
1883 * to perform optimistic locking. This ensures optimistic concurrency so that 1899 /// concurrency so that the deployment does not have conflicting requests
1884 * the deployment does not have conflicting requests (e.g. if someone attempts 1900 /// (e.g. if someone attempts to make a new update request while another user
1885 * to make a new update request while another user attempts to cancel a 1901 /// attempts to cancel a preview, this would prevent one of the requests).
1886 * preview, this would prevent one of the requests). 1902 ///
1887 * 1903 /// The fingerprint is initially generated by Deployment Manager and changes
1888 * The fingerprint is initially generated by Deployment Manager and changes 1904 /// after every request to modify a deployment. To get the latest fingerprint
1889 * after every request to modify a deployment. To get the latest fingerprint 1905 /// value, perform a get() request on the deployment.
1890 * value, perform a get() request on the deployment.
1891 */
1892 core.String fingerprint; 1906 core.String fingerprint;
1893 core.List<core.int> get fingerprintAsBytes { 1907 core.List<core.int> get fingerprintAsBytes {
1894 return convert.BASE64.decode(fingerprint); 1908 return convert.BASE64.decode(fingerprint);
1895 } 1909 }
1896 1910
1897 void set fingerprintAsBytes(core.List<core.int> _bytes) { 1911 void set fingerprintAsBytes(core.List<core.int> _bytes) {
1898 fingerprint = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll( "+", "-"); 1912 fingerprint =
1913 convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-");
1899 } 1914 }
1900 1915
1901 DeploymentsCancelPreviewRequest(); 1916 DeploymentsCancelPreviewRequest();
1902 1917
1903 DeploymentsCancelPreviewRequest.fromJson(core.Map _json) { 1918 DeploymentsCancelPreviewRequest.fromJson(core.Map _json) {
1904 if (_json.containsKey("fingerprint")) { 1919 if (_json.containsKey("fingerprint")) {
1905 fingerprint = _json["fingerprint"]; 1920 fingerprint = _json["fingerprint"];
1906 } 1921 }
1907 } 1922 }
1908 1923
1909 core.Map<core.String, core.Object> toJson() { 1924 core.Map<core.String, core.Object> toJson() {
1910 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1925 final core.Map<core.String, core.Object> _json =
1926 new core.Map<core.String, core.Object>();
1911 if (fingerprint != null) { 1927 if (fingerprint != null) {
1912 _json["fingerprint"] = fingerprint; 1928 _json["fingerprint"] = fingerprint;
1913 } 1929 }
1914 return _json; 1930 return _json;
1915 } 1931 }
1916 } 1932 }
1917 1933
1918 /** 1934 /// A response containing a partial list of deployments and a page token used
1919 * A response containing a partial list of deployments and a page token used to 1935 /// to build the next request if the request has been truncated.
1920 * build the next request if the request has been truncated.
1921 */
1922 class DeploymentsListResponse { 1936 class DeploymentsListResponse {
1923 /** [Output Only] The deployments contained in this response. */ 1937 /// [Output Only] The deployments contained in this response.
1924 core.List<Deployment> deployments; 1938 core.List<Deployment> deployments;
1925 /** [Output Only] A token used to continue a truncated list request. */ 1939
1940 /// [Output Only] A token used to continue a truncated list request.
1926 core.String nextPageToken; 1941 core.String nextPageToken;
1927 1942
1928 DeploymentsListResponse(); 1943 DeploymentsListResponse();
1929 1944
1930 DeploymentsListResponse.fromJson(core.Map _json) { 1945 DeploymentsListResponse.fromJson(core.Map _json) {
1931 if (_json.containsKey("deployments")) { 1946 if (_json.containsKey("deployments")) {
1932 deployments = _json["deployments"].map((value) => new Deployment.fromJson( value)).toList(); 1947 deployments = _json["deployments"]
1948 .map((value) => new Deployment.fromJson(value))
1949 .toList();
1933 } 1950 }
1934 if (_json.containsKey("nextPageToken")) { 1951 if (_json.containsKey("nextPageToken")) {
1935 nextPageToken = _json["nextPageToken"]; 1952 nextPageToken = _json["nextPageToken"];
1936 } 1953 }
1937 } 1954 }
1938 1955
1939 core.Map<core.String, core.Object> toJson() { 1956 core.Map<core.String, core.Object> toJson() {
1940 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1957 final core.Map<core.String, core.Object> _json =
1958 new core.Map<core.String, core.Object>();
1941 if (deployments != null) { 1959 if (deployments != null) {
1942 _json["deployments"] = deployments.map((value) => (value).toJson()).toList (); 1960 _json["deployments"] =
1961 deployments.map((value) => (value).toJson()).toList();
1943 } 1962 }
1944 if (nextPageToken != null) { 1963 if (nextPageToken != null) {
1945 _json["nextPageToken"] = nextPageToken; 1964 _json["nextPageToken"] = nextPageToken;
1946 } 1965 }
1947 return _json; 1966 return _json;
1948 } 1967 }
1949 } 1968 }
1950 1969
1951 class DeploymentsStopRequest { 1970 class DeploymentsStopRequest {
1952 /** 1971 /// Specifies a fingerprint for stop() requests. A fingerprint is a randomly
1953 * Specifies a fingerprint for stop() requests. A fingerprint is a randomly 1972 /// generated value that must be provided in stop() requests to perform
1954 * generated value that must be provided in stop() requests to perform 1973 /// optimistic locking. This ensures optimistic concurrency so that the
1955 * optimistic locking. This ensures optimistic concurrency so that the 1974 /// deployment does not have conflicting requests (e.g. if someone attempts
1956 * deployment does not have conflicting requests (e.g. if someone attempts to 1975 /// to make a new update request while another user attempts to stop an
1957 * make a new update request while another user attempts to stop an ongoing 1976 /// ongoing update request, this would prevent a collision).
1958 * update request, this would prevent a collision). 1977 ///
1959 * 1978 /// The fingerprint is initially generated by Deployment Manager and changes
1960 * The fingerprint is initially generated by Deployment Manager and changes 1979 /// after every request to modify a deployment. To get the latest fingerprint
1961 * after every request to modify a deployment. To get the latest fingerprint 1980 /// value, perform a get() request on the deployment.
1962 * value, perform a get() request on the deployment.
1963 */
1964 core.String fingerprint; 1981 core.String fingerprint;
1965 core.List<core.int> get fingerprintAsBytes { 1982 core.List<core.int> get fingerprintAsBytes {
1966 return convert.BASE64.decode(fingerprint); 1983 return convert.BASE64.decode(fingerprint);
1967 } 1984 }
1968 1985
1969 void set fingerprintAsBytes(core.List<core.int> _bytes) { 1986 void set fingerprintAsBytes(core.List<core.int> _bytes) {
1970 fingerprint = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll( "+", "-"); 1987 fingerprint =
1988 convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-");
1971 } 1989 }
1972 1990
1973 DeploymentsStopRequest(); 1991 DeploymentsStopRequest();
1974 1992
1975 DeploymentsStopRequest.fromJson(core.Map _json) { 1993 DeploymentsStopRequest.fromJson(core.Map _json) {
1976 if (_json.containsKey("fingerprint")) { 1994 if (_json.containsKey("fingerprint")) {
1977 fingerprint = _json["fingerprint"]; 1995 fingerprint = _json["fingerprint"];
1978 } 1996 }
1979 } 1997 }
1980 1998
1981 core.Map<core.String, core.Object> toJson() { 1999 core.Map<core.String, core.Object> toJson() {
1982 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2000 final core.Map<core.String, core.Object> _json =
2001 new core.Map<core.String, core.Object>();
1983 if (fingerprint != null) { 2002 if (fingerprint != null) {
1984 _json["fingerprint"] = fingerprint; 2003 _json["fingerprint"] = fingerprint;
1985 } 2004 }
1986 return _json; 2005 return _json;
1987 } 2006 }
1988 } 2007 }
1989 2008
1990 /** 2009 /// Represents an expression text. Example:
1991 * Represents an expression text. Example: 2010 ///
1992 * 2011 /// title: "User account presence" description: "Determines whether the request
1993 * title: "User account presence" description: "Determines whether the request 2012 /// has a user account" expression: "size(request.user) > 0"
1994 * has a user account" expression: "size(request.user) > 0"
1995 */
1996 class Expr { 2013 class Expr {
1997 /** 2014 /// An optional description of the expression. This is a longer text which
1998 * An optional description of the expression. This is a longer text which 2015 /// describes the expression, e.g. when hovered over it in a UI.
1999 * describes the expression, e.g. when hovered over it in a UI.
2000 */
2001 core.String description; 2016 core.String description;
2002 /** 2017
2003 * Textual representation of an expression in Common Expression Language 2018 /// Textual representation of an expression in Common Expression Language
2004 * syntax. 2019 /// syntax.
2005 * 2020 ///
2006 * The application context of the containing message determines which 2021 /// The application context of the containing message determines which
2007 * well-known feature set of CEL is supported. 2022 /// well-known feature set of CEL is supported.
2008 */
2009 core.String expression; 2023 core.String expression;
2010 /** 2024
2011 * An optional string indicating the location of the expression for error 2025 /// An optional string indicating the location of the expression for error
2012 * reporting, e.g. a file name and a position in the file. 2026 /// reporting, e.g. a file name and a position in the file.
2013 */
2014 core.String location; 2027 core.String location;
2015 /** 2028
2016 * An optional title for the expression, i.e. a short string describing its 2029 /// An optional title for the expression, i.e. a short string describing its
2017 * purpose. This can be used e.g. in UIs which allow to enter the expression. 2030 /// purpose. This can be used e.g. in UIs which allow to enter the
2018 */ 2031 /// expression.
2019 core.String title; 2032 core.String title;
2020 2033
2021 Expr(); 2034 Expr();
2022 2035
2023 Expr.fromJson(core.Map _json) { 2036 Expr.fromJson(core.Map _json) {
2024 if (_json.containsKey("description")) { 2037 if (_json.containsKey("description")) {
2025 description = _json["description"]; 2038 description = _json["description"];
2026 } 2039 }
2027 if (_json.containsKey("expression")) { 2040 if (_json.containsKey("expression")) {
2028 expression = _json["expression"]; 2041 expression = _json["expression"];
2029 } 2042 }
2030 if (_json.containsKey("location")) { 2043 if (_json.containsKey("location")) {
2031 location = _json["location"]; 2044 location = _json["location"];
2032 } 2045 }
2033 if (_json.containsKey("title")) { 2046 if (_json.containsKey("title")) {
2034 title = _json["title"]; 2047 title = _json["title"];
2035 } 2048 }
2036 } 2049 }
2037 2050
2038 core.Map<core.String, core.Object> toJson() { 2051 core.Map<core.String, core.Object> toJson() {
2039 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2052 final core.Map<core.String, core.Object> _json =
2053 new core.Map<core.String, core.Object>();
2040 if (description != null) { 2054 if (description != null) {
2041 _json["description"] = description; 2055 _json["description"] = description;
2042 } 2056 }
2043 if (expression != null) { 2057 if (expression != null) {
2044 _json["expression"] = expression; 2058 _json["expression"] = expression;
2045 } 2059 }
2046 if (location != null) { 2060 if (location != null) {
2047 _json["location"] = location; 2061 _json["location"] = location;
2048 } 2062 }
2049 if (title != null) { 2063 if (title != null) {
2050 _json["title"] = title; 2064 _json["title"] = title;
2051 } 2065 }
2052 return _json; 2066 return _json;
2053 } 2067 }
2054 } 2068 }
2055 2069
2056 class ImportFile { 2070 class ImportFile {
2057 /** The contents of the file. */ 2071 /// The contents of the file.
2058 core.String content; 2072 core.String content;
2059 /** The name of the file. */ 2073
2074 /// The name of the file.
2060 core.String name; 2075 core.String name;
2061 2076
2062 ImportFile(); 2077 ImportFile();
2063 2078
2064 ImportFile.fromJson(core.Map _json) { 2079 ImportFile.fromJson(core.Map _json) {
2065 if (_json.containsKey("content")) { 2080 if (_json.containsKey("content")) {
2066 content = _json["content"]; 2081 content = _json["content"];
2067 } 2082 }
2068 if (_json.containsKey("name")) { 2083 if (_json.containsKey("name")) {
2069 name = _json["name"]; 2084 name = _json["name"];
2070 } 2085 }
2071 } 2086 }
2072 2087
2073 core.Map<core.String, core.Object> toJson() { 2088 core.Map<core.String, core.Object> toJson() {
2074 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2089 final core.Map<core.String, core.Object> _json =
2090 new core.Map<core.String, core.Object>();
2075 if (content != null) { 2091 if (content != null) {
2076 _json["content"] = content; 2092 _json["content"] = content;
2077 } 2093 }
2078 if (name != null) { 2094 if (name != null) {
2079 _json["name"] = name; 2095 _json["name"] = name;
2080 } 2096 }
2081 return _json; 2097 return _json;
2082 } 2098 }
2083 } 2099 }
2084 2100
2085 /** Specifies what kind of log the caller must write */ 2101 /// Specifies what kind of log the caller must write
2086 class LogConfig { 2102 class LogConfig {
2087 /** Cloud audit options. */ 2103 /// Cloud audit options.
2088 LogConfigCloudAuditOptions cloudAudit; 2104 LogConfigCloudAuditOptions cloudAudit;
2089 /** Counter options. */ 2105
2106 /// Counter options.
2090 LogConfigCounterOptions counter; 2107 LogConfigCounterOptions counter;
2091 /** Data access options. */ 2108
2109 /// Data access options.
2092 LogConfigDataAccessOptions dataAccess; 2110 LogConfigDataAccessOptions dataAccess;
2093 2111
2094 LogConfig(); 2112 LogConfig();
2095 2113
2096 LogConfig.fromJson(core.Map _json) { 2114 LogConfig.fromJson(core.Map _json) {
2097 if (_json.containsKey("cloudAudit")) { 2115 if (_json.containsKey("cloudAudit")) {
2098 cloudAudit = new LogConfigCloudAuditOptions.fromJson(_json["cloudAudit"]); 2116 cloudAudit = new LogConfigCloudAuditOptions.fromJson(_json["cloudAudit"]);
2099 } 2117 }
2100 if (_json.containsKey("counter")) { 2118 if (_json.containsKey("counter")) {
2101 counter = new LogConfigCounterOptions.fromJson(_json["counter"]); 2119 counter = new LogConfigCounterOptions.fromJson(_json["counter"]);
2102 } 2120 }
2103 if (_json.containsKey("dataAccess")) { 2121 if (_json.containsKey("dataAccess")) {
2104 dataAccess = new LogConfigDataAccessOptions.fromJson(_json["dataAccess"]); 2122 dataAccess = new LogConfigDataAccessOptions.fromJson(_json["dataAccess"]);
2105 } 2123 }
2106 } 2124 }
2107 2125
2108 core.Map<core.String, core.Object> toJson() { 2126 core.Map<core.String, core.Object> toJson() {
2109 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2127 final core.Map<core.String, core.Object> _json =
2128 new core.Map<core.String, core.Object>();
2110 if (cloudAudit != null) { 2129 if (cloudAudit != null) {
2111 _json["cloudAudit"] = (cloudAudit).toJson(); 2130 _json["cloudAudit"] = (cloudAudit).toJson();
2112 } 2131 }
2113 if (counter != null) { 2132 if (counter != null) {
2114 _json["counter"] = (counter).toJson(); 2133 _json["counter"] = (counter).toJson();
2115 } 2134 }
2116 if (dataAccess != null) { 2135 if (dataAccess != null) {
2117 _json["dataAccess"] = (dataAccess).toJson(); 2136 _json["dataAccess"] = (dataAccess).toJson();
2118 } 2137 }
2119 return _json; 2138 return _json;
2120 } 2139 }
2121 } 2140 }
2122 2141
2123 /** Write a Cloud Audit log */ 2142 /// Write a Cloud Audit log
2124 class LogConfigCloudAuditOptions { 2143 class LogConfigCloudAuditOptions {
2125 /** Information used by the Cloud Audit Logging pipeline. */ 2144 /// Information used by the Cloud Audit Logging pipeline.
2126 AuthorizationLoggingOptions authorizationLoggingOptions; 2145 AuthorizationLoggingOptions authorizationLoggingOptions;
2127 /** The log_name to populate in the Cloud Audit Record. */ 2146
2147 /// The log_name to populate in the Cloud Audit Record.
2128 core.String logName; 2148 core.String logName;
2129 2149
2130 LogConfigCloudAuditOptions(); 2150 LogConfigCloudAuditOptions();
2131 2151
2132 LogConfigCloudAuditOptions.fromJson(core.Map _json) { 2152 LogConfigCloudAuditOptions.fromJson(core.Map _json) {
2133 if (_json.containsKey("authorizationLoggingOptions")) { 2153 if (_json.containsKey("authorizationLoggingOptions")) {
2134 authorizationLoggingOptions = new AuthorizationLoggingOptions.fromJson(_js on["authorizationLoggingOptions"]); 2154 authorizationLoggingOptions = new AuthorizationLoggingOptions.fromJson(
2155 _json["authorizationLoggingOptions"]);
2135 } 2156 }
2136 if (_json.containsKey("logName")) { 2157 if (_json.containsKey("logName")) {
2137 logName = _json["logName"]; 2158 logName = _json["logName"];
2138 } 2159 }
2139 } 2160 }
2140 2161
2141 core.Map<core.String, core.Object> toJson() { 2162 core.Map<core.String, core.Object> toJson() {
2142 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2163 final core.Map<core.String, core.Object> _json =
2164 new core.Map<core.String, core.Object>();
2143 if (authorizationLoggingOptions != null) { 2165 if (authorizationLoggingOptions != null) {
2144 _json["authorizationLoggingOptions"] = (authorizationLoggingOptions).toJso n(); 2166 _json["authorizationLoggingOptions"] =
2167 (authorizationLoggingOptions).toJson();
2145 } 2168 }
2146 if (logName != null) { 2169 if (logName != null) {
2147 _json["logName"] = logName; 2170 _json["logName"] = logName;
2148 } 2171 }
2149 return _json; 2172 return _json;
2150 } 2173 }
2151 } 2174 }
2152 2175
2153 /** 2176 /// Increment a streamz counter with the specified metric and field names.
2154 * Increment a streamz counter with the specified metric and field names. 2177 ///
2155 * 2178 /// Metric names should start with a '/', generally be lowercase-only, and end
2156 * Metric names should start with a '/', generally be lowercase-only, and end in 2179 /// in "_count". Field names should not contain an initial slash. The actual
2157 * "_count". Field names should not contain an initial slash. The actual 2180 /// exported metric names will have "/iam/policy" prepended.
2158 * exported metric names will have "/iam/policy" prepended. 2181 ///
2159 * 2182 /// Field names correspond to IAM request parameters and field values are their
2160 * Field names correspond to IAM request parameters and field values are their 2183 /// respective values.
2161 * respective values. 2184 ///
2162 * 2185 /// At present the only supported field names are - "iam_principal",
2163 * At present the only supported field names are - "iam_principal", 2186 /// corresponding to IAMContext.principal; - "" (empty string), resulting in
2164 * corresponding to IAMContext.principal; - "" (empty string), resulting in one 2187 /// one aggretated counter with no field.
2165 * aggretated counter with no field. 2188 ///
2166 * 2189 /// Examples: counter { metric: "/debug_access_count" field: "iam_principal" }
2167 * Examples: counter { metric: "/debug_access_count" field: "iam_principal" } 2190 /// ==> increment counter /iam/policy/backend_debug_access_count
2168 * ==> increment counter /iam/policy/backend_debug_access_count 2191 /// {iam_principal=[value of IAMContext.principal]}
2169 * {iam_principal=[value of IAMContext.principal]} 2192 ///
2170 * 2193 /// At this time we do not support: * multiple field names (though this may be
2171 * At this time we do not support: * multiple field names (though this may be 2194 /// supported in the future) * decrementing the counter * incrementing it by
2172 * supported in the future) * decrementing the counter * incrementing it by 2195 /// anything other than 1
2173 * anything other than 1
2174 */
2175 class LogConfigCounterOptions { 2196 class LogConfigCounterOptions {
2176 /** The field value to attribute. */ 2197 /// The field value to attribute.
2177 core.String field; 2198 core.String field;
2178 /** The metric to update. */ 2199
2200 /// The metric to update.
2179 core.String metric; 2201 core.String metric;
2180 2202
2181 LogConfigCounterOptions(); 2203 LogConfigCounterOptions();
2182 2204
2183 LogConfigCounterOptions.fromJson(core.Map _json) { 2205 LogConfigCounterOptions.fromJson(core.Map _json) {
2184 if (_json.containsKey("field")) { 2206 if (_json.containsKey("field")) {
2185 field = _json["field"]; 2207 field = _json["field"];
2186 } 2208 }
2187 if (_json.containsKey("metric")) { 2209 if (_json.containsKey("metric")) {
2188 metric = _json["metric"]; 2210 metric = _json["metric"];
2189 } 2211 }
2190 } 2212 }
2191 2213
2192 core.Map<core.String, core.Object> toJson() { 2214 core.Map<core.String, core.Object> toJson() {
2193 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2215 final core.Map<core.String, core.Object> _json =
2216 new core.Map<core.String, core.Object>();
2194 if (field != null) { 2217 if (field != null) {
2195 _json["field"] = field; 2218 _json["field"] = field;
2196 } 2219 }
2197 if (metric != null) { 2220 if (metric != null) {
2198 _json["metric"] = metric; 2221 _json["metric"] = metric;
2199 } 2222 }
2200 return _json; 2223 return _json;
2201 } 2224 }
2202 } 2225 }
2203 2226
2204 /** Write a Data Access (Gin) log */ 2227 /// Write a Data Access (Gin) log
2205 class LogConfigDataAccessOptions { 2228 class LogConfigDataAccessOptions {
2206 /** 2229 /// Whether Gin logging should happen in a fail-closed manner at the caller.
2207 * Whether Gin logging should happen in a fail-closed manner at the caller. 2230 /// This is relevant only in the LocalIAM implementation, for now.
2208 * This is relevant only in the LocalIAM implementation, for now.
2209 */
2210 core.String logMode; 2231 core.String logMode;
2211 2232
2212 LogConfigDataAccessOptions(); 2233 LogConfigDataAccessOptions();
2213 2234
2214 LogConfigDataAccessOptions.fromJson(core.Map _json) { 2235 LogConfigDataAccessOptions.fromJson(core.Map _json) {
2215 if (_json.containsKey("logMode")) { 2236 if (_json.containsKey("logMode")) {
2216 logMode = _json["logMode"]; 2237 logMode = _json["logMode"];
2217 } 2238 }
2218 } 2239 }
2219 2240
2220 core.Map<core.String, core.Object> toJson() { 2241 core.Map<core.String, core.Object> toJson() {
2221 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2242 final core.Map<core.String, core.Object> _json =
2243 new core.Map<core.String, core.Object>();
2222 if (logMode != null) { 2244 if (logMode != null) {
2223 _json["logMode"] = logMode; 2245 _json["logMode"] = logMode;
2224 } 2246 }
2225 return _json; 2247 return _json;
2226 } 2248 }
2227 } 2249 }
2228 2250
2229 class Manifest { 2251 class Manifest {
2230 /** [Output Only] The YAML configuration for this manifest. */ 2252 /// [Output Only] The YAML configuration for this manifest.
2231 ConfigFile config; 2253 ConfigFile config;
2232 /** 2254
2233 * [Output Only] The fully-expanded configuration file, including any 2255 /// [Output Only] The fully-expanded configuration file, including any
2234 * templates and references. 2256 /// templates and references.
2235 */
2236 core.String expandedConfig; 2257 core.String expandedConfig;
2237 /** 2258
2238 * [Output Only] Unique identifier for the resource; defined by the server. 2259 /// [Output Only] Unique identifier for the resource; defined by the server.
2239 */
2240 core.String id; 2260 core.String id;
2241 /** [Output Only] The imported files for this manifest. */ 2261
2262 /// [Output Only] The imported files for this manifest.
2242 core.List<ImportFile> imports; 2263 core.List<ImportFile> imports;
2243 /** 2264
2244 * [Output Only] Timestamp when the manifest was created, in RFC3339 text 2265 /// [Output Only] Timestamp when the manifest was created, in RFC3339 text
2245 * format. 2266 /// format.
2246 */
2247 core.String insertTime; 2267 core.String insertTime;
2248 /** [Output Only] The YAML layout for this manifest. */ 2268
2269 /// [Output Only] The YAML layout for this manifest.
2249 core.String layout; 2270 core.String layout;
2250 /** [Output Only] The name of the manifest. */ 2271
2272 /// [Output Only] The name of the manifest.
2251 core.String name; 2273 core.String name;
2252 /** [Output Only] Self link for the manifest. */ 2274
2275 /// [Output Only] Self link for the manifest.
2253 core.String selfLink; 2276 core.String selfLink;
2254 2277
2255 Manifest(); 2278 Manifest();
2256 2279
2257 Manifest.fromJson(core.Map _json) { 2280 Manifest.fromJson(core.Map _json) {
2258 if (_json.containsKey("config")) { 2281 if (_json.containsKey("config")) {
2259 config = new ConfigFile.fromJson(_json["config"]); 2282 config = new ConfigFile.fromJson(_json["config"]);
2260 } 2283 }
2261 if (_json.containsKey("expandedConfig")) { 2284 if (_json.containsKey("expandedConfig")) {
2262 expandedConfig = _json["expandedConfig"]; 2285 expandedConfig = _json["expandedConfig"];
2263 } 2286 }
2264 if (_json.containsKey("id")) { 2287 if (_json.containsKey("id")) {
2265 id = _json["id"]; 2288 id = _json["id"];
2266 } 2289 }
2267 if (_json.containsKey("imports")) { 2290 if (_json.containsKey("imports")) {
2268 imports = _json["imports"].map((value) => new ImportFile.fromJson(value)). toList(); 2291 imports = _json["imports"]
2292 .map((value) => new ImportFile.fromJson(value))
2293 .toList();
2269 } 2294 }
2270 if (_json.containsKey("insertTime")) { 2295 if (_json.containsKey("insertTime")) {
2271 insertTime = _json["insertTime"]; 2296 insertTime = _json["insertTime"];
2272 } 2297 }
2273 if (_json.containsKey("layout")) { 2298 if (_json.containsKey("layout")) {
2274 layout = _json["layout"]; 2299 layout = _json["layout"];
2275 } 2300 }
2276 if (_json.containsKey("name")) { 2301 if (_json.containsKey("name")) {
2277 name = _json["name"]; 2302 name = _json["name"];
2278 } 2303 }
2279 if (_json.containsKey("selfLink")) { 2304 if (_json.containsKey("selfLink")) {
2280 selfLink = _json["selfLink"]; 2305 selfLink = _json["selfLink"];
2281 } 2306 }
2282 } 2307 }
2283 2308
2284 core.Map<core.String, core.Object> toJson() { 2309 core.Map<core.String, core.Object> toJson() {
2285 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2310 final core.Map<core.String, core.Object> _json =
2311 new core.Map<core.String, core.Object>();
2286 if (config != null) { 2312 if (config != null) {
2287 _json["config"] = (config).toJson(); 2313 _json["config"] = (config).toJson();
2288 } 2314 }
2289 if (expandedConfig != null) { 2315 if (expandedConfig != null) {
2290 _json["expandedConfig"] = expandedConfig; 2316 _json["expandedConfig"] = expandedConfig;
2291 } 2317 }
2292 if (id != null) { 2318 if (id != null) {
2293 _json["id"] = id; 2319 _json["id"] = id;
2294 } 2320 }
2295 if (imports != null) { 2321 if (imports != null) {
2296 _json["imports"] = imports.map((value) => (value).toJson()).toList(); 2322 _json["imports"] = imports.map((value) => (value).toJson()).toList();
2297 } 2323 }
2298 if (insertTime != null) { 2324 if (insertTime != null) {
2299 _json["insertTime"] = insertTime; 2325 _json["insertTime"] = insertTime;
2300 } 2326 }
2301 if (layout != null) { 2327 if (layout != null) {
2302 _json["layout"] = layout; 2328 _json["layout"] = layout;
2303 } 2329 }
2304 if (name != null) { 2330 if (name != null) {
2305 _json["name"] = name; 2331 _json["name"] = name;
2306 } 2332 }
2307 if (selfLink != null) { 2333 if (selfLink != null) {
2308 _json["selfLink"] = selfLink; 2334 _json["selfLink"] = selfLink;
2309 } 2335 }
2310 return _json; 2336 return _json;
2311 } 2337 }
2312 } 2338 }
2313 2339
2314 /** 2340 /// A response containing a partial list of manifests and a page token used to
2315 * A response containing a partial list of manifests and a page token used to 2341 /// build the next request if the request has been truncated.
2316 * build the next request if the request has been truncated.
2317 */
2318 class ManifestsListResponse { 2342 class ManifestsListResponse {
2319 /** [Output Only] Manifests contained in this list response. */ 2343 /// [Output Only] Manifests contained in this list response.
2320 core.List<Manifest> manifests; 2344 core.List<Manifest> manifests;
2321 /** [Output Only] A token used to continue a truncated list request. */ 2345
2346 /// [Output Only] A token used to continue a truncated list request.
2322 core.String nextPageToken; 2347 core.String nextPageToken;
2323 2348
2324 ManifestsListResponse(); 2349 ManifestsListResponse();
2325 2350
2326 ManifestsListResponse.fromJson(core.Map _json) { 2351 ManifestsListResponse.fromJson(core.Map _json) {
2327 if (_json.containsKey("manifests")) { 2352 if (_json.containsKey("manifests")) {
2328 manifests = _json["manifests"].map((value) => new Manifest.fromJson(value) ).toList(); 2353 manifests = _json["manifests"]
2354 .map((value) => new Manifest.fromJson(value))
2355 .toList();
2329 } 2356 }
2330 if (_json.containsKey("nextPageToken")) { 2357 if (_json.containsKey("nextPageToken")) {
2331 nextPageToken = _json["nextPageToken"]; 2358 nextPageToken = _json["nextPageToken"];
2332 } 2359 }
2333 } 2360 }
2334 2361
2335 core.Map<core.String, core.Object> toJson() { 2362 core.Map<core.String, core.Object> toJson() {
2336 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2363 final core.Map<core.String, core.Object> _json =
2364 new core.Map<core.String, core.Object>();
2337 if (manifests != null) { 2365 if (manifests != null) {
2338 _json["manifests"] = manifests.map((value) => (value).toJson()).toList(); 2366 _json["manifests"] = manifests.map((value) => (value).toJson()).toList();
2339 } 2367 }
2340 if (nextPageToken != null) { 2368 if (nextPageToken != null) {
2341 _json["nextPageToken"] = nextPageToken; 2369 _json["nextPageToken"] = nextPageToken;
2342 } 2370 }
2343 return _json; 2371 return _json;
2344 } 2372 }
2345 } 2373 }
2346 2374
2347 class OperationErrorErrors { 2375 class OperationErrorErrors {
2348 /** [Output Only] The error type identifier for this error. */ 2376 /// [Output Only] The error type identifier for this error.
2349 core.String code; 2377 core.String code;
2350 /** 2378
2351 * [Output Only] Indicates the field in the request that caused the error. 2379 /// [Output Only] Indicates the field in the request that caused the error.
2352 * This property is optional. 2380 /// This property is optional.
2353 */
2354 core.String location; 2381 core.String location;
2355 /** [Output Only] An optional, human-readable error message. */ 2382
2383 /// [Output Only] An optional, human-readable error message.
2356 core.String message; 2384 core.String message;
2357 2385
2358 OperationErrorErrors(); 2386 OperationErrorErrors();
2359 2387
2360 OperationErrorErrors.fromJson(core.Map _json) { 2388 OperationErrorErrors.fromJson(core.Map _json) {
2361 if (_json.containsKey("code")) { 2389 if (_json.containsKey("code")) {
2362 code = _json["code"]; 2390 code = _json["code"];
2363 } 2391 }
2364 if (_json.containsKey("location")) { 2392 if (_json.containsKey("location")) {
2365 location = _json["location"]; 2393 location = _json["location"];
2366 } 2394 }
2367 if (_json.containsKey("message")) { 2395 if (_json.containsKey("message")) {
2368 message = _json["message"]; 2396 message = _json["message"];
2369 } 2397 }
2370 } 2398 }
2371 2399
2372 core.Map<core.String, core.Object> toJson() { 2400 core.Map<core.String, core.Object> toJson() {
2373 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2401 final core.Map<core.String, core.Object> _json =
2402 new core.Map<core.String, core.Object>();
2374 if (code != null) { 2403 if (code != null) {
2375 _json["code"] = code; 2404 _json["code"] = code;
2376 } 2405 }
2377 if (location != null) { 2406 if (location != null) {
2378 _json["location"] = location; 2407 _json["location"] = location;
2379 } 2408 }
2380 if (message != null) { 2409 if (message != null) {
2381 _json["message"] = message; 2410 _json["message"] = message;
2382 } 2411 }
2383 return _json; 2412 return _json;
2384 } 2413 }
2385 } 2414 }
2386 2415
2387 /** 2416 /// [Output Only] If errors are generated during processing of the operation,
2388 * [Output Only] If errors are generated during processing of the operation, 2417 /// this field will be populated.
2389 * this field will be populated.
2390 */
2391 class OperationError { 2418 class OperationError {
2392 /** 2419 /// [Output Only] The array of errors encountered while processing this
2393 * [Output Only] The array of errors encountered while processing this 2420 /// operation.
2394 * operation.
2395 */
2396 core.List<OperationErrorErrors> errors; 2421 core.List<OperationErrorErrors> errors;
2397 2422
2398 OperationError(); 2423 OperationError();
2399 2424
2400 OperationError.fromJson(core.Map _json) { 2425 OperationError.fromJson(core.Map _json) {
2401 if (_json.containsKey("errors")) { 2426 if (_json.containsKey("errors")) {
2402 errors = _json["errors"].map((value) => new OperationErrorErrors.fromJson( value)).toList(); 2427 errors = _json["errors"]
2428 .map((value) => new OperationErrorErrors.fromJson(value))
2429 .toList();
2403 } 2430 }
2404 } 2431 }
2405 2432
2406 core.Map<core.String, core.Object> toJson() { 2433 core.Map<core.String, core.Object> toJson() {
2407 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2434 final core.Map<core.String, core.Object> _json =
2435 new core.Map<core.String, core.Object>();
2408 if (errors != null) { 2436 if (errors != null) {
2409 _json["errors"] = errors.map((value) => (value).toJson()).toList(); 2437 _json["errors"] = errors.map((value) => (value).toJson()).toList();
2410 } 2438 }
2411 return _json; 2439 return _json;
2412 } 2440 }
2413 } 2441 }
2414 2442
2415 class OperationWarningsData { 2443 class OperationWarningsData {
2416 /** 2444 /// [Output Only] A key that provides more detail on the warning being
2417 * [Output Only] A key that provides more detail on the warning being 2445 /// returned. For example, for warnings where there are no results in a list
2418 * returned. For example, for warnings where there are no results in a list 2446 /// request for a particular zone, this key might be scope and the key value
2419 * request for a particular zone, this key might be scope and the key value 2447 /// might be the zone name. Other examples might be a key indicating a
2420 * might be the zone name. Other examples might be a key indicating a 2448 /// deprecated resource and a suggested replacement, or a warning about
2421 * deprecated resource and a suggested replacement, or a warning about invalid 2449 /// invalid network settings (for example, if an instance attempts to perform
2422 * network settings (for example, if an instance attempts to perform IP 2450 /// IP forwarding but is not enabled for IP forwarding).
2423 * forwarding but is not enabled for IP forwarding).
2424 */
2425 core.String key; 2451 core.String key;
2426 /** [Output Only] A warning data value corresponding to the key. */ 2452
2453 /// [Output Only] A warning data value corresponding to the key.
2427 core.String value; 2454 core.String value;
2428 2455
2429 OperationWarningsData(); 2456 OperationWarningsData();
2430 2457
2431 OperationWarningsData.fromJson(core.Map _json) { 2458 OperationWarningsData.fromJson(core.Map _json) {
2432 if (_json.containsKey("key")) { 2459 if (_json.containsKey("key")) {
2433 key = _json["key"]; 2460 key = _json["key"];
2434 } 2461 }
2435 if (_json.containsKey("value")) { 2462 if (_json.containsKey("value")) {
2436 value = _json["value"]; 2463 value = _json["value"];
2437 } 2464 }
2438 } 2465 }
2439 2466
2440 core.Map<core.String, core.Object> toJson() { 2467 core.Map<core.String, core.Object> toJson() {
2441 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2468 final core.Map<core.String, core.Object> _json =
2469 new core.Map<core.String, core.Object>();
2442 if (key != null) { 2470 if (key != null) {
2443 _json["key"] = key; 2471 _json["key"] = key;
2444 } 2472 }
2445 if (value != null) { 2473 if (value != null) {
2446 _json["value"] = value; 2474 _json["value"] = value;
2447 } 2475 }
2448 return _json; 2476 return _json;
2449 } 2477 }
2450 } 2478 }
2451 2479
2452 class OperationWarnings { 2480 class OperationWarnings {
2453 /** 2481 /// [Output Only] A warning code, if applicable. For example, Compute Engine
2454 * [Output Only] A warning code, if applicable. For example, Compute Engine 2482 /// returns NO_RESULTS_ON_PAGE if there are no results in the response.
2455 * returns NO_RESULTS_ON_PAGE if there are no results in the response.
2456 */
2457 core.String code; 2483 core.String code;
2458 /** 2484
2459 * [Output Only] Metadata about this warning in key: value format. For 2485 /// [Output Only] Metadata about this warning in key: value format. For
2460 * example: 2486 /// example:
2461 * "data": [ { "key": "scope", "value": "zones/us-east1-d" } 2487 /// "data": [ { "key": "scope", "value": "zones/us-east1-d" }
2462 */
2463 core.List<OperationWarningsData> data; 2488 core.List<OperationWarningsData> data;
2464 /** [Output Only] A human-readable description of the warning code. */ 2489
2490 /// [Output Only] A human-readable description of the warning code.
2465 core.String message; 2491 core.String message;
2466 2492
2467 OperationWarnings(); 2493 OperationWarnings();
2468 2494
2469 OperationWarnings.fromJson(core.Map _json) { 2495 OperationWarnings.fromJson(core.Map _json) {
2470 if (_json.containsKey("code")) { 2496 if (_json.containsKey("code")) {
2471 code = _json["code"]; 2497 code = _json["code"];
2472 } 2498 }
2473 if (_json.containsKey("data")) { 2499 if (_json.containsKey("data")) {
2474 data = _json["data"].map((value) => new OperationWarningsData.fromJson(val ue)).toList(); 2500 data = _json["data"]
2501 .map((value) => new OperationWarningsData.fromJson(value))
2502 .toList();
2475 } 2503 }
2476 if (_json.containsKey("message")) { 2504 if (_json.containsKey("message")) {
2477 message = _json["message"]; 2505 message = _json["message"];
2478 } 2506 }
2479 } 2507 }
2480 2508
2481 core.Map<core.String, core.Object> toJson() { 2509 core.Map<core.String, core.Object> toJson() {
2482 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2510 final core.Map<core.String, core.Object> _json =
2511 new core.Map<core.String, core.Object>();
2483 if (code != null) { 2512 if (code != null) {
2484 _json["code"] = code; 2513 _json["code"] = code;
2485 } 2514 }
2486 if (data != null) { 2515 if (data != null) {
2487 _json["data"] = data.map((value) => (value).toJson()).toList(); 2516 _json["data"] = data.map((value) => (value).toJson()).toList();
2488 } 2517 }
2489 if (message != null) { 2518 if (message != null) {
2490 _json["message"] = message; 2519 _json["message"] = message;
2491 } 2520 }
2492 return _json; 2521 return _json;
2493 } 2522 }
2494 } 2523 }
2495 2524
2496 /** An Operation resource, used to manage asynchronous API requests. */ 2525 /// An Operation resource, used to manage asynchronous API requests.
2497 class Operation { 2526 class Operation {
2498 /** [Output Only] Reserved for future use. */ 2527 /// [Output Only] Reserved for future use.
2499 core.String clientOperationId; 2528 core.String clientOperationId;
2500 /** [Deprecated] This field is deprecated. */ 2529
2530 /// [Deprecated] This field is deprecated.
2501 core.String creationTimestamp; 2531 core.String creationTimestamp;
2502 /** 2532
2503 * [Output Only] A textual description of the operation, which is set when the 2533 /// [Output Only] A textual description of the operation, which is set when
2504 * operation is created. 2534 /// the operation is created.
2505 */
2506 core.String description; 2535 core.String description;
2507 /** 2536
2508 * [Output Only] The time that this operation was completed. This value is in 2537 /// [Output Only] The time that this operation was completed. This value is
2509 * RFC3339 text format. 2538 /// in RFC3339 text format.
2510 */
2511 core.String endTime; 2539 core.String endTime;
2512 /** 2540
2513 * [Output Only] If errors are generated during processing of the operation, 2541 /// [Output Only] If errors are generated during processing of the operation,
2514 * this field will be populated. 2542 /// this field will be populated.
2515 */
2516 OperationError error; 2543 OperationError error;
2517 /** 2544
2518 * [Output Only] If the operation fails, this field contains the HTTP error 2545 /// [Output Only] If the operation fails, this field contains the HTTP error
2519 * message that was returned, such as NOT FOUND. 2546 /// message that was returned, such as NOT FOUND.
2520 */
2521 core.String httpErrorMessage; 2547 core.String httpErrorMessage;
2522 /** 2548
2523 * [Output Only] If the operation fails, this field contains the HTTP error 2549 /// [Output Only] If the operation fails, this field contains the HTTP error
2524 * status code that was returned. For example, a 404 means the resource was 2550 /// status code that was returned. For example, a 404 means the resource was
2525 * not found. 2551 /// not found.
2526 */
2527 core.int httpErrorStatusCode; 2552 core.int httpErrorStatusCode;
2528 /** 2553
2529 * [Output Only] The unique identifier for the resource. This identifier is 2554 /// [Output Only] The unique identifier for the resource. This identifier is
2530 * defined by the server. 2555 /// defined by the server.
2531 */
2532 core.String id; 2556 core.String id;
2533 /** 2557
2534 * [Output Only] The time that this operation was requested. This value is in 2558 /// [Output Only] The time that this operation was requested. This value is
2535 * RFC3339 text format. 2559 /// in RFC3339 text format.
2536 */
2537 core.String insertTime; 2560 core.String insertTime;
2538 /** 2561
2539 * [Output Only] Type of the resource. Always compute#operation for Operation 2562 /// [Output Only] Type of the resource. Always compute#operation for
2540 * resources. 2563 /// Operation resources.
2541 */
2542 core.String kind; 2564 core.String kind;
2543 /** [Output Only] Name of the resource. */ 2565
2566 /// [Output Only] Name of the resource.
2544 core.String name; 2567 core.String name;
2545 /** 2568
2546 * [Output Only] The type of operation, such as insert, update, or delete, and 2569 /// [Output Only] The type of operation, such as insert, update, or delete,
2547 * so on. 2570 /// and so on.
2548 */
2549 core.String operationType; 2571 core.String operationType;
2550 /** 2572
2551 * [Output Only] An optional progress indicator that ranges from 0 to 100. 2573 /// [Output Only] An optional progress indicator that ranges from 0 to 100.
2552 * There is no requirement that this be linear or support any granularity of 2574 /// There is no requirement that this be linear or support any granularity of
2553 * operations. This should not be used to guess when the operation will be 2575 /// operations. This should not be used to guess when the operation will be
2554 * complete. This number should monotonically increase as the operation 2576 /// complete. This number should monotonically increase as the operation
2555 * progresses. 2577 /// progresses.
2556 */
2557 core.int progress; 2578 core.int progress;
2558 /** 2579
2559 * [Output Only] The URL of the region where the operation resides. Only 2580 /// [Output Only] The URL of the region where the operation resides. Only
2560 * available when performing regional operations. 2581 /// available when performing regional operations.
2561 */
2562 core.String region; 2582 core.String region;
2563 /** [Output Only] Server-defined URL for the resource. */ 2583
2584 /// [Output Only] Server-defined URL for the resource.
2564 core.String selfLink; 2585 core.String selfLink;
2565 /** 2586
2566 * [Output Only] The time that this operation was started by the server. This 2587 /// [Output Only] The time that this operation was started by the server.
2567 * value is in RFC3339 text format. 2588 /// This value is in RFC3339 text format.
2568 */
2569 core.String startTime; 2589 core.String startTime;
2570 /** 2590
2571 * [Output Only] The status of the operation, which can be one of the 2591 /// [Output Only] The status of the operation, which can be one of the
2572 * following: PENDING, RUNNING, or DONE. 2592 /// following: PENDING, RUNNING, or DONE.
2573 */
2574 core.String status; 2593 core.String status;
2575 /** 2594
2576 * [Output Only] An optional textual description of the current status of the 2595 /// [Output Only] An optional textual description of the current status of
2577 * operation. 2596 /// the operation.
2578 */
2579 core.String statusMessage; 2597 core.String statusMessage;
2580 /** 2598
2581 * [Output Only] The unique target ID, which identifies a specific incarnation 2599 /// [Output Only] The unique target ID, which identifies a specific
2582 * of the target resource. 2600 /// incarnation of the target resource.
2583 */
2584 core.String targetId; 2601 core.String targetId;
2585 /** 2602
2586 * [Output Only] The URL of the resource that the operation modifies. For 2603 /// [Output Only] The URL of the resource that the operation modifies. For
2587 * operations related to creating a snapshot, this points to the persistent 2604 /// operations related to creating a snapshot, this points to the persistent
2588 * disk that the snapshot was created from. 2605 /// disk that the snapshot was created from.
2589 */
2590 core.String targetLink; 2606 core.String targetLink;
2591 /** 2607
2592 * [Output Only] User who requested the operation, for example: 2608 /// [Output Only] User who requested the operation, for example:
2593 * user@example.com. 2609 /// user@example.com.
2594 */
2595 core.String user; 2610 core.String user;
2596 /** 2611
2597 * [Output Only] If warning messages are generated during processing of the 2612 /// [Output Only] If warning messages are generated during processing of the
2598 * operation, this field will be populated. 2613 /// operation, this field will be populated.
2599 */
2600 core.List<OperationWarnings> warnings; 2614 core.List<OperationWarnings> warnings;
2601 /** 2615
2602 * [Output Only] The URL of the zone where the operation resides. Only 2616 /// [Output Only] The URL of the zone where the operation resides. Only
2603 * available when performing per-zone operations. 2617 /// available when performing per-zone operations.
2604 */
2605 core.String zone; 2618 core.String zone;
2606 2619
2607 Operation(); 2620 Operation();
2608 2621
2609 Operation.fromJson(core.Map _json) { 2622 Operation.fromJson(core.Map _json) {
2610 if (_json.containsKey("clientOperationId")) { 2623 if (_json.containsKey("clientOperationId")) {
2611 clientOperationId = _json["clientOperationId"]; 2624 clientOperationId = _json["clientOperationId"];
2612 } 2625 }
2613 if (_json.containsKey("creationTimestamp")) { 2626 if (_json.containsKey("creationTimestamp")) {
2614 creationTimestamp = _json["creationTimestamp"]; 2627 creationTimestamp = _json["creationTimestamp"];
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
2664 if (_json.containsKey("targetId")) { 2677 if (_json.containsKey("targetId")) {
2665 targetId = _json["targetId"]; 2678 targetId = _json["targetId"];
2666 } 2679 }
2667 if (_json.containsKey("targetLink")) { 2680 if (_json.containsKey("targetLink")) {
2668 targetLink = _json["targetLink"]; 2681 targetLink = _json["targetLink"];
2669 } 2682 }
2670 if (_json.containsKey("user")) { 2683 if (_json.containsKey("user")) {
2671 user = _json["user"]; 2684 user = _json["user"];
2672 } 2685 }
2673 if (_json.containsKey("warnings")) { 2686 if (_json.containsKey("warnings")) {
2674 warnings = _json["warnings"].map((value) => new OperationWarnings.fromJson (value)).toList(); 2687 warnings = _json["warnings"]
2688 .map((value) => new OperationWarnings.fromJson(value))
2689 .toList();
2675 } 2690 }
2676 if (_json.containsKey("zone")) { 2691 if (_json.containsKey("zone")) {
2677 zone = _json["zone"]; 2692 zone = _json["zone"];
2678 } 2693 }
2679 } 2694 }
2680 2695
2681 core.Map<core.String, core.Object> toJson() { 2696 core.Map<core.String, core.Object> toJson() {
2682 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2697 final core.Map<core.String, core.Object> _json =
2698 new core.Map<core.String, core.Object>();
2683 if (clientOperationId != null) { 2699 if (clientOperationId != null) {
2684 _json["clientOperationId"] = clientOperationId; 2700 _json["clientOperationId"] = clientOperationId;
2685 } 2701 }
2686 if (creationTimestamp != null) { 2702 if (creationTimestamp != null) {
2687 _json["creationTimestamp"] = creationTimestamp; 2703 _json["creationTimestamp"] = creationTimestamp;
2688 } 2704 }
2689 if (description != null) { 2705 if (description != null) {
2690 _json["description"] = description; 2706 _json["description"] = description;
2691 } 2707 }
2692 if (endTime != null) { 2708 if (endTime != null) {
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
2746 if (warnings != null) { 2762 if (warnings != null) {
2747 _json["warnings"] = warnings.map((value) => (value).toJson()).toList(); 2763 _json["warnings"] = warnings.map((value) => (value).toJson()).toList();
2748 } 2764 }
2749 if (zone != null) { 2765 if (zone != null) {
2750 _json["zone"] = zone; 2766 _json["zone"] = zone;
2751 } 2767 }
2752 return _json; 2768 return _json;
2753 } 2769 }
2754 } 2770 }
2755 2771
2756 /** 2772 /// A response containing a partial list of operations and a page token used to
2757 * A response containing a partial list of operations and a page token used to 2773 /// build the next request if the request has been truncated.
2758 * build the next request if the request has been truncated.
2759 */
2760 class OperationsListResponse { 2774 class OperationsListResponse {
2761 /** [Output Only] A token used to continue a truncated list request. */ 2775 /// [Output Only] A token used to continue a truncated list request.
2762 core.String nextPageToken; 2776 core.String nextPageToken;
2763 /** [Output Only] Operations contained in this list response. */ 2777
2778 /// [Output Only] Operations contained in this list response.
2764 core.List<Operation> operations; 2779 core.List<Operation> operations;
2765 2780
2766 OperationsListResponse(); 2781 OperationsListResponse();
2767 2782
2768 OperationsListResponse.fromJson(core.Map _json) { 2783 OperationsListResponse.fromJson(core.Map _json) {
2769 if (_json.containsKey("nextPageToken")) { 2784 if (_json.containsKey("nextPageToken")) {
2770 nextPageToken = _json["nextPageToken"]; 2785 nextPageToken = _json["nextPageToken"];
2771 } 2786 }
2772 if (_json.containsKey("operations")) { 2787 if (_json.containsKey("operations")) {
2773 operations = _json["operations"].map((value) => new Operation.fromJson(val ue)).toList(); 2788 operations = _json["operations"]
2789 .map((value) => new Operation.fromJson(value))
2790 .toList();
2774 } 2791 }
2775 } 2792 }
2776 2793
2777 core.Map<core.String, core.Object> toJson() { 2794 core.Map<core.String, core.Object> toJson() {
2778 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2795 final core.Map<core.String, core.Object> _json =
2796 new core.Map<core.String, core.Object>();
2779 if (nextPageToken != null) { 2797 if (nextPageToken != null) {
2780 _json["nextPageToken"] = nextPageToken; 2798 _json["nextPageToken"] = nextPageToken;
2781 } 2799 }
2782 if (operations != null) { 2800 if (operations != null) {
2783 _json["operations"] = operations.map((value) => (value).toJson()).toList() ; 2801 _json["operations"] =
2802 operations.map((value) => (value).toJson()).toList();
2784 } 2803 }
2785 return _json; 2804 return _json;
2786 } 2805 }
2787 } 2806 }
2788 2807
2789 /** 2808 /// Defines an Identity and Access Management (IAM) policy. It is used to
2790 * Defines an Identity and Access Management (IAM) policy. It is used to specify 2809 /// specify access control policies for Cloud Platform resources.
2791 * access control policies for Cloud Platform resources. 2810 ///
2792 * 2811 ///
2793 * 2812 ///
2794 * 2813 /// A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
2795 * A `Policy` consists of a list of `bindings`. A `Binding` binds a list of 2814 /// `members` to a `role`, where the members can be user accounts, Google
2796 * `members` to a `role`, where the members can be user accounts, Google groups, 2815 /// groups, Google domains, and service accounts. A `role` is a named list of
2797 * Google domains, and service accounts. A `role` is a named list of permissions 2816 /// permissions defined by IAM.
2798 * defined by IAM. 2817 ///
2799 * 2818 /// **Example**
2800 * **Example** 2819 ///
2801 * 2820 /// { "bindings": [ { "role": "roles/owner", "members": [
2802 * { "bindings": [ { "role": "roles/owner", "members": [ 2821 /// "user:mike@example.com", "group:admins@example.com", "domain:google.com",
2803 * "user:mike@example.com", "group:admins@example.com", "domain:google.com", 2822 /// "serviceAccount:my-other-app@appspot.gserviceaccount.com", ] }, { "role":
2804 * "serviceAccount:my-other-app@appspot.gserviceaccount.com", ] }, { "role": 2823 /// "roles/viewer", "members": ["user:sean@example.com"] } ] }
2805 * "roles/viewer", "members": ["user:sean@example.com"] } ] } 2824 ///
2806 * 2825 /// For a description of IAM and its features, see the [IAM developer's
2807 * For a description of IAM and its features, see the [IAM developer's 2826 /// guide](https://cloud.google.com/iam).
2808 * guide](https://cloud.google.com/iam).
2809 */
2810 class Policy { 2827 class Policy {
2811 /** Specifies cloud audit logging configuration for this policy. */ 2828 /// Specifies cloud audit logging configuration for this policy.
2812 core.List<AuditConfig> auditConfigs; 2829 core.List<AuditConfig> auditConfigs;
2813 /** 2830
2814 * Associates a list of `members` to a `role`. `bindings` with no members will 2831 /// Associates a list of `members` to a `role`. `bindings` with no members
2815 * result in an error. 2832 /// will result in an error.
2816 */
2817 core.List<Binding> bindings; 2833 core.List<Binding> bindings;
2818 /** 2834
2819 * `etag` is used for optimistic concurrency control as a way to help prevent 2835 /// `etag` is used for optimistic concurrency control as a way to help
2820 * simultaneous updates of a policy from overwriting each other. It is 2836 /// prevent simultaneous updates of a policy from overwriting each other. It
2821 * strongly suggested that systems make use of the `etag` in the 2837 /// is strongly suggested that systems make use of the `etag` in the
2822 * read-modify-write cycle to perform policy updates in order to avoid race 2838 /// read-modify-write cycle to perform policy updates in order to avoid race
2823 * conditions: An `etag` is returned in the response to `getIamPolicy`, and 2839 /// conditions: An `etag` is returned in the response to `getIamPolicy`, and
2824 * systems are expected to put that etag in the request to `setIamPolicy` to 2840 /// systems are expected to put that etag in the request to `setIamPolicy` to
2825 * ensure that their change will be applied to the same version of the policy. 2841 /// ensure that their change will be applied to the same version of the
2826 * 2842 /// policy.
2827 * If no `etag` is provided in the call to `setIamPolicy`, then the existing 2843 ///
2828 * policy is overwritten blindly. 2844 /// If no `etag` is provided in the call to `setIamPolicy`, then the existing
2829 */ 2845 /// policy is overwritten blindly.
2830 core.String etag; 2846 core.String etag;
2831 core.List<core.int> get etagAsBytes { 2847 core.List<core.int> get etagAsBytes {
2832 return convert.BASE64.decode(etag); 2848 return convert.BASE64.decode(etag);
2833 } 2849 }
2834 2850
2835 void set etagAsBytes(core.List<core.int> _bytes) { 2851 void set etagAsBytes(core.List<core.int> _bytes) {
2836 etag = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "- "); 2852 etag =
2853 convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-");
2837 } 2854 }
2855
2838 core.bool iamOwned; 2856 core.bool iamOwned;
2839 /** 2857
2840 * If more than one rule is specified, the rules are applied in the following 2858 /// If more than one rule is specified, the rules are applied in the
2841 * manner: - All matching LOG rules are always applied. - If any 2859 /// following manner: - All matching LOG rules are always applied. - If any
2842 * DENY/DENY_WITH_LOG rule matches, permission is denied. Logging will be 2860 /// DENY/DENY_WITH_LOG rule matches, permission is denied. Logging will be
2843 * applied if one or more matching rule requires logging. - Otherwise, if any 2861 /// applied if one or more matching rule requires logging. - Otherwise, if
2844 * ALLOW/ALLOW_WITH_LOG rule matches, permission is granted. Logging will be 2862 /// any ALLOW/ALLOW_WITH_LOG rule matches, permission is granted. Logging
2845 * applied if one or more matching rule requires logging. - Otherwise, if no 2863 /// will be applied if one or more matching rule requires logging. -
2846 * rule applies, permission is denied. 2864 /// Otherwise, if no rule applies, permission is denied.
2847 */
2848 core.List<Rule> rules; 2865 core.List<Rule> rules;
2849 /** Version of the `Policy`. The default version is 0. */ 2866
2867 /// Version of the `Policy`. The default version is 0.
2850 core.int version; 2868 core.int version;
2851 2869
2852 Policy(); 2870 Policy();
2853 2871
2854 Policy.fromJson(core.Map _json) { 2872 Policy.fromJson(core.Map _json) {
2855 if (_json.containsKey("auditConfigs")) { 2873 if (_json.containsKey("auditConfigs")) {
2856 auditConfigs = _json["auditConfigs"].map((value) => new AuditConfig.fromJs on(value)).toList(); 2874 auditConfigs = _json["auditConfigs"]
2875 .map((value) => new AuditConfig.fromJson(value))
2876 .toList();
2857 } 2877 }
2858 if (_json.containsKey("bindings")) { 2878 if (_json.containsKey("bindings")) {
2859 bindings = _json["bindings"].map((value) => new Binding.fromJson(value)).t oList(); 2879 bindings = _json["bindings"]
2880 .map((value) => new Binding.fromJson(value))
2881 .toList();
2860 } 2882 }
2861 if (_json.containsKey("etag")) { 2883 if (_json.containsKey("etag")) {
2862 etag = _json["etag"]; 2884 etag = _json["etag"];
2863 } 2885 }
2864 if (_json.containsKey("iamOwned")) { 2886 if (_json.containsKey("iamOwned")) {
2865 iamOwned = _json["iamOwned"]; 2887 iamOwned = _json["iamOwned"];
2866 } 2888 }
2867 if (_json.containsKey("rules")) { 2889 if (_json.containsKey("rules")) {
2868 rules = _json["rules"].map((value) => new Rule.fromJson(value)).toList(); 2890 rules = _json["rules"].map((value) => new Rule.fromJson(value)).toList();
2869 } 2891 }
2870 if (_json.containsKey("version")) { 2892 if (_json.containsKey("version")) {
2871 version = _json["version"]; 2893 version = _json["version"];
2872 } 2894 }
2873 } 2895 }
2874 2896
2875 core.Map<core.String, core.Object> toJson() { 2897 core.Map<core.String, core.Object> toJson() {
2876 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2898 final core.Map<core.String, core.Object> _json =
2899 new core.Map<core.String, core.Object>();
2877 if (auditConfigs != null) { 2900 if (auditConfigs != null) {
2878 _json["auditConfigs"] = auditConfigs.map((value) => (value).toJson()).toLi st(); 2901 _json["auditConfigs"] =
2902 auditConfigs.map((value) => (value).toJson()).toList();
2879 } 2903 }
2880 if (bindings != null) { 2904 if (bindings != null) {
2881 _json["bindings"] = bindings.map((value) => (value).toJson()).toList(); 2905 _json["bindings"] = bindings.map((value) => (value).toJson()).toList();
2882 } 2906 }
2883 if (etag != null) { 2907 if (etag != null) {
2884 _json["etag"] = etag; 2908 _json["etag"] = etag;
2885 } 2909 }
2886 if (iamOwned != null) { 2910 if (iamOwned != null) {
2887 _json["iamOwned"] = iamOwned; 2911 _json["iamOwned"] = iamOwned;
2888 } 2912 }
2889 if (rules != null) { 2913 if (rules != null) {
2890 _json["rules"] = rules.map((value) => (value).toJson()).toList(); 2914 _json["rules"] = rules.map((value) => (value).toJson()).toList();
2891 } 2915 }
2892 if (version != null) { 2916 if (version != null) {
2893 _json["version"] = version; 2917 _json["version"] = version;
2894 } 2918 }
2895 return _json; 2919 return _json;
2896 } 2920 }
2897 } 2921 }
2898 2922
2899 class ResourceWarningsData { 2923 class ResourceWarningsData {
2900 /** 2924 /// [Output Only] A key that provides more detail on the warning being
2901 * [Output Only] A key that provides more detail on the warning being 2925 /// returned. For example, for warnings where there are no results in a list
2902 * returned. For example, for warnings where there are no results in a list 2926 /// request for a particular zone, this key might be scope and the key value
2903 * request for a particular zone, this key might be scope and the key value 2927 /// might be the zone name. Other examples might be a key indicating a
2904 * might be the zone name. Other examples might be a key indicating a 2928 /// deprecated resource and a suggested replacement, or a warning about
2905 * deprecated resource and a suggested replacement, or a warning about invalid 2929 /// invalid network settings (for example, if an instance attempts to perform
2906 * network settings (for example, if an instance attempts to perform IP 2930 /// IP forwarding but is not enabled for IP forwarding).
2907 * forwarding but is not enabled for IP forwarding).
2908 */
2909 core.String key; 2931 core.String key;
2910 /** [Output Only] A warning data value corresponding to the key. */ 2932
2933 /// [Output Only] A warning data value corresponding to the key.
2911 core.String value; 2934 core.String value;
2912 2935
2913 ResourceWarningsData(); 2936 ResourceWarningsData();
2914 2937
2915 ResourceWarningsData.fromJson(core.Map _json) { 2938 ResourceWarningsData.fromJson(core.Map _json) {
2916 if (_json.containsKey("key")) { 2939 if (_json.containsKey("key")) {
2917 key = _json["key"]; 2940 key = _json["key"];
2918 } 2941 }
2919 if (_json.containsKey("value")) { 2942 if (_json.containsKey("value")) {
2920 value = _json["value"]; 2943 value = _json["value"];
2921 } 2944 }
2922 } 2945 }
2923 2946
2924 core.Map<core.String, core.Object> toJson() { 2947 core.Map<core.String, core.Object> toJson() {
2925 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2948 final core.Map<core.String, core.Object> _json =
2949 new core.Map<core.String, core.Object>();
2926 if (key != null) { 2950 if (key != null) {
2927 _json["key"] = key; 2951 _json["key"] = key;
2928 } 2952 }
2929 if (value != null) { 2953 if (value != null) {
2930 _json["value"] = value; 2954 _json["value"] = value;
2931 } 2955 }
2932 return _json; 2956 return _json;
2933 } 2957 }
2934 } 2958 }
2935 2959
2936 class ResourceWarnings { 2960 class ResourceWarnings {
2937 /** 2961 /// [Output Only] A warning code, if applicable. For example, Compute Engine
2938 * [Output Only] A warning code, if applicable. For example, Compute Engine 2962 /// returns NO_RESULTS_ON_PAGE if there are no results in the response.
2939 * returns NO_RESULTS_ON_PAGE if there are no results in the response.
2940 */
2941 core.String code; 2963 core.String code;
2942 /** 2964
2943 * [Output Only] Metadata about this warning in key: value format. For 2965 /// [Output Only] Metadata about this warning in key: value format. For
2944 * example: 2966 /// example:
2945 * "data": [ { "key": "scope", "value": "zones/us-east1-d" } 2967 /// "data": [ { "key": "scope", "value": "zones/us-east1-d" }
2946 */
2947 core.List<ResourceWarningsData> data; 2968 core.List<ResourceWarningsData> data;
2948 /** [Output Only] A human-readable description of the warning code. */ 2969
2970 /// [Output Only] A human-readable description of the warning code.
2949 core.String message; 2971 core.String message;
2950 2972
2951 ResourceWarnings(); 2973 ResourceWarnings();
2952 2974
2953 ResourceWarnings.fromJson(core.Map _json) { 2975 ResourceWarnings.fromJson(core.Map _json) {
2954 if (_json.containsKey("code")) { 2976 if (_json.containsKey("code")) {
2955 code = _json["code"]; 2977 code = _json["code"];
2956 } 2978 }
2957 if (_json.containsKey("data")) { 2979 if (_json.containsKey("data")) {
2958 data = _json["data"].map((value) => new ResourceWarningsData.fromJson(valu e)).toList(); 2980 data = _json["data"]
2981 .map((value) => new ResourceWarningsData.fromJson(value))
2982 .toList();
2959 } 2983 }
2960 if (_json.containsKey("message")) { 2984 if (_json.containsKey("message")) {
2961 message = _json["message"]; 2985 message = _json["message"];
2962 } 2986 }
2963 } 2987 }
2964 2988
2965 core.Map<core.String, core.Object> toJson() { 2989 core.Map<core.String, core.Object> toJson() {
2966 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2990 final core.Map<core.String, core.Object> _json =
2991 new core.Map<core.String, core.Object>();
2967 if (code != null) { 2992 if (code != null) {
2968 _json["code"] = code; 2993 _json["code"] = code;
2969 } 2994 }
2970 if (data != null) { 2995 if (data != null) {
2971 _json["data"] = data.map((value) => (value).toJson()).toList(); 2996 _json["data"] = data.map((value) => (value).toJson()).toList();
2972 } 2997 }
2973 if (message != null) { 2998 if (message != null) {
2974 _json["message"] = message; 2999 _json["message"] = message;
2975 } 3000 }
2976 return _json; 3001 return _json;
2977 } 3002 }
2978 } 3003 }
2979 3004
2980 class Resource { 3005 class Resource {
2981 /** The Access Control Policy set on this resource. */ 3006 /// The Access Control Policy set on this resource.
2982 ResourceAccessControl accessControl; 3007 ResourceAccessControl accessControl;
2983 /** 3008
2984 * [Output Only] The evaluated properties of the resource with references 3009 /// [Output Only] The evaluated properties of the resource with references
2985 * expanded. Returned as serialized YAML. 3010 /// expanded. Returned as serialized YAML.
2986 */
2987 core.String finalProperties; 3011 core.String finalProperties;
2988 /** 3012
2989 * [Output Only] Unique identifier for the resource; defined by the server. 3013 /// [Output Only] Unique identifier for the resource; defined by the server.
2990 */
2991 core.String id; 3014 core.String id;
2992 /** 3015
2993 * [Output Only] Timestamp when the resource was created or acquired, in 3016 /// [Output Only] Timestamp when the resource was created or acquired, in
2994 * RFC3339 text format . 3017 /// RFC3339 text format .
2995 */
2996 core.String insertTime; 3018 core.String insertTime;
2997 /** 3019
2998 * [Output Only] URL of the manifest representing the current configuration of 3020 /// [Output Only] URL of the manifest representing the current configuration
2999 * this resource. 3021 /// of this resource.
3000 */
3001 core.String manifest; 3022 core.String manifest;
3002 /** 3023
3003 * [Output Only] The name of the resource as it appears in the YAML config. 3024 /// [Output Only] The name of the resource as it appears in the YAML config.
3004 */
3005 core.String name; 3025 core.String name;
3006 /** 3026
3007 * [Output Only] The current properties of the resource before any references 3027 /// [Output Only] The current properties of the resource before any
3008 * have been filled in. Returned as serialized YAML. 3028 /// references have been filled in. Returned as serialized YAML.
3009 */
3010 core.String properties; 3029 core.String properties;
3011 /** 3030
3012 * [Output Only] The type of the resource, for example compute.v1.instance, or 3031 /// [Output Only] The type of the resource, for example compute.v1.instance,
3013 * cloudfunctions.v1beta1.function. 3032 /// or cloudfunctions.v1beta1.function.
3014 */
3015 core.String type; 3033 core.String type;
3016 /** 3034
3017 * [Output Only] If Deployment Manager is currently updating or previewing an 3035 /// [Output Only] If Deployment Manager is currently updating or previewing
3018 * update to this resource, the updated configuration appears here. 3036 /// an update to this resource, the updated configuration appears here.
3019 */
3020 ResourceUpdate update; 3037 ResourceUpdate update;
3021 /** 3038
3022 * [Output Only] Timestamp when the resource was updated, in RFC3339 text 3039 /// [Output Only] Timestamp when the resource was updated, in RFC3339 text
3023 * format . 3040 /// format .
3024 */
3025 core.String updateTime; 3041 core.String updateTime;
3026 /** [Output Only] The URL of the actual resource. */ 3042
3043 /// [Output Only] The URL of the actual resource.
3027 core.String url; 3044 core.String url;
3028 /** 3045
3029 * [Output Only] If warning messages are generated during processing of this 3046 /// [Output Only] If warning messages are generated during processing of this
3030 * resource, this field will be populated. 3047 /// resource, this field will be populated.
3031 */
3032 core.List<ResourceWarnings> warnings; 3048 core.List<ResourceWarnings> warnings;
3033 3049
3034 Resource(); 3050 Resource();
3035 3051
3036 Resource.fromJson(core.Map _json) { 3052 Resource.fromJson(core.Map _json) {
3037 if (_json.containsKey("accessControl")) { 3053 if (_json.containsKey("accessControl")) {
3038 accessControl = new ResourceAccessControl.fromJson(_json["accessControl"]) ; 3054 accessControl =
3055 new ResourceAccessControl.fromJson(_json["accessControl"]);
3039 } 3056 }
3040 if (_json.containsKey("finalProperties")) { 3057 if (_json.containsKey("finalProperties")) {
3041 finalProperties = _json["finalProperties"]; 3058 finalProperties = _json["finalProperties"];
3042 } 3059 }
3043 if (_json.containsKey("id")) { 3060 if (_json.containsKey("id")) {
3044 id = _json["id"]; 3061 id = _json["id"];
3045 } 3062 }
3046 if (_json.containsKey("insertTime")) { 3063 if (_json.containsKey("insertTime")) {
3047 insertTime = _json["insertTime"]; 3064 insertTime = _json["insertTime"];
3048 } 3065 }
(...skipping 12 matching lines...) Expand all
3061 if (_json.containsKey("update")) { 3078 if (_json.containsKey("update")) {
3062 update = new ResourceUpdate.fromJson(_json["update"]); 3079 update = new ResourceUpdate.fromJson(_json["update"]);
3063 } 3080 }
3064 if (_json.containsKey("updateTime")) { 3081 if (_json.containsKey("updateTime")) {
3065 updateTime = _json["updateTime"]; 3082 updateTime = _json["updateTime"];
3066 } 3083 }
3067 if (_json.containsKey("url")) { 3084 if (_json.containsKey("url")) {
3068 url = _json["url"]; 3085 url = _json["url"];
3069 } 3086 }
3070 if (_json.containsKey("warnings")) { 3087 if (_json.containsKey("warnings")) {
3071 warnings = _json["warnings"].map((value) => new ResourceWarnings.fromJson( value)).toList(); 3088 warnings = _json["warnings"]
3089 .map((value) => new ResourceWarnings.fromJson(value))
3090 .toList();
3072 } 3091 }
3073 } 3092 }
3074 3093
3075 core.Map<core.String, core.Object> toJson() { 3094 core.Map<core.String, core.Object> toJson() {
3076 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3095 final core.Map<core.String, core.Object> _json =
3096 new core.Map<core.String, core.Object>();
3077 if (accessControl != null) { 3097 if (accessControl != null) {
3078 _json["accessControl"] = (accessControl).toJson(); 3098 _json["accessControl"] = (accessControl).toJson();
3079 } 3099 }
3080 if (finalProperties != null) { 3100 if (finalProperties != null) {
3081 _json["finalProperties"] = finalProperties; 3101 _json["finalProperties"] = finalProperties;
3082 } 3102 }
3083 if (id != null) { 3103 if (id != null) {
3084 _json["id"] = id; 3104 _json["id"] = id;
3085 } 3105 }
3086 if (insertTime != null) { 3106 if (insertTime != null) {
(...skipping 20 matching lines...) Expand all
3107 if (url != null) { 3127 if (url != null) {
3108 _json["url"] = url; 3128 _json["url"] = url;
3109 } 3129 }
3110 if (warnings != null) { 3130 if (warnings != null) {
3111 _json["warnings"] = warnings.map((value) => (value).toJson()).toList(); 3131 _json["warnings"] = warnings.map((value) => (value).toJson()).toList();
3112 } 3132 }
3113 return _json; 3133 return _json;
3114 } 3134 }
3115 } 3135 }
3116 3136
3117 /** The access controls set on the resource. */ 3137 /// The access controls set on the resource.
3118 class ResourceAccessControl { 3138 class ResourceAccessControl {
3119 /** The GCP IAM Policy to set on the resource. */ 3139 /// The GCP IAM Policy to set on the resource.
3120 core.String gcpIamPolicy; 3140 core.String gcpIamPolicy;
3121 3141
3122 ResourceAccessControl(); 3142 ResourceAccessControl();
3123 3143
3124 ResourceAccessControl.fromJson(core.Map _json) { 3144 ResourceAccessControl.fromJson(core.Map _json) {
3125 if (_json.containsKey("gcpIamPolicy")) { 3145 if (_json.containsKey("gcpIamPolicy")) {
3126 gcpIamPolicy = _json["gcpIamPolicy"]; 3146 gcpIamPolicy = _json["gcpIamPolicy"];
3127 } 3147 }
3128 } 3148 }
3129 3149
3130 core.Map<core.String, core.Object> toJson() { 3150 core.Map<core.String, core.Object> toJson() {
3131 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3151 final core.Map<core.String, core.Object> _json =
3152 new core.Map<core.String, core.Object>();
3132 if (gcpIamPolicy != null) { 3153 if (gcpIamPolicy != null) {
3133 _json["gcpIamPolicy"] = gcpIamPolicy; 3154 _json["gcpIamPolicy"] = gcpIamPolicy;
3134 } 3155 }
3135 return _json; 3156 return _json;
3136 } 3157 }
3137 } 3158 }
3138 3159
3139 class ResourceUpdateErrorErrors { 3160 class ResourceUpdateErrorErrors {
3140 /** [Output Only] The error type identifier for this error. */ 3161 /// [Output Only] The error type identifier for this error.
3141 core.String code; 3162 core.String code;
3142 /** 3163
3143 * [Output Only] Indicates the field in the request that caused the error. 3164 /// [Output Only] Indicates the field in the request that caused the error.
3144 * This property is optional. 3165 /// This property is optional.
3145 */
3146 core.String location; 3166 core.String location;
3147 /** [Output Only] An optional, human-readable error message. */ 3167
3168 /// [Output Only] An optional, human-readable error message.
3148 core.String message; 3169 core.String message;
3149 3170
3150 ResourceUpdateErrorErrors(); 3171 ResourceUpdateErrorErrors();
3151 3172
3152 ResourceUpdateErrorErrors.fromJson(core.Map _json) { 3173 ResourceUpdateErrorErrors.fromJson(core.Map _json) {
3153 if (_json.containsKey("code")) { 3174 if (_json.containsKey("code")) {
3154 code = _json["code"]; 3175 code = _json["code"];
3155 } 3176 }
3156 if (_json.containsKey("location")) { 3177 if (_json.containsKey("location")) {
3157 location = _json["location"]; 3178 location = _json["location"];
3158 } 3179 }
3159 if (_json.containsKey("message")) { 3180 if (_json.containsKey("message")) {
3160 message = _json["message"]; 3181 message = _json["message"];
3161 } 3182 }
3162 } 3183 }
3163 3184
3164 core.Map<core.String, core.Object> toJson() { 3185 core.Map<core.String, core.Object> toJson() {
3165 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3186 final core.Map<core.String, core.Object> _json =
3187 new core.Map<core.String, core.Object>();
3166 if (code != null) { 3188 if (code != null) {
3167 _json["code"] = code; 3189 _json["code"] = code;
3168 } 3190 }
3169 if (location != null) { 3191 if (location != null) {
3170 _json["location"] = location; 3192 _json["location"] = location;
3171 } 3193 }
3172 if (message != null) { 3194 if (message != null) {
3173 _json["message"] = message; 3195 _json["message"] = message;
3174 } 3196 }
3175 return _json; 3197 return _json;
3176 } 3198 }
3177 } 3199 }
3178 3200
3179 /** 3201 /// [Output Only] If errors are generated during update of the resource, this
3180 * [Output Only] If errors are generated during update of the resource, this 3202 /// field will be populated.
3181 * field will be populated.
3182 */
3183 class ResourceUpdateError { 3203 class ResourceUpdateError {
3184 /** 3204 /// [Output Only] The array of errors encountered while processing this
3185 * [Output Only] The array of errors encountered while processing this 3205 /// operation.
3186 * operation.
3187 */
3188 core.List<ResourceUpdateErrorErrors> errors; 3206 core.List<ResourceUpdateErrorErrors> errors;
3189 3207
3190 ResourceUpdateError(); 3208 ResourceUpdateError();
3191 3209
3192 ResourceUpdateError.fromJson(core.Map _json) { 3210 ResourceUpdateError.fromJson(core.Map _json) {
3193 if (_json.containsKey("errors")) { 3211 if (_json.containsKey("errors")) {
3194 errors = _json["errors"].map((value) => new ResourceUpdateErrorErrors.from Json(value)).toList(); 3212 errors = _json["errors"]
3213 .map((value) => new ResourceUpdateErrorErrors.fromJson(value))
3214 .toList();
3195 } 3215 }
3196 } 3216 }
3197 3217
3198 core.Map<core.String, core.Object> toJson() { 3218 core.Map<core.String, core.Object> toJson() {
3199 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3219 final core.Map<core.String, core.Object> _json =
3220 new core.Map<core.String, core.Object>();
3200 if (errors != null) { 3221 if (errors != null) {
3201 _json["errors"] = errors.map((value) => (value).toJson()).toList(); 3222 _json["errors"] = errors.map((value) => (value).toJson()).toList();
3202 } 3223 }
3203 return _json; 3224 return _json;
3204 } 3225 }
3205 } 3226 }
3206 3227
3207 class ResourceUpdateWarningsData { 3228 class ResourceUpdateWarningsData {
3208 /** 3229 /// [Output Only] A key that provides more detail on the warning being
3209 * [Output Only] A key that provides more detail on the warning being 3230 /// returned. For example, for warnings where there are no results in a list
3210 * returned. For example, for warnings where there are no results in a list 3231 /// request for a particular zone, this key might be scope and the key value
3211 * request for a particular zone, this key might be scope and the key value 3232 /// might be the zone name. Other examples might be a key indicating a
3212 * might be the zone name. Other examples might be a key indicating a 3233 /// deprecated resource and a suggested replacement, or a warning about
3213 * deprecated resource and a suggested replacement, or a warning about invalid 3234 /// invalid network settings (for example, if an instance attempts to perform
3214 * network settings (for example, if an instance attempts to perform IP 3235 /// IP forwarding but is not enabled for IP forwarding).
3215 * forwarding but is not enabled for IP forwarding).
3216 */
3217 core.String key; 3236 core.String key;
3218 /** [Output Only] A warning data value corresponding to the key. */ 3237
3238 /// [Output Only] A warning data value corresponding to the key.
3219 core.String value; 3239 core.String value;
3220 3240
3221 ResourceUpdateWarningsData(); 3241 ResourceUpdateWarningsData();
3222 3242
3223 ResourceUpdateWarningsData.fromJson(core.Map _json) { 3243 ResourceUpdateWarningsData.fromJson(core.Map _json) {
3224 if (_json.containsKey("key")) { 3244 if (_json.containsKey("key")) {
3225 key = _json["key"]; 3245 key = _json["key"];
3226 } 3246 }
3227 if (_json.containsKey("value")) { 3247 if (_json.containsKey("value")) {
3228 value = _json["value"]; 3248 value = _json["value"];
3229 } 3249 }
3230 } 3250 }
3231 3251
3232 core.Map<core.String, core.Object> toJson() { 3252 core.Map<core.String, core.Object> toJson() {
3233 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3253 final core.Map<core.String, core.Object> _json =
3254 new core.Map<core.String, core.Object>();
3234 if (key != null) { 3255 if (key != null) {
3235 _json["key"] = key; 3256 _json["key"] = key;
3236 } 3257 }
3237 if (value != null) { 3258 if (value != null) {
3238 _json["value"] = value; 3259 _json["value"] = value;
3239 } 3260 }
3240 return _json; 3261 return _json;
3241 } 3262 }
3242 } 3263 }
3243 3264
3244 class ResourceUpdateWarnings { 3265 class ResourceUpdateWarnings {
3245 /** 3266 /// [Output Only] A warning code, if applicable. For example, Compute Engine
3246 * [Output Only] A warning code, if applicable. For example, Compute Engine 3267 /// returns NO_RESULTS_ON_PAGE if there are no results in the response.
3247 * returns NO_RESULTS_ON_PAGE if there are no results in the response.
3248 */
3249 core.String code; 3268 core.String code;
3250 /** 3269
3251 * [Output Only] Metadata about this warning in key: value format. For 3270 /// [Output Only] Metadata about this warning in key: value format. For
3252 * example: 3271 /// example:
3253 * "data": [ { "key": "scope", "value": "zones/us-east1-d" } 3272 /// "data": [ { "key": "scope", "value": "zones/us-east1-d" }
3254 */
3255 core.List<ResourceUpdateWarningsData> data; 3273 core.List<ResourceUpdateWarningsData> data;
3256 /** [Output Only] A human-readable description of the warning code. */ 3274
3275 /// [Output Only] A human-readable description of the warning code.
3257 core.String message; 3276 core.String message;
3258 3277
3259 ResourceUpdateWarnings(); 3278 ResourceUpdateWarnings();
3260 3279
3261 ResourceUpdateWarnings.fromJson(core.Map _json) { 3280 ResourceUpdateWarnings.fromJson(core.Map _json) {
3262 if (_json.containsKey("code")) { 3281 if (_json.containsKey("code")) {
3263 code = _json["code"]; 3282 code = _json["code"];
3264 } 3283 }
3265 if (_json.containsKey("data")) { 3284 if (_json.containsKey("data")) {
3266 data = _json["data"].map((value) => new ResourceUpdateWarningsData.fromJso n(value)).toList(); 3285 data = _json["data"]
3286 .map((value) => new ResourceUpdateWarningsData.fromJson(value))
3287 .toList();
3267 } 3288 }
3268 if (_json.containsKey("message")) { 3289 if (_json.containsKey("message")) {
3269 message = _json["message"]; 3290 message = _json["message"];
3270 } 3291 }
3271 } 3292 }
3272 3293
3273 core.Map<core.String, core.Object> toJson() { 3294 core.Map<core.String, core.Object> toJson() {
3274 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3295 final core.Map<core.String, core.Object> _json =
3296 new core.Map<core.String, core.Object>();
3275 if (code != null) { 3297 if (code != null) {
3276 _json["code"] = code; 3298 _json["code"] = code;
3277 } 3299 }
3278 if (data != null) { 3300 if (data != null) {
3279 _json["data"] = data.map((value) => (value).toJson()).toList(); 3301 _json["data"] = data.map((value) => (value).toJson()).toList();
3280 } 3302 }
3281 if (message != null) { 3303 if (message != null) {
3282 _json["message"] = message; 3304 _json["message"] = message;
3283 } 3305 }
3284 return _json; 3306 return _json;
3285 } 3307 }
3286 } 3308 }
3287 3309
3288 class ResourceUpdate { 3310 class ResourceUpdate {
3289 /** 3311 /// The Access Control Policy to set on this resource after updating the
3290 * The Access Control Policy to set on this resource after updating the 3312 /// resource itself.
3291 * resource itself.
3292 */
3293 ResourceAccessControl accessControl; 3313 ResourceAccessControl accessControl;
3294 /** 3314
3295 * [Output Only] If errors are generated during update of the resource, this 3315 /// [Output Only] If errors are generated during update of the resource, this
3296 * field will be populated. 3316 /// field will be populated.
3297 */
3298 ResourceUpdateError error; 3317 ResourceUpdateError error;
3299 /** 3318
3300 * [Output Only] The expanded properties of the resource with reference values 3319 /// [Output Only] The expanded properties of the resource with reference
3301 * expanded. Returned as serialized YAML. 3320 /// values expanded. Returned as serialized YAML.
3302 */
3303 core.String finalProperties; 3321 core.String finalProperties;
3304 /** [Output Only] The intent of the resource: PREVIEW, UPDATE, or CANCEL. */ 3322
3323 /// [Output Only] The intent of the resource: PREVIEW, UPDATE, or CANCEL.
3305 core.String intent; 3324 core.String intent;
3306 /** 3325
3307 * [Output Only] URL of the manifest representing the update configuration of 3326 /// [Output Only] URL of the manifest representing the update configuration
3308 * this resource. 3327 /// of this resource.
3309 */
3310 core.String manifest; 3328 core.String manifest;
3311 /** 3329
3312 * [Output Only] The set of updated properties for this resource, before 3330 /// [Output Only] The set of updated properties for this resource, before
3313 * references are expanded. Returned as serialized YAML. 3331 /// references are expanded. Returned as serialized YAML.
3314 */
3315 core.String properties; 3332 core.String properties;
3316 /** [Output Only] The state of the resource. */ 3333
3334 /// [Output Only] The state of the resource.
3317 core.String state; 3335 core.String state;
3318 /** 3336
3319 * [Output Only] If warning messages are generated during processing of this 3337 /// [Output Only] If warning messages are generated during processing of this
3320 * resource, this field will be populated. 3338 /// resource, this field will be populated.
3321 */
3322 core.List<ResourceUpdateWarnings> warnings; 3339 core.List<ResourceUpdateWarnings> warnings;
3323 3340
3324 ResourceUpdate(); 3341 ResourceUpdate();
3325 3342
3326 ResourceUpdate.fromJson(core.Map _json) { 3343 ResourceUpdate.fromJson(core.Map _json) {
3327 if (_json.containsKey("accessControl")) { 3344 if (_json.containsKey("accessControl")) {
3328 accessControl = new ResourceAccessControl.fromJson(_json["accessControl"]) ; 3345 accessControl =
3346 new ResourceAccessControl.fromJson(_json["accessControl"]);
3329 } 3347 }
3330 if (_json.containsKey("error")) { 3348 if (_json.containsKey("error")) {
3331 error = new ResourceUpdateError.fromJson(_json["error"]); 3349 error = new ResourceUpdateError.fromJson(_json["error"]);
3332 } 3350 }
3333 if (_json.containsKey("finalProperties")) { 3351 if (_json.containsKey("finalProperties")) {
3334 finalProperties = _json["finalProperties"]; 3352 finalProperties = _json["finalProperties"];
3335 } 3353 }
3336 if (_json.containsKey("intent")) { 3354 if (_json.containsKey("intent")) {
3337 intent = _json["intent"]; 3355 intent = _json["intent"];
3338 } 3356 }
3339 if (_json.containsKey("manifest")) { 3357 if (_json.containsKey("manifest")) {
3340 manifest = _json["manifest"]; 3358 manifest = _json["manifest"];
3341 } 3359 }
3342 if (_json.containsKey("properties")) { 3360 if (_json.containsKey("properties")) {
3343 properties = _json["properties"]; 3361 properties = _json["properties"];
3344 } 3362 }
3345 if (_json.containsKey("state")) { 3363 if (_json.containsKey("state")) {
3346 state = _json["state"]; 3364 state = _json["state"];
3347 } 3365 }
3348 if (_json.containsKey("warnings")) { 3366 if (_json.containsKey("warnings")) {
3349 warnings = _json["warnings"].map((value) => new ResourceUpdateWarnings.fro mJson(value)).toList(); 3367 warnings = _json["warnings"]
3368 .map((value) => new ResourceUpdateWarnings.fromJson(value))
3369 .toList();
3350 } 3370 }
3351 } 3371 }
3352 3372
3353 core.Map<core.String, core.Object> toJson() { 3373 core.Map<core.String, core.Object> toJson() {
3354 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3374 final core.Map<core.String, core.Object> _json =
3375 new core.Map<core.String, core.Object>();
3355 if (accessControl != null) { 3376 if (accessControl != null) {
3356 _json["accessControl"] = (accessControl).toJson(); 3377 _json["accessControl"] = (accessControl).toJson();
3357 } 3378 }
3358 if (error != null) { 3379 if (error != null) {
3359 _json["error"] = (error).toJson(); 3380 _json["error"] = (error).toJson();
3360 } 3381 }
3361 if (finalProperties != null) { 3382 if (finalProperties != null) {
3362 _json["finalProperties"] = finalProperties; 3383 _json["finalProperties"] = finalProperties;
3363 } 3384 }
3364 if (intent != null) { 3385 if (intent != null) {
3365 _json["intent"] = intent; 3386 _json["intent"] = intent;
3366 } 3387 }
3367 if (manifest != null) { 3388 if (manifest != null) {
3368 _json["manifest"] = manifest; 3389 _json["manifest"] = manifest;
3369 } 3390 }
3370 if (properties != null) { 3391 if (properties != null) {
3371 _json["properties"] = properties; 3392 _json["properties"] = properties;
3372 } 3393 }
3373 if (state != null) { 3394 if (state != null) {
3374 _json["state"] = state; 3395 _json["state"] = state;
3375 } 3396 }
3376 if (warnings != null) { 3397 if (warnings != null) {
3377 _json["warnings"] = warnings.map((value) => (value).toJson()).toList(); 3398 _json["warnings"] = warnings.map((value) => (value).toJson()).toList();
3378 } 3399 }
3379 return _json; 3400 return _json;
3380 } 3401 }
3381 } 3402 }
3382 3403
3383 /** 3404 /// A response containing a partial list of resources and a page token used to
3384 * A response containing a partial list of resources and a page token used to 3405 /// build the next request if the request has been truncated.
3385 * build the next request if the request has been truncated.
3386 */
3387 class ResourcesListResponse { 3406 class ResourcesListResponse {
3388 /** A token used to continue a truncated list request. */ 3407 /// A token used to continue a truncated list request.
3389 core.String nextPageToken; 3408 core.String nextPageToken;
3390 /** Resources contained in this list response. */ 3409
3410 /// Resources contained in this list response.
3391 core.List<Resource> resources; 3411 core.List<Resource> resources;
3392 3412
3393 ResourcesListResponse(); 3413 ResourcesListResponse();
3394 3414
3395 ResourcesListResponse.fromJson(core.Map _json) { 3415 ResourcesListResponse.fromJson(core.Map _json) {
3396 if (_json.containsKey("nextPageToken")) { 3416 if (_json.containsKey("nextPageToken")) {
3397 nextPageToken = _json["nextPageToken"]; 3417 nextPageToken = _json["nextPageToken"];
3398 } 3418 }
3399 if (_json.containsKey("resources")) { 3419 if (_json.containsKey("resources")) {
3400 resources = _json["resources"].map((value) => new Resource.fromJson(value) ).toList(); 3420 resources = _json["resources"]
3421 .map((value) => new Resource.fromJson(value))
3422 .toList();
3401 } 3423 }
3402 } 3424 }
3403 3425
3404 core.Map<core.String, core.Object> toJson() { 3426 core.Map<core.String, core.Object> toJson() {
3405 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3427 final core.Map<core.String, core.Object> _json =
3428 new core.Map<core.String, core.Object>();
3406 if (nextPageToken != null) { 3429 if (nextPageToken != null) {
3407 _json["nextPageToken"] = nextPageToken; 3430 _json["nextPageToken"] = nextPageToken;
3408 } 3431 }
3409 if (resources != null) { 3432 if (resources != null) {
3410 _json["resources"] = resources.map((value) => (value).toJson()).toList(); 3433 _json["resources"] = resources.map((value) => (value).toJson()).toList();
3411 } 3434 }
3412 return _json; 3435 return _json;
3413 } 3436 }
3414 } 3437 }
3415 3438
3416 /** A rule to be applied in a Policy. */ 3439 /// A rule to be applied in a Policy.
3417 class Rule { 3440 class Rule {
3418 /** Required */ 3441 /// Required
3419 core.String action; 3442 core.String action;
3420 /** Additional restrictions that must be met */ 3443
3444 /// Additional restrictions that must be met
3421 core.List<Condition> conditions; 3445 core.List<Condition> conditions;
3422 /** Human-readable description of the rule. */ 3446
3447 /// Human-readable description of the rule.
3423 core.String description; 3448 core.String description;
3424 /** 3449
3425 * If one or more 'in' clauses are specified, the rule matches if the 3450 /// If one or more 'in' clauses are specified, the rule matches if the
3426 * PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries. 3451 /// PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries.
3427 */
3428 core.List<core.String> ins; 3452 core.List<core.String> ins;
3429 /** 3453
3430 * The config returned to callers of tech.iam.IAM.CheckPolicy for any entries 3454 /// The config returned to callers of tech.iam.IAM.CheckPolicy for any
3431 * that match the LOG action. 3455 /// entries that match the LOG action.
3432 */
3433 core.List<LogConfig> logConfigs; 3456 core.List<LogConfig> logConfigs;
3434 /** 3457
3435 * If one or more 'not_in' clauses are specified, the rule matches if the 3458 /// If one or more 'not_in' clauses are specified, the rule matches if the
3436 * PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries. 3459 /// PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries.
3437 */
3438 core.List<core.String> notIns; 3460 core.List<core.String> notIns;
3439 /** 3461
3440 * A permission is a string of form '..' (e.g., 'storage.buckets.list'). A 3462 /// A permission is a string of form '..' (e.g., 'storage.buckets.list'). A
3441 * value of '*' matches all permissions, and a verb part of '*' (e.g., 3463 /// value of '*' matches all permissions, and a verb part of '*' (e.g.,
3442 * 'storage.buckets.*') matches all verbs. 3464 /// 'storage.buckets.*') matches all verbs.
3443 */
3444 core.List<core.String> permissions; 3465 core.List<core.String> permissions;
3445 3466
3446 Rule(); 3467 Rule();
3447 3468
3448 Rule.fromJson(core.Map _json) { 3469 Rule.fromJson(core.Map _json) {
3449 if (_json.containsKey("action")) { 3470 if (_json.containsKey("action")) {
3450 action = _json["action"]; 3471 action = _json["action"];
3451 } 3472 }
3452 if (_json.containsKey("conditions")) { 3473 if (_json.containsKey("conditions")) {
3453 conditions = _json["conditions"].map((value) => new Condition.fromJson(val ue)).toList(); 3474 conditions = _json["conditions"]
3475 .map((value) => new Condition.fromJson(value))
3476 .toList();
3454 } 3477 }
3455 if (_json.containsKey("description")) { 3478 if (_json.containsKey("description")) {
3456 description = _json["description"]; 3479 description = _json["description"];
3457 } 3480 }
3458 if (_json.containsKey("ins")) { 3481 if (_json.containsKey("ins")) {
3459 ins = _json["ins"]; 3482 ins = _json["ins"];
3460 } 3483 }
3461 if (_json.containsKey("logConfigs")) { 3484 if (_json.containsKey("logConfigs")) {
3462 logConfigs = _json["logConfigs"].map((value) => new LogConfig.fromJson(val ue)).toList(); 3485 logConfigs = _json["logConfigs"]
3486 .map((value) => new LogConfig.fromJson(value))
3487 .toList();
3463 } 3488 }
3464 if (_json.containsKey("notIns")) { 3489 if (_json.containsKey("notIns")) {
3465 notIns = _json["notIns"]; 3490 notIns = _json["notIns"];
3466 } 3491 }
3467 if (_json.containsKey("permissions")) { 3492 if (_json.containsKey("permissions")) {
3468 permissions = _json["permissions"]; 3493 permissions = _json["permissions"];
3469 } 3494 }
3470 } 3495 }
3471 3496
3472 core.Map<core.String, core.Object> toJson() { 3497 core.Map<core.String, core.Object> toJson() {
3473 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3498 final core.Map<core.String, core.Object> _json =
3499 new core.Map<core.String, core.Object>();
3474 if (action != null) { 3500 if (action != null) {
3475 _json["action"] = action; 3501 _json["action"] = action;
3476 } 3502 }
3477 if (conditions != null) { 3503 if (conditions != null) {
3478 _json["conditions"] = conditions.map((value) => (value).toJson()).toList() ; 3504 _json["conditions"] =
3505 conditions.map((value) => (value).toJson()).toList();
3479 } 3506 }
3480 if (description != null) { 3507 if (description != null) {
3481 _json["description"] = description; 3508 _json["description"] = description;
3482 } 3509 }
3483 if (ins != null) { 3510 if (ins != null) {
3484 _json["ins"] = ins; 3511 _json["ins"] = ins;
3485 } 3512 }
3486 if (logConfigs != null) { 3513 if (logConfigs != null) {
3487 _json["logConfigs"] = logConfigs.map((value) => (value).toJson()).toList() ; 3514 _json["logConfigs"] =
3515 logConfigs.map((value) => (value).toJson()).toList();
3488 } 3516 }
3489 if (notIns != null) { 3517 if (notIns != null) {
3490 _json["notIns"] = notIns; 3518 _json["notIns"] = notIns;
3491 } 3519 }
3492 if (permissions != null) { 3520 if (permissions != null) {
3493 _json["permissions"] = permissions; 3521 _json["permissions"] = permissions;
3494 } 3522 }
3495 return _json; 3523 return _json;
3496 } 3524 }
3497 } 3525 }
3498 3526
3499 class TargetConfiguration { 3527 class TargetConfiguration {
3500 /** The configuration to use for this deployment. */ 3528 /// The configuration to use for this deployment.
3501 ConfigFile config; 3529 ConfigFile config;
3502 /** 3530
3503 * Specifies any files to import for this configuration. This can be used to 3531 /// Specifies any files to import for this configuration. This can be used to
3504 * import templates or other files. For example, you might import a text file 3532 /// import templates or other files. For example, you might import a text
3505 * in order to use the file in a template. 3533 /// file in order to use the file in a template.
3506 */
3507 core.List<ImportFile> imports; 3534 core.List<ImportFile> imports;
3508 3535
3509 TargetConfiguration(); 3536 TargetConfiguration();
3510 3537
3511 TargetConfiguration.fromJson(core.Map _json) { 3538 TargetConfiguration.fromJson(core.Map _json) {
3512 if (_json.containsKey("config")) { 3539 if (_json.containsKey("config")) {
3513 config = new ConfigFile.fromJson(_json["config"]); 3540 config = new ConfigFile.fromJson(_json["config"]);
3514 } 3541 }
3515 if (_json.containsKey("imports")) { 3542 if (_json.containsKey("imports")) {
3516 imports = _json["imports"].map((value) => new ImportFile.fromJson(value)). toList(); 3543 imports = _json["imports"]
3544 .map((value) => new ImportFile.fromJson(value))
3545 .toList();
3517 } 3546 }
3518 } 3547 }
3519 3548
3520 core.Map<core.String, core.Object> toJson() { 3549 core.Map<core.String, core.Object> toJson() {
3521 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3550 final core.Map<core.String, core.Object> _json =
3551 new core.Map<core.String, core.Object>();
3522 if (config != null) { 3552 if (config != null) {
3523 _json["config"] = (config).toJson(); 3553 _json["config"] = (config).toJson();
3524 } 3554 }
3525 if (imports != null) { 3555 if (imports != null) {
3526 _json["imports"] = imports.map((value) => (value).toJson()).toList(); 3556 _json["imports"] = imports.map((value) => (value).toJson()).toList();
3527 } 3557 }
3528 return _json; 3558 return _json;
3529 } 3559 }
3530 } 3560 }
3531 3561
3532 class TestPermissionsRequest { 3562 class TestPermissionsRequest {
3533 /** 3563 /// The set of permissions to check for the 'resource'. Permissions with
3534 * The set of permissions to check for the 'resource'. Permissions with 3564 /// wildcards (such as '*' or 'storage.*') are not allowed.
3535 * wildcards (such as '*' or 'storage.*') are not allowed.
3536 */
3537 core.List<core.String> permissions; 3565 core.List<core.String> permissions;
3538 3566
3539 TestPermissionsRequest(); 3567 TestPermissionsRequest();
3540 3568
3541 TestPermissionsRequest.fromJson(core.Map _json) { 3569 TestPermissionsRequest.fromJson(core.Map _json) {
3542 if (_json.containsKey("permissions")) { 3570 if (_json.containsKey("permissions")) {
3543 permissions = _json["permissions"]; 3571 permissions = _json["permissions"];
3544 } 3572 }
3545 } 3573 }
3546 3574
3547 core.Map<core.String, core.Object> toJson() { 3575 core.Map<core.String, core.Object> toJson() {
3548 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3576 final core.Map<core.String, core.Object> _json =
3577 new core.Map<core.String, core.Object>();
3549 if (permissions != null) { 3578 if (permissions != null) {
3550 _json["permissions"] = permissions; 3579 _json["permissions"] = permissions;
3551 } 3580 }
3552 return _json; 3581 return _json;
3553 } 3582 }
3554 } 3583 }
3555 3584
3556 class TestPermissionsResponse { 3585 class TestPermissionsResponse {
3557 /** 3586 /// A subset of `TestPermissionsRequest.permissions` that the caller is
3558 * A subset of `TestPermissionsRequest.permissions` that the caller is 3587 /// allowed.
3559 * allowed.
3560 */
3561 core.List<core.String> permissions; 3588 core.List<core.String> permissions;
3562 3589
3563 TestPermissionsResponse(); 3590 TestPermissionsResponse();
3564 3591
3565 TestPermissionsResponse.fromJson(core.Map _json) { 3592 TestPermissionsResponse.fromJson(core.Map _json) {
3566 if (_json.containsKey("permissions")) { 3593 if (_json.containsKey("permissions")) {
3567 permissions = _json["permissions"]; 3594 permissions = _json["permissions"];
3568 } 3595 }
3569 } 3596 }
3570 3597
3571 core.Map<core.String, core.Object> toJson() { 3598 core.Map<core.String, core.Object> toJson() {
3572 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3599 final core.Map<core.String, core.Object> _json =
3600 new core.Map<core.String, core.Object>();
3573 if (permissions != null) { 3601 if (permissions != null) {
3574 _json["permissions"] = permissions; 3602 _json["permissions"] = permissions;
3575 } 3603 }
3576 return _json; 3604 return _json;
3577 } 3605 }
3578 } 3606 }
3579 3607
3580 /** A resource type supported by Deployment Manager. */ 3608 /// A resource type supported by Deployment Manager.
3581 class Type { 3609 class Type {
3582 /** 3610 /// [Output Only] Unique identifier for the resource; defined by the server.
3583 * [Output Only] Unique identifier for the resource; defined by the server.
3584 */
3585 core.String id; 3611 core.String id;
3586 /** 3612
3587 * [Output Only] Timestamp when the type was created, in RFC3339 text format. 3613 /// [Output Only] Timestamp when the type was created, in RFC3339 text
3588 */ 3614 /// format.
3589 core.String insertTime; 3615 core.String insertTime;
3590 /** Name of the type. */ 3616
3617 /// Name of the type.
3591 core.String name; 3618 core.String name;
3592 /** 3619
3593 * [Output Only] The Operation that most recently ran, or is currently 3620 /// [Output Only] The Operation that most recently ran, or is currently
3594 * running, on this type. 3621 /// running, on this type.
3595 */
3596 Operation operation; 3622 Operation operation;
3597 /** [Output Only] Self link for the type. */ 3623
3624 /// [Output Only] Self link for the type.
3598 core.String selfLink; 3625 core.String selfLink;
3599 3626
3600 Type(); 3627 Type();
3601 3628
3602 Type.fromJson(core.Map _json) { 3629 Type.fromJson(core.Map _json) {
3603 if (_json.containsKey("id")) { 3630 if (_json.containsKey("id")) {
3604 id = _json["id"]; 3631 id = _json["id"];
3605 } 3632 }
3606 if (_json.containsKey("insertTime")) { 3633 if (_json.containsKey("insertTime")) {
3607 insertTime = _json["insertTime"]; 3634 insertTime = _json["insertTime"];
3608 } 3635 }
3609 if (_json.containsKey("name")) { 3636 if (_json.containsKey("name")) {
3610 name = _json["name"]; 3637 name = _json["name"];
3611 } 3638 }
3612 if (_json.containsKey("operation")) { 3639 if (_json.containsKey("operation")) {
3613 operation = new Operation.fromJson(_json["operation"]); 3640 operation = new Operation.fromJson(_json["operation"]);
3614 } 3641 }
3615 if (_json.containsKey("selfLink")) { 3642 if (_json.containsKey("selfLink")) {
3616 selfLink = _json["selfLink"]; 3643 selfLink = _json["selfLink"];
3617 } 3644 }
3618 } 3645 }
3619 3646
3620 core.Map<core.String, core.Object> toJson() { 3647 core.Map<core.String, core.Object> toJson() {
3621 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3648 final core.Map<core.String, core.Object> _json =
3649 new core.Map<core.String, core.Object>();
3622 if (id != null) { 3650 if (id != null) {
3623 _json["id"] = id; 3651 _json["id"] = id;
3624 } 3652 }
3625 if (insertTime != null) { 3653 if (insertTime != null) {
3626 _json["insertTime"] = insertTime; 3654 _json["insertTime"] = insertTime;
3627 } 3655 }
3628 if (name != null) { 3656 if (name != null) {
3629 _json["name"] = name; 3657 _json["name"] = name;
3630 } 3658 }
3631 if (operation != null) { 3659 if (operation != null) {
3632 _json["operation"] = (operation).toJson(); 3660 _json["operation"] = (operation).toJson();
3633 } 3661 }
3634 if (selfLink != null) { 3662 if (selfLink != null) {
3635 _json["selfLink"] = selfLink; 3663 _json["selfLink"] = selfLink;
3636 } 3664 }
3637 return _json; 3665 return _json;
3638 } 3666 }
3639 } 3667 }
3640 3668
3641 /** A response that returns all Types supported by Deployment Manager */ 3669 /// A response that returns all Types supported by Deployment Manager
3642 class TypesListResponse { 3670 class TypesListResponse {
3643 /** A token used to continue a truncated list request. */ 3671 /// A token used to continue a truncated list request.
3644 core.String nextPageToken; 3672 core.String nextPageToken;
3645 /** 3673
3646 * [Output Only] A list of resource types supported by Deployment Manager. 3674 /// [Output Only] A list of resource types supported by Deployment Manager.
3647 */
3648 core.List<Type> types; 3675 core.List<Type> types;
3649 3676
3650 TypesListResponse(); 3677 TypesListResponse();
3651 3678
3652 TypesListResponse.fromJson(core.Map _json) { 3679 TypesListResponse.fromJson(core.Map _json) {
3653 if (_json.containsKey("nextPageToken")) { 3680 if (_json.containsKey("nextPageToken")) {
3654 nextPageToken = _json["nextPageToken"]; 3681 nextPageToken = _json["nextPageToken"];
3655 } 3682 }
3656 if (_json.containsKey("types")) { 3683 if (_json.containsKey("types")) {
3657 types = _json["types"].map((value) => new Type.fromJson(value)).toList(); 3684 types = _json["types"].map((value) => new Type.fromJson(value)).toList();
3658 } 3685 }
3659 } 3686 }
3660 3687
3661 core.Map<core.String, core.Object> toJson() { 3688 core.Map<core.String, core.Object> toJson() {
3662 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3689 final core.Map<core.String, core.Object> _json =
3690 new core.Map<core.String, core.Object>();
3663 if (nextPageToken != null) { 3691 if (nextPageToken != null) {
3664 _json["nextPageToken"] = nextPageToken; 3692 _json["nextPageToken"] = nextPageToken;
3665 } 3693 }
3666 if (types != null) { 3694 if (types != null) {
3667 _json["types"] = types.map((value) => (value).toJson()).toList(); 3695 _json["types"] = types.map((value) => (value).toJson()).toList();
3668 } 3696 }
3669 return _json; 3697 return _json;
3670 } 3698 }
3671 } 3699 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/datastore/v1.dart ('k') | generated/googleapis/lib/discovery/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698