google-apis-youtube_v3 0.1.0 → 0.6.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: ea912bd227e27b7e8855b2a97c682a86cc301ef2c5636ded9a01afbc9ae10925
4
- data.tar.gz: 8eb660f5ec4241b44d6a599d7470d02a44d1641143a9c895e09c4c7a2818a79e
3
+ metadata.gz: 05e6942c32a6d1da9522f9ed39d379a0ad156d4d0569b71ca053d59b3f77c1cf
4
+ data.tar.gz: 8317fdba54bba037930338dd736b903a773399fbb12a30c199ae6898ca1abd33
5
5
  SHA512:
6
- metadata.gz: eaf4beedefd6fc56d6868fdf9327c928ecba26decba8c147c5c347e3787aa3b4b7ebaa9d81f46aa5691d1153a7af0c544108759c68e582a7c818aa9d87559e8b
7
- data.tar.gz: 999bd0d91cd62a898d50e8c4d5206cb74cf120b23fd34a9850c29aa87b6e549a127ce51f0ee56af5549d2439168d6f246b13d355430e7efdd4e807dd3d69b976
6
+ metadata.gz: 4b93cb1b95061f81b82be5629e9274844957446de63b68c24d7ff4814358239dbeb72d91af8aa06ff83e6cec109a0aa821cbbaaad5d425f2f09d1cbe69525b10
7
+ data.tar.gz: 046ef74408bbc06c71f05ee28f1c953589e006c47e630eaa6bd3780de767c4f39a9bc094cbff33f4784c3980539f991c9ae8e07dd68940c5d56723d224841168
data/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # Release history for google-apis-youtube_v3
2
2
 
3
+ ### v0.6.0 (2021-05-20)
4
+
5
+ * Regenerated from discovery document revision 20210410
6
+
7
+ ### v0.5.0 (2021-04-09)
8
+
9
+ * Regenerated from discovery document revision 20210407
10
+ * Regenerated using generator version 0.2.0
11
+
12
+ ### v0.4.0 (2021-03-04)
13
+
14
+ * Unspecified changes
15
+
16
+ ### v0.3.0 (2021-02-11)
17
+
18
+ * Regenerated from discovery document revision 20210210
19
+
20
+ ### v0.2.0 (2021-02-02)
21
+
22
+ * Regenerated from discovery document revision 20210130
23
+ * Regenerated using generator version 0.1.2
24
+
3
25
  ### v0.1.0 (2021-01-07)
4
26
 
5
27
  * Regenerated from discovery document revision 20201231
@@ -660,10 +660,9 @@ module Google
660
660
  # @return [String]
661
661
  attr_accessor :group_id
662
662
 
663
- # The date and time that the video was uploaded. The value is specified in ISO
664
- # 8601 format.
663
+ # The date and time that the video was uploaded.
665
664
  # Corresponds to the JSON property `publishedAt`
666
- # @return [String]
665
+ # @return [DateTime]
667
666
  attr_accessor :published_at
668
667
 
669
668
  # Internal representation of thumbnails for a YouTube resource.
@@ -842,10 +841,9 @@ module Google
842
841
  # @return [String]
843
842
  attr_accessor :language
844
843
 
845
- # The date and time when the caption track was last updated. The value is
846
- # specified in ISO 8601 format.
844
+ # The date and time when the caption track was last updated.
847
845
  # Corresponds to the JSON property `lastUpdated`
848
- # @return [String]
846
+ # @return [DateTime]
849
847
  attr_accessor :last_updated
850
848
 
851
849
  # The name of the caption track. The name is intended to be visible to the user
@@ -1217,10 +1215,9 @@ module Google
1217
1215
  # @return [String]
1218
1216
  attr_accessor :content_owner
1219
1217
 
1220
- # The date and time of when the channel was linked to the content owner. The
1221
- # value is specified in ISO 8601 format.
1218
+ # The date and time when the channel was linked to the content owner.
1222
1219
  # Corresponds to the JSON property `timeLinked`
1223
- # @return [String]
1220
+ # @return [DateTime]
1224
1221
  attr_accessor :time_linked
1225
1222
 
1226
1223
  def initialize(**args)
@@ -1784,10 +1781,9 @@ module Google
1784
1781
  # @return [Google::Apis::YoutubeV3::ChannelLocalization]
1785
1782
  attr_accessor :localized
1786
1783
 
1787
- # The date and time that the channel was created. The value is specified in < a
1788
- # href="//www.w3.org/TR/NOTE-datetime">ISO 8601 format.
1784
+ # The date and time that the channel was created.
1789
1785
  # Corresponds to the JSON property `publishedAt`
1790
- # @return [String]
1786
+ # @return [DateTime]
1791
1787
  attr_accessor :published_at
1792
1788
 
1793
1789
  # Internal representation of thumbnails for a YouTube resource.
@@ -2117,10 +2113,9 @@ module Google
2117
2113
  # @return [String]
2118
2114
  attr_accessor :parent_id
2119
2115
 
2120
- # The date and time when the comment was orignally published. The value is
2121
- # specified in ISO 8601 format.
2116
+ # The date and time when the comment was originally published.
2122
2117
  # Corresponds to the JSON property `publishedAt`
2123
- # @return [String]
2118
+ # @return [DateTime]
2124
2119
  attr_accessor :published_at
2125
2120
 
2126
2121
  # The comment's text. The format is either plain text or HTML dependent on what
@@ -2138,10 +2133,9 @@ module Google
2138
2133
  # @return [String]
2139
2134
  attr_accessor :text_original
2140
2135
 
2141
- # The date and time when was last updated . The value is specified in ISO 8601
2142
- # format.
2136
+ # The date and time when the comment was last updated.
2143
2137
  # Corresponds to the JSON property `updatedAt`
2144
- # @return [String]
2138
+ # @return [DateTime]
2145
2139
  attr_accessor :updated_at
2146
2140
 
2147
2141
  # The ID of the video the comment refers to, if any.
@@ -3564,7 +3558,7 @@ module Google
3564
3558
  # The date and time that the live stream referenced by boundStreamId was last
3565
3559
  # updated.
