Class: Google::Apis::SlidesV1::ReplaceAllShapesWithSheetsChartRequest

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ReplaceAllShapesWithSheetsChartRequest

Returns a new instance of ReplaceAllShapesWithSheetsChartRequest



4136
4137
4138
# File 'generated/google/apis/slides_v1/classes.rb', line 4136

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

Instance Attribute Details

#chart_idFixnum

The ID of the specific chart in the Google Sheets spreadsheet. Corresponds to the JSON property chartId

Returns:

  • (Fixnum)


4125
4126
4127
# File 'generated/google/apis/slides_v1/classes.rb', line 4125

def chart_id
  @chart_id
end

#contains_textGoogle::Apis::SlidesV1::SubstringMatchCriteria

A criteria that matches a specific string of text in a shape or table. Corresponds to the JSON property containsText



4120
4121
4122
# File 'generated/google/apis/slides_v1/classes.rb', line 4120

def contains_text
  @contains_text
end

#linking_modeString

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

Returns:

  • (String)


4115
4116
4117
# File 'generated/google/apis/slides_v1/classes.rb', line 4115

def linking_mode
  @linking_mode
end

#page_object_idsArray<String>

If non-empty, limits the matches to page elements only on the given pages. Returns a 400 bad request error if given the page object ID of a notes page or a notes master, or if a page with that object ID doesn't exist in the presentation. Corresponds to the JSON property pageObjectIds

Returns:

  • (Array<String>)


4134
4135
4136
# File 'generated/google/apis/slides_v1/classes.rb', line 4134

def page_object_ids
  @page_object_ids
end

#spreadsheet_idString

The ID of the Google Sheets spreadsheet that contains the chart. Corresponds to the JSON property spreadsheetId

Returns:

  • (String)


4109
4110
4111
# File 'generated/google/apis/slides_v1/classes.rb', line 4109

def spreadsheet_id
  @spreadsheet_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4141
4142
4143
4144
4145
4146
4147
# File 'generated/google/apis/slides_v1/classes.rb', line 4141

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)
  @page_object_ids = args[:page_object_ids] if args.key?(:page_object_ids)
end