Skip to content

Commit 08d814a

Browse files
feat: Automated regeneration of youtube v3 client
1 parent 50b5dbb commit 08d814a

File tree

5 files changed

+6
-295
lines changed

5 files changed

+6
-295
lines changed

generated/google-apis-youtube_v3/CHANGELOG.md

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

3+
### v0.61.0 (2026-01-18)
4+
5+
* Regenerated from discovery document revision 20260112
6+
37
### v0.60.0 (2026-01-11)
48

59
* Regenerated from discovery document revision 20260105

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

Lines changed: 0 additions & 164 deletions
Original file line numberDiff line numberDiff line change
@@ -697,40 +697,6 @@ def update!(**args)
697697
end
698698
end
699699

700-
# Response for the Videos.stats API. Returns VideoStat information about a batch
701-
# of videos. VideoStat contains a subset of the information in Video that is
702-
# relevant to statistics and content details.
703-
class BatchGetStatsResponse
704-
include Google::Apis::Core::Hashable
705-
706-
# Output only. Etag of this resource.
707-
# Corresponds to the JSON property `etag`
708-
# @return [String]
709-
attr_accessor :etag
710-
711-
# Output only. The videos' stats information.
712-
# Corresponds to the JSON property `items`
713-
# @return [Array<Google::Apis::YoutubeV3::VideoStat>]
714-
attr_accessor :items
715-
716-
# Output only. Identifies what kind of resource this is. Value: the fixed string
717-
# "youtube#batchGetStatsResponse".
718-
# Corresponds to the JSON property `kind`
719-
# @return [String]
720-
attr_accessor :kind
721-
722-
def initialize(**args)
723-
update!(**args)
724-
end
725-
726-
# Update properties of this object
727-
def update!(**args)
728-
@etag = args[:etag] if args.key?(:etag)
729-
@items = args[:items] if args.key?(:items)
730-
@kind = args[:kind] if args.key?(:kind)
731-
end
732-
end
733-
734700
# A *caption* resource represents a YouTube caption track. A caption track is
735701
# associated with exactly one YouTube video.
736702
class Caption
@@ -9049,59 +9015,6 @@ def update!(**args)
90499015
end
90509016
end
90519017

9052-
# A *VideoStat* resource represents a YouTube video's stats.
9053-
class VideoStat
9054-
include Google::Apis::Core::Hashable
9055-
9056-
# Details about the content of a YouTube Video. This is a subset of the
9057-
# information in VideoContentDetails specifically for the Videos.stats API.
9058-
# Corresponds to the JSON property `contentDetails`
9059-
# @return [Google::Apis::YoutubeV3::VideoStatsContentDetails]
9060-
attr_accessor :content_details
9061-
9062-
# Output only. Etag of this resource.
9063-
# Corresponds to the JSON property `etag`
9064-
# @return [String]
9065-
attr_accessor :etag
9066-
9067-
# Output only. The ID that YouTube uses to uniquely identify the video.
9068-
# Corresponds to the JSON property `id`
9069-
# @return [String]
9070-
attr_accessor :id
9071-
9072-
# Output only. Identifies what kind of resource this is. Value: the fixed string
9073-
# "youtube#videoStats".
9074-
# Corresponds to the JSON property `kind`
9075-
# @return [String]
9076-
attr_accessor :kind
9077-
9078-
# Basic details about a video. This is a subset of the information in
9079-
# VideoSnippet specifically for the Videos.stats API.
9080-
# Corresponds to the JSON property `snippet`
9081-
# @return [Google::Apis::YoutubeV3::VideoStatsSnippet]
9082-
attr_accessor :snippet
9083-
9084-
# Statistics about the video, such as the number of times the video was viewed
9085-
# or liked.
9086-
# Corresponds to the JSON property `statistics`
9087-
# @return [Google::Apis::YoutubeV3::VideoStatsStatistics]
9088-
attr_accessor :statistics
9089-
9090-
def initialize(**args)
9091-
update!(**args)
9092-
end
9093-
9094-
# Update properties of this object
9095-
def update!(**args)
9096-
@content_details = args[:content_details] if args.key?(:content_details)
9097-
@etag = args[:etag] if args.key?(:etag)
9098-
@id = args[:id] if args.key?(:id)
9099-
@kind = args[:kind] if args.key?(:kind)
9100-
@snippet = args[:snippet] if args.key?(:snippet)
9101-
@statistics = args[:statistics] if args.key?(:statistics)
9102-
end
9103-
end
9104-
91059018
# Statistics about the video, such as the number of times the video was viewed
91069019
# or liked.
91079020
class VideoStatistics
@@ -9148,83 +9061,6 @@ def update!(**args)
91489061
end
91499062
end
91509063