3566
3560
  # Corresponds to the JSON property `boundStreamLastUpdateTimeMs`
3567
- # @return [String]
3561
+ # @return [DateTime]
3568
3562
  attr_accessor :bound_stream_last_update_time_ms
3569
3563
 
3570
3564
  #
@@ -3679,6 +3673,11 @@ module Google
3679
3673
  attr_accessor :start_with_slate
3680
3674
  alias_method :start_with_slate?, :start_with_slate
3681
3675
 
3676
+ # The 3D stereo layout of this broadcast. This defaults to mono.
3677
+ # Corresponds to the JSON property `stereoLayout`
3678
+ # @return [String]
3679
+ attr_accessor :stereo_layout
3680
+
3682
3681
  def initialize(**args)
3683
3682
  update!(**args)
3684
3683
  end
@@ -3701,6 +3700,7 @@ module Google
3701
3700
  @projection = args[:projection] if args.key?(:projection)
3702
3701
  @record_from_start = args[:record_from_start] if args.key?(:record_from_start)
3703
3702
  @start_with_slate = args[:start_with_slate] if args.key?(:start_with_slate)
3703
+ @stereo_layout = args[:stereo_layout] if args.key?(:stereo_layout)
3704
3704
  end
3705
3705
  end
3706
3706
 
@@ -3780,17 +3780,15 @@ module Google
3780
3780
  include Google::Apis::Core::Hashable
3781
3781
 
3782
3782
  # The date and time that the broadcast actually ended. This information is only
3783
- # available once the broadcast's state is complete. The value is specified in
3784
- # ISO 8601 format.
3783
+ # available once the broadcast's state is complete.
3785
3784
  # Corresponds to the JSON property `actualEndTime`
3786
- # @return [String]
3785
+ # @return [DateTime]
3787
3786
  attr_accessor :actual_end_time
3788
3787
 
3789
3788
  # The date and time that the broadcast actually started. This information is
3790
- # only available once the broadcast's state is live. The value is specified in
3791
- # ISO 8601 format.
3789
+ # only available once the broadcast's state is live.
3792
3790
  # Corresponds to the JSON property `actualStartTime`
3793
- # @return [String]
3791
+ # @return [DateTime]
3794
3792
  attr_accessor :actual_start_time
3795
3793
 
3796
3794
  # The ID that YouTube uses to uniquely identify the channel that is publishing
@@ -3818,21 +3816,19 @@ module Google
3818
3816
  attr_accessor :live_chat_id
3819
3817
 
3820
3818
  # The date and time that the broadcast was added to YouTube's live broadcast
3821
- # schedule. The value is specified in ISO 8601 format.
3819
+ # schedule.
3822
3820
  # Corresponds to the JSON property `publishedAt`
3823
- # @return [String]
3821
+ # @return [DateTime]
3824
3822
  attr_accessor :published_at
3825
3823
 
3826
- # The date and time that the broadcast is scheduled to end. The value is
3827
- # specified in ISO 8601 format.
3824
+ # The date and time that the broadcast is scheduled to end.
3828
3825
  # Corresponds to the JSON property `scheduledEndTime`
3829
- # @return [String]
3826
+ # @return [DateTime]
3830
3827
  attr_accessor :scheduled_end_time
3831
3828
 
3832
- # The date and time that the broadcast is scheduled to start. The value is
3833
- # specified in ISO 8601 format.
3829
+ # The date and time that the broadcast is scheduled to start.
3834
3830
  # Corresponds to the JSON property `scheduledStartTime`
3835
- # @return [String]
3831
+ # @return [DateTime]
3836
3832
  attr_accessor :scheduled_start_time
3837
3833
 
3838
3834
  # Internal representation of thumbnails for a YouTube resource.
@@ -4221,10 +4217,9 @@ module Google
4221
4217
  # @return [String]
4222
4218
  attr_accessor :next_page_token
4223
4219
 
4224
- # The date and time when the underlying stream went offline. The value is
4225
- # specified in ISO 8601 format.
4220
+ # The date and time when the underlying stream went offline.
4226
4221
  # Corresponds to the JSON property `offlineAt`
4227
- # @return [String]
4222
+ # @return [DateTime]
4228
4223
  attr_accessor :offline_at
4229
4224
 
4230
4225
  # Paging details for lists of resources, including total number of items
@@ -4335,10 +4330,9 @@ module Google
4335
4330
  # @return [Google::Apis::YoutubeV3::LiveChatMessageRetractedDetails]
4336
4331
  attr_accessor :message_retracted_details
4337
4332
 
4338
- # The date and time when the message was orignally published. The value is
4339
- # specified in ISO 8601 format.
4333
+ # The date and time when the message was orignally published.
4340
4334
  # Corresponds to the JSON property `publishedAt`
4341
- # @return [String]
4335
+ # @return [DateTime]
4342
4336
  attr_accessor :published_at
4343
4337
 
4344
4338
  # Details about the Super Chat event, this is only set if the type is '
@@ -4920,10 +4914,9 @@ module Google
4920
4914
  attr_accessor :is_default_stream
4921
4915
  alias_method :is_default_stream?, :is_default_stream
4922
4916
 
4923
- # The date and time that the stream was created. The value is specified in ISO
4924
- # 8601 format.
4917
+ # The date and time that the stream was created.
4925
4918
  # Corresponds to the JSON property `publishedAt`
4926
- # @return [String]
4919
+ # @return [DateTime]
4927
4920
  attr_accessor :published_at
4928
4921
 
4929
4922
  # The stream's title. The value must be between 1 and 128 characters long.
@@ -5569,7 +5562,7 @@ module Google
5569
5562
  attr_accessor :kind
5570
5563
 
5571
5564
  # Basic details about a playlist, including title, description and thumbnails.
5572
- # Basic details of a YouTube Playlist item provided by the author. Next ID: 13
5565
+ # Basic details of a YouTube Playlist item provided by the author. Next ID: 15
5573
5566
  # Corresponds to the JSON property `snippet`
5574
5567
  # @return [Google::Apis::YoutubeV3::PlaylistItemSnippet]
5575
5568
  attr_accessor :snippet
@@ -5625,10 +5618,9 @@ module Google
5625
5618
  # @return [String]
