Class: Google::Apis::YoutubePartnerV1::Claim

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

Defined Under Namespace

Classes: MatchInfo, Origin

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Claim

Returns a new instance of Claim.



842
843
844
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 842

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

Instance Attribute Details

#applied_policyGoogle::Apis::YoutubePartnerV1::Policy

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



770
771
772
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 770

def applied_policy
  @applied_policy
end

#asset_idString

The unique YouTube asset ID that identifies the asset associated with the claim. Corresponds to the JSON property assetId

Returns:

  • (String)


776
777
778
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 776

def asset_id
  @asset_id
end

#block_outside_ownershipBoolean Also known as: block_outside_ownership?

Indicates whether or not the claimed video should be blocked anywhere it is not explicitly owned. Corresponds to the JSON property blockOutsideOwnership

Returns:

  • (Boolean)


782
783
784
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 782

def block_outside_ownership
  @block_outside_ownership
end

#content_typeString

This value indicates whether the claim covers the audio, video, or audiovisual portion of the claimed content. Corresponds to the JSON property contentType

Returns:

  • (String)


789
790
791
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 789

def content_type
  @content_type
end

#idString

The ID that YouTube assigns and uses to uniquely identify the claim. Corresponds to the JSON property id

Returns:

  • (String)


794
795
796
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 794

def id
  @id
end

#is_partner_uploadedBoolean Also known as: is_partner_uploaded?

Indicates whether or not the claim is a partner uploaded claim. Corresponds to the JSON property isPartnerUploaded

Returns:

  • (Boolean)


799
800
801
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 799

def is_partner_uploaded
  @is_partner_uploaded
end

#kindString

The type of the API resource. For claim resources, this value is youtubePartner#claim. Corresponds to the JSON property kind

Returns:

  • (String)


806
807
808
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 806

def kind
  @kind
end

#match_infoGoogle::Apis::YoutubePartnerV1::Claim::MatchInfo

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



812
813
814
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 812

def match_info
  @match_info
end

#originGoogle::Apis::YoutubePartnerV1::Claim::Origin

Corresponds to the JSON property origin



817
818
819
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 817

def origin
  @origin
end

#policyGoogle::Apis::YoutubePartnerV1::Policy

The policy provided by the viewing owner on the claim. Corresponds to the JSON property policy



822
823
824
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 822

def policy
  @policy
end

#statusString

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

Returns:

  • (String)


829
830
831
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 829

def status
  @status
end

#time_createdDateTime

The time the claim was created. Corresponds to the JSON property timeCreated

Returns:

  • (DateTime)


834
835
836
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 834

def time_created
  @time_created
end

#video_idString

The unique YouTube video ID that identifies the video associated with the claim. Corresponds to the JSON property videoId

Returns:

  • (String)


840
841
842
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 840

def video_id
  @video_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 847

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)
  @video_id = args[:video_id] if args.key?(:video_id)
end