Class: Google::Apis::YoutubePartnerV1::AssetMatchPolicy
- Inherits:
-
Object
- Object
- Google::Apis::YoutubePartnerV1::AssetMatchPolicy
- 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
-
#kind ⇒ String
The type of the API resource.
-
#policy_id ⇒ String
A value that uniquely identifies the Policy resource that YouTube applies to user-uploaded videos that match the asset.
-
#rules ⇒ Array<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.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AssetMatchPolicy
constructor
A new instance of AssetMatchPolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AssetMatchPolicy
Returns a new instance of AssetMatchPolicy.
281 282 283 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 281 def initialize(**args) update!(**args) end |
Instance Attribute Details
#kind ⇒ String
The type of the API resource. Value: youtubePartner#assetMatchPolicy.
Corresponds to the JSON property kind
265 266 267 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 265 def kind @kind end |
#policy_id ⇒ String
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
271 272 273 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 271 def policy_id @policy_id end |
#rules ⇒ Array<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
279 280 281 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 279 def rules @rules end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
286 287 288 289 290 |
# File 'generated/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 |