Class: Google::Apis::SlidesV1::CreateSlideRequest

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

Creates a new slide.

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

Returns a new instance of CreateSlideRequest



1586
1587
1588
# File 'generated/google/apis/slides_v1/classes.rb', line 1586

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

Instance Attribute Details

#insertion_indexFixnum

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

Returns:

  • (Fixnum)


1576
1577
1578
# File 'generated/google/apis/slides_v1/classes.rb', line 1576

def insertion_index
  @insertion_index
end

#object_id_propString

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

Returns:

  • (String)


1570
1571
1572
# File 'generated/google/apis/slides_v1/classes.rb', line 1570

def object_id_prop
  @object_id_prop
end

#placeholder_id_mappingsArray<Google::Apis::SlidesV1::LayoutPlaceholderIdMapping>

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



1584
1585
1586
# File 'generated/google/apis/slides_v1/classes.rb', line 1584

def placeholder_id_mappings
  @placeholder_id_mappings
end

#slide_layout_referenceGoogle::Apis::SlidesV1::LayoutReference

Slide layout reference. This may reference either:

  • A predefined layout
  • One of the layouts in the presentation. Corresponds to the JSON property slideLayoutReference


1558
1559
1560
# File 'generated/google/apis/slides_v1/classes.rb', line 1558

def slide_layout_reference
  @slide_layout_reference
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1591
1592
1593
1594
1595
1596
# File 'generated/google/apis/slides_v1/classes.rb', line 1591

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