Class: Google::Apis::YoutubeAnalyticsV2::Group

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.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Group

Returns a new instance of Group.



181
182
183
# File 'generated/google/apis/youtube_analytics_v2/classes.rb', line 181

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

Instance Attribute Details

#content_detailsGoogle::Apis::YoutubeAnalyticsV2::GroupContentDetails

A group's content details. Corresponds to the JSON property contentDetails



153
154
155
# File 'generated/google/apis/youtube_analytics_v2/classes.rb', line 153

def content_details
  @content_details
end

#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



159
160
161
# File 'generated/google/apis/youtube_analytics_v2/classes.rb', line 159

def errors
  @errors
end

#etagString

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

Returns:

  • (String)


164
165
166
# File 'generated/google/apis/youtube_analytics_v2/classes.rb', line 164

def etag
  @etag
end

#idString

The ID that YouTube uses to uniquely identify the group. Corresponds to the JSON property id

Returns:

  • (String)


169
170
171
# File 'generated/google/apis/youtube_analytics_v2/classes.rb', line 169

def id
  @id
end

#kindString

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

Returns:

  • (String)


174
175
176
# File 'generated/google/apis/youtube_analytics_v2/classes.rb', line 174

def kind
  @kind
end

#snippetGoogle::Apis::YoutubeAnalyticsV2::GroupSnippet

A group snippet. Corresponds to the JSON property snippet



179
180
181
# File 'generated/google/apis/youtube_analytics_v2/classes.rb', line 179

def snippet
  @snippet
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



186
187
188
189
190
191
192
193
# File 'generated/google/apis/youtube_analytics_v2/classes.rb', line 186

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