Class: Google::Apis::StorageV1beta1::Object

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/storage_v1beta1/classes.rb,
generated/google/apis/storage_v1beta1/representations.rb,
generated/google/apis/storage_v1beta1/representations.rb

Overview

An object.

Defined Under Namespace

Classes: Media, Owner

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Object


357
358
359
# File 'generated/google/apis/storage_v1beta1/classes.rb', line 357

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#aclArray<Google::Apis::StorageV1beta1::ObjectAccessControl>

Access controls on the object. Corresponds to the JSON property acl


294
295
296
# File 'generated/google/apis/storage_v1beta1/classes.rb', line 294

def acl
  @acl
end

#bucketString

The bucket containing this object. Corresponds to the JSON property bucket


299
300
301
# File 'generated/google/apis/storage_v1beta1/classes.rb', line 299

def bucket
  @bucket
end

#cache_controlString

Cache-Control directive for the object data. Corresponds to the JSON property cacheControl


304
305
306
# File 'generated/google/apis/storage_v1beta1/classes.rb', line 304

def cache_control
  @cache_control
end

#content_dispositionString

Content-Disposition of the object data. Corresponds to the JSON property contentDisposition


309
310
311
# File 'generated/google/apis/storage_v1beta1/classes.rb', line 309

def content_disposition
  @content_disposition
end

#content_encodingString

Content-Encoding of the object data. Corresponds to the JSON property contentEncoding


314
315
316
# File 'generated/google/apis/storage_v1beta1/classes.rb', line 314

def content_encoding
  @content_encoding
end

#content_languageString

Content-Language of the object data. Corresponds to the JSON property contentLanguage


319
320
321
# File 'generated/google/apis/storage_v1beta1/classes.rb', line 319

def content_language
  @content_language
end

#idString

The ID of the object. Corresponds to the JSON property id


324
325
326
# File 'generated/google/apis/storage_v1beta1/classes.rb', line 324

def id
  @id
end

#kindString

The kind of item this is. For objects, this is always storage#object. Corresponds to the JSON property kind


329
330
331
# File 'generated/google/apis/storage_v1beta1/classes.rb', line 329

def kind
  @kind
end

#mediaGoogle::Apis::StorageV1beta1::Object::Media

Object media data. Provided on your behalf when uploading raw media or multipart/related with an auxiliary media part. Corresponds to the JSON property media


335
336
337
# File 'generated/google/apis/storage_v1beta1/classes.rb', line 335

def media
  @media
end

#metadataHash<String,String>

User-provided metadata, in key/value pairs. Corresponds to the JSON property metadata


340
341
342
# File 'generated/google/apis/storage_v1beta1/classes.rb', line 340

def 
  
end

#nameString

The name of this object. Required if not specified by URL parameter. Corresponds to the JSON property name


345
346
347
# File 'generated/google/apis/storage_v1beta1/classes.rb', line 345

def name
  @name
end

#ownerGoogle::Apis::StorageV1beta1::Object::Owner

The owner of the object. This will always be the uploader of the object. Corresponds to the JSON property owner


350
351
352
# File 'generated/google/apis/storage_v1beta1/classes.rb', line 350

def owner
  @owner
end

The link to this object. Corresponds to the JSON property selfLink


355
356
357
# File 'generated/google/apis/storage_v1beta1/classes.rb', line 355

def self_link
  @self_link
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
# File 'generated/google/apis/storage_v1beta1/classes.rb', line 362

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)
  @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)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @media = args[:media] if args.key?(:media)
   = args[:metadata] if args.key?(:metadata)
  @name = args[:name] if args.key?(:name)
  @owner = args[:owner] if args.key?(:owner)
  @self_link = args[:self_link] if args.key?(:self_link)
end