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.storage.v1; | 3 library googleapis.storage.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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 * bucket. | 61 * bucket. |
62 * | 62 * |
63 * Request parameters: | 63 * Request parameters: |
64 * | 64 * |
65 * [bucket] - Name of a bucket. | 65 * [bucket] - Name of a bucket. |
66 * | 66 * |
67 * [entity] - The entity holding the permission. Can be user-userId, | 67 * [entity] - The entity holding the permission. Can be user-userId, |
68 * user-emailAddress, group-groupId, group-emailAddress, allUsers, or | 68 * user-emailAddress, group-groupId, group-emailAddress, allUsers, or |
69 * allAuthenticatedUsers. | 69 * allAuthenticatedUsers. |
70 * | 70 * |
71 * [userProject] - The project number to be billed for this request, for | 71 * [userProject] - The project to be billed for this request, for Requester |
72 * Requester Pays buckets. | 72 * Pays buckets. |
73 * | 73 * |
74 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 74 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
75 * error. | 75 * error. |
76 * | 76 * |
77 * If the used [http.Client] completes with an error when making a REST call, | 77 * If the used [http.Client] completes with an error when making a REST call, |
78 * this method will complete with the same error. | 78 * this method will complete with the same error. |
79 */ | 79 */ |
80 async.Future delete(core.String bucket, core.String entity, {core.String userP
roject}) { | 80 async.Future delete(core.String bucket, core.String entity, {core.String userP
roject}) { |
81 var _url = null; | 81 var _url = null; |
82 var _queryParams = new core.Map(); | 82 var _queryParams = new core.Map(); |
(...skipping 30 matching lines...) Expand all Loading... |
113 * Returns the ACL entry for the specified entity on the specified bucket. | 113 * Returns the ACL entry for the specified entity on the specified bucket. |
114 * | 114 * |
115 * Request parameters: | 115 * Request parameters: |
116 * | 116 * |
117 * [bucket] - Name of a bucket. | 117 * [bucket] - Name of a bucket. |
118 * | 118 * |
119 * [entity] - The entity holding the permission. Can be user-userId, | 119 * [entity] - The entity holding the permission. Can be user-userId, |
120 * user-emailAddress, group-groupId, group-emailAddress, allUsers, or | 120 * user-emailAddress, group-groupId, group-emailAddress, allUsers, or |
121 * allAuthenticatedUsers. | 121 * allAuthenticatedUsers. |
122 * | 122 * |
123 * [userProject] - The project number to be billed for this request, for | 123 * [userProject] - The project to be billed for this request, for Requester |
124 * Requester Pays buckets. | 124 * Pays buckets. |
125 * | 125 * |
126 * Completes with a [BucketAccessControl]. | 126 * Completes with a [BucketAccessControl]. |
127 * | 127 * |
128 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 128 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
129 * error. | 129 * error. |
130 * | 130 * |
131 * If the used [http.Client] completes with an error when making a REST call, | 131 * If the used [http.Client] completes with an error when making a REST call, |
132 * this method will complete with the same error. | 132 * this method will complete with the same error. |
133 */ | 133 */ |
134 async.Future<BucketAccessControl> get(core.String bucket, core.String entity,
{core.String userProject}) { | 134 async.Future<BucketAccessControl> get(core.String bucket, core.String entity,
{core.String userProject}) { |
(...skipping 28 matching lines...) Expand all Loading... |
163 | 163 |
164 /** | 164 /** |
165 * Creates a new ACL entry on the specified bucket. | 165 * Creates a new ACL entry on the specified bucket. |
166 * | 166 * |
167 * [request] - The metadata request object. | 167 * [request] - The metadata request object. |
168 * | 168 * |
169 * Request parameters: | 169 * Request parameters: |
170 * | 170 * |
171 * [bucket] - Name of a bucket. | 171 * [bucket] - Name of a bucket. |
172 * | 172 * |
173 * [userProject] - The project number to be billed for this request, for | 173 * [userProject] - The project to be billed for this request, for Requester |
174 * Requester Pays buckets. | 174 * Pays buckets. |
175 * | 175 * |
176 * Completes with a [BucketAccessControl]. | 176 * Completes with a [BucketAccessControl]. |
177 * | 177 * |
178 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 178 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
179 * error. | 179 * error. |
180 * | 180 * |
181 * If the used [http.Client] completes with an error when making a REST call, | 181 * If the used [http.Client] completes with an error when making a REST call, |
182 * this method will complete with the same error. | 182 * this method will complete with the same error. |
183 */ | 183 */ |
184 async.Future<BucketAccessControl> insert(BucketAccessControl request, core.Str
ing bucket, {core.String userProject}) { | 184 async.Future<BucketAccessControl> insert(BucketAccessControl request, core.Str
ing bucket, {core.String userProject}) { |
(...skipping 26 matching lines...) Expand all Loading... |
211 return _response.then((data) => new BucketAccessControl.fromJson(data)); | 211 return _response.then((data) => new BucketAccessControl.fromJson(data)); |
212 } | 212 } |
213 | 213 |
214 /** | 214 /** |
215 * Retrieves ACL entries on the specified bucket. | 215 * Retrieves ACL entries on the specified bucket. |
216 * | 216 * |
217 * Request parameters: | 217 * Request parameters: |
218 * | 218 * |
219 * [bucket] - Name of a bucket. | 219 * [bucket] - Name of a bucket. |
220 * | 220 * |
221 * [userProject] - The project number to be billed for this request, for | 221 * [userProject] - The project to be billed for this request, for Requester |
222 * Requester Pays buckets. | 222 * Pays buckets. |
223 * | 223 * |
224 * Completes with a [BucketAccessControls]. | 224 * Completes with a [BucketAccessControls]. |
225 * | 225 * |
226 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 226 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
227 * error. | 227 * error. |
228 * | 228 * |
229 * If the used [http.Client] completes with an error when making a REST call, | 229 * If the used [http.Client] completes with an error when making a REST call, |
230 * this method will complete with the same error. | 230 * this method will complete with the same error. |
231 */ | 231 */ |
232 async.Future<BucketAccessControls> list(core.String bucket, {core.String userP
roject}) { | 232 async.Future<BucketAccessControls> list(core.String bucket, {core.String userP
roject}) { |
(...skipping 30 matching lines...) Expand all Loading... |
263 * [request] - The metadata request object. | 263 * [request] - The metadata request object. |
264 * | 264 * |
265 * Request parameters: | 265 * Request parameters: |
266 * | 266 * |
267 * [bucket] - Name of a bucket. | 267 * [bucket] - Name of a bucket. |
268 * | 268 * |
269 * [entity] - The entity holding the permission. Can be user-userId, | 269 * [entity] - The entity holding the permission. Can be user-userId, |
270 * user-emailAddress, group-groupId, group-emailAddress, allUsers, or | 270 * user-emailAddress, group-groupId, group-emailAddress, allUsers, or |
271 * allAuthenticatedUsers. | 271 * allAuthenticatedUsers. |
272 * | 272 * |
273 * [userProject] - The project number to be billed for this request, for | 273 * [userProject] - The project to be billed for this request, for Requester |
274 * Requester Pays buckets. | 274 * Pays buckets. |
275 * | 275 * |
276 * Completes with a [BucketAccessControl]. | 276 * Completes with a [BucketAccessControl]. |
277 * | 277 * |
278 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 278 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
279 * error. | 279 * error. |
280 * | 280 * |
281 * 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, |
282 * this method will complete with the same error. | 282 * this method will complete with the same error. |
283 */ | 283 */ |
284 async.Future<BucketAccessControl> patch(BucketAccessControl request, core.Stri
ng bucket, core.String entity, {core.String userProject}) { | 284 async.Future<BucketAccessControl> patch(BucketAccessControl request, core.Stri
ng bucket, core.String entity, {core.String userProject}) { |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 * [request] - The metadata request object. | 320 * [request] - The metadata request object. |
321 * | 321 * |
322 * Request parameters: | 322 * Request parameters: |
323 * | 323 * |
324 * [bucket] - Name of a bucket. | 324 * [bucket] - Name of a bucket. |
325 * | 325 * |
326 * [entity] - The entity holding the permission. Can be user-userId, | 326 * [entity] - The entity holding the permission. Can be user-userId, |
327 * user-emailAddress, group-groupId, group-emailAddress, allUsers, or | 327 * user-emailAddress, group-groupId, group-emailAddress, allUsers, or |
328 * allAuthenticatedUsers. | 328 * allAuthenticatedUsers. |
329 * | 329 * |
330 * [userProject] - The project number to be billed for this request, for | 330 * [userProject] - The project to be billed for this request, for Requester |
331 * Requester Pays buckets. | 331 * Pays buckets. |
332 * | 332 * |
333 * Completes with a [BucketAccessControl]. | 333 * Completes with a [BucketAccessControl]. |
334 * | 334 * |
335 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 335 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
336 * error. | 336 * error. |
337 * | 337 * |
338 * If the used [http.Client] completes with an error when making a REST call, | 338 * If the used [http.Client] completes with an error when making a REST call, |
339 * this method will complete with the same error. | 339 * this method will complete with the same error. |
340 */ | 340 */ |
341 async.Future<BucketAccessControl> update(BucketAccessControl request, core.Str
ing bucket, core.String entity, {core.String userProject}) { | 341 async.Future<BucketAccessControl> update(BucketAccessControl request, core.Str
ing bucket, core.String entity, {core.String userProject}) { |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
386 * Request parameters: | 386 * Request parameters: |
387 * | 387 * |
388 * [bucket] - Name of a bucket. | 388 * [bucket] - Name of a bucket. |
389 * | 389 * |
390 * [ifMetagenerationMatch] - If set, only deletes the bucket if its | 390 * [ifMetagenerationMatch] - If set, only deletes the bucket if its |
391 * metageneration matches this value. | 391 * metageneration matches this value. |
392 * | 392 * |
393 * [ifMetagenerationNotMatch] - If set, only deletes the bucket if its | 393 * [ifMetagenerationNotMatch] - If set, only deletes the bucket if its |
394 * metageneration does not match this value. | 394 * metageneration does not match this value. |
395 * | 395 * |
396 * [userProject] - The project number to be billed for this request, for | 396 * [userProject] - The project to be billed for this request, for Requester |
397 * Requester Pays buckets. | 397 * Pays buckets. |
398 * | 398 * |
399 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 399 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
400 * error. | 400 * error. |
401 * | 401 * |
402 * If the used [http.Client] completes with an error when making a REST call, | 402 * If the used [http.Client] completes with an error when making a REST call, |
403 * this method will complete with the same error. | 403 * this method will complete with the same error. |
404 */ | 404 */ |
405 async.Future delete(core.String bucket, {core.String ifMetagenerationMatch, co
re.String ifMetagenerationNotMatch, core.String userProject}) { | 405 async.Future delete(core.String bucket, {core.String ifMetagenerationMatch, co
re.String ifMetagenerationNotMatch, core.String userProject}) { |
406 var _url = null; | 406 var _url = null; |
407 var _queryParams = new core.Map(); | 407 var _queryParams = new core.Map(); |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
450 * | 450 * |
451 * [ifMetagenerationNotMatch] - Makes the return of the bucket metadata | 451 * [ifMetagenerationNotMatch] - Makes the return of the bucket metadata |
452 * conditional on whether the bucket's current metageneration does not match | 452 * conditional on whether the bucket's current metageneration does not match |
453 * the given value. | 453 * the given value. |
454 * | 454 * |
455 * [projection] - Set of properties to return. Defaults to noAcl. | 455 * [projection] - Set of properties to return. Defaults to noAcl. |
456 * Possible string values are: | 456 * Possible string values are: |
457 * - "full" : Include all properties. | 457 * - "full" : Include all properties. |
458 * - "noAcl" : Omit owner, acl and defaultObjectAcl properties. | 458 * - "noAcl" : Omit owner, acl and defaultObjectAcl properties. |
459 * | 459 * |
460 * [userProject] - The project number to be billed for this request, for | 460 * [userProject] - The project to be billed for this request, for Requester |
461 * Requester Pays buckets. | 461 * Pays buckets. |
462 * | 462 * |
463 * Completes with a [Bucket]. | 463 * Completes with a [Bucket]. |
464 * | 464 * |
465 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 465 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
466 * error. | 466 * error. |
467 * | 467 * |
468 * If the used [http.Client] completes with an error when making a REST call, | 468 * If the used [http.Client] completes with an error when making a REST call, |
469 * this method will complete with the same error. | 469 * this method will complete with the same error. |
470 */ | 470 */ |
471 async.Future<Bucket> get(core.String bucket, {core.String ifMetagenerationMatc
h, core.String ifMetagenerationNotMatch, core.String projection, core.String use
rProject}) { | 471 async.Future<Bucket> get(core.String bucket, {core.String ifMetagenerationMatc
h, core.String ifMetagenerationNotMatch, core.String projection, core.String use
rProject}) { |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
504 return _response.then((data) => new Bucket.fromJson(data)); | 504 return _response.then((data) => new Bucket.fromJson(data)); |
505 } | 505 } |
506 | 506 |
507 /** | 507 /** |
508 * Returns an IAM policy for the specified bucket. | 508 * Returns an IAM policy for the specified bucket. |
509 * | 509 * |
510 * Request parameters: | 510 * Request parameters: |
511 * | 511 * |
512 * [bucket] - Name of a bucket. | 512 * [bucket] - Name of a bucket. |
513 * | 513 * |
514 * [userProject] - The project number to be billed for this request, for | 514 * [userProject] - The project to be billed for this request, for Requester |
515 * Requester Pays buckets. | 515 * Pays buckets. |
516 * | 516 * |
517 * Completes with a [Policy]. | 517 * Completes with a [Policy]. |
518 * | 518 * |
519 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 519 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
520 * error. | 520 * error. |
521 * | 521 * |
522 * If the used [http.Client] completes with an error when making a REST call, | 522 * If the used [http.Client] completes with an error when making a REST call, |
523 * this method will complete with the same error. | 523 * this method will complete with the same error. |
524 */ | 524 */ |
525 async.Future<Policy> getIamPolicy(core.String bucket, {core.String userProject
}) { | 525 async.Future<Policy> getIamPolicy(core.String bucket, {core.String userProject
}) { |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
746 * - "projectPrivate" : Object owner gets OWNER access, and project team | 746 * - "projectPrivate" : Object owner gets OWNER access, and project team |
747 * members get access according to their roles. | 747 * members get access according to their roles. |
748 * - "publicRead" : Object owner gets OWNER access, and allUsers get READER | 748 * - "publicRead" : Object owner gets OWNER access, and allUsers get READER |
749 * access. | 749 * access. |
750 * | 750 * |
751 * [projection] - Set of properties to return. Defaults to full. | 751 * [projection] - Set of properties to return. Defaults to full. |
752 * Possible string values are: | 752 * Possible string values are: |
753 * - "full" : Include all properties. | 753 * - "full" : Include all properties. |
754 * - "noAcl" : Omit owner, acl and defaultObjectAcl properties. | 754 * - "noAcl" : Omit owner, acl and defaultObjectAcl properties. |
755 * | 755 * |
756 * [userProject] - The project number to be billed for this request, for | 756 * [userProject] - The project to be billed for this request, for Requester |
757 * Requester Pays buckets. | 757 * Pays buckets. |
758 * | 758 * |
759 * Completes with a [Bucket]. | 759 * Completes with a [Bucket]. |
760 * | 760 * |
761 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 761 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
762 * error. | 762 * error. |
763 * | 763 * |
764 * If the used [http.Client] completes with an error when making a REST call, | 764 * If the used [http.Client] completes with an error when making a REST call, |
765 * this method will complete with the same error. | 765 * this method will complete with the same error. |
766 */ | 766 */ |
767 async.Future<Bucket> patch(Bucket request, core.String bucket, {core.String if
MetagenerationMatch, core.String ifMetagenerationNotMatch, core.String predefine
dAcl, core.String predefinedDefaultObjectAcl, core.String projection, core.Strin
g userProject}) { | 767 async.Future<Bucket> patch(Bucket request, core.String bucket, {core.String if
MetagenerationMatch, core.String ifMetagenerationNotMatch, core.String predefine
dAcl, core.String predefinedDefaultObjectAcl, core.String projection, core.Strin
g userProject}) { |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
811 | 811 |
812 /** | 812 /** |
813 * Updates an IAM policy for the specified bucket. | 813 * Updates an IAM policy for the specified bucket. |
814 * | 814 * |
815 * [request] - The metadata request object. | 815 * [request] - The metadata request object. |
816 * | 816 * |
817 * Request parameters: | 817 * Request parameters: |
818 * | 818 * |
819 * [bucket] - Name of a bucket. | 819 * [bucket] - Name of a bucket. |
820 * | 820 * |
821 * [userProject] - The project number to be billed for this request, for | 821 * [userProject] - The project to be billed for this request, for Requester |
822 * Requester Pays buckets. | 822 * Pays buckets. |
823 * | 823 * |
824 * Completes with a [Policy]. | 824 * Completes with a [Policy]. |
825 * | 825 * |
826 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 826 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
827 * error. | 827 * error. |
828 * | 828 * |
829 * If the used [http.Client] completes with an error when making a REST call, | 829 * If the used [http.Client] completes with an error when making a REST call, |
830 * this method will complete with the same error. | 830 * this method will complete with the same error. |
831 */ | 831 */ |
832 async.Future<Policy> setIamPolicy(Policy request, core.String bucket, {core.St
ring userProject}) { | 832 async.Future<Policy> setIamPolicy(Policy request, core.String bucket, {core.St
ring userProject}) { |
(...skipping 29 matching lines...) Expand all Loading... |
862 /** | 862 /** |
863 * Tests a set of permissions on the given bucket to see which, if any, are | 863 * Tests a set of permissions on the given bucket to see which, if any, are |
864 * held by the caller. | 864 * held by the caller. |
865 * | 865 * |
866 * Request parameters: | 866 * Request parameters: |
867 * | 867 * |
868 * [bucket] - Name of a bucket. | 868 * [bucket] - Name of a bucket. |
869 * | 869 * |
870 * [permissions] - Permissions to test. | 870 * [permissions] - Permissions to test. |
871 * | 871 * |
872 * [userProject] - The project number to be billed for this request, for | 872 * [userProject] - The project to be billed for this request, for Requester |
873 * Requester Pays buckets. | 873 * Pays buckets. |
874 * | 874 * |
875 * Completes with a [TestIamPermissionsResponse]. | 875 * Completes with a [TestIamPermissionsResponse]. |
876 * | 876 * |
877 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 877 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
878 * error. | 878 * error. |
879 * | 879 * |
880 * If the used [http.Client] completes with an error when making a REST call, | 880 * If the used [http.Client] completes with an error when making a REST call, |
881 * this method will complete with the same error. | 881 * this method will complete with the same error. |
882 */ | 882 */ |
883 async.Future<TestIamPermissionsResponse> testIamPermissions(core.String bucket
, core.List<core.String> permissions, {core.String userProject}) { | 883 async.Future<TestIamPermissionsResponse> testIamPermissions(core.String bucket
, core.List<core.String> permissions, {core.String userProject}) { |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
954 * - "projectPrivate" : Object owner gets OWNER access, and project team | 954 * - "projectPrivate" : Object owner gets OWNER access, and project team |
955 * members get access according to their roles. | 955 * members get access according to their roles. |
956 * - "publicRead" : Object owner gets OWNER access, and allUsers get READER | 956 * - "publicRead" : Object owner gets OWNER access, and allUsers get READER |
957 * access. | 957 * access. |
958 * | 958 * |
959 * [projection] - Set of properties to return. Defaults to full. | 959 * [projection] - Set of properties to return. Defaults to full. |
960 * Possible string values are: | 960 * Possible string values are: |
961 * - "full" : Include all properties. | 961 * - "full" : Include all properties. |
962 * - "noAcl" : Omit owner, acl and defaultObjectAcl properties. | 962 * - "noAcl" : Omit owner, acl and defaultObjectAcl properties. |
963 * | 963 * |
964 * [userProject] - The project number to be billed for this request, for | 964 * [userProject] - The project to be billed for this request, for Requester |
965 * Requester Pays buckets. | 965 * Pays buckets. |
966 * | 966 * |
967 * Completes with a [Bucket]. | 967 * Completes with a [Bucket]. |
968 * | 968 * |
969 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 969 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
970 * error. | 970 * error. |
971 * | 971 * |
972 * If the used [http.Client] completes with an error when making a REST call, | 972 * If the used [http.Client] completes with an error when making a REST call, |
973 * this method will complete with the same error. | 973 * this method will complete with the same error. |
974 */ | 974 */ |
975 async.Future<Bucket> update(Bucket request, core.String bucket, {core.String i
fMetagenerationMatch, core.String ifMetagenerationNotMatch, core.String predefin
edAcl, core.String predefinedDefaultObjectAcl, core.String projection, core.Stri
ng userProject}) { | 975 async.Future<Bucket> update(Bucket request, core.String bucket, {core.String i
fMetagenerationMatch, core.String ifMetagenerationNotMatch, core.String predefin
edAcl, core.String predefinedDefaultObjectAcl, core.String projection, core.Stri
ng userProject}) { |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1079 * on the specified bucket. | 1079 * on the specified bucket. |
1080 * | 1080 * |
1081 * Request parameters: | 1081 * Request parameters: |
1082 * | 1082 * |
1083 * [bucket] - Name of a bucket. | 1083 * [bucket] - Name of a bucket. |
1084 * | 1084 * |
1085 * [entity] - The entity holding the permission. Can be user-userId, | 1085 * [entity] - The entity holding the permission. Can be user-userId, |
1086 * user-emailAddress, group-groupId, group-emailAddress, allUsers, or | 1086 * user-emailAddress, group-groupId, group-emailAddress, allUsers, or |
1087 * allAuthenticatedUsers. | 1087 * allAuthenticatedUsers. |
1088 * | 1088 * |
1089 * [userProject] - The project number to be billed for this request, for | 1089 * [userProject] - The project to be billed for this request, for Requester |
1090 * Requester Pays buckets. | 1090 * Pays buckets. |
1091 * | 1091 * |
1092 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1092 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1093 * error. | 1093 * error. |
1094 * | 1094 * |
1095 * If the used [http.Client] completes with an error when making a REST call, | 1095 * If the used [http.Client] completes with an error when making a REST call, |
1096 * this method will complete with the same error. | 1096 * this method will complete with the same error. |
1097 */ | 1097 */ |
1098 async.Future delete(core.String bucket, core.String entity, {core.String userP
roject}) { | 1098 async.Future delete(core.String bucket, core.String entity, {core.String userP
roject}) { |
1099 var _url = null; | 1099 var _url = null; |
1100 var _queryParams = new core.Map(); | 1100 var _queryParams = new core.Map(); |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1132 * specified bucket. | 1132 * specified bucket. |
1133 * | 1133 * |
1134 * Request parameters: | 1134 * Request parameters: |
1135 * | 1135 * |
1136 * [bucket] - Name of a bucket. | 1136 * [bucket] - Name of a bucket. |
1137 * | 1137 * |
1138 * [entity] - The entity holding the permission. Can be user-userId, | 1138 * [entity] - The entity holding the permission. Can be user-userId, |
1139 * user-emailAddress, group-groupId, group-emailAddress, allUsers, or | 1139 * user-emailAddress, group-groupId, group-emailAddress, allUsers, or |
1140 * allAuthenticatedUsers. | 1140 * allAuthenticatedUsers. |
1141 * | 1141 * |
1142 * [userProject] - The project number to be billed for this request, for | 1142 * [userProject] - The project to be billed for this request, for Requester |
1143 * Requester Pays buckets. | 1143 * Pays buckets. |
1144 * | 1144 * |
1145 * Completes with a [ObjectAccessControl]. | 1145 * Completes with a [ObjectAccessControl]. |
1146 * | 1146 * |
1147 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1147 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1148 * error. | 1148 * error. |
1149 * | 1149 * |
1150 * If the used [http.Client] completes with an error when making a REST call, | 1150 * If the used [http.Client] completes with an error when making a REST call, |
1151 * this method will complete with the same error. | 1151 * this method will complete with the same error. |
1152 */ | 1152 */ |
1153 async.Future<ObjectAccessControl> get(core.String bucket, core.String entity,
{core.String userProject}) { | 1153 async.Future<ObjectAccessControl> get(core.String bucket, core.String entity,
{core.String userProject}) { |
(...skipping 28 matching lines...) Expand all Loading... |
1182 | 1182 |
1183 /** | 1183 /** |
1184 * Creates a new default object ACL entry on the specified bucket. | 1184 * Creates a new default object ACL entry on the specified bucket. |
1185 * | 1185 * |
1186 * [request] - The metadata request object. | 1186 * [request] - The metadata request object. |
1187 * | 1187 * |
1188 * Request parameters: | 1188 * Request parameters: |
1189 * | 1189 * |
1190 * [bucket] - Name of a bucket. | 1190 * [bucket] - Name of a bucket. |
1191 * | 1191 * |
1192 * [userProject] - The project number to be billed for this request, for | 1192 * [userProject] - The project to be billed for this request, for Requester |
1193 * Requester Pays buckets. | 1193 * Pays buckets. |
1194 * | 1194 * |
1195 * Completes with a [ObjectAccessControl]. | 1195 * Completes with a [ObjectAccessControl]. |
1196 * | 1196 * |
1197 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1197 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1198 * error. | 1198 * error. |
1199 * | 1199 * |
1200 * If the used [http.Client] completes with an error when making a REST call, | 1200 * If the used [http.Client] completes with an error when making a REST call, |
1201 * this method will complete with the same error. | 1201 * this method will complete with the same error. |
1202 */ | 1202 */ |
1203 async.Future<ObjectAccessControl> insert(ObjectAccessControl request, core.Str
ing bucket, {core.String userProject}) { | 1203 async.Future<ObjectAccessControl> insert(ObjectAccessControl request, core.Str
ing bucket, {core.String userProject}) { |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1236 * Request parameters: | 1236 * Request parameters: |
1237 * | 1237 * |
1238 * [bucket] - Name of a bucket. | 1238 * [bucket] - Name of a bucket. |
1239 * | 1239 * |
1240 * [ifMetagenerationMatch] - If present, only return default ACL listing if | 1240 * [ifMetagenerationMatch] - If present, only return default ACL listing if |
1241 * the bucket's current metageneration matches this value. | 1241 * the bucket's current metageneration matches this value. |
1242 * | 1242 * |
1243 * [ifMetagenerationNotMatch] - If present, only return default ACL listing if | 1243 * [ifMetagenerationNotMatch] - If present, only return default ACL listing if |
1244 * the bucket's current metageneration does not match the given value. | 1244 * the bucket's current metageneration does not match the given value. |
1245 * | 1245 * |
1246 * [userProject] - The project number to be billed for this request, for | 1246 * [userProject] - The project to be billed for this request, for Requester |
1247 * Requester Pays buckets. | 1247 * Pays buckets. |
1248 * | 1248 * |
1249 * Completes with a [ObjectAccessControls]. | 1249 * Completes with a [ObjectAccessControls]. |
1250 * | 1250 * |
1251 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1251 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1252 * error. | 1252 * error. |
1253 * | 1253 * |
1254 * If the used [http.Client] completes with an error when making a REST call, | 1254 * If the used [http.Client] completes with an error when making a REST call, |
1255 * this method will complete with the same error. | 1255 * this method will complete with the same error. |
1256 */ | 1256 */ |
1257 async.Future<ObjectAccessControls> list(core.String bucket, {core.String ifMet
agenerationMatch, core.String ifMetagenerationNotMatch, core.String userProject}
) { | 1257 async.Future<ObjectAccessControls> list(core.String bucket, {core.String ifMet
agenerationMatch, core.String ifMetagenerationNotMatch, core.String userProject}
) { |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1294 * [request] - The metadata request object. | 1294 * [request] - The metadata request object. |
1295 * | 1295 * |
1296 * Request parameters: | 1296 * Request parameters: |
1297 * | 1297 * |
1298 * [bucket] - Name of a bucket. | 1298 * [bucket] - Name of a bucket. |
1299 * | 1299 * |
1300 * [entity] - The entity holding the permission. Can be user-userId, | 1300 * [entity] - The entity holding the permission. Can be user-userId, |
1301 * user-emailAddress, group-groupId, group-emailAddress, allUsers, or | 1301 * user-emailAddress, group-groupId, group-emailAddress, allUsers, or |
1302 * allAuthenticatedUsers. | 1302 * allAuthenticatedUsers. |
1303 * | 1303 * |
1304 * [userProject] - The project number to be billed for this request, for | 1304 * [userProject] - The project to be billed for this request, for Requester |
1305 * Requester Pays buckets. | 1305 * Pays buckets. |
1306 * | 1306 * |
1307 * Completes with a [ObjectAccessControl]. | 1307 * Completes with a [ObjectAccessControl]. |
1308 * | 1308 * |
1309 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1309 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1310 * error. | 1310 * error. |
1311 * | 1311 * |
1312 * If the used [http.Client] completes with an error when making a REST call, | 1312 * If the used [http.Client] completes with an error when making a REST call, |
1313 * this method will complete with the same error. | 1313 * this method will complete with the same error. |
1314 */ | 1314 */ |
1315 async.Future<ObjectAccessControl> patch(ObjectAccessControl request, core.Stri
ng bucket, core.String entity, {core.String userProject}) { | 1315 async.Future<ObjectAccessControl> patch(ObjectAccessControl request, core.Stri
ng bucket, core.String entity, {core.String userProject}) { |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1351 * [request] - The metadata request object. | 1351 * [request] - The metadata request object. |
1352 * | 1352 * |
1353 * Request parameters: | 1353 * Request parameters: |
1354 * | 1354 * |
1355 * [bucket] - Name of a bucket. | 1355 * [bucket] - Name of a bucket. |
1356 * | 1356 * |
1357 * [entity] - The entity holding the permission. Can be user-userId, | 1357 * [entity] - The entity holding the permission. Can be user-userId, |
1358 * user-emailAddress, group-groupId, group-emailAddress, allUsers, or | 1358 * user-emailAddress, group-groupId, group-emailAddress, allUsers, or |
1359 * allAuthenticatedUsers. | 1359 * allAuthenticatedUsers. |
1360 * | 1360 * |
1361 * [userProject] - The project number to be billed for this request, for | 1361 * [userProject] - The project to be billed for this request, for Requester |
1362 * Requester Pays buckets. | 1362 * Pays buckets. |
1363 * | 1363 * |
1364 * Completes with a [ObjectAccessControl]. | 1364 * Completes with a [ObjectAccessControl]. |
1365 * | 1365 * |
1366 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1366 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1367 * error. | 1367 * error. |
1368 * | 1368 * |
1369 * If the used [http.Client] completes with an error when making a REST call, | 1369 * If the used [http.Client] completes with an error when making a REST call, |
1370 * this method will complete with the same error. | 1370 * this method will complete with the same error. |
1371 */ | 1371 */ |
1372 async.Future<ObjectAccessControl> update(ObjectAccessControl request, core.Str
ing bucket, core.String entity, {core.String userProject}) { | 1372 async.Future<ObjectAccessControl> update(ObjectAccessControl request, core.Str
ing bucket, core.String entity, {core.String userProject}) { |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1413 | 1413 |
1414 /** | 1414 /** |
1415 * Permanently deletes a notification subscription. | 1415 * Permanently deletes a notification subscription. |
1416 * | 1416 * |
1417 * Request parameters: | 1417 * Request parameters: |
1418 * | 1418 * |
1419 * [bucket] - The parent bucket of the notification. | 1419 * [bucket] - The parent bucket of the notification. |
1420 * | 1420 * |
1421 * [notification] - ID of the notification to delete. | 1421 * [notification] - ID of the notification to delete. |
1422 * | 1422 * |
1423 * [userProject] - The project number to be billed for this request, for | 1423 * [userProject] - The project to be billed for this request, for Requester |
1424 * Requester Pays buckets. | 1424 * Pays buckets. |
1425 * | 1425 * |
1426 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1426 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1427 * error. | 1427 * error. |
1428 * | 1428 * |
1429 * If the used [http.Client] completes with an error when making a REST call, | 1429 * If the used [http.Client] completes with an error when making a REST call, |
1430 * this method will complete with the same error. | 1430 * this method will complete with the same error. |
1431 */ | 1431 */ |
1432 async.Future delete(core.String bucket, core.String notification, {core.String
userProject}) { | 1432 async.Future delete(core.String bucket, core.String notification, {core.String
userProject}) { |
1433 var _url = null; | 1433 var _url = null; |
1434 var _queryParams = new core.Map(); | 1434 var _queryParams = new core.Map(); |
(...skipping 28 matching lines...) Expand all Loading... |
1463 | 1463 |
1464 /** | 1464 /** |
1465 * View a notification configuration. | 1465 * View a notification configuration. |
1466 * | 1466 * |
1467 * Request parameters: | 1467 * Request parameters: |
1468 * | 1468 * |
1469 * [bucket] - The parent bucket of the notification. | 1469 * [bucket] - The parent bucket of the notification. |
1470 * | 1470 * |
1471 * [notification] - Notification ID | 1471 * [notification] - Notification ID |
1472 * | 1472 * |
1473 * [userProject] - The project number to be billed for this request, for | 1473 * [userProject] - The project to be billed for this request, for Requester |
1474 * Requester Pays buckets. | 1474 * Pays buckets. |
1475 * | 1475 * |
1476 * Completes with a [Notification]. | 1476 * Completes with a [Notification]. |
1477 * | 1477 * |
1478 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1478 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1479 * error. | 1479 * error. |
1480 * | 1480 * |
1481 * If the used [http.Client] completes with an error when making a REST call, | 1481 * If the used [http.Client] completes with an error when making a REST call, |
1482 * this method will complete with the same error. | 1482 * this method will complete with the same error. |
1483 */ | 1483 */ |
1484 async.Future<Notification> get(core.String bucket, core.String notification, {
core.String userProject}) { | 1484 async.Future<Notification> get(core.String bucket, core.String notification, {
core.String userProject}) { |
(...skipping 28 matching lines...) Expand all Loading... |
1513 | 1513 |
1514 /** | 1514 /** |
1515 * Creates a notification subscription for a given bucket. | 1515 * Creates a notification subscription for a given bucket. |
1516 * | 1516 * |
1517 * [request] - The metadata request object. | 1517 * [request] - The metadata request object. |
1518 * | 1518 * |
1519 * Request parameters: | 1519 * Request parameters: |
1520 * | 1520 * |
1521 * [bucket] - The parent bucket of the notification. | 1521 * [bucket] - The parent bucket of the notification. |
1522 * | 1522 * |
1523 * [userProject] - The project number to be billed for this request, for | 1523 * [userProject] - The project to be billed for this request, for Requester |
1524 * Requester Pays buckets. | 1524 * Pays buckets. |
1525 * | 1525 * |
1526 * Completes with a [Notification]. | 1526 * Completes with a [Notification]. |
1527 * | 1527 * |
1528 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1528 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1529 * error. | 1529 * error. |
1530 * | 1530 * |
1531 * If the used [http.Client] completes with an error when making a REST call, | 1531 * If the used [http.Client] completes with an error when making a REST call, |
1532 * this method will complete with the same error. | 1532 * this method will complete with the same error. |
1533 */ | 1533 */ |
1534 async.Future<Notification> insert(Notification request, core.String bucket, {c
ore.String userProject}) { | 1534 async.Future<Notification> insert(Notification request, core.String bucket, {c
ore.String userProject}) { |
(...skipping 26 matching lines...) Expand all Loading... |
1561 return _response.then((data) => new Notification.fromJson(data)); | 1561 return _response.then((data) => new Notification.fromJson(data)); |
1562 } | 1562 } |
1563 | 1563 |
1564 /** | 1564 /** |
1565 * Retrieves a list of notification subscriptions for a given bucket. | 1565 * Retrieves a list of notification subscriptions for a given bucket. |
1566 * | 1566 * |
1567 * Request parameters: | 1567 * Request parameters: |
1568 * | 1568 * |
1569 * [bucket] - Name of a GCS bucket. | 1569 * [bucket] - Name of a GCS bucket. |
1570 * | 1570 * |
1571 * [userProject] - The project number to be billed for this request, for | 1571 * [userProject] - The project to be billed for this request, for Requester |
1572 * Requester Pays buckets. | 1572 * Pays buckets. |
1573 * | 1573 * |
1574 * Completes with a [Notifications]. | 1574 * Completes with a [Notifications]. |
1575 * | 1575 * |
1576 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1576 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1577 * error. | 1577 * error. |
1578 * | 1578 * |
1579 * If the used [http.Client] completes with an error when making a REST call, | 1579 * If the used [http.Client] completes with an error when making a REST call, |
1580 * this method will complete with the same error. | 1580 * this method will complete with the same error. |
1581 */ | 1581 */ |
1582 async.Future<Notifications> list(core.String bucket, {core.String userProject}
) { | 1582 async.Future<Notifications> list(core.String bucket, {core.String userProject}
) { |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1626 * [object] - Name of the object. For information about how to URL encode | 1626 * [object] - Name of the object. For information about how to URL encode |
1627 * object names to be path safe, see Encoding URI Path Parts. | 1627 * object names to be path safe, see Encoding URI Path Parts. |
1628 * | 1628 * |
1629 * [entity] - The entity holding the permission. Can be user-userId, | 1629 * [entity] - The entity holding the permission. Can be user-userId, |
1630 * user-emailAddress, group-groupId, group-emailAddress, allUsers, or | 1630 * user-emailAddress, group-groupId, group-emailAddress, allUsers, or |
1631 * allAuthenticatedUsers. | 1631 * allAuthenticatedUsers. |
1632 * | 1632 * |
1633 * [generation] - If present, selects a specific revision of this object (as | 1633 * [generation] - If present, selects a specific revision of this object (as |
1634 * opposed to the latest version, the default). | 1634 * opposed to the latest version, the default). |
1635 * | 1635 * |
1636 * [userProject] - The project number to be billed for this request, for | 1636 * [userProject] - The project to be billed for this request, for Requester |
1637 * Requester Pays buckets. | 1637 * Pays buckets. |
1638 * | 1638 * |
1639 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1639 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1640 * error. | 1640 * error. |
1641 * | 1641 * |
1642 * If the used [http.Client] completes with an error when making a REST call, | 1642 * If the used [http.Client] completes with an error when making a REST call, |
1643 * this method will complete with the same error. | 1643 * this method will complete with the same error. |
1644 */ | 1644 */ |
1645 async.Future delete(core.String bucket, core.String object, core.String entity
, {core.String generation, core.String userProject}) { | 1645 async.Future delete(core.String bucket, core.String object, core.String entity
, {core.String generation, core.String userProject}) { |
1646 var _url = null; | 1646 var _url = null; |
1647 var _queryParams = new core.Map(); | 1647 var _queryParams = new core.Map(); |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1690 * [object] - Name of the object. For information about how to URL encode | 1690 * [object] - Name of the object. For information about how to URL encode |
1691 * object names to be path safe, see Encoding URI Path Parts. | 1691 * object names to be path safe, see Encoding URI Path Parts. |
1692 * | 1692 * |
1693 * [entity] - The entity holding the permission. Can be user-userId, | 1693 * [entity] - The entity holding the permission. Can be user-userId, |
1694 * user-emailAddress, group-groupId, group-emailAddress, allUsers, or | 1694 * user-emailAddress, group-groupId, group-emailAddress, allUsers, or |
1695 * allAuthenticatedUsers. | 1695 * allAuthenticatedUsers. |
1696 * | 1696 * |
1697 * [generation] - If present, selects a specific revision of this object (as | 1697 * [generation] - If present, selects a specific revision of this object (as |
1698 * opposed to the latest version, the default). | 1698 * opposed to the latest version, the default). |
1699 * | 1699 * |
1700 * [userProject] - The project number to be billed for this request, for | 1700 * [userProject] - The project to be billed for this request, for Requester |
1701 * Requester Pays buckets. | 1701 * Pays buckets. |
1702 * | 1702 * |
1703 * Completes with a [ObjectAccessControl]. | 1703 * Completes with a [ObjectAccessControl]. |
1704 * | 1704 * |
1705 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1705 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1706 * error. | 1706 * error. |
1707 * | 1707 * |
1708 * If the used [http.Client] completes with an error when making a REST call, | 1708 * If the used [http.Client] completes with an error when making a REST call, |
1709 * this method will complete with the same error. | 1709 * this method will complete with the same error. |
1710 */ | 1710 */ |
1711 async.Future<ObjectAccessControl> get(core.String bucket, core.String object,
core.String entity, {core.String generation, core.String userProject}) { | 1711 async.Future<ObjectAccessControl> get(core.String bucket, core.String object,
core.String entity, {core.String generation, core.String userProject}) { |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1752 * Request parameters: | 1752 * Request parameters: |
1753 * | 1753 * |
1754 * [bucket] - Name of a bucket. | 1754 * [bucket] - Name of a bucket. |
1755 * | 1755 * |
1756 * [object] - Name of the object. For information about how to URL encode | 1756 * [object] - Name of the object. For information about how to URL encode |
1757 * object names to be path safe, see Encoding URI Path Parts. | 1757 * object names to be path safe, see Encoding URI Path Parts. |
1758 * | 1758 * |
1759 * [generation] - If present, selects a specific revision of this object (as | 1759 * [generation] - If present, selects a specific revision of this object (as |
1760 * opposed to the latest version, the default). | 1760 * opposed to the latest version, the default). |
1761 * | 1761 * |
1762 * [userProject] - The project number to be billed for this request, for | 1762 * [userProject] - The project to be billed for this request, for Requester |
1763 * Requester Pays buckets. | 1763 * Pays buckets. |
1764 * | 1764 * |
1765 * Completes with a [ObjectAccessControl]. | 1765 * Completes with a [ObjectAccessControl]. |
1766 * | 1766 * |
1767 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1767 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1768 * error. | 1768 * error. |
1769 * | 1769 * |
1770 * If the used [http.Client] completes with an error when making a REST call, | 1770 * If the used [http.Client] completes with an error when making a REST call, |
1771 * this method will complete with the same error. | 1771 * this method will complete with the same error. |
1772 */ | 1772 */ |
1773 async.Future<ObjectAccessControl> insert(ObjectAccessControl request, core.Str
ing bucket, core.String object, {core.String generation, core.String userProject
}) { | 1773 async.Future<ObjectAccessControl> insert(ObjectAccessControl request, core.Str
ing bucket, core.String object, {core.String generation, core.String userProject
}) { |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1812 * Request parameters: | 1812 * Request parameters: |
1813 * | 1813 * |
1814 * [bucket] - Name of a bucket. | 1814 * [bucket] - Name of a bucket. |
1815 * | 1815 * |
1816 * [object] - Name of the object. For information about how to URL encode | 1816 * [object] - Name of the object. For information about how to URL encode |
1817 * object names to be path safe, see Encoding URI Path Parts. | 1817 * object names to be path safe, see Encoding URI Path Parts. |
1818 * | 1818 * |
1819 * [generation] - If present, selects a specific revision of this object (as | 1819 * [generation] - If present, selects a specific revision of this object (as |
1820 * opposed to the latest version, the default). | 1820 * opposed to the latest version, the default). |
1821 * | 1821 * |
1822 * [userProject] - The project number to be billed for this request, for | 1822 * [userProject] - The project to be billed for this request, for Requester |
1823 * Requester Pays buckets. | 1823 * Pays buckets. |
1824 * | 1824 * |
1825 * Completes with a [ObjectAccessControls]. | 1825 * Completes with a [ObjectAccessControls]. |
1826 * | 1826 * |
1827 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1827 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1828 * error. | 1828 * error. |
1829 * | 1829 * |
1830 * If the used [http.Client] completes with an error when making a REST call, | 1830 * If the used [http.Client] completes with an error when making a REST call, |
1831 * this method will complete with the same error. | 1831 * this method will complete with the same error. |
1832 */ | 1832 */ |
1833 async.Future<ObjectAccessControls> list(core.String bucket, core.String object
, {core.String generation, core.String userProject}) { | 1833 async.Future<ObjectAccessControls> list(core.String bucket, core.String object
, {core.String generation, core.String userProject}) { |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1876 * [object] - Name of the object. For information about how to URL encode | 1876 * [object] - Name of the object. For information about how to URL encode |
1877 * object names to be path safe, see Encoding URI Path Parts. | 1877 * object names to be path safe, see Encoding URI Path Parts. |
1878 * | 1878 * |
1879 * [entity] - The entity holding the permission. Can be user-userId, | 1879 * [entity] - The entity holding the permission. Can be user-userId, |
1880 * user-emailAddress, group-groupId, group-emailAddress, allUsers, or | 1880 * user-emailAddress, group-groupId, group-emailAddress, allUsers, or |
1881 * allAuthenticatedUsers. | 1881 * allAuthenticatedUsers. |
1882 * | 1882 * |
1883 * [generation] - If present, selects a specific revision of this object (as | 1883 * [generation] - If present, selects a specific revision of this object (as |
1884 * opposed to the latest version, the default). | 1884 * opposed to the latest version, the default). |
1885 * | 1885 * |
1886 * [userProject] - The project number to be billed for this request, for | 1886 * [userProject] - The project to be billed for this request, for Requester |
1887 * Requester Pays buckets. | 1887 * Pays buckets. |
1888 * | 1888 * |
1889 * Completes with a [ObjectAccessControl]. | 1889 * Completes with a [ObjectAccessControl]. |
1890 * | 1890 * |
1891 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1891 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1892 * error. | 1892 * error. |
1893 * | 1893 * |
1894 * If the used [http.Client] completes with an error when making a REST call, | 1894 * If the used [http.Client] completes with an error when making a REST call, |
1895 * this method will complete with the same error. | 1895 * this method will complete with the same error. |
1896 */ | 1896 */ |
1897 async.Future<ObjectAccessControl> patch(ObjectAccessControl request, core.Stri
ng bucket, core.String object, core.String entity, {core.String generation, core
.String userProject}) { | 1897 async.Future<ObjectAccessControl> patch(ObjectAccessControl request, core.Stri
ng bucket, core.String object, core.String entity, {core.String generation, core
.String userProject}) { |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1945 * [object] - Name of the object. For information about how to URL encode | 1945 * [object] - Name of the object. For information about how to URL encode |
1946 * object names to be path safe, see Encoding URI Path Parts. | 1946 * object names to be path safe, see Encoding URI Path Parts. |
1947 * | 1947 * |
1948 * [entity] - The entity holding the permission. Can be user-userId, | 1948 * [entity] - The entity holding the permission. Can be user-userId, |
1949 * user-emailAddress, group-groupId, group-emailAddress, allUsers, or | 1949 * user-emailAddress, group-groupId, group-emailAddress, allUsers, or |
1950 * allAuthenticatedUsers. | 1950 * allAuthenticatedUsers. |
1951 * | 1951 * |
1952 * [generation] - If present, selects a specific revision of this object (as | 1952 * [generation] - If present, selects a specific revision of this object (as |
1953 * opposed to the latest version, the default). | 1953 * opposed to the latest version, the default). |
1954 * | 1954 * |
1955 * [userProject] - The project number to be billed for this request, for | 1955 * [userProject] - The project to be billed for this request, for Requester |
1956 * Requester Pays buckets. | 1956 * Pays buckets. |
1957 * | 1957 * |
1958 * Completes with a [ObjectAccessControl]. | 1958 * Completes with a [ObjectAccessControl]. |
1959 * | 1959 * |
1960 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1960 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1961 * error. | 1961 * error. |
1962 * | 1962 * |
1963 * If the used [http.Client] completes with an error when making a REST call, | 1963 * If the used [http.Client] completes with an error when making a REST call, |
1964 * this method will complete with the same error. | 1964 * this method will complete with the same error. |
1965 */ | 1965 */ |
1966 async.Future<ObjectAccessControl> update(ObjectAccessControl request, core.Str
ing bucket, core.String object, core.String entity, {core.String generation, cor
e.String userProject}) { | 1966 async.Future<ObjectAccessControl> update(ObjectAccessControl request, core.Str
ing bucket, core.String object, core.String entity, {core.String generation, cor
e.String userProject}) { |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2038 * members get access according to their roles. | 2038 * members get access according to their roles. |
2039 * - "publicRead" : Object owner gets OWNER access, and allUsers get READER | 2039 * - "publicRead" : Object owner gets OWNER access, and allUsers get READER |
2040 * access. | 2040 * access. |
2041 * | 2041 * |
2042 * [ifGenerationMatch] - Makes the operation conditional on whether the | 2042 * [ifGenerationMatch] - Makes the operation conditional on whether the |
2043 * object's current generation matches the given value. | 2043 * object's current generation matches the given value. |
2044 * | 2044 * |
2045 * [ifMetagenerationMatch] - Makes the operation conditional on whether the | 2045 * [ifMetagenerationMatch] - Makes the operation conditional on whether the |
2046 * object's current metageneration matches the given value. | 2046 * object's current metageneration matches the given value. |
2047 * | 2047 * |
2048 * [userProject] - The project number to be billed for this request, for | 2048 * [kmsKeyName] - Resource name of the Cloud KMS key, of the form |
2049 * Requester Pays buckets. | 2049 * projects/my-project/locations/global/keyRings/my-kr/cryptoKeys/my-key, that |
| 2050 * will be used to encrypt the object. Overrides the object metadata's |
| 2051 * kms_key_name value, if any. |
| 2052 * |
| 2053 * [userProject] - The project to be billed for this request, for Requester |
| 2054 * Pays buckets. |
2050 * | 2055 * |
2051 * [downloadOptions] - Options for downloading. A download can be either a | 2056 * [downloadOptions] - Options for downloading. A download can be either a |
2052 * Metadata (default) or Media download. Partial Media downloads are possible | 2057 * Metadata (default) or Media download. Partial Media downloads are possible |
2053 * as well. | 2058 * as well. |
2054 * | 2059 * |
2055 * Completes with a | 2060 * Completes with a |
2056 * | 2061 * |
2057 * - [Object] for Metadata downloads (see [downloadOptions]). | 2062 * - [Object] for Metadata downloads (see [downloadOptions]). |
2058 * | 2063 * |
2059 * - [commons.Media] for Media downloads (see [downloadOptions]). | 2064 * - [commons.Media] for Media downloads (see [downloadOptions]). |
2060 * | 2065 * |
2061 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2066 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
2062 * error. | 2067 * error. |
2063 * | 2068 * |
2064 * If the used [http.Client] completes with an error when making a REST call, | 2069 * If the used [http.Client] completes with an error when making a REST call, |
2065 * this method will complete with the same error. | 2070 * this method will complete with the same error. |
2066 */ | 2071 */ |
2067 async.Future compose(ComposeRequest request, core.String destinationBucket, co
re.String destinationObject, {core.String destinationPredefinedAcl, core.String
ifGenerationMatch, core.String ifMetagenerationMatch, core.String userProject, c
ommons.DownloadOptions downloadOptions: commons.DownloadOptions.Metadata}) { | 2072 async.Future compose(ComposeRequest request, core.String destinationBucket, co
re.String destinationObject, {core.String destinationPredefinedAcl, core.String
ifGenerationMatch, core.String ifMetagenerationMatch, core.String kmsKeyName, co
re.String userProject, commons.DownloadOptions downloadOptions: commons.Download
Options.Metadata}) { |
2068 var _url = null; | 2073 var _url = null; |
2069 var _queryParams = new core.Map(); | 2074 var _queryParams = new core.Map(); |
2070 var _uploadMedia = null; | 2075 var _uploadMedia = null; |
2071 var _uploadOptions = null; | 2076 var _uploadOptions = null; |
2072 var _downloadOptions = commons.DownloadOptions.Metadata; | 2077 var _downloadOptions = commons.DownloadOptions.Metadata; |
2073 var _body = null; | 2078 var _body = null; |
2074 | 2079 |
2075 if (request != null) { | 2080 if (request != null) { |
2076 _body = convert.JSON.encode((request).toJson()); | 2081 _body = convert.JSON.encode((request).toJson()); |
2077 } | 2082 } |
2078 if (destinationBucket == null) { | 2083 if (destinationBucket == null) { |
2079 throw new core.ArgumentError("Parameter destinationBucket is required."); | 2084 throw new core.ArgumentError("Parameter destinationBucket is required."); |
2080 } | 2085 } |
2081 if (destinationObject == null) { | 2086 if (destinationObject == null) { |
2082 throw new core.ArgumentError("Parameter destinationObject is required."); | 2087 throw new core.ArgumentError("Parameter destinationObject is required."); |
2083 } | 2088 } |
2084 if (destinationPredefinedAcl != null) { | 2089 if (destinationPredefinedAcl != null) { |
2085 _queryParams["destinationPredefinedAcl"] = [destinationPredefinedAcl]; | 2090 _queryParams["destinationPredefinedAcl"] = [destinationPredefinedAcl]; |
2086 } | 2091 } |
2087 if (ifGenerationMatch != null) { | 2092 if (ifGenerationMatch != null) { |
2088 _queryParams["ifGenerationMatch"] = [ifGenerationMatch]; | 2093 _queryParams["ifGenerationMatch"] = [ifGenerationMatch]; |
2089 } | 2094 } |
2090 if (ifMetagenerationMatch != null) { | 2095 if (ifMetagenerationMatch != null) { |
2091 _queryParams["ifMetagenerationMatch"] = [ifMetagenerationMatch]; | 2096 _queryParams["ifMetagenerationMatch"] = [ifMetagenerationMatch]; |
2092 } | 2097 } |
| 2098 if (kmsKeyName != null) { |
| 2099 _queryParams["kmsKeyName"] = [kmsKeyName]; |
| 2100 } |
2093 if (userProject != null) { | 2101 if (userProject != null) { |
2094 _queryParams["userProject"] = [userProject]; | 2102 _queryParams["userProject"] = [userProject]; |
2095 } | 2103 } |
2096 | 2104 |
2097 _downloadOptions = downloadOptions; | 2105 _downloadOptions = downloadOptions; |
2098 | 2106 |
2099 _url = 'b/' + commons.Escaper.ecapeVariable('$destinationBucket') + '/o/' +
commons.Escaper.ecapeVariable('$destinationObject') + '/compose'; | 2107 _url = 'b/' + commons.Escaper.ecapeVariable('$destinationBucket') + '/o/' +
commons.Escaper.ecapeVariable('$destinationObject') + '/compose'; |
2100 | 2108 |
2101 var _response = _requester.request(_url, | 2109 var _response = _requester.request(_url, |
2102 "POST", | 2110 "POST", |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2177 * | 2185 * |
2178 * [projection] - Set of properties to return. Defaults to noAcl, unless the | 2186 * [projection] - Set of properties to return. Defaults to noAcl, unless the |
2179 * object resource specifies the acl property, when it defaults to full. | 2187 * object resource specifies the acl property, when it defaults to full. |
2180 * Possible string values are: | 2188 * Possible string values are: |
2181 * - "full" : Include all properties. | 2189 * - "full" : Include all properties. |
2182 * - "noAcl" : Omit the owner, acl property. | 2190 * - "noAcl" : Omit the owner, acl property. |
2183 * | 2191 * |
2184 * [sourceGeneration] - If present, selects a specific revision of the source | 2192 * [sourceGeneration] - If present, selects a specific revision of the source |
2185 * object (as opposed to the latest version, the default). | 2193 * object (as opposed to the latest version, the default). |
2186 * | 2194 * |
2187 * [userProject] - The project number to be billed for this request, for | 2195 * [userProject] - The project to be billed for this request, for Requester |
2188 * Requester Pays buckets. | 2196 * Pays buckets. |
2189 * | 2197 * |
2190 * [downloadOptions] - Options for downloading. A download can be either a | 2198 * [downloadOptions] - Options for downloading. A download can be either a |
2191 * Metadata (default) or Media download. Partial Media downloads are possible | 2199 * Metadata (default) or Media download. Partial Media downloads are possible |
2192 * as well. | 2200 * as well. |
2193 * | 2201 * |
2194 * Completes with a | 2202 * Completes with a |
2195 * | 2203 * |
2196 * - [Object] for Metadata downloads (see [downloadOptions]). | 2204 * - [Object] for Metadata downloads (see [downloadOptions]). |
2197 * | 2205 * |
2198 * - [commons.Media] for Media downloads (see [downloadOptions]). | 2206 * - [commons.Media] for Media downloads (see [downloadOptions]). |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2301 * | 2309 * |
2302 * [ifGenerationNotMatch] - Makes the operation conditional on whether the | 2310 * [ifGenerationNotMatch] - Makes the operation conditional on whether the |
2303 * object's current generation does not match the given value. | 2311 * object's current generation does not match the given value. |
2304 * | 2312 * |
2305 * [ifMetagenerationMatch] - Makes the operation conditional on whether the | 2313 * [ifMetagenerationMatch] - Makes the operation conditional on whether the |
2306 * object's current metageneration matches the given value. | 2314 * object's current metageneration matches the given value. |
2307 * | 2315 * |
2308 * [ifMetagenerationNotMatch] - Makes the operation conditional on whether the | 2316 * [ifMetagenerationNotMatch] - Makes the operation conditional on whether the |
2309 * object's current metageneration does not match the given value. | 2317 * object's current metageneration does not match the given value. |
2310 * | 2318 * |
2311 * [userProject] - The project number to be billed for this request, for | 2319 * [userProject] - The project to be billed for this request, for Requester |
2312 * Requester Pays buckets. | 2320 * Pays buckets. |
2313 * | 2321 * |
2314 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2322 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
2315 * error. | 2323 * error. |
2316 * | 2324 * |
2317 * If the used [http.Client] completes with an error when making a REST call, | 2325 * If the used [http.Client] completes with an error when making a REST call, |
2318 * this method will complete with the same error. | 2326 * this method will complete with the same error. |
2319 */ | 2327 */ |
2320 async.Future delete(core.String bucket, core.String object, {core.String gener
ation, core.String ifGenerationMatch, core.String ifGenerationNotMatch, core.Str
ing ifMetagenerationMatch, core.String ifMetagenerationNotMatch, core.String use
rProject}) { | 2328 async.Future delete(core.String bucket, core.String object, {core.String gener
ation, core.String ifGenerationMatch, core.String ifGenerationNotMatch, core.Str
ing ifMetagenerationMatch, core.String ifMetagenerationNotMatch, core.String use
rProject}) { |
2321 var _url = null; | 2329 var _url = null; |
2322 var _queryParams = new core.Map(); | 2330 var _queryParams = new core.Map(); |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2387 * object's current metageneration matches the given value. | 2395 * object's current metageneration matches the given value. |
2388 * | 2396 * |
2389 * [ifMetagenerationNotMatch] - Makes the operation conditional on whether the | 2397 * [ifMetagenerationNotMatch] - Makes the operation conditional on whether the |
2390 * object's current metageneration does not match the given value. | 2398 * object's current metageneration does not match the given value. |
2391 * | 2399 * |
2392 * [projection] - Set of properties to return. Defaults to noAcl. | 2400 * [projection] - Set of properties to return. Defaults to noAcl. |
2393 * Possible string values are: | 2401 * Possible string values are: |
2394 * - "full" : Include all properties. | 2402 * - "full" : Include all properties. |
2395 * - "noAcl" : Omit the owner, acl property. | 2403 * - "noAcl" : Omit the owner, acl property. |
2396 * | 2404 * |
2397 * [userProject] - The project number to be billed for this request, for | 2405 * [userProject] - The project to be billed for this request, for Requester |
2398 * Requester Pays buckets. | 2406 * Pays buckets. |
2399 * | 2407 * |
2400 * [downloadOptions] - Options for downloading. A download can be either a | 2408 * [downloadOptions] - Options for downloading. A download can be either a |
2401 * Metadata (default) or Media download. Partial Media downloads are possible | 2409 * Metadata (default) or Media download. Partial Media downloads are possible |
2402 * as well. | 2410 * as well. |
2403 * | 2411 * |
2404 * Completes with a | 2412 * Completes with a |
2405 * | 2413 * |
2406 * - [Object] for Metadata downloads (see [downloadOptions]). | 2414 * - [Object] for Metadata downloads (see [downloadOptions]). |
2407 * | 2415 * |
2408 * - [commons.Media] for Media downloads (see [downloadOptions]). | 2416 * - [commons.Media] for Media downloads (see [downloadOptions]). |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2474 * Request parameters: | 2482 * Request parameters: |
2475 * | 2483 * |
2476 * [bucket] - Name of the bucket in which the object resides. | 2484 * [bucket] - Name of the bucket in which the object resides. |
2477 * | 2485 * |
2478 * [object] - Name of the object. For information about how to URL encode | 2486 * [object] - Name of the object. For information about how to URL encode |
2479 * object names to be path safe, see Encoding URI Path Parts. | 2487 * object names to be path safe, see Encoding URI Path Parts. |
2480 * | 2488 * |
2481 * [generation] - If present, selects a specific revision of this object (as | 2489 * [generation] - If present, selects a specific revision of this object (as |
2482 * opposed to the latest version, the default). | 2490 * opposed to the latest version, the default). |
2483 * | 2491 * |
2484 * [userProject] - The project number to be billed for this request, for | 2492 * [userProject] - The project to be billed for this request, for Requester |
2485 * Requester Pays buckets. | 2493 * Pays buckets. |
2486 * | 2494 * |
2487 * Completes with a [Policy]. | 2495 * Completes with a [Policy]. |
2488 * | 2496 * |
2489 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2497 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
2490 * error. | 2498 * error. |
2491 * | 2499 * |
2492 * If the used [http.Client] completes with an error when making a REST call, | 2500 * If the used [http.Client] completes with an error when making a REST call, |
2493 * this method will complete with the same error. | 2501 * this method will complete with the same error. |
2494 */ | 2502 */ |
2495 async.Future<Policy> getIamPolicy(core.String bucket, core.String object, {cor
e.String generation, core.String userProject}) { | 2503 async.Future<Policy> getIamPolicy(core.String bucket, core.String object, {cor
e.String generation, core.String userProject}) { |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2546 * | 2554 * |
2547 * [ifGenerationNotMatch] - Makes the operation conditional on whether the | 2555 * [ifGenerationNotMatch] - Makes the operation conditional on whether the |
2548 * object's current generation does not match the given value. | 2556 * object's current generation does not match the given value. |
2549 * | 2557 * |
2550 * [ifMetagenerationMatch] - Makes the operation conditional on whether the | 2558 * [ifMetagenerationMatch] - Makes the operation conditional on whether the |
2551 * object's current metageneration matches the given value. | 2559 * object's current metageneration matches the given value. |
2552 * | 2560 * |
2553 * [ifMetagenerationNotMatch] - Makes the operation conditional on whether the | 2561 * [ifMetagenerationNotMatch] - Makes the operation conditional on whether the |
2554 * object's current metageneration does not match the given value. | 2562 * object's current metageneration does not match the given value. |
2555 * | 2563 * |
| 2564 * [kmsKeyName] - Resource name of the Cloud KMS key, of the form |
| 2565 * projects/my-project/locations/global/keyRings/my-kr/cryptoKeys/my-key, that |
| 2566 * will be used to encrypt the object. Overrides the object metadata's |
| 2567 * kms_key_name value, if any. |
| 2568 * |
2556 * [name] - Name of the object. Required when the object metadata is not | 2569 * [name] - Name of the object. Required when the object metadata is not |
2557 * otherwise provided. Overrides the object metadata's name value, if any. For | 2570 * otherwise provided. Overrides the object metadata's name value, if any. For |
2558 * information about how to URL encode object names to be path safe, see | 2571 * information about how to URL encode object names to be path safe, see |
2559 * Encoding URI Path Parts. | 2572 * Encoding URI Path Parts. |
2560 * | 2573 * |
2561 * [predefinedAcl] - Apply a predefined set of access controls to this object. | 2574 * [predefinedAcl] - Apply a predefined set of access controls to this object. |
2562 * Possible string values are: | 2575 * Possible string values are: |
2563 * - "authenticatedRead" : Object owner gets OWNER access, and | 2576 * - "authenticatedRead" : Object owner gets OWNER access, and |
2564 * allAuthenticatedUsers get READER access. | 2577 * allAuthenticatedUsers get READER access. |
2565 * - "bucketOwnerFullControl" : Object owner gets OWNER access, and project | 2578 * - "bucketOwnerFullControl" : Object owner gets OWNER access, and project |
2566 * team owners get OWNER access. | 2579 * team owners get OWNER access. |
2567 * - "bucketOwnerRead" : Object owner gets OWNER access, and project team | 2580 * - "bucketOwnerRead" : Object owner gets OWNER access, and project team |
2568 * owners get READER access. | 2581 * owners get READER access. |
2569 * - "private" : Object owner gets OWNER access. | 2582 * - "private" : Object owner gets OWNER access. |
2570 * - "projectPrivate" : Object owner gets OWNER access, and project team | 2583 * - "projectPrivate" : Object owner gets OWNER access, and project team |
2571 * members get access according to their roles. | 2584 * members get access according to their roles. |
2572 * - "publicRead" : Object owner gets OWNER access, and allUsers get READER | 2585 * - "publicRead" : Object owner gets OWNER access, and allUsers get READER |
2573 * access. | 2586 * access. |
2574 * | 2587 * |
2575 * [projection] - Set of properties to return. Defaults to noAcl, unless the | 2588 * [projection] - Set of properties to return. Defaults to noAcl, unless the |
2576 * object resource specifies the acl property, when it defaults to full. | 2589 * object resource specifies the acl property, when it defaults to full. |
2577 * Possible string values are: | 2590 * Possible string values are: |
2578 * - "full" : Include all properties. | 2591 * - "full" : Include all properties. |
2579 * - "noAcl" : Omit the owner, acl property. | 2592 * - "noAcl" : Omit the owner, acl property. |
2580 * | 2593 * |
2581 * [userProject] - The project number to be billed for this request, for | 2594 * [userProject] - The project to be billed for this request, for Requester |
2582 * Requester Pays buckets. | 2595 * Pays buckets. |
2583 * | 2596 * |
2584 * [uploadMedia] - The media to upload. | 2597 * [uploadMedia] - The media to upload. |
2585 * | 2598 * |
2586 * [uploadOptions] - Options for the media upload. Streaming Media without the | 2599 * [uploadOptions] - Options for the media upload. Streaming Media without the |
2587 * length being known ahead of time is only supported via resumable uploads. | 2600 * length being known ahead of time is only supported via resumable uploads. |
2588 * | 2601 * |
2589 * [downloadOptions] - Options for downloading. A download can be either a | 2602 * [downloadOptions] - Options for downloading. A download can be either a |
2590 * Metadata (default) or Media download. Partial Media downloads are possible | 2603 * Metadata (default) or Media download. Partial Media downloads are possible |
2591 * as well. | 2604 * as well. |
2592 * | 2605 * |
2593 * Completes with a | 2606 * Completes with a |
2594 * | 2607 * |
2595 * - [Object] for Metadata downloads (see [downloadOptions]). | 2608 * - [Object] for Metadata downloads (see [downloadOptions]). |
2596 * | 2609 * |
2597 * - [commons.Media] for Media downloads (see [downloadOptions]). | 2610 * - [commons.Media] for Media downloads (see [downloadOptions]). |
2598 * | 2611 * |
2599 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2612 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
2600 * error. | 2613 * error. |
2601 * | 2614 * |
2602 * If the used [http.Client] completes with an error when making a REST call, | 2615 * If the used [http.Client] completes with an error when making a REST call, |
2603 * this method will complete with the same error. | 2616 * this method will complete with the same error. |
2604 */ | 2617 */ |
2605 async.Future insert(Object request, core.String bucket, {core.String contentEn
coding, core.String ifGenerationMatch, core.String ifGenerationNotMatch, core.St
ring ifMetagenerationMatch, core.String ifMetagenerationNotMatch, core.String na
me, core.String predefinedAcl, core.String projection, core.String userProject,
commons.UploadOptions uploadOptions : commons.UploadOptions.Default, commons.Med
ia uploadMedia, commons.DownloadOptions downloadOptions: commons.DownloadOptions
.Metadata}) { | 2618 async.Future insert(Object request, core.String bucket, {core.String contentEn
coding, core.String ifGenerationMatch, core.String ifGenerationNotMatch, core.St
ring ifMetagenerationMatch, core.String ifMetagenerationNotMatch, core.String km
sKeyName, core.String name, core.String predefinedAcl, core.String projection, c
ore.String userProject, commons.UploadOptions uploadOptions : commons.UploadOpti
ons.Default, commons.Media uploadMedia, commons.DownloadOptions downloadOptions:
commons.DownloadOptions.Metadata}) { |
2606 var _url = null; | 2619 var _url = null; |
2607 var _queryParams = new core.Map(); | 2620 var _queryParams = new core.Map(); |
2608 var _uploadMedia = null; | 2621 var _uploadMedia = null; |
2609 var _uploadOptions = null; | 2622 var _uploadOptions = null; |
2610 var _downloadOptions = commons.DownloadOptions.Metadata; | 2623 var _downloadOptions = commons.DownloadOptions.Metadata; |
2611 var _body = null; | 2624 var _body = null; |
2612 | 2625 |
2613 if (request != null) { | 2626 if (request != null) { |
2614 _body = convert.JSON.encode((request).toJson()); | 2627 _body = convert.JSON.encode((request).toJson()); |
2615 } | 2628 } |
2616 if (bucket == null) { | 2629 if (bucket == null) { |
2617 throw new core.ArgumentError("Parameter bucket is required."); | 2630 throw new core.ArgumentError("Parameter bucket is required."); |
2618 } | 2631 } |
2619 if (contentEncoding != null) { | 2632 if (contentEncoding != null) { |
2620 _queryParams["contentEncoding"] = [contentEncoding]; | 2633 _queryParams["contentEncoding"] = [contentEncoding]; |
2621 } | 2634 } |
2622 if (ifGenerationMatch != null) { | 2635 if (ifGenerationMatch != null) { |
2623 _queryParams["ifGenerationMatch"] = [ifGenerationMatch]; | 2636 _queryParams["ifGenerationMatch"] = [ifGenerationMatch]; |
2624 } | 2637 } |
2625 if (ifGenerationNotMatch != null) { | 2638 if (ifGenerationNotMatch != null) { |
2626 _queryParams["ifGenerationNotMatch"] = [ifGenerationNotMatch]; | 2639 _queryParams["ifGenerationNotMatch"] = [ifGenerationNotMatch]; |
2627 } | 2640 } |
2628 if (ifMetagenerationMatch != null) { | 2641 if (ifMetagenerationMatch != null) { |
2629 _queryParams["ifMetagenerationMatch"] = [ifMetagenerationMatch]; | 2642 _queryParams["ifMetagenerationMatch"] = [ifMetagenerationMatch]; |
2630 } | 2643 } |
2631 if (ifMetagenerationNotMatch != null) { | 2644 if (ifMetagenerationNotMatch != null) { |
2632 _queryParams["ifMetagenerationNotMatch"] = [ifMetagenerationNotMatch]; | 2645 _queryParams["ifMetagenerationNotMatch"] = [ifMetagenerationNotMatch]; |
2633 } | 2646 } |
| 2647 if (kmsKeyName != null) { |
| 2648 _queryParams["kmsKeyName"] = [kmsKeyName]; |
| 2649 } |
2634 if (name != null) { | 2650 if (name != null) { |
2635 _queryParams["name"] = [name]; | 2651 _queryParams["name"] = [name]; |
2636 } | 2652 } |
2637 if (predefinedAcl != null) { | 2653 if (predefinedAcl != null) { |
2638 _queryParams["predefinedAcl"] = [predefinedAcl]; | 2654 _queryParams["predefinedAcl"] = [predefinedAcl]; |
2639 } | 2655 } |
2640 if (projection != null) { | 2656 if (projection != null) { |
2641 _queryParams["projection"] = [projection]; | 2657 _queryParams["projection"] = [projection]; |
2642 } | 2658 } |
2643 if (userProject != null) { | 2659 if (userProject != null) { |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2694 * [pageToken] - A previously-returned page token representing part of the | 2710 * [pageToken] - A previously-returned page token representing part of the |
2695 * larger set of results to view. | 2711 * larger set of results to view. |
2696 * | 2712 * |
2697 * [prefix] - Filter results to objects whose names begin with this prefix. | 2713 * [prefix] - Filter results to objects whose names begin with this prefix. |
2698 * | 2714 * |
2699 * [projection] - Set of properties to return. Defaults to noAcl. | 2715 * [projection] - Set of properties to return. Defaults to noAcl. |
2700 * Possible string values are: | 2716 * Possible string values are: |
2701 * - "full" : Include all properties. | 2717 * - "full" : Include all properties. |
2702 * - "noAcl" : Omit the owner, acl property. | 2718 * - "noAcl" : Omit the owner, acl property. |
2703 * | 2719 * |
2704 * [userProject] - The project number to be billed for this request, for | 2720 * [userProject] - The project to be billed for this request, for Requester |
2705 * Requester Pays buckets. | 2721 * Pays buckets. |
2706 * | 2722 * |
2707 * [versions] - If true, lists all versions of an object as distinct results. | 2723 * [versions] - If true, lists all versions of an object as distinct results. |
2708 * The default is false. For more information, see Object Versioning. | 2724 * The default is false. For more information, see Object Versioning. |
2709 * | 2725 * |
2710 * Completes with a [Objects]. | 2726 * Completes with a [Objects]. |
2711 * | 2727 * |
2712 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2728 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
2713 * error. | 2729 * error. |
2714 * | 2730 * |
2715 * If the used [http.Client] completes with an error when making a REST call, | 2731 * If the used [http.Client] completes with an error when making a REST call, |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2799 * - "projectPrivate" : Object owner gets OWNER access, and project team | 2815 * - "projectPrivate" : Object owner gets OWNER access, and project team |
2800 * members get access according to their roles. | 2816 * members get access according to their roles. |
2801 * - "publicRead" : Object owner gets OWNER access, and allUsers get READER | 2817 * - "publicRead" : Object owner gets OWNER access, and allUsers get READER |
2802 * access. | 2818 * access. |
2803 * | 2819 * |
2804 * [projection] - Set of properties to return. Defaults to full. | 2820 * [projection] - Set of properties to return. Defaults to full. |
2805 * Possible string values are: | 2821 * Possible string values are: |
2806 * - "full" : Include all properties. | 2822 * - "full" : Include all properties. |
2807 * - "noAcl" : Omit the owner, acl property. | 2823 * - "noAcl" : Omit the owner, acl property. |
2808 * | 2824 * |
2809 * [userProject] - The project number to be billed for this request, for | 2825 * [userProject] - The project to be billed for this request, for Requester |
2810 * Requester Pays buckets. | 2826 * Pays buckets. |
2811 * | 2827 * |
2812 * Completes with a [Object]. | 2828 * Completes with a [Object]. |
2813 * | 2829 * |
2814 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2830 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
2815 * error. | 2831 * error. |
2816 * | 2832 * |
2817 * If the used [http.Client] completes with an error when making a REST call, | 2833 * If the used [http.Client] completes with an error when making a REST call, |
2818 * this method will complete with the same error. | 2834 * this method will complete with the same error. |
2819 */ | 2835 */ |
2820 async.Future<Object> patch(Object request, core.String bucket, core.String obj
ect, {core.String generation, core.String ifGenerationMatch, core.String ifGener
ationNotMatch, core.String ifMetagenerationMatch, core.String ifMetagenerationNo
tMatch, core.String predefinedAcl, core.String projection, core.String userProje
ct}) { | 2836 async.Future<Object> patch(Object request, core.String bucket, core.String obj
ect, {core.String generation, core.String ifGenerationMatch, core.String ifGener
ationNotMatch, core.String ifMetagenerationMatch, core.String ifMetagenerationNo
tMatch, core.String predefinedAcl, core.String projection, core.String userProje
ct}) { |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2885 * URL encode object names to be path safe, see Encoding URI Path Parts. | 2901 * URL encode object names to be path safe, see Encoding URI Path Parts. |
2886 * | 2902 * |
2887 * [destinationBucket] - Name of the bucket in which to store the new object. | 2903 * [destinationBucket] - Name of the bucket in which to store the new object. |
2888 * Overrides the provided object metadata's bucket value, if any. | 2904 * Overrides the provided object metadata's bucket value, if any. |
2889 * | 2905 * |
2890 * [destinationObject] - Name of the new object. Required when the object | 2906 * [destinationObject] - Name of the new object. Required when the object |
2891 * metadata is not otherwise provided. Overrides the object metadata's name | 2907 * metadata is not otherwise provided. Overrides the object metadata's name |
2892 * value, if any. For information about how to URL encode object names to be | 2908 * value, if any. For information about how to URL encode object names to be |
2893 * path safe, see Encoding URI Path Parts. | 2909 * path safe, see Encoding URI Path Parts. |
2894 * | 2910 * |
| 2911 * [destinationKmsKeyName] - Resource name of the Cloud KMS key, of the form |
| 2912 * projects/my-project/locations/global/keyRings/my-kr/cryptoKeys/my-key, that |
| 2913 * will be used to encrypt the object. Overrides the object metadata's |
| 2914 * kms_key_name value, if any. |
| 2915 * |
2895 * [destinationPredefinedAcl] - Apply a predefined set of access controls to | 2916 * [destinationPredefinedAcl] - Apply a predefined set of access controls to |
2896 * the destination object. | 2917 * the destination object. |
2897 * Possible string values are: | 2918 * Possible string values are: |
2898 * - "authenticatedRead" : Object owner gets OWNER access, and | 2919 * - "authenticatedRead" : Object owner gets OWNER access, and |
2899 * allAuthenticatedUsers get READER access. | 2920 * allAuthenticatedUsers get READER access. |
2900 * - "bucketOwnerFullControl" : Object owner gets OWNER access, and project | 2921 * - "bucketOwnerFullControl" : Object owner gets OWNER access, and project |
2901 * team owners get OWNER access. | 2922 * team owners get OWNER access. |
2902 * - "bucketOwnerRead" : Object owner gets OWNER access, and project team | 2923 * - "bucketOwnerRead" : Object owner gets OWNER access, and project team |
2903 * owners get READER access. | 2924 * owners get READER access. |
2904 * - "private" : Object owner gets OWNER access. | 2925 * - "private" : Object owner gets OWNER access. |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2948 * | 2969 * |
2949 * [rewriteToken] - Include this field (from the previous rewrite response) on | 2970 * [rewriteToken] - Include this field (from the previous rewrite response) on |
2950 * each rewrite request after the first one, until the rewrite response 'done' | 2971 * each rewrite request after the first one, until the rewrite response 'done' |
2951 * flag is true. Calls that provide a rewriteToken can omit all other request | 2972 * flag is true. Calls that provide a rewriteToken can omit all other request |
2952 * fields, but if included those fields must match the values provided in the | 2973 * fields, but if included those fields must match the values provided in the |
2953 * first rewrite request. | 2974 * first rewrite request. |
2954 * | 2975 * |
2955 * [sourceGeneration] - If present, selects a specific revision of the source | 2976 * [sourceGeneration] - If present, selects a specific revision of the source |
2956 * object (as opposed to the latest version, the default). | 2977 * object (as opposed to the latest version, the default). |
2957 * | 2978 * |
2958 * [userProject] - The project number to be billed for this request, for | 2979 * [userProject] - The project to be billed for this request, for Requester |
2959 * Requester Pays buckets. | 2980 * Pays buckets. |
2960 * | 2981 * |
2961 * Completes with a [RewriteResponse]. | 2982 * Completes with a [RewriteResponse]. |
2962 * | 2983 * |
2963 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2984 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
2964 * error. | 2985 * error. |
2965 * | 2986 * |
2966 * If the used [http.Client] completes with an error when making a REST call, | 2987 * If the used [http.Client] completes with an error when making a REST call, |
2967 * this method will complete with the same error. | 2988 * this method will complete with the same error. |
2968 */ | 2989 */ |
2969 async.Future<RewriteResponse> rewrite(Object request, core.String sourceBucket
, core.String sourceObject, core.String destinationBucket, core.String destinati
onObject, {core.String destinationPredefinedAcl, core.String ifGenerationMatch,
core.String ifGenerationNotMatch, core.String ifMetagenerationMatch, core.String
ifMetagenerationNotMatch, core.String ifSourceGenerationMatch, core.String ifSo
urceGenerationNotMatch, core.String ifSourceMetagenerationMatch, core.String ifS
ourceMetagenerationNotMatch, core.String maxBytesRewrittenPerCall, core.String p
rojection, core.String rewriteToken, core.String sourceGeneration, core.String u
serProject}) { | 2990 async.Future<RewriteResponse> rewrite(Object request, core.String sourceBucket
, core.String sourceObject, core.String destinationBucket, core.String destinati
onObject, {core.String destinationKmsKeyName, core.String destinationPredefinedA
cl, core.String ifGenerationMatch, core.String ifGenerationNotMatch, core.String
ifMetagenerationMatch, core.String ifMetagenerationNotMatch, core.String ifSour
ceGenerationMatch, core.String ifSourceGenerationNotMatch, core.String ifSourceM
etagenerationMatch, core.String ifSourceMetagenerationNotMatch, core.String maxB
ytesRewrittenPerCall, core.String projection, core.String rewriteToken, core.Str
ing sourceGeneration, core.String userProject}) { |
2970 var _url = null; | 2991 var _url = null; |
2971 var _queryParams = new core.Map(); | 2992 var _queryParams = new core.Map(); |
2972 var _uploadMedia = null; | 2993 var _uploadMedia = null; |
2973 var _uploadOptions = null; | 2994 var _uploadOptions = null; |
2974 var _downloadOptions = commons.DownloadOptions.Metadata; | 2995 var _downloadOptions = commons.DownloadOptions.Metadata; |
2975 var _body = null; | 2996 var _body = null; |
2976 | 2997 |
2977 if (request != null) { | 2998 if (request != null) { |
2978 _body = convert.JSON.encode((request).toJson()); | 2999 _body = convert.JSON.encode((request).toJson()); |
2979 } | 3000 } |
2980 if (sourceBucket == null) { | 3001 if (sourceBucket == null) { |
2981 throw new core.ArgumentError("Parameter sourceBucket is required."); | 3002 throw new core.ArgumentError("Parameter sourceBucket is required."); |
2982 } | 3003 } |
2983 if (sourceObject == null) { | 3004 if (sourceObject == null) { |
2984 throw new core.ArgumentError("Parameter sourceObject is required."); | 3005 throw new core.ArgumentError("Parameter sourceObject is required."); |
2985 } | 3006 } |
2986 if (destinationBucket == null) { | 3007 if (destinationBucket == null) { |
2987 throw new core.ArgumentError("Parameter destinationBucket is required."); | 3008 throw new core.ArgumentError("Parameter destinationBucket is required."); |
2988 } | 3009 } |
2989 if (destinationObject == null) { | 3010 if (destinationObject == null) { |
2990 throw new core.ArgumentError("Parameter destinationObject is required."); | 3011 throw new core.ArgumentError("Parameter destinationObject is required."); |
2991 } | 3012 } |
| 3013 if (destinationKmsKeyName != null) { |
| 3014 _queryParams["destinationKmsKeyName"] = [destinationKmsKeyName]; |
| 3015 } |
2992 if (destinationPredefinedAcl != null) { | 3016 if (destinationPredefinedAcl != null) { |
2993 _queryParams["destinationPredefinedAcl"] = [destinationPredefinedAcl]; | 3017 _queryParams["destinationPredefinedAcl"] = [destinationPredefinedAcl]; |
2994 } | 3018 } |
2995 if (ifGenerationMatch != null) { | 3019 if (ifGenerationMatch != null) { |
2996 _queryParams["ifGenerationMatch"] = [ifGenerationMatch]; | 3020 _queryParams["ifGenerationMatch"] = [ifGenerationMatch]; |
2997 } | 3021 } |
2998 if (ifGenerationNotMatch != null) { | 3022 if (ifGenerationNotMatch != null) { |
2999 _queryParams["ifGenerationNotMatch"] = [ifGenerationNotMatch]; | 3023 _queryParams["ifGenerationNotMatch"] = [ifGenerationNotMatch]; |
3000 } | 3024 } |
3001 if (ifMetagenerationMatch != null) { | 3025 if (ifMetagenerationMatch != null) { |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3052 * Request parameters: | 3076 * Request parameters: |
3053 * | 3077 * |
3054 * [bucket] - Name of the bucket in which the object resides. | 3078 * [bucket] - Name of the bucket in which the object resides. |
3055 * | 3079 * |
3056 * [object] - Name of the object. For information about how to URL encode | 3080 * [object] - Name of the object. For information about how to URL encode |
3057 * object names to be path safe, see Encoding URI Path Parts. | 3081 * object names to be path safe, see Encoding URI Path Parts. |
3058 * | 3082 * |
3059 * [generation] - If present, selects a specific revision of this object (as | 3083 * [generation] - If present, selects a specific revision of this object (as |
3060 * opposed to the latest version, the default). | 3084 * opposed to the latest version, the default). |
3061 * | 3085 * |
3062 * [userProject] - The project number to be billed for this request, for | 3086 * [userProject] - The project to be billed for this request, for Requester |
3063 * Requester Pays buckets. | 3087 * Pays buckets. |
3064 * | 3088 * |
3065 * Completes with a [Policy]. | 3089 * Completes with a [Policy]. |
3066 * | 3090 * |
3067 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 3091 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
3068 * error. | 3092 * error. |
3069 * | 3093 * |
3070 * If the used [http.Client] completes with an error when making a REST call, | 3094 * If the used [http.Client] completes with an error when making a REST call, |
3071 * this method will complete with the same error. | 3095 * this method will complete with the same error. |
3072 */ | 3096 */ |
3073 async.Future<Policy> setIamPolicy(Policy request, core.String bucket, core.Str
ing object, {core.String generation, core.String userProject}) { | 3097 async.Future<Policy> setIamPolicy(Policy request, core.String bucket, core.Str
ing object, {core.String generation, core.String userProject}) { |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3115 * [bucket] - Name of the bucket in which the object resides. | 3139 * [bucket] - Name of the bucket in which the object resides. |
3116 * | 3140 * |
3117 * [object] - Name of the object. For information about how to URL encode | 3141 * [object] - Name of the object. For information about how to URL encode |
3118 * object names to be path safe, see Encoding URI Path Parts. | 3142 * object names to be path safe, see Encoding URI Path Parts. |
3119 * | 3143 * |
3120 * [permissions] - Permissions to test. | 3144 * [permissions] - Permissions to test. |
3121 * | 3145 * |
3122 * [generation] - If present, selects a specific revision of this object (as | 3146 * [generation] - If present, selects a specific revision of this object (as |
3123 * opposed to the latest version, the default). | 3147 * opposed to the latest version, the default). |
3124 * | 3148 * |
3125 * [userProject] - The project number to be billed for this request, for | 3149 * [userProject] - The project to be billed for this request, for Requester |
3126 * Requester Pays buckets. | 3150 * Pays buckets. |
3127 * | 3151 * |
3128 * Completes with a [TestIamPermissionsResponse]. | 3152 * Completes with a [TestIamPermissionsResponse]. |
3129 * | 3153 * |
3130 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 3154 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
3131 * error. | 3155 * error. |
3132 * | 3156 * |
3133 * If the used [http.Client] completes with an error when making a REST call, | 3157 * If the used [http.Client] completes with an error when making a REST call, |
3134 * this method will complete with the same error. | 3158 * this method will complete with the same error. |
3135 */ | 3159 */ |
3136 async.Future<TestIamPermissionsResponse> testIamPermissions(core.String bucket
, core.String object, core.List<core.String> permissions, {core.String generatio
n, core.String userProject}) { | 3160 async.Future<TestIamPermissionsResponse> testIamPermissions(core.String bucket
, core.String object, core.List<core.String> permissions, {core.String generatio
n, core.String userProject}) { |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3209 * - "projectPrivate" : Object owner gets OWNER access, and project team | 3233 * - "projectPrivate" : Object owner gets OWNER access, and project team |
3210 * members get access according to their roles. | 3234 * members get access according to their roles. |
3211 * - "publicRead" : Object owner gets OWNER access, and allUsers get READER | 3235 * - "publicRead" : Object owner gets OWNER access, and allUsers get READER |
3212 * access. | 3236 * access. |
3213 * | 3237 * |
3214 * [projection] - Set of properties to return. Defaults to full. | 3238 * [projection] - Set of properties to return. Defaults to full. |
3215 * Possible string values are: | 3239 * Possible string values are: |
3216 * - "full" : Include all properties. | 3240 * - "full" : Include all properties. |
3217 * - "noAcl" : Omit the owner, acl property. | 3241 * - "noAcl" : Omit the owner, acl property. |
3218 * | 3242 * |
3219 * [userProject] - The project number to be billed for this request, for | 3243 * [userProject] - The project to be billed for this request, for Requester |
3220 * Requester Pays buckets. | 3244 * Pays buckets. |
3221 * | 3245 * |
3222 * [downloadOptions] - Options for downloading. A download can be either a | 3246 * [downloadOptions] - Options for downloading. A download can be either a |
3223 * Metadata (default) or Media download. Partial Media downloads are possible | 3247 * Metadata (default) or Media download. Partial Media downloads are possible |
3224 * as well. | 3248 * as well. |
3225 * | 3249 * |
3226 * Completes with a | 3250 * Completes with a |
3227 * | 3251 * |
3228 * - [Object] for Metadata downloads (see [downloadOptions]). | 3252 * - [Object] for Metadata downloads (see [downloadOptions]). |
3229 * | 3253 * |
3230 * - [commons.Media] for Media downloads (see [downloadOptions]). | 3254 * - [commons.Media] for Media downloads (see [downloadOptions]). |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3319 * [pageToken] - A previously-returned page token representing part of the | 3343 * [pageToken] - A previously-returned page token representing part of the |
3320 * larger set of results to view. | 3344 * larger set of results to view. |
3321 * | 3345 * |
3322 * [prefix] - Filter results to objects whose names begin with this prefix. | 3346 * [prefix] - Filter results to objects whose names begin with this prefix. |
3323 * | 3347 * |
3324 * [projection] - Set of properties to return. Defaults to noAcl. | 3348 * [projection] - Set of properties to return. Defaults to noAcl. |
3325 * Possible string values are: | 3349 * Possible string values are: |
3326 * - "full" : Include all properties. | 3350 * - "full" : Include all properties. |
3327 * - "noAcl" : Omit the owner, acl property. | 3351 * - "noAcl" : Omit the owner, acl property. |
3328 * | 3352 * |
3329 * [userProject] - The project number to be billed for this request, for | 3353 * [userProject] - The project to be billed for this request, for Requester |
3330 * Requester Pays buckets. | 3354 * Pays buckets. |
3331 * | 3355 * |
3332 * [versions] - If true, lists all versions of an object as distinct results. | 3356 * [versions] - If true, lists all versions of an object as distinct results. |
3333 * The default is false. For more information, see Object Versioning. | 3357 * The default is false. For more information, see Object Versioning. |
3334 * | 3358 * |
3335 * Completes with a [Channel]. | 3359 * Completes with a [Channel]. |
3336 * | 3360 * |
3337 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 3361 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
3338 * error. | 3362 * error. |
3339 * | 3363 * |
3340 * If the used [http.Client] completes with an error when making a REST call, | 3364 * If the used [http.Client] completes with an error when making a REST call, |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3456 core.bool requesterPays; | 3480 core.bool requesterPays; |
3457 | 3481 |
3458 BucketBilling(); | 3482 BucketBilling(); |
3459 | 3483 |
3460 BucketBilling.fromJson(core.Map _json) { | 3484 BucketBilling.fromJson(core.Map _json) { |
3461 if (_json.containsKey("requesterPays")) { | 3485 if (_json.containsKey("requesterPays")) { |
3462 requesterPays = _json["requesterPays"]; | 3486 requesterPays = _json["requesterPays"]; |
3463 } | 3487 } |
3464 } | 3488 } |
3465 | 3489 |
3466 core.Map toJson() { | 3490 core.Map<core.String, core.Object> toJson() { |
3467 var _json = new core.Map(); | 3491 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3468 if (requesterPays != null) { | 3492 if (requesterPays != null) { |
3469 _json["requesterPays"] = requesterPays; | 3493 _json["requesterPays"] = requesterPays; |
3470 } | 3494 } |
3471 return _json; | 3495 return _json; |
3472 } | 3496 } |
3473 } | 3497 } |
3474 | 3498 |
3475 class BucketCors { | 3499 class BucketCors { |
3476 /** | 3500 /** |
3477 * The value, in seconds, to return in the Access-Control-Max-Age header used | 3501 * The value, in seconds, to return in the Access-Control-Max-Age header used |
(...skipping 27 matching lines...) Expand all Loading... |
3505 method = _json["method"]; | 3529 method = _json["method"]; |
3506 } | 3530 } |
3507 if (_json.containsKey("origin")) { | 3531 if (_json.containsKey("origin")) { |
3508 origin = _json["origin"]; | 3532 origin = _json["origin"]; |
3509 } | 3533 } |
3510 if (_json.containsKey("responseHeader")) { | 3534 if (_json.containsKey("responseHeader")) { |
3511 responseHeader = _json["responseHeader"]; | 3535 responseHeader = _json["responseHeader"]; |
3512 } | 3536 } |
3513 } | 3537 } |
3514 | 3538 |
3515 core.Map toJson() { | 3539 core.Map<core.String, core.Object> toJson() { |
3516 var _json = new core.Map(); | 3540 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3517 if (maxAgeSeconds != null) { | 3541 if (maxAgeSeconds != null) { |
3518 _json["maxAgeSeconds"] = maxAgeSeconds; | 3542 _json["maxAgeSeconds"] = maxAgeSeconds; |
3519 } | 3543 } |
3520 if (method != null) { | 3544 if (method != null) { |
3521 _json["method"] = method; | 3545 _json["method"] = method; |
3522 } | 3546 } |
3523 if (origin != null) { | 3547 if (origin != null) { |
3524 _json["origin"] = origin; | 3548 _json["origin"] = origin; |
3525 } | 3549 } |
3526 if (responseHeader != null) { | 3550 if (responseHeader != null) { |
3527 _json["responseHeader"] = responseHeader; | 3551 _json["responseHeader"] = responseHeader; |
3528 } | 3552 } |
3529 return _json; | 3553 return _json; |
3530 } | 3554 } |
3531 } | 3555 } |
3532 | 3556 |
| 3557 /** |
| 3558 * Encryption configuration used by default for newly inserted objects, when no |
| 3559 * encryption config is specified. |
| 3560 */ |
| 3561 class BucketEncryption { |
| 3562 core.String defaultKmsKeyName; |
| 3563 |
| 3564 BucketEncryption(); |
| 3565 |
| 3566 BucketEncryption.fromJson(core.Map _json) { |
| 3567 if (_json.containsKey("defaultKmsKeyName")) { |
| 3568 defaultKmsKeyName = _json["defaultKmsKeyName"]; |
| 3569 } |
| 3570 } |
| 3571 |
| 3572 core.Map<core.String, core.Object> toJson() { |
| 3573 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3574 if (defaultKmsKeyName != null) { |
| 3575 _json["defaultKmsKeyName"] = defaultKmsKeyName; |
| 3576 } |
| 3577 return _json; |
| 3578 } |
| 3579 } |
| 3580 |
3533 /** The action to take. */ | 3581 /** The action to take. */ |
3534 class BucketLifecycleRuleAction { | 3582 class BucketLifecycleRuleAction { |
3535 /** | 3583 /** |
3536 * Target storage class. Required iff the type of the action is | 3584 * Target storage class. Required iff the type of the action is |
3537 * SetStorageClass. | 3585 * SetStorageClass. |
3538 */ | 3586 */ |
3539 core.String storageClass; | 3587 core.String storageClass; |
3540 /** | 3588 /** |
3541 * Type of the action. Currently, only Delete and SetStorageClass are | 3589 * Type of the action. Currently, only Delete and SetStorageClass are |
3542 * supported. | 3590 * supported. |
3543 */ | 3591 */ |
3544 core.String type; | 3592 core.String type; |
3545 | 3593 |
3546 BucketLifecycleRuleAction(); | 3594 BucketLifecycleRuleAction(); |
3547 | 3595 |
3548 BucketLifecycleRuleAction.fromJson(core.Map _json) { | 3596 BucketLifecycleRuleAction.fromJson(core.Map _json) { |
3549 if (_json.containsKey("storageClass")) { | 3597 if (_json.containsKey("storageClass")) { |
3550 storageClass = _json["storageClass"]; | 3598 storageClass = _json["storageClass"]; |
3551 } | 3599 } |
3552 if (_json.containsKey("type")) { | 3600 if (_json.containsKey("type")) { |
3553 type = _json["type"]; | 3601 type = _json["type"]; |
3554 } | 3602 } |
3555 } | 3603 } |
3556 | 3604 |
3557 core.Map toJson() { | 3605 core.Map<core.String, core.Object> toJson() { |
3558 var _json = new core.Map(); | 3606 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3559 if (storageClass != null) { | 3607 if (storageClass != null) { |
3560 _json["storageClass"] = storageClass; | 3608 _json["storageClass"] = storageClass; |
3561 } | 3609 } |
3562 if (type != null) { | 3610 if (type != null) { |
3563 _json["type"] = type; | 3611 _json["type"] = type; |
3564 } | 3612 } |
3565 return _json; | 3613 return _json; |
3566 } | 3614 } |
3567 } | 3615 } |
3568 | 3616 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3610 isLive = _json["isLive"]; | 3658 isLive = _json["isLive"]; |
3611 } | 3659 } |
3612 if (_json.containsKey("matchesStorageClass")) { | 3660 if (_json.containsKey("matchesStorageClass")) { |
3613 matchesStorageClass = _json["matchesStorageClass"]; | 3661 matchesStorageClass = _json["matchesStorageClass"]; |
3614 } | 3662 } |
3615 if (_json.containsKey("numNewerVersions")) { | 3663 if (_json.containsKey("numNewerVersions")) { |
3616 numNewerVersions = _json["numNewerVersions"]; | 3664 numNewerVersions = _json["numNewerVersions"]; |
3617 } | 3665 } |
3618 } | 3666 } |
3619 | 3667 |
3620 core.Map toJson() { | 3668 core.Map<core.String, core.Object> toJson() { |
3621 var _json = new core.Map(); | 3669 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3622 if (age != null) { | 3670 if (age != null) { |
3623 _json["age"] = age; | 3671 _json["age"] = age; |
3624 } | 3672 } |
3625 if (createdBefore != null) { | 3673 if (createdBefore != null) { |
3626 _json["createdBefore"] = "${(createdBefore).year.toString().padLeft(4, '0'
)}-${(createdBefore).month.toString().padLeft(2, '0')}-${(createdBefore).day.toS
tring().padLeft(2, '0')}"; | 3674 _json["createdBefore"] = "${(createdBefore).year.toString().padLeft(4, '0'
)}-${(createdBefore).month.toString().padLeft(2, '0')}-${(createdBefore).day.toS
tring().padLeft(2, '0')}"; |
3627 } | 3675 } |
3628 if (isLive != null) { | 3676 if (isLive != null) { |
3629 _json["isLive"] = isLive; | 3677 _json["isLive"] = isLive; |
3630 } | 3678 } |
3631 if (matchesStorageClass != null) { | 3679 if (matchesStorageClass != null) { |
(...skipping 16 matching lines...) Expand all Loading... |
3648 | 3696 |
3649 BucketLifecycleRule.fromJson(core.Map _json) { | 3697 BucketLifecycleRule.fromJson(core.Map _json) { |
3650 if (_json.containsKey("action")) { | 3698 if (_json.containsKey("action")) { |
3651 action = new BucketLifecycleRuleAction.fromJson(_json["action"]); | 3699 action = new BucketLifecycleRuleAction.fromJson(_json["action"]); |
3652 } | 3700 } |
3653 if (_json.containsKey("condition")) { | 3701 if (_json.containsKey("condition")) { |
3654 condition = new BucketLifecycleRuleCondition.fromJson(_json["condition"]); | 3702 condition = new BucketLifecycleRuleCondition.fromJson(_json["condition"]); |
3655 } | 3703 } |
3656 } | 3704 } |
3657 | 3705 |
3658 core.Map toJson() { | 3706 core.Map<core.String, core.Object> toJson() { |
3659 var _json = new core.Map(); | 3707 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3660 if (action != null) { | 3708 if (action != null) { |
3661 _json["action"] = (action).toJson(); | 3709 _json["action"] = (action).toJson(); |
3662 } | 3710 } |
3663 if (condition != null) { | 3711 if (condition != null) { |
3664 _json["condition"] = (condition).toJson(); | 3712 _json["condition"] = (condition).toJson(); |
3665 } | 3713 } |
3666 return _json; | 3714 return _json; |
3667 } | 3715 } |
3668 } | 3716 } |
3669 | 3717 |
3670 /** | 3718 /** |
3671 * The bucket's lifecycle configuration. See lifecycle management for more | 3719 * The bucket's lifecycle configuration. See lifecycle management for more |
3672 * information. | 3720 * information. |
3673 */ | 3721 */ |
3674 class BucketLifecycle { | 3722 class BucketLifecycle { |
3675 /** | 3723 /** |
3676 * A lifecycle management rule, which is made of an action to take and the | 3724 * A lifecycle management rule, which is made of an action to take and the |
3677 * condition(s) under which the action will be taken. | 3725 * condition(s) under which the action will be taken. |
3678 */ | 3726 */ |
3679 core.List<BucketLifecycleRule> rule; | 3727 core.List<BucketLifecycleRule> rule; |
3680 | 3728 |
3681 BucketLifecycle(); | 3729 BucketLifecycle(); |
3682 | 3730 |
3683 BucketLifecycle.fromJson(core.Map _json) { | 3731 BucketLifecycle.fromJson(core.Map _json) { |
3684 if (_json.containsKey("rule")) { | 3732 if (_json.containsKey("rule")) { |
3685 rule = _json["rule"].map((value) => new BucketLifecycleRule.fromJson(value
)).toList(); | 3733 rule = _json["rule"].map((value) => new BucketLifecycleRule.fromJson(value
)).toList(); |
3686 } | 3734 } |
3687 } | 3735 } |
3688 | 3736 |
3689 core.Map toJson() { | 3737 core.Map<core.String, core.Object> toJson() { |
3690 var _json = new core.Map(); | 3738 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3691 if (rule != null) { | 3739 if (rule != null) { |
3692 _json["rule"] = rule.map((value) => (value).toJson()).toList(); | 3740 _json["rule"] = rule.map((value) => (value).toJson()).toList(); |
3693 } | 3741 } |
3694 return _json; | 3742 return _json; |
3695 } | 3743 } |
3696 } | 3744 } |
3697 | 3745 |
3698 /** | 3746 /** |
3699 * The bucket's logging configuration, which defines the destination bucket and | 3747 * The bucket's logging configuration, which defines the destination bucket and |
3700 * optional name prefix for the current bucket's logs. | 3748 * optional name prefix for the current bucket's logs. |
(...skipping 10 matching lines...) Expand all Loading... |
3711 | 3759 |
3712 BucketLogging.fromJson(core.Map _json) { | 3760 BucketLogging.fromJson(core.Map _json) { |
3713 if (_json.containsKey("logBucket")) { | 3761 if (_json.containsKey("logBucket")) { |
3714 logBucket = _json["logBucket"]; | 3762 logBucket = _json["logBucket"]; |
3715 } | 3763 } |
3716 if (_json.containsKey("logObjectPrefix")) { | 3764 if (_json.containsKey("logObjectPrefix")) { |
3717 logObjectPrefix = _json["logObjectPrefix"]; | 3765 logObjectPrefix = _json["logObjectPrefix"]; |
3718 } | 3766 } |
3719 } | 3767 } |
3720 | 3768 |
3721 core.Map toJson() { | 3769 core.Map<core.String, core.Object> toJson() { |
3722 var _json = new core.Map(); | 3770 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3723 if (logBucket != null) { | 3771 if (logBucket != null) { |
3724 _json["logBucket"] = logBucket; | 3772 _json["logBucket"] = logBucket; |
3725 } | 3773 } |
3726 if (logObjectPrefix != null) { | 3774 if (logObjectPrefix != null) { |
3727 _json["logObjectPrefix"] = logObjectPrefix; | 3775 _json["logObjectPrefix"] = logObjectPrefix; |
3728 } | 3776 } |
3729 return _json; | 3777 return _json; |
3730 } | 3778 } |
3731 } | 3779 } |
3732 | 3780 |
3733 /** The owner of the bucket. This is always the project team's owner group. */ | 3781 /** The owner of the bucket. This is always the project team's owner group. */ |
3734 class BucketOwner { | 3782 class BucketOwner { |
3735 /** The entity, in the form project-owner-projectId. */ | 3783 /** The entity, in the form project-owner-projectId. */ |
3736 core.String entity; | 3784 core.String entity; |
3737 /** The ID for the entity. */ | 3785 /** The ID for the entity. */ |
3738 core.String entityId; | 3786 core.String entityId; |
3739 | 3787 |
3740 BucketOwner(); | 3788 BucketOwner(); |
3741 | 3789 |
3742 BucketOwner.fromJson(core.Map _json) { | 3790 BucketOwner.fromJson(core.Map _json) { |
3743 if (_json.containsKey("entity")) { | 3791 if (_json.containsKey("entity")) { |
3744 entity = _json["entity"]; | 3792 entity = _json["entity"]; |
3745 } | 3793 } |
3746 if (_json.containsKey("entityId")) { | 3794 if (_json.containsKey("entityId")) { |
3747 entityId = _json["entityId"]; | 3795 entityId = _json["entityId"]; |
3748 } | 3796 } |
3749 } | 3797 } |
3750 | 3798 |
3751 core.Map toJson() { | 3799 core.Map<core.String, core.Object> toJson() { |
3752 var _json = new core.Map(); | 3800 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3753 if (entity != null) { | 3801 if (entity != null) { |
3754 _json["entity"] = entity; | 3802 _json["entity"] = entity; |
3755 } | 3803 } |
3756 if (entityId != null) { | 3804 if (entityId != null) { |
3757 _json["entityId"] = entityId; | 3805 _json["entityId"] = entityId; |
3758 } | 3806 } |
3759 return _json; | 3807 return _json; |
3760 } | 3808 } |
3761 } | 3809 } |
3762 | 3810 |
3763 /** The bucket's versioning configuration. */ | 3811 /** The bucket's versioning configuration. */ |
3764 class BucketVersioning { | 3812 class BucketVersioning { |
3765 /** While set to true, versioning is fully enabled for this bucket. */ | 3813 /** While set to true, versioning is fully enabled for this bucket. */ |
3766 core.bool enabled; | 3814 core.bool enabled; |
3767 | 3815 |
3768 BucketVersioning(); | 3816 BucketVersioning(); |
3769 | 3817 |
3770 BucketVersioning.fromJson(core.Map _json) { | 3818 BucketVersioning.fromJson(core.Map _json) { |
3771 if (_json.containsKey("enabled")) { | 3819 if (_json.containsKey("enabled")) { |
3772 enabled = _json["enabled"]; | 3820 enabled = _json["enabled"]; |
3773 } | 3821 } |
3774 } | 3822 } |
3775 | 3823 |
3776 core.Map toJson() { | 3824 core.Map<core.String, core.Object> toJson() { |
3777 var _json = new core.Map(); | 3825 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3778 if (enabled != null) { | 3826 if (enabled != null) { |
3779 _json["enabled"] = enabled; | 3827 _json["enabled"] = enabled; |
3780 } | 3828 } |
3781 return _json; | 3829 return _json; |
3782 } | 3830 } |
3783 } | 3831 } |
3784 | 3832 |
3785 /** | 3833 /** |
3786 * The bucket's website configuration, controlling how the service behaves when | 3834 * The bucket's website configuration, controlling how the service behaves when |
3787 * accessing bucket contents as a web site. See the Static Website Examples for | 3835 * accessing bucket contents as a web site. See the Static Website Examples for |
(...skipping 18 matching lines...) Expand all Loading... |
3806 | 3854 |
3807 BucketWebsite.fromJson(core.Map _json) { | 3855 BucketWebsite.fromJson(core.Map _json) { |
3808 if (_json.containsKey("mainPageSuffix")) { | 3856 if (_json.containsKey("mainPageSuffix")) { |
3809 mainPageSuffix = _json["mainPageSuffix"]; | 3857 mainPageSuffix = _json["mainPageSuffix"]; |
3810 } | 3858 } |
3811 if (_json.containsKey("notFoundPage")) { | 3859 if (_json.containsKey("notFoundPage")) { |
3812 notFoundPage = _json["notFoundPage"]; | 3860 notFoundPage = _json["notFoundPage"]; |
3813 } | 3861 } |
3814 } | 3862 } |
3815 | 3863 |
3816 core.Map toJson() { | 3864 core.Map<core.String, core.Object> toJson() { |
3817 var _json = new core.Map(); | 3865 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3818 if (mainPageSuffix != null) { | 3866 if (mainPageSuffix != null) { |
3819 _json["mainPageSuffix"] = mainPageSuffix; | 3867 _json["mainPageSuffix"] = mainPageSuffix; |
3820 } | 3868 } |
3821 if (notFoundPage != null) { | 3869 if (notFoundPage != null) { |
3822 _json["notFoundPage"] = notFoundPage; | 3870 _json["notFoundPage"] = notFoundPage; |
3823 } | 3871 } |
3824 return _json; | 3872 return _json; |
3825 } | 3873 } |
3826 } | 3874 } |
3827 | 3875 |
3828 /** A bucket. */ | 3876 /** A bucket. */ |
3829 class Bucket { | 3877 class Bucket { |
3830 /** Access controls on the bucket. */ | 3878 /** Access controls on the bucket. */ |
3831 core.List<BucketAccessControl> acl; | 3879 core.List<BucketAccessControl> acl; |
3832 /** The bucket's billing configuration. */ | 3880 /** The bucket's billing configuration. */ |
3833 BucketBilling billing; | 3881 BucketBilling billing; |
3834 /** The bucket's Cross-Origin Resource Sharing (CORS) configuration. */ | 3882 /** The bucket's Cross-Origin Resource Sharing (CORS) configuration. */ |
3835 core.List<BucketCors> cors; | 3883 core.List<BucketCors> cors; |
3836 /** | 3884 /** |
3837 * Default access controls to apply to new objects when no ACL is provided. | 3885 * Default access controls to apply to new objects when no ACL is provided. |
3838 */ | 3886 */ |
3839 core.List<ObjectAccessControl> defaultObjectAcl; | 3887 core.List<ObjectAccessControl> defaultObjectAcl; |
| 3888 /** |
| 3889 * Encryption configuration used by default for newly inserted objects, when |
| 3890 * no encryption config is specified. |
| 3891 */ |
| 3892 BucketEncryption encryption; |
3840 /** HTTP 1.1 Entity tag for the bucket. */ | 3893 /** HTTP 1.1 Entity tag for the bucket. */ |
3841 core.String etag; | 3894 core.String etag; |
3842 /** | 3895 /** |
3843 * The ID of the bucket. For buckets, the id and name properities are the | 3896 * The ID of the bucket. For buckets, the id and name properities are the |
3844 * same. | 3897 * same. |
3845 */ | 3898 */ |
3846 core.String id; | 3899 core.String id; |
3847 /** The kind of item this is. For buckets, this is always storage#bucket. */ | 3900 /** The kind of item this is. For buckets, this is always storage#bucket. */ |
3848 core.String kind; | 3901 core.String kind; |
3849 /** User-provided labels, in key/value pairs. */ | 3902 /** User-provided labels, in key/value pairs. */ |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3907 } | 3960 } |
3908 if (_json.containsKey("billing")) { | 3961 if (_json.containsKey("billing")) { |
3909 billing = new BucketBilling.fromJson(_json["billing"]); | 3962 billing = new BucketBilling.fromJson(_json["billing"]); |
3910 } | 3963 } |
3911 if (_json.containsKey("cors")) { | 3964 if (_json.containsKey("cors")) { |
3912 cors = _json["cors"].map((value) => new BucketCors.fromJson(value)).toList
(); | 3965 cors = _json["cors"].map((value) => new BucketCors.fromJson(value)).toList
(); |
3913 } | 3966 } |
3914 if (_json.containsKey("defaultObjectAcl")) { | 3967 if (_json.containsKey("defaultObjectAcl")) { |
3915 defaultObjectAcl = _json["defaultObjectAcl"].map((value) => new ObjectAcce
ssControl.fromJson(value)).toList(); | 3968 defaultObjectAcl = _json["defaultObjectAcl"].map((value) => new ObjectAcce
ssControl.fromJson(value)).toList(); |
3916 } | 3969 } |
| 3970 if (_json.containsKey("encryption")) { |
| 3971 encryption = new BucketEncryption.fromJson(_json["encryption"]); |
| 3972 } |
3917 if (_json.containsKey("etag")) { | 3973 if (_json.containsKey("etag")) { |
3918 etag = _json["etag"]; | 3974 etag = _json["etag"]; |
3919 } | 3975 } |
3920 if (_json.containsKey("id")) { | 3976 if (_json.containsKey("id")) { |
3921 id = _json["id"]; | 3977 id = _json["id"]; |
3922 } | 3978 } |
3923 if (_json.containsKey("kind")) { | 3979 if (_json.containsKey("kind")) { |
3924 kind = _json["kind"]; | 3980 kind = _json["kind"]; |
3925 } | 3981 } |
3926 if (_json.containsKey("labels")) { | 3982 if (_json.containsKey("labels")) { |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3960 updated = core.DateTime.parse(_json["updated"]); | 4016 updated = core.DateTime.parse(_json["updated"]); |
3961 } | 4017 } |
3962 if (_json.containsKey("versioning")) { | 4018 if (_json.containsKey("versioning")) { |
3963 versioning = new BucketVersioning.fromJson(_json["versioning"]); | 4019 versioning = new BucketVersioning.fromJson(_json["versioning"]); |
3964 } | 4020 } |
3965 if (_json.containsKey("website")) { | 4021 if (_json.containsKey("website")) { |
3966 website = new BucketWebsite.fromJson(_json["website"]); | 4022 website = new BucketWebsite.fromJson(_json["website"]); |
3967 } | 4023 } |
3968 } | 4024 } |
3969 | 4025 |
3970 core.Map toJson() { | 4026 core.Map<core.String, core.Object> toJson() { |
3971 var _json = new core.Map(); | 4027 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3972 if (acl != null) { | 4028 if (acl != null) { |
3973 _json["acl"] = acl.map((value) => (value).toJson()).toList(); | 4029 _json["acl"] = acl.map((value) => (value).toJson()).toList(); |
3974 } | 4030 } |
3975 if (billing != null) { | 4031 if (billing != null) { |
3976 _json["billing"] = (billing).toJson(); | 4032 _json["billing"] = (billing).toJson(); |
3977 } | 4033 } |
3978 if (cors != null) { | 4034 if (cors != null) { |
3979 _json["cors"] = cors.map((value) => (value).toJson()).toList(); | 4035 _json["cors"] = cors.map((value) => (value).toJson()).toList(); |
3980 } | 4036 } |
3981 if (defaultObjectAcl != null) { | 4037 if (defaultObjectAcl != null) { |
3982 _json["defaultObjectAcl"] = defaultObjectAcl.map((value) => (value).toJson
()).toList(); | 4038 _json["defaultObjectAcl"] = defaultObjectAcl.map((value) => (value).toJson
()).toList(); |
3983 } | 4039 } |
| 4040 if (encryption != null) { |
| 4041 _json["encryption"] = (encryption).toJson(); |
| 4042 } |
3984 if (etag != null) { | 4043 if (etag != null) { |
3985 _json["etag"] = etag; | 4044 _json["etag"] = etag; |
3986 } | 4045 } |
3987 if (id != null) { | 4046 if (id != null) { |
3988 _json["id"] = id; | 4047 _json["id"] = id; |
3989 } | 4048 } |
3990 if (kind != null) { | 4049 if (kind != null) { |
3991 _json["kind"] = kind; | 4050 _json["kind"] = kind; |
3992 } | 4051 } |
3993 if (labels != null) { | 4052 if (labels != null) { |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4047 | 4106 |
4048 BucketAccessControlProjectTeam.fromJson(core.Map _json) { | 4107 BucketAccessControlProjectTeam.fromJson(core.Map _json) { |
4049 if (_json.containsKey("projectNumber")) { | 4108 if (_json.containsKey("projectNumber")) { |
4050 projectNumber = _json["projectNumber"]; | 4109 projectNumber = _json["projectNumber"]; |
4051 } | 4110 } |
4052 if (_json.containsKey("team")) { | 4111 if (_json.containsKey("team")) { |
4053 team = _json["team"]; | 4112 team = _json["team"]; |
4054 } | 4113 } |
4055 } | 4114 } |
4056 | 4115 |
4057 core.Map toJson() { | 4116 core.Map<core.String, core.Object> toJson() { |
4058 var _json = new core.Map(); | 4117 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4059 if (projectNumber != null) { | 4118 if (projectNumber != null) { |
4060 _json["projectNumber"] = projectNumber; | 4119 _json["projectNumber"] = projectNumber; |
4061 } | 4120 } |
4062 if (team != null) { | 4121 if (team != null) { |
4063 _json["team"] = team; | 4122 _json["team"] = team; |
4064 } | 4123 } |
4065 return _json; | 4124 return _json; |
4066 } | 4125 } |
4067 } | 4126 } |
4068 | 4127 |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4140 projectTeam = new BucketAccessControlProjectTeam.fromJson(_json["projectTe
am"]); | 4199 projectTeam = new BucketAccessControlProjectTeam.fromJson(_json["projectTe
am"]); |
4141 } | 4200 } |
4142 if (_json.containsKey("role")) { | 4201 if (_json.containsKey("role")) { |
4143 role = _json["role"]; | 4202 role = _json["role"]; |
4144 } | 4203 } |
4145 if (_json.containsKey("selfLink")) { | 4204 if (_json.containsKey("selfLink")) { |
4146 selfLink = _json["selfLink"]; | 4205 selfLink = _json["selfLink"]; |
4147 } | 4206 } |
4148 } | 4207 } |
4149 | 4208 |
4150 core.Map toJson() { | 4209 core.Map<core.String, core.Object> toJson() { |
4151 var _json = new core.Map(); | 4210 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4152 if (bucket != null) { | 4211 if (bucket != null) { |
4153 _json["bucket"] = bucket; | 4212 _json["bucket"] = bucket; |
4154 } | 4213 } |
4155 if (domain != null) { | 4214 if (domain != null) { |
4156 _json["domain"] = domain; | 4215 _json["domain"] = domain; |
4157 } | 4216 } |
4158 if (email != null) { | 4217 if (email != null) { |
4159 _json["email"] = email; | 4218 _json["email"] = email; |
4160 } | 4219 } |
4161 if (entity != null) { | 4220 if (entity != null) { |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4200 | 4259 |
4201 BucketAccessControls.fromJson(core.Map _json) { | 4260 BucketAccessControls.fromJson(core.Map _json) { |
4202 if (_json.containsKey("items")) { | 4261 if (_json.containsKey("items")) { |
4203 items = _json["items"].map((value) => new BucketAccessControl.fromJson(val
ue)).toList(); | 4262 items = _json["items"].map((value) => new BucketAccessControl.fromJson(val
ue)).toList(); |
4204 } | 4263 } |
4205 if (_json.containsKey("kind")) { | 4264 if (_json.containsKey("kind")) { |
4206 kind = _json["kind"]; | 4265 kind = _json["kind"]; |
4207 } | 4266 } |
4208 } | 4267 } |
4209 | 4268 |
4210 core.Map toJson() { | 4269 core.Map<core.String, core.Object> toJson() { |
4211 var _json = new core.Map(); | 4270 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4212 if (items != null) { | 4271 if (items != null) { |
4213 _json["items"] = items.map((value) => (value).toJson()).toList(); | 4272 _json["items"] = items.map((value) => (value).toJson()).toList(); |
4214 } | 4273 } |
4215 if (kind != null) { | 4274 if (kind != null) { |
4216 _json["kind"] = kind; | 4275 _json["kind"] = kind; |
4217 } | 4276 } |
4218 return _json; | 4277 return _json; |
4219 } | 4278 } |
4220 } | 4279 } |
4221 | 4280 |
(...skipping 19 matching lines...) Expand all Loading... |
4241 items = _json["items"].map((value) => new Bucket.fromJson(value)).toList()
; | 4300 items = _json["items"].map((value) => new Bucket.fromJson(value)).toList()
; |
4242 } | 4301 } |
4243 if (_json.containsKey("kind")) { | 4302 if (_json.containsKey("kind")) { |
4244 kind = _json["kind"]; | 4303 kind = _json["kind"]; |
4245 } | 4304 } |
4246 if (_json.containsKey("nextPageToken")) { | 4305 if (_json.containsKey("nextPageToken")) { |
4247 nextPageToken = _json["nextPageToken"]; | 4306 nextPageToken = _json["nextPageToken"]; |
4248 } | 4307 } |
4249 } | 4308 } |
4250 | 4309 |
4251 core.Map toJson() { | 4310 core.Map<core.String, core.Object> toJson() { |
4252 var _json = new core.Map(); | 4311 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4253 if (items != null) { | 4312 if (items != null) { |
4254 _json["items"] = items.map((value) => (value).toJson()).toList(); | 4313 _json["items"] = items.map((value) => (value).toJson()).toList(); |
4255 } | 4314 } |
4256 if (kind != null) { | 4315 if (kind != null) { |
4257 _json["kind"] = kind; | 4316 _json["kind"] = kind; |
4258 } | 4317 } |
4259 if (nextPageToken != null) { | 4318 if (nextPageToken != null) { |
4260 _json["nextPageToken"] = nextPageToken; | 4319 _json["nextPageToken"] = nextPageToken; |
4261 } | 4320 } |
4262 return _json; | 4321 return _json; |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4326 resourceUri = _json["resourceUri"]; | 4385 resourceUri = _json["resourceUri"]; |
4327 } | 4386 } |
4328 if (_json.containsKey("token")) { | 4387 if (_json.containsKey("token")) { |
4329 token = _json["token"]; | 4388 token = _json["token"]; |
4330 } | 4389 } |
4331 if (_json.containsKey("type")) { | 4390 if (_json.containsKey("type")) { |
4332 type = _json["type"]; | 4391 type = _json["type"]; |
4333 } | 4392 } |
4334 } | 4393 } |
4335 | 4394 |
4336 core.Map toJson() { | 4395 core.Map<core.String, core.Object> toJson() { |
4337 var _json = new core.Map(); | 4396 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4338 if (address != null) { | 4397 if (address != null) { |
4339 _json["address"] = address; | 4398 _json["address"] = address; |
4340 } | 4399 } |
4341 if (expiration != null) { | 4400 if (expiration != null) { |
4342 _json["expiration"] = expiration; | 4401 _json["expiration"] = expiration; |
4343 } | 4402 } |
4344 if (id != null) { | 4403 if (id != null) { |
4345 _json["id"] = id; | 4404 _json["id"] = id; |
4346 } | 4405 } |
4347 if (kind != null) { | 4406 if (kind != null) { |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4379 core.String ifGenerationMatch; | 4438 core.String ifGenerationMatch; |
4380 | 4439 |
4381 ComposeRequestSourceObjectsObjectPreconditions(); | 4440 ComposeRequestSourceObjectsObjectPreconditions(); |
4382 | 4441 |
4383 ComposeRequestSourceObjectsObjectPreconditions.fromJson(core.Map _json) { | 4442 ComposeRequestSourceObjectsObjectPreconditions.fromJson(core.Map _json) { |
4384 if (_json.containsKey("ifGenerationMatch")) { | 4443 if (_json.containsKey("ifGenerationMatch")) { |
4385 ifGenerationMatch = _json["ifGenerationMatch"]; | 4444 ifGenerationMatch = _json["ifGenerationMatch"]; |
4386 } | 4445 } |
4387 } | 4446 } |
4388 | 4447 |
4389 core.Map toJson() { | 4448 core.Map<core.String, core.Object> toJson() { |
4390 var _json = new core.Map(); | 4449 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4391 if (ifGenerationMatch != null) { | 4450 if (ifGenerationMatch != null) { |
4392 _json["ifGenerationMatch"] = ifGenerationMatch; | 4451 _json["ifGenerationMatch"] = ifGenerationMatch; |
4393 } | 4452 } |
4394 return _json; | 4453 return _json; |
4395 } | 4454 } |
4396 } | 4455 } |
4397 | 4456 |
4398 class ComposeRequestSourceObjects { | 4457 class ComposeRequestSourceObjects { |
4399 /** The generation of this object to use as the source. */ | 4458 /** The generation of this object to use as the source. */ |
4400 core.String generation; | 4459 core.String generation; |
(...skipping 12 matching lines...) Expand all Loading... |
4413 generation = _json["generation"]; | 4472 generation = _json["generation"]; |
4414 } | 4473 } |
4415 if (_json.containsKey("name")) { | 4474 if (_json.containsKey("name")) { |
4416 name = _json["name"]; | 4475 name = _json["name"]; |
4417 } | 4476 } |
4418 if (_json.containsKey("objectPreconditions")) { | 4477 if (_json.containsKey("objectPreconditions")) { |
4419 objectPreconditions = new ComposeRequestSourceObjectsObjectPreconditions.f
romJson(_json["objectPreconditions"]); | 4478 objectPreconditions = new ComposeRequestSourceObjectsObjectPreconditions.f
romJson(_json["objectPreconditions"]); |
4420 } | 4479 } |
4421 } | 4480 } |
4422 | 4481 |
4423 core.Map toJson() { | 4482 core.Map<core.String, core.Object> toJson() { |
4424 var _json = new core.Map(); | 4483 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4425 if (generation != null) { | 4484 if (generation != null) { |
4426 _json["generation"] = generation; | 4485 _json["generation"] = generation; |
4427 } | 4486 } |
4428 if (name != null) { | 4487 if (name != null) { |
4429 _json["name"] = name; | 4488 _json["name"] = name; |
4430 } | 4489 } |
4431 if (objectPreconditions != null) { | 4490 if (objectPreconditions != null) { |
4432 _json["objectPreconditions"] = (objectPreconditions).toJson(); | 4491 _json["objectPreconditions"] = (objectPreconditions).toJson(); |
4433 } | 4492 } |
4434 return _json; | 4493 return _json; |
(...skipping 18 matching lines...) Expand all Loading... |
4453 destination = new Object.fromJson(_json["destination"]); | 4512 destination = new Object.fromJson(_json["destination"]); |
4454 } | 4513 } |
4455 if (_json.containsKey("kind")) { | 4514 if (_json.containsKey("kind")) { |
4456 kind = _json["kind"]; | 4515 kind = _json["kind"]; |
4457 } | 4516 } |
4458 if (_json.containsKey("sourceObjects")) { | 4517 if (_json.containsKey("sourceObjects")) { |
4459 sourceObjects = _json["sourceObjects"].map((value) => new ComposeRequestSo
urceObjects.fromJson(value)).toList(); | 4518 sourceObjects = _json["sourceObjects"].map((value) => new ComposeRequestSo
urceObjects.fromJson(value)).toList(); |
4460 } | 4519 } |
4461 } | 4520 } |
4462 | 4521 |
4463 core.Map toJson() { | 4522 core.Map<core.String, core.Object> toJson() { |
4464 var _json = new core.Map(); | 4523 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4465 if (destination != null) { | 4524 if (destination != null) { |
4466 _json["destination"] = (destination).toJson(); | 4525 _json["destination"] = (destination).toJson(); |
4467 } | 4526 } |
4468 if (kind != null) { | 4527 if (kind != null) { |
4469 _json["kind"] = kind; | 4528 _json["kind"] = kind; |
4470 } | 4529 } |
4471 if (sourceObjects != null) { | 4530 if (sourceObjects != null) { |
4472 _json["sourceObjects"] = sourceObjects.map((value) => (value).toJson()).to
List(); | 4531 _json["sourceObjects"] = sourceObjects.map((value) => (value).toJson()).to
List(); |
4473 } | 4532 } |
4474 return _json; | 4533 return _json; |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4536 payloadFormat = _json["payload_format"]; | 4595 payloadFormat = _json["payload_format"]; |
4537 } | 4596 } |
4538 if (_json.containsKey("selfLink")) { | 4597 if (_json.containsKey("selfLink")) { |
4539 selfLink = _json["selfLink"]; | 4598 selfLink = _json["selfLink"]; |
4540 } | 4599 } |
4541 if (_json.containsKey("topic")) { | 4600 if (_json.containsKey("topic")) { |
4542 topic = _json["topic"]; | 4601 topic = _json["topic"]; |
4543 } | 4602 } |
4544 } | 4603 } |
4545 | 4604 |
4546 core.Map toJson() { | 4605 core.Map<core.String, core.Object> toJson() { |
4547 var _json = new core.Map(); | 4606 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4548 if (customAttributes != null) { | 4607 if (customAttributes != null) { |
4549 _json["custom_attributes"] = customAttributes; | 4608 _json["custom_attributes"] = customAttributes; |
4550 } | 4609 } |
4551 if (etag != null) { | 4610 if (etag != null) { |
4552 _json["etag"] = etag; | 4611 _json["etag"] = etag; |
4553 } | 4612 } |
4554 if (eventTypes != null) { | 4613 if (eventTypes != null) { |
4555 _json["event_types"] = eventTypes; | 4614 _json["event_types"] = eventTypes; |
4556 } | 4615 } |
4557 if (id != null) { | 4616 if (id != null) { |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4590 | 4649 |
4591 Notifications.fromJson(core.Map _json) { | 4650 Notifications.fromJson(core.Map _json) { |
4592 if (_json.containsKey("items")) { | 4651 if (_json.containsKey("items")) { |
4593 items = _json["items"].map((value) => new Notification.fromJson(value)).to
List(); | 4652 items = _json["items"].map((value) => new Notification.fromJson(value)).to
List(); |
4594 } | 4653 } |
4595 if (_json.containsKey("kind")) { | 4654 if (_json.containsKey("kind")) { |
4596 kind = _json["kind"]; | 4655 kind = _json["kind"]; |
4597 } | 4656 } |
4598 } | 4657 } |
4599 | 4658 |
4600 core.Map toJson() { | 4659 core.Map<core.String, core.Object> toJson() { |
4601 var _json = new core.Map(); | 4660 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4602 if (items != null) { | 4661 if (items != null) { |
4603 _json["items"] = items.map((value) => (value).toJson()).toList(); | 4662 _json["items"] = items.map((value) => (value).toJson()).toList(); |
4604 } | 4663 } |
4605 if (kind != null) { | 4664 if (kind != null) { |
4606 _json["kind"] = kind; | 4665 _json["kind"] = kind; |
4607 } | 4666 } |
4608 return _json; | 4667 return _json; |
4609 } | 4668 } |
4610 } | 4669 } |
4611 | 4670 |
(...skipping 11 matching lines...) Expand all Loading... |
4623 | 4682 |
4624 ObjectCustomerEncryption.fromJson(core.Map _json) { | 4683 ObjectCustomerEncryption.fromJson(core.Map _json) { |
4625 if (_json.containsKey("encryptionAlgorithm")) { | 4684 if (_json.containsKey("encryptionAlgorithm")) { |
4626 encryptionAlgorithm = _json["encryptionAlgorithm"]; | 4685 encryptionAlgorithm = _json["encryptionAlgorithm"]; |
4627 } | 4686 } |
4628 if (_json.containsKey("keySha256")) { | 4687 if (_json.containsKey("keySha256")) { |
4629 keySha256 = _json["keySha256"]; | 4688 keySha256 = _json["keySha256"]; |
4630 } | 4689 } |
4631 } | 4690 } |
4632 | 4691 |
4633 core.Map toJson() { | 4692 core.Map<core.String, core.Object> toJson() { |
4634 var _json = new core.Map(); | 4693 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4635 if (encryptionAlgorithm != null) { | 4694 if (encryptionAlgorithm != null) { |
4636 _json["encryptionAlgorithm"] = encryptionAlgorithm; | 4695 _json["encryptionAlgorithm"] = encryptionAlgorithm; |
4637 } | 4696 } |
4638 if (keySha256 != null) { | 4697 if (keySha256 != null) { |
4639 _json["keySha256"] = keySha256; | 4698 _json["keySha256"] = keySha256; |
4640 } | 4699 } |
4641 return _json; | 4700 return _json; |
4642 } | 4701 } |
4643 } | 4702 } |
4644 | 4703 |
4645 /** The owner of the object. This will always be the uploader of the object. */ | 4704 /** The owner of the object. This will always be the uploader of the object. */ |
4646 class ObjectOwner { | 4705 class ObjectOwner { |
4647 /** The entity, in the form user-userId. */ | 4706 /** The entity, in the form user-userId. */ |
4648 core.String entity; | 4707 core.String entity; |
4649 /** The ID for the entity. */ | 4708 /** The ID for the entity. */ |
4650 core.String entityId; | 4709 core.String entityId; |
4651 | 4710 |
4652 ObjectOwner(); | 4711 ObjectOwner(); |
4653 | 4712 |
4654 ObjectOwner.fromJson(core.Map _json) { | 4713 ObjectOwner.fromJson(core.Map _json) { |
4655 if (_json.containsKey("entity")) { | 4714 if (_json.containsKey("entity")) { |
4656 entity = _json["entity"]; | 4715 entity = _json["entity"]; |
4657 } | 4716 } |
4658 if (_json.containsKey("entityId")) { | 4717 if (_json.containsKey("entityId")) { |
4659 entityId = _json["entityId"]; | 4718 entityId = _json["entityId"]; |
4660 } | 4719 } |
4661 } | 4720 } |
4662 | 4721 |
4663 core.Map toJson() { | 4722 core.Map<core.String, core.Object> toJson() { |
4664 var _json = new core.Map(); | 4723 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4665 if (entity != null) { | 4724 if (entity != null) { |
4666 _json["entity"] = entity; | 4725 _json["entity"] = entity; |
4667 } | 4726 } |
4668 if (entityId != null) { | 4727 if (entityId != null) { |
4669 _json["entityId"] = entityId; | 4728 _json["entityId"] = entityId; |
4670 } | 4729 } |
4671 return _json; | 4730 return _json; |
4672 } | 4731 } |
4673 } | 4732 } |
4674 | 4733 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4716 /** The content generation of this object. Used for object versioning. */ | 4775 /** The content generation of this object. Used for object versioning. */ |
4717 core.String generation; | 4776 core.String generation; |
4718 /** | 4777 /** |
4719 * The ID of the object, including the bucket name, object name, and | 4778 * The ID of the object, including the bucket name, object name, and |
4720 * generation number. | 4779 * generation number. |
4721 */ | 4780 */ |
4722 core.String id; | 4781 core.String id; |
4723 /** The kind of item this is. For objects, this is always storage#object. */ | 4782 /** The kind of item this is. For objects, this is always storage#object. */ |
4724 core.String kind; | 4783 core.String kind; |
4725 /** | 4784 /** |
| 4785 * Cloud KMS Key used to encrypt this object, if the object is encrypted by |
| 4786 * such a key. |
| 4787 */ |
| 4788 core.String kmsKeyName; |
| 4789 /** |
4726 * MD5 hash of the data; encoded using base64. For more information about | 4790 * MD5 hash of the data; encoded using base64. For more information about |
4727 * using the MD5 hash, see Hashes and ETags: Best Practices. | 4791 * using the MD5 hash, see Hashes and ETags: Best Practices. |
4728 */ | 4792 */ |
4729 core.String md5Hash; | 4793 core.String md5Hash; |
4730 /** Media download link. */ | 4794 /** Media download link. */ |
4731 core.String mediaLink; | 4795 core.String mediaLink; |
4732 /** User-provided metadata, in key/value pairs. */ | 4796 /** User-provided metadata, in key/value pairs. */ |
4733 core.Map<core.String, core.String> metadata; | 4797 core.Map<core.String, core.String> metadata; |
4734 /** | 4798 /** |
4735 * The version of the metadata for this object at this generation. Used for | 4799 * The version of the metadata for this object at this generation. Used for |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4803 } | 4867 } |
4804 if (_json.containsKey("generation")) { | 4868 if (_json.containsKey("generation")) { |
4805 generation = _json["generation"]; | 4869 generation = _json["generation"]; |
4806 } | 4870 } |
4807 if (_json.containsKey("id")) { | 4871 if (_json.containsKey("id")) { |
4808 id = _json["id"]; | 4872 id = _json["id"]; |
4809 } | 4873 } |
4810 if (_json.containsKey("kind")) { | 4874 if (_json.containsKey("kind")) { |
4811 kind = _json["kind"]; | 4875 kind = _json["kind"]; |
4812 } | 4876 } |
| 4877 if (_json.containsKey("kmsKeyName")) { |
| 4878 kmsKeyName = _json["kmsKeyName"]; |
| 4879 } |
4813 if (_json.containsKey("md5Hash")) { | 4880 if (_json.containsKey("md5Hash")) { |
4814 md5Hash = _json["md5Hash"]; | 4881 md5Hash = _json["md5Hash"]; |
4815 } | 4882 } |
4816 if (_json.containsKey("mediaLink")) { | 4883 if (_json.containsKey("mediaLink")) { |
4817 mediaLink = _json["mediaLink"]; | 4884 mediaLink = _json["mediaLink"]; |
4818 } | 4885 } |
4819 if (_json.containsKey("metadata")) { | 4886 if (_json.containsKey("metadata")) { |
4820 metadata = _json["metadata"]; | 4887 metadata = _json["metadata"]; |
4821 } | 4888 } |
4822 if (_json.containsKey("metageneration")) { | 4889 if (_json.containsKey("metageneration")) { |
(...skipping 21 matching lines...) Expand all Loading... |
4844 timeDeleted = core.DateTime.parse(_json["timeDeleted"]); | 4911 timeDeleted = core.DateTime.parse(_json["timeDeleted"]); |
4845 } | 4912 } |
4846 if (_json.containsKey("timeStorageClassUpdated")) { | 4913 if (_json.containsKey("timeStorageClassUpdated")) { |
4847 timeStorageClassUpdated = core.DateTime.parse(_json["timeStorageClassUpdat
ed"]); | 4914 timeStorageClassUpdated = core.DateTime.parse(_json["timeStorageClassUpdat
ed"]); |
4848 } | 4915 } |
4849 if (_json.containsKey("updated")) { | 4916 if (_json.containsKey("updated")) { |
4850 updated = core.DateTime.parse(_json["updated"]); | 4917 updated = core.DateTime.parse(_json["updated"]); |
4851 } | 4918 } |
4852 } | 4919 } |
4853 | 4920 |
4854 core.Map toJson() { | 4921 core.Map<core.String, core.Object> toJson() { |
4855 var _json = new core.Map(); | 4922 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4856 if (acl != null) { | 4923 if (acl != null) { |
4857 _json["acl"] = acl.map((value) => (value).toJson()).toList(); | 4924 _json["acl"] = acl.map((value) => (value).toJson()).toList(); |
4858 } | 4925 } |
4859 if (bucket != null) { | 4926 if (bucket != null) { |
4860 _json["bucket"] = bucket; | 4927 _json["bucket"] = bucket; |
4861 } | 4928 } |
4862 if (cacheControl != null) { | 4929 if (cacheControl != null) { |
4863 _json["cacheControl"] = cacheControl; | 4930 _json["cacheControl"] = cacheControl; |
4864 } | 4931 } |
4865 if (componentCount != null) { | 4932 if (componentCount != null) { |
(...skipping 22 matching lines...) Expand all Loading... |
4888 } | 4955 } |
4889 if (generation != null) { | 4956 if (generation != null) { |
4890 _json["generation"] = generation; | 4957 _json["generation"] = generation; |
4891 } | 4958 } |
4892 if (id != null) { | 4959 if (id != null) { |
4893 _json["id"] = id; | 4960 _json["id"] = id; |
4894 } | 4961 } |
4895 if (kind != null) { | 4962 if (kind != null) { |
4896 _json["kind"] = kind; | 4963 _json["kind"] = kind; |
4897 } | 4964 } |
| 4965 if (kmsKeyName != null) { |
| 4966 _json["kmsKeyName"] = kmsKeyName; |
| 4967 } |
4898 if (md5Hash != null) { | 4968 if (md5Hash != null) { |
4899 _json["md5Hash"] = md5Hash; | 4969 _json["md5Hash"] = md5Hash; |
4900 } | 4970 } |
4901 if (mediaLink != null) { | 4971 if (mediaLink != null) { |
4902 _json["mediaLink"] = mediaLink; | 4972 _json["mediaLink"] = mediaLink; |
4903 } | 4973 } |
4904 if (metadata != null) { | 4974 if (metadata != null) { |
4905 _json["metadata"] = metadata; | 4975 _json["metadata"] = metadata; |
4906 } | 4976 } |
4907 if (metageneration != null) { | 4977 if (metageneration != null) { |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4949 | 5019 |
4950 ObjectAccessControlProjectTeam.fromJson(core.Map _json) { | 5020 ObjectAccessControlProjectTeam.fromJson(core.Map _json) { |
4951 if (_json.containsKey("projectNumber")) { | 5021 if (_json.containsKey("projectNumber")) { |
4952 projectNumber = _json["projectNumber"]; | 5022 projectNumber = _json["projectNumber"]; |
4953 } | 5023 } |
4954 if (_json.containsKey("team")) { | 5024 if (_json.containsKey("team")) { |
4955 team = _json["team"]; | 5025 team = _json["team"]; |
4956 } | 5026 } |
4957 } | 5027 } |
4958 | 5028 |
4959 core.Map toJson() { | 5029 core.Map<core.String, core.Object> toJson() { |
4960 var _json = new core.Map(); | 5030 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4961 if (projectNumber != null) { | 5031 if (projectNumber != null) { |
4962 _json["projectNumber"] = projectNumber; | 5032 _json["projectNumber"] = projectNumber; |
4963 } | 5033 } |
4964 if (team != null) { | 5034 if (team != null) { |
4965 _json["team"] = team; | 5035 _json["team"] = team; |
4966 } | 5036 } |
4967 return _json; | 5037 return _json; |
4968 } | 5038 } |
4969 } | 5039 } |
4970 | 5040 |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5052 projectTeam = new ObjectAccessControlProjectTeam.fromJson(_json["projectTe
am"]); | 5122 projectTeam = new ObjectAccessControlProjectTeam.fromJson(_json["projectTe
am"]); |
5053 } | 5123 } |
5054 if (_json.containsKey("role")) { | 5124 if (_json.containsKey("role")) { |
5055 role = _json["role"]; | 5125 role = _json["role"]; |
5056 } | 5126 } |
5057 if (_json.containsKey("selfLink")) { | 5127 if (_json.containsKey("selfLink")) { |
5058 selfLink = _json["selfLink"]; | 5128 selfLink = _json["selfLink"]; |
5059 } | 5129 } |
5060 } | 5130 } |
5061 | 5131 |
5062 core.Map toJson() { | 5132 core.Map<core.String, core.Object> toJson() { |
5063 var _json = new core.Map(); | 5133 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
5064 if (bucket != null) { | 5134 if (bucket != null) { |
5065 _json["bucket"] = bucket; | 5135 _json["bucket"] = bucket; |
5066 } | 5136 } |
5067 if (domain != null) { | 5137 if (domain != null) { |
5068 _json["domain"] = domain; | 5138 _json["domain"] = domain; |
5069 } | 5139 } |
5070 if (email != null) { | 5140 if (email != null) { |
5071 _json["email"] = email; | 5141 _json["email"] = email; |
5072 } | 5142 } |
5073 if (entity != null) { | 5143 if (entity != null) { |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5118 | 5188 |
5119 ObjectAccessControls.fromJson(core.Map _json) { | 5189 ObjectAccessControls.fromJson(core.Map _json) { |
5120 if (_json.containsKey("items")) { | 5190 if (_json.containsKey("items")) { |
5121 items = _json["items"].map((value) => new ObjectAccessControl.fromJson(val
ue)).toList(); | 5191 items = _json["items"].map((value) => new ObjectAccessControl.fromJson(val
ue)).toList(); |
5122 } | 5192 } |
5123 if (_json.containsKey("kind")) { | 5193 if (_json.containsKey("kind")) { |
5124 kind = _json["kind"]; | 5194 kind = _json["kind"]; |
5125 } | 5195 } |
5126 } | 5196 } |
5127 | 5197 |
5128 core.Map toJson() { | 5198 core.Map<core.String, core.Object> toJson() { |
5129 var _json = new core.Map(); | 5199 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
5130 if (items != null) { | 5200 if (items != null) { |
5131 _json["items"] = items.map((value) => (value).toJson()).toList(); | 5201 _json["items"] = items.map((value) => (value).toJson()).toList(); |
5132 } | 5202 } |
5133 if (kind != null) { | 5203 if (kind != null) { |
5134 _json["kind"] = kind; | 5204 _json["kind"] = kind; |
5135 } | 5205 } |
5136 return _json; | 5206 return _json; |
5137 } | 5207 } |
5138 } | 5208 } |
5139 | 5209 |
(...skipping 27 matching lines...) Expand all Loading... |
5167 kind = _json["kind"]; | 5237 kind = _json["kind"]; |
5168 } | 5238 } |
5169 if (_json.containsKey("nextPageToken")) { | 5239 if (_json.containsKey("nextPageToken")) { |
5170 nextPageToken = _json["nextPageToken"]; | 5240 nextPageToken = _json["nextPageToken"]; |
5171 } | 5241 } |
5172 if (_json.containsKey("prefixes")) { | 5242 if (_json.containsKey("prefixes")) { |
5173 prefixes = _json["prefixes"]; | 5243 prefixes = _json["prefixes"]; |
5174 } | 5244 } |
5175 } | 5245 } |
5176 | 5246 |
5177 core.Map toJson() { | 5247 core.Map<core.String, core.Object> toJson() { |
5178 var _json = new core.Map(); | 5248 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
5179 if (items != null) { | 5249 if (items != null) { |
5180 _json["items"] = items.map((value) => (value).toJson()).toList(); | 5250 _json["items"] = items.map((value) => (value).toJson()).toList(); |
5181 } | 5251 } |
5182 if (kind != null) { | 5252 if (kind != null) { |
5183 _json["kind"] = kind; | 5253 _json["kind"] = kind; |
5184 } | 5254 } |
5185 if (nextPageToken != null) { | 5255 if (nextPageToken != null) { |
5186 _json["nextPageToken"] = nextPageToken; | 5256 _json["nextPageToken"] = nextPageToken; |
5187 } | 5257 } |
5188 if (prefixes != null) { | 5258 if (prefixes != null) { |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5250 | 5320 |
5251 PolicyBindings.fromJson(core.Map _json) { | 5321 PolicyBindings.fromJson(core.Map _json) { |
5252 if (_json.containsKey("members")) { | 5322 if (_json.containsKey("members")) { |
5253 members = _json["members"]; | 5323 members = _json["members"]; |
5254 } | 5324 } |
5255 if (_json.containsKey("role")) { | 5325 if (_json.containsKey("role")) { |
5256 role = _json["role"]; | 5326 role = _json["role"]; |
5257 } | 5327 } |
5258 } | 5328 } |
5259 | 5329 |
5260 core.Map toJson() { | 5330 core.Map<core.String, core.Object> toJson() { |
5261 var _json = new core.Map(); | 5331 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
5262 if (members != null) { | 5332 if (members != null) { |
5263 _json["members"] = members; | 5333 _json["members"] = members; |
5264 } | 5334 } |
5265 if (role != null) { | 5335 if (role != null) { |
5266 _json["role"] = role; | 5336 _json["role"] = role; |
5267 } | 5337 } |
5268 return _json; | 5338 return _json; |
5269 } | 5339 } |
5270 } | 5340 } |
5271 | 5341 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5309 etag = _json["etag"]; | 5379 etag = _json["etag"]; |
5310 } | 5380 } |
5311 if (_json.containsKey("kind")) { | 5381 if (_json.containsKey("kind")) { |
5312 kind = _json["kind"]; | 5382 kind = _json["kind"]; |
5313 } | 5383 } |
5314 if (_json.containsKey("resourceId")) { | 5384 if (_json.containsKey("resourceId")) { |
5315 resourceId = _json["resourceId"]; | 5385 resourceId = _json["resourceId"]; |
5316 } | 5386 } |
5317 } | 5387 } |
5318 | 5388 |
5319 core.Map toJson() { | 5389 core.Map<core.String, core.Object> toJson() { |
5320 var _json = new core.Map(); | 5390 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
5321 if (bindings != null) { | 5391 if (bindings != null) { |
5322 _json["bindings"] = bindings.map((value) => (value).toJson()).toList(); | 5392 _json["bindings"] = bindings.map((value) => (value).toJson()).toList(); |
5323 } | 5393 } |
5324 if (etag != null) { | 5394 if (etag != null) { |
5325 _json["etag"] = etag; | 5395 _json["etag"] = etag; |
5326 } | 5396 } |
5327 if (kind != null) { | 5397 if (kind != null) { |
5328 _json["kind"] = kind; | 5398 _json["kind"] = kind; |
5329 } | 5399 } |
5330 if (resourceId != null) { | 5400 if (resourceId != null) { |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5380 resource = new Object.fromJson(_json["resource"]); | 5450 resource = new Object.fromJson(_json["resource"]); |
5381 } | 5451 } |
5382 if (_json.containsKey("rewriteToken")) { | 5452 if (_json.containsKey("rewriteToken")) { |
5383 rewriteToken = _json["rewriteToken"]; | 5453 rewriteToken = _json["rewriteToken"]; |
5384 } | 5454 } |
5385 if (_json.containsKey("totalBytesRewritten")) { | 5455 if (_json.containsKey("totalBytesRewritten")) { |
5386 totalBytesRewritten = _json["totalBytesRewritten"]; | 5456 totalBytesRewritten = _json["totalBytesRewritten"]; |
5387 } | 5457 } |
5388 } | 5458 } |
5389 | 5459 |
5390 core.Map toJson() { | 5460 core.Map<core.String, core.Object> toJson() { |
5391 var _json = new core.Map(); | 5461 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
5392 if (done != null) { | 5462 if (done != null) { |
5393 _json["done"] = done; | 5463 _json["done"] = done; |
5394 } | 5464 } |
5395 if (kind != null) { | 5465 if (kind != null) { |
5396 _json["kind"] = kind; | 5466 _json["kind"] = kind; |
5397 } | 5467 } |
5398 if (objectSize != null) { | 5468 if (objectSize != null) { |
5399 _json["objectSize"] = objectSize; | 5469 _json["objectSize"] = objectSize; |
5400 } | 5470 } |
5401 if (resource != null) { | 5471 if (resource != null) { |
(...skipping 23 matching lines...) Expand all Loading... |
5425 | 5495 |
5426 ServiceAccount.fromJson(core.Map _json) { | 5496 ServiceAccount.fromJson(core.Map _json) { |
5427 if (_json.containsKey("email_address")) { | 5497 if (_json.containsKey("email_address")) { |
5428 emailAddress = _json["email_address"]; | 5498 emailAddress = _json["email_address"]; |
5429 } | 5499 } |
5430 if (_json.containsKey("kind")) { | 5500 if (_json.containsKey("kind")) { |
5431 kind = _json["kind"]; | 5501 kind = _json["kind"]; |
5432 } | 5502 } |
5433 } | 5503 } |
5434 | 5504 |
5435 core.Map toJson() { | 5505 core.Map<core.String, core.Object> toJson() { |
5436 var _json = new core.Map(); | 5506 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
5437 if (emailAddress != null) { | 5507 if (emailAddress != null) { |
5438 _json["email_address"] = emailAddress; | 5508 _json["email_address"] = emailAddress; |
5439 } | 5509 } |
5440 if (kind != null) { | 5510 if (kind != null) { |
5441 _json["kind"] = kind; | 5511 _json["kind"] = kind; |
5442 } | 5512 } |
5443 return _json; | 5513 return _json; |
5444 } | 5514 } |
5445 } | 5515 } |
5446 | 5516 |
(...skipping 26 matching lines...) Expand all Loading... |
5473 | 5543 |
5474 TestIamPermissionsResponse.fromJson(core.Map _json) { | 5544 TestIamPermissionsResponse.fromJson(core.Map _json) { |
5475 if (_json.containsKey("kind")) { | 5545 if (_json.containsKey("kind")) { |
5476 kind = _json["kind"]; | 5546 kind = _json["kind"]; |
5477 } | 5547 } |
5478 if (_json.containsKey("permissions")) { | 5548 if (_json.containsKey("permissions")) { |
5479 permissions = _json["permissions"]; | 5549 permissions = _json["permissions"]; |
5480 } | 5550 } |
5481 } | 5551 } |
5482 | 5552 |
5483 core.Map toJson() { | 5553 core.Map<core.String, core.Object> toJson() { |
5484 var _json = new core.Map(); | 5554 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
5485 if (kind != null) { | 5555 if (kind != null) { |
5486 _json["kind"] = kind; | 5556 _json["kind"] = kind; |
5487 } | 5557 } |
5488 if (permissions != null) { | 5558 if (permissions != null) { |
5489 _json["permissions"] = permissions; | 5559 _json["permissions"] = permissions; |
5490 } | 5560 } |
5491 return _json; | 5561 return _json; |
5492 } | 5562 } |
5493 } | 5563 } |
OLD | NEW |