google-apis-youtube_v3 0.4.0 → 0.9.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: cc97d446619aae24f4db4255213601f2fb430b668dd72d68e770f7e26c0ec930
4
- data.tar.gz: 9021d8296a8c73a63e203079ff50ccda01ccd33efef9c85956202ab79327e696
3
+ metadata.gz: 9f946ad2d41baa745f848bff5cc0a4503b1c6608fa3b3cccf8296477efbd2b89
4
+ data.tar.gz: 924d57ca2c52b99a6fd2af00a99362e6f4e7ece4457ba5c26213b2c8c4553344
5
5
  SHA512:
6
- metadata.gz: 791c6e5e71c1f72285f26580ece320a53dbf19cdae1f7313d5dd92e6a957f73ca860957c123fb9da35feeb38ec0cfaebd2b50c04689324bcd42250bd9169f634
7
- data.tar.gz: a274c4b79e922ab74a30ac5f364cda7feb9379e7935bd38a971d4b65346c03e57feea883eedf628f779910c84f7fa010e5b52680dda3f016f9da9efd99bee67a
6
+ metadata.gz: 240bcfa521defbc444b019bf9291d11cb042431516b88af2c28ccac6944b16ceb4f048b733cd42b00d58e86f47adb51c287986bd7a1dcd217dc1cecba09f4d04
7
+ data.tar.gz: 8c1232a1a87efe0b0eb9867b147e8c2bb93957cdc1fb84d68281d77d7534d66094cd25df43b25d9cea303f946602c758820020105b109179624fc5d8fe152dd5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # Release history for google-apis-youtube_v3
2
2
 
3
+ ### v0.9.0 (2021-06-29)
4
+
5
+ * Regenerated using generator version 0.4.0
6
+
7
+ ### v0.8.0 (2021-06-25)
8
+
9
+ * Regenerated from discovery document revision 20210624
10
+
11
+ ### v0.7.0 (2021-06-03)
12
+
13
+ * Regenerated from discovery document revision 20210601
14
+ * Regenerated using generator version 0.3.0
15
+
16
+ ### v0.6.0 (2021-05-20)
17
+
18
+ * Regenerated from discovery document revision 20210410
19
+
20
+ ### v0.5.0 (2021-04-09)
21
+
22
+ * Regenerated from discovery document revision 20210407
23
+ * Regenerated using generator version 0.2.0
24
+
3
25
  ### v0.4.0 (2021-03-04)
4
26
 
5
27
  * Unspecified changes
@@ -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 start.
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 end.
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
@@ -6760,6 +6760,12 @@ module Google
6760
6760
  class TestItem
6761
6761
  include Google::Apis::Core::Hashable
6762
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
+
6763
6769
  #
6764
6770
  # Corresponds to the JSON property `gaia`
6765
6771
  # @return [Fixnum]
@@ -6781,6 +6787,7 @@ module Google
6781
6787
 
6782
6788
  # Update properties of this object
6783
6789
  def update!(**args)
6790
+ @featured_part = args[:featured_part] if args.key?(:featured_part)
6784
6791
  @gaia = args[:gaia] if args.key?(:gaia)
6785
6792
  @id = args[:id] if args.key?(:id)
6786
6793
  @snippet = args[:snippet] if args.key?(:snippet)
@@ -7823,6 +7830,50 @@ module Google
7823
7830
  end
7824
7831
  end
7825
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
+
7826
7877
  #
7827
7878
  class ListVideosResponse
7828
7879
  include Google::Apis::Core::Hashable
@@ -8194,50 +8245,6 @@ module Google
8194
8245
  end
8195
8246
  end
8196
8247
 
8197
- #
8198
- class VideoRatingListResponse
8199
- include Google::Apis::Core::Hashable
8200
-
8201
- # Etag of this resource.
8202
- # Corresponds to the JSON property `etag`
8203
- # @return [String]
8204
- attr_accessor :etag
8205
-
8206
- # Serialized EventId of the request which produced this response.
8207
- # Corresponds to the JSON property `eventId`
8208
- # @return [String]
8209
- attr_accessor :event_id
8210
-
8211
- # A list of ratings that match the request criteria.
8212
- # Corresponds to the JSON property `items`
8213
- # @return [Array<Google::Apis::YoutubeV3::VideoRating>]
8214
- attr_accessor :items
8215
-
8216
- # Identifies what kind of resource this is. Value: the fixed string "youtube#
8217
- # videoGetRatingResponse".
8218
- # Corresponds to the JSON property `kind`
8219
- # @return [String]
8220
- attr_accessor :kind
8221
-
8222
- # The visitorId identifies the visitor.
8223
- # Corresponds to the JSON property `visitorId`
8224
- # @return [String]
8225
- attr_accessor :visitor_id
8226
-
8227
- def initialize(**args)
8228
- update!(**args)
8229
- end
8230
-
8231
- # Update properties of this object
8232
- def update!(**args)
8233
- @etag = args[:etag] if args.key?(:etag)
8234
- @event_id = args[:event_id] if args.key?(:event_id)
8235
- @items = args[:items] if args.key?(:items)
8236
- @kind = args[:kind] if args.key?(:kind)
8237
- @visitor_id = args[:visitor_id] if args.key?(:visitor_id)
8238
- end
8239
- end
8240
-
8241
8248
  # Recording information associated with the video.
