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

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

Issue 2485703002: Api-roll 42: 2016-11-08 (Closed)
Patch Set: Created 4 years, 1 month 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 11 matching lines...) Expand all
22 /** View and manage your data across Google Cloud Platform services */ 22 /** View and manage your data across Google Cloud Platform services */
23 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf orm"; 23 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf orm";
24 24
25 /** View your data across Google Cloud Platform services */ 25 /** View your data across Google Cloud Platform services */
26 static const CloudPlatformReadOnlyScope = "https://www.googleapis.com/auth/clo ud-platform.read-only"; 26 static const CloudPlatformReadOnlyScope = "https://www.googleapis.com/auth/clo ud-platform.read-only";
27 27
28 28
29 final commons.ApiRequester _requester; 29 final commons.ApiRequester _requester;
30 30
31 OperationsResourceApi get operations => new OperationsResourceApi(_requester); 31 OperationsResourceApi get operations => new OperationsResourceApi(_requester);
32 OrganizationsResourceApi get organizations => new OrganizationsResourceApi(_re quester);
32 ProjectsResourceApi get projects => new ProjectsResourceApi(_requester); 33 ProjectsResourceApi get projects => new ProjectsResourceApi(_requester);
33 34
34 CloudresourcemanagerApi(http.Client client, {core.String rootUrl: "https://clo udresourcemanager.googleapis.com/", core.String servicePath: ""}) : 35 CloudresourcemanagerApi(http.Client client, {core.String rootUrl: "https://clo udresourcemanager.googleapis.com/", core.String servicePath: ""}) :
35 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A GENT); 36 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A GENT);
36 } 37 }
37 38
38 39
39 class OperationsResourceApi { 40 class OperationsResourceApi {
40 final commons.ApiRequester _requester; 41 final commons.ApiRequester _requester;
41 42
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 queryParams: _queryParams, 81 queryParams: _queryParams,
81 uploadOptions: _uploadOptions, 82 uploadOptions: _uploadOptions,
82 uploadMedia: _uploadMedia, 83 uploadMedia: _uploadMedia,
83 downloadOptions: _downloadOptions); 84 downloadOptions: _downloadOptions);
84 return _response.then((data) => new Operation.fromJson(data)); 85 return _response.then((data) => new Operation.fromJson(data));
85 } 86 }
86 87
87 } 88 }
88 89
89 90
91 class OrganizationsResourceApi {
92 final commons.ApiRequester _requester;
93
94 OrganizationsResourceApi(commons.ApiRequester client) :
95 _requester = client;
96
97 /**
98 * Fetches an Organization resource identified by the specified resource name.
99 *
100 * Request parameters:
101 *
102 * [name] - The resource name of the Organization to fetch, e.g.
103 * "organizations/1234".
104 * Value must have pattern "^organizations/[^/]*$".
105 *
106 * Completes with a [Organization].
107 *
108 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
109 * error.
110 *
111 * If the used [http.Client] completes with an error when making a REST call,
112 * this method will complete with the same error.
113 */
114 async.Future<Organization> get(core.String name) {
115 var _url = null;
116 var _queryParams = new core.Map();
117 var _uploadMedia = null;
118 var _uploadOptions = null;
119 var _downloadOptions = commons.DownloadOptions.Metadata;
120 var _body = null;
121
122 if (name == null) {
123 throw new core.ArgumentError("Parameter name is required.");
124 }
125
126 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name');
127
128 var _response = _requester.request(_url,
129 "GET",
130 body: _body,
131 queryParams: _queryParams,
132 uploadOptions: _uploadOptions,
133 uploadMedia: _uploadMedia,
134 downloadOptions: _downloadOptions);
135 return _response.then((data) => new Organization.fromJson(data));
136 }
137
138 /**
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
141 * organization's resource name, e.g. "organizations/123".
142 *
143 * [request] - The metadata request object.
144 *
145 * Request parameters:
146 *
147 * [resource] - REQUIRED: The resource for which the policy is being
148 * requested. `resource` is usually specified as a path. For example, a
149 * Project resource is specified as `projects/{project}`.
150 * Value must have pattern "^organizations/[^/]*$".
151 *
152 * Completes with a [Policy].
153 *
154 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
155 * error.
156 *
157 * If the used [http.Client] completes with an error when making a REST call,
158 * this method will complete with the same error.
159 */
160 async.Future<Policy> getIamPolicy(GetIamPolicyRequest request, core.String res ource) {
161 var _url = null;
162 var _queryParams = new core.Map();
163 var _uploadMedia = null;
164 var _uploadOptions = null;
165 var _downloadOptions = commons.DownloadOptions.Metadata;
166 var _body = null;
167
168 if (request != null) {
169 _body = convert.JSON.encode((request).toJson());
170 }
171 if (resource == null) {
172 throw new core.ArgumentError("Parameter resource is required.");
173 }
174
175 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$resource') + ':getIam Policy';
176
177 var _response = _requester.request(_url,
178 "POST",
179 body: _body,
180 queryParams: _queryParams,
181 uploadOptions: _uploadOptions,
182 uploadMedia: _uploadMedia,
183 downloadOptions: _downloadOptions);
184 return _response.then((data) => new Policy.fromJson(data));
185 }
186
187 /**
188 * Searches Organization resources that are visible to the user and satisfy
189 * the specified filter. This method returns Organizations in an unspecified
190 * order. New Organizations do not necessarily appear at the end of the
191 * results.
192 *
193 * [request] - The metadata request object.
194 *
195 * Request parameters:
196 *
197 * Completes with a [SearchOrganizationsResponse].
198 *
199 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
200 * error.
201 *
202 * If the used [http.Client] completes with an error when making a REST call,
203 * this method will complete with the same error.
204 */
205 async.Future<SearchOrganizationsResponse> search(SearchOrganizationsRequest re quest) {
206 var _url = null;
207 var _queryParams = new core.Map();
208 var _uploadMedia = null;
209 var _uploadOptions = null;
210 var _downloadOptions = commons.DownloadOptions.Metadata;
211 var _body = null;
212
213 if (request != null) {
214 _body = convert.JSON.encode((request).toJson());
215 }
216
217 _url = 'v1/organizations:search';
218
219 var _response = _requester.request(_url,
220 "POST",
221 body: _body,
222 queryParams: _queryParams,
223 uploadOptions: _uploadOptions,
224 uploadMedia: _uploadMedia,
225 downloadOptions: _downloadOptions);
226 return _response.then((data) => new SearchOrganizationsResponse.fromJson(dat a));
227 }
228
229 /**
230 * Sets the access control policy on an Organization resource. Replaces any
231 * existing policy. The `resource` field should be the organization's resource
232 * name, e.g. "organizations/123".
233 *
234 * [request] - The metadata request object.
235 *
236 * Request parameters:
237 *
238 * [resource] - REQUIRED: The resource for which the policy is being
239 * specified. `resource` is usually specified as a path. For example, a
240 * Project resource is specified as `projects/{project}`.
241 * Value must have pattern "^organizations/[^/]*$".
242 *
243 * Completes with a [Policy].
244 *
245 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
246 * error.
247 *
248 * If the used [http.Client] completes with an error when making a REST call,
249 * this method will complete with the same error.
250 */
251 async.Future<Policy> setIamPolicy(SetIamPolicyRequest request, core.String res ource) {
252 var _url = null;
253 var _queryParams = new core.Map();
254 var _uploadMedia = null;
255 var _uploadOptions = null;
256 var _downloadOptions = commons.DownloadOptions.Metadata;
257 var _body = null;
258
259 if (request != null) {
260 _body = convert.JSON.encode((request).toJson());
261 }
262 if (resource == null) {
263 throw new core.ArgumentError("Parameter resource is required.");
264 }
265
266 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$resource') + ':setIam Policy';
267
268 var _response = _requester.request(_url,
269 "POST",
270 body: _body,
271 queryParams: _queryParams,
272 uploadOptions: _uploadOptions,
273 uploadMedia: _uploadMedia,
274 downloadOptions: _downloadOptions);
275 return _response.then((data) => new Policy.fromJson(data));
276 }
277
278 /**
279 * Returns permissions that a caller has on the specified Organization. The
280 * `resource` field should be the organization's resource name, e.g.
281 * "organizations/123".
282 *
283 * [request] - The metadata request object.
284 *
285 * Request parameters:
286 *
287 * [resource] - REQUIRED: The resource for which the policy detail is being
288 * requested. `resource` is usually specified as a path. For example, a
289 * Project resource is specified as `projects/{project}`.
290 * Value must have pattern "^organizations/[^/]*$".
291 *
292 * Completes with a [TestIamPermissionsResponse].
293 *
294 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
295 * error.
296 *
297 * If the used [http.Client] completes with an error when making a REST call,
298 * this method will complete with the same error.
299 */
300 async.Future<TestIamPermissionsResponse> testIamPermissions(TestIamPermissions Request request, core.String resource) {
301 var _url = null;
302 var _queryParams = new core.Map();
303 var _uploadMedia = null;
304 var _uploadOptions = null;
305 var _downloadOptions = commons.DownloadOptions.Metadata;
306 var _body = null;
307
308 if (request != null) {
309 _body = convert.JSON.encode((request).toJson());
310 }
311 if (resource == null) {
312 throw new core.ArgumentError("Parameter resource is required.");
313 }
314
315 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$resource') + ':testIa mPermissions';
316
317 var _response = _requester.request(_url,
318 "POST",
319 body: _body,
320 queryParams: _queryParams,
321 uploadOptions: _uploadOptions,
322 uploadMedia: _uploadMedia,
323 downloadOptions: _downloadOptions);
324 return _response.then((data) => new TestIamPermissionsResponse.fromJson(data ));
325 }
326
327 }
328
329
90 class ProjectsResourceApi { 330 class ProjectsResourceApi {
91 final commons.ApiRequester _requester; 331 final commons.ApiRequester _requester;
92 332
93 ProjectsResourceApi(commons.ApiRequester client) : 333 ProjectsResourceApi(commons.ApiRequester client) :
94 _requester = client; 334 _requester = client;
95 335
96 /** 336 /**
337 * Request that a new Project be created. The result is an Operation which can
338 * be used to track the creation process. It is automatically deleted after a
339 * few hours, so there is no need to call DeleteOperation. Our SLO permits
340 * Project creation to take up to 30 seconds at the 90th percentile. As of
341 * 2016-08-29, we are observing 6 seconds 50th percentile latency. 95th
342 * percentile latency is around 11 seconds. We recommend polling at the 5th
343 * second with an exponential backoff.
344 *
345 * [request] - The metadata request object.
346 *
347 * Request parameters:
348 *
349 * Completes with a [Operation].
350 *
351 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
352 * error.
353 *
354 * If the used [http.Client] completes with an error when making a REST call,
355 * this method will complete with the same error.
356 */
357 async.Future<Operation> create(Project request) {
358 var _url = null;
359 var _queryParams = new core.Map();
360 var _uploadMedia = null;
361 var _uploadOptions = null;
362 var _downloadOptions = commons.DownloadOptions.Metadata;
363 var _body = null;
364
365 if (request != null) {
366 _body = convert.JSON.encode((request).toJson());
367 }
368
369 _url = 'v1/projects';
370
371 var _response = _requester.request(_url,
372 "POST",
373 body: _body,
374 queryParams: _queryParams,
375 uploadOptions: _uploadOptions,
376 uploadMedia: _uploadMedia,
377 downloadOptions: _downloadOptions);
378 return _response.then((data) => new Operation.fromJson(data));
379 }
380
381 /**
97 * Marks the Project identified by the specified `project_id` (for example, 382 * Marks the Project identified by the specified `project_id` (for example,
98 * `my-project-123`) for deletion. This method will only affect the Project if 383 * `my-project-123`) for deletion. This method will only affect the Project if
99 * the following criteria are met: + The Project does not have a billing 384 * the following criteria are met: + The Project does not have a billing
100 * account associated with it. + The Project has a lifecycle state of ACTIVE. 385 * account associated with it. + The Project has a lifecycle state of ACTIVE.
101 * This method changes the Project's lifecycle state from ACTIVE to 386 * This method changes the Project's lifecycle state from ACTIVE to
102 * DELETE_REQUESTED. The deletion starts at an unspecified time, at which 387 * DELETE_REQUESTED. The deletion starts at an unspecified time, at which
103 * point the Project is no longer accessible. Until the deletion completes, 388 * point the Project is no longer accessible. Until the deletion completes,
104 * you can check the lifecycle state checked by retrieving the Project with 389 * you can check the lifecycle state checked by retrieving the Project with
105 * GetProject, and the Project remains visible to ListProjects. However, you 390 * GetProject, and the Project remains visible to ListProjects. However, you
106 * cannot update the project. After the deletion completes, the Project is not 391 * cannot update the project. After the deletion completes, the Project is not
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 471
187 /** 472 /**
188 * Returns the IAM access control policy for the specified Project. Permission 473 * Returns the IAM access control policy for the specified Project. Permission
189 * is denied if the policy or the resource does not exist. 474 * is denied if the policy or the resource does not exist.
190 * 475 *
191 * [request] - The metadata request object. 476 * [request] - The metadata request object.
192 * 477 *
193 * Request parameters: 478 * Request parameters:
194 * 479 *
195 * [resource] - REQUIRED: The resource for which the policy is being 480 * [resource] - REQUIRED: The resource for which the policy is being
196 * requested. `resource` is usually specified as a path, such as `projects / * 481 * requested. `resource` is usually specified as a path. For example, a
197 * project * / zones / * zone * / disks / * disk*`. The format for the path 482 * Project resource is specified as `projects/{project}`.
198 * specified in this value is resource specific and is specified in the
199 * `getIamPolicy` documentation.
200 * 483 *
201 * Completes with a [Policy]. 484 * Completes with a [Policy].
202 * 485 *
203 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 486 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
204 * error. 487 * error.
205 * 488 *
206 * If the used [http.Client] completes with an error when making a REST call, 489 * If the used [http.Client] completes with an error when making a REST call,
207 * this method will complete with the same error. 490 * this method will complete with the same error.
208 */ 491 */
209 async.Future<Policy> getIamPolicy(GetIamPolicyRequest request, core.String res ource) { 492 async.Future<Policy> getIamPolicy(GetIamPolicyRequest request, core.String res ource) {
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 * `allAuthenticatedUsers` as `members` in a `Binding` of a `Policy`. + The 586 * `allAuthenticatedUsers` as `members` in a `Binding` of a `Policy`. + The
304 * owner role can be granted only to `user` and `serviceAccount`. + Service 587 * owner role can be granted only to `user` and `serviceAccount`. + Service
305 * accounts can be made owners of a project directly without any restrictions. 588 * accounts can be made owners of a project directly without any restrictions.
306 * However, to be added as an owner, a user must be invited via Cloud Platform 589 * However, to be added as an owner, a user must be invited via Cloud Platform
307 * console and must accept the invitation. + A user cannot be granted the 590 * console and must accept the invitation. + A user cannot be granted the
308 * owner role using `setIamPolicy()`. The user must be granted the owner role 591 * owner role using `setIamPolicy()`. The user must be granted the owner role
309 * using the Cloud Platform Console and must explicitly accept the invitation. 592 * using the Cloud Platform Console and must explicitly accept the invitation.
310 * + Invitations to grant the owner role cannot be sent using 593 * + Invitations to grant the owner role cannot be sent using
311 * `setIamPolicy()`; they must be sent only using the Cloud Platform Console. 594 * `setIamPolicy()`; they must be sent only using the Cloud Platform Console.
312 * + Membership changes that leave the project without any owners that have 595 * + Membership changes that leave the project without any owners that have
313 * accepted the Terms of Service (ToS) will be rejected. + Members cannot be 596 * accepted the Terms of Service (ToS) will be rejected. + There must be at
314 * added to more than one role in the same policy. + There must be at least 597 * least one owner who has accepted the Terms of Service (ToS) agreement in
315 * one owner who has accepted the Terms of Service (ToS) agreement in the 598 * the policy. Calling `setIamPolicy()` to to remove the last ToS-accepted
316 * policy. Calling `setIamPolicy()` to to remove the last ToS-accepted owner 599 * owner from the policy will fail. This restriction also applies to legacy
317 * from the policy will fail. This restriction also applies to legacy projects 600 * projects that no longer have owners who have accepted the ToS. Edits to IAM
318 * that no longer have owners who have accepted the ToS. Edits to IAM policies 601 * policies will be rejected until the lack of a ToS-accepting owner is
319 * will be rejected until the lack of a ToS-accepting owner is rectified. + 602 * rectified. + Calling this method requires enabling the App Engine Admin
320 * Calling this method requires enabling the App Engine Admin API. Note: 603 * API. Note: Removing service accounts from policies or changing their roles
321 * Removing service accounts from policies or changing their roles can render 604 * can render services completely inoperable. It is important to understand
322 * services completely inoperable. It is important to understand how the 605 * how the service account is being used before removing or updating its
323 * service account is being used before removing or updating its roles. 606 * roles.
324 * 607 *
325 * [request] - The metadata request object. 608 * [request] - The metadata request object.
326 * 609 *
327 * Request parameters: 610 * Request parameters:
328 * 611 *
329 * [resource] - REQUIRED: The resource for which the policy is being 612 * [resource] - REQUIRED: The resource for which the policy is being
330 * specified. `resource` is usually specified as a path, such as `projects / * 613 * specified. `resource` is usually specified as a path. For example, a
331 * project * / zones / * zone * / disks / * disk*`. The format for the path 614 * Project resource is specified as `projects/{project}`.
332 * specified in this value is resource specific and is specified in the
333 * `setIamPolicy` documentation.
334 * 615 *
335 * Completes with a [Policy]. 616 * Completes with a [Policy].
336 * 617 *
337 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 618 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
338 * error. 619 * error.
339 * 620 *
340 * If the used [http.Client] completes with an error when making a REST call, 621 * If the used [http.Client] completes with an error when making a REST call,
341 * this method will complete with the same error. 622 * this method will complete with the same error.
342 */ 623 */
343 async.Future<Policy> setIamPolicy(SetIamPolicyRequest request, core.String res ource) { 624 async.Future<Policy> setIamPolicy(SetIamPolicyRequest request, core.String res ource) {
(...skipping 24 matching lines...) Expand all
368 } 649 }
369 650
370 /** 651 /**
371 * Returns permissions that a caller has on the specified Project. 652 * Returns permissions that a caller has on the specified Project.
372 * 653 *
373 * [request] - The metadata request object. 654 * [request] - The metadata request object.
374 * 655 *
375 * Request parameters: 656 * Request parameters:
376 * 657 *
377 * [resource] - REQUIRED: The resource for which the policy detail is being 658 * [resource] - REQUIRED: The resource for which the policy detail is being
378 * requested. `resource` is usually specified as a path, such as `projects / * 659 * requested. `resource` is usually specified as a path. For example, a
379 * project * / zones / * zone * / disks / * disk*`. The format for the path 660 * Project resource is specified as `projects/{project}`.
380 * specified in this value is resource specific and is specified in the
381 * `testIamPermissions` documentation.
382 * 661 *
383 * Completes with a [TestIamPermissionsResponse]. 662 * Completes with a [TestIamPermissionsResponse].
384 * 663 *
385 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 664 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
386 * error. 665 * error.
387 * 666 *
388 * 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,
389 * this method will complete with the same error. 668 * this method will complete with the same error.
390 */ 669 */
391 async.Future<TestIamPermissionsResponse> testIamPermissions(TestIamPermissions Request request, core.String resource) { 670 async.Future<TestIamPermissionsResponse> testIamPermissions(TestIamPermissions Request request, core.String resource) {
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
573 852
574 Empty.fromJson(core.Map _json) { 853 Empty.fromJson(core.Map _json) {
575 } 854 }
576 855
577 core.Map toJson() { 856 core.Map toJson() {
578 var _json = new core.Map(); 857 var _json = new core.Map();
579 return _json; 858 return _json;
580 } 859 }
581 } 860 }
582 861
862 /** Metadata describing a long running folder operation */
863 class FolderOperation {
864 /**
865 * The resource name of the folder or organization we are either creating the
866 * folder under or moving the folder to.
867 */
868 core.String destinationParent;
869 /** The display name of the folder. */
870 core.String displayName;
871 /**
872 * The type of this operation.
873 * Possible string values are:
874 * - "OPERATION_TYPE_UNSPECIFIED" : A OPERATION_TYPE_UNSPECIFIED.
875 * - "CREATE" : A CREATE.
876 * - "MOVE" : A MOVE.
877 */
878 core.String operationType;
879 /**
880 * The resource name of the folder's parent. Only applicable when the
881 * operation_type is MOVE.
882 */
883 core.String sourceParent;
884
885 FolderOperation();
886
887 FolderOperation.fromJson(core.Map _json) {
888 if (_json.containsKey("destinationParent")) {
889 destinationParent = _json["destinationParent"];
890 }
891 if (_json.containsKey("displayName")) {
892 displayName = _json["displayName"];
893 }
894 if (_json.containsKey("operationType")) {
895 operationType = _json["operationType"];
896 }
897 if (_json.containsKey("sourceParent")) {
898 sourceParent = _json["sourceParent"];
899 }
900 }
901
902 core.Map toJson() {
903 var _json = new core.Map();
904 if (destinationParent != null) {
905 _json["destinationParent"] = destinationParent;
906 }
907 if (displayName != null) {
908 _json["displayName"] = displayName;
909 }
910 if (operationType != null) {
911 _json["operationType"] = operationType;
912 }
913 if (sourceParent != null) {
914 _json["sourceParent"] = sourceParent;
915 }
916 return _json;
917 }
918 }
919
920 /** A classification of the Folder Operation error. */
921 class FolderOperationError {
922 /**
923 * The type of operation error experienced.
924 * Possible string values are:
925 * - "ERROR_TYPE_UNSPECIFIED" : A ERROR_TYPE_UNSPECIFIED.
926 * - "FOLDER_HEIGHT_VIOLATION" : A FOLDER_HEIGHT_VIOLATION.
927 * - "MAX_CHILD_FOLDERS_VIOLATION" : A MAX_CHILD_FOLDERS_VIOLATION.
928 * - "FOLDER_NAME_UNIQUENESS_VIOLATION" : A FOLDER_NAME_UNIQUENESS_VIOLATION.
929 * - "RESOURCE_DELETED" : A RESOURCE_DELETED.
930 * - "PARENT_DELETED" : A PARENT_DELETED.
931 * - "CYCLE_INTRODUCED_ERROR" : A CYCLE_INTRODUCED_ERROR.
932 * - "FOLDER_ALREADY_BEING_MOVED" : A FOLDER_ALREADY_BEING_MOVED.
933 * - "FOLDER_TO_DELETE_NON_EMPTY" : A FOLDER_TO_DELETE_NON_EMPTY.
934 */
935 core.String errorMessageId;
936
937 FolderOperationError();
938
939 FolderOperationError.fromJson(core.Map _json) {
940 if (_json.containsKey("errorMessageId")) {
941 errorMessageId = _json["errorMessageId"];
942 }
943 }
944
945 core.Map toJson() {
946 var _json = new core.Map();
947 if (errorMessageId != null) {
948 _json["errorMessageId"] = errorMessageId;
949 }
950 return _json;
951 }
952 }
953
583 /** Request message for `GetIamPolicy` method. */ 954 /** Request message for `GetIamPolicy` method. */
584 class GetIamPolicyRequest { 955 class GetIamPolicyRequest {
585 956
586 GetIamPolicyRequest(); 957 GetIamPolicyRequest();
587 958
588 GetIamPolicyRequest.fromJson(core.Map _json) { 959 GetIamPolicyRequest.fromJson(core.Map _json) {
589 } 960 }
590 961
591 core.Map toJson() { 962 core.Map toJson() {
592 var _json = new core.Map(); 963 var _json = new core.Map();
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
717 _json["name"] = name; 1088 _json["name"] = name;
718 } 1089 }
719 if (response != null) { 1090 if (response != null) {
720 _json["response"] = response; 1091 _json["response"] = response;
721 } 1092 }
722 return _json; 1093 return _json;
723 } 1094 }
724 } 1095 }
725 1096
726 /** 1097 /**
1098 * The root node in the resource hierarchy to which a particular entity's (e.g.,
1099 * company) resources belong.
1100 */
1101 class Organization {
1102 /**
1103 * Timestamp when the Organization was created. Assigned by the server.
1104 * @OutputOnly
1105 */
1106 core.String creationTime;
1107 /**
1108 * 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
1110 * customer that owns this organization. @OutputOnly
1111 */
1112 core.String displayName;
1113 /**
1114 * The organization's current lifecycle state. Assigned by the server.
1115 * @OutputOnly
1116 * Possible string values are:
1117 * - "LIFECYCLE_STATE_UNSPECIFIED" : A LIFECYCLE_STATE_UNSPECIFIED.
1118 * - "ACTIVE" : A ACTIVE.
1119 * - "DELETE_REQUESTED" : A DELETE_REQUESTED.
1120 */
1121 core.String lifecycleState;
1122 /**
1123 * Output Only. The resource name of the organization. This is the
1124 * organization's relative path in the API. Its format is
1125 * "organizations/[organization_id]". For example, "organizations/1234".
1126 */
1127 core.String name;
1128 /**
1129 * The owner of this Organization. The owner should be specified on creation.
1130 * Once set, it cannot be changed. This field is required.
1131 */
1132 OrganizationOwner owner;
1133
1134 Organization();
1135
1136 Organization.fromJson(core.Map _json) {
1137 if (_json.containsKey("creationTime")) {
1138 creationTime = _json["creationTime"];
1139 }
1140 if (_json.containsKey("displayName")) {
1141 displayName = _json["displayName"];
1142 }
1143 if (_json.containsKey("lifecycleState")) {
1144 lifecycleState = _json["lifecycleState"];
1145 }
1146 if (_json.containsKey("name")) {
1147 name = _json["name"];
1148 }
1149 if (_json.containsKey("owner")) {
1150 owner = new OrganizationOwner.fromJson(_json["owner"]);
1151 }
1152 }
1153
1154 core.Map toJson() {
1155 var _json = new core.Map();
1156 if (creationTime != null) {
1157 _json["creationTime"] = creationTime;
1158 }
1159 if (displayName != null) {
1160 _json["displayName"] = displayName;
1161 }
1162 if (lifecycleState != null) {
1163 _json["lifecycleState"] = lifecycleState;
1164 }
1165 if (name != null) {
1166 _json["name"] = name;
1167 }
1168 if (owner != null) {
1169 _json["owner"] = (owner).toJson();
1170 }
1171 return _json;
1172 }
1173 }
1174
1175 /**
1176 * The entity that owns an Organization. The lifetime of the Organization and
1177 * all of its descendants are bound to the `OrganizationOwner`. If the
1178 * `OrganizationOwner` is deleted, the Organization and all its descendants will
1179 * be deleted.
1180 */
1181 class OrganizationOwner {
1182 /** The Google for Work customer id used in the Directory API. */
1183 core.String directoryCustomerId;
1184
1185 OrganizationOwner();
1186
1187 OrganizationOwner.fromJson(core.Map _json) {
1188 if (_json.containsKey("directoryCustomerId")) {
1189 directoryCustomerId = _json["directoryCustomerId"];
1190 }
1191 }
1192
1193 core.Map toJson() {
1194 var _json = new core.Map();
1195 if (directoryCustomerId != null) {
1196 _json["directoryCustomerId"] = directoryCustomerId;
1197 }
1198 return _json;
1199 }
1200 }
1201
1202 /**
727 * Defines an Identity and Access Management (IAM) policy. It is used to specify 1203 * Defines an Identity and Access Management (IAM) policy. It is used to specify
728 * access control policies for Cloud Platform resources. A `Policy` consists of 1204 * access control policies for Cloud Platform resources. A `Policy` consists of
729 * a list of `bindings`. A `Binding` binds a list of `members` to a `role`, 1205 * a list of `bindings`. A `Binding` binds a list of `members` to a `role`,
730 * where the members can be user accounts, Google groups, Google domains, and 1206 * where the members can be user accounts, Google groups, Google domains, and
731 * service accounts. A `role` is a named list of permissions defined by IAM. 1207 * service accounts. A `role` is a named list of permissions defined by IAM.
732 * **Example** { "bindings": [ { "role": "roles/owner", "members": [ 1208 * **Example** { "bindings": [ { "role": "roles/owner", "members": [
733 * "user:mike@example.com", "group:admins@example.com", "domain:google.com", 1209 * "user:mike@example.com", "group:admins@example.com", "domain:google.com",
734 * "serviceAccount:my-other-app@appspot.gserviceaccount.com", ] }, { "role": 1210 * "serviceAccount:my-other-app@appspot.gserviceaccount.com", ] }, { "role":
735 * "roles/viewer", "members": ["user:sean@example.com"] } ] } For a description 1211 * "roles/viewer", "members": ["user:sean@example.com"] } ] } For a description
736 * of IAM and its features, see the [IAM developer's 1212 * of IAM and its features, see the [IAM developer's
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
892 _json["projectId"] = projectId; 1368 _json["projectId"] = projectId;
893 } 1369 }
894 if (projectNumber != null) { 1370 if (projectNumber != null) {
895 _json["projectNumber"] = projectNumber; 1371 _json["projectNumber"] = projectNumber;
896 } 1372 }
897 return _json; 1373 return _json;
898 } 1374 }
899 } 1375 }
900 1376
901 /** 1377 /**
1378 * A status object which is used as the `metadata` field for the Operation
1379 * returned by CreateProject. It provides insight for when significant phases of
1380 * Project creation have completed.
1381 */
1382 class ProjectCreationStatus {
1383 /** Creation time of the project creation workflow. */
1384 core.String createTime;
1385 /**
1386 * True if the project can be retrieved using GetProject. No other operations
1387 * on the project are guaranteed to work until the project creation is
1388 * complete.
1389 */
1390 core.bool gettable;
1391 /** True if the project creation process is complete. */
1392 core.bool ready;
1393
1394 ProjectCreationStatus();
1395
1396 ProjectCreationStatus.fromJson(core.Map _json) {
1397 if (_json.containsKey("createTime")) {
1398 createTime = _json["createTime"];
1399 }
1400 if (_json.containsKey("gettable")) {
1401 gettable = _json["gettable"];
1402 }
1403 if (_json.containsKey("ready")) {
1404 ready = _json["ready"];
1405 }
1406 }
1407
1408 core.Map toJson() {
1409 var _json = new core.Map();
1410 if (createTime != null) {
1411 _json["createTime"] = createTime;
1412 }
1413 if (gettable != null) {
1414 _json["gettable"] = gettable;
1415 }
1416 if (ready != null) {
1417 _json["ready"] = ready;
1418 }
1419 return _json;
1420 }
1421 }
1422
1423 /**
902 * A container to reference an id for any resource type. A `resource` in Google 1424 * A container to reference an id for any resource type. A `resource` in Google
903 * Cloud Platform is a generic term for something you (a developer) may want to 1425 * Cloud Platform is a generic term for something you (a developer) may want to
904 * interact with through one of our API's. Some examples are an AppEngine app, a 1426 * interact with through one of our API's. Some examples are an AppEngine app, a
905 * Compute Engine instance, a Cloud SQL database, and so on. 1427 * Compute Engine instance, a Cloud SQL database, and so on.
906 */ 1428 */
907 class ResourceId { 1429 class ResourceId {
908 /** 1430 /**
909 * Required field for the type-specific id. This should correspond to the id 1431 * Required field for the type-specific id. This should correspond to the id
910 * used in the type-specific API's. 1432 * used in the type-specific API's.
911 */ 1433 */
(...skipping 20 matching lines...) Expand all
932 if (id != null) { 1454 if (id != null) {
933 _json["id"] = id; 1455 _json["id"] = id;
934 } 1456 }
935 if (type != null) { 1457 if (type != null) {
936 _json["type"] = type; 1458 _json["type"] = type;
937 } 1459 }
938 return _json; 1460 return _json;
939 } 1461 }
940 } 1462 }
941 1463
1464 /** The request sent to the `SearchOrganizations` method. */
1465 class SearchOrganizationsRequest {
1466 /**
1467 * An optional query string used to filter the Organizations to return in the
1468 * response. Filter rules are case-insensitive. Organizations may be filtered
1469 * by `owner.directoryCustomerId` or by `domain`, where the domain is a Google
1470 * for Work domain, for example: |Filter|Description| |------|-----------|
1471 * |owner.directorycustomerid:123456789|Organizations with
1472 * `owner.directory_customer_id` equal to `123456789`.|
1473 * |domain:google.com|Organizations corresponding to the domain `google.com`.|
1474 * This field is optional.
1475 */
1476 core.String filter;
1477 /**
1478 * The maximum number of Organizations to return in the response. This field
1479 * is optional.
1480 */
1481 core.int pageSize;
1482 /**
1483 * A pagination token returned from a previous call to `SearchOrganizations`
1484 * that indicates from where listing should continue. This field is optional.
1485 */
1486 core.String pageToken;
1487
1488 SearchOrganizationsRequest();
1489
1490 SearchOrganizationsRequest.fromJson(core.Map _json) {
1491 if (_json.containsKey("filter")) {
1492 filter = _json["filter"];
1493 }
1494 if (_json.containsKey("pageSize")) {
1495 pageSize = _json["pageSize"];
1496 }
1497 if (_json.containsKey("pageToken")) {
1498 pageToken = _json["pageToken"];
1499 }
1500 }
1501
1502 core.Map toJson() {
1503 var _json = new core.Map();
1504 if (filter != null) {
1505 _json["filter"] = filter;
1506 }
1507 if (pageSize != null) {
1508 _json["pageSize"] = pageSize;
1509 }
1510 if (pageToken != null) {
1511 _json["pageToken"] = pageToken;
1512 }
1513 return _json;
1514 }
1515 }
1516
1517 /** The response returned from the `SearchOrganizations` method. */
1518 class SearchOrganizationsResponse {
1519 /**
1520 * A pagination token to be used to retrieve the next page of results. If the
1521 * result is too large to fit within the page size specified in the request,
1522 * this field will be set with a token that can be used to fetch the next page
1523 * of results. If this field is empty, it indicates that this response
1524 * contains the last page of results.
1525 */
1526 core.String nextPageToken;
1527 /**
1528 * The list of Organizations that matched the search query, possibly
1529 * paginated.
1530 */
1531 core.List<Organization> organizations;
1532
1533 SearchOrganizationsResponse();
1534
1535 SearchOrganizationsResponse.fromJson(core.Map _json) {
1536 if (_json.containsKey("nextPageToken")) {
1537 nextPageToken = _json["nextPageToken"];
1538 }
1539 if (_json.containsKey("organizations")) {
1540 organizations = _json["organizations"].map((value) => new Organization.fro mJson(value)).toList();
1541 }
1542 }
1543
1544 core.Map toJson() {
1545 var _json = new core.Map();
1546 if (nextPageToken != null) {
1547 _json["nextPageToken"] = nextPageToken;
1548 }
1549 if (organizations != null) {
1550 _json["organizations"] = organizations.map((value) => (value).toJson()).to List();
1551 }
1552 return _json;
1553 }
1554 }
1555
942 /** Request message for `SetIamPolicy` method. */ 1556 /** Request message for `SetIamPolicy` method. */
943 class SetIamPolicyRequest { 1557 class SetIamPolicyRequest {
944 /** 1558 /**
945 * REQUIRED: The complete policy to be applied to the `resource`. The size of 1559 * REQUIRED: The complete policy to be applied to the `resource`. The size of
946 * the policy is limited to a few 10s of KB. An empty policy is a valid policy 1560 * the policy is limited to a few 10s of KB. An empty policy is a valid policy
947 * but certain Cloud Platform services (such as Projects) might reject them. 1561 * but certain Cloud Platform services (such as Projects) might reject them.
948 */ 1562 */
949 Policy policy; 1563 Policy policy;
950 1564
951 SetIamPolicyRequest(); 1565 SetIamPolicyRequest();
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
1045 } 1659 }
1046 return _json; 1660 return _json;
1047 } 1661 }
1048 } 1662 }
1049 1663
1050 /** Request message for `TestIamPermissions` method. */ 1664 /** Request message for `TestIamPermissions` method. */
1051 class TestIamPermissionsRequest { 1665 class TestIamPermissionsRequest {
1052 /** 1666 /**
1053 * The set of permissions to check for the `resource`. Permissions with 1667 * The set of permissions to check for the `resource`. Permissions with
1054 * wildcards (such as '*' or 'storage.*') are not allowed. For more 1668 * wildcards (such as '*' or 'storage.*') are not allowed. For more
1055 * information see IAM Overview. 1669 * information see [IAM
1670 * Overview](https://cloud.google.com/iam/docs/overview#permissions).
1056 */ 1671 */
1057 core.List<core.String> permissions; 1672 core.List<core.String> permissions;
1058 1673
1059 TestIamPermissionsRequest(); 1674 TestIamPermissionsRequest();
1060 1675
1061 TestIamPermissionsRequest.fromJson(core.Map _json) { 1676 TestIamPermissionsRequest.fromJson(core.Map _json) {
1062 if (_json.containsKey("permissions")) { 1677 if (_json.containsKey("permissions")) {
1063 permissions = _json["permissions"]; 1678 permissions = _json["permissions"];
1064 } 1679 }
1065 } 1680 }
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
1104 UndeleteProjectRequest(); 1719 UndeleteProjectRequest();
1105 1720
1106 UndeleteProjectRequest.fromJson(core.Map _json) { 1721 UndeleteProjectRequest.fromJson(core.Map _json) {
1107 } 1722 }
1108 1723
1109 core.Map toJson() { 1724 core.Map toJson() {
1110 var _json = new core.Map(); 1725 var _json = new core.Map();
1111 return _json; 1726 return _json;
1112 } 1727 }
1113 } 1728 }
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