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

content_details[RW]

Details about the content to witch a subscription refers. Corresponds to the JSON property `contentDetails` @return [Google::Apis::YoutubeV3::SubscriptionContentDetails]

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 subscription. Corresponds to the JSON property `id` @return [String]

kind[RW]

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

snippet[RW]

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]

subscriber_snippet[RW]

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

new(**args) click to toggle source
# File generated/google/apis/youtube_v3/classes.rb, line 6260
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 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