class Google::Apis::StorageV1::Object

An object.

Attributes

acl[RW]

Access controls on the object. Corresponds to the JSON property `acl` @return [Array<Google::Apis::StorageV1::ObjectAccessControl>]

bucket[RW]

The name of the bucket containing this object. Corresponds to the JSON property `bucket` @return [String]

cache_control[RW]

Cache-Control directive for the object data. Corresponds to the JSON property `cacheControl` @return [String]

component_count[RW]

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[RW]

Content-Disposition of the object data. Corresponds to the JSON property `contentDisposition` @return [String]

content_encoding[RW]

Content-Encoding of the object data. Corresponds to the JSON property `contentEncoding` @return [String]

content_language[RW]

Content-Language of the object data. Corresponds to the JSON property `contentLanguage` @return [String]

content_type[RW]

Content-Type of the object data. Corresponds to the JSON property `contentType` @return [String]

crc32c[RW]

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]

customer_encryption[RW]

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]

etag[RW]

HTTP 1.1 Entity tag for the object. Corresponds to the JSON property `etag` @return [String]

generation[RW]

The content generation of this object. Used for object versioning. Corresponds to the JSON property `generation` @return [String]

id[RW]

The ID of the object. Corresponds to the JSON property `id` @return [String]

kind[RW]

The kind of item this is. For objects, this is always storage#object. Corresponds to the JSON property `kind` @return [String]

md5_hash[RW]

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]

metadata[RW]

User-provided metadata, in key/value pairs. Corresponds to the JSON property `metadata` @return [Hash<String,String>]

metageneration[RW]

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]

name[RW]

The name of this object. Required if not specified by URL parameter. Corresponds to the JSON property `name` @return [String]

owner[RW]

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]

size[RW]

Content-Length of the data in bytes. Corresponds to the JSON property `size` @return [String]

storage_class[RW]

Storage class of the object. Corresponds to the JSON property `storageClass` @return [String]

time_created[RW]

The creation time of the object in RFC 3339 format. Corresponds to the JSON property `timeCreated` @return [DateTime]

time_deleted[RW]

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]

updated[RW]

The modification time of the object metadata in RFC 3339 format. Corresponds to the JSON property `updated` @return [DateTime]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/storage_v1/classes.rb, line 887
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

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