class Google::Apis::YoutubePartnerV1::PolicyRule

Attributes

action[RW]

The policy that YouTube should enforce if the rule's conditions are all valid for an asset or for an attempt to view that asset on YouTube. Corresponds to the JSON property `action` @return [String]

conditions[RW]

A set of conditions that must be met for the rule's action (and subactions) to be enforced. For a rule to be valid, all of its conditions must be met. Corresponds to the JSON property `conditions` @return [Google::Apis::YoutubePartnerV1::Conditions]

subaction[RW]

A list of additional actions that YouTube should take if the conditions in the rule are met. Corresponds to the JSON property `subaction` @return [Array<String>]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/youtube_partner_v1/classes.rb, line 2664
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/youtube_partner_v1/classes.rb, line 2669
def update!(**args)
  @action = args[:action] if args.key?(:action)
  @conditions = args[:conditions] if args.key?(:conditions)
  @subaction = args[:subaction] if args.key?(:subaction)
end