5626
5619
  attr_accessor :video_id
5627
5620
 
5628
- # The date and time that the video was published to YouTube. The value is
5629
- # specified in ISO 8601 format.
5621
+ # The date and time that the video was published to YouTube.
5630
5622
  # Corresponds to the JSON property `videoPublishedAt`
5631
- # @return [String]
5623
+ # @return [DateTime]
5632
5624
  attr_accessor :video_published_at
5633
5625
 
5634
5626
  def initialize(**args)
@@ -5717,7 +5709,7 @@ module Google
5717
5709
  end
5718
5710
 
5719
5711
  # Basic details about a playlist, including title, description and thumbnails.
5720
- # Basic details of a YouTube Playlist item provided by the author. Next ID: 13
5712
+ # Basic details of a YouTube Playlist item provided by the author. Next ID: 15
5721
5713
  class PlaylistItemSnippet
5722
5714
  include Google::Apis::Core::Hashable
5723
5715
 
@@ -5750,10 +5742,9 @@ module Google
5750
5742
  # @return [Fixnum]
5751
5743
  attr_accessor :position
5752
5744
 
5753
- # The date and time that the item was added to the playlist. The value is
5754
- # specified in ISO 8601 format.
5745
+ # The date and time that the item was added to the playlist.
5755
5746
  # Corresponds to the JSON property `publishedAt`
5756
- # @return [String]
5747
+ # @return [DateTime]
5757
5748
  attr_accessor :published_at
5758
5749
 
5759
5750
  # A resource id is a generic reference that points to another YouTube resource.
@@ -5771,6 +5762,16 @@ module Google
5771
5762
  # @return [String]
5772
5763
  attr_accessor :title
5773
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
+
5774
5775
  def initialize(**args)
5775
5776
  update!(**args)
5776
5777
  end
@@ -5786,6 +5787,8 @@ module Google
5786
5787
  @resource_id = args[:resource_id] if args.key?(:resource_id)
5787
5788
  @thumbnails = args[:thumbnails] if args.key?(:thumbnails)
5788
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)
5789
5792
  end
5790
5793
  end
5791
5794
 
@@ -5953,10 +5956,9 @@ module Google
5953
5956
  # @return [Google::Apis::YoutubeV3::PlaylistLocalization]
5954
5957
  attr_accessor :localized
5955
5958
 
5956
- # The date and time that the playlist was created. The value is specified in ISO
5957
- # 8601 format.
5959
+ # The date and time that the playlist was created.
5958
5960
  # Corresponds to the JSON property `publishedAt`
5959
- # @return [String]
5961
+ # @return [DateTime]
5960
5962
  attr_accessor :published_at
5961
5963
 
5962
5964
  # Keyword tags associated with the playlist.
@@ -5964,6 +5966,17 @@ module Google
5964
5966
  # @return [Array<String>]
5965
5967
  attr_accessor :tags
5966
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
+
5967
5980
  # Internal representation of thumbnails for a YouTube resource.
5968
5981
  # Corresponds to the JSON property `thumbnails`
5969
5982
  # @return [Google::Apis::YoutubeV3::ThumbnailDetails]
@@ -5987,6 +6000,7 @@ module Google
5987
6000
  @localized = args[:localized] if args.key?(:localized)
5988
6001
  @published_at = args[:published_at] if args.key?(:published_at)
5989
6002
  @tags = args[:tags] if args.key?(:tags)
6003
+ @thumbnail_video_id = args[:thumbnail_video_id] if args.key?(:thumbnail_video_id)
5990
6004
  @thumbnails = args[:thumbnails] if args.key?(:thumbnails)
5991
6005
  @title = args[:title] if args.key?(:title)
5992
6006
  end
@@ -6247,9 +6261,8 @@ module Google
6247
6261
  attr_accessor :live_broadcast_content
6248
6262
 
6249
6263
  # The creation date and time of the resource that the search result identifies.
6250
- # The value is specified in ISO 8601 format.
6251
6264
  # Corresponds to the JSON property `publishedAt`
6252
- # @return [String]
6265
+ # @return [DateTime]
6253
6266
  attr_accessor :published_at
6254
6267
 
6255
6268
  # Internal representation of thumbnails for a YouTube resource.
@@ -6455,10 +6468,9 @@ module Google
6455
6468
  # @return [String]
6456
6469
  attr_accessor :description
6457
6470
 
6458
- # The date and time that the subscription was created. The value is specified in
6459
- # ISO 8601 format.
6471
+ # The date and time that the subscription was created.
6460
6472
  # Corresponds to the JSON property `publishedAt`
6461
- # @return [String]
6473
+ # @return [DateTime]
6462
6474
  attr_accessor :published_at
6463
6475
 
6464
6476
  # A resource id is a generic reference that points to another YouTube resource.
@@ -6653,10 +6665,9 @@ module Google
6653
6665
  # @return [String]
6654
6666
  attr_accessor :comment_text
6655
6667
 
6656
- # The date and time when the event occurred. The value is specified in ISO 8601
6657
- # format.
6668
+ # The date and time when the event occurred.
6658
6669
  # Corresponds to the JSON property `createdAt`
6659
- # @return [String]
6670
+ # @return [DateTime]
6660
6671
  attr_accessor :created_at
6661
6672
 
6662
6673
  # The currency in which the purchase was made. ISO 4217.
@@ -7812,6 +7823,50 @@ module Google
7812
7823
  end
7813
7824
  end
7814
7825
 
