Class: Google::Apis::YoutubePartnerV1::Conditions
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::YoutubePartnerV1::Conditions
 
- 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
- 
  
    
      #content_match_type  ⇒ Array<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. 
- 
  
    
      #match_duration  ⇒ Array<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. 
- 
  
    
      #match_percent  ⇒ Array<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. 
- 
  
    
      #reference_duration  ⇒ Array<Google::Apis::YoutubePartnerV1::IntervalCondition> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    This match condition indicates that the reference must be a certain duration for the rule to apply. 
- 
  
    
      #reference_percent  ⇒ Array<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. 
- 
  
    
      #required_territories  ⇒ Google::Apis::YoutubePartnerV1::TerritoryCondition 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    This watch condition specifies where users are (or or not) allowed to watch ( or listen to) an asset. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Conditions 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Conditions. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Conditions
Returns a new instance of Conditions
| 1473 1474 1475 | # File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1473 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#content_match_type ⇒ Array<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
| 1440 1441 1442 | # File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1440 def content_match_type @content_match_type end | 
#match_duration ⇒ Array<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
| 1446 1447 1448 | # File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1446 def match_duration @match_duration end | 
#match_percent ⇒ Array<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
| 1452 1453 1454 | # File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1452 def match_percent @match_percent end | 
#reference_duration ⇒ Array<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
| 1458 1459 1460 | # File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1458 def reference_duration @reference_duration end | 
#reference_percent ⇒ Array<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
| 1464 1465 1466 | # File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1464 def reference_percent @reference_percent end | 
#required_territories ⇒ Google::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
| 1471 1472 1473 | # File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1471 def required_territories @required_territories end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 1478 1479 1480 1481 1482 1483 1484 1485 | # File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1478 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 |