Index: generated/googleapis/lib/storage/v1.dart |
diff --git a/generated/googleapis/lib/storage/v1.dart b/generated/googleapis/lib/storage/v1.dart |
index 4b666af94812daf0cf79befd2a725cbb992455c0..5e5bcd2e8268e3c22729c3c95fd42e411c66647b 100644 |
--- a/generated/googleapis/lib/storage/v1.dart |
+++ b/generated/googleapis/lib/storage/v1.dart |
@@ -68,8 +68,8 @@ class BucketAccessControlsResourceApi { |
* user-emailAddress, group-groupId, group-emailAddress, allUsers, or |
* allAuthenticatedUsers. |
* |
- * [userProject] - The project number to be billed for this request, for |
- * Requester Pays buckets. |
+ * [userProject] - The project to be billed for this request, for Requester |
+ * Pays buckets. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -120,8 +120,8 @@ class BucketAccessControlsResourceApi { |
* user-emailAddress, group-groupId, group-emailAddress, allUsers, or |
* allAuthenticatedUsers. |
* |
- * [userProject] - The project number to be billed for this request, for |
- * Requester Pays buckets. |
+ * [userProject] - The project to be billed for this request, for Requester |
+ * Pays buckets. |
* |
* Completes with a [BucketAccessControl]. |
* |
@@ -170,8 +170,8 @@ class BucketAccessControlsResourceApi { |
* |
* [bucket] - Name of a bucket. |
* |
- * [userProject] - The project number to be billed for this request, for |
- * Requester Pays buckets. |
+ * [userProject] - The project to be billed for this request, for Requester |
+ * Pays buckets. |
* |
* Completes with a [BucketAccessControl]. |
* |
@@ -218,8 +218,8 @@ class BucketAccessControlsResourceApi { |
* |
* [bucket] - Name of a bucket. |
* |
- * [userProject] - The project number to be billed for this request, for |
- * Requester Pays buckets. |
+ * [userProject] - The project to be billed for this request, for Requester |
+ * Pays buckets. |
* |
* Completes with a [BucketAccessControls]. |
* |
@@ -270,8 +270,8 @@ class BucketAccessControlsResourceApi { |
* user-emailAddress, group-groupId, group-emailAddress, allUsers, or |
* allAuthenticatedUsers. |
* |
- * [userProject] - The project number to be billed for this request, for |
- * Requester Pays buckets. |
+ * [userProject] - The project to be billed for this request, for Requester |
+ * Pays buckets. |
* |
* Completes with a [BucketAccessControl]. |
* |
@@ -327,8 +327,8 @@ class BucketAccessControlsResourceApi { |
* user-emailAddress, group-groupId, group-emailAddress, allUsers, or |
* allAuthenticatedUsers. |
* |
- * [userProject] - The project number to be billed for this request, for |
- * Requester Pays buckets. |
+ * [userProject] - The project to be billed for this request, for Requester |
+ * Pays buckets. |
* |
* Completes with a [BucketAccessControl]. |
* |
@@ -393,8 +393,8 @@ class BucketsResourceApi { |
* [ifMetagenerationNotMatch] - If set, only deletes the bucket if its |
* metageneration does not match this value. |
* |
- * [userProject] - The project number to be billed for this request, for |
- * Requester Pays buckets. |
+ * [userProject] - The project to be billed for this request, for Requester |
+ * Pays buckets. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -457,8 +457,8 @@ class BucketsResourceApi { |
* - "full" : Include all properties. |
* - "noAcl" : Omit owner, acl and defaultObjectAcl properties. |
* |
- * [userProject] - The project number to be billed for this request, for |
- * Requester Pays buckets. |
+ * [userProject] - The project to be billed for this request, for Requester |
+ * Pays buckets. |
* |
* Completes with a [Bucket]. |
* |
@@ -511,8 +511,8 @@ class BucketsResourceApi { |
* |
* [bucket] - Name of a bucket. |
* |
- * [userProject] - The project number to be billed for this request, for |
- * Requester Pays buckets. |
+ * [userProject] - The project to be billed for this request, for Requester |
+ * Pays buckets. |
* |
* Completes with a [Policy]. |
* |
@@ -753,8 +753,8 @@ class BucketsResourceApi { |
* - "full" : Include all properties. |
* - "noAcl" : Omit owner, acl and defaultObjectAcl properties. |
* |
- * [userProject] - The project number to be billed for this request, for |
- * Requester Pays buckets. |
+ * [userProject] - The project to be billed for this request, for Requester |
+ * Pays buckets. |
* |
* Completes with a [Bucket]. |
* |
@@ -818,8 +818,8 @@ class BucketsResourceApi { |
* |
* [bucket] - Name of a bucket. |
* |
- * [userProject] - The project number to be billed for this request, for |
- * Requester Pays buckets. |
+ * [userProject] - The project to be billed for this request, for Requester |
+ * Pays buckets. |
* |
* Completes with a [Policy]. |
* |
@@ -869,8 +869,8 @@ class BucketsResourceApi { |
* |
* [permissions] - Permissions to test. |
* |
- * [userProject] - The project number to be billed for this request, for |
- * Requester Pays buckets. |
+ * [userProject] - The project to be billed for this request, for Requester |
+ * Pays buckets. |
* |
* Completes with a [TestIamPermissionsResponse]. |
* |
@@ -961,8 +961,8 @@ class BucketsResourceApi { |
* - "full" : Include all properties. |
* - "noAcl" : Omit owner, acl and defaultObjectAcl properties. |
* |
- * [userProject] - The project number to be billed for this request, for |
- * Requester Pays buckets. |
+ * [userProject] - The project to be billed for this request, for Requester |
+ * Pays buckets. |
* |
* Completes with a [Bucket]. |
* |
@@ -1086,8 +1086,8 @@ class DefaultObjectAccessControlsResourceApi { |
* user-emailAddress, group-groupId, group-emailAddress, allUsers, or |
* allAuthenticatedUsers. |
* |
- * [userProject] - The project number to be billed for this request, for |
- * Requester Pays buckets. |
+ * [userProject] - The project to be billed for this request, for Requester |
+ * Pays buckets. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -1139,8 +1139,8 @@ class DefaultObjectAccessControlsResourceApi { |
* user-emailAddress, group-groupId, group-emailAddress, allUsers, or |
* allAuthenticatedUsers. |
* |
- * [userProject] - The project number to be billed for this request, for |
- * Requester Pays buckets. |
+ * [userProject] - The project to be billed for this request, for Requester |
+ * Pays buckets. |
* |
* Completes with a [ObjectAccessControl]. |
* |
@@ -1189,8 +1189,8 @@ class DefaultObjectAccessControlsResourceApi { |
* |
* [bucket] - Name of a bucket. |
* |
- * [userProject] - The project number to be billed for this request, for |
- * Requester Pays buckets. |
+ * [userProject] - The project to be billed for this request, for Requester |
+ * Pays buckets. |
* |
* Completes with a [ObjectAccessControl]. |
* |
@@ -1243,8 +1243,8 @@ class DefaultObjectAccessControlsResourceApi { |
* [ifMetagenerationNotMatch] - If present, only return default ACL listing if |
* the bucket's current metageneration does not match the given value. |
* |
- * [userProject] - The project number to be billed for this request, for |
- * Requester Pays buckets. |
+ * [userProject] - The project to be billed for this request, for Requester |
+ * Pays buckets. |
* |
* Completes with a [ObjectAccessControls]. |
* |
@@ -1301,8 +1301,8 @@ class DefaultObjectAccessControlsResourceApi { |
* user-emailAddress, group-groupId, group-emailAddress, allUsers, or |
* allAuthenticatedUsers. |
* |
- * [userProject] - The project number to be billed for this request, for |
- * Requester Pays buckets. |
+ * [userProject] - The project to be billed for this request, for Requester |
+ * Pays buckets. |
* |
* Completes with a [ObjectAccessControl]. |
* |
@@ -1358,8 +1358,8 @@ class DefaultObjectAccessControlsResourceApi { |
* user-emailAddress, group-groupId, group-emailAddress, allUsers, or |
* allAuthenticatedUsers. |
* |
- * [userProject] - The project number to be billed for this request, for |
- * Requester Pays buckets. |
+ * [userProject] - The project to be billed for this request, for Requester |
+ * Pays buckets. |
* |
* Completes with a [ObjectAccessControl]. |
* |
@@ -1420,8 +1420,8 @@ class NotificationsResourceApi { |
* |
* [notification] - ID of the notification to delete. |
* |
- * [userProject] - The project number to be billed for this request, for |
- * Requester Pays buckets. |
+ * [userProject] - The project to be billed for this request, for Requester |
+ * Pays buckets. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -1470,8 +1470,8 @@ class NotificationsResourceApi { |
* |
* [notification] - Notification ID |
* |
- * [userProject] - The project number to be billed for this request, for |
- * Requester Pays buckets. |
+ * [userProject] - The project to be billed for this request, for Requester |
+ * Pays buckets. |
* |
* Completes with a [Notification]. |
* |
@@ -1520,8 +1520,8 @@ class NotificationsResourceApi { |
* |
* [bucket] - The parent bucket of the notification. |
* |
- * [userProject] - The project number to be billed for this request, for |
- * Requester Pays buckets. |
+ * [userProject] - The project to be billed for this request, for Requester |
+ * Pays buckets. |
* |
* Completes with a [Notification]. |
* |
@@ -1568,8 +1568,8 @@ class NotificationsResourceApi { |
* |
* [bucket] - Name of a GCS bucket. |
* |
- * [userProject] - The project number to be billed for this request, for |
- * Requester Pays buckets. |
+ * [userProject] - The project to be billed for this request, for Requester |
+ * Pays buckets. |
* |
* Completes with a [Notifications]. |
* |
@@ -1633,8 +1633,8 @@ class ObjectAccessControlsResourceApi { |
* [generation] - If present, selects a specific revision of this object (as |
* opposed to the latest version, the default). |
* |
- * [userProject] - The project number to be billed for this request, for |
- * Requester Pays buckets. |
+ * [userProject] - The project to be billed for this request, for Requester |
+ * Pays buckets. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -1697,8 +1697,8 @@ class ObjectAccessControlsResourceApi { |
* [generation] - If present, selects a specific revision of this object (as |
* opposed to the latest version, the default). |
* |
- * [userProject] - The project number to be billed for this request, for |
- * Requester Pays buckets. |
+ * [userProject] - The project to be billed for this request, for Requester |
+ * Pays buckets. |
* |
* Completes with a [ObjectAccessControl]. |
* |
@@ -1759,8 +1759,8 @@ class ObjectAccessControlsResourceApi { |
* [generation] - If present, selects a specific revision of this object (as |
* opposed to the latest version, the default). |
* |
- * [userProject] - The project number to be billed for this request, for |
- * Requester Pays buckets. |
+ * [userProject] - The project to be billed for this request, for Requester |
+ * Pays buckets. |
* |
* Completes with a [ObjectAccessControl]. |
* |
@@ -1819,8 +1819,8 @@ class ObjectAccessControlsResourceApi { |
* [generation] - If present, selects a specific revision of this object (as |
* opposed to the latest version, the default). |
* |
- * [userProject] - The project number to be billed for this request, for |
- * Requester Pays buckets. |
+ * [userProject] - The project to be billed for this request, for Requester |
+ * Pays buckets. |
* |
* Completes with a [ObjectAccessControls]. |
* |
@@ -1883,8 +1883,8 @@ class ObjectAccessControlsResourceApi { |
* [generation] - If present, selects a specific revision of this object (as |
* opposed to the latest version, the default). |
* |
- * [userProject] - The project number to be billed for this request, for |
- * Requester Pays buckets. |
+ * [userProject] - The project to be billed for this request, for Requester |
+ * Pays buckets. |
* |
* Completes with a [ObjectAccessControl]. |
* |
@@ -1952,8 +1952,8 @@ class ObjectAccessControlsResourceApi { |
* [generation] - If present, selects a specific revision of this object (as |
* opposed to the latest version, the default). |
* |
- * [userProject] - The project number to be billed for this request, for |
- * Requester Pays buckets. |
+ * [userProject] - The project to be billed for this request, for Requester |
+ * Pays buckets. |
* |
* Completes with a [ObjectAccessControl]. |
* |
@@ -2045,8 +2045,13 @@ class ObjectsResourceApi { |
* [ifMetagenerationMatch] - Makes the operation conditional on whether the |
* object's current metageneration matches the given value. |
* |
- * [userProject] - The project number to be billed for this request, for |
- * Requester Pays buckets. |
+ * [kmsKeyName] - Resource name of the Cloud KMS key, of the form |
+ * projects/my-project/locations/global/keyRings/my-kr/cryptoKeys/my-key, that |
+ * will be used to encrypt the object. Overrides the object metadata's |
+ * kms_key_name value, if any. |
+ * |
+ * [userProject] - The project to be billed for this request, for Requester |
+ * Pays buckets. |
* |
* [downloadOptions] - Options for downloading. A download can be either a |
* Metadata (default) or Media download. Partial Media downloads are possible |
@@ -2064,7 +2069,7 @@ class ObjectsResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future compose(ComposeRequest request, core.String destinationBucket, core.String destinationObject, {core.String destinationPredefinedAcl, core.String ifGenerationMatch, core.String ifMetagenerationMatch, core.String userProject, commons.DownloadOptions downloadOptions: commons.DownloadOptions.Metadata}) { |
+ async.Future compose(ComposeRequest request, core.String destinationBucket, core.String destinationObject, {core.String destinationPredefinedAcl, core.String ifGenerationMatch, core.String ifMetagenerationMatch, core.String kmsKeyName, core.String userProject, commons.DownloadOptions downloadOptions: commons.DownloadOptions.Metadata}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -2090,6 +2095,9 @@ class ObjectsResourceApi { |
if (ifMetagenerationMatch != null) { |
_queryParams["ifMetagenerationMatch"] = [ifMetagenerationMatch]; |
} |
+ if (kmsKeyName != null) { |
+ _queryParams["kmsKeyName"] = [kmsKeyName]; |
+ } |
if (userProject != null) { |
_queryParams["userProject"] = [userProject]; |
} |
@@ -2184,8 +2192,8 @@ class ObjectsResourceApi { |
* [sourceGeneration] - If present, selects a specific revision of the source |
* object (as opposed to the latest version, the default). |
* |
- * [userProject] - The project number to be billed for this request, for |
- * Requester Pays buckets. |
+ * [userProject] - The project to be billed for this request, for Requester |
+ * Pays buckets. |
* |
* [downloadOptions] - Options for downloading. A download can be either a |
* Metadata (default) or Media download. Partial Media downloads are possible |
@@ -2308,8 +2316,8 @@ class ObjectsResourceApi { |
* [ifMetagenerationNotMatch] - Makes the operation conditional on whether the |
* object's current metageneration does not match the given value. |
* |
- * [userProject] - The project number to be billed for this request, for |
- * Requester Pays buckets. |
+ * [userProject] - The project to be billed for this request, for Requester |
+ * Pays buckets. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -2394,8 +2402,8 @@ class ObjectsResourceApi { |
* - "full" : Include all properties. |
* - "noAcl" : Omit the owner, acl property. |
* |
- * [userProject] - The project number to be billed for this request, for |
- * Requester Pays buckets. |
+ * [userProject] - The project to be billed for this request, for Requester |
+ * Pays buckets. |
* |
* [downloadOptions] - Options for downloading. A download can be either a |
* Metadata (default) or Media download. Partial Media downloads are possible |
@@ -2481,8 +2489,8 @@ class ObjectsResourceApi { |
* [generation] - If present, selects a specific revision of this object (as |
* opposed to the latest version, the default). |
* |
- * [userProject] - The project number to be billed for this request, for |
- * Requester Pays buckets. |
+ * [userProject] - The project to be billed for this request, for Requester |
+ * Pays buckets. |
* |
* Completes with a [Policy]. |
* |
@@ -2553,6 +2561,11 @@ class ObjectsResourceApi { |
* [ifMetagenerationNotMatch] - Makes the operation conditional on whether the |
* object's current metageneration does not match the given value. |
* |
+ * [kmsKeyName] - Resource name of the Cloud KMS key, of the form |
+ * projects/my-project/locations/global/keyRings/my-kr/cryptoKeys/my-key, that |
+ * will be used to encrypt the object. Overrides the object metadata's |
+ * kms_key_name value, if any. |
+ * |
* [name] - Name of the object. Required when the object metadata is not |
* otherwise provided. Overrides the object metadata's name value, if any. For |
* information about how to URL encode object names to be path safe, see |
@@ -2578,8 +2591,8 @@ class ObjectsResourceApi { |
* - "full" : Include all properties. |
* - "noAcl" : Omit the owner, acl property. |
* |
- * [userProject] - The project number to be billed for this request, for |
- * Requester Pays buckets. |
+ * [userProject] - The project to be billed for this request, for Requester |
+ * Pays buckets. |
* |
* [uploadMedia] - The media to upload. |
* |
@@ -2602,7 +2615,7 @@ class ObjectsResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future insert(Object request, core.String bucket, {core.String contentEncoding, core.String ifGenerationMatch, core.String ifGenerationNotMatch, core.String ifMetagenerationMatch, core.String ifMetagenerationNotMatch, core.String name, core.String predefinedAcl, core.String projection, core.String userProject, commons.UploadOptions uploadOptions : commons.UploadOptions.Default, commons.Media uploadMedia, commons.DownloadOptions downloadOptions: commons.DownloadOptions.Metadata}) { |
+ async.Future insert(Object request, core.String bucket, {core.String contentEncoding, core.String ifGenerationMatch, core.String ifGenerationNotMatch, core.String ifMetagenerationMatch, core.String ifMetagenerationNotMatch, core.String kmsKeyName, core.String name, core.String predefinedAcl, core.String projection, core.String userProject, commons.UploadOptions uploadOptions : commons.UploadOptions.Default, commons.Media uploadMedia, commons.DownloadOptions downloadOptions: commons.DownloadOptions.Metadata}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -2631,6 +2644,9 @@ class ObjectsResourceApi { |
if (ifMetagenerationNotMatch != null) { |
_queryParams["ifMetagenerationNotMatch"] = [ifMetagenerationNotMatch]; |
} |
+ if (kmsKeyName != null) { |
+ _queryParams["kmsKeyName"] = [kmsKeyName]; |
+ } |
if (name != null) { |
_queryParams["name"] = [name]; |
} |
@@ -2701,8 +2717,8 @@ class ObjectsResourceApi { |
* - "full" : Include all properties. |
* - "noAcl" : Omit the owner, acl property. |
* |
- * [userProject] - The project number to be billed for this request, for |
- * Requester Pays buckets. |
+ * [userProject] - The project to be billed for this request, for Requester |
+ * Pays buckets. |
* |
* [versions] - If true, lists all versions of an object as distinct results. |
* The default is false. For more information, see Object Versioning. |
@@ -2806,8 +2822,8 @@ class ObjectsResourceApi { |
* - "full" : Include all properties. |
* - "noAcl" : Omit the owner, acl property. |
* |
- * [userProject] - The project number to be billed for this request, for |
- * Requester Pays buckets. |
+ * [userProject] - The project to be billed for this request, for Requester |
+ * Pays buckets. |
* |
* Completes with a [Object]. |
* |
@@ -2892,6 +2908,11 @@ class ObjectsResourceApi { |
* value, if any. For information about how to URL encode object names to be |
* path safe, see Encoding URI Path Parts. |
* |
+ * [destinationKmsKeyName] - Resource name of the Cloud KMS key, of the form |
+ * projects/my-project/locations/global/keyRings/my-kr/cryptoKeys/my-key, that |
+ * will be used to encrypt the object. Overrides the object metadata's |
+ * kms_key_name value, if any. |
+ * |
* [destinationPredefinedAcl] - Apply a predefined set of access controls to |
* the destination object. |
* Possible string values are: |
@@ -2955,8 +2976,8 @@ class ObjectsResourceApi { |
* [sourceGeneration] - If present, selects a specific revision of the source |
* object (as opposed to the latest version, the default). |
* |
- * [userProject] - The project number to be billed for this request, for |
- * Requester Pays buckets. |
+ * [userProject] - The project to be billed for this request, for Requester |
+ * Pays buckets. |
* |
* Completes with a [RewriteResponse]. |
* |
@@ -2966,7 +2987,7 @@ class ObjectsResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<RewriteResponse> rewrite(Object request, core.String sourceBucket, core.String sourceObject, core.String destinationBucket, core.String destinationObject, {core.String destinationPredefinedAcl, core.String ifGenerationMatch, core.String ifGenerationNotMatch, core.String ifMetagenerationMatch, core.String ifMetagenerationNotMatch, core.String ifSourceGenerationMatch, core.String ifSourceGenerationNotMatch, core.String ifSourceMetagenerationMatch, core.String ifSourceMetagenerationNotMatch, core.String maxBytesRewrittenPerCall, core.String projection, core.String rewriteToken, core.String sourceGeneration, core.String userProject}) { |
+ async.Future<RewriteResponse> rewrite(Object request, core.String sourceBucket, core.String sourceObject, core.String destinationBucket, core.String destinationObject, {core.String destinationKmsKeyName, core.String destinationPredefinedAcl, core.String ifGenerationMatch, core.String ifGenerationNotMatch, core.String ifMetagenerationMatch, core.String ifMetagenerationNotMatch, core.String ifSourceGenerationMatch, core.String ifSourceGenerationNotMatch, core.String ifSourceMetagenerationMatch, core.String ifSourceMetagenerationNotMatch, core.String maxBytesRewrittenPerCall, core.String projection, core.String rewriteToken, core.String sourceGeneration, core.String userProject}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -2989,6 +3010,9 @@ class ObjectsResourceApi { |
if (destinationObject == null) { |
throw new core.ArgumentError("Parameter destinationObject is required."); |
} |
+ if (destinationKmsKeyName != null) { |
+ _queryParams["destinationKmsKeyName"] = [destinationKmsKeyName]; |
+ } |
if (destinationPredefinedAcl != null) { |
_queryParams["destinationPredefinedAcl"] = [destinationPredefinedAcl]; |
} |
@@ -3059,8 +3083,8 @@ class ObjectsResourceApi { |
* [generation] - If present, selects a specific revision of this object (as |
* opposed to the latest version, the default). |
* |
- * [userProject] - The project number to be billed for this request, for |
- * Requester Pays buckets. |
+ * [userProject] - The project to be billed for this request, for Requester |
+ * Pays buckets. |
* |
* Completes with a [Policy]. |
* |
@@ -3122,8 +3146,8 @@ class ObjectsResourceApi { |
* [generation] - If present, selects a specific revision of this object (as |
* opposed to the latest version, the default). |
* |
- * [userProject] - The project number to be billed for this request, for |
- * Requester Pays buckets. |
+ * [userProject] - The project to be billed for this request, for Requester |
+ * Pays buckets. |
* |
* Completes with a [TestIamPermissionsResponse]. |
* |
@@ -3216,8 +3240,8 @@ class ObjectsResourceApi { |
* - "full" : Include all properties. |
* - "noAcl" : Omit the owner, acl property. |
* |
- * [userProject] - The project number to be billed for this request, for |
- * Requester Pays buckets. |
+ * [userProject] - The project to be billed for this request, for Requester |
+ * Pays buckets. |
* |
* [downloadOptions] - Options for downloading. A download can be either a |
* Metadata (default) or Media download. Partial Media downloads are possible |
@@ -3326,8 +3350,8 @@ class ObjectsResourceApi { |
* - "full" : Include all properties. |
* - "noAcl" : Omit the owner, acl property. |
* |
- * [userProject] - The project number to be billed for this request, for |
- * Requester Pays buckets. |
+ * [userProject] - The project to be billed for this request, for Requester |
+ * Pays buckets. |
* |
* [versions] - If true, lists all versions of an object as distinct results. |
* The default is false. For more information, see Object Versioning. |
@@ -3463,8 +3487,8 @@ class BucketBilling { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (requesterPays != null) { |
_json["requesterPays"] = requesterPays; |
} |
@@ -3512,8 +3536,8 @@ class BucketCors { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (maxAgeSeconds != null) { |
_json["maxAgeSeconds"] = maxAgeSeconds; |
} |
@@ -3530,6 +3554,30 @@ class BucketCors { |
} |
} |
+/** |
+ * Encryption configuration used by default for newly inserted objects, when no |
+ * encryption config is specified. |
+ */ |
+class BucketEncryption { |
+ core.String defaultKmsKeyName; |
+ |
+ BucketEncryption(); |
+ |
+ BucketEncryption.fromJson(core.Map _json) { |
+ if (_json.containsKey("defaultKmsKeyName")) { |
+ defaultKmsKeyName = _json["defaultKmsKeyName"]; |
+ } |
+ } |
+ |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ if (defaultKmsKeyName != null) { |
+ _json["defaultKmsKeyName"] = defaultKmsKeyName; |
+ } |
+ return _json; |
+ } |
+} |
+ |
/** The action to take. */ |
class BucketLifecycleRuleAction { |
/** |
@@ -3554,8 +3602,8 @@ class BucketLifecycleRuleAction { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (storageClass != null) { |
_json["storageClass"] = storageClass; |
} |
@@ -3617,8 +3665,8 @@ class BucketLifecycleRuleCondition { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (age != null) { |
_json["age"] = age; |
} |
@@ -3655,8 +3703,8 @@ class BucketLifecycleRule { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (action != null) { |
_json["action"] = (action).toJson(); |
} |
@@ -3686,8 +3734,8 @@ class BucketLifecycle { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (rule != null) { |
_json["rule"] = rule.map((value) => (value).toJson()).toList(); |
} |
@@ -3718,8 +3766,8 @@ class BucketLogging { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (logBucket != null) { |
_json["logBucket"] = logBucket; |
} |
@@ -3748,8 +3796,8 @@ class BucketOwner { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (entity != null) { |
_json["entity"] = entity; |
} |
@@ -3773,8 +3821,8 @@ class BucketVersioning { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (enabled != null) { |
_json["enabled"] = enabled; |
} |
@@ -3813,8 +3861,8 @@ class BucketWebsite { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (mainPageSuffix != null) { |
_json["mainPageSuffix"] = mainPageSuffix; |
} |
@@ -3837,6 +3885,11 @@ class Bucket { |
* Default access controls to apply to new objects when no ACL is provided. |
*/ |
core.List<ObjectAccessControl> defaultObjectAcl; |
+ /** |
+ * Encryption configuration used by default for newly inserted objects, when |
+ * no encryption config is specified. |
+ */ |
+ BucketEncryption encryption; |
/** HTTP 1.1 Entity tag for the bucket. */ |
core.String etag; |
/** |
@@ -3914,6 +3967,9 @@ class Bucket { |
if (_json.containsKey("defaultObjectAcl")) { |
defaultObjectAcl = _json["defaultObjectAcl"].map((value) => new ObjectAccessControl.fromJson(value)).toList(); |
} |
+ if (_json.containsKey("encryption")) { |
+ encryption = new BucketEncryption.fromJson(_json["encryption"]); |
+ } |
if (_json.containsKey("etag")) { |
etag = _json["etag"]; |
} |
@@ -3967,8 +4023,8 @@ class Bucket { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (acl != null) { |
_json["acl"] = acl.map((value) => (value).toJson()).toList(); |
} |
@@ -3981,6 +4037,9 @@ class Bucket { |
if (defaultObjectAcl != null) { |
_json["defaultObjectAcl"] = defaultObjectAcl.map((value) => (value).toJson()).toList(); |
} |
+ if (encryption != null) { |
+ _json["encryption"] = (encryption).toJson(); |
+ } |
if (etag != null) { |
_json["etag"] = etag; |
} |
@@ -4054,8 +4113,8 @@ class BucketAccessControlProjectTeam { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (projectNumber != null) { |
_json["projectNumber"] = projectNumber; |
} |
@@ -4147,8 +4206,8 @@ class BucketAccessControl { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (bucket != null) { |
_json["bucket"] = bucket; |
} |
@@ -4207,8 +4266,8 @@ class BucketAccessControls { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (items != null) { |
_json["items"] = items.map((value) => (value).toJson()).toList(); |
} |
@@ -4248,8 +4307,8 @@ class Buckets { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (items != null) { |
_json["items"] = items.map((value) => (value).toJson()).toList(); |
} |
@@ -4333,8 +4392,8 @@ class Channel { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (address != null) { |
_json["address"] = address; |
} |
@@ -4386,8 +4445,8 @@ class ComposeRequestSourceObjectsObjectPreconditions { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (ifGenerationMatch != null) { |
_json["ifGenerationMatch"] = ifGenerationMatch; |
} |
@@ -4420,8 +4479,8 @@ class ComposeRequestSourceObjects { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (generation != null) { |
_json["generation"] = generation; |
} |
@@ -4460,8 +4519,8 @@ class ComposeRequest { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (destination != null) { |
_json["destination"] = (destination).toJson(); |
} |
@@ -4543,8 +4602,8 @@ class Notification { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (customAttributes != null) { |
_json["custom_attributes"] = customAttributes; |
} |
@@ -4597,8 +4656,8 @@ class Notifications { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (items != null) { |
_json["items"] = items.map((value) => (value).toJson()).toList(); |
} |
@@ -4630,8 +4689,8 @@ class ObjectCustomerEncryption { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (encryptionAlgorithm != null) { |
_json["encryptionAlgorithm"] = encryptionAlgorithm; |
} |
@@ -4660,8 +4719,8 @@ class ObjectOwner { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (entity != null) { |
_json["entity"] = entity; |
} |
@@ -4722,6 +4781,11 @@ class Object { |
core.String id; |
/** The kind of item this is. For objects, this is always storage#object. */ |
core.String kind; |
+ /** |
+ * Cloud KMS Key used to encrypt this object, if the object is encrypted by |
+ * such a key. |
+ */ |
+ core.String kmsKeyName; |
/** |
* MD5 hash of the data; encoded using base64. For more information about |
* using the MD5 hash, see Hashes and ETags: Best Practices. |
@@ -4810,6 +4874,9 @@ class Object { |
if (_json.containsKey("kind")) { |
kind = _json["kind"]; |
} |
+ if (_json.containsKey("kmsKeyName")) { |
+ kmsKeyName = _json["kmsKeyName"]; |
+ } |
if (_json.containsKey("md5Hash")) { |
md5Hash = _json["md5Hash"]; |
} |
@@ -4851,8 +4918,8 @@ class Object { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (acl != null) { |
_json["acl"] = acl.map((value) => (value).toJson()).toList(); |
} |
@@ -4895,6 +4962,9 @@ class Object { |
if (kind != null) { |
_json["kind"] = kind; |
} |
+ if (kmsKeyName != null) { |
+ _json["kmsKeyName"] = kmsKeyName; |
+ } |
if (md5Hash != null) { |
_json["md5Hash"] = md5Hash; |
} |
@@ -4956,8 +5026,8 @@ class ObjectAccessControlProjectTeam { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (projectNumber != null) { |
_json["projectNumber"] = projectNumber; |
} |
@@ -5059,8 +5129,8 @@ class ObjectAccessControl { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (bucket != null) { |
_json["bucket"] = bucket; |
} |
@@ -5125,8 +5195,8 @@ class ObjectAccessControls { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (items != null) { |
_json["items"] = items.map((value) => (value).toJson()).toList(); |
} |
@@ -5174,8 +5244,8 @@ class Objects { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (items != null) { |
_json["items"] = items.map((value) => (value).toJson()).toList(); |
} |
@@ -5257,8 +5327,8 @@ class PolicyBindings { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (members != null) { |
_json["members"] = members; |
} |
@@ -5316,8 +5386,8 @@ class Policy { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (bindings != null) { |
_json["bindings"] = bindings.map((value) => (value).toJson()).toList(); |
} |
@@ -5387,8 +5457,8 @@ class RewriteResponse { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (done != null) { |
_json["done"] = done; |
} |
@@ -5432,8 +5502,8 @@ class ServiceAccount { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (emailAddress != null) { |
_json["email_address"] = emailAddress; |
} |
@@ -5480,8 +5550,8 @@ class TestIamPermissionsResponse { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (kind != null) { |
_json["kind"] = kind; |
} |