Class: Google::Apis::SlidesV1::ReplaceAllShapesWithImageRequest
- Inherits:
-
Object
- Object
- Google::Apis::SlidesV1::ReplaceAllShapesWithImageRequest
- 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 shapes that match the given criteria with the provided image.
Instance Attribute Summary collapse
-
#contains_text ⇒ Google::Apis::SlidesV1::SubstringMatchCriteria
A criteria that matches a specific string of text in a shape or table.
-
#image_url ⇒ String
The image URL.
-
#page_object_ids ⇒ Array<String>
If non-empty, limits the matches to page elements only on the given pages.
-
#replace_method ⇒ String
The replace method.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ReplaceAllShapesWithImageRequest
constructor
A new instance of ReplaceAllShapesWithImageRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ReplaceAllShapesWithImageRequest
Returns a new instance of ReplaceAllShapesWithImageRequest
2499 2500 2501 |
# File 'generated/google/apis/slides_v1/classes.rb', line 2499 def initialize(**args) update!(**args) end |
Instance Attribute Details
#contains_text ⇒ Google::Apis::SlidesV1::SubstringMatchCriteria
A criteria that matches a specific string of text in a shape or table.
Corresponds to the JSON property containsText
2473 2474 2475 |
# File 'generated/google/apis/slides_v1/classes.rb', line 2473 def contains_text @contains_text end |
#image_url ⇒ String
The image URL.
The image is fetched once at insertion time and a copy is stored for
display inside the presentation. Images must be less than 50MB in size,
cannot exceed 25 megapixels, and must be in either in PNG, JPEG, or GIF
format.
The provided URL can be at maximum 2K bytes large.
Corresponds to the JSON property imageUrl
2483 2484 2485 |
# File 'generated/google/apis/slides_v1/classes.rb', line 2483 def image_url @image_url end |
#page_object_ids ⇒ Array<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 page or a
notes master, or if a
page with that object ID doesn't exist in the presentation.
Corresponds to the JSON property pageObjectIds
2492 2493 2494 |
# File 'generated/google/apis/slides_v1/classes.rb', line 2492 def page_object_ids @page_object_ids end |
#replace_method ⇒ String
The replace method.
Corresponds to the JSON property replaceMethod
2497 2498 2499 |
# File 'generated/google/apis/slides_v1/classes.rb', line 2497 def replace_method @replace_method end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2504 2505 2506 2507 2508 2509 |
# File 'generated/google/apis/slides_v1/classes.rb', line 2504 def update!(**args) @contains_text = args[:contains_text] if args.key?(:contains_text) @image_url = args[:image_url] if args.key?(:image_url) @page_object_ids = args[:page_object_ids] if args.key?(:page_object_ids) @replace_method = args[:replace_method] if args.key?(:replace_method) end |