Class: Google::Apis::YoutubeV3::Subscription
- Inherits:
-
Object
- Object
- Google::Apis::YoutubeV3::Subscription
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/youtube_v3/classes.rb,
lib/google/apis/youtube_v3/representations.rb,
lib/google/apis/youtube_v3/representations.rb
Overview
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.
Instance Attribute Summary collapse
-
#content_details ⇒ Google::Apis::YoutubeV3::SubscriptionContentDetails
Details about the content to witch a subscription refers.
-
#etag ⇒ String
Etag of this resource.
-
#id ⇒ String
The ID that YouTube uses to uniquely identify the subscription.
-
#kind ⇒ String
Identifies what kind of resource this is.
-
#snippet ⇒ Google::Apis::YoutubeV3::SubscriptionSnippet
Basic details about a subscription, including title, description and thumbnails of the subscribed item.
-
#subscriber_snippet ⇒ Google::Apis::YoutubeV3::SubscriptionSubscriberSnippet
Basic details about a subscription's subscriber including title, description, channel ID and thumbnails.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Subscription
constructor
A new instance of Subscription.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Subscription
Returns a new instance of Subscription.
6547 6548 6549 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 6547 def initialize(**args) update!(**args) end |
Instance Attribute Details
#content_details ⇒ Google::Apis::YoutubeV3::SubscriptionContentDetails
Details about the content to witch a subscription refers.
Corresponds to the JSON property contentDetails
6517 6518 6519 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 6517 def content_details @content_details end |
#etag ⇒ String
Etag of this resource.
Corresponds to the JSON property etag
6522 6523 6524 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 6522 def etag @etag end |
#id ⇒ String
The ID that YouTube uses to uniquely identify the subscription.
Corresponds to the JSON property id
6527 6528 6529 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 6527 def id @id end |
#kind ⇒ String
Identifies what kind of resource this is. Value: the fixed string "youtube#
subscription".
Corresponds to the JSON property kind
6533 6534 6535 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 6533 def kind @kind end |
#snippet ⇒ Google::Apis::YoutubeV3::SubscriptionSnippet
Basic details about a subscription, including title, description and
thumbnails of the subscribed item.
Corresponds to the JSON property snippet
6539 6540 6541 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 6539 def snippet @snippet end |
#subscriber_snippet ⇒ Google::Apis::YoutubeV3::SubscriptionSubscriberSnippet
Basic details about a subscription's subscriber including title, description,
channel ID and thumbnails.
Corresponds to the JSON property subscriberSnippet
6545 6546 6547 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 6545 def subscriber_snippet @subscriber_snippet end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6552 6553 6554 6555 6556 6557 6558 6559 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 6552 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 |