Class: Google::Apis::DocsV1::Request
- Inherits:
-
Object
- Object
- Google::Apis::DocsV1::Request
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/docs_v1/classes.rb,
generated/google/apis/docs_v1/representations.rb,
generated/google/apis/docs_v1/representations.rb
Overview
A single update to apply to a document.
Instance Attribute Summary collapse
-
#create_named_range ⇒ Google::Apis::DocsV1::CreateNamedRangeRequest
Creates a NamedRange referencing the given range.
-
#create_paragraph_bullets ⇒ Google::Apis::DocsV1::CreateParagraphBulletsRequest
Creates bullets for all of the paragraphs that overlap with the given range.
-
#delete_content_range ⇒ Google::Apis::DocsV1::DeleteContentRangeRequest
Deletes content from the document.
-
#delete_named_range ⇒ Google::Apis::DocsV1::DeleteNamedRangeRequest
Deletes a NamedRange.
-
#delete_paragraph_bullets ⇒ Google::Apis::DocsV1::DeleteParagraphBulletsRequest
Deletes bullets from all of the paragraphs that overlap with the given range.
-
#delete_positioned_object ⇒ Google::Apis::DocsV1::DeletePositionedObjectRequest
Deletes a PositionedObject from the document.
-
#delete_table_column ⇒ Google::Apis::DocsV1::DeleteTableColumnRequest
Deletes a column from a table.
-
#delete_table_row ⇒ Google::Apis::DocsV1::DeleteTableRowRequest
Deletes a row from a table.
-
#insert_inline_image ⇒ Google::Apis::DocsV1::InsertInlineImageRequest
Inserts an InlineObject containing an image at the given location.
-
#insert_page_break ⇒ Google::Apis::DocsV1::InsertPageBreakRequest
Inserts a page break followed by a newline at the specified location.
-
#insert_table ⇒ Google::Apis::DocsV1::InsertTableRequest
Inserts a table at the specified location.
-
#insert_table_column ⇒ Google::Apis::DocsV1::InsertTableColumnRequest
Inserts an empty column into a table.
-
#insert_table_row ⇒ Google::Apis::DocsV1::InsertTableRowRequest
Inserts an empty row into a table.
-
#insert_text ⇒ Google::Apis::DocsV1::InsertTextRequest
Inserts text at the specified location.
-
#replace_all_text ⇒ Google::Apis::DocsV1::ReplaceAllTextRequest
Replaces all instances of text matching a criteria with replace text.
-
#update_paragraph_style ⇒ Google::Apis::DocsV1::UpdateParagraphStyleRequest
Update the styling of all paragraphs that overlap with the given range.
-
#update_table_column_properties ⇒ Google::Apis::DocsV1::UpdateTableColumnPropertiesRequest
Updates the TableColumnProperties of columns in a table.
-
#update_table_row_style ⇒ Google::Apis::DocsV1::UpdateTableRowStyleRequest
Updates the TableRowStyle of rows in a table.
-
#update_text_style ⇒ Google::Apis::DocsV1::UpdateTextStyleRequest
Update the styling of text.
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
3746 3747 3748 |
# File 'generated/google/apis/docs_v1/classes.rb', line 3746 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_named_range ⇒ Google::Apis::DocsV1::CreateNamedRangeRequest
Creates a NamedRange referencing the given
range.
Corresponds to the JSON property createNamedRange
3639 3640 3641 |
# File 'generated/google/apis/docs_v1/classes.rb', line 3639 def create_named_range @create_named_range end |
#create_paragraph_bullets ⇒ Google::Apis::DocsV1::CreateParagraphBulletsRequest
Creates bullets for all of the paragraphs that overlap with the given 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
3651 3652 3653 |
# File 'generated/google/apis/docs_v1/classes.rb', line 3651 def create_paragraph_bullets @create_paragraph_bullets end |
#delete_content_range ⇒ Google::Apis::DocsV1::DeleteContentRangeRequest
Deletes content from the document.
Corresponds to the JSON property deleteContentRange
3656 3657 3658 |
# File 'generated/google/apis/docs_v1/classes.rb', line 3656 def delete_content_range @delete_content_range end |
#delete_named_range ⇒ Google::Apis::DocsV1::DeleteNamedRangeRequest
Deletes a NamedRange.
Corresponds to the JSON property deleteNamedRange
3661 3662 3663 |
# File 'generated/google/apis/docs_v1/classes.rb', line 3661 def delete_named_range @delete_named_range end |
#delete_paragraph_bullets ⇒ Google::Apis::DocsV1::DeleteParagraphBulletsRequest
Deletes bullets from all of the paragraphs that overlap with the given 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
3668 3669 3670 |
# File 'generated/google/apis/docs_v1/classes.rb', line 3668 def delete_paragraph_bullets @delete_paragraph_bullets end |
#delete_positioned_object ⇒ Google::Apis::DocsV1::DeletePositionedObjectRequest
Deletes a PositionedObject from the
document.
Corresponds to the JSON property deletePositionedObject
3674 3675 3676 |
# File 'generated/google/apis/docs_v1/classes.rb', line 3674 def delete_positioned_object @delete_positioned_object end |
#delete_table_column ⇒ Google::Apis::DocsV1::DeleteTableColumnRequest
Deletes a column from a table.
Corresponds to the JSON property deleteTableColumn
3679 3680 3681 |
# File 'generated/google/apis/docs_v1/classes.rb', line 3679 def delete_table_column @delete_table_column end |
#delete_table_row ⇒ Google::Apis::DocsV1::DeleteTableRowRequest
Deletes a row from a table.
Corresponds to the JSON property deleteTableRow
3684 3685 3686 |
# File 'generated/google/apis/docs_v1/classes.rb', line 3684 def delete_table_row @delete_table_row end |
#insert_inline_image ⇒ Google::Apis::DocsV1::InsertInlineImageRequest
Inserts an InlineObject containing an
image at the given location.
Corresponds to the JSON property insertInlineImage
3690 3691 3692 |
# File 'generated/google/apis/docs_v1/classes.rb', line 3690 def insert_inline_image @insert_inline_image end |
#insert_page_break ⇒ Google::Apis::DocsV1::InsertPageBreakRequest
Inserts a page break followed by a newline at the specified location.
Corresponds to the JSON property insertPageBreak
3695 3696 3697 |
# File 'generated/google/apis/docs_v1/classes.rb', line 3695 def insert_page_break @insert_page_break end |
#insert_table ⇒ Google::Apis::DocsV1::InsertTableRequest
Inserts a table at the specified location.
A newline character will be inserted before the inserted table.
Corresponds to the JSON property insertTable
3701 3702 3703 |
# File 'generated/google/apis/docs_v1/classes.rb', line 3701 def insert_table @insert_table end |
#insert_table_column ⇒ Google::Apis::DocsV1::InsertTableColumnRequest
Inserts an empty column into a table.
Corresponds to the JSON property insertTableColumn
3706 3707 3708 |
# File 'generated/google/apis/docs_v1/classes.rb', line 3706 def insert_table_column @insert_table_column end |
#insert_table_row ⇒ Google::Apis::DocsV1::InsertTableRowRequest
Inserts an empty row into a table.
Corresponds to the JSON property insertTableRow
3711 3712 3713 |
# File 'generated/google/apis/docs_v1/classes.rb', line 3711 def insert_table_row @insert_table_row end |
#insert_text ⇒ Google::Apis::DocsV1::InsertTextRequest
Inserts text at the specified location.
Corresponds to the JSON property insertText
3716 3717 3718 |
# File 'generated/google/apis/docs_v1/classes.rb', line 3716 def insert_text @insert_text end |
#replace_all_text ⇒ Google::Apis::DocsV1::ReplaceAllTextRequest
Replaces all instances of text matching a criteria with replace text.
Corresponds to the JSON property replaceAllText
3721 3722 3723 |
# File 'generated/google/apis/docs_v1/classes.rb', line 3721 def replace_all_text @replace_all_text end |
#update_paragraph_style ⇒ Google::Apis::DocsV1::UpdateParagraphStyleRequest
Update the styling of all paragraphs that overlap with the given range.
Corresponds to the JSON property updateParagraphStyle
3726 3727 3728 |
# File 'generated/google/apis/docs_v1/classes.rb', line 3726 def update_paragraph_style @update_paragraph_style end |
#update_table_column_properties ⇒ Google::Apis::DocsV1::UpdateTableColumnPropertiesRequest
Updates the
TableColumnProperties of columns
in a table.
Corresponds to the JSON property updateTableColumnProperties
3733 3734 3735 |
# File 'generated/google/apis/docs_v1/classes.rb', line 3733 def update_table_column_properties @update_table_column_properties end |
#update_table_row_style ⇒ Google::Apis::DocsV1::UpdateTableRowStyleRequest
Updates the TableRowStyle of rows in a
table.
Corresponds to the JSON property updateTableRowStyle
3739 3740 3741 |
# File 'generated/google/apis/docs_v1/classes.rb', line 3739 def update_table_row_style @update_table_row_style end |
#update_text_style ⇒ Google::Apis::DocsV1::UpdateTextStyleRequest
Update the styling of text.
Corresponds to the JSON property updateTextStyle
3744 3745 3746 |
# File 'generated/google/apis/docs_v1/classes.rb', line 3744 def update_text_style @update_text_style end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 |
# File 'generated/google/apis/docs_v1/classes.rb', line 3751 def update!(**args) @create_named_range = args[:create_named_range] if args.key?(:create_named_range) @create_paragraph_bullets = args[:create_paragraph_bullets] if args.key?(:create_paragraph_bullets) @delete_content_range = args[:delete_content_range] if args.key?(:delete_content_range) @delete_named_range = args[:delete_named_range] if args.key?(:delete_named_range) @delete_paragraph_bullets = args[:delete_paragraph_bullets] if args.key?(:delete_paragraph_bullets) @delete_positioned_object = args[:delete_positioned_object] if args.key?(:delete_positioned_object) @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) @insert_inline_image = args[:insert_inline_image] if args.key?(:insert_inline_image) @insert_page_break = args[:insert_page_break] if args.key?(:insert_page_break) @insert_table = args[:insert_table] if args.key?(:insert_table) @insert_table_column = args[:insert_table_column] if args.key?(:insert_table_column) @insert_table_row = args[:insert_table_row] if args.key?(:insert_table_row) @insert_text = args[:insert_text] if args.key?(:insert_text) @replace_all_text = args[:replace_all_text] if args.key?(:replace_all_text) @update_paragraph_style = args[:update_paragraph_style] if args.key?(:update_paragraph_style) @update_table_column_properties = args[:update_table_column_properties] if args.key?(:update_table_column_properties) @update_table_row_style = args[:update_table_row_style] if args.key?(:update_table_row_style) @update_text_style = args[:update_text_style] if args.key?(:update_text_style) end |