7826
+ #
7827
+ class GetVideoRatingResponse
7828
+ include Google::Apis::Core::Hashable
7829
+
7830
+ # Etag of this resource.
7831
+ # Corresponds to the JSON property `etag`
7832
+ # @return [String]
7833
+ attr_accessor :etag
7834
+
7835
+ # Serialized EventId of the request which produced this response.
7836
+ # Corresponds to the JSON property `eventId`
7837
+ # @return [String]
7838
+ attr_accessor :event_id
7839
+
7840
+ # A list of ratings that match the request criteria.
7841
+ # Corresponds to the JSON property `items`
7842
+ # @return [Array<Google::Apis::YoutubeV3::VideoRating>]
7843
+ attr_accessor :items
7844
+
7845
+ # Identifies what kind of resource this is. Value: the fixed string "youtube#
7846
+ # videoGetRatingResponse".
7847
+ # Corresponds to the JSON property `kind`
7848
+ # @return [String]
7849
+ attr_accessor :kind
7850
+
7851
+ # The visitorId identifies the visitor.
7852
+ # Corresponds to the JSON property `visitorId`
7853
+ # @return [String]
7854
+ attr_accessor :visitor_id
7855
+
7856
+ def initialize(**args)
7857
+ update!(**args)
7858
+ end
7859
+
7860
+ # Update properties of this object
7861
+ def update!(**args)
7862
+ @etag = args[:etag] if args.key?(:etag)
7863
+ @event_id = args[:event_id] if args.key?(:event_id)
7864
+ @items = args[:items] if args.key?(:items)
7865
+ @kind = args[:kind] if args.key?(:kind)
7866
+ @visitor_id = args[:visitor_id] if args.key?(:visitor_id)
7867
+ end
7868
+ end
7869
+
7815
7870
  #
7816
7871
  class ListVideosResponse
7817
7872
  include Google::Apis::Core::Hashable
@@ -7897,16 +7952,16 @@ module Google
7897
7952
  # @return [String]
7898
7953
  attr_accessor :active_live_chat_id
7899
7954
 
7900
- # The time that the broadcast actually ended. The value is specified in ISO 8601
7901
- # format. This value will not be available until the broadcast is over.
7955
+ # The time that the broadcast actually ended. This value will not be available
7956
+ # until the broadcast is over.
7902
7957
  # Corresponds to the JSON property `actualEndTime`
7903
- # @return [String]
7958
+ # @return [DateTime]
7904
7959
  attr_accessor :actual_end_time
7905
7960
 
7906
- # The time that the broadcast actually started. The value is specified in ISO
7907
- # 8601 format. This value will not be available until the broadcast begins.
7961
+ # The time that the broadcast actually started. This value will not be available
7962
+ # until the broadcast begins.
7908
7963
  # Corresponds to the JSON property `actualStartTime`
7909
- # @return [String]
7964
+ # @return [DateTime]
7910
7965
  attr_accessor :actual_start_time
7911
7966
 
7912
7967
  # The number of viewers currently watching the broadcast. The property and its
@@ -7919,17 +7974,16 @@ module Google
7919
7974
  # @return [Fixnum]
7920
7975
  attr_accessor :concurrent_viewers
7921
7976
 
7922
- # The time that the broadcast is scheduled to end. The value is specified in ISO
7923
- # 8601 format. If the value is empty or the property is not present, then the
7924
- # broadcast is scheduled to continue indefinitely.
7977
+ # The time that the broadcast is scheduled to end. If the value is empty or the
7978
+ # property is not present, then the broadcast is scheduled to contiue
7979
+ # indefinitely.
7925
7980
  # Corresponds to the JSON property `scheduledEndTime`
7926
- # @return [String]
7981
+ # @return [DateTime]
7927
7982
  attr_accessor :scheduled_end_time
7928
7983
 
7929
- # The time that the broadcast is scheduled to begin. The value is specified in
7930
- # ISO 8601 format.
7984
+ # The time that the broadcast is scheduled to begin.
7931
7985
  # Corresponds to the JSON property `scheduledStartTime`
7932
- # @return [String]
7986
+ # @return [DateTime]
7933
7987
  attr_accessor :scheduled_start_time
7934
7988
 
7935
7989
  def initialize(**args)
@@ -8184,50 +8238,6 @@ module Google
8184
8238
  end
8185
8239
  end
8186
8240
 
8187
- #
8188
- class VideoRatingListResponse
8189
- include Google::Apis::Core::Hashable
8190
-
8191
- # Etag of this resource.
8192
- # Corresponds to the JSON property `etag`
8193
- # @return [String]
8194
- attr_accessor :etag
8195
-
8196
- # Serialized EventId of the request which produced this response.
8197
- # Corresponds to the JSON property `eventId`
8198
- # @return [String]
8199
- attr_accessor :event_id
8200
-
8201
- # A list of ratings that match the request criteria.
8202
- # Corresponds to the JSON property `items`
8203
- # @return [Array<Google::Apis::YoutubeV3::VideoRating>]
8204
- attr_accessor :items
8205
-
8206
- # Identifies what kind of resource this is. Value: the fixed string "youtube#
8207
- # videoGetRatingResponse".
8208
- # Corresponds to the JSON property `kind`
8209
- # @return [String]
8210
- attr_accessor :kind
8211
-
8212
- # The visitorId identifies the visitor.
8213
- # Corresponds to the JSON property `visitorId`
8214
- # @return [String]
8215
- attr_accessor :visitor_id
8216
-
8217
- def initialize(**args)
8218
- update!(**args)
8219
- end
8220
-
8221
- # Update properties of this object
8222
- def update!(**args)
8223
- @etag = args[:etag] if args.key?(:etag)
8224
- @event_id = args[:event_id] if args.key?(:event_id)
8225
- @items = args[:items] if args.key?(:items)
8226
- @kind = args[:kind] if args.key?(:kind)
8227
- @visitor_id = args[:visitor_id] if args.key?(:visitor_id)
8228
- end
8229
- end
8230
-
8231
8241
  # Recording information associated with the video.
8232
8242
  class VideoRecordingDetails
8233
8243
  include Google::Apis::Core::Hashable
@@ -8242,10 +8252,9 @@ module Google
8242
8252
  # @return [String]
8243
8253
  attr_accessor :location_description
8244
8254
 
8245
- # The date and time when the video was recorded. The value is specified in ISO
8246
- # 8601 (YYYY-MM-DDThh:mm:ss.sssZ) format.
8255
+ # The date and time when the video was recorded.
8247
8256
  # Corresponds to the JSON property `recordingDate`
8248
- # @return [String]
8257
+ # @return [DateTime]
8249
8258
  attr_accessor :recording_date
8250
8259
 
8251
8260
  def initialize(**args)
