Class: Google::Apis::StorageV1::ComposeRequest

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

Overview

A Compose request.

Defined Under Namespace

Classes: SourceObject

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ComposeRequest

Returns a new instance of ComposeRequest.



1761
1762
1763
# File 'lib/google/apis/storage_v1/classes.rb', line 1761

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

Instance Attribute Details

#delete_source_objectsBoolean Also known as: delete_source_objects?

If true, the source objects will be deleted. Corresponds to the JSON property deleteSourceObjects

Returns:

  • (Boolean)


1743
1744
1745
# File 'lib/google/apis/storage_v1/classes.rb', line 1743

def delete_source_objects
  @delete_source_objects
end

#destinationGoogle::Apis::StorageV1::Object

An object. Corresponds to the JSON property destination



1749
1750
1751
# File 'lib/google/apis/storage_v1/classes.rb', line 1749

def destination
  @destination
end

#kindString

The kind of item this is. Corresponds to the JSON property kind

Returns:

  • (String)


1754
1755
1756
# File 'lib/google/apis/storage_v1/classes.rb', line 1754

def kind
  @kind
end

#source_objectsArray<Google::Apis::StorageV1::ComposeRequest::SourceObject>

The list of source objects that will be concatenated into a single object. Corresponds to the JSON property sourceObjects



1759
1760
1761
# File 'lib/google/apis/storage_v1/classes.rb', line 1759

def source_objects
  @source_objects
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1766
1767
1768
1769
1770
1771
# File 'lib/google/apis/storage_v1/classes.rb', line 1766

def update!(**args)
  @delete_source_objects = args[:delete_source_objects] if args.key?(:delete_source_objects)
  @destination = args[:destination] if args.key?(:destination)
  @kind = args[:kind] if args.key?(:kind)
  @source_objects = args[:source_objects] if args.key?(:source_objects)
end