google-apis-youtube_v3 0.18.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: 397db2830e03a8d4910f0b468cc9a72448024d3d191825753da6e4bc7cb2d1df
4
- data.tar.gz: ebd51d15b2ea76432d7b74e325cba63ea33a1d6f6ecde98205b98171014d20ec
3
+ metadata.gz: 254d2a6ee075c2b514c4f7e7fcceb1835a941dcfadb37fbaf7d7841cbb273bb1
4
+ data.tar.gz: 91b830e4708b4952aecef8fd412d208133fd92a7d47058946873ed54326c1c8b
5
5
  SHA512:
6
- metadata.gz: b1428f639b2b040bff450d53181f8707a9261cf935634cce87955685165c1ebcb43ba3d86815a01b82506df800a222fe08a6cc19611181a6ecab0b63ef92d1b1
7
- data.tar.gz: 77f95e51362d1ae81a1c0c18e3e85c5919e7da5b072c2d349a4a7831dc416af5ff32c1e2339108c56fa0d0e7f588aabe77308edecb6f4835d536e8bcccb614f1
6
+ metadata.gz: 851bd1134cf109421a85b7791d7a339ea96e309644e7b5de22526bc1972aaa1af470c481f429816ea41c7f325eb61908a8e8c3f899d37250afc37591a330db69
7
+ data.tar.gz: bcca2a2e94975bd12fb6222e17192f0fb506e754ff472075d4d3bdaba5458a048108e4f8630ba37b045360edd2217fb366189d5e70f7508f6e01e70fb6f43a3f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Release history for google-apis-youtube_v3
2
2
 
3
+ ### v0.21.0 (2022-06-30)
4
+
5
+ * Regenerated from discovery document revision 20220628
6
+ * Regenerated using generator version 0.8.0
7
+
8
+ ### v0.20.0 (2022-06-21)
9
+
10
+ * Regenerated using generator version 0.7.0
11
+
12
+ ### v0.19.0 (2022-06-14)
13
+
14
+ * Regenerated from discovery document revision 20220612
15
+ * Regenerated using generator version 0.6.0
16
+
3
17
  ### v0.18.0 (2022-06-10)
4
18
 
5
19
  * Regenerated from discovery document revision 20220608
@@ -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)
@@ -7068,6 +7074,38 @@ module Google
7068
7074
  end
7069
7075
  end
7070
7076
 
7077
+ #
7078
+ class ThirdPartyLinkListResponse
7079
+ include Google::Apis::Core::Hashable
7080
+
7081
+ # Etag of this resource.
7082
+ # Corresponds to the JSON property `etag`
7083
+ # @return [String]
7084
+ attr_accessor :etag
7085
+
7086
+ #
7087
+ # Corresponds to the JSON property `items`
7088
+ # @return [Array<Google::Apis::YoutubeV3::ThirdPartyLink>]
7089
+ attr_accessor :items
7090
+
7091
+ # Identifies what kind of resource this is. Value: the fixed string "youtube#
7092
+ # thirdPartyLinkListResponse".
7093
+ # Corresponds to the JSON property `kind`
7094
+ # @return [String]
7095
+ attr_accessor :kind
7096
+
7097
+ def initialize(**args)
7098
+ update!(**args)
7099
+ end
7100
+
7101
+ # Update properties of this object
7102
+ def update!(**args)
7103
+ @etag = args[:etag] if args.key?(:etag)
7104
+ @items = args[:items] if args.key?(:items)
7105
+ @kind = args[:kind] if args.key?(:kind)
7106
+ end
7107
+ end
7108
+
7071
7109
  # Basic information about a third party account link, including its type and
7072
7110
  # type-specific information.
7073
7111
  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.18.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.5.0"
22
+ GENERATOR_VERSION = "0.8.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220608"
25
+ REVISION = "20220628"
26
26
  end
27
27
  end
28
28
  end
@@ -904,6 +904,12 @@ module Google
904
904
  include Google::Apis::Core::JsonObjectSupport
905
905
  end
906
906
 
907
+ class ThirdPartyLinkListResponse
908
+ class Representation < Google::Apis::Core::JsonRepresentation; end
909
+
910
+ include Google::Apis::Core::JsonObjectSupport
911
+ end
912
+
907
913
  class ThirdPartyLinkSnippet
908
914
  class Representation < Google::Apis::Core::JsonRepresentation; end
909
915
 
@@ -1876,6 +1882,7 @@ module Google
1876
1882
  class Representation < Google::Apis::Core::JsonRepresentation
1877
1883
  property :cue_type, as: 'cueType'
1878
1884
  property :duration_secs, as: 'durationSecs'
1885
+ property :etag, as: 'etag'
1879
1886
  property :id, as: 'id'
1880
1887
  property :insertion_offset_time_ms, :numeric_string => true, as: 'insertionOffsetTimeMs'
1881
1888
  property :walltime_ms, :numeric_string => true, as: 'walltimeMs'
@@ -2996,6 +3003,16 @@ module Google
2996
3003
  end
2997
3004
  end
2998
3005
 
3006
+ class ThirdPartyLinkListResponse
3007
+ # @private
3008
+ class Representation < Google::Apis::Core::JsonRepresentation
3009
+ property :etag, as: 'etag'
3010
+ collection :items, as: 'items', class: Google::Apis::YoutubeV3::ThirdPartyLink, decorator: Google::Apis::YoutubeV3::ThirdPartyLink::Representation
3011
+
3012
+ property :kind, as: 'kind'
3013
+ end
3014
+ end
3015
+
2999
3016
  class ThirdPartyLinkSnippet
3000
3017
  # @private
3001
3018
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -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
@@ -3128,18 +3210,18 @@ module Google
3128
3210
  # Request-specific options
3129
3211
  #
3130
3212
  # @yield [result, err] Result & error if block supplied
3131
- # @yieldparam result [Google::Apis::YoutubeV3::ThirdPartyLink] parsed result object
3213
+ # @yieldparam result [Google::Apis::YoutubeV3::ThirdPartyLinkListResponse] parsed result object
3132
3214
  # @yieldparam err [StandardError] error object if request failed
3133
3215
  #
3134
- # @return [Google::Apis::YoutubeV3::ThirdPartyLink]
3216
+ # @return [Google::Apis::YoutubeV3::ThirdPartyLinkListResponse]
3135
3217
  #
3136
3218
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3137
3219
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3138
3220
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3139
3221
  def list_third_party_links(part, external_channel_id: nil, linking_token: nil, type: nil, fields: nil, quota_user: nil, options: nil, &block)
3140
3222
  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
3223
+ command.response_representation = Google::Apis::YoutubeV3::ThirdPartyLinkListResponse::Representation
3224
+ command.response_class = Google::Apis::YoutubeV3::ThirdPartyLinkListResponse
3143
3225
  command.query['externalChannelId'] = external_channel_id unless external_channel_id.nil?
3144
3226
  command.query['linkingToken'] = linking_token unless linking_token.nil?
3145
3227
  command.query['part'] = part unless part.nil?
@@ -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.18.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-06-13 00:00:00.000000000 Z
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.5'
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.5'
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.18.0
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: []