class Google::Apis::SlidesV1::CreateSheetsChartRequest

Creates an embedded Google Sheets chart. NOTE: Chart creation requires at least one of the spreadsheets.readonly, spreadsheets, drive.readonly, drive. file, or drive OAuth scopes.

Attributes

chart_id[RW]

The ID of the specific chart in the Google Sheets spreadsheet. Corresponds to the JSON property `chartId` @return [Fixnum]

element_properties[RW]

Common properties for a page element. Note: When you initially create a PageElement, the API may modify the values of both `size` and `transform`, but the visual size will be unchanged. Corresponds to the JSON property `elementProperties` @return [Google::Apis::SlidesV1::PageElementProperties]

linking_mode[RW]

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` @return [String]

object_id_prop[RW]

A user-supplied object ID. If specified, the ID must be unique among all pages and page elements in the presentation. The ID should start with a word character [a-zA-Z0-9_] and then followed by any number of the following characters [a-zA-Z0-9_-:]. The length of the ID should not be less than 5 or greater than 50. If empty, a unique identifier will be generated. Corresponds to the JSON property `objectId` @return [String]

spreadsheet_id[RW]

The ID of the Google Sheets spreadsheet that contains the chart. You might need to add a resource key to the HTTP header for a subset of old files. For more information, see [Access link-shared files using resource keys](https:// developers.google.com/drive/api/v3/resource-keys). Corresponds to the JSON property `spreadsheetId` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/slides_v1/classes.rb, line 600
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/slides_v1/classes.rb, line 605
def update!(**args)
  @chart_id = args[:chart_id] if args.key?(:chart_id)
  @element_properties = args[:element_properties] if args.key?(:element_properties)
  @linking_mode = args[:linking_mode] if args.key?(:linking_mode)
  @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
  @spreadsheet_id = args[:spreadsheet_id] if args.key?(:spreadsheet_id)
end