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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ChannelSection

Returns a new instance of ChannelSection.



1495
1496
1497
# File 'lib/google/apis/youtube_v3/classes.rb', line 1495

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



1462
1463
1464
# File 'lib/google/apis/youtube_v3/classes.rb', line 1462

def content_details
  @content_details
end

#etagString

Etag of this resource. Corresponds to the JSON property etag

Returns:

  • (String)


1467
1468
1469
# File 'lib/google/apis/youtube_v3/classes.rb', line 1467

def etag
  @etag
end

#idString

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

Returns:

  • (String)


1472
1473
1474
# File 'lib/google/apis/youtube_v3/classes.rb', line 1472

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)


1478
1479
1480
# File 'lib/google/apis/youtube_v3/classes.rb', line 1478

def kind
  @kind
end

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

Localizations for different languages Corresponds to the JSON property localizations



1483
1484
1485
# File 'lib/google/apis/youtube_v3/classes.rb', line 1483

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



1488
1489
1490
# File 'lib/google/apis/youtube_v3/classes.rb', line 1488

def snippet
  @snippet
end

#targetingGoogle::Apis::YoutubeV3::ChannelSectionTargeting

ChannelSection targeting setting. Corresponds to the JSON property targeting



1493
1494
1495
# File 'lib/google/apis/youtube_v3/classes.rb', line 1493

def targeting
  @targeting
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1500
1501
1502
1503
1504
1505
1506
1507
1508
# File 'lib/google/apis/youtube_v3/classes.rb', line 1500

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