Class: Google::Apis::SlidesV1::Request

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

A single kind of update to apply to a presentation.

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) ⇒ Request

Returns a new instance of Request



3488
3489
3490
# File 'generated/google/apis/slides_v1/classes.rb', line 3488

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

Instance Attribute Details

#create_imageGoogle::Apis::SlidesV1::CreateImageRequest

Creates an image. Corresponds to the JSON property createImage



3473
3474
3475
# File 'generated/google/apis/slides_v1/classes.rb', line 3473

def create_image
  @create_image
end

#create_lineGoogle::Apis::SlidesV1::CreateLineRequest

Creates a line. Corresponds to the JSON property createLine



3468
3469
3470
# File 'generated/google/apis/slides_v1/classes.rb', line 3468

def create_line
  @create_line
end

#create_paragraph_bulletsGoogle::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



3486
3487
3488
# File 'generated/google/apis/slides_v1/classes.rb', line 3486

def create_paragraph_bullets
  @create_paragraph_bullets
end

#create_shapeGoogle::Apis::SlidesV1::CreateShapeRequest

Creates a new shape. Corresponds to the JSON property createShape



3400
3401
3402
# File 'generated/google/apis/slides_v1/classes.rb', line 3400

def create_shape
  @create_shape
end

#create_sheets_chartGoogle::Apis::SlidesV1::CreateSheetsChartRequest

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



3315
3316
3317
# File 'generated/google/apis/slides_v1/classes.rb', line 3315

def create_sheets_chart
  @create_sheets_chart
end

#create_slideGoogle::Apis::SlidesV1::CreateSlideRequest

Creates a new slide. Corresponds to the JSON property createSlide



3360
3361
3362
# File 'generated/google/apis/slides_v1/classes.rb', line 3360

def create_slide
  @create_slide
end

#create_tableGoogle::Apis::SlidesV1::CreateTableRequest

Creates a new table. Corresponds to the JSON property createTable



3432
3433
3434
# File 'generated/google/apis/slides_v1/classes.rb', line 3432

def create_table
  @create_table
end

#create_videoGoogle::Apis::SlidesV1::CreateVideoRequest

Creates a video. Corresponds to the JSON property createVideo



3308
3309
3310
# File 'generated/google/apis/slides_v1/classes.rb', line 3308

def create_video
  @create_video
end

#delete_objectGoogle::Apis::SlidesV1::DeleteObjectRequest

Deletes an object, either pages or page elements, from the presentation. Corresponds to the JSON property deleteObject



3439
3440
3441
# File 'generated/google/apis/slides_v1/classes.rb', line 3439

def delete_object
  @delete_object
end

#delete_paragraph_bulletsGoogle::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



3408
3409
3410
# File 'generated/google/apis/slides_v1/classes.rb', line 3408

def delete_paragraph_bullets
  @delete_paragraph_bullets
end

#delete_table_columnGoogle::Apis::SlidesV1::DeleteTableColumnRequest

Deletes a column from a table. Corresponds to the JSON property deleteTableColumn



3450
3451
3452
# File 'generated/google/apis/slides_v1/classes.rb', line 3450

def delete_table_column
  @delete_table_column
end

#delete_table_rowGoogle::Apis::SlidesV1::DeleteTableRowRequest

Deletes a row from a table. Corresponds to the JSON property deleteTableRow



3375
3376
3377
# File 'generated/google/apis/slides_v1/classes.rb', line 3375

def delete_table_row
  @delete_table_row
end

#delete_textGoogle::Apis::SlidesV1::DeleteTextRequest

Deletes text from a shape or a table cell. Corresponds to the JSON property deleteText



3390
3391
3392
# File 'generated/google/apis/slides_v1/classes.rb', line 3390

def delete_text
  @delete_text
end

#duplicate_objectGoogle::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



3458
3459
3460
# File 'generated/google/apis/slides_v1/classes.rb', line 3458

def duplicate_object
  @duplicate_object
end

#insert_table_columnsGoogle::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



