class Google::Apis::YoutubeV3::ResourceId
A resource id is a generic reference that points to another YouTube resource.
Attributes
The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel. Corresponds to the JSON property `channelId` @return [String]
The type of the API resource. Corresponds to the JSON property `kind` @return [String]
The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist. Corresponds to the JSON property `playlistId` @return [String]
The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video. Corresponds to the JSON property `videoId` @return [String]
Public Class Methods
# File lib/google/apis/youtube_v3/classes.rb, line 6182 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/youtube_v3/classes.rb, line 6187 def update!(**args) @channel_id = args[:channel_id] if args.key?(:channel_id) @kind = args[:kind] if args.key?(:kind) @playlist_id = args[:playlist_id] if args.key?(:playlist_id) @video_id = args[:video_id] if args.key?(:video_id) end