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 29 matching lines...) Expand all Loading... |
40 final commons.ApiRequester _requester; | 40 final commons.ApiRequester _requester; |
41 | 41 |
42 OrganizationsResourceApi(commons.ApiRequester client) : | 42 OrganizationsResourceApi(commons.ApiRequester client) : |
43 _requester = client; | 43 _requester = client; |
44 | 44 |
45 /** | 45 /** |
46 * Fetches an Organization resource identified by the specified resource name. | 46 * Fetches an Organization resource identified by the specified resource name. |
47 * | 47 * |
48 * Request parameters: | 48 * Request parameters: |
49 * | 49 * |
50 * [name] - The resource name of the Organization to fetch. Its format is | 50 * [name] - The resource name of the Organization to fetch, e.g. |
51 * "organizations/[organization_id]". For example, "organizations/1234". | 51 * "organizations/1234". |
52 * Value must have pattern "^organizations/[^/]*$". | 52 * Value must have pattern "^organizations/[^/]*$". |
53 * | 53 * |
54 * [organizationId] - The id of the Organization resource to fetch. This field | 54 * [organizationId] - The id of the Organization resource to fetch. This field |
55 * is deprecated and will be removed in v1. Use name instead. | 55 * is deprecated and will be removed in v1. Use name instead. |
56 * | 56 * |
57 * Completes with a [Organization]. | 57 * Completes with a [Organization]. |
58 * | 58 * |
59 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 59 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
60 * error. | 60 * error. |
61 * | 61 * |
(...skipping 23 matching lines...) Expand all Loading... |
85 queryParams: _queryParams, | 85 queryParams: _queryParams, |
86 uploadOptions: _uploadOptions, | 86 uploadOptions: _uploadOptions, |
87 uploadMedia: _uploadMedia, | 87 uploadMedia: _uploadMedia, |
88 downloadOptions: _downloadOptions); | 88 downloadOptions: _downloadOptions); |
89 return _response.then((data) => new Organization.fromJson(data)); | 89 return _response.then((data) => new Organization.fromJson(data)); |
90 } | 90 } |
91 | 91 |
92 /** | 92 /** |
93 * Gets the access control policy for an Organization resource. May be empty | 93 * Gets the access control policy for an Organization resource. May be empty |
94 * if no such policy or resource exists. The `resource` field should be the | 94 * if no such policy or resource exists. The `resource` field should be the |
95 * organization's resource name, e.g. "organizations/123". For backward | 95 * organization's resource name, e.g. "organizations/123". |
96 * compatibility, the resource provided may also be the organization_id. This | |
97 * will not be supported in v1. | |
98 * | 96 * |
99 * [request] - The metadata request object. | 97 * [request] - The metadata request object. |
100 * | 98 * |
101 * Request parameters: | 99 * Request parameters: |
102 * | 100 * |
103 * [resource] - REQUIRED: The resource for which the policy is being | 101 * [resource] - REQUIRED: The resource for which the policy is being |
104 * requested. `resource` is usually specified as a path, such as `projects / * | 102 * requested. `resource` is usually specified as a path. For example, a |
105 * project * / zones / * zone * / disks / * disk*`. The format for the path | 103 * Project resource is specified as `projects/{project}`. |
106 * specified in this value is resource specific and is specified in the | |
107 * `getIamPolicy` documentation. | |
108 * Value must have pattern "^organizations/[^/]*$". | 104 * Value must have pattern "^organizations/[^/]*$". |
109 * | 105 * |
110 * Completes with a [Policy]. | 106 * Completes with a [Policy]. |
111 * | 107 * |
112 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 108 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
113 * error. | 109 * error. |
114 * | 110 * |
115 * 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, |
116 * this method will complete with the same error. | 112 * this method will complete with the same error. |
117 */ | 113 */ |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 queryParams: _queryParams, | 195 queryParams: _queryParams, |
200 uploadOptions: _uploadOptions, | 196 uploadOptions: _uploadOptions, |
201 uploadMedia: _uploadMedia, | 197 uploadMedia: _uploadMedia, |
202 downloadOptions: _downloadOptions); | 198 downloadOptions: _downloadOptions); |
203 return _response.then((data) => new ListOrganizationsResponse.fromJson(data)
); | 199 return _response.then((data) => new ListOrganizationsResponse.fromJson(data)
); |
204 } | 200 } |
205 | 201 |
206 /** | 202 /** |
207 * Sets the access control policy on an Organization resource. Replaces any | 203 * Sets the access control policy on an Organization resource. Replaces any |
208 * existing policy. The `resource` field should be the organization's resource | 204 * existing policy. The `resource` field should be the organization's resource |
209 * name, e.g. "organizations/123". For backward compatibility, the resource | 205 * name, e.g. "organizations/123". |
210 * provided may also be the organization_id. This will not be supported in v1. | |
211 * | 206 * |
212 * [request] - The metadata request object. | 207 * [request] - The metadata request object. |
213 * | 208 * |
214 * Request parameters: | 209 * Request parameters: |
215 * | 210 * |
216 * [resource] - REQUIRED: The resource for which the policy is being | 211 * [resource] - REQUIRED: The resource for which the policy is being |
217 * specified. `resource` is usually specified as a path, such as `projects / * | 212 * specified. `resource` is usually specified as a path. For example, a |
218 * project * / zones / * zone * / disks / * disk*`. The format for the path | 213 * Project resource is specified as `projects/{project}`. |
219 * specified in this value is resource specific and is specified in the | |
220 * `setIamPolicy` documentation. | |
221 * Value must have pattern "^organizations/[^/]*$". | 214 * Value must have pattern "^organizations/[^/]*$". |
222 * | 215 * |
223 * Completes with a [Policy]. | 216 * Completes with a [Policy]. |
224 * | 217 * |
225 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 218 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
226 * error. | 219 * error. |
227 * | 220 * |
228 * If the used [http.Client] completes with an error when making a REST call, | 221 * If the used [http.Client] completes with an error when making a REST call, |
229 * this method will complete with the same error. | 222 * this method will complete with the same error. |
230 */ | 223 */ |
(...skipping 20 matching lines...) Expand all Loading... |
251 queryParams: _queryParams, | 244 queryParams: _queryParams, |
252 uploadOptions: _uploadOptions, | 245 uploadOptions: _uploadOptions, |
253 uploadMedia: _uploadMedia, | 246 uploadMedia: _uploadMedia, |
254 downloadOptions: _downloadOptions); | 247 downloadOptions: _downloadOptions); |
255 return _response.then((data) => new Policy.fromJson(data)); | 248 return _response.then((data) => new Policy.fromJson(data)); |
256 } | 249 } |
257 | 250 |
258 /** | 251 /** |
259 * Returns permissions that a caller has on the specified Organization. The | 252 * Returns permissions that a caller has on the specified Organization. The |
260 * `resource` field should be the organization's resource name, e.g. | 253 * `resource` field should be the organization's resource name, e.g. |
261 * "organizations/123". For backward compatibility, the resource provided may | 254 * "organizations/123". |
262 * also be the organization_id. This will not be supported in v1. | |
263 * | 255 * |
264 * [request] - The metadata request object. | 256 * [request] - The metadata request object. |
265 * | 257 * |
266 * Request parameters: | 258 * Request parameters: |
267 * | 259 * |
268 * [resource] - REQUIRED: The resource for which the policy detail is being | 260 * [resource] - REQUIRED: The resource for which the policy detail is being |
269 * requested. `resource` is usually specified as a path, such as `projects / * | 261 * requested. `resource` is usually specified as a path. For example, a |
270 * project * / zones / * zone * / disks / * disk*`. The format for the path | 262 * Project resource is specified as `projects/{project}`. |
271 * specified in this value is resource specific and is specified in the | |
272 * `testIamPermissions` documentation. | |
273 * Value must have pattern "^organizations/[^/]*$". | 263 * Value must have pattern "^organizations/[^/]*$". |
274 * | 264 * |
275 * Completes with a [TestIamPermissionsResponse]. | 265 * Completes with a [TestIamPermissionsResponse]. |
276 * | 266 * |
277 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 267 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
278 * error. | 268 * error. |
279 * | 269 * |
280 * If the used [http.Client] completes with an error when making a REST call, | 270 * If the used [http.Client] completes with an error when making a REST call, |
281 * this method will complete with the same error. | 271 * this method will complete with the same error. |
282 */ | 272 */ |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
366 /** | 356 /** |
367 * Creates a Project resource. Initially, the Project resource is owned by its | 357 * Creates a Project resource. Initially, the Project resource is owned by its |
368 * creator exclusively. The creator can later grant permission to others to | 358 * creator exclusively. The creator can later grant permission to others to |
369 * read or update the Project. Several APIs are activated automatically for | 359 * read or update the Project. Several APIs are activated automatically for |
370 * the Project, including Google Cloud Storage. | 360 * the Project, including Google Cloud Storage. |
371 * | 361 * |
372 * [request] - The metadata request object. | 362 * [request] - The metadata request object. |
373 * | 363 * |
374 * Request parameters: | 364 * Request parameters: |
375 * | 365 * |
| 366 * [useLegacyStack] - A safety hatch to opt out of the new reliable project |
| 367 * creation process. |
| 368 * |
376 * Completes with a [Project]. | 369 * Completes with a [Project]. |
377 * | 370 * |
378 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 371 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
379 * error. | 372 * error. |
380 * | 373 * |
381 * If the used [http.Client] completes with an error when making a REST call, | 374 * If the used [http.Client] completes with an error when making a REST call, |
382 * this method will complete with the same error. | 375 * this method will complete with the same error. |
383 */ | 376 */ |
384 async.Future<Project> create(Project request) { | 377 async.Future<Project> create(Project request, {core.bool useLegacyStack}) { |
385 var _url = null; | 378 var _url = null; |
386 var _queryParams = new core.Map(); | 379 var _queryParams = new core.Map(); |
387 var _uploadMedia = null; | 380 var _uploadMedia = null; |
388 var _uploadOptions = null; | 381 var _uploadOptions = null; |
389 var _downloadOptions = commons.DownloadOptions.Metadata; | 382 var _downloadOptions = commons.DownloadOptions.Metadata; |
390 var _body = null; | 383 var _body = null; |
391 | 384 |
392 if (request != null) { | 385 if (request != null) { |
393 _body = convert.JSON.encode((request).toJson()); | 386 _body = convert.JSON.encode((request).toJson()); |
394 } | 387 } |
| 388 if (useLegacyStack != null) { |
| 389 _queryParams["useLegacyStack"] = ["${useLegacyStack}"]; |
| 390 } |
395 | 391 |
396 _url = 'v1beta1/projects'; | 392 _url = 'v1beta1/projects'; |
397 | 393 |
398 var _response = _requester.request(_url, | 394 var _response = _requester.request(_url, |
399 "POST", | 395 "POST", |
400 body: _body, | 396 body: _body, |
401 queryParams: _queryParams, | 397 queryParams: _queryParams, |
402 uploadOptions: _uploadOptions, | 398 uploadOptions: _uploadOptions, |
403 uploadMedia: _uploadMedia, | 399 uploadMedia: _uploadMedia, |
404 downloadOptions: _downloadOptions); | 400 downloadOptions: _downloadOptions); |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
544 | 540 |
545 /** | 541 /** |
546 * Returns the IAM access control policy for the specified Project. Permission | 542 * Returns the IAM access control policy for the specified Project. Permission |
547 * is denied if the policy or the resource does not exist. | 543 * is denied if the policy or the resource does not exist. |
548 * | 544 * |
549 * [request] - The metadata request object. | 545 * [request] - The metadata request object. |
550 * | 546 * |
551 * Request parameters: | 547 * Request parameters: |
552 * | 548 * |
553 * [resource] - REQUIRED: The resource for which the policy is being | 549 * [resource] - REQUIRED: The resource for which the policy is being |
554 * requested. `resource` is usually specified as a path, such as `projects / * | 550 * requested. `resource` is usually specified as a path. For example, a |
555 * project * / zones / * zone * / disks / * disk*`. The format for the path | 551 * Project resource is specified as `projects/{project}`. |
556 * specified in this value is resource specific and is specified in the | |
557 * `getIamPolicy` documentation. | |
558 * | 552 * |
559 * Completes with a [Policy]. | 553 * Completes with a [Policy]. |
560 * | 554 * |
561 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 555 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
562 * error. | 556 * error. |
563 * | 557 * |
564 * If the used [http.Client] completes with an error when making a REST call, | 558 * If the used [http.Client] completes with an error when making a REST call, |
565 * this method will complete with the same error. | 559 * this method will complete with the same error. |
566 */ | 560 */ |
567 async.Future<Policy> getIamPolicy(GetIamPolicyRequest request, core.String res
ource) { | 561 async.Future<Policy> getIamPolicy(GetIamPolicyRequest request, core.String res
ource) { |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
661 * `allAuthenticatedUsers` as `members` in a `Binding` of a `Policy`. + The | 655 * `allAuthenticatedUsers` as `members` in a `Binding` of a `Policy`. + The |
662 * owner role can be granted only to `user` and `serviceAccount`. + Service | 656 * owner role can be granted only to `user` and `serviceAccount`. + Service |
663 * accounts can be made owners of a project directly without any restrictions. | 657 * accounts can be made owners of a project directly without any restrictions. |
664 * However, to be added as an owner, a user must be invited via Cloud Platform | 658 * However, to be added as an owner, a user must be invited via Cloud Platform |
665 * console and must accept the invitation. + A user cannot be granted the | 659 * console and must accept the invitation. + A user cannot be granted the |
666 * owner role using `setIamPolicy()`. The user must be granted the owner role | 660 * owner role using `setIamPolicy()`. The user must be granted the owner role |
667 * using the Cloud Platform Console and must explicitly accept the invitation. | 661 * using the Cloud Platform Console and must explicitly accept the invitation. |
668 * + Invitations to grant the owner role cannot be sent using | 662 * + Invitations to grant the owner role cannot be sent using |
669 * `setIamPolicy()`; they must be sent only using the Cloud Platform Console. | 663 * `setIamPolicy()`; they must be sent only using the Cloud Platform Console. |
670 * + Membership changes that leave the project without any owners that have | 664 * + Membership changes that leave the project without any owners that have |
671 * accepted the Terms of Service (ToS) will be rejected. + Members cannot be | 665 * accepted the Terms of Service (ToS) will be rejected. + There must be at |
672 * added to more than one role in the same policy. + There must be at least | 666 * least one owner who has accepted the Terms of Service (ToS) agreement in |
673 * one owner who has accepted the Terms of Service (ToS) agreement in the | 667 * the policy. Calling `setIamPolicy()` to to remove the last ToS-accepted |
674 * policy. Calling `setIamPolicy()` to to remove the last ToS-accepted owner | 668 * owner from the policy will fail. This restriction also applies to legacy |
675 * from the policy will fail. This restriction also applies to legacy projects | 669 * projects that no longer have owners who have accepted the ToS. Edits to IAM |
676 * that no longer have owners who have accepted the ToS. Edits to IAM policies | 670 * policies will be rejected until the lack of a ToS-accepting owner is |
677 * will be rejected until the lack of a ToS-accepting owner is rectified. + | 671 * rectified. + Calling this method requires enabling the App Engine Admin |
678 * Calling this method requires enabling the App Engine Admin API. Note: | 672 * API. Note: Removing service accounts from policies or changing their roles |
679 * Removing service accounts from policies or changing their roles can render | 673 * can render services completely inoperable. It is important to understand |
680 * services completely inoperable. It is important to understand how the | 674 * how the service account is being used before removing or updating its |
681 * service account is being used before removing or updating its roles. | 675 * roles. |
682 * | 676 * |
683 * [request] - The metadata request object. | 677 * [request] - The metadata request object. |
684 * | 678 * |
685 * Request parameters: | 679 * Request parameters: |
686 * | 680 * |
687 * [resource] - REQUIRED: The resource for which the policy is being | 681 * [resource] - REQUIRED: The resource for which the policy is being |
688 * specified. `resource` is usually specified as a path, such as `projects / * | 682 * specified. `resource` is usually specified as a path. For example, a |
689 * project * / zones / * zone * / disks / * disk*`. The format for the path | 683 * Project resource is specified as `projects/{project}`. |
690 * specified in this value is resource specific and is specified in the | |
691 * `setIamPolicy` documentation. | |
692 * | 684 * |
693 * Completes with a [Policy]. | 685 * Completes with a [Policy]. |
694 * | 686 * |
695 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 687 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
696 * error. | 688 * error. |
697 * | 689 * |
698 * If the used [http.Client] completes with an error when making a REST call, | 690 * If the used [http.Client] completes with an error when making a REST call, |
699 * this method will complete with the same error. | 691 * this method will complete with the same error. |
700 */ | 692 */ |
701 async.Future<Policy> setIamPolicy(SetIamPolicyRequest request, core.String res
ource) { | 693 async.Future<Policy> setIamPolicy(SetIamPolicyRequest request, core.String res
ource) { |
(...skipping 24 matching lines...) Expand all Loading... |
726 } | 718 } |
727 | 719 |
728 /** | 720 /** |
729 * Returns permissions that a caller has on the specified Project. | 721 * Returns permissions that a caller has on the specified Project. |
730 * | 722 * |
731 * [request] - The metadata request object. | 723 * [request] - The metadata request object. |
732 * | 724 * |
733 * Request parameters: | 725 * Request parameters: |
734 * | 726 * |
735 * [resource] - REQUIRED: The resource for which the policy detail is being | 727 * [resource] - REQUIRED: The resource for which the policy detail is being |
736 * requested. `resource` is usually specified as a path, such as `projects / * | 728 * requested. `resource` is usually specified as a path. For example, a |
737 * project * / zones / * zone * / disks / * disk*`. The format for the path | 729 * Project resource is specified as `projects/{project}`. |
738 * specified in this value is resource specific and is specified in the | |
739 * `testIamPermissions` documentation. | |
740 * | 730 * |
741 * Completes with a [TestIamPermissionsResponse]. | 731 * Completes with a [TestIamPermissionsResponse]. |
742 * | 732 * |
743 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 733 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
744 * error. | 734 * error. |
745 * | 735 * |
746 * If the used [http.Client] completes with an error when making a REST call, | 736 * If the used [http.Client] completes with an error when making a REST call, |
747 * this method will complete with the same error. | 737 * this method will complete with the same error. |
748 */ | 738 */ |
749 async.Future<TestIamPermissionsResponse> testIamPermissions(TestIamPermissions
Request request, core.String resource) { | 739 async.Future<TestIamPermissionsResponse> testIamPermissions(TestIamPermissions
Request request, core.String resource) { |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
953 | 943 |
954 Empty.fromJson(core.Map _json) { | 944 Empty.fromJson(core.Map _json) { |
955 } | 945 } |
956 | 946 |
957 core.Map toJson() { | 947 core.Map toJson() { |
958 var _json = new core.Map(); | 948 var _json = new core.Map(); |
959 return _json; | 949 return _json; |
960 } | 950 } |
961 } | 951 } |
962 | 952 |
| 953 /** Metadata describing a long running folder operation */ |
| 954 class FolderOperation { |
| 955 /** |
| 956 * The resource name of the folder or organization we are either creating the |
| 957 * folder under or moving the folder to. |
| 958 */ |
| 959 core.String destinationParent; |
| 960 /** The display name of the folder. */ |
| 961 core.String displayName; |
| 962 /** |
| 963 * The type of this operation. |
| 964 * Possible string values are: |
| 965 * - "OPERATION_TYPE_UNSPECIFIED" : A OPERATION_TYPE_UNSPECIFIED. |
| 966 * - "CREATE" : A CREATE. |
| 967 * - "MOVE" : A MOVE. |
| 968 */ |
| 969 core.String operationType; |
| 970 /** |
| 971 * The resource name of the folder's parent. Only applicable when the |
| 972 * operation_type is MOVE. |
| 973 */ |
| 974 core.String sourceParent; |
| 975 |
| 976 FolderOperation(); |
| 977 |
| 978 FolderOperation.fromJson(core.Map _json) { |
| 979 if (_json.containsKey("destinationParent")) { |
| 980 destinationParent = _json["destinationParent"]; |
| 981 } |
| 982 if (_json.containsKey("displayName")) { |
| 983 displayName = _json["displayName"]; |
| 984 } |
| 985 if (_json.containsKey("operationType")) { |
| 986 operationType = _json["operationType"]; |
| 987 } |
| 988 if (_json.containsKey("sourceParent")) { |
| 989 sourceParent = _json["sourceParent"]; |
| 990 } |
| 991 } |
| 992 |
| 993 core.Map toJson() { |
| 994 var _json = new core.Map(); |
| 995 if (destinationParent != null) { |
| 996 _json["destinationParent"] = destinationParent; |
| 997 } |
| 998 if (displayName != null) { |
| 999 _json["displayName"] = displayName; |
| 1000 } |
| 1001 if (operationType != null) { |
| 1002 _json["operationType"] = operationType; |
| 1003 } |
| 1004 if (sourceParent != null) { |
| 1005 _json["sourceParent"] = sourceParent; |
| 1006 } |
| 1007 return _json; |
| 1008 } |
| 1009 } |
| 1010 |
| 1011 /** A classification of the Folder Operation error. */ |
| 1012 class FolderOperationError { |
| 1013 /** |
| 1014 * The type of operation error experienced. |
| 1015 * Possible string values are: |
| 1016 * - "ERROR_TYPE_UNSPECIFIED" : A ERROR_TYPE_UNSPECIFIED. |
| 1017 * - "FOLDER_HEIGHT_VIOLATION" : A FOLDER_HEIGHT_VIOLATION. |
| 1018 * - "MAX_CHILD_FOLDERS_VIOLATION" : A MAX_CHILD_FOLDERS_VIOLATION. |
| 1019 * - "FOLDER_NAME_UNIQUENESS_VIOLATION" : A FOLDER_NAME_UNIQUENESS_VIOLATION. |
| 1020 * - "RESOURCE_DELETED" : A RESOURCE_DELETED. |
| 1021 * - "PARENT_DELETED" : A PARENT_DELETED. |
| 1022 * - "CYCLE_INTRODUCED_ERROR" : A CYCLE_INTRODUCED_ERROR. |
| 1023 * - "FOLDER_ALREADY_BEING_MOVED" : A FOLDER_ALREADY_BEING_MOVED. |
| 1024 * - "FOLDER_TO_DELETE_NON_EMPTY" : A FOLDER_TO_DELETE_NON_EMPTY. |
| 1025 */ |
| 1026 core.String errorMessageId; |
| 1027 |
| 1028 FolderOperationError(); |
| 1029 |
| 1030 FolderOperationError.fromJson(core.Map _json) { |
| 1031 if (_json.containsKey("errorMessageId")) { |
| 1032 errorMessageId = _json["errorMessageId"]; |
| 1033 } |
| 1034 } |
| 1035 |
| 1036 core.Map toJson() { |
| 1037 var _json = new core.Map(); |
| 1038 if (errorMessageId != null) { |
| 1039 _json["errorMessageId"] = errorMessageId; |
| 1040 } |
| 1041 return _json; |
| 1042 } |
| 1043 } |
| 1044 |
963 /** The request sent to the GetAncestry method. */ | 1045 /** The request sent to the GetAncestry method. */ |
964 class GetAncestryRequest { | 1046 class GetAncestryRequest { |
965 | 1047 |
966 GetAncestryRequest(); | 1048 GetAncestryRequest(); |
967 | 1049 |
968 GetAncestryRequest.fromJson(core.Map _json) { | 1050 GetAncestryRequest.fromJson(core.Map _json) { |
969 } | 1051 } |
970 | 1052 |
971 core.Map toJson() { | 1053 core.Map toJson() { |
972 var _json = new core.Map(); | 1054 var _json = new core.Map(); |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1101 * The root node in the resource hierarchy to which a particular entity's (e.g., | 1183 * The root node in the resource hierarchy to which a particular entity's (e.g., |
1102 * company) resources belong. | 1184 * company) resources belong. |
1103 */ | 1185 */ |
1104 class Organization { | 1186 class Organization { |
1105 /** | 1187 /** |
1106 * Timestamp when the Organization was created. Assigned by the server. | 1188 * Timestamp when the Organization was created. Assigned by the server. |
1107 * @OutputOnly | 1189 * @OutputOnly |
1108 */ | 1190 */ |
1109 core.String creationTime; | 1191 core.String creationTime; |
1110 /** | 1192 /** |
1111 * A friendly string to be used to refer to the Organization in the UI. This | 1193 * A friendly string to be used to refer to the Organization in the UI. |
1112 * field is required. | 1194 * Assigned by the server, set to the firm name of the Google For Work |
| 1195 * customer that owns this organization. @OutputOnly |
1113 */ | 1196 */ |
1114 core.String displayName; | 1197 core.String displayName; |
1115 /** | 1198 /** |
1116 * The organization's current lifecycle state. Assigned by the server. | 1199 * The organization's current lifecycle state. Assigned by the server. |
1117 * @OutputOnly | 1200 * @OutputOnly |
1118 * Possible string values are: | 1201 * Possible string values are: |
1119 * - "LIFECYCLE_STATE_UNSPECIFIED" : A LIFECYCLE_STATE_UNSPECIFIED. | 1202 * - "LIFECYCLE_STATE_UNSPECIFIED" : A LIFECYCLE_STATE_UNSPECIFIED. |
1120 * - "ACTIVE" : A ACTIVE. | 1203 * - "ACTIVE" : A ACTIVE. |
1121 * - "DELETE_REQUESTED" : A DELETE_REQUESTED. | 1204 * - "DELETE_REQUESTED" : A DELETE_REQUESTED. |
1122 */ | 1205 */ |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1383 _json["projectId"] = projectId; | 1466 _json["projectId"] = projectId; |
1384 } | 1467 } |
1385 if (projectNumber != null) { | 1468 if (projectNumber != null) { |
1386 _json["projectNumber"] = projectNumber; | 1469 _json["projectNumber"] = projectNumber; |
1387 } | 1470 } |
1388 return _json; | 1471 return _json; |
1389 } | 1472 } |
1390 } | 1473 } |
1391 | 1474 |
1392 /** | 1475 /** |
| 1476 * A status object which is used as the `metadata` field for the Operation |
| 1477 * returned by CreateProject. It provides insight for when significant phases of |
| 1478 * Project creation have completed. |
| 1479 */ |
| 1480 class ProjectCreationStatus { |
| 1481 /** Creation time of the project creation workflow. */ |
| 1482 core.String createTime; |
| 1483 /** |
| 1484 * True if the project can be retrieved using GetProject. No other operations |
| 1485 * on the project are guaranteed to work until the project creation is |
| 1486 * complete. |
| 1487 */ |
| 1488 core.bool gettable; |
| 1489 /** True if the project creation process is complete. */ |
| 1490 core.bool ready; |
| 1491 |
| 1492 ProjectCreationStatus(); |
| 1493 |
| 1494 ProjectCreationStatus.fromJson(core.Map _json) { |
| 1495 if (_json.containsKey("createTime")) { |
| 1496 createTime = _json["createTime"]; |
| 1497 } |
| 1498 if (_json.containsKey("gettable")) { |
| 1499 gettable = _json["gettable"]; |
| 1500 } |
| 1501 if (_json.containsKey("ready")) { |
| 1502 ready = _json["ready"]; |
| 1503 } |
| 1504 } |
| 1505 |
| 1506 core.Map toJson() { |
| 1507 var _json = new core.Map(); |
| 1508 if (createTime != null) { |
| 1509 _json["createTime"] = createTime; |
| 1510 } |
| 1511 if (gettable != null) { |
| 1512 _json["gettable"] = gettable; |
| 1513 } |
| 1514 if (ready != null) { |
| 1515 _json["ready"] = ready; |
| 1516 } |
| 1517 return _json; |
| 1518 } |
| 1519 } |
| 1520 |
| 1521 /** |
1393 * A container to reference an id for any resource type. A `resource` in Google | 1522 * A container to reference an id for any resource type. A `resource` in Google |
1394 * Cloud Platform is a generic term for something you (a developer) may want to | 1523 * Cloud Platform is a generic term for something you (a developer) may want to |
1395 * interact with through one of our API's. Some examples are an AppEngine app, a | 1524 * interact with through one of our API's. Some examples are an AppEngine app, a |
1396 * Compute Engine instance, a Cloud SQL database, and so on. | 1525 * Compute Engine instance, a Cloud SQL database, and so on. |
1397 */ | 1526 */ |
1398 class ResourceId { | 1527 class ResourceId { |
1399 /** | 1528 /** |
1400 * Required field for the type-specific id. This should correspond to the id | 1529 * Required field for the type-specific id. This should correspond to the id |
1401 * used in the type-specific API's. | 1530 * used in the type-specific API's. |
1402 */ | 1531 */ |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1454 } | 1583 } |
1455 return _json; | 1584 return _json; |
1456 } | 1585 } |
1457 } | 1586 } |
1458 | 1587 |
1459 /** Request message for `TestIamPermissions` method. */ | 1588 /** Request message for `TestIamPermissions` method. */ |
1460 class TestIamPermissionsRequest { | 1589 class TestIamPermissionsRequest { |
1461 /** | 1590 /** |
1462 * The set of permissions to check for the `resource`. Permissions with | 1591 * The set of permissions to check for the `resource`. Permissions with |
1463 * wildcards (such as '*' or 'storage.*') are not allowed. For more | 1592 * wildcards (such as '*' or 'storage.*') are not allowed. For more |
1464 * information see IAM Overview. | 1593 * information see [IAM |
| 1594 * Overview](https://cloud.google.com/iam/docs/overview#permissions). |
1465 */ | 1595 */ |
1466 core.List<core.String> permissions; | 1596 core.List<core.String> permissions; |
1467 | 1597 |
1468 TestIamPermissionsRequest(); | 1598 TestIamPermissionsRequest(); |
1469 | 1599 |
1470 TestIamPermissionsRequest.fromJson(core.Map _json) { | 1600 TestIamPermissionsRequest.fromJson(core.Map _json) { |
1471 if (_json.containsKey("permissions")) { | 1601 if (_json.containsKey("permissions")) { |
1472 permissions = _json["permissions"]; | 1602 permissions = _json["permissions"]; |
1473 } | 1603 } |
1474 } | 1604 } |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1513 UndeleteProjectRequest(); | 1643 UndeleteProjectRequest(); |
1514 | 1644 |
1515 UndeleteProjectRequest.fromJson(core.Map _json) { | 1645 UndeleteProjectRequest.fromJson(core.Map _json) { |
1516 } | 1646 } |
1517 | 1647 |
1518 core.Map toJson() { | 1648 core.Map toJson() { |
1519 var _json = new core.Map(); | 1649 var _json = new core.Map(); |
1520 return _json; | 1650 return _json; |
1521 } | 1651 } |
1522 } | 1652 } |
OLD | NEW |