Class: Google::Apis::YoutubeAnalyticsV2::GroupItem

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

Overview

A group item.

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) ⇒ GroupItem

Returns a new instance of GroupItem



282
283
284
# File 'generated/google/apis/youtube_analytics_v2/classes.rb', line 282

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

Instance Attribute Details

#errorsGoogle::Apis::YoutubeAnalyticsV2::Errors

Request Error information. The presence of an error field signals that the operation has failed. Corresponds to the JSON property errors



247
248
249
# File 'generated/google/apis/youtube_analytics_v2/classes.rb', line 247

def errors
  @errors
end

#etagString

The Etag of this resource. Corresponds to the JSON property etag

Returns:

  • (String)


252
253
254
# File 'generated/google/apis/youtube_analytics_v2/classes.rb', line 252

def etag
  @etag
end

#group_idString

The ID that YouTube uses to uniquely identify the group that contains the item. Corresponds to the JSON property groupId

Returns:

  • (String)


258
259
260
# File 'generated/google/apis/youtube_analytics_v2/classes.rb', line 258

def group_id
  @group_id
end

#idString

The ID that YouTube uses to uniquely identify the channel, video, playlist, or asset resource that is included in the group. Note that this ID refers specifically to the inclusion of that resource in a particular group and is different than the channel ID, video ID, playlist ID, or asset ID that uniquely identifies the resource itself. The resource.id property's value specifies the unique channel, video, playlist, or asset ID. Corresponds to the JSON property id

Returns:

  • (String)


269
270
271
# File 'generated/google/apis/youtube_analytics_v2/classes.rb', line 269

def id
  @id
end

#kindString

Identifies the API resource's type. The value will be youtube#groupItem. Corresponds to the JSON property kind

Returns:

  • (String)


274
275
276
# File 'generated/google/apis/youtube_analytics_v2/classes.rb', line 274

def kind
  @kind
end

#resourceGoogle::Apis::YoutubeAnalyticsV2::GroupItemResource

The resource object contains information that identifies the item being added to the group. Corresponds to the JSON property resource



280
281
282
# File 'generated/google/apis/youtube_analytics_v2/classes.rb', line 280

def resource
  @resource
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



287
288
289
290
291
292
293
294
# File 'generated/google/apis/youtube_analytics_v2/classes.rb', line 287

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