Class: Google::Apis::YoutubePartnerV1::Policy

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

Constructor Details

#initialize(**args) ⇒ Policy

Returns a new instance of Policy.



3150
3151
3152
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3150

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

Instance Attribute Details

#descriptionString

The policy's description. Corresponds to the JSON property description

Returns:

  • (String)


3122
3123
3124
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3122

def description
  @description
end

#idString

A value that YouTube assigns and uses to uniquely identify the policy. Corresponds to the JSON property id

Returns:

  • (String)


3127
3128
3129
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3127

def id
  @id
end

#kindString

Identifies this as a policy. Value: "youtubePartner#policy" Corresponds to the JSON property kind

Returns:

  • (String)


3132
3133
3134
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3132

def kind
  @kind
end

#nameString

The policy's name. Corresponds to the JSON property name

Returns:

  • (String)


3137
3138
3139
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3137

def name
  @name
end

#rulesArray<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



3143
3144
3145
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3143

def rules
  @rules
end

#time_updatedString

The time the policy was updated. Corresponds to the JSON property timeUpdated

Returns:

  • (String)


3148
3149
3150
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3148

def time_updated
  @time_updated
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3155
3156
3157
3158
3159
3160
3161
3162
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3155

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