diff --git a/generated/google/apis/youtube_v3.rb b/generated/google/apis/youtube_v3.rb index 06182a6e0..7030cedf8 100644 --- a/generated/google/apis/youtube_v3.rb +++ b/generated/google/apis/youtube_v3.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/youtube/ module YoutubeV3 VERSION = 'V3' - REVISION = '20201214' + REVISION = '20201216' # Manage your YouTube account AUTH_YOUTUBE = 'https://www.googleapis.com/auth/youtube' diff --git a/generated/google/apis/youtube_v3/classes.rb b/generated/google/apis/youtube_v3/classes.rb index 000d642a2..ea07ae931 100644 --- a/generated/google/apis/youtube_v3/classes.rb +++ b/generated/google/apis/youtube_v3/classes.rb @@ -6278,141 +6278,6 @@ module Google end end - # A `__sponsor__` resource represents a sponsor for a YouTube channel. A sponsor - # provides recurring monetary support to a creator and receives special benefits. - class Sponsor - include Google::Apis::Core::Hashable - - # Etag of this resource. - # Corresponds to the JSON property `etag` - # @return [String] - attr_accessor :etag - - # Identifies what kind of resource this is. Value: the fixed string `"youtube# - # sponsor"`. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The `snippet` object contains basic details about the sponsor. - # Corresponds to the JSON property `snippet` - # @return [Google::Apis::YoutubeV3::SponsorSnippet] - attr_accessor :snippet - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @etag = args[:etag] if args.key?(:etag) - @kind = args[:kind] if args.key?(:kind) - @snippet = args[:snippet] if args.key?(:snippet) - end - end - - # - class SponsorListResponse - include Google::Apis::Core::Hashable - - # Etag of this resource. - # Corresponds to the JSON property `etag` - # @return [String] - attr_accessor :etag - - # Serialized EventId of the request which produced this response. - # Corresponds to the JSON property `eventId` - # @return [String] - attr_accessor :event_id - - # A list of sponsors that match the request criteria. - # Corresponds to the JSON property `items` - # @return [Array] - attr_accessor :items - - # Identifies what kind of resource this is. Value: the fixed string `"youtube# - # sponsorListResponse". - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The token that can be used as the value of the `pageToken` parameter to - # retrieve the next page in the result set. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - # Paging details for lists of resources, including total number of items - # available and number of resources returned in a single page. - # Corresponds to the JSON property `pageInfo` - # @return [Google::Apis::YoutubeV3::PageInfo] - attr_accessor :page_info - - # Stub token pagination template to suppress results. - # Corresponds to the JSON property `tokenPagination` - # @return [Google::Apis::YoutubeV3::TokenPagination] - attr_accessor :token_pagination - - # The `visitorId` identifies the visitor. - # Corresponds to the JSON property `visitorId` - # @return [String] - attr_accessor :visitor_id - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @etag = args[:etag] if args.key?(:etag) - @event_id = args[:event_id] if args.key?(:event_id) - @items = args[:items] if args.key?(:items) - @kind = args[:kind] if args.key?(:kind) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - @page_info = args[:page_info] if args.key?(:page_info) - @token_pagination = args[:token_pagination] if args.key?(:token_pagination) - @visitor_id = args[:visitor_id] if args.key?(:visitor_id) - end - end - - # - class SponsorSnippet - include Google::Apis::Core::Hashable - - # The id of the channel being sponsored. - # Corresponds to the JSON property `channelId` - # @return [String] - attr_accessor :channel_id - - # The cumulative time a user has been a sponsor in months. - # Corresponds to the JSON property `cumulativeDurationMonths` - # @return [Fixnum] - attr_accessor :cumulative_duration_months - - # Details about the sponsor. - # Corresponds to the JSON property `sponsorDetails` - # @return [Google::Apis::YoutubeV3::ChannelProfileDetails] - attr_accessor :sponsor_details - - # The date and time when the user became a sponsor. The value is specified in - # ISO 8601 (`YYYY-MM-DDThh:mm:ss.sZ`) format. - # Corresponds to the JSON property `sponsorSince` - # @return [String] - attr_accessor :sponsor_since - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @channel_id = args[:channel_id] if args.key?(:channel_id) - @cumulative_duration_months = args[:cumulative_duration_months] if args.key?(:cumulative_duration_months) - @sponsor_details = args[:sponsor_details] if args.key?(:sponsor_details) - @sponsor_since = args[:sponsor_since] if args.key?(:sponsor_since) - end - end - # A *subscription* resource contains information about a YouTube user # subscription. A subscription notifies a user when new videos are added to a # channel or when another user takes one of several actions on YouTube, such as diff --git a/generated/google/apis/youtube_v3/representations.rb b/generated/google/apis/youtube_v3/representations.rb index 9cb400fd6..52d80070c 100644 --- a/generated/google/apis/youtube_v3/representations.rb +++ b/generated/google/apis/youtube_v3/representations.rb @@ -802,24 +802,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class Sponsor - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class SponsorListResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class SponsorSnippet - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class Subscription class Representation < Google::Apis::Core::JsonRepresentation; end @@ -2752,44 +2734,6 @@ module Google end end - class Sponsor - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :etag, as: 'etag' - property :kind, as: 'kind' - property :snippet, as: 'snippet', class: Google::Apis::YoutubeV3::SponsorSnippet, decorator: Google::Apis::YoutubeV3::SponsorSnippet::Representation - - end - end - - class SponsorListResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :etag, as: 'etag' - property :event_id, as: 'eventId' - collection :items, as: 'items', class: Google::Apis::YoutubeV3::Sponsor, decorator: Google::Apis::YoutubeV3::Sponsor::Representation - - property :kind, as: 'kind' - property :next_page_token, as: 'nextPageToken' - property :page_info, as: 'pageInfo', class: Google::Apis::YoutubeV3::PageInfo, decorator: Google::Apis::YoutubeV3::PageInfo::Representation - - property :token_pagination, as: 'tokenPagination', class: Google::Apis::YoutubeV3::TokenPagination, decorator: Google::Apis::YoutubeV3::TokenPagination::Representation - - property :visitor_id, as: 'visitorId' - end - end - - class SponsorSnippet - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :channel_id, as: 'channelId' - property :cumulative_duration_months, as: 'cumulativeDurationMonths' - property :sponsor_details, as: 'sponsorDetails', class: Google::Apis::YoutubeV3::ChannelProfileDetails, decorator: Google::Apis::YoutubeV3::ChannelProfileDetails::Representation - - property :sponsor_since, as: 'sponsorSince' - end - end - class Subscription # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/youtube_v3/service.rb b/generated/google/apis/youtube_v3/service.rb index 988dda731..3942c9bbf 100644 --- a/generated/google/apis/youtube_v3/service.rb +++ b/generated/google/apis/youtube_v3/service.rb @@ -2914,49 +2914,6 @@ module Google execute_or_queue_command(command, &block) end - # Retrieves a list of sponsors that match the request criteria for a channel. - # @param [Array, String] part - # The *part* parameter specifies the sponsor resource parts that the API - # response will include. Supported values are id and snippet. - # @param [String] filter - # Parameter that specifies which channel sponsors to return. - # @param [Fixnum] max_results - # The *maxResults* parameter specifies the maximum number of items that should - # be returned in the result set. - # @param [String] page_token - # The *pageToken* parameter identifies a specific page in the result set that - # should be returned. In an API response, the nextPageToken and prevPageToken - # properties identify other pages that could be retrieved. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # 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. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::YoutubeV3::SponsorListResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::YoutubeV3::SponsorListResponse] - # - # @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 - def list_sponsors(part, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'youtube/v3/sponsors', options) - command.response_representation = Google::Apis::YoutubeV3::SponsorListResponse::Representation - command.response_class = Google::Apis::YoutubeV3::SponsorListResponse - command.query['filter'] = filter unless filter.nil? - command.query['maxResults'] = max_results unless max_results.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['part'] = part unless part.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 resource. # @param [String] id # @param [String] fields diff --git a/generated/google/apis/youtube_v3/synth.metadata b/generated/google/apis/youtube_v3/synth.metadata index 03c077969..d66fb7c45 100644 --- a/generated/google/apis/youtube_v3/synth.metadata +++ b/generated/google/apis/youtube_v3/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/google-api-ruby-client.git", - "sha": "df6fc41c81fdeb3fc81ade23418af8f8351084b0" + "sha": "6ed017286713bd7584245d8f1442952323f70c85" } } ]