Class: Google::Apis::SheetsV4::BatchUpdateValuesByDataFilterResponse

Inherits:
Object
  • Object
show all
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

The response when updating a range of values in a spreadsheet.

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

Returns a new instance of BatchUpdateValuesByDataFilterResponse.



2093
2094
2095
# File 'generated/google/apis/sheets_v4/classes.rb', line 2093

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

Instance Attribute Details

#responsesArray<Google::Apis::SheetsV4::UpdateValuesByDataFilterResponse>

The response for each range updated. Corresponds to the JSON property responses



2064
2065
2066
# File 'generated/google/apis/sheets_v4/classes.rb', line 2064

def responses
  @responses
end

#spreadsheet_idString

The spreadsheet the updates were applied to. Corresponds to the JSON property spreadsheetId

Returns:

  • (String)


2069
2070
2071
# File 'generated/google/apis/sheets_v4/classes.rb', line 2069

def spreadsheet_id
  @spreadsheet_id
end

#total_updated_cellsFixnum

The total number of cells updated. Corresponds to the JSON property totalUpdatedCells

Returns:

  • (Fixnum)


2074
2075
2076
# File 'generated/google/apis/sheets_v4/classes.rb', line 2074

def total_updated_cells
  @total_updated_cells
end

#total_updated_columnsFixnum

The total number of columns where at least one cell in the column was updated. Corresponds to the JSON property totalUpdatedColumns

Returns:

  • (Fixnum)


2080
2081
2082
# File 'generated/google/apis/sheets_v4/classes.rb', line 2080

def total_updated_columns
  @total_updated_columns
end

#total_updated_rowsFixnum

The total number of rows where at least one cell in the row was updated. Corresponds to the JSON property totalUpdatedRows

Returns:

  • (Fixnum)


2085
2086
2087
# File 'generated/google/apis/sheets_v4/classes.rb', line 2085

def total_updated_rows
  @total_updated_rows
end

#total_updated_sheetsFixnum

The total number of sheets where at least one cell in the sheet was updated. Corresponds to the JSON property totalUpdatedSheets

Returns:

  • (Fixnum)


2091
2092
2093
# File 'generated/google/apis/sheets_v4/classes.rb', line 2091

def total_updated_sheets
  @total_updated_sheets
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2098
2099
2100
2101
2102
2103
2104
2105
# File 'generated/google/apis/sheets_v4/classes.rb', line 2098

def update!(**args)
  @responses = args[:responses] if args.key?(:responses)
  @spreadsheet_id = args[:spreadsheet_id] if args.key?(:spreadsheet_id)
  @total_updated_cells = args[:total_updated_cells] if args.key?(:total_updated_cells)
  @total_updated_columns = args[:total_updated_columns] if args.key?(:total_updated_columns)
  @total_updated_rows = args[:total_updated_rows] if args.key?(:total_updated_rows)
  @total_updated_sheets = args[:total_updated_sheets] if args.key?(:total_updated_sheets)
end