class Google::Apis::YoutubePartnerV1::Claim

Attributes

applied_policy[RW]

The applied policy for the viewing owner on the claim. This might not be the same as the final claim policy on the video as it does not consider other partners' policy of the same claim. Corresponds to the JSON property `appliedPolicy` @return [Google::Apis::YoutubePartnerV1::Policy]

asset_id[RW]

The unique YouTube asset ID that identifies the asset associated with the claim. Corresponds to the JSON property `assetId` @return [String]

block_outside_ownership[RW]

Indicates whether or not the claimed video should be blocked anywhere it is not explicitly owned. Corresponds to the JSON property `blockOutsideOwnership` @return [Boolean]

block_outside_ownership?[RW]

Indicates whether or not the claimed video should be blocked anywhere it is not explicitly owned. Corresponds to the JSON property `blockOutsideOwnership` @return [Boolean]

content_type[RW]

This value indicates whether the claim covers the audio, video, or audiovisual portion of the claimed content. Corresponds to the JSON property `contentType` @return [String]

id[RW]

The ID that YouTube assigns and uses to uniquely identify the claim. Corresponds to the JSON property `id` @return [String]

is_partner_uploaded[RW]

Indicates whether or not the claim is a partner uploaded claim. Corresponds to the JSON property `isPartnerUploaded` @return [Boolean]

is_partner_uploaded?[RW]

Indicates whether or not the claim is a partner uploaded claim. Corresponds to the JSON property `isPartnerUploaded` @return [Boolean]

kind[RW]

The type of the API resource. For claim resources, this value is youtubePartner#claim. Corresponds to the JSON property `kind` @return [String]

match_info[RW]

If this claim was auto-generated based on a provided reference, this section will provide details of the match that generated the claim. Corresponds to the JSON property `matchInfo` @return [Google::Apis::YoutubePartnerV1::MatchInfo]

origin[RW]

Corresponds to the JSON property `origin` @return [Google::Apis::YoutubePartnerV1::Origin]

policy[RW]

The policy provided by the viewing owner on the claim. Corresponds to the JSON property `policy` @return [Google::Apis::YoutubePartnerV1::Policy]

status[RW]

The claim's status. When updating a claim, you can update its status from active to inactive to effectively release the claim, but the API does not support other updates to a claim's status. Corresponds to the JSON property `status` @return [String]

time_created[RW]

The time the claim was created. Corresponds to the JSON property `timeCreated` @return [String]

ugc_type[RW]

UGC type of the claim (standard, premium, song). Corresponds to the JSON property `ugcType` @return [String]

video_id[RW]

The unique YouTube video ID that identifies the video associated with the claim. Corresponds to the JSON property `videoId` @return [String]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/youtube_partner_v1/classes.rb, line 860
def update!(**args)
  @applied_policy = args[:applied_policy] if args.key?(:applied_policy)
  @asset_id = args[:asset_id] if args.key?(:asset_id)
  @block_outside_ownership = args[:block_outside_ownership] if args.key?(:block_outside_ownership)
  @content_type = args[:content_type] if args.key?(:content_type)
  @id = args[:id] if args.key?(:id)
  @is_partner_uploaded = args[:is_partner_uploaded] if args.key?(:is_partner_uploaded)
  @kind = args[:kind] if args.key?(:kind)
  @match_info = args[:match_info] if args.key?(:match_info)
  @origin = args[:origin] if args.key?(:origin)
  @policy = args[:policy] if args.key?(:policy)
  @status = args[:status] if args.key?(:status)
  @time_created = args[:time_created] if args.key?(:time_created)
  @ugc_type = args[:ugc_type] if args.key?(:ugc_type)
  @video_id = args[:video_id] if args.key?(:video_id)
end