google-apis-youtube_v3 0.9.0 → 0.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/OVERVIEW.md +2 -2
- data/lib/google/apis/youtube_v3/classes.rb +86 -6
- data/lib/google/apis/youtube_v3/gem_version.rb +2 -2
- data/lib/google/apis/youtube_v3/representations.rb +33 -0
- data/lib/google/apis/youtube_v3/service.rb +19 -5
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 873aba40dd9b666884f271cf6dee6bd7d244ab46da91c3ec4b1264afb656146e
|
4
|
+
data.tar.gz: 405912aa596b44b2c10a31b82a859862e2416312e045068c68e9ee207b8ada27
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39f015cddc0628126f487859c53c3ea31d6e639995d6634c6a0f1a8151b407c41facc64bde9c872b4096ea5a3122912a02e47d1d2a9f40c0ceb93bef27ed60d8
|
7
|
+
data.tar.gz: e0ad04795068e477dd26aec89f91edda7261ccbd84b77920f20b8c3f51984660300f88a22e1587a8a8b9fac96ffeb6b9d90a648f3ed5f0f5ec74ec4d19c2b649
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
# Release history for google-apis-youtube_v3
|
2
2
|
|
3
|
+
### v0.13.0 (2021-10-21)
|
4
|
+
|
5
|
+
* Unspecified changes
|
6
|
+
|
7
|
+
### v0.12.0 (2021-09-17)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20210915
|
10
|
+
|
11
|
+
### v0.11.0 (2021-09-08)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20210906
|
14
|
+
|
15
|
+
### v0.10.0 (2021-09-01)
|
16
|
+
|
17
|
+
* Regenerated from discovery document revision 20210828
|
18
|
+
|
3
19
|
### v0.9.0 (2021-06-29)
|
4
20
|
|
5
21
|
* Regenerated using generator version 0.4.0
|
data/OVERVIEW.md
CHANGED
@@ -60,8 +60,8 @@ See the class reference docs for information on the methods you can call from a
|
|
60
60
|
|
61
61
|
More detailed descriptions of the Google simple REST clients are available in two documents.
|
62
62
|
|
63
|
-
* The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/
|
64
|
-
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/
|
63
|
+
* The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
|
64
|
+
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
|
65
65
|
|
66
66
|
(Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Youtube service in particular.)
|
67
67
|
|
@@ -4058,6 +4058,42 @@ module Google
|
|
4058
4058
|
end
|
4059
4059
|
end
|
4060
4060
|
|
4061
|
+
#
|
4062
|
+
class LiveChatMemberMilestoneChatDetails
|
4063
|
+
include Google::Apis::Core::Hashable
|
4064
|
+
|
4065
|
+
# The name of the Level at which the viever is a member. The Level names are
|
4066
|
+
# defined by the YouTube channel offering the Membership. In some situations
|
4067
|
+
# this field isn't filled.
|
4068
|
+
# Corresponds to the JSON property `memberLevelName`
|
4069
|
+
# @return [String]
|
4070
|
+
attr_accessor :member_level_name
|
4071
|
+
|
4072
|
+
# The total amount of months (rounded up) the viewer has been a member that
|
4073
|
+
# granted them this Member Milestone Chat. This is the same number of months as
|
4074
|
+
# is being displayed to YouTube users.
|
4075
|
+
# Corresponds to the JSON property `memberMonth`
|
4076
|
+
# @return [Fixnum]
|
4077
|
+
attr_accessor :member_month
|
4078
|
+
|
4079
|
+
# The comment added by the member to this Member Milestone Chat. This field is
|
4080
|
+
# empty for messages without a comment from the member.
|
4081
|
+
# Corresponds to the JSON property `userComment`
|
4082
|
+
# @return [String]
|
4083
|
+
attr_accessor :user_comment
|
4084
|
+
|
4085
|
+
def initialize(**args)
|
4086
|
+
update!(**args)
|
4087
|
+
end
|
4088
|
+
|
4089
|
+
# Update properties of this object
|
4090
|
+
def update!(**args)
|
4091
|
+
@member_level_name = args[:member_level_name] if args.key?(:member_level_name)
|
4092
|
+
@member_month = args[:member_month] if args.key?(:member_month)
|
4093
|
+
@user_comment = args[:user_comment] if args.key?(:user_comment)
|
4094
|
+
end
|
4095
|
+
end
|
4096
|
+
|
4061
4097
|
# A *liveChatMessage* resource represents a chat message in a YouTube Live Chat.
|
4062
4098
|
class LiveChatMessage
|
4063
4099
|
include Google::Apis::Core::Hashable
|
@@ -4084,7 +4120,7 @@ module Google
|
|
4084
4120
|
# @return [String]
|
4085
4121
|
attr_accessor :kind
|
4086
4122
|
|
4087
|
-
#
|
4123
|
+
# Next ID: 31
|
4088
4124
|
# Corresponds to the JSON property `snippet`
|
4089
4125
|
# @return [Google::Apis::YoutubeV3::LiveChatMessageSnippet]
|
4090
4126
|
attr_accessor :snippet
|
@@ -4281,17 +4317,18 @@ module Google
|
|
4281
4317
|
end
|
4282
4318
|
end
|
4283
4319
|
|
4284
|
-
#
|
4320
|
+
# Next ID: 31
|
4285
4321
|
class LiveChatMessageSnippet
|
4286
4322
|
include Google::Apis::Core::Hashable
|
4287
4323
|
|
4288
4324
|
# The ID of the user that authored this message, this field is not always filled.
|
4289
4325
|
# textMessageEvent - the user that wrote the message fanFundingEvent - the user
|
4290
4326
|
# that funded the broadcast newSponsorEvent - the user that just became a
|
4291
|
-
# sponsor
|
4292
|
-
#
|
4293
|
-
#
|
4294
|
-
# that made the purchase
|
4327
|
+
# sponsor memberMilestoneChatEvent - the member that sent the message
|
4328
|
+
# messageDeletedEvent - the moderator that took the action messageRetractedEvent
|
4329
|
+
# - the author that retracted their message userBannedEvent - the moderator that
|
4330
|
+
# took the action superChatEvent - the user that made the purchase
|
4331
|
+
# superStickerEvent - the user that made the purchase
|
4295
4332
|
# Corresponds to the JSON property `authorChannelId`
|
4296
4333
|
# @return [String]
|
4297
4334
|
attr_accessor :author_channel_id
|
@@ -4320,6 +4357,12 @@ module Google
|
|
4320
4357
|
# @return [String]
|
4321
4358
|
attr_accessor :live_chat_id
|
4322
4359
|
|
4360
|
+
# Details about the Member Milestone Chat event, this is only set if the type is
|
4361
|
+
# 'memberMilestoneChatEvent'.
|
4362
|
+
# Corresponds to the JSON property `memberMilestoneChatDetails`
|
4363
|
+
# @return [Google::Apis::YoutubeV3::LiveChatMemberMilestoneChatDetails]
|
4364
|
+
attr_accessor :member_milestone_chat_details
|
4365
|
+
|
4323
4366
|
#
|
4324
4367
|
# Corresponds to the JSON property `messageDeletedDetails`
|
4325
4368
|
# @return [Google::Apis::YoutubeV3::LiveChatMessageDeletedDetails]
|
@@ -4330,6 +4373,12 @@ module Google
|
|
4330
4373
|
# @return [Google::Apis::YoutubeV3::LiveChatMessageRetractedDetails]
|
4331
4374
|
attr_accessor :message_retracted_details
|
4332
4375
|
|
4376
|
+
# Details about the New Member Announcement event, this is only set if the type
|
4377
|
+
# is 'newSponsorEvent'. Please note that "member" is the new term for "sponsor".
|
4378
|
+
# Corresponds to the JSON property `newSponsorDetails`
|
4379
|
+
# @return [Google::Apis::YoutubeV3::LiveChatNewSponsorDetails]
|
4380
|
+
attr_accessor :new_sponsor_details
|
4381
|
+
|
4333
4382
|
# The date and time when the message was orignally published.
|
4334
4383
|
# Corresponds to the JSON property `publishedAt`
|
4335
4384
|
# @return [DateTime]
|
@@ -4375,8 +4424,10 @@ module Google
|
|
4375
4424
|
@fan_funding_event_details = args[:fan_funding_event_details] if args.key?(:fan_funding_event_details)
|
4376
4425
|
@has_display_content = args[:has_display_content] if args.key?(:has_display_content)
|
4377
4426
|
@live_chat_id = args[:live_chat_id] if args.key?(:live_chat_id)
|
4427
|
+
@member_milestone_chat_details = args[:member_milestone_chat_details] if args.key?(:member_milestone_chat_details)
|
4378
4428
|
@message_deleted_details = args[:message_deleted_details] if args.key?(:message_deleted_details)
|
4379
4429
|
@message_retracted_details = args[:message_retracted_details] if args.key?(:message_retracted_details)
|
4430
|
+
@new_sponsor_details = args[:new_sponsor_details] if args.key?(:new_sponsor_details)
|
4380
4431
|
@published_at = args[:published_at] if args.key?(:published_at)
|
4381
4432
|
@super_chat_details = args[:super_chat_details] if args.key?(:super_chat_details)
|
4382
4433
|
@super_sticker_details = args[:super_sticker_details] if args.key?(:super_sticker_details)
|
@@ -4522,6 +4573,35 @@ module Google
|
|
4522
4573
|
end
|
4523
4574
|
end
|
4524
4575
|
|
4576
|
+
#
|
4577
|
+
class LiveChatNewSponsorDetails
|
4578
|
+
include Google::Apis::Core::Hashable
|
4579
|
+
|
4580
|
+
# If the viewer just had upgraded from a lower level. For viewers that were not
|
4581
|
+
# members at the time of purchase, this field is false.
|
4582
|
+
# Corresponds to the JSON property `isUpgrade`
|
4583
|
+
# @return [Boolean]
|
4584
|
+
attr_accessor :is_upgrade
|
4585
|
+
alias_method :is_upgrade?, :is_upgrade
|
4586
|
+
|
4587
|
+
# The name of the Level that the viewer just had joined. The Level names are
|
4588
|
+
# defined by the YouTube channel offering the Membership. In some situations
|
4589
|
+
# this field isn't filled.
|
4590
|
+
# Corresponds to the JSON property `memberLevelName`
|
4591
|
+
# @return [String]
|
4592
|
+
attr_accessor :member_level_name
|
4593
|
+
|
4594
|
+
def initialize(**args)
|
4595
|
+
update!(**args)
|
4596
|
+
end
|
4597
|
+
|
4598
|
+
# Update properties of this object
|
4599
|
+
def update!(**args)
|
4600
|
+
@is_upgrade = args[:is_upgrade] if args.key?(:is_upgrade)
|
4601
|
+
@member_level_name = args[:member_level_name] if args.key?(:member_level_name)
|
4602
|
+
end
|
4603
|
+
end
|
4604
|
+
|
4525
4605
|
#
|
4526
4606
|
class LiveChatSuperChatDetails
|
4527
4607
|
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.13.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.4.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210915"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -496,6 +496,12 @@ module Google
|
|
496
496
|
include Google::Apis::Core::JsonObjectSupport
|
497
497
|
end
|
498
498
|
|
499
|
+
class LiveChatMemberMilestoneChatDetails
|
500
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
501
|
+
|
502
|
+
include Google::Apis::Core::JsonObjectSupport
|
503
|
+
end
|
504
|
+
|
499
505
|
class LiveChatMessage
|
500
506
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
501
507
|
|
@@ -550,6 +556,12 @@ module Google
|
|
550
556
|
include Google::Apis::Core::JsonObjectSupport
|
551
557
|
end
|
552
558
|
|
559
|
+
class LiveChatNewSponsorDetails
|
560
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
561
|
+
|
562
|
+
include Google::Apis::Core::JsonObjectSupport
|
563
|
+
end
|
564
|
+
|
553
565
|
class LiveChatSuperChatDetails
|
554
566
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
555
567
|
|
@@ -2142,6 +2154,15 @@ module Google
|
|
2142
2154
|
end
|
2143
2155
|
end
|
2144
2156
|
|
2157
|
+
class LiveChatMemberMilestoneChatDetails
|
2158
|
+
# @private
|
2159
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2160
|
+
property :member_level_name, as: 'memberLevelName'
|
2161
|
+
property :member_month, as: 'memberMonth'
|
2162
|
+
property :user_comment, as: 'userComment'
|
2163
|
+
end
|
2164
|
+
end
|
2165
|
+
|
2145
2166
|
class LiveChatMessage
|
2146
2167
|
# @private
|
2147
2168
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2212,10 +2233,14 @@ module Google
|
|
2212
2233
|
|
2213
2234
|
property :has_display_content, as: 'hasDisplayContent'
|
2214
2235
|
property :live_chat_id, as: 'liveChatId'
|
2236
|
+
property :member_milestone_chat_details, as: 'memberMilestoneChatDetails', class: Google::Apis::YoutubeV3::LiveChatMemberMilestoneChatDetails, decorator: Google::Apis::YoutubeV3::LiveChatMemberMilestoneChatDetails::Representation
|
2237
|
+
|
2215
2238
|
property :message_deleted_details, as: 'messageDeletedDetails', class: Google::Apis::YoutubeV3::LiveChatMessageDeletedDetails, decorator: Google::Apis::YoutubeV3::LiveChatMessageDeletedDetails::Representation
|
2216
2239
|
|
2217
2240
|
property :message_retracted_details, as: 'messageRetractedDetails', class: Google::Apis::YoutubeV3::LiveChatMessageRetractedDetails, decorator: Google::Apis::YoutubeV3::LiveChatMessageRetractedDetails::Representation
|
2218
2241
|
|
2242
|
+
property :new_sponsor_details, as: 'newSponsorDetails', class: Google::Apis::YoutubeV3::LiveChatNewSponsorDetails, decorator: Google::Apis::YoutubeV3::LiveChatNewSponsorDetails::Representation
|
2243
|
+
|
2219
2244
|
property :published_at, as: 'publishedAt', type: DateTime
|
2220
2245
|
|
2221
2246
|
property :super_chat_details, as: 'superChatDetails', class: Google::Apis::YoutubeV3::LiveChatSuperChatDetails, decorator: Google::Apis::YoutubeV3::LiveChatSuperChatDetails::Representation
|
@@ -2268,6 +2293,14 @@ module Google
|
|
2268
2293
|
end
|
2269
2294
|
end
|
2270
2295
|
|
2296
|
+
class LiveChatNewSponsorDetails
|
2297
|
+
# @private
|
2298
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2299
|
+
property :is_upgrade, as: 'isUpgrade'
|
2300
|
+
property :member_level_name, as: 'memberLevelName'
|
2301
|
+
end
|
2302
|
+
end
|
2303
|
+
|
2271
2304
|
class LiveChatSuperChatDetails
|
2272
2305
|
# @private
|
2273
2306
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -3003,6 +3003,7 @@ module Google
|
|
3003
3003
|
# POST method.
|
3004
3004
|
# @param [Array<String>, String] part
|
3005
3005
|
# @param [Google::Apis::YoutubeV3::TestItem] test_item_object
|
3006
|
+
# @param [String] external_channel_id
|
3006
3007
|
# @param [String] fields
|
3007
3008
|
# Selector specifying which fields to include in a partial response.
|
3008
3009
|
# @param [String] quota_user
|
@@ -3020,12 +3021,13 @@ module Google
|
|
3020
3021
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3021
3022
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3022
3023
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3023
|
-
def insert_test(part, test_item_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
3024
|
+
def insert_test(part, test_item_object = nil, external_channel_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3024
3025
|
command = make_simple_command(:post, 'youtube/v3/tests', options)
|
3025
3026
|
command.request_representation = Google::Apis::YoutubeV3::TestItem::Representation
|
3026
3027
|
command.request_object = test_item_object
|
3027
3028
|
command.response_representation = Google::Apis::YoutubeV3::TestItem::Representation
|
3028
3029
|
command.response_class = Google::Apis::YoutubeV3::TestItem
|
3030
|
+
command.query['externalChannelId'] = external_channel_id unless external_channel_id.nil?
|
3029
3031
|
command.query['part'] = part unless part.nil?
|
3030
3032
|
command.query['fields'] = fields unless fields.nil?
|
3031
3033
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -3037,6 +3039,8 @@ module Google
|
|
3037
3039
|
# Delete the partner links with the given linking token.
|
3038
3040
|
# @param [String] type
|
3039
3041
|
# Type of the link to be deleted.
|
3042
|
+
# @param [String] external_channel_id
|
3043
|
+
# Channel ID to which changes should be applied, for delegation.
|
3040
3044
|
# @param [Array<String>, String] part
|
3041
3045
|
# Do not use. Required for compatibility.
|
3042
3046
|
# @param [String] fields
|
@@ -3056,8 +3060,9 @@ module Google
|
|
3056
3060
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3057
3061
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3058
3062
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3059
|
-
def delete_third_party_link(linking_token, type, part: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3063
|
+
def delete_third_party_link(linking_token, type, external_channel_id: nil, part: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3060
3064
|
command = make_simple_command(:delete, 'youtube/v3/thirdPartyLinks', options)
|
3065
|
+
command.query['externalChannelId'] = external_channel_id unless external_channel_id.nil?
|
3061
3066
|
command.query['linkingToken'] = linking_token unless linking_token.nil?
|
3062
3067
|
command.query['part'] = part unless part.nil?
|
3063
3068
|
command.query['type'] = type unless type.nil?
|
@@ -3072,6 +3077,8 @@ module Google
|
|
3072
3077
|
# request and response will include. Supported values are linkingToken, status,
|
3073
3078
|
# and snippet.
|
3074
3079
|
# @param [Google::Apis::YoutubeV3::ThirdPartyLink] third_party_link_object
|
3080
|
+
# @param [String] external_channel_id
|
3081
|
+
# Channel ID to which changes should be applied, for delegation.
|
3075
3082
|
# @param [String] fields
|
3076
3083
|
# Selector specifying which fields to include in a partial response.
|
3077
3084
|
# @param [String] quota_user
|
@@ -3089,12 +3096,13 @@ module Google
|
|
3089
3096
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3090
3097
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3091
3098
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3092
|
-
def insert_third_party_link(part, third_party_link_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
3099
|
+
def insert_third_party_link(part, third_party_link_object = nil, external_channel_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3093
3100
|
command = make_simple_command(:post, 'youtube/v3/thirdPartyLinks', options)
|
3094
3101
|
command.request_representation = Google::Apis::YoutubeV3::ThirdPartyLink::Representation
|
3095
3102
|
command.request_object = third_party_link_object
|
3096
3103
|
command.response_representation = Google::Apis::YoutubeV3::ThirdPartyLink::Representation
|
3097
3104
|
command.response_class = Google::Apis::YoutubeV3::ThirdPartyLink
|
3105
|
+
command.query['externalChannelId'] = external_channel_id unless external_channel_id.nil?
|
3098
3106
|
command.query['part'] = part unless part.nil?
|
3099
3107
|
command.query['fields'] = fields unless fields.nil?
|
3100
3108
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -3105,6 +3113,8 @@ module Google
|
|
3105
3113
|
# @param [Array<String>, String] part
|
3106
3114
|
# The *part* parameter specifies the thirdPartyLink resource parts that the API
|
3107
3115
|
# response will include. Supported values are linkingToken, status, and snippet.
|
3116
|
+
# @param [String] external_channel_id
|
3117
|
+
# Channel ID to which changes should be applied, for delegation.
|
3108
3118
|
# @param [String] linking_token
|
3109
3119
|
# Get a third party link with the given linking token.
|
3110
3120
|
# @param [String] type
|
@@ -3126,10 +3136,11 @@ module Google
|
|
3126
3136
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3127
3137
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3128
3138
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3129
|
-
def list_third_party_links(part, linking_token: nil, type: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3139
|
+
def list_third_party_links(part, external_channel_id: nil, linking_token: nil, type: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3130
3140
|
command = make_simple_command(:get, 'youtube/v3/thirdPartyLinks', options)
|
3131
3141
|
command.response_representation = Google::Apis::YoutubeV3::ThirdPartyLink::Representation
|
3132
3142
|
command.response_class = Google::Apis::YoutubeV3::ThirdPartyLink
|
3143
|
+
command.query['externalChannelId'] = external_channel_id unless external_channel_id.nil?
|
3133
3144
|
command.query['linkingToken'] = linking_token unless linking_token.nil?
|
3134
3145
|
command.query['part'] = part unless part.nil?
|
3135
3146
|
command.query['type'] = type unless type.nil?
|
@@ -3144,6 +3155,8 @@ module Google
|
|
3144
3155
|
# request and response will include. Supported values are linkingToken, status,
|
3145
3156
|
# and snippet.
|
3146
3157
|
# @param [Google::Apis::YoutubeV3::ThirdPartyLink] third_party_link_object
|
3158
|
+
# @param [String] external_channel_id
|
3159
|
+
# Channel ID to which changes should be applied, for delegation.
|
3147
3160
|
# @param [String] fields
|
3148
3161
|
# Selector specifying which fields to include in a partial response.
|
3149
3162
|
# @param [String] quota_user
|
@@ -3161,12 +3174,13 @@ module Google
|
|
3161
3174
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3162
3175
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3163
3176
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3164
|
-
def update_third_party_link(part, third_party_link_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
3177
|
+
def update_third_party_link(part, third_party_link_object = nil, external_channel_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3165
3178
|
command = make_simple_command(:put, 'youtube/v3/thirdPartyLinks', options)
|
3166
3179
|
command.request_representation = Google::Apis::YoutubeV3::ThirdPartyLink::Representation
|
3167
3180
|
command.request_object = third_party_link_object
|
3168
3181
|
command.response_representation = Google::Apis::YoutubeV3::ThirdPartyLink::Representation
|
3169
3182
|
command.response_class = Google::Apis::YoutubeV3::ThirdPartyLink
|
3183
|
+
command.query['externalChannelId'] = external_channel_id unless external_channel_id.nil?
|
3170
3184
|
command.query['part'] = part unless part.nil?
|
3171
3185
|
command.query['fields'] = fields unless fields.nil?
|
3172
3186
|
command.query['quotaUser'] = quota_user unless quota_user.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.13.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: 2021-
|
11
|
+
date: 2021-10-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -57,9 +57,9 @@ licenses:
|
|
57
57
|
- Apache-2.0
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
|
-
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-youtube_v3/v0.
|
62
|
-
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
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.13.0
|
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: []
|
65
65
|
require_paths:
|