Index: generated/googleapis/lib/storage/v1.dart |
diff --git a/generated/googleapis/lib/storage/v1.dart b/generated/googleapis/lib/storage/v1.dart |
index a5c3bdf55075383f9bf9ec44bdc24cc1ade043b5..0d148d247530b86bd62c5ae9e2a646e41c747b7a 100644 |
--- a/generated/googleapis/lib/storage/v1.dart |
+++ b/generated/googleapis/lib/storage/v1.dart |
@@ -607,7 +607,9 @@ class BucketsResourceApi { |
} |
/** |
- * Updates a bucket. This method supports patch semantics. |
+ * Updates a bucket. Changes to the bucket will be readable immediately after |
+ * writing, but configuration changes may take time to propagate. This method |
+ * supports patch semantics. |
* |
* [request] - The metadata request object. |
* |
@@ -706,7 +708,8 @@ class BucketsResourceApi { |
} |
/** |
- * Updates a bucket. |
+ * Updates a bucket. Changes to the bucket will be readable immediately after |
+ * writing, but configuration changes may take time to propagate. |
* |
* [request] - The metadata request object. |
* |
@@ -1556,11 +1559,6 @@ class ObjectsResourceApi { |
* [ifMetagenerationMatch] - Makes the operation conditional on whether the |
* object's current metageneration matches 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. |
- * |
* [downloadOptions] - Options for downloading. A download can be either a |
* Metadata (default) or Media download. Partial Media downloads are possible |
* as well. |
@@ -1577,7 +1575,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 kmsKeyName, 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, commons.DownloadOptions downloadOptions: commons.DownloadOptions.Metadata}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -1603,9 +1601,6 @@ class ObjectsResourceApi { |
if (ifMetagenerationMatch != null) { |
_queryParams["ifMetagenerationMatch"] = [ifMetagenerationMatch]; |
} |
- if (kmsKeyName != null) { |
- _queryParams["kmsKeyName"] = [kmsKeyName]; |
- } |
_downloadOptions = downloadOptions; |
@@ -1991,11 +1986,6 @@ 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 |
@@ -2042,7 +2032,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 kmsKeyName, core.String name, core.String predefinedAcl, core.String projection, 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 name, core.String predefinedAcl, core.String projection, 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; |
@@ -2071,9 +2061,6 @@ class ObjectsResourceApi { |
if (ifMetagenerationNotMatch != null) { |
_queryParams["ifMetagenerationNotMatch"] = [ifMetagenerationNotMatch]; |
} |
- if (kmsKeyName != null) { |
- _queryParams["kmsKeyName"] = [kmsKeyName]; |
- } |
if (name != null) { |
_queryParams["name"] = [name]; |
} |
@@ -2319,11 +2306,6 @@ 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: |
@@ -2395,7 +2377,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 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}) { |
+ 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}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -2418,9 +2400,6 @@ 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]; |
} |
@@ -2740,38 +2719,25 @@ 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("default_kms_key_name")) { |
- defaultKmsKeyName = _json["default_kms_key_name"]; |
- } |
- } |
- |
- core.Map toJson() { |
- var _json = new core.Map(); |
- if (defaultKmsKeyName != null) { |
- _json["default_kms_key_name"] = defaultKmsKeyName; |
- } |
- return _json; |
- } |
-} |
- |
/** The action to take. */ |
class BucketLifecycleRuleAction { |
- /** Type of the action. Currently, only Delete is supported. */ |
+ /** |
+ * Target storage class. Required iff the type of the action is |
+ * SetStorageClass. |
+ */ |
+ core.String storageClass; |
+ /** |
+ * Type of the action. Currently, only Delete and SetStorageClass are |
+ * supported. |
+ */ |
core.String type; |
BucketLifecycleRuleAction(); |
BucketLifecycleRuleAction.fromJson(core.Map _json) { |
+ if (_json.containsKey("storageClass")) { |
+ storageClass = _json["storageClass"]; |
+ } |
if (_json.containsKey("type")) { |
type = _json["type"]; |
} |
@@ -2779,6 +2745,9 @@ class BucketLifecycleRuleAction { |
core.Map toJson() { |
var _json = new core.Map(); |
+ if (storageClass != null) { |
+ _json["storageClass"] = storageClass; |
+ } |
if (type != null) { |
_json["type"] = type; |
} |
@@ -2805,6 +2774,12 @@ class BucketLifecycleRuleCondition { |
*/ |
core.bool isLive; |
/** |
+ * Objects having any of the storage classes specified by this condition will |
+ * be matched. Values include MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE, |
+ * STANDARD, and DURABLE_REDUCED_AVAILABILITY. |
+ */ |
+ core.List<core.String> matchesStorageClass; |
+ /** |
* Relevant only for versioned objects. If the value is N, this condition is |
* satisfied when there are at least N versions (including the live version) |
* newer than this version of the object. |
@@ -2823,6 +2798,9 @@ class BucketLifecycleRuleCondition { |
if (_json.containsKey("isLive")) { |
isLive = _json["isLive"]; |
} |
+ if (_json.containsKey("matchesStorageClass")) { |
+ matchesStorageClass = _json["matchesStorageClass"]; |
+ } |
if (_json.containsKey("numNewerVersions")) { |
numNewerVersions = _json["numNewerVersions"]; |
} |
@@ -2839,6 +2817,9 @@ class BucketLifecycleRuleCondition { |
if (isLive != null) { |
_json["isLive"] = isLive; |
} |
+ if (matchesStorageClass != null) { |
+ _json["matchesStorageClass"] = matchesStorageClass; |
+ } |
if (numNewerVersions != null) { |
_json["numNewerVersions"] = numNewerVersions; |
} |
@@ -3043,11 +3024,6 @@ 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; |
/** The ID of the bucket. */ |
@@ -3083,10 +3059,13 @@ class Bucket { |
/** The URI of this bucket. */ |
core.String selfLink; |
/** |
- * The bucket's storage class. This defines how objects in the bucket are |
- * stored and determines the SLA and the cost of storage. Values include |
- * STANDARD, NEARLINE and DURABLE_REDUCED_AVAILABILITY. Defaults to STANDARD. |
- * For more information, see storage classes. |
+ * The bucket's default storage class, used whenever no storageClass is |
+ * specified for a newly-created object. This defines how objects in the |
+ * bucket are stored and determines the SLA and the cost of storage. Values |
+ * include MULTI_REGIONAL, REGIONAL, STANDARD, NEARLINE, COLDLINE, and |
+ * DURABLE_REDUCED_AVAILABILITY. If this value is not specified when the |
+ * bucket is created, it will default to STANDARD. For more information, see |
+ * storage classes. |
*/ |
core.String storageClass; |
/** The creation time of the bucket in RFC 3339 format. */ |
@@ -3114,9 +3093,6 @@ 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"]; |
} |
@@ -3178,9 +3154,6 @@ 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; |
} |
@@ -3783,11 +3756,6 @@ class Object { |
/** 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. |
*/ |
@@ -3870,9 +3838,6 @@ class Object { |
if (_json.containsKey("kind")) { |
kind = _json["kind"]; |
} |
- if (_json.containsKey("kmsKeyName")) { |
- kmsKeyName = _json["kmsKeyName"]; |
- } |
if (_json.containsKey("md5Hash")) { |
md5Hash = _json["md5Hash"]; |
} |
@@ -3955,9 +3920,6 @@ class Object { |
if (kind != null) { |
_json["kind"] = kind; |
} |
- if (kmsKeyName != null) { |
- _json["kmsKeyName"] = kmsKeyName; |
- } |
if (md5Hash != null) { |
_json["md5Hash"] = md5Hash; |
} |
@@ -4057,7 +4019,7 @@ class ObjectAccessControl { |
core.String entityId; |
/** HTTP 1.1 Entity tag for the access-control entry. */ |
core.String etag; |
- /** The content generation of the object. */ |
+ /** The content generation of the object, if applied to an object. */ |
core.String generation; |
/** The ID of the access-control entry. */ |
core.String id; |
@@ -4066,7 +4028,7 @@ class ObjectAccessControl { |
* storage#objectAccessControl. |
*/ |
core.String kind; |
- /** The name of the object. */ |
+ /** The name of the object, if applied to an object. */ |
core.String object; |
/** The project team associated with the entity, if any. */ |
ObjectAccessControlProjectTeam projectTeam; |
@@ -4166,13 +4128,8 @@ class ObjectAccessControl { |
/** An access-control list. */ |
class ObjectAccessControls { |
- /** |
- * The list of items. |
- * |
- * The values for Object must be JSON objects. It can consist of `num`, |
- * `String`, `bool` and `null` as well as `Map` and `List` values. |
- */ |
- core.List<core.Object> items; |
+ /** The list of items. */ |
+ core.List<ObjectAccessControl> items; |
/** |
* The kind of item this is. For lists of object access control entries, this |
* is always storage#objectAccessControls. |
@@ -4183,7 +4140,7 @@ class ObjectAccessControls { |
ObjectAccessControls.fromJson(core.Map _json) { |
if (_json.containsKey("items")) { |
- items = _json["items"]; |
+ items = _json["items"].map((value) => new ObjectAccessControl.fromJson(value)).toList(); |
} |
if (_json.containsKey("kind")) { |
kind = _json["kind"]; |
@@ -4193,7 +4150,7 @@ class ObjectAccessControls { |
core.Map toJson() { |
var _json = new core.Map(); |
if (items != null) { |
- _json["items"] = items; |
+ _json["items"] = items.map((value) => (value).toJson()).toList(); |
} |
if (kind != null) { |
_json["kind"] = kind; |