class Google::Apis::YoutubePartnerV1::Policy
Attributes
The policy's description. Corresponds to the JSON property `description` @return [String]
A value that YouTube assigns and uses to uniquely identify the policy. Corresponds to the JSON property `id` @return [String]
Identifies this as a policy. Value: “youtubePartner#policy” Corresponds to the JSON property `kind` @return [String]
The policy's name. Corresponds to the JSON property `name` @return [String]
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` @return [Array<Google::Apis::YoutubePartnerV1::PolicyRule>]
The time the policy was updated. Corresponds to the JSON property `timeUpdated` @return [DateTime]
Public Class Methods
# File generated/google/apis/youtube_partner_v1/classes.rb, line 2601 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/youtube_partner_v1/classes.rb, line 2606 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