@@ -8308,10 +8317,9 @@ module Google
8308
8317
  # @return [Google::Apis::YoutubeV3::VideoLocalization]
8309
8318
  attr_accessor :localized
8310
8319
 
8311
- # The date and time that the video was uploaded. The value is specified in ISO
8312
- # 8601 format.
8320
+ # The date and time when the video was uploaded.
8313
8321
  # Corresponds to the JSON property `publishedAt`
8314
- # @return [String]
8322
+ # @return [DateTime]
8315
8323
  attr_accessor :published_at
8316
8324
 
8317
8325
  # A list of keyword tags associated with the video. Tags may contain spaces.
@@ -8438,10 +8446,9 @@ module Google
8438
8446
  alias_method :public_stats_viewable?, :public_stats_viewable
8439
8447
 
8440
8448
  # The date and time when the video is scheduled to publish. It can be set only
8441
- # if the privacy status of the video is private. The value is specified in ISO
8442
- # 8601 format.
8449
+ # if the privacy status of the video is private..
8443
8450
  # Corresponds to the JSON property `publishAt`
8444
- # @return [String]
8451
+ # @return [DateTime]
8445
8452
  attr_accessor :publish_at
8446
8453
 
8447
8454
  # This value explains why YouTube rejected an uploaded video. This property is
@@ -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.1.0"
19
+ GEM_VERSION = "0.6.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.1.1"
22
+ GENERATOR_VERSION = "0.2.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20201231"
25
+ REVISION = "20210410"
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
 
@@ -1306,7 +1306,8 @@ module Google
1306
1306
  property :channel_title, as: 'channelTitle'
1307
1307
  property :description, as: 'description'
1308
1308
  property :group_id, as: 'groupId'
1309
- property :published_at, as: 'publishedAt'
1309
+ property :published_at, as: 'publishedAt', type: DateTime
1310
+
1310
1311
  property :thumbnails, as: 'thumbnails', class: Google::Apis::YoutubeV3::ThumbnailDetails, decorator: Google::Apis::YoutubeV3::ThumbnailDetails::Representation
1311
1312
 
1312
1313
  property :title, as: 'title'
@@ -1348,7 +1349,8 @@ module Google
1348
1349
  property :is_easy_reader, as: 'isEasyReader'
1349
1350
  property :is_large, as: 'isLarge'
1350
1351
  property :language, as: 'language'
1351
- property :last_updated, as: 'lastUpdated'
1352
+ property :last_updated, as: 'lastUpdated', type: DateTime
1353
+
1352
1354
  property :name, as: 'name'
1353
1355
  property :status, as: 'status'
1354
1356
  property :track_kind, as: 'trackKind'
@@ -1452,7 +1454,8 @@ module Google
1452
1454
  # @private
1453
1455
  class Representation < Google::Apis::Core::JsonRepresentation
1454
1456
  property :content_owner, as: 'contentOwner'
1455
- property :time_linked, as: 'timeLinked'
1457
+ property :time_linked, as: 'timeLinked', type: DateTime
1458
+
1456
1459
  end
1457
1460
  end
1458
1461
 
@@ -1604,7 +1607,8 @@ module Google
1604
1607
  property :description, as: 'description'
1605
1608
  property :localized, as: 'localized', class: Google::Apis::YoutubeV3::ChannelLocalization, decorator: Google::Apis::YoutubeV3::ChannelLocalization::Representation
1606
1609
 
1607
- property :published_at, as: 'publishedAt'
1610
+ property :published_at, as: 'publishedAt', type: DateTime
1611
+
1608
1612
  property :thumbnails, as: 'thumbnails', class: Google::Apis::YoutubeV3::ThumbnailDetails, decorator: Google::Apis::YoutubeV3::ThumbnailDetails::Representation
1609
1613
 
1610
1614
  property :title, as: 'title'
@@ -1690,10 +1694,12 @@ module Google
1690
1694
  property :like_count, as: 'likeCount'
1691
1695
  property :moderation_status, as: 'moderationStatus'
1692
1696
  property :parent_id, as: 'parentId'
1693
- property :published_at, as: 'publishedAt'
1697
+ property :published_at, as: 'publishedAt', type: DateTime
1698
+
1694
1699
  property :text_display, as: 'textDisplay'
1695
1700
  property :text_original, as: 'textOriginal'
1696
- property :updated_at, as: 'updatedAt'
1701
+ property :updated_at, as: 'updatedAt', type: DateTime
1702
+
1697
1703
  property :video_id, as: 'videoId'
1698
1704
  property :viewer_rating, as: 'viewerRating'
1699
1705
  end
@@ -2023,7 +2029,8 @@ module Google
2023
2029
  # @private
2024
2030
  class Representation < Google::Apis::Core::JsonRepresentation
2025
2031
  property :bound_stream_id, as: 'boundStreamId'
2026
- property :bound_stream_last_update_time_ms, as: 'boundStreamLastUpdateTimeMs'
2032
+ property :bound_stream_last_update_time_ms, as: 'boundStreamLastUpdateTimeMs', type: DateTime
2033
+
2027
2034
  property :closed_captions_type, as: 'closedCaptionsType'
2028
2035
  property :enable_auto_start, as: 'enableAutoStart'
2029
2036
  property :enable_auto_stop, as: 'enableAutoStop'
@@ -2039,6 +2046,7 @@ module Google
2039
2046
  property :projection, as: 'projection'
2040
2047
  property :record_from_start, as: 'recordFromStart'
2041
2048
  property :start_with_slate, as: 'startWithSlate'
2049
+ property :stereo_layout, as: 'stereoLayout'
2042
2050
  end
2043
2051
  end
2044
2052
 
@@ -2063,15 +2071,20 @@ module Google
2063
2071
  class LiveBroadcastSnippet
2064
2072
  # @private
2065
2073
  class Representation < Google::Apis::Core::JsonRepresentation
2066
- property :actual_end_time, as: 'actualEndTime'
2067
- property :actual_start_time, as: 'actualStartTime'
2074
+ property :actual_end_time, as: 'actualEndTime', type: DateTime
2075
+
2076
+ property :actual_start_time, as: 'actualStartTime', type: DateTime
2077
+
2068
2078
  property :channel_id, as: 'channelId'
