google-apis-youtube_v3 0.53.0 → 0.55.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dd9b9b15b436a39a17c52c5184b79332c4898f832d24e126c0de6e9ce246cfc4
|
4
|
+
data.tar.gz: 514f61b87561af7ce704da6300562efd057a5ef7badfbdae3d27301ce449e81c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 129fb46d9038a0c3a5ecd5d640b1a1a89f4c3b3195dbd93df885acbe366beda8feb20215044e74026eb7413e8c125ce92d43fd524891ef61a71aa02a8a852e9a
|
7
|
+
data.tar.gz: 3e8d45c0ec8451b5497751d05a698ea9d0c507be31e786b93aa10dfab67c4276b2329f68893b0eec17daa65125020a4016aa5c32fbb4ab569e924dd0e2adec90
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# Release history for google-apis-youtube_v3
|
2
2
|
|
3
|
+
### v0.55.0 (2025-04-06)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20250331
|
6
|
+
|
7
|
+
### v0.54.0 (2025-02-26)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20250224
|
10
|
+
* Regenerated using generator version 0.16.0
|
11
|
+
|
3
12
|
### v0.53.0 (2025-01-05)
|
4
13
|
|
5
14
|
* Regenerated from discovery document revision 20250101
|
@@ -1862,6 +1862,13 @@ module Google
|
|
1862
1862
|
class ChannelStatus
|
1863
1863
|
include Google::Apis::Core::Hashable
|
1864
1864
|
|
1865
|
+
# Whether the channel is considered ypp monetization enabled. See go/yppornot
|
1866
|
+
# for more details.
|
1867
|
+
# Corresponds to the JSON property `isChannelMonetizationEnabled`
|
1868
|
+
# @return [Boolean]
|
1869
|
+
attr_accessor :is_channel_monetization_enabled
|
1870
|
+
alias_method :is_channel_monetization_enabled?, :is_channel_monetization_enabled
|
1871
|
+
|
1865
1872
|
# If true, then the user is linked to either a YouTube username or G+ account.
|
1866
1873
|
# Otherwise, the user doesn't have a public YouTube identity.
|
1867
1874
|
# Corresponds to the JSON property `isLinked`
|
@@ -1898,6 +1905,7 @@ module Google
|
|
1898
1905
|
|
1899
1906
|
# Update properties of this object
|
1900
1907
|
def update!(**args)
|
1908
|
+
@is_channel_monetization_enabled = args[:is_channel_monetization_enabled] if args.key?(:is_channel_monetization_enabled)
|
1901
1909
|
@is_linked = args[:is_linked] if args.key?(:is_linked)
|
1902
1910
|
@long_uploads_status = args[:long_uploads_status] if args.key?(:long_uploads_status)
|
1903
1911
|
@made_for_kids = args[:made_for_kids] if args.key?(:made_for_kids)
|
@@ -2120,7 +2128,7 @@ module Google
|
|
2120
2128
|
class CommentSnippet
|
2121
2129
|
include Google::Apis::Core::Hashable
|
2122
2130
|
|
2123
|
-
#
|
2131
|
+
# Contains the id of the author's YouTube channel, if any.
|
2124
2132
|
# Corresponds to the JSON property `authorChannelId`
|
2125
2133
|
# @return [Google::Apis::YoutubeV3::CommentSnippetAuthorChannelId]
|
2126
2134
|
attr_accessor :author_channel_id
|
@@ -2147,8 +2155,8 @@ module Google
|
|
2147
2155
|
alias_method :can_rate?, :can_rate
|
2148
2156
|
|
2149
2157
|
# The id of the corresponding YouTube channel. In case of a channel comment this
|
2150
|
-
# is the channel the comment refers to. In case of a video comment it's
|
2151
|
-
# video's channel.
|
2158
|
+
# is the channel the comment refers to. In case of a video or post comment it's
|
2159
|
+
# the video/post's channel.
|
2152
2160
|
# Corresponds to the JSON property `channelId`
|
2153
2161
|
# @return [String]
|
2154
2162
|
attr_accessor :channel_id
|
@@ -2164,11 +2172,16 @@ module Google
|
|
2164
2172
|
# @return [String]
|
2165
2173
|
attr_accessor :moderation_status
|
2166
2174
|
|
2167
|
-
# The unique id of the
|
2175
|
+
# The unique id of the top-level comment, only set for replies.
|
2168
2176
|
# Corresponds to the JSON property `parentId`
|
2169
2177
|
# @return [String]
|
2170
2178
|
attr_accessor :parent_id
|
2171
2179
|
|
2180
|
+
# The ID of the post the comment refers to, if any.
|
2181
|
+
# Corresponds to the JSON property `postId`
|
2182
|
+
# @return [String]
|
2183
|
+
attr_accessor :post_id
|
2184
|
+
|
2172
2185
|
# The date and time when the comment was originally published.
|
2173
2186
|
# Corresponds to the JSON property `publishedAt`
|
2174
2187
|
# @return [DateTime]
|
@@ -2221,6 +2234,7 @@ module Google
|
|
2221
2234
|
@like_count = args[:like_count] if args.key?(:like_count)
|
2222
2235
|
@moderation_status = args[:moderation_status] if args.key?(:moderation_status)
|
2223
2236
|
@parent_id = args[:parent_id] if args.key?(:parent_id)
|
2237
|
+
@post_id = args[:post_id] if args.key?(:post_id)
|
2224
2238
|
@published_at = args[:published_at] if args.key?(:published_at)
|
2225
2239
|
@text_display = args[:text_display] if args.key?(:text_display)
|
2226
2240
|
@text_original = args[:text_original] if args.key?(:text_original)
|
@@ -2230,11 +2244,11 @@ module Google
|
|
2230
2244
|
end
|
2231
2245
|
end
|
2232
2246
|
|
2233
|
-
#
|
2247
|
+
# Contains the id of the author's YouTube channel, if any.
|
2234
2248
|
class CommentSnippetAuthorChannelId
|
2235
2249
|
include Google::Apis::Core::Hashable
|
2236
2250
|
|
2237
|
-
#
|
2251
|
+
# The id of the author's YouTube channel.
|
2238
2252
|
# Corresponds to the JSON property `value`
|
2239
2253
|
# @return [String]
|
2240
2254
|
attr_accessor :value
|
@@ -2392,8 +2406,8 @@ module Google
|
|
2392
2406
|
alias_method :can_reply?, :can_reply
|
2393
2407
|
|
2394
2408
|
# The YouTube channel the comments in the thread refer to or the channel with
|
2395
|
-
# the video the comments refer to. If video_id
|
2396
|
-
# the channel itself.
|
2409
|
+
# the video the comments refer to. If neither video_id nor post_id is set the
|
2410
|
+
# comments refer to the channel itself.
|
2397
2411
|
# Corresponds to the JSON property `channelId`
|
2398
2412
|
# @return [String]
|
2399
2413
|
attr_accessor :channel_id
|
@@ -2405,6 +2419,11 @@ module Google
|
|
2405
2419
|
attr_accessor :is_public
|
2406
2420
|
alias_method :is_public?, :is_public
|
2407
2421
|
|
2422
|
+
# The ID of the post the comments refer to, if any.
|
2423
|
+
# Corresponds to the JSON property `postId`
|
2424
|
+
# @return [String]
|
2425
|
+
attr_accessor :post_id
|
2426
|
+
|
2408
2427
|
# A *comment* represents a single YouTube comment.
|
2409
2428
|
# Corresponds to the JSON property `topLevelComment`
|
2410
2429
|
# @return [Google::Apis::YoutubeV3::Comment]
|
@@ -2415,8 +2434,7 @@ module Google
|
|
2415
2434
|
# @return [Fixnum]
|
2416
2435
|
attr_accessor :total_reply_count
|
2417
2436
|
|
2418
|
-
# The ID of the video the comments refer to, if any.
|
2419
|
-
# channel discussion comment.
|
2437
|
+
# The ID of the video the comments refer to, if any.
|
2420
2438
|
# Corresponds to the JSON property `videoId`
|
2421
2439
|
# @return [String]
|
2422
2440
|
attr_accessor :video_id
|
@@ -2430,6 +2448,7 @@ module Google
|
|
2430
2448
|
@can_reply = args[:can_reply] if args.key?(:can_reply)
|
2431
2449
|
@channel_id = args[:channel_id] if args.key?(:channel_id)
|
2432
2450
|
@is_public = args[:is_public] if args.key?(:is_public)
|
2451
|
+
@post_id = args[:post_id] if args.key?(:post_id)
|
2433
2452
|
@top_level_comment = args[:top_level_comment] if args.key?(:top_level_comment)
|
2434
2453
|
@total_reply_count = args[:total_reply_count] if args.key?(:total_reply_count)
|
2435
2454
|
@video_id = args[:video_id] if args.key?(:video_id)
|
@@ -9255,6 +9274,45 @@ module Google
|
|
9255
9274
|
end
|
9256
9275
|
end
|
9257
9276
|
|
9277
|
+
# Specifies who is allowed to train on the video.
|
9278
|
+
class VideoTrainability
|
9279
|
+
include Google::Apis::Core::Hashable
|
9280
|
+
|
9281
|
+
# Etag of this resource.
|
9282
|
+
# Corresponds to the JSON property `etag`
|
9283
|
+
# @return [String]
|
9284
|
+
attr_accessor :etag
|
9285
|
+
|
9286
|
+
# Identifies what kind of resource this is. Value: the fixed string "youtube#
|
9287
|
+
# videoTrainability".
|
9288
|
+
# Corresponds to the JSON property `kind`
|
9289
|
+
# @return [String]
|
9290
|
+
attr_accessor :kind
|
9291
|
+
|
9292
|
+
# Specifies who is allowed to train on the video. Valid values are: - a single
|
9293
|
+
# string "all" - a single string "none" - a list of allowed parties
|
9294
|
+
# Corresponds to the JSON property `permitted`
|
9295
|
+
# @return [Array<String>]
|
9296
|
+
attr_accessor :permitted
|
9297
|
+
|
9298
|
+
# The ID of the video.
|
9299
|
+
# Corresponds to the JSON property `videoId`
|
9300
|
+
# @return [String]
|
9301
|
+
attr_accessor :video_id
|
9302
|
+
|
9303
|
+
def initialize(**args)
|
9304
|
+
update!(**args)
|
9305
|
+
end
|
9306
|
+
|
9307
|
+
# Update properties of this object
|
9308
|
+
def update!(**args)
|
9309
|
+
@etag = args[:etag] if args.key?(:etag)
|
9310
|
+
@kind = args[:kind] if args.key?(:kind)
|
9311
|
+
@permitted = args[:permitted] if args.key?(:permitted)
|
9312
|
+
@video_id = args[:video_id] if args.key?(:video_id)
|
9313
|
+
end
|
9314
|
+
end
|
9315
|
+
|
9258
9316
|
# Branding properties for the watch. All deprecated.
|
9259
9317
|
class WatchSettings
|
9260
9318
|
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.
|
19
|
+
GEM_VERSION = "0.55.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.16.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20250331"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -1204,6 +1204,12 @@ module Google
|
|
1204
1204
|
include Google::Apis::Core::JsonObjectSupport
|
1205
1205
|
end
|
1206
1206
|
|
1207
|
+
class VideoTrainability
|
1208
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1209
|
+
|
1210
|
+
include Google::Apis::Core::JsonObjectSupport
|
1211
|
+
end
|
1212
|
+
|
1207
1213
|
class WatchSettings
|
1208
1214
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1209
1215
|
|
@@ -1731,6 +1737,7 @@ module Google
|
|
1731
1737
|
class ChannelStatus
|
1732
1738
|
# @private
|
1733
1739
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1740
|
+
property :is_channel_monetization_enabled, as: 'isChannelMonetizationEnabled'
|
1734
1741
|
property :is_linked, as: 'isLinked'
|
1735
1742
|
property :long_uploads_status, as: 'longUploadsStatus'
|
1736
1743
|
property :made_for_kids, as: 'madeForKids'
|
@@ -1815,6 +1822,7 @@ module Google
|
|
1815
1822
|
property :like_count, as: 'likeCount'
|
1816
1823
|
property :moderation_status, as: 'moderationStatus'
|
1817
1824
|
property :parent_id, as: 'parentId'
|
1825
|
+
property :post_id, as: 'postId'
|
1818
1826
|
property :published_at, as: 'publishedAt', type: DateTime
|
1819
1827
|
|
1820
1828
|
property :text_display, as: 'textDisplay'
|
@@ -1877,6 +1885,7 @@ module Google
|
|
1877
1885
|
property :can_reply, as: 'canReply'
|
1878
1886
|
property :channel_id, as: 'channelId'
|
1879
1887
|
property :is_public, as: 'isPublic'
|
1888
|
+
property :post_id, as: 'postId'
|
1880
1889
|
property :top_level_comment, as: 'topLevelComment', class: Google::Apis::YoutubeV3::Comment, decorator: Google::Apis::YoutubeV3::Comment::Representation
|
1881
1890
|
|
1882
1891
|
property :total_reply_count, as: 'totalReplyCount'
|
@@ -3653,6 +3662,16 @@ module Google
|
|
3653
3662
|
end
|
3654
3663
|
end
|
3655
3664
|
|
3665
|
+
class VideoTrainability
|
3666
|
+
# @private
|
3667
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
3668
|
+
property :etag, as: 'etag'
|
3669
|
+
property :kind, as: 'kind'
|
3670
|
+
collection :permitted, as: 'permitted'
|
3671
|
+
property :video_id, as: 'videoId'
|
3672
|
+
end
|
3673
|
+
end
|
3674
|
+
|
3656
3675
|
class WatchSettings
|
3657
3676
|
# @private
|
3658
3677
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -888,6 +888,8 @@ module Google
|
|
888
888
|
# The *pageToken* parameter identifies a specific page in the result set that
|
889
889
|
# should be returned. In an API response, the nextPageToken and prevPageToken
|
890
890
|
# properties identify other pages that could be retrieved.
|
891
|
+
# @param [String] post_id
|
892
|
+
# Returns the comment threads of the specified post.
|
891
893
|
# @param [String] search_terms
|
892
894
|
# Limits the returned comment threads to those matching the specified key words.
|
893
895
|
# Not compatible with the 'id' filter.
|
@@ -912,7 +914,7 @@ module Google
|
|
912
914
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
913
915
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
914
916
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
915
|
-
def list_comment_threads(part, all_threads_related_to_channel_id: nil, channel_id: nil, id: nil, max_results: nil, moderation_status: nil, order: nil, page_token: nil, search_terms: nil, text_format: nil, video_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
917
|
+
def list_comment_threads(part, all_threads_related_to_channel_id: nil, channel_id: nil, id: nil, max_results: nil, moderation_status: nil, order: nil, page_token: nil, post_id: nil, search_terms: nil, text_format: nil, video_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
916
918
|
command = make_simple_command(:get, 'youtube/v3/commentThreads', options)
|
917
919
|
command.response_representation = Google::Apis::YoutubeV3::ListCommentThreadsResponse::Representation
|
918
920
|
command.response_class = Google::Apis::YoutubeV3::ListCommentThreadsResponse
|
@@ -924,6 +926,7 @@ module Google
|
|
924
926
|
command.query['order'] = order unless order.nil?
|
925
927
|
command.query['pageToken'] = page_token unless page_token.nil?
|
926
928
|
command.query['part'] = part unless part.nil?
|
929
|
+
command.query['postId'] = post_id unless post_id.nil?
|
927
930
|
command.query['searchTerms'] = search_terms unless search_terms.nil?
|
928
931
|
command.query['textFormat'] = text_format unless text_format.nil?
|
929
932
|
command.query['videoId'] = video_id unless video_id.nil?
|
@@ -3651,6 +3654,36 @@ module Google
|
|
3651
3654
|
execute_or_queue_command(command, &block)
|
3652
3655
|
end
|
3653
3656
|
|
3657
|
+
# Returns the trainability status of a video.
|
3658
|
+
# @param [String] id
|
3659
|
+
# The ID of the video to retrieve.
|
3660
|
+
# @param [String] fields
|
3661
|
+
# Selector specifying which fields to include in a partial response.
|
3662
|
+
# @param [String] quota_user
|
3663
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3664
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3665
|
+
# @param [Google::Apis::RequestOptions] options
|
3666
|
+
# Request-specific options
|
3667
|
+
#
|
3668
|
+
# @yield [result, err] Result & error if block supplied
|
3669
|
+
# @yieldparam result [Google::Apis::YoutubeV3::VideoTrainability] parsed result object
|
3670
|
+
# @yieldparam err [StandardError] error object if request failed
|
3671
|
+
#
|
3672
|
+
# @return [Google::Apis::YoutubeV3::VideoTrainability]
|
3673
|
+
#
|
3674
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3675
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3676
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3677
|
+
def get_video_trainability(id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3678
|
+
command = make_simple_command(:get, 'youtube/v3/videoTrainability', options)
|
3679
|
+
command.response_representation = Google::Apis::YoutubeV3::VideoTrainability::Representation
|
3680
|
+
command.response_class = Google::Apis::YoutubeV3::VideoTrainability
|
3681
|
+
command.query['id'] = id unless id.nil?
|
3682
|
+
command.query['fields'] = fields unless fields.nil?
|
3683
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3684
|
+
execute_or_queue_command(command, &block)
|
3685
|
+
end
|
3686
|
+
|
3654
3687
|
# Deletes a resource.
|
3655
3688
|
# @param [String] id
|
3656
3689
|
# @param [String] on_behalf_of_content_owner
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-youtube_v3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.55.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date: 2025-
|
10
|
+
date: 2025-04-16 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: google-apis-core
|
@@ -58,9 +57,8 @@ licenses:
|
|
58
57
|
metadata:
|
59
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-youtube_v3/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-youtube_v3/v0.
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-youtube_v3/v0.55.0
|
62
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-youtube_v3
|
63
|
-
post_install_message:
|
64
62
|
rdoc_options: []
|
65
63
|
require_paths:
|
66
64
|
- lib
|
@@ -75,8 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
73
|
- !ruby/object:Gem::Version
|
76
74
|
version: '0'
|
77
75
|
requirements: []
|
78
|
-
rubygems_version: 3.5
|
79
|
-
signing_key:
|
76
|
+
rubygems_version: 3.6.5
|
80
77
|
specification_version: 4
|
81
78
|
summary: Simple REST client for YouTube Data API v3 V3
|
82
79
|
test_files: []
|