class Google::Apis::DocsV1::ReplaceImageRequest
Replaces an existing image with a new image. Replacing an image removes some image effects from the existing image in order to mirror the behavior of the Docs editor.
Attributes
The ID of the existing image that will be replaced. Corresponds to the JSON property `imageObjectId` @return [String]
The replacement method. Corresponds to the JSON property `imageReplaceMethod` @return [String]
The URI of the new image. The image is fetched once at insertion time and a copy is stored for display inside the document. 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 URI can be at most 2 kB in length. The URI itself is saved with the image, and exposed via the ImageProperties.source_uri
field. Corresponds to the JSON property `uri` @return [String]
Public Class Methods
# File lib/google/apis/docs_v1/classes.rb, line 3895 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/docs_v1/classes.rb, line 3900 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) @uri = args[:uri] if args.key?(:uri) end