| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  | # Copyright 2015 Google Inc. | 
					
						
							|  |  |  |  | # | 
					
						
							|  |  |  |  | # Licensed under the Apache License, Version 2.0 (the "License"); | 
					
						
							|  |  |  |  | # you may not use this file except in compliance with the License. | 
					
						
							|  |  |  |  | # You may obtain a copy of the License at | 
					
						
							|  |  |  |  | # | 
					
						
							|  |  |  |  | #      http://www.apache.org/licenses/LICENSE-2.0 | 
					
						
							|  |  |  |  | # | 
					
						
							|  |  |  |  | # Unless required by applicable law or agreed to in writing, software | 
					
						
							|  |  |  |  | # distributed under the License is distributed on an "AS IS" BASIS, | 
					
						
							|  |  |  |  | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 
					
						
							|  |  |  |  | # See the License for the specific language governing permissions and | 
					
						
							|  |  |  |  | # limitations under the License. | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | require 'google/apis/core/base_service' | 
					
						
							|  |  |  |  | require 'google/apis/core/json_representation' | 
					
						
							|  |  |  |  | require 'google/apis/core/hashable' | 
					
						
							|  |  |  |  | require 'google/apis/errors' | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | module Google | 
					
						
							|  |  |  |  |   module Apis | 
					
						
							|  |  |  |  |     module YoutubePartnerV1 | 
					
						
							| 
									
										
										
										
											2019-06-05 00:37:20 +00:00
										 |  |  |  |       # YouTube Content ID API | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |       # | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |       # The YouTube Content ID API allows the management of YouTube assets along with | 
					
						
							|  |  |  |  |       #  their associated content, references, ownership, rights and policies. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |       # | 
					
						
							|  |  |  |  |       # @example | 
					
						
							|  |  |  |  |       #    require 'google/apis/youtube_partner_v1' | 
					
						
							|  |  |  |  |       # | 
					
						
							|  |  |  |  |       #    YoutubePartner = Google::Apis::YoutubePartnerV1 # Alias the module | 
					
						
							|  |  |  |  |       #    service = YoutubePartner::YouTubePartnerService.new | 
					
						
							|  |  |  |  |       # | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |       # @see https://devsite.googleplex.com/youtube/partner/docs/v1/ | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |       class YouTubePartnerService < Google::Apis::Core::BaseService | 
					
						
							|  |  |  |  |         # @return [String] | 
					
						
							|  |  |  |  |         #  API key. Your API key identifies your project and provides you with API access, | 
					
						
							|  |  |  |  |         #  quota, and reports. Required unless you provide an OAuth 2.0 token. | 
					
						
							|  |  |  |  |         attr_accessor :key | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         #  Available to use for quota purposes for server-side applications. Can be any | 
					
						
							|  |  |  |  |         #  arbitrary string assigned to a user, but should not exceed 40 characters. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         attr_accessor :quota_user | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |         def initialize | 
					
						
							| 
									
										
										
										
											2020-08-04 00:38:33 +00:00
										 |  |  |  |           super('https://www.googleapis.com/', '') | 
					
						
							|  |  |  |  |           @batch_path = 'batch/youtubePartner/v1' | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         end | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         # Insert an asset label for an owner. | 
					
						
							|  |  |  |  |         # @param [Google::Apis::YoutubePartnerV1::AssetLabel] asset_label_object | 
					
						
							|  |  |  |  |         # @param [String] on_behalf_of_content_owner | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *onBehalfOfContentOwner* parameter identifies the content owner that the | 
					
						
							|  |  |  |  |         #   user is acting on behalf of. This parameter supports users whose accounts are | 
					
						
							|  |  |  |  |         #   associated with multiple content owners. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] fields | 
					
						
							|  |  |  |  |         #   Selector specifying which fields to include in a partial response. | 
					
						
							|  |  |  |  |         # @param [String] quota_user | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         #   Available to use for quota purposes for server-side applications. Can be any | 
					
						
							|  |  |  |  |         #   arbitrary string assigned to a user, but should not exceed 40 characters. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::RequestOptions] options | 
					
						
							|  |  |  |  |         #   Request-specific options | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @yield [result, err] Result & error if block supplied | 
					
						
							|  |  |  |  |         # @yieldparam result [Google::Apis::YoutubePartnerV1::AssetLabel] parsed result object | 
					
						
							|  |  |  |  |         # @yieldparam err [StandardError] error object if request failed | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @return [Google::Apis::YoutubePartnerV1::AssetLabel] | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::AuthorizationError] Authorization is required | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         def insert_asset_label(asset_label_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block) | 
					
						
							|  |  |  |  |           command = make_simple_command(:post, 'youtube/partner/v1/assetLabels', options) | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |           command.request_representation = Google::Apis::YoutubePartnerV1::AssetLabel::Representation | 
					
						
							|  |  |  |  |           command.request_object = asset_label_object | 
					
						
							|  |  |  |  |           command.response_representation = Google::Apis::YoutubePartnerV1::AssetLabel::Representation | 
					
						
							|  |  |  |  |           command.response_class = Google::Apis::YoutubePartnerV1::AssetLabel | 
					
						
							|  |  |  |  |           command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? | 
					
						
							|  |  |  |  |           command.query['fields'] = fields unless fields.nil? | 
					
						
							|  |  |  |  |           command.query['quotaUser'] = quota_user unless quota_user.nil? | 
					
						
							|  |  |  |  |           execute_or_queue_command(command, &block) | 
					
						
							|  |  |  |  |         end | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         # Retrieves a list of all asset labels for an owner. | 
					
						
							|  |  |  |  |         # @param [String] label_prefix | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *labelPrefix* parameter identifies the prefix of asset labels to retrieve. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] on_behalf_of_content_owner | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *onBehalfOfContentOwner* parameter identifies the content owner that the | 
					
						
							|  |  |  |  |         #   user is acting on behalf of. This parameter supports users whose accounts are | 
					
						
							|  |  |  |  |         #   associated with multiple content owners. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] q | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *q* parameter specifies the query string to use to filter search results. | 
					
						
							|  |  |  |  |         #   YouTube searches for the query string in the *labelName* field of asset labels. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] fields | 
					
						
							|  |  |  |  |         #   Selector specifying which fields to include in a partial response. | 
					
						
							|  |  |  |  |         # @param [String] quota_user | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         #   Available to use for quota purposes for server-side applications. Can be any | 
					
						
							|  |  |  |  |         #   arbitrary string assigned to a user, but should not exceed 40 characters. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::RequestOptions] options | 
					
						
							|  |  |  |  |         #   Request-specific options | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @yield [result, err] Result & error if block supplied | 
					
						
							|  |  |  |  |         # @yieldparam result [Google::Apis::YoutubePartnerV1::AssetLabelListResponse] parsed result object | 
					
						
							|  |  |  |  |         # @yieldparam err [StandardError] error object if request failed | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @return [Google::Apis::YoutubePartnerV1::AssetLabelListResponse] | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::AuthorizationError] Authorization is required | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         def list_asset_labels(label_prefix: nil, on_behalf_of_content_owner: nil, q: nil, fields: nil, quota_user: nil, options: nil, &block) | 
					
						
							|  |  |  |  |           command = make_simple_command(:get, 'youtube/partner/v1/assetLabels', options) | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |           command.response_representation = Google::Apis::YoutubePartnerV1::AssetLabelListResponse::Representation | 
					
						
							|  |  |  |  |           command.response_class = Google::Apis::YoutubePartnerV1::AssetLabelListResponse | 
					
						
							|  |  |  |  |           command.query['labelPrefix'] = label_prefix unless label_prefix.nil? | 
					
						
							|  |  |  |  |           command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? | 
					
						
							|  |  |  |  |           command.query['q'] = q unless q.nil? | 
					
						
							|  |  |  |  |           command.query['fields'] = fields unless fields.nil? | 
					
						
							|  |  |  |  |           command.query['quotaUser'] = quota_user unless quota_user.nil? | 
					
						
							|  |  |  |  |           execute_or_queue_command(command, &block) | 
					
						
							|  |  |  |  |         end | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         # Retrieves the match policy assigned to the specified asset by the content | 
					
						
							|  |  |  |  |         # owner associated with the authenticated user. This information is only | 
					
						
							|  |  |  |  |         # accessible to an owner of the asset. | 
					
						
							|  |  |  |  |         # @param [String] asset_id | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *assetId* parameter specifies the YouTube asset ID of the asset for which | 
					
						
							|  |  |  |  |         #   you are retrieving the match policy. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] on_behalf_of_content_owner | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *onBehalfOfContentOwner* parameter identifies the content owner that the | 
					
						
							|  |  |  |  |         #   user is acting on behalf of. This parameter supports users whose accounts are | 
					
						
							|  |  |  |  |         #   associated with multiple content owners. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] fields | 
					
						
							|  |  |  |  |         #   Selector specifying which fields to include in a partial response. | 
					
						
							|  |  |  |  |         # @param [String] quota_user | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         #   Available to use for quota purposes for server-side applications. Can be any | 
					
						
							|  |  |  |  |         #   arbitrary string assigned to a user, but should not exceed 40 characters. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::RequestOptions] options | 
					
						
							|  |  |  |  |         #   Request-specific options | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @yield [result, err] Result & error if block supplied | 
					
						
							|  |  |  |  |         # @yieldparam result [Google::Apis::YoutubePartnerV1::AssetMatchPolicy] parsed result object | 
					
						
							|  |  |  |  |         # @yieldparam err [StandardError] error object if request failed | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @return [Google::Apis::YoutubePartnerV1::AssetMatchPolicy] | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::AuthorizationError] Authorization is required | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         def get_asset_match_policy(asset_id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block) | 
					
						
							|  |  |  |  |           command = make_simple_command(:get, 'youtube/partner/v1/assets/{assetId}/matchPolicy', options) | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |           command.response_representation = Google::Apis::YoutubePartnerV1::AssetMatchPolicy::Representation | 
					
						
							|  |  |  |  |           command.response_class = Google::Apis::YoutubePartnerV1::AssetMatchPolicy | 
					
						
							|  |  |  |  |           command.params['assetId'] = asset_id unless asset_id.nil? | 
					
						
							|  |  |  |  |           command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? | 
					
						
							|  |  |  |  |           command.query['fields'] = fields unless fields.nil? | 
					
						
							|  |  |  |  |           command.query['quotaUser'] = quota_user unless quota_user.nil? | 
					
						
							|  |  |  |  |           execute_or_queue_command(command, &block) | 
					
						
							|  |  |  |  |         end | 
					
						
							|  |  |  |  |          | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         # Patches the asset's match policy. If an asset has multiple owners, each owner | 
					
						
							|  |  |  |  |         # may set its own match policy for the asset. YouTube then computes the match | 
					
						
							|  |  |  |  |         # policy that is actually applied for the asset based on the territories where | 
					
						
							|  |  |  |  |         # each owner owns the asset. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] asset_id | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *assetId* parameter specifies the YouTube asset ID of the asset for which | 
					
						
							|  |  |  |  |         #   you are retrieving the match policy. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::YoutubePartnerV1::AssetMatchPolicy] asset_match_policy_object | 
					
						
							|  |  |  |  |         # @param [String] on_behalf_of_content_owner | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *onBehalfOfContentOwner* parameter identifies the content owner that the | 
					
						
							|  |  |  |  |         #   user is acting on behalf of. This parameter supports users whose accounts are | 
					
						
							|  |  |  |  |         #   associated with multiple content owners. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] fields | 
					
						
							|  |  |  |  |         #   Selector specifying which fields to include in a partial response. | 
					
						
							|  |  |  |  |         # @param [String] quota_user | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         #   Available to use for quota purposes for server-side applications. Can be any | 
					
						
							|  |  |  |  |         #   arbitrary string assigned to a user, but should not exceed 40 characters. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::RequestOptions] options | 
					
						
							|  |  |  |  |         #   Request-specific options | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @yield [result, err] Result & error if block supplied | 
					
						
							|  |  |  |  |         # @yieldparam result [Google::Apis::YoutubePartnerV1::AssetMatchPolicy] parsed result object | 
					
						
							|  |  |  |  |         # @yieldparam err [StandardError] error object if request failed | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @return [Google::Apis::YoutubePartnerV1::AssetMatchPolicy] | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::AuthorizationError] Authorization is required | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         def patch_asset_match_policy(asset_id, asset_match_policy_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block) | 
					
						
							|  |  |  |  |           command = make_simple_command(:patch, 'youtube/partner/v1/assets/{assetId}/matchPolicy', options) | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |           command.request_representation = Google::Apis::YoutubePartnerV1::AssetMatchPolicy::Representation | 
					
						
							|  |  |  |  |           command.request_object = asset_match_policy_object | 
					
						
							|  |  |  |  |           command.response_representation = Google::Apis::YoutubePartnerV1::AssetMatchPolicy::Representation | 
					
						
							|  |  |  |  |           command.response_class = Google::Apis::YoutubePartnerV1::AssetMatchPolicy | 
					
						
							|  |  |  |  |           command.params['assetId'] = asset_id unless asset_id.nil? | 
					
						
							|  |  |  |  |           command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? | 
					
						
							|  |  |  |  |           command.query['fields'] = fields unless fields.nil? | 
					
						
							|  |  |  |  |           command.query['quotaUser'] = quota_user unless quota_user.nil? | 
					
						
							|  |  |  |  |           execute_or_queue_command(command, &block) | 
					
						
							|  |  |  |  |         end | 
					
						
							|  |  |  |  |          | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         # Updates the asset's match policy. If an asset has multiple owners, each owner | 
					
						
							|  |  |  |  |         # may set its own match policy for the asset. YouTube then computes the match | 
					
						
							|  |  |  |  |         # policy that is actually applied for the asset based on the territories where | 
					
						
							|  |  |  |  |         # each owner owns the asset. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] asset_id | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *assetId* parameter specifies the YouTube asset ID of the asset for which | 
					
						
							|  |  |  |  |         #   you are retrieving the match policy. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::YoutubePartnerV1::AssetMatchPolicy] asset_match_policy_object | 
					
						
							|  |  |  |  |         # @param [String] on_behalf_of_content_owner | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *onBehalfOfContentOwner* parameter identifies the content owner that the | 
					
						
							|  |  |  |  |         #   user is acting on behalf of. This parameter supports users whose accounts are | 
					
						
							|  |  |  |  |         #   associated with multiple content owners. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] fields | 
					
						
							|  |  |  |  |         #   Selector specifying which fields to include in a partial response. | 
					
						
							|  |  |  |  |         # @param [String] quota_user | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         #   Available to use for quota purposes for server-side applications. Can be any | 
					
						
							|  |  |  |  |         #   arbitrary string assigned to a user, but should not exceed 40 characters. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::RequestOptions] options | 
					
						
							|  |  |  |  |         #   Request-specific options | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @yield [result, err] Result & error if block supplied | 
					
						
							|  |  |  |  |         # @yieldparam result [Google::Apis::YoutubePartnerV1::AssetMatchPolicy] parsed result object | 
					
						
							|  |  |  |  |         # @yieldparam err [StandardError] error object if request failed | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @return [Google::Apis::YoutubePartnerV1::AssetMatchPolicy] | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::AuthorizationError] Authorization is required | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         def update_asset_match_policy(asset_id, asset_match_policy_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block) | 
					
						
							|  |  |  |  |           command = make_simple_command(:put, 'youtube/partner/v1/assets/{assetId}/matchPolicy', options) | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |           command.request_representation = Google::Apis::YoutubePartnerV1::AssetMatchPolicy::Representation | 
					
						
							|  |  |  |  |           command.request_object = asset_match_policy_object | 
					
						
							|  |  |  |  |           command.response_representation = Google::Apis::YoutubePartnerV1::AssetMatchPolicy::Representation | 
					
						
							|  |  |  |  |           command.response_class = Google::Apis::YoutubePartnerV1::AssetMatchPolicy | 
					
						
							|  |  |  |  |           command.params['assetId'] = asset_id unless asset_id.nil? | 
					
						
							|  |  |  |  |           command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? | 
					
						
							|  |  |  |  |           command.query['fields'] = fields unless fields.nil? | 
					
						
							|  |  |  |  |           command.query['quotaUser'] = quota_user unless quota_user.nil? | 
					
						
							|  |  |  |  |           execute_or_queue_command(command, &block) | 
					
						
							|  |  |  |  |         end | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         # Deletes a relationship between two assets. | 
					
						
							|  |  |  |  |         # @param [String] asset_relationship_id | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *assetRelationshipId* parameter specifies a value that uniquely identifies | 
					
						
							|  |  |  |  |         #   the relationship you are deleting. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] on_behalf_of_content_owner | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *onBehalfOfContentOwner* parameter identifies the content owner that the | 
					
						
							|  |  |  |  |         #   user is acting on behalf of. This parameter supports users whose accounts are | 
					
						
							|  |  |  |  |         #   associated with multiple content owners. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] fields | 
					
						
							|  |  |  |  |         #   Selector specifying which fields to include in a partial response. | 
					
						
							|  |  |  |  |         # @param [String] quota_user | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         #   Available to use for quota purposes for server-side applications. Can be any | 
					
						
							|  |  |  |  |         #   arbitrary string assigned to a user, but should not exceed 40 characters. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::RequestOptions] options | 
					
						
							|  |  |  |  |         #   Request-specific options | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @yield [result, err] Result & error if block supplied | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         # @yieldparam result [Google::Apis::YoutubePartnerV1::Empty] parsed result object | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @yieldparam err [StandardError] error object if request failed | 
					
						
							|  |  |  |  |         # | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         # @return [Google::Apis::YoutubePartnerV1::Empty] | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::AuthorizationError] Authorization is required | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         def delete_asset_relationship(asset_relationship_id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block) | 
					
						
							|  |  |  |  |           command = make_simple_command(:delete, 'youtube/partner/v1/assetRelationships/{assetRelationshipId}', options) | 
					
						
							|  |  |  |  |           command.response_representation = Google::Apis::YoutubePartnerV1::Empty::Representation | 
					
						
							|  |  |  |  |           command.response_class = Google::Apis::YoutubePartnerV1::Empty | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |           command.params['assetRelationshipId'] = asset_relationship_id unless asset_relationship_id.nil? | 
					
						
							|  |  |  |  |           command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? | 
					
						
							|  |  |  |  |           command.query['fields'] = fields unless fields.nil? | 
					
						
							|  |  |  |  |           command.query['quotaUser'] = quota_user unless quota_user.nil? | 
					
						
							|  |  |  |  |           execute_or_queue_command(command, &block) | 
					
						
							|  |  |  |  |         end | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         # Creates a relationship that links two assets. | 
					
						
							|  |  |  |  |         # @param [Google::Apis::YoutubePartnerV1::AssetRelationship] asset_relationship_object | 
					
						
							|  |  |  |  |         # @param [String] on_behalf_of_content_owner | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *onBehalfOfContentOwner* parameter identifies the content owner that the | 
					
						
							|  |  |  |  |         #   user is acting on behalf of. This parameter supports users whose accounts are | 
					
						
							|  |  |  |  |         #   associated with multiple content owners. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] fields | 
					
						
							|  |  |  |  |         #   Selector specifying which fields to include in a partial response. | 
					
						
							|  |  |  |  |         # @param [String] quota_user | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         #   Available to use for quota purposes for server-side applications. Can be any | 
					
						
							|  |  |  |  |         #   arbitrary string assigned to a user, but should not exceed 40 characters. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::RequestOptions] options | 
					
						
							|  |  |  |  |         #   Request-specific options | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @yield [result, err] Result & error if block supplied | 
					
						
							|  |  |  |  |         # @yieldparam result [Google::Apis::YoutubePartnerV1::AssetRelationship] parsed result object | 
					
						
							|  |  |  |  |         # @yieldparam err [StandardError] error object if request failed | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @return [Google::Apis::YoutubePartnerV1::AssetRelationship] | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::AuthorizationError] Authorization is required | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         def insert_asset_relationship(asset_relationship_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block) | 
					
						
							|  |  |  |  |           command = make_simple_command(:post, 'youtube/partner/v1/assetRelationships', options) | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |           command.request_representation = Google::Apis::YoutubePartnerV1::AssetRelationship::Representation | 
					
						
							|  |  |  |  |           command.request_object = asset_relationship_object | 
					
						
							|  |  |  |  |           command.response_representation = Google::Apis::YoutubePartnerV1::AssetRelationship::Representation | 
					
						
							|  |  |  |  |           command.response_class = Google::Apis::YoutubePartnerV1::AssetRelationship | 
					
						
							|  |  |  |  |           command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? | 
					
						
							|  |  |  |  |           command.query['fields'] = fields unless fields.nil? | 
					
						
							|  |  |  |  |           command.query['quotaUser'] = quota_user unless quota_user.nil? | 
					
						
							|  |  |  |  |           execute_or_queue_command(command, &block) | 
					
						
							|  |  |  |  |         end | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         # Retrieves a list of relationships for a given asset. The list contains | 
					
						
							|  |  |  |  |         # relationships where the specified asset is either the parent (embedding) or | 
					
						
							|  |  |  |  |         # child (embedded) asset in the relationship. | 
					
						
							|  |  |  |  |         # @param [String] asset_id | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *assetId* parameter specifies the asset ID of the asset for which you are | 
					
						
							|  |  |  |  |         #   retrieving relationships. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] on_behalf_of_content_owner | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *onBehalfOfContentOwner* parameter identifies the content owner that the | 
					
						
							|  |  |  |  |         #   user is acting on behalf of. This parameter supports users whose accounts are | 
					
						
							|  |  |  |  |         #   associated with multiple content owners. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] page_token | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *pageToken* parameter specifies a token that identifies a particular page | 
					
						
							|  |  |  |  |         #   of results to return. Set this parameter to the value of the nextPageToken | 
					
						
							|  |  |  |  |         #   value from the previous API response to retrieve the next page of search | 
					
						
							|  |  |  |  |         #   results. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] fields | 
					
						
							|  |  |  |  |         #   Selector specifying which fields to include in a partial response. | 
					
						
							|  |  |  |  |         # @param [String] quota_user | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         #   Available to use for quota purposes for server-side applications. Can be any | 
					
						
							|  |  |  |  |         #   arbitrary string assigned to a user, but should not exceed 40 characters. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::RequestOptions] options | 
					
						
							|  |  |  |  |         #   Request-specific options | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @yield [result, err] Result & error if block supplied | 
					
						
							|  |  |  |  |         # @yieldparam result [Google::Apis::YoutubePartnerV1::AssetRelationshipListResponse] parsed result object | 
					
						
							|  |  |  |  |         # @yieldparam err [StandardError] error object if request failed | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @return [Google::Apis::YoutubePartnerV1::AssetRelationshipListResponse] | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::AuthorizationError] Authorization is required | 
					
						
							| 
									
										
										
										
											2020-07-28 00:38:09 +00:00
										 |  |  |  |         def list_asset_relationships(asset_id, on_behalf_of_content_owner: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |           command = make_simple_command(:get, 'youtube/partner/v1/assetRelationships', options) | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |           command.response_representation = Google::Apis::YoutubePartnerV1::AssetRelationshipListResponse::Representation | 
					
						
							|  |  |  |  |           command.response_class = Google::Apis::YoutubePartnerV1::AssetRelationshipListResponse | 
					
						
							|  |  |  |  |           command.query['assetId'] = asset_id unless asset_id.nil? | 
					
						
							|  |  |  |  |           command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? | 
					
						
							|  |  |  |  |           command.query['pageToken'] = page_token unless page_token.nil? | 
					
						
							|  |  |  |  |           command.query['fields'] = fields unless fields.nil? | 
					
						
							|  |  |  |  |           command.query['quotaUser'] = quota_user unless quota_user.nil? | 
					
						
							|  |  |  |  |           execute_or_queue_command(command, &block) | 
					
						
							|  |  |  |  |         end | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         # Searches for assets based on asset metadata. The method can retrieve all | 
					
						
							|  |  |  |  |         # assets or only assets owned by the content owner. This method mimics the | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         # functionality of the advanced search feature on the Assets page in CMS. | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         # @param [String] created_after | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *createdAfter* parameter restricts the set of returned assets to ones | 
					
						
							|  |  |  |  |         #   originally created on or after the specified datetime. For example: 2015-01- | 
					
						
							|  |  |  |  |         #   29T23:00:00Z | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         # @param [String] created_before | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *createdBefore* parameter restricts the set of returned assets to ones | 
					
						
							|  |  |  |  |         #   originally created on or before the specified datetime. For example: 2015-01- | 
					
						
							|  |  |  |  |         #   29T23:00:00Z | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Boolean] has_conflicts | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *hasConflicts* parameter enables you to only retrieve assets that have | 
					
						
							|  |  |  |  |         #   ownership conflicts. The only valid value is true. Setting the parameter value | 
					
						
							|  |  |  |  |         #   to false does not affect the results. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Boolean] include_any_providedlabel | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   If *includeAnyProvidedlabel* parameter is set to true, will search for assets | 
					
						
							|  |  |  |  |         #   that contain any of the provided labels; else will search for assets that | 
					
						
							|  |  |  |  |         #   contain all the provided labels. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] isrcs | 
					
						
							|  |  |  |  |         #   A comma-separated list of up to 50 ISRCs. If you specify a value for this | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   parameter, the API server ignores any values set for the following parameters: | 
					
						
							|  |  |  |  |         #   q, includeAnyProvidedLabel, hasConflicts, labels, metadataSearchFields, sort, | 
					
						
							|  |  |  |  |         #   and type. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] labels | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *labels* parameter specifies the assets with certain asset labels that you | 
					
						
							|  |  |  |  |         #   want to retrieve. The parameter value is a comma-separated list of asset | 
					
						
							|  |  |  |  |         #   labels. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] metadata_search_fields | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *metadataSearchField* parameter specifies which metadata fields to search | 
					
						
							|  |  |  |  |         #   by. It is a comma-separated list of metadata field and value pairs connected | 
					
						
							|  |  |  |  |         #   by colon(:). For example: customId:my_custom_id,artist:Dandexx | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         # @param [String] on_behalf_of_content_owner | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *onBehalfOfContentOwner* parameter identifies the content owner that the | 
					
						
							|  |  |  |  |         #   user is acting on behalf of. This parameter supports users whose accounts are | 
					
						
							|  |  |  |  |         #   associated with multiple content owners. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] ownership_restriction | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *ownershipRestriction* parameter specifies the ownership filtering option | 
					
						
							|  |  |  |  |         #   for the search. By default the search is performed in the assets owned by | 
					
						
							|  |  |  |  |         #   currently authenticated user only. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] page_token | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *pageToken* parameter specifies a token that identifies a particular page | 
					
						
							|  |  |  |  |         #   of results to return. Set this parameter to the value of the nextPageToken | 
					
						
							|  |  |  |  |         #   value from the previous API response to retrieve the next page of search | 
					
						
							|  |  |  |  |         #   results. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] q | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   YouTube searches within the *id*, *type*, and *customId* fields for all assets | 
					
						
							|  |  |  |  |         #   as well as in numerous other metadata fields – such as *actor*, *album*, * | 
					
						
							|  |  |  |  |         #   director*, *isrc*, and *tmsId* – that vary for different types of assets ( | 
					
						
							|  |  |  |  |         #   movies, music videos, etc.). | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] sort | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *sort* parameter specifies how the search results should be sorted. Note | 
					
						
							|  |  |  |  |         #   that results are always sorted in descending order. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] type | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *type* parameter specifies the types of assets that you want to retrieve. | 
					
						
							|  |  |  |  |         #   The parameter value is a comma-separated list of asset types. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] fields | 
					
						
							|  |  |  |  |         #   Selector specifying which fields to include in a partial response. | 
					
						
							|  |  |  |  |         # @param [String] quota_user | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         #   Available to use for quota purposes for server-side applications. Can be any | 
					
						
							|  |  |  |  |         #   arbitrary string assigned to a user, but should not exceed 40 characters. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::RequestOptions] options | 
					
						
							|  |  |  |  |         #   Request-specific options | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @yield [result, err] Result & error if block supplied | 
					
						
							|  |  |  |  |         # @yieldparam result [Google::Apis::YoutubePartnerV1::AssetSearchResponse] parsed result object | 
					
						
							|  |  |  |  |         # @yieldparam err [StandardError] error object if request failed | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @return [Google::Apis::YoutubePartnerV1::AssetSearchResponse] | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::AuthorizationError] Authorization is required | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         def list_asset_searches(created_after: nil, created_before: nil, has_conflicts: nil, include_any_providedlabel: nil, isrcs: nil, labels: nil, metadata_search_fields: nil, on_behalf_of_content_owner: nil, ownership_restriction: nil, page_token: nil, q: nil, sort: nil, type: nil, fields: nil, quota_user: nil, options: nil, &block) | 
					
						
							|  |  |  |  |           command = make_simple_command(:get, 'youtube/partner/v1/assetSearch', options) | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |           command.response_representation = Google::Apis::YoutubePartnerV1::AssetSearchResponse::Representation | 
					
						
							|  |  |  |  |           command.response_class = Google::Apis::YoutubePartnerV1::AssetSearchResponse | 
					
						
							|  |  |  |  |           command.query['createdAfter'] = created_after unless created_after.nil? | 
					
						
							|  |  |  |  |           command.query['createdBefore'] = created_before unless created_before.nil? | 
					
						
							|  |  |  |  |           command.query['hasConflicts'] = has_conflicts unless has_conflicts.nil? | 
					
						
							|  |  |  |  |           command.query['includeAnyProvidedlabel'] = include_any_providedlabel unless include_any_providedlabel.nil? | 
					
						
							|  |  |  |  |           command.query['isrcs'] = isrcs unless isrcs.nil? | 
					
						
							|  |  |  |  |           command.query['labels'] = labels unless labels.nil? | 
					
						
							|  |  |  |  |           command.query['metadataSearchFields'] = metadata_search_fields unless metadata_search_fields.nil? | 
					
						
							|  |  |  |  |           command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? | 
					
						
							|  |  |  |  |           command.query['ownershipRestriction'] = ownership_restriction unless ownership_restriction.nil? | 
					
						
							|  |  |  |  |           command.query['pageToken'] = page_token unless page_token.nil? | 
					
						
							|  |  |  |  |           command.query['q'] = q unless q.nil? | 
					
						
							|  |  |  |  |           command.query['sort'] = sort unless sort.nil? | 
					
						
							|  |  |  |  |           command.query['type'] = type unless type.nil? | 
					
						
							|  |  |  |  |           command.query['fields'] = fields unless fields.nil? | 
					
						
							| 
									
										
										
										
											2017-01-13 23:04:35 +00:00
										 |  |  |  |           command.query['quotaUser'] = quota_user unless quota_user.nil? | 
					
						
							|  |  |  |  |           execute_or_queue_command(command, &block) | 
					
						
							|  |  |  |  |         end | 
					
						
							|  |  |  |  |          | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         # This method either retrieves a list of asset shares the partner owns and that | 
					
						
							|  |  |  |  |         # map to a specified asset view ID *or* it retrieves a list of asset views | 
					
						
							|  |  |  |  |         # associated with a specified asset share ID owned by the partner. | 
					
						
							| 
									
										
										
										
											2017-01-13 23:04:35 +00:00
										 |  |  |  |         # @param [String] asset_id | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *assetId* parameter specifies the asset ID for which you are retrieving | 
					
						
							|  |  |  |  |         #   data. The parameter can be an asset view ID or an asset share ID. - If the | 
					
						
							|  |  |  |  |         #   value is an asset view ID, the API response identifies any asset share ids | 
					
						
							|  |  |  |  |         #   mapped to the asset view. - If the value is an asset share ID, the API | 
					
						
							|  |  |  |  |         #   response identifies any asset view ids that maps to that asset share. | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         # @param [String] on_behalf_of_content_owner | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *onBehalfOfContentOwner* parameter identifies the content owner that the | 
					
						
							|  |  |  |  |         #   user is acting on behalf of. This parameter supports users whose accounts are | 
					
						
							|  |  |  |  |         #   associated with multiple content owners. | 
					
						
							| 
									
										
										
										
											2017-01-13 23:04:35 +00:00
										 |  |  |  |         # @param [String] page_token | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *pageToken* parameter specifies a token that identifies a particular page | 
					
						
							|  |  |  |  |         #   of results to return. Set this parameter to the value of the nextPageToken | 
					
						
							|  |  |  |  |         #   value from the previous API response to retrieve the next page of search | 
					
						
							|  |  |  |  |         #   results. | 
					
						
							| 
									
										
										
										
											2017-01-13 23:04:35 +00:00
										 |  |  |  |         # @param [String] fields | 
					
						
							|  |  |  |  |         #   Selector specifying which fields to include in a partial response. | 
					
						
							|  |  |  |  |         # @param [String] quota_user | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         #   Available to use for quota purposes for server-side applications. Can be any | 
					
						
							|  |  |  |  |         #   arbitrary string assigned to a user, but should not exceed 40 characters. | 
					
						
							| 
									
										
										
										
											2017-01-13 23:04:35 +00:00
										 |  |  |  |         # @param [Google::Apis::RequestOptions] options | 
					
						
							|  |  |  |  |         #   Request-specific options | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @yield [result, err] Result & error if block supplied | 
					
						
							|  |  |  |  |         # @yieldparam result [Google::Apis::YoutubePartnerV1::AssetShareListResponse] parsed result object | 
					
						
							|  |  |  |  |         # @yieldparam err [StandardError] error object if request failed | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @return [Google::Apis::YoutubePartnerV1::AssetShareListResponse] | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::AuthorizationError] Authorization is required | 
					
						
							| 
									
										
										
										
											2020-07-28 00:38:09 +00:00
										 |  |  |  |         def list_asset_shares(asset_id, on_behalf_of_content_owner: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |           command = make_simple_command(:get, 'youtube/partner/v1/assetShares', options) | 
					
						
							| 
									
										
										
										
											2017-01-13 23:04:35 +00:00
										 |  |  |  |           command.response_representation = Google::Apis::YoutubePartnerV1::AssetShareListResponse::Representation | 
					
						
							|  |  |  |  |           command.response_class = Google::Apis::YoutubePartnerV1::AssetShareListResponse | 
					
						
							|  |  |  |  |           command.query['assetId'] = asset_id unless asset_id.nil? | 
					
						
							|  |  |  |  |           command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? | 
					
						
							|  |  |  |  |           command.query['pageToken'] = page_token unless page_token.nil? | 
					
						
							|  |  |  |  |           command.query['fields'] = fields unless fields.nil? | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |           command.query['quotaUser'] = quota_user unless quota_user.nil? | 
					
						
							|  |  |  |  |           execute_or_queue_command(command, &block) | 
					
						
							|  |  |  |  |         end | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         # Retrieves the metadata for the specified asset. Note that if the request | 
					
						
							|  |  |  |  |         # identifies an asset that has been merged with another asset, meaning that | 
					
						
							|  |  |  |  |         # YouTube identified the requested asset as a duplicate, then the request | 
					
						
							|  |  |  |  |         # retrieves the merged, or synthesized, asset. | 
					
						
							|  |  |  |  |         # @param [String] asset_id | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *assetId* parameter specifies the YouTube asset ID of the asset being | 
					
						
							|  |  |  |  |         #   retrieved. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] fetch_match_policy | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *fetchMatchPolicy* parameter specifies the version of the asset's match | 
					
						
							|  |  |  |  |         #   policy that should be returned in the API response. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] fetch_metadata | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *fetchMetadata* parameter specifies the version of the asset's metadata | 
					
						
							|  |  |  |  |         #   that should be returned in the API response. In some cases, YouTube receives | 
					
						
							|  |  |  |  |         #   metadata for an asset from multiple sources, such as when different partners | 
					
						
							|  |  |  |  |         #   own the asset in different territories. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] fetch_ownership | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *fetchOwnership* parameter specifies the version of the asset's ownership | 
					
						
							|  |  |  |  |         #   data that should be returned in the API response. As with asset metadata, | 
					
						
							|  |  |  |  |         #   YouTube can receive asset ownership data from multiple sources. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Boolean] fetch_ownership_conflicts | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *fetchOwnershipConflicts* parameter allows you to retrieve information | 
					
						
							|  |  |  |  |         #   about ownership conflicts. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] on_behalf_of_content_owner | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *onBehalfOfContentOwner* parameter identifies the content owner that the | 
					
						
							|  |  |  |  |         #   user is acting on behalf of. This parameter supports users whose accounts are | 
					
						
							|  |  |  |  |         #   associated with multiple content owners. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] fields | 
					
						
							|  |  |  |  |         #   Selector specifying which fields to include in a partial response. | 
					
						
							|  |  |  |  |         # @param [String] quota_user | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         #   Available to use for quota purposes for server-side applications. Can be any | 
					
						
							|  |  |  |  |         #   arbitrary string assigned to a user, but should not exceed 40 characters. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::RequestOptions] options | 
					
						
							|  |  |  |  |         #   Request-specific options | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @yield [result, err] Result & error if block supplied | 
					
						
							|  |  |  |  |         # @yieldparam result [Google::Apis::YoutubePartnerV1::Asset] parsed result object | 
					
						
							|  |  |  |  |         # @yieldparam err [StandardError] error object if request failed | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @return [Google::Apis::YoutubePartnerV1::Asset] | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::AuthorizationError] Authorization is required | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         def get_asset(asset_id, fetch_match_policy: nil, fetch_metadata: nil, fetch_ownership: nil, fetch_ownership_conflicts: nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block) | 
					
						
							|  |  |  |  |           command = make_simple_command(:get, 'youtube/partner/v1/assets/{assetId}', options) | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |           command.response_representation = Google::Apis::YoutubePartnerV1::Asset::Representation | 
					
						
							|  |  |  |  |           command.response_class = Google::Apis::YoutubePartnerV1::Asset | 
					
						
							|  |  |  |  |           command.params['assetId'] = asset_id unless asset_id.nil? | 
					
						
							|  |  |  |  |           command.query['fetchMatchPolicy'] = fetch_match_policy unless fetch_match_policy.nil? | 
					
						
							|  |  |  |  |           command.query['fetchMetadata'] = fetch_metadata unless fetch_metadata.nil? | 
					
						
							|  |  |  |  |           command.query['fetchOwnership'] = fetch_ownership unless fetch_ownership.nil? | 
					
						
							|  |  |  |  |           command.query['fetchOwnershipConflicts'] = fetch_ownership_conflicts unless fetch_ownership_conflicts.nil? | 
					
						
							|  |  |  |  |           command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? | 
					
						
							|  |  |  |  |           command.query['fields'] = fields unless fields.nil? | 
					
						
							|  |  |  |  |           command.query['quotaUser'] = quota_user unless quota_user.nil? | 
					
						
							|  |  |  |  |           execute_or_queue_command(command, &block) | 
					
						
							|  |  |  |  |         end | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         # Inserts an asset with the specified metadata. After inserting an asset, you | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         # can set its ownership data and match policy. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::YoutubePartnerV1::Asset] asset_object | 
					
						
							|  |  |  |  |         # @param [String] on_behalf_of_content_owner | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *onBehalfOfContentOwner* parameter identifies the content owner that the | 
					
						
							|  |  |  |  |         #   user is acting on behalf of. This parameter supports users whose accounts are | 
					
						
							|  |  |  |  |         #   associated with multiple content owners. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] fields | 
					
						
							|  |  |  |  |         #   Selector specifying which fields to include in a partial response. | 
					
						
							|  |  |  |  |         # @param [String] quota_user | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         #   Available to use for quota purposes for server-side applications. Can be any | 
					
						
							|  |  |  |  |         #   arbitrary string assigned to a user, but should not exceed 40 characters. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::RequestOptions] options | 
					
						
							|  |  |  |  |         #   Request-specific options | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @yield [result, err] Result & error if block supplied | 
					
						
							|  |  |  |  |         # @yieldparam result [Google::Apis::YoutubePartnerV1::Asset] parsed result object | 
					
						
							|  |  |  |  |         # @yieldparam err [StandardError] error object if request failed | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @return [Google::Apis::YoutubePartnerV1::Asset] | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::AuthorizationError] Authorization is required | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         def insert_asset(asset_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block) | 
					
						
							|  |  |  |  |           command = make_simple_command(:post, 'youtube/partner/v1/assets', options) | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |           command.request_representation = Google::Apis::YoutubePartnerV1::Asset::Representation | 
					
						
							|  |  |  |  |           command.request_object = asset_object | 
					
						
							|  |  |  |  |           command.response_representation = Google::Apis::YoutubePartnerV1::Asset::Representation | 
					
						
							|  |  |  |  |           command.response_class = Google::Apis::YoutubePartnerV1::Asset | 
					
						
							|  |  |  |  |           command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? | 
					
						
							|  |  |  |  |           command.query['fields'] = fields unless fields.nil? | 
					
						
							|  |  |  |  |           command.query['quotaUser'] = quota_user unless quota_user.nil? | 
					
						
							|  |  |  |  |           execute_or_queue_command(command, &block) | 
					
						
							|  |  |  |  |         end | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         # Retrieves a list of assets based on asset metadata. The method can retrieve | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         # all assets or only assets owned by the content owner. Note that in cases where | 
					
						
							|  |  |  |  |         # duplicate assets have been merged, the API response only contains the | 
					
						
							|  |  |  |  |         # synthesized asset. (It does not contain the constituent assets that were | 
					
						
							|  |  |  |  |         # merged into the synthesized asset.) | 
					
						
							| 
									
										
										
										
											2020-07-28 00:38:09 +00:00
										 |  |  |  |         # @param [String] id | 
					
						
							|  |  |  |  |         #   The *id* parameter specifies a comma-separated list of YouTube Asset IDs that | 
					
						
							|  |  |  |  |         #   identify the assets you want to retrieve. As noted in the method description, | 
					
						
							|  |  |  |  |         #   if you try to retrieve an asset that YouTube identified as a duplicate and | 
					
						
							|  |  |  |  |         #   merged with another asset, the API response only returns the synthesized asset. | 
					
						
							|  |  |  |  |         #   In that case, the aliasId property in the asset resource specifies a list of | 
					
						
							|  |  |  |  |         #   other asset IDs that can be used to identify that asset. Also note that the | 
					
						
							|  |  |  |  |         #   API response does not contain duplicates. As such, if your request identifies | 
					
						
							|  |  |  |  |         #   three asset IDs, and all of those have been merged into a single asset, then | 
					
						
							|  |  |  |  |         #   the API response identifies one matching asset. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] fetch_match_policy | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *fetchMatchPolicy* parameter specifies the version of the asset's match | 
					
						
							|  |  |  |  |         #   policy that should be returned in the API response. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] fetch_metadata | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *fetchMetadata* parameter specifies the version of the asset's metadata | 
					
						
							|  |  |  |  |         #   that should be returned in the API response. In some cases, YouTube receives | 
					
						
							|  |  |  |  |         #   metadata for an asset from multiple sources, such as when different partners | 
					
						
							|  |  |  |  |         #   own the asset in different territories. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] fetch_ownership | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *fetchOwnership* parameter specifies the version of the asset's ownership | 
					
						
							|  |  |  |  |         #   data that should be returned in the API response. As with asset metadata, | 
					
						
							|  |  |  |  |         #   YouTube can receive asset ownership data from multiple sources. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Boolean] fetch_ownership_conflicts | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *fetchOwnershipConflicts* parameter allows you to retrieve information | 
					
						
							|  |  |  |  |         #   about ownership conflicts. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] on_behalf_of_content_owner | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *onBehalfOfContentOwner* parameter identifies the content owner that the | 
					
						
							|  |  |  |  |         #   user is acting on behalf of. This parameter supports users whose accounts are | 
					
						
							|  |  |  |  |         #   associated with multiple content owners. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] fields | 
					
						
							|  |  |  |  |         #   Selector specifying which fields to include in a partial response. | 
					
						
							|  |  |  |  |         # @param [String] quota_user | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         #   Available to use for quota purposes for server-side applications. Can be any | 
					
						
							|  |  |  |  |         #   arbitrary string assigned to a user, but should not exceed 40 characters. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::RequestOptions] options | 
					
						
							|  |  |  |  |         #   Request-specific options | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @yield [result, err] Result & error if block supplied | 
					
						
							|  |  |  |  |         # @yieldparam result [Google::Apis::YoutubePartnerV1::AssetListResponse] parsed result object | 
					
						
							|  |  |  |  |         # @yieldparam err [StandardError] error object if request failed | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @return [Google::Apis::YoutubePartnerV1::AssetListResponse] | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::AuthorizationError] Authorization is required | 
					
						
							| 
									
										
										
										
											2020-07-28 00:38:09 +00:00
										 |  |  |  |         def list_assets(id, fetch_match_policy: nil, fetch_metadata: nil, fetch_ownership: nil, fetch_ownership_conflicts: nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block) | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |           command = make_simple_command(:get, 'youtube/partner/v1/assets', options) | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |           command.response_representation = Google::Apis::YoutubePartnerV1::AssetListResponse::Representation | 
					
						
							|  |  |  |  |           command.response_class = Google::Apis::YoutubePartnerV1::AssetListResponse | 
					
						
							|  |  |  |  |           command.query['fetchMatchPolicy'] = fetch_match_policy unless fetch_match_policy.nil? | 
					
						
							|  |  |  |  |           command.query['fetchMetadata'] = fetch_metadata unless fetch_metadata.nil? | 
					
						
							|  |  |  |  |           command.query['fetchOwnership'] = fetch_ownership unless fetch_ownership.nil? | 
					
						
							|  |  |  |  |           command.query['fetchOwnershipConflicts'] = fetch_ownership_conflicts unless fetch_ownership_conflicts.nil? | 
					
						
							|  |  |  |  |           command.query['id'] = id unless id.nil? | 
					
						
							|  |  |  |  |           command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? | 
					
						
							|  |  |  |  |           command.query['fields'] = fields unless fields.nil? | 
					
						
							|  |  |  |  |           command.query['quotaUser'] = quota_user unless quota_user.nil? | 
					
						
							|  |  |  |  |           execute_or_queue_command(command, &block) | 
					
						
							|  |  |  |  |         end | 
					
						
							|  |  |  |  |          | 
					
						
							| 
									
										
										
										
											2019-08-06 00:38:19 +00:00
										 |  |  |  |         # Patches the metadata for the specified asset. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] asset_id | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *assetId* parameter specifies the YouTube asset ID of the asset being | 
					
						
							|  |  |  |  |         #   patched. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::YoutubePartnerV1::Asset] asset_object | 
					
						
							|  |  |  |  |         # @param [String] on_behalf_of_content_owner | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *onBehalfOfContentOwner* parameter identifies the content owner that the | 
					
						
							|  |  |  |  |         #   user is acting on behalf of. This parameter supports users whose accounts are | 
					
						
							|  |  |  |  |         #   associated with multiple content owners. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] fields | 
					
						
							|  |  |  |  |         #   Selector specifying which fields to include in a partial response. | 
					
						
							|  |  |  |  |         # @param [String] quota_user | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         #   Available to use for quota purposes for server-side applications. Can be any | 
					
						
							|  |  |  |  |         #   arbitrary string assigned to a user, but should not exceed 40 characters. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::RequestOptions] options | 
					
						
							|  |  |  |  |         #   Request-specific options | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @yield [result, err] Result & error if block supplied | 
					
						
							|  |  |  |  |         # @yieldparam result [Google::Apis::YoutubePartnerV1::Asset] parsed result object | 
					
						
							|  |  |  |  |         # @yieldparam err [StandardError] error object if request failed | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @return [Google::Apis::YoutubePartnerV1::Asset] | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::AuthorizationError] Authorization is required | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         def patch_asset(asset_id, asset_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block) | 
					
						
							|  |  |  |  |           command = make_simple_command(:patch, 'youtube/partner/v1/assets/{assetId}', options) | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |           command.request_representation = Google::Apis::YoutubePartnerV1::Asset::Representation | 
					
						
							|  |  |  |  |           command.request_object = asset_object | 
					
						
							|  |  |  |  |           command.response_representation = Google::Apis::YoutubePartnerV1::Asset::Representation | 
					
						
							|  |  |  |  |           command.response_class = Google::Apis::YoutubePartnerV1::Asset | 
					
						
							|  |  |  |  |           command.params['assetId'] = asset_id unless asset_id.nil? | 
					
						
							|  |  |  |  |           command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? | 
					
						
							|  |  |  |  |           command.query['fields'] = fields unless fields.nil? | 
					
						
							|  |  |  |  |           command.query['quotaUser'] = quota_user unless quota_user.nil? | 
					
						
							|  |  |  |  |           execute_or_queue_command(command, &block) | 
					
						
							|  |  |  |  |         end | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         # Updates the metadata for the specified asset. | 
					
						
							|  |  |  |  |         # @param [String] asset_id | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *assetId* parameter specifies the YouTube asset ID of the asset being | 
					
						
							|  |  |  |  |         #   updated. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::YoutubePartnerV1::Asset] asset_object | 
					
						
							|  |  |  |  |         # @param [String] on_behalf_of_content_owner | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *onBehalfOfContentOwner* parameter identifies the content owner that the | 
					
						
							|  |  |  |  |         #   user is acting on behalf of. This parameter supports users whose accounts are | 
					
						
							|  |  |  |  |         #   associated with multiple content owners. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] fields | 
					
						
							|  |  |  |  |         #   Selector specifying which fields to include in a partial response. | 
					
						
							|  |  |  |  |         # @param [String] quota_user | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         #   Available to use for quota purposes for server-side applications. Can be any | 
					
						
							|  |  |  |  |         #   arbitrary string assigned to a user, but should not exceed 40 characters. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::RequestOptions] options | 
					
						
							|  |  |  |  |         #   Request-specific options | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @yield [result, err] Result & error if block supplied | 
					
						
							|  |  |  |  |         # @yieldparam result [Google::Apis::YoutubePartnerV1::Asset] parsed result object | 
					
						
							|  |  |  |  |         # @yieldparam err [StandardError] error object if request failed | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @return [Google::Apis::YoutubePartnerV1::Asset] | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::AuthorizationError] Authorization is required | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         def update_asset(asset_id, asset_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block) | 
					
						
							|  |  |  |  |           command = make_simple_command(:put, 'youtube/partner/v1/assets/{assetId}', options) | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |           command.request_representation = Google::Apis::YoutubePartnerV1::Asset::Representation | 
					
						
							|  |  |  |  |           command.request_object = asset_object | 
					
						
							|  |  |  |  |           command.response_representation = Google::Apis::YoutubePartnerV1::Asset::Representation | 
					
						
							|  |  |  |  |           command.response_class = Google::Apis::YoutubePartnerV1::Asset | 
					
						
							|  |  |  |  |           command.params['assetId'] = asset_id unless asset_id.nil? | 
					
						
							|  |  |  |  |           command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? | 
					
						
							|  |  |  |  |           command.query['fields'] = fields unless fields.nil? | 
					
						
							|  |  |  |  |           command.query['quotaUser'] = quota_user unless quota_user.nil? | 
					
						
							|  |  |  |  |           execute_or_queue_command(command, &block) | 
					
						
							|  |  |  |  |         end | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         # Deletes a specified campaign for an owner. | 
					
						
							|  |  |  |  |         # @param [String] campaign_id | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *campaignId* parameter specifies the YouTube campaign ID of the campaign | 
					
						
							|  |  |  |  |         #   being deleted. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] on_behalf_of_content_owner | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *onBehalfOfContentOwner* parameter identifies the content owner that the | 
					
						
							|  |  |  |  |         #   user is acting on behalf of. This parameter supports users whose accounts are | 
					
						
							|  |  |  |  |         #   associated with multiple content owners. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] fields | 
					
						
							|  |  |  |  |         #   Selector specifying which fields to include in a partial response. | 
					
						
							|  |  |  |  |         # @param [String] quota_user | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         #   Available to use for quota purposes for server-side applications. Can be any | 
					
						
							|  |  |  |  |         #   arbitrary string assigned to a user, but should not exceed 40 characters. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::RequestOptions] options | 
					
						
							|  |  |  |  |         #   Request-specific options | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @yield [result, err] Result & error if block supplied | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         # @yieldparam result [Google::Apis::YoutubePartnerV1::Empty] parsed result object | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @yieldparam err [StandardError] error object if request failed | 
					
						
							|  |  |  |  |         # | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         # @return [Google::Apis::YoutubePartnerV1::Empty] | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::AuthorizationError] Authorization is required | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         def delete_campaign(campaign_id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block) | 
					
						
							|  |  |  |  |           command = make_simple_command(:delete, 'youtube/partner/v1/campaigns/{campaignId}', options) | 
					
						
							|  |  |  |  |           command.response_representation = Google::Apis::YoutubePartnerV1::Empty::Representation | 
					
						
							|  |  |  |  |           command.response_class = Google::Apis::YoutubePartnerV1::Empty | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |           command.params['campaignId'] = campaign_id unless campaign_id.nil? | 
					
						
							|  |  |  |  |           command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? | 
					
						
							|  |  |  |  |           command.query['fields'] = fields unless fields.nil? | 
					
						
							|  |  |  |  |           command.query['quotaUser'] = quota_user unless quota_user.nil? | 
					
						
							|  |  |  |  |           execute_or_queue_command(command, &block) | 
					
						
							|  |  |  |  |         end | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         # Retrieves a particular campaign for an owner. | 
					
						
							|  |  |  |  |         # @param [String] campaign_id | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *campaignId* parameter specifies the YouTube campaign ID of the campaign | 
					
						
							|  |  |  |  |         #   being retrieved. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] on_behalf_of_content_owner | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *onBehalfOfContentOwner* parameter identifies the content owner that the | 
					
						
							|  |  |  |  |         #   user is acting on behalf of. This parameter supports users whose accounts are | 
					
						
							|  |  |  |  |         #   associated with multiple content owners. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] fields | 
					
						
							|  |  |  |  |         #   Selector specifying which fields to include in a partial response. | 
					
						
							|  |  |  |  |         # @param [String] quota_user | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         #   Available to use for quota purposes for server-side applications. Can be any | 
					
						
							|  |  |  |  |         #   arbitrary string assigned to a user, but should not exceed 40 characters. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::RequestOptions] options | 
					
						
							|  |  |  |  |         #   Request-specific options | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @yield [result, err] Result & error if block supplied | 
					
						
							|  |  |  |  |         # @yieldparam result [Google::Apis::YoutubePartnerV1::Campaign] parsed result object | 
					
						
							|  |  |  |  |         # @yieldparam err [StandardError] error object if request failed | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @return [Google::Apis::YoutubePartnerV1::Campaign] | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::AuthorizationError] Authorization is required | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         def get_campaign(campaign_id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block) | 
					
						
							|  |  |  |  |           command = make_simple_command(:get, 'youtube/partner/v1/campaigns/{campaignId}', options) | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |           command.response_representation = Google::Apis::YoutubePartnerV1::Campaign::Representation | 
					
						
							|  |  |  |  |           command.response_class = Google::Apis::YoutubePartnerV1::Campaign | 
					
						
							|  |  |  |  |           command.params['campaignId'] = campaign_id unless campaign_id.nil? | 
					
						
							|  |  |  |  |           command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? | 
					
						
							|  |  |  |  |           command.query['fields'] = fields unless fields.nil? | 
					
						
							|  |  |  |  |           command.query['quotaUser'] = quota_user unless quota_user.nil? | 
					
						
							|  |  |  |  |           execute_or_queue_command(command, &block) | 
					
						
							|  |  |  |  |         end | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         # Insert a new campaign for an owner using the specified campaign data. | 
					
						
							|  |  |  |  |         # @param [Google::Apis::YoutubePartnerV1::Campaign] campaign_object | 
					
						
							|  |  |  |  |         # @param [String] on_behalf_of_content_owner | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *onBehalfOfContentOwner* parameter identifies the content owner that the | 
					
						
							|  |  |  |  |         #   user is acting on behalf of. This parameter supports users whose accounts are | 
					
						
							|  |  |  |  |         #   associated with multiple content owners. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] fields | 
					
						
							|  |  |  |  |         #   Selector specifying which fields to include in a partial response. | 
					
						
							|  |  |  |  |         # @param [String] quota_user | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         #   Available to use for quota purposes for server-side applications. Can be any | 
					
						
							|  |  |  |  |         #   arbitrary string assigned to a user, but should not exceed 40 characters. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::RequestOptions] options | 
					
						
							|  |  |  |  |         #   Request-specific options | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @yield [result, err] Result & error if block supplied | 
					
						
							|  |  |  |  |         # @yieldparam result [Google::Apis::YoutubePartnerV1::Campaign] parsed result object | 
					
						
							|  |  |  |  |         # @yieldparam err [StandardError] error object if request failed | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @return [Google::Apis::YoutubePartnerV1::Campaign] | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::AuthorizationError] Authorization is required | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         def insert_campaign(campaign_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block) | 
					
						
							|  |  |  |  |           command = make_simple_command(:post, 'youtube/partner/v1/campaigns', options) | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |           command.request_representation = Google::Apis::YoutubePartnerV1::Campaign::Representation | 
					
						
							|  |  |  |  |           command.request_object = campaign_object | 
					
						
							|  |  |  |  |           command.response_representation = Google::Apis::YoutubePartnerV1::Campaign::Representation | 
					
						
							|  |  |  |  |           command.response_class = Google::Apis::YoutubePartnerV1::Campaign | 
					
						
							|  |  |  |  |           command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? | 
					
						
							|  |  |  |  |           command.query['fields'] = fields unless fields.nil? | 
					
						
							|  |  |  |  |           command.query['quotaUser'] = quota_user unless quota_user.nil? | 
					
						
							|  |  |  |  |           execute_or_queue_command(command, &block) | 
					
						
							|  |  |  |  |         end | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         # Retrieves a list of campaigns for an owner. | 
					
						
							|  |  |  |  |         # @param [String] on_behalf_of_content_owner | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *onBehalfOfContentOwner* parameter identifies the content owner that the | 
					
						
							|  |  |  |  |         #   user is acting on behalf of. This parameter supports users whose accounts are | 
					
						
							|  |  |  |  |         #   associated with multiple content owners. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] page_token | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *pageToken* parameter specifies a token that identifies a particular page | 
					
						
							|  |  |  |  |         #   of results to return. For example, set this parameter to the value of the | 
					
						
							|  |  |  |  |         #   nextPageToken value from the previous API response to retrieve the next page | 
					
						
							|  |  |  |  |         #   of search results. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] fields | 
					
						
							|  |  |  |  |         #   Selector specifying which fields to include in a partial response. | 
					
						
							|  |  |  |  |         # @param [String] quota_user | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         #   Available to use for quota purposes for server-side applications. Can be any | 
					
						
							|  |  |  |  |         #   arbitrary string assigned to a user, but should not exceed 40 characters. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::RequestOptions] options | 
					
						
							|  |  |  |  |         #   Request-specific options | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @yield [result, err] Result & error if block supplied | 
					
						
							|  |  |  |  |         # @yieldparam result [Google::Apis::YoutubePartnerV1::CampaignList] parsed result object | 
					
						
							|  |  |  |  |         # @yieldparam err [StandardError] error object if request failed | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @return [Google::Apis::YoutubePartnerV1::CampaignList] | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::AuthorizationError] Authorization is required | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         def list_campaigns(on_behalf_of_content_owner: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) | 
					
						
							|  |  |  |  |           command = make_simple_command(:get, 'youtube/partner/v1/campaigns', options) | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |           command.response_representation = Google::Apis::YoutubePartnerV1::CampaignList::Representation | 
					
						
							|  |  |  |  |           command.response_class = Google::Apis::YoutubePartnerV1::CampaignList | 
					
						
							|  |  |  |  |           command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? | 
					
						
							|  |  |  |  |           command.query['pageToken'] = page_token unless page_token.nil? | 
					
						
							|  |  |  |  |           command.query['fields'] = fields unless fields.nil? | 
					
						
							|  |  |  |  |           command.query['quotaUser'] = quota_user unless quota_user.nil? | 
					
						
							|  |  |  |  |           execute_or_queue_command(command, &block) | 
					
						
							|  |  |  |  |         end | 
					
						
							|  |  |  |  |          | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         # Patch the data for a specific campaign. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] campaign_id | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *campaignId* parameter specifies the YouTube campaign ID of the campaign | 
					
						
							|  |  |  |  |         #   being retrieved. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::YoutubePartnerV1::Campaign] campaign_object | 
					
						
							|  |  |  |  |         # @param [String] on_behalf_of_content_owner | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *onBehalfOfContentOwner* parameter identifies the content owner that the | 
					
						
							|  |  |  |  |         #   user is acting on behalf of. This parameter supports users whose accounts are | 
					
						
							|  |  |  |  |         #   associated with multiple content owners. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] fields | 
					
						
							|  |  |  |  |         #   Selector specifying which fields to include in a partial response. | 
					
						
							|  |  |  |  |         # @param [String] quota_user | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         #   Available to use for quota purposes for server-side applications. Can be any | 
					
						
							|  |  |  |  |         #   arbitrary string assigned to a user, but should not exceed 40 characters. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::RequestOptions] options | 
					
						
							|  |  |  |  |         #   Request-specific options | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @yield [result, err] Result & error if block supplied | 
					
						
							|  |  |  |  |         # @yieldparam result [Google::Apis::YoutubePartnerV1::Campaign] parsed result object | 
					
						
							|  |  |  |  |         # @yieldparam err [StandardError] error object if request failed | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @return [Google::Apis::YoutubePartnerV1::Campaign] | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::AuthorizationError] Authorization is required | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         def patch_campaign(campaign_id, campaign_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block) | 
					
						
							|  |  |  |  |           command = make_simple_command(:patch, 'youtube/partner/v1/campaigns/{campaignId}', options) | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |           command.request_representation = Google::Apis::YoutubePartnerV1::Campaign::Representation | 
					
						
							|  |  |  |  |           command.request_object = campaign_object | 
					
						
							|  |  |  |  |           command.response_representation = Google::Apis::YoutubePartnerV1::Campaign::Representation | 
					
						
							|  |  |  |  |           command.response_class = Google::Apis::YoutubePartnerV1::Campaign | 
					
						
							|  |  |  |  |           command.params['campaignId'] = campaign_id unless campaign_id.nil? | 
					
						
							|  |  |  |  |           command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? | 
					
						
							|  |  |  |  |           command.query['fields'] = fields unless fields.nil? | 
					
						
							|  |  |  |  |           command.query['quotaUser'] = quota_user unless quota_user.nil? | 
					
						
							|  |  |  |  |           execute_or_queue_command(command, &block) | 
					
						
							|  |  |  |  |         end | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         # Update the data for a specific campaign. | 
					
						
							|  |  |  |  |         # @param [String] campaign_id | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *campaignId* parameter specifies the YouTube campaign ID of the campaign | 
					
						
							|  |  |  |  |         #   being retrieved. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::YoutubePartnerV1::Campaign] campaign_object | 
					
						
							|  |  |  |  |         # @param [String] on_behalf_of_content_owner | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *onBehalfOfContentOwner* parameter identifies the content owner that the | 
					
						
							|  |  |  |  |         #   user is acting on behalf of. This parameter supports users whose accounts are | 
					
						
							|  |  |  |  |         #   associated with multiple content owners. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] fields | 
					
						
							|  |  |  |  |         #   Selector specifying which fields to include in a partial response. | 
					
						
							|  |  |  |  |         # @param [String] quota_user | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         #   Available to use for quota purposes for server-side applications. Can be any | 
					
						
							|  |  |  |  |         #   arbitrary string assigned to a user, but should not exceed 40 characters. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::RequestOptions] options | 
					
						
							|  |  |  |  |         #   Request-specific options | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @yield [result, err] Result & error if block supplied | 
					
						
							|  |  |  |  |         # @yieldparam result [Google::Apis::YoutubePartnerV1::Campaign] parsed result object | 
					
						
							|  |  |  |  |         # @yieldparam err [StandardError] error object if request failed | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @return [Google::Apis::YoutubePartnerV1::Campaign] | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::AuthorizationError] Authorization is required | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         def update_campaign(campaign_id, campaign_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block) | 
					
						
							|  |  |  |  |           command = make_simple_command(:put, 'youtube/partner/v1/campaigns/{campaignId}', options) | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |           command.request_representation = Google::Apis::YoutubePartnerV1::Campaign::Representation | 
					
						
							|  |  |  |  |           command.request_object = campaign_object | 
					
						
							|  |  |  |  |           command.response_representation = Google::Apis::YoutubePartnerV1::Campaign::Representation | 
					
						
							|  |  |  |  |           command.response_class = Google::Apis::YoutubePartnerV1::Campaign | 
					
						
							|  |  |  |  |           command.params['campaignId'] = campaign_id unless campaign_id.nil? | 
					
						
							|  |  |  |  |           command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? | 
					
						
							|  |  |  |  |           command.query['fields'] = fields unless fields.nil? | 
					
						
							|  |  |  |  |           command.query['quotaUser'] = quota_user unless quota_user.nil? | 
					
						
							|  |  |  |  |           execute_or_queue_command(command, &block) | 
					
						
							|  |  |  |  |         end | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         # Retrieves the claim history for a specified claim. | 
					
						
							|  |  |  |  |         # @param [String] claim_id | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *claimId* parameter specifies the YouTube claim ID of the claim for which | 
					
						
							|  |  |  |  |         #   you are retrieving the claim history. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] on_behalf_of_content_owner | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *onBehalfOfContentOwner* parameter identifies the content owner that the | 
					
						
							|  |  |  |  |         #   user is acting on behalf of. This parameter supports users whose accounts are | 
					
						
							|  |  |  |  |         #   associated with multiple content owners. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] fields | 
					
						
							|  |  |  |  |         #   Selector specifying which fields to include in a partial response. | 
					
						
							|  |  |  |  |         # @param [String] quota_user | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         #   Available to use for quota purposes for server-side applications. Can be any | 
					
						
							|  |  |  |  |         #   arbitrary string assigned to a user, but should not exceed 40 characters. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::RequestOptions] options | 
					
						
							|  |  |  |  |         #   Request-specific options | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @yield [result, err] Result & error if block supplied | 
					
						
							|  |  |  |  |         # @yieldparam result [Google::Apis::YoutubePartnerV1::ClaimHistory] parsed result object | 
					
						
							|  |  |  |  |         # @yieldparam err [StandardError] error object if request failed | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @return [Google::Apis::YoutubePartnerV1::ClaimHistory] | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::AuthorizationError] Authorization is required | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         def get_claim_history(claim_id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block) | 
					
						
							|  |  |  |  |           command = make_simple_command(:get, 'youtube/partner/v1/claimHistory/{claimId}', options) | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |           command.response_representation = Google::Apis::YoutubePartnerV1::ClaimHistory::Representation | 
					
						
							|  |  |  |  |           command.response_class = Google::Apis::YoutubePartnerV1::ClaimHistory | 
					
						
							|  |  |  |  |           command.params['claimId'] = claim_id unless claim_id.nil? | 
					
						
							|  |  |  |  |           command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? | 
					
						
							|  |  |  |  |           command.query['fields'] = fields unless fields.nil? | 
					
						
							|  |  |  |  |           command.query['quotaUser'] = quota_user unless quota_user.nil? | 
					
						
							|  |  |  |  |           execute_or_queue_command(command, &block) | 
					
						
							|  |  |  |  |         end | 
					
						
							|  |  |  |  |          | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         # Retrieves a list of claims that match the search criteria. You can search for | 
					
						
							|  |  |  |  |         # claims that are associated with a specific asset or video or that match a | 
					
						
							|  |  |  |  |         # specified query string. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] asset_id | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *assetId* parameter specifies the YouTube asset ID of the asset for which | 
					
						
							|  |  |  |  |         #   you are retrieving claims. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] content_type | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *contentType* parameter specifies the content type of claims that you want | 
					
						
							|  |  |  |  |         #   to retrieve. | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         # @param [String] created_after | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *createdAfter* parameter allows you to restrict the set of returned claims | 
					
						
							|  |  |  |  |         #   to ones created on or after the specified date (inclusive). | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         # @param [String] created_before | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *createdBefore* parameter allows you to restrict the set of returned | 
					
						
							|  |  |  |  |         #   claims to ones created before the specified date (exclusive). | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] inactive_reasons | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *inactiveReasons* parameter allows you to specify what kind of inactive | 
					
						
							|  |  |  |  |         #   claims you want to find based on the reasons why the claims became inactive. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Boolean] include_third_party_claims | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   Used along with the *videoId* parameter this parameter determines whether or | 
					
						
							|  |  |  |  |         #   not to include third party claims in the search results. | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         # @param [String] on_behalf_of_content_owner | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *onBehalfOfContentOwner* parameter identifies the content owner that the | 
					
						
							|  |  |  |  |         #   user is acting on behalf of. This parameter supports users whose accounts are | 
					
						
							|  |  |  |  |         #   associated with multiple content owners. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] origin | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *origin* parameter specifies the origins you want to find claims for. It | 
					
						
							|  |  |  |  |         #   is a comma-separated list of origin values. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] page_token | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *pageToken* parameter specifies a token that identifies a particular page | 
					
						
							|  |  |  |  |         #   of results to return. For example, set this parameter to the value of the | 
					
						
							|  |  |  |  |         #   nextPageToken value from the previous API response to retrieve the next page | 
					
						
							|  |  |  |  |         #   of search results. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Boolean] partner_uploaded | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *partnerUploaded* parameter specifies whether you want to filter your | 
					
						
							|  |  |  |  |         #   search results to only partner uploaded or non partner uploaded claims. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] q | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *q* parameter specifies the query string to use to filter search results. | 
					
						
							|  |  |  |  |         #   YouTube searches for the query string in the following claim fields: * | 
					
						
							|  |  |  |  |         #   video_title*, *video_keywords*, *user_name*, *isrc*, *iswc*, *grid*, * | 
					
						
							|  |  |  |  |         #   custom_id*, and in the content owner's email address. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] reference_id | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *referenceId* parameter specifies the YouTube reference ID of the | 
					
						
							|  |  |  |  |         #   reference for which you are retrieving claims. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] sort | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *sort* parameter specifies the method that will be used to order resources | 
					
						
							|  |  |  |  |         #   in the API response. The default value is date. However, if the status | 
					
						
							|  |  |  |  |         #   parameter value is either appealed, disputed, pending, potential, or | 
					
						
							|  |  |  |  |         #   routedForReview, then results will be sorted by the time that the claim review | 
					
						
							|  |  |  |  |         #   period expires. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] status | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *status* parameter restricts your results to only claims in the specified | 
					
						
							|  |  |  |  |         #   status. | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         # @param [String] status_modified_after | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *statusModifiedAfter* parameter allows you to restrict the result set to | 
					
						
							|  |  |  |  |         #   only include claims that have had their status modified on or after the | 
					
						
							|  |  |  |  |         #   specified date (inclusive). The date specified must be on or after June 30, | 
					
						
							|  |  |  |  |         #   2016 (2016-06-30). The parameter value's format is YYYY-MM-DD. | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         # @param [String] status_modified_before | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *statusModifiedBefore* parameter allows you to restrict the result set to | 
					
						
							|  |  |  |  |         #   only include claims that have had their status modified before the specified | 
					
						
							|  |  |  |  |         #   date (exclusive). The date specified must be on or after July 1, 2016 (2016-07- | 
					
						
							|  |  |  |  |         #   01). The parameter value's format is YYYY-MM-DD. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] video_id | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *videoId* parameter specifies comma-separated list of YouTube video IDs | 
					
						
							|  |  |  |  |         #   for which you are retrieving claims. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] fields | 
					
						
							|  |  |  |  |         #   Selector specifying which fields to include in a partial response. | 
					
						
							|  |  |  |  |         # @param [String] quota_user | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         #   Available to use for quota purposes for server-side applications. Can be any | 
					
						
							|  |  |  |  |         #   arbitrary string assigned to a user, but should not exceed 40 characters. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::RequestOptions] options | 
					
						
							|  |  |  |  |         #   Request-specific options | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @yield [result, err] Result & error if block supplied | 
					
						
							|  |  |  |  |         # @yieldparam result [Google::Apis::YoutubePartnerV1::ClaimSearchResponse] parsed result object | 
					
						
							|  |  |  |  |         # @yieldparam err [StandardError] error object if request failed | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @return [Google::Apis::YoutubePartnerV1::ClaimSearchResponse] | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::AuthorizationError] Authorization is required | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         def list_claim_searches(asset_id: nil, content_type: nil, created_after: nil, created_before: nil, inactive_reasons: nil, include_third_party_claims: nil, on_behalf_of_content_owner: nil, origin: nil, page_token: nil, partner_uploaded: nil, q: nil, reference_id: nil, sort: nil, status: nil, status_modified_after: nil, status_modified_before: nil, video_id: nil, fields: nil, quota_user: nil, options: nil, &block) | 
					
						
							|  |  |  |  |           command = make_simple_command(:get, 'youtube/partner/v1/claimSearch', options) | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |           command.response_representation = Google::Apis::YoutubePartnerV1::ClaimSearchResponse::Representation | 
					
						
							|  |  |  |  |           command.response_class = Google::Apis::YoutubePartnerV1::ClaimSearchResponse | 
					
						
							|  |  |  |  |           command.query['assetId'] = asset_id unless asset_id.nil? | 
					
						
							|  |  |  |  |           command.query['contentType'] = content_type unless content_type.nil? | 
					
						
							|  |  |  |  |           command.query['createdAfter'] = created_after unless created_after.nil? | 
					
						
							|  |  |  |  |           command.query['createdBefore'] = created_before unless created_before.nil? | 
					
						
							|  |  |  |  |           command.query['inactiveReasons'] = inactive_reasons unless inactive_reasons.nil? | 
					
						
							|  |  |  |  |           command.query['includeThirdPartyClaims'] = include_third_party_claims unless include_third_party_claims.nil? | 
					
						
							|  |  |  |  |           command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? | 
					
						
							|  |  |  |  |           command.query['origin'] = origin unless origin.nil? | 
					
						
							|  |  |  |  |           command.query['pageToken'] = page_token unless page_token.nil? | 
					
						
							|  |  |  |  |           command.query['partnerUploaded'] = partner_uploaded unless partner_uploaded.nil? | 
					
						
							|  |  |  |  |           command.query['q'] = q unless q.nil? | 
					
						
							|  |  |  |  |           command.query['referenceId'] = reference_id unless reference_id.nil? | 
					
						
							|  |  |  |  |           command.query['sort'] = sort unless sort.nil? | 
					
						
							|  |  |  |  |           command.query['status'] = status unless status.nil? | 
					
						
							| 
									
										
										
										
											2016-08-08 20:25:38 +00:00
										 |  |  |  |           command.query['statusModifiedAfter'] = status_modified_after unless status_modified_after.nil? | 
					
						
							|  |  |  |  |           command.query['statusModifiedBefore'] = status_modified_before unless status_modified_before.nil? | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |           command.query['videoId'] = video_id unless video_id.nil? | 
					
						
							|  |  |  |  |           command.query['fields'] = fields unless fields.nil? | 
					
						
							|  |  |  |  |           command.query['quotaUser'] = quota_user unless quota_user.nil? | 
					
						
							|  |  |  |  |           execute_or_queue_command(command, &block) | 
					
						
							|  |  |  |  |         end | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         # Retrieves a specific claim by ID. | 
					
						
							|  |  |  |  |         # @param [String] claim_id | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *claimId* parameter specifies the claim ID of the claim being retrieved. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] on_behalf_of_content_owner | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *onBehalfOfContentOwner* parameter identifies the content owner that the | 
					
						
							|  |  |  |  |         #   user is acting on behalf of. This parameter supports users whose accounts are | 
					
						
							|  |  |  |  |         #   associated with multiple content owners. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] fields | 
					
						
							|  |  |  |  |         #   Selector specifying which fields to include in a partial response. | 
					
						
							|  |  |  |  |         # @param [String] quota_user | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         #   Available to use for quota purposes for server-side applications. Can be any | 
					
						
							|  |  |  |  |         #   arbitrary string assigned to a user, but should not exceed 40 characters. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::RequestOptions] options | 
					
						
							|  |  |  |  |         #   Request-specific options | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @yield [result, err] Result & error if block supplied | 
					
						
							|  |  |  |  |         # @yieldparam result [Google::Apis::YoutubePartnerV1::Claim] parsed result object | 
					
						
							|  |  |  |  |         # @yieldparam err [StandardError] error object if request failed | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @return [Google::Apis::YoutubePartnerV1::Claim] | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::AuthorizationError] Authorization is required | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         def get_claim(claim_id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block) | 
					
						
							|  |  |  |  |           command = make_simple_command(:get, 'youtube/partner/v1/claims/{claimId}', options) | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |           command.response_representation = Google::Apis::YoutubePartnerV1::Claim::Representation | 
					
						
							|  |  |  |  |           command.response_class = Google::Apis::YoutubePartnerV1::Claim | 
					
						
							|  |  |  |  |           command.params['claimId'] = claim_id unless claim_id.nil? | 
					
						
							|  |  |  |  |           command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? | 
					
						
							|  |  |  |  |           command.query['fields'] = fields unless fields.nil? | 
					
						
							|  |  |  |  |           command.query['quotaUser'] = quota_user unless quota_user.nil? | 
					
						
							|  |  |  |  |           execute_or_queue_command(command, &block) | 
					
						
							|  |  |  |  |         end | 
					
						
							|  |  |  |  |          | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         # Creates a claim. The video being claimed must have been uploaded to a channel | 
					
						
							|  |  |  |  |         # associated with the same content owner as the API user sending the request. | 
					
						
							|  |  |  |  |         # You can set the claim's policy in any of the following ways: - Use the claim | 
					
						
							|  |  |  |  |         # resource's policy property to identify a saved policy by its unique ID. - Use | 
					
						
							|  |  |  |  |         # the claim resource's policy property to specify a custom set of rules. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::YoutubePartnerV1::Claim] claim_object | 
					
						
							|  |  |  |  |         # @param [Boolean] is_manual_claim | 
					
						
							|  |  |  |  |         #   restricted | 
					
						
							|  |  |  |  |         # @param [String] on_behalf_of_content_owner | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *onBehalfOfContentOwner* parameter identifies the content owner that the | 
					
						
							|  |  |  |  |         #   user is acting on behalf of. This parameter supports users whose accounts are | 
					
						
							|  |  |  |  |         #   associated with multiple content owners. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] fields | 
					
						
							|  |  |  |  |         #   Selector specifying which fields to include in a partial response. | 
					
						
							|  |  |  |  |         # @param [String] quota_user | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         #   Available to use for quota purposes for server-side applications. Can be any | 
					
						
							|  |  |  |  |         #   arbitrary string assigned to a user, but should not exceed 40 characters. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::RequestOptions] options | 
					
						
							|  |  |  |  |         #   Request-specific options | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @yield [result, err] Result & error if block supplied | 
					
						
							|  |  |  |  |         # @yieldparam result [Google::Apis::YoutubePartnerV1::Claim] parsed result object | 
					
						
							|  |  |  |  |         # @yieldparam err [StandardError] error object if request failed | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @return [Google::Apis::YoutubePartnerV1::Claim] | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::AuthorizationError] Authorization is required | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         def insert_claim(claim_object = nil, is_manual_claim: nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block) | 
					
						
							|  |  |  |  |           command = make_simple_command(:post, 'youtube/partner/v1/claims', options) | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |           command.request_representation = Google::Apis::YoutubePartnerV1::Claim::Representation | 
					
						
							|  |  |  |  |           command.request_object = claim_object | 
					
						
							|  |  |  |  |           command.response_representation = Google::Apis::YoutubePartnerV1::Claim::Representation | 
					
						
							|  |  |  |  |           command.response_class = Google::Apis::YoutubePartnerV1::Claim | 
					
						
							|  |  |  |  |           command.query['isManualClaim'] = is_manual_claim unless is_manual_claim.nil? | 
					
						
							|  |  |  |  |           command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? | 
					
						
							|  |  |  |  |           command.query['fields'] = fields unless fields.nil? | 
					
						
							|  |  |  |  |           command.query['quotaUser'] = quota_user unless quota_user.nil? | 
					
						
							|  |  |  |  |           execute_or_queue_command(command, &block) | 
					
						
							|  |  |  |  |         end | 
					
						
							|  |  |  |  |          | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         # Retrieves a list of claims administered by the content owner associated with | 
					
						
							|  |  |  |  |         # the currently authenticated user. Results are sorted in descending order of | 
					
						
							|  |  |  |  |         # creation time. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] asset_id | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   Use the claimSearch.list method's assetId parameter to search for claim | 
					
						
							|  |  |  |  |         #   snippets by asset ID. You can then retrieve the claim resources for those | 
					
						
							|  |  |  |  |         #   claims by using this method's *id* parameter to specify a comma-separated list | 
					
						
							|  |  |  |  |         #   of claim IDs. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] id | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *id* parameter specifies a list of comma-separated YouTube claim IDs to | 
					
						
							|  |  |  |  |         #   retrieve. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] on_behalf_of_content_owner | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *onBehalfOfContentOwner* parameter identifies the content owner that the | 
					
						
							|  |  |  |  |         #   user is acting on behalf of. This parameter supports users whose accounts are | 
					
						
							|  |  |  |  |         #   associated with multiple content owners. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] page_token | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *pageToken* parameter specifies a token that identifies a particular page | 
					
						
							|  |  |  |  |         #   of results to return. For example, set this parameter to the value of the | 
					
						
							|  |  |  |  |         #   nextPageToken value from the previous API response to retrieve the next page | 
					
						
							|  |  |  |  |         #   of search results. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] q | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   Use the claimSearch.list method's q parameter to search for claim snippets | 
					
						
							|  |  |  |  |         #   that match a particular query string. You can then retrieve the claim | 
					
						
							|  |  |  |  |         #   resources for those claims by using this method's *id* parameter to specify a | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         #   comma-separated list of claim IDs. | 
					
						
							|  |  |  |  |         # @param [String] video_id | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   Use the claimSearch.list method's videoId parameter to search for claim | 
					
						
							|  |  |  |  |         #   snippets by video ID. You can then retrieve the claim resources for those | 
					
						
							|  |  |  |  |         #   claims by using this method's *id* parameter to specify a comma-separated list | 
					
						
							|  |  |  |  |         #   of claim IDs. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] fields | 
					
						
							|  |  |  |  |         #   Selector specifying which fields to include in a partial response. | 
					
						
							|  |  |  |  |         # @param [String] quota_user | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         #   Available to use for quota purposes for server-side applications. Can be any | 
					
						
							|  |  |  |  |         #   arbitrary string assigned to a user, but should not exceed 40 characters. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::RequestOptions] options | 
					
						
							|  |  |  |  |         #   Request-specific options | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @yield [result, err] Result & error if block supplied | 
					
						
							|  |  |  |  |         # @yieldparam result [Google::Apis::YoutubePartnerV1::ClaimListResponse] parsed result object | 
					
						
							|  |  |  |  |         # @yieldparam err [StandardError] error object if request failed | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @return [Google::Apis::YoutubePartnerV1::ClaimListResponse] | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::AuthorizationError] Authorization is required | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         def list_claims(asset_id: nil, id: nil, on_behalf_of_content_owner: nil, page_token: nil, q: nil, video_id: nil, fields: nil, quota_user: nil, options: nil, &block) | 
					
						
							|  |  |  |  |           command = make_simple_command(:get, 'youtube/partner/v1/claims', options) | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |           command.response_representation = Google::Apis::YoutubePartnerV1::ClaimListResponse::Representation | 
					
						
							|  |  |  |  |           command.response_class = Google::Apis::YoutubePartnerV1::ClaimListResponse | 
					
						
							|  |  |  |  |           command.query['assetId'] = asset_id unless asset_id.nil? | 
					
						
							|  |  |  |  |           command.query['id'] = id unless id.nil? | 
					
						
							|  |  |  |  |           command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? | 
					
						
							|  |  |  |  |           command.query['pageToken'] = page_token unless page_token.nil? | 
					
						
							|  |  |  |  |           command.query['q'] = q unless q.nil? | 
					
						
							|  |  |  |  |           command.query['videoId'] = video_id unless video_id.nil? | 
					
						
							|  |  |  |  |           command.query['fields'] = fields unless fields.nil? | 
					
						
							|  |  |  |  |           command.query['quotaUser'] = quota_user unless quota_user.nil? | 
					
						
							|  |  |  |  |           execute_or_queue_command(command, &block) | 
					
						
							|  |  |  |  |         end | 
					
						
							|  |  |  |  |          | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         # Patches an existing claim by either changing its policy or its status. You can | 
					
						
							|  |  |  |  |         # update a claim's status from active to inactive to effectively release the | 
					
						
							|  |  |  |  |         # claim. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] claim_id | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *claimId* parameter specifies the claim ID of the claim being updated. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::YoutubePartnerV1::Claim] claim_object | 
					
						
							|  |  |  |  |         # @param [String] on_behalf_of_content_owner | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *onBehalfOfContentOwner* parameter identifies the content owner that the | 
					
						
							|  |  |  |  |         #   user is acting on behalf of. This parameter supports users whose accounts are | 
					
						
							|  |  |  |  |         #   associated with multiple content owners. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] fields | 
					
						
							|  |  |  |  |         #   Selector specifying which fields to include in a partial response. | 
					
						
							|  |  |  |  |         # @param [String] quota_user | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         #   Available to use for quota purposes for server-side applications. Can be any | 
					
						
							|  |  |  |  |         #   arbitrary string assigned to a user, but should not exceed 40 characters. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::RequestOptions] options | 
					
						
							|  |  |  |  |         #   Request-specific options | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @yield [result, err] Result & error if block supplied | 
					
						
							|  |  |  |  |         # @yieldparam result [Google::Apis::YoutubePartnerV1::Claim] parsed result object | 
					
						
							|  |  |  |  |         # @yieldparam err [StandardError] error object if request failed | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @return [Google::Apis::YoutubePartnerV1::Claim] | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::AuthorizationError] Authorization is required | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         def patch_claim(claim_id, claim_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block) | 
					
						
							|  |  |  |  |           command = make_simple_command(:patch, 'youtube/partner/v1/claims/{claimId}', options) | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |           command.request_representation = Google::Apis::YoutubePartnerV1::Claim::Representation | 
					
						
							|  |  |  |  |           command.request_object = claim_object | 
					
						
							|  |  |  |  |           command.response_representation = Google::Apis::YoutubePartnerV1::Claim::Representation | 
					
						
							|  |  |  |  |           command.response_class = Google::Apis::YoutubePartnerV1::Claim | 
					
						
							|  |  |  |  |           command.params['claimId'] = claim_id unless claim_id.nil? | 
					
						
							|  |  |  |  |           command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? | 
					
						
							|  |  |  |  |           command.query['fields'] = fields unless fields.nil? | 
					
						
							|  |  |  |  |           command.query['quotaUser'] = quota_user unless quota_user.nil? | 
					
						
							|  |  |  |  |           execute_or_queue_command(command, &block) | 
					
						
							|  |  |  |  |         end | 
					
						
							|  |  |  |  |          | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         # Updates an existing claim by either changing its policy or its status. You can | 
					
						
							|  |  |  |  |         # update a claim's status from active to inactive to effectively release the | 
					
						
							|  |  |  |  |         # claim. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] claim_id | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *claimId* parameter specifies the claim ID of the claim being updated. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::YoutubePartnerV1::Claim] claim_object | 
					
						
							|  |  |  |  |         # @param [String] on_behalf_of_content_owner | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *onBehalfOfContentOwner* parameter identifies the content owner that the | 
					
						
							|  |  |  |  |         #   user is acting on behalf of. This parameter supports users whose accounts are | 
					
						
							|  |  |  |  |         #   associated with multiple content owners. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] fields | 
					
						
							|  |  |  |  |         #   Selector specifying which fields to include in a partial response. | 
					
						
							|  |  |  |  |         # @param [String] quota_user | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         #   Available to use for quota purposes for server-side applications. Can be any | 
					
						
							|  |  |  |  |         #   arbitrary string assigned to a user, but should not exceed 40 characters. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::RequestOptions] options | 
					
						
							|  |  |  |  |         #   Request-specific options | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @yield [result, err] Result & error if block supplied | 
					
						
							|  |  |  |  |         # @yieldparam result [Google::Apis::YoutubePartnerV1::Claim] parsed result object | 
					
						
							|  |  |  |  |         # @yieldparam err [StandardError] error object if request failed | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @return [Google::Apis::YoutubePartnerV1::Claim] | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::AuthorizationError] Authorization is required | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         def update_claim(claim_id, claim_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block) | 
					
						
							|  |  |  |  |           command = make_simple_command(:put, 'youtube/partner/v1/claims/{claimId}', options) | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |           command.request_representation = Google::Apis::YoutubePartnerV1::Claim::Representation | 
					
						
							|  |  |  |  |           command.request_object = claim_object | 
					
						
							|  |  |  |  |           command.response_representation = Google::Apis::YoutubePartnerV1::Claim::Representation | 
					
						
							|  |  |  |  |           command.response_class = Google::Apis::YoutubePartnerV1::Claim | 
					
						
							|  |  |  |  |           command.params['claimId'] = claim_id unless claim_id.nil? | 
					
						
							|  |  |  |  |           command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? | 
					
						
							|  |  |  |  |           command.query['fields'] = fields unless fields.nil? | 
					
						
							|  |  |  |  |           command.query['quotaUser'] = quota_user unless quota_user.nil? | 
					
						
							|  |  |  |  |           execute_or_queue_command(command, &block) | 
					
						
							|  |  |  |  |         end | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         # Retrieves information about the specified content owner. | 
					
						
							|  |  |  |  |         # @param [String] content_owner_id | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *contentOwnerId* parameter specifies a value that uniquely identifies the | 
					
						
							|  |  |  |  |         #   content owner. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] on_behalf_of_content_owner | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *onBehalfOfContentOwner* parameter identifies the content owner that the | 
					
						
							|  |  |  |  |         #   user is acting on behalf of. This parameter supports users whose accounts are | 
					
						
							|  |  |  |  |         #   associated with multiple content owners. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] fields | 
					
						
							|  |  |  |  |         #   Selector specifying which fields to include in a partial response. | 
					
						
							|  |  |  |  |         # @param [String] quota_user | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         #   Available to use for quota purposes for server-side applications. Can be any | 
					
						
							|  |  |  |  |         #   arbitrary string assigned to a user, but should not exceed 40 characters. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::RequestOptions] options | 
					
						
							|  |  |  |  |         #   Request-specific options | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @yield [result, err] Result & error if block supplied | 
					
						
							|  |  |  |  |         # @yieldparam result [Google::Apis::YoutubePartnerV1::ContentOwner] parsed result object | 
					
						
							|  |  |  |  |         # @yieldparam err [StandardError] error object if request failed | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @return [Google::Apis::YoutubePartnerV1::ContentOwner] | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::AuthorizationError] Authorization is required | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         def get_content_owner(content_owner_id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block) | 
					
						
							|  |  |  |  |           command = make_simple_command(:get, 'youtube/partner/v1/contentOwners/{contentOwnerId}', options) | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |           command.response_representation = Google::Apis::YoutubePartnerV1::ContentOwner::Representation | 
					
						
							|  |  |  |  |           command.response_class = Google::Apis::YoutubePartnerV1::ContentOwner | 
					
						
							|  |  |  |  |           command.params['contentOwnerId'] = content_owner_id unless content_owner_id.nil? | 
					
						
							|  |  |  |  |           command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? | 
					
						
							|  |  |  |  |           command.query['fields'] = fields unless fields.nil? | 
					
						
							|  |  |  |  |           command.query['quotaUser'] = quota_user unless quota_user.nil? | 
					
						
							|  |  |  |  |           execute_or_queue_command(command, &block) | 
					
						
							|  |  |  |  |         end | 
					
						
							|  |  |  |  |          | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         # Retrieves a list of content owners that match the request criteria. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Boolean] fetch_mine | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *fetchMine* parameter restricts the result set to content owners | 
					
						
							|  |  |  |  |         #   associated with the currently authenticated API user. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] id | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *id* parameter specifies a comma-separated list of YouTube content owner | 
					
						
							|  |  |  |  |         #   IDs to retrieve. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] on_behalf_of_content_owner | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *onBehalfOfContentOwner* parameter identifies the content owner that the | 
					
						
							|  |  |  |  |         #   user is acting on behalf of. This parameter supports users whose accounts are | 
					
						
							|  |  |  |  |         #   associated with multiple content owners. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] fields | 
					
						
							|  |  |  |  |         #   Selector specifying which fields to include in a partial response. | 
					
						
							|  |  |  |  |         # @param [String] quota_user | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         #   Available to use for quota purposes for server-side applications. Can be any | 
					
						
							|  |  |  |  |         #   arbitrary string assigned to a user, but should not exceed 40 characters. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::RequestOptions] options | 
					
						
							|  |  |  |  |         #   Request-specific options | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @yield [result, err] Result & error if block supplied | 
					
						
							|  |  |  |  |         # @yieldparam result [Google::Apis::YoutubePartnerV1::ContentOwnerListResponse] parsed result object | 
					
						
							|  |  |  |  |         # @yieldparam err [StandardError] error object if request failed | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @return [Google::Apis::YoutubePartnerV1::ContentOwnerListResponse] | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::AuthorizationError] Authorization is required | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         def list_content_owners(fetch_mine: nil, id: nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block) | 
					
						
							|  |  |  |  |           command = make_simple_command(:get, 'youtube/partner/v1/contentOwners', options) | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |           command.response_representation = Google::Apis::YoutubePartnerV1::ContentOwnerListResponse::Representation | 
					
						
							|  |  |  |  |           command.response_class = Google::Apis::YoutubePartnerV1::ContentOwnerListResponse | 
					
						
							|  |  |  |  |           command.query['fetchMine'] = fetch_mine unless fetch_mine.nil? | 
					
						
							|  |  |  |  |           command.query['id'] = id unless id.nil? | 
					
						
							|  |  |  |  |           command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? | 
					
						
							|  |  |  |  |           command.query['fields'] = fields unless fields.nil? | 
					
						
							|  |  |  |  |           command.query['quotaUser'] = quota_user unless quota_user.nil? | 
					
						
							|  |  |  |  |           execute_or_queue_command(command, &block) | 
					
						
							|  |  |  |  |         end | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         # Inserts a cuepoint into a live broadcast. | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         # @param [String] channel_id | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *channelId* parameter identifies the channel that owns the broadcast into | 
					
						
							|  |  |  |  |         #   which the cuepoint is being inserted. | 
					
						
							| 
									
										
										
										
											2020-07-28 00:38:09 +00:00
										 |  |  |  |         # @param [Google::Apis::YoutubePartnerV1::LiveCuepoint] live_cuepoint_object | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] on_behalf_of_content_owner | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *onBehalfOfContentOwner* parameter identifies the content owner that the | 
					
						
							|  |  |  |  |         #   user is acting on behalf of. This parameter supports users whose accounts are | 
					
						
							|  |  |  |  |         #   associated with multiple content owners. You can obtain the content owner ID | 
					
						
							|  |  |  |  |         #   that will serve as the parameter value by calling the YouTube Content ID API's | 
					
						
							|  |  |  |  |         #   contentOwners.list method. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] fields | 
					
						
							|  |  |  |  |         #   Selector specifying which fields to include in a partial response. | 
					
						
							|  |  |  |  |         # @param [String] quota_user | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         #   Available to use for quota purposes for server-side applications. Can be any | 
					
						
							|  |  |  |  |         #   arbitrary string assigned to a user, but should not exceed 40 characters. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::RequestOptions] options | 
					
						
							|  |  |  |  |         #   Request-specific options | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @yield [result, err] Result & error if block supplied | 
					
						
							|  |  |  |  |         # @yieldparam result [Google::Apis::YoutubePartnerV1::LiveCuepoint] parsed result object | 
					
						
							|  |  |  |  |         # @yieldparam err [StandardError] error object if request failed | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @return [Google::Apis::YoutubePartnerV1::LiveCuepoint] | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::AuthorizationError] Authorization is required | 
					
						
							| 
									
										
										
										
											2020-07-28 00:38:09 +00:00
										 |  |  |  |         def insert_live_cuepoint(channel_id, live_cuepoint_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block) | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |           command = make_simple_command(:post, 'youtube/partner/v1/liveCuepoints', options) | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |           command.request_representation = Google::Apis::YoutubePartnerV1::LiveCuepoint::Representation | 
					
						
							|  |  |  |  |           command.request_object = live_cuepoint_object | 
					
						
							|  |  |  |  |           command.response_representation = Google::Apis::YoutubePartnerV1::LiveCuepoint::Representation | 
					
						
							|  |  |  |  |           command.response_class = Google::Apis::YoutubePartnerV1::LiveCuepoint | 
					
						
							|  |  |  |  |           command.query['channelId'] = channel_id unless channel_id.nil? | 
					
						
							|  |  |  |  |           command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? | 
					
						
							|  |  |  |  |           command.query['fields'] = fields unless fields.nil? | 
					
						
							|  |  |  |  |           command.query['quotaUser'] = quota_user unless quota_user.nil? | 
					
						
							|  |  |  |  |           execute_or_queue_command(command, &block) | 
					
						
							|  |  |  |  |         end | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         # Retrieves a list of all metadata provided for an asset, regardless of which | 
					
						
							|  |  |  |  |         # content owner provided the data. | 
					
						
							|  |  |  |  |         # @param [String] asset_id | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *assetId* parameter specifies the YouTube asset ID of the asset for which | 
					
						
							|  |  |  |  |         #   you are retrieving a metadata history. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] on_behalf_of_content_owner | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *onBehalfOfContentOwner* parameter identifies the content owner that the | 
					
						
							|  |  |  |  |         #   user is acting on behalf of. This parameter supports users whose accounts are | 
					
						
							|  |  |  |  |         #   associated with multiple content owners. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] fields | 
					
						
							|  |  |  |  |         #   Selector specifying which fields to include in a partial response. | 
					
						
							|  |  |  |  |         # @param [String] quota_user | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         #   Available to use for quota purposes for server-side applications. Can be any | 
					
						
							|  |  |  |  |         #   arbitrary string assigned to a user, but should not exceed 40 characters. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::RequestOptions] options | 
					
						
							|  |  |  |  |         #   Request-specific options | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @yield [result, err] Result & error if block supplied | 
					
						
							|  |  |  |  |         # @yieldparam result [Google::Apis::YoutubePartnerV1::MetadataHistoryListResponse] parsed result object | 
					
						
							|  |  |  |  |         # @yieldparam err [StandardError] error object if request failed | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @return [Google::Apis::YoutubePartnerV1::MetadataHistoryListResponse] | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::AuthorizationError] Authorization is required | 
					
						
							| 
									
										
										
										
											2020-07-28 00:38:09 +00:00
										 |  |  |  |         def list_metadata_histories(asset_id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block) | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |           command = make_simple_command(:get, 'youtube/partner/v1/metadataHistory', options) | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |           command.response_representation = Google::Apis::YoutubePartnerV1::MetadataHistoryListResponse::Representation | 
					
						
							|  |  |  |  |           command.response_class = Google::Apis::YoutubePartnerV1::MetadataHistoryListResponse | 
					
						
							|  |  |  |  |           command.query['assetId'] = asset_id unless asset_id.nil? | 
					
						
							|  |  |  |  |           command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? | 
					
						
							|  |  |  |  |           command.query['fields'] = fields unless fields.nil? | 
					
						
							|  |  |  |  |           command.query['quotaUser'] = quota_user unless quota_user.nil? | 
					
						
							|  |  |  |  |           execute_or_queue_command(command, &block) | 
					
						
							|  |  |  |  |         end | 
					
						
							|  |  |  |  |          | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         # Retrieves the ownership data provided for the specified asset by the content | 
					
						
							|  |  |  |  |         # owner associated with the authenticated user. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] asset_id | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *assetId* parameter specifies the YouTube asset ID for which you are | 
					
						
							|  |  |  |  |         #   retrieving ownership data. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] on_behalf_of_content_owner | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *onBehalfOfContentOwner* parameter identifies the content owner that the | 
					
						
							|  |  |  |  |         #   user is acting on behalf of. This parameter supports users whose accounts are | 
					
						
							|  |  |  |  |         #   associated with multiple content owners. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] fields | 
					
						
							|  |  |  |  |         #   Selector specifying which fields to include in a partial response. | 
					
						
							|  |  |  |  |         # @param [String] quota_user | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         #   Available to use for quota purposes for server-side applications. Can be any | 
					
						
							|  |  |  |  |         #   arbitrary string assigned to a user, but should not exceed 40 characters. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::RequestOptions] options | 
					
						
							|  |  |  |  |         #   Request-specific options | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @yield [result, err] Result & error if block supplied | 
					
						
							|  |  |  |  |         # @yieldparam result [Google::Apis::YoutubePartnerV1::RightsOwnership] parsed result object | 
					
						
							|  |  |  |  |         # @yieldparam err [StandardError] error object if request failed | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @return [Google::Apis::YoutubePartnerV1::RightsOwnership] | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::AuthorizationError] Authorization is required | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         def get_ownership(asset_id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block) | 
					
						
							|  |  |  |  |           command = make_simple_command(:get, 'youtube/partner/v1/assets/{assetId}/ownership', options) | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |           command.response_representation = Google::Apis::YoutubePartnerV1::RightsOwnership::Representation | 
					
						
							|  |  |  |  |           command.response_class = Google::Apis::YoutubePartnerV1::RightsOwnership | 
					
						
							|  |  |  |  |           command.params['assetId'] = asset_id unless asset_id.nil? | 
					
						
							|  |  |  |  |           command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? | 
					
						
							|  |  |  |  |           command.query['fields'] = fields unless fields.nil? | 
					
						
							|  |  |  |  |           command.query['quotaUser'] = quota_user unless quota_user.nil? | 
					
						
							|  |  |  |  |           execute_or_queue_command(command, &block) | 
					
						
							|  |  |  |  |         end | 
					
						
							|  |  |  |  |          | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         # Provides new ownership information for the specified asset. Note that YouTube | 
					
						
							|  |  |  |  |         # may receive ownership information from multiple sources. For example, if an | 
					
						
							|  |  |  |  |         # asset has multiple owners, each owner might send ownership data for the asset. | 
					
						
							|  |  |  |  |         # YouTube algorithmically combines the ownership data received from all of those | 
					
						
							|  |  |  |  |         # sources to generate the asset's canonical ownership data, which should provide | 
					
						
							|  |  |  |  |         # the most comprehensive and accurate representation of the asset's ownership. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] asset_id | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *assetId* parameter specifies the YouTube asset ID of the asset being | 
					
						
							|  |  |  |  |         #   updated. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::YoutubePartnerV1::RightsOwnership] rights_ownership_object | 
					
						
							|  |  |  |  |         # @param [String] on_behalf_of_content_owner | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *onBehalfOfContentOwner* parameter identifies the content owner that the | 
					
						
							|  |  |  |  |         #   user is acting on behalf of. This parameter supports users whose accounts are | 
					
						
							|  |  |  |  |         #   associated with multiple content owners. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] fields | 
					
						
							|  |  |  |  |         #   Selector specifying which fields to include in a partial response. | 
					
						
							|  |  |  |  |         # @param [String] quota_user | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         #   Available to use for quota purposes for server-side applications. Can be any | 
					
						
							|  |  |  |  |         #   arbitrary string assigned to a user, but should not exceed 40 characters. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::RequestOptions] options | 
					
						
							|  |  |  |  |         #   Request-specific options | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @yield [result, err] Result & error if block supplied | 
					
						
							|  |  |  |  |         # @yieldparam result [Google::Apis::YoutubePartnerV1::RightsOwnership] parsed result object | 
					
						
							|  |  |  |  |         # @yieldparam err [StandardError] error object if request failed | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @return [Google::Apis::YoutubePartnerV1::RightsOwnership] | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::AuthorizationError] Authorization is required | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         def patch_ownership(asset_id, rights_ownership_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block) | 
					
						
							|  |  |  |  |           command = make_simple_command(:patch, 'youtube/partner/v1/assets/{assetId}/ownership', options) | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |           command.request_representation = Google::Apis::YoutubePartnerV1::RightsOwnership::Representation | 
					
						
							|  |  |  |  |           command.request_object = rights_ownership_object | 
					
						
							|  |  |  |  |           command.response_representation = Google::Apis::YoutubePartnerV1::RightsOwnership::Representation | 
					
						
							|  |  |  |  |           command.response_class = Google::Apis::YoutubePartnerV1::RightsOwnership | 
					
						
							|  |  |  |  |           command.params['assetId'] = asset_id unless asset_id.nil? | 
					
						
							|  |  |  |  |           command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? | 
					
						
							|  |  |  |  |           command.query['fields'] = fields unless fields.nil? | 
					
						
							|  |  |  |  |           command.query['quotaUser'] = quota_user unless quota_user.nil? | 
					
						
							|  |  |  |  |           execute_or_queue_command(command, &block) | 
					
						
							|  |  |  |  |         end | 
					
						
							|  |  |  |  |          | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         # Provides new ownership information for the specified asset. Note that YouTube | 
					
						
							|  |  |  |  |         # may receive ownership information from multiple sources. For example, if an | 
					
						
							|  |  |  |  |         # asset has multiple owners, each owner might send ownership data for the asset. | 
					
						
							|  |  |  |  |         # YouTube algorithmically combines the ownership data received from all of those | 
					
						
							|  |  |  |  |         # sources to generate the asset's canonical ownership data, which should provide | 
					
						
							|  |  |  |  |         # the most comprehensive and accurate representation of the asset's ownership. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] asset_id | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *assetId* parameter specifies the YouTube asset ID of the asset being | 
					
						
							|  |  |  |  |         #   updated. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::YoutubePartnerV1::RightsOwnership] rights_ownership_object | 
					
						
							|  |  |  |  |         # @param [String] on_behalf_of_content_owner | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *onBehalfOfContentOwner* parameter identifies the content owner that the | 
					
						
							|  |  |  |  |         #   user is acting on behalf of. This parameter supports users whose accounts are | 
					
						
							|  |  |  |  |         #   associated with multiple content owners. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] fields | 
					
						
							|  |  |  |  |         #   Selector specifying which fields to include in a partial response. | 
					
						
							|  |  |  |  |         # @param [String] quota_user | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         #   Available to use for quota purposes for server-side applications. Can be any | 
					
						
							|  |  |  |  |         #   arbitrary string assigned to a user, but should not exceed 40 characters. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::RequestOptions] options | 
					
						
							|  |  |  |  |         #   Request-specific options | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @yield [result, err] Result & error if block supplied | 
					
						
							|  |  |  |  |         # @yieldparam result [Google::Apis::YoutubePartnerV1::RightsOwnership] parsed result object | 
					
						
							|  |  |  |  |         # @yieldparam err [StandardError] error object if request failed | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @return [Google::Apis::YoutubePartnerV1::RightsOwnership] | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::AuthorizationError] Authorization is required | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         def update_ownership(asset_id, rights_ownership_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block) | 
					
						
							|  |  |  |  |           command = make_simple_command(:put, 'youtube/partner/v1/assets/{assetId}/ownership', options) | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |           command.request_representation = Google::Apis::YoutubePartnerV1::RightsOwnership::Representation | 
					
						
							|  |  |  |  |           command.request_object = rights_ownership_object | 
					
						
							|  |  |  |  |           command.response_representation = Google::Apis::YoutubePartnerV1::RightsOwnership::Representation | 
					
						
							|  |  |  |  |           command.response_class = Google::Apis::YoutubePartnerV1::RightsOwnership | 
					
						
							|  |  |  |  |           command.params['assetId'] = asset_id unless asset_id.nil? | 
					
						
							|  |  |  |  |           command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? | 
					
						
							|  |  |  |  |           command.query['fields'] = fields unless fields.nil? | 
					
						
							|  |  |  |  |           command.query['quotaUser'] = quota_user unless quota_user.nil? | 
					
						
							|  |  |  |  |           execute_or_queue_command(command, &block) | 
					
						
							|  |  |  |  |         end | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         # Retrieves a list of the ownership data for an asset, regardless of which | 
					
						
							|  |  |  |  |         # content owner provided the data. The list only includes the most recent | 
					
						
							|  |  |  |  |         # ownership data for each content owner. However, if the content owner has | 
					
						
							|  |  |  |  |         # submitted ownership data through multiple data sources (API, content feeds, | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         # etc.), the list will contain the most recent data for each content owner and | 
					
						
							|  |  |  |  |         # data source. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] asset_id | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *assetId* parameter specifies the YouTube asset ID of the asset for which | 
					
						
							|  |  |  |  |         #   you are retrieving an ownership data history. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] on_behalf_of_content_owner | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *onBehalfOfContentOwner* parameter identifies the content owner that the | 
					
						
							|  |  |  |  |         #   user is acting on behalf of. This parameter supports users whose accounts are | 
					
						
							|  |  |  |  |         #   associated with multiple content owners. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] fields | 
					
						
							|  |  |  |  |         #   Selector specifying which fields to include in a partial response. | 
					
						
							|  |  |  |  |         # @param [String] quota_user | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         #   Available to use for quota purposes for server-side applications. Can be any | 
					
						
							|  |  |  |  |         #   arbitrary string assigned to a user, but should not exceed 40 characters. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::RequestOptions] options | 
					
						
							|  |  |  |  |         #   Request-specific options | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @yield [result, err] Result & error if block supplied | 
					
						
							|  |  |  |  |         # @yieldparam result [Google::Apis::YoutubePartnerV1::OwnershipHistoryListResponse] parsed result object | 
					
						
							|  |  |  |  |         # @yieldparam err [StandardError] error object if request failed | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @return [Google::Apis::YoutubePartnerV1::OwnershipHistoryListResponse] | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::AuthorizationError] Authorization is required | 
					
						
							| 
									
										
										
										
											2020-07-28 00:38:09 +00:00
										 |  |  |  |         def list_ownership_histories(asset_id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block) | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |           command = make_simple_command(:get, 'youtube/partner/v1/ownershipHistory', options) | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |           command.response_representation = Google::Apis::YoutubePartnerV1::OwnershipHistoryListResponse::Representation | 
					
						
							|  |  |  |  |           command.response_class = Google::Apis::YoutubePartnerV1::OwnershipHistoryListResponse | 
					
						
							|  |  |  |  |           command.query['assetId'] = asset_id unless asset_id.nil? | 
					
						
							|  |  |  |  |           command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? | 
					
						
							|  |  |  |  |           command.query['fields'] = fields unless fields.nil? | 
					
						
							|  |  |  |  |           command.query['quotaUser'] = quota_user unless quota_user.nil? | 
					
						
							|  |  |  |  |           execute_or_queue_command(command, &block) | 
					
						
							|  |  |  |  |         end | 
					
						
							|  |  |  |  |          | 
					
						
							| 
									
										
										
										
											2017-03-30 22:30:51 +00:00
										 |  |  |  |         # Retrieves information for the specified package. | 
					
						
							|  |  |  |  |         # @param [String] package_id | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *packageId* parameter specifies the Content Delivery package ID of the | 
					
						
							|  |  |  |  |         #   package being retrieved. | 
					
						
							| 
									
										
										
										
											2017-03-30 22:30:51 +00:00
										 |  |  |  |         # @param [String] on_behalf_of_content_owner | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *onBehalfOfContentOwner* parameter identifies the content owner that the | 
					
						
							|  |  |  |  |         #   user is acting on behalf of. This parameter supports users whose accounts are | 
					
						
							|  |  |  |  |         #   associated with multiple content owners. | 
					
						
							| 
									
										
										
										
											2017-03-30 22:30:51 +00:00
										 |  |  |  |         # @param [String] fields | 
					
						
							|  |  |  |  |         #   Selector specifying which fields to include in a partial response. | 
					
						
							|  |  |  |  |         # @param [String] quota_user | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         #   Available to use for quota purposes for server-side applications. Can be any | 
					
						
							|  |  |  |  |         #   arbitrary string assigned to a user, but should not exceed 40 characters. | 
					
						
							| 
									
										
										
										
											2017-03-30 22:30:51 +00:00
										 |  |  |  |         # @param [Google::Apis::RequestOptions] options | 
					
						
							|  |  |  |  |         #   Request-specific options | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @yield [result, err] Result & error if block supplied | 
					
						
							|  |  |  |  |         # @yieldparam result [Google::Apis::YoutubePartnerV1::Package] parsed result object | 
					
						
							|  |  |  |  |         # @yieldparam err [StandardError] error object if request failed | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @return [Google::Apis::YoutubePartnerV1::Package] | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::AuthorizationError] Authorization is required | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         def get_package(package_id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block) | 
					
						
							|  |  |  |  |           command = make_simple_command(:get, 'youtube/partner/v1/package/{packageId}', options) | 
					
						
							| 
									
										
										
										
											2017-03-30 22:30:51 +00:00
										 |  |  |  |           command.response_representation = Google::Apis::YoutubePartnerV1::Package::Representation | 
					
						
							|  |  |  |  |           command.response_class = Google::Apis::YoutubePartnerV1::Package | 
					
						
							|  |  |  |  |           command.params['packageId'] = package_id unless package_id.nil? | 
					
						
							|  |  |  |  |           command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? | 
					
						
							|  |  |  |  |           command.query['fields'] = fields unless fields.nil? | 
					
						
							|  |  |  |  |           command.query['quotaUser'] = quota_user unless quota_user.nil? | 
					
						
							|  |  |  |  |           execute_or_queue_command(command, &block) | 
					
						
							|  |  |  |  |         end | 
					
						
							|  |  |  |  |          | 
					
						
							| 
									
										
										
										
											2017-03-27 22:14:47 +00:00
										 |  |  |  |         # Inserts a metadata-only package. | 
					
						
							|  |  |  |  |         # @param [Google::Apis::YoutubePartnerV1::Package] package_object | 
					
						
							|  |  |  |  |         # @param [String] on_behalf_of_content_owner | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *onBehalfOfContentOwner* parameter identifies the content owner that the | 
					
						
							|  |  |  |  |         #   user is acting on behalf of. This parameter supports users whose accounts are | 
					
						
							|  |  |  |  |         #   associated with multiple content owners. | 
					
						
							| 
									
										
										
										
											2017-03-27 22:14:47 +00:00
										 |  |  |  |         # @param [String] fields | 
					
						
							|  |  |  |  |         #   Selector specifying which fields to include in a partial response. | 
					
						
							|  |  |  |  |         # @param [String] quota_user | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         #   Available to use for quota purposes for server-side applications. Can be any | 
					
						
							|  |  |  |  |         #   arbitrary string assigned to a user, but should not exceed 40 characters. | 
					
						
							| 
									
										
										
										
											2017-03-27 22:14:47 +00:00
										 |  |  |  |         # @param [Google::Apis::RequestOptions] options | 
					
						
							|  |  |  |  |         #   Request-specific options | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @yield [result, err] Result & error if block supplied | 
					
						
							|  |  |  |  |         # @yieldparam result [Google::Apis::YoutubePartnerV1::PackageInsertResponse] parsed result object | 
					
						
							|  |  |  |  |         # @yieldparam err [StandardError] error object if request failed | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @return [Google::Apis::YoutubePartnerV1::PackageInsertResponse] | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::AuthorizationError] Authorization is required | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         def insert_package(package_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block) | 
					
						
							|  |  |  |  |           command = make_simple_command(:post, 'youtube/partner/v1/package', options) | 
					
						
							| 
									
										
										
										
											2017-03-27 22:14:47 +00:00
										 |  |  |  |           command.request_representation = Google::Apis::YoutubePartnerV1::Package::Representation | 
					
						
							|  |  |  |  |           command.request_object = package_object | 
					
						
							|  |  |  |  |           command.response_representation = Google::Apis::YoutubePartnerV1::PackageInsertResponse::Representation | 
					
						
							|  |  |  |  |           command.response_class = Google::Apis::YoutubePartnerV1::PackageInsertResponse | 
					
						
							|  |  |  |  |           command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? | 
					
						
							|  |  |  |  |           command.query['fields'] = fields unless fields.nil? | 
					
						
							|  |  |  |  |           command.query['quotaUser'] = quota_user unless quota_user.nil? | 
					
						
							|  |  |  |  |           execute_or_queue_command(command, &block) | 
					
						
							|  |  |  |  |         end | 
					
						
							|  |  |  |  |          | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # Retrieves the specified saved policy. | 
					
						
							|  |  |  |  |         # @param [String] policy_id | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *policyId* parameter specifies a value that uniquely identifies the policy | 
					
						
							|  |  |  |  |         #   being retrieved. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] on_behalf_of_content_owner | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *onBehalfOfContentOwner* parameter identifies the content owner that the | 
					
						
							|  |  |  |  |         #   user is acting on behalf of. This parameter supports users whose accounts are | 
					
						
							|  |  |  |  |         #   associated with multiple content owners. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] fields | 
					
						
							|  |  |  |  |         #   Selector specifying which fields to include in a partial response. | 
					
						
							|  |  |  |  |         # @param [String] quota_user | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         #   Available to use for quota purposes for server-side applications. Can be any | 
					
						
							|  |  |  |  |         #   arbitrary string assigned to a user, but should not exceed 40 characters. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::RequestOptions] options | 
					
						
							|  |  |  |  |         #   Request-specific options | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @yield [result, err] Result & error if block supplied | 
					
						
							|  |  |  |  |         # @yieldparam result [Google::Apis::YoutubePartnerV1::Policy] parsed result object | 
					
						
							|  |  |  |  |         # @yieldparam err [StandardError] error object if request failed | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @return [Google::Apis::YoutubePartnerV1::Policy] | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::AuthorizationError] Authorization is required | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         def get_policy(policy_id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block) | 
					
						
							|  |  |  |  |           command = make_simple_command(:get, 'youtube/partner/v1/policies/{policyId}', options) | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |           command.response_representation = Google::Apis::YoutubePartnerV1::Policy::Representation | 
					
						
							|  |  |  |  |           command.response_class = Google::Apis::YoutubePartnerV1::Policy | 
					
						
							|  |  |  |  |           command.params['policyId'] = policy_id unless policy_id.nil? | 
					
						
							|  |  |  |  |           command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? | 
					
						
							|  |  |  |  |           command.query['fields'] = fields unless fields.nil? | 
					
						
							|  |  |  |  |           command.query['quotaUser'] = quota_user unless quota_user.nil? | 
					
						
							|  |  |  |  |           execute_or_queue_command(command, &block) | 
					
						
							|  |  |  |  |         end | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         # Creates a saved policy. | 
					
						
							|  |  |  |  |         # @param [Google::Apis::YoutubePartnerV1::Policy] policy_object | 
					
						
							|  |  |  |  |         # @param [String] on_behalf_of_content_owner | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *onBehalfOfContentOwner* parameter identifies the content owner that the | 
					
						
							|  |  |  |  |         #   user is acting on behalf of. This parameter supports users whose accounts are | 
					
						
							|  |  |  |  |         #   associated with multiple content owners. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] fields | 
					
						
							|  |  |  |  |         #   Selector specifying which fields to include in a partial response. | 
					
						
							|  |  |  |  |         # @param [String] quota_user | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         #   Available to use for quota purposes for server-side applications. Can be any | 
					
						
							|  |  |  |  |         #   arbitrary string assigned to a user, but should not exceed 40 characters. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::RequestOptions] options | 
					
						
							|  |  |  |  |         #   Request-specific options | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @yield [result, err] Result & error if block supplied | 
					
						
							|  |  |  |  |         # @yieldparam result [Google::Apis::YoutubePartnerV1::Policy] parsed result object | 
					
						
							|  |  |  |  |         # @yieldparam err [StandardError] error object if request failed | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @return [Google::Apis::YoutubePartnerV1::Policy] | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::AuthorizationError] Authorization is required | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         def insert_policy(policy_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block) | 
					
						
							|  |  |  |  |           command = make_simple_command(:post, 'youtube/partner/v1/policies', options) | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |           command.request_representation = Google::Apis::YoutubePartnerV1::Policy::Representation | 
					
						
							|  |  |  |  |           command.request_object = policy_object | 
					
						
							|  |  |  |  |           command.response_representation = Google::Apis::YoutubePartnerV1::Policy::Representation | 
					
						
							|  |  |  |  |           command.response_class = Google::Apis::YoutubePartnerV1::Policy | 
					
						
							|  |  |  |  |           command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? | 
					
						
							|  |  |  |  |           command.query['fields'] = fields unless fields.nil? | 
					
						
							|  |  |  |  |           command.query['quotaUser'] = quota_user unless quota_user.nil? | 
					
						
							|  |  |  |  |           execute_or_queue_command(command, &block) | 
					
						
							|  |  |  |  |         end | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         # Retrieves a list of the content owner's saved policies. | 
					
						
							|  |  |  |  |         # @param [String] id | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *id* parameter specifies a comma-separated list of saved policy IDs to | 
					
						
							|  |  |  |  |         #   retrieve. Only policies belonging to the currently authenticated content owner | 
					
						
							|  |  |  |  |         #   will be available. | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         # @param [String] on_behalf_of_content_owner | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *onBehalfOfContentOwner* parameter identifies the content owner that the | 
					
						
							|  |  |  |  |         #   user is acting on behalf of. This parameter supports users whose accounts are | 
					
						
							|  |  |  |  |         #   associated with multiple content owners. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] sort | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *sort* parameter specifies how the search results should be sorted. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] fields | 
					
						
							|  |  |  |  |         #   Selector specifying which fields to include in a partial response. | 
					
						
							|  |  |  |  |         # @param [String] quota_user | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         #   Available to use for quota purposes for server-side applications. Can be any | 
					
						
							|  |  |  |  |         #   arbitrary string assigned to a user, but should not exceed 40 characters. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::RequestOptions] options | 
					
						
							|  |  |  |  |         #   Request-specific options | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @yield [result, err] Result & error if block supplied | 
					
						
							|  |  |  |  |         # @yieldparam result [Google::Apis::YoutubePartnerV1::PolicyList] parsed result object | 
					
						
							|  |  |  |  |         # @yieldparam err [StandardError] error object if request failed | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @return [Google::Apis::YoutubePartnerV1::PolicyList] | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::AuthorizationError] Authorization is required | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         def list_policies(id: nil, on_behalf_of_content_owner: nil, sort: nil, fields: nil, quota_user: nil, options: nil, &block) | 
					
						
							|  |  |  |  |           command = make_simple_command(:get, 'youtube/partner/v1/policies', options) | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |           command.response_representation = Google::Apis::YoutubePartnerV1::PolicyList::Representation | 
					
						
							|  |  |  |  |           command.response_class = Google::Apis::YoutubePartnerV1::PolicyList | 
					
						
							|  |  |  |  |           command.query['id'] = id unless id.nil? | 
					
						
							|  |  |  |  |           command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? | 
					
						
							|  |  |  |  |           command.query['sort'] = sort unless sort.nil? | 
					
						
							|  |  |  |  |           command.query['fields'] = fields unless fields.nil? | 
					
						
							|  |  |  |  |           command.query['quotaUser'] = quota_user unless quota_user.nil? | 
					
						
							|  |  |  |  |           execute_or_queue_command(command, &block) | 
					
						
							|  |  |  |  |         end | 
					
						
							|  |  |  |  |          | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         # Patches the specified saved policy. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] policy_id | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *policyId* parameter specifies a value that uniquely identifies the policy | 
					
						
							|  |  |  |  |         #   being updated. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::YoutubePartnerV1::Policy] policy_object | 
					
						
							|  |  |  |  |         # @param [String] on_behalf_of_content_owner | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *onBehalfOfContentOwner* parameter identifies the content owner that the | 
					
						
							|  |  |  |  |         #   user is acting on behalf of. This parameter supports users whose accounts are | 
					
						
							|  |  |  |  |         #   associated with multiple content owners. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] fields | 
					
						
							|  |  |  |  |         #   Selector specifying which fields to include in a partial response. | 
					
						
							|  |  |  |  |         # @param [String] quota_user | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         #   Available to use for quota purposes for server-side applications. Can be any | 
					
						
							|  |  |  |  |         #   arbitrary string assigned to a user, but should not exceed 40 characters. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::RequestOptions] options | 
					
						
							|  |  |  |  |         #   Request-specific options | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @yield [result, err] Result & error if block supplied | 
					
						
							|  |  |  |  |         # @yieldparam result [Google::Apis::YoutubePartnerV1::Policy] parsed result object | 
					
						
							|  |  |  |  |         # @yieldparam err [StandardError] error object if request failed | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @return [Google::Apis::YoutubePartnerV1::Policy] | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::AuthorizationError] Authorization is required | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         def patch_policy(policy_id, policy_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block) | 
					
						
							|  |  |  |  |           command = make_simple_command(:patch, 'youtube/partner/v1/policies/{policyId}', options) | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |           command.request_representation = Google::Apis::YoutubePartnerV1::Policy::Representation | 
					
						
							|  |  |  |  |           command.request_object = policy_object | 
					
						
							|  |  |  |  |           command.response_representation = Google::Apis::YoutubePartnerV1::Policy::Representation | 
					
						
							|  |  |  |  |           command.response_class = Google::Apis::YoutubePartnerV1::Policy | 
					
						
							|  |  |  |  |           command.params['policyId'] = policy_id unless policy_id.nil? | 
					
						
							|  |  |  |  |           command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? | 
					
						
							|  |  |  |  |           command.query['fields'] = fields unless fields.nil? | 
					
						
							|  |  |  |  |           command.query['quotaUser'] = quota_user unless quota_user.nil? | 
					
						
							|  |  |  |  |           execute_or_queue_command(command, &block) | 
					
						
							|  |  |  |  |         end | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         # Updates the specified saved policy. | 
					
						
							|  |  |  |  |         # @param [String] policy_id | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *policyId* parameter specifies a value that uniquely identifies the policy | 
					
						
							|  |  |  |  |         #   being updated. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::YoutubePartnerV1::Policy] policy_object | 
					
						
							|  |  |  |  |         # @param [String] on_behalf_of_content_owner | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *onBehalfOfContentOwner* parameter identifies the content owner that the | 
					
						
							|  |  |  |  |         #   user is acting on behalf of. This parameter supports users whose accounts are | 
					
						
							|  |  |  |  |         #   associated with multiple content owners. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] fields | 
					
						
							|  |  |  |  |         #   Selector specifying which fields to include in a partial response. | 
					
						
							|  |  |  |  |         # @param [String] quota_user | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         #   Available to use for quota purposes for server-side applications. Can be any | 
					
						
							|  |  |  |  |         #   arbitrary string assigned to a user, but should not exceed 40 characters. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::RequestOptions] options | 
					
						
							|  |  |  |  |         #   Request-specific options | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @yield [result, err] Result & error if block supplied | 
					
						
							|  |  |  |  |         # @yieldparam result [Google::Apis::YoutubePartnerV1::Policy] parsed result object | 
					
						
							|  |  |  |  |         # @yieldparam err [StandardError] error object if request failed | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @return [Google::Apis::YoutubePartnerV1::Policy] | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::AuthorizationError] Authorization is required | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         def update_policy(policy_id, policy_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block) | 
					
						
							|  |  |  |  |           command = make_simple_command(:put, 'youtube/partner/v1/policies/{policyId}', options) | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |           command.request_representation = Google::Apis::YoutubePartnerV1::Policy::Representation | 
					
						
							|  |  |  |  |           command.request_object = policy_object | 
					
						
							|  |  |  |  |           command.response_representation = Google::Apis::YoutubePartnerV1::Policy::Representation | 
					
						
							|  |  |  |  |           command.response_class = Google::Apis::YoutubePartnerV1::Policy | 
					
						
							|  |  |  |  |           command.params['policyId'] = policy_id unless policy_id.nil? | 
					
						
							|  |  |  |  |           command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? | 
					
						
							|  |  |  |  |           command.query['fields'] = fields unless fields.nil? | 
					
						
							|  |  |  |  |           command.query['quotaUser'] = quota_user unless quota_user.nil? | 
					
						
							|  |  |  |  |           execute_or_queue_command(command, &block) | 
					
						
							|  |  |  |  |         end | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         # Retrieves information about the specified reference conflict. | 
					
						
							|  |  |  |  |         # @param [String] reference_conflict_id | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *referenceConflictId* parameter specifies the YouTube reference conflict | 
					
						
							|  |  |  |  |         #   ID of the reference conflict being retrieved. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] on_behalf_of_content_owner | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *onBehalfOfContentOwner* parameter identifies the content owner that the | 
					
						
							|  |  |  |  |         #   user is acting on behalf of. This parameter supports users whose accounts are | 
					
						
							|  |  |  |  |         #   associated with multiple content owners. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] fields | 
					
						
							|  |  |  |  |         #   Selector specifying which fields to include in a partial response. | 
					
						
							|  |  |  |  |         # @param [String] quota_user | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         #   Available to use for quota purposes for server-side applications. Can be any | 
					
						
							|  |  |  |  |         #   arbitrary string assigned to a user, but should not exceed 40 characters. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::RequestOptions] options | 
					
						
							|  |  |  |  |         #   Request-specific options | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @yield [result, err] Result & error if block supplied | 
					
						
							|  |  |  |  |         # @yieldparam result [Google::Apis::YoutubePartnerV1::ReferenceConflict] parsed result object | 
					
						
							|  |  |  |  |         # @yieldparam err [StandardError] error object if request failed | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @return [Google::Apis::YoutubePartnerV1::ReferenceConflict] | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::AuthorizationError] Authorization is required | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         def get_reference_conflict(reference_conflict_id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block) | 
					
						
							|  |  |  |  |           command = make_simple_command(:get, 'youtube/partner/v1/referenceConflicts/{referenceConflictId}', options) | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |           command.response_representation = Google::Apis::YoutubePartnerV1::ReferenceConflict::Representation | 
					
						
							|  |  |  |  |           command.response_class = Google::Apis::YoutubePartnerV1::ReferenceConflict | 
					
						
							|  |  |  |  |           command.params['referenceConflictId'] = reference_conflict_id unless reference_conflict_id.nil? | 
					
						
							|  |  |  |  |           command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? | 
					
						
							|  |  |  |  |           command.query['fields'] = fields unless fields.nil? | 
					
						
							|  |  |  |  |           command.query['quotaUser'] = quota_user unless quota_user.nil? | 
					
						
							|  |  |  |  |           execute_or_queue_command(command, &block) | 
					
						
							|  |  |  |  |         end | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         # Retrieves a list of unresolved reference conflicts. | 
					
						
							|  |  |  |  |         # @param [String] on_behalf_of_content_owner | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *onBehalfOfContentOwner* parameter identifies the content owner that the | 
					
						
							|  |  |  |  |         #   user is acting on behalf of. This parameter supports users whose accounts are | 
					
						
							|  |  |  |  |         #   associated with multiple content owners. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] page_token | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *pageToken* parameter specifies a token that identifies a particular page | 
					
						
							|  |  |  |  |         #   of results to return. Set this parameter to the value of the nextPageToken | 
					
						
							|  |  |  |  |         #   value from the previous API response to retrieve the next page of search | 
					
						
							|  |  |  |  |         #   results. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] fields | 
					
						
							|  |  |  |  |         #   Selector specifying which fields to include in a partial response. | 
					
						
							|  |  |  |  |         # @param [String] quota_user | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         #   Available to use for quota purposes for server-side applications. Can be any | 
					
						
							|  |  |  |  |         #   arbitrary string assigned to a user, but should not exceed 40 characters. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::RequestOptions] options | 
					
						
							|  |  |  |  |         #   Request-specific options | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @yield [result, err] Result & error if block supplied | 
					
						
							|  |  |  |  |         # @yieldparam result [Google::Apis::YoutubePartnerV1::ReferenceConflictListResponse] parsed result object | 
					
						
							|  |  |  |  |         # @yieldparam err [StandardError] error object if request failed | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @return [Google::Apis::YoutubePartnerV1::ReferenceConflictListResponse] | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::AuthorizationError] Authorization is required | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         def list_reference_conflicts(on_behalf_of_content_owner: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) | 
					
						
							|  |  |  |  |           command = make_simple_command(:get, 'youtube/partner/v1/referenceConflicts', options) | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |           command.response_representation = Google::Apis::YoutubePartnerV1::ReferenceConflictListResponse::Representation | 
					
						
							|  |  |  |  |           command.response_class = Google::Apis::YoutubePartnerV1::ReferenceConflictListResponse | 
					
						
							|  |  |  |  |           command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? | 
					
						
							|  |  |  |  |           command.query['pageToken'] = page_token unless page_token.nil? | 
					
						
							|  |  |  |  |           command.query['fields'] = fields unless fields.nil? | 
					
						
							|  |  |  |  |           command.query['quotaUser'] = quota_user unless quota_user.nil? | 
					
						
							|  |  |  |  |           execute_or_queue_command(command, &block) | 
					
						
							|  |  |  |  |         end | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         # Retrieves information about the specified reference. | 
					
						
							|  |  |  |  |         # @param [String] reference_id | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *referenceId* parameter specifies the YouTube reference ID of the | 
					
						
							|  |  |  |  |         #   reference being retrieved. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] on_behalf_of_content_owner | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *onBehalfOfContentOwner* parameter identifies the content owner that the | 
					
						
							|  |  |  |  |         #   user is acting on behalf of. This parameter supports users whose accounts are | 
					
						
							|  |  |  |  |         #   associated with multiple content owners. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] fields | 
					
						
							|  |  |  |  |         #   Selector specifying which fields to include in a partial response. | 
					
						
							|  |  |  |  |         # @param [String] quota_user | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         #   Available to use for quota purposes for server-side applications. Can be any | 
					
						
							|  |  |  |  |         #   arbitrary string assigned to a user, but should not exceed 40 characters. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::RequestOptions] options | 
					
						
							|  |  |  |  |         #   Request-specific options | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @yield [result, err] Result & error if block supplied | 
					
						
							|  |  |  |  |         # @yieldparam result [Google::Apis::YoutubePartnerV1::Reference] parsed result object | 
					
						
							|  |  |  |  |         # @yieldparam err [StandardError] error object if request failed | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @return [Google::Apis::YoutubePartnerV1::Reference] | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::AuthorizationError] Authorization is required | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         def get_reference(reference_id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block) | 
					
						
							|  |  |  |  |           command = make_simple_command(:get, 'youtube/partner/v1/references/{referenceId}', options) | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |           command.response_representation = Google::Apis::YoutubePartnerV1::Reference::Representation | 
					
						
							|  |  |  |  |           command.response_class = Google::Apis::YoutubePartnerV1::Reference | 
					
						
							|  |  |  |  |           command.params['referenceId'] = reference_id unless reference_id.nil? | 
					
						
							|  |  |  |  |           command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? | 
					
						
							|  |  |  |  |           command.query['fields'] = fields unless fields.nil? | 
					
						
							|  |  |  |  |           command.query['quotaUser'] = quota_user unless quota_user.nil? | 
					
						
							|  |  |  |  |           execute_or_queue_command(command, &block) | 
					
						
							|  |  |  |  |         end | 
					
						
							|  |  |  |  |          | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         # Creates a reference in one of the following ways: - If your request is | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         # uploading a reference file, YouTube creates the reference from the provided | 
					
						
							|  |  |  |  |         # content. You can provide either a video/audio file or a pre-generated | 
					
						
							|  |  |  |  |         # fingerprint. If you are providing a pre-generated fingerprint, set the | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         # reference resource's fpDirect property to true in the request body. In this | 
					
						
							|  |  |  |  |         # flow, you can use either the multipart or resumable upload flows to provide | 
					
						
							|  |  |  |  |         # the reference content. - If you want to create a reference using a claimed | 
					
						
							|  |  |  |  |         # video as the reference content, use the claimId parameter to identify the | 
					
						
							|  |  |  |  |         # claim. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::YoutubePartnerV1::Reference] reference_object | 
					
						
							|  |  |  |  |         # @param [String] claim_id | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *claimId* parameter specifies the YouTube claim ID of an existing claim | 
					
						
							|  |  |  |  |         #   from which a reference should be created. (The claimed video is used as the | 
					
						
							|  |  |  |  |         #   reference content.) | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] on_behalf_of_content_owner | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *onBehalfOfContentOwner* parameter identifies the content owner that the | 
					
						
							|  |  |  |  |         #   user is acting on behalf of. This parameter supports users whose accounts are | 
					
						
							|  |  |  |  |         #   associated with multiple content owners. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] fields | 
					
						
							|  |  |  |  |         #   Selector specifying which fields to include in a partial response. | 
					
						
							|  |  |  |  |         # @param [String] quota_user | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         #   Available to use for quota purposes for server-side applications. Can be any | 
					
						
							|  |  |  |  |         #   arbitrary string assigned to a user, but should not exceed 40 characters. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [IO, String] upload_source | 
					
						
							|  |  |  |  |         #   IO stream or filename containing content to upload | 
					
						
							|  |  |  |  |         # @param [String] content_type | 
					
						
							|  |  |  |  |         #   Content type of the uploaded content. | 
					
						
							|  |  |  |  |         # @param [Google::Apis::RequestOptions] options | 
					
						
							|  |  |  |  |         #   Request-specific options | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @yield [result, err] Result & error if block supplied | 
					
						
							|  |  |  |  |         # @yieldparam result [Google::Apis::YoutubePartnerV1::Reference] parsed result object | 
					
						
							|  |  |  |  |         # @yieldparam err [StandardError] error object if request failed | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @return [Google::Apis::YoutubePartnerV1::Reference] | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::AuthorizationError] Authorization is required | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         def insert_reference(reference_object = nil, claim_id: nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block) | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |           if upload_source.nil? | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |             command = make_simple_command(:post, 'youtube/partner/v1/references', options) | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |           else | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |             command = make_upload_command(:post, 'youtube/partner/v1/references', options) | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |             command.upload_source = upload_source | 
					
						
							|  |  |  |  |             command.upload_content_type = content_type | 
					
						
							|  |  |  |  |           end | 
					
						
							|  |  |  |  |           command.request_representation = Google::Apis::YoutubePartnerV1::Reference::Representation | 
					
						
							|  |  |  |  |           command.request_object = reference_object | 
					
						
							|  |  |  |  |           command.response_representation = Google::Apis::YoutubePartnerV1::Reference::Representation | 
					
						
							|  |  |  |  |           command.response_class = Google::Apis::YoutubePartnerV1::Reference | 
					
						
							|  |  |  |  |           command.query['claimId'] = claim_id unless claim_id.nil? | 
					
						
							|  |  |  |  |           command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? | 
					
						
							|  |  |  |  |           command.query['fields'] = fields unless fields.nil? | 
					
						
							|  |  |  |  |           command.query['quotaUser'] = quota_user unless quota_user.nil? | 
					
						
							|  |  |  |  |           execute_or_queue_command(command, &block) | 
					
						
							|  |  |  |  |         end | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         # Retrieves a list of references by ID or the list of references for the | 
					
						
							|  |  |  |  |         # specified asset. | 
					
						
							|  |  |  |  |         # @param [String] asset_id | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *assetId* parameter specifies the YouTube asset ID of the asset for which | 
					
						
							|  |  |  |  |         #   you are retrieving references. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] id | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *id* parameter specifies a comma-separated list of YouTube reference IDs | 
					
						
							|  |  |  |  |         #   to retrieve. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] on_behalf_of_content_owner | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *onBehalfOfContentOwner* parameter identifies the content owner that the | 
					
						
							|  |  |  |  |         #   user is acting on behalf of. This parameter supports users whose accounts are | 
					
						
							|  |  |  |  |         #   associated with multiple content owners. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] page_token | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *pageToken* parameter specifies a token that identifies a particular page | 
					
						
							|  |  |  |  |         #   of results to return. Set this parameter to the value of the nextPageToken | 
					
						
							|  |  |  |  |         #   value from the previous API response to retrieve the next page of search | 
					
						
							|  |  |  |  |         #   results. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] fields | 
					
						
							|  |  |  |  |         #   Selector specifying which fields to include in a partial response. | 
					
						
							|  |  |  |  |         # @param [String] quota_user | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         #   Available to use for quota purposes for server-side applications. Can be any | 
					
						
							|  |  |  |  |         #   arbitrary string assigned to a user, but should not exceed 40 characters. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::RequestOptions] options | 
					
						
							|  |  |  |  |         #   Request-specific options | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @yield [result, err] Result & error if block supplied | 
					
						
							|  |  |  |  |         # @yieldparam result [Google::Apis::YoutubePartnerV1::ReferenceListResponse] parsed result object | 
					
						
							|  |  |  |  |         # @yieldparam err [StandardError] error object if request failed | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @return [Google::Apis::YoutubePartnerV1::ReferenceListResponse] | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::AuthorizationError] Authorization is required | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         def list_references(asset_id: nil, id: nil, on_behalf_of_content_owner: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) | 
					
						
							|  |  |  |  |           command = make_simple_command(:get, 'youtube/partner/v1/references', options) | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |           command.response_representation = Google::Apis::YoutubePartnerV1::ReferenceListResponse::Representation | 
					
						
							|  |  |  |  |           command.response_class = Google::Apis::YoutubePartnerV1::ReferenceListResponse | 
					
						
							|  |  |  |  |           command.query['assetId'] = asset_id unless asset_id.nil? | 
					
						
							|  |  |  |  |           command.query['id'] = id unless id.nil? | 
					
						
							|  |  |  |  |           command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? | 
					
						
							|  |  |  |  |           command.query['pageToken'] = page_token unless page_token.nil? | 
					
						
							|  |  |  |  |           command.query['fields'] = fields unless fields.nil? | 
					
						
							|  |  |  |  |           command.query['quotaUser'] = quota_user unless quota_user.nil? | 
					
						
							|  |  |  |  |           execute_or_queue_command(command, &block) | 
					
						
							|  |  |  |  |         end | 
					
						
							|  |  |  |  |          | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         # Patches a reference. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] reference_id | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *referenceId* parameter specifies the YouTube reference ID of the | 
					
						
							|  |  |  |  |         #   reference being updated. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::YoutubePartnerV1::Reference] reference_object | 
					
						
							|  |  |  |  |         # @param [String] on_behalf_of_content_owner | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *onBehalfOfContentOwner* parameter identifies the content owner that the | 
					
						
							|  |  |  |  |         #   user is acting on behalf of. This parameter supports users whose accounts are | 
					
						
							|  |  |  |  |         #   associated with multiple content owners. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Boolean] release_claims | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *releaseClaims* parameter indicates that you want to release all match | 
					
						
							|  |  |  |  |         #   claims associated with this reference. This parameter only works when the | 
					
						
							|  |  |  |  |         #   claim's status is being updated to 'inactive' - you can then set the parameter' | 
					
						
							|  |  |  |  |         #   s value to true to release all match claims produced by this reference. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] fields | 
					
						
							|  |  |  |  |         #   Selector specifying which fields to include in a partial response. | 
					
						
							|  |  |  |  |         # @param [String] quota_user | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         #   Available to use for quota purposes for server-side applications. Can be any | 
					
						
							|  |  |  |  |         #   arbitrary string assigned to a user, but should not exceed 40 characters. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::RequestOptions] options | 
					
						
							|  |  |  |  |         #   Request-specific options | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @yield [result, err] Result & error if block supplied | 
					
						
							|  |  |  |  |         # @yieldparam result [Google::Apis::YoutubePartnerV1::Reference] parsed result object | 
					
						
							|  |  |  |  |         # @yieldparam err [StandardError] error object if request failed | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @return [Google::Apis::YoutubePartnerV1::Reference] | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::AuthorizationError] Authorization is required | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         def patch_reference(reference_id, reference_object = nil, on_behalf_of_content_owner: nil, release_claims: nil, fields: nil, quota_user: nil, options: nil, &block) | 
					
						
							|  |  |  |  |           command = make_simple_command(:patch, 'youtube/partner/v1/references/{referenceId}', options) | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |           command.request_representation = Google::Apis::YoutubePartnerV1::Reference::Representation | 
					
						
							|  |  |  |  |           command.request_object = reference_object | 
					
						
							|  |  |  |  |           command.response_representation = Google::Apis::YoutubePartnerV1::Reference::Representation | 
					
						
							|  |  |  |  |           command.response_class = Google::Apis::YoutubePartnerV1::Reference | 
					
						
							|  |  |  |  |           command.params['referenceId'] = reference_id unless reference_id.nil? | 
					
						
							|  |  |  |  |           command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? | 
					
						
							|  |  |  |  |           command.query['releaseClaims'] = release_claims unless release_claims.nil? | 
					
						
							|  |  |  |  |           command.query['fields'] = fields unless fields.nil? | 
					
						
							|  |  |  |  |           command.query['quotaUser'] = quota_user unless quota_user.nil? | 
					
						
							|  |  |  |  |           execute_or_queue_command(command, &block) | 
					
						
							|  |  |  |  |         end | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         # Updates a reference. | 
					
						
							|  |  |  |  |         # @param [String] reference_id | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *referenceId* parameter specifies the YouTube reference ID of the | 
					
						
							|  |  |  |  |         #   reference being updated. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::YoutubePartnerV1::Reference] reference_object | 
					
						
							|  |  |  |  |         # @param [String] on_behalf_of_content_owner | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *onBehalfOfContentOwner* parameter identifies the content owner that the | 
					
						
							|  |  |  |  |         #   user is acting on behalf of. This parameter supports users whose accounts are | 
					
						
							|  |  |  |  |         #   associated with multiple content owners. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Boolean] release_claims | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *releaseClaims* parameter indicates that you want to release all match | 
					
						
							|  |  |  |  |         #   claims associated with this reference. This parameter only works when the | 
					
						
							|  |  |  |  |         #   claim's status is being updated to 'inactive' - you can then set the parameter' | 
					
						
							|  |  |  |  |         #   s value to true to release all match claims produced by this reference. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] fields | 
					
						
							|  |  |  |  |         #   Selector specifying which fields to include in a partial response. | 
					
						
							|  |  |  |  |         # @param [String] quota_user | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         #   Available to use for quota purposes for server-side applications. Can be any | 
					
						
							|  |  |  |  |         #   arbitrary string assigned to a user, but should not exceed 40 characters. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::RequestOptions] options | 
					
						
							|  |  |  |  |         #   Request-specific options | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @yield [result, err] Result & error if block supplied | 
					
						
							|  |  |  |  |         # @yieldparam result [Google::Apis::YoutubePartnerV1::Reference] parsed result object | 
					
						
							|  |  |  |  |         # @yieldparam err [StandardError] error object if request failed | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @return [Google::Apis::YoutubePartnerV1::Reference] | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::AuthorizationError] Authorization is required | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         def update_reference(reference_id, reference_object = nil, on_behalf_of_content_owner: nil, release_claims: nil, fields: nil, quota_user: nil, options: nil, &block) | 
					
						
							|  |  |  |  |           command = make_simple_command(:put, 'youtube/partner/v1/references/{referenceId}', options) | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |           command.request_representation = Google::Apis::YoutubePartnerV1::Reference::Representation | 
					
						
							|  |  |  |  |           command.request_object = reference_object | 
					
						
							|  |  |  |  |           command.response_representation = Google::Apis::YoutubePartnerV1::Reference::Representation | 
					
						
							|  |  |  |  |           command.response_class = Google::Apis::YoutubePartnerV1::Reference | 
					
						
							|  |  |  |  |           command.params['referenceId'] = reference_id unless reference_id.nil? | 
					
						
							|  |  |  |  |           command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? | 
					
						
							|  |  |  |  |           command.query['releaseClaims'] = release_claims unless release_claims.nil? | 
					
						
							|  |  |  |  |           command.query['fields'] = fields unless fields.nil? | 
					
						
							|  |  |  |  |           command.query['quotaUser'] = quota_user unless quota_user.nil? | 
					
						
							|  |  |  |  |           execute_or_queue_command(command, &block) | 
					
						
							|  |  |  |  |         end | 
					
						
							|  |  |  |  |          | 
					
						
							| 
									
										
										
										
											2017-10-13 00:35:09 +00:00
										 |  |  |  |         # Retrieves a list of spreadsheet templates for a content owner. | 
					
						
							|  |  |  |  |         # @param [String] locale | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *locale* parameter identifies the desired language for templates in the | 
					
						
							|  |  |  |  |         #   API response. The value is a string that contains a BCP-47 language code. The | 
					
						
							|  |  |  |  |         #   default value is en. | 
					
						
							| 
									
										
										
										
											2017-10-13 00:35:09 +00:00
										 |  |  |  |         # @param [String] on_behalf_of_content_owner | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *onBehalfOfContentOwner* parameter identifies the content owner that the | 
					
						
							|  |  |  |  |         #   user is acting on behalf of. This parameter supports users whose accounts are | 
					
						
							|  |  |  |  |         #   associated with multiple content owners. | 
					
						
							| 
									
										
										
										
											2017-10-13 00:35:09 +00:00
										 |  |  |  |         # @param [String] fields | 
					
						
							|  |  |  |  |         #   Selector specifying which fields to include in a partial response. | 
					
						
							|  |  |  |  |         # @param [String] quota_user | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         #   Available to use for quota purposes for server-side applications. Can be any | 
					
						
							|  |  |  |  |         #   arbitrary string assigned to a user, but should not exceed 40 characters. | 
					
						
							| 
									
										
										
										
											2017-10-13 00:35:09 +00:00
										 |  |  |  |         # @param [Google::Apis::RequestOptions] options | 
					
						
							|  |  |  |  |         #   Request-specific options | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @yield [result, err] Result & error if block supplied | 
					
						
							|  |  |  |  |         # @yieldparam result [Google::Apis::YoutubePartnerV1::SpreadsheetTemplateListResponse] parsed result object | 
					
						
							|  |  |  |  |         # @yieldparam err [StandardError] error object if request failed | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @return [Google::Apis::YoutubePartnerV1::SpreadsheetTemplateListResponse] | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::AuthorizationError] Authorization is required | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         def list_spreadsheet_templates(locale: nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block) | 
					
						
							|  |  |  |  |           command = make_simple_command(:get, 'youtube/partner/v1/spreadsheetTemplate', options) | 
					
						
							| 
									
										
										
										
											2017-10-13 00:35:09 +00:00
										 |  |  |  |           command.response_representation = Google::Apis::YoutubePartnerV1::SpreadsheetTemplateListResponse::Representation | 
					
						
							|  |  |  |  |           command.response_class = Google::Apis::YoutubePartnerV1::SpreadsheetTemplateListResponse | 
					
						
							|  |  |  |  |           command.query['locale'] = locale unless locale.nil? | 
					
						
							|  |  |  |  |           command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? | 
					
						
							|  |  |  |  |           command.query['fields'] = fields unless fields.nil? | 
					
						
							|  |  |  |  |           command.query['quotaUser'] = quota_user unless quota_user.nil? | 
					
						
							|  |  |  |  |           execute_or_queue_command(command, &block) | 
					
						
							|  |  |  |  |         end | 
					
						
							|  |  |  |  |          | 
					
						
							| 
									
										
										
										
											2017-09-29 00:35:14 +00:00
										 |  |  |  |         # Retrieves a list of uploaders for a content owner. | 
					
						
							|  |  |  |  |         # @param [String] on_behalf_of_content_owner | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *onBehalfOfContentOwner* parameter identifies the content owner that the | 
					
						
							|  |  |  |  |         #   user is acting on behalf of. This parameter supports users whose accounts are | 
					
						
							|  |  |  |  |         #   associated with multiple content owners. | 
					
						
							| 
									
										
										
										
											2017-09-29 00:35:14 +00:00
										 |  |  |  |         # @param [String] fields | 
					
						
							|  |  |  |  |         #   Selector specifying which fields to include in a partial response. | 
					
						
							|  |  |  |  |         # @param [String] quota_user | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         #   Available to use for quota purposes for server-side applications. Can be any | 
					
						
							|  |  |  |  |         #   arbitrary string assigned to a user, but should not exceed 40 characters. | 
					
						
							| 
									
										
										
										
											2017-09-29 00:35:14 +00:00
										 |  |  |  |         # @param [Google::Apis::RequestOptions] options | 
					
						
							|  |  |  |  |         #   Request-specific options | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @yield [result, err] Result & error if block supplied | 
					
						
							|  |  |  |  |         # @yieldparam result [Google::Apis::YoutubePartnerV1::UploaderListResponse] parsed result object | 
					
						
							|  |  |  |  |         # @yieldparam err [StandardError] error object if request failed | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @return [Google::Apis::YoutubePartnerV1::UploaderListResponse] | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::AuthorizationError] Authorization is required | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         def list_uploaders(on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block) | 
					
						
							|  |  |  |  |           command = make_simple_command(:get, 'youtube/partner/v1/uploader', options) | 
					
						
							| 
									
										
										
										
											2017-09-29 00:35:14 +00:00
										 |  |  |  |           command.response_representation = Google::Apis::YoutubePartnerV1::UploaderListResponse::Representation | 
					
						
							|  |  |  |  |           command.response_class = Google::Apis::YoutubePartnerV1::UploaderListResponse | 
					
						
							|  |  |  |  |           command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? | 
					
						
							|  |  |  |  |           command.query['fields'] = fields unless fields.nil? | 
					
						
							|  |  |  |  |           command.query['quotaUser'] = quota_user unless quota_user.nil? | 
					
						
							|  |  |  |  |           execute_or_queue_command(command, &block) | 
					
						
							|  |  |  |  |         end | 
					
						
							|  |  |  |  |          | 
					
						
							| 
									
										
										
										
											2016-05-16 16:49:15 +00:00
										 |  |  |  |         # Validate a metadata file. | 
					
						
							|  |  |  |  |         # @param [Google::Apis::YoutubePartnerV1::ValidateRequest] validate_request_object | 
					
						
							|  |  |  |  |         # @param [String] on_behalf_of_content_owner | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *onBehalfOfContentOwner* parameter identifies the content owner that the | 
					
						
							|  |  |  |  |         #   user is acting on behalf of. This parameter supports users whose accounts are | 
					
						
							|  |  |  |  |         #   associated with multiple content owners. | 
					
						
							| 
									
										
										
										
											2016-05-16 16:49:15 +00:00
										 |  |  |  |         # @param [String] fields | 
					
						
							|  |  |  |  |         #   Selector specifying which fields to include in a partial response. | 
					
						
							|  |  |  |  |         # @param [String] quota_user | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         #   Available to use for quota purposes for server-side applications. Can be any | 
					
						
							|  |  |  |  |         #   arbitrary string assigned to a user, but should not exceed 40 characters. | 
					
						
							| 
									
										
										
										
											2016-05-16 16:49:15 +00:00
										 |  |  |  |         # @param [Google::Apis::RequestOptions] options | 
					
						
							|  |  |  |  |         #   Request-specific options | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @yield [result, err] Result & error if block supplied | 
					
						
							|  |  |  |  |         # @yieldparam result [Google::Apis::YoutubePartnerV1::ValidateResponse] parsed result object | 
					
						
							|  |  |  |  |         # @yieldparam err [StandardError] error object if request failed | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @return [Google::Apis::YoutubePartnerV1::ValidateResponse] | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::AuthorizationError] Authorization is required | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         def validate_validator(validate_request_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block) | 
					
						
							|  |  |  |  |           command = make_simple_command(:post, 'youtube/partner/v1/validator', options) | 
					
						
							| 
									
										
										
										
											2016-05-16 16:49:15 +00:00
										 |  |  |  |           command.request_representation = Google::Apis::YoutubePartnerV1::ValidateRequest::Representation | 
					
						
							|  |  |  |  |           command.request_object = validate_request_object | 
					
						
							|  |  |  |  |           command.response_representation = Google::Apis::YoutubePartnerV1::ValidateResponse::Representation | 
					
						
							|  |  |  |  |           command.response_class = Google::Apis::YoutubePartnerV1::ValidateResponse | 
					
						
							|  |  |  |  |           command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? | 
					
						
							|  |  |  |  |           command.query['fields'] = fields unless fields.nil? | 
					
						
							|  |  |  |  |           command.query['quotaUser'] = quota_user unless quota_user.nil? | 
					
						
							|  |  |  |  |           execute_or_queue_command(command, &block) | 
					
						
							|  |  |  |  |         end | 
					
						
							|  |  |  |  |          | 
					
						
							| 
									
										
										
										
											2017-08-31 00:35:15 +00:00
										 |  |  |  |         # Validate a metadata file asynchronously. | 
					
						
							|  |  |  |  |         # @param [Google::Apis::YoutubePartnerV1::ValidateAsyncRequest] validate_async_request_object | 
					
						
							|  |  |  |  |         # @param [String] on_behalf_of_content_owner | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *onBehalfOfContentOwner* parameter identifies the content owner that the | 
					
						
							|  |  |  |  |         #   user is acting on behalf of. This parameter supports users whose accounts are | 
					
						
							|  |  |  |  |         #   associated with multiple content owners. | 
					
						
							| 
									
										
										
										
											2017-08-31 00:35:15 +00:00
										 |  |  |  |         # @param [String] fields | 
					
						
							|  |  |  |  |         #   Selector specifying which fields to include in a partial response. | 
					
						
							|  |  |  |  |         # @param [String] quota_user | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         #   Available to use for quota purposes for server-side applications. Can be any | 
					
						
							|  |  |  |  |         #   arbitrary string assigned to a user, but should not exceed 40 characters. | 
					
						
							| 
									
										
										
										
											2017-08-31 00:35:15 +00:00
										 |  |  |  |         # @param [Google::Apis::RequestOptions] options | 
					
						
							|  |  |  |  |         #   Request-specific options | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @yield [result, err] Result & error if block supplied | 
					
						
							|  |  |  |  |         # @yieldparam result [Google::Apis::YoutubePartnerV1::ValidateAsyncResponse] parsed result object | 
					
						
							|  |  |  |  |         # @yieldparam err [StandardError] error object if request failed | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @return [Google::Apis::YoutubePartnerV1::ValidateAsyncResponse] | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::AuthorizationError] Authorization is required | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         def validate_validator_async(validate_async_request_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block) | 
					
						
							|  |  |  |  |           command = make_simple_command(:post, 'youtube/partner/v1/validatorAsync', options) | 
					
						
							| 
									
										
										
										
											2017-08-31 00:35:15 +00:00
										 |  |  |  |           command.request_representation = Google::Apis::YoutubePartnerV1::ValidateAsyncRequest::Representation | 
					
						
							|  |  |  |  |           command.request_object = validate_async_request_object | 
					
						
							|  |  |  |  |           command.response_representation = Google::Apis::YoutubePartnerV1::ValidateAsyncResponse::Representation | 
					
						
							|  |  |  |  |           command.response_class = Google::Apis::YoutubePartnerV1::ValidateAsyncResponse | 
					
						
							|  |  |  |  |           command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? | 
					
						
							|  |  |  |  |           command.query['fields'] = fields unless fields.nil? | 
					
						
							|  |  |  |  |           command.query['quotaUser'] = quota_user unless quota_user.nil? | 
					
						
							|  |  |  |  |           execute_or_queue_command(command, &block) | 
					
						
							|  |  |  |  |         end | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         # Get the asynchronous validation status. | 
					
						
							|  |  |  |  |         # @param [Google::Apis::YoutubePartnerV1::ValidateStatusRequest] validate_status_request_object | 
					
						
							|  |  |  |  |         # @param [String] on_behalf_of_content_owner | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *onBehalfOfContentOwner* parameter identifies the content owner that the | 
					
						
							|  |  |  |  |         #   user is acting on behalf of. This parameter supports users whose accounts are | 
					
						
							|  |  |  |  |         #   associated with multiple content owners. | 
					
						
							| 
									
										
										
										
											2017-08-31 00:35:15 +00:00
										 |  |  |  |         # @param [String] fields | 
					
						
							|  |  |  |  |         #   Selector specifying which fields to include in a partial response. | 
					
						
							|  |  |  |  |         # @param [String] quota_user | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         #   Available to use for quota purposes for server-side applications. Can be any | 
					
						
							|  |  |  |  |         #   arbitrary string assigned to a user, but should not exceed 40 characters. | 
					
						
							| 
									
										
										
										
											2017-08-31 00:35:15 +00:00
										 |  |  |  |         # @param [Google::Apis::RequestOptions] options | 
					
						
							|  |  |  |  |         #   Request-specific options | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @yield [result, err] Result & error if block supplied | 
					
						
							|  |  |  |  |         # @yieldparam result [Google::Apis::YoutubePartnerV1::ValidateStatusResponse] parsed result object | 
					
						
							|  |  |  |  |         # @yieldparam err [StandardError] error object if request failed | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @return [Google::Apis::YoutubePartnerV1::ValidateStatusResponse] | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::AuthorizationError] Authorization is required | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         def validate_validator_async_status(validate_status_request_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block) | 
					
						
							|  |  |  |  |           command = make_simple_command(:post, 'youtube/partner/v1/validatorAsyncStatus', options) | 
					
						
							| 
									
										
										
										
											2017-08-31 00:35:15 +00:00
										 |  |  |  |           command.request_representation = Google::Apis::YoutubePartnerV1::ValidateStatusRequest::Representation | 
					
						
							|  |  |  |  |           command.request_object = validate_status_request_object | 
					
						
							|  |  |  |  |           command.response_representation = Google::Apis::YoutubePartnerV1::ValidateStatusResponse::Representation | 
					
						
							|  |  |  |  |           command.response_class = Google::Apis::YoutubePartnerV1::ValidateStatusResponse | 
					
						
							|  |  |  |  |           command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? | 
					
						
							|  |  |  |  |           command.query['fields'] = fields unless fields.nil? | 
					
						
							|  |  |  |  |           command.query['quotaUser'] = quota_user unless quota_user.nil? | 
					
						
							|  |  |  |  |           execute_or_queue_command(command, &block) | 
					
						
							|  |  |  |  |         end | 
					
						
							|  |  |  |  |          | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # Retrieves advertising settings for the specified video. | 
					
						
							|  |  |  |  |         # @param [String] video_id | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *videoId* parameter specifies the YouTube video ID of the video for which | 
					
						
							|  |  |  |  |         #   you are retrieving advertising settings. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] on_behalf_of_content_owner | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *onBehalfOfContentOwner* parameter identifies the content owner that the | 
					
						
							|  |  |  |  |         #   user is acting on behalf of. This parameter supports users whose accounts are | 
					
						
							|  |  |  |  |         #   associated with multiple content owners. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] fields | 
					
						
							|  |  |  |  |         #   Selector specifying which fields to include in a partial response. | 
					
						
							|  |  |  |  |         # @param [String] quota_user | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         #   Available to use for quota purposes for server-side applications. Can be any | 
					
						
							|  |  |  |  |         #   arbitrary string assigned to a user, but should not exceed 40 characters. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::RequestOptions] options | 
					
						
							|  |  |  |  |         #   Request-specific options | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @yield [result, err] Result & error if block supplied | 
					
						
							|  |  |  |  |         # @yieldparam result [Google::Apis::YoutubePartnerV1::VideoAdvertisingOption] parsed result object | 
					
						
							|  |  |  |  |         # @yieldparam err [StandardError] error object if request failed | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @return [Google::Apis::YoutubePartnerV1::VideoAdvertisingOption] | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::AuthorizationError] Authorization is required | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         def get_video_advertising_option(video_id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block) | 
					
						
							|  |  |  |  |           command = make_simple_command(:get, 'youtube/partner/v1/videoAdvertisingOptions/{videoId}', options) | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |           command.response_representation = Google::Apis::YoutubePartnerV1::VideoAdvertisingOption::Representation | 
					
						
							|  |  |  |  |           command.response_class = Google::Apis::YoutubePartnerV1::VideoAdvertisingOption | 
					
						
							|  |  |  |  |           command.params['videoId'] = video_id unless video_id.nil? | 
					
						
							|  |  |  |  |           command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? | 
					
						
							|  |  |  |  |           command.query['fields'] = fields unless fields.nil? | 
					
						
							|  |  |  |  |           command.query['quotaUser'] = quota_user unless quota_user.nil? | 
					
						
							|  |  |  |  |           execute_or_queue_command(command, &block) | 
					
						
							|  |  |  |  |         end | 
					
						
							|  |  |  |  |          | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         # Retrieves details about the types of allowed ads for a specified partner- or | 
					
						
							|  |  |  |  |         # user-uploaded video. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] video_id | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *videoId* parameter specifies the YouTube video ID of the video for which | 
					
						
							|  |  |  |  |         #   you are retrieving advertising options. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] on_behalf_of_content_owner | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *onBehalfOfContentOwner* parameter identifies the content owner that the | 
					
						
							|  |  |  |  |         #   user is acting on behalf of. This parameter supports users whose accounts are | 
					
						
							|  |  |  |  |         #   associated with multiple content owners. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] fields | 
					
						
							|  |  |  |  |         #   Selector specifying which fields to include in a partial response. | 
					
						
							|  |  |  |  |         # @param [String] quota_user | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         #   Available to use for quota purposes for server-side applications. Can be any | 
					
						
							|  |  |  |  |         #   arbitrary string assigned to a user, but should not exceed 40 characters. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::RequestOptions] options | 
					
						
							|  |  |  |  |         #   Request-specific options | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @yield [result, err] Result & error if block supplied | 
					
						
							|  |  |  |  |         # @yieldparam result [Google::Apis::YoutubePartnerV1::VideoAdvertisingOptionGetEnabledAdsResponse] parsed result object | 
					
						
							|  |  |  |  |         # @yieldparam err [StandardError] error object if request failed | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @return [Google::Apis::YoutubePartnerV1::VideoAdvertisingOptionGetEnabledAdsResponse] | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::AuthorizationError] Authorization is required | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         def get_video_advertising_option_enabled_ads(video_id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block) | 
					
						
							|  |  |  |  |           command = make_simple_command(:get, 'youtube/partner/v1/videoAdvertisingOptions/{videoId}/getEnabledAds', options) | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |           command.response_representation = Google::Apis::YoutubePartnerV1::VideoAdvertisingOptionGetEnabledAdsResponse::Representation | 
					
						
							|  |  |  |  |           command.response_class = Google::Apis::YoutubePartnerV1::VideoAdvertisingOptionGetEnabledAdsResponse | 
					
						
							|  |  |  |  |           command.params['videoId'] = video_id unless video_id.nil? | 
					
						
							|  |  |  |  |           command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? | 
					
						
							|  |  |  |  |           command.query['fields'] = fields unless fields.nil? | 
					
						
							|  |  |  |  |           command.query['quotaUser'] = quota_user unless quota_user.nil? | 
					
						
							|  |  |  |  |           execute_or_queue_command(command, &block) | 
					
						
							|  |  |  |  |         end | 
					
						
							|  |  |  |  |          | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         # Patches the advertising settings for the specified video. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] video_id | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *videoId* parameter specifies the YouTube video ID of the video for which | 
					
						
							|  |  |  |  |         #   you are updating advertising settings. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::YoutubePartnerV1::VideoAdvertisingOption] video_advertising_option_object | 
					
						
							|  |  |  |  |         # @param [String] on_behalf_of_content_owner | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *onBehalfOfContentOwner* parameter identifies the content owner that the | 
					
						
							|  |  |  |  |         #   user is acting on behalf of. This parameter supports users whose accounts are | 
					
						
							|  |  |  |  |         #   associated with multiple content owners. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] fields | 
					
						
							|  |  |  |  |         #   Selector specifying which fields to include in a partial response. | 
					
						
							|  |  |  |  |         # @param [String] quota_user | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         #   Available to use for quota purposes for server-side applications. Can be any | 
					
						
							|  |  |  |  |         #   arbitrary string assigned to a user, but should not exceed 40 characters. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::RequestOptions] options | 
					
						
							|  |  |  |  |         #   Request-specific options | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @yield [result, err] Result & error if block supplied | 
					
						
							|  |  |  |  |         # @yieldparam result [Google::Apis::YoutubePartnerV1::VideoAdvertisingOption] parsed result object | 
					
						
							|  |  |  |  |         # @yieldparam err [StandardError] error object if request failed | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @return [Google::Apis::YoutubePartnerV1::VideoAdvertisingOption] | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::AuthorizationError] Authorization is required | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         def patch_video_advertising_option(video_id, video_advertising_option_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block) | 
					
						
							|  |  |  |  |           command = make_simple_command(:patch, 'youtube/partner/v1/videoAdvertisingOptions/{videoId}', options) | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |           command.request_representation = Google::Apis::YoutubePartnerV1::VideoAdvertisingOption::Representation | 
					
						
							|  |  |  |  |           command.request_object = video_advertising_option_object | 
					
						
							|  |  |  |  |           command.response_representation = Google::Apis::YoutubePartnerV1::VideoAdvertisingOption::Representation | 
					
						
							|  |  |  |  |           command.response_class = Google::Apis::YoutubePartnerV1::VideoAdvertisingOption | 
					
						
							|  |  |  |  |           command.params['videoId'] = video_id unless video_id.nil? | 
					
						
							|  |  |  |  |           command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? | 
					
						
							|  |  |  |  |           command.query['fields'] = fields unless fields.nil? | 
					
						
							|  |  |  |  |           command.query['quotaUser'] = quota_user unless quota_user.nil? | 
					
						
							|  |  |  |  |           execute_or_queue_command(command, &block) | 
					
						
							|  |  |  |  |         end | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         # Updates the advertising settings for the specified video. | 
					
						
							|  |  |  |  |         # @param [String] video_id | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *videoId* parameter specifies the YouTube video ID of the video for which | 
					
						
							|  |  |  |  |         #   you are updating advertising settings. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::YoutubePartnerV1::VideoAdvertisingOption] video_advertising_option_object | 
					
						
							|  |  |  |  |         # @param [String] on_behalf_of_content_owner | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *onBehalfOfContentOwner* parameter identifies the content owner that the | 
					
						
							|  |  |  |  |         #   user is acting on behalf of. This parameter supports users whose accounts are | 
					
						
							|  |  |  |  |         #   associated with multiple content owners. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] fields | 
					
						
							|  |  |  |  |         #   Selector specifying which fields to include in a partial response. | 
					
						
							|  |  |  |  |         # @param [String] quota_user | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         #   Available to use for quota purposes for server-side applications. Can be any | 
					
						
							|  |  |  |  |         #   arbitrary string assigned to a user, but should not exceed 40 characters. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::RequestOptions] options | 
					
						
							|  |  |  |  |         #   Request-specific options | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @yield [result, err] Result & error if block supplied | 
					
						
							|  |  |  |  |         # @yieldparam result [Google::Apis::YoutubePartnerV1::VideoAdvertisingOption] parsed result object | 
					
						
							|  |  |  |  |         # @yieldparam err [StandardError] error object if request failed | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @return [Google::Apis::YoutubePartnerV1::VideoAdvertisingOption] | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::AuthorizationError] Authorization is required | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         def update_video_advertising_option(video_id, video_advertising_option_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block) | 
					
						
							|  |  |  |  |           command = make_simple_command(:put, 'youtube/partner/v1/videoAdvertisingOptions/{videoId}', options) | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |           command.request_representation = Google::Apis::YoutubePartnerV1::VideoAdvertisingOption::Representation | 
					
						
							|  |  |  |  |           command.request_object = video_advertising_option_object | 
					
						
							|  |  |  |  |           command.response_representation = Google::Apis::YoutubePartnerV1::VideoAdvertisingOption::Representation | 
					
						
							|  |  |  |  |           command.response_class = Google::Apis::YoutubePartnerV1::VideoAdvertisingOption | 
					
						
							|  |  |  |  |           command.params['videoId'] = video_id unless video_id.nil? | 
					
						
							|  |  |  |  |           command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? | 
					
						
							|  |  |  |  |           command.query['fields'] = fields unless fields.nil? | 
					
						
							|  |  |  |  |           command.query['quotaUser'] = quota_user unless quota_user.nil? | 
					
						
							|  |  |  |  |           execute_or_queue_command(command, &block) | 
					
						
							|  |  |  |  |         end | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         # Removes a whitelisted channel for a content owner. | 
					
						
							|  |  |  |  |         # @param [String] id | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *id* parameter specifies the YouTube channel ID of the channel being | 
					
						
							|  |  |  |  |         #   removed from whitelist. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] on_behalf_of_content_owner | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *onBehalfOfContentOwner* parameter identifies the content owner that the | 
					
						
							|  |  |  |  |         #   user is acting on behalf of. This parameter supports users whose accounts are | 
					
						
							|  |  |  |  |         #   associated with multiple content owners. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] fields | 
					
						
							|  |  |  |  |         #   Selector specifying which fields to include in a partial response. | 
					
						
							|  |  |  |  |         # @param [String] quota_user | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         #   Available to use for quota purposes for server-side applications. Can be any | 
					
						
							|  |  |  |  |         #   arbitrary string assigned to a user, but should not exceed 40 characters. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::RequestOptions] options | 
					
						
							|  |  |  |  |         #   Request-specific options | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @yield [result, err] Result & error if block supplied | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         # @yieldparam result [Google::Apis::YoutubePartnerV1::Empty] parsed result object | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @yieldparam err [StandardError] error object if request failed | 
					
						
							|  |  |  |  |         # | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         # @return [Google::Apis::YoutubePartnerV1::Empty] | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::AuthorizationError] Authorization is required | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         def delete_whitelist(id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block) | 
					
						
							|  |  |  |  |           command = make_simple_command(:delete, 'youtube/partner/v1/whitelists/{id}', options) | 
					
						
							|  |  |  |  |           command.response_representation = Google::Apis::YoutubePartnerV1::Empty::Representation | 
					
						
							|  |  |  |  |           command.response_class = Google::Apis::YoutubePartnerV1::Empty | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |           command.params['id'] = id unless id.nil? | 
					
						
							|  |  |  |  |           command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? | 
					
						
							|  |  |  |  |           command.query['fields'] = fields unless fields.nil? | 
					
						
							|  |  |  |  |           command.query['quotaUser'] = quota_user unless quota_user.nil? | 
					
						
							|  |  |  |  |           execute_or_queue_command(command, &block) | 
					
						
							|  |  |  |  |         end | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         # Retrieves a specific whitelisted channel by ID. | 
					
						
							|  |  |  |  |         # @param [String] id | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *id* parameter specifies the YouTube channel ID of the whitelisted channel | 
					
						
							|  |  |  |  |         #   being retrieved. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] on_behalf_of_content_owner | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *onBehalfOfContentOwner* parameter identifies the content owner that the | 
					
						
							|  |  |  |  |         #   user is acting on behalf of. This parameter supports users whose accounts are | 
					
						
							|  |  |  |  |         #   associated with multiple content owners. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] fields | 
					
						
							|  |  |  |  |         #   Selector specifying which fields to include in a partial response. | 
					
						
							|  |  |  |  |         # @param [String] quota_user | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         #   Available to use for quota purposes for server-side applications. Can be any | 
					
						
							|  |  |  |  |         #   arbitrary string assigned to a user, but should not exceed 40 characters. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::RequestOptions] options | 
					
						
							|  |  |  |  |         #   Request-specific options | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @yield [result, err] Result & error if block supplied | 
					
						
							|  |  |  |  |         # @yieldparam result [Google::Apis::YoutubePartnerV1::Whitelist] parsed result object | 
					
						
							|  |  |  |  |         # @yieldparam err [StandardError] error object if request failed | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @return [Google::Apis::YoutubePartnerV1::Whitelist] | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::AuthorizationError] Authorization is required | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         def get_whitelist(id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block) | 
					
						
							|  |  |  |  |           command = make_simple_command(:get, 'youtube/partner/v1/whitelists/{id}', options) | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |           command.response_representation = Google::Apis::YoutubePartnerV1::Whitelist::Representation | 
					
						
							|  |  |  |  |           command.response_class = Google::Apis::YoutubePartnerV1::Whitelist | 
					
						
							|  |  |  |  |           command.params['id'] = id unless id.nil? | 
					
						
							|  |  |  |  |           command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? | 
					
						
							|  |  |  |  |           command.query['fields'] = fields unless fields.nil? | 
					
						
							|  |  |  |  |           command.query['quotaUser'] = quota_user unless quota_user.nil? | 
					
						
							|  |  |  |  |           execute_or_queue_command(command, &block) | 
					
						
							|  |  |  |  |         end | 
					
						
							|  |  |  |  |          | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         # Whitelist a YouTube channel for your content owner. Whitelisted channels are | 
					
						
							|  |  |  |  |         # channels that are not owned or managed by you, but you would like to whitelist | 
					
						
							|  |  |  |  |         # so that no claims from your assets are placed on videos uploaded to these | 
					
						
							|  |  |  |  |         # channels. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::YoutubePartnerV1::Whitelist] whitelist_object | 
					
						
							|  |  |  |  |         # @param [String] on_behalf_of_content_owner | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *onBehalfOfContentOwner* parameter identifies the content owner that the | 
					
						
							|  |  |  |  |         #   user is acting on behalf of. This parameter supports users whose accounts are | 
					
						
							|  |  |  |  |         #   associated with multiple content owners. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] fields | 
					
						
							|  |  |  |  |         #   Selector specifying which fields to include in a partial response. | 
					
						
							|  |  |  |  |         # @param [String] quota_user | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         #   Available to use for quota purposes for server-side applications. Can be any | 
					
						
							|  |  |  |  |         #   arbitrary string assigned to a user, but should not exceed 40 characters. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::RequestOptions] options | 
					
						
							|  |  |  |  |         #   Request-specific options | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @yield [result, err] Result & error if block supplied | 
					
						
							|  |  |  |  |         # @yieldparam result [Google::Apis::YoutubePartnerV1::Whitelist] parsed result object | 
					
						
							|  |  |  |  |         # @yieldparam err [StandardError] error object if request failed | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @return [Google::Apis::YoutubePartnerV1::Whitelist] | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::AuthorizationError] Authorization is required | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         def insert_whitelist(whitelist_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block) | 
					
						
							|  |  |  |  |           command = make_simple_command(:post, 'youtube/partner/v1/whitelists', options) | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |           command.request_representation = Google::Apis::YoutubePartnerV1::Whitelist::Representation | 
					
						
							|  |  |  |  |           command.request_object = whitelist_object | 
					
						
							|  |  |  |  |           command.response_representation = Google::Apis::YoutubePartnerV1::Whitelist::Representation | 
					
						
							|  |  |  |  |           command.response_class = Google::Apis::YoutubePartnerV1::Whitelist | 
					
						
							|  |  |  |  |           command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? | 
					
						
							|  |  |  |  |           command.query['fields'] = fields unless fields.nil? | 
					
						
							|  |  |  |  |           command.query['quotaUser'] = quota_user unless quota_user.nil? | 
					
						
							|  |  |  |  |           execute_or_queue_command(command, &block) | 
					
						
							|  |  |  |  |         end | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         # Retrieves a list of whitelisted channels for a content owner. | 
					
						
							|  |  |  |  |         # @param [String] id | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *id* parameter specifies a comma-separated list of YouTube channel IDs | 
					
						
							|  |  |  |  |         #   that identify the whitelisted channels you want to retrieve. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] on_behalf_of_content_owner | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *onBehalfOfContentOwner* parameter identifies the content owner that the | 
					
						
							|  |  |  |  |         #   user is acting on behalf of. This parameter supports users whose accounts are | 
					
						
							|  |  |  |  |         #   associated with multiple content owners. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] page_token | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |  |         #   The *pageToken* parameter specifies a token that identifies a particular page | 
					
						
							|  |  |  |  |         #   of results to return. Set this parameter to the value of the nextPageToken | 
					
						
							|  |  |  |  |         #   value from the previous API response to retrieve the next page of results. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [String] fields | 
					
						
							|  |  |  |  |         #   Selector specifying which fields to include in a partial response. | 
					
						
							|  |  |  |  |         # @param [String] quota_user | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         #   Available to use for quota purposes for server-side applications. Can be any | 
					
						
							|  |  |  |  |         #   arbitrary string assigned to a user, but should not exceed 40 characters. | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |         # @param [Google::Apis::RequestOptions] options | 
					
						
							|  |  |  |  |         #   Request-specific options | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @yield [result, err] Result & error if block supplied | 
					
						
							|  |  |  |  |         # @yieldparam result [Google::Apis::YoutubePartnerV1::WhitelistListResponse] parsed result object | 
					
						
							|  |  |  |  |         # @yieldparam err [StandardError] error object if request failed | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @return [Google::Apis::YoutubePartnerV1::WhitelistListResponse] | 
					
						
							|  |  |  |  |         # | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification | 
					
						
							|  |  |  |  |         # @raise [Google::Apis::AuthorizationError] Authorization is required | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |  |         def list_whitelists(id: nil, on_behalf_of_content_owner: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) | 
					
						
							|  |  |  |  |           command = make_simple_command(:get, 'youtube/partner/v1/whitelists', options) | 
					
						
							| 
									
										
										
										
											2016-04-14 18:15:27 +00:00
										 |  |  |  |           command.response_representation = Google::Apis::YoutubePartnerV1::WhitelistListResponse::Representation | 
					
						
							|  |  |  |  |           command.response_class = Google::Apis::YoutubePartnerV1::WhitelistListResponse | 
					
						
							|  |  |  |  |           command.query['id'] = id unless id.nil? | 
					
						
							|  |  |  |  |           command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? | 
					
						
							|  |  |  |  |           command.query['pageToken'] = page_token unless page_token.nil? | 
					
						
							|  |  |  |  |           command.query['fields'] = fields unless fields.nil? | 
					
						
							|  |  |  |  |           command.query['quotaUser'] = quota_user unless quota_user.nil? | 
					
						
							|  |  |  |  |           execute_or_queue_command(command, &block) | 
					
						
							|  |  |  |  |         end | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |         protected | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |         def apply_command_defaults(command) | 
					
						
							|  |  |  |  |           command.query['key'] = key unless key.nil? | 
					
						
							|  |  |  |  |           command.query['quotaUser'] = quota_user unless quota_user.nil? | 
					
						
							|  |  |  |  |         end | 
					
						
							|  |  |  |  |       end | 
					
						
							|  |  |  |  |     end | 
					
						
							|  |  |  |  |   end | 
					
						
							|  |  |  |  | end |