google-apis-youtube_v3 0.17.0 → 0.20.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: 9f80197aac8760d2e7279f5dcd4750602bcda5b67ff87fa509ad8f30f55dbbad
4
- data.tar.gz: 941a106874bf1e70ca9867a02c872135dc8891627404d1ec1537c6de8a0891eb
3
+ metadata.gz: 84539d7e7fd833c70dd56ef9c353f9b5e24c29d82f41eb149883ba214695dcd0
4
+ data.tar.gz: 5d23ff153ccde30bd3f33e2c1b3e750fa137e48091e31479da66088b0b65370d
5
5
  SHA512:
6
- metadata.gz: abca7a517d9067a622c4dcb32f48c4a3de6bd85fcc7d490666317f51dd6474c034c13908fbef6e190539b531de2527924bd3be26398103133223cf2d9fa8fa35
7
- data.tar.gz: cddeeb8927a2ab4b131c13a43789853f4b4d82f49110163badaddec3ec31f211ed532b2e4f24c42d8b6a0dd0e01dcea1d06c94b7ab3d4d7a39708ae49fda5855
6
+ metadata.gz: f807c3a8f4ab29813e183a65209e0e4a401b610d8efebac9fd53eed8cd160860f009744141ac55bbea7d46b4545a77a942f07859f775182894c727398c41f2f2
7
+ data.tar.gz: 2de97f912d8684909da2b3872a2153346cff0d4866a8529faf260d5850ec9db09e5598c9d2ab04a73c28550b9cc450c03142db7b840c6c4f78816c90c46ccf4d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Release history for google-apis-youtube_v3
2
2
 
3
+ ### v0.20.0 (2022-06-21)
4
+
5
+ * Regenerated using generator version 0.7.0
6
+
7
+ ### v0.19.0 (2022-06-14)
8
+
9
+ * Regenerated from discovery document revision 20220612
10
+ * Regenerated using generator version 0.6.0
11
+
12
+ ### v0.18.0 (2022-06-10)
13
+
14
+ * Regenerated from discovery document revision 20220608
15
+ * Regenerated using generator version 0.5.0
16
+
3
17
  ### v0.17.0 (2022-03-22)
4
18
 
5
19
  * 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
@@ -7021,6 +7068,38 @@ module Google
7021
7068
  end
7022
7069
  end
7023
7070
 
7071
+ #
7072
+ class ThirdPartyLinkListResponse
7073
+ include Google::Apis::Core::Hashable
7074
+
7075
+ # Etag of this resource.
7076
+ # Corresponds to the JSON property `etag`
7077
+ # @return [String]
7078
+ attr_accessor :etag
7079
+
7080
+ #
7081
+ # Corresponds to the JSON property `items`
7082
+ # @return [Array<Google::Apis::YoutubeV3::ThirdPartyLink>]
7083
+ attr_accessor :items
7084
+
7085
+ # Identifies what kind of resource this is. Value: the fixed string "youtube#
7086
+ # thirdPartyLinkListResponse".
7087
+ # Corresponds to the JSON property `kind`
7088
+ # @return [String]
7089
+ attr_accessor :kind
7090
+
7091
+ def initialize(**args)
7092
+ update!(**args)
7093
+ end
7094
+
7095
+ # Update properties of this object
7096
+ def update!(**args)
7097
+ @etag = args[:etag] if args.key?(:etag)
7098
+ @items = args[:items] if args.key?(:items)
7099
+ @kind = args[:kind] if args.key?(:kind)
7100
+ end
7101
+ end
7102
+
7024
7103
  # Basic information about a third party account link, including its type and
7025
7104
  # type-specific information.
7026
7105
  class ThirdPartyLinkSnippet
@@ -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.17.0"
19
+ GEM_VERSION = "0.20.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.4.1"
22
+ GENERATOR_VERSION = "0.7.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220320"
25
+ REVISION = "20220612"
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
 
