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.
-
#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
1317 1318 1319 |
# File 'generated/google/apis/slides_v1/classes.rb', line 1317 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
1301 1302 1303 |
# File 'generated/google/apis/slides_v1/classes.rb', line 1301 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.
Corresponds to the JSON property imageUrl
1310 1311 1312 |
# File 'generated/google/apis/slides_v1/classes.rb', line 1310 def image_url @image_url end |
#replace_method ⇒ String
The replace method.
Corresponds to the JSON property replaceMethod
1315 1316 1317 |
# File 'generated/google/apis/slides_v1/classes.rb', line 1315 def replace_method @replace_method end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1322 1323 1324 1325 1326 |
# File 'generated/google/apis/slides_v1/classes.rb', line 1322 def update!(**args) @contains_text = args[:contains_text] if args.key?(:contains_text) @image_url = args[:image_url] if args.key?(:image_url) @replace_method = args[:replace_method] if args.key?(:replace_method) end |