class Google::Apis::YoutubePartnerV1::AssetMatchPolicy

Attributes

kind[RW]

The type of the API resource. Value: youtubePartner#assetMatchPolicy. Corresponds to the JSON property `kind` @return [String]

policy_id[RW]

A value that uniquely identifies the Policy resource that YouTube applies to user-uploaded videos that match the asset. Corresponds to the JSON property `policyId` @return [String]

rules[RW]

A list of rules that collectively define the policy that the content owner wants to apply to user-uploaded videos that match the asset. Each rule specifies the action that YouTube should take and may optionally specify the conditions under which that action is enforced. Corresponds to the JSON property `rules` @return [Array<Google::Apis::YoutubePartnerV1::PolicyRule>]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/youtube_partner_v1/classes.rb, line 286
def update!(**args)
  @kind = args[:kind] if args.key?(:kind)
  @policy_id = args[:policy_id] if args.key?(:policy_id)
  @rules = args[:rules] if args.key?(:rules)
end