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.
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_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
1254 1255 1256 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1254 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
1260 1261 1262 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1260 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
1266 1267 1268 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1266 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
1272 1273 1274 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1272 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
1278 1279 1280 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1278 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
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 |