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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Group

Returns a new instance of Group



193
194
195
# File 'generated/google/apis/youtube_analytics_v2/classes.rb', line 193

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



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

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



171
172
173
# File 'generated/google/apis/youtube_analytics_v2/classes.rb', line 171

def errors
  @errors
end

#etagString

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

Returns:

  • (String)


176
177
178
# File 'generated/google/apis/youtube_analytics_v2/classes.rb', line 176

def etag
  @etag
end

#idString

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

Returns:

  • (String)


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

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)


186
187
188
# File 'generated/google/apis/youtube_analytics_v2/classes.rb', line 186

def kind
  @kind
end

#snippetGoogle::Apis::YoutubeAnalyticsV2::GroupSnippet

A group snippet. Corresponds to the JSON property snippet



191
192
193
# File 'generated/google/apis/youtube_analytics_v2/classes.rb', line 191

def snippet
  @snippet
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



198
199
200
201
202
203
204
205
# File 'generated/google/apis/youtube_analytics_v2/classes.rb', line 198

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