class Google::Apis::YoutubePartnerV1::Policy

Attributes

description[RW]

The policy's description. Corresponds to the JSON property `description` @return [String]

id[RW]

A value that YouTube assigns and uses to uniquely identify the policy. Corresponds to the JSON property `id` @return [String]

kind[RW]

Identifies this as a policy. Value: “youtubePartner#policy” Corresponds to the JSON property `kind` @return [String]

name[RW]

The policy's name. Corresponds to the JSON property `name` @return [String]

rules[RW]

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>]

time_updated[RW]

The time the policy was updated. Corresponds to the JSON property `timeUpdated` @return [DateTime]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

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