Class: Google::Apis::YoutubeV3::ChannelSection

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

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) ⇒ ChannelSection

Returns a new instance of ChannelSection.



1432
1433
1434
# File 'generated/google/apis/youtube_v3/classes.rb', line 1432

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

Instance Attribute Details

#content_detailsGoogle::Apis::YoutubeV3::ChannelSectionContentDetails

Details about a channelsection, including playlists and channels. Corresponds to the JSON property contentDetails



1399
1400
1401
# File 'generated/google/apis/youtube_v3/classes.rb', line 1399

def content_details
  @content_details
end

#etagString

Etag of this resource. Corresponds to the JSON property etag

Returns:

  • (String)


1404
1405
1406
# File 'generated/google/apis/youtube_v3/classes.rb', line 1404

def etag
  @etag
end

#idString

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

Returns:

  • (String)


1409
1410
1411
# File 'generated/google/apis/youtube_v3/classes.rb', line 1409

def id
  @id
end

#kindString

Identifies what kind of resource this is. Value: the fixed string "youtube# channelSection". Corresponds to the JSON property kind

Returns:

  • (String)


1415
1416
1417
# File 'generated/google/apis/youtube_v3/classes.rb', line 1415

def kind
  @kind
end

#localizationsHash<String,Google::Apis::YoutubeV3::ChannelSectionLocalization>

Localizations for different languages Corresponds to the JSON property localizations



1420
1421
1422
# File 'generated/google/apis/youtube_v3/classes.rb', line 1420

def localizations
  @localizations
end

#snippetGoogle::Apis::YoutubeV3::ChannelSectionSnippet

Basic details about a channel section, including title, style and position. Corresponds to the JSON property snippet



1425
1426
1427
# File 'generated/google/apis/youtube_v3/classes.rb', line 1425

def snippet
  @snippet
end

#targetingGoogle::Apis::YoutubeV3::ChannelSectionTargeting

ChannelSection targeting setting. Corresponds to the JSON property targeting



1430
1431
1432
# File 'generated/google/apis/youtube_v3/classes.rb', line 1430

def targeting
  @targeting
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1437
1438
1439
1440
1441
1442
1443
1444
1445
# File 'generated/google/apis/youtube_v3/classes.rb', line 1437

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