google-apis-youtube_v3 0.1.0 → 0.2.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: 23f7a46764ca65b2ea854272a099427027d0bcaf2f42cde1b7af0e3034d3f6b2
|
4
|
+
data.tar.gz: 47f9c4e397415c671914258bb0347d27494410ac60b93405ddf41fdfd848677e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8247cdb8208b632897a2604d077e6e5990d2b1ec17c022e1cd09c664b488eb92c03e873a5f0a29972600fd2efe3548e5f3ade95172e98c6f2cef4527eb8e42a1
|
7
|
+
data.tar.gz: 97acaebde9f9eeb656395820e266f4c89323053855d9b639b66b7aabb4b923eaf117fbab953bc345a2326dd815191587b1b3098d3a93bd941463347a47ed2c1c
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Release history for google-apis-youtube_v3
|
2
2
|
|
3
|
+
### v0.2.0 (2021-02-02)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20210130
|
6
|
+
* Regenerated using generator version 0.1.2
|
7
|
+
|
3
8
|
### v0.1.0 (2021-01-07)
|
4
9
|
|
5
10
|
* 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.
|
664
|
-
# 8601 format.
|
663
|
+
# The date and time that the video was uploaded.
|
665
664
|
# Corresponds to the JSON property `publishedAt`
|
666
|
-
# @return [
|
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.
|
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 [
|
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
|
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 [
|
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.
|
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 [
|
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
|
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 [
|
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
|
2142
|
-
# format.
|
2136
|
+
# The date and time when the comment was last updated.
|
2143
2137
|
# Corresponds to the JSON property `updatedAt`
|
2144
|
-
# @return [
|
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 [
|
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.
|
3784
|
-
# ISO 8601 format.
|
3783
|
+
# available once the broadcast's state is complete.
|
3785
3784
|
# Corresponds to the JSON property `actualEndTime`
|
3786
|
-
# @return [
|
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.
|
3791
|
-
# ISO 8601 format.
|
3789
|
+
# only available once the broadcast's state is live.
|
3792
3790
|
# Corresponds to the JSON property `actualStartTime`
|
3793
|
-
# @return [
|
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.
|
3819
|
+
# schedule.
|
3822
3820
|
# Corresponds to the JSON property `publishedAt`
|
3823
|
-
# @return [
|
3821
|
+
# @return [DateTime]
|
3824
3822
|
attr_accessor :published_at
|
3825
3823
|
|
3826
|
-
# The date and time that the broadcast is scheduled to
|
3827
|
-
# specified in ISO 8601 format.
|
3824
|
+
# The date and time that the broadcast is scheduled to start.
|
3828
3825
|
# Corresponds to the JSON property `scheduledEndTime`
|
3829
|
-
# @return [
|
3826
|
+
# @return [DateTime]
|
3830
3827
|
attr_accessor :scheduled_end_time
|
3831
3828
|
|
3832
|
-
# The date and time that the broadcast is scheduled to
|
3833
|
-
# specified in ISO 8601 format.
|
3829
|
+
# The date and time that the broadcast is scheduled to end.
|
3834
3830
|
# Corresponds to the JSON property `scheduledStartTime`
|
3835
|
-
# @return [
|
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.
|
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 [
|
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.
|
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 [
|
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.
|
4924
|
-
# 8601 format.
|
4917
|
+
# The date and time that the stream was created.
|
4925
4918
|
# Corresponds to the JSON property `publishedAt`
|
4926
|
-
# @return [
|
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.
|
@@ -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.
|
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 [
|
5623
|
+
# @return [DateTime]
|
5632
5624
|
attr_accessor :video_published_at
|
5633
5625
|
|
5634
5626
|
def initialize(**args)
|
@@ -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.
|
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 [
|
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.
|
@@ -5953,10 +5944,9 @@ module Google
|
|
5953
5944
|
# @return [Google::Apis::YoutubeV3::PlaylistLocalization]
|
5954
5945
|
attr_accessor :localized
|
5955
5946
|
|
5956
|
-
# The date and time that the playlist was created.
|
5957
|
-
# 8601 format.
|
5947
|
+
# The date and time that the playlist was created.
|
5958
5948
|
# Corresponds to the JSON property `publishedAt`
|
5959
|
-
# @return [
|
5949
|
+
# @return [DateTime]
|
5960
5950
|
attr_accessor :published_at
|
5961
5951
|
|
5962
5952
|
# Keyword tags associated with the playlist.
|
@@ -6247,9 +6237,8 @@ module Google
|
|
6247
6237
|
attr_accessor :live_broadcast_content
|
6248
6238
|
|
6249
6239
|
# The creation date and time of the resource that the search result identifies.
|
6250
|
-
# The value is specified in ISO 8601 format.
|
6251
6240
|
# Corresponds to the JSON property `publishedAt`
|
6252
|
-
# @return [
|
6241
|
+
# @return [DateTime]
|
6253
6242
|
attr_accessor :published_at
|
6254
6243
|
|
6255
6244
|
# Internal representation of thumbnails for a YouTube resource.
|
@@ -6455,10 +6444,9 @@ module Google
|
|
6455
6444
|
# @return [String]
|
6456
6445
|
attr_accessor :description
|
6457
6446
|
|
6458
|
-
# The date and time that the subscription was created.
|
6459
|
-
# ISO 8601 format.
|
6447
|
+
# The date and time that the subscription was created.
|
6460
6448
|
# Corresponds to the JSON property `publishedAt`
|
6461
|
-
# @return [
|
6449
|
+
# @return [DateTime]
|
6462
6450
|
attr_accessor :published_at
|
6463
6451
|
|
6464
6452
|
# A resource id is a generic reference that points to another YouTube resource.
|
@@ -6653,10 +6641,9 @@ module Google
|
|
6653
6641
|
# @return [String]
|
6654
6642
|
attr_accessor :comment_text
|
6655
6643
|
|
6656
|
-
# The date and time when the event occurred.
|
6657
|
-
# format.
|
6644
|
+
# The date and time when the event occurred.
|
6658
6645
|
# Corresponds to the JSON property `createdAt`
|
6659
|
-
# @return [
|
6646
|
+
# @return [DateTime]
|
6660
6647
|
attr_accessor :created_at
|
6661
6648
|
|
6662
6649
|
# The currency in which the purchase was made. ISO 4217.
|
@@ -7897,16 +7884,16 @@ module Google
|
|
7897
7884
|
# @return [String]
|
7898
7885
|
attr_accessor :active_live_chat_id
|
7899
7886
|
|
7900
|
-
# The time that the broadcast actually ended.
|
7901
|
-
#
|
7887
|
+
# The time that the broadcast actually ended. This value will not be available
|
7888
|
+
# until the broadcast is over.
|
7902
7889
|
# Corresponds to the JSON property `actualEndTime`
|
7903
|
-
# @return [
|
7890
|
+
# @return [DateTime]
|
7904
7891
|
attr_accessor :actual_end_time
|
7905
7892
|
|
7906
|
-
# The time that the broadcast actually started.
|
7907
|
-
#
|
7893
|
+
# The time that the broadcast actually started. This value will not be available
|
7894
|
+
# until the broadcast begins.
|
7908
7895
|
# Corresponds to the JSON property `actualStartTime`
|
7909
|
-
# @return [
|
7896
|
+
# @return [DateTime]
|
7910
7897
|
attr_accessor :actual_start_time
|
7911
7898
|
|
7912
7899
|
# The number of viewers currently watching the broadcast. The property and its
|
@@ -7919,17 +7906,16 @@ module Google
|
|
7919
7906
|
# @return [Fixnum]
|
7920
7907
|
attr_accessor :concurrent_viewers
|
7921
7908
|
|
7922
|
-
# The time that the broadcast is scheduled to end.
|
7923
|
-
#
|
7924
|
-
#
|
7909
|
+
# The time that the broadcast is scheduled to end. If the value is empty or the
|
7910
|
+
# property is not present, then the broadcast is scheduled to contiue
|
7911
|
+
# indefinitely.
|
7925
7912
|
# Corresponds to the JSON property `scheduledEndTime`
|
7926
|
-
# @return [
|
7913
|
+
# @return [DateTime]
|
7927
7914
|
attr_accessor :scheduled_end_time
|
7928
7915
|
|
7929
|
-
# The time that the broadcast is scheduled to begin.
|
7930
|
-
# ISO 8601 format.
|
7916
|
+
# The time that the broadcast is scheduled to begin.
|
7931
7917
|
# Corresponds to the JSON property `scheduledStartTime`
|
7932
|
-
# @return [
|
7918
|
+
# @return [DateTime]
|
7933
7919
|
attr_accessor :scheduled_start_time
|
7934
7920
|
|
7935
7921
|
def initialize(**args)
|
@@ -8242,10 +8228,9 @@ module Google
|
|
8242
8228
|
# @return [String]
|
8243
8229
|
attr_accessor :location_description
|
8244
8230
|
|
8245
|
-
# The date and time when the video was recorded.
|
8246
|
-
# 8601 (YYYY-MM-DDThh:mm:ss.sssZ) format.
|
8231
|
+
# The date and time when the video was recorded.
|
8247
8232
|
# Corresponds to the JSON property `recordingDate`
|
8248
|
-
# @return [
|
8233
|
+
# @return [DateTime]
|
8249
8234
|
attr_accessor :recording_date
|
8250
8235
|
|
8251
8236
|
def initialize(**args)
|
@@ -8308,10 +8293,9 @@ module Google
|
|
8308
8293
|
# @return [Google::Apis::YoutubeV3::VideoLocalization]
|
8309
8294
|
attr_accessor :localized
|
8310
8295
|
|
8311
|
-
# The date and time
|
8312
|
-
# 8601 format.
|
8296
|
+
# The date and time when the video was uploaded.
|
8313
8297
|
# Corresponds to the JSON property `publishedAt`
|
8314
|
-
# @return [
|
8298
|
+
# @return [DateTime]
|
8315
8299
|
attr_accessor :published_at
|
8316
8300
|
|
8317
8301
|
# A list of keyword tags associated with the video. Tags may contain spaces.
|
@@ -8438,10 +8422,9 @@ module Google
|
|
8438
8422
|
alias_method :public_stats_viewable?, :public_stats_viewable
|
8439
8423
|
|
8440
8424
|
# 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
|
8442
|
-
# 8601 format.
|
8425
|
+
# if the privacy status of the video is private..
|
8443
8426
|
# Corresponds to the JSON property `publishAt`
|
8444
|
-
# @return [
|
8427
|
+
# @return [DateTime]
|
8445
8428
|
attr_accessor :publish_at
|
8446
8429
|
|
8447
8430
|
# 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.
|
19
|
+
GEM_VERSION = "0.2.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.1.
|
22
|
+
GENERATOR_VERSION = "0.1.2"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210130"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -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
|
-
|
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
|
-
|
2074
|
-
property :
|
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,7 +2607,8 @@ 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
|
@@ -2648,7 +2666,8 @@ module Google
|
|
2648
2666
|
property :description, as: 'description'
|
2649
2667
|
property :localized, as: 'localized', class: Google::Apis::YoutubeV3::PlaylistLocalization, decorator: Google::Apis::YoutubeV3::PlaylistLocalization::Representation
|
2650
2668
|
|
2651
|
-
property :published_at, as: 'publishedAt'
|
2669
|
+
property :published_at, as: 'publishedAt', type: DateTime
|
2670
|
+
|
2652
2671
|
collection :tags, as: 'tags'
|
2653
2672
|
property :thumbnails, as: 'thumbnails', class: Google::Apis::YoutubeV3::ThumbnailDetails, decorator: Google::Apis::YoutubeV3::ThumbnailDetails::Representation
|
2654
2673
|
|
@@ -2727,7 +2746,8 @@ module Google
|
|
2727
2746
|
property :channel_title, as: 'channelTitle'
|
2728
2747
|
property :description, as: 'description'
|
2729
2748
|
property :live_broadcast_content, as: 'liveBroadcastContent'
|
2730
|
-
property :published_at, as: 'publishedAt'
|
2749
|
+
property :published_at, as: 'publishedAt', type: DateTime
|
2750
|
+
|
2731
2751
|
property :thumbnails, as: 'thumbnails', class: Google::Apis::YoutubeV3::ThumbnailDetails, decorator: Google::Apis::YoutubeV3::ThumbnailDetails::Representation
|
2732
2752
|
|
2733
2753
|
property :title, as: 'title'
|
@@ -2782,7 +2802,8 @@ module Google
|
|
2782
2802
|
property :channel_id, as: 'channelId'
|
2783
2803
|
property :channel_title, as: 'channelTitle'
|
2784
2804
|
property :description, as: 'description'
|
2785
|
-
property :published_at, as: 'publishedAt'
|
2805
|
+
property :published_at, as: 'publishedAt', type: DateTime
|
2806
|
+
|
2786
2807
|
property :resource_id, as: 'resourceId', class: Google::Apis::YoutubeV3::ResourceId, decorator: Google::Apis::YoutubeV3::ResourceId::Representation
|
2787
2808
|
|
2788
2809
|
property :thumbnails, as: 'thumbnails', class: Google::Apis::YoutubeV3::ThumbnailDetails, decorator: Google::Apis::YoutubeV3::ThumbnailDetails::Representation
|
@@ -2836,7 +2857,8 @@ module Google
|
|
2836
2857
|
property :amount_micros, :numeric_string => true, as: 'amountMicros'
|
2837
2858
|
property :channel_id, as: 'channelId'
|
2838
2859
|
property :comment_text, as: 'commentText'
|
2839
|
-
property :created_at, as: 'createdAt'
|
2860
|
+
property :created_at, as: 'createdAt', type: DateTime
|
2861
|
+
|
2840
2862
|
property :currency, as: 'currency'
|
2841
2863
|
property :display_string, as: 'displayString'
|
2842
2864
|
property :is_super_sticker_event, as: 'isSuperStickerEvent'
|
@@ -3172,11 +3194,15 @@ module Google
|
|
3172
3194
|
# @private
|
3173
3195
|
class Representation < Google::Apis::Core::JsonRepresentation
|
3174
3196
|
property :active_live_chat_id, as: 'activeLiveChatId'
|
3175
|
-
property :actual_end_time, as: 'actualEndTime'
|
3176
|
-
|
3197
|
+
property :actual_end_time, as: 'actualEndTime', type: DateTime
|
3198
|
+
|
3199
|
+
property :actual_start_time, as: 'actualStartTime', type: DateTime
|
3200
|
+
|
3177
3201
|
property :concurrent_viewers, :numeric_string => true, as: 'concurrentViewers'
|
3178
|
-
property :scheduled_end_time, as: 'scheduledEndTime'
|
3179
|
-
|
3202
|
+
property :scheduled_end_time, as: 'scheduledEndTime', type: DateTime
|
3203
|
+
|
3204
|
+
property :scheduled_start_time, as: 'scheduledStartTime', type: DateTime
|
3205
|
+
|
3180
3206
|
end
|
3181
3207
|
end
|
3182
3208
|
|
@@ -3261,7 +3287,8 @@ module Google
|
|
3261
3287
|
property :location, as: 'location', class: Google::Apis::YoutubeV3::GeoPoint, decorator: Google::Apis::YoutubeV3::GeoPoint::Representation
|
3262
3288
|
|
3263
3289
|
property :location_description, as: 'locationDescription'
|
3264
|
-
property :recording_date, as: 'recordingDate'
|
3290
|
+
property :recording_date, as: 'recordingDate', type: DateTime
|
3291
|
+
|
3265
3292
|
end
|
3266
3293
|
end
|
3267
3294
|
|
@@ -3277,7 +3304,8 @@ module Google
|
|
3277
3304
|
property :live_broadcast_content, as: 'liveBroadcastContent'
|
3278
3305
|
property :localized, as: 'localized', class: Google::Apis::YoutubeV3::VideoLocalization, decorator: Google::Apis::YoutubeV3::VideoLocalization::Representation
|
3279
3306
|
|
3280
|
-
property :published_at, as: 'publishedAt'
|
3307
|
+
property :published_at, as: 'publishedAt', type: DateTime
|
3308
|
+
|
3281
3309
|
collection :tags, as: 'tags'
|
3282
3310
|
property :thumbnails, as: 'thumbnails', class: Google::Apis::YoutubeV3::ThumbnailDetails, decorator: Google::Apis::YoutubeV3::ThumbnailDetails::Representation
|
3283
3311
|
|
@@ -3305,7 +3333,8 @@ module Google
|
|
3305
3333
|
property :made_for_kids, as: 'madeForKids'
|
3306
3334
|
property :privacy_status, as: 'privacyStatus'
|
3307
3335
|
property :public_stats_viewable, as: 'publicStatsViewable'
|
3308
|
-
property :publish_at, as: 'publishAt'
|
3336
|
+
property :publish_at, as: 'publishAt', type: DateTime
|
3337
|
+
|
3309
3338
|
property :rejection_reason, as: 'rejectionReason'
|
3310
3339
|
property :self_declared_made_for_kids, as: 'selfDeclaredMadeForKids'
|
3311
3340
|
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.
|
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.2.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-02-08 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.2.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: []
|
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
69
|
- !ruby/object:Gem::Version
|
70
70
|
version: '0'
|
71
71
|
requirements: []
|
72
|
-
rubygems_version: 3.
|
72
|
+
rubygems_version: 3.2.6
|
73
73
|
signing_key:
|
74
74
|
specification_version: 4
|
75
75
|
summary: Simple REST client for YouTube Data API v3 V3
|