class Google::Apis::YoutubeV3::Subscription
A subscription resource contains information about a YouTube user subscription. A subscription notifies a user when new videos are added to a channel or when another user takes one of several actions on YouTube, such as uploading a video, rating a video, or commenting on a video.
Attributes
Details about the content to witch a subscription refers. Corresponds to the JSON property `contentDetails` @return [Google::Apis::YoutubeV3::SubscriptionContentDetails]
Etag of this resource. Corresponds to the JSON property `etag` @return [String]
The ID that YouTube uses to uniquely identify the subscription. Corresponds to the JSON property `id` @return [String]
Identifies what kind of resource this is. Value: the fixed string “youtube# subscription”. Corresponds to the JSON property `kind` @return [String]
Basic details about a subscription, including title, description and thumbnails of the subscribed item. Corresponds to the JSON property `snippet` @return [Google::Apis::YoutubeV3::SubscriptionSnippet]
Basic details about a subscription's subscriber including title, description, channel ID and thumbnails. Corresponds to the JSON property `subscriberSnippet` @return [Google::Apis::YoutubeV3::SubscriptionSubscriberSnippet]
Public Class Methods
# File generated/google/apis/youtube_v3/classes.rb, line 6260 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/youtube_v3/classes.rb, line 6265 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) @snippet = args[:snippet] if args.key?(:snippet) @subscriber_snippet = args[:subscriber_snippet] if args.key?(:subscriber_snippet) end