Class: Google::Apis::SlidesV1::ReplaceImageRequest
- Inherits:
-
Object
- Object
- Google::Apis::SlidesV1::ReplaceImageRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/slides_v1/classes.rb,
lib/google/apis/slides_v1/representations.rb,
lib/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 image URL.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ReplaceImageRequest
constructor
A new instance of ReplaceImageRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ReplaceImageRequest
Returns a new instance of ReplaceImageRequest.
2793 2794 2795 |
# File 'lib/google/apis/slides_v1/classes.rb', line 2793 def initialize(**args) update!(**args) end |
Instance Attribute Details
#image_object_id ⇒ String
The ID of the existing image that will be replaced. The ID can be retrieved
from the response of a get request.
Corresponds to the JSON property imageObjectId
2777 2778 2779 |
# File 'lib/google/apis/slides_v1/classes.rb', line 2777 def image_object_id @image_object_id end |
#image_replace_method ⇒ String
The replacement method.
Corresponds to the JSON property imageReplaceMethod
2782 2783 2784 |
# File 'lib/google/apis/slides_v1/classes.rb', line 2782 def image_replace_method @image_replace_method end |
#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,
cannot exceed 25 megapixels, and must be in PNG, JPEG, or GIF format. The
provided URL can't surpass 2 KB in length. The URL is saved with the image,
and exposed through the Image.source_url field.
Corresponds to the JSON property url
2791 2792 2793 |
# File 'lib/google/apis/slides_v1/classes.rb', line 2791 def url @url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2798 2799 2800 2801 2802 |
# File 'lib/google/apis/slides_v1/classes.rb', line 2798 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 |