Class: Google::Apis::SlidesV1::ReplaceAllTextRequest

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

Replaces all instances of text matching a criteria with replace text.

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

Returns a new instance of ReplaceAllTextRequest



3906
3907
3908
# File 'generated/google/apis/slides_v1/classes.rb', line 3906

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

Instance Attribute Details

#contains_textGoogle::Apis::SlidesV1::SubstringMatchCriteria

A criteria that matches a specific string of text in a shape or table. Corresponds to the JSON property containsText



3904
3905
3906
# File 'generated/google/apis/slides_v1/classes.rb', line 3904

def contains_text
  @contains_text
end

#page_object_idsArray<String>

If non-empty, limits the matches to page elements only on the given pages. Returns a 400 bad request error if given the page object ID of a notes master, or if a page with that object ID doesn't exist in the presentation. Corresponds to the JSON property pageObjectIds

Returns:

  • (Array<String>)


3899
3900
3901
# File 'generated/google/apis/slides_v1/classes.rb', line 3899

def page_object_ids
  @page_object_ids
end

#replace_textString

The text that will replace the matched text. Corresponds to the JSON property replaceText

Returns:

  • (String)


3891
3892
3893
# File 'generated/google/apis/slides_v1/classes.rb', line 3891

def replace_text
  @replace_text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3911
3912
3913
3914
3915
# File 'generated/google/apis/slides_v1/classes.rb', line 3911

def update!(**args)
  @replace_text = args[:replace_text] if args.key?(:replace_text)
  @page_object_ids = args[:page_object_ids] if args.key?(:page_object_ids)
  @contains_text = args[:contains_text] if args.key?(:contains_text)
end