Class: Google::Apis::YoutubePartnerV1::Conditions

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) ⇒ Conditions

Returns a new instance of Conditions.



1402
1403
1404
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1402

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

Instance Attribute Details

#content_match_typeArray<String>

This match condition specifies whether the user- or partner-uploaded content needs to match the audio, video or audiovisual content of a reference file for the rule to apply. Corresponds to the JSON property contentMatchType

Returns:

  • (Array<String>)


1369
1370
1371
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1369

def content_match_type
  @content_match_type
end

#match_durationArray<Google::Apis::YoutubePartnerV1::IntervalCondition>

This match condition specifies an amount of time that the user- or partner- uploaded content needs to match a reference file for the rule to apply. Corresponds to the JSON property matchDuration



1375
1376
1377
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1375

def match_duration
  @match_duration
end

#match_percentArray<Google::Apis::YoutubePartnerV1::IntervalCondition>

This match condition specifies a percentage of the user- or partner-uploaded content that needs to match a reference file for the rule to apply. Corresponds to the JSON property matchPercent



1381
1382
1383
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1381

def match_percent
  @match_percent
end

#reference_durationArray<Google::Apis::YoutubePartnerV1::IntervalCondition>

This match condition indicates that the reference must be a certain duration for the rule to apply. Corresponds to the JSON property referenceDuration



1387
1388
1389
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1387

def reference_duration
  @reference_duration
end

#reference_percentArray<Google::Apis::YoutubePartnerV1::IntervalCondition>

This match condition indicates that the specified percentage of a reference file must match the user- or partner-uploaded content for the rule to apply. Corresponds to the JSON property referencePercent



1393
1394
1395
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1393

def reference_percent
  @reference_percent
end

#required_territoriesGoogle::Apis::YoutubePartnerV1::TerritoryCondition

This watch condition specifies where users are (or or not) allowed to watch ( or listen to) an asset. YouTube determines whether the condition is satisfied based on the user's location. Corresponds to the JSON property requiredTerritories



1400
1401
1402
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1400

def required_territories
  @required_territories
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1407
1408
1409
1410
1411
1412
1413
1414
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1407

def update!(**args)
  @content_match_type = args[:content_match_type] if args.key?(:content_match_type)
  @match_duration = args[:match_duration] if args.key?(:match_duration)
  @match_percent = args[:match_percent] if args.key?(:match_percent)
  @reference_duration = args[:reference_duration] if args.key?(:reference_duration)
  @reference_percent = args[:reference_percent] if args.key?(:reference_percent)
  @required_territories = args[:required_territories] if args.key?(:required_territories)
end