Class: Google::Apis::PlusDomainsV1::Media

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/plus_domains_v1/classes.rb,
generated/google/apis/plus_domains_v1/representations.rb,
generated/google/apis/plus_domains_v1/representations.rb

Defined Under Namespace

Classes: Author, Exif

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) ⇒ Media

Returns a new instance of Media



1741
1742
1743
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 1741

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#authorGoogle::Apis::PlusDomainsV1::Media::Author

The person who uploaded this media. Corresponds to the JSON property author



1646
1647
1648
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 1646

def author
  @author
end

#display_nameString

The display name for this media. Corresponds to the JSON property displayName

Returns:

  • (String)


1651
1652
1653
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 1651

def display_name
  @display_name
end

#etagString

ETag of this response for caching purposes. Corresponds to the JSON property etag

Returns:

  • (String)


1656
1657
1658
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 1656

def etag
  @etag
end

#exifGoogle::Apis::PlusDomainsV1::Media::Exif

Exif information of the media item. Corresponds to the JSON property exif



1661
1662
1663
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 1661

def exif
  @exif
end

#heightFixnum

The height in pixels of the original image. Corresponds to the JSON property height

Returns:

  • (Fixnum)


1666
1667
1668
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 1666

def height
  @height
end

#idString

ID of this media, which is generated by the API. Corresponds to the JSON property id

Returns:

  • (String)


1671
1672
1673
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 1671

def id
  @id
end

#kindString

The type of resource. Corresponds to the JSON property kind

Returns:

  • (String)


1676
1677
1678
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 1676

def kind
  @kind
end

#media_created_timeDateTime

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

Returns:

  • (DateTime)


1682
1683
1684
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 1682

def media_created_time
  @media_created_time
end

#media_urlString

The URL of this photo or video's still image. Corresponds to the JSON property mediaUrl

Returns:

  • (String)


1687
1688
1689
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 1687

def media_url
  @media_url
end

#publishedDateTime

The time at which this media was uploaded. Formatted as an RFC 3339 timestamp. Corresponds to the JSON property published

Returns:

  • (DateTime)


1692
1693
1694
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 1692

def published
  @published
end

#size_bytesFixnum

The size in bytes of this video. Corresponds to the JSON property sizeBytes

Returns:

  • (Fixnum)


1697
1698
1699
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 1697

def size_bytes
  @size_bytes
end

#streamsArray<Google::Apis::PlusDomainsV1::Videostream>

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



1703
1704
1705
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 1703

def streams
  @streams
end

#summaryString

A description, or caption, for this media. Corresponds to the JSON property summary

Returns:

  • (String)


1708
1709
1710
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 1708

def summary
  @summary
end

#updatedDateTime

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

Returns:

  • (DateTime)


1714
1715
1716
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 1714

def updated
  @updated
end

#urlString

The URL for the page that hosts this media. Corresponds to the JSON property url

Returns:

  • (String)


1719
1720
1721
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 1719

def url
  @url
end

#video_durationFixnum

The duration in milliseconds of this video. Corresponds to the JSON property videoDuration

Returns:

  • (Fixnum)


1724
1725
1726
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 1724

def video_duration
  @video_duration
end

#video_statusString

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

Returns:

  • (String)


1734
1735
1736
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 1734

def video_status
  @video_status
end

#widthFixnum

The width in pixels of the original image. Corresponds to the JSON property width

Returns:

  • (Fixnum)


1739
1740
1741
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 1739

def width
  @width
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
# 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