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

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

Issue 2571553005: Api-roll 43: 2016-12-13 (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « generated/googleapis/lib/cloudbuild/v1.dart ('k') | generated/googleapis/lib/compute/v1.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // This is a generated file (see the discoveryapis_generator project). 1 // This is a generated file (see the discoveryapis_generator project).
2 2
3 library googleapis.cloudresourcemanager.v1; 3 library googleapis.cloudresourcemanager.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 26 matching lines...) Expand all
37 } 37 }
38 38
39 39
40 class OperationsResourceApi { 40 class OperationsResourceApi {
41 final commons.ApiRequester _requester; 41 final commons.ApiRequester _requester;
42 42
43 OperationsResourceApi(commons.ApiRequester client) : 43 OperationsResourceApi(commons.ApiRequester client) :
44 _requester = client; 44 _requester = client;
45 45
46 /** 46 /**
47 * Gets the latest state of a long-running operation. Clients can use this 47 * Gets the latest state of a long-running operation. Clients can use this
48 * method to poll the operation result at intervals as recommended by the API 48 * method to poll the operation result at intervals as recommended by the API
49 * service. 49 * service.
50 * 50 *
51 * Request parameters: 51 * Request parameters:
52 * 52 *
53 * [name] - The name of the operation resource. 53 * [name] - The name of the operation resource.
54 * Value must have pattern "^operations/.*$". 54 * Value must have pattern "^operations/.+$".
55 * 55 *
56 * Completes with a [Operation]. 56 * Completes with a [Operation].
57 * 57 *
58 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 58 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
59 * error. 59 * error.
60 * 60 *
61 * If the used [http.Client] completes with an error when making a REST call, 61 * If the used [http.Client] completes with an error when making a REST call,
62 * this method will complete with the same error. 62 * this method will complete with the same error.
63 */ 63 */
64 async.Future<Operation> get(core.String name) { 64 async.Future<Operation> get(core.String name) {
(...skipping 29 matching lines...) Expand all
94 OrganizationsResourceApi(commons.ApiRequester client) : 94 OrganizationsResourceApi(commons.ApiRequester client) :
95 _requester = client; 95 _requester = client;
96 96
97 /** 97 /**
98 * Fetches an Organization resource identified by the specified resource name. 98 * Fetches an Organization resource identified by the specified resource name.
99 * 99 *
100 * Request parameters: 100 * Request parameters:
101 * 101 *
102 * [name] - The resource name of the Organization to fetch, e.g. 102 * [name] - The resource name of the Organization to fetch, e.g.
103 * "organizations/1234". 103 * "organizations/1234".
104 * Value must have pattern "^organizations/[^/]*$". 104 * Value must have pattern "^organizations/[^/]+$".
105 * 105 *
106 * Completes with a [Organization]. 106 * Completes with a [Organization].
107 * 107 *
108 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 108 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
109 * error. 109 * error.
110 * 110 *
111 * If the used [http.Client] completes with an error when making a REST call, 111 * If the used [http.Client] completes with an error when making a REST call,
112 * this method will complete with the same error. 112 * this method will complete with the same error.
113 */ 113 */
114 async.Future<Organization> get(core.String name) { 114 async.Future<Organization> get(core.String name) {
(...skipping 23 matching lines...) Expand all
138 /** 138 /**
139 * Gets the access control policy for an Organization resource. May be empty 139 * Gets the access control policy for an Organization resource. May be empty
140 * if no such policy or resource exists. The `resource` field should be the 140 * if no such policy or resource exists. The `resource` field should be the
141 * organization's resource name, e.g. "organizations/123". 141 * organization's resource name, e.g. "organizations/123".
142 * 142 *
143 * [request] - The metadata request object. 143 * [request] - The metadata request object.
144 * 144 *
145 * Request parameters: 145 * Request parameters:
146 * 146 *
147 * [resource] - REQUIRED: The resource for which the policy is being 147 * [resource] - REQUIRED: The resource for which the policy is being
148 * requested. `resource` is usually specified as a path. For example, a 148 * requested.
149 * Project resource is specified as `projects/{project}`. 149 * `resource` is usually specified as a path. For example, a Project
150 * Value must have pattern "^organizations/[^/]*$". 150 * resource is specified as `projects/{project}`.
151 * Value must have pattern "^organizations/[^/]+$".
151 * 152 *
152 * Completes with a [Policy]. 153 * Completes with a [Policy].
153 * 154 *
154 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 155 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
155 * error. 156 * error.
156 * 157 *
157 * If the used [http.Client] completes with an error when making a REST call, 158 * If the used [http.Client] completes with an error when making a REST call,
158 * this method will complete with the same error. 159 * this method will complete with the same error.
159 */ 160 */
160 async.Future<Policy> getIamPolicy(GetIamPolicyRequest request, core.String res ource) { 161 async.Future<Policy> getIamPolicy(GetIamPolicyRequest request, core.String res ource) {
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 /** 230 /**
230 * Sets the access control policy on an Organization resource. Replaces any 231 * Sets the access control policy on an Organization resource. Replaces any
231 * existing policy. The `resource` field should be the organization's resource 232 * existing policy. The `resource` field should be the organization's resource
232 * name, e.g. "organizations/123". 233 * name, e.g. "organizations/123".
233 * 234 *
234 * [request] - The metadata request object. 235 * [request] - The metadata request object.
235 * 236 *
236 * Request parameters: 237 * Request parameters:
237 * 238 *
238 * [resource] - REQUIRED: The resource for which the policy is being 239 * [resource] - REQUIRED: The resource for which the policy is being
239 * specified. `resource` is usually specified as a path. For example, a 240 * specified.
240 * Project resource is specified as `projects/{project}`. 241 * `resource` is usually specified as a path. For example, a Project
241 * Value must have pattern "^organizations/[^/]*$". 242 * resource is specified as `projects/{project}`.
243 * Value must have pattern "^organizations/[^/]+$".
242 * 244 *
243 * Completes with a [Policy]. 245 * Completes with a [Policy].
244 * 246 *
245 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 247 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
246 * error. 248 * error.
247 * 249 *
248 * If the used [http.Client] completes with an error when making a REST call, 250 * If the used [http.Client] completes with an error when making a REST call,
249 * this method will complete with the same error. 251 * this method will complete with the same error.
250 */ 252 */
251 async.Future<Policy> setIamPolicy(SetIamPolicyRequest request, core.String res ource) { 253 async.Future<Policy> setIamPolicy(SetIamPolicyRequest request, core.String res ource) {
(...skipping 17 matching lines...) Expand all
269 "POST", 271 "POST",
270 body: _body, 272 body: _body,
271 queryParams: _queryParams, 273 queryParams: _queryParams,
272 uploadOptions: _uploadOptions, 274 uploadOptions: _uploadOptions,
273 uploadMedia: _uploadMedia, 275 uploadMedia: _uploadMedia,
274 downloadOptions: _downloadOptions); 276 downloadOptions: _downloadOptions);
275 return _response.then((data) => new Policy.fromJson(data)); 277 return _response.then((data) => new Policy.fromJson(data));
276 } 278 }
277 279
278 /** 280 /**
279 * Returns permissions that a caller has on the specified Organization. The 281 * Returns permissions that a caller has on the specified Organization.
280 * `resource` field should be the organization's resource name, e.g. 282 * The `resource` field should be the organization's resource name,
281 * "organizations/123". 283 * e.g. "organizations/123".
282 * 284 *
283 * [request] - The metadata request object. 285 * [request] - The metadata request object.
284 * 286 *
285 * Request parameters: 287 * Request parameters:
286 * 288 *
287 * [resource] - REQUIRED: The resource for which the policy detail is being 289 * [resource] - REQUIRED: The resource for which the policy detail is being
288 * requested. `resource` is usually specified as a path. For example, a 290 * requested.
289 * Project resource is specified as `projects/{project}`. 291 * `resource` is usually specified as a path. For example, a Project
290 * Value must have pattern "^organizations/[^/]*$". 292 * resource is specified as `projects/{project}`.
293 * Value must have pattern "^organizations/[^/]+$".
291 * 294 *
292 * Completes with a [TestIamPermissionsResponse]. 295 * Completes with a [TestIamPermissionsResponse].
293 * 296 *
294 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 297 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
295 * error. 298 * error.
296 * 299 *
297 * If the used [http.Client] completes with an error when making a REST call, 300 * If the used [http.Client] completes with an error when making a REST call,
298 * this method will complete with the same error. 301 * this method will complete with the same error.
299 */ 302 */
300 async.Future<TestIamPermissionsResponse> testIamPermissions(TestIamPermissions Request request, core.String resource) { 303 async.Future<TestIamPermissionsResponse> testIamPermissions(TestIamPermissions Request request, core.String resource) {
(...skipping 26 matching lines...) Expand all
327 } 330 }
328 331
329 332
330 class ProjectsResourceApi { 333 class ProjectsResourceApi {
331 final commons.ApiRequester _requester; 334 final commons.ApiRequester _requester;
332 335
333 ProjectsResourceApi(commons.ApiRequester client) : 336 ProjectsResourceApi(commons.ApiRequester client) :
334 _requester = client; 337 _requester = client;
335 338
336 /** 339 /**
337 * Request that a new Project be created. The result is an Operation which can 340 * Request that a new Project be created. The result is an Operation which
338 * be used to track the creation process. It is automatically deleted after a 341 * can be used to track the creation process. It is automatically deleted
339 * few hours, so there is no need to call DeleteOperation. Our SLO permits 342 * after a few hours, so there is no need to call DeleteOperation.
340 * Project creation to take up to 30 seconds at the 90th percentile. As of 343 *
341 * 2016-08-29, we are observing 6 seconds 50th percentile latency. 95th 344 * Our SLO permits Project creation to take up to 30 seconds at the 90th
342 * percentile latency is around 11 seconds. We recommend polling at the 5th 345 * percentile. As of 2016-08-29, we are observing 6 seconds 50th percentile
343 * second with an exponential backoff. 346 * latency. 95th percentile latency is around 11 seconds. We recommend
347 * polling at the 5th second with an exponential backoff.
344 * 348 *
345 * [request] - The metadata request object. 349 * [request] - The metadata request object.
346 * 350 *
347 * Request parameters: 351 * Request parameters:
348 * 352 *
349 * Completes with a [Operation]. 353 * Completes with a [Operation].
350 * 354 *
351 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 355 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
352 * error. 356 * error.
353 * 357 *
(...skipping 18 matching lines...) Expand all
372 "POST", 376 "POST",
373 body: _body, 377 body: _body,
374 queryParams: _queryParams, 378 queryParams: _queryParams,
375 uploadOptions: _uploadOptions, 379 uploadOptions: _uploadOptions,
376 uploadMedia: _uploadMedia, 380 uploadMedia: _uploadMedia,
377 downloadOptions: _downloadOptions); 381 downloadOptions: _downloadOptions);
378 return _response.then((data) => new Operation.fromJson(data)); 382 return _response.then((data) => new Operation.fromJson(data));
379 } 383 }
380 384
381 /** 385 /**
382 * Marks the Project identified by the specified `project_id` (for example, 386 * Marks the Project identified by the specified
383 * `my-project-123`) for deletion. This method will only affect the Project if 387 * `project_id` (for example, `my-project-123`) for deletion.
384 * the following criteria are met: + The Project does not have a billing 388 * This method will only affect the Project if the following criteria are met:
385 * account associated with it. + The Project has a lifecycle state of ACTIVE. 389 *
386 * This method changes the Project's lifecycle state from ACTIVE to 390 * + The Project does not have a billing account associated with it.
387 * DELETE_REQUESTED. The deletion starts at an unspecified time, at which 391 * + The Project has a lifecycle state of
388 * point the Project is no longer accessible. Until the deletion completes, 392 * ACTIVE.
389 * you can check the lifecycle state checked by retrieving the Project with 393 *
390 * GetProject, and the Project remains visible to ListProjects. However, you 394 * This method changes the Project's lifecycle state from
391 * cannot update the project. After the deletion completes, the Project is not 395 * ACTIVE
392 * retrievable by the GetProject and ListProjects methods. The caller must 396 * to DELETE_REQUESTED.
393 * have modify permissions for this Project. 397 * The deletion starts at an unspecified time,
398 * at which point the Project is no longer accessible.
399 *
400 * Until the deletion completes, you can check the lifecycle state
401 * checked by retrieving the Project with GetProject,
402 * and the Project remains visible to ListProjects.
403 * However, you cannot update the project.
404 *
405 * After the deletion completes, the Project is not retrievable by
406 * the GetProject and
407 * ListProjects methods.
408 *
409 * The caller must have modify permissions for this Project.
394 * 410 *
395 * Request parameters: 411 * Request parameters:
396 * 412 *
397 * [projectId] - The Project ID (for example, `foo-bar-123`). Required. 413 * [projectId] - The Project ID (for example, `foo-bar-123`).
414 *
415 * Required.
398 * 416 *
399 * Completes with a [Empty]. 417 * Completes with a [Empty].
400 * 418 *
401 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 419 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
402 * error. 420 * error.
403 * 421 *
404 * If the used [http.Client] completes with an error when making a REST call, 422 * If the used [http.Client] completes with an error when making a REST call,
405 * this method will complete with the same error. 423 * this method will complete with the same error.
406 */ 424 */
407 async.Future<Empty> delete(core.String projectId) { 425 async.Future<Empty> delete(core.String projectId) {
(...skipping 14 matching lines...) Expand all
422 "DELETE", 440 "DELETE",
423 body: _body, 441 body: _body,
424 queryParams: _queryParams, 442 queryParams: _queryParams,
425 uploadOptions: _uploadOptions, 443 uploadOptions: _uploadOptions,
426 uploadMedia: _uploadMedia, 444 uploadMedia: _uploadMedia,
427 downloadOptions: _downloadOptions); 445 downloadOptions: _downloadOptions);
428 return _response.then((data) => new Empty.fromJson(data)); 446 return _response.then((data) => new Empty.fromJson(data));
429 } 447 }
430 448
431 /** 449 /**
432 * Retrieves the Project identified by the specified `project_id` (for 450 * Retrieves the Project identified by the specified
433 * example, `my-project-123`). The caller must have read permissions for this 451 * `project_id` (for example, `my-project-123`).
434 * Project. 452 *
453 * The caller must have read permissions for this Project.
435 * 454 *
436 * Request parameters: 455 * Request parameters:
437 * 456 *
438 * [projectId] - The Project ID (for example, `my-project-123`). Required. 457 * [projectId] - The Project ID (for example, `my-project-123`).
458 *
459 * Required.
439 * 460 *
440 * Completes with a [Project]. 461 * Completes with a [Project].
441 * 462 *
442 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 463 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
443 * error. 464 * error.
444 * 465 *
445 * If the used [http.Client] completes with an error when making a REST call, 466 * If the used [http.Client] completes with an error when making a REST call,
446 * this method will complete with the same error. 467 * this method will complete with the same error.
447 */ 468 */
448 async.Future<Project> get(core.String projectId) { 469 async.Future<Project> get(core.String projectId) {
(...skipping 14 matching lines...) Expand all
463 "GET", 484 "GET",
464 body: _body, 485 body: _body,
465 queryParams: _queryParams, 486 queryParams: _queryParams,
466 uploadOptions: _uploadOptions, 487 uploadOptions: _uploadOptions,
467 uploadMedia: _uploadMedia, 488 uploadMedia: _uploadMedia,
468 downloadOptions: _downloadOptions); 489 downloadOptions: _downloadOptions);
469 return _response.then((data) => new Project.fromJson(data)); 490 return _response.then((data) => new Project.fromJson(data));
470 } 491 }
471 492
472 /** 493 /**
473 * Returns the IAM access control policy for the specified Project. Permission 494 * Gets a list of ancestors in the resource hierarchy for the Project
474 * is denied if the policy or the resource does not exist. 495 * identified by the specified `project_id` (for example, `my-project-123`).
496 *
497 * The caller must have read permissions for this Project.
498 *
499 * [request] - The metadata request object.
500 *
501 * Request parameters:
502 *
503 * [projectId] - The Project ID (for example, `my-project-123`).
504 *
505 * Required.
506 *
507 * Completes with a [GetAncestryResponse].
508 *
509 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
510 * error.
511 *
512 * If the used [http.Client] completes with an error when making a REST call,
513 * this method will complete with the same error.
514 */
515 async.Future<GetAncestryResponse> getAncestry(GetAncestryRequest request, core .String projectId) {
516 var _url = null;
517 var _queryParams = new core.Map();
518 var _uploadMedia = null;
519 var _uploadOptions = null;
520 var _downloadOptions = commons.DownloadOptions.Metadata;
521 var _body = null;
522
523 if (request != null) {
524 _body = convert.JSON.encode((request).toJson());
525 }
526 if (projectId == null) {
527 throw new core.ArgumentError("Parameter projectId is required.");
528 }
529
530 _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + ':getA ncestry';
531
532 var _response = _requester.request(_url,
533 "POST",
534 body: _body,
535 queryParams: _queryParams,
536 uploadOptions: _uploadOptions,
537 uploadMedia: _uploadMedia,
538 downloadOptions: _downloadOptions);
539 return _response.then((data) => new GetAncestryResponse.fromJson(data));
540 }
541
542 /**
543 * Returns the IAM access control policy for the specified Project.
544 * Permission is denied if the policy or the resource does not exist.
475 * 545 *
476 * [request] - The metadata request object. 546 * [request] - The metadata request object.
477 * 547 *
478 * Request parameters: 548 * Request parameters:
479 * 549 *
480 * [resource] - REQUIRED: The resource for which the policy is being 550 * [resource] - REQUIRED: The resource for which the policy is being
481 * requested. `resource` is usually specified as a path. For example, a 551 * requested.
482 * Project resource is specified as `projects/{project}`. 552 * `resource` is usually specified as a path. For example, a Project
553 * resource is specified as `projects/{project}`.
483 * 554 *
484 * Completes with a [Policy]. 555 * Completes with a [Policy].
485 * 556 *
486 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 557 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
487 * error. 558 * error.
488 * 559 *
489 * If the used [http.Client] completes with an error when making a REST call, 560 * If the used [http.Client] completes with an error when making a REST call,
490 * this method will complete with the same error. 561 * this method will complete with the same error.
491 */ 562 */
492 async.Future<Policy> getIamPolicy(GetIamPolicyRequest request, core.String res ource) { 563 async.Future<Policy> getIamPolicy(GetIamPolicyRequest request, core.String res ource) {
(...skipping 17 matching lines...) Expand all
510 "POST", 581 "POST",
511 body: _body, 582 body: _body,
512 queryParams: _queryParams, 583 queryParams: _queryParams,
513 uploadOptions: _uploadOptions, 584 uploadOptions: _uploadOptions,
514 uploadMedia: _uploadMedia, 585 uploadMedia: _uploadMedia,
515 downloadOptions: _downloadOptions); 586 downloadOptions: _downloadOptions);
516 return _response.then((data) => new Policy.fromJson(data)); 587 return _response.then((data) => new Policy.fromJson(data));
517 } 588 }
518 589
519 /** 590 /**
520 * Lists Projects that are visible to the user and satisfy the specified 591 * Lists Projects that are visible to the user and satisfy the
521 * filter. This method returns Projects in an unspecified order. New Projects 592 * specified filter. This method returns Projects in an unspecified order.
522 * do not necessarily appear at the end of the list. 593 * New Projects do not necessarily appear at the end of the list.
523 * 594 *
524 * Request parameters: 595 * Request parameters:
525 * 596 *
597 * [pageSize] - The maximum number of Projects to return in the response.
598 * The server can return fewer Projects than requested.
599 * If unspecified, server picks an appropriate default.
600 *
601 * Optional.
602 *
603 * [filter] - An expression for filtering the results of the request. Filter
604 * rules are
605 * case insensitive. The fields eligible for filtering are:
606 *
607 * + `name`
608 * + `id`
609 * + <code>labels.<em>key</em></code> where *key* is the name of a label
610 *
611 * Some examples of using labels as filters:
612 *
613 * |Filter|Description|
614 * |------|-----------|
615 * |name:*|The project has a name.|
616 * |name:Howl|The project's name is `Howl` or `howl`.|
617 * |name:HOWL|Equivalent to above.|
618 * |NAME:howl|Equivalent to above.|
619 * |labels.color:*|The project has the label `color`.|
620 * |labels.color:red|The project's label `color` has the value `red`.|
621 * |labels.color:red&nbsp;label.size:big|The project's label `color` has the
622 * value `red` and its label `size` has the value `big`.
623 *
624 * Optional.
625 *
526 * [pageToken] - A pagination token returned from a previous call to 626 * [pageToken] - A pagination token returned from a previous call to
527 * ListProjects that indicates from where listing should continue. Optional. 627 * ListProjects
628 * that indicates from where listing should continue.
528 * 629 *
529 * [pageSize] - The maximum number of Projects to return in the response. The 630 * Optional.
530 * server can return fewer Projects than requested. If unspecified, server
531 * picks an appropriate default. Optional.
532 *
533 * [filter] - An expression for filtering the results of the request. Filter
534 * rules are case insensitive. The fields eligible for filtering are: + `name`
535 * + `id` + labels.key where *key* is the name of a label Some examples of
536 * using labels as filters: |Filter|Description| |------|-----------|
537 * |name:*|The project has a name.| |name:Howl|The project's name is `Howl` or
538 * `howl`.| |name:HOWL|Equivalent to above.| |NAME:howl|Equivalent to above.|
539 * |labels.color:*|The project has the label `color`.| |labels.color:red|The
540 * project's label `color` has the value `red`.|
541 * |labels.color:red label.size:big|The project's label `color` has the value
542 * `red` and its label `size` has the value `big`. Optional.
543 * 631 *
544 * Completes with a [ListProjectsResponse]. 632 * Completes with a [ListProjectsResponse].
545 * 633 *
546 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 634 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
547 * error. 635 * error.
548 * 636 *
549 * If the used [http.Client] completes with an error when making a REST call, 637 * If the used [http.Client] completes with an error when making a REST call,
550 * this method will complete with the same error. 638 * this method will complete with the same error.
551 */ 639 */
552 async.Future<ListProjectsResponse> list({core.String pageToken, core.int pageS ize, core.String filter}) { 640 async.Future<ListProjectsResponse> list({core.int pageSize, core.String filter , core.String pageToken}) {
553 var _url = null; 641 var _url = null;
554 var _queryParams = new core.Map(); 642 var _queryParams = new core.Map();
555 var _uploadMedia = null; 643 var _uploadMedia = null;
556 var _uploadOptions = null; 644 var _uploadOptions = null;
557 var _downloadOptions = commons.DownloadOptions.Metadata; 645 var _downloadOptions = commons.DownloadOptions.Metadata;
558 var _body = null; 646 var _body = null;
559 647
560 if (pageToken != null) {
561 _queryParams["pageToken"] = [pageToken];
562 }
563 if (pageSize != null) { 648 if (pageSize != null) {
564 _queryParams["pageSize"] = ["${pageSize}"]; 649 _queryParams["pageSize"] = ["${pageSize}"];
565 } 650 }
566 if (filter != null) { 651 if (filter != null) {
567 _queryParams["filter"] = [filter]; 652 _queryParams["filter"] = [filter];
568 } 653 }
654 if (pageToken != null) {
655 _queryParams["pageToken"] = [pageToken];
656 }
569 657
570 _url = 'v1/projects'; 658 _url = 'v1/projects';
571 659
572 var _response = _requester.request(_url, 660 var _response = _requester.request(_url,
573 "GET", 661 "GET",
574 body: _body, 662 body: _body,
575 queryParams: _queryParams, 663 queryParams: _queryParams,
576 uploadOptions: _uploadOptions, 664 uploadOptions: _uploadOptions,
577 uploadMedia: _uploadMedia, 665 uploadMedia: _uploadMedia,
578 downloadOptions: _downloadOptions); 666 downloadOptions: _downloadOptions);
579 return _response.then((data) => new ListProjectsResponse.fromJson(data)); 667 return _response.then((data) => new ListProjectsResponse.fromJson(data));
580 } 668 }
581 669
582 /** 670 /**
583 * Sets the IAM access control policy for the specified Project. Replaces any 671 * Sets the IAM access control policy for the specified Project. Replaces
584 * existing policy. The following constraints apply when using 672 * any existing policy.
585 * `setIamPolicy()`: + Project does not support `allUsers` and 673 *
586 * `allAuthenticatedUsers` as `members` in a `Binding` of a `Policy`. + The 674 * The following constraints apply when using `setIamPolicy()`:
587 * owner role can be granted only to `user` and `serviceAccount`. + Service 675 *
588 * accounts can be made owners of a project directly without any restrictions. 676 * + Project does not support `allUsers` and `allAuthenticatedUsers` as
589 * However, to be added as an owner, a user must be invited via Cloud Platform 677 * `members` in a `Binding` of a `Policy`.
590 * console and must accept the invitation. + A user cannot be granted the 678 *
591 * owner role using `setIamPolicy()`. The user must be granted the owner role 679 * + The owner role can be granted only to `user` and `serviceAccount`.
592 * using the Cloud Platform Console and must explicitly accept the invitation. 680 *
681 * + Service accounts can be made owners of a project directly
682 * without any restrictions. However, to be added as an owner, a user must be
683 * invited via Cloud Platform console and must accept the invitation.
684 *
685 * + A user cannot be granted the owner role using `setIamPolicy()`. The user
686 * must be granted the owner role using the Cloud Platform Console and must
687 * explicitly accept the invitation.
688 *
593 * + Invitations to grant the owner role cannot be sent using 689 * + Invitations to grant the owner role cannot be sent using
594 * `setIamPolicy()`; they must be sent only using the Cloud Platform Console. 690 * `setIamPolicy()`;
691 * they must be sent only using the Cloud Platform Console.
692 *
595 * + Membership changes that leave the project without any owners that have 693 * + Membership changes that leave the project without any owners that have
596 * accepted the Terms of Service (ToS) will be rejected. + There must be at 694 * accepted the Terms of Service (ToS) will be rejected.
597 * least one owner who has accepted the Terms of Service (ToS) agreement in 695 *
598 * the policy. Calling `setIamPolicy()` to to remove the last ToS-accepted 696 * + There must be at least one owner who has accepted the Terms of
599 * owner from the policy will fail. This restriction also applies to legacy 697 * Service (ToS) agreement in the policy. Calling `setIamPolicy()` to
600 * projects that no longer have owners who have accepted the ToS. Edits to IAM 698 * to remove the last ToS-accepted owner from the policy will fail. This
601 * policies will be rejected until the lack of a ToS-accepting owner is 699 * restriction also applies to legacy projects that no longer have owners
602 * rectified. + Calling this method requires enabling the App Engine Admin 700 * who have accepted the ToS. Edits to IAM policies will be rejected until
603 * API. Note: Removing service accounts from policies or changing their roles 701 * the lack of a ToS-accepting owner is rectified.
702 *
703 * + Calling this method requires enabling the App Engine Admin API.
704 *
705 * Note: Removing service accounts from policies or changing their roles
604 * can render services completely inoperable. It is important to understand 706 * can render services completely inoperable. It is important to understand
605 * how the service account is being used before removing or updating its 707 * how the service account is being used before removing or updating its
606 * roles. 708 * roles.
607 * 709 *
608 * [request] - The metadata request object. 710 * [request] - The metadata request object.
609 * 711 *
610 * Request parameters: 712 * Request parameters:
611 * 713 *
612 * [resource] - REQUIRED: The resource for which the policy is being 714 * [resource] - REQUIRED: The resource for which the policy is being
613 * specified. `resource` is usually specified as a path. For example, a 715 * specified.
614 * Project resource is specified as `projects/{project}`. 716 * `resource` is usually specified as a path. For example, a Project
717 * resource is specified as `projects/{project}`.
615 * 718 *
616 * Completes with a [Policy]. 719 * Completes with a [Policy].
617 * 720 *
618 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 721 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
619 * error. 722 * error.
620 * 723 *
621 * If the used [http.Client] completes with an error when making a REST call, 724 * If the used [http.Client] completes with an error when making a REST call,
622 * this method will complete with the same error. 725 * this method will complete with the same error.
623 */ 726 */
624 async.Future<Policy> setIamPolicy(SetIamPolicyRequest request, core.String res ource) { 727 async.Future<Policy> setIamPolicy(SetIamPolicyRequest request, core.String res ource) {
(...skipping 24 matching lines...) Expand all
649 } 752 }
650 753
651 /** 754 /**
652 * Returns permissions that a caller has on the specified Project. 755 * Returns permissions that a caller has on the specified Project.
653 * 756 *
654 * [request] - The metadata request object. 757 * [request] - The metadata request object.
655 * 758 *
656 * Request parameters: 759 * Request parameters:
657 * 760 *
658 * [resource] - REQUIRED: The resource for which the policy detail is being 761 * [resource] - REQUIRED: The resource for which the policy detail is being
659 * requested. `resource` is usually specified as a path. For example, a 762 * requested.
660 * Project resource is specified as `projects/{project}`. 763 * `resource` is usually specified as a path. For example, a Project
764 * resource is specified as `projects/{project}`.
661 * 765 *
662 * Completes with a [TestIamPermissionsResponse]. 766 * Completes with a [TestIamPermissionsResponse].
663 * 767 *
664 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 768 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
665 * error. 769 * error.
666 * 770 *
667 * If the used [http.Client] completes with an error when making a REST call, 771 * If the used [http.Client] completes with an error when making a REST call,
668 * this method will complete with the same error. 772 * this method will complete with the same error.
669 */ 773 */
670 async.Future<TestIamPermissionsResponse> testIamPermissions(TestIamPermissions Request request, core.String resource) { 774 async.Future<TestIamPermissionsResponse> testIamPermissions(TestIamPermissions Request request, core.String resource) {
(...skipping 17 matching lines...) Expand all
688 "POST", 792 "POST",
689 body: _body, 793 body: _body,
690 queryParams: _queryParams, 794 queryParams: _queryParams,
691 uploadOptions: _uploadOptions, 795 uploadOptions: _uploadOptions,
692 uploadMedia: _uploadMedia, 796 uploadMedia: _uploadMedia,
693 downloadOptions: _downloadOptions); 797 downloadOptions: _downloadOptions);
694 return _response.then((data) => new TestIamPermissionsResponse.fromJson(data )); 798 return _response.then((data) => new TestIamPermissionsResponse.fromJson(data ));
695 } 799 }
696 800
697 /** 801 /**
698 * Restores the Project identified by the specified `project_id` (for example, 802 * Restores the Project identified by the specified
699 * `my-project-123`). You can only use this method for a Project that has a 803 * `project_id` (for example, `my-project-123`).
700 * lifecycle state of DELETE_REQUESTED. After deletion starts, the Project 804 * You can only use this method for a Project that has a lifecycle state of
701 * cannot be restored. The caller must have modify permissions for this 805 * DELETE_REQUESTED.
702 * Project. 806 * After deletion starts, the Project cannot be restored.
807 *
808 * The caller must have modify permissions for this Project.
703 * 809 *
704 * [request] - The metadata request object. 810 * [request] - The metadata request object.
705 * 811 *
706 * Request parameters: 812 * Request parameters:
707 * 813 *
708 * [projectId] - The project ID (for example, `foo-bar-123`). Required. 814 * [projectId] - The project ID (for example, `foo-bar-123`).
815 *
816 * Required.
709 * 817 *
710 * Completes with a [Empty]. 818 * Completes with a [Empty].
711 * 819 *
712 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 820 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
713 * error. 821 * error.
714 * 822 *
715 * If the used [http.Client] completes with an error when making a REST call, 823 * If the used [http.Client] completes with an error when making a REST call,
716 * this method will complete with the same error. 824 * this method will complete with the same error.
717 */ 825 */
718 async.Future<Empty> undelete(UndeleteProjectRequest request, core.String proje ctId) { 826 async.Future<Empty> undelete(UndeleteProjectRequest request, core.String proje ctId) {
(...skipping 18 matching lines...) Expand all
737 body: _body, 845 body: _body,
738 queryParams: _queryParams, 846 queryParams: _queryParams,
739 uploadOptions: _uploadOptions, 847 uploadOptions: _uploadOptions,
740 uploadMedia: _uploadMedia, 848 uploadMedia: _uploadMedia,
741 downloadOptions: _downloadOptions); 849 downloadOptions: _downloadOptions);
742 return _response.then((data) => new Empty.fromJson(data)); 850 return _response.then((data) => new Empty.fromJson(data));
743 } 851 }
744 852
745 /** 853 /**
746 * Updates the attributes of the Project identified by the specified 854 * Updates the attributes of the Project identified by the specified
747 * `project_id` (for example, `my-project-123`). The caller must have modify 855 * `project_id` (for example, `my-project-123`).
748 * permissions for this Project. 856 *
857 * The caller must have modify permissions for this Project.
749 * 858 *
750 * [request] - The metadata request object. 859 * [request] - The metadata request object.
751 * 860 *
752 * Request parameters: 861 * Request parameters:
753 * 862 *
754 * [projectId] - The project ID (for example, `my-project-123`). Required. 863 * [projectId] - The project ID (for example, `my-project-123`).
864 *
865 * Required.
755 * 866 *
756 * Completes with a [Project]. 867 * Completes with a [Project].
757 * 868 *
758 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 869 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
759 * error. 870 * error.
760 * 871 *
761 * If the used [http.Client] completes with an error when making a REST call, 872 * If the used [http.Client] completes with an error when making a REST call,
762 * this method will complete with the same error. 873 * this method will complete with the same error.
763 */ 874 */
764 async.Future<Project> update(Project request, core.String projectId) { 875 async.Future<Project> update(Project request, core.String projectId) {
(...skipping 20 matching lines...) Expand all
785 uploadOptions: _uploadOptions, 896 uploadOptions: _uploadOptions,
786 uploadMedia: _uploadMedia, 897 uploadMedia: _uploadMedia,
787 downloadOptions: _downloadOptions); 898 downloadOptions: _downloadOptions);
788 return _response.then((data) => new Project.fromJson(data)); 899 return _response.then((data) => new Project.fromJson(data));
789 } 900 }
790 901
791 } 902 }
792 903
793 904
794 905
906 /** Identifying information for a single ancestor of a project. */
907 class Ancestor {
908 /** Resource id of the ancestor. */
909 ResourceId resourceId;
910
911 Ancestor();
912
913 Ancestor.fromJson(core.Map _json) {
914 if (_json.containsKey("resourceId")) {
915 resourceId = new ResourceId.fromJson(_json["resourceId"]);
916 }
917 }
918
919 core.Map toJson() {
920 var _json = new core.Map();
921 if (resourceId != null) {
922 _json["resourceId"] = (resourceId).toJson();
923 }
924 return _json;
925 }
926 }
927
795 /** Associates `members` with a `role`. */ 928 /** Associates `members` with a `role`. */
796 class Binding { 929 class Binding {
797 /** 930 /**
798 * Specifies the identities requesting access for a Cloud Platform resource. 931 * Specifies the identities requesting access for a Cloud Platform resource.
799 * `members` can have the following values: * `allUsers`: A special identifier 932 * `members` can have the following values:
800 * that represents anyone who is on the internet; with or without a Google 933 *
801 * account. * `allAuthenticatedUsers`: A special identifier that represents 934 * * `allUsers`: A special identifier that represents anyone who is
802 * anyone who is authenticated with a Google account or a service account. * 935 * on the internet; with or without a Google account.
803 * `user:{emailid}`: An email address that represents a specific Google 936 *
804 * account. For example, `alice@gmail.com` or `joe@example.com`. * 937 * * `allAuthenticatedUsers`: A special identifier that represents anyone
805 * `serviceAccount:{emailid}`: An email address that represents a service 938 * who is authenticated with a Google account or a service account.
806 * account. For example, `my-other-app@appspot.gserviceaccount.com`. * 939 *
807 * `group:{emailid}`: An email address that represents a Google group. For 940 * * `user:{emailid}`: An email address that represents a specific Google
808 * example, `admins@example.com`. * `domain:{domain}`: A Google Apps domain 941 * account. For example, `alice@gmail.com` or `joe@example.com`.
809 * name that represents all the users of that domain. For example, 942 *
810 * `google.com` or `example.com`. 943 *
944 * * `serviceAccount:{emailid}`: An email address that represents a service
945 * account. For example, `my-other-app@appspot.gserviceaccount.com`.
946 *
947 * * `group:{emailid}`: An email address that represents a Google group.
948 * For example, `admins@example.com`.
949 *
950 * * `domain:{domain}`: A Google Apps domain name that represents all the
951 * users of that domain. For example, `google.com` or `example.com`.
811 */ 952 */
812 core.List<core.String> members; 953 core.List<core.String> members;
813 /** 954 /**
814 * Role that is assigned to `members`. For example, `roles/viewer`, 955 * Role that is assigned to `members`.
815 * `roles/editor`, or `roles/owner`. Required 956 * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
957 * Required
816 */ 958 */
817 core.String role; 959 core.String role;
818 960
819 Binding(); 961 Binding();
820 962
821 Binding.fromJson(core.Map _json) { 963 Binding.fromJson(core.Map _json) {
822 if (_json.containsKey("members")) { 964 if (_json.containsKey("members")) {
823 members = _json["members"]; 965 members = _json["members"];
824 } 966 }
825 if (_json.containsKey("role")) { 967 if (_json.containsKey("role")) {
826 role = _json["role"]; 968 role = _json["role"];
827 } 969 }
828 } 970 }
829 971
830 core.Map toJson() { 972 core.Map toJson() {
831 var _json = new core.Map(); 973 var _json = new core.Map();
832 if (members != null) { 974 if (members != null) {
833 _json["members"] = members; 975 _json["members"] = members;
834 } 976 }
835 if (role != null) { 977 if (role != null) {
836 _json["role"] = role; 978 _json["role"] = role;
837 } 979 }
838 return _json; 980 return _json;
839 } 981 }
840 } 982 }
841 983
842 /** 984 /**
843 * A generic empty message that you can re-use to avoid defining duplicated 985 * A generic empty message that you can re-use to avoid defining duplicated
844 * empty messages in your APIs. A typical example is to use it as the request or 986 * empty messages in your APIs. A typical example is to use it as the request
845 * the response type of an API method. For instance: service Foo { rpc 987 * or the response type of an API method. For instance:
846 * Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON 988 *
847 * representation for `Empty` is empty JSON object `{}`. 989 * service Foo {
990 * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
991 * }
992 *
993 * The JSON representation for `Empty` is empty JSON object `{}`.
848 */ 994 */
849 class Empty { 995 class Empty {
850 996
851 Empty(); 997 Empty();
852 998
853 Empty.fromJson(core.Map _json) { 999 Empty.fromJson(core.Map _json) {
854 } 1000 }
855 1001
856 core.Map toJson() { 1002 core.Map toJson() {
857 var _json = new core.Map(); 1003 var _json = new core.Map();
858 return _json; 1004 return _json;
859 } 1005 }
860 } 1006 }
861 1007
862 /** Metadata describing a long running folder operation */ 1008 /** Metadata describing a long running folder operation */
863 class FolderOperation { 1009 class FolderOperation {
864 /** 1010 /**
865 * The resource name of the folder or organization we are either creating the 1011 * The resource name of the folder or organization we are either creating
866 * folder under or moving the folder to. 1012 * the folder under or moving the folder to.
867 */ 1013 */
868 core.String destinationParent; 1014 core.String destinationParent;
869 /** The display name of the folder. */ 1015 /** The display name of the folder. */
870 core.String displayName; 1016 core.String displayName;
871 /** 1017 /**
872 * The type of this operation. 1018 * The type of this operation.
873 * Possible string values are: 1019 * Possible string values are:
874 * - "OPERATION_TYPE_UNSPECIFIED" : A OPERATION_TYPE_UNSPECIFIED. 1020 * - "OPERATION_TYPE_UNSPECIFIED" : Operation type not specified.
875 * - "CREATE" : A CREATE. 1021 * - "CREATE" : A create folder operation.
876 * - "MOVE" : A MOVE. 1022 * - "MOVE" : A move folder operation.
877 */ 1023 */
878 core.String operationType; 1024 core.String operationType;
879 /** 1025 /**
880 * The resource name of the folder's parent. Only applicable when the 1026 * The resource name of the folder's parent.
881 * operation_type is MOVE. 1027 * Only applicable when the operation_type is MOVE.
882 */ 1028 */
883 core.String sourceParent; 1029 core.String sourceParent;
884 1030
885 FolderOperation(); 1031 FolderOperation();
886 1032
887 FolderOperation.fromJson(core.Map _json) { 1033 FolderOperation.fromJson(core.Map _json) {
888 if (_json.containsKey("destinationParent")) { 1034 if (_json.containsKey("destinationParent")) {
889 destinationParent = _json["destinationParent"]; 1035 destinationParent = _json["destinationParent"];
890 } 1036 }
891 if (_json.containsKey("displayName")) { 1037 if (_json.containsKey("displayName")) {
(...skipping 23 matching lines...) Expand all
915 } 1061 }
916 return _json; 1062 return _json;
917 } 1063 }
918 } 1064 }
919 1065
920 /** A classification of the Folder Operation error. */ 1066 /** A classification of the Folder Operation error. */
921 class FolderOperationError { 1067 class FolderOperationError {
922 /** 1068 /**
923 * The type of operation error experienced. 1069 * The type of operation error experienced.
924 * Possible string values are: 1070 * Possible string values are:
925 * - "ERROR_TYPE_UNSPECIFIED" : A ERROR_TYPE_UNSPECIFIED. 1071 * - "ERROR_TYPE_UNSPECIFIED" : The error type was unrecognized or
926 * - "FOLDER_HEIGHT_VIOLATION" : A FOLDER_HEIGHT_VIOLATION. 1072 * unspecified.
927 * - "MAX_CHILD_FOLDERS_VIOLATION" : A MAX_CHILD_FOLDERS_VIOLATION. 1073 * - "FOLDER_HEIGHT_VIOLATION" : The attempted action would violate the max
928 * - "FOLDER_NAME_UNIQUENESS_VIOLATION" : A FOLDER_NAME_UNIQUENESS_VIOLATION. 1074 * folder depth constraint.
929 * - "RESOURCE_DELETED" : A RESOURCE_DELETED. 1075 * - "MAX_CHILD_FOLDERS_VIOLATION" : The attempted action would violate the
930 * - "PARENT_DELETED" : A PARENT_DELETED. 1076 * max child folders constraint.
931 * - "CYCLE_INTRODUCED_ERROR" : A CYCLE_INTRODUCED_ERROR. 1077 * - "FOLDER_NAME_UNIQUENESS_VIOLATION" : The attempted action would violate
932 * - "FOLDER_ALREADY_BEING_MOVED" : A FOLDER_ALREADY_BEING_MOVED. 1078 * the locally-unique folder
933 * - "FOLDER_TO_DELETE_NON_EMPTY" : A FOLDER_TO_DELETE_NON_EMPTY. 1079 * display_name constraint.
1080 * - "RESOURCE_DELETED" : The resource being moved has been deleted.
1081 * - "PARENT_DELETED" : The resource a folder was being added to has been
1082 * deleted.
1083 * - "CYCLE_INTRODUCED_ERROR" : The attempted action would introduce cycle in
1084 * resource path.
1085 * - "FOLDER_ALREADY_BEING_MOVED" : The attempted action would move a folder
1086 * that is already being moved.
1087 * - "FOLDER_TO_DELETE_NON_EMPTY" : The folder the caller is trying to delete
1088 * contains active resources.
934 */ 1089 */
935 core.String errorMessageId; 1090 core.String errorMessageId;
936 1091
937 FolderOperationError(); 1092 FolderOperationError();
938 1093
939 FolderOperationError.fromJson(core.Map _json) { 1094 FolderOperationError.fromJson(core.Map _json) {
940 if (_json.containsKey("errorMessageId")) { 1095 if (_json.containsKey("errorMessageId")) {
941 errorMessageId = _json["errorMessageId"]; 1096 errorMessageId = _json["errorMessageId"];
942 } 1097 }
943 } 1098 }
944 1099
945 core.Map toJson() { 1100 core.Map toJson() {
946 var _json = new core.Map(); 1101 var _json = new core.Map();
947 if (errorMessageId != null) { 1102 if (errorMessageId != null) {
948 _json["errorMessageId"] = errorMessageId; 1103 _json["errorMessageId"] = errorMessageId;
949 } 1104 }
950 return _json; 1105 return _json;
951 } 1106 }
952 } 1107 }
953 1108
1109 /**
1110 * The request sent to the
1111 * GetAncestry
1112 * method.
1113 */
1114 class GetAncestryRequest {
1115
1116 GetAncestryRequest();
1117
1118 GetAncestryRequest.fromJson(core.Map _json) {
1119 }
1120
1121 core.Map toJson() {
1122 var _json = new core.Map();
1123 return _json;
1124 }
1125 }
1126
1127 /** Response from the GetAncestry method. */
1128 class GetAncestryResponse {
1129 /**
1130 * Ancestors are ordered from bottom to top of the resource hierarchy. The
1131 * first ancestor is the project itself, followed by the project's parent,
1132 * etc.
1133 */
1134 core.List<Ancestor> ancestor;
1135
1136 GetAncestryResponse();
1137
1138 GetAncestryResponse.fromJson(core.Map _json) {
1139 if (_json.containsKey("ancestor")) {
1140 ancestor = _json["ancestor"].map((value) => new Ancestor.fromJson(value)). toList();
1141 }
1142 }
1143
1144 core.Map toJson() {
1145 var _json = new core.Map();
1146 if (ancestor != null) {
1147 _json["ancestor"] = ancestor.map((value) => (value).toJson()).toList();
1148 }
1149 return _json;
1150 }
1151 }
1152
954 /** Request message for `GetIamPolicy` method. */ 1153 /** Request message for `GetIamPolicy` method. */
955 class GetIamPolicyRequest { 1154 class GetIamPolicyRequest {
956 1155
957 GetIamPolicyRequest(); 1156 GetIamPolicyRequest();
958 1157
959 GetIamPolicyRequest.fromJson(core.Map _json) { 1158 GetIamPolicyRequest.fromJson(core.Map _json) {
960 } 1159 }
961 1160
962 core.Map toJson() { 1161 core.Map toJson() {
963 var _json = new core.Map(); 1162 var _json = new core.Map();
964 return _json; 1163 return _json;
965 } 1164 }
966 } 1165 }
967 1166
968 /** 1167 /**
969 * A page of the response received from the ListProjects method. A paginated 1168 * A page of the response received from the
970 * response where more pages are available has `next_page_token` set. This token 1169 * ListProjects
971 * can be used in a subsequent request to retrieve the next request page. 1170 * method.
1171 *
1172 * A paginated response where more pages are available has
1173 * `next_page_token` set. This token can be used in a subsequent request to
1174 * retrieve the next request page.
972 */ 1175 */
973 class ListProjectsResponse { 1176 class ListProjectsResponse {
974 /** 1177 /**
975 * Pagination token. If the result set is too large to fit in a single 1178 * Pagination token.
976 * response, this token is returned. It encodes the position of the current 1179 *
977 * result cursor. Feeding this value into a new list request with the 1180 * If the result set is too large to fit in a single response, this token
978 * `page_token` parameter gives the next page of the results. When 1181 * is returned. It encodes the position of the current result cursor.
979 * `next_page_token` is not filled in, there is no next page and the list 1182 * Feeding this value into a new list request with the `page_token` parameter
980 * returned is the last page in the result set. Pagination tokens have a 1183 * gives the next page of the results.
981 * limited lifetime. 1184 *
1185 * When `next_page_token` is not filled in, there is no next page and
1186 * the list returned is the last page in the result set.
1187 *
1188 * Pagination tokens have a limited lifetime.
982 */ 1189 */
983 core.String nextPageToken; 1190 core.String nextPageToken;
984 /** 1191 /**
985 * The list of Projects that matched the list filter. This list can be 1192 * The list of Projects that matched the list filter. This list can
986 * paginated. 1193 * be paginated.
987 */ 1194 */
988 core.List<Project> projects; 1195 core.List<Project> projects;
989 1196
990 ListProjectsResponse(); 1197 ListProjectsResponse();
991 1198
992 ListProjectsResponse.fromJson(core.Map _json) { 1199 ListProjectsResponse.fromJson(core.Map _json) {
993 if (_json.containsKey("nextPageToken")) { 1200 if (_json.containsKey("nextPageToken")) {
994 nextPageToken = _json["nextPageToken"]; 1201 nextPageToken = _json["nextPageToken"];
995 } 1202 }
996 if (_json.containsKey("projects")) { 1203 if (_json.containsKey("projects")) {
(...skipping 12 matching lines...) Expand all
1009 return _json; 1216 return _json;
1010 } 1217 }
1011 } 1218 }
1012 1219
1013 /** 1220 /**
1014 * This resource represents a long-running operation that is the result of a 1221 * This resource represents a long-running operation that is the result of a
1015 * network API call. 1222 * network API call.
1016 */ 1223 */
1017 class Operation { 1224 class Operation {
1018 /** 1225 /**
1019 * If the value is `false`, it means the operation is still in progress. If 1226 * If the value is `false`, it means the operation is still in progress.
1020 * true, the operation is completed, and either `error` or `response` is 1227 * If true, the operation is completed, and either `error` or `response` is
1021 * available. 1228 * available.
1022 */ 1229 */
1023 core.bool done; 1230 core.bool done;
1024 /** The error result of the operation in case of failure. */ 1231 /** The error result of the operation in case of failure or cancellation. */
1025 Status error; 1232 Status error;
1026 /** 1233 /**
1027 * Service-specific metadata associated with the operation. It typically 1234 * Service-specific metadata associated with the operation. It typically
1028 * contains progress information and common metadata such as create time. Some 1235 * contains progress information and common metadata such as create time.
1029 * services might not provide such metadata. Any method that returns a 1236 * Some services might not provide such metadata. Any method that returns a
1030 * long-running operation should document the metadata type, if any. 1237 * long-running operation should document the metadata type, if any.
1031 * 1238 *
1032 * The values for Object must be JSON objects. It can consist of `num`, 1239 * The values for Object must be JSON objects. It can consist of `num`,
1033 * `String`, `bool` and `null` as well as `Map` and `List` values. 1240 * `String`, `bool` and `null` as well as `Map` and `List` values.
1034 */ 1241 */
1035 core.Map<core.String, core.Object> metadata; 1242 core.Map<core.String, core.Object> metadata;
1036 /** 1243 /**
1037 * The server-assigned name, which is only unique within the same service that 1244 * The server-assigned name, which is only unique within the same service that
1038 * originally returns it. If you use the default HTTP mapping, the `name` 1245 * originally returns it. If you use the default HTTP mapping, the
1039 * should have the format of `operations/some/unique/name`. 1246 * `name` should have the format of `operations/some/unique/name`.
1040 */ 1247 */
1041 core.String name; 1248 core.String name;
1042 /** 1249 /**
1043 * The normal response of the operation in case of success. If the original 1250 * The normal response of the operation in case of success. If the original
1044 * method returns no data on success, such as `Delete`, the response is 1251 * method returns no data on success, such as `Delete`, the response is
1045 * `google.protobuf.Empty`. If the original method is standard 1252 * `google.protobuf.Empty`. If the original method is standard
1046 * `Get`/`Create`/`Update`, the response should be the resource. For other 1253 * `Get`/`Create`/`Update`, the response should be the resource. For other
1047 * methods, the response should have the type `XxxResponse`, where `Xxx` is 1254 * methods, the response should have the type `XxxResponse`, where `Xxx`
1048 * the original method name. For example, if the original method name is 1255 * is the original method name. For example, if the original method name
1049 * `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. 1256 * is `TakeSnapshot()`, the inferred response type is
1257 * `TakeSnapshotResponse`.
1050 * 1258 *
1051 * The values for Object must be JSON objects. It can consist of `num`, 1259 * The values for Object must be JSON objects. It can consist of `num`,
1052 * `String`, `bool` and `null` as well as `Map` and `List` values. 1260 * `String`, `bool` and `null` as well as `Map` and `List` values.
1053 */ 1261 */
1054 core.Map<core.String, core.Object> response; 1262 core.Map<core.String, core.Object> response;
1055 1263
1056 Operation(); 1264 Operation();
1057 1265
1058 Operation.fromJson(core.Map _json) { 1266 Operation.fromJson(core.Map _json) {
1059 if (_json.containsKey("done")) { 1267 if (_json.containsKey("done")) {
(...skipping 28 matching lines...) Expand all
1088 _json["name"] = name; 1296 _json["name"] = name;
1089 } 1297 }
1090 if (response != null) { 1298 if (response != null) {
1091 _json["response"] = response; 1299 _json["response"] = response;
1092 } 1300 }
1093 return _json; 1301 return _json;
1094 } 1302 }
1095 } 1303 }
1096 1304
1097 /** 1305 /**
1098 * The root node in the resource hierarchy to which a particular entity's (e.g., 1306 * The root node in the resource hierarchy to which a particular entity's
1099 * company) resources belong. 1307 * (e.g., company) resources belong.
1100 */ 1308 */
1101 class Organization { 1309 class Organization {
1102 /** 1310 /**
1103 * Timestamp when the Organization was created. Assigned by the server. 1311 * Timestamp when the Organization was created. Assigned by the server.
1104 * @OutputOnly 1312 * @OutputOnly
1105 */ 1313 */
1106 core.String creationTime; 1314 core.String creationTime;
1107 /** 1315 /**
1108 * A friendly string to be used to refer to the Organization in the UI. 1316 * A friendly string to be used to refer to the Organization in the UI.
1109 * Assigned by the server, set to the firm name of the Google For Work 1317 * Assigned by the server, set to the firm name of the Google For Work
1110 * customer that owns this organization. @OutputOnly 1318 * customer that owns this organization.
1319 * @OutputOnly
1111 */ 1320 */
1112 core.String displayName; 1321 core.String displayName;
1113 /** 1322 /**
1114 * The organization's current lifecycle state. Assigned by the server. 1323 * The organization's current lifecycle state. Assigned by the server.
1115 * @OutputOnly 1324 * @OutputOnly
1116 * Possible string values are: 1325 * Possible string values are:
1117 * - "LIFECYCLE_STATE_UNSPECIFIED" : A LIFECYCLE_STATE_UNSPECIFIED. 1326 * - "LIFECYCLE_STATE_UNSPECIFIED" : Unspecified state. This is only useful
1118 * - "ACTIVE" : A ACTIVE. 1327 * for distinguishing unset values.
1119 * - "DELETE_REQUESTED" : A DELETE_REQUESTED. 1328 * - "ACTIVE" : The normal and active state.
1329 * - "DELETE_REQUESTED" : The organization has been marked for deletion by the
1330 * user.
1120 */ 1331 */
1121 core.String lifecycleState; 1332 core.String lifecycleState;
1122 /** 1333 /**
1123 * Output Only. The resource name of the organization. This is the 1334 * Output Only. The resource name of the organization. This is the
1124 * organization's relative path in the API. Its format is 1335 * organization's relative path in the API. Its format is
1125 * "organizations/[organization_id]". For example, "organizations/1234". 1336 * "organizations/[organization_id]". For example, "organizations/1234".
1126 */ 1337 */
1127 core.String name; 1338 core.String name;
1128 /** 1339 /**
1129 * The owner of this Organization. The owner should be specified on creation. 1340 * The owner of this Organization. The owner should be specified on
1130 * Once set, it cannot be changed. This field is required. 1341 * creation. Once set, it cannot be changed.
1342 * This field is required.
1131 */ 1343 */
1132 OrganizationOwner owner; 1344 OrganizationOwner owner;
1133 1345
1134 Organization(); 1346 Organization();
1135 1347
1136 Organization.fromJson(core.Map _json) { 1348 Organization.fromJson(core.Map _json) {
1137 if (_json.containsKey("creationTime")) { 1349 if (_json.containsKey("creationTime")) {
1138 creationTime = _json["creationTime"]; 1350 creationTime = _json["creationTime"];
1139 } 1351 }
1140 if (_json.containsKey("displayName")) { 1352 if (_json.containsKey("displayName")) {
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
1193 core.Map toJson() { 1405 core.Map toJson() {
1194 var _json = new core.Map(); 1406 var _json = new core.Map();
1195 if (directoryCustomerId != null) { 1407 if (directoryCustomerId != null) {
1196 _json["directoryCustomerId"] = directoryCustomerId; 1408 _json["directoryCustomerId"] = directoryCustomerId;
1197 } 1409 }
1198 return _json; 1410 return _json;
1199 } 1411 }
1200 } 1412 }
1201 1413
1202 /** 1414 /**
1203 * Defines an Identity and Access Management (IAM) policy. It is used to specify 1415 * Defines an Identity and Access Management (IAM) policy. It is used to
1204 * access control policies for Cloud Platform resources. A `Policy` consists of 1416 * specify access control policies for Cloud Platform resources.
1205 * a list of `bindings`. A `Binding` binds a list of `members` to a `role`, 1417 *
1206 * where the members can be user accounts, Google groups, Google domains, and 1418 *
1207 * service accounts. A `role` is a named list of permissions defined by IAM. 1419 * A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
1208 * **Example** { "bindings": [ { "role": "roles/owner", "members": [ 1420 * `members` to a `role`, where the members can be user accounts, Google groups,
1209 * "user:mike@example.com", "group:admins@example.com", "domain:google.com", 1421 * Google domains, and service accounts. A `role` is a named list of permissions
1210 * "serviceAccount:my-other-app@appspot.gserviceaccount.com", ] }, { "role": 1422 * defined by IAM.
1211 * "roles/viewer", "members": ["user:sean@example.com"] } ] } For a description 1423 *
1212 * of IAM and its features, see the [IAM developer's 1424 * **Example**
1213 * guide](https://cloud.google.com/iam). 1425 *
1426 * {
1427 * "bindings": [
1428 * {
1429 * "role": "roles/owner",
1430 * "members": [
1431 * "user:mike@example.com",
1432 * "group:admins@example.com",
1433 * "domain:google.com",
1434 * "serviceAccount:my-other-app@appspot.gserviceaccount.com",
1435 * ]
1436 * },
1437 * {
1438 * "role": "roles/viewer",
1439 * "members": ["user:sean@example.com"]
1440 * }
1441 * ]
1442 * }
1443 *
1444 * For a description of IAM and its features, see the
1445 * [IAM developer's guide](https://cloud.google.com/iam).
1214 */ 1446 */
1215 class Policy { 1447 class Policy {
1216 /** 1448 /**
1217 * Associates a list of `members` to a `role`. Multiple `bindings` must not be 1449 * Associates a list of `members` to a `role`.
1218 * specified for the same `role`. `bindings` with no members will result in an 1450 * Multiple `bindings` must not be specified for the same `role`.
1219 * error. 1451 * `bindings` with no members will result in an error.
1220 */ 1452 */
1221 core.List<Binding> bindings; 1453 core.List<Binding> bindings;
1222 /** 1454 /**
1223 * `etag` is used for optimistic concurrency control as a way to help prevent 1455 * `etag` is used for optimistic concurrency control as a way to help
1224 * simultaneous updates of a policy from overwriting each other. It is 1456 * prevent simultaneous updates of a policy from overwriting each other.
1225 * strongly suggested that systems make use of the `etag` in the 1457 * It is strongly suggested that systems make use of the `etag` in the
1226 * read-modify-write cycle to perform policy updates in order to avoid race 1458 * read-modify-write cycle to perform policy updates in order to avoid race
1227 * conditions: An `etag` is returned in the response to `getIamPolicy`, and 1459 * conditions: An `etag` is returned in the response to `getIamPolicy`, and
1228 * systems are expected to put that etag in the request to `setIamPolicy` to 1460 * systems are expected to put that etag in the request to `setIamPolicy` to
1229 * ensure that their change will be applied to the same version of the policy. 1461 * ensure that their change will be applied to the same version of the policy.
1462 *
1230 * If no `etag` is provided in the call to `setIamPolicy`, then the existing 1463 * If no `etag` is provided in the call to `setIamPolicy`, then the existing
1231 * policy is overwritten blindly. 1464 * policy is overwritten blindly.
1232 */ 1465 */
1233 core.String etag; 1466 core.String etag;
1234 core.List<core.int> get etagAsBytes { 1467 core.List<core.int> get etagAsBytes {
1235 return convert.BASE64.decode(etag); 1468 return convert.BASE64.decode(etag);
1236 } 1469 }
1237 1470
1238 void set etagAsBytes(core.List<core.int> _bytes) { 1471 void set etagAsBytes(core.List<core.int> _bytes) {
1239 etag = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "- "); 1472 etag = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "- ");
(...skipping 24 matching lines...) Expand all
1264 _json["etag"] = etag; 1497 _json["etag"] = etag;
1265 } 1498 }
1266 if (version != null) { 1499 if (version != null) {
1267 _json["version"] = version; 1500 _json["version"] = version;
1268 } 1501 }
1269 return _json; 1502 return _json;
1270 } 1503 }
1271 } 1504 }
1272 1505
1273 /** 1506 /**
1274 * A Project is a high-level Google Cloud Platform entity. It is a container for 1507 * A Project is a high-level Google Cloud Platform entity. It is a
1275 * ACLs, APIs, AppEngine Apps, VMs, and other Google Cloud Platform resources. 1508 * container for ACLs, APIs, AppEngine Apps, VMs, and other
1509 * Google Cloud Platform resources.
1276 */ 1510 */
1277 class Project { 1511 class Project {
1278 /** Creation time. Read-only. */ 1512 /**
1513 * Creation time.
1514 *
1515 * Read-only.
1516 */
1279 core.String createTime; 1517 core.String createTime;
1280 /** 1518 /**
1281 * The labels associated with this Project. Label keys must be between 1 and 1519 * The labels associated with this Project.
1282 * 63 characters long and must conform to the following regular expression: 1520 *
1283 * \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?. Label values must be between 0 and 63 1521 * Label keys must be between 1 and 63 characters long and must conform
1284 * characters long and must conform to the regular expression 1522 * to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
1285 * (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?. No more than 256 labels can be 1523 *
1286 * associated with a given resource. Clients should store labels in a 1524 * Label values must be between 0 and 63 characters long and must conform
1287 * representation such as JSON that does not depend on specific characters 1525 * to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
1288 * being disallowed. Example: "environment" : "dev" Read-write. 1526 *
1527 * No more than 256 labels can be associated with a given resource.
1528 *
1529 * Clients should store labels in a representation such as JSON that does not
1530 * depend on specific characters being disallowed.
1531 *
1532 * Example: <code>"environment" : "dev"</code>
1533 *
1534 * Read-write.
1289 */ 1535 */
1290 core.Map<core.String, core.String> labels; 1536 core.Map<core.String, core.String> labels;
1291 /** 1537 /**
1292 * The Project lifecycle state. Read-only. 1538 * The Project lifecycle state.
1539 *
1540 * Read-only.
1293 * Possible string values are: 1541 * Possible string values are:
1294 * - "LIFECYCLE_STATE_UNSPECIFIED" : A LIFECYCLE_STATE_UNSPECIFIED. 1542 * - "LIFECYCLE_STATE_UNSPECIFIED" : Unspecified state. This is only
1295 * - "ACTIVE" : A ACTIVE. 1543 * used/useful for distinguishing
1296 * - "DELETE_REQUESTED" : A DELETE_REQUESTED. 1544 * unset values.
1297 * - "DELETE_IN_PROGRESS" : A DELETE_IN_PROGRESS. 1545 * - "ACTIVE" : The normal and active state.
1546 * - "DELETE_REQUESTED" : The project has been marked for deletion by the user
1547 * (by invoking
1548 * DeleteProject)
1549 * or by the system (Google Cloud Platform).
1550 * This can generally be reversed by invoking UndeleteProject.
1551 * - "DELETE_IN_PROGRESS" : This lifecycle state is no longer used and not
1552 * returned by the API.
1298 */ 1553 */
1299 core.String lifecycleState; 1554 core.String lifecycleState;
1300 /** 1555 /**
1301 * The user-assigned display name of the Project. It must be 4 to 30 1556 * The user-assigned display name of the Project.
1302 * characters. Allowed characters are: lowercase and uppercase letters, 1557 * It must be 4 to 30 characters.
1303 * numbers, hyphen, single-quote, double-quote, space, and exclamation point. 1558 * Allowed characters are: lowercase and uppercase letters, numbers,
1304 * Example: My Project Read-write. 1559 * hyphen, single-quote, double-quote, space, and exclamation point.
1560 *
1561 * Example: <code>My Project</code>
1562 *
1563 * Read-write.
1305 */ 1564 */
1306 core.String name; 1565 core.String name;
1307 /** 1566 /**
1308 * An optional reference to a parent Resource. The only supported parent type 1567 * An optional reference to a parent Resource.
1309 * is "organization". Once set, the parent cannot be modified. Read-write. 1568 *
1569 * The only supported parent type is "organization". Once set, the parent
1570 * cannot be modified.
1571 *
1572 * Read-write.
1310 */ 1573 */
1311 ResourceId parent; 1574 ResourceId parent;
1312 /** 1575 /**
1313 * The unique, user-assigned ID of the Project. It must be 6 to 30 lowercase 1576 * The unique, user-assigned ID of the Project.
1314 * letters, digits, or hyphens. It must start with a letter. Trailing hyphens 1577 * It must be 6 to 30 lowercase letters, digits, or hyphens.
1315 * are prohibited. Example: tokyo-rain-123 Read-only after creation. 1578 * It must start with a letter.
1579 * Trailing hyphens are prohibited.
1580 *
1581 * Example: <code>tokyo-rain-123</code>
1582 *
1583 * Read-only after creation.
1316 */ 1584 */
1317 core.String projectId; 1585 core.String projectId;
1318 /** 1586 /**
1319 * The number uniquely identifying the project. Example: 415104041262 1587 * The number uniquely identifying the project.
1588 *
1589 * Example: <code>415104041262</code>
1590 *
1320 * Read-only. 1591 * Read-only.
1321 */ 1592 */
1322 core.String projectNumber; 1593 core.String projectNumber;
1323 1594
1324 Project(); 1595 Project();
1325 1596
1326 Project.fromJson(core.Map _json) { 1597 Project.fromJson(core.Map _json) {
1327 if (_json.containsKey("createTime")) { 1598 if (_json.containsKey("createTime")) {
1328 createTime = _json["createTime"]; 1599 createTime = _json["createTime"];
1329 } 1600 }
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
1416 if (ready != null) { 1687 if (ready != null) {
1417 _json["ready"] = ready; 1688 _json["ready"] = ready;
1418 } 1689 }
1419 return _json; 1690 return _json;
1420 } 1691 }
1421 } 1692 }
1422 1693
1423 /** 1694 /**
1424 * A container to reference an id for any resource type. A `resource` in Google 1695 * A container to reference an id for any resource type. A `resource` in Google
1425 * Cloud Platform is a generic term for something you (a developer) may want to 1696 * Cloud Platform is a generic term for something you (a developer) may want to
1426 * interact with through one of our API's. Some examples are an AppEngine app, a 1697 * interact with through one of our API's. Some examples are an AppEngine app,
1427 * Compute Engine instance, a Cloud SQL database, and so on. 1698 * a Compute Engine instance, a Cloud SQL database, and so on.
1428 */ 1699 */
1429 class ResourceId { 1700 class ResourceId {
1430 /** 1701 /**
1431 * Required field for the type-specific id. This should correspond to the id 1702 * Required field for the type-specific id. This should correspond to the id
1432 * used in the type-specific API's. 1703 * used in the type-specific API's.
1433 */ 1704 */
1434 core.String id; 1705 core.String id;
1435 /** 1706 /**
1436 * Required field representing the resource type this id is for. At present, 1707 * Required field representing the resource type this id is for.
1437 * the only valid type is "organization". 1708 * At present, the only valid type is "organization".
1438 */ 1709 */
1439 core.String type; 1710 core.String type;
1440 1711
1441 ResourceId(); 1712 ResourceId();
1442 1713
1443 ResourceId.fromJson(core.Map _json) { 1714 ResourceId.fromJson(core.Map _json) {
1444 if (_json.containsKey("id")) { 1715 if (_json.containsKey("id")) {
1445 id = _json["id"]; 1716 id = _json["id"];
1446 } 1717 }
1447 if (_json.containsKey("type")) { 1718 if (_json.containsKey("type")) {
1448 type = _json["type"]; 1719 type = _json["type"];
1449 } 1720 }
1450 } 1721 }
1451 1722
1452 core.Map toJson() { 1723 core.Map toJson() {
1453 var _json = new core.Map(); 1724 var _json = new core.Map();
1454 if (id != null) { 1725 if (id != null) {
1455 _json["id"] = id; 1726 _json["id"] = id;
1456 } 1727 }
1457 if (type != null) { 1728 if (type != null) {
1458 _json["type"] = type; 1729 _json["type"] = type;
1459 } 1730 }
1460 return _json; 1731 return _json;
1461 } 1732 }
1462 } 1733 }
1463 1734
1464 /** The request sent to the `SearchOrganizations` method. */ 1735 /** The request sent to the `SearchOrganizations` method. */
1465 class SearchOrganizationsRequest { 1736 class SearchOrganizationsRequest {
1466 /** 1737 /**
1467 * An optional query string used to filter the Organizations to return in the 1738 * An optional query string used to filter the Organizations to return in
1468 * response. Filter rules are case-insensitive. Organizations may be filtered 1739 * the response. Filter rules are case-insensitive.
1469 * by `owner.directoryCustomerId` or by `domain`, where the domain is a Google 1740 *
1470 * for Work domain, for example: |Filter|Description| |------|-----------| 1741 *
1742 * Organizations may be filtered by `owner.directoryCustomerId` or by
1743 * `domain`, where the domain is a Google for Work domain, for example:
1744 *
1745 * |Filter|Description|
1746 * |------|-----------|
1471 * |owner.directorycustomerid:123456789|Organizations with 1747 * |owner.directorycustomerid:123456789|Organizations with
1472 * `owner.directory_customer_id` equal to `123456789`.| 1748 * `owner.directory_customer_id` equal to `123456789`.|
1473 * |domain:google.com|Organizations corresponding to the domain `google.com`.| 1749 * |domain:google.com|Organizations corresponding to the domain `google.com`.|
1750 *
1474 * This field is optional. 1751 * This field is optional.
1475 */ 1752 */
1476 core.String filter; 1753 core.String filter;
1477 /** 1754 /**
1478 * The maximum number of Organizations to return in the response. This field 1755 * The maximum number of Organizations to return in the response.
1479 * is optional. 1756 * This field is optional.
1480 */ 1757 */
1481 core.int pageSize; 1758 core.int pageSize;
1482 /** 1759 /**
1483 * A pagination token returned from a previous call to `SearchOrganizations` 1760 * A pagination token returned from a previous call to `SearchOrganizations`
1484 * that indicates from where listing should continue. This field is optional. 1761 * that indicates from where listing should continue.
1762 * This field is optional.
1485 */ 1763 */
1486 core.String pageToken; 1764 core.String pageToken;
1487 1765
1488 SearchOrganizationsRequest(); 1766 SearchOrganizationsRequest();
1489 1767
1490 SearchOrganizationsRequest.fromJson(core.Map _json) { 1768 SearchOrganizationsRequest.fromJson(core.Map _json) {
1491 if (_json.containsKey("filter")) { 1769 if (_json.containsKey("filter")) {
1492 filter = _json["filter"]; 1770 filter = _json["filter"];
1493 } 1771 }
1494 if (_json.containsKey("pageSize")) { 1772 if (_json.containsKey("pageSize")) {
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
1550 _json["organizations"] = organizations.map((value) => (value).toJson()).to List(); 1828 _json["organizations"] = organizations.map((value) => (value).toJson()).to List();
1551 } 1829 }
1552 return _json; 1830 return _json;
1553 } 1831 }
1554 } 1832 }
1555 1833
1556 /** Request message for `SetIamPolicy` method. */ 1834 /** Request message for `SetIamPolicy` method. */
1557 class SetIamPolicyRequest { 1835 class SetIamPolicyRequest {
1558 /** 1836 /**
1559 * REQUIRED: The complete policy to be applied to the `resource`. The size of 1837 * REQUIRED: The complete policy to be applied to the `resource`. The size of
1560 * the policy is limited to a few 10s of KB. An empty policy is a valid policy 1838 * the policy is limited to a few 10s of KB. An empty policy is a
1561 * but certain Cloud Platform services (such as Projects) might reject them. 1839 * valid policy but certain Cloud Platform services (such as Projects)
1840 * might reject them.
1562 */ 1841 */
1563 Policy policy; 1842 Policy policy;
1564 1843
1565 SetIamPolicyRequest(); 1844 SetIamPolicyRequest();
1566 1845
1567 SetIamPolicyRequest.fromJson(core.Map _json) { 1846 SetIamPolicyRequest.fromJson(core.Map _json) {
1568 if (_json.containsKey("policy")) { 1847 if (_json.containsKey("policy")) {
1569 policy = new Policy.fromJson(_json["policy"]); 1848 policy = new Policy.fromJson(_json["policy"]);
1570 } 1849 }
1571 } 1850 }
1572 1851
1573 core.Map toJson() { 1852 core.Map toJson() {
1574 var _json = new core.Map(); 1853 var _json = new core.Map();
1575 if (policy != null) { 1854 if (policy != null) {
1576 _json["policy"] = (policy).toJson(); 1855 _json["policy"] = (policy).toJson();
1577 } 1856 }
1578 return _json; 1857 return _json;
1579 } 1858 }
1580 } 1859 }
1581 1860
1582 /** 1861 /**
1583 * The `Status` type defines a logical error model that is suitable for 1862 * The `Status` type defines a logical error model that is suitable for
1584 * different programming environments, including REST APIs and RPC APIs. It is 1863 * different
1585 * used by [gRPC](https://github.com/grpc). The error model is designed to be: - 1864 * programming environments, including REST APIs and RPC APIs. It is used by
1586 * Simple to use and understand for most users - Flexible enough to meet 1865 * [gRPC](https://github.com/grpc). The error model is designed to be:
1587 * unexpected needs # Overview The `Status` message contains three pieces of 1866 *
1588 * data: error code, error message, and error details. The error code should be 1867 * - Simple to use and understand for most users
1589 * an enum value of google.rpc.Code, but it may accept additional error codes if 1868 * - Flexible enough to meet unexpected needs
1590 * needed. The error message should be a developer-facing English message that 1869 *
1591 * helps developers *understand* and *resolve* the error. If a localized 1870 * # Overview
1592 * user-facing error message is needed, put the localized message in the error 1871 *
1593 * details or localize it in the client. The optional error details may contain 1872 * The `Status` message contains three pieces of data: error code, error
1594 * arbitrary information about the error. There is a predefined set of error 1873 * message,
1595 * detail types in the package `google.rpc` which can be used for common error 1874 * and error details. The error code should be an enum value of
1596 * conditions. # Language mapping The `Status` message is the logical 1875 * google.rpc.Code, but it may accept additional error codes if needed. The
1597 * representation of the error model, but it is not necessarily the actual wire 1876 * error message should be a developer-facing English message that helps
1598 * format. When the `Status` message is exposed in different client libraries 1877 * developers *understand* and *resolve* the error. If a localized user-facing
1599 * and different wire protocols, it can be mapped differently. For example, it 1878 * error message is needed, put the localized message in the error details or
1600 * will likely be mapped to some exceptions in Java, but more likely mapped to 1879 * localize it in the client. The optional error details may contain arbitrary
1601 * some error codes in C. # Other uses The error model and the `Status` message 1880 * information about the error. There is a predefined set of error detail types
1602 * can be used in a variety of environments, either with or without APIs, to 1881 * in the package `google.rpc` which can be used for common error conditions.
1603 * provide a consistent developer experience across different environments. 1882 *
1604 * Example uses of this error model include: - Partial errors. If a service 1883 * # Language mapping
1605 * needs to return partial errors to the client, it may embed the `Status` in 1884 *
1606 * the normal response to indicate the partial errors. - Workflow errors. A 1885 * The `Status` message is the logical representation of the error model, but it
1607 * typical workflow has multiple steps. Each step may have a `Status` message 1886 * is not necessarily the actual wire format. When the `Status` message is
1608 * for error reporting purpose. - Batch operations. If a client uses batch 1887 * exposed in different client libraries and different wire protocols, it can be
1609 * request and batch response, the `Status` message should be used directly 1888 * mapped differently. For example, it will likely be mapped to some exceptions
1610 * inside batch response, one for each error sub-response. - Asynchronous 1889 * in Java, but more likely mapped to some error codes in C.
1611 * operations. If an API call embeds asynchronous operation results in its 1890 *
1612 * response, the status of those operations should be represented directly using 1891 * # Other uses
1613 * the `Status` message. - Logging. If some API errors are stored in logs, the 1892 *
1614 * message `Status` could be used directly after any stripping needed for 1893 * The error model and the `Status` message can be used in a variety of
1615 * security/privacy reasons. 1894 * environments, either with or without APIs, to provide a
1895 * consistent developer experience across different environments.
1896 *
1897 * Example uses of this error model include:
1898 *
1899 * - Partial errors. If a service needs to return partial errors to the client,
1900 * it may embed the `Status` in the normal response to indicate the partial
1901 * errors.
1902 *
1903 * - Workflow errors. A typical workflow has multiple steps. Each step may
1904 * have a `Status` message for error reporting purpose.
1905 *
1906 * - Batch operations. If a client uses batch request and batch response, the
1907 * `Status` message should be used directly inside batch response, one for
1908 * each error sub-response.
1909 *
1910 * - Asynchronous operations. If an API call embeds asynchronous operation
1911 * results in its response, the status of those operations should be
1912 * represented directly using the `Status` message.
1913 *
1914 * - Logging. If some API errors are stored in logs, the message `Status` could
1915 * be used directly after any stripping needed for security/privacy reasons.
1616 */ 1916 */
1617 class Status { 1917 class Status {
1618 /** The status code, which should be an enum value of google.rpc.Code. */ 1918 /** The status code, which should be an enum value of google.rpc.Code. */
1619 core.int code; 1919 core.int code;
1620 /** 1920 /**
1621 * A list of messages that carry the error details. There will be a common set 1921 * A list of messages that carry the error details. There will be a
1622 * of message types for APIs to use. 1922 * common set of message types for APIs to use.
1623 * 1923 *
1624 * The values for Object must be JSON objects. It can consist of `num`, 1924 * The values for Object must be JSON objects. It can consist of `num`,
1625 * `String`, `bool` and `null` as well as `Map` and `List` values. 1925 * `String`, `bool` and `null` as well as `Map` and `List` values.
1626 */ 1926 */
1627 core.List<core.Map<core.String, core.Object>> details; 1927 core.List<core.Map<core.String, core.Object>> details;
1628 /** 1928 /**
1629 * A developer-facing error message, which should be in English. Any 1929 * A developer-facing error message, which should be in English. Any
1630 * user-facing error message should be localized and sent in the 1930 * user-facing error message should be localized and sent in the
1631 * google.rpc.Status.details field, or localized by the client. 1931 * google.rpc.Status.details field, or localized by the client.
1632 */ 1932 */
(...skipping 26 matching lines...) Expand all
1659 } 1959 }
1660 return _json; 1960 return _json;
1661 } 1961 }
1662 } 1962 }
1663 1963
1664 /** Request message for `TestIamPermissions` method. */ 1964 /** Request message for `TestIamPermissions` method. */
1665 class TestIamPermissionsRequest { 1965 class TestIamPermissionsRequest {
1666 /** 1966 /**
1667 * The set of permissions to check for the `resource`. Permissions with 1967 * The set of permissions to check for the `resource`. Permissions with
1668 * wildcards (such as '*' or 'storage.*') are not allowed. For more 1968 * wildcards (such as '*' or 'storage.*') are not allowed. For more
1669 * information see [IAM 1969 * information see
1670 * Overview](https://cloud.google.com/iam/docs/overview#permissions). 1970 * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
1671 */ 1971 */
1672 core.List<core.String> permissions; 1972 core.List<core.String> permissions;
1673 1973
1674 TestIamPermissionsRequest(); 1974 TestIamPermissionsRequest();
1675 1975
1676 TestIamPermissionsRequest.fromJson(core.Map _json) { 1976 TestIamPermissionsRequest.fromJson(core.Map _json) {
1677 if (_json.containsKey("permissions")) { 1977 if (_json.containsKey("permissions")) {
1678 permissions = _json["permissions"]; 1978 permissions = _json["permissions"];
1679 } 1979 }
1680 } 1980 }
(...skipping 25 matching lines...) Expand all
1706 2006
1707 core.Map toJson() { 2007 core.Map toJson() {
1708 var _json = new core.Map(); 2008 var _json = new core.Map();
1709 if (permissions != null) { 2009 if (permissions != null) {
1710 _json["permissions"] = permissions; 2010 _json["permissions"] = permissions;
1711 } 2011 }
1712 return _json; 2012 return _json;
1713 } 2013 }
1714 } 2014 }
1715 2015
1716 /** The request sent to the UndeleteProject method. */ 2016 /**
2017 * The request sent to the UndeleteProject
2018 * method.
2019 */
1717 class UndeleteProjectRequest { 2020 class UndeleteProjectRequest {
1718 2021
1719 UndeleteProjectRequest(); 2022 UndeleteProjectRequest();
1720 2023
1721 UndeleteProjectRequest.fromJson(core.Map _json) { 2024 UndeleteProjectRequest.fromJson(core.Map _json) {
1722 } 2025 }
1723 2026
1724 core.Map toJson() { 2027 core.Map toJson() {
1725 var _json = new core.Map(); 2028 var _json = new core.Map();
1726 return _json; 2029 return _json;
1727 } 2030 }
1728 } 2031 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/cloudbuild/v1.dart ('k') | generated/googleapis/lib/compute/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698