google-apis-youtube_v3 0.17.0 → 0.18.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: 397db2830e03a8d4910f0b468cc9a72448024d3d191825753da6e4bc7cb2d1df
|
4
|
+
data.tar.gz: ebd51d15b2ea76432d7b74e325cba63ea33a1d6f6ecde98205b98171014d20ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b1428f639b2b040bff450d53181f8707a9261cf935634cce87955685165c1ebcb43ba3d86815a01b82506df800a222fe08a6cc19611181a6ecab0b63ef92d1b1
|
7
|
+
data.tar.gz: 77f95e51362d1ae81a1c0c18e3e85c5919e7da5b072c2d349a4a7831dc416af5ff32c1e2339108c56fa0d0e7f588aabe77308edecb6f4835d536e8bcccb614f1
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Release history for google-apis-youtube_v3
|
2
2
|
|
3
|
+
### v0.18.0 (2022-06-10)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220608
|
6
|
+
* Regenerated using generator version 0.5.0
|
7
|
+
|
3
8
|
### v0.17.0 (2022-03-22)
|
4
9
|
|
5
10
|
* Regenerated from discovery document revision 20220320
|
@@ -2861,6 +2861,53 @@ module Google
|
|
2861
2861
|
end
|
2862
2862
|
end
|
2863
2863
|
|
2864
|
+
# Note that there may be a 5-second end-point resolution issue. For instance, if
|
2865
|
+
# a cuepoint comes in for 22:03:27, we may stuff the cuepoint into 22:03:25 or
|
2866
|
+
# 22:03:30, depending. This is an artifact of HLS.
|
2867
|
+
class Cuepoint
|
2868
|
+
include Google::Apis::Core::Hashable
|
2869
|
+
|
2870
|
+
#
|
2871
|
+
# Corresponds to the JSON property `cueType`
|
2872
|
+
# @return [String]
|
2873
|
+
attr_accessor :cue_type
|
2874
|
+
|
2875
|
+
# The duration of this cuepoint.
|
2876
|
+
# Corresponds to the JSON property `durationSecs`
|
2877
|
+
# @return [Fixnum]
|
2878
|
+
attr_accessor :duration_secs
|
2879
|
+
|
2880
|
+
# The identifier for cuepoint resource.
|
2881
|
+
# Corresponds to the JSON property `id`
|
2882
|
+
# @return [String]
|
2883
|
+
attr_accessor :id
|
2884
|
+
|
2885
|
+
# The time when the cuepoint should be inserted by offset to the broadcast
|
2886
|
+
# actual start time.
|
2887
|
+
# Corresponds to the JSON property `insertionOffsetTimeMs`
|
2888
|
+
# @return [Fixnum]
|
2889
|
+
attr_accessor :insertion_offset_time_ms
|
2890
|
+
|
2891
|
+
# The wall clock time at which the cuepoint should be inserted. Only one of
|
2892
|
+
# insertion_offset_time_ms and walltime_ms may be set at a time.
|
2893
|
+
# Corresponds to the JSON property `walltimeMs`
|
2894
|
+
# @return [Fixnum]
|
2895
|
+
attr_accessor :walltime_ms
|
2896
|
+
|
2897
|
+
def initialize(**args)
|
2898
|
+
update!(**args)
|
2899
|
+
end
|
2900
|
+
|
2901
|
+
# Update properties of this object
|
2902
|
+
def update!(**args)
|
2903
|
+
@cue_type = args[:cue_type] if args.key?(:cue_type)
|
2904
|
+
@duration_secs = args[:duration_secs] if args.key?(:duration_secs)
|
2905
|
+
@id = args[:id] if args.key?(:id)
|
2906
|
+
@insertion_offset_time_ms = args[:insertion_offset_time_ms] if args.key?(:insertion_offset_time_ms)
|
2907
|
+
@walltime_ms = args[:walltime_ms] if args.key?(:walltime_ms)
|
2908
|
+
end
|
2909
|
+
end
|
2910
|
+
|
2864
2911
|
#
|
2865
2912
|
class Entity
|
2866
2913
|
include Google::Apis::Core::Hashable
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module YoutubeV3
|
18
18
|
# Version of the google-apis-youtube_v3 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.18.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.5.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220608"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -352,6 +352,12 @@ module Google
|
|
352
352
|
include Google::Apis::Core::JsonObjectSupport
|
353
353
|
end
|
354
354
|
|
355
|
+
class Cuepoint
|
356
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
357
|
+
|
358
|
+
include Google::Apis::Core::JsonObjectSupport
|
359
|
+
end
|
360
|
+
|
355
361
|
class Entity
|
356
362
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
357
363
|
|
@@ -1865,6 +1871,17 @@ module Google
|
|
1865
1871
|
end
|
1866
1872
|
end
|
1867
1873
|
|
1874
|
+
class Cuepoint
|
1875
|
+
# @private
|
1876
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1877
|
+
property :cue_type, as: 'cueType'
|
1878
|
+
property :duration_secs, as: 'durationSecs'
|
1879
|
+
property :id, as: 'id'
|
1880
|
+
property :insertion_offset_time_ms, :numeric_string => true, as: 'insertionOffsetTimeMs'
|
1881
|
+
property :walltime_ms, :numeric_string => true, as: 'walltimeMs'
|
1882
|
+
end
|
1883
|
+
end
|
1884
|
+
|
1868
1885
|
class Entity
|
1869
1886
|
# @private
|
1870
1887
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -3819,6 +3819,86 @@ module Google
|
|
3819
3819
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3820
3820
|
execute_or_queue_command(command, &block)
|
3821
3821
|
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
|
3822
3902
|
|
3823
3903
|
protected
|
3824
3904
|
|
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.18.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-06-13 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.5'
|
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.5'
|
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.18.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: []
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.3.
|
78
|
+
rubygems_version: 3.3.14
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for YouTube Data API v3 V3
|