| OLD | NEW |
| 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:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
| (...skipping 606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 617 return _response.then((data) => new Policy.fromJson(data)); | 617 return _response.then((data) => new Policy.fromJson(data)); |
| 618 } | 618 } |
| 619 | 619 |
| 620 /** | 620 /** |
| 621 * Lists Projects that are visible to the user and satisfy the | 621 * Lists Projects that are visible to the user and satisfy the |
| 622 * specified filter. This method returns Projects in an unspecified order. | 622 * specified filter. This method returns Projects in an unspecified order. |
| 623 * New Projects do not necessarily appear at the end of the list. | 623 * New Projects do not necessarily appear at the end of the list. |
| 624 * | 624 * |
| 625 * Request parameters: | 625 * Request parameters: |
| 626 * | 626 * |
| 627 * [pageSize] - The maximum number of Projects to return in the response. | |
| 628 * The server can return fewer Projects than requested. | |
| 629 * If unspecified, server picks an appropriate default. | |
| 630 * | |
| 631 * Optional. | |
| 632 * | |
| 633 * [filter] - An expression for filtering the results of the request. Filter | 627 * [filter] - An expression for filtering the results of the request. Filter |
| 634 * rules are | 628 * rules are |
| 635 * case insensitive. The fields eligible for filtering are: | 629 * case insensitive. The fields eligible for filtering are: |
| 636 * | 630 * |
| 637 * + `name` | 631 * + `name` |
| 638 * + `id` | 632 * + `id` |
| 639 * + <code>labels.<em>key</em></code> where *key* is the name of a label | 633 * + <code>labels.<em>key</em></code> where *key* is the name of a label |
| 640 * | 634 * |
| 641 * Some examples of using labels as filters: | 635 * Some examples of using labels as filters: |
| 642 * | 636 * |
| 643 * |Filter|Description| | 637 * |Filter|Description| |
| 644 * |------|-----------| | 638 * |------|-----------| |
| 645 * |name:how*|The project's name starts with "how".| | 639 * |name:how*|The project's name starts with "how".| |
| 646 * |name:Howl|The project's name is `Howl` or `howl`.| | 640 * |name:Howl|The project's name is `Howl` or `howl`.| |
| 647 * |name:HOWL|Equivalent to above.| | 641 * |name:HOWL|Equivalent to above.| |
| 648 * |NAME:howl|Equivalent to above.| | 642 * |NAME:howl|Equivalent to above.| |
| 649 * |labels.color:*|The project has the label `color`.| | 643 * |labels.color:*|The project has the label `color`.| |
| 650 * |labels.color:red|The project's label `color` has the value `red`.| | 644 * |labels.color:red|The project's label `color` has the value `red`.| |
| 651 * |labels.color:red labels.size:big|The project's label `color` has the | 645 * |labels.color:red labels.size:big|The project's label `color` has the |
| 652 * value `red` and its label `size` has the value `big`. | 646 * value `red` and its label `size` has the value `big`. |
| 653 * | 647 * |
| 654 * Optional. | 648 * Optional. |
| 655 * | 649 * |
| 656 * [pageToken] - A pagination token returned from a previous call to | 650 * [pageToken] - A pagination token returned from a previous call to |
| 657 * ListProjects | 651 * ListProjects |
| 658 * that indicates from where listing should continue. | 652 * that indicates from where listing should continue. |
| 659 * | 653 * |
| 660 * Optional. | 654 * Optional. |
| 661 * | 655 * |
| 656 * [pageSize] - The maximum number of Projects to return in the response. |
| 657 * The server can return fewer Projects than requested. |
| 658 * If unspecified, server picks an appropriate default. |
| 659 * |
| 660 * Optional. |
| 661 * |
| 662 * Completes with a [ListProjectsResponse]. | 662 * Completes with a [ListProjectsResponse]. |
| 663 * | 663 * |
| 664 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 664 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 665 * error. | 665 * error. |
| 666 * | 666 * |
| 667 * If the used [http.Client] completes with an error when making a REST call, | 667 * If the used [http.Client] completes with an error when making a REST call, |
| 668 * this method will complete with the same error. | 668 * this method will complete with the same error. |
| 669 */ | 669 */ |
| 670 async.Future<ListProjectsResponse> list({core.int pageSize, core.String filter
, core.String pageToken}) { | 670 async.Future<ListProjectsResponse> list({core.String filter, core.String pageT
oken, core.int pageSize}) { |
| 671 var _url = null; | 671 var _url = null; |
| 672 var _queryParams = new core.Map(); | 672 var _queryParams = new core.Map(); |
| 673 var _uploadMedia = null; | 673 var _uploadMedia = null; |
| 674 var _uploadOptions = null; | 674 var _uploadOptions = null; |
| 675 var _downloadOptions = commons.DownloadOptions.Metadata; | 675 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 676 var _body = null; | 676 var _body = null; |
| 677 | 677 |
| 678 if (pageSize != null) { | |
| 679 _queryParams["pageSize"] = ["${pageSize}"]; | |
| 680 } | |
| 681 if (filter != null) { | 678 if (filter != null) { |
| 682 _queryParams["filter"] = [filter]; | 679 _queryParams["filter"] = [filter]; |
| 683 } | 680 } |
| 684 if (pageToken != null) { | 681 if (pageToken != null) { |
| 685 _queryParams["pageToken"] = [pageToken]; | 682 _queryParams["pageToken"] = [pageToken]; |
| 686 } | 683 } |
| 684 if (pageSize != null) { |
| 685 _queryParams["pageSize"] = ["${pageSize}"]; |
| 686 } |
| 687 | 687 |
| 688 _url = 'v1beta1/projects'; | 688 _url = 'v1beta1/projects'; |
| 689 | 689 |
| 690 var _response = _requester.request(_url, | 690 var _response = _requester.request(_url, |
| 691 "GET", | 691 "GET", |
| 692 body: _body, | 692 body: _body, |
| 693 queryParams: _queryParams, | 693 queryParams: _queryParams, |
| 694 uploadOptions: _uploadOptions, | 694 uploadOptions: _uploadOptions, |
| 695 uploadMedia: _uploadMedia, | 695 uploadMedia: _uploadMedia, |
| 696 downloadOptions: _downloadOptions); | 696 downloadOptions: _downloadOptions); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 715 * + A user cannot be granted the owner role using `setIamPolicy()`. The user | 715 * + A user cannot be granted the owner role using `setIamPolicy()`. The user |
| 716 * must be granted the owner role using the Cloud Platform Console and must | 716 * must be granted the owner role using the Cloud Platform Console and must |
| 717 * explicitly accept the invitation. | 717 * explicitly accept the invitation. |
| 718 * | 718 * |
| 719 * + Invitations to grant the owner role cannot be sent using | 719 * + Invitations to grant the owner role cannot be sent using |
| 720 * `setIamPolicy()`; they must be sent only using the Cloud Platform Console. | 720 * `setIamPolicy()`; they must be sent only using the Cloud Platform Console. |
| 721 * | 721 * |
| 722 * + Membership changes that leave the project without any owners that have | 722 * + Membership changes that leave the project without any owners that have |
| 723 * accepted the Terms of Service (ToS) will be rejected. | 723 * accepted the Terms of Service (ToS) will be rejected. |
| 724 * | 724 * |
| 725 * + There must be at least one owner who has accepted the Terms of | 725 * + If the project is not part of an organization, there must be at least |
| 726 * Service (ToS) agreement in the policy. Calling `setIamPolicy()` to | 726 * one owner who has accepted the Terms of Service (ToS) agreement in the |
| 727 * remove the last ToS-accepted owner from the policy will fail. This | 727 * policy. Calling `setIamPolicy()` to remove the last ToS-accepted owner |
| 728 * restriction also applies to legacy projects that no longer have owners | 728 * from the policy will fail. This restriction also applies to legacy |
| 729 * who have accepted the ToS. Edits to IAM policies will be rejected until | 729 * projects that no longer have owners who have accepted the ToS. Edits to |
| 730 * the lack of a ToS-accepting owner is rectified. | 730 * IAM policies will be rejected until the lack of a ToS-accepting owner is |
| 731 * rectified. |
| 731 * | 732 * |
| 732 * + Calling this method requires enabling the App Engine Admin API. | 733 * + Calling this method requires enabling the App Engine Admin API. |
| 733 * | 734 * |
| 734 * Note: Removing service accounts from policies or changing their roles | 735 * Note: Removing service accounts from policies or changing their roles |
| 735 * can render services completely inoperable. It is important to understand | 736 * can render services completely inoperable. It is important to understand |
| 736 * how the service account is being used before removing or updating its | 737 * how the service account is being used before removing or updating its |
| 737 * roles. | 738 * roles. |
| 738 * | 739 * |
| 739 * [request] - The metadata request object. | 740 * [request] - The metadata request object. |
| 740 * | 741 * |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 936 ResourceId resourceId; | 937 ResourceId resourceId; |
| 937 | 938 |
| 938 Ancestor(); | 939 Ancestor(); |
| 939 | 940 |
| 940 Ancestor.fromJson(core.Map _json) { | 941 Ancestor.fromJson(core.Map _json) { |
| 941 if (_json.containsKey("resourceId")) { | 942 if (_json.containsKey("resourceId")) { |
| 942 resourceId = new ResourceId.fromJson(_json["resourceId"]); | 943 resourceId = new ResourceId.fromJson(_json["resourceId"]); |
| 943 } | 944 } |
| 944 } | 945 } |
| 945 | 946 |
| 946 core.Map toJson() { | 947 core.Map<core.String, core.Object> toJson() { |
| 947 var _json = new core.Map(); | 948 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 948 if (resourceId != null) { | 949 if (resourceId != null) { |
| 949 _json["resourceId"] = (resourceId).toJson(); | 950 _json["resourceId"] = (resourceId).toJson(); |
| 950 } | 951 } |
| 951 return _json; | 952 return _json; |
| 952 } | 953 } |
| 953 } | 954 } |
| 954 | 955 |
| 955 /** | 956 /** |
| 956 * Specifies the audit configuration for a service. | 957 * Specifies the audit configuration for a service. |
| 957 * The configuration determines which permission types are logged, and what | 958 * The configuration determines which permission types are logged, and what |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1022 | 1023 |
| 1023 AuditConfig.fromJson(core.Map _json) { | 1024 AuditConfig.fromJson(core.Map _json) { |
| 1024 if (_json.containsKey("auditLogConfigs")) { | 1025 if (_json.containsKey("auditLogConfigs")) { |
| 1025 auditLogConfigs = _json["auditLogConfigs"].map((value) => new AuditLogConf
ig.fromJson(value)).toList(); | 1026 auditLogConfigs = _json["auditLogConfigs"].map((value) => new AuditLogConf
ig.fromJson(value)).toList(); |
| 1026 } | 1027 } |
| 1027 if (_json.containsKey("service")) { | 1028 if (_json.containsKey("service")) { |
| 1028 service = _json["service"]; | 1029 service = _json["service"]; |
| 1029 } | 1030 } |
| 1030 } | 1031 } |
| 1031 | 1032 |
| 1032 core.Map toJson() { | 1033 core.Map<core.String, core.Object> toJson() { |
| 1033 var _json = new core.Map(); | 1034 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1034 if (auditLogConfigs != null) { | 1035 if (auditLogConfigs != null) { |
| 1035 _json["auditLogConfigs"] = auditLogConfigs.map((value) => (value).toJson()
).toList(); | 1036 _json["auditLogConfigs"] = auditLogConfigs.map((value) => (value).toJson()
).toList(); |
| 1036 } | 1037 } |
| 1037 if (service != null) { | 1038 if (service != null) { |
| 1038 _json["service"] = service; | 1039 _json["service"] = service; |
| 1039 } | 1040 } |
| 1040 return _json; | 1041 return _json; |
| 1041 } | 1042 } |
| 1042 } | 1043 } |
| 1043 | 1044 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1083 | 1084 |
| 1084 AuditLogConfig.fromJson(core.Map _json) { | 1085 AuditLogConfig.fromJson(core.Map _json) { |
| 1085 if (_json.containsKey("exemptedMembers")) { | 1086 if (_json.containsKey("exemptedMembers")) { |
| 1086 exemptedMembers = _json["exemptedMembers"]; | 1087 exemptedMembers = _json["exemptedMembers"]; |
| 1087 } | 1088 } |
| 1088 if (_json.containsKey("logType")) { | 1089 if (_json.containsKey("logType")) { |
| 1089 logType = _json["logType"]; | 1090 logType = _json["logType"]; |
| 1090 } | 1091 } |
| 1091 } | 1092 } |
| 1092 | 1093 |
| 1093 core.Map toJson() { | 1094 core.Map<core.String, core.Object> toJson() { |
| 1094 var _json = new core.Map(); | 1095 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1095 if (exemptedMembers != null) { | 1096 if (exemptedMembers != null) { |
| 1096 _json["exemptedMembers"] = exemptedMembers; | 1097 _json["exemptedMembers"] = exemptedMembers; |
| 1097 } | 1098 } |
| 1098 if (logType != null) { | 1099 if (logType != null) { |
| 1099 _json["logType"] = logType; | 1100 _json["logType"] = logType; |
| 1100 } | 1101 } |
| 1101 return _json; | 1102 return _json; |
| 1102 } | 1103 } |
| 1103 } | 1104 } |
| 1104 | 1105 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1140 | 1141 |
| 1141 Binding.fromJson(core.Map _json) { | 1142 Binding.fromJson(core.Map _json) { |
| 1142 if (_json.containsKey("members")) { | 1143 if (_json.containsKey("members")) { |
| 1143 members = _json["members"]; | 1144 members = _json["members"]; |
| 1144 } | 1145 } |
| 1145 if (_json.containsKey("role")) { | 1146 if (_json.containsKey("role")) { |
| 1146 role = _json["role"]; | 1147 role = _json["role"]; |
| 1147 } | 1148 } |
| 1148 } | 1149 } |
| 1149 | 1150 |
| 1150 core.Map toJson() { | 1151 core.Map<core.String, core.Object> toJson() { |
| 1151 var _json = new core.Map(); | 1152 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1152 if (members != null) { | 1153 if (members != null) { |
| 1153 _json["members"] = members; | 1154 _json["members"] = members; |
| 1154 } | 1155 } |
| 1155 if (role != null) { | 1156 if (role != null) { |
| 1156 _json["role"] = role; | 1157 _json["role"] = role; |
| 1157 } | 1158 } |
| 1158 return _json; | 1159 return _json; |
| 1159 } | 1160 } |
| 1160 } | 1161 } |
| 1161 | 1162 |
| 1162 /** | 1163 /** |
| 1163 * A generic empty message that you can re-use to avoid defining duplicated | 1164 * A generic empty message that you can re-use to avoid defining duplicated |
| 1164 * empty messages in your APIs. A typical example is to use it as the request | 1165 * empty messages in your APIs. A typical example is to use it as the request |
| 1165 * or the response type of an API method. For instance: | 1166 * or the response type of an API method. For instance: |
| 1166 * | 1167 * |
| 1167 * service Foo { | 1168 * service Foo { |
| 1168 * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); | 1169 * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); |
| 1169 * } | 1170 * } |
| 1170 * | 1171 * |
| 1171 * The JSON representation for `Empty` is empty JSON object `{}`. | 1172 * The JSON representation for `Empty` is empty JSON object `{}`. |
| 1172 */ | 1173 */ |
| 1173 class Empty { | 1174 class Empty { |
| 1174 | 1175 |
| 1175 Empty(); | 1176 Empty(); |
| 1176 | 1177 |
| 1177 Empty.fromJson(core.Map _json) { | 1178 Empty.fromJson(core.Map _json) { |
| 1178 } | 1179 } |
| 1179 | 1180 |
| 1180 core.Map toJson() { | 1181 core.Map<core.String, core.Object> toJson() { |
| 1181 var _json = new core.Map(); | 1182 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1182 return _json; | 1183 return _json; |
| 1183 } | 1184 } |
| 1184 } | 1185 } |
| 1185 | 1186 |
| 1186 /** Metadata describing a long running folder operation */ | 1187 /** Metadata describing a long running folder operation */ |
| 1187 class FolderOperation { | 1188 class FolderOperation { |
| 1188 /** | 1189 /** |
| 1189 * The resource name of the folder or organization we are either creating | 1190 * The resource name of the folder or organization we are either creating |
| 1190 * the folder under or moving the folder to. | 1191 * the folder under or moving the folder to. |
| 1191 */ | 1192 */ |
| (...skipping 24 matching lines...) Expand all Loading... |
| 1216 displayName = _json["displayName"]; | 1217 displayName = _json["displayName"]; |
| 1217 } | 1218 } |
| 1218 if (_json.containsKey("operationType")) { | 1219 if (_json.containsKey("operationType")) { |
| 1219 operationType = _json["operationType"]; | 1220 operationType = _json["operationType"]; |
| 1220 } | 1221 } |
| 1221 if (_json.containsKey("sourceParent")) { | 1222 if (_json.containsKey("sourceParent")) { |
| 1222 sourceParent = _json["sourceParent"]; | 1223 sourceParent = _json["sourceParent"]; |
| 1223 } | 1224 } |
| 1224 } | 1225 } |
| 1225 | 1226 |
| 1226 core.Map toJson() { | 1227 core.Map<core.String, core.Object> toJson() { |
| 1227 var _json = new core.Map(); | 1228 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1228 if (destinationParent != null) { | 1229 if (destinationParent != null) { |
| 1229 _json["destinationParent"] = destinationParent; | 1230 _json["destinationParent"] = destinationParent; |
| 1230 } | 1231 } |
| 1231 if (displayName != null) { | 1232 if (displayName != null) { |
| 1232 _json["displayName"] = displayName; | 1233 _json["displayName"] = displayName; |
| 1233 } | 1234 } |
| 1234 if (operationType != null) { | 1235 if (operationType != null) { |
| 1235 _json["operationType"] = operationType; | 1236 _json["operationType"] = operationType; |
| 1236 } | 1237 } |
| 1237 if (sourceParent != null) { | 1238 if (sourceParent != null) { |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1271 core.String errorMessageId; | 1272 core.String errorMessageId; |
| 1272 | 1273 |
| 1273 FolderOperationError(); | 1274 FolderOperationError(); |
| 1274 | 1275 |
| 1275 FolderOperationError.fromJson(core.Map _json) { | 1276 FolderOperationError.fromJson(core.Map _json) { |
| 1276 if (_json.containsKey("errorMessageId")) { | 1277 if (_json.containsKey("errorMessageId")) { |
| 1277 errorMessageId = _json["errorMessageId"]; | 1278 errorMessageId = _json["errorMessageId"]; |
| 1278 } | 1279 } |
| 1279 } | 1280 } |
| 1280 | 1281 |
| 1281 core.Map toJson() { | 1282 core.Map<core.String, core.Object> toJson() { |
| 1282 var _json = new core.Map(); | 1283 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1283 if (errorMessageId != null) { | 1284 if (errorMessageId != null) { |
| 1284 _json["errorMessageId"] = errorMessageId; | 1285 _json["errorMessageId"] = errorMessageId; |
| 1285 } | 1286 } |
| 1286 return _json; | 1287 return _json; |
| 1287 } | 1288 } |
| 1288 } | 1289 } |
| 1289 | 1290 |
| 1290 /** | 1291 /** |
| 1291 * The request sent to the | 1292 * The request sent to the |
| 1292 * GetAncestry | 1293 * GetAncestry |
| 1293 * method. | 1294 * method. |
| 1294 */ | 1295 */ |
| 1295 class GetAncestryRequest { | 1296 class GetAncestryRequest { |
| 1296 | 1297 |
| 1297 GetAncestryRequest(); | 1298 GetAncestryRequest(); |
| 1298 | 1299 |
| 1299 GetAncestryRequest.fromJson(core.Map _json) { | 1300 GetAncestryRequest.fromJson(core.Map _json) { |
| 1300 } | 1301 } |
| 1301 | 1302 |
| 1302 core.Map toJson() { | 1303 core.Map<core.String, core.Object> toJson() { |
| 1303 var _json = new core.Map(); | 1304 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1304 return _json; | 1305 return _json; |
| 1305 } | 1306 } |
| 1306 } | 1307 } |
| 1307 | 1308 |
| 1308 /** Response from the GetAncestry method. */ | 1309 /** Response from the GetAncestry method. */ |
| 1309 class GetAncestryResponse { | 1310 class GetAncestryResponse { |
| 1310 /** | 1311 /** |
| 1311 * Ancestors are ordered from bottom to top of the resource hierarchy. The | 1312 * Ancestors are ordered from bottom to top of the resource hierarchy. The |
| 1312 * first ancestor is the project itself, followed by the project's parent, | 1313 * first ancestor is the project itself, followed by the project's parent, |
| 1313 * etc. | 1314 * etc. |
| 1314 */ | 1315 */ |
| 1315 core.List<Ancestor> ancestor; | 1316 core.List<Ancestor> ancestor; |
| 1316 | 1317 |
| 1317 GetAncestryResponse(); | 1318 GetAncestryResponse(); |
| 1318 | 1319 |
| 1319 GetAncestryResponse.fromJson(core.Map _json) { | 1320 GetAncestryResponse.fromJson(core.Map _json) { |
| 1320 if (_json.containsKey("ancestor")) { | 1321 if (_json.containsKey("ancestor")) { |
| 1321 ancestor = _json["ancestor"].map((value) => new Ancestor.fromJson(value)).
toList(); | 1322 ancestor = _json["ancestor"].map((value) => new Ancestor.fromJson(value)).
toList(); |
| 1322 } | 1323 } |
| 1323 } | 1324 } |
| 1324 | 1325 |
| 1325 core.Map toJson() { | 1326 core.Map<core.String, core.Object> toJson() { |
| 1326 var _json = new core.Map(); | 1327 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1327 if (ancestor != null) { | 1328 if (ancestor != null) { |
| 1328 _json["ancestor"] = ancestor.map((value) => (value).toJson()).toList(); | 1329 _json["ancestor"] = ancestor.map((value) => (value).toJson()).toList(); |
| 1329 } | 1330 } |
| 1330 return _json; | 1331 return _json; |
| 1331 } | 1332 } |
| 1332 } | 1333 } |
| 1333 | 1334 |
| 1334 /** Request message for `GetIamPolicy` method. */ | 1335 /** Request message for `GetIamPolicy` method. */ |
| 1335 class GetIamPolicyRequest { | 1336 class GetIamPolicyRequest { |
| 1336 | 1337 |
| 1337 GetIamPolicyRequest(); | 1338 GetIamPolicyRequest(); |
| 1338 | 1339 |
| 1339 GetIamPolicyRequest.fromJson(core.Map _json) { | 1340 GetIamPolicyRequest.fromJson(core.Map _json) { |
| 1340 } | 1341 } |
| 1341 | 1342 |
| 1342 core.Map toJson() { | 1343 core.Map<core.String, core.Object> toJson() { |
| 1343 var _json = new core.Map(); | 1344 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1344 return _json; | 1345 return _json; |
| 1345 } | 1346 } |
| 1346 } | 1347 } |
| 1347 | 1348 |
| 1348 /** The response returned from the `ListOrganizations` method. */ | 1349 /** The response returned from the `ListOrganizations` method. */ |
| 1349 class ListOrganizationsResponse { | 1350 class ListOrganizationsResponse { |
| 1350 /** | 1351 /** |
| 1351 * A pagination token to be used to retrieve the next page of results. If the | 1352 * A pagination token to be used to retrieve the next page of results. If the |
| 1352 * result is too large to fit within the page size specified in the request, | 1353 * result is too large to fit within the page size specified in the request, |
| 1353 * this field will be set with a token that can be used to fetch the next page | 1354 * this field will be set with a token that can be used to fetch the next page |
| (...skipping 10 matching lines...) Expand all Loading... |
| 1364 | 1365 |
| 1365 ListOrganizationsResponse.fromJson(core.Map _json) { | 1366 ListOrganizationsResponse.fromJson(core.Map _json) { |
| 1366 if (_json.containsKey("nextPageToken")) { | 1367 if (_json.containsKey("nextPageToken")) { |
| 1367 nextPageToken = _json["nextPageToken"]; | 1368 nextPageToken = _json["nextPageToken"]; |
| 1368 } | 1369 } |
| 1369 if (_json.containsKey("organizations")) { | 1370 if (_json.containsKey("organizations")) { |
| 1370 organizations = _json["organizations"].map((value) => new Organization.fro
mJson(value)).toList(); | 1371 organizations = _json["organizations"].map((value) => new Organization.fro
mJson(value)).toList(); |
| 1371 } | 1372 } |
| 1372 } | 1373 } |
| 1373 | 1374 |
| 1374 core.Map toJson() { | 1375 core.Map<core.String, core.Object> toJson() { |
| 1375 var _json = new core.Map(); | 1376 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1376 if (nextPageToken != null) { | 1377 if (nextPageToken != null) { |
| 1377 _json["nextPageToken"] = nextPageToken; | 1378 _json["nextPageToken"] = nextPageToken; |
| 1378 } | 1379 } |
| 1379 if (organizations != null) { | 1380 if (organizations != null) { |
| 1380 _json["organizations"] = organizations.map((value) => (value).toJson()).to
List(); | 1381 _json["organizations"] = organizations.map((value) => (value).toJson()).to
List(); |
| 1381 } | 1382 } |
| 1382 return _json; | 1383 return _json; |
| 1383 } | 1384 } |
| 1384 } | 1385 } |
| 1385 | 1386 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1417 | 1418 |
| 1418 ListProjectsResponse.fromJson(core.Map _json) { | 1419 ListProjectsResponse.fromJson(core.Map _json) { |
| 1419 if (_json.containsKey("nextPageToken")) { | 1420 if (_json.containsKey("nextPageToken")) { |
| 1420 nextPageToken = _json["nextPageToken"]; | 1421 nextPageToken = _json["nextPageToken"]; |
| 1421 } | 1422 } |
| 1422 if (_json.containsKey("projects")) { | 1423 if (_json.containsKey("projects")) { |
| 1423 projects = _json["projects"].map((value) => new Project.fromJson(value)).t
oList(); | 1424 projects = _json["projects"].map((value) => new Project.fromJson(value)).t
oList(); |
| 1424 } | 1425 } |
| 1425 } | 1426 } |
| 1426 | 1427 |
| 1427 core.Map toJson() { | 1428 core.Map<core.String, core.Object> toJson() { |
| 1428 var _json = new core.Map(); | 1429 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1429 if (nextPageToken != null) { | 1430 if (nextPageToken != null) { |
| 1430 _json["nextPageToken"] = nextPageToken; | 1431 _json["nextPageToken"] = nextPageToken; |
| 1431 } | 1432 } |
| 1432 if (projects != null) { | 1433 if (projects != null) { |
| 1433 _json["projects"] = projects.map((value) => (value).toJson()).toList(); | 1434 _json["projects"] = projects.map((value) => (value).toJson()).toList(); |
| 1434 } | 1435 } |
| 1435 return _json; | 1436 return _json; |
| 1436 } | 1437 } |
| 1437 } | 1438 } |
| 1438 | 1439 |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1500 name = _json["name"]; | 1501 name = _json["name"]; |
| 1501 } | 1502 } |
| 1502 if (_json.containsKey("organizationId")) { | 1503 if (_json.containsKey("organizationId")) { |
| 1503 organizationId = _json["organizationId"]; | 1504 organizationId = _json["organizationId"]; |
| 1504 } | 1505 } |
| 1505 if (_json.containsKey("owner")) { | 1506 if (_json.containsKey("owner")) { |
| 1506 owner = new OrganizationOwner.fromJson(_json["owner"]); | 1507 owner = new OrganizationOwner.fromJson(_json["owner"]); |
| 1507 } | 1508 } |
| 1508 } | 1509 } |
| 1509 | 1510 |
| 1510 core.Map toJson() { | 1511 core.Map<core.String, core.Object> toJson() { |
| 1511 var _json = new core.Map(); | 1512 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1512 if (creationTime != null) { | 1513 if (creationTime != null) { |
| 1513 _json["creationTime"] = creationTime; | 1514 _json["creationTime"] = creationTime; |
| 1514 } | 1515 } |
| 1515 if (displayName != null) { | 1516 if (displayName != null) { |
| 1516 _json["displayName"] = displayName; | 1517 _json["displayName"] = displayName; |
| 1517 } | 1518 } |
| 1518 if (lifecycleState != null) { | 1519 if (lifecycleState != null) { |
| 1519 _json["lifecycleState"] = lifecycleState; | 1520 _json["lifecycleState"] = lifecycleState; |
| 1520 } | 1521 } |
| 1521 if (name != null) { | 1522 if (name != null) { |
| (...skipping 20 matching lines...) Expand all Loading... |
| 1542 core.String directoryCustomerId; | 1543 core.String directoryCustomerId; |
| 1543 | 1544 |
| 1544 OrganizationOwner(); | 1545 OrganizationOwner(); |
| 1545 | 1546 |
| 1546 OrganizationOwner.fromJson(core.Map _json) { | 1547 OrganizationOwner.fromJson(core.Map _json) { |
| 1547 if (_json.containsKey("directoryCustomerId")) { | 1548 if (_json.containsKey("directoryCustomerId")) { |
| 1548 directoryCustomerId = _json["directoryCustomerId"]; | 1549 directoryCustomerId = _json["directoryCustomerId"]; |
| 1549 } | 1550 } |
| 1550 } | 1551 } |
| 1551 | 1552 |
| 1552 core.Map toJson() { | 1553 core.Map<core.String, core.Object> toJson() { |
| 1553 var _json = new core.Map(); | 1554 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1554 if (directoryCustomerId != null) { | 1555 if (directoryCustomerId != null) { |
| 1555 _json["directoryCustomerId"] = directoryCustomerId; | 1556 _json["directoryCustomerId"] = directoryCustomerId; |
| 1556 } | 1557 } |
| 1557 return _json; | 1558 return _json; |
| 1558 } | 1559 } |
| 1559 } | 1560 } |
| 1560 | 1561 |
| 1561 /** | 1562 /** |
| 1562 * Defines an Identity and Access Management (IAM) policy. It is used to | 1563 * Defines an Identity and Access Management (IAM) policy. It is used to |
| 1563 * specify access control policies for Cloud Platform resources. | 1564 * specify access control policies for Cloud Platform resources. |
| (...skipping 25 matching lines...) Expand all Loading... |
| 1589 * } | 1590 * } |
| 1590 * | 1591 * |
| 1591 * For a description of IAM and its features, see the | 1592 * For a description of IAM and its features, see the |
| 1592 * [IAM developer's guide](https://cloud.google.com/iam). | 1593 * [IAM developer's guide](https://cloud.google.com/iam). |
| 1593 */ | 1594 */ |
| 1594 class Policy { | 1595 class Policy { |
| 1595 /** Specifies cloud audit logging configuration for this policy. */ | 1596 /** Specifies cloud audit logging configuration for this policy. */ |
| 1596 core.List<AuditConfig> auditConfigs; | 1597 core.List<AuditConfig> auditConfigs; |
| 1597 /** | 1598 /** |
| 1598 * Associates a list of `members` to a `role`. | 1599 * Associates a list of `members` to a `role`. |
| 1599 * Multiple `bindings` must not be specified for the same `role`. | |
| 1600 * `bindings` with no members will result in an error. | 1600 * `bindings` with no members will result in an error. |
| 1601 */ | 1601 */ |
| 1602 core.List<Binding> bindings; | 1602 core.List<Binding> bindings; |
| 1603 /** | 1603 /** |
| 1604 * `etag` is used for optimistic concurrency control as a way to help | 1604 * `etag` is used for optimistic concurrency control as a way to help |
| 1605 * prevent simultaneous updates of a policy from overwriting each other. | 1605 * prevent simultaneous updates of a policy from overwriting each other. |
| 1606 * It is strongly suggested that systems make use of the `etag` in the | 1606 * It is strongly suggested that systems make use of the `etag` in the |
| 1607 * read-modify-write cycle to perform policy updates in order to avoid race | 1607 * read-modify-write cycle to perform policy updates in order to avoid race |
| 1608 * conditions: An `etag` is returned in the response to `getIamPolicy`, and | 1608 * conditions: An `etag` is returned in the response to `getIamPolicy`, and |
| 1609 * systems are expected to put that etag in the request to `setIamPolicy` to | 1609 * systems are expected to put that etag in the request to `setIamPolicy` to |
| (...skipping 23 matching lines...) Expand all Loading... |
| 1633 bindings = _json["bindings"].map((value) => new Binding.fromJson(value)).t
oList(); | 1633 bindings = _json["bindings"].map((value) => new Binding.fromJson(value)).t
oList(); |
| 1634 } | 1634 } |
| 1635 if (_json.containsKey("etag")) { | 1635 if (_json.containsKey("etag")) { |
| 1636 etag = _json["etag"]; | 1636 etag = _json["etag"]; |
| 1637 } | 1637 } |
| 1638 if (_json.containsKey("version")) { | 1638 if (_json.containsKey("version")) { |
| 1639 version = _json["version"]; | 1639 version = _json["version"]; |
| 1640 } | 1640 } |
| 1641 } | 1641 } |
| 1642 | 1642 |
| 1643 core.Map toJson() { | 1643 core.Map<core.String, core.Object> toJson() { |
| 1644 var _json = new core.Map(); | 1644 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1645 if (auditConfigs != null) { | 1645 if (auditConfigs != null) { |
| 1646 _json["auditConfigs"] = auditConfigs.map((value) => (value).toJson()).toLi
st(); | 1646 _json["auditConfigs"] = auditConfigs.map((value) => (value).toJson()).toLi
st(); |
| 1647 } | 1647 } |
| 1648 if (bindings != null) { | 1648 if (bindings != null) { |
| 1649 _json["bindings"] = bindings.map((value) => (value).toJson()).toList(); | 1649 _json["bindings"] = bindings.map((value) => (value).toJson()).toList(); |
| 1650 } | 1650 } |
| 1651 if (etag != null) { | 1651 if (etag != null) { |
| 1652 _json["etag"] = etag; | 1652 _json["etag"] = etag; |
| 1653 } | 1653 } |
| 1654 if (version != null) { | 1654 if (version != null) { |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1763 parent = new ResourceId.fromJson(_json["parent"]); | 1763 parent = new ResourceId.fromJson(_json["parent"]); |
| 1764 } | 1764 } |
| 1765 if (_json.containsKey("projectId")) { | 1765 if (_json.containsKey("projectId")) { |
| 1766 projectId = _json["projectId"]; | 1766 projectId = _json["projectId"]; |
| 1767 } | 1767 } |
| 1768 if (_json.containsKey("projectNumber")) { | 1768 if (_json.containsKey("projectNumber")) { |
| 1769 projectNumber = _json["projectNumber"]; | 1769 projectNumber = _json["projectNumber"]; |
| 1770 } | 1770 } |
| 1771 } | 1771 } |
| 1772 | 1772 |
| 1773 core.Map toJson() { | 1773 core.Map<core.String, core.Object> toJson() { |
| 1774 var _json = new core.Map(); | 1774 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1775 if (createTime != null) { | 1775 if (createTime != null) { |
| 1776 _json["createTime"] = createTime; | 1776 _json["createTime"] = createTime; |
| 1777 } | 1777 } |
| 1778 if (labels != null) { | 1778 if (labels != null) { |
| 1779 _json["labels"] = labels; | 1779 _json["labels"] = labels; |
| 1780 } | 1780 } |
| 1781 if (lifecycleState != null) { | 1781 if (lifecycleState != null) { |
| 1782 _json["lifecycleState"] = lifecycleState; | 1782 _json["lifecycleState"] = lifecycleState; |
| 1783 } | 1783 } |
| 1784 if (name != null) { | 1784 if (name != null) { |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1821 createTime = _json["createTime"]; | 1821 createTime = _json["createTime"]; |
| 1822 } | 1822 } |
| 1823 if (_json.containsKey("gettable")) { | 1823 if (_json.containsKey("gettable")) { |
| 1824 gettable = _json["gettable"]; | 1824 gettable = _json["gettable"]; |
| 1825 } | 1825 } |
| 1826 if (_json.containsKey("ready")) { | 1826 if (_json.containsKey("ready")) { |
| 1827 ready = _json["ready"]; | 1827 ready = _json["ready"]; |
| 1828 } | 1828 } |
| 1829 } | 1829 } |
| 1830 | 1830 |
| 1831 core.Map toJson() { | 1831 core.Map<core.String, core.Object> toJson() { |
| 1832 var _json = new core.Map(); | 1832 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1833 if (createTime != null) { | 1833 if (createTime != null) { |
| 1834 _json["createTime"] = createTime; | 1834 _json["createTime"] = createTime; |
| 1835 } | 1835 } |
| 1836 if (gettable != null) { | 1836 if (gettable != null) { |
| 1837 _json["gettable"] = gettable; | 1837 _json["gettable"] = gettable; |
| 1838 } | 1838 } |
| 1839 if (ready != null) { | 1839 if (ready != null) { |
| 1840 _json["ready"] = ready; | 1840 _json["ready"] = ready; |
| 1841 } | 1841 } |
| 1842 return _json; | 1842 return _json; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 1865 | 1865 |
| 1866 ResourceId.fromJson(core.Map _json) { | 1866 ResourceId.fromJson(core.Map _json) { |
| 1867 if (_json.containsKey("id")) { | 1867 if (_json.containsKey("id")) { |
| 1868 id = _json["id"]; | 1868 id = _json["id"]; |
| 1869 } | 1869 } |
| 1870 if (_json.containsKey("type")) { | 1870 if (_json.containsKey("type")) { |
| 1871 type = _json["type"]; | 1871 type = _json["type"]; |
| 1872 } | 1872 } |
| 1873 } | 1873 } |
| 1874 | 1874 |
| 1875 core.Map toJson() { | 1875 core.Map<core.String, core.Object> toJson() { |
| 1876 var _json = new core.Map(); | 1876 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1877 if (id != null) { | 1877 if (id != null) { |
| 1878 _json["id"] = id; | 1878 _json["id"] = id; |
| 1879 } | 1879 } |
| 1880 if (type != null) { | 1880 if (type != null) { |
| 1881 _json["type"] = type; | 1881 _json["type"] = type; |
| 1882 } | 1882 } |
| 1883 return _json; | 1883 return _json; |
| 1884 } | 1884 } |
| 1885 } | 1885 } |
| 1886 | 1886 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 1906 | 1906 |
| 1907 SetIamPolicyRequest.fromJson(core.Map _json) { | 1907 SetIamPolicyRequest.fromJson(core.Map _json) { |
| 1908 if (_json.containsKey("policy")) { | 1908 if (_json.containsKey("policy")) { |
| 1909 policy = new Policy.fromJson(_json["policy"]); | 1909 policy = new Policy.fromJson(_json["policy"]); |
| 1910 } | 1910 } |
| 1911 if (_json.containsKey("updateMask")) { | 1911 if (_json.containsKey("updateMask")) { |
| 1912 updateMask = _json["updateMask"]; | 1912 updateMask = _json["updateMask"]; |
| 1913 } | 1913 } |
| 1914 } | 1914 } |
| 1915 | 1915 |
| 1916 core.Map toJson() { | 1916 core.Map<core.String, core.Object> toJson() { |
| 1917 var _json = new core.Map(); | 1917 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1918 if (policy != null) { | 1918 if (policy != null) { |
| 1919 _json["policy"] = (policy).toJson(); | 1919 _json["policy"] = (policy).toJson(); |
| 1920 } | 1920 } |
| 1921 if (updateMask != null) { | 1921 if (updateMask != null) { |
| 1922 _json["updateMask"] = updateMask; | 1922 _json["updateMask"] = updateMask; |
| 1923 } | 1923 } |
| 1924 return _json; | 1924 return _json; |
| 1925 } | 1925 } |
| 1926 } | 1926 } |
| 1927 | 1927 |
| 1928 /** Request message for `TestIamPermissions` method. */ | 1928 /** Request message for `TestIamPermissions` method. */ |
| 1929 class TestIamPermissionsRequest { | 1929 class TestIamPermissionsRequest { |
| 1930 /** | 1930 /** |
| 1931 * The set of permissions to check for the `resource`. Permissions with | 1931 * The set of permissions to check for the `resource`. Permissions with |
| 1932 * wildcards (such as '*' or 'storage.*') are not allowed. For more | 1932 * wildcards (such as '*' or 'storage.*') are not allowed. For more |
| 1933 * information see | 1933 * information see |
| 1934 * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). | 1934 * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). |
| 1935 */ | 1935 */ |
| 1936 core.List<core.String> permissions; | 1936 core.List<core.String> permissions; |
| 1937 | 1937 |
| 1938 TestIamPermissionsRequest(); | 1938 TestIamPermissionsRequest(); |
| 1939 | 1939 |
| 1940 TestIamPermissionsRequest.fromJson(core.Map _json) { | 1940 TestIamPermissionsRequest.fromJson(core.Map _json) { |
| 1941 if (_json.containsKey("permissions")) { | 1941 if (_json.containsKey("permissions")) { |
| 1942 permissions = _json["permissions"]; | 1942 permissions = _json["permissions"]; |
| 1943 } | 1943 } |
| 1944 } | 1944 } |
| 1945 | 1945 |
| 1946 core.Map toJson() { | 1946 core.Map<core.String, core.Object> toJson() { |
| 1947 var _json = new core.Map(); | 1947 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1948 if (permissions != null) { | 1948 if (permissions != null) { |
| 1949 _json["permissions"] = permissions; | 1949 _json["permissions"] = permissions; |
| 1950 } | 1950 } |
| 1951 return _json; | 1951 return _json; |
| 1952 } | 1952 } |
| 1953 } | 1953 } |
| 1954 | 1954 |
| 1955 /** Response message for `TestIamPermissions` method. */ | 1955 /** Response message for `TestIamPermissions` method. */ |
| 1956 class TestIamPermissionsResponse { | 1956 class TestIamPermissionsResponse { |
| 1957 /** | 1957 /** |
| 1958 * A subset of `TestPermissionsRequest.permissions` that the caller is | 1958 * A subset of `TestPermissionsRequest.permissions` that the caller is |
| 1959 * allowed. | 1959 * allowed. |
| 1960 */ | 1960 */ |
| 1961 core.List<core.String> permissions; | 1961 core.List<core.String> permissions; |
| 1962 | 1962 |
| 1963 TestIamPermissionsResponse(); | 1963 TestIamPermissionsResponse(); |
| 1964 | 1964 |
| 1965 TestIamPermissionsResponse.fromJson(core.Map _json) { | 1965 TestIamPermissionsResponse.fromJson(core.Map _json) { |
| 1966 if (_json.containsKey("permissions")) { | 1966 if (_json.containsKey("permissions")) { |
| 1967 permissions = _json["permissions"]; | 1967 permissions = _json["permissions"]; |
| 1968 } | 1968 } |
| 1969 } | 1969 } |
| 1970 | 1970 |
| 1971 core.Map toJson() { | 1971 core.Map<core.String, core.Object> toJson() { |
| 1972 var _json = new core.Map(); | 1972 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1973 if (permissions != null) { | 1973 if (permissions != null) { |
| 1974 _json["permissions"] = permissions; | 1974 _json["permissions"] = permissions; |
| 1975 } | 1975 } |
| 1976 return _json; | 1976 return _json; |
| 1977 } | 1977 } |
| 1978 } | 1978 } |
| 1979 | 1979 |
| 1980 /** | 1980 /** |
| 1981 * The request sent to the UndeleteProject | 1981 * The request sent to the UndeleteProject |
| 1982 * method. | 1982 * method. |
| 1983 */ | 1983 */ |
| 1984 class UndeleteProjectRequest { | 1984 class UndeleteProjectRequest { |
| 1985 | 1985 |
| 1986 UndeleteProjectRequest(); | 1986 UndeleteProjectRequest(); |
| 1987 | 1987 |
| 1988 UndeleteProjectRequest.fromJson(core.Map _json) { | 1988 UndeleteProjectRequest.fromJson(core.Map _json) { |
| 1989 } | 1989 } |
| 1990 | 1990 |
| 1991 core.Map toJson() { | 1991 core.Map<core.String, core.Object> toJson() { |
| 1992 var _json = new core.Map(); | 1992 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1993 return _json; | 1993 return _json; |
| 1994 } | 1994 } |
| 1995 } | 1995 } |
| OLD | NEW |