2069
2079
  property :description, as: 'description'
2070
2080
  property :is_default_broadcast, as: 'isDefaultBroadcast'
2071
2081
  property :live_chat_id, as: 'liveChatId'
2072
- property :published_at, as: 'publishedAt'
2073
- property :scheduled_end_time, as: 'scheduledEndTime'
2074
- property :scheduled_start_time, as: 'scheduledStartTime'
2082
+ property :published_at, as: 'publishedAt', type: DateTime
2083
+
2084
+ property :scheduled_end_time, as: 'scheduledEndTime', type: DateTime
2085
+
2086
+ property :scheduled_start_time, as: 'scheduledStartTime', type: DateTime
2087
+
2075
2088
  property :thumbnails, as: 'thumbnails', class: Google::Apis::YoutubeV3::ThumbnailDetails, decorator: Google::Apis::YoutubeV3::ThumbnailDetails::Representation
2076
2089
 
2077
2090
  property :title, as: 'title'
@@ -2172,7 +2185,8 @@ module Google
2172
2185
 
2173
2186
  property :kind, as: 'kind'
2174
2187
  property :next_page_token, as: 'nextPageToken'
2175
- property :offline_at, as: 'offlineAt'
2188
+ property :offline_at, as: 'offlineAt', type: DateTime
2189
+
2176
2190
  property :page_info, as: 'pageInfo', class: Google::Apis::YoutubeV3::PageInfo, decorator: Google::Apis::YoutubeV3::PageInfo::Representation
2177
2191
 
2178
2192
  property :polling_interval_millis, as: 'pollingIntervalMillis'
@@ -2202,7 +2216,8 @@ module Google
2202
2216
 
2203
2217
  property :message_retracted_details, as: 'messageRetractedDetails', class: Google::Apis::YoutubeV3::LiveChatMessageRetractedDetails, decorator: Google::Apis::YoutubeV3::LiveChatMessageRetractedDetails::Representation
2204
2218
 
2205
- property :published_at, as: 'publishedAt'
2219
+ property :published_at, as: 'publishedAt', type: DateTime
2220
+
2206
2221
  property :super_chat_details, as: 'superChatDetails', class: Google::Apis::YoutubeV3::LiveChatSuperChatDetails, decorator: Google::Apis::YoutubeV3::LiveChatSuperChatDetails::Representation
2207
2222
 
2208
2223
  property :super_sticker_details, as: 'superStickerDetails', class: Google::Apis::YoutubeV3::LiveChatSuperStickerDetails, decorator: Google::Apis::YoutubeV3::LiveChatSuperStickerDetails::Representation
@@ -2362,7 +2377,8 @@ module Google
2362
2377
  property :channel_id, as: 'channelId'
2363
2378
  property :description, as: 'description'
2364
2379
  property :is_default_stream, as: 'isDefaultStream'
2365
- property :published_at, as: 'publishedAt'
2380
+ property :published_at, as: 'publishedAt', type: DateTime
2381
+
2366
2382
  property :title, as: 'title'
2367
2383
  end
2368
2384
  end
@@ -2560,7 +2576,8 @@ module Google
2560
2576
  property :note, as: 'note'
2561
2577
  property :start_at, as: 'startAt'
2562
2578
  property :video_id, as: 'videoId'
2563
- property :video_published_at, as: 'videoPublishedAt'
2579
+ property :video_published_at, as: 'videoPublishedAt', type: DateTime
2580
+
2564
2581
  end
2565
2582
  end
2566
2583
 
@@ -2590,12 +2607,15 @@ module Google
2590
2607
  property :description, as: 'description'
2591
2608
  property :playlist_id, as: 'playlistId'
2592
2609
  property :position, as: 'position'
2593
- property :published_at, as: 'publishedAt'
2610
+ property :published_at, as: 'publishedAt', type: DateTime
2611
+
2594
2612
  property :resource_id, as: 'resourceId', class: Google::Apis::YoutubeV3::ResourceId, decorator: Google::Apis::YoutubeV3::ResourceId::Representation
2595
2613
 
2596
2614
  property :thumbnails, as: 'thumbnails', class: Google::Apis::YoutubeV3::ThumbnailDetails, decorator: Google::Apis::YoutubeV3::ThumbnailDetails::Representation
2597
2615
 
2598
2616
  property :title, as: 'title'
2617
+ property :video_owner_channel_id, as: 'videoOwnerChannelId'
2618
+ property :video_owner_channel_title, as: 'videoOwnerChannelTitle'
2599
2619
  end
2600
2620
  end
2601
2621
 
@@ -2648,8 +2668,10 @@ module Google
2648
2668
  property :description, as: 'description'
2649
2669
  property :localized, as: 'localized', class: Google::Apis::YoutubeV3::PlaylistLocalization, decorator: Google::Apis::YoutubeV3::PlaylistLocalization::Representation
2650
2670
 
2651
- property :published_at, as: 'publishedAt'
2671
+ property :published_at, as: 'publishedAt', type: DateTime
2672
+
2652
2673
  collection :tags, as: 'tags'
2674
+ property :thumbnail_video_id, as: 'thumbnailVideoId'
2653
2675
  property :thumbnails, as: 'thumbnails', class: Google::Apis::YoutubeV3::ThumbnailDetails, decorator: Google::Apis::YoutubeV3::ThumbnailDetails::Representation
2654
2676
 
2655
2677
  property :title, as: 'title'
@@ -2727,7 +2749,8 @@ module Google
2727
2749
  property :channel_title, as: 'channelTitle'
2728
2750
  property :description, as: 'description'
2729
2751
  property :live_broadcast_content, as: 'liveBroadcastContent'
2730
- property :published_at, as: 'publishedAt'
2752
+ property :published_at, as: 'publishedAt', type: DateTime
2753
+
2731
2754
  property :thumbnails, as: 'thumbnails', class: Google::Apis::YoutubeV3::ThumbnailDetails, decorator: Google::Apis::YoutubeV3::ThumbnailDetails::Representation
2732
2755
 
2733
2756
  property :title, as: 'title'