9151-
# Details about the content of a YouTube Video. This is a subset of the
9152-
# information in VideoContentDetails specifically for the Videos.stats API.
9153-
class VideoStatsContentDetails
9154-
include Google::Apis::Core::Hashable
9155-
9156-
# Output only. The length of the video. The property value is a [`google.
9157-
# protobuf.Duration`](https://developers.google.com/protocol-buffers/docs/
9158-
# reference/google.protobuf#duration) object.
9159-
# Corresponds to the JSON property `duration`
9160-
# @return [String]
9161-
attr_accessor :duration
9162-
9163-
def initialize(**args)
9164-
update!(**args)
9165-
end
9166-
9167-
# Update properties of this object
9168-
def update!(**args)
9169-
@duration = args[:duration] if args.key?(:duration)
9170-
end
9171-
end
9172-
9173-
# Basic details about a video. This is a subset of the information in
9174-
# VideoSnippet specifically for the Videos.stats API.
9175-
class VideoStatsSnippet
9176-
include Google::Apis::Core::Hashable
9177-
9178-
# Output only. The date and time that the video was uploaded. The property value
9179-
# is a [`google.protobuf.Timestamp`](https://developers.google.com/protocol-
9180-
# buffers/docs/reference/google.protobuf#timestamp) object.
9181-
# Corresponds to the JSON property `publishTime`
9182-
# @return [String]
9183-
attr_accessor :publish_time
9184-
9185-
def initialize(**args)
9186-
update!(**args)
9187-
end
9188-
9189-
# Update properties of this object
9190-
def update!(**args)
9191-
@publish_time = args[:publish_time] if args.key?(:publish_time)
9192-
end
9193-
end
9194-
9195-
# Statistics about the video, such as the number of times the video was viewed
9196-
# or liked.
9197-
class VideoStatsStatistics
9198-
include Google::Apis::Core::Hashable
9199-
9200-
# Output only. The number of comments for the video.
9201-
# Corresponds to the JSON property `commentCount`
9202-
# @return [Fixnum]
9203-
attr_accessor :comment_count
9204-
9205-
# Output only. The number of users who have indicated that they liked the video
9206-
# by giving it a positive rating.
9207-
# Corresponds to the JSON property `likeCount`
9208-
# @return [Fixnum]
9209-
attr_accessor :like_count
9210-
9211-
# Output only. The number of times the video has been viewed.
9212-
# Corresponds to the JSON property `viewCount`
9213-
# @return [Fixnum]
9214-
attr_accessor :view_count
9215-
9216-
def initialize(**args)
9217-
update!(**args)
9218-
end
9219-
9220-
# Update properties of this object
9221-
def update!(**args)
9222-
@comment_count = args[:comment_count] if args.key?(:comment_count)
9223-
@like_count = args[:like_count] if args.key?(:like_count)
9224-
@view_count = args[:view_count] if args.key?(:view_count)
9225-
end
9226-
end
9227-
92289064
# Basic details about a video category, such as its localized title. Next Id: 19
92299065
class VideoStatus
92309066
include Google::Apis::Core::Hashable

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

Lines changed: 2 additions & 2 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.60.0"
19+
GEM_VERSION = "0.61.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.18.0"
2323

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

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

Lines changed: 0 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -130,12 +130,6 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
130130
include Google::Apis::Core::JsonObjectSupport
131131
end
132132

