generated/google/apis/youtube_partner_v1/classes.rb in google-api-client-0.28.7 vs generated/google/apis/youtube_partner_v1/classes.rb in google-api-client-0.29.0
- old
+ new
@@ -35,55 +35,22 @@
# The point at which the break occurs during the video playback.
# Corresponds to the JSON property `position`
# @return [String]
attr_accessor :position
- # A list of ad slots that occur in an ad break. Ad slots let you specify the
- # number of ads that should run in each break.
- # Corresponds to the JSON property `slot`
- # @return [Array<Google::Apis::YoutubePartnerV1::AdSlot>]
- attr_accessor :slot
-
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@midroll_seconds = args[:midroll_seconds] if args.key?(:midroll_seconds)
@position = args[:position] if args.key?(:position)
- @slot = args[:slot] if args.key?(:slot)
end
end
#
- class AdSlot
- include Google::Apis::Core::Hashable
-
- # A value that identifies the ad slot to the ad server.
- # Corresponds to the JSON property `id`
- # @return [String]
- attr_accessor :id
-
- # The type of ad that runs in the slot. The value may affect YouTube's fallback
- # behavior if the third-party platform does not return ads.
- # Corresponds to the JSON property `type`
- # @return [String]
- attr_accessor :type
-
- def initialize(**args)
- update!(**args)
- end
-
- # Update properties of this object
- def update!(**args)
- @id = args[:id] if args.key?(:id)
- @type = args[:type] if args.key?(:type)
- end
- end
-
- #
class AllowedAdvertisingOptions
include Google::Apis::Core::Hashable
# This setting indicates whether the partner can display ads when videos run in
# an embedded player.
@@ -1893,10 +1860,17 @@
# Identifies the manner in which the claimed video matches the reference video.
# Corresponds to the JSON property `channel`
# @return [String]
attr_accessor :channel
+ # On insert operation of manual claims, the manual_segment object contains
+ # information about the specific portion of the video that is claimed to be
+ # matching.
+ # Corresponds to the JSON property `manual_segment`
+ # @return [Google::Apis::YoutubePartnerV1::Segment]
+ attr_accessor :manual_segment
+
# The reference_segment object contains information about the matched portion of
# the reference content.
# Corresponds to the JSON property `reference_segment`
# @return [Google::Apis::YoutubePartnerV1::Segment]
attr_accessor :reference_segment
@@ -1912,10 +1886,11 @@
end
# Update properties of this object
def update!(**args)
@channel = args[:channel] if args.key?(:channel)
+ @manual_segment = args[:manual_segment] if args.key?(:manual_segment)
@reference_segment = args[:reference_segment] if args.key?(:reference_segment)
@video_segment = args[:video_segment] if args.key?(:video_segment)
end
end
@@ -3474,27 +3449,33 @@
# The duration of the segment in milliseconds.
# Corresponds to the JSON property `duration`
# @return [Fixnum]
attr_accessor :duration
+ # The finish time of the segment, measured in milliseconds from the beginning.
+ # Corresponds to the JSON property `finish`
+ # @return [String]
+ attr_accessor :finish
+
# The type of the API resource. For segment resources, the value is
# youtubePartner#segment.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The start time of the segment, measured in milliseconds from the beginning.
# Corresponds to the JSON property `start`
- # @return [Fixnum]
+ # @return [String]
attr_accessor :start
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@duration = args[:duration] if args.key?(:duration)
+ @finish = args[:finish] if args.key?(:finish)
@kind = args[:kind] if args.key?(:kind)
@start = args[:start] if args.key?(:start)
end
end