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.



1440
1441
1442
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1440

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


1407
1408
1409
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1407

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



1413
1414
1415
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1413

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



1419
1420
1421
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1419

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



1425
1426
1427
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1425

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



1431
1432
1433
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1431

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



1438
1439
1440
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1438

def required_territories
  @required_territories
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1445
1446
1447
1448
1449
1450
1451
1452
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1445

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