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.



1586
1587
1588
# File 'lib/google/apis/storage_v1/classes.rb', line 1586

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

Instance Attribute Details

#destinationGoogle::Apis::StorageV1::Object

An object. Corresponds to the JSON property destination



1574
1575
1576
# File 'lib/google/apis/storage_v1/classes.rb', line 1574

def destination
  @destination
end

#kindString

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

Returns:

  • (String)


1579
1580
1581
# File 'lib/google/apis/storage_v1/classes.rb', line 1579

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



1584
1585
1586
# File 'lib/google/apis/storage_v1/classes.rb', line 1584

def source_objects
  @source_objects
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1591
1592
1593
1594
1595
# File 'lib/google/apis/storage_v1/classes.rb', line 1591

def update!(**args)
  @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