Class: Google::Apis::YoutubePartnerV1::Policy
- Inherits:
-
Object
- Object
- Google::Apis::YoutubePartnerV1::Policy
- 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
-
#description ⇒ String
The policy's description.
-
#id ⇒ String
A value that YouTube assigns and uses to uniquely identify the policy.
-
#kind ⇒ String
Identifies this as a policy.
-
#name ⇒ String
The policy's name.
-
#rules ⇒ Array<Google::Apis::YoutubePartnerV1::PolicyRule>
A list of rules that specify the action that YouTube should take and may optionally specify the conditions under which that action is enforced.
-
#time_updated ⇒ DateTime
The time the policy was updated.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Policy
constructor
A new instance of Policy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Policy
Returns a new instance of Policy.
2607 2608 2609 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2607 def initialize(**args) update!(**args) end |
Instance Attribute Details
#description ⇒ String
The policy's description.
Corresponds to the JSON property description
2579 2580 2581 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2579 def description @description end |
#id ⇒ String
A value that YouTube assigns and uses to uniquely identify the policy.
Corresponds to the JSON property id
2584 2585 2586 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2584 def id @id end |
#kind ⇒ String
Identifies this as a policy. Value: "youtubePartner#policy"
Corresponds to the JSON property kind
2589 2590 2591 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2589 def kind @kind end |
#name ⇒ String
The policy's name.
Corresponds to the JSON property name
2594 2595 2596 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2594 def name @name end |
#rules ⇒ Array<Google::Apis::YoutubePartnerV1::PolicyRule>
A list of rules that specify the action that YouTube should take and may
optionally specify the conditions under which that action is enforced.
Corresponds to the JSON property rules
2600 2601 2602 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2600 def rules @rules end |
#time_updated ⇒ DateTime
The time the policy was updated.
Corresponds to the JSON property timeUpdated
2605 2606 2607 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2605 def time_updated @time_updated end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2612 2613 2614 2615 2616 2617 2618 2619 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2612 def update!(**args) @description = args[:description] if args.key?(:description) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) @rules = args[:rules] if args.key?(:rules) @time_updated = args[:time_updated] if args.key?(:time_updated) end |