Class: Google::Apis::MirrorV1::Attachment

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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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_typeString

The MIME type of the attachment. Corresponds to the JSON property contentType

Returns:

  • (String)


70
71
72
# File 'generated/google/apis/mirror_v1/classes.rb', line 70

def content_type
  @content_type
end

#content_urlString

The URL for the content. Corresponds to the JSON property contentUrl

Returns:

  • (String)


75
76
77
# File 'generated/google/apis/mirror_v1/classes.rb', line 75

def content_url
  @content_url
end

#idString

The ID of the attachment. Corresponds to the JSON property id

Returns:

  • (String)


80
81
82
# File 'generated/google/apis/mirror_v1/classes.rb', line 80

def id
  @id
end

#is_processing_contentBoolean 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

Returns:

  • (Boolean)


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