Class: Google::Apis::SheetsV4::Spreadsheet
- Inherits:
-
Object
- Object
- Google::Apis::SheetsV4::Spreadsheet
- 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
Resource that represents a spreadsheet.
Instance Attribute Summary collapse
-
#data_source_schedules ⇒ Array<Google::Apis::SheetsV4::DataSourceRefreshSchedule>
Output only.
-
#data_sources ⇒ Array<Google::Apis::SheetsV4::DataSource>
A list of external data sources connected with the spreadsheet.
-
#developer_metadata ⇒ Array<Google::Apis::SheetsV4::DeveloperMetadata>
The developer metadata associated with a spreadsheet.
-
#named_ranges ⇒ Array<Google::Apis::SheetsV4::NamedRange>
The named ranges defined in a spreadsheet.
-
#properties ⇒ Google::Apis::SheetsV4::SpreadsheetProperties
Properties of a spreadsheet.
-
#sheets ⇒ Array<Google::Apis::SheetsV4::Sheet>
The sheets that are part of a spreadsheet.
-
#spreadsheet_id ⇒ String
The ID of the spreadsheet.
-
#spreadsheet_url ⇒ String
The url of the spreadsheet.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Spreadsheet
constructor
A new instance of Spreadsheet.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Spreadsheet
Returns a new instance of Spreadsheet.
9455 9456 9457 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 9455 def initialize(**args) update!(**args) end |
Instance Attribute Details
#data_source_schedules ⇒ Array<Google::Apis::SheetsV4::DataSourceRefreshSchedule>
Output only. A list of data source refresh schedules.
Corresponds to the JSON property dataSourceSchedules
9418 9419 9420 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 9418 def data_source_schedules @data_source_schedules end |
#data_sources ⇒ Array<Google::Apis::SheetsV4::DataSource>
A list of external data sources connected with the spreadsheet.
Corresponds to the JSON property dataSources
9423 9424 9425 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 9423 def data_sources @data_sources end |
#developer_metadata ⇒ Array<Google::Apis::SheetsV4::DeveloperMetadata>
The developer metadata associated with a spreadsheet.
Corresponds to the JSON property developerMetadata
9428 9429 9430 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 9428 def @developer_metadata end |
#named_ranges ⇒ Array<Google::Apis::SheetsV4::NamedRange>
The named ranges defined in a spreadsheet.
Corresponds to the JSON property namedRanges
9433 9434 9435 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 9433 def named_ranges @named_ranges end |
#properties ⇒ Google::Apis::SheetsV4::SpreadsheetProperties
Properties of a spreadsheet.
Corresponds to the JSON property properties
9438 9439 9440 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 9438 def properties @properties end |
#sheets ⇒ Array<Google::Apis::SheetsV4::Sheet>
The sheets that are part of a spreadsheet.
Corresponds to the JSON property sheets
9443 9444 9445 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 9443 def sheets @sheets end |
#spreadsheet_id ⇒ String
The ID of the spreadsheet. This field is read-only.
Corresponds to the JSON property spreadsheetId
9448 9449 9450 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 9448 def spreadsheet_id @spreadsheet_id end |
#spreadsheet_url ⇒ String
The url of the spreadsheet. This field is read-only.
Corresponds to the JSON property spreadsheetUrl
9453 9454 9455 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 9453 def spreadsheet_url @spreadsheet_url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
9460 9461 9462 9463 9464 9465 9466 9467 9468 9469 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 9460 def update!(**args) @data_source_schedules = args[:data_source_schedules] if args.key?(:data_source_schedules) @data_sources = args[:data_sources] if args.key?(:data_sources) @developer_metadata = args[:developer_metadata] if args.key?(:developer_metadata) @named_ranges = args[:named_ranges] if args.key?(:named_ranges) @properties = args[:properties] if args.key?(:properties) @sheets = args[:sheets] if args.key?(:sheets) @spreadsheet_id = args[:spreadsheet_id] if args.key?(:spreadsheet_id) @spreadsheet_url = args[:spreadsheet_url] if args.key?(:spreadsheet_url) end |