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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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, e.g. | 50 * [name] - The resource name of the Organization to fetch, e.g. |
51 * "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. |
55 * is deprecated and will be removed in v1. Use name instead. | 55 * This field 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 * |
62 * If the used [http.Client] completes with an error when making a REST call, | 62 * If the used [http.Client] completes with an error when making a REST call, |
63 * this method will complete with the same error. | 63 * this method will complete with the same error. |
64 */ | 64 */ |
65 async.Future<Organization> get(core.String name, {core.String organizationId})
{ | 65 async.Future<Organization> get(core.String name, {core.String organizationId})
{ |
(...skipping 26 matching lines...) Expand all Loading... |
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". | 95 * organization's resource name, e.g. "organizations/123". |
96 * | 96 * |
97 * [request] - The metadata request object. | 97 * [request] - The metadata request object. |
98 * | 98 * |
99 * Request parameters: | 99 * Request parameters: |
100 * | 100 * |
101 * [resource] - REQUIRED: The resource for which the policy is being | 101 * [resource] - REQUIRED: The resource for which the policy is being |
102 * requested. `resource` is usually specified as a path. For example, a | 102 * requested. |
103 * Project resource is specified as `projects/{project}`. | 103 * `resource` is usually specified as a path. For example, a Project |
104 * Value must have pattern "^organizations/[^/]*$". | 104 * resource is specified as `projects/{project}`. |
| 105 * Value must have pattern "^organizations/[^/]+$". |
105 * | 106 * |
106 * Completes with a [Policy]. | 107 * Completes with a [Policy]. |
107 * | 108 * |
108 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 109 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
109 * error. | 110 * error. |
110 * | 111 * |
111 * If the used [http.Client] completes with an error when making a REST call, | 112 * If the used [http.Client] completes with an error when making a REST call, |
112 * this method will complete with the same error. | 113 * this method will complete with the same error. |
113 */ | 114 */ |
114 async.Future<Policy> getIamPolicy(GetIamPolicyRequest request, core.String res
ource) { | 115 async.Future<Policy> getIamPolicy(GetIamPolicyRequest request, core.String res
ource) { |
(...skipping 17 matching lines...) Expand all Loading... |
132 "POST", | 133 "POST", |
133 body: _body, | 134 body: _body, |
134 queryParams: _queryParams, | 135 queryParams: _queryParams, |
135 uploadOptions: _uploadOptions, | 136 uploadOptions: _uploadOptions, |
136 uploadMedia: _uploadMedia, | 137 uploadMedia: _uploadMedia, |
137 downloadOptions: _downloadOptions); | 138 downloadOptions: _downloadOptions); |
138 return _response.then((data) => new Policy.fromJson(data)); | 139 return _response.then((data) => new Policy.fromJson(data)); |
139 } | 140 } |
140 | 141 |
141 /** | 142 /** |
142 * Lists Organization resources that are visible to the user and satisfy the | 143 * Lists Organization resources that are visible to the user and satisfy |
143 * specified filter. This method returns Organizations in an unspecified | 144 * the specified filter. This method returns Organizations in an unspecified |
144 * order. New Organizations do not necessarily appear at the end of the list. | 145 * order. New Organizations do not necessarily appear at the end of the list. |
145 * | 146 * |
146 * Request parameters: | 147 * Request parameters: |
147 * | 148 * |
148 * [pageSize] - The maximum number of Organizations to return in the response. | 149 * [pageSize] - The maximum number of Organizations to return in the response. |
149 * This field is optional. | 150 * This field is optional. |
150 * | 151 * |
| 152 * [filter] - An optional query string used to filter the Organizations to |
| 153 * return in |
| 154 * the response. Filter rules are case-insensitive. |
| 155 * |
| 156 * |
| 157 * Organizations may be filtered by `owner.directoryCustomerId` or by |
| 158 * `domain`, where the domain is a Google for Work domain, for example: |
| 159 * |
| 160 * |Filter|Description| |
| 161 * |------|-----------| |
| 162 * |owner.directorycustomerid:123456789|Organizations with |
| 163 * `owner.directory_customer_id` equal to `123456789`.| |
| 164 * |domain:google.com|Organizations corresponding to the domain `google.com`.| |
| 165 * |
| 166 * This field is optional. |
| 167 * |
151 * [pageToken] - A pagination token returned from a previous call to | 168 * [pageToken] - A pagination token returned from a previous call to |
152 * `ListOrganizations` that indicates from where listing should continue. This | 169 * `ListOrganizations` |
153 * field is optional. | 170 * that indicates from where listing should continue. |
154 * | |
155 * [filter] - An optional query string used to filter the Organizations to | |
156 * return in the response. Filter rules are case-insensitive. Organizations | |
157 * may be filtered by `owner.directoryCustomerId` or by `domain`, where the | |
158 * domain is a Google for Work domain, for example: |Filter|Description| | |
159 * |------|-----------| |owner.directorycustomerid:123456789|Organizations | |
160 * with `owner.directory_customer_id` equal to `123456789`.| | |
161 * |domain:google.com|Organizations corresponding to the domain `google.com`.| | |
162 * This field is optional. | 171 * This field is optional. |
163 * | 172 * |
164 * Completes with a [ListOrganizationsResponse]. | 173 * Completes with a [ListOrganizationsResponse]. |
165 * | 174 * |
166 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 175 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
167 * error. | 176 * error. |
168 * | 177 * |
169 * If the used [http.Client] completes with an error when making a REST call, | 178 * If the used [http.Client] completes with an error when making a REST call, |
170 * this method will complete with the same error. | 179 * this method will complete with the same error. |
171 */ | 180 */ |
172 async.Future<ListOrganizationsResponse> list({core.int pageSize, core.String p
ageToken, core.String filter}) { | 181 async.Future<ListOrganizationsResponse> list({core.int pageSize, core.String f
ilter, core.String pageToken}) { |
173 var _url = null; | 182 var _url = null; |
174 var _queryParams = new core.Map(); | 183 var _queryParams = new core.Map(); |
175 var _uploadMedia = null; | 184 var _uploadMedia = null; |
176 var _uploadOptions = null; | 185 var _uploadOptions = null; |
177 var _downloadOptions = commons.DownloadOptions.Metadata; | 186 var _downloadOptions = commons.DownloadOptions.Metadata; |
178 var _body = null; | 187 var _body = null; |
179 | 188 |
180 if (pageSize != null) { | 189 if (pageSize != null) { |
181 _queryParams["pageSize"] = ["${pageSize}"]; | 190 _queryParams["pageSize"] = ["${pageSize}"]; |
182 } | 191 } |
| 192 if (filter != null) { |
| 193 _queryParams["filter"] = [filter]; |
| 194 } |
183 if (pageToken != null) { | 195 if (pageToken != null) { |
184 _queryParams["pageToken"] = [pageToken]; | 196 _queryParams["pageToken"] = [pageToken]; |
185 } | 197 } |
186 if (filter != null) { | |
187 _queryParams["filter"] = [filter]; | |
188 } | |
189 | 198 |
190 _url = 'v1beta1/organizations'; | 199 _url = 'v1beta1/organizations'; |
191 | 200 |
192 var _response = _requester.request(_url, | 201 var _response = _requester.request(_url, |
193 "GET", | 202 "GET", |
194 body: _body, | 203 body: _body, |
195 queryParams: _queryParams, | 204 queryParams: _queryParams, |
196 uploadOptions: _uploadOptions, | 205 uploadOptions: _uploadOptions, |
197 uploadMedia: _uploadMedia, | 206 uploadMedia: _uploadMedia, |
198 downloadOptions: _downloadOptions); | 207 downloadOptions: _downloadOptions); |
199 return _response.then((data) => new ListOrganizationsResponse.fromJson(data)
); | 208 return _response.then((data) => new ListOrganizationsResponse.fromJson(data)
); |
200 } | 209 } |
201 | 210 |
202 /** | 211 /** |
203 * Sets the access control policy on an Organization resource. Replaces any | 212 * Sets the access control policy on an Organization resource. Replaces any |
204 * existing policy. The `resource` field should be the organization's resource | 213 * existing policy. The `resource` field should be the organization's resource |
205 * name, e.g. "organizations/123". | 214 * name, e.g. "organizations/123". |
206 * | 215 * |
207 * [request] - The metadata request object. | 216 * [request] - The metadata request object. |
208 * | 217 * |
209 * Request parameters: | 218 * Request parameters: |
210 * | 219 * |
211 * [resource] - REQUIRED: The resource for which the policy is being | 220 * [resource] - REQUIRED: The resource for which the policy is being |
212 * specified. `resource` is usually specified as a path. For example, a | 221 * specified. |
213 * Project resource is specified as `projects/{project}`. | 222 * `resource` is usually specified as a path. For example, a Project |
214 * Value must have pattern "^organizations/[^/]*$". | 223 * resource is specified as `projects/{project}`. |
| 224 * Value must have pattern "^organizations/[^/]+$". |
215 * | 225 * |
216 * Completes with a [Policy]. | 226 * Completes with a [Policy]. |
217 * | 227 * |
218 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 228 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
219 * error. | 229 * error. |
220 * | 230 * |
221 * If the used [http.Client] completes with an error when making a REST call, | 231 * If the used [http.Client] completes with an error when making a REST call, |
222 * this method will complete with the same error. | 232 * this method will complete with the same error. |
223 */ | 233 */ |
224 async.Future<Policy> setIamPolicy(SetIamPolicyRequest request, core.String res
ource) { | 234 async.Future<Policy> setIamPolicy(SetIamPolicyRequest request, core.String res
ource) { |
(...skipping 17 matching lines...) Expand all Loading... |
242 "POST", | 252 "POST", |
243 body: _body, | 253 body: _body, |
244 queryParams: _queryParams, | 254 queryParams: _queryParams, |
245 uploadOptions: _uploadOptions, | 255 uploadOptions: _uploadOptions, |
246 uploadMedia: _uploadMedia, | 256 uploadMedia: _uploadMedia, |
247 downloadOptions: _downloadOptions); | 257 downloadOptions: _downloadOptions); |
248 return _response.then((data) => new Policy.fromJson(data)); | 258 return _response.then((data) => new Policy.fromJson(data)); |
249 } | 259 } |
250 | 260 |
251 /** | 261 /** |
252 * Returns permissions that a caller has on the specified Organization. The | 262 * Returns permissions that a caller has on the specified Organization. |
253 * `resource` field should be the organization's resource name, e.g. | 263 * The `resource` field should be the organization's resource name, |
254 * "organizations/123". | 264 * e.g. "organizations/123". |
255 * | 265 * |
256 * [request] - The metadata request object. | 266 * [request] - The metadata request object. |
257 * | 267 * |
258 * Request parameters: | 268 * Request parameters: |
259 * | 269 * |
260 * [resource] - REQUIRED: The resource for which the policy detail is being | 270 * [resource] - REQUIRED: The resource for which the policy detail is being |
261 * requested. `resource` is usually specified as a path. For example, a | 271 * requested. |
262 * Project resource is specified as `projects/{project}`. | 272 * `resource` is usually specified as a path. For example, a Project |
263 * Value must have pattern "^organizations/[^/]*$". | 273 * resource is specified as `projects/{project}`. |
| 274 * Value must have pattern "^organizations/[^/]+$". |
264 * | 275 * |
265 * Completes with a [TestIamPermissionsResponse]. | 276 * Completes with a [TestIamPermissionsResponse]. |
266 * | 277 * |
267 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 278 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
268 * error. | 279 * error. |
269 * | 280 * |
270 * If the used [http.Client] completes with an error when making a REST call, | 281 * If the used [http.Client] completes with an error when making a REST call, |
271 * this method will complete with the same error. | 282 * this method will complete with the same error. |
272 */ | 283 */ |
273 async.Future<TestIamPermissionsResponse> testIamPermissions(TestIamPermissions
Request request, core.String resource) { | 284 async.Future<TestIamPermissionsResponse> testIamPermissions(TestIamPermissions
Request request, core.String resource) { |
(...skipping 26 matching lines...) Expand all Loading... |
300 /** | 311 /** |
301 * Updates an Organization resource identified by the specified resource name. | 312 * Updates an Organization resource identified by the specified resource name. |
302 * | 313 * |
303 * [request] - The metadata request object. | 314 * [request] - The metadata request object. |
304 * | 315 * |
305 * Request parameters: | 316 * Request parameters: |
306 * | 317 * |
307 * [name] - Output Only. The resource name of the organization. This is the | 318 * [name] - Output Only. The resource name of the organization. This is the |
308 * organization's relative path in the API. Its format is | 319 * organization's relative path in the API. Its format is |
309 * "organizations/[organization_id]". For example, "organizations/1234". | 320 * "organizations/[organization_id]". For example, "organizations/1234". |
310 * Value must have pattern "^organizations/[^/]*$". | 321 * Value must have pattern "^organizations/[^/]+$". |
311 * | 322 * |
312 * Completes with a [Organization]. | 323 * Completes with a [Organization]. |
313 * | 324 * |
314 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 325 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
315 * error. | 326 * error. |
316 * | 327 * |
317 * If the used [http.Client] completes with an error when making a REST call, | 328 * If the used [http.Client] completes with an error when making a REST call, |
318 * this method will complete with the same error. | 329 * this method will complete with the same error. |
319 */ | 330 */ |
320 async.Future<Organization> update(Organization request, core.String name) { | 331 async.Future<Organization> update(Organization request, core.String name) { |
(...skipping 26 matching lines...) Expand all Loading... |
347 } | 358 } |
348 | 359 |
349 | 360 |
350 class ProjectsResourceApi { | 361 class ProjectsResourceApi { |
351 final commons.ApiRequester _requester; | 362 final commons.ApiRequester _requester; |
352 | 363 |
353 ProjectsResourceApi(commons.ApiRequester client) : | 364 ProjectsResourceApi(commons.ApiRequester client) : |
354 _requester = client; | 365 _requester = client; |
355 | 366 |
356 /** | 367 /** |
357 * Creates a Project resource. Initially, the Project resource is owned by its | 368 * Creates a Project resource. |
358 * creator exclusively. The creator can later grant permission to others to | 369 * |
359 * read or update the Project. Several APIs are activated automatically for | 370 * Initially, the Project resource is owned by its creator exclusively. |
360 * the Project, including Google Cloud Storage. | 371 * The creator can later grant permission to others to read or update the |
| 372 * Project. |
| 373 * |
| 374 * Several APIs are activated automatically for the Project, including |
| 375 * Google Cloud Storage. |
361 * | 376 * |
362 * [request] - The metadata request object. | 377 * [request] - The metadata request object. |
363 * | 378 * |
364 * Request parameters: | 379 * Request parameters: |
365 * | 380 * |
366 * [useLegacyStack] - A safety hatch to opt out of the new reliable project | 381 * [useLegacyStack] - A safety hatch to opt out of the new reliable project |
367 * creation process. | 382 * creation process. |
368 * | 383 * |
369 * Completes with a [Project]. | 384 * Completes with a [Project]. |
370 * | 385 * |
(...skipping 24 matching lines...) Expand all Loading... |
395 "POST", | 410 "POST", |
396 body: _body, | 411 body: _body, |
397 queryParams: _queryParams, | 412 queryParams: _queryParams, |
398 uploadOptions: _uploadOptions, | 413 uploadOptions: _uploadOptions, |
399 uploadMedia: _uploadMedia, | 414 uploadMedia: _uploadMedia, |
400 downloadOptions: _downloadOptions); | 415 downloadOptions: _downloadOptions); |
401 return _response.then((data) => new Project.fromJson(data)); | 416 return _response.then((data) => new Project.fromJson(data)); |
402 } | 417 } |
403 | 418 |
404 /** | 419 /** |
405 * Marks the Project identified by the specified `project_id` (for example, | 420 * Marks the Project identified by the specified |
406 * `my-project-123`) for deletion. This method will only affect the Project if | 421 * `project_id` (for example, `my-project-123`) for deletion. |
407 * the following criteria are met: + The Project does not have a billing | 422 * This method will only affect the Project if the following criteria are met: |
408 * account associated with it. + The Project has a lifecycle state of ACTIVE. | 423 * |
409 * This method changes the Project's lifecycle state from ACTIVE to | 424 * + The Project does not have a billing account associated with it. |
410 * DELETE_REQUESTED. The deletion starts at an unspecified time, at which | 425 * + The Project has a lifecycle state of |
411 * point the project is no longer accessible. Until the deletion completes, | 426 * ACTIVE. |
412 * you can check the lifecycle state checked by retrieving the Project with | 427 * |
413 * GetProject, and the Project remains visible to ListProjects. However, you | 428 * This method changes the Project's lifecycle state from |
414 * cannot update the project. After the deletion completes, the Project is not | 429 * ACTIVE |
415 * retrievable by the GetProject and ListProjects methods. The caller must | 430 * to DELETE_REQUESTED. |
416 * have modify permissions for this Project. | 431 * The deletion starts at an unspecified time, at which point the project is |
| 432 * no longer accessible. |
| 433 * |
| 434 * Until the deletion completes, you can check the lifecycle state |
| 435 * checked by retrieving the Project with GetProject, |
| 436 * and the Project remains visible to ListProjects. |
| 437 * However, you cannot update the project. |
| 438 * |
| 439 * After the deletion completes, the Project is not retrievable by |
| 440 * the GetProject and |
| 441 * ListProjects methods. |
| 442 * |
| 443 * The caller must have modify permissions for this Project. |
417 * | 444 * |
418 * Request parameters: | 445 * Request parameters: |
419 * | 446 * |
420 * [projectId] - The Project ID (for example, `foo-bar-123`). Required. | 447 * [projectId] - The Project ID (for example, `foo-bar-123`). |
| 448 * |
| 449 * Required. |
421 * | 450 * |
422 * Completes with a [Empty]. | 451 * Completes with a [Empty]. |
423 * | 452 * |
424 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 453 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
425 * error. | 454 * error. |
426 * | 455 * |
427 * If the used [http.Client] completes with an error when making a REST call, | 456 * If the used [http.Client] completes with an error when making a REST call, |
428 * this method will complete with the same error. | 457 * this method will complete with the same error. |
429 */ | 458 */ |
430 async.Future<Empty> delete(core.String projectId) { | 459 async.Future<Empty> delete(core.String projectId) { |
(...skipping 14 matching lines...) Expand all Loading... |
445 "DELETE", | 474 "DELETE", |
446 body: _body, | 475 body: _body, |
447 queryParams: _queryParams, | 476 queryParams: _queryParams, |
448 uploadOptions: _uploadOptions, | 477 uploadOptions: _uploadOptions, |
449 uploadMedia: _uploadMedia, | 478 uploadMedia: _uploadMedia, |
450 downloadOptions: _downloadOptions); | 479 downloadOptions: _downloadOptions); |
451 return _response.then((data) => new Empty.fromJson(data)); | 480 return _response.then((data) => new Empty.fromJson(data)); |
452 } | 481 } |
453 | 482 |
454 /** | 483 /** |
455 * Retrieves the Project identified by the specified `project_id` (for | 484 * Retrieves the Project identified by the specified |
456 * example, `my-project-123`). The caller must have read permissions for this | 485 * `project_id` (for example, `my-project-123`). |
457 * Project. | 486 * |
| 487 * The caller must have read permissions for this Project. |
458 * | 488 * |
459 * Request parameters: | 489 * Request parameters: |
460 * | 490 * |
461 * [projectId] - The Project ID (for example, `my-project-123`). Required. | 491 * [projectId] - The Project ID (for example, `my-project-123`). |
| 492 * |
| 493 * Required. |
462 * | 494 * |
463 * Completes with a [Project]. | 495 * Completes with a [Project]. |
464 * | 496 * |
465 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 497 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
466 * error. | 498 * error. |
467 * | 499 * |
468 * If the used [http.Client] completes with an error when making a REST call, | 500 * If the used [http.Client] completes with an error when making a REST call, |
469 * this method will complete with the same error. | 501 * this method will complete with the same error. |
470 */ | 502 */ |
471 async.Future<Project> get(core.String projectId) { | 503 async.Future<Project> get(core.String projectId) { |
(...skipping 16 matching lines...) Expand all Loading... |
488 queryParams: _queryParams, | 520 queryParams: _queryParams, |
489 uploadOptions: _uploadOptions, | 521 uploadOptions: _uploadOptions, |
490 uploadMedia: _uploadMedia, | 522 uploadMedia: _uploadMedia, |
491 downloadOptions: _downloadOptions); | 523 downloadOptions: _downloadOptions); |
492 return _response.then((data) => new Project.fromJson(data)); | 524 return _response.then((data) => new Project.fromJson(data)); |
493 } | 525 } |
494 | 526 |
495 /** | 527 /** |
496 * Gets a list of ancestors in the resource hierarchy for the Project | 528 * Gets a list of ancestors in the resource hierarchy for the Project |
497 * identified by the specified `project_id` (for example, `my-project-123`). | 529 * identified by the specified `project_id` (for example, `my-project-123`). |
| 530 * |
498 * The caller must have read permissions for this Project. | 531 * The caller must have read permissions for this Project. |
499 * | 532 * |
500 * [request] - The metadata request object. | 533 * [request] - The metadata request object. |
501 * | 534 * |
502 * Request parameters: | 535 * Request parameters: |
503 * | 536 * |
504 * [projectId] - The Project ID (for example, `my-project-123`). Required. | 537 * [projectId] - The Project ID (for example, `my-project-123`). |
| 538 * |
| 539 * Required. |
505 * | 540 * |
506 * Completes with a [GetAncestryResponse]. | 541 * Completes with a [GetAncestryResponse]. |
507 * | 542 * |
508 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 543 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
509 * error. | 544 * error. |
510 * | 545 * |
511 * If the used [http.Client] completes with an error when making a REST call, | 546 * If the used [http.Client] completes with an error when making a REST call, |
512 * this method will complete with the same error. | 547 * this method will complete with the same error. |
513 */ | 548 */ |
514 async.Future<GetAncestryResponse> getAncestry(GetAncestryRequest request, core
.String projectId) { | 549 async.Future<GetAncestryResponse> getAncestry(GetAncestryRequest request, core
.String projectId) { |
(...skipping 17 matching lines...) Expand all Loading... |
532 "POST", | 567 "POST", |
533 body: _body, | 568 body: _body, |
534 queryParams: _queryParams, | 569 queryParams: _queryParams, |
535 uploadOptions: _uploadOptions, | 570 uploadOptions: _uploadOptions, |
536 uploadMedia: _uploadMedia, | 571 uploadMedia: _uploadMedia, |
537 downloadOptions: _downloadOptions); | 572 downloadOptions: _downloadOptions); |
538 return _response.then((data) => new GetAncestryResponse.fromJson(data)); | 573 return _response.then((data) => new GetAncestryResponse.fromJson(data)); |
539 } | 574 } |
540 | 575 |
541 /** | 576 /** |
542 * Returns the IAM access control policy for the specified Project. Permission | 577 * Returns the IAM access control policy for the specified Project. |
543 * is denied if the policy or the resource does not exist. | 578 * Permission is denied if the policy or the resource does not exist. |
544 * | 579 * |
545 * [request] - The metadata request object. | 580 * [request] - The metadata request object. |
546 * | 581 * |
547 * Request parameters: | 582 * Request parameters: |
548 * | 583 * |
549 * [resource] - REQUIRED: The resource for which the policy is being | 584 * [resource] - REQUIRED: The resource for which the policy is being |
550 * requested. `resource` is usually specified as a path. For example, a | 585 * requested. |
551 * Project resource is specified as `projects/{project}`. | 586 * `resource` is usually specified as a path. For example, a Project |
| 587 * resource is specified as `projects/{project}`. |
552 * | 588 * |
553 * Completes with a [Policy]. | 589 * Completes with a [Policy]. |
554 * | 590 * |
555 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 591 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
556 * error. | 592 * error. |
557 * | 593 * |
558 * If the used [http.Client] completes with an error when making a REST call, | 594 * If the used [http.Client] completes with an error when making a REST call, |
559 * this method will complete with the same error. | 595 * this method will complete with the same error. |
560 */ | 596 */ |
561 async.Future<Policy> getIamPolicy(GetIamPolicyRequest request, core.String res
ource) { | 597 async.Future<Policy> getIamPolicy(GetIamPolicyRequest request, core.String res
ource) { |
(...skipping 17 matching lines...) Expand all Loading... |
579 "POST", | 615 "POST", |
580 body: _body, | 616 body: _body, |
581 queryParams: _queryParams, | 617 queryParams: _queryParams, |
582 uploadOptions: _uploadOptions, | 618 uploadOptions: _uploadOptions, |
583 uploadMedia: _uploadMedia, | 619 uploadMedia: _uploadMedia, |
584 downloadOptions: _downloadOptions); | 620 downloadOptions: _downloadOptions); |
585 return _response.then((data) => new Policy.fromJson(data)); | 621 return _response.then((data) => new Policy.fromJson(data)); |
586 } | 622 } |
587 | 623 |
588 /** | 624 /** |
589 * Lists Projects that are visible to the user and satisfy the specified | 625 * Lists Projects that are visible to the user and satisfy the |
590 * filter. This method returns Projects in an unspecified order. New Projects | 626 * specified filter. This method returns Projects in an unspecified order. |
591 * do not necessarily appear at the end of the list. | 627 * New Projects do not necessarily appear at the end of the list. |
592 * | 628 * |
593 * Request parameters: | 629 * Request parameters: |
594 * | 630 * |
| 631 * [pageSize] - The maximum number of Projects to return in the response. |
| 632 * The server can return fewer Projects than requested. |
| 633 * If unspecified, server picks an appropriate default. |
| 634 * |
| 635 * Optional. |
| 636 * |
| 637 * [filter] - An expression for filtering the results of the request. Filter |
| 638 * rules are |
| 639 * case insensitive. The fields eligible for filtering are: |
| 640 * |
| 641 * + `name` |
| 642 * + `id` |
| 643 * + <code>labels.<em>key</em></code> where *key* is the name of a label |
| 644 * |
| 645 * Some examples of using labels as filters: |
| 646 * |
| 647 * |Filter|Description| |
| 648 * |------|-----------| |
| 649 * |name:*|The project has a name.| |
| 650 * |name:Howl|The project's name is `Howl` or `howl`.| |
| 651 * |name:HOWL|Equivalent to above.| |
| 652 * |NAME:howl|Equivalent to above.| |
| 653 * |labels.color:*|The project has the label `color`.| |
| 654 * |labels.color:red|The project's label `color` has the value `red`.| |
| 655 * |labels.color:red label.size:big|The project's label `color` has the |
| 656 * value `red` and its label `size` has the value `big`. |
| 657 * |
| 658 * Optional. |
| 659 * |
595 * [pageToken] - A pagination token returned from a previous call to | 660 * [pageToken] - A pagination token returned from a previous call to |
596 * ListProjects that indicates from where listing should continue. Optional. | 661 * ListProjects |
| 662 * that indicates from where listing should continue. |
597 * | 663 * |
598 * [pageSize] - The maximum number of Projects to return in the response. The | 664 * Optional. |
599 * server can return fewer Projects than requested. If unspecified, server | |
600 * picks an appropriate default. Optional. | |
601 * | |
602 * [filter] - An expression for filtering the results of the request. Filter | |
603 * rules are case insensitive. The fields eligible for filtering are: + `name` | |
604 * + `id` + labels.key where *key* is the name of a label Some examples of | |
605 * using labels as filters: |Filter|Description| |------|-----------| | |
606 * |name:*|The project has a name.| |name:Howl|The project's name is `Howl` or | |
607 * `howl`.| |name:HOWL|Equivalent to above.| |NAME:howl|Equivalent to above.| | |
608 * |labels.color:*|The project has the label `color`.| |labels.color:red|The | |
609 * project's label `color` has the value `red`.| | |
610 * |labels.color:red label.size:big|The project's label `color` has the value | |
611 * `red` and its label `size` has the value `big`. Optional. | |
612 * | 665 * |
613 * Completes with a [ListProjectsResponse]. | 666 * Completes with a [ListProjectsResponse]. |
614 * | 667 * |
615 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 668 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
616 * error. | 669 * error. |
617 * | 670 * |
618 * If the used [http.Client] completes with an error when making a REST call, | 671 * If the used [http.Client] completes with an error when making a REST call, |
619 * this method will complete with the same error. | 672 * this method will complete with the same error. |
620 */ | 673 */ |
621 async.Future<ListProjectsResponse> list({core.String pageToken, core.int pageS
ize, core.String filter}) { | 674 async.Future<ListProjectsResponse> list({core.int pageSize, core.String filter
, core.String pageToken}) { |
622 var _url = null; | 675 var _url = null; |
623 var _queryParams = new core.Map(); | 676 var _queryParams = new core.Map(); |
624 var _uploadMedia = null; | 677 var _uploadMedia = null; |
625 var _uploadOptions = null; | 678 var _uploadOptions = null; |
626 var _downloadOptions = commons.DownloadOptions.Metadata; | 679 var _downloadOptions = commons.DownloadOptions.Metadata; |
627 var _body = null; | 680 var _body = null; |
628 | 681 |
629 if (pageToken != null) { | |
630 _queryParams["pageToken"] = [pageToken]; | |
631 } | |
632 if (pageSize != null) { | 682 if (pageSize != null) { |
633 _queryParams["pageSize"] = ["${pageSize}"]; | 683 _queryParams["pageSize"] = ["${pageSize}"]; |
634 } | 684 } |
635 if (filter != null) { | 685 if (filter != null) { |
636 _queryParams["filter"] = [filter]; | 686 _queryParams["filter"] = [filter]; |
637 } | 687 } |
| 688 if (pageToken != null) { |
| 689 _queryParams["pageToken"] = [pageToken]; |
| 690 } |
638 | 691 |
639 _url = 'v1beta1/projects'; | 692 _url = 'v1beta1/projects'; |
640 | 693 |
641 var _response = _requester.request(_url, | 694 var _response = _requester.request(_url, |
642 "GET", | 695 "GET", |
643 body: _body, | 696 body: _body, |
644 queryParams: _queryParams, | 697 queryParams: _queryParams, |
645 uploadOptions: _uploadOptions, | 698 uploadOptions: _uploadOptions, |
646 uploadMedia: _uploadMedia, | 699 uploadMedia: _uploadMedia, |
647 downloadOptions: _downloadOptions); | 700 downloadOptions: _downloadOptions); |
648 return _response.then((data) => new ListProjectsResponse.fromJson(data)); | 701 return _response.then((data) => new ListProjectsResponse.fromJson(data)); |
649 } | 702 } |
650 | 703 |
651 /** | 704 /** |
652 * Sets the IAM access control policy for the specified Project. Replaces any | 705 * Sets the IAM access control policy for the specified Project. Replaces |
653 * existing policy. The following constraints apply when using | 706 * any existing policy. |
654 * `setIamPolicy()`: + Project does not support `allUsers` and | 707 * |
655 * `allAuthenticatedUsers` as `members` in a `Binding` of a `Policy`. + The | 708 * The following constraints apply when using `setIamPolicy()`: |
656 * owner role can be granted only to `user` and `serviceAccount`. + Service | 709 * |
657 * accounts can be made owners of a project directly without any restrictions. | 710 * + Project does not support `allUsers` and `allAuthenticatedUsers` as |
658 * However, to be added as an owner, a user must be invited via Cloud Platform | 711 * `members` in a `Binding` of a `Policy`. |
659 * console and must accept the invitation. + A user cannot be granted the | 712 * |
660 * owner role using `setIamPolicy()`. The user must be granted the owner role | 713 * + The owner role can be granted only to `user` and `serviceAccount`. |
661 * using the Cloud Platform Console and must explicitly accept the invitation. | 714 * |
| 715 * + Service accounts can be made owners of a project directly |
| 716 * without any restrictions. However, to be added as an owner, a user must be |
| 717 * invited via Cloud Platform console and must accept the invitation. |
| 718 * |
| 719 * + A user cannot be granted the owner role using `setIamPolicy()`. The user |
| 720 * must be granted the owner role using the Cloud Platform Console and must |
| 721 * explicitly accept the invitation. |
| 722 * |
662 * + Invitations to grant the owner role cannot be sent using | 723 * + Invitations to grant the owner role cannot be sent using |
663 * `setIamPolicy()`; they must be sent only using the Cloud Platform Console. | 724 * `setIamPolicy()`; |
| 725 * they must be sent only using the Cloud Platform Console. |
| 726 * |
664 * + Membership changes that leave the project without any owners that have | 727 * + Membership changes that leave the project without any owners that have |
665 * accepted the Terms of Service (ToS) will be rejected. + There must be at | 728 * accepted the Terms of Service (ToS) will be rejected. |
666 * least one owner who has accepted the Terms of Service (ToS) agreement in | 729 * |
667 * the policy. Calling `setIamPolicy()` to to remove the last ToS-accepted | 730 * + There must be at least one owner who has accepted the Terms of |
668 * owner from the policy will fail. This restriction also applies to legacy | 731 * Service (ToS) agreement in the policy. Calling `setIamPolicy()` to |
669 * projects that no longer have owners who have accepted the ToS. Edits to IAM | 732 * to remove the last ToS-accepted owner from the policy will fail. This |
670 * policies will be rejected until the lack of a ToS-accepting owner is | 733 * restriction also applies to legacy projects that no longer have owners |
671 * rectified. + Calling this method requires enabling the App Engine Admin | 734 * who have accepted the ToS. Edits to IAM policies will be rejected until |
672 * API. Note: Removing service accounts from policies or changing their roles | 735 * the lack of a ToS-accepting owner is rectified. |
| 736 * |
| 737 * + Calling this method requires enabling the App Engine Admin API. |
| 738 * |
| 739 * Note: Removing service accounts from policies or changing their roles |
673 * can render services completely inoperable. It is important to understand | 740 * can render services completely inoperable. It is important to understand |
674 * how the service account is being used before removing or updating its | 741 * how the service account is being used before removing or updating its |
675 * roles. | 742 * roles. |
676 * | 743 * |
677 * [request] - The metadata request object. | 744 * [request] - The metadata request object. |
678 * | 745 * |
679 * Request parameters: | 746 * Request parameters: |
680 * | 747 * |
681 * [resource] - REQUIRED: The resource for which the policy is being | 748 * [resource] - REQUIRED: The resource for which the policy is being |
682 * specified. `resource` is usually specified as a path. For example, a | 749 * specified. |
683 * Project resource is specified as `projects/{project}`. | 750 * `resource` is usually specified as a path. For example, a Project |
| 751 * resource is specified as `projects/{project}`. |
684 * | 752 * |
685 * Completes with a [Policy]. | 753 * Completes with a [Policy]. |
686 * | 754 * |
687 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 755 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
688 * error. | 756 * error. |
689 * | 757 * |
690 * If the used [http.Client] completes with an error when making a REST call, | 758 * If the used [http.Client] completes with an error when making a REST call, |
691 * this method will complete with the same error. | 759 * this method will complete with the same error. |
692 */ | 760 */ |
693 async.Future<Policy> setIamPolicy(SetIamPolicyRequest request, core.String res
ource) { | 761 async.Future<Policy> setIamPolicy(SetIamPolicyRequest request, core.String res
ource) { |
(...skipping 24 matching lines...) Expand all Loading... |
718 } | 786 } |
719 | 787 |
720 /** | 788 /** |
721 * Returns permissions that a caller has on the specified Project. | 789 * Returns permissions that a caller has on the specified Project. |
722 * | 790 * |
723 * [request] - The metadata request object. | 791 * [request] - The metadata request object. |
724 * | 792 * |
725 * Request parameters: | 793 * Request parameters: |
726 * | 794 * |
727 * [resource] - REQUIRED: The resource for which the policy detail is being | 795 * [resource] - REQUIRED: The resource for which the policy detail is being |
728 * requested. `resource` is usually specified as a path. For example, a | 796 * requested. |
729 * Project resource is specified as `projects/{project}`. | 797 * `resource` is usually specified as a path. For example, a Project |
| 798 * resource is specified as `projects/{project}`. |
730 * | 799 * |
731 * Completes with a [TestIamPermissionsResponse]. | 800 * Completes with a [TestIamPermissionsResponse]. |
732 * | 801 * |
733 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 802 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
734 * error. | 803 * error. |
735 * | 804 * |
736 * If the used [http.Client] completes with an error when making a REST call, | 805 * If the used [http.Client] completes with an error when making a REST call, |
737 * this method will complete with the same error. | 806 * this method will complete with the same error. |
738 */ | 807 */ |
739 async.Future<TestIamPermissionsResponse> testIamPermissions(TestIamPermissions
Request request, core.String resource) { | 808 async.Future<TestIamPermissionsResponse> testIamPermissions(TestIamPermissions
Request request, core.String resource) { |
(...skipping 17 matching lines...) Expand all Loading... |
757 "POST", | 826 "POST", |
758 body: _body, | 827 body: _body, |
759 queryParams: _queryParams, | 828 queryParams: _queryParams, |
760 uploadOptions: _uploadOptions, | 829 uploadOptions: _uploadOptions, |
761 uploadMedia: _uploadMedia, | 830 uploadMedia: _uploadMedia, |
762 downloadOptions: _downloadOptions); | 831 downloadOptions: _downloadOptions); |
763 return _response.then((data) => new TestIamPermissionsResponse.fromJson(data
)); | 832 return _response.then((data) => new TestIamPermissionsResponse.fromJson(data
)); |
764 } | 833 } |
765 | 834 |
766 /** | 835 /** |
767 * Restores the Project identified by the specified `project_id` (for example, | 836 * Restores the Project identified by the specified |
768 * `my-project-123`). You can only use this method for a Project that has a | 837 * `project_id` (for example, `my-project-123`). |
769 * lifecycle state of DELETE_REQUESTED. After deletion starts, the Project | 838 * You can only use this method for a Project that has a lifecycle state of |
770 * cannot be restored. The caller must have modify permissions for this | 839 * DELETE_REQUESTED. |
771 * Project. | 840 * After deletion starts, the Project cannot be restored. |
| 841 * |
| 842 * The caller must have modify permissions for this Project. |
772 * | 843 * |
773 * [request] - The metadata request object. | 844 * [request] - The metadata request object. |
774 * | 845 * |
775 * Request parameters: | 846 * Request parameters: |
776 * | 847 * |
777 * [projectId] - The project ID (for example, `foo-bar-123`). Required. | 848 * [projectId] - The project ID (for example, `foo-bar-123`). |
| 849 * |
| 850 * Required. |
778 * | 851 * |
779 * Completes with a [Empty]. | 852 * Completes with a [Empty]. |
780 * | 853 * |
781 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 854 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
782 * error. | 855 * error. |
783 * | 856 * |
784 * If the used [http.Client] completes with an error when making a REST call, | 857 * If the used [http.Client] completes with an error when making a REST call, |
785 * this method will complete with the same error. | 858 * this method will complete with the same error. |
786 */ | 859 */ |
787 async.Future<Empty> undelete(UndeleteProjectRequest request, core.String proje
ctId) { | 860 async.Future<Empty> undelete(UndeleteProjectRequest request, core.String proje
ctId) { |
(...skipping 18 matching lines...) Expand all Loading... |
806 body: _body, | 879 body: _body, |
807 queryParams: _queryParams, | 880 queryParams: _queryParams, |
808 uploadOptions: _uploadOptions, | 881 uploadOptions: _uploadOptions, |
809 uploadMedia: _uploadMedia, | 882 uploadMedia: _uploadMedia, |
810 downloadOptions: _downloadOptions); | 883 downloadOptions: _downloadOptions); |
811 return _response.then((data) => new Empty.fromJson(data)); | 884 return _response.then((data) => new Empty.fromJson(data)); |
812 } | 885 } |
813 | 886 |
814 /** | 887 /** |
815 * Updates the attributes of the Project identified by the specified | 888 * Updates the attributes of the Project identified by the specified |
816 * `project_id` (for example, `my-project-123`). The caller must have modify | 889 * `project_id` (for example, `my-project-123`). |
817 * permissions for this Project. | 890 * |
| 891 * The caller must have modify permissions for this Project. |
818 * | 892 * |
819 * [request] - The metadata request object. | 893 * [request] - The metadata request object. |
820 * | 894 * |
821 * Request parameters: | 895 * Request parameters: |
822 * | 896 * |
823 * [projectId] - The project ID (for example, `my-project-123`). Required. | 897 * [projectId] - The project ID (for example, `my-project-123`). |
| 898 * |
| 899 * Required. |
824 * | 900 * |
825 * Completes with a [Project]. | 901 * Completes with a [Project]. |
826 * | 902 * |
827 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 903 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
828 * error. | 904 * error. |
829 * | 905 * |
830 * If the used [http.Client] completes with an error when making a REST call, | 906 * If the used [http.Client] completes with an error when making a REST call, |
831 * this method will complete with the same error. | 907 * this method will complete with the same error. |
832 */ | 908 */ |
833 async.Future<Project> update(Project request, core.String projectId) { | 909 async.Future<Project> update(Project request, core.String projectId) { |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
880 _json["resourceId"] = (resourceId).toJson(); | 956 _json["resourceId"] = (resourceId).toJson(); |
881 } | 957 } |
882 return _json; | 958 return _json; |
883 } | 959 } |
884 } | 960 } |
885 | 961 |
886 /** Associates `members` with a `role`. */ | 962 /** Associates `members` with a `role`. */ |
887 class Binding { | 963 class Binding { |
888 /** | 964 /** |
889 * Specifies the identities requesting access for a Cloud Platform resource. | 965 * Specifies the identities requesting access for a Cloud Platform resource. |
890 * `members` can have the following values: * `allUsers`: A special identifier | 966 * `members` can have the following values: |
891 * that represents anyone who is on the internet; with or without a Google | 967 * |
892 * account. * `allAuthenticatedUsers`: A special identifier that represents | 968 * * `allUsers`: A special identifier that represents anyone who is |
893 * anyone who is authenticated with a Google account or a service account. * | 969 * on the internet; with or without a Google account. |
894 * `user:{emailid}`: An email address that represents a specific Google | 970 * |
895 * account. For example, `alice@gmail.com` or `joe@example.com`. * | 971 * * `allAuthenticatedUsers`: A special identifier that represents anyone |
896 * `serviceAccount:{emailid}`: An email address that represents a service | 972 * who is authenticated with a Google account or a service account. |
897 * account. For example, `my-other-app@appspot.gserviceaccount.com`. * | 973 * |
898 * `group:{emailid}`: An email address that represents a Google group. For | 974 * * `user:{emailid}`: An email address that represents a specific Google |
899 * example, `admins@example.com`. * `domain:{domain}`: A Google Apps domain | 975 * account. For example, `alice@gmail.com` or `joe@example.com`. |
900 * name that represents all the users of that domain. For example, | 976 * |
901 * `google.com` or `example.com`. | 977 * |
| 978 * * `serviceAccount:{emailid}`: An email address that represents a service |
| 979 * account. For example, `my-other-app@appspot.gserviceaccount.com`. |
| 980 * |
| 981 * * `group:{emailid}`: An email address that represents a Google group. |
| 982 * For example, `admins@example.com`. |
| 983 * |
| 984 * * `domain:{domain}`: A Google Apps domain name that represents all the |
| 985 * users of that domain. For example, `google.com` or `example.com`. |
902 */ | 986 */ |
903 core.List<core.String> members; | 987 core.List<core.String> members; |
904 /** | 988 /** |
905 * Role that is assigned to `members`. For example, `roles/viewer`, | 989 * Role that is assigned to `members`. |
906 * `roles/editor`, or `roles/owner`. Required | 990 * For example, `roles/viewer`, `roles/editor`, or `roles/owner`. |
| 991 * Required |
907 */ | 992 */ |
908 core.String role; | 993 core.String role; |
909 | 994 |
910 Binding(); | 995 Binding(); |
911 | 996 |
912 Binding.fromJson(core.Map _json) { | 997 Binding.fromJson(core.Map _json) { |
913 if (_json.containsKey("members")) { | 998 if (_json.containsKey("members")) { |
914 members = _json["members"]; | 999 members = _json["members"]; |
915 } | 1000 } |
916 if (_json.containsKey("role")) { | 1001 if (_json.containsKey("role")) { |
917 role = _json["role"]; | 1002 role = _json["role"]; |
918 } | 1003 } |
919 } | 1004 } |
920 | 1005 |
921 core.Map toJson() { | 1006 core.Map toJson() { |
922 var _json = new core.Map(); | 1007 var _json = new core.Map(); |
923 if (members != null) { | 1008 if (members != null) { |
924 _json["members"] = members; | 1009 _json["members"] = members; |
925 } | 1010 } |
926 if (role != null) { | 1011 if (role != null) { |
927 _json["role"] = role; | 1012 _json["role"] = role; |
928 } | 1013 } |
929 return _json; | 1014 return _json; |
930 } | 1015 } |
931 } | 1016 } |
932 | 1017 |
933 /** | 1018 /** |
934 * A generic empty message that you can re-use to avoid defining duplicated | 1019 * A generic empty message that you can re-use to avoid defining duplicated |
935 * empty messages in your APIs. A typical example is to use it as the request or | 1020 * empty messages in your APIs. A typical example is to use it as the request |
936 * the response type of an API method. For instance: service Foo { rpc | 1021 * or the response type of an API method. For instance: |
937 * Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON | 1022 * |
938 * representation for `Empty` is empty JSON object `{}`. | 1023 * service Foo { |
| 1024 * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); |
| 1025 * } |
| 1026 * |
| 1027 * The JSON representation for `Empty` is empty JSON object `{}`. |
939 */ | 1028 */ |
940 class Empty { | 1029 class Empty { |
941 | 1030 |
942 Empty(); | 1031 Empty(); |
943 | 1032 |
944 Empty.fromJson(core.Map _json) { | 1033 Empty.fromJson(core.Map _json) { |
945 } | 1034 } |
946 | 1035 |
947 core.Map toJson() { | 1036 core.Map toJson() { |
948 var _json = new core.Map(); | 1037 var _json = new core.Map(); |
949 return _json; | 1038 return _json; |
950 } | 1039 } |
951 } | 1040 } |
952 | 1041 |
953 /** Metadata describing a long running folder operation */ | 1042 /** Metadata describing a long running folder operation */ |
954 class FolderOperation { | 1043 class FolderOperation { |
955 /** | 1044 /** |
956 * The resource name of the folder or organization we are either creating the | 1045 * The resource name of the folder or organization we are either creating |
957 * folder under or moving the folder to. | 1046 * the folder under or moving the folder to. |
958 */ | 1047 */ |
959 core.String destinationParent; | 1048 core.String destinationParent; |
960 /** The display name of the folder. */ | 1049 /** The display name of the folder. */ |
961 core.String displayName; | 1050 core.String displayName; |
962 /** | 1051 /** |
963 * The type of this operation. | 1052 * The type of this operation. |
964 * Possible string values are: | 1053 * Possible string values are: |
965 * - "OPERATION_TYPE_UNSPECIFIED" : A OPERATION_TYPE_UNSPECIFIED. | 1054 * - "OPERATION_TYPE_UNSPECIFIED" : Operation type not specified. |
966 * - "CREATE" : A CREATE. | 1055 * - "CREATE" : A create folder operation. |
967 * - "MOVE" : A MOVE. | 1056 * - "MOVE" : A move folder operation. |
968 */ | 1057 */ |
969 core.String operationType; | 1058 core.String operationType; |
970 /** | 1059 /** |
971 * The resource name of the folder's parent. Only applicable when the | 1060 * The resource name of the folder's parent. |
972 * operation_type is MOVE. | 1061 * Only applicable when the operation_type is MOVE. |
973 */ | 1062 */ |
974 core.String sourceParent; | 1063 core.String sourceParent; |
975 | 1064 |
976 FolderOperation(); | 1065 FolderOperation(); |
977 | 1066 |
978 FolderOperation.fromJson(core.Map _json) { | 1067 FolderOperation.fromJson(core.Map _json) { |
979 if (_json.containsKey("destinationParent")) { | 1068 if (_json.containsKey("destinationParent")) { |
980 destinationParent = _json["destinationParent"]; | 1069 destinationParent = _json["destinationParent"]; |
981 } | 1070 } |
982 if (_json.containsKey("displayName")) { | 1071 if (_json.containsKey("displayName")) { |
(...skipping 23 matching lines...) Expand all Loading... |
1006 } | 1095 } |
1007 return _json; | 1096 return _json; |
1008 } | 1097 } |
1009 } | 1098 } |
1010 | 1099 |
1011 /** A classification of the Folder Operation error. */ | 1100 /** A classification of the Folder Operation error. */ |
1012 class FolderOperationError { | 1101 class FolderOperationError { |
1013 /** | 1102 /** |
1014 * The type of operation error experienced. | 1103 * The type of operation error experienced. |
1015 * Possible string values are: | 1104 * Possible string values are: |
1016 * - "ERROR_TYPE_UNSPECIFIED" : A ERROR_TYPE_UNSPECIFIED. | 1105 * - "ERROR_TYPE_UNSPECIFIED" : The error type was unrecognized or |
1017 * - "FOLDER_HEIGHT_VIOLATION" : A FOLDER_HEIGHT_VIOLATION. | 1106 * unspecified. |
1018 * - "MAX_CHILD_FOLDERS_VIOLATION" : A MAX_CHILD_FOLDERS_VIOLATION. | 1107 * - "FOLDER_HEIGHT_VIOLATION" : The attempted action would violate the max |
1019 * - "FOLDER_NAME_UNIQUENESS_VIOLATION" : A FOLDER_NAME_UNIQUENESS_VIOLATION. | 1108 * folder depth constraint. |
1020 * - "RESOURCE_DELETED" : A RESOURCE_DELETED. | 1109 * - "MAX_CHILD_FOLDERS_VIOLATION" : The attempted action would violate the |
1021 * - "PARENT_DELETED" : A PARENT_DELETED. | 1110 * max child folders constraint. |
1022 * - "CYCLE_INTRODUCED_ERROR" : A CYCLE_INTRODUCED_ERROR. | 1111 * - "FOLDER_NAME_UNIQUENESS_VIOLATION" : The attempted action would violate |
1023 * - "FOLDER_ALREADY_BEING_MOVED" : A FOLDER_ALREADY_BEING_MOVED. | 1112 * the locally-unique folder |
1024 * - "FOLDER_TO_DELETE_NON_EMPTY" : A FOLDER_TO_DELETE_NON_EMPTY. | 1113 * display_name constraint. |
| 1114 * - "RESOURCE_DELETED" : The resource being moved has been deleted. |
| 1115 * - "PARENT_DELETED" : The resource a folder was being added to has been |
| 1116 * deleted. |
| 1117 * - "CYCLE_INTRODUCED_ERROR" : The attempted action would introduce cycle in |
| 1118 * resource path. |
| 1119 * - "FOLDER_ALREADY_BEING_MOVED" : The attempted action would move a folder |
| 1120 * that is already being moved. |
| 1121 * - "FOLDER_TO_DELETE_NON_EMPTY" : The folder the caller is trying to delete |
| 1122 * contains active resources. |
1025 */ | 1123 */ |
1026 core.String errorMessageId; | 1124 core.String errorMessageId; |
1027 | 1125 |
1028 FolderOperationError(); | 1126 FolderOperationError(); |
1029 | 1127 |
1030 FolderOperationError.fromJson(core.Map _json) { | 1128 FolderOperationError.fromJson(core.Map _json) { |
1031 if (_json.containsKey("errorMessageId")) { | 1129 if (_json.containsKey("errorMessageId")) { |
1032 errorMessageId = _json["errorMessageId"]; | 1130 errorMessageId = _json["errorMessageId"]; |
1033 } | 1131 } |
1034 } | 1132 } |
1035 | 1133 |
1036 core.Map toJson() { | 1134 core.Map toJson() { |
1037 var _json = new core.Map(); | 1135 var _json = new core.Map(); |
1038 if (errorMessageId != null) { | 1136 if (errorMessageId != null) { |
1039 _json["errorMessageId"] = errorMessageId; | 1137 _json["errorMessageId"] = errorMessageId; |
1040 } | 1138 } |
1041 return _json; | 1139 return _json; |
1042 } | 1140 } |
1043 } | 1141 } |
1044 | 1142 |
1045 /** The request sent to the GetAncestry method. */ | 1143 /** |
| 1144 * The request sent to the |
| 1145 * GetAncestry |
| 1146 * method. |
| 1147 */ |
1046 class GetAncestryRequest { | 1148 class GetAncestryRequest { |
1047 | 1149 |
1048 GetAncestryRequest(); | 1150 GetAncestryRequest(); |
1049 | 1151 |
1050 GetAncestryRequest.fromJson(core.Map _json) { | 1152 GetAncestryRequest.fromJson(core.Map _json) { |
1051 } | 1153 } |
1052 | 1154 |
1053 core.Map toJson() { | 1155 core.Map toJson() { |
1054 var _json = new core.Map(); | 1156 var _json = new core.Map(); |
1055 return _json; | 1157 return _json; |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1128 _json["nextPageToken"] = nextPageToken; | 1230 _json["nextPageToken"] = nextPageToken; |
1129 } | 1231 } |
1130 if (organizations != null) { | 1232 if (organizations != null) { |
1131 _json["organizations"] = organizations.map((value) => (value).toJson()).to
List(); | 1233 _json["organizations"] = organizations.map((value) => (value).toJson()).to
List(); |
1132 } | 1234 } |
1133 return _json; | 1235 return _json; |
1134 } | 1236 } |
1135 } | 1237 } |
1136 | 1238 |
1137 /** | 1239 /** |
1138 * A page of the response received from the ListProjects method. A paginated | 1240 * A page of the response received from the |
1139 * response where more pages are available has `next_page_token` set. This token | 1241 * ListProjects |
1140 * can be used in a subsequent request to retrieve the next request page. | 1242 * method. |
| 1243 * |
| 1244 * A paginated response where more pages are available has |
| 1245 * `next_page_token` set. This token can be used in a subsequent request to |
| 1246 * retrieve the next request page. |
1141 */ | 1247 */ |
1142 class ListProjectsResponse { | 1248 class ListProjectsResponse { |
1143 /** | 1249 /** |
1144 * Pagination token. If the result set is too large to fit in a single | 1250 * Pagination token. |
1145 * response, this token is returned. It encodes the position of the current | 1251 * |
1146 * result cursor. Feeding this value into a new list request with the | 1252 * If the result set is too large to fit in a single response, this token |
1147 * `page_token` parameter gives the next page of the results. When | 1253 * is returned. It encodes the position of the current result cursor. |
1148 * `next_page_token` is not filled in, there is no next page and the list | 1254 * Feeding this value into a new list request with the `page_token` parameter |
1149 * returned is the last page in the result set. Pagination tokens have a | 1255 * gives the next page of the results. |
1150 * limited lifetime. | 1256 * |
| 1257 * When `next_page_token` is not filled in, there is no next page and |
| 1258 * the list returned is the last page in the result set. |
| 1259 * |
| 1260 * Pagination tokens have a limited lifetime. |
1151 */ | 1261 */ |
1152 core.String nextPageToken; | 1262 core.String nextPageToken; |
1153 /** | 1263 /** |
1154 * The list of Projects that matched the list filter. This list can be | 1264 * The list of Projects that matched the list filter. This list can |
1155 * paginated. | 1265 * be paginated. |
1156 */ | 1266 */ |
1157 core.List<Project> projects; | 1267 core.List<Project> projects; |
1158 | 1268 |
1159 ListProjectsResponse(); | 1269 ListProjectsResponse(); |
1160 | 1270 |
1161 ListProjectsResponse.fromJson(core.Map _json) { | 1271 ListProjectsResponse.fromJson(core.Map _json) { |
1162 if (_json.containsKey("nextPageToken")) { | 1272 if (_json.containsKey("nextPageToken")) { |
1163 nextPageToken = _json["nextPageToken"]; | 1273 nextPageToken = _json["nextPageToken"]; |
1164 } | 1274 } |
1165 if (_json.containsKey("projects")) { | 1275 if (_json.containsKey("projects")) { |
1166 projects = _json["projects"].map((value) => new Project.fromJson(value)).t
oList(); | 1276 projects = _json["projects"].map((value) => new Project.fromJson(value)).t
oList(); |
1167 } | 1277 } |
1168 } | 1278 } |
1169 | 1279 |
1170 core.Map toJson() { | 1280 core.Map toJson() { |
1171 var _json = new core.Map(); | 1281 var _json = new core.Map(); |
1172 if (nextPageToken != null) { | 1282 if (nextPageToken != null) { |
1173 _json["nextPageToken"] = nextPageToken; | 1283 _json["nextPageToken"] = nextPageToken; |
1174 } | 1284 } |
1175 if (projects != null) { | 1285 if (projects != null) { |
1176 _json["projects"] = projects.map((value) => (value).toJson()).toList(); | 1286 _json["projects"] = projects.map((value) => (value).toJson()).toList(); |
1177 } | 1287 } |
1178 return _json; | 1288 return _json; |
1179 } | 1289 } |
1180 } | 1290 } |
1181 | 1291 |
1182 /** | 1292 /** |
1183 * The root node in the resource hierarchy to which a particular entity's (e.g., | 1293 * The root node in the resource hierarchy to which a particular entity's |
1184 * company) resources belong. | 1294 * (e.g., company) resources belong. |
1185 */ | 1295 */ |
1186 class Organization { | 1296 class Organization { |
1187 /** | 1297 /** |
1188 * Timestamp when the Organization was created. Assigned by the server. | 1298 * Timestamp when the Organization was created. Assigned by the server. |
1189 * @OutputOnly | 1299 * @OutputOnly |
1190 */ | 1300 */ |
1191 core.String creationTime; | 1301 core.String creationTime; |
1192 /** | 1302 /** |
1193 * A friendly string to be used to refer to the Organization in the UI. | 1303 * A friendly string to be used to refer to the Organization in the UI. |
1194 * Assigned by the server, set to the firm name of the Google For Work | 1304 * Assigned by the server, set to the firm name of the Google For Work |
1195 * customer that owns this organization. @OutputOnly | 1305 * customer that owns this organization. |
| 1306 * @OutputOnly |
1196 */ | 1307 */ |
1197 core.String displayName; | 1308 core.String displayName; |
1198 /** | 1309 /** |
1199 * The organization's current lifecycle state. Assigned by the server. | 1310 * The organization's current lifecycle state. Assigned by the server. |
1200 * @OutputOnly | 1311 * @OutputOnly |
1201 * Possible string values are: | 1312 * Possible string values are: |
1202 * - "LIFECYCLE_STATE_UNSPECIFIED" : A LIFECYCLE_STATE_UNSPECIFIED. | 1313 * - "LIFECYCLE_STATE_UNSPECIFIED" : Unspecified state. This is only useful |
1203 * - "ACTIVE" : A ACTIVE. | 1314 * for distinguishing unset values. |
1204 * - "DELETE_REQUESTED" : A DELETE_REQUESTED. | 1315 * - "ACTIVE" : The normal and active state. |
| 1316 * - "DELETE_REQUESTED" : The organization has been marked for deletion by the |
| 1317 * user. |
1205 */ | 1318 */ |
1206 core.String lifecycleState; | 1319 core.String lifecycleState; |
1207 /** | 1320 /** |
1208 * Output Only. The resource name of the organization. This is the | 1321 * Output Only. The resource name of the organization. This is the |
1209 * organization's relative path in the API. Its format is | 1322 * organization's relative path in the API. Its format is |
1210 * "organizations/[organization_id]". For example, "organizations/1234". | 1323 * "organizations/[organization_id]". For example, "organizations/1234". |
1211 */ | 1324 */ |
1212 core.String name; | 1325 core.String name; |
1213 /** | 1326 /** |
1214 * An immutable id for the Organization that is assigned on creation. This | 1327 * An immutable id for the Organization that is assigned on creation. This |
1215 * should be omitted when creating a new Organization. This field is | 1328 * should be omitted when creating a new Organization. |
1216 * read-only. This field is deprecated and will be removed in v1. Use name | 1329 * This field is read-only. |
1217 * instead. | 1330 * This field is deprecated and will be removed in v1. Use name instead. |
1218 */ | 1331 */ |
1219 core.String organizationId; | 1332 core.String organizationId; |
1220 /** | 1333 /** |
1221 * The owner of this Organization. The owner should be specified on creation. | 1334 * The owner of this Organization. The owner should be specified on |
1222 * Once set, it cannot be changed. This field is required. | 1335 * creation. Once set, it cannot be changed. |
| 1336 * This field is required. |
1223 */ | 1337 */ |
1224 OrganizationOwner owner; | 1338 OrganizationOwner owner; |
1225 | 1339 |
1226 Organization(); | 1340 Organization(); |
1227 | 1341 |
1228 Organization.fromJson(core.Map _json) { | 1342 Organization.fromJson(core.Map _json) { |
1229 if (_json.containsKey("creationTime")) { | 1343 if (_json.containsKey("creationTime")) { |
1230 creationTime = _json["creationTime"]; | 1344 creationTime = _json["creationTime"]; |
1231 } | 1345 } |
1232 if (_json.containsKey("displayName")) { | 1346 if (_json.containsKey("displayName")) { |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1291 core.Map toJson() { | 1405 core.Map toJson() { |
1292 var _json = new core.Map(); | 1406 var _json = new core.Map(); |
1293 if (directoryCustomerId != null) { | 1407 if (directoryCustomerId != null) { |
1294 _json["directoryCustomerId"] = directoryCustomerId; | 1408 _json["directoryCustomerId"] = directoryCustomerId; |
1295 } | 1409 } |
1296 return _json; | 1410 return _json; |
1297 } | 1411 } |
1298 } | 1412 } |
1299 | 1413 |
1300 /** | 1414 /** |
1301 * Defines an Identity and Access Management (IAM) policy. It is used to specify | 1415 * Defines an Identity and Access Management (IAM) policy. It is used to |
1302 * access control policies for Cloud Platform resources. A `Policy` consists of | 1416 * specify access control policies for Cloud Platform resources. |
1303 * a list of `bindings`. A `Binding` binds a list of `members` to a `role`, | 1417 * |
1304 * where the members can be user accounts, Google groups, Google domains, and | 1418 * |
1305 * service accounts. A `role` is a named list of permissions defined by IAM. | 1419 * A `Policy` consists of a list of `bindings`. A `Binding` binds a list of |
1306 * **Example** { "bindings": [ { "role": "roles/owner", "members": [ | 1420 * `members` to a `role`, where the members can be user accounts, Google groups, |
1307 * "user:mike@example.com", "group:admins@example.com", "domain:google.com", | 1421 * Google domains, and service accounts. A `role` is a named list of permissions |
1308 * "serviceAccount:my-other-app@appspot.gserviceaccount.com", ] }, { "role": | 1422 * defined by IAM. |
1309 * "roles/viewer", "members": ["user:sean@example.com"] } ] } For a description | 1423 * |
1310 * of IAM and its features, see the [IAM developer's | 1424 * **Example** |
1311 * guide](https://cloud.google.com/iam). | 1425 * |
| 1426 * { |
| 1427 * "bindings": [ |
| 1428 * { |
| 1429 * "role": "roles/owner", |
| 1430 * "members": [ |
| 1431 * "user:mike@example.com", |
| 1432 * "group:admins@example.com", |
| 1433 * "domain:google.com", |
| 1434 * "serviceAccount:my-other-app@appspot.gserviceaccount.com", |
| 1435 * ] |
| 1436 * }, |
| 1437 * { |
| 1438 * "role": "roles/viewer", |
| 1439 * "members": ["user:sean@example.com"] |
| 1440 * } |
| 1441 * ] |
| 1442 * } |
| 1443 * |
| 1444 * For a description of IAM and its features, see the |
| 1445 * [IAM developer's guide](https://cloud.google.com/iam). |
1312 */ | 1446 */ |
1313 class Policy { | 1447 class Policy { |
1314 /** | 1448 /** |
1315 * Associates a list of `members` to a `role`. Multiple `bindings` must not be | 1449 * Associates a list of `members` to a `role`. |
1316 * specified for the same `role`. `bindings` with no members will result in an | 1450 * Multiple `bindings` must not be specified for the same `role`. |
1317 * error. | 1451 * `bindings` with no members will result in an error. |
1318 */ | 1452 */ |
1319 core.List<Binding> bindings; | 1453 core.List<Binding> bindings; |
1320 /** | 1454 /** |
1321 * `etag` is used for optimistic concurrency control as a way to help prevent | 1455 * `etag` is used for optimistic concurrency control as a way to help |
1322 * simultaneous updates of a policy from overwriting each other. It is | 1456 * prevent simultaneous updates of a policy from overwriting each other. |
1323 * strongly suggested that systems make use of the `etag` in the | 1457 * It is strongly suggested that systems make use of the `etag` in the |
1324 * read-modify-write cycle to perform policy updates in order to avoid race | 1458 * read-modify-write cycle to perform policy updates in order to avoid race |
1325 * conditions: An `etag` is returned in the response to `getIamPolicy`, and | 1459 * conditions: An `etag` is returned in the response to `getIamPolicy`, and |
1326 * systems are expected to put that etag in the request to `setIamPolicy` to | 1460 * systems are expected to put that etag in the request to `setIamPolicy` to |
1327 * ensure that their change will be applied to the same version of the policy. | 1461 * ensure that their change will be applied to the same version of the policy. |
| 1462 * |
1328 * If no `etag` is provided in the call to `setIamPolicy`, then the existing | 1463 * If no `etag` is provided in the call to `setIamPolicy`, then the existing |
1329 * policy is overwritten blindly. | 1464 * policy is overwritten blindly. |
1330 */ | 1465 */ |
1331 core.String etag; | 1466 core.String etag; |
1332 core.List<core.int> get etagAsBytes { | 1467 core.List<core.int> get etagAsBytes { |
1333 return convert.BASE64.decode(etag); | 1468 return convert.BASE64.decode(etag); |
1334 } | 1469 } |
1335 | 1470 |
1336 void set etagAsBytes(core.List<core.int> _bytes) { | 1471 void set etagAsBytes(core.List<core.int> _bytes) { |
1337 etag = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-
"); | 1472 etag = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-
"); |
(...skipping 24 matching lines...) Expand all Loading... |
1362 _json["etag"] = etag; | 1497 _json["etag"] = etag; |
1363 } | 1498 } |
1364 if (version != null) { | 1499 if (version != null) { |
1365 _json["version"] = version; | 1500 _json["version"] = version; |
1366 } | 1501 } |
1367 return _json; | 1502 return _json; |
1368 } | 1503 } |
1369 } | 1504 } |
1370 | 1505 |
1371 /** | 1506 /** |
1372 * A Project is a high-level Google Cloud Platform entity. It is a container for | 1507 * A Project is a high-level Google Cloud Platform entity. It is a |
1373 * ACLs, APIs, AppEngine Apps, VMs, and other Google Cloud Platform resources. | 1508 * container for ACLs, APIs, AppEngine Apps, VMs, and other |
| 1509 * Google Cloud Platform resources. |
1374 */ | 1510 */ |
1375 class Project { | 1511 class Project { |
1376 /** Creation time. Read-only. */ | 1512 /** |
| 1513 * Creation time. |
| 1514 * |
| 1515 * Read-only. |
| 1516 */ |
1377 core.String createTime; | 1517 core.String createTime; |
1378 /** | 1518 /** |
1379 * The labels associated with this Project. Label keys must be between 1 and | 1519 * The labels associated with this Project. |
1380 * 63 characters long and must conform to the following regular expression: | 1520 * |
1381 * \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?. Label values must be between 0 and 63 | 1521 * Label keys must be between 1 and 63 characters long and must conform |
1382 * characters long and must conform to the regular expression | 1522 * to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?. |
1383 * (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?. No more than 256 labels can be | 1523 * |
1384 * associated with a given resource. Clients should store labels in a | 1524 * Label values must be between 0 and 63 characters long and must conform |
1385 * representation such as JSON that does not depend on specific characters | 1525 * to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?. |
1386 * being disallowed. Example: "environment" : "dev" Read-write. | 1526 * |
| 1527 * No more than 256 labels can be associated with a given resource. |
| 1528 * |
| 1529 * Clients should store labels in a representation such as JSON that does not |
| 1530 * depend on specific characters being disallowed. |
| 1531 * |
| 1532 * Example: <code>"environment" : "dev"</code> |
| 1533 * |
| 1534 * Read-write. |
1387 */ | 1535 */ |
1388 core.Map<core.String, core.String> labels; | 1536 core.Map<core.String, core.String> labels; |
1389 /** | 1537 /** |
1390 * The Project lifecycle state. Read-only. | 1538 * The Project lifecycle state. |
| 1539 * |
| 1540 * Read-only. |
1391 * Possible string values are: | 1541 * Possible string values are: |
1392 * - "LIFECYCLE_STATE_UNSPECIFIED" : A LIFECYCLE_STATE_UNSPECIFIED. | 1542 * - "LIFECYCLE_STATE_UNSPECIFIED" : Unspecified state. This is only |
1393 * - "ACTIVE" : A ACTIVE. | 1543 * used/useful for distinguishing |
1394 * - "DELETE_REQUESTED" : A DELETE_REQUESTED. | 1544 * unset values. |
1395 * - "DELETE_IN_PROGRESS" : A DELETE_IN_PROGRESS. | 1545 * - "ACTIVE" : The normal and active state. |
| 1546 * - "DELETE_REQUESTED" : The project has been marked for deletion by the user |
| 1547 * (by invoking DeleteProject) |
| 1548 * or by the system (Google Cloud Platform). |
| 1549 * This can generally be reversed by invoking UndeleteProject. |
| 1550 * - "DELETE_IN_PROGRESS" : This lifecycle state is no longer used and is not |
| 1551 * returned by the API. |
1396 */ | 1552 */ |
1397 core.String lifecycleState; | 1553 core.String lifecycleState; |
1398 /** | 1554 /** |
1399 * The user-assigned display name of the Project. It must be 4 to 30 | 1555 * The user-assigned display name of the Project. |
1400 * characters. Allowed characters are: lowercase and uppercase letters, | 1556 * It must be 4 to 30 characters. |
1401 * numbers, hyphen, single-quote, double-quote, space, and exclamation point. | 1557 * Allowed characters are: lowercase and uppercase letters, numbers, |
1402 * Example: My Project Read-write. | 1558 * hyphen, single-quote, double-quote, space, and exclamation point. |
| 1559 * |
| 1560 * Example: <code>My Project</code> |
| 1561 * |
| 1562 * Read-write. |
1403 */ | 1563 */ |
1404 core.String name; | 1564 core.String name; |
1405 /** | 1565 /** |
1406 * An optional reference to a parent Resource. The only supported parent type | 1566 * An optional reference to a parent Resource. |
1407 * is "organization". Once set, the parent cannot be modified. Read-write. | 1567 * |
| 1568 * The only supported parent type is "organization". Once set, the parent |
| 1569 * cannot be modified. |
| 1570 * |
| 1571 * Read-write. |
1408 */ | 1572 */ |
1409 ResourceId parent; | 1573 ResourceId parent; |
1410 /** | 1574 /** |
1411 * The unique, user-assigned ID of the Project. It must be 6 to 30 lowercase | 1575 * The unique, user-assigned ID of the Project. |
1412 * letters, digits, or hyphens. It must start with a letter. Trailing hyphens | 1576 * It must be 6 to 30 lowercase letters, digits, or hyphens. |
1413 * are prohibited. Example: tokyo-rain-123 Read-only after creation. | 1577 * It must start with a letter. |
| 1578 * Trailing hyphens are prohibited. |
| 1579 * |
| 1580 * Example: <code>tokyo-rain-123</code> |
| 1581 * |
| 1582 * Read-only after creation. |
1414 */ | 1583 */ |
1415 core.String projectId; | 1584 core.String projectId; |
1416 /** | 1585 /** |
1417 * The number uniquely identifying the project. Example: 415104041262 | 1586 * The number uniquely identifying the project. |
| 1587 * |
| 1588 * Example: <code>415104041262</code> |
| 1589 * |
1418 * Read-only. | 1590 * Read-only. |
1419 */ | 1591 */ |
1420 core.String projectNumber; | 1592 core.String projectNumber; |
1421 | 1593 |
1422 Project(); | 1594 Project(); |
1423 | 1595 |
1424 Project.fromJson(core.Map _json) { | 1596 Project.fromJson(core.Map _json) { |
1425 if (_json.containsKey("createTime")) { | 1597 if (_json.containsKey("createTime")) { |
1426 createTime = _json["createTime"]; | 1598 createTime = _json["createTime"]; |
1427 } | 1599 } |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1514 if (ready != null) { | 1686 if (ready != null) { |
1515 _json["ready"] = ready; | 1687 _json["ready"] = ready; |
1516 } | 1688 } |
1517 return _json; | 1689 return _json; |
1518 } | 1690 } |
1519 } | 1691 } |
1520 | 1692 |
1521 /** | 1693 /** |
1522 * A container to reference an id for any resource type. A `resource` in Google | 1694 * A container to reference an id for any resource type. A `resource` in Google |
1523 * Cloud Platform is a generic term for something you (a developer) may want to | 1695 * Cloud Platform is a generic term for something you (a developer) may want to |
1524 * interact with through one of our API's. Some examples are an AppEngine app, a | 1696 * interact with through one of our API's. Some examples are an AppEngine app, |
1525 * Compute Engine instance, a Cloud SQL database, and so on. | 1697 * a Compute Engine instance, a Cloud SQL database, and so on. |
1526 */ | 1698 */ |
1527 class ResourceId { | 1699 class ResourceId { |
1528 /** | 1700 /** |
1529 * Required field for the type-specific id. This should correspond to the id | 1701 * Required field for the type-specific id. This should correspond to the id |
1530 * used in the type-specific API's. | 1702 * used in the type-specific API's. |
1531 */ | 1703 */ |
1532 core.String id; | 1704 core.String id; |
1533 /** | 1705 /** |
1534 * Required field representing the resource type this id is for. At present, | 1706 * Required field representing the resource type this id is for. |
1535 * the valid types are "project" and "organization". | 1707 * At present, the valid types are "project" and "organization". |
1536 */ | 1708 */ |
1537 core.String type; | 1709 core.String type; |
1538 | 1710 |
1539 ResourceId(); | 1711 ResourceId(); |
1540 | 1712 |
1541 ResourceId.fromJson(core.Map _json) { | 1713 ResourceId.fromJson(core.Map _json) { |
1542 if (_json.containsKey("id")) { | 1714 if (_json.containsKey("id")) { |
1543 id = _json["id"]; | 1715 id = _json["id"]; |
1544 } | 1716 } |
1545 if (_json.containsKey("type")) { | 1717 if (_json.containsKey("type")) { |
(...skipping 10 matching lines...) Expand all Loading... |
1556 _json["type"] = type; | 1728 _json["type"] = type; |
1557 } | 1729 } |
1558 return _json; | 1730 return _json; |
1559 } | 1731 } |
1560 } | 1732 } |
1561 | 1733 |
1562 /** Request message for `SetIamPolicy` method. */ | 1734 /** Request message for `SetIamPolicy` method. */ |
1563 class SetIamPolicyRequest { | 1735 class SetIamPolicyRequest { |
1564 /** | 1736 /** |
1565 * REQUIRED: The complete policy to be applied to the `resource`. The size of | 1737 * REQUIRED: The complete policy to be applied to the `resource`. The size of |
1566 * the policy is limited to a few 10s of KB. An empty policy is a valid policy | 1738 * the policy is limited to a few 10s of KB. An empty policy is a |
1567 * but certain Cloud Platform services (such as Projects) might reject them. | 1739 * valid policy but certain Cloud Platform services (such as Projects) |
| 1740 * might reject them. |
1568 */ | 1741 */ |
1569 Policy policy; | 1742 Policy policy; |
1570 | 1743 |
1571 SetIamPolicyRequest(); | 1744 SetIamPolicyRequest(); |
1572 | 1745 |
1573 SetIamPolicyRequest.fromJson(core.Map _json) { | 1746 SetIamPolicyRequest.fromJson(core.Map _json) { |
1574 if (_json.containsKey("policy")) { | 1747 if (_json.containsKey("policy")) { |
1575 policy = new Policy.fromJson(_json["policy"]); | 1748 policy = new Policy.fromJson(_json["policy"]); |
1576 } | 1749 } |
1577 } | 1750 } |
1578 | 1751 |
1579 core.Map toJson() { | 1752 core.Map toJson() { |
1580 var _json = new core.Map(); | 1753 var _json = new core.Map(); |
1581 if (policy != null) { | 1754 if (policy != null) { |
1582 _json["policy"] = (policy).toJson(); | 1755 _json["policy"] = (policy).toJson(); |
1583 } | 1756 } |
1584 return _json; | 1757 return _json; |
1585 } | 1758 } |
1586 } | 1759 } |
1587 | 1760 |
1588 /** Request message for `TestIamPermissions` method. */ | 1761 /** Request message for `TestIamPermissions` method. */ |
1589 class TestIamPermissionsRequest { | 1762 class TestIamPermissionsRequest { |
1590 /** | 1763 /** |
1591 * The set of permissions to check for the `resource`. Permissions with | 1764 * The set of permissions to check for the `resource`. Permissions with |
1592 * wildcards (such as '*' or 'storage.*') are not allowed. For more | 1765 * wildcards (such as '*' or 'storage.*') are not allowed. For more |
1593 * information see [IAM | 1766 * information see |
1594 * Overview](https://cloud.google.com/iam/docs/overview#permissions). | 1767 * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). |
1595 */ | 1768 */ |
1596 core.List<core.String> permissions; | 1769 core.List<core.String> permissions; |
1597 | 1770 |
1598 TestIamPermissionsRequest(); | 1771 TestIamPermissionsRequest(); |
1599 | 1772 |
1600 TestIamPermissionsRequest.fromJson(core.Map _json) { | 1773 TestIamPermissionsRequest.fromJson(core.Map _json) { |
1601 if (_json.containsKey("permissions")) { | 1774 if (_json.containsKey("permissions")) { |
1602 permissions = _json["permissions"]; | 1775 permissions = _json["permissions"]; |
1603 } | 1776 } |
1604 } | 1777 } |
(...skipping 25 matching lines...) Expand all Loading... |
1630 | 1803 |
1631 core.Map toJson() { | 1804 core.Map toJson() { |
1632 var _json = new core.Map(); | 1805 var _json = new core.Map(); |
1633 if (permissions != null) { | 1806 if (permissions != null) { |
1634 _json["permissions"] = permissions; | 1807 _json["permissions"] = permissions; |
1635 } | 1808 } |
1636 return _json; | 1809 return _json; |
1637 } | 1810 } |
1638 } | 1811 } |
1639 | 1812 |
1640 /** The request sent to the UndeleteProject method. */ | 1813 /** |
| 1814 * The request sent to the UndeleteProject |
| 1815 * method. |
| 1816 */ |
1641 class UndeleteProjectRequest { | 1817 class UndeleteProjectRequest { |
1642 | 1818 |
1643 UndeleteProjectRequest(); | 1819 UndeleteProjectRequest(); |
1644 | 1820 |
1645 UndeleteProjectRequest.fromJson(core.Map _json) { | 1821 UndeleteProjectRequest.fromJson(core.Map _json) { |
1646 } | 1822 } |
1647 | 1823 |
1648 core.Map toJson() { | 1824 core.Map toJson() { |
1649 var _json = new core.Map(); | 1825 var _json = new core.Map(); |
1650 return _json; | 1826 return _json; |
1651 } | 1827 } |
1652 } | 1828 } |
OLD | NEW |