Class: Google::Apis::SlidesV1::ReplaceAllShapesWithImageRequest

Inherits:
Object
  • Object
show all
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 all shapes that match the given criteria with the provided image.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ReplaceAllShapesWithImageRequest

Returns a new instance of ReplaceAllShapesWithImageRequest



1287
1288
1289
# File 'generated/google/apis/slides_v1/classes.rb', line 1287

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

Instance Attribute Details

#contains_textGoogle::Apis::SlidesV1::SubstringMatchCriteria

A criteria that matches a specific string of text in a shape or table. Corresponds to the JSON property containsText



1276
1277
1278
# File 'generated/google/apis/slides_v1/classes.rb', line 1276

def contains_text
  @contains_text
end

#image_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 either in PNG, JPEG, or GIF format. Corresponds to the JSON property imageUrl

Returns:

  • (String)


1266
1267
1268
# File 'generated/google/apis/slides_v1/classes.rb', line 1266

def image_url
  @image_url
end

#page_object_idsArray<String>

If non-empty, limits the matches to page elements only on the given pages. Returns a 400 bad request error if given the page object ID of a notes page or a notes master, or if a page with that object ID doesn't exist in the presentation. Corresponds to the JSON property pageObjectIds

Returns:

  • (Array<String>)


1285
1286
1287
# File 'generated/google/apis/slides_v1/classes.rb', line 1285

def page_object_ids
  @page_object_ids
end

#replace_methodString

The replace method. Corresponds to the JSON property replaceMethod

Returns:

  • (String)


1271
1272
1273
# File 'generated/google/apis/slides_v1/classes.rb', line 1271

def replace_method
  @replace_method
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1292
1293
1294
1295
1296
1297
# File 'generated/google/apis/slides_v1/classes.rb', line 1292

def update!(**args)
  @image_url = args[:image_url] if args.key?(:image_url)
  @replace_method = args[:replace_method] if args.key?(:replace_method)
  @contains_text = args[:contains_text] if args.key?(:contains_text)
  @page_object_ids = args[:page_object_ids] if args.key?(:page_object_ids)
end