Class: Google::Apis::YoutubeAnalyticsV2::GroupItemResource

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/youtube_analytics_v2/classes.rb,
generated/google/apis/youtube_analytics_v2/representations.rb,
generated/google/apis/youtube_analytics_v2/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GroupItemResource

Returns a new instance of GroupItemResource.



296
297
298
# File 'generated/google/apis/youtube_analytics_v2/classes.rb', line 296

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#idString

The channel, video, playlist, or asset ID that YouTube uses to uniquely identify the item that is being added to the group. Corresponds to the JSON property id

Returns:

  • (String)


287
288
289
# File 'generated/google/apis/youtube_analytics_v2/classes.rb', line 287

def id
  @id
end

#kindString

Identifies the type of resource being added to the group. Valid values for this property are: * youtube#channel * youtube#playlist * youtube#video * youtubePartner#asset Corresponds to the JSON property kind

Returns:

  • (String)


294
295
296
# File 'generated/google/apis/youtube_analytics_v2/classes.rb', line 294

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



301
302
303
304
# File 'generated/google/apis/youtube_analytics_v2/classes.rb', line 301

def update!(**args)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
end