3414
3415
3416
# File 'generated/google/apis/slides_v1/classes.rb', line 3414

def insert_table_columns
  @insert_table_columns
end

#insert_table_rowsGoogle::Apis::SlidesV1::InsertTableRowsRequest

Inserts rows into a table. Corresponds to the JSON property insertTableRows



3355
3356
3357
# File 'generated/google/apis/slides_v1/classes.rb', line 3355

def insert_table_rows
  @insert_table_rows
end

#insert_textGoogle::Apis::SlidesV1::InsertTextRequest

Inserts text into a shape or a table cell. Corresponds to the JSON property insertText



3385
3386
3387
# File 'generated/google/apis/slides_v1/classes.rb', line 3385

def insert_text
  @insert_text
end

#refresh_sheets_chartGoogle::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



3422
3423
3424
# File 'generated/google/apis/slides_v1/classes.rb', line 3422

def refresh_sheets_chart
  @refresh_sheets_chart
end

#replace_all_shapes_with_imageGoogle::Apis::SlidesV1::ReplaceAllShapesWithImageRequest

Replaces all shapes that match the given criteria with the provided image. Corresponds to the JSON property replaceAllShapesWithImage



3340
3341
3342
# File 'generated/google/apis/slides_v1/classes.rb', line 3340

def replace_all_shapes_with_image
  @replace_all_shapes_with_image
end

#replace_all_shapes_with_sheets_chartGoogle::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



3324
3325
3326
# File 'generated/google/apis/slides_v1/classes.rb', line 3324

def replace_all_shapes_with_sheets_chart
  @replace_all_shapes_with_sheets_chart
end

#replace_all_textGoogle::Apis::SlidesV1::ReplaceAllTextRequest

Replaces all instances of text matching a criteria with replace text. Corresponds to the JSON property replaceAllText



3345
3346
3347
# File 'generated/google/apis/slides_v1/classes.rb', line 3345

def replace_all_text
  @replace_all_text
end

#update_image_propertiesGoogle::Apis::SlidesV1::UpdateImagePropertiesRequest

Update the properties of an Image. Corresponds to the JSON property updateImageProperties



3350
3351
3352
# File 'generated/google/apis/slides_v1/classes.rb', line 3350

def update_image_properties
  @update_image_properties
end

#update_line_propertiesGoogle::Apis::SlidesV1::UpdateLinePropertiesRequest

Updates the properties of a Line. Corresponds to the JSON property updateLineProperties



3365
3366
3367
# File 'generated/google/apis/slides_v1/classes.rb', line 3365

def update_line_properties
  @update_line_properties
end

#update_page_element_transformGoogle::Apis::SlidesV1::UpdatePageElementTransformRequest

Updates the transform of a page element. Corresponds to the JSON property updatePageElementTransform



3329
3330
3331
# File 'generated/google/apis/slides_v1/classes.rb', line 3329

def update_page_element_transform
  @update_page_element_transform
end

#update_page_propertiesGoogle::Apis::SlidesV1::UpdatePagePropertiesRequest

Updates the properties of a Page. Corresponds to the JSON property updatePageProperties



3395
3396
3397
# File 'generated/google/apis/slides_v1/classes.rb', line 3395

def update_page_properties
  @update_page_properties
end

#update_paragraph_styleGoogle::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



3445
3446
3447
# File 'generated/google/apis/slides_v1/classes.rb', line 3445

def update_paragraph_style
  @update_paragraph_style
end

#update_shape_propertiesGoogle::Apis::SlidesV1::UpdateShapePropertiesRequest

Update the properties of a Shape. Corresponds to the JSON property updateShapeProperties



3380
3381
3382
# File 'generated/google/apis/slides_v1/classes.rb', line 3380

def update_shape_properties
  @update_shape_properties
end

#update_slides_positionGoogle::Apis::SlidesV1::UpdateSlidesPositionRequest

Updates the position of slides in the presentation. Corresponds to the JSON property updateSlidesPosition



