Class: Google::Apis::SheetsV4::AddDimensionGroupRequest
- Inherits:
-
Object
- Object
- Google::Apis::SheetsV4::AddDimensionGroupRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/sheets_v4/classes.rb,
generated/google/apis/sheets_v4/representations.rb,
generated/google/apis/sheets_v4/representations.rb
Overview
Creates a group over the specified range. If the requested range is a superset of the range of an existing group G, then the depth of G is incremented and this new group G' has the depth of that group. For example, a group [C:D, depth 1] + [B:E] results in groups [B:E, depth 1] and [C:D, depth 2]. If the requested range is a subset of the range of an existing group G, then the depth of the new group G' becomes one greater than the depth of G. For example, a group [B:E, depth 1] + [C:D] results in groups [B:E, depth 1] and [C:D, depth 2]. If the requested range starts before and ends within, or starts within and ends after, the range of an existing group G, then the range of the existing group G becomes the union of the ranges, and the new group G' has depth one greater than the depth of G and range as the intersection of the ranges. For example, a group [B:D, depth 1] + [C:E] results in groups [B:E, depth 1] and [C:D, depth 2].
Instance Attribute Summary collapse
-
#range ⇒ Google::Apis::SheetsV4::DimensionRange
A range along a single dimension on a sheet.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AddDimensionGroupRequest
constructor
A new instance of AddDimensionGroupRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ AddDimensionGroupRequest
Returns a new instance of AddDimensionGroupRequest
154 155 156 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 154 def initialize(**args) update!(**args) end |
Instance Attribute Details
#range ⇒ Google::Apis::SheetsV4::DimensionRange
A range along a single dimension on a sheet.
All indexes are zero-based.
Indexes are half open: the start index is inclusive
and the end index is exclusive.
Missing indexes indicate the range is unbounded on that side.
Corresponds to the JSON property range
152 153 154 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 152 def range @range end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
159 160 161 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 159 def update!(**args) @range = args[:range] if args.key?(:range) end |