Class: Google::Apis::SlidesV1::DuplicateObjectRequest

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

Duplicates a slide or page element. When duplicating a slide, the duplicate slide will be created immediately following the specified slide. When duplicating a page element, the duplicate will be placed on the same page at the same position as the original.

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

Returns a new instance of DuplicateObjectRequest



1100
1101
1102
# File 'generated/google/apis/slides_v1/classes.rb', line 1100

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

Instance Attribute Details

#object_id_propString

The ID of the object to duplicate. Corresponds to the JSON property objectId

Returns:

  • (String)


1078
1079
1080
# File 'generated/google/apis/slides_v1/classes.rb', line 1078

def object_id_prop
  @object_id_prop
end

#object_idsHash<String,String>

The object being duplicated may contain other objects, for example when duplicating a slide or a group page element. This map defines how the IDs of duplicated objects are generated: the keys are the IDs of the original objects and its values are the IDs that will be assigned to the corresponding duplicate object. The ID of the source object's duplicate may be specified in this map as well, using the same value of the object_id field as a key and the newly desired ID as the value. All keys must correspond to existing IDs in the presentation. All values must be unique in the presentation and 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 new ID must not be less than 5 or greater than 50. If any IDs of source objects are omitted from the map, a new random ID will be assigned. If the map is empty or unset, all duplicate objects will receive a new random ID. Corresponds to the JSON property objectIds

Returns:

  • (Hash<String,String>)


1098
1099
1100
# File 'generated/google/apis/slides_v1/classes.rb', line 1098

def object_ids
  @object_ids
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1105
1106
1107
1108
# File 'generated/google/apis/slides_v1/classes.rb', line 1105

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