generated/google/apis/storage_v1/classes.rb in google-api-client-0.9.11 vs generated/google/apis/storage_v1/classes.rb in google-api-client-0.9.12

- old
+ new

@@ -39,10 +39,16 @@ # Default access controls to apply to new objects when no ACL is provided. # Corresponds to the JSON property `defaultObjectAcl` # @return [Array<Google::Apis::StorageV1::ObjectAccessControl>] attr_accessor :default_object_acl + # Encryption configuration used by default for newly inserted objects, when no + # encryption config is specified. + # Corresponds to the JSON property `encryption` + # @return [Google::Apis::StorageV1::Bucket::Encryption] + attr_accessor :encryption + # HTTP 1.1 Entity tag for the bucket. # Corresponds to the JSON property `etag` # @return [String] attr_accessor :etag @@ -137,10 +143,11 @@ # Update properties of this object def update!(**args) @acl = args[:acl] if args.key?(:acl) @cors_configurations = args[:cors_configurations] if args.key?(:cors_configurations) @default_object_acl = args[:default_object_acl] if args.key?(:default_object_acl) + @encryption = args[:encryption] if args.key?(:encryption) @etag = args[:etag] if args.key?(:etag) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @lifecycle = args[:lifecycle] if args.key?(:lifecycle) @location = args[:location] if args.key?(:location) @@ -197,10 +204,30 @@ @origin = args[:origin] if args.key?(:origin) @response_header = args[:response_header] if args.key?(:response_header) end end + # Encryption configuration used by default for newly inserted objects, when no + # encryption config is specified. + class Encryption + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `default_kms_key_name` + # @return [String] + attr_accessor :default_kms_key_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @default_kms_key_name = args[:default_kms_key_name] if args.key?(:default_kms_key_name) + end + end + # The bucket's lifecycle configuration. See lifecycle management for more # information. class Lifecycle include Google::Apis::Core::Hashable @@ -761,11 +788,12 @@ # The name of the bucket containing this object. # Corresponds to the JSON property `bucket` # @return [String] attr_accessor :bucket - # Cache-Control directive for the object data. + # Cache-Control directive for the object data. If omitted, and the object is + # accessible to all anonymous users, the default will be public, max-age=3600. # Corresponds to the JSON property `cacheControl` # @return [String] attr_accessor :cache_control # Number of underlying components that make up this object. Components are @@ -826,10 +854,16 @@ # The kind of item this is. For objects, this is always storage#object. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind + # Cloud KMS Key used to encrypt this object, if the object is encrypted by such + # a key. + # Corresponds to the JSON property `kmsKeyName` + # @return [String] + attr_accessor :kms_key_name + # MD5 hash of the data; encoded using base64. For more information about using # the MD5 hash, see Hashes and ETags: Best Practices. # Corresponds to the JSON property `md5Hash` # @return [String] attr_accessor :md5_hash @@ -911,9 +945,10 @@ @customer_encryption = args[:customer_encryption] if args.key?(:customer_encryption) @etag = args[:etag] if args.key?(:etag) @generation = args[:generation] if args.key?(:generation) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) + @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name) @md5_hash = args[:md5_hash] if args.key?(:md5_hash) @media_link = args[:media_link] if args.key?(:media_link) @metadata = args[:metadata] if args.key?(:metadata) @metageneration = args[:metageneration] if args.key?(:metageneration) @name = args[:name] if args.key?(:name)