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

Constructor Details

#initialize(**args) ⇒ GroupItem

Returns a new instance of GroupItem.



264
265
266
# File 'generated/google/apis/youtube_analytics_v2/classes.rb', line 264

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



231
232
233
# File 'generated/google/apis/youtube_analytics_v2/classes.rb', line 231

def errors
  @errors
end

#etagString

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

Returns:

  • (String)


236
237
238
# File 'generated/google/apis/youtube_analytics_v2/classes.rb', line 236

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)


241
242
243
# File 'generated/google/apis/youtube_analytics_v2/classes.rb', line 241

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)


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

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)


256
257
258
# File 'generated/google/apis/youtube_analytics_v2/classes.rb', line 256

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



262
263
264
# File 'generated/google/apis/youtube_analytics_v2/classes.rb', line 262

def resource
  @resource
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



269
270
271
272
273
274
275
276
# File 'generated/google/apis/youtube_analytics_v2/classes.rb', line 269

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