@@ -2782,7 +2805,8 @@ module Google
2782
2805
  property :channel_id, as: 'channelId'
2783
2806
  property :channel_title, as: 'channelTitle'
2784
2807
  property :description, as: 'description'
2785
- property :published_at, as: 'publishedAt'
2808
+ property :published_at, as: 'publishedAt', type: DateTime
2809
+
2786
2810
  property :resource_id, as: 'resourceId', class: Google::Apis::YoutubeV3::ResourceId, decorator: Google::Apis::YoutubeV3::ResourceId::Representation
2787
2811
 
2788
2812
  property :thumbnails, as: 'thumbnails', class: Google::Apis::YoutubeV3::ThumbnailDetails, decorator: Google::Apis::YoutubeV3::ThumbnailDetails::Representation
@@ -2836,7 +2860,8 @@ module Google
2836
2860
  property :amount_micros, :numeric_string => true, as: 'amountMicros'
2837
2861
  property :channel_id, as: 'channelId'
2838
2862
  property :comment_text, as: 'commentText'
2839
- property :created_at, as: 'createdAt'
2863
+ property :created_at, as: 'createdAt', type: DateTime
2864
+
2840
2865
  property :currency, as: 'currency'
2841
2866
  property :display_string, as: 'displayString'
2842
2867
  property :is_super_sticker_event, as: 'isSuperStickerEvent'
@@ -3150,6 +3175,18 @@ module Google
3150
3175
  end
3151
3176
  end
3152
3177
 
3178
+ class GetVideoRatingResponse
3179
+ # @private
3180
+ class Representation < Google::Apis::Core::JsonRepresentation
3181
+ property :etag, as: 'etag'
3182
+ property :event_id, as: 'eventId'
3183
+ collection :items, as: 'items', class: Google::Apis::YoutubeV3::VideoRating, decorator: Google::Apis::YoutubeV3::VideoRating::Representation
3184
+
3185
+ property :kind, as: 'kind'
3186
+ property :visitor_id, as: 'visitorId'
3187
+ end
3188
+ end
3189
+
3153
3190
  class ListVideosResponse
3154
3191
  # @private
3155
3192
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3172,11 +3209,15 @@ module Google
3172
3209
  # @private
3173
3210
  class Representation < Google::Apis::Core::JsonRepresentation
3174
3211
  property :active_live_chat_id, as: 'activeLiveChatId'
3175
- property :actual_end_time, as: 'actualEndTime'
3176
- property :actual_start_time, as: 'actualStartTime'
3212
+ property :actual_end_time, as: 'actualEndTime', type: DateTime
3213
+
3214
+ property :actual_start_time, as: 'actualStartTime', type: DateTime
3215
+
3177
3216
  property :concurrent_viewers, :numeric_string => true, as: 'concurrentViewers'
3178
- property :scheduled_end_time, as: 'scheduledEndTime'
3179
- property :scheduled_start_time, as: 'scheduledStartTime'
3217
+ property :scheduled_end_time, as: 'scheduledEndTime', type: DateTime
3218
+
3219
+ property :scheduled_start_time, as: 'scheduledStartTime', type: DateTime
3220
+
3180
3221
  end
3181
3222
  end
3182
3223
 
@@ -3243,25 +3284,14 @@ module Google
3243
3284
  end
3244
3285
  end
3245
3286
 
3246
- class VideoRatingListResponse
3247
- # @private
3248
- class Representation < Google::Apis::Core::JsonRepresentation
3249
- property :etag, as: 'etag'
3250
- property :event_id, as: 'eventId'
3251
- collection :items, as: 'items', class: Google::Apis::YoutubeV3::VideoRating, decorator: Google::Apis::YoutubeV3::VideoRating::Representation
3252
-
3253
- property :kind, as: 'kind'
3254
- property :visitor_id, as: 'visitorId'
3255
- end
3256
- end
3257
-
3258
3287
  class VideoRecordingDetails
3259
3288
  # @private
3260
3289
  class Representation < Google::Apis::Core::JsonRepresentation
3261
3290
  property :location, as: 'location', class: Google::Apis::YoutubeV3::GeoPoint, decorator: Google::Apis::YoutubeV3::GeoPoint::Representation
3262
3291
 
3263
3292
  property :location_description, as: 'locationDescription'
3264
- property :recording_date, as: 'recordingDate'
3293
+ property :recording_date, as: 'recordingDate', type: DateTime
3294
+
3265
3295
  end
3266
3296
  end
3267
3297
 
@@ -3277,7 +3307,8 @@ module Google
3277
3307
  property :live_broadcast_content, as: 'liveBroadcastContent'
3278
3308
  property :localized, as: 'localized', class: Google::Apis::YoutubeV3::VideoLocalization, decorator: Google::Apis::YoutubeV3::VideoLocalization::Representation
3279
3309
 
3280
- property :published_at, as: 'publishedAt'
3310
+ property :published_at, as: 'publishedAt', type: DateTime
3311
+
3281
3312
  collection :tags, as: 'tags'
3282
3313
  property :thumbnails, as: 'thumbnails', class: Google::Apis::YoutubeV3::ThumbnailDetails, decorator: Google::Apis::YoutubeV3::ThumbnailDetails::Representation
3283
3314
 
@@ -3305,7 +3336,8 @@ module Google
3305
3336
  property :made_for_kids, as: 'madeForKids'
3306
3337
  property :privacy_status, as: 'privacyStatus'
3307
3338
  property :public_stats_viewable, as: 'publicStatsViewable'
3308
- property :publish_at, as: 'publishAt'
3339
+ property :publish_at, as: 'publishAt', type: DateTime
3340
+
3309
3341
  property :rejection_reason, as: 'rejectionReason'
3310
3342
  property :self_declared_made_for_kids, as: 'selfDeclaredMadeForKids'
3311
3343
  property :upload_status, as: 'uploadStatus'
@@ -1312,84 +1312,6 @@ module Google
1312
1312
  execute_or_queue_command(command, &block)
1313
1313
  end
1314
1314
 
