Skip to content

Commit c5f9294

Browse files
feat: Automated regeneration of youtube v3 client (googleapis#21458)
Auto-created at 2025-01-26 09:35:45 +0000 using the toys pull request generator.
1 parent 2fecd91 commit c5f9294

File tree

6 files changed

+101
-3
lines changed

6 files changed

+101
-3
lines changed

api_names_out.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355926,6 +355926,12 @@
355926355926
"/youtube:v3/VideoTopicDetails/topicCategories/topic_category": topic_category
355927355927
"/youtube:v3/VideoTopicDetails/topicIds": topic_ids
355928355928
"/youtube:v3/VideoTopicDetails/topicIds/topic_id": topic_id
355929+
"/youtube:v3/VideoTrainability": video_trainability
355930+
"/youtube:v3/VideoTrainability/etag": etag
355931+
"/youtube:v3/VideoTrainability/kind": kind
355932+
"/youtube:v3/VideoTrainability/permitted": permitted
355933+
"/youtube:v3/VideoTrainability/permitted/permitted": permitted
355934+
"/youtube:v3/VideoTrainability/videoId": video_id
355929355935
"/youtube:v3/WatchSettings": watch_settings
355930355936
"/youtube:v3/WatchSettings/backgroundColor": background_color
355931355937
"/youtube:v3/WatchSettings/featuredPlaylistId": featured_playlist_id
@@ -356332,6 +356338,8 @@
356332356338
"/youtube:v3/youtube.videoCategories.list/id": id
356333356339
"/youtube:v3/youtube.videoCategories.list/part": part
356334356340
"/youtube:v3/youtube.videoCategories.list/regionCode": region_code
356341+
"/youtube:v3/youtube.videoTrainability.get": get_video_trainability
356342+
"/youtube:v3/youtube.videoTrainability.get/id": id
356335356343
"/youtube:v3/youtube.videos.delete": delete_video
356336356344
"/youtube:v3/youtube.videos.delete/id": id
356337356345
"/youtube:v3/youtube.videos.delete/onBehalfOfContentOwner": on_behalf_of_content_owner

generated/google-apis-youtube_v3/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Release history for google-apis-youtube_v3
22

3+
### v0.54.0 (2025-01-26)
4+
5+
* Regenerated from discovery document revision 20250122
6+
* Regenerated using generator version 0.16.0
7+
38
### v0.53.0 (2025-01-05)
49

510
* Regenerated from discovery document revision 20250101

generated/google-apis-youtube_v3/lib/google/apis/youtube_v3/classes.rb

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9255,6 +9255,45 @@ def update!(**args)
92559255
end
92569256
end
92579257

9258+
# Specifies who is allowed to train on the video.
9259+
class VideoTrainability
9260+
include Google::Apis::Core::Hashable
9261+
9262+
# Etag of this resource.
9263+
# Corresponds to the JSON property `etag`
9264+
# @return [String]
9265+
attr_accessor :etag
9266+
9267+
# Identifies what kind of resource this is. Value: the fixed string "youtube#
9268+
# videoTrainability".
9269+
# Corresponds to the JSON property `kind`
9270+
# @return [String]
9271+
attr_accessor :kind
9272+
9273+
# Specifies who is allowed to train on the video. Valid values are: - a single
9274+
# string "all" - a single string "none" - a list of allowed parties
9275+
# Corresponds to the JSON property `permitted`
9276+
# @return [Array<String>]
9277+
attr_accessor :permitted
9278+
9279+
# The ID of the video.
9280+
# Corresponds to the JSON property `videoId`
9281+
# @return [String]
9282+
attr_accessor :video_id
9283+
9284+
def initialize(**args)
9285+
update!(**args)
9286+
end
9287+
9288+
# Update properties of this object
9289+
def update!(**args)
9290+
@etag = args[:etag] if args.key?(:etag)
9291+
@kind = args[:kind] if args.key?(:kind)
9292+
@permitted = args[:permitted] if args.key?(:permitted)
9293+
@video_id = args[:video_id] if args.key?(:video_id)
9294+
end
9295+
end
9296+
92589297
# Branding properties for the watch. All deprecated.
92599298
class WatchSettings
92609299
include Google::Apis::Core::Hashable

generated/google-apis-youtube_v3/lib/google/apis/youtube_v3/gem_version.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module YoutubeV3
1818
# Version of the google-apis-youtube_v3 gem
19-
GEM_VERSION = "0.53.0"
19+
GEM_VERSION = "0.54.0"
2020

2121
# Version of the code generator used to generate this client
22-
GENERATOR_VERSION = "0.15.1"
22+
GENERATOR_VERSION = "0.16.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20250101"
25+
REVISION = "20250122"
2626
end
2727
end
2828
end

generated/google-apis-youtube_v3/lib/google/apis/youtube_v3/representations.rb

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1204,6 +1204,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
12041204
include Google::Apis::Core::JsonObjectSupport
12051205
end
12061206

1207+
class VideoTrainability
1208+
class Representation < Google::Apis::Core::JsonRepresentation; end
1209+
1210+
include Google::Apis::Core::JsonObjectSupport
1211+
end
1212+
12071213
class WatchSettings
12081214
class Representation < Google::Apis::Core::JsonRepresentation; end
12091215

@@ -3653,6 +3659,16 @@ class Representation < Google::Apis::Core::JsonRepresentation
36533659
end
36543660
end
36553661

3662+
class VideoTrainability
3663+
# @private
3664+
class Representation < Google::Apis::Core::JsonRepresentation
3665+
property :etag, as: 'etag'
3666+
property :kind, as: 'kind'
3667+
collection :permitted, as: 'permitted'
3668+
property :video_id, as: 'videoId'
3669+
end
3670+
end
3671+
36563672
class WatchSettings
36573673
# @private
36583674
class Representation < Google::Apis::Core::JsonRepresentation

generated/google-apis-youtube_v3/lib/google/apis/youtube_v3/service.rb

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3651,6 +3651,36 @@ def list_video_categories(part, hl: nil, id: nil, region_code: nil, fields: nil,
36513651
execute_or_queue_command(command, &block)
36523652
end
36533653

3654+
# Returns the trainability status of a video.
3655+
# @param [String] id
3656+
# The ID of the video to retrieve.
3657+
# @param [String] fields
3658+
# Selector specifying which fields to include in a partial response.
3659+
# @param [String] quota_user
3660+
# Available to use for quota purposes for server-side applications. Can be any
3661+
# arbitrary string assigned to a user, but should not exceed 40 characters.
3662+
# @param [Google::Apis::RequestOptions] options
3663+
# Request-specific options
3664+
#
3665+
# @yield [result, err] Result & error if block supplied
3666+
# @yieldparam result [Google::Apis::YoutubeV3::VideoTrainability] parsed result object
3667+
# @yieldparam err [StandardError] error object if request failed
3668+
#
3669+
# @return [Google::Apis::YoutubeV3::VideoTrainability]
3670+
#
3671+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3672+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3673+
# @raise [Google::Apis::AuthorizationError] Authorization is required
3674+
def get_video_trainability(id: nil, fields: nil, quota_user: nil, options: nil, &block)
3675+
command = make_simple_command(:get, 'youtube/v3/videoTrainability', options)
3676+
command.response_representation = Google::Apis::YoutubeV3::VideoTrainability::Representation
3677+
command.response_class = Google::Apis::YoutubeV3::VideoTrainability
3678+
command.query['id'] = id unless id.nil?
3679+
command.query['fields'] = fields unless fields.nil?
3680+
command.query['quotaUser'] = quota_user unless quota_user.nil?
3681+
execute_or_queue_command(command, &block)
3682+
end
3683+
36543684
# Deletes a resource.
36553685
# @param [String] id
36563686
# @param [String] on_behalf_of_content_owner

0 commit comments

Comments
 (0)