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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GroupItemResource

Returns a new instance of GroupItemResource



317
318
319
# File 'generated/google/apis/youtube_analytics_v2/classes.rb', line 317

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)


305
306
307
# File 'generated/google/apis/youtube_analytics_v2/classes.rb', line 305

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)


315
316
317
# File 'generated/google/apis/youtube_analytics_v2/classes.rb', line 315

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



322
323
324
325
# File 'generated/google/apis/youtube_analytics_v2/classes.rb', line 322

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