133-
class BatchGetStatsResponse
134-
class Representation < Google::Apis::Core::JsonRepresentation; end
135-
136-
include Google::Apis::Core::JsonObjectSupport
137-
end
138-
139133
class Caption
140134
class Representation < Google::Apis::Core::JsonRepresentation; end
141135

@@ -1180,36 +1174,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
11801174
include Google::Apis::Core::JsonObjectSupport
11811175
end
11821176

1183-
class VideoStat
1184-
class Representation < Google::Apis::Core::JsonRepresentation; end
1185-
1186-
include Google::Apis::Core::JsonObjectSupport
1187-
end
1188-
11891177
class VideoStatistics
11901178
class Representation < Google::Apis::Core::JsonRepresentation; end
11911179

11921180
include Google::Apis::Core::JsonObjectSupport
11931181
end
11941182

1195-
class VideoStatsContentDetails
1196-
class Representation < Google::Apis::Core::JsonRepresentation; end
1197-
1198-
include Google::Apis::Core::JsonObjectSupport
1199-
end
1200-
1201-
class VideoStatsSnippet
1202-
class Representation < Google::Apis::Core::JsonRepresentation; end
1203-
1204-
include Google::Apis::Core::JsonObjectSupport
1205-
end
1206-
1207-
class VideoStatsStatistics
1208-
class Representation < Google::Apis::Core::JsonRepresentation; end
1209-
1210-
include Google::Apis::Core::JsonObjectSupport
1211-
end
1212-
12131183
class VideoStatus
12141184
class Representation < Google::Apis::Core::JsonRepresentation; end
12151185

@@ -1453,16 +1423,6 @@ class Representation < Google::Apis::Core::JsonRepresentation
14531423
end
14541424
end
14551425

1456-
class BatchGetStatsResponse
1457-
# @private
1458-
class Representation < Google::Apis::Core::JsonRepresentation
1459-
property :etag, as: 'etag'
1460-
collection :items, as: 'items', class: Google::Apis::YoutubeV3::VideoStat, decorator: Google::Apis::YoutubeV3::VideoStat::Representation
1461-
1462-
property :kind, as: 'kind'
1463-
end
1464-
end
1465-
14661426
class Caption
14671427
# @private
14681428
class Representation < Google::Apis::Core::JsonRepresentation
@@ -3644,21 +3604,6 @@ class Representation < Google::Apis::Core::JsonRepresentation
36443604
end
36453605
end
36463606

3647-
class VideoStat
3648-
# @private
3649-
class Representation < Google::Apis::Core::JsonRepresentation
3650-
property :content_details, as: 'contentDetails', class: Google::Apis::YoutubeV3::VideoStatsContentDetails, decorator: Google::Apis::YoutubeV3::VideoStatsContentDetails::Representation
3651-
3652-
property :etag, as: 'etag'
3653-
property :id, as: 'id'
3654-
property :kind, as: 'kind'
3655-
property :snippet, as: 'snippet', class: Google::Apis::YoutubeV3::VideoStatsSnippet, decorator: Google::Apis::YoutubeV3::VideoStatsSnippet::Representation
3656-
3657-
property :statistics, as: 'statistics', class: Google::Apis::YoutubeV3::VideoStatsStatistics, decorator: Google::Apis::YoutubeV3::VideoStatsStatistics::Representation
3658-
3659-
end
3660-
end
3661-
36623607
class VideoStatistics
36633608
# @private
36643609
class Representation < Google::Apis::Core::JsonRepresentation
@@ -3670,29 +3615,6 @@ class Representation < Google::Apis::Core::JsonRepresentation
36703615
end
36713616
end
36723617

