class Google::Apis::YoutubeV3::Playlist

A playlist resource represents a YouTube playlist. A playlist is a collection of videos that can be viewed sequentially and shared with other users. A playlist can contain up to 200 videos, and YouTube does not limit the number of playlists that each user creates. By default, playlists are publicly visible to other users, but playlists can be public or private. YouTube also uses playlists to identify special collections of videos for a channel, such as:

which is a collection of a person, group, or company's videos, playlists, and other YouTube information. You can retrieve the playlist IDs for each of these lists from the channel resource for a given channel. You can then use the playlistItems.list method to retrieve any of those lists. You can also add or remove items from those lists by calling the playlistItems.insert and playlistItems.delete methods.

Attributes

content_details[RW]

The contentDetails object contains information like video count. Corresponds to the JSON property `contentDetails` @return [Google::Apis::YoutubeV3::PlaylistContentDetails]

etag[RW]

Etag of this resource. Corresponds to the JSON property `etag` @return [String]

id[RW]

The ID that YouTube uses to uniquely identify the playlist. Corresponds to the JSON property `id` @return [String]

kind[RW]

Identifies what kind of resource this is. Value: the fixed string “youtube# playlist”. Corresponds to the JSON property `kind` @return [String]

localizations[RW]

Localizations for different languages Corresponds to the JSON property `localizations` @return [Hash<String,Google::Apis::YoutubeV3::PlaylistLocalization>]

player[RW]

The player object contains information that you would use to play the playlist in an embedded player. Corresponds to the JSON property `player` @return [Google::Apis::YoutubeV3::PlaylistPlayer]

snippet[RW]

Basic details about a playlist, including title, description and thumbnails. Corresponds to the JSON property `snippet` @return [Google::Apis::YoutubeV3::PlaylistSnippet]

status[RW]

The status object contains status information for the playlist. Corresponds to the JSON property `status` @return [Google::Apis::YoutubeV3::PlaylistStatus]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/youtube_v3/classes.rb, line 5244
def update!(**args)
  @content_details = args[:content_details] if args.key?(:content_details)
  @etag = args[:etag] if args.key?(:etag)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @localizations = args[:localizations] if args.key?(:localizations)
  @player = args[:player] if args.key?(:player)
  @snippet = args[:snippet] if args.key?(:snippet)
  @status = args[:status] if args.key?(:status)
end