class Google::Apis::SlidesV1::CreateSlideRequest

Creates a new slide.

Attributes

insertion_index[RW]

The optional zero-based index indicating where to insert the slides. If you don't specify an index, the new slide is created at the end. Corresponds to the JSON property `insertionIndex` @return [Fixnum]

object_id_prop[RW]

A user-supplied object ID. If you specify an ID, it must be unique among all pages and page elements in the presentation. The ID must start with an alphanumeric character or an underscore (matches regex `[a-zA-Z0-9_]`); remaining characters may include those as well as a hyphen or colon (matches regex `[a-zA-Z0-9_-:]`). The length of the ID must not be less than 5 or greater than 50. If you don't specify an ID, a unique one is generated. Corresponds to the JSON property `objectId` @return [String]

placeholder_id_mappings[RW]

An optional list of object ID mappings from the placeholder(s) on the layout to the placeholder(s) that will be created on the new slide from that specified layout. Can only be used when `slide_layout_reference` is specified. Corresponds to the JSON property `placeholderIdMappings` @return [Array<Google::Apis::SlidesV1::LayoutPlaceholderIdMapping>]

slide_layout_reference[RW]

Slide layout reference. This may reference either: - A predefined layout - One of the layouts in the presentation. Corresponds to the JSON property `slideLayoutReference` @return [Google::Apis::SlidesV1::LayoutReference]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/slides_v1/classes.rb, line 666
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/slides_v1/classes.rb, line 671
def update!(**args)
  @insertion_index = args[:insertion_index] if args.key?(:insertion_index)
  @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
  @placeholder_id_mappings = args[:placeholder_id_mappings] if args.key?(:placeholder_id_mappings)
  @slide_layout_reference = args[:slide_layout_reference] if args.key?(:slide_layout_reference)
end