Class: Google::Apis::YoutubeAnalyticsV1::GroupItem

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

Defined Under Namespace

Classes: Resource

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.



356
357
358
# File 'generated/google/apis/youtube_analytics_v1/classes.rb', line 356

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

Instance Attribute Details

#etagString

Corresponds to the JSON property etag

Returns:

  • (String)


334
335
336
# File 'generated/google/apis/youtube_analytics_v1/classes.rb', line 334

def etag
  @etag
end

#group_idString

Corresponds to the JSON property groupId

Returns:

  • (String)


339
340
341
# File 'generated/google/apis/youtube_analytics_v1/classes.rb', line 339

def group_id
  @group_id
end

#idString

Corresponds to the JSON property id

Returns:

  • (String)


344
345
346
# File 'generated/google/apis/youtube_analytics_v1/classes.rb', line 344

def id
  @id
end

#kindString

Corresponds to the JSON property kind

Returns:

  • (String)


349
350
351
# File 'generated/google/apis/youtube_analytics_v1/classes.rb', line 349

def kind
  @kind
end

#resourceGoogle::Apis::YoutubeAnalyticsV1::GroupItem::Resource

Corresponds to the JSON property resource



354
355
356
# File 'generated/google/apis/youtube_analytics_v1/classes.rb', line 354

def resource
  @resource
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



361
362
363
364
365
366
367
# File 'generated/google/apis/youtube_analytics_v1/classes.rb', line 361

def update!(**args)
  @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