Class: Google::Apis::YoutubePartnerV1::ExcludedInterval

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/youtube_partner_v1/classes.rb,
generated/google/apis/youtube_partner_v1/representations.rb,
generated/google/apis/youtube_partner_v1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ExcludedInterval

Returns a new instance of ExcludedInterval



1810
1811
1812
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1810

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#highFloat

The end (inclusive) time in seconds of the time window. The value can be any value greater than low. If high is greater than the length of the reference, the interval between low and the end of the reference will be excluded. Every interval must specify a value for this field. Corresponds to the JSON property high

Returns:

  • (Float)


1791
1792
1793
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1791

def high
  @high
end

#lowFloat

The start (inclusive) time in seconds of the time window. The value can be any value between 0 and high. Every interval must specify a value for this field. Corresponds to the JSON property low

Returns:

  • (Float)


1797
1798
1799
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1797

def low
  @low
end

#originString

The source of the request to exclude the interval from Content ID matching. Corresponds to the JSON property origin

Returns:

  • (String)


1802
1803
1804
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1802

def origin
  @origin
end

#time_createdDateTime

The date and time that the exclusion was created. The value is specified in RFC 3339 (YYYY-MM-DDThh:mm:ss.000Z) format. Corresponds to the JSON property timeCreated

Returns:

  • (DateTime)


1808
1809
1810
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1808

def time_created
  @time_created
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1815
1816
1817
1818
1819
1820
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1815

def update!(**args)
  @high = args[:high] if args.key?(:high)
  @low = args[:low] if args.key?(:low)
  @origin = args[:origin] if args.key?(:origin)
  @time_created = args[:time_created] if args.key?(:time_created)
end