Class: Google::Apis::SheetsV4::Spreadsheet
- Inherits:
-
Object
- Object
- Google::Apis::SheetsV4::Spreadsheet
- 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
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.
9308 9309 9310 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 9308 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
9271 9272 9273 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 9271 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
9276 9277 9278 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 9276 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
9281 9282 9283 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 9281 def @developer_metadata end |
#named_ranges ⇒ Array<Google::Apis::SheetsV4::NamedRange>
The named ranges defined in a spreadsheet.
Corresponds to the JSON property namedRanges
9286 9287 9288 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 9286 def named_ranges @named_ranges end |
#properties ⇒ Google::Apis::SheetsV4::SpreadsheetProperties
Properties of a spreadsheet.
Corresponds to the JSON property properties
9291 9292 9293 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 9291 def properties @properties end |
#sheets ⇒ Array<Google::Apis::SheetsV4::Sheet>
The sheets that are part of a spreadsheet.
Corresponds to the JSON property sheets
9296 9297 9298 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 9296 def sheets @sheets end |
#spreadsheet_id ⇒ String
The ID of the spreadsheet. This field is read-only.
Corresponds to the JSON property spreadsheetId
9301 9302 9303 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 9301 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
9306 9307 9308 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 9306 def spreadsheet_url @spreadsheet_url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
9313 9314 9315 9316 9317 9318 9319 9320 9321 9322 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 9313 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 |