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

content_details[RW]

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[RW]

Etag of this resource. Corresponds to the JSON property `etag` @return [String]

id[RW]

The ID that YouTube uses to uniquely identify the activity. Corresponds to the JSON property `id` @return [String]

kind[RW]

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

snippet[RW]

Basic details about an activity, including title, description, thumbnails, activity type and group. Corresponds to the JSON property `snippet` @return [Google::Apis::YoutubeV3::ActivitySnippet]

Public Class Methods

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