Class: Google::Apis::SlidesV1::GroupObjectsRequest

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

Groups objects to create an object group. For example, groups PageElements to create a Group on the same page as all the children.

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

Returns a new instance of GroupObjectsRequest



1175
1176
1177
# File 'generated/google/apis/slides_v1/classes.rb', line 1175

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

Instance Attribute Details

#children_object_idsArray<String>

The object IDs of the objects to group. Only page elements can be grouped. There should be at least two page elements on the same page that are not already in another group. Some page elements, such as videos, tables and placeholder shapes cannot be grouped. Corresponds to the JSON property childrenObjectIds

Returns:

  • (Array<String>)


1161
1162
1163
# File 'generated/google/apis/slides_v1/classes.rb', line 1161

def children_object_ids
  @children_object_ids
end

#group_object_idString

A user-supplied object ID for the group to be created. 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 groupObjectId

Returns:

  • (String)


1173
1174
1175
# File 'generated/google/apis/slides_v1/classes.rb', line 1173

def group_object_id
  @group_object_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1180
1181
1182
1183
# File 'generated/google/apis/slides_v1/classes.rb', line 1180

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