Class: Google::Apis::SlidesV1::CreateSlideRequest
- Inherits:
-
Object
- Object
- Google::Apis::SlidesV1::CreateSlideRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/slides_v1/classes.rb,
lib/google/apis/slides_v1/representations.rb,
lib/google/apis/slides_v1/representations.rb
Overview
Creates a slide.
Instance Attribute Summary collapse
-
#insertion_index ⇒ Fixnum
The optional zero-based index indicating where to insert the slides.
-
#object_id_prop ⇒ String
A user-supplied object ID.
-
#placeholder_id_mappings ⇒ Array<Google::Apis::SlidesV1::LayoutPlaceholderIdMapping>
An optional list of object ID mappings from the placeholder(s) on the layout to the placeholders that are created on the slide from the specified layout.
-
#slide_layout_reference ⇒ Google::Apis::SlidesV1::LayoutReference
Slide layout reference.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CreateSlideRequest
constructor
A new instance of CreateSlideRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CreateSlideRequest
Returns a new instance of CreateSlideRequest.
668 669 670 |
# File 'lib/google/apis/slides_v1/classes.rb', line 668 def initialize(**args) update!(**args) end |
Instance Attribute Details
#insertion_index ⇒ Fixnum
The optional zero-based index indicating where to insert the slides. If you
don't specify an index, the slide is created at the end.
Corresponds to the JSON property insertionIndex
643 644 645 |
# File 'lib/google/apis/slides_v1/classes.rb', line 643 def insertion_index @insertion_index end |
#object_id_prop ⇒ String
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 ID length must be between 5 and 50 characters,
inclusive. If you don't specify an ID, a unique one is generated.
Corresponds to the JSON property objectId
653 654 655 |
# File 'lib/google/apis/slides_v1/classes.rb', line 653 def object_id_prop @object_id_prop end |
#placeholder_id_mappings ⇒ Array<Google::Apis::SlidesV1::LayoutPlaceholderIdMapping>
An optional list of object ID mappings from the placeholder(s) on the layout
to the placeholders that are created on the slide from the specified layout.
Can only be used when slide_layout_reference is specified.
Corresponds to the JSON property placeholderIdMappings
660 661 662 |
# File 'lib/google/apis/slides_v1/classes.rb', line 660 def placeholder_id_mappings @placeholder_id_mappings end |
#slide_layout_reference ⇒ Google::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
666 667 668 |
# File 'lib/google/apis/slides_v1/classes.rb', line 666 def end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
673 674 675 676 677 678 |
# File 'lib/google/apis/slides_v1/classes.rb', line 673 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) = args[:slide_layout_reference] if args.key?(:slide_layout_reference) end |