3673-
class VideoStatsContentDetails
3674-
# @private
3675-
class Representation < Google::Apis::Core::JsonRepresentation
3676-
property :duration, as: 'duration'
3677-
end
3678-
end
3679-
3680-
class VideoStatsSnippet
3681-
# @private
3682-
class Representation < Google::Apis::Core::JsonRepresentation
3683-
property :publish_time, as: 'publishTime'
3684-
end
3685-
end
3686-
3687-
class VideoStatsStatistics
3688-
# @private
3689-
class Representation < Google::Apis::Core::JsonRepresentation
3690-
property :comment_count, :numeric_string => true, as: 'commentCount'
3691-
property :like_count, :numeric_string => true, as: 'likeCount'
3692-
property :view_count, :numeric_string => true, as: 'viewCount'
3693-
end
3694-
end
3695-
36963618
class VideoStatus
36973619
# @private
36983620
class Representation < Google::Apis::Core::JsonRepresentation

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

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -4242,57 +4242,6 @@ def stream_youtube_v3_live_chat_message(hl: nil, live_chat_id: nil, max_results:
42424242
command.query['quotaUser'] = quota_user unless quota_user.nil?
42434243
execute_or_queue_command(command, &block)
42444244
end
4245-
4246-
# Retrieves a batch of VideoStat resources, possibly filtered.
4247-
# @param [Array<String>, String] id
4248-
# Required. Return videos with the given ids. The number of IDs specified cannot
4249-
# exceed 50.
4250-
# @param [String] on_behalf_of_content_owner
4251-
# Optional. **Note:** This parameter is intended exclusively for YouTube content
4252-
# partners. The `onBehalfOfContentOwner` parameter indicates that the request's
4253-
# authorization credentials identify a YouTube CMS user who is acting on behalf
4254-
# of the content owner specified in the parameter value. This parameter is
4255-
# intended for YouTube content partners that own and manage many different
4256-
# YouTube channels. It allows content owners to authenticate once and get access
4257-
# to all their video and channel data, without having to provide authentication
4258-
# credentials for each individual channel. The CMS account that the user
4259-
# authenticates with must be linked to the specified YouTube content owner.
4260-
# @param [Array<String>, String] part
4261-
# Required. The `**part**` parameter specifies a comma-separated list of one or
4262-
# more `videoStat` resource properties that the API response will include. If
4263-
# the parameter identifies a property that contains child properties, the child
4264-
# properties will be included in the response. For example, in a `videoStat`
4265-
# resource, the `statistics` property contains `view_count` and `like_count`. As
4266-
# such, if you set `**part=snippet**`, the API response will contain all of
4267-
# those properties.
4268-
# @param [String] fields
4269-
# Selector specifying which fields to include in a partial response.
4270-
# @param [String] quota_user
4271-
# Available to use for quota purposes for server-side applications. Can be any
4272-
# arbitrary string assigned to a user, but should not exceed 40 characters.
4273-
# @param [Google::Apis::RequestOptions] options
4274-
# Request-specific options
4275-
#
4276-
# @yield [result, err] Result & error if block supplied
4277-
# @yieldparam result [Google::Apis::YoutubeV3::BatchGetStatsResponse] parsed result object
4278-
# @yieldparam err [StandardError] error object if request failed
4279-
#
4280-
# @return [Google::Apis::YoutubeV3::BatchGetStatsResponse]
4281-
#
4282-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4283-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4284-
# @raise [Google::Apis::AuthorizationError] Authorization is required
4285-
def batch_youtube_v3_video_get_stats(id: nil, on_behalf_of_content_owner: nil, part: nil, fields: nil, quota_user: nil, options: nil, &block)
4286-
command = make_simple_command(:get, 'youtube/v3/videos:batchGetStats', options)
4287-
command.response_representation = Google::Apis::YoutubeV3::BatchGetStatsResponse::Representation
4288-
command.response_class = Google::Apis::YoutubeV3::BatchGetStatsResponse
4289-
command.query['id'] = id unless id.nil?
4290-
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
4291-
command.query['part'] = part unless part.nil?
4292-
command.query['fields'] = fields unless fields.nil?
4293-
command.query['quotaUser'] = quota_user unless quota_user.nil?
4294-
execute_or_queue_command(command, &block)
4295-
end
42964245

42974246
protected
42984247

0 commit comments

Comments
 (0)