Class: Google::Apis::StorageV1beta1::Object
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::StorageV1beta1::Object
 
- 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
Instance Attribute Summary collapse
- 
  
    
      #acl  ⇒ Array<Google::Apis::StorageV1beta1::ObjectAccessControl> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Access controls on the object. 
- 
  
    
      #bucket  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The bucket containing this object. 
- 
  
    
      #cache_control  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Cache-Control directive for the object data. 
- 
  
    
      #content_disposition  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Content-Disposition of the object data. 
- 
  
    
      #content_encoding  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Content-Encoding of the object data. 
- 
  
    
      #content_language  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Content-Language of the object data. 
- 
  
    
      #id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The ID of the object. 
- 
  
    
      #kind  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The kind of item this is. 
- 
  
    
      #media  ⇒ Google::Apis::StorageV1beta1::Object::Media 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Object media data. 
- 
  
    
      #metadata  ⇒ Hash<String,String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    User-provided metadata, in key/value pairs. 
- 
  
    
      #name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The name of this object. 
- 
  
    
      #owner  ⇒ Google::Apis::StorageV1beta1::Object::Owner 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The owner of the object. 
- 
  
    
      #self_link  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The link to this object. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Object 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Object. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Object
Returns a new instance of Object
| 357 358 359 | # File 'generated/google/apis/storage_v1beta1/classes.rb', line 357 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#acl ⇒ Array<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 | 
#bucket ⇒ String
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_control ⇒ String
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_disposition ⇒ String
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_encoding ⇒ String
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_language ⇒ String
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 | 
#id ⇒ String
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 | 
#kind ⇒ String
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 | 
#media ⇒ Google::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 | 
#metadata ⇒ Hash<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 @metadata end | 
#name ⇒ String
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 | 
#owner ⇒ Google::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 | 
#self_link ⇒ String
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) @metadata = 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 |