Class: Google::Apis::SlidesV1::ReplaceImageRequest
- Inherits:
-
Object
- Object
- Google::Apis::SlidesV1::ReplaceImageRequest
- 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 an existing image with a new image. Replacing an image removes some image effects from the existing image.
Instance Attribute Summary collapse
-
#image_object_id ⇒ String
The ID of the existing image that will be replaced.
-
#image_replace_method ⇒ String
The replacement method.
-
#url ⇒ String
The URL of the new image.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ReplaceImageRequest
constructor
A new instance of ReplaceImageRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ReplaceImageRequest
Returns a new instance of ReplaceImageRequest
2803 2804 2805 |
# File 'generated/google/apis/slides_v1/classes.rb', line 2803 def initialize(**args) update!(**args) end |
Instance Attribute Details
#image_object_id ⇒ String
The ID of the existing image that will be replaced.
Corresponds to the JSON property imageObjectId
2785 2786 2787 |
# File 'generated/google/apis/slides_v1/classes.rb', line 2785 def image_object_id @image_object_id end |
#image_replace_method ⇒ String
The replacement method.
Corresponds to the JSON property imageReplaceMethod
2790 2791 2792 |
# File 'generated/google/apis/slides_v1/classes.rb', line 2790 def image_replace_method @image_replace_method end |
#url ⇒ String
The URL of the new image.
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 one of PNG, JPEG, or GIF
format.
The provided URL can be at most 2 kB in length. The URL itself is saved
with the image, and exposed via the Image.source_url field.
Corresponds to the JSON property url
2801 2802 2803 |
# File 'generated/google/apis/slides_v1/classes.rb', line 2801 def url @url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2808 2809 2810 2811 2812 |
# File 'generated/google/apis/slides_v1/classes.rb', line 2808 def update!(**args) @image_object_id = args[:image_object_id] if args.key?(:image_object_id) @image_replace_method = args[:image_replace_method] if args.key?(:image_replace_method) @url = args[:url] if args.key?(:url) end |