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 589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
600 "GET", | 600 "GET", |
601 body: _body, | 601 body: _body, |
602 queryParams: _queryParams, | 602 queryParams: _queryParams, |
603 uploadOptions: _uploadOptions, | 603 uploadOptions: _uploadOptions, |
604 uploadMedia: _uploadMedia, | 604 uploadMedia: _uploadMedia, |
605 downloadOptions: _downloadOptions); | 605 downloadOptions: _downloadOptions); |
606 return _response.then((data) => new Buckets.fromJson(data)); | 606 return _response.then((data) => new Buckets.fromJson(data)); |
607 } | 607 } |
608 | 608 |
609 /** | 609 /** |
610 * Updates a bucket. This method supports patch semantics. | 610 * Updates a bucket. Changes to the bucket will be readable immediately after |
| 611 * writing, but configuration changes may take time to propagate. This method |
| 612 * supports patch semantics. |
611 * | 613 * |
612 * [request] - The metadata request object. | 614 * [request] - The metadata request object. |
613 * | 615 * |
614 * Request parameters: | 616 * Request parameters: |
615 * | 617 * |
616 * [bucket] - Name of a bucket. | 618 * [bucket] - Name of a bucket. |
617 * | 619 * |
618 * [ifMetagenerationMatch] - Makes the return of the bucket metadata | 620 * [ifMetagenerationMatch] - Makes the return of the bucket metadata |
619 * conditional on whether the bucket's current metageneration matches the | 621 * conditional on whether the bucket's current metageneration matches the |
620 * given value. | 622 * given value. |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
699 "PATCH", | 701 "PATCH", |
700 body: _body, | 702 body: _body, |
701 queryParams: _queryParams, | 703 queryParams: _queryParams, |
702 uploadOptions: _uploadOptions, | 704 uploadOptions: _uploadOptions, |
703 uploadMedia: _uploadMedia, | 705 uploadMedia: _uploadMedia, |
704 downloadOptions: _downloadOptions); | 706 downloadOptions: _downloadOptions); |
705 return _response.then((data) => new Bucket.fromJson(data)); | 707 return _response.then((data) => new Bucket.fromJson(data)); |
706 } | 708 } |
707 | 709 |
708 /** | 710 /** |
709 * Updates a bucket. | 711 * Updates a bucket. Changes to the bucket will be readable immediately after |
| 712 * writing, but configuration changes may take time to propagate. |
710 * | 713 * |
711 * [request] - The metadata request object. | 714 * [request] - The metadata request object. |
712 * | 715 * |
713 * Request parameters: | 716 * Request parameters: |
714 * | 717 * |
715 * [bucket] - Name of a bucket. | 718 * [bucket] - Name of a bucket. |
716 * | 719 * |
717 * [ifMetagenerationMatch] - Makes the return of the bucket metadata | 720 * [ifMetagenerationMatch] - Makes the return of the bucket metadata |
718 * conditional on whether the bucket's current metageneration matches the | 721 * conditional on whether the bucket's current metageneration matches the |
719 * given value. | 722 * given value. |
(...skipping 829 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1549 * members get access according to their roles. | 1552 * members get access according to their roles. |
1550 * - "publicRead" : Object owner gets OWNER access, and allUsers get READER | 1553 * - "publicRead" : Object owner gets OWNER access, and allUsers get READER |
1551 * access. | 1554 * access. |
1552 * | 1555 * |
1553 * [ifGenerationMatch] - Makes the operation conditional on whether the | 1556 * [ifGenerationMatch] - Makes the operation conditional on whether the |
1554 * object's current generation matches the given value. | 1557 * object's current generation matches the given value. |
1555 * | 1558 * |
1556 * [ifMetagenerationMatch] - Makes the operation conditional on whether the | 1559 * [ifMetagenerationMatch] - Makes the operation conditional on whether the |
1557 * object's current metageneration matches the given value. | 1560 * object's current metageneration matches the given value. |
1558 * | 1561 * |
1559 * [kmsKeyName] - Resource name of the Cloud KMS key, of the form | |
1560 * projects/my-project/locations/global/keyRings/my-kr/cryptoKeys/my-key, that | |
1561 * will be used to encrypt the object. Overrides the object metadata's | |
1562 * kms_key_name value, if any. | |
1563 * | |
1564 * [downloadOptions] - Options for downloading. A download can be either a | 1562 * [downloadOptions] - Options for downloading. A download can be either a |
1565 * Metadata (default) or Media download. Partial Media downloads are possible | 1563 * Metadata (default) or Media download. Partial Media downloads are possible |
1566 * as well. | 1564 * as well. |
1567 * | 1565 * |
1568 * Completes with a | 1566 * Completes with a |
1569 * | 1567 * |
1570 * - [Object] for Metadata downloads (see [downloadOptions]). | 1568 * - [Object] for Metadata downloads (see [downloadOptions]). |
1571 * | 1569 * |
1572 * - [commons.Media] for Media downloads (see [downloadOptions]). | 1570 * - [commons.Media] for Media downloads (see [downloadOptions]). |
1573 * | 1571 * |
1574 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1572 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1575 * error. | 1573 * error. |
1576 * | 1574 * |
1577 * If the used [http.Client] completes with an error when making a REST call, | 1575 * If the used [http.Client] completes with an error when making a REST call, |
1578 * this method will complete with the same error. | 1576 * this method will complete with the same error. |
1579 */ | 1577 */ |
1580 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
mmons.DownloadOptions downloadOptions: commons.DownloadOptions.Metadata}) { | 1578 async.Future compose(ComposeRequest request, core.String destinationBucket, co
re.String destinationObject, {core.String destinationPredefinedAcl, core.String
ifGenerationMatch, core.String ifMetagenerationMatch, commons.DownloadOptions do
wnloadOptions: commons.DownloadOptions.Metadata}) { |
1581 var _url = null; | 1579 var _url = null; |
1582 var _queryParams = new core.Map(); | 1580 var _queryParams = new core.Map(); |
1583 var _uploadMedia = null; | 1581 var _uploadMedia = null; |
1584 var _uploadOptions = null; | 1582 var _uploadOptions = null; |
1585 var _downloadOptions = commons.DownloadOptions.Metadata; | 1583 var _downloadOptions = commons.DownloadOptions.Metadata; |
1586 var _body = null; | 1584 var _body = null; |
1587 | 1585 |
1588 if (request != null) { | 1586 if (request != null) { |
1589 _body = convert.JSON.encode((request).toJson()); | 1587 _body = convert.JSON.encode((request).toJson()); |
1590 } | 1588 } |
1591 if (destinationBucket == null) { | 1589 if (destinationBucket == null) { |
1592 throw new core.ArgumentError("Parameter destinationBucket is required."); | 1590 throw new core.ArgumentError("Parameter destinationBucket is required."); |
1593 } | 1591 } |
1594 if (destinationObject == null) { | 1592 if (destinationObject == null) { |
1595 throw new core.ArgumentError("Parameter destinationObject is required."); | 1593 throw new core.ArgumentError("Parameter destinationObject is required."); |
1596 } | 1594 } |
1597 if (destinationPredefinedAcl != null) { | 1595 if (destinationPredefinedAcl != null) { |
1598 _queryParams["destinationPredefinedAcl"] = [destinationPredefinedAcl]; | 1596 _queryParams["destinationPredefinedAcl"] = [destinationPredefinedAcl]; |
1599 } | 1597 } |
1600 if (ifGenerationMatch != null) { | 1598 if (ifGenerationMatch != null) { |
1601 _queryParams["ifGenerationMatch"] = [ifGenerationMatch]; | 1599 _queryParams["ifGenerationMatch"] = [ifGenerationMatch]; |
1602 } | 1600 } |
1603 if (ifMetagenerationMatch != null) { | 1601 if (ifMetagenerationMatch != null) { |
1604 _queryParams["ifMetagenerationMatch"] = [ifMetagenerationMatch]; | 1602 _queryParams["ifMetagenerationMatch"] = [ifMetagenerationMatch]; |
1605 } | 1603 } |
1606 if (kmsKeyName != null) { | |
1607 _queryParams["kmsKeyName"] = [kmsKeyName]; | |
1608 } | |
1609 | 1604 |
1610 _downloadOptions = downloadOptions; | 1605 _downloadOptions = downloadOptions; |
1611 | 1606 |
1612 _url = 'b/' + commons.Escaper.ecapeVariable('$destinationBucket') + '/o/' +
commons.Escaper.ecapeVariable('$destinationObject') + '/compose'; | 1607 _url = 'b/' + commons.Escaper.ecapeVariable('$destinationBucket') + '/o/' +
commons.Escaper.ecapeVariable('$destinationObject') + '/compose'; |
1613 | 1608 |
1614 var _response = _requester.request(_url, | 1609 var _response = _requester.request(_url, |
1615 "POST", | 1610 "POST", |
1616 body: _body, | 1611 body: _body, |
1617 queryParams: _queryParams, | 1612 queryParams: _queryParams, |
1618 uploadOptions: _uploadOptions, | 1613 uploadOptions: _uploadOptions, |
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1984 * | 1979 * |
1985 * [ifGenerationNotMatch] - Makes the operation conditional on whether the | 1980 * [ifGenerationNotMatch] - Makes the operation conditional on whether the |
1986 * object's current generation does not match the given value. | 1981 * object's current generation does not match the given value. |
1987 * | 1982 * |
1988 * [ifMetagenerationMatch] - Makes the operation conditional on whether the | 1983 * [ifMetagenerationMatch] - Makes the operation conditional on whether the |
1989 * object's current metageneration matches the given value. | 1984 * object's current metageneration matches the given value. |
1990 * | 1985 * |
1991 * [ifMetagenerationNotMatch] - Makes the operation conditional on whether the | 1986 * [ifMetagenerationNotMatch] - Makes the operation conditional on whether the |
1992 * object's current metageneration does not match the given value. | 1987 * object's current metageneration does not match the given value. |
1993 * | 1988 * |
1994 * [kmsKeyName] - Resource name of the Cloud KMS key, of the form | |
1995 * projects/my-project/locations/global/keyRings/my-kr/cryptoKeys/my-key, that | |
1996 * will be used to encrypt the object. Overrides the object metadata's | |
1997 * kms_key_name value, if any. | |
1998 * | |
1999 * [name] - Name of the object. Required when the object metadata is not | 1989 * [name] - Name of the object. Required when the object metadata is not |
2000 * otherwise provided. Overrides the object metadata's name value, if any. For | 1990 * otherwise provided. Overrides the object metadata's name value, if any. For |
2001 * information about how to URL encode object names to be path safe, see | 1991 * information about how to URL encode object names to be path safe, see |
2002 * Encoding URI Path Parts. | 1992 * Encoding URI Path Parts. |
2003 * | 1993 * |
2004 * [predefinedAcl] - Apply a predefined set of access controls to this object. | 1994 * [predefinedAcl] - Apply a predefined set of access controls to this object. |
2005 * Possible string values are: | 1995 * Possible string values are: |
2006 * - "authenticatedRead" : Object owner gets OWNER access, and | 1996 * - "authenticatedRead" : Object owner gets OWNER access, and |
2007 * allAuthenticatedUsers get READER access. | 1997 * allAuthenticatedUsers get READER access. |
2008 * - "bucketOwnerFullControl" : Object owner gets OWNER access, and project | 1998 * - "bucketOwnerFullControl" : Object owner gets OWNER access, and project |
(...skipping 26 matching lines...) Expand all Loading... |
2035 * - [Object] for Metadata downloads (see [downloadOptions]). | 2025 * - [Object] for Metadata downloads (see [downloadOptions]). |
2036 * | 2026 * |
2037 * - [commons.Media] for Media downloads (see [downloadOptions]). | 2027 * - [commons.Media] for Media downloads (see [downloadOptions]). |
2038 * | 2028 * |
2039 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2029 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
2040 * error. | 2030 * error. |
2041 * | 2031 * |
2042 * If the used [http.Client] completes with an error when making a REST call, | 2032 * If the used [http.Client] completes with an error when making a REST call, |
2043 * this method will complete with the same error. | 2033 * this method will complete with the same error. |
2044 */ | 2034 */ |
2045 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
ommons.UploadOptions uploadOptions : commons.UploadOptions.Default, commons.Medi
a uploadMedia, commons.DownloadOptions downloadOptions: commons.DownloadOptions.
Metadata}) { | 2035 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, commons.UploadOptions upl
oadOptions : commons.UploadOptions.Default, commons.Media uploadMedia, commons.D
ownloadOptions downloadOptions: commons.DownloadOptions.Metadata}) { |
2046 var _url = null; | 2036 var _url = null; |
2047 var _queryParams = new core.Map(); | 2037 var _queryParams = new core.Map(); |
2048 var _uploadMedia = null; | 2038 var _uploadMedia = null; |
2049 var _uploadOptions = null; | 2039 var _uploadOptions = null; |
2050 var _downloadOptions = commons.DownloadOptions.Metadata; | 2040 var _downloadOptions = commons.DownloadOptions.Metadata; |
2051 var _body = null; | 2041 var _body = null; |
2052 | 2042 |
2053 if (request != null) { | 2043 if (request != null) { |
2054 _body = convert.JSON.encode((request).toJson()); | 2044 _body = convert.JSON.encode((request).toJson()); |
2055 } | 2045 } |
2056 if (bucket == null) { | 2046 if (bucket == null) { |
2057 throw new core.ArgumentError("Parameter bucket is required."); | 2047 throw new core.ArgumentError("Parameter bucket is required."); |
2058 } | 2048 } |
2059 if (contentEncoding != null) { | 2049 if (contentEncoding != null) { |
2060 _queryParams["contentEncoding"] = [contentEncoding]; | 2050 _queryParams["contentEncoding"] = [contentEncoding]; |
2061 } | 2051 } |
2062 if (ifGenerationMatch != null) { | 2052 if (ifGenerationMatch != null) { |
2063 _queryParams["ifGenerationMatch"] = [ifGenerationMatch]; | 2053 _queryParams["ifGenerationMatch"] = [ifGenerationMatch]; |
2064 } | 2054 } |
2065 if (ifGenerationNotMatch != null) { | 2055 if (ifGenerationNotMatch != null) { |
2066 _queryParams["ifGenerationNotMatch"] = [ifGenerationNotMatch]; | 2056 _queryParams["ifGenerationNotMatch"] = [ifGenerationNotMatch]; |
2067 } | 2057 } |
2068 if (ifMetagenerationMatch != null) { | 2058 if (ifMetagenerationMatch != null) { |
2069 _queryParams["ifMetagenerationMatch"] = [ifMetagenerationMatch]; | 2059 _queryParams["ifMetagenerationMatch"] = [ifMetagenerationMatch]; |
2070 } | 2060 } |
2071 if (ifMetagenerationNotMatch != null) { | 2061 if (ifMetagenerationNotMatch != null) { |
2072 _queryParams["ifMetagenerationNotMatch"] = [ifMetagenerationNotMatch]; | 2062 _queryParams["ifMetagenerationNotMatch"] = [ifMetagenerationNotMatch]; |
2073 } | 2063 } |
2074 if (kmsKeyName != null) { | |
2075 _queryParams["kmsKeyName"] = [kmsKeyName]; | |
2076 } | |
2077 if (name != null) { | 2064 if (name != null) { |
2078 _queryParams["name"] = [name]; | 2065 _queryParams["name"] = [name]; |
2079 } | 2066 } |
2080 if (predefinedAcl != null) { | 2067 if (predefinedAcl != null) { |
2081 _queryParams["predefinedAcl"] = [predefinedAcl]; | 2068 _queryParams["predefinedAcl"] = [predefinedAcl]; |
2082 } | 2069 } |
2083 if (projection != null) { | 2070 if (projection != null) { |
2084 _queryParams["projection"] = [projection]; | 2071 _queryParams["projection"] = [projection]; |
2085 } | 2072 } |
2086 | 2073 |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2312 * URL encode object names to be path safe, see Encoding URI Path Parts. | 2299 * URL encode object names to be path safe, see Encoding URI Path Parts. |
2313 * | 2300 * |
2314 * [destinationBucket] - Name of the bucket in which to store the new object. | 2301 * [destinationBucket] - Name of the bucket in which to store the new object. |
2315 * Overrides the provided object metadata's bucket value, if any. | 2302 * Overrides the provided object metadata's bucket value, if any. |
2316 * | 2303 * |
2317 * [destinationObject] - Name of the new object. Required when the object | 2304 * [destinationObject] - Name of the new object. Required when the object |
2318 * metadata is not otherwise provided. Overrides the object metadata's name | 2305 * metadata is not otherwise provided. Overrides the object metadata's name |
2319 * value, if any. For information about how to URL encode object names to be | 2306 * value, if any. For information about how to URL encode object names to be |
2320 * path safe, see Encoding URI Path Parts. | 2307 * path safe, see Encoding URI Path Parts. |
2321 * | 2308 * |
2322 * [destinationKmsKeyName] - Resource name of the Cloud KMS key, of the form | |
2323 * projects/my-project/locations/global/keyRings/my-kr/cryptoKeys/my-key, that | |
2324 * will be used to encrypt the object. Overrides the object metadata's | |
2325 * kms_key_name value, if any. | |
2326 * | |
2327 * [destinationPredefinedAcl] - Apply a predefined set of access controls to | 2309 * [destinationPredefinedAcl] - Apply a predefined set of access controls to |
2328 * the destination object. | 2310 * the destination object. |
2329 * Possible string values are: | 2311 * Possible string values are: |
2330 * - "authenticatedRead" : Object owner gets OWNER access, and | 2312 * - "authenticatedRead" : Object owner gets OWNER access, and |
2331 * allAuthenticatedUsers get READER access. | 2313 * allAuthenticatedUsers get READER access. |
2332 * - "bucketOwnerFullControl" : Object owner gets OWNER access, and project | 2314 * - "bucketOwnerFullControl" : Object owner gets OWNER access, and project |
2333 * team owners get OWNER access. | 2315 * team owners get OWNER access. |
2334 * - "bucketOwnerRead" : Object owner gets OWNER access, and project team | 2316 * - "bucketOwnerRead" : Object owner gets OWNER access, and project team |
2335 * owners get READER access. | 2317 * owners get READER access. |
2336 * - "private" : Object owner gets OWNER access. | 2318 * - "private" : Object owner gets OWNER access. |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2388 * object (as opposed to the latest version, the default). | 2370 * object (as opposed to the latest version, the default). |
2389 * | 2371 * |
2390 * Completes with a [RewriteResponse]. | 2372 * Completes with a [RewriteResponse]. |
2391 * | 2373 * |
2392 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2374 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
2393 * error. | 2375 * error. |
2394 * | 2376 * |
2395 * If the used [http.Client] completes with an error when making a REST call, | 2377 * If the used [http.Client] completes with an error when making a REST call, |
2396 * this method will complete with the same error. | 2378 * this method will complete with the same error. |
2397 */ | 2379 */ |
2398 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}) { | 2380 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}) { |
2399 var _url = null; | 2381 var _url = null; |
2400 var _queryParams = new core.Map(); | 2382 var _queryParams = new core.Map(); |
2401 var _uploadMedia = null; | 2383 var _uploadMedia = null; |
2402 var _uploadOptions = null; | 2384 var _uploadOptions = null; |
2403 var _downloadOptions = commons.DownloadOptions.Metadata; | 2385 var _downloadOptions = commons.DownloadOptions.Metadata; |
2404 var _body = null; | 2386 var _body = null; |
2405 | 2387 |
2406 if (request != null) { | 2388 if (request != null) { |
2407 _body = convert.JSON.encode((request).toJson()); | 2389 _body = convert.JSON.encode((request).toJson()); |
2408 } | 2390 } |
2409 if (sourceBucket == null) { | 2391 if (sourceBucket == null) { |
2410 throw new core.ArgumentError("Parameter sourceBucket is required."); | 2392 throw new core.ArgumentError("Parameter sourceBucket is required."); |
2411 } | 2393 } |
2412 if (sourceObject == null) { | 2394 if (sourceObject == null) { |
2413 throw new core.ArgumentError("Parameter sourceObject is required."); | 2395 throw new core.ArgumentError("Parameter sourceObject is required."); |
2414 } | 2396 } |
2415 if (destinationBucket == null) { | 2397 if (destinationBucket == null) { |
2416 throw new core.ArgumentError("Parameter destinationBucket is required."); | 2398 throw new core.ArgumentError("Parameter destinationBucket is required."); |
2417 } | 2399 } |
2418 if (destinationObject == null) { | 2400 if (destinationObject == null) { |
2419 throw new core.ArgumentError("Parameter destinationObject is required."); | 2401 throw new core.ArgumentError("Parameter destinationObject is required."); |
2420 } | 2402 } |
2421 if (destinationKmsKeyName != null) { | |
2422 _queryParams["destinationKmsKeyName"] = [destinationKmsKeyName]; | |
2423 } | |
2424 if (destinationPredefinedAcl != null) { | 2403 if (destinationPredefinedAcl != null) { |
2425 _queryParams["destinationPredefinedAcl"] = [destinationPredefinedAcl]; | 2404 _queryParams["destinationPredefinedAcl"] = [destinationPredefinedAcl]; |
2426 } | 2405 } |
2427 if (ifGenerationMatch != null) { | 2406 if (ifGenerationMatch != null) { |
2428 _queryParams["ifGenerationMatch"] = [ifGenerationMatch]; | 2407 _queryParams["ifGenerationMatch"] = [ifGenerationMatch]; |
2429 } | 2408 } |
2430 if (ifGenerationNotMatch != null) { | 2409 if (ifGenerationNotMatch != null) { |
2431 _queryParams["ifGenerationNotMatch"] = [ifGenerationNotMatch]; | 2410 _queryParams["ifGenerationNotMatch"] = [ifGenerationNotMatch]; |
2432 } | 2411 } |
2433 if (ifMetagenerationMatch != null) { | 2412 if (ifMetagenerationMatch != null) { |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2733 if (origin != null) { | 2712 if (origin != null) { |
2734 _json["origin"] = origin; | 2713 _json["origin"] = origin; |
2735 } | 2714 } |
2736 if (responseHeader != null) { | 2715 if (responseHeader != null) { |
2737 _json["responseHeader"] = responseHeader; | 2716 _json["responseHeader"] = responseHeader; |
2738 } | 2717 } |
2739 return _json; | 2718 return _json; |
2740 } | 2719 } |
2741 } | 2720 } |
2742 | 2721 |
2743 /** | |
2744 * Encryption configuration used by default for newly inserted objects, when no | |
2745 * encryption config is specified. | |
2746 */ | |
2747 class BucketEncryption { | |
2748 core.String defaultKmsKeyName; | |
2749 | |
2750 BucketEncryption(); | |
2751 | |
2752 BucketEncryption.fromJson(core.Map _json) { | |
2753 if (_json.containsKey("default_kms_key_name")) { | |
2754 defaultKmsKeyName = _json["default_kms_key_name"]; | |
2755 } | |
2756 } | |
2757 | |
2758 core.Map toJson() { | |
2759 var _json = new core.Map(); | |
2760 if (defaultKmsKeyName != null) { | |
2761 _json["default_kms_key_name"] = defaultKmsKeyName; | |
2762 } | |
2763 return _json; | |
2764 } | |
2765 } | |
2766 | |
2767 /** The action to take. */ | 2722 /** The action to take. */ |
2768 class BucketLifecycleRuleAction { | 2723 class BucketLifecycleRuleAction { |
2769 /** Type of the action. Currently, only Delete is supported. */ | 2724 /** |
| 2725 * Target storage class. Required iff the type of the action is |
| 2726 * SetStorageClass. |
| 2727 */ |
| 2728 core.String storageClass; |
| 2729 /** |
| 2730 * Type of the action. Currently, only Delete and SetStorageClass are |
| 2731 * supported. |
| 2732 */ |
2770 core.String type; | 2733 core.String type; |
2771 | 2734 |
2772 BucketLifecycleRuleAction(); | 2735 BucketLifecycleRuleAction(); |
2773 | 2736 |
2774 BucketLifecycleRuleAction.fromJson(core.Map _json) { | 2737 BucketLifecycleRuleAction.fromJson(core.Map _json) { |
| 2738 if (_json.containsKey("storageClass")) { |
| 2739 storageClass = _json["storageClass"]; |
| 2740 } |
2775 if (_json.containsKey("type")) { | 2741 if (_json.containsKey("type")) { |
2776 type = _json["type"]; | 2742 type = _json["type"]; |
2777 } | 2743 } |
2778 } | 2744 } |
2779 | 2745 |
2780 core.Map toJson() { | 2746 core.Map toJson() { |
2781 var _json = new core.Map(); | 2747 var _json = new core.Map(); |
| 2748 if (storageClass != null) { |
| 2749 _json["storageClass"] = storageClass; |
| 2750 } |
2782 if (type != null) { | 2751 if (type != null) { |
2783 _json["type"] = type; | 2752 _json["type"] = type; |
2784 } | 2753 } |
2785 return _json; | 2754 return _json; |
2786 } | 2755 } |
2787 } | 2756 } |
2788 | 2757 |
2789 /** The condition(s) under which the action will be taken. */ | 2758 /** The condition(s) under which the action will be taken. */ |
2790 class BucketLifecycleRuleCondition { | 2759 class BucketLifecycleRuleCondition { |
2791 /** | 2760 /** |
2792 * Age of an object (in days). This condition is satisfied when an object | 2761 * Age of an object (in days). This condition is satisfied when an object |
2793 * reaches the specified age. | 2762 * reaches the specified age. |
2794 */ | 2763 */ |
2795 core.int age; | 2764 core.int age; |
2796 /** | 2765 /** |
2797 * A date in RFC 3339 format with only the date part (for instance, | 2766 * A date in RFC 3339 format with only the date part (for instance, |
2798 * "2013-01-15"). This condition is satisfied when an object is created before | 2767 * "2013-01-15"). This condition is satisfied when an object is created before |
2799 * midnight of the specified date in UTC. | 2768 * midnight of the specified date in UTC. |
2800 */ | 2769 */ |
2801 core.DateTime createdBefore; | 2770 core.DateTime createdBefore; |
2802 /** | 2771 /** |
2803 * Relevant only for versioned objects. If the value is true, this condition | 2772 * Relevant only for versioned objects. If the value is true, this condition |
2804 * matches live objects; if the value is false, it matches archived objects. | 2773 * matches live objects; if the value is false, it matches archived objects. |
2805 */ | 2774 */ |
2806 core.bool isLive; | 2775 core.bool isLive; |
2807 /** | 2776 /** |
| 2777 * Objects having any of the storage classes specified by this condition will |
| 2778 * be matched. Values include MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE, |
| 2779 * STANDARD, and DURABLE_REDUCED_AVAILABILITY. |
| 2780 */ |
| 2781 core.List<core.String> matchesStorageClass; |
| 2782 /** |
2808 * Relevant only for versioned objects. If the value is N, this condition is | 2783 * Relevant only for versioned objects. If the value is N, this condition is |
2809 * satisfied when there are at least N versions (including the live version) | 2784 * satisfied when there are at least N versions (including the live version) |
2810 * newer than this version of the object. | 2785 * newer than this version of the object. |
2811 */ | 2786 */ |
2812 core.int numNewerVersions; | 2787 core.int numNewerVersions; |
2813 | 2788 |
2814 BucketLifecycleRuleCondition(); | 2789 BucketLifecycleRuleCondition(); |
2815 | 2790 |
2816 BucketLifecycleRuleCondition.fromJson(core.Map _json) { | 2791 BucketLifecycleRuleCondition.fromJson(core.Map _json) { |
2817 if (_json.containsKey("age")) { | 2792 if (_json.containsKey("age")) { |
2818 age = _json["age"]; | 2793 age = _json["age"]; |
2819 } | 2794 } |
2820 if (_json.containsKey("createdBefore")) { | 2795 if (_json.containsKey("createdBefore")) { |
2821 createdBefore = core.DateTime.parse(_json["createdBefore"]); | 2796 createdBefore = core.DateTime.parse(_json["createdBefore"]); |
2822 } | 2797 } |
2823 if (_json.containsKey("isLive")) { | 2798 if (_json.containsKey("isLive")) { |
2824 isLive = _json["isLive"]; | 2799 isLive = _json["isLive"]; |
2825 } | 2800 } |
| 2801 if (_json.containsKey("matchesStorageClass")) { |
| 2802 matchesStorageClass = _json["matchesStorageClass"]; |
| 2803 } |
2826 if (_json.containsKey("numNewerVersions")) { | 2804 if (_json.containsKey("numNewerVersions")) { |
2827 numNewerVersions = _json["numNewerVersions"]; | 2805 numNewerVersions = _json["numNewerVersions"]; |
2828 } | 2806 } |
2829 } | 2807 } |
2830 | 2808 |
2831 core.Map toJson() { | 2809 core.Map toJson() { |
2832 var _json = new core.Map(); | 2810 var _json = new core.Map(); |
2833 if (age != null) { | 2811 if (age != null) { |
2834 _json["age"] = age; | 2812 _json["age"] = age; |
2835 } | 2813 } |
2836 if (createdBefore != null) { | 2814 if (createdBefore != null) { |
2837 _json["createdBefore"] = "${(createdBefore).year.toString().padLeft(4, '0'
)}-${(createdBefore).month.toString().padLeft(2, '0')}-${(createdBefore).day.toS
tring().padLeft(2, '0')}"; | 2815 _json["createdBefore"] = "${(createdBefore).year.toString().padLeft(4, '0'
)}-${(createdBefore).month.toString().padLeft(2, '0')}-${(createdBefore).day.toS
tring().padLeft(2, '0')}"; |
2838 } | 2816 } |
2839 if (isLive != null) { | 2817 if (isLive != null) { |
2840 _json["isLive"] = isLive; | 2818 _json["isLive"] = isLive; |
2841 } | 2819 } |
| 2820 if (matchesStorageClass != null) { |
| 2821 _json["matchesStorageClass"] = matchesStorageClass; |
| 2822 } |
2842 if (numNewerVersions != null) { | 2823 if (numNewerVersions != null) { |
2843 _json["numNewerVersions"] = numNewerVersions; | 2824 _json["numNewerVersions"] = numNewerVersions; |
2844 } | 2825 } |
2845 return _json; | 2826 return _json; |
2846 } | 2827 } |
2847 } | 2828 } |
2848 | 2829 |
2849 class BucketLifecycleRule { | 2830 class BucketLifecycleRule { |
2850 /** The action to take. */ | 2831 /** The action to take. */ |
2851 BucketLifecycleRuleAction action; | 2832 BucketLifecycleRuleAction action; |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3036 /** A bucket. */ | 3017 /** A bucket. */ |
3037 class Bucket { | 3018 class Bucket { |
3038 /** Access controls on the bucket. */ | 3019 /** Access controls on the bucket. */ |
3039 core.List<BucketAccessControl> acl; | 3020 core.List<BucketAccessControl> acl; |
3040 /** The bucket's Cross-Origin Resource Sharing (CORS) configuration. */ | 3021 /** The bucket's Cross-Origin Resource Sharing (CORS) configuration. */ |
3041 core.List<BucketCors> cors; | 3022 core.List<BucketCors> cors; |
3042 /** | 3023 /** |
3043 * Default access controls to apply to new objects when no ACL is provided. | 3024 * Default access controls to apply to new objects when no ACL is provided. |
3044 */ | 3025 */ |
3045 core.List<ObjectAccessControl> defaultObjectAcl; | 3026 core.List<ObjectAccessControl> defaultObjectAcl; |
3046 /** | |
3047 * Encryption configuration used by default for newly inserted objects, when | |
3048 * no encryption config is specified. | |
3049 */ | |
3050 BucketEncryption encryption; | |
3051 /** HTTP 1.1 Entity tag for the bucket. */ | 3027 /** HTTP 1.1 Entity tag for the bucket. */ |
3052 core.String etag; | 3028 core.String etag; |
3053 /** The ID of the bucket. */ | 3029 /** The ID of the bucket. */ |
3054 core.String id; | 3030 core.String id; |
3055 /** The kind of item this is. For buckets, this is always storage#bucket. */ | 3031 /** The kind of item this is. For buckets, this is always storage#bucket. */ |
3056 core.String kind; | 3032 core.String kind; |
3057 /** | 3033 /** |
3058 * The bucket's lifecycle configuration. See lifecycle management for more | 3034 * The bucket's lifecycle configuration. See lifecycle management for more |
3059 * information. | 3035 * information. |
3060 */ | 3036 */ |
(...skipping 15 matching lines...) Expand all Loading... |
3076 core.String name; | 3052 core.String name; |
3077 /** | 3053 /** |
3078 * The owner of the bucket. This is always the project team's owner group. | 3054 * The owner of the bucket. This is always the project team's owner group. |
3079 */ | 3055 */ |
3080 BucketOwner owner; | 3056 BucketOwner owner; |
3081 /** The project number of the project the bucket belongs to. */ | 3057 /** The project number of the project the bucket belongs to. */ |
3082 core.String projectNumber; | 3058 core.String projectNumber; |
3083 /** The URI of this bucket. */ | 3059 /** The URI of this bucket. */ |
3084 core.String selfLink; | 3060 core.String selfLink; |
3085 /** | 3061 /** |
3086 * The bucket's storage class. This defines how objects in the bucket are | 3062 * The bucket's default storage class, used whenever no storageClass is |
3087 * stored and determines the SLA and the cost of storage. Values include | 3063 * specified for a newly-created object. This defines how objects in the |
3088 * STANDARD, NEARLINE and DURABLE_REDUCED_AVAILABILITY. Defaults to STANDARD. | 3064 * bucket are stored and determines the SLA and the cost of storage. Values |
3089 * For more information, see storage classes. | 3065 * include MULTI_REGIONAL, REGIONAL, STANDARD, NEARLINE, COLDLINE, and |
| 3066 * DURABLE_REDUCED_AVAILABILITY. If this value is not specified when the |
| 3067 * bucket is created, it will default to STANDARD. For more information, see |
| 3068 * storage classes. |
3090 */ | 3069 */ |
3091 core.String storageClass; | 3070 core.String storageClass; |
3092 /** The creation time of the bucket in RFC 3339 format. */ | 3071 /** The creation time of the bucket in RFC 3339 format. */ |
3093 core.DateTime timeCreated; | 3072 core.DateTime timeCreated; |
3094 /** The modification time of the bucket in RFC 3339 format. */ | 3073 /** The modification time of the bucket in RFC 3339 format. */ |
3095 core.DateTime updated; | 3074 core.DateTime updated; |
3096 /** The bucket's versioning configuration. */ | 3075 /** The bucket's versioning configuration. */ |
3097 BucketVersioning versioning; | 3076 BucketVersioning versioning; |
3098 /** | 3077 /** |
3099 * The bucket's website configuration, controlling how the service behaves | 3078 * The bucket's website configuration, controlling how the service behaves |
3100 * when accessing bucket contents as a web site. See the Static Website | 3079 * when accessing bucket contents as a web site. See the Static Website |
3101 * Examples for more information. | 3080 * Examples for more information. |
3102 */ | 3081 */ |
3103 BucketWebsite website; | 3082 BucketWebsite website; |
3104 | 3083 |
3105 Bucket(); | 3084 Bucket(); |
3106 | 3085 |
3107 Bucket.fromJson(core.Map _json) { | 3086 Bucket.fromJson(core.Map _json) { |
3108 if (_json.containsKey("acl")) { | 3087 if (_json.containsKey("acl")) { |
3109 acl = _json["acl"].map((value) => new BucketAccessControl.fromJson(value))
.toList(); | 3088 acl = _json["acl"].map((value) => new BucketAccessControl.fromJson(value))
.toList(); |
3110 } | 3089 } |
3111 if (_json.containsKey("cors")) { | 3090 if (_json.containsKey("cors")) { |
3112 cors = _json["cors"].map((value) => new BucketCors.fromJson(value)).toList
(); | 3091 cors = _json["cors"].map((value) => new BucketCors.fromJson(value)).toList
(); |
3113 } | 3092 } |
3114 if (_json.containsKey("defaultObjectAcl")) { | 3093 if (_json.containsKey("defaultObjectAcl")) { |
3115 defaultObjectAcl = _json["defaultObjectAcl"].map((value) => new ObjectAcce
ssControl.fromJson(value)).toList(); | 3094 defaultObjectAcl = _json["defaultObjectAcl"].map((value) => new ObjectAcce
ssControl.fromJson(value)).toList(); |
3116 } | 3095 } |
3117 if (_json.containsKey("encryption")) { | |
3118 encryption = new BucketEncryption.fromJson(_json["encryption"]); | |
3119 } | |
3120 if (_json.containsKey("etag")) { | 3096 if (_json.containsKey("etag")) { |
3121 etag = _json["etag"]; | 3097 etag = _json["etag"]; |
3122 } | 3098 } |
3123 if (_json.containsKey("id")) { | 3099 if (_json.containsKey("id")) { |
3124 id = _json["id"]; | 3100 id = _json["id"]; |
3125 } | 3101 } |
3126 if (_json.containsKey("kind")) { | 3102 if (_json.containsKey("kind")) { |
3127 kind = _json["kind"]; | 3103 kind = _json["kind"]; |
3128 } | 3104 } |
3129 if (_json.containsKey("lifecycle")) { | 3105 if (_json.containsKey("lifecycle")) { |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3171 var _json = new core.Map(); | 3147 var _json = new core.Map(); |
3172 if (acl != null) { | 3148 if (acl != null) { |
3173 _json["acl"] = acl.map((value) => (value).toJson()).toList(); | 3149 _json["acl"] = acl.map((value) => (value).toJson()).toList(); |
3174 } | 3150 } |
3175 if (cors != null) { | 3151 if (cors != null) { |
3176 _json["cors"] = cors.map((value) => (value).toJson()).toList(); | 3152 _json["cors"] = cors.map((value) => (value).toJson()).toList(); |
3177 } | 3153 } |
3178 if (defaultObjectAcl != null) { | 3154 if (defaultObjectAcl != null) { |
3179 _json["defaultObjectAcl"] = defaultObjectAcl.map((value) => (value).toJson
()).toList(); | 3155 _json["defaultObjectAcl"] = defaultObjectAcl.map((value) => (value).toJson
()).toList(); |
3180 } | 3156 } |
3181 if (encryption != null) { | |
3182 _json["encryption"] = (encryption).toJson(); | |
3183 } | |
3184 if (etag != null) { | 3157 if (etag != null) { |
3185 _json["etag"] = etag; | 3158 _json["etag"] = etag; |
3186 } | 3159 } |
3187 if (id != null) { | 3160 if (id != null) { |
3188 _json["id"] = id; | 3161 _json["id"] = id; |
3189 } | 3162 } |
3190 if (kind != null) { | 3163 if (kind != null) { |
3191 _json["kind"] = kind; | 3164 _json["kind"] = kind; |
3192 } | 3165 } |
3193 if (lifecycle != null) { | 3166 if (lifecycle != null) { |
(...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3776 ObjectCustomerEncryption customerEncryption; | 3749 ObjectCustomerEncryption customerEncryption; |
3777 /** HTTP 1.1 Entity tag for the object. */ | 3750 /** HTTP 1.1 Entity tag for the object. */ |
3778 core.String etag; | 3751 core.String etag; |
3779 /** The content generation of this object. Used for object versioning. */ | 3752 /** The content generation of this object. Used for object versioning. */ |
3780 core.String generation; | 3753 core.String generation; |
3781 /** The ID of the object. */ | 3754 /** The ID of the object. */ |
3782 core.String id; | 3755 core.String id; |
3783 /** The kind of item this is. For objects, this is always storage#object. */ | 3756 /** The kind of item this is. For objects, this is always storage#object. */ |
3784 core.String kind; | 3757 core.String kind; |
3785 /** | 3758 /** |
3786 * Cloud KMS Key used to encrypt this object, if the object is encrypted by | |
3787 * such a key. | |
3788 */ | |
3789 core.String kmsKeyName; | |
3790 /** | |
3791 * MD5 hash of the data; encoded using base64. For more information about | 3759 * MD5 hash of the data; encoded using base64. For more information about |
3792 * using the MD5 hash, see Hashes and ETags: Best Practices. | 3760 * using the MD5 hash, see Hashes and ETags: Best Practices. |
3793 */ | 3761 */ |
3794 core.String md5Hash; | 3762 core.String md5Hash; |
3795 /** Media download link. */ | 3763 /** Media download link. */ |
3796 core.String mediaLink; | 3764 core.String mediaLink; |
3797 /** User-provided metadata, in key/value pairs. */ | 3765 /** User-provided metadata, in key/value pairs. */ |
3798 core.Map<core.String, core.String> metadata; | 3766 core.Map<core.String, core.String> metadata; |
3799 /** | 3767 /** |
3800 * The version of the metadata for this object at this generation. Used for | 3768 * The version of the metadata for this object at this generation. Used for |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3863 } | 3831 } |
3864 if (_json.containsKey("generation")) { | 3832 if (_json.containsKey("generation")) { |
3865 generation = _json["generation"]; | 3833 generation = _json["generation"]; |
3866 } | 3834 } |
3867 if (_json.containsKey("id")) { | 3835 if (_json.containsKey("id")) { |
3868 id = _json["id"]; | 3836 id = _json["id"]; |
3869 } | 3837 } |
3870 if (_json.containsKey("kind")) { | 3838 if (_json.containsKey("kind")) { |
3871 kind = _json["kind"]; | 3839 kind = _json["kind"]; |
3872 } | 3840 } |
3873 if (_json.containsKey("kmsKeyName")) { | |
3874 kmsKeyName = _json["kmsKeyName"]; | |
3875 } | |
3876 if (_json.containsKey("md5Hash")) { | 3841 if (_json.containsKey("md5Hash")) { |
3877 md5Hash = _json["md5Hash"]; | 3842 md5Hash = _json["md5Hash"]; |
3878 } | 3843 } |
3879 if (_json.containsKey("mediaLink")) { | 3844 if (_json.containsKey("mediaLink")) { |
3880 mediaLink = _json["mediaLink"]; | 3845 mediaLink = _json["mediaLink"]; |
3881 } | 3846 } |
3882 if (_json.containsKey("metadata")) { | 3847 if (_json.containsKey("metadata")) { |
3883 metadata = _json["metadata"]; | 3848 metadata = _json["metadata"]; |
3884 } | 3849 } |
3885 if (_json.containsKey("metageneration")) { | 3850 if (_json.containsKey("metageneration")) { |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3948 } | 3913 } |
3949 if (generation != null) { | 3914 if (generation != null) { |
3950 _json["generation"] = generation; | 3915 _json["generation"] = generation; |
3951 } | 3916 } |
3952 if (id != null) { | 3917 if (id != null) { |
3953 _json["id"] = id; | 3918 _json["id"] = id; |
3954 } | 3919 } |
3955 if (kind != null) { | 3920 if (kind != null) { |
3956 _json["kind"] = kind; | 3921 _json["kind"] = kind; |
3957 } | 3922 } |
3958 if (kmsKeyName != null) { | |
3959 _json["kmsKeyName"] = kmsKeyName; | |
3960 } | |
3961 if (md5Hash != null) { | 3923 if (md5Hash != null) { |
3962 _json["md5Hash"] = md5Hash; | 3924 _json["md5Hash"] = md5Hash; |
3963 } | 3925 } |
3964 if (mediaLink != null) { | 3926 if (mediaLink != null) { |
3965 _json["mediaLink"] = mediaLink; | 3927 _json["mediaLink"] = mediaLink; |
3966 } | 3928 } |
3967 if (metadata != null) { | 3929 if (metadata != null) { |
3968 _json["metadata"] = metadata; | 3930 _json["metadata"] = metadata; |
3969 } | 3931 } |
3970 if (metageneration != null) { | 3932 if (metageneration != null) { |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4050 * - The group example@googlegroups.com would be | 4012 * - The group example@googlegroups.com would be |
4051 * group-example@googlegroups.com. | 4013 * group-example@googlegroups.com. |
4052 * - To refer to all members of the Google Apps for Business domain | 4014 * - To refer to all members of the Google Apps for Business domain |
4053 * example.com, the entity would be domain-example.com. | 4015 * example.com, the entity would be domain-example.com. |
4054 */ | 4016 */ |
4055 core.String entity; | 4017 core.String entity; |
4056 /** The ID for the entity, if any. */ | 4018 /** The ID for the entity, if any. */ |
4057 core.String entityId; | 4019 core.String entityId; |
4058 /** HTTP 1.1 Entity tag for the access-control entry. */ | 4020 /** HTTP 1.1 Entity tag for the access-control entry. */ |
4059 core.String etag; | 4021 core.String etag; |
4060 /** The content generation of the object. */ | 4022 /** The content generation of the object, if applied to an object. */ |
4061 core.String generation; | 4023 core.String generation; |
4062 /** The ID of the access-control entry. */ | 4024 /** The ID of the access-control entry. */ |
4063 core.String id; | 4025 core.String id; |
4064 /** | 4026 /** |
4065 * The kind of item this is. For object access control entries, this is always | 4027 * The kind of item this is. For object access control entries, this is always |
4066 * storage#objectAccessControl. | 4028 * storage#objectAccessControl. |
4067 */ | 4029 */ |
4068 core.String kind; | 4030 core.String kind; |
4069 /** The name of the object. */ | 4031 /** The name of the object, if applied to an object. */ |
4070 core.String object; | 4032 core.String object; |
4071 /** The project team associated with the entity, if any. */ | 4033 /** The project team associated with the entity, if any. */ |
4072 ObjectAccessControlProjectTeam projectTeam; | 4034 ObjectAccessControlProjectTeam projectTeam; |
4073 /** The access permission for the entity. */ | 4035 /** The access permission for the entity. */ |
4074 core.String role; | 4036 core.String role; |
4075 /** The link to this access-control entry. */ | 4037 /** The link to this access-control entry. */ |
4076 core.String selfLink; | 4038 core.String selfLink; |
4077 | 4039 |
4078 ObjectAccessControl(); | 4040 ObjectAccessControl(); |
4079 | 4041 |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4159 } | 4121 } |
4160 if (selfLink != null) { | 4122 if (selfLink != null) { |
4161 _json["selfLink"] = selfLink; | 4123 _json["selfLink"] = selfLink; |
4162 } | 4124 } |
4163 return _json; | 4125 return _json; |
4164 } | 4126 } |
4165 } | 4127 } |
4166 | 4128 |
4167 /** An access-control list. */ | 4129 /** An access-control list. */ |
4168 class ObjectAccessControls { | 4130 class ObjectAccessControls { |
4169 /** | 4131 /** The list of items. */ |
4170 * The list of items. | 4132 core.List<ObjectAccessControl> items; |
4171 * | |
4172 * The values for Object must be JSON objects. It can consist of `num`, | |
4173 * `String`, `bool` and `null` as well as `Map` and `List` values. | |
4174 */ | |
4175 core.List<core.Object> items; | |
4176 /** | 4133 /** |
4177 * The kind of item this is. For lists of object access control entries, this | 4134 * The kind of item this is. For lists of object access control entries, this |
4178 * is always storage#objectAccessControls. | 4135 * is always storage#objectAccessControls. |
4179 */ | 4136 */ |
4180 core.String kind; | 4137 core.String kind; |
4181 | 4138 |
4182 ObjectAccessControls(); | 4139 ObjectAccessControls(); |
4183 | 4140 |
4184 ObjectAccessControls.fromJson(core.Map _json) { | 4141 ObjectAccessControls.fromJson(core.Map _json) { |
4185 if (_json.containsKey("items")) { | 4142 if (_json.containsKey("items")) { |
4186 items = _json["items"]; | 4143 items = _json["items"].map((value) => new ObjectAccessControl.fromJson(val
ue)).toList(); |
4187 } | 4144 } |
4188 if (_json.containsKey("kind")) { | 4145 if (_json.containsKey("kind")) { |
4189 kind = _json["kind"]; | 4146 kind = _json["kind"]; |
4190 } | 4147 } |
4191 } | 4148 } |
4192 | 4149 |
4193 core.Map toJson() { | 4150 core.Map toJson() { |
4194 var _json = new core.Map(); | 4151 var _json = new core.Map(); |
4195 if (items != null) { | 4152 if (items != null) { |
4196 _json["items"] = items; | 4153 _json["items"] = items.map((value) => (value).toJson()).toList(); |
4197 } | 4154 } |
4198 if (kind != null) { | 4155 if (kind != null) { |
4199 _json["kind"] = kind; | 4156 _json["kind"] = kind; |
4200 } | 4157 } |
4201 return _json; | 4158 return _json; |
4202 } | 4159 } |
4203 } | 4160 } |
4204 | 4161 |
4205 /** A list of objects. */ | 4162 /** A list of objects. */ |
4206 class Objects { | 4163 class Objects { |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4326 } | 4283 } |
4327 if (rewriteToken != null) { | 4284 if (rewriteToken != null) { |
4328 _json["rewriteToken"] = rewriteToken; | 4285 _json["rewriteToken"] = rewriteToken; |
4329 } | 4286 } |
4330 if (totalBytesRewritten != null) { | 4287 if (totalBytesRewritten != null) { |
4331 _json["totalBytesRewritten"] = totalBytesRewritten; | 4288 _json["totalBytesRewritten"] = totalBytesRewritten; |
4332 } | 4289 } |
4333 return _json; | 4290 return _json; |
4334 } | 4291 } |
4335 } | 4292 } |
OLD | NEW |