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

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

Powered by Google App Engine
This is Rietveld 408576698