google-apis-youtube_v3 0.57.0 → 0.59.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: 95f06cd93c4c95a77f05f81916c8a3db71c65862d31ad55575e1da6b0eb86d99
4
+ data.tar.gz: 506d15178f46f4f6d6d8aaba4674c81f10c98dd6629ee3b9a72821fc811f8b14
5
5
  SHA512:
6
- metadata.gz: b3613875df7c1c40f8e5f8c65042ee9b2aab58f44e5822837b32a47965c6ee210ad85e42fa3fb71add3f96b96257b1cc2ce730eb88ddedd6c2b755bba3cc9ca2
7
- data.tar.gz: ecbb93d6bf9a7d841d571c5a6c9cbf6ccd40b567713e016cfa7c2d3b383104e0404e31af82e039e2a0bc40e9c2996061a6ad32d3858137f66917d9d05a49e6ab
6
+ metadata.gz: ad954edf72cc16aaf9f150930073dbaadad23ea1a33887cfb49c79951c5fd800835ab692c289f16f468a453a9d110371071b9d058e3bba77510736c6977811bc
7
+ data.tar.gz: bac35e1b9d3ce472530b6f3bd7afa0cffbd6f264f6fca36f1fc3bb0448938d8d4761666485b89ff4f33a9cd12b68183e7d157859a6dc39dc19c9c45aeddf7a4e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-youtube_v3
2
2
 
3
+ ### v0.59.0 (2025-12-21)
4
+
5
+ * Regenerated from discovery document revision 20251217
6
+
7
+ ### v0.58.0 (2025-11-30)
8
+
9
+ * Regenerated from discovery document revision 20251125
10
+
3
11
  ### v0.57.0 (2025-07-20)
4
12
 
5
13
  * 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,59 @@ 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. 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
+
9018
9105
  # Statistics about the video, such as the number of times the video was viewed
9019
9106
  # or liked.
9020
9107
  class VideoStatistics
@@ -9061,6 +9148,83 @@ module Google
9061
9148
  end
9062
9149
  end
9063
9150
 
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
+
9064
9228
  # Basic details about a video category, such as its localized title. Next Id: 19
9065
9229
  class VideoStatus
9066
9230
  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.59.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 = "20251217"
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,21 @@ 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 :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
+
3607
3662
  class VideoStatistics
3608
3663
  # @private
3609
3664
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3615,6 +3670,29 @@ module Google
3615
3670
  end
3616
3671
  end
3617
3672
 
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
+
3618
3696
  class VideoStatus
3619
3697
  # @private
3620
3698
  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 [Array<String>, String] id
4248
+ # Required. Return videos with the given ids.
4249
+ # @param [String] on_behalf_of_content_owner
4250
+ # Optional. **Note:** This parameter is intended exclusively for YouTube content
4251
+ # partners. The `onBehalfOfContentOwner` parameter indicates that the request's
4252
+ # authorization credentials identify a YouTube CMS user who is acting on behalf
4253
+ # of the content owner specified in the parameter value. This parameter is
4254
+ # intended for YouTube content partners that own and manage many different
4255
+ # YouTube channels. It allows content owners to authenticate once and get access
4256
+ # to all their video and channel data, without having to provide authentication
4257
+ # credentials for each individual channel. The CMS account that the user
4258
+ # authenticates with must be linked to the specified YouTube content owner.
4259
+ # @param [Array<String>, String] part
4260
+ # Required. The `**part**` parameter specifies a comma-separated list of one or
4261
+ # more `videoStat` resource properties that the API response will include. If
4262
+ # the parameter identifies a property that contains child properties, the child
4263
+ # properties will be included in the response. For example, in a `videoStat`
4264
+ # resource, the `statistics` property contains `view_count` and `like_count`. As
4265
+ # such, if you set `**part=snippet**`, the API response will contain all of
4266
+ # those properties.
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(id: nil, on_behalf_of_content_owner: nil, part: 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['id'] = id unless id.nil?
4289
+ command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
4290
+ command.query['part'] = part unless part.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.59.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.59.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: