Class: Google::Apis::YoutubeAnalyticsV1beta1::GroupItem

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/youtube_analytics_v1beta1/classes.rb,
generated/google/apis/youtube_analytics_v1beta1/representations.rb,
generated/google/apis/youtube_analytics_v1beta1/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


147
148
149
# File 'generated/google/apis/youtube_analytics_v1beta1/classes.rb', line 147

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

Instance Attribute Details

#etagString

Corresponds to the JSON property etag


125
126
127
# File 'generated/google/apis/youtube_analytics_v1beta1/classes.rb', line 125

def etag
  @etag
end

#group_idString

Corresponds to the JSON property groupId


130
131
132
# File 'generated/google/apis/youtube_analytics_v1beta1/classes.rb', line 130

def group_id
  @group_id
end

#idString

Corresponds to the JSON property id


135
136
137
# File 'generated/google/apis/youtube_analytics_v1beta1/classes.rb', line 135

def id
  @id
end

#kindString

Corresponds to the JSON property kind


140
141
142
# File 'generated/google/apis/youtube_analytics_v1beta1/classes.rb', line 140

def kind
  @kind
end

#resourceGoogle::Apis::YoutubeAnalyticsV1beta1::GroupItem::Resource

Corresponds to the JSON property resource


145
146
147
# File 'generated/google/apis/youtube_analytics_v1beta1/classes.rb', line 145

def resource
  @resource
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


152
153
154
155
156
157
158
# File 'generated/google/apis/youtube_analytics_v1beta1/classes.rb', line 152

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