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

Side by Side Diff: generated/googleapis/lib/iam/v1.dart

Issue 2695743002: Api-roll 45: 2017-02-13 (Closed)
Patch Set: reverted local changes to pubspec file Created 3 years, 10 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.iam.v1; 3 library googleapis.iam.v1;
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;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 class ProjectsServiceAccountsResourceApi { 47 class ProjectsServiceAccountsResourceApi {
48 final commons.ApiRequester _requester; 48 final commons.ApiRequester _requester;
49 49
50 ProjectsServiceAccountsKeysResourceApi get keys => new ProjectsServiceAccounts KeysResourceApi(_requester); 50 ProjectsServiceAccountsKeysResourceApi get keys => new ProjectsServiceAccounts KeysResourceApi(_requester);
51 51
52 ProjectsServiceAccountsResourceApi(commons.ApiRequester client) : 52 ProjectsServiceAccountsResourceApi(commons.ApiRequester client) :
53 _requester = client; 53 _requester = client;
54 54
55 /** 55 /**
56 * Creates a ServiceAccount and returns it. 56 * Creates a ServiceAccount
57 * and returns it.
57 * 58 *
58 * [request] - The metadata request object. 59 * [request] - The metadata request object.
59 * 60 *
60 * Request parameters: 61 * Request parameters:
61 * 62 *
62 * [name] - Required. The resource name of the project associated with the 63 * [name] - Required. The resource name of the project associated with the
63 * service accounts, such as `projects/my-project-123`. 64 * service
64 * Value must have pattern "^projects/[^/]*$". 65 * accounts, such as `projects/my-project-123`.
66 * Value must have pattern "^projects/[^/]+$".
65 * 67 *
66 * Completes with a [ServiceAccount]. 68 * Completes with a [ServiceAccount].
67 * 69 *
68 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 70 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
69 * error. 71 * error.
70 * 72 *
71 * If the used [http.Client] completes with an error when making a REST call, 73 * If the used [http.Client] completes with an error when making a REST call,
72 * this method will complete with the same error. 74 * this method will complete with the same error.
73 */ 75 */
74 async.Future<ServiceAccount> create(CreateServiceAccountRequest request, core. String name) { 76 async.Future<ServiceAccount> create(CreateServiceAccountRequest request, core. String name) {
(...skipping 22 matching lines...) Expand all
97 downloadOptions: _downloadOptions); 99 downloadOptions: _downloadOptions);
98 return _response.then((data) => new ServiceAccount.fromJson(data)); 100 return _response.then((data) => new ServiceAccount.fromJson(data));
99 } 101 }
100 102
101 /** 103 /**
102 * Deletes a ServiceAccount. 104 * Deletes a ServiceAccount.
103 * 105 *
104 * Request parameters: 106 * Request parameters:
105 * 107 *
106 * [name] - The resource name of the service account in the following format: 108 * [name] - The resource name of the service account in the following format:
107 * `projects/{project}/serviceAccounts/{account}`. Using `-` as a wildcard for 109 * `projects/{PROJECT_ID}/serviceAccounts/{SERVICE_ACCOUNT_EMAIL}`.
108 * the project will infer the project from the account. The `account` value 110 * Using `-` as a wildcard for the project will infer the project from
109 * can be the `email` address or the `unique_id` of the service account. 111 * the account. The `account` value can be the `email` address or the
110 * Value must have pattern "^projects/[^/] * / serviceAccounts/[^/]*$". 112 * `unique_id` of the service account.
113 * Value must have pattern "^projects/[^/]+/serviceAccounts/[^/]+$".
111 * 114 *
112 * Completes with a [Empty]. 115 * Completes with a [Empty].
113 * 116 *
114 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 117 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
115 * error. 118 * error.
116 * 119 *
117 * If the used [http.Client] completes with an error when making a REST call, 120 * If the used [http.Client] completes with an error when making a REST call,
118 * this method will complete with the same error. 121 * this method will complete with the same error.
119 */ 122 */
120 async.Future<Empty> delete(core.String name) { 123 async.Future<Empty> delete(core.String name) {
(...skipping 19 matching lines...) Expand all
140 downloadOptions: _downloadOptions); 143 downloadOptions: _downloadOptions);
141 return _response.then((data) => new Empty.fromJson(data)); 144 return _response.then((data) => new Empty.fromJson(data));
142 } 145 }
143 146
144 /** 147 /**
145 * Gets a ServiceAccount. 148 * Gets a ServiceAccount.
146 * 149 *
147 * Request parameters: 150 * Request parameters:
148 * 151 *
149 * [name] - The resource name of the service account in the following format: 152 * [name] - The resource name of the service account in the following format:
150 * `projects/{project}/serviceAccounts/{account}`. Using `-` as a wildcard for 153 * `projects/{PROJECT_ID}/serviceAccounts/{SERVICE_ACCOUNT_EMAIL}`.
151 * the project will infer the project from the account. The `account` value 154 * Using `-` as a wildcard for the project will infer the project from
152 * can be the `email` address or the `unique_id` of the service account. 155 * the account. The `account` value can be the `email` address or the
153 * Value must have pattern "^projects/[^/] * / serviceAccounts/[^/]*$". 156 * `unique_id` of the service account.
157 * Value must have pattern "^projects/[^/]+/serviceAccounts/[^/]+$".
154 * 158 *
155 * Completes with a [ServiceAccount]. 159 * Completes with a [ServiceAccount].
156 * 160 *
157 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 161 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
158 * error. 162 * error.
159 * 163 *
160 * If the used [http.Client] completes with an error when making a REST call, 164 * If the used [http.Client] completes with an error when making a REST call,
161 * this method will complete with the same error. 165 * this method will complete with the same error.
162 */ 166 */
163 async.Future<ServiceAccount> get(core.String name) { 167 async.Future<ServiceAccount> get(core.String name) {
(...skipping 14 matching lines...) Expand all
178 "GET", 182 "GET",
179 body: _body, 183 body: _body,
180 queryParams: _queryParams, 184 queryParams: _queryParams,
181 uploadOptions: _uploadOptions, 185 uploadOptions: _uploadOptions,
182 uploadMedia: _uploadMedia, 186 uploadMedia: _uploadMedia,
183 downloadOptions: _downloadOptions); 187 downloadOptions: _downloadOptions);
184 return _response.then((data) => new ServiceAccount.fromJson(data)); 188 return _response.then((data) => new ServiceAccount.fromJson(data));
185 } 189 }
186 190
187 /** 191 /**
188 * Returns the IAM access control policy for a ServiceAccount. 192 * Returns the IAM access control policy for a
193 * ServiceAccount.
189 * 194 *
190 * Request parameters: 195 * Request parameters:
191 * 196 *
192 * [resource] - REQUIRED: The resource for which the policy is being 197 * [resource] - REQUIRED: The resource for which the policy is being
193 * requested. `resource` is usually specified as a path. For example, a 198 * requested.
194 * Project resource is specified as `projects/{project}`. 199 * `resource` is usually specified as a path. For example, a Project
195 * Value must have pattern "^projects/[^/] * / serviceAccounts/[^/]*$". 200 * resource is specified as `projects/{project}`.
201 * Value must have pattern "^projects/[^/]+/serviceAccounts/[^/]+$".
196 * 202 *
197 * Completes with a [Policy]. 203 * Completes with a [Policy].
198 * 204 *
199 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 205 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
200 * error. 206 * error.
201 * 207 *
202 * If the used [http.Client] completes with an error when making a REST call, 208 * If the used [http.Client] completes with an error when making a REST call,
203 * this method will complete with the same error. 209 * this method will complete with the same error.
204 */ 210 */
205 async.Future<Policy> getIamPolicy(core.String resource) { 211 async.Future<Policy> getIamPolicy(core.String resource) {
(...skipping 19 matching lines...) Expand all
225 downloadOptions: _downloadOptions); 231 downloadOptions: _downloadOptions);
226 return _response.then((data) => new Policy.fromJson(data)); 232 return _response.then((data) => new Policy.fromJson(data));
227 } 233 }
228 234
229 /** 235 /**
230 * Lists ServiceAccounts for a project. 236 * Lists ServiceAccounts for a project.
231 * 237 *
232 * Request parameters: 238 * Request parameters:
233 * 239 *
234 * [name] - Required. The resource name of the project associated with the 240 * [name] - Required. The resource name of the project associated with the
235 * service accounts, such as `projects/my-project-123`. 241 * service
236 * Value must have pattern "^projects/[^/]*$". 242 * accounts, such as `projects/my-project-123`.
237 * 243 * Value must have pattern "^projects/[^/]+$".
238 * [pageSize] - Optional limit on the number of service accounts to include in
239 * the response. Further accounts can subsequently be obtained by including
240 * the ListServiceAccountsResponse.next_page_token in a subsequent request.
241 * 244 *
242 * [pageToken] - Optional pagination token returned in an earlier 245 * [pageToken] - Optional pagination token returned in an earlier
243 * ListServiceAccountsResponse.next_page_token. 246 * ListServiceAccountsResponse.next_page_token.
244 * 247 *
248 * [pageSize] - Optional limit on the number of service accounts to include in
249 * the
250 * response. Further accounts can subsequently be obtained by including the
251 * ListServiceAccountsResponse.next_page_token
252 * in a subsequent request.
253 *
245 * Completes with a [ListServiceAccountsResponse]. 254 * Completes with a [ListServiceAccountsResponse].
246 * 255 *
247 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 256 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
248 * error. 257 * error.
249 * 258 *
250 * If the used [http.Client] completes with an error when making a REST call, 259 * If the used [http.Client] completes with an error when making a REST call,
251 * this method will complete with the same error. 260 * this method will complete with the same error.
252 */ 261 */
253 async.Future<ListServiceAccountsResponse> list(core.String name, {core.int pag eSize, core.String pageToken}) { 262 async.Future<ListServiceAccountsResponse> list(core.String name, {core.String pageToken, core.int pageSize}) {
254 var _url = null; 263 var _url = null;
255 var _queryParams = new core.Map(); 264 var _queryParams = new core.Map();
256 var _uploadMedia = null; 265 var _uploadMedia = null;
257 var _uploadOptions = null; 266 var _uploadOptions = null;
258 var _downloadOptions = commons.DownloadOptions.Metadata; 267 var _downloadOptions = commons.DownloadOptions.Metadata;
259 var _body = null; 268 var _body = null;
260 269
261 if (name == null) { 270 if (name == null) {
262 throw new core.ArgumentError("Parameter name is required."); 271 throw new core.ArgumentError("Parameter name is required.");
263 } 272 }
273 if (pageToken != null) {
274 _queryParams["pageToken"] = [pageToken];
275 }
264 if (pageSize != null) { 276 if (pageSize != null) {
265 _queryParams["pageSize"] = ["${pageSize}"]; 277 _queryParams["pageSize"] = ["${pageSize}"];
266 } 278 }
267 if (pageToken != null) {
268 _queryParams["pageToken"] = [pageToken];
269 }
270 279
271 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + '/serviceAcc ounts'; 280 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + '/serviceAcc ounts';
272 281
273 var _response = _requester.request(_url, 282 var _response = _requester.request(_url,
274 "GET", 283 "GET",
275 body: _body, 284 body: _body,
276 queryParams: _queryParams, 285 queryParams: _queryParams,
277 uploadOptions: _uploadOptions, 286 uploadOptions: _uploadOptions,
278 uploadMedia: _uploadMedia, 287 uploadMedia: _uploadMedia,
279 downloadOptions: _downloadOptions); 288 downloadOptions: _downloadOptions);
280 return _response.then((data) => new ListServiceAccountsResponse.fromJson(dat a)); 289 return _response.then((data) => new ListServiceAccountsResponse.fromJson(dat a));
281 } 290 }
282 291
283 /** 292 /**
284 * Sets the IAM access control policy for a ServiceAccount. 293 * Sets the IAM access control policy for a
294 * ServiceAccount.
285 * 295 *
286 * [request] - The metadata request object. 296 * [request] - The metadata request object.
287 * 297 *
288 * Request parameters: 298 * Request parameters:
289 * 299 *
290 * [resource] - REQUIRED: The resource for which the policy is being 300 * [resource] - REQUIRED: The resource for which the policy is being
291 * specified. `resource` is usually specified as a path. For example, a 301 * specified.
292 * Project resource is specified as `projects/{project}`. 302 * `resource` is usually specified as a path. For example, a Project
293 * Value must have pattern "^projects/[^/] * / serviceAccounts/[^/]*$". 303 * resource is specified as `projects/{project}`.
304 * Value must have pattern "^projects/[^/]+/serviceAccounts/[^/]+$".
294 * 305 *
295 * Completes with a [Policy]. 306 * Completes with a [Policy].
296 * 307 *
297 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 308 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
298 * error. 309 * error.
299 * 310 *
300 * If the used [http.Client] completes with an error when making a REST call, 311 * If the used [http.Client] completes with an error when making a REST call,
301 * this method will complete with the same error. 312 * this method will complete with the same error.
302 */ 313 */
303 async.Future<Policy> setIamPolicy(SetIamPolicyRequest request, core.String res ource) { 314 async.Future<Policy> setIamPolicy(SetIamPolicyRequest request, core.String res ource) {
(...skipping 24 matching lines...) Expand all
328 } 339 }
329 340
330 /** 341 /**
331 * Signs a blob using a service account's system-managed private key. 342 * Signs a blob using a service account's system-managed private key.
332 * 343 *
333 * [request] - The metadata request object. 344 * [request] - The metadata request object.
334 * 345 *
335 * Request parameters: 346 * Request parameters:
336 * 347 *
337 * [name] - The resource name of the service account in the following format: 348 * [name] - The resource name of the service account in the following format:
338 * `projects/{project}/serviceAccounts/{account}`. Using `-` as a wildcard for 349 * `projects/{PROJECT_ID}/serviceAccounts/{SERVICE_ACCOUNT_EMAIL}`.
339 * the project will infer the project from the account. The `account` value 350 * Using `-` as a wildcard for the project will infer the project from
340 * can be the `email` address or the `unique_id` of the service account. 351 * the account. The `account` value can be the `email` address or the
341 * Value must have pattern "^projects/[^/] * / serviceAccounts/[^/]*$". 352 * `unique_id` of the service account.
353 * Value must have pattern "^projects/[^/]+/serviceAccounts/[^/]+$".
342 * 354 *
343 * Completes with a [SignBlobResponse]. 355 * Completes with a [SignBlobResponse].
344 * 356 *
345 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 357 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
346 * error. 358 * error.
347 * 359 *
348 * If the used [http.Client] completes with an error when making a REST call, 360 * If the used [http.Client] completes with an error when making a REST call,
349 * this method will complete with the same error. 361 * this method will complete with the same error.
350 */ 362 */
351 async.Future<SignBlobResponse> signBlob(SignBlobRequest request, core.String n ame) { 363 async.Future<SignBlobResponse> signBlob(SignBlobRequest request, core.String n ame) {
(...skipping 17 matching lines...) Expand all
369 "POST", 381 "POST",
370 body: _body, 382 body: _body,
371 queryParams: _queryParams, 383 queryParams: _queryParams,
372 uploadOptions: _uploadOptions, 384 uploadOptions: _uploadOptions,
373 uploadMedia: _uploadMedia, 385 uploadMedia: _uploadMedia,
374 downloadOptions: _downloadOptions); 386 downloadOptions: _downloadOptions);
375 return _response.then((data) => new SignBlobResponse.fromJson(data)); 387 return _response.then((data) => new SignBlobResponse.fromJson(data));
376 } 388 }
377 389
378 /** 390 /**
379 * Tests the specified permissions against the IAM access control policy for a 391 * Signs a JWT using a service account's system-managed private key.
380 * ServiceAccount. 392 *
393 * If no expiry time (`exp`) is provided in the `SignJwtRequest`, IAM sets an
394 * an expiry time of one hour by default. If you request an expiry time of
395 * more than one hour, the request will fail.
396 *
397 * [request] - The metadata request object.
398 *
399 * Request parameters:
400 *
401 * [name] - The resource name of the service account in the following format:
402 * `projects/{PROJECT_ID}/serviceAccounts/{SERVICE_ACCOUNT_EMAIL}`.
403 * Using `-` as a wildcard for the project will infer the project from
404 * the account. The `account` value can be the `email` address or the
405 * `unique_id` of the service account.
406 * Value must have pattern "^projects/[^/]+/serviceAccounts/[^/]+$".
407 *
408 * Completes with a [SignJwtResponse].
409 *
410 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
411 * error.
412 *
413 * If the used [http.Client] completes with an error when making a REST call,
414 * this method will complete with the same error.
415 */
416 async.Future<SignJwtResponse> signJwt(SignJwtRequest request, core.String name ) {
417 var _url = null;
418 var _queryParams = new core.Map();
419 var _uploadMedia = null;
420 var _uploadOptions = null;
421 var _downloadOptions = commons.DownloadOptions.Metadata;
422 var _body = null;
423
424 if (request != null) {
425 _body = convert.JSON.encode((request).toJson());
426 }
427 if (name == null) {
428 throw new core.ArgumentError("Parameter name is required.");
429 }
430
431 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + ':signJwt';
432
433 var _response = _requester.request(_url,
434 "POST",
435 body: _body,
436 queryParams: _queryParams,
437 uploadOptions: _uploadOptions,
438 uploadMedia: _uploadMedia,
439 downloadOptions: _downloadOptions);
440 return _response.then((data) => new SignJwtResponse.fromJson(data));
441 }
442
443 /**
444 * Tests the specified permissions against the IAM access control policy
445 * for a ServiceAccount.
381 * 446 *
382 * [request] - The metadata request object. 447 * [request] - The metadata request object.
383 * 448 *
384 * Request parameters: 449 * Request parameters:
385 * 450 *
386 * [resource] - REQUIRED: The resource for which the policy detail is being 451 * [resource] - REQUIRED: The resource for which the policy detail is being
387 * requested. `resource` is usually specified as a path. For example, a 452 * requested.
388 * Project resource is specified as `projects/{project}`. 453 * `resource` is usually specified as a path. For example, a Project
389 * Value must have pattern "^projects/[^/] * / serviceAccounts/[^/]*$". 454 * resource is specified as `projects/{project}`.
455 * Value must have pattern "^projects/[^/]+/serviceAccounts/[^/]+$".
390 * 456 *
391 * Completes with a [TestIamPermissionsResponse]. 457 * Completes with a [TestIamPermissionsResponse].
392 * 458 *
393 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 459 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
394 * error. 460 * error.
395 * 461 *
396 * If the used [http.Client] completes with an error when making a REST call, 462 * If the used [http.Client] completes with an error when making a REST call,
397 * this method will complete with the same error. 463 * this method will complete with the same error.
398 */ 464 */
399 async.Future<TestIamPermissionsResponse> testIamPermissions(TestIamPermissions Request request, core.String resource) { 465 async.Future<TestIamPermissionsResponse> testIamPermissions(TestIamPermissions Request request, core.String resource) {
(...skipping 17 matching lines...) Expand all
417 "POST", 483 "POST",
418 body: _body, 484 body: _body,
419 queryParams: _queryParams, 485 queryParams: _queryParams,
420 uploadOptions: _uploadOptions, 486 uploadOptions: _uploadOptions,
421 uploadMedia: _uploadMedia, 487 uploadMedia: _uploadMedia,
422 downloadOptions: _downloadOptions); 488 downloadOptions: _downloadOptions);
423 return _response.then((data) => new TestIamPermissionsResponse.fromJson(data )); 489 return _response.then((data) => new TestIamPermissionsResponse.fromJson(data ));
424 } 490 }
425 491
426 /** 492 /**
427 * Updates a ServiceAccount. Currently, only the following fields are 493 * Updates a ServiceAccount.
428 * updatable: `display_name` . The `etag` is mandatory. 494 *
495 * Currently, only the following fields are updatable:
496 * `display_name` .
497 * The `etag` is mandatory.
429 * 498 *
430 * [request] - The metadata request object. 499 * [request] - The metadata request object.
431 * 500 *
432 * Request parameters: 501 * Request parameters:
433 * 502 *
434 * [name] - The resource name of the service account in the following format: 503 * [name] - The resource name of the service account in the following format:
435 * `projects/{project}/serviceAccounts/{account}`. Requests using `-` as a 504 * `projects/{PROJECT_ID}/serviceAccounts/{SERVICE_ACCOUNT_EMAIL}`.
436 * wildcard for the project will infer the project from the `account` and the 505 *
437 * `account` value can be the `email` address or the `unique_id` of the 506 * Requests using `-` as a wildcard for the project will infer the project
438 * service account. In responses the resource name will always be in the 507 * from the `account` and the `account` value can be the `email` address or
439 * format `projects/{project}/serviceAccounts/{email}`. 508 * the `unique_id` of the service account.
440 * Value must have pattern "^projects/[^/] * / serviceAccounts/[^/]*$". 509 *
510 * In responses the resource name will always be in the format
511 * `projects/{PROJECT_ID}/serviceAccounts/{SERVICE_ACCOUNT_EMAIL}`.
512 * Value must have pattern "^projects/[^/]+/serviceAccounts/[^/]+$".
441 * 513 *
442 * Completes with a [ServiceAccount]. 514 * Completes with a [ServiceAccount].
443 * 515 *
444 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 516 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
445 * error. 517 * error.
446 * 518 *
447 * If the used [http.Client] completes with an error when making a REST call, 519 * If the used [http.Client] completes with an error when making a REST call,
448 * this method will complete with the same error. 520 * this method will complete with the same error.
449 */ 521 */
450 async.Future<ServiceAccount> update(ServiceAccount request, core.String name) { 522 async.Future<ServiceAccount> update(ServiceAccount request, core.String name) {
(...skipping 26 matching lines...) Expand all
477 } 549 }
478 550
479 551
480 class ProjectsServiceAccountsKeysResourceApi { 552 class ProjectsServiceAccountsKeysResourceApi {
481 final commons.ApiRequester _requester; 553 final commons.ApiRequester _requester;
482 554
483 ProjectsServiceAccountsKeysResourceApi(commons.ApiRequester client) : 555 ProjectsServiceAccountsKeysResourceApi(commons.ApiRequester client) :
484 _requester = client; 556 _requester = client;
485 557
486 /** 558 /**
487 * Creates a ServiceAccountKey and returns it. 559 * Creates a ServiceAccountKey
560 * and returns it.
488 * 561 *
489 * [request] - The metadata request object. 562 * [request] - The metadata request object.
490 * 563 *
491 * Request parameters: 564 * Request parameters:
492 * 565 *
493 * [name] - The resource name of the service account in the following format: 566 * [name] - The resource name of the service account in the following format:
494 * `projects/{project}/serviceAccounts/{account}`. Using `-` as a wildcard for 567 * `projects/{PROJECT_ID}/serviceAccounts/{SERVICE_ACCOUNT_EMAIL}`.
495 * the project will infer the project from the account. The `account` value 568 * Using `-` as a wildcard for the project will infer the project from
496 * can be the `email` address or the `unique_id` of the service account. 569 * the account. The `account` value can be the `email` address or the
497 * Value must have pattern "^projects/[^/] * / serviceAccounts/[^/]*$". 570 * `unique_id` of the service account.
571 * Value must have pattern "^projects/[^/]+/serviceAccounts/[^/]+$".
498 * 572 *
499 * Completes with a [ServiceAccountKey]. 573 * Completes with a [ServiceAccountKey].
500 * 574 *
501 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 575 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
502 * error. 576 * error.
503 * 577 *
504 * If the used [http.Client] completes with an error when making a REST call, 578 * If the used [http.Client] completes with an error when making a REST call,
505 * this method will complete with the same error. 579 * this method will complete with the same error.
506 */ 580 */
507 async.Future<ServiceAccountKey> create(CreateServiceAccountKeyRequest request, core.String name) { 581 async.Future<ServiceAccountKey> create(CreateServiceAccountKeyRequest request, core.String name) {
(...skipping 22 matching lines...) Expand all
530 downloadOptions: _downloadOptions); 604 downloadOptions: _downloadOptions);
531 return _response.then((data) => new ServiceAccountKey.fromJson(data)); 605 return _response.then((data) => new ServiceAccountKey.fromJson(data));
532 } 606 }
533 607
534 /** 608 /**
535 * Deletes a ServiceAccountKey. 609 * Deletes a ServiceAccountKey.
536 * 610 *
537 * Request parameters: 611 * Request parameters:
538 * 612 *
539 * [name] - The resource name of the service account key in the following 613 * [name] - The resource name of the service account key in the following
540 * format: `projects/{project}/serviceAccounts/{account}/keys/{key}`. Using 614 * format:
541 * `-` as a wildcard for the project will infer the project from the account. 615 * `projects/{PROJECT_ID}/serviceAccounts/{SERVICE_ACCOUNT_EMAIL}/keys/{key}`.
542 * The `account` value can be the `email` address or the `unique_id` of the 616 * Using `-` as a wildcard for the project will infer the project from
543 * service account. 617 * the account. The `account` value can be the `email` address or the
544 * Value must have pattern "^projects/[^/] * / serviceAccounts/[^/] * / 618 * `unique_id` of the service account.
545 * keys/[^/]*$". 619 * Value must have pattern
620 * "^projects/[^/]+/serviceAccounts/[^/]+/keys/[^/]+$".
546 * 621 *
547 * Completes with a [Empty]. 622 * Completes with a [Empty].
548 * 623 *
549 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 624 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
550 * error. 625 * error.
551 * 626 *
552 * If the used [http.Client] completes with an error when making a REST call, 627 * If the used [http.Client] completes with an error when making a REST call,
553 * this method will complete with the same error. 628 * this method will complete with the same error.
554 */ 629 */
555 async.Future<Empty> delete(core.String name) { 630 async.Future<Empty> delete(core.String name) {
(...skipping 14 matching lines...) Expand all
570 "DELETE", 645 "DELETE",
571 body: _body, 646 body: _body,
572 queryParams: _queryParams, 647 queryParams: _queryParams,
573 uploadOptions: _uploadOptions, 648 uploadOptions: _uploadOptions,
574 uploadMedia: _uploadMedia, 649 uploadMedia: _uploadMedia,
575 downloadOptions: _downloadOptions); 650 downloadOptions: _downloadOptions);
576 return _response.then((data) => new Empty.fromJson(data)); 651 return _response.then((data) => new Empty.fromJson(data));
577 } 652 }
578 653
579 /** 654 /**
580 * Gets the ServiceAccountKey by key id. 655 * Gets the ServiceAccountKey
656 * by key id.
581 * 657 *
582 * Request parameters: 658 * Request parameters:
583 * 659 *
584 * [name] - The resource name of the service account key in the following 660 * [name] - The resource name of the service account key in the following
585 * format: `projects/{project}/serviceAccounts/{account}/keys/{key}`. Using 661 * format:
586 * `-` as a wildcard for the project will infer the project from the account. 662 * `projects/{PROJECT_ID}/serviceAccounts/{SERVICE_ACCOUNT_EMAIL}/keys/{key}`.
587 * The `account` value can be the `email` address or the `unique_id` of the
588 * service account.
589 * Value must have pattern "^projects/[^/] * / serviceAccounts/[^/] * /
590 * keys/[^/]*$".
591 * 663 *
592 * [publicKeyType] - The output format of the public key requested. X509_PEM 664 * Using `-` as a wildcard for the project will infer the project from
593 * is the default output format. 665 * the account. The `account` value can be the `email` address or the
666 * `unique_id` of the service account.
667 * Value must have pattern
668 * "^projects/[^/]+/serviceAccounts/[^/]+/keys/[^/]+$".
669 *
670 * [publicKeyType] - The output format of the public key requested.
671 * X509_PEM is the default output format.
594 * Possible string values are: 672 * Possible string values are:
595 * - "TYPE_NONE" : A TYPE_NONE. 673 * - "TYPE_NONE" : A TYPE_NONE.
596 * - "TYPE_X509_PEM_FILE" : A TYPE_X509_PEM_FILE. 674 * - "TYPE_X509_PEM_FILE" : A TYPE_X509_PEM_FILE.
597 * - "TYPE_RAW_PUBLIC_KEY" : A TYPE_RAW_PUBLIC_KEY. 675 * - "TYPE_RAW_PUBLIC_KEY" : A TYPE_RAW_PUBLIC_KEY.
598 * 676 *
599 * Completes with a [ServiceAccountKey]. 677 * Completes with a [ServiceAccountKey].
600 * 678 *
601 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 679 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
602 * error. 680 * error.
603 * 681 *
(...skipping 26 matching lines...) Expand all
630 downloadOptions: _downloadOptions); 708 downloadOptions: _downloadOptions);
631 return _response.then((data) => new ServiceAccountKey.fromJson(data)); 709 return _response.then((data) => new ServiceAccountKey.fromJson(data));
632 } 710 }
633 711
634 /** 712 /**
635 * Lists ServiceAccountKeys. 713 * Lists ServiceAccountKeys.
636 * 714 *
637 * Request parameters: 715 * Request parameters:
638 * 716 *
639 * [name] - The resource name of the service account in the following format: 717 * [name] - The resource name of the service account in the following format:
640 * `projects/{project}/serviceAccounts/{account}`. Using `-` as a wildcard for 718 * `projects/{PROJECT_ID}/serviceAccounts/{SERVICE_ACCOUNT_EMAIL}`.
641 * the project, will infer the project from the account. The `account` value 719 *
642 * can be the `email` address or the `unique_id` of the service account. 720 * Using `-` as a wildcard for the project, will infer the project from
643 * Value must have pattern "^projects/[^/] * / serviceAccounts/[^/]*$". 721 * the account. The `account` value can be the `email` address or the
722 * `unique_id` of the service account.
723 * Value must have pattern "^projects/[^/]+/serviceAccounts/[^/]+$".
644 * 724 *
645 * [keyTypes] - Filters the types of keys the user wants to include in the 725 * [keyTypes] - Filters the types of keys the user wants to include in the
646 * list response. Duplicate key types are not allowed. If no key type is 726 * list
647 * provided, all keys are returned. 727 * response. Duplicate key types are not allowed. If no key type
728 * is provided, all keys are returned.
648 * 729 *
649 * Completes with a [ListServiceAccountKeysResponse]. 730 * Completes with a [ListServiceAccountKeysResponse].
650 * 731 *
651 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 732 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
652 * error. 733 * error.
653 * 734 *
654 * If the used [http.Client] completes with an error when making a REST call, 735 * If the used [http.Client] completes with an error when making a REST call,
655 * this method will complete with the same error. 736 * this method will complete with the same error.
656 */ 737 */
657 async.Future<ListServiceAccountKeysResponse> list(core.String name, {core.List <core.String> keyTypes}) { 738 async.Future<ListServiceAccountKeysResponse> list(core.String name, {core.List <core.String> keyTypes}) {
(...skipping 26 matching lines...) Expand all
684 } 765 }
685 766
686 767
687 class RolesResourceApi { 768 class RolesResourceApi {
688 final commons.ApiRequester _requester; 769 final commons.ApiRequester _requester;
689 770
690 RolesResourceApi(commons.ApiRequester client) : 771 RolesResourceApi(commons.ApiRequester client) :
691 _requester = client; 772 _requester = client;
692 773
693 /** 774 /**
694 * Queries roles that can be granted on a particular resource. A role is 775 * Queries roles that can be granted on a particular resource.
695 * grantable if it can be used as the role in a binding for a policy for that 776 * A role is grantable if it can be used as the role in a binding for a policy
696 * resource. 777 * for that resource.
697 * 778 *
698 * [request] - The metadata request object. 779 * [request] - The metadata request object.
699 * 780 *
700 * Request parameters: 781 * Request parameters:
701 * 782 *
702 * Completes with a [QueryGrantableRolesResponse]. 783 * Completes with a [QueryGrantableRolesResponse].
703 * 784 *
704 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 785 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
705 * error. 786 * error.
706 * 787 *
(...skipping 22 matching lines...) Expand all
729 uploadMedia: _uploadMedia, 810 uploadMedia: _uploadMedia,
730 downloadOptions: _downloadOptions); 811 downloadOptions: _downloadOptions);
731 return _response.then((data) => new QueryGrantableRolesResponse.fromJson(dat a)); 812 return _response.then((data) => new QueryGrantableRolesResponse.fromJson(dat a));
732 } 813 }
733 814
734 } 815 }
735 816
736 817
737 818
738 /** 819 /**
739 * Audit log information specific to Cloud IAM. This message is serialized as an 820 * Audit log information specific to Cloud IAM. This message is serialized
740 * `Any` type in the `ServiceData` message of an `AuditLog` message. 821 * as an `Any` type in the `ServiceData` message of an
822 * `AuditLog` message.
741 */ 823 */
742 class AuditData { 824 class AuditData {
743 /** Policy delta between the original policy and the newly set policy. */ 825 /** Policy delta between the original policy and the newly set policy. */
744 PolicyDelta policyDelta; 826 PolicyDelta policyDelta;
745 827
746 AuditData(); 828 AuditData();
747 829
748 AuditData.fromJson(core.Map _json) { 830 AuditData.fromJson(core.Map _json) {
749 if (_json.containsKey("policyDelta")) { 831 if (_json.containsKey("policyDelta")) {
750 policyDelta = new PolicyDelta.fromJson(_json["policyDelta"]); 832 policyDelta = new PolicyDelta.fromJson(_json["policyDelta"]);
751 } 833 }
752 } 834 }
753 835
754 core.Map toJson() { 836 core.Map toJson() {
755 var _json = new core.Map(); 837 var _json = new core.Map();
756 if (policyDelta != null) { 838 if (policyDelta != null) {
757 _json["policyDelta"] = (policyDelta).toJson(); 839 _json["policyDelta"] = (policyDelta).toJson();
758 } 840 }
759 return _json; 841 return _json;
760 } 842 }
761 } 843 }
762 844
763 /** Associates `members` with a `role`. */ 845 /** Associates `members` with a `role`. */
764 class Binding { 846 class Binding {
765 /** 847 /**
766 * Specifies the identities requesting access for a Cloud Platform resource. 848 * Specifies the identities requesting access for a Cloud Platform resource.
767 * `members` can have the following values: * `allUsers`: A special identifier 849 * `members` can have the following values:
768 * that represents anyone who is on the internet; with or without a Google 850 *
769 * account. * `allAuthenticatedUsers`: A special identifier that represents 851 * * `allUsers`: A special identifier that represents anyone who is
770 * anyone who is authenticated with a Google account or a service account. * 852 * on the internet; with or without a Google account.
771 * `user:{emailid}`: An email address that represents a specific Google 853 *
772 * account. For example, `alice@gmail.com` or `joe@example.com`. * 854 * * `allAuthenticatedUsers`: A special identifier that represents anyone
773 * `serviceAccount:{emailid}`: An email address that represents a service 855 * who is authenticated with a Google account or a service account.
774 * account. For example, `my-other-app@appspot.gserviceaccount.com`. * 856 *
775 * `group:{emailid}`: An email address that represents a Google group. For 857 * * `user:{emailid}`: An email address that represents a specific Google
776 * example, `admins@example.com`. * `domain:{domain}`: A Google Apps domain 858 * account. For example, `alice@gmail.com` or `joe@example.com`.
777 * name that represents all the users of that domain. For example, 859 *
778 * `google.com` or `example.com`. 860 *
861 * * `serviceAccount:{emailid}`: An email address that represents a service
862 * account. For example, `my-other-app@appspot.gserviceaccount.com`.
863 *
864 * * `group:{emailid}`: An email address that represents a Google group.
865 * For example, `admins@example.com`.
866 *
867 * * `domain:{domain}`: A Google Apps domain name that represents all the
868 * users of that domain. For example, `google.com` or `example.com`.
779 */ 869 */
780 core.List<core.String> members; 870 core.List<core.String> members;
781 /** 871 /**
782 * Role that is assigned to `members`. For example, `roles/viewer`, 872 * Role that is assigned to `members`.
783 * `roles/editor`, or `roles/owner`. Required 873 * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
874 * Required
784 */ 875 */
785 core.String role; 876 core.String role;
786 877
787 Binding(); 878 Binding();
788 879
789 Binding.fromJson(core.Map _json) { 880 Binding.fromJson(core.Map _json) {
790 if (_json.containsKey("members")) { 881 if (_json.containsKey("members")) {
791 members = _json["members"]; 882 members = _json["members"];
792 } 883 }
793 if (_json.containsKey("role")) { 884 if (_json.containsKey("role")) {
(...skipping 12 matching lines...) Expand all
806 return _json; 897 return _json;
807 } 898 }
808 } 899 }
809 900
810 /** 901 /**
811 * One delta entry for Binding. Each individual change (only one member in each 902 * One delta entry for Binding. Each individual change (only one member in each
812 * entry) to a binding will be a separate entry. 903 * entry) to a binding will be a separate entry.
813 */ 904 */
814 class BindingDelta { 905 class BindingDelta {
815 /** 906 /**
816 * The action that was performed on a Binding. Required 907 * The action that was performed on a Binding.
908 * Required
817 * Possible string values are: 909 * Possible string values are:
818 * - "ACTION_UNSPECIFIED" : A ACTION_UNSPECIFIED. 910 * - "ACTION_UNSPECIFIED" : Unspecified.
819 * - "ADD" : A ADD. 911 * - "ADD" : Addition of a Binding.
820 * - "REMOVE" : A REMOVE. 912 * - "REMOVE" : Removal of a Binding.
821 */ 913 */
822 core.String action; 914 core.String action;
823 /** 915 /**
824 * A single identity requesting access for a Cloud Platform resource. Follows 916 * A single identity requesting access for a Cloud Platform resource.
825 * the same format of Binding.members. Required 917 * Follows the same format of Binding.members.
918 * Required
826 */ 919 */
827 core.String member; 920 core.String member;
828 /** 921 /**
829 * Role that is assigned to `members`. For example, `roles/viewer`, 922 * Role that is assigned to `members`.
830 * `roles/editor`, or `roles/owner`. Required 923 * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
924 * Required
831 */ 925 */
832 core.String role; 926 core.String role;
833 927
834 BindingDelta(); 928 BindingDelta();
835 929
836 BindingDelta.fromJson(core.Map _json) { 930 BindingDelta.fromJson(core.Map _json) {
837 if (_json.containsKey("action")) { 931 if (_json.containsKey("action")) {
838 action = _json["action"]; 932 action = _json["action"];
839 } 933 }
840 if (_json.containsKey("member")) { 934 if (_json.containsKey("member")) {
(...skipping 15 matching lines...) Expand all
856 if (role != null) { 950 if (role != null) {
857 _json["role"] = role; 951 _json["role"] = role;
858 } 952 }
859 return _json; 953 return _json;
860 } 954 }
861 } 955 }
862 956
863 /** The service account key create request. */ 957 /** The service account key create request. */
864 class CreateServiceAccountKeyRequest { 958 class CreateServiceAccountKeyRequest {
865 /** 959 /**
866 * Which type of key and algorithm to use for the key. The default is 960 * Which type of key and algorithm to use for the key.
867 * currently a 4K RSA key. However this may change in the future. 961 * The default is currently a 4K RSA key. However this may change in the
962 * future.
868 * Possible string values are: 963 * Possible string values are:
869 * - "KEY_ALG_UNSPECIFIED" : A KEY_ALG_UNSPECIFIED. 964 * - "KEY_ALG_UNSPECIFIED" : An unspecified key algorithm.
870 * - "KEY_ALG_RSA_1024" : A KEY_ALG_RSA_1024. 965 * - "KEY_ALG_RSA_1024" : 1k RSA Key.
871 * - "KEY_ALG_RSA_2048" : A KEY_ALG_RSA_2048. 966 * - "KEY_ALG_RSA_2048" : 2k RSA Key.
872 */ 967 */
873 core.String keyAlgorithm; 968 core.String keyAlgorithm;
874 /** 969 /**
875 * The output format of the private key. `GOOGLE_CREDENTIALS_FILE` is the 970 * The output format of the private key. `GOOGLE_CREDENTIALS_FILE` is the
876 * default output format. 971 * default output format.
877 * Possible string values are: 972 * Possible string values are:
878 * - "TYPE_UNSPECIFIED" : A TYPE_UNSPECIFIED. 973 * - "TYPE_UNSPECIFIED" : Unspecified. Equivalent to
879 * - "TYPE_PKCS12_FILE" : A TYPE_PKCS12_FILE. 974 * `TYPE_GOOGLE_CREDENTIALS_FILE`.
880 * - "TYPE_GOOGLE_CREDENTIALS_FILE" : A TYPE_GOOGLE_CREDENTIALS_FILE. 975 * - "TYPE_PKCS12_FILE" : PKCS12 format.
976 * The password for the PKCS12 file is `notasecret`.
977 * For more information, see https://tools.ietf.org/html/rfc7292.
978 * - "TYPE_GOOGLE_CREDENTIALS_FILE" : Google Credentials File format.
881 */ 979 */
882 core.String privateKeyType; 980 core.String privateKeyType;
883 981
884 CreateServiceAccountKeyRequest(); 982 CreateServiceAccountKeyRequest();
885 983
886 CreateServiceAccountKeyRequest.fromJson(core.Map _json) { 984 CreateServiceAccountKeyRequest.fromJson(core.Map _json) {
887 if (_json.containsKey("keyAlgorithm")) { 985 if (_json.containsKey("keyAlgorithm")) {
888 keyAlgorithm = _json["keyAlgorithm"]; 986 keyAlgorithm = _json["keyAlgorithm"];
889 } 987 }
890 if (_json.containsKey("privateKeyType")) { 988 if (_json.containsKey("privateKeyType")) {
891 privateKeyType = _json["privateKeyType"]; 989 privateKeyType = _json["privateKeyType"];
892 } 990 }
893 } 991 }
894 992
895 core.Map toJson() { 993 core.Map toJson() {
896 var _json = new core.Map(); 994 var _json = new core.Map();
897 if (keyAlgorithm != null) { 995 if (keyAlgorithm != null) {
898 _json["keyAlgorithm"] = keyAlgorithm; 996 _json["keyAlgorithm"] = keyAlgorithm;
899 } 997 }
900 if (privateKeyType != null) { 998 if (privateKeyType != null) {
901 _json["privateKeyType"] = privateKeyType; 999 _json["privateKeyType"] = privateKeyType;
902 } 1000 }
903 return _json; 1001 return _json;
904 } 1002 }
905 } 1003 }
906 1004
907 /** The service account create request. */ 1005 /** The service account create request. */
908 class CreateServiceAccountRequest { 1006 class CreateServiceAccountRequest {
909 /** 1007 /**
910 * Required. The account id that is used to generate the service account email 1008 * Required. The account id that is used to generate the service account
911 * address and a stable unique id. It is unique within a project, must be 6-30 1009 * email address and a stable unique id. It is unique within a project,
912 * characters long, and match the regular expression 1010 * must be 6-30 characters long, and match the regular expression
913 * `[a-z]([-a-z0-9]*[a-z0-9])` to comply with RFC1035. 1011 * `[a-z]([-a-z0-9]*[a-z0-9])` to comply with RFC1035.
914 */ 1012 */
915 core.String accountId; 1013 core.String accountId;
916 /** 1014 /**
917 * The ServiceAccount resource to create. Currently, only the following values 1015 * The ServiceAccount resource to create.
918 * are user assignable: `display_name` . 1016 * Currently, only the following values are user assignable:
1017 * `display_name` .
919 */ 1018 */
920 ServiceAccount serviceAccount; 1019 ServiceAccount serviceAccount;
921 1020
922 CreateServiceAccountRequest(); 1021 CreateServiceAccountRequest();
923 1022
924 CreateServiceAccountRequest.fromJson(core.Map _json) { 1023 CreateServiceAccountRequest.fromJson(core.Map _json) {
925 if (_json.containsKey("accountId")) { 1024 if (_json.containsKey("accountId")) {
926 accountId = _json["accountId"]; 1025 accountId = _json["accountId"];
927 } 1026 }
928 if (_json.containsKey("serviceAccount")) { 1027 if (_json.containsKey("serviceAccount")) {
929 serviceAccount = new ServiceAccount.fromJson(_json["serviceAccount"]); 1028 serviceAccount = new ServiceAccount.fromJson(_json["serviceAccount"]);
930 } 1029 }
931 } 1030 }
932 1031
933 core.Map toJson() { 1032 core.Map toJson() {
934 var _json = new core.Map(); 1033 var _json = new core.Map();
935 if (accountId != null) { 1034 if (accountId != null) {
936 _json["accountId"] = accountId; 1035 _json["accountId"] = accountId;
937 } 1036 }
938 if (serviceAccount != null) { 1037 if (serviceAccount != null) {
939 _json["serviceAccount"] = (serviceAccount).toJson(); 1038 _json["serviceAccount"] = (serviceAccount).toJson();
940 } 1039 }
941 return _json; 1040 return _json;
942 } 1041 }
943 } 1042 }
944 1043
945 /** 1044 /**
946 * A generic empty message that you can re-use to avoid defining duplicated 1045 * A generic empty message that you can re-use to avoid defining duplicated
947 * empty messages in your APIs. A typical example is to use it as the request or 1046 * empty messages in your APIs. A typical example is to use it as the request
948 * the response type of an API method. For instance: service Foo { rpc 1047 * or the response type of an API method. For instance:
949 * Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON 1048 *
950 * representation for `Empty` is empty JSON object `{}`. 1049 * service Foo {
1050 * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
1051 * }
1052 *
1053 * The JSON representation for `Empty` is empty JSON object `{}`.
951 */ 1054 */
952 class Empty { 1055 class Empty {
953 1056
954 Empty(); 1057 Empty();
955 1058
956 Empty.fromJson(core.Map _json) { 1059 Empty.fromJson(core.Map _json) {
957 } 1060 }
958 1061
959 core.Map toJson() { 1062 core.Map toJson() {
960 var _json = new core.Map(); 1063 var _json = new core.Map();
(...skipping 22 matching lines...) Expand all
983 return _json; 1086 return _json;
984 } 1087 }
985 } 1088 }
986 1089
987 /** The service account list response. */ 1090 /** The service account list response. */
988 class ListServiceAccountsResponse { 1091 class ListServiceAccountsResponse {
989 /** The list of matching service accounts. */ 1092 /** The list of matching service accounts. */
990 core.List<ServiceAccount> accounts; 1093 core.List<ServiceAccount> accounts;
991 /** 1094 /**
992 * To retrieve the next page of results, set 1095 * To retrieve the next page of results, set
993 * ListServiceAccountsRequest.page_token to this value. 1096 * ListServiceAccountsRequest.page_token
1097 * to this value.
994 */ 1098 */
995 core.String nextPageToken; 1099 core.String nextPageToken;
996 1100
997 ListServiceAccountsResponse(); 1101 ListServiceAccountsResponse();
998 1102
999 ListServiceAccountsResponse.fromJson(core.Map _json) { 1103 ListServiceAccountsResponse.fromJson(core.Map _json) {
1000 if (_json.containsKey("accounts")) { 1104 if (_json.containsKey("accounts")) {
1001 accounts = _json["accounts"].map((value) => new ServiceAccount.fromJson(va lue)).toList(); 1105 accounts = _json["accounts"].map((value) => new ServiceAccount.fromJson(va lue)).toList();
1002 } 1106 }
1003 if (_json.containsKey("nextPageToken")) { 1107 if (_json.containsKey("nextPageToken")) {
1004 nextPageToken = _json["nextPageToken"]; 1108 nextPageToken = _json["nextPageToken"];
1005 } 1109 }
1006 } 1110 }
1007 1111
1008 core.Map toJson() { 1112 core.Map toJson() {
1009 var _json = new core.Map(); 1113 var _json = new core.Map();
1010 if (accounts != null) { 1114 if (accounts != null) {
1011 _json["accounts"] = accounts.map((value) => (value).toJson()).toList(); 1115 _json["accounts"] = accounts.map((value) => (value).toJson()).toList();
1012 } 1116 }
1013 if (nextPageToken != null) { 1117 if (nextPageToken != null) {
1014 _json["nextPageToken"] = nextPageToken; 1118 _json["nextPageToken"] = nextPageToken;
1015 } 1119 }
1016 return _json; 1120 return _json;
1017 } 1121 }
1018 } 1122 }
1019 1123
1020 /** 1124 /**
1021 * Defines an Identity and Access Management (IAM) policy. It is used to specify 1125 * Defines an Identity and Access Management (IAM) policy. It is used to
1022 * access control policies for Cloud Platform resources. A `Policy` consists of 1126 * specify access control policies for Cloud Platform resources.
1023 * a list of `bindings`. A `Binding` binds a list of `members` to a `role`, 1127 *
1024 * where the members can be user accounts, Google groups, Google domains, and 1128 *
1025 * service accounts. A `role` is a named list of permissions defined by IAM. 1129 * A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
1026 * **Example** { "bindings": [ { "role": "roles/owner", "members": [ 1130 * `members` to a `role`, where the members can be user accounts, Google groups,
1027 * "user:mike@example.com", "group:admins@example.com", "domain:google.com", 1131 * Google domains, and service accounts. A `role` is a named list of permissions
1028 * "serviceAccount:my-other-app@appspot.gserviceaccount.com", ] }, { "role": 1132 * defined by IAM.
1029 * "roles/viewer", "members": ["user:sean@example.com"] } ] } For a description 1133 *
1030 * of IAM and its features, see the [IAM developer's 1134 * **Example**
1031 * guide](https://cloud.google.com/iam). 1135 *
1136 * {
1137 * "bindings": [
1138 * {
1139 * "role": "roles/owner",
1140 * "members": [
1141 * "user:mike@example.com",
1142 * "group:admins@example.com",
1143 * "domain:google.com",
1144 * "serviceAccount:my-other-app@appspot.gserviceaccount.com",
1145 * ]
1146 * },
1147 * {
1148 * "role": "roles/viewer",
1149 * "members": ["user:sean@example.com"]
1150 * }
1151 * ]
1152 * }
1153 *
1154 * For a description of IAM and its features, see the
1155 * [IAM developer's guide](https://cloud.google.com/iam).
1032 */ 1156 */
1033 class Policy { 1157 class Policy {
1034 /** 1158 /**
1035 * Associates a list of `members` to a `role`. Multiple `bindings` must not be 1159 * Associates a list of `members` to a `role`.
1036 * specified for the same `role`. `bindings` with no members will result in an 1160 * Multiple `bindings` must not be specified for the same `role`.
1037 * error. 1161 * `bindings` with no members will result in an error.
1038 */ 1162 */
1039 core.List<Binding> bindings; 1163 core.List<Binding> bindings;
1040 /** 1164 /**
1041 * `etag` is used for optimistic concurrency control as a way to help prevent 1165 * `etag` is used for optimistic concurrency control as a way to help
1042 * simultaneous updates of a policy from overwriting each other. It is 1166 * prevent simultaneous updates of a policy from overwriting each other.
1043 * strongly suggested that systems make use of the `etag` in the 1167 * It is strongly suggested that systems make use of the `etag` in the
1044 * read-modify-write cycle to perform policy updates in order to avoid race 1168 * read-modify-write cycle to perform policy updates in order to avoid race
1045 * conditions: An `etag` is returned in the response to `getIamPolicy`, and 1169 * conditions: An `etag` is returned in the response to `getIamPolicy`, and
1046 * systems are expected to put that etag in the request to `setIamPolicy` to 1170 * systems are expected to put that etag in the request to `setIamPolicy` to
1047 * ensure that their change will be applied to the same version of the policy. 1171 * ensure that their change will be applied to the same version of the policy.
1172 *
1048 * If no `etag` is provided in the call to `setIamPolicy`, then the existing 1173 * If no `etag` is provided in the call to `setIamPolicy`, then the existing
1049 * policy is overwritten blindly. 1174 * policy is overwritten blindly.
1050 */ 1175 */
1051 core.String etag; 1176 core.String etag;
1052 core.List<core.int> get etagAsBytes { 1177 core.List<core.int> get etagAsBytes {
1053 return convert.BASE64.decode(etag); 1178 return convert.BASE64.decode(etag);
1054 } 1179 }
1055 1180
1056 void set etagAsBytes(core.List<core.int> _bytes) { 1181 void set etagAsBytes(core.List<core.int> _bytes) {
1057 etag = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "- "); 1182 etag = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "- ");
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
1107 _json["bindingDeltas"] = bindingDeltas.map((value) => (value).toJson()).to List(); 1232 _json["bindingDeltas"] = bindingDeltas.map((value) => (value).toJson()).to List();
1108 } 1233 }
1109 return _json; 1234 return _json;
1110 } 1235 }
1111 } 1236 }
1112 1237
1113 /** The grantable role query request. */ 1238 /** The grantable role query request. */
1114 class QueryGrantableRolesRequest { 1239 class QueryGrantableRolesRequest {
1115 /** 1240 /**
1116 * Required. The full resource name to query from the list of grantable roles. 1241 * Required. The full resource name to query from the list of grantable roles.
1117 * The name follows the Google Cloud Platform resource format. For example, a 1242 *
1118 * Cloud Platform project with id `my-project` will be named 1243 * The name follows the Google Cloud Platform resource format.
1244 * For example, a Cloud Platform project with id `my-project` will be named
1119 * `//cloudresourcemanager.googleapis.com/projects/my-project`. 1245 * `//cloudresourcemanager.googleapis.com/projects/my-project`.
1120 */ 1246 */
1121 core.String fullResourceName; 1247 core.String fullResourceName;
1122 1248
1123 QueryGrantableRolesRequest(); 1249 QueryGrantableRolesRequest();
1124 1250
1125 QueryGrantableRolesRequest.fromJson(core.Map _json) { 1251 QueryGrantableRolesRequest.fromJson(core.Map _json) {
1126 if (_json.containsKey("fullResourceName")) { 1252 if (_json.containsKey("fullResourceName")) {
1127 fullResourceName = _json["fullResourceName"]; 1253 fullResourceName = _json["fullResourceName"];
1128 } 1254 }
(...skipping 25 matching lines...) Expand all
1154 var _json = new core.Map(); 1280 var _json = new core.Map();
1155 if (roles != null) { 1281 if (roles != null) {
1156 _json["roles"] = roles.map((value) => (value).toJson()).toList(); 1282 _json["roles"] = roles.map((value) => (value).toJson()).toList();
1157 } 1283 }
1158 return _json; 1284 return _json;
1159 } 1285 }
1160 } 1286 }
1161 1287
1162 /** A role in the Identity and Access Management API. */ 1288 /** A role in the Identity and Access Management API. */
1163 class Role { 1289 class Role {
1164 /** Optional. A human-readable description for the role. */ 1290 /** Optional. A human-readable description for the role. */
1165 core.String description; 1291 core.String description;
1166 /** 1292 /**
1167 * The name of the role. When Role is used in CreateRole, the role name must 1293 * The name of the role.
1168 * not be set. When Role is used in output and other input such as UpdateRole, 1294 *
1169 * the role name is the complete path, e.g., roles/logging.viewer for curated 1295 * When Role is used in CreateRole, the role name must not be set.
1170 * roles and organizations/{organization-id}/roles/logging.viewer for custom 1296 *
1171 * roles. 1297 * When Role is used in output and other input such as UpdateRole, the role
1298 * name is the complete path, e.g., roles/logging.viewer for curated roles
1299 * and organizations/{ORGANIZATION_ID}/roles/logging.viewer for custom roles.
1172 */ 1300 */
1173 core.String name; 1301 core.String name;
1174 /** 1302 /**
1175 * Optional. A human-readable title for the role. Typically this is limited to 1303 * Optional. A human-readable title for the role. Typically this
1176 * 100 UTF-8 bytes. 1304 * is limited to 100 UTF-8 bytes.
1177 */ 1305 */
1178 core.String title; 1306 core.String title;
1179 1307
1180 Role(); 1308 Role();
1181 1309
1182 Role.fromJson(core.Map _json) { 1310 Role.fromJson(core.Map _json) {
1183 if (_json.containsKey("description")) { 1311 if (_json.containsKey("description")) {
1184 description = _json["description"]; 1312 description = _json["description"];
1185 } 1313 }
1186 if (_json.containsKey("name")) { 1314 if (_json.containsKey("name")) {
(...skipping 13 matching lines...) Expand all
1200 _json["name"] = name; 1328 _json["name"] = name;
1201 } 1329 }
1202 if (title != null) { 1330 if (title != null) {
1203 _json["title"] = title; 1331 _json["title"] = title;
1204 } 1332 }
1205 return _json; 1333 return _json;
1206 } 1334 }
1207 } 1335 }
1208 1336
1209 /** 1337 /**
1210 * A service account in the Identity and Access Management API. To create a 1338 * A service account in the Identity and Access Management API.
1211 * service account, specify the `project_id` and the `account_id` for the 1339 *
1212 * account. The `account_id` is unique within the project, and is used to 1340 * To create a service account, specify the `project_id` and the `account_id`
1213 * generate the service account email address and a stable `unique_id`. If the 1341 * for the account. The `account_id` is unique within the project, and is used
1214 * account already exists, the account's resource name is returned in 1342 * to generate the service account email address and a stable
1215 * util::Status's ResourceInfo.resource_name in the format of 1343 * `unique_id`.
1216 * projects/{project}/serviceAccounts/{email}. The caller can use the name in 1344 *
1217 * other methods to access the account. All other methods can identify the 1345 * If the account already exists, the account's resource name is returned
1218 * service account using the format 1346 * in util::Status's ResourceInfo.resource_name in the format of
1219 * `projects/{project}/serviceAccounts/{account}`. Using `-` as a wildcard for 1347 * projects/{PROJECT_ID}/serviceAccounts/{SERVICE_ACCOUNT_EMAIL}. The caller can
1220 * the project will infer the project from the account. The `account` value can 1348 * use the name in other methods to access the account.
1221 * be the `email` address or the `unique_id` of the service account. 1349 *
1350 * All other methods can identify the service account using the format
1351 * `projects/{PROJECT_ID}/serviceAccounts/{SERVICE_ACCOUNT_EMAIL}`.
1352 * Using `-` as a wildcard for the project will infer the project from
1353 * the account. The `account` value can be the `email` address or the
1354 * `unique_id` of the service account.
1222 */ 1355 */
1223 class ServiceAccount { 1356 class ServiceAccount {
1224 /** 1357 /**
1225 * Optional. A user-specified description of the service account. Must be 1358 * Optional. A user-specified description of the service account. Must be
1226 * fewer than 100 UTF-8 bytes. 1359 * fewer than 100 UTF-8 bytes.
1227 */ 1360 */
1228 core.String displayName; 1361 core.String displayName;
1229 /** @OutputOnly The email address of the service account. */ 1362 /** @OutputOnly The email address of the service account. */
1230 core.String email; 1363 core.String email;
1231 /** Used to perform a consistent read-modify-write. */ 1364 /** Used to perform a consistent read-modify-write. */
1232 core.String etag; 1365 core.String etag;
1233 core.List<core.int> get etagAsBytes { 1366 core.List<core.int> get etagAsBytes {
1234 return convert.BASE64.decode(etag); 1367 return convert.BASE64.decode(etag);
1235 } 1368 }
1236 1369
1237 void set etagAsBytes(core.List<core.int> _bytes) { 1370 void set etagAsBytes(core.List<core.int> _bytes) {
1238 etag = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "- "); 1371 etag = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "- ");
1239 } 1372 }
1240 /** 1373 /**
1241 * The resource name of the service account in the following format: 1374 * The resource name of the service account in the following format:
1242 * `projects/{project}/serviceAccounts/{account}`. Requests using `-` as a 1375 * `projects/{PROJECT_ID}/serviceAccounts/{SERVICE_ACCOUNT_EMAIL}`.
1243 * wildcard for the project will infer the project from the `account` and the 1376 *
1244 * `account` value can be the `email` address or the `unique_id` of the 1377 * Requests using `-` as a wildcard for the project will infer the project
1245 * service account. In responses the resource name will always be in the 1378 * from the `account` and the `account` value can be the `email` address or
1246 * format `projects/{project}/serviceAccounts/{email}`. 1379 * the `unique_id` of the service account.
1380 *
1381 * In responses the resource name will always be in the format
1382 * `projects/{PROJECT_ID}/serviceAccounts/{SERVICE_ACCOUNT_EMAIL}`.
1247 */ 1383 */
1248 core.String name; 1384 core.String name;
1249 /** 1385 /**
1250 * @OutputOnly. The OAuth2 client id for the service account. This is used in 1386 * @OutputOnly. The OAuth2 client id for the service account.
1251 * conjunction with the OAuth2 clientconfig API to make three legged OAuth2 1387 * This is used in conjunction with the OAuth2 clientconfig API to make
1252 * (3LO) flows to access the data of Google users. 1388 * three legged OAuth2 (3LO) flows to access the data of Google users.
1253 */ 1389 */
1254 core.String oauth2ClientId; 1390 core.String oauth2ClientId;
1255 /** @OutputOnly The id of the project that owns the service account. */ 1391 /** @OutputOnly The id of the project that owns the service account. */
1256 core.String projectId; 1392 core.String projectId;
1257 /** @OutputOnly The unique and stable id of the service account. */ 1393 /** @OutputOnly The unique and stable id of the service account. */
1258 core.String uniqueId; 1394 core.String uniqueId;
1259 1395
1260 ServiceAccount(); 1396 ServiceAccount();
1261 1397
1262 ServiceAccount.fromJson(core.Map _json) { 1398 ServiceAccount.fromJson(core.Map _json) {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
1304 _json["projectId"] = projectId; 1440 _json["projectId"] = projectId;
1305 } 1441 }
1306 if (uniqueId != null) { 1442 if (uniqueId != null) {
1307 _json["uniqueId"] = uniqueId; 1443 _json["uniqueId"] = uniqueId;
1308 } 1444 }
1309 return _json; 1445 return _json;
1310 } 1446 }
1311 } 1447 }
1312 1448
1313 /** 1449 /**
1314 * Represents a service account key. A service account has two sets of 1450 * Represents a service account key.
1315 * key-pairs: user-managed, and system-managed. User-managed key-pairs can be 1451 *
1316 * created and deleted by users. Users are responsible for rotating these keys 1452 * A service account has two sets of key-pairs: user-managed, and
1317 * periodically to ensure security of their service accounts. Users retain the 1453 * system-managed.
1318 * private key of these key-pairs, and Google retains ONLY the public key. 1454 *
1455 * User-managed key-pairs can be created and deleted by users. Users are
1456 * responsible for rotating these keys periodically to ensure security of
1457 * their service accounts. Users retain the private key of these key-pairs,
1458 * and Google retains ONLY the public key.
1459 *
1319 * System-managed key-pairs are managed automatically by Google, and rotated 1460 * System-managed key-pairs are managed automatically by Google, and rotated
1320 * daily without user intervention. The private key never leaves Google's 1461 * daily without user intervention. The private key never leaves Google's
1321 * servers to maximize security. Public keys for all service accounts are also 1462 * servers to maximize security.
1322 * published at the OAuth2 Service Account API. 1463 *
1464 * Public keys for all service accounts are also published at the OAuth2
1465 * Service Account API.
1323 */ 1466 */
1324 class ServiceAccountKey { 1467 class ServiceAccountKey {
1325 /** 1468 /**
1326 * Specifies the algorithm (and possibly key size) for the key. 1469 * Specifies the algorithm (and possibly key size) for the key.
1327 * Possible string values are: 1470 * Possible string values are:
1328 * - "KEY_ALG_UNSPECIFIED" : A KEY_ALG_UNSPECIFIED. 1471 * - "KEY_ALG_UNSPECIFIED" : An unspecified key algorithm.
1329 * - "KEY_ALG_RSA_1024" : A KEY_ALG_RSA_1024. 1472 * - "KEY_ALG_RSA_1024" : 1k RSA Key.
1330 * - "KEY_ALG_RSA_2048" : A KEY_ALG_RSA_2048. 1473 * - "KEY_ALG_RSA_2048" : 2k RSA Key.
1331 */ 1474 */
1332 core.String keyAlgorithm; 1475 core.String keyAlgorithm;
1333 /** 1476 /**
1334 * The resource name of the service account key in the following format 1477 * The resource name of the service account key in the following format
1335 * `projects/{project}/serviceAccounts/{account}/keys/{key}`. 1478 * `projects/{PROJECT_ID}/serviceAccounts/{SERVICE_ACCOUNT_EMAIL}/keys/{key}`.
1336 */ 1479 */
1337 core.String name; 1480 core.String name;
1338 /** 1481 /**
1339 * The private key data. Only provided in `CreateServiceAccountKey` responses. 1482 * The private key data. Only provided in `CreateServiceAccountKey`
1483 * responses.
1340 */ 1484 */
1341 core.String privateKeyData; 1485 core.String privateKeyData;
1342 core.List<core.int> get privateKeyDataAsBytes { 1486 core.List<core.int> get privateKeyDataAsBytes {
1343 return convert.BASE64.decode(privateKeyData); 1487 return convert.BASE64.decode(privateKeyData);
1344 } 1488 }
1345 1489
1346 void set privateKeyDataAsBytes(core.List<core.int> _bytes) { 1490 void set privateKeyDataAsBytes(core.List<core.int> _bytes) {
1347 privateKeyData = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceA ll("+", "-"); 1491 privateKeyData = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceA ll("+", "-");
1348 } 1492 }
1349 /** 1493 /**
1350 * The output format for the private key. Only provided in 1494 * The output format for the private key.
1351 * `CreateServiceAccountKey` responses, not in `GetServiceAccountKey` or 1495 * Only provided in `CreateServiceAccountKey` responses, not
1352 * `ListServiceAccountKey` responses. Google never exposes system-managed 1496 * in `GetServiceAccountKey` or `ListServiceAccountKey` responses.
1353 * private keys, and never retains user-managed private keys. 1497 *
1498 * Google never exposes system-managed private keys, and never retains
1499 * user-managed private keys.
1354 * Possible string values are: 1500 * Possible string values are:
1355 * - "TYPE_UNSPECIFIED" : A TYPE_UNSPECIFIED. 1501 * - "TYPE_UNSPECIFIED" : Unspecified. Equivalent to
1356 * - "TYPE_PKCS12_FILE" : A TYPE_PKCS12_FILE. 1502 * `TYPE_GOOGLE_CREDENTIALS_FILE`.
1357 * - "TYPE_GOOGLE_CREDENTIALS_FILE" : A TYPE_GOOGLE_CREDENTIALS_FILE. 1503 * - "TYPE_PKCS12_FILE" : PKCS12 format.
1504 * The password for the PKCS12 file is `notasecret`.
1505 * For more information, see https://tools.ietf.org/html/rfc7292.
1506 * - "TYPE_GOOGLE_CREDENTIALS_FILE" : Google Credentials File format.
1358 */ 1507 */
1359 core.String privateKeyType; 1508 core.String privateKeyType;
1360 /** 1509 /**
1361 * The public key data. Only provided in `GetServiceAccountKey` responses. 1510 * The public key data. Only provided in `GetServiceAccountKey` responses.
1362 */ 1511 */
1363 core.String publicKeyData; 1512 core.String publicKeyData;
1364 core.List<core.int> get publicKeyDataAsBytes { 1513 core.List<core.int> get publicKeyDataAsBytes {
1365 return convert.BASE64.decode(publicKeyData); 1514 return convert.BASE64.decode(publicKeyData);
1366 } 1515 }
1367 1516
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
1423 _json["validBeforeTime"] = validBeforeTime; 1572 _json["validBeforeTime"] = validBeforeTime;
1424 } 1573 }
1425 return _json; 1574 return _json;
1426 } 1575 }
1427 } 1576 }
1428 1577
1429 /** Request message for `SetIamPolicy` method. */ 1578 /** Request message for `SetIamPolicy` method. */
1430 class SetIamPolicyRequest { 1579 class SetIamPolicyRequest {
1431 /** 1580 /**
1432 * REQUIRED: The complete policy to be applied to the `resource`. The size of 1581 * REQUIRED: The complete policy to be applied to the `resource`. The size of
1433 * the policy is limited to a few 10s of KB. An empty policy is a valid policy 1582 * the policy is limited to a few 10s of KB. An empty policy is a
1434 * but certain Cloud Platform services (such as Projects) might reject them. 1583 * valid policy but certain Cloud Platform services (such as Projects)
1584 * might reject them.
1435 */ 1585 */
1436 Policy policy; 1586 Policy policy;
1437 1587
1438 SetIamPolicyRequest(); 1588 SetIamPolicyRequest();
1439 1589
1440 SetIamPolicyRequest.fromJson(core.Map _json) { 1590 SetIamPolicyRequest.fromJson(core.Map _json) {
1441 if (_json.containsKey("policy")) { 1591 if (_json.containsKey("policy")) {
1442 policy = new Policy.fromJson(_json["policy"]); 1592 policy = new Policy.fromJson(_json["policy"]);
1443 } 1593 }
1444 } 1594 }
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
1511 if (keyId != null) { 1661 if (keyId != null) {
1512 _json["keyId"] = keyId; 1662 _json["keyId"] = keyId;
1513 } 1663 }
1514 if (signature != null) { 1664 if (signature != null) {
1515 _json["signature"] = signature; 1665 _json["signature"] = signature;
1516 } 1666 }
1517 return _json; 1667 return _json;
1518 } 1668 }
1519 } 1669 }
1520 1670
1671 /** The service account sign JWT request. */
1672 class SignJwtRequest {
1673 /** The JWT payload to sign, a JSON JWT Claim set. */
1674 core.String payload;
1675
1676 SignJwtRequest();
1677
1678 SignJwtRequest.fromJson(core.Map _json) {
1679 if (_json.containsKey("payload")) {
1680 payload = _json["payload"];
1681 }
1682 }
1683
1684 core.Map toJson() {
1685 var _json = new core.Map();
1686 if (payload != null) {
1687 _json["payload"] = payload;
1688 }
1689 return _json;
1690 }
1691 }
1692
1693 /** The service account sign JWT response. */
1694 class SignJwtResponse {
1695 /** The id of the key used to sign the JWT. */
1696 core.String keyId;
1697 /** The signed JWT. */
1698 core.String signedJwt;
1699
1700 SignJwtResponse();
1701
1702 SignJwtResponse.fromJson(core.Map _json) {
1703 if (_json.containsKey("keyId")) {
1704 keyId = _json["keyId"];
1705 }
1706 if (_json.containsKey("signedJwt")) {
1707 signedJwt = _json["signedJwt"];
1708 }
1709 }
1710
1711 core.Map toJson() {
1712 var _json = new core.Map();
1713 if (keyId != null) {
1714 _json["keyId"] = keyId;
1715 }
1716 if (signedJwt != null) {
1717 _json["signedJwt"] = signedJwt;
1718 }
1719 return _json;
1720 }
1721 }
1722
1521 /** Request message for `TestIamPermissions` method. */ 1723 /** Request message for `TestIamPermissions` method. */
1522 class TestIamPermissionsRequest { 1724 class TestIamPermissionsRequest {
1523 /** 1725 /**
1524 * The set of permissions to check for the `resource`. Permissions with 1726 * The set of permissions to check for the `resource`. Permissions with
1525 * wildcards (such as '*' or 'storage.*') are not allowed. For more 1727 * wildcards (such as '*' or 'storage.*') are not allowed. For more
1526 * information see [IAM 1728 * information see
1527 * Overview](https://cloud.google.com/iam/docs/overview#permissions). 1729 * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
1528 */ 1730 */
1529 core.List<core.String> permissions; 1731 core.List<core.String> permissions;
1530 1732
1531 TestIamPermissionsRequest(); 1733 TestIamPermissionsRequest();
1532 1734
1533 TestIamPermissionsRequest.fromJson(core.Map _json) { 1735 TestIamPermissionsRequest.fromJson(core.Map _json) {
1534 if (_json.containsKey("permissions")) { 1736 if (_json.containsKey("permissions")) {
1535 permissions = _json["permissions"]; 1737 permissions = _json["permissions"];
1536 } 1738 }
1537 } 1739 }
(...skipping 24 matching lines...) Expand all
1562 } 1764 }
1563 1765
1564 core.Map toJson() { 1766 core.Map toJson() {
1565 var _json = new core.Map(); 1767 var _json = new core.Map();
1566 if (permissions != null) { 1768 if (permissions != null) {
1567 _json["permissions"] = permissions; 1769 _json["permissions"] = permissions;
1568 } 1770 }
1569 return _json; 1771 return _json;
1570 } 1772 }
1571 } 1773 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/gmail/v1.dart ('k') | generated/googleapis/lib/identitytoolkit/v3.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698