Class: Google::Apis::SheetsV4::Spreadsheet

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

Resource that represents 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) ⇒ Spreadsheet

Returns a new instance of Spreadsheet



7988
7989
7990
# File 'generated/google/apis/sheets_v4/classes.rb', line 7988

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

Instance Attribute Details

#developer_metadataArray<Google::Apis::SheetsV4::DeveloperMetadata>

The developer metadata associated with a spreadsheet. Corresponds to the JSON property developerMetadata



7959
7960
7961
# File 'generated/google/apis/sheets_v4/classes.rb', line 7959

def 
  @developer_metadata
end

#named_rangesArray<Google::Apis::SheetsV4::NamedRange>

The named ranges defined in a spreadsheet. Corresponds to the JSON property namedRanges



7964
7965
7966
# File 'generated/google/apis/sheets_v4/classes.rb', line 7964

def named_ranges
  @named_ranges
end

#propertiesGoogle::Apis::SheetsV4::SpreadsheetProperties

Properties of a spreadsheet. Corresponds to the JSON property properties



7969
7970
7971
# File 'generated/google/apis/sheets_v4/classes.rb', line 7969

def properties
  @properties
end

#sheetsArray<Google::Apis::SheetsV4::Sheet>

The sheets that are part of a spreadsheet. Corresponds to the JSON property sheets

Returns:



7974
7975
7976
# File 'generated/google/apis/sheets_v4/classes.rb', line 7974

def sheets
  @sheets
end

#spreadsheet_idString

The ID of the spreadsheet. This field is read-only. Corresponds to the JSON property spreadsheetId

Returns:

  • (String)


7980
7981
7982
# File 'generated/google/apis/sheets_v4/classes.rb', line 7980

def spreadsheet_id
  @spreadsheet_id
end

#spreadsheet_urlString

The url of the spreadsheet. This field is read-only. Corresponds to the JSON property spreadsheetUrl

Returns:

  • (String)


7986
7987
7988
# File 'generated/google/apis/sheets_v4/classes.rb', line 7986

def spreadsheet_url
  @spreadsheet_url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7993
7994
7995
7996
7997
7998
7999
8000
# File 'generated/google/apis/sheets_v4/classes.rb', line 7993

def update!(**args)
  @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