Class: Google::Apis::YoutubeAnalyticsV2::GroupItem
- Inherits:
-
Object
- Object
- Google::Apis::YoutubeAnalyticsV2::GroupItem
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/youtube_analytics_v2/classes.rb,
lib/google/apis/youtube_analytics_v2/representations.rb,
lib/google/apis/youtube_analytics_v2/representations.rb
Overview
A group item.
Instance Attribute Summary collapse
-
#errors ⇒ Google::Apis::YoutubeAnalyticsV2::Errors
Request Error information.
-
#etag ⇒ String
The Etag of this resource.
-
#group_id ⇒ String
The ID that YouTube uses to uniquely identify the group that contains the item.
-
#id ⇒ String
The ID that YouTube uses to uniquely identify the
channel
,video
,playlist
, orasset
resource that is included in the group. -
#kind ⇒ String
Identifies the API resource's type.
-
#resource ⇒ Google::Apis::YoutubeAnalyticsV2::GroupItemResource
The
resource
object contains information that identifies the item being added to the group.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GroupItem
constructor
A new instance of GroupItem.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GroupItem
Returns a new instance of GroupItem.
264 265 266 |
# File 'lib/google/apis/youtube_analytics_v2/classes.rb', line 264 def initialize(**args) update!(**args) end |
Instance Attribute Details
#errors ⇒ Google::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 'lib/google/apis/youtube_analytics_v2/classes.rb', line 231 def errors @errors end |
#etag ⇒ String
The Etag of this resource.
Corresponds to the JSON property etag
236 237 238 |
# File 'lib/google/apis/youtube_analytics_v2/classes.rb', line 236 def etag @etag end |
#group_id ⇒ String
The ID that YouTube uses to uniquely identify the group that contains the item.
Corresponds to the JSON property groupId
241 242 243 |
# File 'lib/google/apis/youtube_analytics_v2/classes.rb', line 241 def group_id @group_id end |
#id ⇒ String
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
251 252 253 |
# File 'lib/google/apis/youtube_analytics_v2/classes.rb', line 251 def id @id end |
#kind ⇒ String
Identifies the API resource's type. The value will be youtube#groupItem
.
Corresponds to the JSON property kind
256 257 258 |
# File 'lib/google/apis/youtube_analytics_v2/classes.rb', line 256 def kind @kind end |
#resource ⇒ Google::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 'lib/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 'lib/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 |