google-apis-youtube_v3 0.60.0 → 0.61.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: 9609f40448cb8e4f60ed0d0e211563e62237d3dead651d111189b5a6f10e62dc
4
- data.tar.gz: fda7adaef27cd246109e2b698ab92087fe1213474f0b5219d165cf098edee977
3
+ metadata.gz: 2cb5fbcd881db8d67e3a2f8f5267d74f4cf5ad883a41740cbc1c2fe97131b837
4
+ data.tar.gz: e53430c3115b036583f51c222819636092940d7a55db8d0261966065a77b7fd1
5
5
  SHA512:
6
- metadata.gz: a39670ce77164e9458ace28e7fc99f9fbb252d72f23189bbed0697ec25a5a2657e429d2311e843a7f80ae0a80d6aca89db1b4727dbc0f66da119bb0e71449a02
7
- data.tar.gz: 1b3c3afc1f821c4d98a6b07a2bc53262cbe401a0813dc6e8bd4906250108d11e028cddce4f3e54df3dba7c936778131145c733bb08a7c2fd43f2a92049d56d77
6
+ metadata.gz: 49dc424d456048f68638c439d1b9df91bbfecddef4230c77af95f75cd72b78184892a345cd7eab3c5b5d1e3fb4c67fb2c5a8e2ac5495bbd93fc5364efd5e962d
7
+ data.tar.gz: 492642ed883f78f288a7840c5672687acff47b2e74f67dac0b55fa07f9dfb57bf4b4f127945f566c94799f73327d6b9efb06543dd349f32d91966e20382470b3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-youtube_v3
2
2
 
3
+ ### v0.61.0 (2026-01-18)
4
+
5
+ * Regenerated from discovery document revision 20260112
6
+
3
7
  ### v0.60.0 (2026-01-11)
4
8
 
5
9
  * Regenerated from discovery document revision 20260105
@@ -697,40 +697,6 @@ 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
-
734
700
  # A *caption* resource represents a YouTube caption track. A caption track is
735
701
  # associated with exactly one YouTube video.
736
702
  class Caption
@@ -9049,59 +9015,6 @@ module Google
9049
9015
  end
9050
9016
  end
9051
9017
 
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
-
9105
9018
  # Statistics about the video, such as the number of times the video was viewed
9106
9019
  # or liked.
9107
9020
  class VideoStatistics
@@ -9148,83 +9061,6 @@ module Google
9148
9061
  end
9149
9062
  end
9150
9063
 
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
-
9228
9064
  # Basic details about a video category, such as its localized title. Next Id: 19
9229
9065
  class VideoStatus
9230
9066
  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.60.0"
19
+ GEM_VERSION = "0.61.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 = "20260105"
25
+ REVISION = "20260112"
26
26
  end
27
27
  end
28
28
  end
@@ -130,12 +130,6 @@ 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
-
139
133
  class Caption
140
134
  class Representation < Google::Apis::Core::JsonRepresentation; end
141
135
 
@@ -1180,36 +1174,12 @@ module Google
1180
1174
  include Google::Apis::Core::JsonObjectSupport
1181
1175
  end
1182
1176
 
1183
- class VideoStat
1184
- class Representation < Google::Apis::Core::JsonRepresentation; end
1185
-
1186
- include Google::Apis::Core::JsonObjectSupport
1187
- end
1188
-
1189
1177
  class VideoStatistics
1190
1178
  class Representation < Google::Apis::Core::JsonRepresentation; end
1191
1179
 
1192
1180
  include Google::Apis::Core::JsonObjectSupport
1193
1181
  end
1194
1182
 
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
-
1213
1183
  class VideoStatus
1214
1184
  class Representation < Google::Apis::Core::JsonRepresentation; end
1215
1185
 
@@ -1453,16 +1423,6 @@ module Google
1453
1423
  end
1454
1424
  end
1455
1425
 
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
-
1466
1426
  class Caption
1467
1427
  # @private
1468
1428
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3644,21 +3604,6 @@ module Google
3644
3604
  end
3645
3605
  end
3646
3606
 
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
-
3662
3607
  class VideoStatistics
3663
3608
  # @private
3664
3609
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3670,29 +3615,6 @@ module Google
3670
3615
  end
3671
3616
  end
3672
3617
 
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
-
3696
3618
  class VideoStatus
3697
3619
  # @private
3698
3620
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -4242,57 +4242,6 @@ 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. 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
4296
4245
 
4297
4246
  protected
4298
4247
 
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.60.0
4
+ version: 0.61.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.60.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-youtube_v3/v0.61.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: