Class: Google::Apis::MirrorV1::Attachment
- Inherits:
-
Object
- Object
- Google::Apis::MirrorV1::Attachment
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/mirror_v1/classes.rb,
generated/google/apis/mirror_v1/representations.rb,
generated/google/apis/mirror_v1/representations.rb
Overview
Represents media content, such as a photo, that can be attached to a timeline item.
Instance Attribute Summary collapse
-
#content_type ⇒ String
The MIME type of the attachment.
-
#content_url ⇒ String
The URL for the content.
-
#id ⇒ String
The ID of the attachment.
-
#is_processing_content ⇒ Boolean
(also: #is_processing_content?)
Indicates that the contentUrl is not available because the attachment content is still being processed.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Attachment
constructor
A new instance of Attachment.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Attachment
Returns a new instance of Attachment.
90 91 92 |
# File 'generated/google/apis/mirror_v1/classes.rb', line 90 def initialize(**args) update!(**args) end |
Instance Attribute Details
#content_type ⇒ String
The MIME type of the attachment.
Corresponds to the JSON property contentType
70 71 72 |
# File 'generated/google/apis/mirror_v1/classes.rb', line 70 def content_type @content_type end |
#content_url ⇒ String
The URL for the content.
Corresponds to the JSON property contentUrl
75 76 77 |
# File 'generated/google/apis/mirror_v1/classes.rb', line 75 def content_url @content_url end |
#id ⇒ String
The ID of the attachment.
Corresponds to the JSON property id
80 81 82 |
# File 'generated/google/apis/mirror_v1/classes.rb', line 80 def id @id end |
#is_processing_content ⇒ Boolean Also known as: is_processing_content?
Indicates that the contentUrl is not available because the attachment content
is still being processed. If the caller wishes to retrieve the content, it
should try again later.
Corresponds to the JSON property isProcessingContent
87 88 89 |
# File 'generated/google/apis/mirror_v1/classes.rb', line 87 def is_processing_content @is_processing_content end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
95 96 97 98 99 100 |
# File 'generated/google/apis/mirror_v1/classes.rb', line 95 def update!(**args) @content_type = args[:content_type] if args.key?(:content_type) @content_url = args[:content_url] if args.key?(:content_url) @id = args[:id] if args.key?(:id) @is_processing_content = args[:is_processing_content] if args.key?(:is_processing_content) end |