Class: Google::Apis::YoutubePartnerV1::AssetMatchPolicy

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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AssetMatchPolicy

Returns a new instance of AssetMatchPolicy.


323
324
325
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 323

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#kindString

The type of the API resource. Value: youtubePartner#assetMatchPolicy. Corresponds to the JSON property kind

Returns:

  • (String)

307
308
309
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 307

def kind
  @kind
end

#policy_idString

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

Returns:

  • (String)

313
314
315
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 313

def policy_id
  @policy_id
end

#rulesArray<Google::Apis::YoutubePartnerV1::PolicyRule>

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


321
322
323
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 321

def rules
  @rules
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


328
329
330
331
332
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 328

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