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

Constructor Details

#initialize(**args) ⇒ Conditions

Returns a new instance of Conditions.



1287
1288
1289
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1287

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


1254
1255
1256
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1254

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



1260
1261
1262
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1260

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



1266
1267
1268
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1266

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



1272
1273
1274
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1272

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



1278
1279
1280
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1278

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



1285
1286
1287
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1285

def required_territories
  @required_territories
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1292
1293
1294
1295
1296
1297
1298
1299
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1292

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