class Google::Apis::YoutubeV3::VideoSnippet

Basic details about a video, including title, description, uploader, thumbnails and category.

Attributes

category_id[RW]

The YouTube video category associated with the video. Corresponds to the JSON property `categoryId` @return [String]

channel_id[RW]

The ID that YouTube uses to uniquely identify the channel that the video was uploaded to. Corresponds to the JSON property `channelId` @return [String]

channel_title[RW]

Channel title for the channel that the video belongs to. Corresponds to the JSON property `channelTitle` @return [String]

default_audio_language[RW]

The default_audio_language property specifies the language spoken in the video' s default audio track. Corresponds to the JSON property `defaultAudioLanguage` @return [String]

default_language[RW]

The language of the videos's default snippet. Corresponds to the JSON property `defaultLanguage` @return [String]

description[RW]

The video's description. @mutable youtube.videos.insert youtube.videos.update Corresponds to the JSON property `description` @return [String]

live_broadcast_content[RW]

Indicates if the video is an upcoming/active live broadcast. Or it's “none” if the video is not an upcoming/active live broadcast. Corresponds to the JSON property `liveBroadcastContent` @return [String]

localized[RW]

Localized versions of certain video properties (e.g. title). Corresponds to the JSON property `localized` @return [Google::Apis::YoutubeV3::VideoLocalization]

published_at[RW]

The date and time when the video was uploaded. Corresponds to the JSON property `publishedAt` @return [DateTime]

tags[RW]

A list of keyword tags associated with the video. Tags may contain spaces. Corresponds to the JSON property `tags` @return [Array<String>]

thumbnails[RW]

Internal representation of thumbnails for a YouTube resource. Corresponds to the JSON property `thumbnails` @return [Google::Apis::YoutubeV3::ThumbnailDetails]

title[RW]

The video's title. @mutable youtube.videos.insert youtube.videos.update Corresponds to the JSON property `title` @return [String]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/youtube_v3/classes.rb, line 8432
def update!(**args)
  @category_id = args[:category_id] if args.key?(:category_id)
  @channel_id = args[:channel_id] if args.key?(:channel_id)
  @channel_title = args[:channel_title] if args.key?(:channel_title)
  @default_audio_language = args[:default_audio_language] if args.key?(:default_audio_language)
  @default_language = args[:default_language] if args.key?(:default_language)
  @description = args[:description] if args.key?(:description)
  @live_broadcast_content = args[:live_broadcast_content] if args.key?(:live_broadcast_content)
  @localized = args[:localized] if args.key?(:localized)
  @published_at = args[:published_at] if args.key?(:published_at)
  @tags = args[:tags] if args.key?(:tags)
  @thumbnails = args[:thumbnails] if args.key?(:thumbnails)
  @title = args[:title] if args.key?(:title)
end