Class: Google::Apis::SlidesV1::ReplaceImageRequest

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ReplaceImageRequest

Returns a new instance of ReplaceImageRequest.



2784
2785
2786
# File 'lib/google/apis/slides_v1/classes.rb', line 2784

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#image_object_idString

The ID of the existing image that will be replaced. Corresponds to the JSON property imageObjectId

Returns:

  • (String)


2768
2769
2770
# File 'lib/google/apis/slides_v1/classes.rb', line 2768

def image_object_id
  @image_object_id
end

#image_replace_methodString

The replacement method. Corresponds to the JSON property imageReplaceMethod

Returns:

  • (String)


2773
2774
2775
# File 'lib/google/apis/slides_v1/classes.rb', line 2773

def image_replace_method
  @image_replace_method
end

#urlString

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

Returns:

  • (String)


2782
2783
2784
# File 'lib/google/apis/slides_v1/classes.rb', line 2782

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2789
2790
2791
2792
2793
# File 'lib/google/apis/slides_v1/classes.rb', line 2789

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