google-apis-youtube_v3 0.57.0 → 0.58.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 65f5728729c027ad8d48532d9d34d5f505214e01ab24cec299b3cee85a7be2e5
4
- data.tar.gz: 72e423350cf43f687117f2329b09fda738ac91ada832eae941f39c68634ab202
3
+ metadata.gz: 11b31e042e010ad3c0e2d6a9906044512b74281c5aa9d3d05bf6392174fca932
4
+ data.tar.gz: c160b513c2fcecd05d91e3c2397f91df82a2e468b2a85d1301f84d76d2ebe91d
5
5
  SHA512:
6
- metadata.gz: b3613875df7c1c40f8e5f8c65042ee9b2aab58f44e5822837b32a47965c6ee210ad85e42fa3fb71add3f96b96257b1cc2ce730eb88ddedd6c2b755bba3cc9ca2
7
- data.tar.gz: ecbb93d6bf9a7d841d571c5a6c9cbf6ccd40b567713e016cfa7c2d3b383104e0404e31af82e039e2a0bc40e9c2996061a6ad32d3858137f66917d9d05a49e6ab
6
+ metadata.gz: 8e66c4db3516cc8f2e58da133b5b952aa88bcdb43b809ac4a48de055fe4c67728c64d99355e5ee3ed29b33d84ae902e43b0de8efc51d36eb8b2750694757a569
7
+ data.tar.gz: 8d1cf2604b29c4ab99a00b3798800e8050c7142bcb8056a92fa174012fd6d454937500b161700efa5da50a1d311292f218f2b5a10774866bd361f5eb076beaa9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-youtube_v3
2
2
 
3
+ ### v0.58.0 (2025-11-30)
4
+
5
+ * Regenerated from discovery document revision 20251125
6
+
3
7
  ### v0.57.0 (2025-07-20)
4
8
 
5
9
  * Regenerated from discovery document revision 20250714
@@ -697,6 +697,40 @@ module Google
697
697
  end
698
698
  end
699
699
 
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
+
700
734
  # A *caption* resource represents a YouTube caption track. A caption track is
701
735
  # associated with exactly one YouTube video.
702
736
  class Caption
@@ -9015,6 +9049,66 @@ module Google
9015
9049
  end
9016
9050
  end
9017
9051
 
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
+
9018
9112
  # Statistics about the video, such as the number of times the video was viewed
9019
9113
  # or liked.
9020
9114
  class VideoStatistics
@@ -9061,6 +9155,83 @@ module Google
9061
9155
  end
9062
9156
  end
9063
9157
 
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
+
9064
9235
  # Basic details about a video category, such as its localized title. Next Id: 19
9065
9236
  class VideoStatus
9066
9237
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module YoutubeV3
18
18
  # Version of the google-apis-youtube_v3 gem
19
- GEM_VERSION = "0.57.0"
19
+ GEM_VERSION = "0.58.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.18.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20250714"
25
+ REVISION = "20251125"
26
26
  end
27
27
  end
28
28
  end
@@ -130,6 +130,12 @@ module Google
130
130
  include Google::Apis::Core::JsonObjectSupport
131
131
  end
132
132
 
133
+ class BatchGetStatsResponse
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
133
139
  class Caption
134
140
  class Representation < Google::Apis::Core::JsonRepresentation; end
135
141
 
@@ -1174,12 +1180,36 @@ module Google
1174
1180
  include Google::Apis::Core::JsonObjectSupport
1175
1181
  end
1176
1182
 
1183
+ class VideoStat
1184
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1185
+
1186
+ include Google::Apis::Core::JsonObjectSupport
1187
+ end
1188
+
1177
1189
  class VideoStatistics
1178
1190
  class Representation < Google::Apis::Core::JsonRepresentation; end
1179
1191
 
1180
1192
  include Google::Apis::Core::JsonObjectSupport
1181
1193
  end
1182
1194
 
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
+
1183
1213
  class VideoStatus
1184
1214
  class Representation < Google::Apis::Core::JsonRepresentation; end
1185
1215
 