@@ -898,6 +904,12 @@ module Google
898
904
  include Google::Apis::Core::JsonObjectSupport
899
905
  end
900
906
 
907
+ class ThirdPartyLinkListResponse
908
+ class Representation < Google::Apis::Core::JsonRepresentation; end
909
+
910
+ include Google::Apis::Core::JsonObjectSupport
911
+ end
912
+
901
913
  class ThirdPartyLinkSnippet
902
914
  class Representation < Google::Apis::Core::JsonRepresentation; end
903
915
 
@@ -1865,6 +1877,17 @@ module Google
1865
1877
  end
1866
1878
  end
1867
1879
 
1880
+ class Cuepoint
1881
+ # @private
1882
+ class Representation < Google::Apis::Core::JsonRepresentation
1883
+ property :cue_type, as: 'cueType'
1884
+ property :duration_secs, as: 'durationSecs'
1885
+ property :id, as: 'id'
1886
+ property :insertion_offset_time_ms, :numeric_string => true, as: 'insertionOffsetTimeMs'
1887
+ property :walltime_ms, :numeric_string => true, as: 'walltimeMs'
1888
+ end
1889
+ end
1890
+
1868
1891
  class Entity
1869
1892
  # @private
1870
1893
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2979,6 +3002,16 @@ module Google
2979
3002
  end
2980
3003
  end
2981
3004
 
3005
+ class ThirdPartyLinkListResponse
3006
+ # @private
3007
+ class Representation < Google::Apis::Core::JsonRepresentation
3008
+ property :etag, as: 'etag'
3009
+ collection :items, as: 'items', class: Google::Apis::YoutubeV3::ThirdPartyLink, decorator: Google::Apis::YoutubeV3::ThirdPartyLink::Representation
3010
+
3011
+ property :kind, as: 'kind'
3012
+ end
3013
+ end
3014
+
2982
3015
  class ThirdPartyLinkSnippet
2983
3016
  # @private
2984
3017
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3128,18 +3128,18 @@ module Google
3128
3128
  # Request-specific options
3129
3129
  #
3130
3130
  # @yield [result, err] Result & error if block supplied
3131
- # @yieldparam result [Google::Apis::YoutubeV3::ThirdPartyLink] parsed result object
3131
+ # @yieldparam result [Google::Apis::YoutubeV3::ThirdPartyLinkListResponse] parsed result object
3132
3132
  # @yieldparam err [StandardError] error object if request failed
3133
3133
  #
3134
- # @return [Google::Apis::YoutubeV3::ThirdPartyLink]
3134
+ # @return [Google::Apis::YoutubeV3::ThirdPartyLinkListResponse]
3135
3135
  #
3136
3136
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3137
3137
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3138
3138
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3139
3139
  def list_third_party_links(part, external_channel_id: nil, linking_token: nil, type: nil, fields: nil, quota_user: nil, options: nil, &block)
3140
3140
  command = make_simple_command(:get, 'youtube/v3/thirdPartyLinks', options)
3141
- command.response_representation = Google::Apis::YoutubeV3::ThirdPartyLink::Representation
3142
- command.response_class = Google::Apis::YoutubeV3::ThirdPartyLink
3141
+ command.response_representation = Google::Apis::YoutubeV3::ThirdPartyLinkListResponse::Representation
3142
+ command.response_class = Google::Apis::YoutubeV3::ThirdPartyLinkListResponse
3143
3143
  command.query['externalChannelId'] = external_channel_id unless external_channel_id.nil?
3144
3144
  command.query['linkingToken'] = linking_token unless linking_token.nil?
3145
3145
  command.query['part'] = part unless part.nil?
@@ -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.17.0
4
+ version: 0.20.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-03-28 00:00:00.000000000 Z
11
+ date: 2022-06-27 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.4'
19
+ version: '0.6'
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.4'
29
+ version: '0.6'
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.17.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-youtube_v3/v0.20.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.5
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