Class: Google::Apis::SheetsV4::SpreadsheetProperties
- Inherits:
-
Object
- Object
- Google::Apis::SheetsV4::SpreadsheetProperties
- 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
Properties of a spreadsheet.
Instance Attribute Summary collapse
-
#auto_recalc ⇒ String
The amount of time to wait before volatile functions are recalculated.
-
#default_format ⇒ Google::Apis::SheetsV4::CellFormat
The format of a cell.
-
#import_functions_external_url_access_allowed ⇒ Boolean
(also: #import_functions_external_url_access_allowed?)
Whether to allow external URL access for image and import functions.
-
#iterative_calculation_settings ⇒ Google::Apis::SheetsV4::IterativeCalculationSettings
Settings to control how circular dependencies are resolved with iterative calculation.
-
#locale ⇒ String
The locale of the spreadsheet in one of the following formats: * an ISO 639-1 language code such as
en
* an ISO 639-2 language code such asfil
, if no 639-1 code exists * a combination of the ISO language code and country code, such asen_US
Note: when updating this field, not all locales/languages are supported. -
#spreadsheet_theme ⇒ Google::Apis::SheetsV4::SpreadsheetTheme
Represents spreadsheet theme Corresponds to the JSON property
spreadsheetTheme
. -
#time_zone ⇒ String
The time zone of the spreadsheet, in CLDR format such as
America/New_York
. -
#title ⇒ String
The title of the spreadsheet.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SpreadsheetProperties
constructor
A new instance of SpreadsheetProperties.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SpreadsheetProperties
Returns a new instance of SpreadsheetProperties.
9569 9570 9571 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 9569 def initialize(**args) update!(**args) end |
Instance Attribute Details
#auto_recalc ⇒ String
The amount of time to wait before volatile functions are recalculated.
Corresponds to the JSON property autoRecalc
9522 9523 9524 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 9522 def auto_recalc @auto_recalc end |
#default_format ⇒ Google::Apis::SheetsV4::CellFormat
The format of a cell.
Corresponds to the JSON property defaultFormat
9527 9528 9529 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 9527 def default_format @default_format end |
#import_functions_external_url_access_allowed ⇒ Boolean Also known as: import_functions_external_url_access_allowed?
Whether to allow external URL access for image and import functions. Read only
when true. When false, you can set to true. This value will be bypassed and
always return true if the admin has enabled the allowlisting feature.
Corresponds to the JSON property importFunctionsExternalUrlAccessAllowed
9534 9535 9536 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 9534 def import_functions_external_url_access_allowed @import_functions_external_url_access_allowed end |
#iterative_calculation_settings ⇒ Google::Apis::SheetsV4::IterativeCalculationSettings
Settings to control how circular dependencies are resolved with iterative
calculation.
Corresponds to the JSON property iterativeCalculationSettings
9541 9542 9543 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 9541 def iterative_calculation_settings @iterative_calculation_settings end |
#locale ⇒ String
The locale of the spreadsheet in one of the following formats: * an ISO 639-1
language code such as en
* an ISO 639-2 language code such as fil
, if no
639-1 code exists * a combination of the ISO language code and country code,
such as en_US
Note: when updating this field, not all locales/languages are
supported.
Corresponds to the JSON property locale
9550 9551 9552 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 9550 def locale @locale end |
#spreadsheet_theme ⇒ Google::Apis::SheetsV4::SpreadsheetTheme
Represents spreadsheet theme
Corresponds to the JSON property spreadsheetTheme
9555 9556 9557 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 9555 def spreadsheet_theme @spreadsheet_theme end |
#time_zone ⇒ String
The time zone of the spreadsheet, in CLDR format such as America/New_York
.
If the time zone isn't recognized, this may be a custom time zone such as GMT-
07:00
.
Corresponds to the JSON property timeZone
9562 9563 9564 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 9562 def time_zone @time_zone end |
#title ⇒ String
The title of the spreadsheet.
Corresponds to the JSON property title
9567 9568 9569 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 9567 def title @title end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
9574 9575 9576 9577 9578 9579 9580 9581 9582 9583 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 9574 def update!(**args) @auto_recalc = args[:auto_recalc] if args.key?(:auto_recalc) @default_format = args[:default_format] if args.key?(:default_format) @import_functions_external_url_access_allowed = args[:import_functions_external_url_access_allowed] if args.key?(:import_functions_external_url_access_allowed) @iterative_calculation_settings = args[:iterative_calculation_settings] if args.key?(:iterative_calculation_settings) @locale = args[:locale] if args.key?(:locale) @spreadsheet_theme = args[:spreadsheet_theme] if args.key?(:spreadsheet_theme) @time_zone = args[:time_zone] if args.key?(:time_zone) @title = args[:title] if args.key?(:title) end |