google-apis-youtube_v3 0.2.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e87939f9d636cd349063caa20cc2bcd1512765e7fd188105801ae40d210c37bc
|
4
|
+
data.tar.gz: 39e0bd181b5c7086b1980f9aff132582e6d1022df9a875d5147654903add8a47
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '097cb51ef8fa3489d8c9f9b18b9571f2af4ff87a7df85d75a27679ab26592cd8911e0b9ce3f3616dcb920197f0e422bb3d79dce058aa33063d875a17eb598e04'
|
7
|
+
data.tar.gz: c0e4c181c8b7c13623f0a95e01dbc81e34b3d7205e70c3a57091a11147a895e94427201acf32111540655a735cfbcfe4af93ee0a499078eeb811c54bf485be44
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,27 @@
|
|
1
1
|
# Release history for google-apis-youtube_v3
|
2
2
|
|
3
|
+
### v0.7.0 (2021-06-03)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20210601
|
6
|
+
* Regenerated using generator version 0.3.0
|
7
|
+
|
8
|
+
### v0.6.0 (2021-05-20)
|
9
|
+
|
10
|
+
* Regenerated from discovery document revision 20210410
|
11
|
+
|
12
|
+
### v0.5.0 (2021-04-09)
|
13
|
+
|
14
|
+
* Regenerated from discovery document revision 20210407
|
15
|
+
* Regenerated using generator version 0.2.0
|
16
|
+
|
17
|
+
### v0.4.0 (2021-03-04)
|
18
|
+
|
19
|
+
* Unspecified changes
|
20
|
+
|
21
|
+
### v0.3.0 (2021-02-11)
|
22
|
+
|
23
|
+
* Regenerated from discovery document revision 20210210
|
24
|
+
|
3
25
|
### v0.2.0 (2021-02-02)
|
4
26
|
|
5
27
|
* Regenerated from discovery document revision 20210130
|
@@ -3821,12 +3821,12 @@ module Google
|
|
3821
3821
|
# @return [DateTime]
|
3822
3822
|
attr_accessor :published_at
|
3823
3823
|
|
3824
|
-
# The date and time that the broadcast is scheduled to
|
3824
|
+
# The date and time that the broadcast is scheduled to end.
|
3825
3825
|
# Corresponds to the JSON property `scheduledEndTime`
|
3826
3826
|
# @return [DateTime]
|
3827
3827
|
attr_accessor :scheduled_end_time
|
3828
3828
|
|
3829
|
-
# The date and time that the broadcast is scheduled to
|
3829
|
+
# The date and time that the broadcast is scheduled to start.
|
3830
3830
|
# Corresponds to the JSON property `scheduledStartTime`
|
3831
3831
|
# @return [DateTime]
|
3832
3832
|
attr_accessor :scheduled_start_time
|
@@ -5562,7 +5562,7 @@ module Google
|
|
5562
5562
|
attr_accessor :kind
|
5563
5563
|
|
5564
5564
|
# Basic details about a playlist, including title, description and thumbnails.
|
5565
|
-
# Basic details of a YouTube Playlist item provided by the author. Next ID:
|
5565
|
+
# Basic details of a YouTube Playlist item provided by the author. Next ID: 15
|
5566
5566
|
# Corresponds to the JSON property `snippet`
|
5567
5567
|
# @return [Google::Apis::YoutubeV3::PlaylistItemSnippet]
|
5568
5568
|
attr_accessor :snippet
|
@@ -5709,7 +5709,7 @@ module Google
|
|
5709
5709
|
end
|
5710
5710
|
|
5711
5711
|
# Basic details about a playlist, including title, description and thumbnails.
|
5712
|
-
# Basic details of a YouTube Playlist item provided by the author. Next ID:
|
5712
|
+
# Basic details of a YouTube Playlist item provided by the author. Next ID: 15
|
5713
5713
|
class PlaylistItemSnippet
|
5714
5714
|
include Google::Apis::Core::Hashable
|
5715
5715
|
|
@@ -5762,6 +5762,16 @@ module Google
|
|
5762
5762
|
# @return [String]
|
5763
5763
|
attr_accessor :title
|
5764
5764
|
|
5765
|
+
# Channel id for the channel this video belongs to.
|
5766
|
+
# Corresponds to the JSON property `videoOwnerChannelId`
|
5767
|
+
# @return [String]
|
5768
|
+
attr_accessor :video_owner_channel_id
|
5769
|
+
|
5770
|
+
# Channel title for the channel this video belongs to.
|
5771
|
+
# Corresponds to the JSON property `videoOwnerChannelTitle`
|
5772
|
+
# @return [String]
|
5773
|
+
attr_accessor :video_owner_channel_title
|
5774
|
+
|
5765
5775
|
def initialize(**args)
|
5766
5776
|
update!(**args)
|
5767
5777
|
end
|
@@ -5777,6 +5787,8 @@ module Google
|
|
5777
5787
|
@resource_id = args[:resource_id] if args.key?(:resource_id)
|
5778
5788
|
@thumbnails = args[:thumbnails] if args.key?(:thumbnails)
|
5779
5789
|
@title = args[:title] if args.key?(:title)
|
5790
|
+
@video_owner_channel_id = args[:video_owner_channel_id] if args.key?(:video_owner_channel_id)
|
5791
|
+
@video_owner_channel_title = args[:video_owner_channel_title] if args.key?(:video_owner_channel_title)
|
5780
5792
|
end
|
5781
5793
|
end
|
5782
5794
|
|
@@ -5954,6 +5966,17 @@ module Google
|
|
5954
5966
|
# @return [Array<String>]
|
5955
5967
|
attr_accessor :tags
|
5956
5968
|
|
5969
|
+
# Note: if the playlist has a custom thumbnail, this field will not be populated.
|
5970
|
+
# The video id selected by the user that will be used as the thumbnail of this
|
5971
|
+
# playlist. This field defaults to the first publicly viewable video in the
|
5972
|
+
# playlist, if: 1. The user has never selected a video to be the thumbnail of
|
5973
|
+
# the playlist. 2. The user selects a video to be the thumbnail, and then
|
5974
|
+
# removes that video from the playlist. 3. The user selects a non-owned video to
|
5975
|
+
# be the thumbnail, but that video becomes private, or gets deleted.
|
5976
|
+
# Corresponds to the JSON property `thumbnailVideoId`
|
5977
|
+
# @return [String]
|
5978
|
+
attr_accessor :thumbnail_video_id
|
5979
|
+
|
5957
5980
|
# Internal representation of thumbnails for a YouTube resource.
|
5958
5981
|
# Corresponds to the JSON property `thumbnails`
|
5959
5982
|
# @return [Google::Apis::YoutubeV3::ThumbnailDetails]
|
@@ -5977,6 +6000,7 @@ module Google
|
|
5977
6000
|
@localized = args[:localized] if args.key?(:localized)
|
5978
6001
|
@published_at = args[:published_at] if args.key?(:published_at)
|
5979
6002
|
@tags = args[:tags] if args.key?(:tags)
|
6003
|
+
@thumbnail_video_id = args[:thumbnail_video_id] if args.key?(:thumbnail_video_id)
|
5980
6004
|
@thumbnails = args[:thumbnails] if args.key?(:thumbnails)
|
5981
6005
|
@title = args[:title] if args.key?(:title)
|
5982
6006
|
end
|
@@ -6736,6 +6760,12 @@ module Google
|
|
6736
6760
|
class TestItem
|
6737
6761
|
include Google::Apis::Core::Hashable
|
6738
6762
|
|
6763
|
+
#
|
6764
|
+
# Corresponds to the JSON property `featuredPart`
|
6765
|
+
# @return [Boolean]
|
6766
|
+
attr_accessor :featured_part
|
6767
|
+
alias_method :featured_part?, :featured_part
|
6768
|
+
|
6739
6769
|
#
|
6740
6770
|
# Corresponds to the JSON property `gaia`
|
6741
6771
|
# @return [Fixnum]
|
@@ -6757,6 +6787,7 @@ module Google
|
|
6757
6787
|
|
6758
6788
|
# Update properties of this object
|
6759
6789
|
def update!(**args)
|
6790
|
+
@featured_part = args[:featured_part] if args.key?(:featured_part)
|
6760
6791
|
@gaia = args[:gaia] if args.key?(:gaia)
|
6761
6792
|
@id = args[:id] if args.key?(:id)
|
6762
6793
|
@snippet = args[:snippet] if args.key?(:snippet)
|
@@ -7799,6 +7830,50 @@ module Google
|
|
7799
7830
|
end
|
7800
7831
|
end
|
7801
7832
|
|
7833
|
+
#
|
7834
|
+
class GetVideoRatingResponse
|
7835
|
+
include Google::Apis::Core::Hashable
|
7836
|
+
|
7837
|
+
# Etag of this resource.
|
7838
|
+
# Corresponds to the JSON property `etag`
|
7839
|
+
# @return [String]
|
7840
|
+
attr_accessor :etag
|
7841
|
+
|
7842
|
+
# Serialized EventId of the request which produced this response.
|
7843
|
+
# Corresponds to the JSON property `eventId`
|
7844
|
+
# @return [String]
|
7845
|
+
attr_accessor :event_id
|
7846
|
+
|
7847
|
+
# A list of ratings that match the request criteria.
|
7848
|
+
# Corresponds to the JSON property `items`
|
7849
|
+
# @return [Array<Google::Apis::YoutubeV3::VideoRating>]
|
7850
|
+
attr_accessor :items
|
7851
|
+
|
7852
|
+
# Identifies what kind of resource this is. Value: the fixed string "youtube#
|
7853
|
+
# videoGetRatingResponse".
|
7854
|
+
# Corresponds to the JSON property `kind`
|
7855
|
+
# @return [String]
|
7856
|
+
attr_accessor :kind
|
7857
|
+
|
7858
|
+
# The visitorId identifies the visitor.
|
7859
|
+
# Corresponds to the JSON property `visitorId`
|
7860
|
+
# @return [String]
|
7861
|
+
attr_accessor :visitor_id
|
7862
|
+
|
7863
|
+
def initialize(**args)
|
7864
|
+
update!(**args)
|
7865
|
+
end
|
7866
|
+
|
7867
|
+
# Update properties of this object
|
7868
|
+
def update!(**args)
|
7869
|
+
@etag = args[:etag] if args.key?(:etag)
|
7870
|
+
@event_id = args[:event_id] if args.key?(:event_id)
|
7871
|
+
@items = args[:items] if args.key?(:items)
|
7872
|
+
@kind = args[:kind] if args.key?(:kind)
|
7873
|
+
@visitor_id = args[:visitor_id] if args.key?(:visitor_id)
|
7874
|
+
end
|
7875
|
+
end
|
7876
|
+
|
7802
7877
|
#
|
7803
7878
|
class ListVideosResponse
|
7804
7879
|
include Google::Apis::Core::Hashable
|
@@ -8170,50 +8245,6 @@ module Google
|
|
8170
8245
|
end
|
8171
8246
|
end
|
8172
8247
|
|
8173
|
-
#
|
8174
|
-
class VideoRatingListResponse
|
8175
|
-
include Google::Apis::Core::Hashable
|
8176
|
-
|
8177
|
-
# Etag of this resource.
|
8178
|
-
# Corresponds to the JSON property `etag`
|
8179
|
-
# @return [String]
|
8180
|
-
attr_accessor :etag
|
8181
|
-
|
8182
|
-
# Serialized EventId of the request which produced this response.
|
8183
|
-
# Corresponds to the JSON property `eventId`
|
8184
|
-
# @return [String]
|
8185
|
-
attr_accessor :event_id
|
8186
|
-
|
8187
|
-
# A list of ratings that match the request criteria.
|
8188
|
-
# Corresponds to the JSON property `items`
|
8189
|
-
# @return [Array<Google::Apis::YoutubeV3::VideoRating>]
|
8190
|
-
attr_accessor :items
|
8191
|
-
|
8192
|
-
# Identifies what kind of resource this is. Value: the fixed string "youtube#
|
8193
|
-
# videoGetRatingResponse".
|
8194
|
-
# Corresponds to the JSON property `kind`
|
8195
|
-
# @return [String]
|
8196
|
-
attr_accessor :kind
|
8197
|
-
|
8198
|
-
# The visitorId identifies the visitor.
|
8199
|
-
# Corresponds to the JSON property `visitorId`
|
8200
|
-
# @return [String]
|
8201
|
-
attr_accessor :visitor_id
|
8202
|
-
|
8203
|
-
def initialize(**args)
|
8204
|
-
update!(**args)
|
8205
|
-
end
|
8206
|
-
|
8207
|
-
# Update properties of this object
|
8208
|
-
def update!(**args)
|
8209
|
-
@etag = args[:etag] if args.key?(:etag)
|
8210
|
-
@event_id = args[:event_id] if args.key?(:event_id)
|
8211
|
-
@items = args[:items] if args.key?(:items)
|
8212
|
-
@kind = args[:kind] if args.key?(:kind)
|
8213
|
-
@visitor_id = args[:visitor_id] if args.key?(:visitor_id)
|
8214
|
-
end
|
8215
|
-
end
|
8216
|
-
|
8217
8248
|
# Recording information associated with the video.
|
8218
8249
|
class VideoRecordingDetails
|
8219
8250
|
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.7.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.3.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210601"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -1000,6 +1000,12 @@ module Google
|
|
1000
1000
|
include Google::Apis::Core::JsonObjectSupport
|
1001
1001
|
end
|
1002
1002
|
|
1003
|
+
class GetVideoRatingResponse
|
1004
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1005
|
+
|
1006
|
+
include Google::Apis::Core::JsonObjectSupport
|
1007
|
+
end
|
1008
|
+
|
1003
1009
|
class ListVideosResponse
|
1004
1010
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1005
1011
|
|
@@ -1054,12 +1060,6 @@ module Google
|
|
1054
1060
|
include Google::Apis::Core::JsonObjectSupport
|
1055
1061
|
end
|
1056
1062
|
|
1057
|
-
class VideoRatingListResponse
|
1058
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1059
|
-
|
1060
|
-
include Google::Apis::Core::JsonObjectSupport
|
1061
|
-
end
|
1062
|
-
|
1063
1063
|
class VideoRecordingDetails
|
1064
1064
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1065
1065
|
|
@@ -2614,6 +2614,8 @@ module Google
|
|
2614
2614
|
property :thumbnails, as: 'thumbnails', class: Google::Apis::YoutubeV3::ThumbnailDetails, decorator: Google::Apis::YoutubeV3::ThumbnailDetails::Representation
|
2615
2615
|
|
2616
2616
|
property :title, as: 'title'
|
2617
|
+
property :video_owner_channel_id, as: 'videoOwnerChannelId'
|
2618
|
+
property :video_owner_channel_title, as: 'videoOwnerChannelTitle'
|
2617
2619
|
end
|
2618
2620
|
end
|
2619
2621
|
|
@@ -2669,6 +2671,7 @@ module Google
|
|
2669
2671
|
property :published_at, as: 'publishedAt', type: DateTime
|
2670
2672
|
|
2671
2673
|
collection :tags, as: 'tags'
|
2674
|
+
property :thumbnail_video_id, as: 'thumbnailVideoId'
|
2672
2675
|
property :thumbnails, as: 'thumbnails', class: Google::Apis::YoutubeV3::ThumbnailDetails, decorator: Google::Apis::YoutubeV3::ThumbnailDetails::Representation
|
2673
2676
|
|
2674
2677
|
property :title, as: 'title'
|
@@ -2882,6 +2885,7 @@ module Google
|
|
2882
2885
|
class TestItem
|
2883
2886
|
# @private
|
2884
2887
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2888
|
+
property :featured_part, as: 'featuredPart'
|
2885
2889
|
property :gaia, :numeric_string => true, as: 'gaia'
|
2886
2890
|
property :id, as: 'id'
|
2887
2891
|
property :snippet, as: 'snippet', class: Google::Apis::YoutubeV3::TestItemTestItemSnippet, decorator: Google::Apis::YoutubeV3::TestItemTestItemSnippet::Representation
|
@@ -3172,6 +3176,18 @@ module Google
|
|
3172
3176
|
end
|
3173
3177
|
end
|
3174
3178
|
|
3179
|
+
class GetVideoRatingResponse
|
3180
|
+
# @private
|
3181
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
3182
|
+
property :etag, as: 'etag'
|
3183
|
+
property :event_id, as: 'eventId'
|
3184
|
+
collection :items, as: 'items', class: Google::Apis::YoutubeV3::VideoRating, decorator: Google::Apis::YoutubeV3::VideoRating::Representation
|
3185
|
+
|
3186
|
+
property :kind, as: 'kind'
|
3187
|
+
property :visitor_id, as: 'visitorId'
|
3188
|
+
end
|
3189
|
+
end
|
3190
|
+
|
3175
3191
|
class ListVideosResponse
|
3176
3192
|
# @private
|
3177
3193
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -3269,18 +3285,6 @@ module Google
|
|
3269
3285
|
end
|
3270
3286
|
end
|
3271
3287
|
|
3272
|
-
class VideoRatingListResponse
|
3273
|
-
# @private
|
3274
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
3275
|
-
property :etag, as: 'etag'
|
3276
|
-
property :event_id, as: 'eventId'
|
3277
|
-
collection :items, as: 'items', class: Google::Apis::YoutubeV3::VideoRating, decorator: Google::Apis::YoutubeV3::VideoRating::Representation
|
3278
|
-
|
3279
|
-
property :kind, as: 'kind'
|
3280
|
-
property :visitor_id, as: 'visitorId'
|
3281
|
-
end
|
3282
|
-
end
|
3283
|
-
|
3284
3288
|
class VideoRecordingDetails
|
3285
3289
|
# @private
|
3286
3290
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -3393,18 +3393,18 @@ module Google
|
|
3393
3393
|
# Request-specific options
|
3394
3394
|
#
|
3395
3395
|
# @yield [result, err] Result & error if block supplied
|
3396
|
-
# @yieldparam result [Google::Apis::YoutubeV3::
|
3396
|
+
# @yieldparam result [Google::Apis::YoutubeV3::GetVideoRatingResponse] parsed result object
|
3397
3397
|
# @yieldparam err [StandardError] error object if request failed
|
3398
3398
|
#
|
3399
|
-
# @return [Google::Apis::YoutubeV3::
|
3399
|
+
# @return [Google::Apis::YoutubeV3::GetVideoRatingResponse]
|
3400
3400
|
#
|
3401
3401
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3402
3402
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3403
3403
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3404
3404
|
def get_video_rating(id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3405
3405
|
command = make_simple_command(:get, 'youtube/v3/videos/getRating', options)
|
3406
|
-
command.response_representation = Google::Apis::YoutubeV3::
|
3407
|
-
command.response_class = Google::Apis::YoutubeV3::
|
3406
|
+
command.response_representation = Google::Apis::YoutubeV3::GetVideoRatingResponse::Representation
|
3407
|
+
command.response_class = Google::Apis::YoutubeV3::GetVideoRatingResponse
|
3408
3408
|
command.query['id'] = id unless id.nil?
|
3409
3409
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
3410
3410
|
command.query['fields'] = fields unless fields.nil?
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-06-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -52,7 +52,7 @@ licenses:
|
|
52
52
|
metadata:
|
53
53
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
54
54
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-youtube_v3/CHANGELOG.md
|
55
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-youtube_v3/v0.
|
55
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-youtube_v3/v0.7.0
|
56
56
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-youtube_v3
|
57
57
|
post_install_message:
|
58
58
|
rdoc_options: []
|
@@ -62,14 +62,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
62
62
|
requirements:
|
63
63
|
- - ">="
|
64
64
|
- !ruby/object:Gem::Version
|
65
|
-
version: '2.
|
65
|
+
version: '2.5'
|
66
66
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
67
67
|
requirements:
|
68
68
|
- - ">="
|
69
69
|
- !ruby/object:Gem::Version
|
70
70
|
version: '0'
|
71
71
|
requirements: []
|
72
|
-
rubygems_version: 3.2.
|
72
|
+
rubygems_version: 3.2.17
|
73
73
|
signing_key:
|
74
74
|
specification_version: 4
|
75
75
|
summary: Simple REST client for YouTube Data API v3 V3
|