Class: Google::Apis::SlidesV1::CreateSheetsChartRequest
- Inherits:
-
Object
- Object
- Google::Apis::SlidesV1::CreateSheetsChartRequest
- 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
Creates an embedded Google Sheets chart. NOTE: Chart creation 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.
-
#element_properties ⇒ Google::Apis::SlidesV1::PageElementProperties
Common properties for a page element.
-
#linking_mode ⇒ String
The mode with which the chart is linked to the source spreadsheet.
-
#object_id_prop ⇒ String
A user-supplied object ID.
-
#spreadsheet_id ⇒ String
The ID of the Google Sheets spreadsheet that contains the chart.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CreateSheetsChartRequest
constructor
A new instance of CreateSheetsChartRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ CreateSheetsChartRequest
Returns a new instance of CreateSheetsChartRequest
1047 1048 1049 |
# File 'generated/google/apis/slides_v1/classes.rb', line 1047 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
1035 1036 1037 |
# File 'generated/google/apis/slides_v1/classes.rb', line 1035 def chart_id @chart_id end |
#element_properties ⇒ Google::Apis::SlidesV1::PageElementProperties
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
1019 1020 1021 |
# File 'generated/google/apis/slides_v1/classes.rb', line 1019 def element_properties @element_properties 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
1030 1031 1032 |
# File 'generated/google/apis/slides_v1/classes.rb', line 1030 def linking_mode @linking_mode end |
#object_id_prop ⇒ String
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
1045 1046 1047 |
# File 'generated/google/apis/slides_v1/classes.rb', line 1045 def object_id_prop @object_id_prop end |
#spreadsheet_id ⇒ String
The ID of the Google Sheets spreadsheet that contains the chart.
Corresponds to the JSON property spreadsheetId
1024 1025 1026 |
# File 'generated/google/apis/slides_v1/classes.rb', line 1024 def spreadsheet_id @spreadsheet_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1052 1053 1054 1055 1056 1057 1058 |
# File 'generated/google/apis/slides_v1/classes.rb', line 1052 def update!(**args) @element_properties = args[:element_properties] if args.key?(:element_properties) @spreadsheet_id = args[:spreadsheet_id] if args.key?(:spreadsheet_id) @linking_mode = args[:linking_mode] if args.key?(:linking_mode) @chart_id = args[:chart_id] if args.key?(:chart_id) @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop) end |