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

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

Overview

A Compose request.

Defined Under Namespace

Classes: SourceObject

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) ⇒ ComposeRequest

Returns a new instance of ComposeRequest.


703
704
705
# File 'generated/google/apis/storage_v1/classes.rb', line 703

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

Instance Attribute Details

#destinationGoogle::Apis::StorageV1::Object

An object. Corresponds to the JSON property destination


691
692
693
# File 'generated/google/apis/storage_v1/classes.rb', line 691

def destination
  @destination
end

#kindString

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

Returns:

  • (String)

696
697
698
# File 'generated/google/apis/storage_v1/classes.rb', line 696

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


701
702
703
# File 'generated/google/apis/storage_v1/classes.rb', line 701

def source_objects
  @source_objects
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


708
709
710
711
712
# File 'generated/google/apis/storage_v1/classes.rb', line 708

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