Skip to content

Commit 661b8d0

Browse files
feat: Automated regeneration of youtube v3 client (googleapis#25077)
Auto-created at 2025-11-30 09:59:35 +0000 using the toys pull request generator.
1 parent 7c6f2d3 commit 661b8d0

File tree

6 files changed

+331
-2
lines changed

6 files changed

+331
-2
lines changed

api_names_out.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399383,6 +399383,11 @@
399383399383
"/youtube:v3/ActivitySnippet/thumbnails": thumbnails
399384399384
"/youtube:v3/ActivitySnippet/title": title
399385399385
"/youtube:v3/ActivitySnippet/type": type
399386+
"/youtube:v3/BatchGetStatsResponse": batch_get_stats_response
399387+
"/youtube:v3/BatchGetStatsResponse/etag": etag
399388+
"/youtube:v3/BatchGetStatsResponse/items": items
399389+
"/youtube:v3/BatchGetStatsResponse/items/item": item
399390+
"/youtube:v3/BatchGetStatsResponse/kind": kind
399386399391
"/youtube:v3/Caption": caption
399387399392
"/youtube:v3/Caption/etag": etag
399388399393
"/youtube:v3/Caption/id": id
@@ -400734,12 +400739,28 @@
400734400739
"/youtube:v3/VideoSnippet/tags/tag": tag
400735400740
"/youtube:v3/VideoSnippet/thumbnails": thumbnails
400736400741
"/youtube:v3/VideoSnippet/title": title
400742+
"/youtube:v3/VideoStat": video_stat
400743+
"/youtube:v3/VideoStat/contentDetails": content_details
400744+
"/youtube:v3/VideoStat/etag": etag
400745+
"/youtube:v3/VideoStat/kind": kind
400746+
"/youtube:v3/VideoStat/name": name
400747+
"/youtube:v3/VideoStat/snippet": snippet
400748+
"/youtube:v3/VideoStat/statistics": statistics
400749+
"/youtube:v3/VideoStat/videoId": video_id
400737400750
"/youtube:v3/VideoStatistics": video_statistics
400738400751
"/youtube:v3/VideoStatistics/commentCount": comment_count
400739400752
"/youtube:v3/VideoStatistics/dislikeCount": dislike_count
400740400753
"/youtube:v3/VideoStatistics/favoriteCount": favorite_count
400741400754
"/youtube:v3/VideoStatistics/likeCount": like_count
400742400755
"/youtube:v3/VideoStatistics/viewCount": view_count
400756+
"/youtube:v3/VideoStatsContentDetails": video_stats_content_details
400757+
"/youtube:v3/VideoStatsContentDetails/duration": duration
400758+
"/youtube:v3/VideoStatsSnippet": video_stats_snippet
400759+
"/youtube:v3/VideoStatsSnippet/publishTime": publish_time
400760+
"/youtube:v3/VideoStatsStatistics": video_stats_statistics
400761+
"/youtube:v3/VideoStatsStatistics/commentCount": comment_count
400762+
"/youtube:v3/VideoStatsStatistics/likeCount": like_count
400763+
"/youtube:v3/VideoStatsStatistics/viewCount": view_count
400743400764
"/youtube:v3/VideoStatus": video_status
400744400765
"/youtube:v3/VideoStatus/containsSyntheticMedia": contains_synthetic_media
400745400766
"/youtube:v3/VideoStatus/embeddable": embeddable
@@ -401259,6 +401280,10 @@
401259401280
"/youtube:v3/youtube.youtube.v3.tests.create/part": part
401260401281
"/youtube:v3/youtube.youtube.v3.updateCommentThreads": update_youtube_v3_comment_threads
401261401282
"/youtube:v3/youtube.youtube.v3.updateCommentThreads/part": part
401283+
"/youtube:v3/youtube.youtube.v3.videos.batchGetStats": batch_youtube_v3_video_get_stats
401284+
"/youtube:v3/youtube.youtube.v3.videos.batchGetStats/onBehalfOfContentOwner": on_behalf_of_content_owner
401285+
"/youtube:v3/youtube.youtube.v3.videos.batchGetStats/part": part
401286+
"/youtube:v3/youtube.youtube.v3.videos.batchGetStats/videoIds": video_ids
401262401287
"/youtubeAnalytics:v1/Group": group
401263401288
"/youtubeAnalytics:v1/Group/contentDetails": content_details
401264401289
"/youtubeAnalytics:v1/Group/contentDetails/itemCount": item_count

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.58.0 (2025-11-30)
4+
5+
* Regenerated from discovery document revision 20251125
6+
37
### v0.57.0 (2025-07-20)
48

59
* Regenerated from discovery document revision 20250714

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

Lines changed: 171 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -697,6 +697,40 @@ 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+
700734
# A *caption* resource represents a YouTube caption track. A caption track is
701735
# associated with exactly one YouTube video.
702736
class Caption
@@ -9015,6 +9049,66 @@ def update!(**args)
90159049
end
90169050
end
90179051

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. Identifies what kind of resource this is. Value: the fixed string
9068+
# "youtube#videoStats".
9069+
# Corresponds to the JSON property `kind`
9070+
# @return [String]
9071+
attr_accessor :kind
9072+
9073+
# Output only. Identifier. The resource name for the `VideoStats` resource, in
9074+
# the format `videoStats/`video_stat``.
9075+
# Corresponds to the JSON property `name`
9076+
# @return [String]
9077+
attr_accessor :name
9078+
9079+
# Basic details about a video. This is a subset of the information in
9080+
# VideoSnippet specifically for the Videos.stats API.
9081+
# Corresponds to the JSON property `snippet`
9082+
# @return [Google::Apis::YoutubeV3::VideoStatsSnippet]
9083+
attr_accessor :snippet
9084+
9085+
# Statistics about the video, such as the number of times the video was viewed
9086+
# or liked.
9087+
# Corresponds to the JSON property `statistics`
9088+
# @return [Google::Apis::YoutubeV3::VideoStatsStatistics]
9089+
attr_accessor :statistics
9090+
9091+
# Output only. The ID that YouTube uses to uniquely identify the video.
9092+
# Corresponds to the JSON property `videoId`
9093+
# @return [String]
9094+
attr_accessor :video_id
9095+
9096+
def initialize(**args)
9097+
update!(**args)
9098+
end
9099+
9100+
# Update properties of this object
9101+
def update!(**args)
9102+
@content_details = args[:content_details] if args.key?(:content_details)
9103+
@etag = args[:etag] if args.key?(:etag)
9104+
@kind = args[:kind] if args.key?(:kind)
9105+
@name = args[:name] if args.key?(:name)
9106+
@snippet = args[:snippet] if args.key?(:snippet)
9107+
@statistics = args[:statistics] if args.key?(:statistics)
9108+
@video_id = args[:video_id] if args.key?(:video_id)
9109+
end
9110+
end
9111+
90189112
# Statistics about the video, such as the number of times the video was viewed
90199113
# or liked.
90209114
class VideoStatistics
@@ -9061,6 +9155,83 @@ def update!(**args)
90619155
end
90629156
end
90639157

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

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

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,12 @@ 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+
133139
class Caption
134140
class Representation < Google::Apis::Core::JsonRepresentation; end
135141

@@ -1174,12 +1180,36 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
11741180
include Google::Apis::Core::JsonObjectSupport
11751181
end
11761182

1183+
class VideoStat
1184+
class Representation < Google::Apis::Core::JsonRepresentation; end
1185+
1186+
include Google::Apis::Core::JsonObjectSupport
1187+
end
1188+
11771189
class VideoStatistics
11781190
class Representation < Google::Apis::Core::JsonRepresentation; end
11791191

11801192
include Google::Apis::Core::JsonObjectSupport
11811193
end
11821194

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+
11831213
class VideoStatus
11841214
class Representation < Google::Apis::Core::JsonRepresentation; end
11851215

@@ -1423,6 +1453,16 @@ class Representation < Google::Apis::Core::JsonRepresentation
14231453
end
14241454
end
14251455

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+
14261466
class Caption
14271467
# @private
14281468
class Representation < Google::Apis::Core::JsonRepresentation
@@ -3604,6 +3644,22 @@ class Representation < Google::Apis::Core::JsonRepresentation
36043644
end
36053645
end
36063646

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 :kind, as: 'kind'
3654+
property :name, as: 'name'
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+
property :video_id, as: 'videoId'
3660+
end
3661+
end
3662+
36073663
class VideoStatistics
36083664
# @private
36093665
class Representation < Google::Apis::Core::JsonRepresentation
@@ -3615,6 +3671,29 @@ class Representation < Google::Apis::Core::JsonRepresentation
36153671
end
36163672
end
36173673

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

0 commit comments

Comments
 (0)