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

Side by Side Diff: generated/googleapis_beta/lib/cloudresourcemanager/v1beta1.dart

Issue 1797933002: Api-roll 33: 2016-03-14 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Added resources/*/CHANGELOG.md, addresssed comments Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // This is a generated file (see the discoveryapis_generator project). 1 // This is a generated file (see the discoveryapis_generator project).
2 2
3 library googleapis_beta.cloudresourcemanager.v1beta1; 3 library googleapis_beta.cloudresourcemanager.v1beta1;
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:crypto/crypto.dart' as crypto; 10 import 'package:crypto/crypto.dart' as crypto;
(...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after
699 return _response.then((data) => new TestIamPermissionsResponse.fromJson(data )); 699 return _response.then((data) => new TestIamPermissionsResponse.fromJson(data ));
700 } 700 }
701 701
702 /** 702 /**
703 * Restores the Project identified by the specified `project_id` (for example, 703 * Restores the Project identified by the specified `project_id` (for example,
704 * `my-project-123`). You can only use this method for a Project that has a 704 * `my-project-123`). You can only use this method for a Project that has a
705 * lifecycle state of DELETE_REQUESTED. After deletion starts, as indicated by 705 * lifecycle state of DELETE_REQUESTED. After deletion starts, as indicated by
706 * a lifecycle state of DELETE_IN_PROGRESS, the Project cannot be restored. 706 * a lifecycle state of DELETE_IN_PROGRESS, the Project cannot be restored.
707 * The caller must have modify permissions for this Project. 707 * The caller must have modify permissions for this Project.
708 * 708 *
709 * [request] - The metadata request object.
710 *
709 * Request parameters: 711 * Request parameters:
710 * 712 *
711 * [projectId] - The project ID (for example, `foo-bar-123`). Required. 713 * [projectId] - The project ID (for example, `foo-bar-123`). Required.
712 * 714 *
713 * Completes with a [Empty]. 715 * Completes with a [Empty].
714 * 716 *
715 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 717 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
716 * error. 718 * error.
717 * 719 *
718 * If the used [http.Client] completes with an error when making a REST call, 720 * If the used [http.Client] completes with an error when making a REST call,
719 * this method will complete with the same error. 721 * this method will complete with the same error.
720 */ 722 */
721 async.Future<Empty> undelete(core.String projectId) { 723 async.Future<Empty> undelete(UndeleteProjectRequest request, core.String proje ctId) {
722 var _url = null; 724 var _url = null;
723 var _queryParams = new core.Map(); 725 var _queryParams = new core.Map();
724 var _uploadMedia = null; 726 var _uploadMedia = null;
725 var _uploadOptions = null; 727 var _uploadOptions = null;
726 var _downloadOptions = commons.DownloadOptions.Metadata; 728 var _downloadOptions = commons.DownloadOptions.Metadata;
727 var _body = null; 729 var _body = null;
728 730
731 if (request != null) {
732 _body = convert.JSON.encode((request).toJson());
733 }
729 if (projectId == null) { 734 if (projectId == null) {
730 throw new core.ArgumentError("Parameter projectId is required."); 735 throw new core.ArgumentError("Parameter projectId is required.");
731 } 736 }
732 737
733 _url = 'v1beta1/projects/' + commons.Escaper.ecapeVariable('$projectId') + ' :undelete'; 738 _url = 'v1beta1/projects/' + commons.Escaper.ecapeVariable('$projectId') + ' :undelete';
734 739
735 var _response = _requester.request(_url, 740 var _response = _requester.request(_url,
736 "POST", 741 "POST",
737 body: _body, 742 body: _body,
738 queryParams: _queryParams, 743 queryParams: _queryParams,
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
1046 } 1051 }
1047 1052
1048 /** 1053 /**
1049 * Defines an Identity and Access Management (IAM) policy. It is used to specify 1054 * Defines an Identity and Access Management (IAM) policy. It is used to specify
1050 * access control policies for Cloud Platform resources. A `Policy` consists of 1055 * access control policies for Cloud Platform resources. A `Policy` consists of
1051 * a list of `bindings`. A `Binding` binds a list of `members` to a `role`, 1056 * a list of `bindings`. A `Binding` binds a list of `members` to a `role`,
1052 * where the members can be user accounts, Google groups, Google domains, and 1057 * where the members can be user accounts, Google groups, Google domains, and
1053 * service accounts. A `role` is a named list of permissions defined by IAM. 1058 * service accounts. A `role` is a named list of permissions defined by IAM.
1054 * **Example** { "bindings": [ { "role": "roles/owner", "members": [ 1059 * **Example** { "bindings": [ { "role": "roles/owner", "members": [
1055 * "user:mike@example.com", "group:admins@example.com", "domain:google.com", 1060 * "user:mike@example.com", "group:admins@example.com", "domain:google.com",
1056 * "serviceAccount:my-other-app@appspot.gserviceaccount.com"] }, { "role": 1061 * "serviceAccount:my-other-app@appspot.gserviceaccount.com", ] }, { "role":
1057 * "roles/viewer", "members": ["user:sean@example.com"] } ] } For a description 1062 * "roles/viewer", "members": ["user:sean@example.com"] } ] } For a description
1058 * of IAM and its features, see the [IAM developer's 1063 * of IAM and its features, see the [IAM developer's
1059 * guide](https://cloud.google.com/iam). 1064 * guide](https://cloud.google.com/iam).
1060 */ 1065 */
1061 class Policy { 1066 class Policy {
1062 /** 1067 /**
1063 * Associates a list of `members` to a `role`. Multiple `bindings` must not be 1068 * Associates a list of `members` to a `role`. Multiple `bindings` must not be
1064 * specified for the same `role`. `bindings` with no members will result in an 1069 * specified for the same `role`. `bindings` with no members will result in an
1065 * error. 1070 * error.
1066 */ 1071 */
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
1330 } 1335 }
1331 1336
1332 core.Map toJson() { 1337 core.Map toJson() {
1333 var _json = new core.Map(); 1338 var _json = new core.Map();
1334 if (permissions != null) { 1339 if (permissions != null) {
1335 _json["permissions"] = permissions; 1340 _json["permissions"] = permissions;
1336 } 1341 }
1337 return _json; 1342 return _json;
1338 } 1343 }
1339 } 1344 }
1345
1346 /** The request sent to the UndeleteProject method. */
1347 class UndeleteProjectRequest {
1348
1349 UndeleteProjectRequest();
1350
1351 UndeleteProjectRequest.fromJson(core.Map _json) {
1352 }
1353
1354 core.Map toJson() {
1355 var _json = new core.Map();
1356 return _json;
1357 }
1358 }
OLDNEW
« no previous file with comments | « generated/googleapis_beta/lib/cloudmonitoring/v2beta2.dart ('k') | generated/googleapis_beta/lib/clouduseraccounts/beta.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698