Class: Google::Apis::SlidesV1::Request
- Inherits:
-
Object
- Object
- Google::Apis::SlidesV1::Request
- 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
A single kind of update to apply to a presentation.
Instance Attribute Summary collapse
-
#create_image ⇒ Google::Apis::SlidesV1::CreateImageRequest
Creates an image.
-
#create_line ⇒ Google::Apis::SlidesV1::CreateLineRequest
Creates a line.
-
#create_paragraph_bullets ⇒ Google::Apis::SlidesV1::CreateParagraphBulletsRequest
Creates bullets for all of the paragraphs that overlap with the given text index range.
-
#create_shape ⇒ Google::Apis::SlidesV1::CreateShapeRequest
Creates a new shape.
-
#create_sheets_chart ⇒ Google::Apis::SlidesV1::CreateSheetsChartRequest
Creates an embedded Google Sheets chart.
-
#create_slide ⇒ Google::Apis::SlidesV1::CreateSlideRequest
Creates a new slide.
-
#create_table ⇒ Google::Apis::SlidesV1::CreateTableRequest
Creates a new table.
-
#create_video ⇒ Google::Apis::SlidesV1::CreateVideoRequest
Creates a video.
-
#delete_object ⇒ Google::Apis::SlidesV1::DeleteObjectRequest
Deletes an object, either pages or page elements, from the presentation.
-
#delete_paragraph_bullets ⇒ Google::Apis::SlidesV1::DeleteParagraphBulletsRequest
Deletes bullets from all of the paragraphs that overlap with the given text index range.
-
#delete_table_column ⇒ Google::Apis::SlidesV1::DeleteTableColumnRequest
Deletes a column from a table.
-
#delete_table_row ⇒ Google::Apis::SlidesV1::DeleteTableRowRequest
Deletes a row from a table.
-
#delete_text ⇒ Google::Apis::SlidesV1::DeleteTextRequest
Deletes text from a shape or a table cell.
-
#duplicate_object ⇒ Google::Apis::SlidesV1::DuplicateObjectRequest
Duplicates a slide or page element.
-
#group_objects ⇒ Google::Apis::SlidesV1::GroupObjectsRequest
Groups objects to create an object group.
-
#insert_table_columns ⇒ Google::Apis::SlidesV1::InsertTableColumnsRequest
Inserts columns into a table.
-
#insert_table_rows ⇒ Google::Apis::SlidesV1::InsertTableRowsRequest
Inserts rows into a table.
-
#insert_text ⇒ Google::Apis::SlidesV1::InsertTextRequest
Inserts text into a shape or a table cell.
-
#merge_table_cells ⇒ Google::Apis::SlidesV1::MergeTableCellsRequest
Merges cells in a Table.
-
#refresh_sheets_chart ⇒ Google::Apis::SlidesV1::RefreshSheetsChartRequest
Refreshes an embedded Google Sheets chart by replacing it with the latest version of the chart from Google Sheets.
-
#replace_all_shapes_with_image ⇒ Google::Apis::SlidesV1::ReplaceAllShapesWithImageRequest
Replaces all shapes that match the given criteria with the provided image.
-
#replace_all_shapes_with_sheets_chart ⇒ Google::Apis::SlidesV1::ReplaceAllShapesWithSheetsChartRequest
Replaces all shapes that match the given criteria with the provided Google Sheets chart.
-
#replace_all_text ⇒ Google::Apis::SlidesV1::ReplaceAllTextRequest
Replaces all instances of text matching a criteria with replace text.
-
#replace_image ⇒ Google::Apis::SlidesV1::ReplaceImageRequest
Replaces an existing image with a new image.
-
#ungroup_objects ⇒ Google::Apis::SlidesV1::UngroupObjectsRequest
Ungroups objects, such as groups.
-
#unmerge_table_cells ⇒ Google::Apis::SlidesV1::UnmergeTableCellsRequest
Unmerges cells in a Table.
-
#update_image_properties ⇒ Google::Apis::SlidesV1::UpdateImagePropertiesRequest
Update the properties of an Image.
-
#update_line_properties ⇒ Google::Apis::SlidesV1::UpdateLinePropertiesRequest
Updates the properties of a Line.
-
#update_page_element_alt_text ⇒ Google::Apis::SlidesV1::UpdatePageElementAltTextRequest
Updates the alt text title and/or description of a page element.
-
#update_page_element_transform ⇒ Google::Apis::SlidesV1::UpdatePageElementTransformRequest
Updates the transform of a page element.
-
#update_page_properties ⇒ Google::Apis::SlidesV1::UpdatePagePropertiesRequest
Updates the properties of a Page.
-
#update_paragraph_style ⇒ Google::Apis::SlidesV1::UpdateParagraphStyleRequest
Updates the styling for all of the paragraphs within a Shape or Table that overlap with the given text index range.
-
#update_shape_properties ⇒ Google::Apis::SlidesV1::UpdateShapePropertiesRequest
Update the properties of a Shape.
-
#update_slides_position ⇒ Google::Apis::SlidesV1::UpdateSlidesPositionRequest
Updates the position of slides in the presentation.
-
#update_table_border_properties ⇒ Google::Apis::SlidesV1::UpdateTableBorderPropertiesRequest
Updates the properties of the table borders in a Table.
-
#update_table_cell_properties ⇒ Google::Apis::SlidesV1::UpdateTableCellPropertiesRequest
Update the properties of a TableCell.
-
#update_table_column_properties ⇒ Google::Apis::SlidesV1::UpdateTableColumnPropertiesRequest
Updates the properties of a Table column.
-
#update_table_row_properties ⇒ Google::Apis::SlidesV1::UpdateTableRowPropertiesRequest
Updates the properties of a Table row.
-
#update_text_style ⇒ Google::Apis::SlidesV1::UpdateTextStyleRequest
Update the styling of text in a Shape or Table.
-
#update_video_properties ⇒ Google::Apis::SlidesV1::UpdateVideoPropertiesRequest
Update the properties of a Video.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Request
constructor
A new instance of Request.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Request
Returns a new instance of Request
3051 3052 3053 |
# File 'generated/google/apis/slides_v1/classes.rb', line 3051 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_image ⇒ Google::Apis::SlidesV1::CreateImageRequest
Creates an image.
Corresponds to the JSON property createImage
2820 2821 2822 |
# File 'generated/google/apis/slides_v1/classes.rb', line 2820 def create_image @create_image end |
#create_line ⇒ Google::Apis::SlidesV1::CreateLineRequest
Creates a line.
Corresponds to the JSON property createLine
2825 2826 2827 |
# File 'generated/google/apis/slides_v1/classes.rb', line 2825 def create_line @create_line end |
#create_paragraph_bullets ⇒ Google::Apis::SlidesV1::CreateParagraphBulletsRequest
Creates bullets for all of the paragraphs that overlap with the given
text index range.
The nesting level of each paragraph will be determined by counting leading
tabs in front of each paragraph. To avoid excess space between the bullet and
the corresponding paragraph, these leading tabs are removed by this request.
This may change the indices of parts of the text.
If the paragraph immediately before paragraphs being updated is in a list
with a matching preset, the paragraphs being updated are added to that
preceding list.
Corresponds to the JSON property createParagraphBullets
2838 2839 2840 |
# File 'generated/google/apis/slides_v1/classes.rb', line 2838 def create_paragraph_bullets @create_paragraph_bullets end |
#create_shape ⇒ Google::Apis::SlidesV1::CreateShapeRequest
Creates a new shape.
Corresponds to the JSON property createShape
2843 2844 2845 |
# File 'generated/google/apis/slides_v1/classes.rb', line 2843 def create_shape @create_shape end |
#create_sheets_chart ⇒ 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.
Corresponds to the JSON property createSheetsChart
2850 2851 2852 |
# File 'generated/google/apis/slides_v1/classes.rb', line 2850 def create_sheets_chart @create_sheets_chart end |
#create_slide ⇒ Google::Apis::SlidesV1::CreateSlideRequest
Creates a new slide.
Corresponds to the JSON property createSlide
2855 2856 2857 |
# File 'generated/google/apis/slides_v1/classes.rb', line 2855 def @create_slide end |
#create_table ⇒ Google::Apis::SlidesV1::CreateTableRequest
Creates a new table.
Corresponds to the JSON property createTable
2860 2861 2862 |
# File 'generated/google/apis/slides_v1/classes.rb', line 2860 def create_table @create_table end |
#create_video ⇒ Google::Apis::SlidesV1::CreateVideoRequest
Creates a video.
Corresponds to the JSON property createVideo
2865 2866 2867 |
# File 'generated/google/apis/slides_v1/classes.rb', line 2865 def create_video @create_video end |
#delete_object ⇒ Google::Apis::SlidesV1::DeleteObjectRequest
Deletes an object, either pages or
page elements, from the
presentation.
Corresponds to the JSON property deleteObject
2872 2873 2874 |
# File 'generated/google/apis/slides_v1/classes.rb', line 2872 def delete_object @delete_object end |
#delete_paragraph_bullets ⇒ Google::Apis::SlidesV1::DeleteParagraphBulletsRequest
Deletes bullets from all of the paragraphs that overlap with the given text
index range.
The nesting level of each paragraph will be visually preserved by adding
indent to the start of the corresponding paragraph.
Corresponds to the JSON property deleteParagraphBullets
2880 2881 2882 |
# File 'generated/google/apis/slides_v1/classes.rb', line 2880 def delete_paragraph_bullets @delete_paragraph_bullets end |
#delete_table_column ⇒ Google::Apis::SlidesV1::DeleteTableColumnRequest
Deletes a column from a table.
Corresponds to the JSON property deleteTableColumn
2885 2886 2887 |
# File 'generated/google/apis/slides_v1/classes.rb', line 2885 def delete_table_column @delete_table_column end |
#delete_table_row ⇒ Google::Apis::SlidesV1::DeleteTableRowRequest
Deletes a row from a table.
Corresponds to the JSON property deleteTableRow
2890 2891 2892 |
# File 'generated/google/apis/slides_v1/classes.rb', line 2890 def delete_table_row @delete_table_row end |
#delete_text ⇒ Google::Apis::SlidesV1::DeleteTextRequest
Deletes text from a shape or a table cell.
Corresponds to the JSON property deleteText
2895 2896 2897 |
# File 'generated/google/apis/slides_v1/classes.rb', line 2895 def delete_text @delete_text end |
#duplicate_object ⇒ Google::Apis::SlidesV1::DuplicateObjectRequest
Duplicates a slide or page element.
When duplicating a slide, the duplicate slide will be created immediately
following the specified slide. When duplicating a page element, the duplicate
will be placed on the same page at the same position as the original.
Corresponds to the JSON property duplicateObject
2903 2904 2905 |
# File 'generated/google/apis/slides_v1/classes.rb', line 2903 def duplicate_object @duplicate_object end |
#group_objects ⇒ Google::Apis::SlidesV1::GroupObjectsRequest
Groups objects to create an object group. For example, groups PageElements to
create a Group on the same page as all the children.
Corresponds to the JSON property groupObjects
2909 2910 2911 |
# File 'generated/google/apis/slides_v1/classes.rb', line 2909 def group_objects @group_objects end |
#insert_table_columns ⇒ Google::Apis::SlidesV1::InsertTableColumnsRequest
Inserts columns into a table.
Other columns in the table will be resized to fit the new column.
Corresponds to the JSON property insertTableColumns
2915 2916 2917 |
# File 'generated/google/apis/slides_v1/classes.rb', line 2915 def insert_table_columns @insert_table_columns end |
#insert_table_rows ⇒ Google::Apis::SlidesV1::InsertTableRowsRequest
Inserts rows into a table.
Corresponds to the JSON property insertTableRows
2920 2921 2922 |
# File 'generated/google/apis/slides_v1/classes.rb', line 2920 def insert_table_rows @insert_table_rows end |
#insert_text ⇒ Google::Apis::SlidesV1::InsertTextRequest
Inserts text into a shape or a table cell.
Corresponds to the JSON property insertText
2925 2926 2927 |
# File 'generated/google/apis/slides_v1/classes.rb', line 2925 def insert_text @insert_text end |
#merge_table_cells ⇒ Google::Apis::SlidesV1::MergeTableCellsRequest
Merges cells in a Table.
Corresponds to the JSON property mergeTableCells
2930 2931 2932 |
# File 'generated/google/apis/slides_v1/classes.rb', line 2930 def merge_table_cells @merge_table_cells end |
#refresh_sheets_chart ⇒ Google::Apis::SlidesV1::RefreshSheetsChartRequest
Refreshes an embedded Google Sheets chart by replacing it with the latest
version of the chart from Google Sheets.
NOTE: Refreshing charts requires at least one of the spreadsheets.readonly,
spreadsheets, drive.readonly, or drive OAuth scopes.
Corresponds to the JSON property refreshSheetsChart
2938 2939 2940 |
# File 'generated/google/apis/slides_v1/classes.rb', line 2938 def refresh_sheets_chart @refresh_sheets_chart end |
#replace_all_shapes_with_image ⇒ Google::Apis::SlidesV1::ReplaceAllShapesWithImageRequest
Replaces all shapes that match the given criteria with the provided image.
Corresponds to the JSON property replaceAllShapesWithImage
2943 2944 2945 |
# File 'generated/google/apis/slides_v1/classes.rb', line 2943 def replace_all_shapes_with_image @replace_all_shapes_with_image end |
#replace_all_shapes_with_sheets_chart ⇒ Google::Apis::SlidesV1::ReplaceAllShapesWithSheetsChartRequest
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.
Corresponds to the JSON property replaceAllShapesWithSheetsChart
2952 2953 2954 |
# File 'generated/google/apis/slides_v1/classes.rb', line 2952 def replace_all_shapes_with_sheets_chart @replace_all_shapes_with_sheets_chart end |
#replace_all_text ⇒ Google::Apis::SlidesV1::ReplaceAllTextRequest
Replaces all instances of text matching a criteria with replace text.
Corresponds to the JSON property replaceAllText
2957 2958 2959 |
# File 'generated/google/apis/slides_v1/classes.rb', line 2957 def replace_all_text @replace_all_text end |
#replace_image ⇒ Google::Apis::SlidesV1::ReplaceImageRequest
Replaces an existing image with a new image.
Replacing an image removes some image effects from the existing image.
Corresponds to the JSON property replaceImage
2963 2964 2965 |
# File 'generated/google/apis/slides_v1/classes.rb', line 2963 def replace_image @replace_image end |
#ungroup_objects ⇒ Google::Apis::SlidesV1::UngroupObjectsRequest
Ungroups objects, such as groups.
Corresponds to the JSON property ungroupObjects
2968 2969 2970 |
# File 'generated/google/apis/slides_v1/classes.rb', line 2968 def ungroup_objects @ungroup_objects end |
#unmerge_table_cells ⇒ Google::Apis::SlidesV1::UnmergeTableCellsRequest
Unmerges cells in a Table.
Corresponds to the JSON property unmergeTableCells
2973 2974 2975 |
# File 'generated/google/apis/slides_v1/classes.rb', line 2973 def unmerge_table_cells @unmerge_table_cells end |
#update_image_properties ⇒ Google::Apis::SlidesV1::UpdateImagePropertiesRequest
Update the properties of an Image.
Corresponds to the JSON property updateImageProperties
2978 2979 2980 |
# File 'generated/google/apis/slides_v1/classes.rb', line 2978 def update_image_properties @update_image_properties end |
#update_line_properties ⇒ Google::Apis::SlidesV1::UpdateLinePropertiesRequest
Updates the properties of a Line.
Corresponds to the JSON property updateLineProperties
2983 2984 2985 |
# File 'generated/google/apis/slides_v1/classes.rb', line 2983 def update_line_properties @update_line_properties end |
#update_page_element_alt_text ⇒ Google::Apis::SlidesV1::UpdatePageElementAltTextRequest
Updates the alt text title and/or description of a
page element.
Corresponds to the JSON property updatePageElementAltText
2989 2990 2991 |
# File 'generated/google/apis/slides_v1/classes.rb', line 2989 def update_page_element_alt_text @update_page_element_alt_text end |
#update_page_element_transform ⇒ Google::Apis::SlidesV1::UpdatePageElementTransformRequest
Updates the transform of a page element.
Updating the transform of a group will change the absolute transform of the
page elements in that group, which can change their visual appearance. See
the documentation for PageElement.transform for more details.
Corresponds to the JSON property updatePageElementTransform
2997 2998 2999 |
# File 'generated/google/apis/slides_v1/classes.rb', line 2997 def update_page_element_transform @update_page_element_transform end |
#update_page_properties ⇒ Google::Apis::SlidesV1::UpdatePagePropertiesRequest
Updates the properties of a Page.
Corresponds to the JSON property updatePageProperties
3002 3003 3004 |
# File 'generated/google/apis/slides_v1/classes.rb', line 3002 def update_page_properties @update_page_properties end |
#update_paragraph_style ⇒ Google::Apis::SlidesV1::UpdateParagraphStyleRequest
Updates the styling for all of the paragraphs within a Shape or Table that
overlap with the given text index range.
Corresponds to the JSON property updateParagraphStyle
3008 3009 3010 |
# File 'generated/google/apis/slides_v1/classes.rb', line 3008 def update_paragraph_style @update_paragraph_style end |
#update_shape_properties ⇒ Google::Apis::SlidesV1::UpdateShapePropertiesRequest
Update the properties of a Shape.
Corresponds to the JSON property updateShapeProperties
3013 3014 3015 |
# File 'generated/google/apis/slides_v1/classes.rb', line 3013 def update_shape_properties @update_shape_properties end |
#update_slides_position ⇒ Google::Apis::SlidesV1::UpdateSlidesPositionRequest
Updates the position of slides in the presentation.
Corresponds to the JSON property updateSlidesPosition
3018 3019 3020 |
# File 'generated/google/apis/slides_v1/classes.rb', line 3018 def @update_slides_position end |
#update_table_border_properties ⇒ Google::Apis::SlidesV1::UpdateTableBorderPropertiesRequest
Updates the properties of the table borders in a Table.
Corresponds to the JSON property updateTableBorderProperties
3023 3024 3025 |
# File 'generated/google/apis/slides_v1/classes.rb', line 3023 def update_table_border_properties @update_table_border_properties end |
#update_table_cell_properties ⇒ Google::Apis::SlidesV1::UpdateTableCellPropertiesRequest
Update the properties of a TableCell.
Corresponds to the JSON property updateTableCellProperties
3028 3029 3030 |
# File 'generated/google/apis/slides_v1/classes.rb', line 3028 def update_table_cell_properties @update_table_cell_properties end |
#update_table_column_properties ⇒ Google::Apis::SlidesV1::UpdateTableColumnPropertiesRequest
Updates the properties of a Table column.
Corresponds to the JSON property updateTableColumnProperties
3033 3034 3035 |
# File 'generated/google/apis/slides_v1/classes.rb', line 3033 def update_table_column_properties @update_table_column_properties end |
#update_table_row_properties ⇒ Google::Apis::SlidesV1::UpdateTableRowPropertiesRequest
Updates the properties of a Table row.
Corresponds to the JSON property updateTableRowProperties
3038 3039 3040 |
# File 'generated/google/apis/slides_v1/classes.rb', line 3038 def update_table_row_properties @update_table_row_properties end |
#update_text_style ⇒ Google::Apis::SlidesV1::UpdateTextStyleRequest
Update the styling of text in a Shape or
Table.
Corresponds to the JSON property updateTextStyle
3044 3045 3046 |
# File 'generated/google/apis/slides_v1/classes.rb', line 3044 def update_text_style @update_text_style end |
#update_video_properties ⇒ Google::Apis::SlidesV1::UpdateVideoPropertiesRequest
Update the properties of a Video.
Corresponds to the JSON property updateVideoProperties
3049 3050 3051 |
# File 'generated/google/apis/slides_v1/classes.rb', line 3049 def update_video_properties @update_video_properties end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 |
# File 'generated/google/apis/slides_v1/classes.rb', line 3056 def update!(**args) @create_image = args[:create_image] if args.key?(:create_image) @create_line = args[:create_line] if args.key?(:create_line) @create_paragraph_bullets = args[:create_paragraph_bullets] if args.key?(:create_paragraph_bullets) @create_shape = args[:create_shape] if args.key?(:create_shape) @create_sheets_chart = args[:create_sheets_chart] if args.key?(:create_sheets_chart) @create_slide = args[:create_slide] if args.key?(:create_slide) @create_table = args[:create_table] if args.key?(:create_table) @create_video = args[:create_video] if args.key?(:create_video) @delete_object = args[:delete_object] if args.key?(:delete_object) @delete_paragraph_bullets = args[:delete_paragraph_bullets] if args.key?(:delete_paragraph_bullets) @delete_table_column = args[:delete_table_column] if args.key?(:delete_table_column) @delete_table_row = args[:delete_table_row] if args.key?(:delete_table_row) @delete_text = args[:delete_text] if args.key?(:delete_text) @duplicate_object = args[:duplicate_object] if args.key?(:duplicate_object) @group_objects = args[:group_objects] if args.key?(:group_objects) @insert_table_columns = args[:insert_table_columns] if args.key?(:insert_table_columns) @insert_table_rows = args[:insert_table_rows] if args.key?(:insert_table_rows) @insert_text = args[:insert_text] if args.key?(:insert_text) @merge_table_cells = args[:merge_table_cells] if args.key?(:merge_table_cells) @refresh_sheets_chart = args[:refresh_sheets_chart] if args.key?(:refresh_sheets_chart) @replace_all_shapes_with_image = args[:replace_all_shapes_with_image] if args.key?(:replace_all_shapes_with_image) @replace_all_shapes_with_sheets_chart = args[:replace_all_shapes_with_sheets_chart] if args.key?(:replace_all_shapes_with_sheets_chart) @replace_all_text = args[:replace_all_text] if args.key?(:replace_all_text) @replace_image = args[:replace_image] if args.key?(:replace_image) @ungroup_objects = args[:ungroup_objects] if args.key?(:ungroup_objects) @unmerge_table_cells = args[:unmerge_table_cells] if args.key?(:unmerge_table_cells) @update_image_properties = args[:update_image_properties] if args.key?(:update_image_properties) @update_line_properties = args[:update_line_properties] if args.key?(:update_line_properties) @update_page_element_alt_text = args[:update_page_element_alt_text] if args.key?(:update_page_element_alt_text) @update_page_element_transform = args[:update_page_element_transform] if args.key?(:update_page_element_transform) @update_page_properties = args[:update_page_properties] if args.key?(:update_page_properties) @update_paragraph_style = args[:update_paragraph_style] if args.key?(:update_paragraph_style) @update_shape_properties = args[:update_shape_properties] if args.key?(:update_shape_properties) @update_slides_position = args[:update_slides_position] if args.key?(:update_slides_position) @update_table_border_properties = args[:update_table_border_properties] if args.key?(:update_table_border_properties) @update_table_cell_properties = args[:update_table_cell_properties] if args.key?(:update_table_cell_properties) @update_table_column_properties = args[:update_table_column_properties] if args.key?(:update_table_column_properties) @update_table_row_properties = args[:update_table_row_properties] if args.key?(:update_table_row_properties) @update_text_style = args[:update_text_style] if args.key?(:update_text_style) @update_video_properties = args[:update_video_properties] if args.key?(:update_video_properties) end |