class Google::Apis::StorageV1::Object
An object.
Attributes
Access controls on the object. Corresponds to the JSON property `acl` @return [Array<Google::Apis::StorageV1::ObjectAccessControl>]
The name of the bucket containing this object. Corresponds to the JSON property `bucket` @return [String]
Cache-Control directive for the object data. Corresponds to the JSON property `cacheControl` @return [String]
Number of underlying components that make up this object. Components are accumulated by compose operations. Corresponds to the JSON property `componentCount` @return [Fixnum]
Content-Disposition of the object data. Corresponds to the JSON property `contentDisposition` @return [String]
Content-Encoding of the object data. Corresponds to the JSON property `contentEncoding` @return [String]
Content-Language of the object data. Corresponds to the JSON property `contentLanguage` @return [String]
Content-Type of the object data. Corresponds to the JSON property `contentType` @return [String]
CRC32c checksum, as described in RFC 4960, Appendix B; encoded using base64 in big-endian byte order. For more information about using the CRC32c checksum, see Hashes and ETags: Best Practices. Corresponds to the JSON property `crc32c` @return [String]
Metadata of customer-supplied encryption key, if the object is encrypted by such a key. Corresponds to the JSON property `customerEncryption` @return [Google::Apis::StorageV1::Object::CustomerEncryption]
HTTP 1.1 Entity tag for the object. Corresponds to the JSON property `etag` @return [String]
The content generation of this object. Used for object versioning. Corresponds to the JSON property `generation` @return [String]
The ID of the object. Corresponds to the JSON property `id` @return [String]
The kind of item this is. For objects, this is always storage#object. Corresponds to the JSON property `kind` @return [String]
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]
Media download link. Corresponds to the JSON property `mediaLink` @return [String]
User-provided metadata, in key/value pairs. Corresponds to the JSON property `metadata` @return [Hash<String,String>]
The version of the metadata for this object at this generation. Used for preconditions and for detecting changes in metadata. A metageneration number is only meaningful in the context of a particular generation of a particular object. Corresponds to the JSON property `metageneration` @return [String]
The name of this object. Required if not specified by URL parameter. Corresponds to the JSON property `name` @return [String]
The owner of the object. This will always be the uploader of the object. Corresponds to the JSON property `owner` @return [Google::Apis::StorageV1::Object::Owner]
The link to this object. Corresponds to the JSON property `selfLink` @return [String]
Content-Length of the data in bytes. Corresponds to the JSON property `size` @return [String]
Storage class of the object. Corresponds to the JSON property `storageClass` @return [String]
The creation time of the object in RFC 3339 format. Corresponds to the JSON property `timeCreated` @return [DateTime]
The deletion time of the object in RFC 3339 format. Will be returned if and only if this version of the object has been deleted. Corresponds to the JSON property `timeDeleted` @return [DateTime]
The modification time of the object metadata in RFC 3339 format. Corresponds to the JSON property `updated` @return [DateTime]
Public Class Methods
# File generated/google/apis/storage_v1/classes.rb, line 887 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/storage_v1/classes.rb, line 892 def update!(**args) @acl = args[:acl] if args.key?(:acl) @bucket = args[:bucket] if args.key?(:bucket) @cache_control = args[:cache_control] if args.key?(:cache_control) @component_count = args[:component_count] if args.key?(:component_count) @content_disposition = args[:content_disposition] if args.key?(:content_disposition) @content_encoding = args[:content_encoding] if args.key?(:content_encoding) @content_language = args[:content_language] if args.key?(:content_language) @content_type = args[:content_type] if args.key?(:content_type) @crc32c = args[:crc32c] if args.key?(:crc32c) @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) @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) @owner = args[:owner] if args.key?(:owner) @self_link = args[:self_link] if args.key?(:self_link) @size = args[:size] if args.key?(:size) @storage_class = args[:storage_class] if args.key?(:storage_class) @time_created = args[:time_created] if args.key?(:time_created) @time_deleted = args[:time_deleted] if args.key?(:time_deleted) @updated = args[:updated] if args.key?(:updated) end