google-apis-youtube_v3 0.20.0 → 0.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 254d2a6ee075c2b514c4f7e7fcceb1835a941dcfadb37fbaf7d7841cbb273bb1
|
4
|
+
data.tar.gz: 91b830e4708b4952aecef8fd412d208133fd92a7d47058946873ed54326c1c8b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 851bd1134cf109421a85b7791d7a339ea96e309644e7b5de22526bc1972aaa1af470c481f429816ea41c7f325eb61908a8e8c3f899d37250afc37591a330db69
|
7
|
+
data.tar.gz: bcca2a2e94975bd12fb6222e17192f0fb506e754ff472075d4d3bdaba5458a048108e4f8630ba37b045360edd2217fb366189d5e70f7508f6e01e70fb6f43a3f
|
data/CHANGELOG.md
CHANGED
@@ -2877,6 +2877,11 @@ module Google
|
|
2877
2877
|
# @return [Fixnum]
|
2878
2878
|
attr_accessor :duration_secs
|
2879
2879
|
|
2880
|
+
#
|
2881
|
+
# Corresponds to the JSON property `etag`
|
2882
|
+
# @return [String]
|
2883
|
+
attr_accessor :etag
|
2884
|
+
|
2880
2885
|
# The identifier for cuepoint resource.
|
2881
2886
|
# Corresponds to the JSON property `id`
|
2882
2887
|
# @return [String]
|
@@ -2902,6 +2907,7 @@ module Google
|
|
2902
2907
|
def update!(**args)
|
2903
2908
|
@cue_type = args[:cue_type] if args.key?(:cue_type)
|
2904
2909
|
@duration_secs = args[:duration_secs] if args.key?(:duration_secs)
|
2910
|
+
@etag = args[:etag] if args.key?(:etag)
|
2905
2911
|
@id = args[:id] if args.key?(:id)
|
2906
2912
|
@insertion_offset_time_ms = args[:insertion_offset_time_ms] if args.key?(:insertion_offset_time_ms)
|
2907
2913
|
@walltime_ms = args[:walltime_ms] if args.key?(:walltime_ms)
|
@@ -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.21.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.8.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220628"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -1882,6 +1882,7 @@ module Google
|
|
1882
1882
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1883
1883
|
property :cue_type, as: 'cueType'
|
1884
1884
|
property :duration_secs, as: 'durationSecs'
|
1885
|
+
property :etag, as: 'etag'
|
1885
1886
|
property :id, as: 'id'
|
1886
1887
|
property :insertion_offset_time_ms, :numeric_string => true, as: 'insertionOffsetTimeMs'
|
1887
1888
|
property :walltime_ms, :numeric_string => true, as: 'walltimeMs'
|
@@ -1394,6 +1394,88 @@ module Google
|
|
1394
1394
|
execute_or_queue_command(command, &block)
|
1395
1395
|
end
|
1396
1396
|
|
1397
|
+
# Insert cuepoints in a broadcast
|
1398
|
+
# @param [String] id
|
1399
|
+
# Broadcast to insert ads to, or equivalently `external_video_id` for internal
|
1400
|
+
# use.
|
1401
|
+
# @param [String] on_behalf_of_content_owner
|
1402
|
+
# *Note:* This parameter is intended exclusively for YouTube content partners.
|
1403
|
+
# The *onBehalfOfContentOwner* parameter indicates that the request's
|
1404
|
+
# authorization credentials identify a YouTube CMS user who is acting on behalf
|
1405
|
+
# of the content owner specified in the parameter value. This parameter is
|
1406
|
+
# intended for YouTube content partners that own and manage many different
|
1407
|
+
# YouTube channels. It allows content owners to authenticate once and get access
|
1408
|
+
# to all their video and channel data, without having to provide authentication
|
1409
|
+
# credentials for each individual channel. The CMS account that the user
|
1410
|
+
# authenticates with must be linked to the specified YouTube content owner.
|
1411
|
+
# @param [String] on_behalf_of_content_owner_channel
|
1412
|
+
# This parameter can only be used in a properly authorized request. *Note:* This
|
1413
|
+
# parameter is intended exclusively for YouTube content partners. The *
|
1414
|
+
# onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of
|
1415
|
+
# the channel to which a video is being added. This parameter is required when a
|
1416
|
+
# request specifies a value for the onBehalfOfContentOwner parameter, and it can
|
1417
|
+
# only be used in conjunction with that parameter. In addition, the request must
|
1418
|
+
# be authorized using a CMS account that is linked to the content owner that the
|
1419
|
+
# onBehalfOfContentOwner parameter specifies. Finally, the channel that the
|
1420
|
+
# onBehalfOfContentOwnerChannel parameter value specifies must be linked to the
|
1421
|
+
# content owner that the onBehalfOfContentOwner parameter specifies. This
|
1422
|
+
# parameter is intended for YouTube content partners that own and manage many
|
1423
|
+
# different YouTube channels. It allows content owners to authenticate once and
|
1424
|
+
# perform actions on behalf of the channel specified in the parameter value,
|
1425
|
+
# without having to provide authentication credentials for each separate channel.
|
1426
|
+
# @param [Array<String>, String] part
|
1427
|
+
# The *part* parameter specifies a comma-separated list of one or more
|
1428
|
+
# liveBroadcast resource properties that the API response will include. The part
|
1429
|
+
# names that you can include in the parameter value are id, snippet,
|
1430
|
+
# contentDetails, and status.
|
1431
|
+
# @param [String] resource_cue_type
|
1432
|
+
# @param [Fixnum] resource_duration_secs
|
1433
|
+
# The duration of this cuepoint.
|
1434
|
+
# @param [String] resource_etag
|
1435
|
+
# @param [String] resource_id
|
1436
|
+
# The identifier for cuepoint resource.
|
1437
|
+
# @param [Fixnum] resource_insertion_offset_time_ms
|
1438
|
+
# The time when the cuepoint should be inserted by offset to the broadcast
|
1439
|
+
# actual start time.
|
1440
|
+
# @param [Fixnum] resource_walltime_ms
|
1441
|
+
# The wall clock time at which the cuepoint should be inserted. Only one of
|
1442
|
+
# insertion_offset_time_ms and walltime_ms may be set at a time.
|
1443
|
+
# @param [String] fields
|
1444
|
+
# Selector specifying which fields to include in a partial response.
|
1445
|
+
# @param [String] quota_user
|
1446
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1447
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1448
|
+
# @param [Google::Apis::RequestOptions] options
|
1449
|
+
# Request-specific options
|
1450
|
+
#
|
1451
|
+
# @yield [result, err] Result & error if block supplied
|
1452
|
+
# @yieldparam result [Google::Apis::YoutubeV3::Cuepoint] parsed result object
|
1453
|
+
# @yieldparam err [StandardError] error object if request failed
|
1454
|
+
#
|
1455
|
+
# @return [Google::Apis::YoutubeV3::Cuepoint]
|
1456
|
+
#
|
1457
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1458
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1459
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1460
|
+
def insert_live_broadcast_cuepoint(id: nil, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, part: nil, resource_cue_type: nil, resource_duration_secs: nil, resource_etag: nil, resource_id: nil, resource_insertion_offset_time_ms: nil, resource_walltime_ms: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1461
|
+
command = make_simple_command(:post, 'youtube/v3/liveBroadcasts/cuepoint', options)
|
1462
|
+
command.response_representation = Google::Apis::YoutubeV3::Cuepoint::Representation
|
1463
|
+
command.response_class = Google::Apis::YoutubeV3::Cuepoint
|
1464
|
+
command.query['id'] = id unless id.nil?
|
1465
|
+
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
1466
|
+
command.query['onBehalfOfContentOwnerChannel'] = on_behalf_of_content_owner_channel unless on_behalf_of_content_owner_channel.nil?
|
1467
|
+
command.query['part'] = part unless part.nil?
|
1468
|
+
command.query['resource.cueType'] = resource_cue_type unless resource_cue_type.nil?
|
1469
|
+
command.query['resource.durationSecs'] = resource_duration_secs unless resource_duration_secs.nil?
|
1470
|
+
command.query['resource.etag'] = resource_etag unless resource_etag.nil?
|
1471
|
+
command.query['resource.id'] = resource_id unless resource_id.nil?
|
1472
|
+
command.query['resource.insertionOffsetTimeMs'] = resource_insertion_offset_time_ms unless resource_insertion_offset_time_ms.nil?
|
1473
|
+
command.query['resource.walltimeMs'] = resource_walltime_ms unless resource_walltime_ms.nil?
|
1474
|
+
command.query['fields'] = fields unless fields.nil?
|
1475
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1476
|
+
execute_or_queue_command(command, &block)
|
1477
|
+
end
|
1478
|
+
|
1397
1479
|
# Retrieve the list of broadcasts associated with the given channel.
|
1398
1480
|
# @param [Array<String>, String] part
|
1399
1481
|
# The *part* parameter specifies a comma-separated list of one or more
|
@@ -3819,86 +3901,6 @@ module Google
|
|
3819
3901
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3820
3902
|
execute_or_queue_command(command, &block)
|
3821
3903
|
end
|
3822
|
-
|
3823
|
-
# Insert cuepoints in a broadcast
|
3824
|
-
# @param [String] id
|
3825
|
-
# Broadcast to insert ads to, or equivalently `external_video_id` for internal
|
3826
|
-
# use.
|
3827
|
-
# @param [String] on_behalf_of_content_owner
|
3828
|
-
# *Note:* This parameter is intended exclusively for YouTube content partners.
|
3829
|
-
# The *onBehalfOfContentOwner* parameter indicates that the request's
|
3830
|
-
# authorization credentials identify a YouTube CMS user who is acting on behalf
|
3831
|
-
# of the content owner specified in the parameter value. This parameter is
|
3832
|
-
# intended for YouTube content partners that own and manage many different
|
3833
|
-
# YouTube channels. It allows content owners to authenticate once and get access
|
3834
|
-
# to all their video and channel data, without having to provide authentication
|
3835
|
-
# credentials for each individual channel. The CMS account that the user
|
3836
|
-
# authenticates with must be linked to the specified YouTube content owner.
|
3837
|
-
# @param [String] on_behalf_of_content_owner_channel
|
3838
|
-
# This parameter can only be used in a properly authorized request. *Note:* This
|
3839
|
-
# parameter is intended exclusively for YouTube content partners. The *
|
3840
|
-
# onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of
|
3841
|
-
# the channel to which a video is being added. This parameter is required when a
|
3842
|
-
# request specifies a value for the onBehalfOfContentOwner parameter, and it can
|
3843
|
-
# only be used in conjunction with that parameter. In addition, the request must
|
3844
|
-
# be authorized using a CMS account that is linked to the content owner that the
|
3845
|
-
# onBehalfOfContentOwner parameter specifies. Finally, the channel that the
|
3846
|
-
# onBehalfOfContentOwnerChannel parameter value specifies must be linked to the
|
3847
|
-
# content owner that the onBehalfOfContentOwner parameter specifies. This
|
3848
|
-
# parameter is intended for YouTube content partners that own and manage many
|
3849
|
-
# different YouTube channels. It allows content owners to authenticate once and
|
3850
|
-
# perform actions on behalf of the channel specified in the parameter value,
|
3851
|
-
# without having to provide authentication credentials for each separate channel.
|
3852
|
-
# @param [Array<String>, String] part
|
3853
|
-
# The *part* parameter specifies a comma-separated list of one or more
|
3854
|
-
# liveBroadcast resource properties that the API response will include. The part
|
3855
|
-
# names that you can include in the parameter value are id, snippet,
|
3856
|
-
# contentDetails, and status.
|
3857
|
-
# @param [String] resource_cue_type
|
3858
|
-
# @param [Fixnum] resource_duration_secs
|
3859
|
-
# The duration of this cuepoint.
|
3860
|
-
# @param [String] resource_id
|
3861
|
-
# The identifier for cuepoint resource.
|
3862
|
-
# @param [Fixnum] resource_insertion_offset_time_ms
|
3863
|
-
# The time when the cuepoint should be inserted by offset to the broadcast
|
3864
|
-
# actual start time.
|
3865
|
-
# @param [Fixnum] resource_walltime_ms
|
3866
|
-
# The wall clock time at which the cuepoint should be inserted. Only one of
|
3867
|
-
# insertion_offset_time_ms and walltime_ms may be set at a time.
|
3868
|
-
# @param [String] fields
|
3869
|
-
# Selector specifying which fields to include in a partial response.
|
3870
|
-
# @param [String] quota_user
|
3871
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
3872
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3873
|
-
# @param [Google::Apis::RequestOptions] options
|
3874
|
-
# Request-specific options
|
3875
|
-
#
|
3876
|
-
# @yield [result, err] Result & error if block supplied
|
3877
|
-
# @yieldparam result [Google::Apis::YoutubeV3::Cuepoint] parsed result object
|
3878
|
-
# @yieldparam err [StandardError] error object if request failed
|
3879
|
-
#
|
3880
|
-
# @return [Google::Apis::YoutubeV3::Cuepoint]
|
3881
|
-
#
|
3882
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3883
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3884
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3885
|
-
def create_youtube_v3_live_broadcast_cuepoint(id: nil, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, part: nil, resource_cue_type: nil, resource_duration_secs: nil, resource_id: nil, resource_insertion_offset_time_ms: nil, resource_walltime_ms: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3886
|
-
command = make_simple_command(:post, 'youtube/v3/liveBroadcasts/cuepoint', options)
|
3887
|
-
command.response_representation = Google::Apis::YoutubeV3::Cuepoint::Representation
|
3888
|
-
command.response_class = Google::Apis::YoutubeV3::Cuepoint
|
3889
|
-
command.query['id'] = id unless id.nil?
|
3890
|
-
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
3891
|
-
command.query['onBehalfOfContentOwnerChannel'] = on_behalf_of_content_owner_channel unless on_behalf_of_content_owner_channel.nil?
|
3892
|
-
command.query['part'] = part unless part.nil?
|
3893
|
-
command.query['resource.cueType'] = resource_cue_type unless resource_cue_type.nil?
|
3894
|
-
command.query['resource.durationSecs'] = resource_duration_secs unless resource_duration_secs.nil?
|
3895
|
-
command.query['resource.id'] = resource_id unless resource_id.nil?
|
3896
|
-
command.query['resource.insertionOffsetTimeMs'] = resource_insertion_offset_time_ms unless resource_insertion_offset_time_ms.nil?
|
3897
|
-
command.query['resource.walltimeMs'] = resource_walltime_ms unless resource_walltime_ms.nil?
|
3898
|
-
command.query['fields'] = fields unless fields.nil?
|
3899
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3900
|
-
execute_or_queue_command(command, &block)
|
3901
|
-
end
|
3902
3904
|
|
3903
3905
|
protected
|
3904
3906
|
|
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.21.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: 2022-
|
11
|
+
date: 2022-07-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.7'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.7'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-youtube_v3/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-youtube_v3/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-youtube_v3/v0.21.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-youtube_v3
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|