Class: Google::Apis::PlusDomainsV1::Media
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::PlusDomainsV1::Media
 
 
- 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
Instance Attribute Summary collapse
- 
  
    
      #author  ⇒ Google::Apis::PlusDomainsV1::Media::Author 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The person who uploaded this media.
 - 
  
    
      #display_name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The display name for this media.
 - 
  
    
      #etag  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
ETag of this response for caching purposes.
 - 
  
    
      #exif  ⇒ Google::Apis::PlusDomainsV1::Media::Exif 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Exif information of the media item.
 - 
  
    
      #height  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The height in pixels of the original image.
 - 
  
    
      #id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
ID of this media, which is generated by the API.
 - 
  
    
      #kind  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The type of resource.
 - 
  
    
      #media_created_time  ⇒ DateTime 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The time at which this media was originally created in UTC.
 - 
  
    
      #media_url  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The URL of this photo or video's still image.
 - 
  
    
      #published  ⇒ DateTime 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The time at which this media was uploaded.
 - 
  
    
      #size_bytes  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The size in bytes of this video.
 - 
  
    
      #streams  ⇒ Array<Google::Apis::PlusDomainsV1::Videostream> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The list of video streams for this video.
 - 
  
    
      #summary  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
A description, or caption, for this media.
 - 
  
    
      #updated  ⇒ DateTime 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The time at which this media was last updated.
 - 
  
    
      #url  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The URL for the page that hosts this media.
 - 
  
    
      #video_duration  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The duration in milliseconds of this video.
 - 
  
    
      #video_status  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The encoding status of this video.
 - 
  
    
      #width  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The width in pixels of the original image.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Media 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of Media.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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
#author ⇒ Google::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 end  | 
  
#display_name ⇒ String
The display name for this media.
Corresponds to the JSON property displayName
      1651 1652 1653  | 
    
      # File 'generated/google/apis/plus_domains_v1/classes.rb', line 1651 def display_name @display_name end  | 
  
#etag ⇒ String
ETag of this response for caching purposes.
Corresponds to the JSON property etag
      1656 1657 1658  | 
    
      # File 'generated/google/apis/plus_domains_v1/classes.rb', line 1656 def etag @etag end  | 
  
#exif ⇒ Google::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  | 
  
#height ⇒ Fixnum
The height in pixels of the original image.
Corresponds to the JSON property height
      1666 1667 1668  | 
    
      # File 'generated/google/apis/plus_domains_v1/classes.rb', line 1666 def height @height end  | 
  
#id ⇒ String
ID of this media, which is generated by the API.
Corresponds to the JSON property id
      1671 1672 1673  | 
    
      # File 'generated/google/apis/plus_domains_v1/classes.rb', line 1671 def id @id end  | 
  
#kind ⇒ String
The type of resource.
Corresponds to the JSON property kind
      1676 1677 1678  | 
    
      # File 'generated/google/apis/plus_domains_v1/classes.rb', line 1676 def kind @kind end  | 
  
#media_created_time ⇒ DateTime
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
      1682 1683 1684  | 
    
      # File 'generated/google/apis/plus_domains_v1/classes.rb', line 1682 def media_created_time @media_created_time end  | 
  
#media_url ⇒ String
The URL of this photo or video's still image.
Corresponds to the JSON property mediaUrl
      1687 1688 1689  | 
    
      # File 'generated/google/apis/plus_domains_v1/classes.rb', line 1687 def media_url @media_url end  | 
  
#published ⇒ DateTime
The time at which this media was uploaded. Formatted as an RFC 3339 timestamp.
Corresponds to the JSON property published
      1692 1693 1694  | 
    
      # File 'generated/google/apis/plus_domains_v1/classes.rb', line 1692 def published @published end  | 
  
#size_bytes ⇒ Fixnum
The size in bytes of this video.
Corresponds to the JSON property sizeBytes
      1697 1698 1699  | 
    
      # File 'generated/google/apis/plus_domains_v1/classes.rb', line 1697 def size_bytes @size_bytes end  | 
  
#streams ⇒ Array<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  | 
  
#summary ⇒ String
A description, or caption, for this media.
Corresponds to the JSON property summary
      1708 1709 1710  | 
    
      # File 'generated/google/apis/plus_domains_v1/classes.rb', line 1708 def summary @summary end  | 
  
#updated ⇒ DateTime
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
      1714 1715 1716  | 
    
      # File 'generated/google/apis/plus_domains_v1/classes.rb', line 1714 def updated @updated end  | 
  
#url ⇒ String
The URL for the page that hosts this media.
Corresponds to the JSON property url
      1719 1720 1721  | 
    
      # File 'generated/google/apis/plus_domains_v1/classes.rb', line 1719 def url @url end  | 
  
#video_duration ⇒ Fixnum
The duration in milliseconds of this video.
Corresponds to the JSON property videoDuration
      1724 1725 1726  | 
    
      # File 'generated/google/apis/plus_domains_v1/classes.rb', line 1724 def video_duration @video_duration end  | 
  
#video_status ⇒ String
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 
      1734 1735 1736  | 
    
      # File 'generated/google/apis/plus_domains_v1/classes.rb', line 1734 def video_status @video_status end  | 
  
#width ⇒ Fixnum
The width in pixels of the original image.
Corresponds to the JSON property width
      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  |