class Google::Apis::YoutubeV3::Activity
An activity resource contains information about an action that a particular channel, or user, has taken on YouTube.The actions reported in activity feeds include rating a video, sharing a video, marking a video as a favorite, commenting on a video, uploading a video, and so forth. Each activity resource identifies the type of action, the channel associated with the action, and the resource(s) associated with the action, such as the video that was rated or uploaded.
Attributes
Details about the content of an activity: the video that was shared, the channel that was subscribed to, etc. Corresponds to the JSON property `contentDetails` @return [Google::Apis::YoutubeV3::ActivityContentDetails]
Etag of this resource Corresponds to the JSON property `etag` @return [String]
The ID that YouTube uses to uniquely identify the activity. Corresponds to the JSON property `id` @return [String]
Identifies what kind of resource this is. Value: the fixed string “youtube# activity”. Corresponds to the JSON property `kind` @return [String]
Basic details about an activity, including title, description, thumbnails, activity type and group. Next ID: 12 Corresponds to the JSON property `snippet` @return [Google::Apis::YoutubeV3::ActivitySnippet]
Public Class Methods
# File lib/google/apis/youtube_v3/classes.rb, line 147 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/youtube_v3/classes.rb, line 152 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) end