3370
3371
3372
# File 'generated/google/apis/slides_v1/classes.rb', line 3370

def update_slides_position
  @update_slides_position
end

#update_table_cell_propertiesGoogle::Apis::SlidesV1::UpdateTableCellPropertiesRequest

Update the properties of a TableCell. Corresponds to the JSON property updateTableCellProperties



3427
3428
3429
# File 'generated/google/apis/slides_v1/classes.rb', line 3427

def update_table_cell_properties
  @update_table_cell_properties
end

#update_text_styleGoogle::Apis::SlidesV1::UpdateTextStyleRequest

Update the styling of text in a Shape or Table. Corresponds to the JSON property updateTextStyle



3335
3336
3337
# File 'generated/google/apis/slides_v1/classes.rb', line 3335

def update_text_style
  @update_text_style
end

#update_video_propertiesGoogle::Apis::SlidesV1::UpdateVideoPropertiesRequest

Update the properties of a Video. Corresponds to the JSON property updateVideoProperties



3463
3464
3465
# File 'generated/google/apis/slides_v1/classes.rb', line 3463

def update_video_properties
  @update_video_properties
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
# File 'generated/google/apis/slides_v1/classes.rb', line 3493

def update!(**args)
  @create_video = args[:create_video] if args.key?(:create_video)
  @create_sheets_chart = args[:create_sheets_chart] if args.key?(:create_sheets_chart)
  @replace_all_shapes_with_sheets_chart = args[:replace_all_shapes_with_sheets_chart] if args.key?(:replace_all_shapes_with_sheets_chart)
  @update_page_element_transform = args[:update_page_element_transform] if args.key?(:update_page_element_transform)
  @update_text_style = args[:update_text_style] if args.key?(:update_text_style)
  @replace_all_shapes_with_image = args[:replace_all_shapes_with_image] if args.key?(:replace_all_shapes_with_image)
  @replace_all_text = args[:replace_all_text] if args.key?(:replace_all_text)
  @update_image_properties = args[:update_image_properties] if args.key?(:update_image_properties)
  @insert_table_rows = args[:insert_table_rows] if args.key?(:insert_table_rows)
  @create_slide = args[:create_slide] if args.key?(:create_slide)
  @update_line_properties = args[:update_line_properties] if args.key?(:update_line_properties)
  @update_slides_position = args[:update_slides_position] if args.key?(:update_slides_position)
  @delete_table_row = args[:delete_table_row] if args.key?(:delete_table_row)
  @update_shape_properties = args[:update_shape_properties] if args.key?(:update_shape_properties)
  @insert_text = args[:insert_text] if args.key?(:insert_text)
  @delete_text = args[:delete_text] if args.key?(:delete_text)
  @update_page_properties = args[:update_page_properties] if args.key?(:update_page_properties)
  @create_shape = args[:create_shape] if args.key?(:create_shape)
  @delete_paragraph_bullets = args[:delete_paragraph_bullets] if args.key?(:delete_paragraph_bullets)
  @insert_table_columns = args[:insert_table_columns] if args.key?(:insert_table_columns)
  @refresh_sheets_chart = args[:refresh_sheets_chart] if args.key?(:refresh_sheets_chart)
  @update_table_cell_properties = args[:update_table_cell_properties] if args.key?(:update_table_cell_properties)
  @create_table = args[:create_table] if args.key?(:create_table)
  @delete_object = args[:delete_object] if args.key?(:delete_object)
  @update_paragraph_style = args[:update_paragraph_style] if args.key?(:update_paragraph_style)
  @delete_table_column = args[:delete_table_column] if args.key?(:delete_table_column)
  @duplicate_object = args[:duplicate_object] if args.key?(:duplicate_object)
  @update_video_properties = args[:update_video_properties] if args.key?(:update_video_properties)
  @create_line = args[:create_line] if args.key?(:create_line)
  @create_image = args[:create_image] if args.key?(:create_image)
  @create_paragraph_bullets = args[:create_paragraph_bullets] if args.key?(:create_paragraph_bullets)
end