class Google::Apis::YoutubeV3::SubscriptionSnippet

Basic details about a subscription, including title, description and thumbnails of the subscribed item.

Attributes

channel_id[RW]

The ID that YouTube uses to uniquely identify the subscriber's channel. Corresponds to the JSON property `channelId` @return [String]

channel_title[RW]

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

description[RW]

The subscription's details. Corresponds to the JSON property `description` @return [String]

published_at[RW]

The date and time that the subscription was created. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. Corresponds to the JSON property `publishedAt` @return [DateTime]

resource_id[RW]

A resource id is a generic reference that points to another YouTube resource. Corresponds to the JSON property `resourceId` @return [Google::Apis::YoutubeV3::ResourceId]

thumbnails[RW]

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

title[RW]

The subscription's title. Corresponds to the JSON property `title` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/youtube_v3/classes.rb, line 6418
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 6423
def update!(**args)
  @channel_id = args[:channel_id] if args.key?(:channel_id)
  @channel_title = args[:channel_title] if args.key?(:channel_title)
  @description = args[:description] if args.key?(:description)
  @published_at = args[:published_at] if args.key?(:published_at)
  @resource_id = args[:resource_id] if args.key?(:resource_id)
  @thumbnails = args[:thumbnails] if args.key?(:thumbnails)
  @title = args[:title] if args.key?(:title)
end