8242
8249
  class VideoRecordingDetails
8243
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.4.0"
19
+ GEM_VERSION = "0.9.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.1.2"
22
+ GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210210"
25
+ REVISION = "20210624"
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
 
@@ -2885,6 +2885,7 @@ module Google
2885
2885
  class TestItem
2886
2886
  # @private
2887
2887
  class Representation < Google::Apis::Core::JsonRepresentation
2888
+ property :featured_part, as: 'featuredPart'
2888
2889
  property :gaia, :numeric_string => true, as: 'gaia'
2889
2890
  property :id, as: 'id'
2890
2891
  property :snippet, as: 'snippet', class: Google::Apis::YoutubeV3::TestItemTestItemSnippet, decorator: Google::Apis::YoutubeV3::TestItemTestItemSnippet::Representation
@@ -3175,6 +3176,18 @@ module Google
3175
3176
  end
3176
3177
  end
3177
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
+
3178
3191
  class ListVideosResponse
3179
3192
  # @private
3180
3193
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3272,18 +3285,6 @@ module Google
3272
3285
  end
3273
3286
  end
3274
3287
 
3275
- class VideoRatingListResponse
3276
- # @private
3277
- class Representation < Google::Apis::Core::JsonRepresentation
3278
- property :etag, as: 'etag'
3279
- property :event_id, as: 'eventId'
3280
- collection :items, as: 'items', class: Google::Apis::YoutubeV3::VideoRating, decorator: Google::Apis::YoutubeV3::VideoRating::Representation
3281
-
3282
- property :kind, as: 'kind'
3283
- property :visitor_id, as: 'visitorId'
3284
- end
3285
- end
3286
-
3287
3288
  class VideoRecordingDetails
3288
3289
  # @private
3289
3290
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -927,42 +927,6 @@ module Google
927
927
  execute_or_queue_command(command, &block)
928
928
  end
929
929
 
930
- # Updates an existing resource.
931
- # @param [Array<String>, String] part
932
- # The *part* parameter specifies a comma-separated list of commentThread
933
- # resource properties that the API response will include. You must at least
934
- # include the snippet part in the parameter value since that part contains all
935
- # of the properties that the API request can update.
936
- # @param [Google::Apis::YoutubeV3::CommentThread] comment_thread_object
937
- # @param [String] fields
938
- # Selector specifying which fields to include in a partial response.
939
- # @param [String] quota_user
940
- # Available to use for quota purposes for server-side applications. Can be any
941
- # arbitrary string assigned to a user, but should not exceed 40 characters.
942
- # @param [Google::Apis::RequestOptions] options
943
- # Request-specific options
944
- #
945
- # @yield [result, err] Result & error if block supplied
946
- # @yieldparam result [Google::Apis::YoutubeV3::CommentThread] parsed result object
947
- # @yieldparam err [StandardError] error object if request failed
948
- #
949
- # @return [Google::Apis::YoutubeV3::CommentThread]
950
- #
951
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
952
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
953
- # @raise [Google::Apis::AuthorizationError] Authorization is required
954
- def update_comment_thread(part, comment_thread_object = nil, fields: nil, quota_user: nil, options: nil, &block)
955
- command = make_simple_command(:put, 'youtube/v3/commentThreads', options)
956
- command.request_representation = Google::Apis::YoutubeV3::CommentThread::Representation
957
- command.request_object = comment_thread_object
958
- command.response_representation = Google::Apis::YoutubeV3::CommentThread::Representation
959
- command.response_class = Google::Apis::YoutubeV3::CommentThread
960
- command.query['part'] = part unless part.nil?
961
- command.query['fields'] = fields unless fields.nil?
962
- command.query['quotaUser'] = quota_user unless quota_user.nil?
963
- execute_or_queue_command(command, &block)
964
- end
965
-
966
930
  # Deletes a resource.
967
931
  # @param [String] id
968
932
  # @param [String] fields
@@ -2996,7 +2960,7 @@ module Google
2996
2960
  # Retrieves a list of resources, possibly filtered.
2997
2961
  # @param [Array<String>, String] part
2998
2962
  # The *part* parameter specifies the superChatEvent resource parts that the API
2999
- # response will include. Supported values are id and snippet.
2963
+ # response will include. This parameter is currently not supported.
3000
2964
  # @param [String] hl