1315
- # Slate and recording control of the live broadcast. Support actions: slate on/
1316
- # off, recording start/stop/pause/resume. Design doc: goto/yt-api-liveBroadcast-
1317
- # control
1318
- # @param [String] id
1319
- # Broadcast to operate.
1320
- # @param [Array<String>, String] part
1321
- # The *part* parameter specifies a comma-separated list of one or more
1322
- # liveBroadcast resource properties that the API response will include. The part
1323
- # names that you can include in the parameter value are id, snippet,
1324
- # contentDetails, and status.
1325
- # @param [Boolean] display_slate
1326
- # Whether display or hide slate.
1327
- # @param [Fixnum] offset_time_ms
1328
- # The exact time when the actions (e.g. slate on) are executed. It is an offset
1329
- # from the first frame of the monitor stream. If not set, it means "now" or ASAP.
1330
- # This field should not be set if the monitor stream is disabled, otherwise an
1331
- # error will be returned.
1332
- # @param [String] on_behalf_of_content_owner
1333
- # *Note:* This parameter is intended exclusively for YouTube content partners.
1334
- # The *onBehalfOfContentOwner* parameter indicates that the request's
1335
- # authorization credentials identify a YouTube CMS user who is acting on behalf
1336
- # of the content owner specified in the parameter value. This parameter is
1337
- # intended for YouTube content partners that own and manage many different
1338
- # YouTube channels. It allows content owners to authenticate once and get access
1339
- # to all their video and channel data, without having to provide authentication
1340
- # credentials for each individual channel. The CMS account that the user
1341
- # authenticates with must be linked to the specified YouTube content owner.
1342
- # @param [String] on_behalf_of_content_owner_channel
1343
- # This parameter can only be used in a properly authorized request. *Note:* This
1344
- # parameter is intended exclusively for YouTube content partners. The *
1345
- # onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of
1346
- # the channel to which a video is being added. This parameter is required when a
1347
- # request specifies a value for the onBehalfOfContentOwner parameter, and it can
1348
- # only be used in conjunction with that parameter. In addition, the request must
1349
- # be authorized using a CMS account that is linked to the content owner that the
1350
- # onBehalfOfContentOwner parameter specifies. Finally, the channel that the
1351
- # onBehalfOfContentOwnerChannel parameter value specifies must be linked to the
1352
- # content owner that the onBehalfOfContentOwner parameter specifies. This
1353
- # parameter is intended for YouTube content partners that own and manage many
1354
- # different YouTube channels. It allows content owners to authenticate once and
1355
- # perform actions on behalf of the channel specified in the parameter value,
1356
- # without having to provide authentication credentials for each separate channel.
1357
- # @param [String] walltime
1358
- # The wall clock time at which the action should be executed. Only one of
1359
- # offset_time_ms and walltime may be set at a time.
1360
- # @param [String] fields
1361
- # Selector specifying which fields to include in a partial response.
1362
- # @param [String] quota_user
1363
- # Available to use for quota purposes for server-side applications. Can be any
1364
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1365
- # @param [Google::Apis::RequestOptions] options
1366
- # Request-specific options
1367
- #
1368
- # @yield [result, err] Result & error if block supplied
1369
- # @yieldparam result [Google::Apis::YoutubeV3::LiveBroadcast] parsed result object
1370
- # @yieldparam err [StandardError] error object if request failed
1371
- #
1372
- # @return [Google::Apis::YoutubeV3::LiveBroadcast]
1373
- #
1374
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1375
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1376
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1377
- def control_live_broadcast(id, part, display_slate: nil, offset_time_ms: nil, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, walltime: nil, fields: nil, quota_user: nil, options: nil, &block)
1378
- command = make_simple_command(:post, 'youtube/v3/liveBroadcasts/control', options)
1379
- command.response_representation = Google::Apis::YoutubeV3::LiveBroadcast::Representation
1380
- command.response_class = Google::Apis::YoutubeV3::LiveBroadcast
1381
- command.query['displaySlate'] = display_slate unless display_slate.nil?
1382
- command.query['id'] = id unless id.nil?
1383
- command.query['offsetTimeMs'] = offset_time_ms unless offset_time_ms.nil?
1384
- command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
1385
- command.query['onBehalfOfContentOwnerChannel'] = on_behalf_of_content_owner_channel unless on_behalf_of_content_owner_channel.nil?
1386
- command.query['part'] = part unless part.nil?
1387
- command.query['walltime'] = walltime unless walltime.nil?
1388
- command.query['fields'] = fields unless fields.nil?
1389
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1390
- execute_or_queue_command(command, &block)
1391
- end
1392
-
1393
1315
  # Delete a given broadcast.
1394
1316
  # @param [String] id
1395
1317
  # Broadcast to delete.
@@ -3471,18 +3393,18 @@ module Google
3471
3393
  # Request-specific options
3472
3394
  #
3473
3395
  # @yield [result, err] Result & error if block supplied
3474
- # @yieldparam result [Google::Apis::YoutubeV3::VideoRatingListResponse] parsed result object
3396
+ # @yieldparam result [Google::Apis::YoutubeV3::GetVideoRatingResponse] parsed result object
3475
3397
  # @yieldparam err [StandardError] error object if request failed
3476
3398
  #
3477
- # @return [Google::Apis::YoutubeV3::VideoRatingListResponse]
3399
+ # @return [Google::Apis::YoutubeV3::GetVideoRatingResponse]
3478
3400
  #
3479
3401
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3480
3402
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3481
3403
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3482
3404
  def get_video_rating(id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block)
3483
3405
  command = make_simple_command(:get, 'youtube/v3/videos/getRating', options)
3484
- command.response_representation = Google::Apis::YoutubeV3::VideoRatingListResponse::Representation
3485
- command.response_class = Google::Apis::YoutubeV3::VideoRatingListResponse
3406
+ command.response_representation = Google::Apis::YoutubeV3::GetVideoRatingResponse::Representation
3407
+ command.response_class = Google::Apis::YoutubeV3::GetVideoRatingResponse
3486
3408
  command.query['id'] = id unless id.nil?
3487
3409
  command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
3488
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.1.0
4
+ version: 0.6.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-01-08 00:00:00.000000000 Z
11
+ date: 2021-05-24 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.1.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-youtube_v3/v0.6.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.4'
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.1.4
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