class Google::Apis::PlusDomainsV1::Media

Attributes

author[RW]

The person who uploaded this media. Corresponds to the JSON property `author` @return [Google::Apis::PlusDomainsV1::Media::Author]

display_name[RW]

The display name for this media. Corresponds to the JSON property `displayName` @return [String]

etag[RW]

ETag of this response for caching purposes. Corresponds to the JSON property `etag` @return [String]

exif[RW]

Exif information of the media item. Corresponds to the JSON property `exif` @return [Google::Apis::PlusDomainsV1::Media::Exif]

height[RW]

The height in pixels of the original image. Corresponds to the JSON property `height` @return [Fixnum]

id[RW]

ID of this media, which is generated by the API. Corresponds to the JSON property `id` @return [String]

kind[RW]

The type of resource. Corresponds to the JSON property `kind` @return [String]

media_created_time[RW]

The time at which this media was originally created in UTC. Formatted as an RFC 3339 timestamp that matches this example: 2010-11-25T14:30:27.655Z Corresponds to the JSON property `mediaCreatedTime` @return [DateTime]

media_url[RW]

The URL of this photo or video's still image. Corresponds to the JSON property `mediaUrl` @return [String]

published[RW]

The time at which this media was uploaded. Formatted as an RFC 3339 timestamp. Corresponds to the JSON property `published` @return [DateTime]

size_bytes[RW]

The size in bytes of this video. Corresponds to the JSON property `sizeBytes` @return [String]

streams[RW]

The list of video streams for this video. There might be several different streams available for a single video, either Flash or MPEG, of various sizes Corresponds to the JSON property `streams` @return [Array<Google::Apis::PlusDomainsV1::Videostream>]

summary[RW]

A description, or caption, for this media. Corresponds to the JSON property `summary` @return [String]

updated[RW]

The time at which this media was last updated. This includes changes to media metadata. Formatted as an RFC 3339 timestamp. Corresponds to the JSON property `updated` @return [DateTime]

url[RW]

The URL for the page that hosts this media. Corresponds to the JSON property `url` @return [String]

video_duration[RW]

The duration in milliseconds of this video. Corresponds to the JSON property `videoDuration` @return [String]

video_status[RW]

The encoding status of this video. Possible values are:

  • “UPLOADING” - Not all the video bytes have been received.

  • “PENDING” - Video not yet processed.

  • “FAILED” - Video processing failed.

  • “READY” - A single video stream is playable.

  • “FINAL” - All video streams are playable.

Corresponds to the JSON property `videoStatus` @return [String]

width[RW]

The width in pixels of the original image. Corresponds to the JSON property `width` @return [Fixnum]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/plus_domains_v1/classes.rb, line 1746
def update!(**args)
  @author = args[:author] if args.key?(:author)
  @display_name = args[:display_name] if args.key?(:display_name)
  @etag = args[:etag] if args.key?(:etag)
  @exif = args[:exif] if args.key?(:exif)
  @height = args[:height] if args.key?(:height)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @media_created_time = args[:media_created_time] if args.key?(:media_created_time)
  @media_url = args[:media_url] if args.key?(:media_url)
  @published = args[:published] if args.key?(:published)
  @size_bytes = args[:size_bytes] if args.key?(:size_bytes)
  @streams = args[:streams] if args.key?(:streams)
  @summary = args[:summary] if args.key?(:summary)
  @updated = args[:updated] if args.key?(:updated)
  @url = args[:url] if args.key?(:url)
  @video_duration = args[:video_duration] if args.key?(:video_duration)
  @video_status = args[:video_status] if args.key?(:video_status)
  @width = args[:width] if args.key?(:width)
end