3001
2965
  # Return rendered funding amounts in specified language.
3002
2966
  # @param [Fixnum] max_results
@@ -3393,18 +3357,18 @@ module Google
3393
3357
  # Request-specific options
3394
3358
  #
3395
3359
  # @yield [result, err] Result & error if block supplied
3396
- # @yieldparam result [Google::Apis::YoutubeV3::VideoRatingListResponse] parsed result object
3360
+ # @yieldparam result [Google::Apis::YoutubeV3::GetVideoRatingResponse] parsed result object
3397
3361
  # @yieldparam err [StandardError] error object if request failed
3398
3362
  #
3399
- # @return [Google::Apis::YoutubeV3::VideoRatingListResponse]
3363
+ # @return [Google::Apis::YoutubeV3::GetVideoRatingResponse]
3400
3364
  #
3401
3365
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3402
3366
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3403
3367
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3404
3368
  def get_video_rating(id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block)
3405
3369
  command = make_simple_command(:get, 'youtube/v3/videos/getRating', options)
3406
- command.response_representation = Google::Apis::YoutubeV3::VideoRatingListResponse::Representation
3407
- command.response_class = Google::Apis::YoutubeV3::VideoRatingListResponse
3370
+ command.response_representation = Google::Apis::YoutubeV3::GetVideoRatingResponse::Representation
3371
+ command.response_class = Google::Apis::YoutubeV3::GetVideoRatingResponse
3408
3372
  command.query['id'] = id unless id.nil?
3409
3373
  command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
3410
3374
  command.query['fields'] = fields unless fields.nil?
@@ -3805,6 +3769,42 @@ module Google
3805
3769
  command.query['quotaUser'] = quota_user unless quota_user.nil?
3806
3770
  execute_or_queue_command(command, &block)
3807
3771
  end
3772
+
3773
+ # Updates an existing resource.
3774
+ # @param [Google::Apis::YoutubeV3::CommentThread] comment_thread_object
3775
+ # @param [Array<String>, String] part
3776
+ # The *part* parameter specifies a comma-separated list of commentThread
3777
+ # resource properties that the API response will include. You must at least
3778
+ # include the snippet part in the parameter value since that part contains all
3779
+ # of the properties that the API request can update.
3780
+ # @param [String] fields
3781
+ # Selector specifying which fields to include in a partial response.
3782
+ # @param [String] quota_user
3783
+ # Available to use for quota purposes for server-side applications. Can be any
3784
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3785
+ # @param [Google::Apis::RequestOptions] options
3786
+ # Request-specific options
3787
+ #
3788
+ # @yield [result, err] Result & error if block supplied
3789
+ # @yieldparam result [Google::Apis::YoutubeV3::CommentThread] parsed result object
3790
+ # @yieldparam err [StandardError] error object if request failed
3791
+ #
3792
+ # @return [Google::Apis::YoutubeV3::CommentThread]
3793
+ #
3794
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3795
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3796
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3797
+ def update_youtube_v3_comment_threads(comment_thread_object = nil, part: nil, fields: nil, quota_user: nil, options: nil, &block)
3798
+ command = make_simple_command(:put, 'youtube/v3/commentThreads', options)
3799
+ command.request_representation = Google::Apis::YoutubeV3::CommentThread::Representation
3800
+ command.request_object = comment_thread_object
3801
+ command.response_representation = Google::Apis::YoutubeV3::CommentThread::Representation
3802
+ command.response_class = Google::Apis::YoutubeV3::CommentThread
3803
+ command.query['part'] = part unless part.nil?
3804
+ command.query['fields'] = fields unless fields.nil?
3805
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3806
+ execute_or_queue_command(command, &block)
3807
+ end
3808
3808
 
3809
3809
  protected
3810
3810
 
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-youtube_v3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.9.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-03-08 00:00:00.000000000 Z
11
+ date: 2021-07-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.1'
19
+ version: '0.4'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: 2.a
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '0.4'
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: '0.1'
32
+ version: 2.a
27
33
  description: This is the simple REST client for YouTube Data API v3 V3. Simple REST
28
34
  clients are Ruby client libraries that provide access to Google services via their
29
35
  HTTP REST API endpoints. These libraries are generated and updated automatically
@@ -52,7 +58,7 @@ licenses:
52
58
  metadata:
53
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
60
  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.4.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-youtube_v3/v0.9.0
56
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-youtube_v3
57
63
  post_install_message:
58
64
  rdoc_options: []
@@ -69,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
75
  - !ruby/object:Gem::Version
70
76
  version: '0'
71
77
  requirements: []
72
- rubygems_version: 3.2.13
78
+ rubygems_version: 3.2.17
73
79
  signing_key:
74
80
  specification_version: 4
75
81
  summary: Simple REST client for YouTube Data API v3 V3