Class: Google::Apis::SlidesV1::UpdateSlidesPositionRequest

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

Overview

Updates the position of slides in the presentation.

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

Returns a new instance of UpdateSlidesPositionRequest



2801
2802
2803
# File 'generated/google/apis/slides_v1/classes.rb', line 2801

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

Instance Attribute Details

#insertion_indexFixnum

The index where the slides should be inserted, based on the slide arrangement before the move takes place. Must be between zero and the number of slides in the presentation, inclusive. Corresponds to the JSON property insertionIndex

Returns:

  • (Fixnum)


2799
2800
2801
# File 'generated/google/apis/slides_v1/classes.rb', line 2799

def insertion_index
  @insertion_index
end

#slide_object_idsArray<String>

The IDs of the slides in the presentation that should be moved. The slides in this list must be in existing presentation order, without duplicates. Corresponds to the JSON property slideObjectIds

Returns:

  • (Array<String>)


2792
2793
2794
# File 'generated/google/apis/slides_v1/classes.rb', line 2792

def slide_object_ids
  @slide_object_ids
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2806
2807
2808
2809
# File 'generated/google/apis/slides_v1/classes.rb', line 2806

def update!(**args)
  @slide_object_ids = args[:slide_object_ids] if args.key?(:slide_object_ids)
  @insertion_index = args[:insertion_index] if args.key?(:insertion_index)
end