Class: Google::Apis::YoutubeV3::ChannelBannerResource

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

Overview

A channel banner returned as the response to a channel_banner.insert call.

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

Returns a new instance of ChannelBannerResource



1050
1051
1052
# File 'generated/google/apis/youtube_v3/classes.rb', line 1050

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

Instance Attribute Details

#etagString

Etag of this resource. Corresponds to the JSON property etag

Returns:

  • (String)


1037
1038
1039
# File 'generated/google/apis/youtube_v3/classes.rb', line 1037

def etag
  @etag
end

#kindString

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

Returns:

  • (String)


1043
1044
1045
# File 'generated/google/apis/youtube_v3/classes.rb', line 1043

def kind
  @kind
end

#urlString

The URL of this banner image. Corresponds to the JSON property url

Returns:

  • (String)


1048
1049
1050
# File 'generated/google/apis/youtube_v3/classes.rb', line 1048

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1055
1056
1057
1058
1059
# File 'generated/google/apis/youtube_v3/classes.rb', line 1055

def update!(**args)
  @etag = args[:etag] if args.key?(:etag)
  @kind = args[:kind] if args.key?(:kind)
  @url = args[:url] if args.key?(:url)
end