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

Side by Side Diff: generated/googleapis_beta/lib/clouduseraccounts/beta.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.clouduseraccounts.beta; 3 library googleapis_beta.clouduseraccounts.beta;
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 clouduseraccounts/beta'; 15 const core.String USER_AGENT = 'dart-api-client clouduseraccounts/beta';
16 16
17 /** 17 /// Creates and manages users and groups for accessing Google Compute Engine
18 * Creates and manages users and groups for accessing Google Compute Engine 18 /// virtual machines.
19 * virtual machines.
20 */
21 class ClouduseraccountsApi { 19 class ClouduseraccountsApi {
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 /** Manage your Google Cloud User Accounts */ 28 /// Manage your Google Cloud User Accounts
29 static const CloudUseraccountsScope = "https://www.googleapis.com/auth/cloud.u seraccounts"; 29 static const CloudUseraccountsScope =
30 "https://www.googleapis.com/auth/cloud.useraccounts";
30 31
31 /** View your Google Cloud User Accounts */ 32 /// View your Google Cloud User Accounts
32 static const CloudUseraccountsReadonlyScope = "https://www.googleapis.com/auth /cloud.useraccounts.readonly"; 33 static const CloudUseraccountsReadonlyScope =
33 34 "https://www.googleapis.com/auth/cloud.useraccounts.readonly";
34 35
35 final commons.ApiRequester _requester; 36 final commons.ApiRequester _requester;
36 37
37 GlobalAccountsOperationsResourceApi get globalAccountsOperations => new Global AccountsOperationsResourceApi(_requester); 38 GlobalAccountsOperationsResourceApi get globalAccountsOperations =>
39 new GlobalAccountsOperationsResourceApi(_requester);
38 GroupsResourceApi get groups => new GroupsResourceApi(_requester); 40 GroupsResourceApi get groups => new GroupsResourceApi(_requester);
39 LinuxResourceApi get linux => new LinuxResourceApi(_requester); 41 LinuxResourceApi get linux => new LinuxResourceApi(_requester);
40 UsersResourceApi get users => new UsersResourceApi(_requester); 42 UsersResourceApi get users => new UsersResourceApi(_requester);
41 43
42 ClouduseraccountsApi(http.Client client, {core.String rootUrl: "https://www.go ogleapis.com/", core.String servicePath: "clouduseraccounts/beta/projects/"}) : 44 ClouduseraccountsApi(http.Client client,
43 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A GENT); 45 {core.String rootUrl: "https://www.googleapis.com/",
46 core.String servicePath: "clouduseraccounts/beta/projects/"})
47 : _requester =
48 new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT);
44 } 49 }
45 50
46
47 class GlobalAccountsOperationsResourceApi { 51 class GlobalAccountsOperationsResourceApi {
48 final commons.ApiRequester _requester; 52 final commons.ApiRequester _requester;
49 53
50 GlobalAccountsOperationsResourceApi(commons.ApiRequester client) : 54 GlobalAccountsOperationsResourceApi(commons.ApiRequester client)
51 _requester = client; 55 : _requester = client;
52 56
53 /** 57 /// Deletes the specified operation resource.
54 * Deletes the specified operation resource. 58 ///
55 * 59 /// Request parameters:
56 * Request parameters: 60 ///
57 * 61 /// [project] - Project ID for this request.
58 * [project] - Project ID for this request. 62 /// Value must have pattern
59 * Value must have pattern 63 /// "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9] {1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))".
60 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{ 1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". 64 ///
61 * 65 /// [operation] - Name of the Operations resource to delete.
62 * [operation] - Name of the Operations resource to delete. 66 /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
63 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". 67 ///
64 * 68 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
65 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 69 /// an error.
66 * error. 70 ///
67 * 71 /// If the used [http.Client] completes with an error when making a REST
68 * If the used [http.Client] completes with an error when making a REST call, 72 /// call, this method will complete with the same error.
69 * this method will complete with the same error.
70 */
71 async.Future delete(core.String project, core.String operation) { 73 async.Future delete(core.String project, core.String operation) {
72 var _url = null; 74 var _url = null;
73 var _queryParams = new core.Map(); 75 var _queryParams = new core.Map();
74 var _uploadMedia = null; 76 var _uploadMedia = null;
75 var _uploadOptions = null; 77 var _uploadOptions = null;
76 var _downloadOptions = commons.DownloadOptions.Metadata; 78 var _downloadOptions = commons.DownloadOptions.Metadata;
77 var _body = null; 79 var _body = null;
78 80
79 if (project == null) { 81 if (project == null) {
80 throw new core.ArgumentError("Parameter project is required."); 82 throw new core.ArgumentError("Parameter project is required.");
81 } 83 }
82 if (operation == null) { 84 if (operation == null) {
83 throw new core.ArgumentError("Parameter operation is required."); 85 throw new core.ArgumentError("Parameter operation is required.");
84 } 86 }
85 87
86 _downloadOptions = null; 88 _downloadOptions = null;
87 89
88 _url = commons.Escaper.ecapeVariable('$project') + '/global/operations/' + c ommons.Escaper.ecapeVariable('$operation'); 90 _url = commons.Escaper.ecapeVariable('$project') +
91 '/global/operations/' +
92 commons.Escaper.ecapeVariable('$operation');
89 93
90 var _response = _requester.request(_url, 94 var _response = _requester.request(_url, "DELETE",
91 "DELETE", 95 body: _body,
92 body: _body, 96 queryParams: _queryParams,
93 queryParams: _queryParams, 97 uploadOptions: _uploadOptions,
94 uploadOptions: _uploadOptions, 98 uploadMedia: _uploadMedia,
95 uploadMedia: _uploadMedia, 99 downloadOptions: _downloadOptions);
96 downloadOptions: _downloadOptions);
97 return _response.then((data) => null); 100 return _response.then((data) => null);
98 } 101 }
99 102
100 /** 103 /// Retrieves the specified operation resource.
101 * Retrieves the specified operation resource. 104 ///
102 * 105 /// Request parameters:
103 * Request parameters: 106 ///
104 * 107 /// [project] - Project ID for this request.
105 * [project] - Project ID for this request. 108 /// Value must have pattern
106 * Value must have pattern 109 /// "(?:(?:[-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])?))".
107 * "(?:(?:[-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])?))". 110 ///
108 * 111 /// [operation] - Name of the Operations resource to return.
109 * [operation] - Name of the Operations resource to return. 112 /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
110 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". 113 ///
111 * 114 /// Completes with a [Operation].
112 * Completes with a [Operation]. 115 ///
113 * 116 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
114 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 117 /// an error.
115 * error. 118 ///
116 * 119 /// If the used [http.Client] completes with an error when making a REST
117 * If the used [http.Client] completes with an error when making a REST call, 120 /// call, this method will complete with the same error.
118 * this method will complete with the same error.
119 */
120 async.Future<Operation> get(core.String project, core.String operation) { 121 async.Future<Operation> get(core.String project, core.String operation) {
121 var _url = null; 122 var _url = null;
122 var _queryParams = new core.Map(); 123 var _queryParams = new core.Map();
123 var _uploadMedia = null; 124 var _uploadMedia = null;
124 var _uploadOptions = null; 125 var _uploadOptions = null;
125 var _downloadOptions = commons.DownloadOptions.Metadata; 126 var _downloadOptions = commons.DownloadOptions.Metadata;
126 var _body = null; 127 var _body = null;
127 128
128 if (project == null) { 129 if (project == null) {
129 throw new core.ArgumentError("Parameter project is required."); 130 throw new core.ArgumentError("Parameter project is required.");
130 } 131 }
131 if (operation == null) { 132 if (operation == null) {
132 throw new core.ArgumentError("Parameter operation is required."); 133 throw new core.ArgumentError("Parameter operation is required.");
133 } 134 }
134 135
135 _url = commons.Escaper.ecapeVariable('$project') + '/global/operations/' + c ommons.Escaper.ecapeVariable('$operation'); 136 _url = commons.Escaper.ecapeVariable('$project') +
137 '/global/operations/' +
138 commons.Escaper.ecapeVariable('$operation');
136 139
137 var _response = _requester.request(_url, 140 var _response = _requester.request(_url, "GET",
138 "GET", 141 body: _body,
139 body: _body, 142 queryParams: _queryParams,
140 queryParams: _queryParams, 143 uploadOptions: _uploadOptions,
141 uploadOptions: _uploadOptions, 144 uploadMedia: _uploadMedia,
142 uploadMedia: _uploadMedia, 145 downloadOptions: _downloadOptions);
143 downloadOptions: _downloadOptions);
144 return _response.then((data) => new Operation.fromJson(data)); 146 return _response.then((data) => new Operation.fromJson(data));
145 } 147 }
146 148
147 /** 149 /// Retrieves the list of operation resources contained within the specified
148 * Retrieves the list of operation resources contained within the specified 150 /// project.
149 * project. 151 ///
150 * 152 /// Request parameters:
151 * Request parameters: 153 ///
152 * 154 /// [project] - Project ID for this request.
153 * [project] - Project ID for this request. 155 /// Value must have pattern
154 * Value must have pattern 156 /// "(?:(?:[-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])?))".
155 * "(?:(?:[-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])?))". 157 ///
156 * 158 /// [filter] - Sets a filter expression for filtering listed resources, in
157 * [filter] - Sets a filter expression for filtering listed resources, in the 159 /// the form filter={expression}. Your {expression} must be in the format:
158 * form filter={expression}. Your {expression} must be in the format: 160 /// field_name comparison_string literal_string.
159 * field_name comparison_string literal_string. 161 ///
160 * 162 /// The field_name is the name of the field you want to compare. Only atomic
161 * The field_name is the name of the field you want to compare. Only atomic 163 /// field types are supported (string, number, boolean). The
162 * field types are supported (string, number, boolean). The comparison_string 164 /// comparison_string must be either eq (equals) or ne (not equals). The
163 * must be either eq (equals) or ne (not equals). The literal_string is the 165 /// literal_string is the string value to filter to. The literal value must
164 * string value to filter to. The literal value must be valid for the type of 166 /// be valid for the type of field you are filtering by (string, number,
165 * field you are filtering by (string, number, boolean). For string fields, 167 /// boolean). For string fields, the literal value is interpreted as a
166 * the literal value is interpreted as a regular expression using RE2 syntax. 168 /// regular expression using RE2 syntax. The literal value must match the
167 * The literal value must match the entire field. 169 /// entire field.
168 * 170 ///
169 * For example, to filter for instances that do not have a name of 171 /// For example, to filter for instances that do not have a name of
170 * example-instance, you would use filter=name ne example-instance. 172 /// example-instance, you would use filter=name ne example-instance.
171 * 173 ///
172 * Compute Engine Beta API Only: If you use filtering in the Beta API, you can 174 /// Compute Engine Beta API Only: If you use filtering in the Beta API, you
173 * also filter on nested fields. For example, you could filter on instances 175 /// can also filter on nested fields. For example, you could filter on
174 * that have set the scheduling.automaticRestart field to true. In particular, 176 /// instances that have set the scheduling.automaticRestart field to true. In
175 * use filtering on nested fields to take advantage of instance labels to 177 /// particular, use filtering on nested fields to take advantage of instance
176 * organize and filter results based on label values. 178 /// labels to organize and filter results based on label values.
177 * 179 ///
178 * The Beta API also supports filtering on multiple expressions by providing 180 /// The Beta API also supports filtering on multiple expressions by providing
179 * each separate expression within parentheses. For example, 181 /// each separate expression within parentheses. For example,
180 * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple 182 /// (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple
181 * expressions are treated as AND expressions, meaning that resources must 183 /// expressions are treated as AND expressions, meaning that resources must
182 * match all expressions to pass the filters. 184 /// match all expressions to pass the filters.
183 * 185 ///
184 * [maxResults] - The maximum number of results per page that should be 186 /// [maxResults] - The maximum number of results per page that should be
185 * returned. If the number of available results is larger than maxResults, 187 /// returned. If the number of available results is larger than maxResults,
186 * Compute Engine returns a nextPageToken that can be used to get the next 188 /// Compute Engine returns a nextPageToken that can be used to get the next
187 * page of results in subsequent list requests. 189 /// page of results in subsequent list requests.
188 * Value must be between "0" and "500". 190 /// Value must be between "0" and "500".
189 * 191 ///
190 * [orderBy] - Sorts list results by a certain order. By default, results are 192 /// [orderBy] - Sorts list results by a certain order. By default, results
191 * returned in alphanumerical order based on the resource name. 193 /// are returned in alphanumerical order based on the resource name.
192 * 194 ///
193 * You can also sort results in descending order based on the creation 195 /// You can also sort results in descending order based on the creation
194 * timestamp using orderBy="creationTimestamp desc". This sorts results based 196 /// timestamp using orderBy="creationTimestamp desc". This sorts results
195 * on the creationTimestamp field in reverse chronological order (newest 197 /// based on the creationTimestamp field in reverse chronological order
196 * result first). Use this to sort resources like operations so that the 198 /// (newest result first). Use this to sort resources like operations so that
197 * newest operation is returned first. 199 /// the newest operation is returned first.
198 * 200 ///
199 * Currently, only sorting by name or creationTimestamp desc is supported. 201 /// Currently, only sorting by name or creationTimestamp desc is supported.
200 * 202 ///
201 * [pageToken] - Specifies a page token to use. Set pageToken to the 203 /// [pageToken] - Specifies a page token to use. Set pageToken to the
202 * nextPageToken returned by a previous list request to get the next page of 204 /// nextPageToken returned by a previous list request to get the next page of
203 * results. 205 /// results.
204 * 206 ///
205 * Completes with a [OperationList]. 207 /// Completes with a [OperationList].
206 * 208 ///
207 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 209 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
208 * error. 210 /// an error.
209 * 211 ///
210 * If the used [http.Client] completes with an error when making a REST call, 212 /// If the used [http.Client] completes with an error when making a REST
211 * this method will complete with the same error. 213 /// call, this method will complete with the same error.
212 */ 214 async.Future<OperationList> list(core.String project,
213 async.Future<OperationList> list(core.String project, {core.String filter, cor e.int maxResults, core.String orderBy, core.String pageToken}) { 215 {core.String filter,
216 core.int maxResults,
217 core.String orderBy,
218 core.String pageToken}) {
214 var _url = null; 219 var _url = null;
215 var _queryParams = new core.Map(); 220 var _queryParams = new core.Map();
216 var _uploadMedia = null; 221 var _uploadMedia = null;
217 var _uploadOptions = null; 222 var _uploadOptions = null;
218 var _downloadOptions = commons.DownloadOptions.Metadata; 223 var _downloadOptions = commons.DownloadOptions.Metadata;
219 var _body = null; 224 var _body = null;
220 225
221 if (project == null) { 226 if (project == null) {
222 throw new core.ArgumentError("Parameter project is required."); 227 throw new core.ArgumentError("Parameter project is required.");
223 } 228 }
224 if (filter != null) { 229 if (filter != null) {
225 _queryParams["filter"] = [filter]; 230 _queryParams["filter"] = [filter];
226 } 231 }
227 if (maxResults != null) { 232 if (maxResults != null) {
228 _queryParams["maxResults"] = ["${maxResults}"]; 233 _queryParams["maxResults"] = ["${maxResults}"];
229 } 234 }
230 if (orderBy != null) { 235 if (orderBy != null) {
231 _queryParams["orderBy"] = [orderBy]; 236 _queryParams["orderBy"] = [orderBy];
232 } 237 }
233 if (pageToken != null) { 238 if (pageToken != null) {
234 _queryParams["pageToken"] = [pageToken]; 239 _queryParams["pageToken"] = [pageToken];
235 } 240 }
236 241
237 _url = commons.Escaper.ecapeVariable('$project') + '/global/operations'; 242 _url = commons.Escaper.ecapeVariable('$project') + '/global/operations';
238 243
239 var _response = _requester.request(_url, 244 var _response = _requester.request(_url, "GET",
240 "GET", 245 body: _body,
241 body: _body, 246 queryParams: _queryParams,
242 queryParams: _queryParams, 247 uploadOptions: _uploadOptions,
243 uploadOptions: _uploadOptions, 248 uploadMedia: _uploadMedia,
244 uploadMedia: _uploadMedia, 249 downloadOptions: _downloadOptions);
245 downloadOptions: _downloadOptions);
246 return _response.then((data) => new OperationList.fromJson(data)); 250 return _response.then((data) => new OperationList.fromJson(data));
247 } 251 }
248
249 } 252 }
250 253
251
252 class GroupsResourceApi { 254 class GroupsResourceApi {
253 final commons.ApiRequester _requester; 255 final commons.ApiRequester _requester;
254 256
255 GroupsResourceApi(commons.ApiRequester client) : 257 GroupsResourceApi(commons.ApiRequester client) : _requester = client;
256 _requester = client;
257 258
258 /** 259 /// Adds users to the specified group.
259 * Adds users to the specified group. 260 ///
260 * 261 /// [request] - The metadata request object.
261 * [request] - The metadata request object. 262 ///
262 * 263 /// Request parameters:
263 * Request parameters: 264 ///
264 * 265 /// [project] - Project ID for this request.
265 * [project] - Project ID for this request. 266 /// Value must have pattern
266 * Value must have pattern 267 /// "(?:(?:[-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])?))".
267 * "(?:(?:[-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])?))". 268 ///
268 * 269 /// [groupName] - Name of the group for this request.
269 * [groupName] - Name of the group for this request. 270 /// Value must have pattern "[a-z][-a-z0-9_]{0,31}".
270 * Value must have pattern "[a-z][-a-z0-9_]{0,31}". 271 ///
271 * 272 /// Completes with a [Operation].
272 * Completes with a [Operation]. 273 ///
273 * 274 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
274 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 275 /// an error.
275 * error. 276 ///
276 * 277 /// If the used [http.Client] completes with an error when making a REST
277 * If the used [http.Client] completes with an error when making a REST call, 278 /// call, this method will complete with the same error.
278 * this method will complete with the same error. 279 async.Future<Operation> addMember(GroupsAddMemberRequest request,
279 */ 280 core.String project, core.String groupName) {
280 async.Future<Operation> addMember(GroupsAddMemberRequest request, core.String project, core.String groupName) {
281 var _url = null; 281 var _url = null;
282 var _queryParams = new core.Map(); 282 var _queryParams = new core.Map();
283 var _uploadMedia = null; 283 var _uploadMedia = null;
284 var _uploadOptions = null; 284 var _uploadOptions = null;
285 var _downloadOptions = commons.DownloadOptions.Metadata; 285 var _downloadOptions = commons.DownloadOptions.Metadata;
286 var _body = null; 286 var _body = null;
287 287
288 if (request != null) { 288 if (request != null) {
289 _body = convert.JSON.encode((request).toJson()); 289 _body = convert.JSON.encode((request).toJson());
290 } 290 }
291 if (project == null) { 291 if (project == null) {
292 throw new core.ArgumentError("Parameter project is required."); 292 throw new core.ArgumentError("Parameter project is required.");
293 } 293 }
294 if (groupName == null) { 294 if (groupName == null) {
295 throw new core.ArgumentError("Parameter groupName is required."); 295 throw new core.ArgumentError("Parameter groupName is required.");
296 } 296 }
297 297
298 _url = commons.Escaper.ecapeVariable('$project') + '/global/groups/' + commo ns.Escaper.ecapeVariable('$groupName') + '/addMember'; 298 _url = commons.Escaper.ecapeVariable('$project') +
299 '/global/groups/' +
300 commons.Escaper.ecapeVariable('$groupName') +
301 '/addMember';
299 302
300 var _response = _requester.request(_url, 303 var _response = _requester.request(_url, "POST",
301 "POST", 304 body: _body,
302 body: _body, 305 queryParams: _queryParams,
303 queryParams: _queryParams, 306 uploadOptions: _uploadOptions,
304 uploadOptions: _uploadOptions, 307 uploadMedia: _uploadMedia,
305 uploadMedia: _uploadMedia, 308 downloadOptions: _downloadOptions);
306 downloadOptions: _downloadOptions);
307 return _response.then((data) => new Operation.fromJson(data)); 309 return _response.then((data) => new Operation.fromJson(data));
308 } 310 }
309 311
310 /** 312 /// Deletes the specified Group resource.
311 * Deletes the specified Group resource. 313 ///
312 * 314 /// Request parameters:
313 * Request parameters: 315 ///
314 * 316 /// [project] - Project ID for this request.
315 * [project] - Project ID for this request. 317 /// Value must have pattern
316 * Value must have pattern 318 /// "(?:(?:[-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])?))".
317 * "(?:(?:[-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])?))". 319 ///
318 * 320 /// [groupName] - Name of the Group resource to delete.
319 * [groupName] - Name of the Group resource to delete. 321 /// Value must have pattern "[a-z][-a-z0-9_]{0,31}".
320 * Value must have pattern "[a-z][-a-z0-9_]{0,31}". 322 ///
321 * 323 /// Completes with a [Operation].
322 * Completes with a [Operation]. 324 ///
323 * 325 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
324 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 326 /// an error.
325 * error. 327 ///
326 * 328 /// If the used [http.Client] completes with an error when making a REST
327 * If the used [http.Client] completes with an error when making a REST call, 329 /// call, this method will complete with the same error.
328 * this method will complete with the same error.
329 */
330 async.Future<Operation> delete(core.String project, core.String groupName) { 330 async.Future<Operation> delete(core.String project, core.String groupName) {
331 var _url = null; 331 var _url = null;
332 var _queryParams = new core.Map(); 332 var _queryParams = new core.Map();
333 var _uploadMedia = null; 333 var _uploadMedia = null;
334 var _uploadOptions = null; 334 var _uploadOptions = null;
335 var _downloadOptions = commons.DownloadOptions.Metadata; 335 var _downloadOptions = commons.DownloadOptions.Metadata;
336 var _body = null; 336 var _body = null;
337 337
338 if (project == null) { 338 if (project == null) {
339 throw new core.ArgumentError("Parameter project is required."); 339 throw new core.ArgumentError("Parameter project is required.");
340 } 340 }
341 if (groupName == null) { 341 if (groupName == null) {
342 throw new core.ArgumentError("Parameter groupName is required."); 342 throw new core.ArgumentError("Parameter groupName is required.");
343 } 343 }
344 344
345 _url = commons.Escaper.ecapeVariable('$project') + '/global/groups/' + commo ns.Escaper.ecapeVariable('$groupName'); 345 _url = commons.Escaper.ecapeVariable('$project') +
346 '/global/groups/' +
347 commons.Escaper.ecapeVariable('$groupName');
346 348
347 var _response = _requester.request(_url, 349 var _response = _requester.request(_url, "DELETE",
348 "DELETE", 350 body: _body,
349 body: _body, 351 queryParams: _queryParams,
350 queryParams: _queryParams, 352 uploadOptions: _uploadOptions,
351 uploadOptions: _uploadOptions, 353 uploadMedia: _uploadMedia,
352 uploadMedia: _uploadMedia, 354 downloadOptions: _downloadOptions);
353 downloadOptions: _downloadOptions);
354 return _response.then((data) => new Operation.fromJson(data)); 355 return _response.then((data) => new Operation.fromJson(data));
355 } 356 }
356 357
357 /** 358 /// Returns the specified Group resource.
358 * Returns the specified Group resource. 359 ///
359 * 360 /// Request parameters:
360 * Request parameters: 361 ///
361 * 362 /// [project] - Project ID for this request.
362 * [project] - Project ID for this request. 363 /// Value must have pattern
363 * Value must have pattern 364 /// "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9] {1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))".
364 * "(?:(?:[-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])?))". 365 ///
365 * 366 /// [groupName] - Name of the Group resource to return.
366 * [groupName] - Name of the Group resource to return. 367 /// Value must have pattern "[a-z][-a-z0-9_]{0,31}".
367 * Value must have pattern "[a-z][-a-z0-9_]{0,31}". 368 ///
368 * 369 /// Completes with a [Group].
369 * Completes with a [Group]. 370 ///
370 * 371 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
371 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 372 /// an error.
372 * error. 373 ///
373 * 374 /// If the used [http.Client] completes with an error when making a REST
374 * If the used [http.Client] completes with an error when making a REST call, 375 /// call, this method will complete with the same error.
375 * this method will complete with the same error.
376 */
377 async.Future<Group> get(core.String project, core.String groupName) { 376 async.Future<Group> get(core.String project, core.String groupName) {
378 var _url = null; 377 var _url = null;
379 var _queryParams = new core.Map(); 378 var _queryParams = new core.Map();
380 var _uploadMedia = null; 379 var _uploadMedia = null;
381 var _uploadOptions = null; 380 var _uploadOptions = null;
382 var _downloadOptions = commons.DownloadOptions.Metadata; 381 var _downloadOptions = commons.DownloadOptions.Metadata;
383 var _body = null; 382 var _body = null;
384 383
385 if (project == null) { 384 if (project == null) {
386 throw new core.ArgumentError("Parameter project is required."); 385 throw new core.ArgumentError("Parameter project is required.");
387 } 386 }
388 if (groupName == null) { 387 if (groupName == null) {
389 throw new core.ArgumentError("Parameter groupName is required."); 388 throw new core.ArgumentError("Parameter groupName is required.");
390 } 389 }
391 390
392 _url = commons.Escaper.ecapeVariable('$project') + '/global/groups/' + commo ns.Escaper.ecapeVariable('$groupName'); 391 _url = commons.Escaper.ecapeVariable('$project') +
392 '/global/groups/' +
393 commons.Escaper.ecapeVariable('$groupName');
393 394
394 var _response = _requester.request(_url, 395 var _response = _requester.request(_url, "GET",
395 "GET", 396 body: _body,
396 body: _body, 397 queryParams: _queryParams,
397 queryParams: _queryParams, 398 uploadOptions: _uploadOptions,
398 uploadOptions: _uploadOptions, 399 uploadMedia: _uploadMedia,
399 uploadMedia: _uploadMedia, 400 downloadOptions: _downloadOptions);
400 downloadOptions: _downloadOptions);
401 return _response.then((data) => new Group.fromJson(data)); 401 return _response.then((data) => new Group.fromJson(data));
402 } 402 }
403 403
404 /** 404 /// Creates a Group resource in the specified project using the data included
405 * Creates a Group resource in the specified project using the data included 405 /// in the request.
406 * in the request. 406 ///
407 * 407 /// [request] - The metadata request object.
408 * [request] - The metadata request object. 408 ///
409 * 409 /// Request parameters:
410 * Request parameters: 410 ///
411 * 411 /// [project] - Project ID for this request.
412 * [project] - Project ID for this request. 412 /// Value must have pattern
413 * Value must have pattern 413 /// "(?:(?:[-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])?))".
414 * "(?:(?:[-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])?))". 414 ///
415 * 415 /// Completes with a [Operation].
416 * Completes with a [Operation]. 416 ///
417 * 417 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
418 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 418 /// an error.
419 * error. 419 ///
420 * 420 /// If the used [http.Client] completes with an error when making a REST
421 * If the used [http.Client] completes with an error when making a REST call, 421 /// call, this method will complete with the same error.
422 * this method will complete with the same error.
423 */
424 async.Future<Operation> insert(Group request, core.String project) { 422 async.Future<Operation> insert(Group request, core.String project) {
425 var _url = null; 423 var _url = null;
426 var _queryParams = new core.Map(); 424 var _queryParams = new core.Map();
427 var _uploadMedia = null; 425 var _uploadMedia = null;
428 var _uploadOptions = null; 426 var _uploadOptions = null;
429 var _downloadOptions = commons.DownloadOptions.Metadata; 427 var _downloadOptions = commons.DownloadOptions.Metadata;
430 var _body = null; 428 var _body = null;
431 429
432 if (request != null) { 430 if (request != null) {
433 _body = convert.JSON.encode((request).toJson()); 431 _body = convert.JSON.encode((request).toJson());
434 } 432 }
435 if (project == null) { 433 if (project == null) {
436 throw new core.ArgumentError("Parameter project is required."); 434 throw new core.ArgumentError("Parameter project is required.");
437 } 435 }
438 436
439 _url = commons.Escaper.ecapeVariable('$project') + '/global/groups'; 437 _url = commons.Escaper.ecapeVariable('$project') + '/global/groups';
440 438
441 var _response = _requester.request(_url, 439 var _response = _requester.request(_url, "POST",
442 "POST", 440 body: _body,
443 body: _body, 441 queryParams: _queryParams,
444 queryParams: _queryParams, 442 uploadOptions: _uploadOptions,
445 uploadOptions: _uploadOptions, 443 uploadMedia: _uploadMedia,
446 uploadMedia: _uploadMedia, 444 downloadOptions: _downloadOptions);
447 downloadOptions: _downloadOptions);
448 return _response.then((data) => new Operation.fromJson(data)); 445 return _response.then((data) => new Operation.fromJson(data));
449 } 446 }
450 447
451 /** 448 /// Retrieves the list of groups contained within the specified project.
452 * Retrieves the list of groups contained within the specified project. 449 ///
453 * 450 /// Request parameters:
454 * Request parameters: 451 ///
455 * 452 /// [project] - Project ID for this request.
456 * [project] - Project ID for this request. 453 /// Value must have pattern
457 * Value must have pattern 454 /// "(?:(?:[-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])?))".
458 * "(?:(?:[-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])?))". 455 ///
459 * 456 /// [filter] - Sets a filter expression for filtering listed resources, in
460 * [filter] - Sets a filter expression for filtering listed resources, in the 457 /// the form filter={expression}. Your {expression} must be in the format:
461 * form filter={expression}. Your {expression} must be in the format: 458 /// field_name comparison_string literal_string.
462 * field_name comparison_string literal_string. 459 ///
463 * 460 /// The field_name is the name of the field you want to compare. Only atomic
464 * The field_name is the name of the field you want to compare. Only atomic 461 /// field types are supported (string, number, boolean). The
465 * field types are supported (string, number, boolean). The comparison_string 462 /// comparison_string must be either eq (equals) or ne (not equals). The
466 * must be either eq (equals) or ne (not equals). The literal_string is the 463 /// literal_string is the string value to filter to. The literal value must
467 * string value to filter to. The literal value must be valid for the type of 464 /// be valid for the type of field you are filtering by (string, number,
468 * field you are filtering by (string, number, boolean). For string fields, 465 /// boolean). For string fields, the literal value is interpreted as a
469 * the literal value is interpreted as a regular expression using RE2 syntax. 466 /// regular expression using RE2 syntax. The literal value must match the
470 * The literal value must match the entire field. 467 /// entire field.
471 * 468 ///
472 * For example, to filter for instances that do not have a name of 469 /// For example, to filter for instances that do not have a name of
473 * example-instance, you would use filter=name ne example-instance. 470 /// example-instance, you would use filter=name ne example-instance.
474 * 471 ///
475 * Compute Engine Beta API Only: If you use filtering in the Beta API, you can 472 /// Compute Engine Beta API Only: If you use filtering in the Beta API, you
476 * also filter on nested fields. For example, you could filter on instances 473 /// can also filter on nested fields. For example, you could filter on
477 * that have set the scheduling.automaticRestart field to true. In particular, 474 /// instances that have set the scheduling.automaticRestart field to true. In
478 * use filtering on nested fields to take advantage of instance labels to 475 /// particular, use filtering on nested fields to take advantage of instance
479 * organize and filter results based on label values. 476 /// labels to organize and filter results based on label values.
480 * 477 ///
481 * The Beta API also supports filtering on multiple expressions by providing 478 /// The Beta API also supports filtering on multiple expressions by providing
482 * each separate expression within parentheses. For example, 479 /// each separate expression within parentheses. For example,
483 * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple 480 /// (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple
484 * expressions are treated as AND expressions, meaning that resources must 481 /// expressions are treated as AND expressions, meaning that resources must
485 * match all expressions to pass the filters. 482 /// match all expressions to pass the filters.
486 * 483 ///
487 * [maxResults] - The maximum number of results per page that should be 484 /// [maxResults] - The maximum number of results per page that should be
488 * returned. If the number of available results is larger than maxResults, 485 /// returned. If the number of available results is larger than maxResults,
489 * Compute Engine returns a nextPageToken that can be used to get the next 486 /// Compute Engine returns a nextPageToken that can be used to get the next
490 * page of results in subsequent list requests. 487 /// page of results in subsequent list requests.
491 * Value must be between "0" and "500". 488 /// Value must be between "0" and "500".
492 * 489 ///
493 * [orderBy] - Sorts list results by a certain order. By default, results are 490 /// [orderBy] - Sorts list results by a certain order. By default, results
494 * returned in alphanumerical order based on the resource name. 491 /// are returned in alphanumerical order based on the resource name.
495 * 492 ///
496 * You can also sort results in descending order based on the creation 493 /// You can also sort results in descending order based on the creation
497 * timestamp using orderBy="creationTimestamp desc". This sorts results based 494 /// timestamp using orderBy="creationTimestamp desc". This sorts results
498 * on the creationTimestamp field in reverse chronological order (newest 495 /// based on the creationTimestamp field in reverse chronological order
499 * result first). Use this to sort resources like operations so that the 496 /// (newest result first). Use this to sort resources like operations so that
500 * newest operation is returned first. 497 /// the newest operation is returned first.
501 * 498 ///
502 * Currently, only sorting by name or creationTimestamp desc is supported. 499 /// Currently, only sorting by name or creationTimestamp desc is supported.
503 * 500 ///
504 * [pageToken] - Specifies a page token to use. Set pageToken to the 501 /// [pageToken] - Specifies a page token to use. Set pageToken to the
505 * nextPageToken returned by a previous list request to get the next page of 502 /// nextPageToken returned by a previous list request to get the next page of
506 * results. 503 /// results.
507 * 504 ///
508 * Completes with a [GroupList]. 505 /// Completes with a [GroupList].
509 * 506 ///
510 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 507 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
511 * error. 508 /// an error.
512 * 509 ///
513 * If the used [http.Client] completes with an error when making a REST call, 510 /// If the used [http.Client] completes with an error when making a REST
514 * this method will complete with the same error. 511 /// call, this method will complete with the same error.
515 */ 512 async.Future<GroupList> list(core.String project,
516 async.Future<GroupList> list(core.String project, {core.String filter, core.in t maxResults, core.String orderBy, core.String pageToken}) { 513 {core.String filter,
514 core.int maxResults,
515 core.String orderBy,
516 core.String pageToken}) {
517 var _url = null; 517 var _url = null;
518 var _queryParams = new core.Map(); 518 var _queryParams = new core.Map();
519 var _uploadMedia = null; 519 var _uploadMedia = null;
520 var _uploadOptions = null; 520 var _uploadOptions = null;
521 var _downloadOptions = commons.DownloadOptions.Metadata; 521 var _downloadOptions = commons.DownloadOptions.Metadata;
522 var _body = null; 522 var _body = null;
523 523
524 if (project == null) { 524 if (project == null) {
525 throw new core.ArgumentError("Parameter project is required."); 525 throw new core.ArgumentError("Parameter project is required.");
526 } 526 }
527 if (filter != null) { 527 if (filter != null) {
528 _queryParams["filter"] = [filter]; 528 _queryParams["filter"] = [filter];
529 } 529 }
530 if (maxResults != null) { 530 if (maxResults != null) {
531 _queryParams["maxResults"] = ["${maxResults}"]; 531 _queryParams["maxResults"] = ["${maxResults}"];
532 } 532 }
533 if (orderBy != null) { 533 if (orderBy != null) {
534 _queryParams["orderBy"] = [orderBy]; 534 _queryParams["orderBy"] = [orderBy];
535 } 535 }
536 if (pageToken != null) { 536 if (pageToken != null) {
537 _queryParams["pageToken"] = [pageToken]; 537 _queryParams["pageToken"] = [pageToken];
538 } 538 }
539 539
540 _url = commons.Escaper.ecapeVariable('$project') + '/global/groups'; 540 _url = commons.Escaper.ecapeVariable('$project') + '/global/groups';
541 541
542 var _response = _requester.request(_url, 542 var _response = _requester.request(_url, "GET",
543 "GET", 543 body: _body,
544 body: _body, 544 queryParams: _queryParams,
545 queryParams: _queryParams, 545 uploadOptions: _uploadOptions,
546 uploadOptions: _uploadOptions, 546 uploadMedia: _uploadMedia,
547 uploadMedia: _uploadMedia, 547 downloadOptions: _downloadOptions);
548 downloadOptions: _downloadOptions);
549 return _response.then((data) => new GroupList.fromJson(data)); 548 return _response.then((data) => new GroupList.fromJson(data));
550 } 549 }
551 550
552 /** 551 /// Removes users from the specified group.
553 * Removes users from the specified group. 552 ///
554 * 553 /// [request] - The metadata request object.
555 * [request] - The metadata request object. 554 ///
556 * 555 /// Request parameters:
557 * Request parameters: 556 ///
558 * 557 /// [project] - Project ID for this request.
559 * [project] - Project ID for this request. 558 /// Value must have pattern
560 * Value must have pattern 559 /// "(?:(?:[-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])?))".
561 * "(?:(?:[-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])?))". 560 ///
562 * 561 /// [groupName] - Name of the group for this request.
563 * [groupName] - Name of the group for this request. 562 /// Value must have pattern "[a-z][-a-z0-9_]{0,31}".
564 * Value must have pattern "[a-z][-a-z0-9_]{0,31}". 563 ///
565 * 564 /// Completes with a [Operation].
566 * Completes with a [Operation]. 565 ///
567 * 566 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
568 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 567 /// an error.
569 * error. 568 ///
570 * 569 /// If the used [http.Client] completes with an error when making a REST
571 * If the used [http.Client] completes with an error when making a REST call, 570 /// call, this method will complete with the same error.
572 * this method will complete with the same error. 571 async.Future<Operation> removeMember(GroupsRemoveMemberRequest request,
573 */ 572 core.String project, core.String groupName) {
574 async.Future<Operation> removeMember(GroupsRemoveMemberRequest request, core.S tring project, core.String groupName) {
575 var _url = null; 573 var _url = null;
576 var _queryParams = new core.Map(); 574 var _queryParams = new core.Map();
577 var _uploadMedia = null; 575 var _uploadMedia = null;
578 var _uploadOptions = null; 576 var _uploadOptions = null;
579 var _downloadOptions = commons.DownloadOptions.Metadata; 577 var _downloadOptions = commons.DownloadOptions.Metadata;
580 var _body = null; 578 var _body = null;
581 579
582 if (request != null) { 580 if (request != null) {
583 _body = convert.JSON.encode((request).toJson()); 581 _body = convert.JSON.encode((request).toJson());
584 } 582 }
585 if (project == null) { 583 if (project == null) {
586 throw new core.ArgumentError("Parameter project is required."); 584 throw new core.ArgumentError("Parameter project is required.");
587 } 585 }
588 if (groupName == null) { 586 if (groupName == null) {
589 throw new core.ArgumentError("Parameter groupName is required."); 587 throw new core.ArgumentError("Parameter groupName is required.");
590 } 588 }
591 589
592 _url = commons.Escaper.ecapeVariable('$project') + '/global/groups/' + commo ns.Escaper.ecapeVariable('$groupName') + '/removeMember'; 590 _url = commons.Escaper.ecapeVariable('$project') +
591 '/global/groups/' +
592 commons.Escaper.ecapeVariable('$groupName') +
593 '/removeMember';
593 594
594 var _response = _requester.request(_url, 595 var _response = _requester.request(_url, "POST",
595 "POST", 596 body: _body,
596 body: _body, 597 queryParams: _queryParams,
597 queryParams: _queryParams, 598 uploadOptions: _uploadOptions,
598 uploadOptions: _uploadOptions, 599 uploadMedia: _uploadMedia,
599 uploadMedia: _uploadMedia, 600 downloadOptions: _downloadOptions);
600 downloadOptions: _downloadOptions);
601 return _response.then((data) => new Operation.fromJson(data)); 601 return _response.then((data) => new Operation.fromJson(data));
602 } 602 }
603
604 } 603 }
605 604
606
607 class LinuxResourceApi { 605 class LinuxResourceApi {
608 final commons.ApiRequester _requester; 606 final commons.ApiRequester _requester;
609 607
610 LinuxResourceApi(commons.ApiRequester client) : 608 LinuxResourceApi(commons.ApiRequester client) : _requester = client;
611 _requester = client;
612 609
613 /** 610 /// Returns a list of authorized public keys for a specific user account.
614 * Returns a list of authorized public keys for a specific user account. 611 ///
615 * 612 /// Request parameters:
616 * Request parameters: 613 ///
617 * 614 /// [project] - Project ID for this request.
618 * [project] - Project ID for this request. 615 /// Value must have pattern
619 * Value must have pattern 616 /// "(?:(?:[-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])?))".
620 * "(?:(?:[-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])?))". 617 ///
621 * 618 /// [zone] - Name of the zone for this request.
622 * [zone] - Name of the zone for this request. 619 /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
623 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". 620 ///
624 * 621 /// [user] - The user account for which you want to get a list of authorized
625 * [user] - The user account for which you want to get a list of authorized 622 /// public keys.
626 * public keys. 623 /// Value must have pattern "[a-z][-a-z0-9_]{0,31}".
627 * Value must have pattern "[a-z][-a-z0-9_]{0,31}". 624 ///
628 * 625 /// [instance] - The fully-qualified URL of the virtual machine requesting
629 * [instance] - The fully-qualified URL of the virtual machine requesting the 626 /// the view.
630 * view. 627 ///
631 * 628 /// [login] - Whether the view was requested as part of a user-initiated
632 * [login] - Whether the view was requested as part of a user-initiated login. 629 /// login.
633 * 630 ///
634 * Completes with a [LinuxGetAuthorizedKeysViewResponse]. 631 /// Completes with a [LinuxGetAuthorizedKeysViewResponse].
635 * 632 ///
636 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 633 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
637 * error. 634 /// an error.
638 * 635 ///
639 * If the used [http.Client] completes with an error when making a REST call, 636 /// If the used [http.Client] completes with an error when making a REST
640 * this method will complete with the same error. 637 /// call, this method will complete with the same error.
641 */ 638 async.Future<LinuxGetAuthorizedKeysViewResponse> getAuthorizedKeysView(
642 async.Future<LinuxGetAuthorizedKeysViewResponse> getAuthorizedKeysView(core.St ring project, core.String zone, core.String user, core.String instance, {core.bo ol login}) { 639 core.String project,
640 core.String zone,
641 core.String user,
642 core.String instance,
643 {core.bool login}) {
643 var _url = null; 644 var _url = null;
644 var _queryParams = new core.Map(); 645 var _queryParams = new core.Map();
645 var _uploadMedia = null; 646 var _uploadMedia = null;
646 var _uploadOptions = null; 647 var _uploadOptions = null;
647 var _downloadOptions = commons.DownloadOptions.Metadata; 648 var _downloadOptions = commons.DownloadOptions.Metadata;
648 var _body = null; 649 var _body = null;
649 650
650 if (project == null) { 651 if (project == null) {
651 throw new core.ArgumentError("Parameter project is required."); 652 throw new core.ArgumentError("Parameter project is required.");
652 } 653 }
653 if (zone == null) { 654 if (zone == null) {
654 throw new core.ArgumentError("Parameter zone is required."); 655 throw new core.ArgumentError("Parameter zone is required.");
655 } 656 }
656 if (user == null) { 657 if (user == null) {
657 throw new core.ArgumentError("Parameter user is required."); 658 throw new core.ArgumentError("Parameter user is required.");
658 } 659 }
659 if (instance == null) { 660 if (instance == null) {
660 throw new core.ArgumentError("Parameter instance is required."); 661 throw new core.ArgumentError("Parameter instance is required.");
661 } 662 }
662 _queryParams["instance"] = [instance]; 663 _queryParams["instance"] = [instance];
663 if (login != null) { 664 if (login != null) {
664 _queryParams["login"] = ["${login}"]; 665 _queryParams["login"] = ["${login}"];
665 } 666 }
666 667
667 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap er.ecapeVariable('$zone') + '/authorizedKeysView/' + commons.Escaper.ecapeVariab le('$user'); 668 _url = commons.Escaper.ecapeVariable('$project') +
669 '/zones/' +
670 commons.Escaper.ecapeVariable('$zone') +
671 '/authorizedKeysView/' +
672 commons.Escaper.ecapeVariable('$user');
668 673
669 var _response = _requester.request(_url, 674 var _response = _requester.request(_url, "POST",
670 "POST", 675 body: _body,
671 body: _body, 676 queryParams: _queryParams,
672 queryParams: _queryParams, 677 uploadOptions: _uploadOptions,
673 uploadOptions: _uploadOptions, 678 uploadMedia: _uploadMedia,
674 uploadMedia: _uploadMedia, 679 downloadOptions: _downloadOptions);
675 downloadOptions: _downloadOptions); 680 return _response
676 return _response.then((data) => new LinuxGetAuthorizedKeysViewResponse.fromJ son(data)); 681 .then((data) => new LinuxGetAuthorizedKeysViewResponse.fromJson(data));
677 } 682 }
678 683
679 /** 684 /// Retrieves a list of user accounts for an instance within a specific
680 * Retrieves a list of user accounts for an instance within a specific 685 /// project.
681 * project. 686 ///
682 * 687 /// Request parameters:
683 * Request parameters: 688 ///
684 * 689 /// [project] - Project ID for this request.
685 * [project] - Project ID for this request. 690 /// Value must have pattern
686 * Value must have pattern 691 /// "(?:(?:[-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])?))".
687 * "(?:(?:[-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])?))". 692 ///
688 * 693 /// [zone] - Name of the zone for this request.
689 * [zone] - Name of the zone for this request. 694 /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
690 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". 695 ///
691 * 696 /// [instance] - The fully-qualified URL of the virtual machine requesting
692 * [instance] - The fully-qualified URL of the virtual machine requesting the 697 /// the views.
693 * views. 698 ///
694 * 699 /// [filter] - Sets a filter expression for filtering listed resources, in
695 * [filter] - Sets a filter expression for filtering listed resources, in the 700 /// the form filter={expression}. Your {expression} must be in the format:
696 * form filter={expression}. Your {expression} must be in the format: 701 /// field_name comparison_string literal_string.
697 * field_name comparison_string literal_string. 702 ///
698 * 703 /// The field_name is the name of the field you want to compare. Only atomic
699 * The field_name is the name of the field you want to compare. Only atomic 704 /// field types are supported (string, number, boolean). The
700 * field types are supported (string, number, boolean). The comparison_string 705 /// comparison_string must be either eq (equals) or ne (not equals). The
701 * must be either eq (equals) or ne (not equals). The literal_string is the 706 /// literal_string is the string value to filter to. The literal value must
702 * string value to filter to. The literal value must be valid for the type of 707 /// be valid for the type of field you are filtering by (string, number,
703 * field you are filtering by (string, number, boolean). For string fields, 708 /// boolean). For string fields, the literal value is interpreted as a
704 * the literal value is interpreted as a regular expression using RE2 syntax. 709 /// regular expression using RE2 syntax. The literal value must match the
705 * The literal value must match the entire field. 710 /// entire field.
706 * 711 ///
707 * For example, to filter for instances that do not have a name of 712 /// For example, to filter for instances that do not have a name of
708 * example-instance, you would use filter=name ne example-instance. 713 /// example-instance, you would use filter=name ne example-instance.
709 * 714 ///
710 * Compute Engine Beta API Only: If you use filtering in the Beta API, you can 715 /// Compute Engine Beta API Only: If you use filtering in the Beta API, you
711 * also filter on nested fields. For example, you could filter on instances 716 /// can also filter on nested fields. For example, you could filter on
712 * that have set the scheduling.automaticRestart field to true. In particular, 717 /// instances that have set the scheduling.automaticRestart field to true. In
713 * use filtering on nested fields to take advantage of instance labels to 718 /// particular, use filtering on nested fields to take advantage of instance
714 * organize and filter results based on label values. 719 /// labels to organize and filter results based on label values.
715 * 720 ///
716 * The Beta API also supports filtering on multiple expressions by providing 721 /// The Beta API also supports filtering on multiple expressions by providing
717 * each separate expression within parentheses. For example, 722 /// each separate expression within parentheses. For example,
718 * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple 723 /// (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple
719 * expressions are treated as AND expressions, meaning that resources must 724 /// expressions are treated as AND expressions, meaning that resources must
720 * match all expressions to pass the filters. 725 /// match all expressions to pass the filters.
721 * 726 ///
722 * [maxResults] - The maximum number of results per page that should be 727 /// [maxResults] - The maximum number of results per page that should be
723 * returned. If the number of available results is larger than maxResults, 728 /// returned. If the number of available results is larger than maxResults,
724 * Compute Engine returns a nextPageToken that can be used to get the next 729 /// Compute Engine returns a nextPageToken that can be used to get the next
725 * page of results in subsequent list requests. 730 /// page of results in subsequent list requests.
726 * Value must be between "0" and "500". 731 /// Value must be between "0" and "500".
727 * 732 ///
728 * [orderBy] - Sorts list results by a certain order. By default, results are 733 /// [orderBy] - Sorts list results by a certain order. By default, results
729 * returned in alphanumerical order based on the resource name. 734 /// are returned in alphanumerical order based on the resource name.
730 * 735 ///
731 * You can also sort results in descending order based on the creation 736 /// You can also sort results in descending order based on the creation
732 * timestamp using orderBy="creationTimestamp desc". This sorts results based 737 /// timestamp using orderBy="creationTimestamp desc". This sorts results
733 * on the creationTimestamp field in reverse chronological order (newest 738 /// based on the creationTimestamp field in reverse chronological order
734 * result first). Use this to sort resources like operations so that the 739 /// (newest result first). Use this to sort resources like operations so that
735 * newest operation is returned first. 740 /// the newest operation is returned first.
736 * 741 ///
737 * Currently, only sorting by name or creationTimestamp desc is supported. 742 /// Currently, only sorting by name or creationTimestamp desc is supported.
738 * 743 ///
739 * [pageToken] - Specifies a page token to use. Set pageToken to the 744 /// [pageToken] - Specifies a page token to use. Set pageToken to the
740 * nextPageToken returned by a previous list request to get the next page of 745 /// nextPageToken returned by a previous list request to get the next page of
741 * results. 746 /// results.
742 * 747 ///
743 * Completes with a [LinuxGetLinuxAccountViewsResponse]. 748 /// Completes with a [LinuxGetLinuxAccountViewsResponse].
744 * 749 ///
745 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 750 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
746 * error. 751 /// an error.
747 * 752 ///
748 * If the used [http.Client] completes with an error when making a REST call, 753 /// If the used [http.Client] completes with an error when making a REST
749 * this method will complete with the same error. 754 /// call, this method will complete with the same error.
750 */ 755 async.Future<LinuxGetLinuxAccountViewsResponse> getLinuxAccountViews(
751 async.Future<LinuxGetLinuxAccountViewsResponse> getLinuxAccountViews(core.Stri ng project, core.String zone, core.String instance, {core.String filter, core.in t maxResults, core.String orderBy, core.String pageToken}) { 756 core.String project, core.String zone, core.String instance,
757 {core.String filter,
758 core.int maxResults,
759 core.String orderBy,
760 core.String pageToken}) {
752 var _url = null; 761 var _url = null;
753 var _queryParams = new core.Map(); 762 var _queryParams = new core.Map();
754 var _uploadMedia = null; 763 var _uploadMedia = null;
755 var _uploadOptions = null; 764 var _uploadOptions = null;
756 var _downloadOptions = commons.DownloadOptions.Metadata; 765 var _downloadOptions = commons.DownloadOptions.Metadata;
757 var _body = null; 766 var _body = null;
758 767
759 if (project == null) { 768 if (project == null) {
760 throw new core.ArgumentError("Parameter project is required."); 769 throw new core.ArgumentError("Parameter project is required.");
761 } 770 }
(...skipping 10 matching lines...) Expand all
772 if (maxResults != null) { 781 if (maxResults != null) {
773 _queryParams["maxResults"] = ["${maxResults}"]; 782 _queryParams["maxResults"] = ["${maxResults}"];
774 } 783 }
775 if (orderBy != null) { 784 if (orderBy != null) {
776 _queryParams["orderBy"] = [orderBy]; 785 _queryParams["orderBy"] = [orderBy];
777 } 786 }
778 if (pageToken != null) { 787 if (pageToken != null) {
779 _queryParams["pageToken"] = [pageToken]; 788 _queryParams["pageToken"] = [pageToken];
780 } 789 }
781 790
782 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap er.ecapeVariable('$zone') + '/linuxAccountViews'; 791 _url = commons.Escaper.ecapeVariable('$project') +
792 '/zones/' +
793 commons.Escaper.ecapeVariable('$zone') +
794 '/linuxAccountViews';
783 795
784 var _response = _requester.request(_url, 796 var _response = _requester.request(_url, "POST",
785 "POST", 797 body: _body,
786 body: _body, 798 queryParams: _queryParams,
787 queryParams: _queryParams, 799 uploadOptions: _uploadOptions,
788 uploadOptions: _uploadOptions, 800 uploadMedia: _uploadMedia,
789 uploadMedia: _uploadMedia, 801 downloadOptions: _downloadOptions);
790 downloadOptions: _downloadOptions); 802 return _response
791 return _response.then((data) => new LinuxGetLinuxAccountViewsResponse.fromJs on(data)); 803 .then((data) => new LinuxGetLinuxAccountViewsResponse.fromJson(data));
792 } 804 }
793
794 } 805 }
795 806
796
797 class UsersResourceApi { 807 class UsersResourceApi {
798 final commons.ApiRequester _requester; 808 final commons.ApiRequester _requester;
799 809
800 UsersResourceApi(commons.ApiRequester client) : 810 UsersResourceApi(commons.ApiRequester client) : _requester = client;
801 _requester = client;
802 811
803 /** 812 /// Adds a public key to the specified User resource with the data included
804 * Adds a public key to the specified User resource with the data included in 813 /// in the request.
805 * the request. 814 ///
806 * 815 /// [request] - The metadata request object.
807 * [request] - The metadata request object. 816 ///
808 * 817 /// Request parameters:
809 * Request parameters: 818 ///
810 * 819 /// [project] - Project ID for this request.
811 * [project] - Project ID for this request. 820 /// Value must have pattern
812 * Value must have pattern 821 /// "(?:(?:[-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])?))".
813 * "(?:(?:[-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])?))". 822 ///
814 * 823 /// [user] - Name of the user for this request.
815 * [user] - Name of the user for this request. 824 /// Value must have pattern "[a-z][-a-z0-9_]{0,31}".
816 * Value must have pattern "[a-z][-a-z0-9_]{0,31}". 825 ///
817 * 826 /// Completes with a [Operation].
818 * Completes with a [Operation]. 827 ///
819 * 828 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
820 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 829 /// an error.
821 * error. 830 ///
822 * 831 /// If the used [http.Client] completes with an error when making a REST
823 * If the used [http.Client] completes with an error when making a REST call, 832 /// call, this method will complete with the same error.
824 * this method will complete with the same error. 833 async.Future<Operation> addPublicKey(
825 */ 834 PublicKey request, core.String project, core.String user) {
826 async.Future<Operation> addPublicKey(PublicKey request, core.String project, c ore.String user) {
827 var _url = null; 835 var _url = null;
828 var _queryParams = new core.Map(); 836 var _queryParams = new core.Map();
829 var _uploadMedia = null; 837 var _uploadMedia = null;
830 var _uploadOptions = null; 838 var _uploadOptions = null;
831 var _downloadOptions = commons.DownloadOptions.Metadata; 839 var _downloadOptions = commons.DownloadOptions.Metadata;
832 var _body = null; 840 var _body = null;
833 841
834 if (request != null) { 842 if (request != null) {
835 _body = convert.JSON.encode((request).toJson()); 843 _body = convert.JSON.encode((request).toJson());
836 } 844 }
837 if (project == null) { 845 if (project == null) {
838 throw new core.ArgumentError("Parameter project is required."); 846 throw new core.ArgumentError("Parameter project is required.");
839 } 847 }
840 if (user == null) { 848 if (user == null) {
841 throw new core.ArgumentError("Parameter user is required."); 849 throw new core.ArgumentError("Parameter user is required.");
842 } 850 }
843 851
844 _url = commons.Escaper.ecapeVariable('$project') + '/global/users/' + common s.Escaper.ecapeVariable('$user') + '/addPublicKey'; 852 _url = commons.Escaper.ecapeVariable('$project') +
853 '/global/users/' +
854 commons.Escaper.ecapeVariable('$user') +
855 '/addPublicKey';
845 856
846 var _response = _requester.request(_url, 857 var _response = _requester.request(_url, "POST",
847 "POST", 858 body: _body,
848 body: _body, 859 queryParams: _queryParams,
849 queryParams: _queryParams, 860 uploadOptions: _uploadOptions,
850 uploadOptions: _uploadOptions, 861 uploadMedia: _uploadMedia,
851 uploadMedia: _uploadMedia, 862 downloadOptions: _downloadOptions);
852 downloadOptions: _downloadOptions);
853 return _response.then((data) => new Operation.fromJson(data)); 863 return _response.then((data) => new Operation.fromJson(data));
854 } 864 }
855 865
856 /** 866 /// Deletes the specified User resource.
857 * Deletes the specified User resource. 867 ///
858 * 868 /// Request parameters:
859 * Request parameters: 869 ///
860 * 870 /// [project] - Project ID for this request.
861 * [project] - Project ID for this request. 871 /// Value must have pattern
862 * Value must have pattern 872 /// "(?:(?:[-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])?))".
863 * "(?:(?:[-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])?))". 873 ///
864 * 874 /// [user] - Name of the user resource to delete.
865 * [user] - Name of the user resource to delete. 875 /// Value must have pattern "[a-z][-a-z0-9_]{0,31}".
866 * Value must have pattern "[a-z][-a-z0-9_]{0,31}". 876 ///
867 * 877 /// Completes with a [Operation].
868 * Completes with a [Operation]. 878 ///
869 * 879 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
870 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 880 /// an error.
871 * error. 881 ///
872 * 882 /// If the used [http.Client] completes with an error when making a REST
873 * If the used [http.Client] completes with an error when making a REST call, 883 /// call, this method will complete with the same error.
874 * this method will complete with the same error.
875 */
876 async.Future<Operation> delete(core.String project, core.String user) { 884 async.Future<Operation> delete(core.String project, core.String user) {
877 var _url = null; 885 var _url = null;
878 var _queryParams = new core.Map(); 886 var _queryParams = new core.Map();
879 var _uploadMedia = null; 887 var _uploadMedia = null;
880 var _uploadOptions = null; 888 var _uploadOptions = null;
881 var _downloadOptions = commons.DownloadOptions.Metadata; 889 var _downloadOptions = commons.DownloadOptions.Metadata;
882 var _body = null; 890 var _body = null;
883 891
884 if (project == null) { 892 if (project == null) {
885 throw new core.ArgumentError("Parameter project is required."); 893 throw new core.ArgumentError("Parameter project is required.");
886 } 894 }
887 if (user == null) { 895 if (user == null) {
888 throw new core.ArgumentError("Parameter user is required."); 896 throw new core.ArgumentError("Parameter user is required.");
889 } 897 }
890 898
891 _url = commons.Escaper.ecapeVariable('$project') + '/global/users/' + common s.Escaper.ecapeVariable('$user'); 899 _url = commons.Escaper.ecapeVariable('$project') +
900 '/global/users/' +
901 commons.Escaper.ecapeVariable('$user');
892 902
893 var _response = _requester.request(_url, 903 var _response = _requester.request(_url, "DELETE",
894 "DELETE", 904 body: _body,
895 body: _body, 905 queryParams: _queryParams,
896 queryParams: _queryParams, 906 uploadOptions: _uploadOptions,
897 uploadOptions: _uploadOptions, 907 uploadMedia: _uploadMedia,
898 uploadMedia: _uploadMedia, 908 downloadOptions: _downloadOptions);
899 downloadOptions: _downloadOptions);
900 return _response.then((data) => new Operation.fromJson(data)); 909 return _response.then((data) => new Operation.fromJson(data));
901 } 910 }
902 911
903 /** 912 /// Returns the specified User resource.
904 * Returns the specified User resource. 913 ///
905 * 914 /// Request parameters:
906 * Request parameters: 915 ///
907 * 916 /// [project] - Project ID for this request.
908 * [project] - Project ID for this request. 917 /// Value must have pattern
909 * Value must have pattern 918 /// "(?:(?:[-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])?))".
910 * "(?:(?:[-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])?))". 919 ///
911 * 920 /// [user] - Name of the user resource to return.
912 * [user] - Name of the user resource to return. 921 /// Value must have pattern "[a-z][-a-z0-9_]{0,31}".
913 * Value must have pattern "[a-z][-a-z0-9_]{0,31}". 922 ///
914 * 923 /// Completes with a [User].
915 * Completes with a [User]. 924 ///
916 * 925 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
917 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 926 /// an error.
918 * error. 927 ///
919 * 928 /// If the used [http.Client] completes with an error when making a REST
920 * If the used [http.Client] completes with an error when making a REST call, 929 /// call, this method will complete with the same error.
921 * this method will complete with the same error.
922 */
923 async.Future<User> get(core.String project, core.String user) { 930 async.Future<User> get(core.String project, core.String user) {
924 var _url = null; 931 var _url = null;
925 var _queryParams = new core.Map(); 932 var _queryParams = new core.Map();
926 var _uploadMedia = null; 933 var _uploadMedia = null;
927 var _uploadOptions = null; 934 var _uploadOptions = null;
928 var _downloadOptions = commons.DownloadOptions.Metadata; 935 var _downloadOptions = commons.DownloadOptions.Metadata;
929 var _body = null; 936 var _body = null;
930 937
931 if (project == null) { 938 if (project == null) {
932 throw new core.ArgumentError("Parameter project is required."); 939 throw new core.ArgumentError("Parameter project is required.");
933 } 940 }
934 if (user == null) { 941 if (user == null) {
935 throw new core.ArgumentError("Parameter user is required."); 942 throw new core.ArgumentError("Parameter user is required.");
936 } 943 }
937 944
938 _url = commons.Escaper.ecapeVariable('$project') + '/global/users/' + common s.Escaper.ecapeVariable('$user'); 945 _url = commons.Escaper.ecapeVariable('$project') +
946 '/global/users/' +
947 commons.Escaper.ecapeVariable('$user');
939 948
940 var _response = _requester.request(_url, 949 var _response = _requester.request(_url, "GET",
941 "GET", 950 body: _body,
942 body: _body, 951 queryParams: _queryParams,
943 queryParams: _queryParams, 952 uploadOptions: _uploadOptions,
944 uploadOptions: _uploadOptions, 953 uploadMedia: _uploadMedia,
945 uploadMedia: _uploadMedia, 954 downloadOptions: _downloadOptions);
946 downloadOptions: _downloadOptions);
947 return _response.then((data) => new User.fromJson(data)); 955 return _response.then((data) => new User.fromJson(data));
948 } 956 }
949 957
950 /** 958 /// Creates a User resource in the specified project using the data included
951 * Creates a User resource in the specified project using the data included in 959 /// in the request.
952 * the request. 960 ///
953 * 961 /// [request] - The metadata request object.
954 * [request] - The metadata request object. 962 ///
955 * 963 /// Request parameters:
956 * Request parameters: 964 ///
957 * 965 /// [project] - Project ID for this request.
958 * [project] - Project ID for this request. 966 /// Value must have pattern
959 * Value must have pattern 967 /// "(?:(?:[-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])?))".
960 * "(?:(?:[-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])?))". 968 ///
961 * 969 /// Completes with a [Operation].
962 * Completes with a [Operation]. 970 ///
963 * 971 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
964 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 972 /// an error.
965 * error. 973 ///
966 * 974 /// If the used [http.Client] completes with an error when making a REST
967 * If the used [http.Client] completes with an error when making a REST call, 975 /// call, this method will complete with the same error.
968 * this method will complete with the same error.
969 */
970 async.Future<Operation> insert(User request, core.String project) { 976 async.Future<Operation> insert(User request, core.String project) {
971 var _url = null; 977 var _url = null;
972 var _queryParams = new core.Map(); 978 var _queryParams = new core.Map();
973 var _uploadMedia = null; 979 var _uploadMedia = null;
974 var _uploadOptions = null; 980 var _uploadOptions = null;
975 var _downloadOptions = commons.DownloadOptions.Metadata; 981 var _downloadOptions = commons.DownloadOptions.Metadata;
976 var _body = null; 982 var _body = null;
977 983
978 if (request != null) { 984 if (request != null) {
979 _body = convert.JSON.encode((request).toJson()); 985 _body = convert.JSON.encode((request).toJson());
980 } 986 }
981 if (project == null) { 987 if (project == null) {
982 throw new core.ArgumentError("Parameter project is required."); 988 throw new core.ArgumentError("Parameter project is required.");
983 } 989 }
984 990
985 _url = commons.Escaper.ecapeVariable('$project') + '/global/users'; 991 _url = commons.Escaper.ecapeVariable('$project') + '/global/users';
986 992
987 var _response = _requester.request(_url, 993 var _response = _requester.request(_url, "POST",
988 "POST", 994 body: _body,
989 body: _body, 995 queryParams: _queryParams,
990 queryParams: _queryParams, 996 uploadOptions: _uploadOptions,
991 uploadOptions: _uploadOptions, 997 uploadMedia: _uploadMedia,
992 uploadMedia: _uploadMedia, 998 downloadOptions: _downloadOptions);
993 downloadOptions: _downloadOptions);
994 return _response.then((data) => new Operation.fromJson(data)); 999 return _response.then((data) => new Operation.fromJson(data));
995 } 1000 }
996 1001
997 /** 1002 /// Retrieves a list of users contained within the specified project.
998 * Retrieves a list of users contained within the specified project. 1003 ///
999 * 1004 /// Request parameters:
1000 * Request parameters: 1005 ///
1001 * 1006 /// [project] - Project ID for this request.
1002 * [project] - Project ID for this request. 1007 /// Value must have pattern
1003 * Value must have pattern 1008 /// "(?:(?:[-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])?))".
1004 * "(?:(?:[-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])?))". 1009 ///
1005 * 1010 /// [filter] - Sets a filter expression for filtering listed resources, in
1006 * [filter] - Sets a filter expression for filtering listed resources, in the 1011 /// the form filter={expression}. Your {expression} must be in the format:
1007 * form filter={expression}. Your {expression} must be in the format: 1012 /// field_name comparison_string literal_string.
1008 * field_name comparison_string literal_string. 1013 ///
1009 * 1014 /// The field_name is the name of the field you want to compare. Only atomic
1010 * The field_name is the name of the field you want to compare. Only atomic 1015 /// field types are supported (string, number, boolean). The
1011 * field types are supported (string, number, boolean). The comparison_string 1016 /// comparison_string must be either eq (equals) or ne (not equals). The
1012 * must be either eq (equals) or ne (not equals). The literal_string is the 1017 /// literal_string is the string value to filter to. The literal value must
1013 * string value to filter to. The literal value must be valid for the type of 1018 /// be valid for the type of field you are filtering by (string, number,
1014 * field you are filtering by (string, number, boolean). For string fields, 1019 /// boolean). For string fields, the literal value is interpreted as a
1015 * the literal value is interpreted as a regular expression using RE2 syntax. 1020 /// regular expression using RE2 syntax. The literal value must match the
1016 * The literal value must match the entire field. 1021 /// entire field.
1017 * 1022 ///
1018 * For example, to filter for instances that do not have a name of 1023 /// For example, to filter for instances that do not have a name of
1019 * example-instance, you would use filter=name ne example-instance. 1024 /// example-instance, you would use filter=name ne example-instance.
1020 * 1025 ///
1021 * Compute Engine Beta API Only: If you use filtering in the Beta API, you can 1026 /// Compute Engine Beta API Only: If you use filtering in the Beta API, you
1022 * also filter on nested fields. For example, you could filter on instances 1027 /// can also filter on nested fields. For example, you could filter on
1023 * that have set the scheduling.automaticRestart field to true. In particular, 1028 /// instances that have set the scheduling.automaticRestart field to true. In
1024 * use filtering on nested fields to take advantage of instance labels to 1029 /// particular, use filtering on nested fields to take advantage of instance
1025 * organize and filter results based on label values. 1030 /// labels to organize and filter results based on label values.
1026 * 1031 ///
1027 * The Beta API also supports filtering on multiple expressions by providing 1032 /// The Beta API also supports filtering on multiple expressions by providing
1028 * each separate expression within parentheses. For example, 1033 /// each separate expression within parentheses. For example,
1029 * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple 1034 /// (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple
1030 * expressions are treated as AND expressions, meaning that resources must 1035 /// expressions are treated as AND expressions, meaning that resources must
1031 * match all expressions to pass the filters. 1036 /// match all expressions to pass the filters.
1032 * 1037 ///
1033 * [maxResults] - The maximum number of results per page that should be 1038 /// [maxResults] - The maximum number of results per page that should be
1034 * returned. If the number of available results is larger than maxResults, 1039 /// returned. If the number of available results is larger than maxResults,
1035 * Compute Engine returns a nextPageToken that can be used to get the next 1040 /// Compute Engine returns a nextPageToken that can be used to get the next
1036 * page of results in subsequent list requests. 1041 /// page of results in subsequent list requests.
1037 * Value must be between "0" and "500". 1042 /// Value must be between "0" and "500".
1038 * 1043 ///
1039 * [orderBy] - Sorts list results by a certain order. By default, results are 1044 /// [orderBy] - Sorts list results by a certain order. By default, results
1040 * returned in alphanumerical order based on the resource name. 1045 /// are returned in alphanumerical order based on the resource name.
1041 * 1046 ///
1042 * You can also sort results in descending order based on the creation 1047 /// You can also sort results in descending order based on the creation
1043 * timestamp using orderBy="creationTimestamp desc". This sorts results based 1048 /// timestamp using orderBy="creationTimestamp desc". This sorts results
1044 * on the creationTimestamp field in reverse chronological order (newest 1049 /// based on the creationTimestamp field in reverse chronological order
1045 * result first). Use this to sort resources like operations so that the 1050 /// (newest result first). Use this to sort resources like operations so that
1046 * newest operation is returned first. 1051 /// the newest operation is returned first.
1047 * 1052 ///
1048 * Currently, only sorting by name or creationTimestamp desc is supported. 1053 /// Currently, only sorting by name or creationTimestamp desc is supported.
1049 * 1054 ///
1050 * [pageToken] - Specifies a page token to use. Set pageToken to the 1055 /// [pageToken] - Specifies a page token to use. Set pageToken to the
1051 * nextPageToken returned by a previous list request to get the next page of 1056 /// nextPageToken returned by a previous list request to get the next page of
1052 * results. 1057 /// results.
1053 * 1058 ///
1054 * Completes with a [UserList]. 1059 /// Completes with a [UserList].
1055 * 1060 ///
1056 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1061 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1057 * error. 1062 /// an error.
1058 * 1063 ///
1059 * If the used [http.Client] completes with an error when making a REST call, 1064 /// If the used [http.Client] completes with an error when making a REST
1060 * this method will complete with the same error. 1065 /// call, this method will complete with the same error.
1061 */ 1066 async.Future<UserList> list(core.String project,
1062 async.Future<UserList> list(core.String project, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) { 1067 {core.String filter,
1068 core.int maxResults,
1069 core.String orderBy,
1070 core.String pageToken}) {
1063 var _url = null; 1071 var _url = null;
1064 var _queryParams = new core.Map(); 1072 var _queryParams = new core.Map();
1065 var _uploadMedia = null; 1073 var _uploadMedia = null;
1066 var _uploadOptions = null; 1074 var _uploadOptions = null;
1067 var _downloadOptions = commons.DownloadOptions.Metadata; 1075 var _downloadOptions = commons.DownloadOptions.Metadata;
1068 var _body = null; 1076 var _body = null;
1069 1077
1070 if (project == null) { 1078 if (project == null) {
1071 throw new core.ArgumentError("Parameter project is required."); 1079 throw new core.ArgumentError("Parameter project is required.");
1072 } 1080 }
1073 if (filter != null) { 1081 if (filter != null) {
1074 _queryParams["filter"] = [filter]; 1082 _queryParams["filter"] = [filter];
1075 } 1083 }
1076 if (maxResults != null) { 1084 if (maxResults != null) {
1077 _queryParams["maxResults"] = ["${maxResults}"]; 1085 _queryParams["maxResults"] = ["${maxResults}"];
1078 } 1086 }
1079 if (orderBy != null) { 1087 if (orderBy != null) {
1080 _queryParams["orderBy"] = [orderBy]; 1088 _queryParams["orderBy"] = [orderBy];
1081 } 1089 }
1082 if (pageToken != null) { 1090 if (pageToken != null) {
1083 _queryParams["pageToken"] = [pageToken]; 1091 _queryParams["pageToken"] = [pageToken];
1084 } 1092 }
1085 1093
1086 _url = commons.Escaper.ecapeVariable('$project') + '/global/users'; 1094 _url = commons.Escaper.ecapeVariable('$project') + '/global/users';
1087 1095
1088 var _response = _requester.request(_url, 1096 var _response = _requester.request(_url, "GET",
1089 "GET", 1097 body: _body,
1090 body: _body, 1098 queryParams: _queryParams,
1091 queryParams: _queryParams, 1099 uploadOptions: _uploadOptions,
1092 uploadOptions: _uploadOptions, 1100 uploadMedia: _uploadMedia,
1093 uploadMedia: _uploadMedia, 1101 downloadOptions: _downloadOptions);
1094 downloadOptions: _downloadOptions);
1095 return _response.then((data) => new UserList.fromJson(data)); 1102 return _response.then((data) => new UserList.fromJson(data));
1096 } 1103 }
1097 1104
1098 /** 1105 /// Removes the specified public key from the user.
1099 * Removes the specified public key from the user. 1106 ///
1100 * 1107 /// Request parameters:
1101 * Request parameters: 1108 ///
1102 * 1109 /// [project] - Project ID for this request.
1103 * [project] - Project ID for this request. 1110 /// Value must have pattern
1104 * Value must have pattern 1111 /// "(?:(?:[-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])?))".
1105 * "(?:(?:[-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])?))". 1112 ///
1106 * 1113 /// [user] - Name of the user for this request.
1107 * [user] - Name of the user for this request. 1114 /// Value must have pattern "[a-z][-a-z0-9_]{0,31}".
1108 * Value must have pattern "[a-z][-a-z0-9_]{0,31}". 1115 ///
1109 * 1116 /// [fingerprint] - The fingerprint of the public key to delete. Public keys
1110 * [fingerprint] - The fingerprint of the public key to delete. Public keys 1117 /// are identified by their fingerprint, which is defined by RFC4716 to be
1111 * are identified by their fingerprint, which is defined by RFC4716 to be the 1118 /// the MD5 digest of the public key.
1112 * MD5 digest of the public key. 1119 /// Value must have pattern "[a-f0-9]{32}".
1113 * Value must have pattern "[a-f0-9]{32}". 1120 ///
1114 * 1121 /// Completes with a [Operation].
1115 * Completes with a [Operation]. 1122 ///
1116 * 1123 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1117 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1124 /// an error.
1118 * error. 1125 ///
1119 * 1126 /// If the used [http.Client] completes with an error when making a REST
1120 * If the used [http.Client] completes with an error when making a REST call, 1127 /// call, this method will complete with the same error.
1121 * this method will complete with the same error. 1128 async.Future<Operation> removePublicKey(
1122 */ 1129 core.String project, core.String user, core.String fingerprint) {
1123 async.Future<Operation> removePublicKey(core.String project, core.String user, core.String fingerprint) {
1124 var _url = null; 1130 var _url = null;
1125 var _queryParams = new core.Map(); 1131 var _queryParams = new core.Map();
1126 var _uploadMedia = null; 1132 var _uploadMedia = null;
1127 var _uploadOptions = null; 1133 var _uploadOptions = null;
1128 var _downloadOptions = commons.DownloadOptions.Metadata; 1134 var _downloadOptions = commons.DownloadOptions.Metadata;
1129 var _body = null; 1135 var _body = null;
1130 1136
1131 if (project == null) { 1137 if (project == null) {
1132 throw new core.ArgumentError("Parameter project is required."); 1138 throw new core.ArgumentError("Parameter project is required.");
1133 } 1139 }
1134 if (user == null) { 1140 if (user == null) {
1135 throw new core.ArgumentError("Parameter user is required."); 1141 throw new core.ArgumentError("Parameter user is required.");
1136 } 1142 }
1137 if (fingerprint == null) { 1143 if (fingerprint == null) {
1138 throw new core.ArgumentError("Parameter fingerprint is required."); 1144 throw new core.ArgumentError("Parameter fingerprint is required.");
1139 } 1145 }
1140 _queryParams["fingerprint"] = [fingerprint]; 1146 _queryParams["fingerprint"] = [fingerprint];
1141 1147
1142 _url = commons.Escaper.ecapeVariable('$project') + '/global/users/' + common s.Escaper.ecapeVariable('$user') + '/removePublicKey'; 1148 _url = commons.Escaper.ecapeVariable('$project') +
1149 '/global/users/' +
1150 commons.Escaper.ecapeVariable('$user') +
1151 '/removePublicKey';
1143 1152
1144 var _response = _requester.request(_url, 1153 var _response = _requester.request(_url, "POST",
1145 "POST", 1154 body: _body,
1146 body: _body, 1155 queryParams: _queryParams,
1147 queryParams: _queryParams, 1156 uploadOptions: _uploadOptions,
1148 uploadOptions: _uploadOptions, 1157 uploadMedia: _uploadMedia,
1149 uploadMedia: _uploadMedia, 1158 downloadOptions: _downloadOptions);
1150 downloadOptions: _downloadOptions);
1151 return _response.then((data) => new Operation.fromJson(data)); 1159 return _response.then((data) => new Operation.fromJson(data));
1152 } 1160 }
1153
1154 } 1161 }
1155 1162
1163 /// A list of authorized public keys for a user account.
1164 class AuthorizedKeysView {
1165 /// [Output Only] The list of authorized public keys in SSH format.
1166 core.List<core.String> keys;
1156 1167
1157 1168 /// [Output Only] Whether the user has the ability to elevate on the instance
1158 /** A list of authorized public keys for a user account. */ 1169 /// that requested the authorized keys.
1159 class AuthorizedKeysView {
1160 /** [Output Only] The list of authorized public keys in SSH format. */
1161 core.List<core.String> keys;
1162 /**
1163 * [Output Only] Whether the user has the ability to elevate on the instance
1164 * that requested the authorized keys.
1165 */
1166 core.bool sudoer; 1170 core.bool sudoer;
1167 1171
1168 AuthorizedKeysView(); 1172 AuthorizedKeysView();
1169 1173
1170 AuthorizedKeysView.fromJson(core.Map _json) { 1174 AuthorizedKeysView.fromJson(core.Map _json) {
1171 if (_json.containsKey("keys")) { 1175 if (_json.containsKey("keys")) {
1172 keys = _json["keys"]; 1176 keys = _json["keys"];
1173 } 1177 }
1174 if (_json.containsKey("sudoer")) { 1178 if (_json.containsKey("sudoer")) {
1175 sudoer = _json["sudoer"]; 1179 sudoer = _json["sudoer"];
1176 } 1180 }
1177 } 1181 }
1178 1182
1179 core.Map<core.String, core.Object> toJson() { 1183 core.Map<core.String, core.Object> toJson() {
1180 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1184 final core.Map<core.String, core.Object> _json =
1185 new core.Map<core.String, core.Object>();
1181 if (keys != null) { 1186 if (keys != null) {
1182 _json["keys"] = keys; 1187 _json["keys"] = keys;
1183 } 1188 }
1184 if (sudoer != null) { 1189 if (sudoer != null) {
1185 _json["sudoer"] = sudoer; 1190 _json["sudoer"] = sudoer;
1186 } 1191 }
1187 return _json; 1192 return _json;
1188 } 1193 }
1189 } 1194 }
1190 1195
1191 /** A Group resource. */ 1196 /// A Group resource.
1192 class Group { 1197 class Group {
1193 /** [Output Only] Creation timestamp in RFC3339 text format. */ 1198 /// [Output Only] Creation timestamp in RFC3339 text format.
1194 core.String creationTimestamp; 1199 core.String creationTimestamp;
1195 /** 1200
1196 * An optional textual description of the resource; provided by the client 1201 /// An optional textual description of the resource; provided by the client
1197 * when the resource is created. 1202 /// when the resource is created.
1198 */
1199 core.String description; 1203 core.String description;
1200 /** 1204
1201 * [Output Only] Unique identifier for the resource; defined by the server. 1205 /// [Output Only] Unique identifier for the resource; defined by the server.
1202 */
1203 core.String id; 1206 core.String id;
1204 /** 1207
1205 * [Output Only] Type of the resource. Always clouduseraccounts#group for 1208 /// [Output Only] Type of the resource. Always clouduseraccounts#group for
1206 * groups. 1209 /// groups.
1207 */
1208 core.String kind; 1210 core.String kind;
1209 /** 1211
1210 * [Output Only] A list of URLs to User resources who belong to the group. 1212 /// [Output Only] A list of URLs to User resources who belong to the group.
1211 * Users may only be members of groups in the same project. 1213 /// Users may only be members of groups in the same project.
1212 */
1213 core.List<core.String> members; 1214 core.List<core.String> members;
1214 /** 1215
1215 * Name of the resource; provided by the client when the resource is created. 1216 /// Name of the resource; provided by the client when the resource is
1216 */ 1217 /// created.
1217 core.String name; 1218 core.String name;
1218 /** [Output Only] Server defined URL for the resource. */ 1219
1220 /// [Output Only] Server defined URL for the resource.
1219 core.String selfLink; 1221 core.String selfLink;
1220 1222
1221 Group(); 1223 Group();
1222 1224
1223 Group.fromJson(core.Map _json) { 1225 Group.fromJson(core.Map _json) {
1224 if (_json.containsKey("creationTimestamp")) { 1226 if (_json.containsKey("creationTimestamp")) {
1225 creationTimestamp = _json["creationTimestamp"]; 1227 creationTimestamp = _json["creationTimestamp"];
1226 } 1228 }
1227 if (_json.containsKey("description")) { 1229 if (_json.containsKey("description")) {
1228 description = _json["description"]; 1230 description = _json["description"];
1229 } 1231 }
1230 if (_json.containsKey("id")) { 1232 if (_json.containsKey("id")) {
1231 id = _json["id"]; 1233 id = _json["id"];
1232 } 1234 }
1233 if (_json.containsKey("kind")) { 1235 if (_json.containsKey("kind")) {
1234 kind = _json["kind"]; 1236 kind = _json["kind"];
1235 } 1237 }
1236 if (_json.containsKey("members")) { 1238 if (_json.containsKey("members")) {
1237 members = _json["members"]; 1239 members = _json["members"];
1238 } 1240 }
1239 if (_json.containsKey("name")) { 1241 if (_json.containsKey("name")) {
1240 name = _json["name"]; 1242 name = _json["name"];
1241 } 1243 }
1242 if (_json.containsKey("selfLink")) { 1244 if (_json.containsKey("selfLink")) {
1243 selfLink = _json["selfLink"]; 1245 selfLink = _json["selfLink"];
1244 } 1246 }
1245 } 1247 }
1246 1248
1247 core.Map<core.String, core.Object> toJson() { 1249 core.Map<core.String, core.Object> toJson() {
1248 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1250 final core.Map<core.String, core.Object> _json =
1251 new core.Map<core.String, core.Object>();
1249 if (creationTimestamp != null) { 1252 if (creationTimestamp != null) {
1250 _json["creationTimestamp"] = creationTimestamp; 1253 _json["creationTimestamp"] = creationTimestamp;
1251 } 1254 }
1252 if (description != null) { 1255 if (description != null) {
1253 _json["description"] = description; 1256 _json["description"] = description;
1254 } 1257 }
1255 if (id != null) { 1258 if (id != null) {
1256 _json["id"] = id; 1259 _json["id"] = id;
1257 } 1260 }
1258 if (kind != null) { 1261 if (kind != null) {
1259 _json["kind"] = kind; 1262 _json["kind"] = kind;
1260 } 1263 }
1261 if (members != null) { 1264 if (members != null) {
1262 _json["members"] = members; 1265 _json["members"] = members;
1263 } 1266 }
1264 if (name != null) { 1267 if (name != null) {
1265 _json["name"] = name; 1268 _json["name"] = name;
1266 } 1269 }
1267 if (selfLink != null) { 1270 if (selfLink != null) {
1268 _json["selfLink"] = selfLink; 1271 _json["selfLink"] = selfLink;
1269 } 1272 }
1270 return _json; 1273 return _json;
1271 } 1274 }
1272 } 1275 }
1273 1276
1274 class GroupList { 1277 class GroupList {
1275 /** 1278 /// [Output Only] Unique identifier for the resource; defined by the server.
1276 * [Output Only] Unique identifier for the resource; defined by the server.
1277 */
1278 core.String id; 1279 core.String id;
1279 /** [Output Only] A list of Group resources. */ 1280
1281 /// [Output Only] A list of Group resources.
1280 core.List<Group> items; 1282 core.List<Group> items;
1281 /** 1283
1282 * [Output Only] Type of resource. Always clouduseraccounts#groupList for 1284 /// [Output Only] Type of resource. Always clouduseraccounts#groupList for
1283 * lists of groups. 1285 /// lists of groups.
1284 */
1285 core.String kind; 1286 core.String kind;
1286 /** [Output Only] A token used to continue a truncated list request. */ 1287
1288 /// [Output Only] A token used to continue a truncated list request.
1287 core.String nextPageToken; 1289 core.String nextPageToken;
1288 /** [Output Only] Server defined URL for this resource. */ 1290
1291 /// [Output Only] Server defined URL for this resource.
1289 core.String selfLink; 1292 core.String selfLink;
1290 1293
1291 GroupList(); 1294 GroupList();
1292 1295
1293 GroupList.fromJson(core.Map _json) { 1296 GroupList.fromJson(core.Map _json) {
1294 if (_json.containsKey("id")) { 1297 if (_json.containsKey("id")) {
1295 id = _json["id"]; 1298 id = _json["id"];
1296 } 1299 }
1297 if (_json.containsKey("items")) { 1300 if (_json.containsKey("items")) {
1298 items = _json["items"].map((value) => new Group.fromJson(value)).toList(); 1301 items = _json["items"].map((value) => new Group.fromJson(value)).toList();
1299 } 1302 }
1300 if (_json.containsKey("kind")) { 1303 if (_json.containsKey("kind")) {
1301 kind = _json["kind"]; 1304 kind = _json["kind"];
1302 } 1305 }
1303 if (_json.containsKey("nextPageToken")) { 1306 if (_json.containsKey("nextPageToken")) {
1304 nextPageToken = _json["nextPageToken"]; 1307 nextPageToken = _json["nextPageToken"];
1305 } 1308 }
1306 if (_json.containsKey("selfLink")) { 1309 if (_json.containsKey("selfLink")) {
1307 selfLink = _json["selfLink"]; 1310 selfLink = _json["selfLink"];
1308 } 1311 }
1309 } 1312 }
1310 1313
1311 core.Map<core.String, core.Object> toJson() { 1314 core.Map<core.String, core.Object> toJson() {
1312 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1315 final core.Map<core.String, core.Object> _json =
1316 new core.Map<core.String, core.Object>();
1313 if (id != null) { 1317 if (id != null) {
1314 _json["id"] = id; 1318 _json["id"] = id;
1315 } 1319 }
1316 if (items != null) { 1320 if (items != null) {
1317 _json["items"] = items.map((value) => (value).toJson()).toList(); 1321 _json["items"] = items.map((value) => (value).toJson()).toList();
1318 } 1322 }
1319 if (kind != null) { 1323 if (kind != null) {
1320 _json["kind"] = kind; 1324 _json["kind"] = kind;
1321 } 1325 }
1322 if (nextPageToken != null) { 1326 if (nextPageToken != null) {
1323 _json["nextPageToken"] = nextPageToken; 1327 _json["nextPageToken"] = nextPageToken;
1324 } 1328 }
1325 if (selfLink != null) { 1329 if (selfLink != null) {
1326 _json["selfLink"] = selfLink; 1330 _json["selfLink"] = selfLink;
1327 } 1331 }
1328 return _json; 1332 return _json;
1329 } 1333 }
1330 } 1334 }
1331 1335
1332 class GroupsAddMemberRequest { 1336 class GroupsAddMemberRequest {
1333 /** Fully-qualified URLs of the User resources to add. */ 1337 /// Fully-qualified URLs of the User resources to add.
1334 core.List<core.String> users; 1338 core.List<core.String> users;
1335 1339
1336 GroupsAddMemberRequest(); 1340 GroupsAddMemberRequest();
1337 1341
1338 GroupsAddMemberRequest.fromJson(core.Map _json) { 1342 GroupsAddMemberRequest.fromJson(core.Map _json) {
1339 if (_json.containsKey("users")) { 1343 if (_json.containsKey("users")) {
1340 users = _json["users"]; 1344 users = _json["users"];
1341 } 1345 }
1342 } 1346 }
1343 1347
1344 core.Map<core.String, core.Object> toJson() { 1348 core.Map<core.String, core.Object> toJson() {
1345 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1349 final core.Map<core.String, core.Object> _json =
1350 new core.Map<core.String, core.Object>();
1346 if (users != null) { 1351 if (users != null) {
1347 _json["users"] = users; 1352 _json["users"] = users;
1348 } 1353 }
1349 return _json; 1354 return _json;
1350 } 1355 }
1351 } 1356 }
1352 1357
1353 class GroupsRemoveMemberRequest { 1358 class GroupsRemoveMemberRequest {
1354 /** Fully-qualified URLs of the User resources to remove. */ 1359 /// Fully-qualified URLs of the User resources to remove.
1355 core.List<core.String> users; 1360 core.List<core.String> users;
1356 1361
1357 GroupsRemoveMemberRequest(); 1362 GroupsRemoveMemberRequest();
1358 1363
1359 GroupsRemoveMemberRequest.fromJson(core.Map _json) { 1364 GroupsRemoveMemberRequest.fromJson(core.Map _json) {
1360 if (_json.containsKey("users")) { 1365 if (_json.containsKey("users")) {
1361 users = _json["users"]; 1366 users = _json["users"];
1362 } 1367 }
1363 } 1368 }
1364 1369
1365 core.Map<core.String, core.Object> toJson() { 1370 core.Map<core.String, core.Object> toJson() {
1366 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1371 final core.Map<core.String, core.Object> _json =
1372 new core.Map<core.String, core.Object>();
1367 if (users != null) { 1373 if (users != null) {
1368 _json["users"] = users; 1374 _json["users"] = users;
1369 } 1375 }
1370 return _json; 1376 return _json;
1371 } 1377 }
1372 } 1378 }
1373 1379
1374 /** 1380 /// A list of all Linux accounts for this project. This API is only used by
1375 * A list of all Linux accounts for this project. This API is only used by 1381 /// Compute Engine virtual machines to get information about user accounts for
1376 * Compute Engine virtual machines to get information about user accounts for a 1382 /// a project or instance. Linux resources are read-only views into users and
1377 * project or instance. Linux resources are read-only views into users and 1383 /// groups managed by the Compute Engine Accounts API.
1378 * groups managed by the Compute Engine Accounts API.
1379 */
1380 class LinuxAccountViews { 1384 class LinuxAccountViews {
1381 /** [Output Only] A list of all groups within a project. */ 1385 /// [Output Only] A list of all groups within a project.
1382 core.List<LinuxGroupView> groupViews; 1386 core.List<LinuxGroupView> groupViews;
1383 /** 1387
1384 * [Output Only] Type of the resource. Always 1388 /// [Output Only] Type of the resource. Always
1385 * clouduseraccounts#linuxAccountViews for Linux resources. 1389 /// clouduseraccounts#linuxAccountViews for Linux resources.
1386 */
1387 core.String kind; 1390 core.String kind;
1388 /** [Output Only] A list of all users within a project. */ 1391
1392 /// [Output Only] A list of all users within a project.
1389 core.List<LinuxUserView> userViews; 1393 core.List<LinuxUserView> userViews;
1390 1394
1391 LinuxAccountViews(); 1395 LinuxAccountViews();
1392 1396
1393 LinuxAccountViews.fromJson(core.Map _json) { 1397 LinuxAccountViews.fromJson(core.Map _json) {
1394 if (_json.containsKey("groupViews")) { 1398 if (_json.containsKey("groupViews")) {
1395 groupViews = _json["groupViews"].map((value) => new LinuxGroupView.fromJso n(value)).toList(); 1399 groupViews = _json["groupViews"]
1400 .map((value) => new LinuxGroupView.fromJson(value))
1401 .toList();
1396 } 1402 }
1397 if (_json.containsKey("kind")) { 1403 if (_json.containsKey("kind")) {
1398 kind = _json["kind"]; 1404 kind = _json["kind"];
1399 } 1405 }
1400 if (_json.containsKey("userViews")) { 1406 if (_json.containsKey("userViews")) {
1401 userViews = _json["userViews"].map((value) => new LinuxUserView.fromJson(v alue)).toList(); 1407 userViews = _json["userViews"]
1408 .map((value) => new LinuxUserView.fromJson(value))
1409 .toList();
1402 } 1410 }
1403 } 1411 }
1404 1412
1405 core.Map<core.String, core.Object> toJson() { 1413 core.Map<core.String, core.Object> toJson() {
1406 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1414 final core.Map<core.String, core.Object> _json =
1415 new core.Map<core.String, core.Object>();
1407 if (groupViews != null) { 1416 if (groupViews != null) {
1408 _json["groupViews"] = groupViews.map((value) => (value).toJson()).toList() ; 1417 _json["groupViews"] =
1418 groupViews.map((value) => (value).toJson()).toList();
1409 } 1419 }
1410 if (kind != null) { 1420 if (kind != null) {
1411 _json["kind"] = kind; 1421 _json["kind"] = kind;
1412 } 1422 }
1413 if (userViews != null) { 1423 if (userViews != null) {
1414 _json["userViews"] = userViews.map((value) => (value).toJson()).toList(); 1424 _json["userViews"] = userViews.map((value) => (value).toJson()).toList();
1415 } 1425 }
1416 return _json; 1426 return _json;
1417 } 1427 }
1418 } 1428 }
1419 1429
1420 class LinuxGetAuthorizedKeysViewResponse { 1430 class LinuxGetAuthorizedKeysViewResponse {
1421 /** [Output Only] A list of authorized public keys for a user. */ 1431 /// [Output Only] A list of authorized public keys for a user.
1422 AuthorizedKeysView resource; 1432 AuthorizedKeysView resource;
1423 1433
1424 LinuxGetAuthorizedKeysViewResponse(); 1434 LinuxGetAuthorizedKeysViewResponse();
1425 1435
1426 LinuxGetAuthorizedKeysViewResponse.fromJson(core.Map _json) { 1436 LinuxGetAuthorizedKeysViewResponse.fromJson(core.Map _json) {
1427 if (_json.containsKey("resource")) { 1437 if (_json.containsKey("resource")) {
1428 resource = new AuthorizedKeysView.fromJson(_json["resource"]); 1438 resource = new AuthorizedKeysView.fromJson(_json["resource"]);
1429 } 1439 }
1430 } 1440 }
1431 1441
1432 core.Map<core.String, core.Object> toJson() { 1442 core.Map<core.String, core.Object> toJson() {
1433 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1443 final core.Map<core.String, core.Object> _json =
1444 new core.Map<core.String, core.Object>();
1434 if (resource != null) { 1445 if (resource != null) {
1435 _json["resource"] = (resource).toJson(); 1446 _json["resource"] = (resource).toJson();
1436 } 1447 }
1437 return _json; 1448 return _json;
1438 } 1449 }
1439 } 1450 }
1440 1451
1441 class LinuxGetLinuxAccountViewsResponse { 1452 class LinuxGetLinuxAccountViewsResponse {
1442 /** [Output Only] A list of authorized user accounts and groups. */ 1453 /// [Output Only] A list of authorized user accounts and groups.
1443 LinuxAccountViews resource; 1454 LinuxAccountViews resource;
1444 1455
1445 LinuxGetLinuxAccountViewsResponse(); 1456 LinuxGetLinuxAccountViewsResponse();
1446 1457
1447 LinuxGetLinuxAccountViewsResponse.fromJson(core.Map _json) { 1458 LinuxGetLinuxAccountViewsResponse.fromJson(core.Map _json) {
1448 if (_json.containsKey("resource")) { 1459 if (_json.containsKey("resource")) {
1449 resource = new LinuxAccountViews.fromJson(_json["resource"]); 1460 resource = new LinuxAccountViews.fromJson(_json["resource"]);
1450 } 1461 }
1451 } 1462 }
1452 1463
1453 core.Map<core.String, core.Object> toJson() { 1464 core.Map<core.String, core.Object> toJson() {
1454 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1465 final core.Map<core.String, core.Object> _json =
1466 new core.Map<core.String, core.Object>();
1455 if (resource != null) { 1467 if (resource != null) {
1456 _json["resource"] = (resource).toJson(); 1468 _json["resource"] = (resource).toJson();
1457 } 1469 }
1458 return _json; 1470 return _json;
1459 } 1471 }
1460 } 1472 }
1461 1473
1462 /** A detailed view of a Linux group. */ 1474 /// A detailed view of a Linux group.
1463 class LinuxGroupView { 1475 class LinuxGroupView {
1464 /** [Output Only] The Group ID. */ 1476 /// [Output Only] The Group ID.
1465 core.int gid; 1477 core.int gid;
1466 /** [Output Only] Group name. */ 1478
1479 /// [Output Only] Group name.
1467 core.String groupName; 1480 core.String groupName;
1468 /** [Output Only] List of user accounts that belong to the group. */ 1481
1482 /// [Output Only] List of user accounts that belong to the group.
1469 core.List<core.String> members; 1483 core.List<core.String> members;
1470 1484
1471 LinuxGroupView(); 1485 LinuxGroupView();
1472 1486
1473 LinuxGroupView.fromJson(core.Map _json) { 1487 LinuxGroupView.fromJson(core.Map _json) {
1474 if (_json.containsKey("gid")) { 1488 if (_json.containsKey("gid")) {
1475 gid = _json["gid"]; 1489 gid = _json["gid"];
1476 } 1490 }
1477 if (_json.containsKey("groupName")) { 1491 if (_json.containsKey("groupName")) {
1478 groupName = _json["groupName"]; 1492 groupName = _json["groupName"];
1479 } 1493 }
1480 if (_json.containsKey("members")) { 1494 if (_json.containsKey("members")) {
1481 members = _json["members"]; 1495 members = _json["members"];
1482 } 1496 }
1483 } 1497 }
1484 1498
1485 core.Map<core.String, core.Object> toJson() { 1499 core.Map<core.String, core.Object> toJson() {
1486 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1500 final core.Map<core.String, core.Object> _json =
1501 new core.Map<core.String, core.Object>();
1487 if (gid != null) { 1502 if (gid != null) {
1488 _json["gid"] = gid; 1503 _json["gid"] = gid;
1489 } 1504 }
1490 if (groupName != null) { 1505 if (groupName != null) {
1491 _json["groupName"] = groupName; 1506 _json["groupName"] = groupName;
1492 } 1507 }
1493 if (members != null) { 1508 if (members != null) {
1494 _json["members"] = members; 1509 _json["members"] = members;
1495 } 1510 }
1496 return _json; 1511 return _json;
1497 } 1512 }
1498 } 1513 }
1499 1514
1500 /** A detailed view of a Linux user account. */ 1515 /// A detailed view of a Linux user account.
1501 class LinuxUserView { 1516 class LinuxUserView {
1502 /** [Output Only] The GECOS (user information) entry for this account. */ 1517 /// [Output Only] The GECOS (user information) entry for this account.
1503 core.String gecos; 1518 core.String gecos;
1504 /** [Output Only] User's default group ID. */ 1519
1520 /// [Output Only] User's default group ID.
1505 core.int gid; 1521 core.int gid;
1506 /** [Output Only] The path to the home directory for this account. */ 1522
1523 /// [Output Only] The path to the home directory for this account.
1507 core.String homeDirectory; 1524 core.String homeDirectory;
1508 /** [Output Only] The path to the login shell for this account. */ 1525
1526 /// [Output Only] The path to the login shell for this account.
1509 core.String shell; 1527 core.String shell;
1510 /** [Output Only] User ID. */ 1528
1529 /// [Output Only] User ID.
1511 core.int uid; 1530 core.int uid;
1512 /** [Output Only] The username of the account. */ 1531
1532 /// [Output Only] The username of the account.
1513 core.String username; 1533 core.String username;
1514 1534
1515 LinuxUserView(); 1535 LinuxUserView();
1516 1536
1517 LinuxUserView.fromJson(core.Map _json) { 1537 LinuxUserView.fromJson(core.Map _json) {
1518 if (_json.containsKey("gecos")) { 1538 if (_json.containsKey("gecos")) {
1519 gecos = _json["gecos"]; 1539 gecos = _json["gecos"];
1520 } 1540 }
1521 if (_json.containsKey("gid")) { 1541 if (_json.containsKey("gid")) {
1522 gid = _json["gid"]; 1542 gid = _json["gid"];
1523 } 1543 }
1524 if (_json.containsKey("homeDirectory")) { 1544 if (_json.containsKey("homeDirectory")) {
1525 homeDirectory = _json["homeDirectory"]; 1545 homeDirectory = _json["homeDirectory"];
1526 } 1546 }
1527 if (_json.containsKey("shell")) { 1547 if (_json.containsKey("shell")) {
1528 shell = _json["shell"]; 1548 shell = _json["shell"];
1529 } 1549 }
1530 if (_json.containsKey("uid")) { 1550 if (_json.containsKey("uid")) {
1531 uid = _json["uid"]; 1551 uid = _json["uid"];
1532 } 1552 }
1533 if (_json.containsKey("username")) { 1553 if (_json.containsKey("username")) {
1534 username = _json["username"]; 1554 username = _json["username"];
1535 } 1555 }
1536 } 1556 }
1537 1557
1538 core.Map<core.String, core.Object> toJson() { 1558 core.Map<core.String, core.Object> toJson() {
1539 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>();
1540 if (gecos != null) { 1561 if (gecos != null) {
1541 _json["gecos"] = gecos; 1562 _json["gecos"] = gecos;
1542 } 1563 }
1543 if (gid != null) { 1564 if (gid != null) {
1544 _json["gid"] = gid; 1565 _json["gid"] = gid;
1545 } 1566 }
1546 if (homeDirectory != null) { 1567 if (homeDirectory != null) {
1547 _json["homeDirectory"] = homeDirectory; 1568 _json["homeDirectory"] = homeDirectory;
1548 } 1569 }
1549 if (shell != null) { 1570 if (shell != null) {
1550 _json["shell"] = shell; 1571 _json["shell"] = shell;
1551 } 1572 }
1552 if (uid != null) { 1573 if (uid != null) {
1553 _json["uid"] = uid; 1574 _json["uid"] = uid;
1554 } 1575 }
1555 if (username != null) { 1576 if (username != null) {
1556 _json["username"] = username; 1577 _json["username"] = username;
1557 } 1578 }
1558 return _json; 1579 return _json;
1559 } 1580 }
1560 } 1581 }
1561 1582
1562 class OperationErrorErrors { 1583 class OperationErrorErrors {
1563 /** [Output Only] The error type identifier for this error. */ 1584 /// [Output Only] The error type identifier for this error.
1564 core.String code; 1585 core.String code;
1565 /** 1586
1566 * [Output Only] Indicates the field in the request that caused the error. 1587 /// [Output Only] Indicates the field in the request that caused the error.
1567 * This property is optional. 1588 /// This property is optional.
1568 */
1569 core.String location; 1589 core.String location;
1570 /** [Output Only] An optional, human-readable error message. */ 1590
1591 /// [Output Only] An optional, human-readable error message.
1571 core.String message; 1592 core.String message;
1572 1593
1573 OperationErrorErrors(); 1594 OperationErrorErrors();
1574 1595
1575 OperationErrorErrors.fromJson(core.Map _json) { 1596 OperationErrorErrors.fromJson(core.Map _json) {
1576 if (_json.containsKey("code")) { 1597 if (_json.containsKey("code")) {
1577 code = _json["code"]; 1598 code = _json["code"];
1578 } 1599 }
1579 if (_json.containsKey("location")) { 1600 if (_json.containsKey("location")) {
1580 location = _json["location"]; 1601 location = _json["location"];
1581 } 1602 }
1582 if (_json.containsKey("message")) { 1603 if (_json.containsKey("message")) {
1583 message = _json["message"]; 1604 message = _json["message"];
1584 } 1605 }
1585 } 1606 }
1586 1607
1587 core.Map<core.String, core.Object> toJson() { 1608 core.Map<core.String, core.Object> toJson() {
1588 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1609 final core.Map<core.String, core.Object> _json =
1610 new core.Map<core.String, core.Object>();
1589 if (code != null) { 1611 if (code != null) {
1590 _json["code"] = code; 1612 _json["code"] = code;
1591 } 1613 }
1592 if (location != null) { 1614 if (location != null) {
1593 _json["location"] = location; 1615 _json["location"] = location;
1594 } 1616 }
1595 if (message != null) { 1617 if (message != null) {
1596 _json["message"] = message; 1618 _json["message"] = message;
1597 } 1619 }
1598 return _json; 1620 return _json;
1599 } 1621 }
1600 } 1622 }
1601 1623
1602 /** 1624 /// [Output Only] If errors are generated during processing of the operation,
1603 * [Output Only] If errors are generated during processing of the operation, 1625 /// this field will be populated.
1604 * this field will be populated.
1605 */
1606 class OperationError { 1626 class OperationError {
1607 /** 1627 /// [Output Only] The array of errors encountered while processing this
1608 * [Output Only] The array of errors encountered while processing this 1628 /// operation.
1609 * operation.
1610 */
1611 core.List<OperationErrorErrors> errors; 1629 core.List<OperationErrorErrors> errors;
1612 1630
1613 OperationError(); 1631 OperationError();
1614 1632
1615 OperationError.fromJson(core.Map _json) { 1633 OperationError.fromJson(core.Map _json) {
1616 if (_json.containsKey("errors")) { 1634 if (_json.containsKey("errors")) {
1617 errors = _json["errors"].map((value) => new OperationErrorErrors.fromJson( value)).toList(); 1635 errors = _json["errors"]
1636 .map((value) => new OperationErrorErrors.fromJson(value))
1637 .toList();
1618 } 1638 }
1619 } 1639 }
1620 1640
1621 core.Map<core.String, core.Object> toJson() { 1641 core.Map<core.String, core.Object> toJson() {
1622 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1642 final core.Map<core.String, core.Object> _json =
1643 new core.Map<core.String, core.Object>();
1623 if (errors != null) { 1644 if (errors != null) {
1624 _json["errors"] = errors.map((value) => (value).toJson()).toList(); 1645 _json["errors"] = errors.map((value) => (value).toJson()).toList();
1625 } 1646 }
1626 return _json; 1647 return _json;
1627 } 1648 }
1628 } 1649 }
1629 1650
1630 class OperationWarningsData { 1651 class OperationWarningsData {
1631 /** 1652 /// [Output Only] A key that provides more detail on the warning being
1632 * [Output Only] A key that provides more detail on the warning being 1653 /// returned. For example, for warnings where there are no results in a list
1633 * returned. For example, for warnings where there are no results in a list 1654 /// request for a particular zone, this key might be scope and the key value
1634 * request for a particular zone, this key might be scope and the key value 1655 /// might be the zone name. Other examples might be a key indicating a
1635 * might be the zone name. Other examples might be a key indicating a 1656 /// deprecated resource and a suggested replacement, or a warning about
1636 * deprecated resource and a suggested replacement, or a warning about invalid 1657 /// invalid network settings (for example, if an instance attempts to perform
1637 * network settings (for example, if an instance attempts to perform IP 1658 /// IP forwarding but is not enabled for IP forwarding).
1638 * forwarding but is not enabled for IP forwarding).
1639 */
1640 core.String key; 1659 core.String key;
1641 /** [Output Only] A warning data value corresponding to the key. */ 1660
1661 /// [Output Only] A warning data value corresponding to the key.
1642 core.String value; 1662 core.String value;
1643 1663
1644 OperationWarningsData(); 1664 OperationWarningsData();
1645 1665
1646 OperationWarningsData.fromJson(core.Map _json) { 1666 OperationWarningsData.fromJson(core.Map _json) {
1647 if (_json.containsKey("key")) { 1667 if (_json.containsKey("key")) {
1648 key = _json["key"]; 1668 key = _json["key"];
1649 } 1669 }
1650 if (_json.containsKey("value")) { 1670 if (_json.containsKey("value")) {
1651 value = _json["value"]; 1671 value = _json["value"];
1652 } 1672 }
1653 } 1673 }
1654 1674
1655 core.Map<core.String, core.Object> toJson() { 1675 core.Map<core.String, core.Object> toJson() {
1656 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1676 final core.Map<core.String, core.Object> _json =
1677 new core.Map<core.String, core.Object>();
1657 if (key != null) { 1678 if (key != null) {
1658 _json["key"] = key; 1679 _json["key"] = key;
1659 } 1680 }
1660 if (value != null) { 1681 if (value != null) {
1661 _json["value"] = value; 1682 _json["value"] = value;
1662 } 1683 }
1663 return _json; 1684 return _json;
1664 } 1685 }
1665 } 1686 }
1666 1687
1667 class OperationWarnings { 1688 class OperationWarnings {
1668 /** 1689 /// [Output Only] A warning code, if applicable. For example, Compute Engine
1669 * [Output Only] A warning code, if applicable. For example, Compute Engine 1690 /// returns NO_RESULTS_ON_PAGE if there are no results in the response.
1670 * returns NO_RESULTS_ON_PAGE if there are no results in the response. 1691 /// Possible string values are:
1671 * Possible string values are: 1692 /// - "CLEANUP_FAILED"
1672 * - "CLEANUP_FAILED" 1693 /// - "DEPRECATED_RESOURCE_USED"
1673 * - "DEPRECATED_RESOURCE_USED" 1694 /// - "DISK_SIZE_LARGER_THAN_IMAGE_SIZE"
1674 * - "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" 1695 /// - "INJECTED_KERNELS_DEPRECATED"
1675 * - "INJECTED_KERNELS_DEPRECATED" 1696 /// - "NEXT_HOP_ADDRESS_NOT_ASSIGNED"
1676 * - "NEXT_HOP_ADDRESS_NOT_ASSIGNED" 1697 /// - "NEXT_HOP_CANNOT_IP_FORWARD"
1677 * - "NEXT_HOP_CANNOT_IP_FORWARD" 1698 /// - "NEXT_HOP_INSTANCE_NOT_FOUND"
1678 * - "NEXT_HOP_INSTANCE_NOT_FOUND" 1699 /// - "NEXT_HOP_INSTANCE_NOT_ON_NETWORK"
1679 * - "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" 1700 /// - "NEXT_HOP_NOT_RUNNING"
1680 * - "NEXT_HOP_NOT_RUNNING" 1701 /// - "NOT_CRITICAL_ERROR"
1681 * - "NOT_CRITICAL_ERROR" 1702 /// - "NO_RESULTS_ON_PAGE"
1682 * - "NO_RESULTS_ON_PAGE" 1703 /// - "REQUIRED_TOS_AGREEMENT"
1683 * - "REQUIRED_TOS_AGREEMENT" 1704 /// - "RESOURCE_NOT_DELETED"
1684 * - "RESOURCE_NOT_DELETED" 1705 /// - "SINGLE_INSTANCE_PROPERTY_TEMPLATE"
1685 * - "SINGLE_INSTANCE_PROPERTY_TEMPLATE" 1706 /// - "UNREACHABLE"
1686 * - "UNREACHABLE"
1687 */
1688 core.String code; 1707 core.String code;
1689 /** 1708
1690 * [Output Only] Metadata about this warning in key: value format. For 1709 /// [Output Only] Metadata about this warning in key: value format. For
1691 * example: 1710 /// example:
1692 * "data": [ { "key": "scope", "value": "zones/us-east1-d" } 1711 /// "data": [ { "key": "scope", "value": "zones/us-east1-d" }
1693 */
1694 core.List<OperationWarningsData> data; 1712 core.List<OperationWarningsData> data;
1695 /** [Output Only] A human-readable description of the warning code. */ 1713
1714 /// [Output Only] A human-readable description of the warning code.
1696 core.String message; 1715 core.String message;
1697 1716
1698 OperationWarnings(); 1717 OperationWarnings();
1699 1718
1700 OperationWarnings.fromJson(core.Map _json) { 1719 OperationWarnings.fromJson(core.Map _json) {
1701 if (_json.containsKey("code")) { 1720 if (_json.containsKey("code")) {
1702 code = _json["code"]; 1721 code = _json["code"];
1703 } 1722 }
1704 if (_json.containsKey("data")) { 1723 if (_json.containsKey("data")) {
1705 data = _json["data"].map((value) => new OperationWarningsData.fromJson(val ue)).toList(); 1724 data = _json["data"]
1725 .map((value) => new OperationWarningsData.fromJson(value))
1726 .toList();
1706 } 1727 }
1707 if (_json.containsKey("message")) { 1728 if (_json.containsKey("message")) {
1708 message = _json["message"]; 1729 message = _json["message"];
1709 } 1730 }
1710 } 1731 }
1711 1732
1712 core.Map<core.String, core.Object> toJson() { 1733 core.Map<core.String, core.Object> toJson() {
1713 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1734 final core.Map<core.String, core.Object> _json =
1735 new core.Map<core.String, core.Object>();
1714 if (code != null) { 1736 if (code != null) {
1715 _json["code"] = code; 1737 _json["code"] = code;
1716 } 1738 }
1717 if (data != null) { 1739 if (data != null) {
1718 _json["data"] = data.map((value) => (value).toJson()).toList(); 1740 _json["data"] = data.map((value) => (value).toJson()).toList();
1719 } 1741 }
1720 if (message != null) { 1742 if (message != null) {
1721 _json["message"] = message; 1743 _json["message"] = message;
1722 } 1744 }
1723 return _json; 1745 return _json;
1724 } 1746 }
1725 } 1747 }
1726 1748
1727 /** An Operation resource, used to manage asynchronous API requests. */ 1749 /// An Operation resource, used to manage asynchronous API requests.
1728 class Operation { 1750 class Operation {
1729 /** [Output Only] Reserved for future use. */ 1751 /// [Output Only] Reserved for future use.
1730 core.String clientOperationId; 1752 core.String clientOperationId;
1731 /** [Output Only] Creation timestamp in RFC3339 text format. */ 1753
1754 /// [Output Only] Creation timestamp in RFC3339 text format.
1732 core.String creationTimestamp; 1755 core.String creationTimestamp;
1733 /** 1756
1734 * [Output Only] A textual description of the operation, which is set when the 1757 /// [Output Only] A textual description of the operation, which is set when
1735 * operation is created. 1758 /// the operation is created.
1736 */
1737 core.String description; 1759 core.String description;
1738 /** 1760
1739 * [Output Only] The time that this operation was completed. This value is in 1761 /// [Output Only] The time that this operation was completed. This value is
1740 * RFC3339 text format. 1762 /// in RFC3339 text format.
1741 */
1742 core.String endTime; 1763 core.String endTime;
1743 /** 1764
1744 * [Output Only] If errors are generated during processing of the operation, 1765 /// [Output Only] If errors are generated during processing of the operation,
1745 * this field will be populated. 1766 /// this field will be populated.
1746 */
1747 OperationError error; 1767 OperationError error;
1748 /** 1768
1749 * [Output Only] If the operation fails, this field contains the HTTP error 1769 /// [Output Only] If the operation fails, this field contains the HTTP error
1750 * message that was returned, such as NOT FOUND. 1770 /// message that was returned, such as NOT FOUND.
1751 */
1752 core.String httpErrorMessage; 1771 core.String httpErrorMessage;
1753 /** 1772
1754 * [Output Only] If the operation fails, this field contains the HTTP error 1773 /// [Output Only] If the operation fails, this field contains the HTTP error
1755 * status code that was returned. For example, a 404 means the resource was 1774 /// status code that was returned. For example, a 404 means the resource was
1756 * not found. 1775 /// not found.
1757 */
1758 core.int httpErrorStatusCode; 1776 core.int httpErrorStatusCode;
1759 /** 1777
1760 * [Output Only] The unique identifier for the resource. This identifier is 1778 /// [Output Only] The unique identifier for the resource. This identifier is
1761 * defined by the server. 1779 /// defined by the server.
1762 */
1763 core.String id; 1780 core.String id;
1764 /** 1781
1765 * [Output Only] The time that this operation was requested. This value is in 1782 /// [Output Only] The time that this operation was requested. This value is
1766 * RFC3339 text format. 1783 /// in RFC3339 text format.
1767 */
1768 core.String insertTime; 1784 core.String insertTime;
1769 /** 1785
1770 * [Output Only] Type of the resource. Always compute#operation for Operation 1786 /// [Output Only] Type of the resource. Always compute#operation for
1771 * resources. 1787 /// Operation resources.
1772 */
1773 core.String kind; 1788 core.String kind;
1774 /** [Output Only] Name of the resource. */ 1789
1790 /// [Output Only] Name of the resource.
1775 core.String name; 1791 core.String name;
1776 /** 1792
1777 * [Output Only] The type of operation, such as insert, update, or delete, and 1793 /// [Output Only] The type of operation, such as insert, update, or delete,
1778 * so on. 1794 /// and so on.
1779 */
1780 core.String operationType; 1795 core.String operationType;
1781 /** 1796
1782 * [Output Only] An optional progress indicator that ranges from 0 to 100. 1797 /// [Output Only] An optional progress indicator that ranges from 0 to 100.
1783 * There is no requirement that this be linear or support any granularity of 1798 /// There is no requirement that this be linear or support any granularity of
1784 * operations. This should not be used to guess when the operation will be 1799 /// operations. This should not be used to guess when the operation will be
1785 * complete. This number should monotonically increase as the operation 1800 /// complete. This number should monotonically increase as the operation
1786 * progresses. 1801 /// progresses.
1787 */
1788 core.int progress; 1802 core.int progress;
1789 /** 1803
1790 * [Output Only] The URL of the region where the operation resides. Only 1804 /// [Output Only] The URL of the region where the operation resides. Only
1791 * available when performing regional operations. 1805 /// available when performing regional operations.
1792 */
1793 core.String region; 1806 core.String region;
1794 /** [Output Only] Server-defined URL for the resource. */ 1807
1808 /// [Output Only] Server-defined URL for the resource.
1795 core.String selfLink; 1809 core.String selfLink;
1796 /** 1810
1797 * [Output Only] The time that this operation was started by the server. This 1811 /// [Output Only] The time that this operation was started by the server.
1798 * value is in RFC3339 text format. 1812 /// This value is in RFC3339 text format.
1799 */
1800 core.String startTime; 1813 core.String startTime;
1801 /** 1814
1802 * [Output Only] The status of the operation, which can be one of the 1815 /// [Output Only] The status of the operation, which can be one of the
1803 * following: PENDING, RUNNING, or DONE. 1816 /// following: PENDING, RUNNING, or DONE.
1804 * Possible string values are: 1817 /// Possible string values are:
1805 * - "DONE" 1818 /// - "DONE"
1806 * - "PENDING" 1819 /// - "PENDING"
1807 * - "RUNNING" 1820 /// - "RUNNING"
1808 */
1809 core.String status; 1821 core.String status;
1810 /** 1822
1811 * [Output Only] An optional textual description of the current status of the 1823 /// [Output Only] An optional textual description of the current status of
1812 * operation. 1824 /// the operation.
1813 */
1814 core.String statusMessage; 1825 core.String statusMessage;
1815 /** 1826
1816 * [Output Only] The unique target ID, which identifies a specific incarnation 1827 /// [Output Only] The unique target ID, which identifies a specific
1817 * of the target resource. 1828 /// incarnation of the target resource.
1818 */
1819 core.String targetId; 1829 core.String targetId;
1820 /** [Output Only] The URL of the resource that the operation modifies. */ 1830
1831 /// [Output Only] The URL of the resource that the operation modifies.
1821 core.String targetLink; 1832 core.String targetLink;
1822 /** 1833
1823 * [Output Only] User who requested the operation, for example: 1834 /// [Output Only] User who requested the operation, for example:
1824 * user@example.com. 1835 /// user@example.com.
1825 */
1826 core.String user; 1836 core.String user;
1827 /** 1837
1828 * [Output Only] If warning messages are generated during processing of the 1838 /// [Output Only] If warning messages are generated during processing of the
1829 * operation, this field will be populated. 1839 /// operation, this field will be populated.
1830 */
1831 core.List<OperationWarnings> warnings; 1840 core.List<OperationWarnings> warnings;
1832 /** 1841
1833 * [Output Only] The URL of the zone where the operation resides. Only 1842 /// [Output Only] The URL of the zone where the operation resides. Only
1834 * available when performing per-zone operations. 1843 /// available when performing per-zone operations.
1835 */
1836 core.String zone; 1844 core.String zone;
1837 1845
1838 Operation(); 1846 Operation();
1839 1847
1840 Operation.fromJson(core.Map _json) { 1848 Operation.fromJson(core.Map _json) {
1841 if (_json.containsKey("clientOperationId")) { 1849 if (_json.containsKey("clientOperationId")) {
1842 clientOperationId = _json["clientOperationId"]; 1850 clientOperationId = _json["clientOperationId"];
1843 } 1851 }
1844 if (_json.containsKey("creationTimestamp")) { 1852 if (_json.containsKey("creationTimestamp")) {
1845 creationTimestamp = _json["creationTimestamp"]; 1853 creationTimestamp = _json["creationTimestamp"];
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
1895 if (_json.containsKey("targetId")) { 1903 if (_json.containsKey("targetId")) {
1896 targetId = _json["targetId"]; 1904 targetId = _json["targetId"];
1897 } 1905 }
1898 if (_json.containsKey("targetLink")) { 1906 if (_json.containsKey("targetLink")) {
1899 targetLink = _json["targetLink"]; 1907 targetLink = _json["targetLink"];
1900 } 1908 }
1901 if (_json.containsKey("user")) { 1909 if (_json.containsKey("user")) {
1902 user = _json["user"]; 1910 user = _json["user"];
1903 } 1911 }
1904 if (_json.containsKey("warnings")) { 1912 if (_json.containsKey("warnings")) {
1905 warnings = _json["warnings"].map((value) => new OperationWarnings.fromJson (value)).toList(); 1913 warnings = _json["warnings"]
1914 .map((value) => new OperationWarnings.fromJson(value))
1915 .toList();
1906 } 1916 }
1907 if (_json.containsKey("zone")) { 1917 if (_json.containsKey("zone")) {
1908 zone = _json["zone"]; 1918 zone = _json["zone"];
1909 } 1919 }
1910 } 1920 }
1911 1921
1912 core.Map<core.String, core.Object> toJson() { 1922 core.Map<core.String, core.Object> toJson() {
1913 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1923 final core.Map<core.String, core.Object> _json =
1924 new core.Map<core.String, core.Object>();
1914 if (clientOperationId != null) { 1925 if (clientOperationId != null) {
1915 _json["clientOperationId"] = clientOperationId; 1926 _json["clientOperationId"] = clientOperationId;
1916 } 1927 }
1917 if (creationTimestamp != null) { 1928 if (creationTimestamp != null) {
1918 _json["creationTimestamp"] = creationTimestamp; 1929 _json["creationTimestamp"] = creationTimestamp;
1919 } 1930 }
1920 if (description != null) { 1931 if (description != null) {
1921 _json["description"] = description; 1932 _json["description"] = description;
1922 } 1933 }
1923 if (endTime != null) { 1934 if (endTime != null) {
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
1977 if (warnings != null) { 1988 if (warnings != null) {
1978 _json["warnings"] = warnings.map((value) => (value).toJson()).toList(); 1989 _json["warnings"] = warnings.map((value) => (value).toJson()).toList();
1979 } 1990 }
1980 if (zone != null) { 1991 if (zone != null) {
1981 _json["zone"] = zone; 1992 _json["zone"] = zone;
1982 } 1993 }
1983 return _json; 1994 return _json;
1984 } 1995 }
1985 } 1996 }
1986 1997
1987 /** Contains a list of Operation resources. */ 1998 /// Contains a list of Operation resources.
1988 class OperationList { 1999 class OperationList {
1989 /** 2000 /// [Output Only] The unique identifier for the resource. This identifier is
1990 * [Output Only] The unique identifier for the resource. This identifier is 2001 /// defined by the server.
1991 * defined by the server.
1992 */
1993 core.String id; 2002 core.String id;
1994 /** [Output Only] A list of Operation resources. */ 2003
2004 /// [Output Only] A list of Operation resources.
1995 core.List<Operation> items; 2005 core.List<Operation> items;
1996 /** 2006
1997 * [Output Only] Type of resource. Always compute#operations for Operations 2007 /// [Output Only] Type of resource. Always compute#operations for Operations
1998 * resource. 2008 /// resource.
1999 */
2000 core.String kind; 2009 core.String kind;
2001 /** 2010
2002 * [Output Only] This token allows you to get the next page of results for 2011 /// [Output Only] This token allows you to get the next page of results for
2003 * list requests. If the number of results is larger than maxResults, use the 2012 /// list requests. If the number of results is larger than maxResults, use
2004 * nextPageToken as a value for the query parameter pageToken in the next list 2013 /// the nextPageToken as a value for the query parameter pageToken in the
2005 * request. Subsequent list requests will have their own nextPageToken to 2014 /// next list request. Subsequent list requests will have their own
2006 * continue paging through the results. 2015 /// nextPageToken to continue paging through the results.
2007 */
2008 core.String nextPageToken; 2016 core.String nextPageToken;
2009 /** [Output Only] Server-defined URL for this resource. */ 2017
2018 /// [Output Only] Server-defined URL for this resource.
2010 core.String selfLink; 2019 core.String selfLink;
2011 2020
2012 OperationList(); 2021 OperationList();
2013 2022
2014 OperationList.fromJson(core.Map _json) { 2023 OperationList.fromJson(core.Map _json) {
2015 if (_json.containsKey("id")) { 2024 if (_json.containsKey("id")) {
2016 id = _json["id"]; 2025 id = _json["id"];
2017 } 2026 }
2018 if (_json.containsKey("items")) { 2027 if (_json.containsKey("items")) {
2019 items = _json["items"].map((value) => new Operation.fromJson(value)).toLis t(); 2028 items =
2029 _json["items"].map((value) => new Operation.fromJson(value)).toList();
2020 } 2030 }
2021 if (_json.containsKey("kind")) { 2031 if (_json.containsKey("kind")) {
2022 kind = _json["kind"]; 2032 kind = _json["kind"];
2023 } 2033 }
2024 if (_json.containsKey("nextPageToken")) { 2034 if (_json.containsKey("nextPageToken")) {
2025 nextPageToken = _json["nextPageToken"]; 2035 nextPageToken = _json["nextPageToken"];
2026 } 2036 }
2027 if (_json.containsKey("selfLink")) { 2037 if (_json.containsKey("selfLink")) {
2028 selfLink = _json["selfLink"]; 2038 selfLink = _json["selfLink"];
2029 } 2039 }
2030 } 2040 }
2031 2041
2032 core.Map<core.String, core.Object> toJson() { 2042 core.Map<core.String, core.Object> toJson() {
2033 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2043 final core.Map<core.String, core.Object> _json =
2044 new core.Map<core.String, core.Object>();
2034 if (id != null) { 2045 if (id != null) {
2035 _json["id"] = id; 2046 _json["id"] = id;
2036 } 2047 }
2037 if (items != null) { 2048 if (items != null) {
2038 _json["items"] = items.map((value) => (value).toJson()).toList(); 2049 _json["items"] = items.map((value) => (value).toJson()).toList();
2039 } 2050 }
2040 if (kind != null) { 2051 if (kind != null) {
2041 _json["kind"] = kind; 2052 _json["kind"] = kind;
2042 } 2053 }
2043 if (nextPageToken != null) { 2054 if (nextPageToken != null) {
2044 _json["nextPageToken"] = nextPageToken; 2055 _json["nextPageToken"] = nextPageToken;
2045 } 2056 }
2046 if (selfLink != null) { 2057 if (selfLink != null) {
2047 _json["selfLink"] = selfLink; 2058 _json["selfLink"] = selfLink;
2048 } 2059 }
2049 return _json; 2060 return _json;
2050 } 2061 }
2051 } 2062 }
2052 2063
2053 /** A public key for authenticating to guests. */ 2064 /// A public key for authenticating to guests.
2054 class PublicKey { 2065 class PublicKey {
2055 /** [Output Only] Creation timestamp in RFC3339 text format. */ 2066 /// [Output Only] Creation timestamp in RFC3339 text format.
2056 core.String creationTimestamp; 2067 core.String creationTimestamp;
2057 /** 2068
2058 * An optional textual description of the resource; provided by the client 2069 /// An optional textual description of the resource; provided by the client
2059 * when the resource is created. 2070 /// when the resource is created.
2060 */
2061 core.String description; 2071 core.String description;
2062 /** 2072
2063 * Optional expiration timestamp. If provided, the timestamp must be in 2073 /// Optional expiration timestamp. If provided, the timestamp must be in
2064 * RFC3339 text format. If not provided, the public key never expires. 2074 /// RFC3339 text format. If not provided, the public key never expires.
2065 */
2066 core.String expirationTimestamp; 2075 core.String expirationTimestamp;
2067 /** 2076
2068 * [Output Only] The fingerprint of the key is defined by RFC4716 to be the 2077 /// [Output Only] The fingerprint of the key is defined by RFC4716 to be the
2069 * MD5 digest of the public key. 2078 /// MD5 digest of the public key.
2070 */
2071 core.String fingerprint; 2079 core.String fingerprint;
2072 /** Public key text in SSH format, defined by RFC4253 section 6.6. */ 2080
2081 /// Public key text in SSH format, defined by RFC4253 section 6.6.
2073 core.String key; 2082 core.String key;
2074 2083
2075 PublicKey(); 2084 PublicKey();
2076 2085
2077 PublicKey.fromJson(core.Map _json) { 2086 PublicKey.fromJson(core.Map _json) {
2078 if (_json.containsKey("creationTimestamp")) { 2087 if (_json.containsKey("creationTimestamp")) {
2079 creationTimestamp = _json["creationTimestamp"]; 2088 creationTimestamp = _json["creationTimestamp"];
2080 } 2089 }
2081 if (_json.containsKey("description")) { 2090 if (_json.containsKey("description")) {
2082 description = _json["description"]; 2091 description = _json["description"];
2083 } 2092 }
2084 if (_json.containsKey("expirationTimestamp")) { 2093 if (_json.containsKey("expirationTimestamp")) {
2085 expirationTimestamp = _json["expirationTimestamp"]; 2094 expirationTimestamp = _json["expirationTimestamp"];
2086 } 2095 }
2087 if (_json.containsKey("fingerprint")) { 2096 if (_json.containsKey("fingerprint")) {
2088 fingerprint = _json["fingerprint"]; 2097 fingerprint = _json["fingerprint"];
2089 } 2098 }
2090 if (_json.containsKey("key")) { 2099 if (_json.containsKey("key")) {
2091 key = _json["key"]; 2100 key = _json["key"];
2092 } 2101 }
2093 } 2102 }
2094 2103
2095 core.Map<core.String, core.Object> toJson() { 2104 core.Map<core.String, core.Object> toJson() {
2096 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2105 final core.Map<core.String, core.Object> _json =
2106 new core.Map<core.String, core.Object>();
2097 if (creationTimestamp != null) { 2107 if (creationTimestamp != null) {
2098 _json["creationTimestamp"] = creationTimestamp; 2108 _json["creationTimestamp"] = creationTimestamp;
2099 } 2109 }
2100 if (description != null) { 2110 if (description != null) {
2101 _json["description"] = description; 2111 _json["description"] = description;
2102 } 2112 }
2103 if (expirationTimestamp != null) { 2113 if (expirationTimestamp != null) {
2104 _json["expirationTimestamp"] = expirationTimestamp; 2114 _json["expirationTimestamp"] = expirationTimestamp;
2105 } 2115 }
2106 if (fingerprint != null) { 2116 if (fingerprint != null) {
2107 _json["fingerprint"] = fingerprint; 2117 _json["fingerprint"] = fingerprint;
2108 } 2118 }
2109 if (key != null) { 2119 if (key != null) {
2110 _json["key"] = key; 2120 _json["key"] = key;
2111 } 2121 }
2112 return _json; 2122 return _json;
2113 } 2123 }
2114 } 2124 }
2115 2125
2116 /** A User resource. */ 2126 /// A User resource.
2117 class User { 2127 class User {
2118 /** [Output Only] Creation timestamp in RFC3339 text format. */ 2128 /// [Output Only] Creation timestamp in RFC3339 text format.
2119 core.String creationTimestamp; 2129 core.String creationTimestamp;
2120 /** 2130
2121 * An optional textual description of the resource; provided by the client 2131 /// An optional textual description of the resource; provided by the client
2122 * when the resource is created. 2132 /// when the resource is created.
2123 */
2124 core.String description; 2133 core.String description;
2125 /** 2134
2126 * [Output Only] A list of URLs to Group resources who contain the user. Users 2135 /// [Output Only] A list of URLs to Group resources who contain the user.
2127 * are only members of groups in the same project. 2136 /// Users are only members of groups in the same project.
2128 */
2129 core.List<core.String> groups; 2137 core.List<core.String> groups;
2130 /** 2138
2131 * [Output Only] Unique identifier for the resource; defined by the server. 2139 /// [Output Only] Unique identifier for the resource; defined by the server.
2132 */
2133 core.String id; 2140 core.String id;
2134 /** 2141
2135 * [Output Only] Type of the resource. Always clouduseraccounts#user for 2142 /// [Output Only] Type of the resource. Always clouduseraccounts#user for
2136 * users. 2143 /// users.
2137 */
2138 core.String kind; 2144 core.String kind;
2139 /** 2145
2140 * Name of the resource; provided by the client when the resource is created. 2146 /// Name of the resource; provided by the client when the resource is
2141 */ 2147 /// created.
2142 core.String name; 2148 core.String name;
2143 /** 2149
2144 * Email address of account's owner. This account will be validated to make 2150 /// Email address of account's owner. This account will be validated to make
2145 * sure it exists. The email can belong to any domain, but it must be tied to 2151 /// sure it exists. The email can belong to any domain, but it must be tied
2146 * a Google account. 2152 /// to a Google account.
2147 */
2148 core.String owner; 2153 core.String owner;
2149 /** [Output Only] Public keys that this user may use to login. */ 2154
2155 /// [Output Only] Public keys that this user may use to login.
2150 core.List<PublicKey> publicKeys; 2156 core.List<PublicKey> publicKeys;
2151 /** [Output Only] Server defined URL for the resource. */ 2157
2158 /// [Output Only] Server defined URL for the resource.
2152 core.String selfLink; 2159 core.String selfLink;
2153 2160
2154 User(); 2161 User();
2155 2162
2156 User.fromJson(core.Map _json) { 2163 User.fromJson(core.Map _json) {
2157 if (_json.containsKey("creationTimestamp")) { 2164 if (_json.containsKey("creationTimestamp")) {
2158 creationTimestamp = _json["creationTimestamp"]; 2165 creationTimestamp = _json["creationTimestamp"];
2159 } 2166 }
2160 if (_json.containsKey("description")) { 2167 if (_json.containsKey("description")) {
2161 description = _json["description"]; 2168 description = _json["description"];
2162 } 2169 }
2163 if (_json.containsKey("groups")) { 2170 if (_json.containsKey("groups")) {
2164 groups = _json["groups"]; 2171 groups = _json["groups"];
2165 } 2172 }
2166 if (_json.containsKey("id")) { 2173 if (_json.containsKey("id")) {
2167 id = _json["id"]; 2174 id = _json["id"];
2168 } 2175 }
2169 if (_json.containsKey("kind")) { 2176 if (_json.containsKey("kind")) {
2170 kind = _json["kind"]; 2177 kind = _json["kind"];
2171 } 2178 }
2172 if (_json.containsKey("name")) { 2179 if (_json.containsKey("name")) {
2173 name = _json["name"]; 2180 name = _json["name"];
2174 } 2181 }
2175 if (_json.containsKey("owner")) { 2182 if (_json.containsKey("owner")) {
2176 owner = _json["owner"]; 2183 owner = _json["owner"];
2177 } 2184 }
2178 if (_json.containsKey("publicKeys")) { 2185 if (_json.containsKey("publicKeys")) {
2179 publicKeys = _json["publicKeys"].map((value) => new PublicKey.fromJson(val ue)).toList(); 2186 publicKeys = _json["publicKeys"]
2187 .map((value) => new PublicKey.fromJson(value))
2188 .toList();
2180 } 2189 }
2181 if (_json.containsKey("selfLink")) { 2190 if (_json.containsKey("selfLink")) {
2182 selfLink = _json["selfLink"]; 2191 selfLink = _json["selfLink"];
2183 } 2192 }
2184 } 2193 }
2185 2194
2186 core.Map<core.String, core.Object> toJson() { 2195 core.Map<core.String, core.Object> toJson() {
2187 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2196 final core.Map<core.String, core.Object> _json =
2197 new core.Map<core.String, core.Object>();
2188 if (creationTimestamp != null) { 2198 if (creationTimestamp != null) {
2189 _json["creationTimestamp"] = creationTimestamp; 2199 _json["creationTimestamp"] = creationTimestamp;
2190 } 2200 }
2191 if (description != null) { 2201 if (description != null) {
2192 _json["description"] = description; 2202 _json["description"] = description;
2193 } 2203 }
2194 if (groups != null) { 2204 if (groups != null) {
2195 _json["groups"] = groups; 2205 _json["groups"] = groups;
2196 } 2206 }
2197 if (id != null) { 2207 if (id != null) {
2198 _json["id"] = id; 2208 _json["id"] = id;
2199 } 2209 }
2200 if (kind != null) { 2210 if (kind != null) {
2201 _json["kind"] = kind; 2211 _json["kind"] = kind;
2202 } 2212 }
2203 if (name != null) { 2213 if (name != null) {
2204 _json["name"] = name; 2214 _json["name"] = name;
2205 } 2215 }
2206 if (owner != null) { 2216 if (owner != null) {
2207 _json["owner"] = owner; 2217 _json["owner"] = owner;
2208 } 2218 }
2209 if (publicKeys != null) { 2219 if (publicKeys != null) {
2210 _json["publicKeys"] = publicKeys.map((value) => (value).toJson()).toList() ; 2220 _json["publicKeys"] =
2221 publicKeys.map((value) => (value).toJson()).toList();
2211 } 2222 }
2212 if (selfLink != null) { 2223 if (selfLink != null) {
2213 _json["selfLink"] = selfLink; 2224 _json["selfLink"] = selfLink;
2214 } 2225 }
2215 return _json; 2226 return _json;
2216 } 2227 }
2217 } 2228 }
2218 2229
2219 class UserList { 2230 class UserList {
2220 /** 2231 /// [Output Only] Unique identifier for the resource; defined by the server.
2221 * [Output Only] Unique identifier for the resource; defined by the server.
2222 */
2223 core.String id; 2232 core.String id;
2224 /** [Output Only] A list of User resources. */ 2233
2234 /// [Output Only] A list of User resources.
2225 core.List<User> items; 2235 core.List<User> items;
2226 /** 2236
2227 * [Output Only] Type of resource. Always clouduseraccounts#userList for lists 2237 /// [Output Only] Type of resource. Always clouduseraccounts#userList for
2228 * of users. 2238 /// lists of users.
2229 */
2230 core.String kind; 2239 core.String kind;
2231 /** [Output Only] A token used to continue a truncated list request. */ 2240
2241 /// [Output Only] A token used to continue a truncated list request.
2232 core.String nextPageToken; 2242 core.String nextPageToken;
2233 /** [Output Only] Server defined URL for this resource. */ 2243
2244 /// [Output Only] Server defined URL for this resource.
2234 core.String selfLink; 2245 core.String selfLink;
2235 2246
2236 UserList(); 2247 UserList();
2237 2248
2238 UserList.fromJson(core.Map _json) { 2249 UserList.fromJson(core.Map _json) {
2239 if (_json.containsKey("id")) { 2250 if (_json.containsKey("id")) {
2240 id = _json["id"]; 2251 id = _json["id"];
2241 } 2252 }
2242 if (_json.containsKey("items")) { 2253 if (_json.containsKey("items")) {
2243 items = _json["items"].map((value) => new User.fromJson(value)).toList(); 2254 items = _json["items"].map((value) => new User.fromJson(value)).toList();
2244 } 2255 }
2245 if (_json.containsKey("kind")) { 2256 if (_json.containsKey("kind")) {
2246 kind = _json["kind"]; 2257 kind = _json["kind"];
2247 } 2258 }
2248 if (_json.containsKey("nextPageToken")) { 2259 if (_json.containsKey("nextPageToken")) {
2249 nextPageToken = _json["nextPageToken"]; 2260 nextPageToken = _json["nextPageToken"];
2250 } 2261 }
2251 if (_json.containsKey("selfLink")) { 2262 if (_json.containsKey("selfLink")) {
2252 selfLink = _json["selfLink"]; 2263 selfLink = _json["selfLink"];
2253 } 2264 }
2254 } 2265 }
2255 2266
2256 core.Map<core.String, core.Object> toJson() { 2267 core.Map<core.String, core.Object> toJson() {
2257 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2268 final core.Map<core.String, core.Object> _json =
2269 new core.Map<core.String, core.Object>();
2258 if (id != null) { 2270 if (id != null) {
2259 _json["id"] = id; 2271 _json["id"] = id;
2260 } 2272 }
2261 if (items != null) { 2273 if (items != null) {
2262 _json["items"] = items.map((value) => (value).toJson()).toList(); 2274 _json["items"] = items.map((value) => (value).toJson()).toList();
2263 } 2275 }
2264 if (kind != null) { 2276 if (kind != null) {
2265 _json["kind"] = kind; 2277 _json["kind"] = kind;
2266 } 2278 }
2267 if (nextPageToken != null) { 2279 if (nextPageToken != null) {
2268 _json["nextPageToken"] = nextPageToken; 2280 _json["nextPageToken"] = nextPageToken;
2269 } 2281 }
2270 if (selfLink != null) { 2282 if (selfLink != null) {
2271 _json["selfLink"] = selfLink; 2283 _json["selfLink"] = selfLink;
2272 } 2284 }
2273 return _json; 2285 return _json;
2274 } 2286 }
2275 } 2287 }
OLDNEW
« no previous file with comments | « generated/googleapis_beta/lib/cloudresourcemanager/v1beta1.dart ('k') | generated/googleapis_beta/lib/dataflow/v1b3.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698