google-apis-youtube_v3 0.33.0 → 0.34.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: 2297d900c983f728d132f92c2897df47becdab0a0e5275de3453d8a377217cbe
|
4
|
+
data.tar.gz: a44411145ec4fb9659e168f23a7f9f4a4e1db2a7a2697c978e4e8aac1832f6b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db1d75aa99811e10fb2749a846c60391e7f7de1e4aba1132b1639e3ffc690ab99d5f46100ac811c8d10eb9f49a426e303d3e9e7d8cc7e8e7ff2b23536c4ff668
|
7
|
+
data.tar.gz: 3647c1bfaf698dc4ddc73ab9997ef251c7eee421b9593449f0704c2050ddbc29bb17c9b5b569d35c8086ff953d95782b67560241eda865dd51871cd42019a576
|
data/CHANGELOG.md
CHANGED
@@ -5805,6 +5805,146 @@ module Google
|
|
5805
5805
|
end
|
5806
5806
|
end
|
5807
5807
|
|
5808
|
+
#
|
5809
|
+
class PlaylistImage
|
5810
|
+
include Google::Apis::Core::Hashable
|
5811
|
+
|
5812
|
+
# Identifies this resource (playlist id and image type).
|
5813
|
+
# Corresponds to the JSON property `id`
|
5814
|
+
# @return [String]
|
5815
|
+
attr_accessor :id
|
5816
|
+
|
5817
|
+
# Identifies what kind of resource this is. Value: the fixed string "youtube#
|
5818
|
+
# playlistImages".
|
5819
|
+
# Corresponds to the JSON property `kind`
|
5820
|
+
# @return [String]
|
5821
|
+
attr_accessor :kind
|
5822
|
+
|
5823
|
+
# A *playlistImage* resource identifies another resource, such as a image, that
|
5824
|
+
# is associated with a playlist. In addition, the playlistImage resource
|
5825
|
+
# contains details about the included resource that pertain specifically to how
|
5826
|
+
# that resource is used in that playlist. YouTube uses playlists to identify
|
5827
|
+
# special collections of videos for a channel, such as: - uploaded videos -
|
5828
|
+
# favorite videos - positively rated (liked) videos - watch history To be more
|
5829
|
+
# specific, these lists are associated with a channel, which is a collection of
|
5830
|
+
# a person, group, or company's videos, playlists, and other YouTube information.
|
5831
|
+
# You can retrieve the playlist IDs for each of these lists from the channel
|
5832
|
+
# resource for a given channel. You can then use the playlistImages.list method
|
5833
|
+
# to retrieve image data for any of those playlists. You can also add or remove
|
5834
|
+
# images from those lists by calling the playlistImages.insert and
|
5835
|
+
# playlistImages.delete methods.
|
5836
|
+
# Corresponds to the JSON property `snippet`
|
5837
|
+
# @return [Google::Apis::YoutubeV3::PlaylistImageSnippet]
|
5838
|
+
attr_accessor :snippet
|
5839
|
+
|
5840
|
+
def initialize(**args)
|
5841
|
+
update!(**args)
|
5842
|
+
end
|
5843
|
+
|
5844
|
+
# Update properties of this object
|
5845
|
+
def update!(**args)
|
5846
|
+
@id = args[:id] if args.key?(:id)
|
5847
|
+
@kind = args[:kind] if args.key?(:kind)
|
5848
|
+
@snippet = args[:snippet] if args.key?(:snippet)
|
5849
|
+
end
|
5850
|
+
end
|
5851
|
+
|
5852
|
+
#
|
5853
|
+
class PlaylistImageListResponse
|
5854
|
+
include Google::Apis::Core::Hashable
|
5855
|
+
|
5856
|
+
#
|
5857
|
+
# Corresponds to the JSON property `items`
|
5858
|
+
# @return [Array<Google::Apis::YoutubeV3::PlaylistImage>]
|
5859
|
+
attr_accessor :items
|
5860
|
+
|
5861
|
+
# Identifies what kind of resource this is. Value: the fixed string "youtube#
|
5862
|
+
# playlistImageListResponse".
|
5863
|
+
# Corresponds to the JSON property `kind`
|
5864
|
+
# @return [String]
|
5865
|
+
attr_accessor :kind
|
5866
|
+
|
5867
|
+
# The token that can be used as the value of the pageToken parameter to retrieve
|
5868
|
+
# the next page in the result set.
|
5869
|
+
# Corresponds to the JSON property `nextPageToken`
|
5870
|
+
# @return [String]
|
5871
|
+
attr_accessor :next_page_token
|
5872
|
+
|
5873
|
+
# Paging details for lists of resources, including total number of items
|
5874
|
+
# available and number of resources returned in a single page.
|
5875
|
+
# Corresponds to the JSON property `pageInfo`
|
5876
|
+
# @return [Google::Apis::YoutubeV3::PageInfo]
|
5877
|
+
attr_accessor :page_info
|
5878
|
+
|
5879
|
+
# The token that can be used as the value of the pageToken parameter to retrieve
|
5880
|
+
# the previous page in the result set.
|
5881
|
+
# Corresponds to the JSON property `prevPageToken`
|
5882
|
+
# @return [String]
|
5883
|
+
attr_accessor :prev_page_token
|
5884
|
+
|
5885
|
+
def initialize(**args)
|
5886
|
+
update!(**args)
|
5887
|
+
end
|
5888
|
+
|
5889
|
+
# Update properties of this object
|
5890
|
+
def update!(**args)
|
5891
|
+
@items = args[:items] if args.key?(:items)
|
5892
|
+
@kind = args[:kind] if args.key?(:kind)
|
5893
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
5894
|
+
@page_info = args[:page_info] if args.key?(:page_info)
|
5895
|
+
@prev_page_token = args[:prev_page_token] if args.key?(:prev_page_token)
|
5896
|
+
end
|
5897
|
+
end
|
5898
|
+
|
5899
|
+
# A *playlistImage* resource identifies another resource, such as a image, that
|
5900
|
+
# is associated with a playlist. In addition, the playlistImage resource
|
5901
|
+
# contains details about the included resource that pertain specifically to how
|
5902
|
+
# that resource is used in that playlist. YouTube uses playlists to identify
|
5903
|
+
# special collections of videos for a channel, such as: - uploaded videos -
|
5904
|
+
# favorite videos - positively rated (liked) videos - watch history To be more
|
5905
|
+
# specific, these lists are associated with a channel, which is a collection of
|
5906
|
+
# a person, group, or company's videos, playlists, and other YouTube information.
|
5907
|
+
# You can retrieve the playlist IDs for each of these lists from the channel
|
5908
|
+
# resource for a given channel. You can then use the playlistImages.list method
|
5909
|
+
# to retrieve image data for any of those playlists. You can also add or remove
|
5910
|
+
# images from those lists by calling the playlistImages.insert and
|
5911
|
+
# playlistImages.delete methods.
|
5912
|
+
class PlaylistImageSnippet
|
5913
|
+
include Google::Apis::Core::Hashable
|
5914
|
+
|
5915
|
+
# The image height.
|
5916
|
+
# Corresponds to the JSON property `height`
|
5917
|
+
# @return [Fixnum]
|
5918
|
+
attr_accessor :height
|
5919
|
+
|
5920
|
+
# The Playlist ID of the playlist this image is associated with.
|
5921
|
+
# Corresponds to the JSON property `playlistId`
|
5922
|
+
# @return [String]
|
5923
|
+
attr_accessor :playlist_id
|
5924
|
+
|
5925
|
+
# The image type.
|
5926
|
+
# Corresponds to the JSON property `type`
|
5927
|
+
# @return [String]
|
5928
|
+
attr_accessor :type
|
5929
|
+
|
5930
|
+
# The image width.
|
5931
|
+
# Corresponds to the JSON property `width`
|
5932
|
+
# @return [Fixnum]
|
5933
|
+
attr_accessor :width
|
5934
|
+
|
5935
|
+
def initialize(**args)
|
5936
|
+
update!(**args)
|
5937
|
+
end
|
5938
|
+
|
5939
|
+
# Update properties of this object
|
5940
|
+
def update!(**args)
|
5941
|
+
@height = args[:height] if args.key?(:height)
|
5942
|
+
@playlist_id = args[:playlist_id] if args.key?(:playlist_id)
|
5943
|
+
@type = args[:type] if args.key?(:type)
|
5944
|
+
@width = args[:width] if args.key?(:width)
|
5945
|
+
end
|
5946
|
+
end
|
5947
|
+
|
5808
5948
|
# A *playlistItem* resource identifies another resource, such as a video, that
|
5809
5949
|
# is included in a playlist. In addition, the playlistItem resource contains
|
5810
5950
|
# details about the included resource that pertain specifically to how that
|
@@ -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.34.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.12.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20231011"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -748,6 +748,24 @@ module Google
|
|
748
748
|
include Google::Apis::Core::JsonObjectSupport
|
749
749
|
end
|
750
750
|
|
751
|
+
class PlaylistImage
|
752
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
753
|
+
|
754
|
+
include Google::Apis::Core::JsonObjectSupport
|
755
|
+
end
|
756
|
+
|
757
|
+
class PlaylistImageListResponse
|
758
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
759
|
+
|
760
|
+
include Google::Apis::Core::JsonObjectSupport
|
761
|
+
end
|
762
|
+
|
763
|
+
class PlaylistImageSnippet
|
764
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
765
|
+
|
766
|
+
include Google::Apis::Core::JsonObjectSupport
|
767
|
+
end
|
768
|
+
|
751
769
|
class PlaylistItem
|
752
770
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
753
771
|
|
@@ -2677,6 +2695,39 @@ module Google
|
|
2677
2695
|
end
|
2678
2696
|
end
|
2679
2697
|
|
2698
|
+
class PlaylistImage
|
2699
|
+
# @private
|
2700
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2701
|
+
property :id, as: 'id'
|
2702
|
+
property :kind, as: 'kind'
|
2703
|
+
property :snippet, as: 'snippet', class: Google::Apis::YoutubeV3::PlaylistImageSnippet, decorator: Google::Apis::YoutubeV3::PlaylistImageSnippet::Representation
|
2704
|
+
|
2705
|
+
end
|
2706
|
+
end
|
2707
|
+
|
2708
|
+
class PlaylistImageListResponse
|
2709
|
+
# @private
|
2710
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2711
|
+
collection :items, as: 'items', class: Google::Apis::YoutubeV3::PlaylistImage, decorator: Google::Apis::YoutubeV3::PlaylistImage::Representation
|
2712
|
+
|
2713
|
+
property :kind, as: 'kind'
|
2714
|
+
property :next_page_token, as: 'nextPageToken'
|
2715
|
+
property :page_info, as: 'pageInfo', class: Google::Apis::YoutubeV3::PageInfo, decorator: Google::Apis::YoutubeV3::PageInfo::Representation
|
2716
|
+
|
2717
|
+
property :prev_page_token, as: 'prevPageToken'
|
2718
|
+
end
|
2719
|
+
end
|
2720
|
+
|
2721
|
+
class PlaylistImageSnippet
|
2722
|
+
# @private
|
2723
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2724
|
+
property :height, as: 'height'
|
2725
|
+
property :playlist_id, as: 'playlistId'
|
2726
|
+
property :type, as: 'type'
|
2727
|
+
property :width, as: 'width'
|
2728
|
+
end
|
2729
|
+
end
|
2730
|
+
|
2680
2731
|
class PlaylistItem
|
2681
2732
|
# @private
|
2682
2733
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2295,6 +2295,223 @@ module Google
|
|
2295
2295
|
execute_or_queue_command(command, &block)
|
2296
2296
|
end
|
2297
2297
|
|
2298
|
+
# Deletes a resource.
|
2299
|
+
# @param [String] id
|
2300
|
+
# Id to identify this image. This is returned from by the List method.
|
2301
|
+
# @param [String] on_behalf_of_content_owner
|
2302
|
+
# *Note:* This parameter is intended exclusively for YouTube content partners.
|
2303
|
+
# The *onBehalfOfContentOwner* parameter indicates that the request's
|
2304
|
+
# authorization credentials identify a YouTube CMS user who is acting on behalf
|
2305
|
+
# of the content owner specified in the parameter value. This parameter is
|
2306
|
+
# intended for YouTube content partners that own and manage many different
|
2307
|
+
# YouTube channels. It allows content owners to authenticate once and get access
|
2308
|
+
# to all their video and channel data, without having to provide authentication
|
2309
|
+
# credentials for each individual channel. The CMS account that the user
|
2310
|
+
# authenticates with must be linked to the specified YouTube content owner.
|
2311
|
+
# @param [String] fields
|
2312
|
+
# Selector specifying which fields to include in a partial response.
|
2313
|
+
# @param [String] quota_user
|
2314
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2315
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2316
|
+
# @param [Google::Apis::RequestOptions] options
|
2317
|
+
# Request-specific options
|
2318
|
+
#
|
2319
|
+
# @yield [result, err] Result & error if block supplied
|
2320
|
+
# @yieldparam result [NilClass] No result returned for this method
|
2321
|
+
# @yieldparam err [StandardError] error object if request failed
|
2322
|
+
#
|
2323
|
+
# @return [void]
|
2324
|
+
#
|
2325
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2326
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2327
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2328
|
+
def delete_playlist_image(id: nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2329
|
+
command = make_simple_command(:delete, 'youtube/v3/playlistImages', options)
|
2330
|
+
command.query['id'] = id unless id.nil?
|
2331
|
+
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
2332
|
+
command.query['fields'] = fields unless fields.nil?
|
2333
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2334
|
+
execute_or_queue_command(command, &block)
|
2335
|
+
end
|
2336
|
+
|
2337
|
+
# Inserts a new resource into this collection.
|
2338
|
+
# @param [Google::Apis::YoutubeV3::PlaylistImage] playlist_image_object
|
2339
|
+
# @param [String] on_behalf_of_content_owner
|
2340
|
+
# *Note:* This parameter is intended exclusively for YouTube content partners.
|
2341
|
+
# The *onBehalfOfContentOwner* parameter indicates that the request's
|
2342
|
+
# authorization credentials identify a YouTube CMS user who is acting on behalf
|
2343
|
+
# of the content owner specified in the parameter value. This parameter is
|
2344
|
+
# intended for YouTube content partners that own and manage many different
|
2345
|
+
# YouTube channels. It allows content owners to authenticate once and get access
|
2346
|
+
# to all their video and channel data, without having to provide authentication
|
2347
|
+
# credentials for each individual channel. The CMS account that the user
|
2348
|
+
# authenticates with must be linked to the specified YouTube content owner.
|
2349
|
+
# @param [String] on_behalf_of_content_owner_channel
|
2350
|
+
# This parameter can only be used in a properly authorized request. *Note:* This
|
2351
|
+
# parameter is intended exclusively for YouTube content partners. The *
|
2352
|
+
# onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of
|
2353
|
+
# the channel to which a video is being added. This parameter is required when a
|
2354
|
+
# request specifies a value for the onBehalfOfContentOwner parameter, and it can
|
2355
|
+
# only be used in conjunction with that parameter. In addition, the request must
|
2356
|
+
# be authorized using a CMS account that is linked to the content owner that the
|
2357
|
+
# onBehalfOfContentOwner parameter specifies. Finally, the channel that the
|
2358
|
+
# onBehalfOfContentOwnerChannel parameter value specifies must be linked to the
|
2359
|
+
# content owner that the onBehalfOfContentOwner parameter specifies. This
|
2360
|
+
# parameter is intended for YouTube content partners that own and manage many
|
2361
|
+
# different YouTube channels. It allows content owners to authenticate once and
|
2362
|
+
# perform actions on behalf of the channel specified in the parameter value,
|
2363
|
+
# without having to provide authentication credentials for each separate channel.
|
2364
|
+
# @param [Array<String>, String] part
|
2365
|
+
# The *part* parameter specifies the properties that the API response will
|
2366
|
+
# include.
|
2367
|
+
# @param [String] fields
|
2368
|
+
# Selector specifying which fields to include in a partial response.
|
2369
|
+
# @param [String] quota_user
|
2370
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2371
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2372
|
+
# @param [Google::Apis::RequestOptions] options
|
2373
|
+
# Request-specific options
|
2374
|
+
#
|
2375
|
+
# @yield [result, err] Result & error if block supplied
|
2376
|
+
# @yieldparam result [Google::Apis::YoutubeV3::PlaylistImage] parsed result object
|
2377
|
+
# @yieldparam err [StandardError] error object if request failed
|
2378
|
+
#
|
2379
|
+
# @return [Google::Apis::YoutubeV3::PlaylistImage]
|
2380
|
+
#
|
2381
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2382
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2383
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2384
|
+
def insert_playlist_image(playlist_image_object = nil, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, part: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2385
|
+
command = make_simple_command(:post, 'youtube/v3/playlistImages', options)
|
2386
|
+
command.request_representation = Google::Apis::YoutubeV3::PlaylistImage::Representation
|
2387
|
+
command.request_object = playlist_image_object
|
2388
|
+
command.response_representation = Google::Apis::YoutubeV3::PlaylistImage::Representation
|
2389
|
+
command.response_class = Google::Apis::YoutubeV3::PlaylistImage
|
2390
|
+
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
2391
|
+
command.query['onBehalfOfContentOwnerChannel'] = on_behalf_of_content_owner_channel unless on_behalf_of_content_owner_channel.nil?
|
2392
|
+
command.query['part'] = part unless part.nil?
|
2393
|
+
command.query['fields'] = fields unless fields.nil?
|
2394
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2395
|
+
execute_or_queue_command(command, &block)
|
2396
|
+
end
|
2397
|
+
|
2398
|
+
# Retrieves a list of resources, possibly filtered.
|
2399
|
+
# @param [Fixnum] max_results
|
2400
|
+
# The *maxResults* parameter specifies the maximum number of items that should
|
2401
|
+
# be returned in the result set.
|
2402
|
+
# @param [String] on_behalf_of_content_owner
|
2403
|
+
# *Note:* This parameter is intended exclusively for YouTube content partners.
|
2404
|
+
# The *onBehalfOfContentOwner* parameter indicates that the request's
|
2405
|
+
# authorization credentials identify a YouTube CMS user who is acting on behalf
|
2406
|
+
# of the content owner specified in the parameter value. This parameter is
|
2407
|
+
# intended for YouTube content partners that own and manage many different
|
2408
|
+
# YouTube channels. It allows content owners to authenticate once and get access
|
2409
|
+
# to all their video and channel data, without having to provide authentication
|
2410
|
+
# credentials for each individual channel. The CMS account that the user
|
2411
|
+
# authenticates with must be linked to the specified YouTube content owner.
|
2412
|
+
# @param [String] on_behalf_of_content_owner_channel
|
2413
|
+
# This parameter can only be used in a properly authorized request. *Note:* This
|
2414
|
+
# parameter is intended exclusively for YouTube content partners. The *
|
2415
|
+
# onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of
|
2416
|
+
# the channel to which a video is being added. This parameter is required when a
|
2417
|
+
# request specifies a value for the onBehalfOfContentOwner parameter, and it can
|
2418
|
+
# only be used in conjunction with that parameter. In addition, the request must
|
2419
|
+
# be authorized using a CMS account that is linked to the content owner that the
|
2420
|
+
# onBehalfOfContentOwner parameter specifies. Finally, the channel that the
|
2421
|
+
# onBehalfOfContentOwnerChannel parameter value specifies must be linked to the
|
2422
|
+
# content owner that the onBehalfOfContentOwner parameter specifies. This
|
2423
|
+
# parameter is intended for YouTube content partners that own and manage many
|
2424
|
+
# different YouTube channels. It allows content owners to authenticate once and
|
2425
|
+
# perform actions on behalf of the channel specified in the parameter value,
|
2426
|
+
# without having to provide authentication credentials for each separate channel.
|
2427
|
+
# @param [String] page_token
|
2428
|
+
# The *pageToken* parameter identifies a specific page in the result set that
|
2429
|
+
# should be returned. In an API response, the nextPageToken and prevPageToken
|
2430
|
+
# properties identify other pages that could be retrieved.
|
2431
|
+
# @param [String] parent
|
2432
|
+
# Return PlaylistImages for this playlist id.
|
2433
|
+
# @param [Array<String>, String] part
|
2434
|
+
# The *part* parameter specifies a comma-separated list of one or more
|
2435
|
+
# playlistImage resource properties that the API response will include. If the
|
2436
|
+
# parameter identifies a property that contains child properties, the child
|
2437
|
+
# properties will be included in the response.
|
2438
|
+
# @param [String] fields
|
2439
|
+
# Selector specifying which fields to include in a partial response.
|
2440
|
+
# @param [String] quota_user
|
2441
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2442
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2443
|
+
# @param [Google::Apis::RequestOptions] options
|
2444
|
+
# Request-specific options
|
2445
|
+
#
|
2446
|
+
# @yield [result, err] Result & error if block supplied
|
2447
|
+
# @yieldparam result [Google::Apis::YoutubeV3::PlaylistImageListResponse] parsed result object
|
2448
|
+
# @yieldparam err [StandardError] error object if request failed
|
2449
|
+
#
|
2450
|
+
# @return [Google::Apis::YoutubeV3::PlaylistImageListResponse]
|
2451
|
+
#
|
2452
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2453
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2454
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2455
|
+
def list_playlist_images(max_results: nil, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, page_token: nil, parent: nil, part: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2456
|
+
command = make_simple_command(:get, 'youtube/v3/playlistImages', options)
|
2457
|
+
command.response_representation = Google::Apis::YoutubeV3::PlaylistImageListResponse::Representation
|
2458
|
+
command.response_class = Google::Apis::YoutubeV3::PlaylistImageListResponse
|
2459
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
2460
|
+
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
2461
|
+
command.query['onBehalfOfContentOwnerChannel'] = on_behalf_of_content_owner_channel unless on_behalf_of_content_owner_channel.nil?
|
2462
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
2463
|
+
command.query['parent'] = parent unless parent.nil?
|
2464
|
+
command.query['part'] = part unless part.nil?
|
2465
|
+
command.query['fields'] = fields unless fields.nil?
|
2466
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2467
|
+
execute_or_queue_command(command, &block)
|
2468
|
+
end
|
2469
|
+
|
2470
|
+
# Updates an existing resource.
|
2471
|
+
# @param [Google::Apis::YoutubeV3::PlaylistImage] playlist_image_object
|
2472
|
+
# @param [String] on_behalf_of_content_owner
|
2473
|
+
# *Note:* This parameter is intended exclusively for YouTube content partners.
|
2474
|
+
# The *onBehalfOfContentOwner* parameter indicates that the request's
|
2475
|
+
# authorization credentials identify a YouTube CMS user who is acting on behalf
|
2476
|
+
# of the content owner specified in the parameter value. This parameter is
|
2477
|
+
# intended for YouTube content partners that own and manage many different
|
2478
|
+
# YouTube channels. It allows content owners to authenticate once and get access
|
2479
|
+
# to all their video and channel data, without having to provide authentication
|
2480
|
+
# credentials for each individual channel. The CMS account that the user
|
2481
|
+
# authenticates with must be linked to the specified YouTube content owner.
|
2482
|
+
# @param [Array<String>, String] part
|
2483
|
+
# The *part* parameter specifies the properties that the API response will
|
2484
|
+
# include.
|
2485
|
+
# @param [String] fields
|
2486
|
+
# Selector specifying which fields to include in a partial response.
|
2487
|
+
# @param [String] quota_user
|
2488
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2489
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2490
|
+
# @param [Google::Apis::RequestOptions] options
|
2491
|
+
# Request-specific options
|
2492
|
+
#
|
2493
|
+
# @yield [result, err] Result & error if block supplied
|
2494
|
+
# @yieldparam result [Google::Apis::YoutubeV3::PlaylistImage] parsed result object
|
2495
|
+
# @yieldparam err [StandardError] error object if request failed
|
2496
|
+
#
|
2497
|
+
# @return [Google::Apis::YoutubeV3::PlaylistImage]
|
2498
|
+
#
|
2499
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2500
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2501
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2502
|
+
def update_playlist_image(playlist_image_object = nil, on_behalf_of_content_owner: nil, part: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2503
|
+
command = make_simple_command(:put, 'youtube/v3/playlistImages', options)
|
2504
|
+
command.request_representation = Google::Apis::YoutubeV3::PlaylistImage::Representation
|
2505
|
+
command.request_object = playlist_image_object
|
2506
|
+
command.response_representation = Google::Apis::YoutubeV3::PlaylistImage::Representation
|
2507
|
+
command.response_class = Google::Apis::YoutubeV3::PlaylistImage
|
2508
|
+
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
2509
|
+
command.query['part'] = part unless part.nil?
|
2510
|
+
command.query['fields'] = fields unless fields.nil?
|
2511
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2512
|
+
execute_or_queue_command(command, &block)
|
2513
|
+
end
|
2514
|
+
|
2298
2515
|
# Deletes a resource.
|
2299
2516
|
# @param [String] id
|
2300
2517
|
# @param [String] on_behalf_of_content_owner
|
@@ -2782,8 +2999,6 @@ module Google
|
|
2782
2999
|
# Textual search terms to match.
|
2783
3000
|
# @param [String] region_code
|
2784
3001
|
# Display the content as seen by viewers in this country.
|
2785
|
-
# @param [String] related_to_video_id
|
2786
|
-
# Search related to a resource.
|
2787
3002
|
# @param [String] relevance_language
|
2788
3003
|
# Return results relevant to this language.
|
2789
3004
|
# @param [String] safe_search
|
@@ -2829,7 +3044,7 @@ module Google
|
|
2829
3044
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2830
3045
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2831
3046
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2832
|
-
def list_searches(part, channel_id: nil, channel_type: nil, event_type: nil, for_content_owner: nil, for_developer: nil, for_mine: nil, location: nil, location_radius: nil, max_results: nil, on_behalf_of_content_owner: nil, order: nil, page_token: nil, published_after: nil, published_before: nil, q: nil, region_code: nil,
|
3047
|
+
def list_searches(part, channel_id: nil, channel_type: nil, event_type: nil, for_content_owner: nil, for_developer: nil, for_mine: nil, location: nil, location_radius: nil, max_results: nil, on_behalf_of_content_owner: nil, order: nil, page_token: nil, published_after: nil, published_before: nil, q: nil, region_code: nil, relevance_language: nil, safe_search: nil, topic_id: nil, type: nil, video_caption: nil, video_category_id: nil, video_definition: nil, video_dimension: nil, video_duration: nil, video_embeddable: nil, video_license: nil, video_paid_product_placement: nil, video_syndicated: nil, video_type: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2833
3048
|
command = make_simple_command(:get, 'youtube/v3/search', options)
|
2834
3049
|
command.response_representation = Google::Apis::YoutubeV3::SearchListsResponse::Representation
|
2835
3050
|
command.response_class = Google::Apis::YoutubeV3::SearchListsResponse
|
@@ -2850,7 +3065,6 @@ module Google
|
|
2850
3065
|
command.query['publishedBefore'] = published_before unless published_before.nil?
|
2851
3066
|
command.query['q'] = q unless q.nil?
|
2852
3067
|
command.query['regionCode'] = region_code unless region_code.nil?
|
2853
|
-
command.query['relatedToVideoId'] = related_to_video_id unless related_to_video_id.nil?
|
2854
3068
|
command.query['relevanceLanguage'] = relevance_language unless relevance_language.nil?
|
2855
3069
|
command.query['safeSearch'] = safe_search unless safe_search.nil?
|
2856
3070
|
command.query['topicId'] = topic_id unless topic_id.nil?
|
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.34.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: 2023-
|
11
|
+
date: 2023-10-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -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.34.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: []
|