class Google::Apis::YoutubeV3::Video
A video resource represents a YouTube video.
Attributes
Age restriction details related to a video. This data can only be retrieved by the video owner. Corresponds to the JSON property `ageGating` @return [Google::Apis::YoutubeV3::VideoAgeGating]
Details about the content of a YouTube Video
. Corresponds to the JSON property `contentDetails` @return [Google::Apis::YoutubeV3::VideoContentDetails]
Etag of this resource. Corresponds to the JSON property `etag` @return [String]
Describes original video file properties, including technical details about audio and video streams, but also metadata information like content length, digitization time, or geotagging information. Corresponds to the JSON property `fileDetails` @return [Google::Apis::YoutubeV3::VideoFileDetails]
The ID that YouTube uses to uniquely identify the video. Corresponds to the JSON property `id` @return [String]
Identifies what kind of resource this is. Value: the fixed string “youtube# video”. Corresponds to the JSON property `kind` @return [String]
Details about the live streaming metadata. Corresponds to the JSON property `liveStreamingDetails` @return [Google::Apis::YoutubeV3::VideoLiveStreamingDetails]
The localizations object contains localized versions of the basic details about the video, such as its title and description. Corresponds to the JSON property `localizations` @return [Hash<String,Google::Apis::YoutubeV3::VideoLocalization>]
Details about monetization of a YouTube Video
. Corresponds to the JSON property `monetizationDetails` @return [Google::Apis::YoutubeV3::VideoMonetizationDetails]
Player to be used for a video playback. Corresponds to the JSON property `player` @return [Google::Apis::YoutubeV3::VideoPlayer]
Describes processing status and progress and availability of some other Video
resource parts. Corresponds to the JSON property `processingDetails` @return [Google::Apis::YoutubeV3::VideoProcessingDetails]
DEPRECATED. b/157517979: This part was never populated after it was added. However, it sees non-zero traffic because there is generated client code in the wild that refers to it [1]. We keep this field and do NOT remove it because otherwise V3 would return an error when this part gets requested [2]. [ 1] developers.google.com/resources/api-libraries/documentation/youtube/ v3/csharp/latest/ classGoogle_1_1Apis_1_1YouTube_1_1v3_1_1Data_1_1VideoProjectDetails.html [2] google3/video/youtube/src/python/servers/data_api/common.py?l=1565-1569& rcl=344141677 Corresponds to the JSON property `projectDetails` @return [Google::Apis::YoutubeV3::VideoProjectDetails]
Recording information associated with the video. Corresponds to the JSON property `recordingDetails` @return [Google::Apis::YoutubeV3::VideoRecordingDetails]
Basic details about a video, including title, description, uploader, thumbnails and category. Corresponds to the JSON property `snippet` @return [Google::Apis::YoutubeV3::VideoSnippet]
Statistics about the video, such as the number of times the video was viewed or liked. Corresponds to the JSON property `statistics` @return [Google::Apis::YoutubeV3::VideoStatistics]
Basic details about a video category, such as its localized title. Next Id: 17 Corresponds to the JSON property `status` @return [Google::Apis::YoutubeV3::VideoStatus]
Specifies suggestions on how to improve video content, including encoding hints, tag suggestions, and editor suggestions. Corresponds to the JSON property `suggestions` @return [Google::Apis::YoutubeV3::VideoSuggestions]
Freebase topic information related to the video. Corresponds to the JSON property `topicDetails` @return [Google::Apis::YoutubeV3::VideoTopicDetails]
Public Class Methods
# File lib/google/apis/youtube_v3/classes.rb, line 7227 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/youtube_v3/classes.rb, line 7232 def update!(**args) @age_gating = args[:age_gating] if args.key?(:age_gating) @content_details = args[:content_details] if args.key?(:content_details) @etag = args[:etag] if args.key?(:etag) @file_details = args[:file_details] if args.key?(:file_details) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @live_streaming_details = args[:live_streaming_details] if args.key?(:live_streaming_details) @localizations = args[:localizations] if args.key?(:localizations) @monetization_details = args[:monetization_details] if args.key?(:monetization_details) @player = args[:player] if args.key?(:player) @processing_details = args[:processing_details] if args.key?(:processing_details) @project_details = args[:project_details] if args.key?(:project_details) @recording_details = args[:recording_details] if args.key?(:recording_details) @snippet = args[:snippet] if args.key?(:snippet) @statistics = args[:statistics] if args.key?(:statistics) @status = args[:status] if args.key?(:status) @suggestions = args[:suggestions] if args.key?(:suggestions) @topic_details = args[:topic_details] if args.key?(:topic_details) end