class Google::Apis::MirrorV1::Attachment

Represents media content, such as a photo, that can be attached to a timeline item.

Attributes

content_type[RW]

The MIME type of the attachment. Corresponds to the JSON property `contentType` @return [String]

content_url[RW]

The URL for the content. Corresponds to the JSON property `contentUrl` @return [String]

id[RW]

The ID of the attachment. Corresponds to the JSON property `id` @return [String]

is_processing_content[RW]

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` @return [Boolean]

is_processing_content?[RW]

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` @return [Boolean]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/mirror_v1/classes.rb, line 90
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# 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