Class: Google::Apis::YoutubeV3::PromotedItemId
- Inherits:
-
Object
- Object
- Google::Apis::YoutubeV3::PromotedItemId
- 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
Describes a single promoted item id. It is a union of various possible types.
Instance Attribute Summary collapse
-
#recently_uploaded_by ⇒ String
If type is recentUpload, this field identifies the channel from which to take the recent upload.
-
#type ⇒ String
Describes the type of the promoted item.
-
#video_id ⇒ String
If the promoted item represents a video, this field represents the unique YouTube ID identifying it.
-
#website_url ⇒ String
If the promoted item represents a website, this field represents the url pointing to the website.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PromotedItemId
constructor
A new instance of PromotedItemId.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ PromotedItemId
Returns a new instance of PromotedItemId
5941 5942 5943 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 5941 def initialize(**args) update!(**args) end |
Instance Attribute Details
#recently_uploaded_by ⇒ String
If type is recentUpload, this field identifies the channel from which to take
the recent upload. If missing, the channel is assumed to be the same channel
for which the invideoPromotion is set.
Corresponds to the JSON property recentlyUploadedBy
5920 5921 5922 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 5920 def recently_uploaded_by @recently_uploaded_by end |
#type ⇒ String
Describes the type of the promoted item.
Corresponds to the JSON property type
5925 5926 5927 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 5925 def type @type end |
#video_id ⇒ String
If the promoted item represents a video, this field represents the unique
YouTube ID identifying it. This field will be present only if type has the
value video.
Corresponds to the JSON property videoId
5932 5933 5934 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 5932 def video_id @video_id end |
#website_url ⇒ String
If the promoted item represents a website, this field represents the url
pointing to the website. This field will be present only if type has the value
website.
Corresponds to the JSON property websiteUrl
5939 5940 5941 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 5939 def website_url @website_url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5946 5947 5948 5949 5950 5951 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 5946 def update!(**args) @recently_uploaded_by = args[:recently_uploaded_by] if args.key?(:recently_uploaded_by) @type = args[:type] if args.key?(:type) @video_id = args[:video_id] if args.key?(:video_id) @website_url = args[:website_url] if args.key?(:website_url) end |