Class: Google::Apis::SheetsV4::DataSourceObjectReference

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/sheets_v4/classes.rb,
lib/google/apis/sheets_v4/representations.rb,
lib/google/apis/sheets_v4/representations.rb

Overview

Reference to a data source object.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DataSourceObjectReference

Returns a new instance of DataSourceObjectReference.



4167
4168
4169
# File 'lib/google/apis/sheets_v4/classes.rb', line 4167

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

Instance Attribute Details

#chart_idFixnum

References to a data source chart. Corresponds to the JSON property chartId

Returns:



4145
4146
4147
# File 'lib/google/apis/sheets_v4/classes.rb', line 4145

def chart_id
  @chart_id
end

#data_source_formula_cellGoogle::Apis::SheetsV4::GridCoordinate

A coordinate in a sheet. All indexes are zero-based. Corresponds to the JSON property dataSourceFormulaCell

Returns:



4150
4151
4152
# File 'lib/google/apis/sheets_v4/classes.rb', line 4150

def data_source_formula_cell
  @data_source_formula_cell
end

#data_source_pivot_table_anchor_cellGoogle::Apis::SheetsV4::GridCoordinate

A coordinate in a sheet. All indexes are zero-based. Corresponds to the JSON property dataSourcePivotTableAnchorCell

Returns:



4155
4156
4157
# File 'lib/google/apis/sheets_v4/classes.rb', line 4155

def data_source_pivot_table_anchor_cell
  @data_source_pivot_table_anchor_cell
end

#data_source_table_anchor_cellGoogle::Apis::SheetsV4::GridCoordinate

A coordinate in a sheet. All indexes are zero-based. Corresponds to the JSON property dataSourceTableAnchorCell

Returns:



4160
4161
4162
# File 'lib/google/apis/sheets_v4/classes.rb', line 4160

def data_source_table_anchor_cell
  @data_source_table_anchor_cell
end

#sheet_idString

References to a DATA_SOURCE sheet. Corresponds to the JSON property sheetId

Returns:



4165
4166
4167
# File 'lib/google/apis/sheets_v4/classes.rb', line 4165

def sheet_id
  @sheet_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4172
4173
4174
4175
4176
4177
4178
# File 'lib/google/apis/sheets_v4/classes.rb', line 4172

def update!(**args)
  @chart_id = args[:chart_id] if args.key?(:chart_id)
  @data_source_formula_cell = args[:data_source_formula_cell] if args.key?(:data_source_formula_cell)
  @data_source_pivot_table_anchor_cell = args[:data_source_pivot_table_anchor_cell] if args.key?(:data_source_pivot_table_anchor_cell)
  @data_source_table_anchor_cell = args[:data_source_table_anchor_cell] if args.key?(:data_source_table_anchor_cell)
  @sheet_id = args[:sheet_id] if args.key?(:sheet_id)
end