Class: Google::Apis::YoutubeV3::VideoContentDetails
- Inherits:
-
Object
- Object
- Google::Apis::YoutubeV3::VideoContentDetails
- 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
Details about the content of a YouTube Video.
Instance Attribute Summary collapse
-
#caption ⇒ String
The value of captions indicates whether the video has captions or not.
-
#content_rating ⇒ Google::Apis::YoutubeV3::ContentRating
Ratings schemes.
-
#country_restriction ⇒ Google::Apis::YoutubeV3::AccessPolicy
Rights management policy for YouTube resources.
-
#definition ⇒ String
The value of definition indicates whether the video is available in high definition or only in standard definition.
-
#dimension ⇒ String
The value of dimension indicates whether the video is available in 3D or in 2D.
-
#duration ⇒ String
The length of the video.
-
#has_custom_thumbnail ⇒ Boolean
(also: #has_custom_thumbnail?)
Indicates whether the video uploader has provided a custom thumbnail image for the video.
-
#licensed_content ⇒ Boolean
(also: #licensed_content?)
The value of is_license_content indicates whether the video is licensed content.
-
#projection ⇒ String
Specifies the projection format of the video.
-
#region_restriction ⇒ Google::Apis::YoutubeV3::VideoContentDetailsRegionRestriction
DEPRECATED Region restriction of the video.
Instance Method Summary collapse
-
#initialize(**args) ⇒ VideoContentDetails
constructor
A new instance of VideoContentDetails.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ VideoContentDetails
Returns a new instance of VideoContentDetails
7417 7418 7419 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 7417 def initialize(**args) update!(**args) end |
Instance Attribute Details
#caption ⇒ String
The value of captions indicates whether the video has captions or not.
Corresponds to the JSON property caption
7359 7360 7361 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 7359 def @caption end |
#content_rating ⇒ Google::Apis::YoutubeV3::ContentRating
Ratings schemes. The country-specific ratings are mostly for movies and shows.
NEXT_ID: 71
Corresponds to the JSON property contentRating
7365 7366 7367 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 7365 def @content_rating end |
#country_restriction ⇒ Google::Apis::YoutubeV3::AccessPolicy
Rights management policy for YouTube resources.
Corresponds to the JSON property countryRestriction
7370 7371 7372 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 7370 def country_restriction @country_restriction end |
#definition ⇒ String
The value of definition indicates whether the video is available in high
definition or only in standard definition.
Corresponds to the JSON property definition
7376 7377 7378 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 7376 def definition @definition end |
#dimension ⇒ String
The value of dimension indicates whether the video is available in 3D or in 2D.
Corresponds to the JSON property dimension
7381 7382 7383 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 7381 def dimension @dimension end |
#duration ⇒ String
The length of the video. The tag value is an ISO 8601 duration in the format
PT#M#S, in which the letters PT indicate that the value specifies a period of
time, and the letters M and S refer to length in minutes and seconds,
respectively. The # characters preceding the M and S letters are both integers
that specify the number of minutes (or seconds) of the video. For example, a
value of PT15M51S indicates that the video is 15 minutes and 51 seconds long.
Corresponds to the JSON property duration
7391 7392 7393 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 7391 def duration @duration end |
#has_custom_thumbnail ⇒ Boolean Also known as: has_custom_thumbnail?
Indicates whether the video uploader has provided a custom thumbnail image for
the video. This property is only visible to the video uploader.
Corresponds to the JSON property hasCustomThumbnail
7397 7398 7399 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 7397 def has_custom_thumbnail @has_custom_thumbnail end |
#licensed_content ⇒ Boolean Also known as: licensed_content?
The value of is_license_content indicates whether the video is licensed
content.
Corresponds to the JSON property licensedContent
7404 7405 7406 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 7404 def licensed_content @licensed_content end |
#projection ⇒ String
Specifies the projection format of the video.
Corresponds to the JSON property projection
7410 7411 7412 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 7410 def projection @projection end |
#region_restriction ⇒ Google::Apis::YoutubeV3::VideoContentDetailsRegionRestriction
DEPRECATED Region restriction of the video.
Corresponds to the JSON property regionRestriction
7415 7416 7417 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 7415 def region_restriction @region_restriction end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 7422 def update!(**args) @caption = args[:caption] if args.key?(:caption) @content_rating = args[:content_rating] if args.key?(:content_rating) @country_restriction = args[:country_restriction] if args.key?(:country_restriction) @definition = args[:definition] if args.key?(:definition) @dimension = args[:dimension] if args.key?(:dimension) @duration = args[:duration] if args.key?(:duration) @has_custom_thumbnail = args[:has_custom_thumbnail] if args.key?(:has_custom_thumbnail) @licensed_content = args[:licensed_content] if args.key?(:licensed_content) @projection = args[:projection] if args.key?(:projection) @region_restriction = args[:region_restriction] if args.key?(:region_restriction) end |