REST Resource: policies

Resource: Policy

A policy resource specifies rules that define a particular usage or match policy that a partner can associate with an asset or claim.

JSON representation
{
  "kind": string,
  "name": string,
  "description": string,
  "timeUpdated": string,
  "rules": [
    {
      object (PolicyRule)
    }
  ],
  "id": string
}
Fields
kind

string

Identifies this as a policy. Value: "youtubePartner#policy"

name

string

The policy's name.

description

string

The policy's description.

timeUpdated

string

The time the policy was updated.

rules[]

object (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.

id

string

A value that YouTube assigns and uses to uniquely identify the policy.

Methods

get

Retrieves the specified saved policy.

insert

Creates a saved policy.

list

Retrieves a list of the content owner's saved policies.

patch

Patches the specified saved policy.

update

Updates the specified saved policy.