Class: Google::Apis::SlidesV1::ReplaceAllShapesWithSheetsChartRequest
- Inherits:
-
Object
- Object
- Google::Apis::SlidesV1::ReplaceAllShapesWithSheetsChartRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/slides_v1/classes.rb,
generated/google/apis/slides_v1/representations.rb,
generated/google/apis/slides_v1/representations.rb
Overview
Replaces all shapes that match the given criteria with the provided Google Sheets chart. The chart will be scaled and centered to fit within the bounds of the original shape. NOTE: Replacing shapes with a chart requires at least one of the spreadsheets.readonly, spreadsheets, drive.readonly, or drive OAuth scopes.
Instance Attribute Summary collapse
-
#chart_id ⇒ Fixnum
The ID of the specific chart in the Google Sheets spreadsheet.
-
#contains_text ⇒ Google::Apis::SlidesV1::SubstringMatchCriteria
A criteria that matches a specific string of text in a shape or table.
-
#linking_mode ⇒ String
The mode with which the chart is linked to the source spreadsheet.
-
#spreadsheet_id ⇒ String
The ID of the Google Sheets spreadsheet that contains the chart.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ReplaceAllShapesWithSheetsChartRequest
constructor
A new instance of ReplaceAllShapesWithSheetsChartRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ReplaceAllShapesWithSheetsChartRequest
Returns a new instance of ReplaceAllShapesWithSheetsChartRequest
2309 2310 2311 |
# File 'generated/google/apis/slides_v1/classes.rb', line 2309 def initialize(**args) update!(**args) end |
Instance Attribute Details
#chart_id ⇒ Fixnum
The ID of the specific chart in the Google Sheets spreadsheet.
Corresponds to the JSON property chartId
2307 2308 2309 |
# File 'generated/google/apis/slides_v1/classes.rb', line 2307 def chart_id @chart_id end |
#contains_text ⇒ Google::Apis::SlidesV1::SubstringMatchCriteria
A criteria that matches a specific string of text in a shape or table.
Corresponds to the JSON property containsText
2302 2303 2304 |
# File 'generated/google/apis/slides_v1/classes.rb', line 2302 def contains_text @contains_text end |
#linking_mode ⇒ String
The mode with which the chart is linked to the source spreadsheet. When
not specified, the chart will be an image that is not linked.
Corresponds to the JSON property linkingMode
2297 2298 2299 |
# File 'generated/google/apis/slides_v1/classes.rb', line 2297 def linking_mode @linking_mode end |
#spreadsheet_id ⇒ String
The ID of the Google Sheets spreadsheet that contains the chart.
Corresponds to the JSON property spreadsheetId
2291 2292 2293 |
# File 'generated/google/apis/slides_v1/classes.rb', line 2291 def spreadsheet_id @spreadsheet_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2314 2315 2316 2317 2318 2319 |
# File 'generated/google/apis/slides_v1/classes.rb', line 2314 def update!(**args) @spreadsheet_id = args[:spreadsheet_id] if args.key?(:spreadsheet_id) @linking_mode = args[:linking_mode] if args.key?(:linking_mode) @contains_text = args[:contains_text] if args.key?(:contains_text) @chart_id = args[:chart_id] if args.key?(:chart_id) end |