@@ -1423,6 +1453,16 @@ module Google
1423
1453
  end
1424
1454
  end
1425
1455
 
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
+
1426
1466
  class Caption
1427
1467
  # @private
1428
1468
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3604,6 +3644,22 @@ module Google
3604
3644
  end
3605
3645
  end
3606
3646
 
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
+
3607
3663
  class VideoStatistics
3608
3664
  # @private
3609
3665
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3615,6 +3671,29 @@ module Google
3615
3671
  end
3616
3672
  end
3617
3673
 
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
+
3618
3697
  class VideoStatus
3619
3698
  # @private
3620
3699
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -4242,6 +4242,56 @@ module Google
4242
4242
  command.query['quotaUser'] = quota_user unless quota_user.nil?
4243
4243
  execute_or_queue_command(command, &block)
4244
4244
  end
4245
+
4246
+ # Retrieves a batch of VideoStat resources, possibly filtered.
4247
+ # @param [String] on_behalf_of_content_owner
4248
+ # Optional. **Note:** This parameter is intended exclusively for YouTube content
4249
+ # partners. The `onBehalfOfContentOwner` parameter indicates that the request's
4250
+ # authorization credentials identify a YouTube CMS user who is acting on behalf
4251
+ # of the content owner specified in the parameter value. This parameter is
4252
+ # intended for YouTube content partners that own and manage many different
4253
+ # YouTube channels. It allows content owners to authenticate once and get access
4254
+ # to all their video and channel data, without having to provide authentication
4255
+ # credentials for each individual channel. The CMS account that the user
4256
+ # authenticates with must be linked to the specified YouTube content owner.
4257
+ # @param [Array<String>, String] part
4258
+ # Required. The `**part**` parameter specifies a comma-separated list of one or
4259
+ # more `videoStat` resource properties that the API response will include. If
4260
+ # the parameter identifies a property that contains child properties, the child
4261
+ # properties will be included in the response. For example, in a `videoStat`
4262
+ # resource, the `statistics` property contains `view_count` and `like_count`. As
4263
+ # such, if you set `**part=snippet**`, the API response will contain all of
4264
+ # those properties.
4265
+ # @param [Array<String>, String] video_ids
4266
+ # Required. Return videos with the given ids.
4267
+ # @param [String] fields
4268
+ # Selector specifying which fields to include in a partial response.
4269
+ # @param [String] quota_user
4270
+ # Available to use for quota purposes for server-side applications. Can be any
4271
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4272
+ # @param [Google::Apis::RequestOptions] options
4273
+ # Request-specific options
4274
+ #
4275
+ # @yield [result, err] Result & error if block supplied
4276
+ # @yieldparam result [Google::Apis::YoutubeV3::BatchGetStatsResponse] parsed result object
4277
+ # @yieldparam err [StandardError] error object if request failed
4278
+ #
4279
+ # @return [Google::Apis::YoutubeV3::BatchGetStatsResponse]
4280
+ #
4281
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4282
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4283
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4284
+ def batch_youtube_v3_video_get_stats(on_behalf_of_content_owner: nil, part: nil, video_ids: nil, fields: nil, quota_user: nil, options: nil, &block)
4285
+ command = make_simple_command(:get, 'youtube/v3/videos:batchGetStats', options)
4286
+ command.response_representation = Google::Apis::YoutubeV3::BatchGetStatsResponse::Representation
4287
+ command.response_class = Google::Apis::YoutubeV3::BatchGetStatsResponse
4288
+ command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
4289
+ command.query['part'] = part unless part.nil?
4290
+ command.query['videoIds'] = video_ids unless video_ids.nil?
4291
+ command.query['fields'] = fields unless fields.nil?
4292
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4293
+ execute_or_queue_command(command, &block)
4294
+ end
4245
4295
 
4246
4296
  protected
4247
4297
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-youtube_v3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.57.0
4
+ version: 0.58.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-youtube_v3/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-youtube_v3/v0.57.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-youtube_v3/v0.58.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-youtube_v3
62
62
  rdoc_options: []
63
63
  require_paths: