Class: Google::Apis::YoutubeV3::VideoContentDetails

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

Details about the content of a YouTube Video.

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

Returns a new instance of VideoContentDetails



7565
7566
7567
# File 'generated/google/apis/youtube_v3/classes.rb', line 7565

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

Instance Attribute Details

#captionString

The value of captions indicates whether the video has captions or not. Corresponds to the JSON property caption

Returns:

  • (String)


7507
7508
7509
# File 'generated/google/apis/youtube_v3/classes.rb', line 7507

def caption
  @caption
end

#content_ratingGoogle::Apis::YoutubeV3::ContentRating

Ratings schemes. The country-specific ratings are mostly for movies and shows. NEXT_ID: 69 Corresponds to the JSON property contentRating



7513
7514
7515
# File 'generated/google/apis/youtube_v3/classes.rb', line 7513

def content_rating
  @content_rating
end

#country_restrictionGoogle::Apis::YoutubeV3::AccessPolicy

Rights management policy for YouTube resources. Corresponds to the JSON property countryRestriction



7518
7519
7520
# File 'generated/google/apis/youtube_v3/classes.rb', line 7518

def country_restriction
  @country_restriction
end

#definitionString

The value of definition indicates whether the video is available in high definition or only in standard definition. Corresponds to the JSON property definition

Returns:

  • (String)


7524
7525
7526
# File 'generated/google/apis/youtube_v3/classes.rb', line 7524

def definition
  @definition
end

#dimensionString

The value of dimension indicates whether the video is available in 3D or in 2D. Corresponds to the JSON property dimension

Returns:

  • (String)


7529
7530
7531
# File 'generated/google/apis/youtube_v3/classes.rb', line 7529

def dimension
  @dimension
end

#durationString

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

Returns:

  • (String)


7539
7540
7541
# File 'generated/google/apis/youtube_v3/classes.rb', line 7539

def duration
  @duration
end

#has_custom_thumbnailBoolean 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

Returns:

  • (Boolean)


7545
7546
7547
# File 'generated/google/apis/youtube_v3/classes.rb', line 7545

def has_custom_thumbnail
  @has_custom_thumbnail
end

#licensed_contentBoolean Also known as: licensed_content?

The value of is_license_content indicates whether the video is licensed content. Corresponds to the JSON property licensedContent

Returns:

  • (Boolean)


7552
7553
7554
# File 'generated/google/apis/youtube_v3/classes.rb', line 7552

def licensed_content
  @licensed_content
end

#projectionString

Specifies the projection format of the video. Corresponds to the JSON property projection

Returns:

  • (String)


7558
7559
7560
# File 'generated/google/apis/youtube_v3/classes.rb', line 7558

def projection
  @projection
end

#region_restrictionGoogle::Apis::YoutubeV3::VideoContentDetailsRegionRestriction

DEPRECATED Region restriction of the video. Corresponds to the JSON property regionRestriction



7563
7564
7565
# File 'generated/google/apis/youtube_v3/classes.rb', line 7563

def region_restriction
  @region_restriction
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
# File 'generated/google/apis/youtube_v3/classes.rb', line 7570

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