class Google::Apis::YoutubeV3::ResourceId

A resource id is a generic reference that points to another YouTube resource.

Attributes

channel_id[RW]

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]

kind[RW]

The type of the API resource. Corresponds to the JSON property `kind` @return [String]

playlist_id[RW]

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]

video_id[RW]

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

new(**args) click to toggle source
# File lib/google/apis/youtube_v3/classes.rb, line 6182
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

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