Class: Google::Apis::DocsV1::InsertInlineImageRequest
- Inherits:
-
Object
- Object
- Google::Apis::DocsV1::InsertInlineImageRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/docs_v1/classes.rb,
generated/google/apis/docs_v1/representations.rb,
generated/google/apis/docs_v1/representations.rb
Overview
Inserts an InlineObject containing an image at the given location.
Instance Attribute Summary collapse
-
#end_of_segment_location ⇒ Google::Apis::DocsV1::EndOfSegmentLocation
Location at the end of a body, header, footer or footnote.
-
#location ⇒ Google::Apis::DocsV1::Location
A particular location in the document.
-
#object_size ⇒ Google::Apis::DocsV1::Size
A width and height.
-
#uri ⇒ String
The image URI.
Instance Method Summary collapse
-
#initialize(**args) ⇒ InsertInlineImageRequest
constructor
A new instance of InsertInlineImageRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ InsertInlineImageRequest
Returns a new instance of InsertInlineImageRequest.
2171 2172 2173 |
# File 'generated/google/apis/docs_v1/classes.rb', line 2171 def initialize(**args) update!(**args) end |
Instance Attribute Details
#end_of_segment_location ⇒ Google::Apis::DocsV1::EndOfSegmentLocation
Location at the end of a body, header, footer or footnote. The location is
immediately before the last newline in the document segment.
Corresponds to the JSON property endOfSegmentLocation
2149 2150 2151 |
# File 'generated/google/apis/docs_v1/classes.rb', line 2149 def end_of_segment_location @end_of_segment_location end |
#location ⇒ Google::Apis::DocsV1::Location
A particular location in the document.
Corresponds to the JSON property location
2154 2155 2156 |
# File 'generated/google/apis/docs_v1/classes.rb', line 2154 def location @location end |
#object_size ⇒ Google::Apis::DocsV1::Size
A width and height.
Corresponds to the JSON property objectSize
2159 2160 2161 |
# File 'generated/google/apis/docs_v1/classes.rb', line 2159 def object_size @object_size end |
#uri ⇒ String
The image URI.
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.content_uri field.
Corresponds to the JSON property uri
2169 2170 2171 |
# File 'generated/google/apis/docs_v1/classes.rb', line 2169 def uri @uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2176 2177 2178 2179 2180 2181 |
# File 'generated/google/apis/docs_v1/classes.rb', line 2176 def update!(**args) @end_of_segment_location = args[:end_of_segment_location] if args.key?(:end_of_segment_location) @location = args[:location] if args.key?(:location) @object_size = args[:object_size] if args.key?(:object_size) @uri = args[:uri] if args.key?(:uri) end |