class Google::Apis::SlidesV1::ReplaceImageRequest

Replaces an existing image with a new image. Replacing an image removes some image effects from the existing image.

Attributes

image_object_id[RW]

The ID of the existing image that will be replaced. Corresponds to the JSON property `imageObjectId` @return [String]

image_replace_method[RW]

The replacement method. Corresponds to the JSON property `imageReplaceMethod` @return [String]

url[RW]

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 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` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/slides_v1/classes.rb, line 2790
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/slides_v1/classes.rb, line 2795
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