Class: Google::Apis::SheetsV4::Sheet
- Inherits:
-
Object
- Object
- Google::Apis::SheetsV4::Sheet
- 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
A sheet in a spreadsheet.
Instance Attribute Summary collapse
-
#banded_ranges ⇒ Array<Google::Apis::SheetsV4::BandedRange>
The banded (alternating colors) ranges on this sheet.
-
#basic_filter ⇒ Google::Apis::SheetsV4::BasicFilter
The default filter associated with a sheet.
-
#charts ⇒ Array<Google::Apis::SheetsV4::EmbeddedChart>
The specifications of every chart on this sheet.
-
#column_groups ⇒ Array<Google::Apis::SheetsV4::DimensionGroup>
All column groups on this sheet, ordered by increasing range start index, then by group depth.
-
#conditional_formats ⇒ Array<Google::Apis::SheetsV4::ConditionalFormatRule>
The conditional format rules in this sheet.
-
#data ⇒ Array<Google::Apis::SheetsV4::GridData>
Data in the grid, if this is a grid sheet.
-
#developer_metadata ⇒ Array<Google::Apis::SheetsV4::DeveloperMetadata>
The developer metadata associated with a sheet.
-
#filter_views ⇒ Array<Google::Apis::SheetsV4::FilterView>
The filter views in this sheet.
-
#merges ⇒ Array<Google::Apis::SheetsV4::GridRange>
The ranges that are merged together.
-
#properties ⇒ Google::Apis::SheetsV4::SheetProperties
Properties of a sheet.
-
#protected_ranges ⇒ Array<Google::Apis::SheetsV4::ProtectedRange>
The protected ranges in this sheet.
-
#row_groups ⇒ Array<Google::Apis::SheetsV4::DimensionGroup>
All row groups on this sheet, ordered by increasing range start index, then by group depth.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Sheet
constructor
A new instance of Sheet.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Sheet
Returns a new instance of Sheet
7632 7633 7634 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 7632 def initialize(**args) update!(**args) end |
Instance Attribute Details
#banded_ranges ⇒ Array<Google::Apis::SheetsV4::BandedRange>
The banded (alternating colors) ranges on this sheet.
Corresponds to the JSON property bandedRanges
7566 7567 7568 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 7566 def banded_ranges @banded_ranges end |
#basic_filter ⇒ Google::Apis::SheetsV4::BasicFilter
The default filter associated with a sheet.
Corresponds to the JSON property basicFilter
7571 7572 7573 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 7571 def basic_filter @basic_filter end |
#charts ⇒ Array<Google::Apis::SheetsV4::EmbeddedChart>
The specifications of every chart on this sheet.
Corresponds to the JSON property charts
7576 7577 7578 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 7576 def charts @charts end |
#column_groups ⇒ Array<Google::Apis::SheetsV4::DimensionGroup>
All column groups on this sheet, ordered by increasing range start index,
then by group depth.
Corresponds to the JSON property columnGroups
7582 7583 7584 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 7582 def column_groups @column_groups end |
#conditional_formats ⇒ Array<Google::Apis::SheetsV4::ConditionalFormatRule>
The conditional format rules in this sheet.
Corresponds to the JSON property conditionalFormats
7587 7588 7589 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 7587 def conditional_formats @conditional_formats end |
#data ⇒ Array<Google::Apis::SheetsV4::GridData>
Data in the grid, if this is a grid sheet.
The number of GridData objects returned is dependent on the number of
ranges requested on this sheet. For example, if this is representing
Sheet1, and the spreadsheet was requested with ranges
Sheet1!A1:C10 and Sheet1!D15:E20, then the first GridData will have a
startRow/startColumn of 0,
while the second one will have startRow 14 (zero-based row 15),
and startColumn 3 (zero-based column D).
Corresponds to the JSON property data
7599 7600 7601 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 7599 def data @data end |
#developer_metadata ⇒ Array<Google::Apis::SheetsV4::DeveloperMetadata>
The developer metadata associated with a sheet.
Corresponds to the JSON property developerMetadata
7604 7605 7606 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 7604 def @developer_metadata end |
#filter_views ⇒ Array<Google::Apis::SheetsV4::FilterView>
The filter views in this sheet.
Corresponds to the JSON property filterViews
7609 7610 7611 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 7609 def filter_views @filter_views end |
#merges ⇒ Array<Google::Apis::SheetsV4::GridRange>
The ranges that are merged together.
Corresponds to the JSON property merges
7614 7615 7616 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 7614 def merges @merges end |
#properties ⇒ Google::Apis::SheetsV4::SheetProperties
Properties of a sheet.
Corresponds to the JSON property properties
7619 7620 7621 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 7619 def properties @properties end |
#protected_ranges ⇒ Array<Google::Apis::SheetsV4::ProtectedRange>
The protected ranges in this sheet.
Corresponds to the JSON property protectedRanges
7624 7625 7626 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 7624 def protected_ranges @protected_ranges end |
#row_groups ⇒ Array<Google::Apis::SheetsV4::DimensionGroup>
All row groups on this sheet, ordered by increasing range start index, then
by group depth.
Corresponds to the JSON property rowGroups
7630 7631 7632 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 7630 def row_groups @row_groups end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 7637 def update!(**args) @banded_ranges = args[:banded_ranges] if args.key?(:banded_ranges) @basic_filter = args[:basic_filter] if args.key?(:basic_filter) @charts = args[:charts] if args.key?(:charts) @column_groups = args[:column_groups] if args.key?(:column_groups) @conditional_formats = args[:conditional_formats] if args.key?(:conditional_formats) @data = args[:data] if args.key?(:data) @developer_metadata = args[:developer_metadata] if args.key?(:developer_metadata) @filter_views = args[:filter_views] if args.key?(:filter_views) @merges = args[:merges] if args.key?(:merges) @properties = args[:properties] if args.key?(:properties) @protected_ranges = args[:protected_ranges] if args.key?(:protected_ranges) @row_groups = args[:row_groups] if args.key?(:row_groups) end |