Class: Google::Apis::YoutubePartnerV1::Claim
- Inherits:
-
Object
- Object
- Google::Apis::YoutubePartnerV1::Claim
- 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
Instance Attribute Summary collapse
-
#applied_policy ⇒ Google::Apis::YoutubePartnerV1::Policy
The applied policy for the viewing owner on the claim.
-
#asset_id ⇒ String
The unique YouTube asset ID that identifies the asset associated with the claim.
-
#block_outside_ownership ⇒ Boolean
(also: #block_outside_ownership?)
Indicates whether or not the claimed video should be blocked anywhere it is not explicitly owned.
-
#content_type ⇒ String
This value indicates whether the claim covers the audio, video, or audiovisual portion of the claimed content.
-
#id ⇒ String
The ID that YouTube assigns and uses to uniquely identify the claim.
-
#is_partner_uploaded ⇒ Boolean
(also: #is_partner_uploaded?)
Indicates whether or not the claim is a partner uploaded claim.
-
#kind ⇒ String
The type of the API resource.
-
#match_info ⇒ Google::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.
-
#origin ⇒ Google::Apis::YoutubePartnerV1::Claim::Origin
Corresponds to the JSON property
origin
. -
#policy ⇒ Google::Apis::YoutubePartnerV1::Policy
The policy provided by the viewing owner on the claim.
-
#status ⇒ String
The claim's status.
-
#time_created ⇒ DateTime
The time the claim was created.
-
#video_id ⇒ String
The unique YouTube video ID that identifies the video associated with the claim.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Claim
constructor
A new instance of Claim.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Claim
Returns a new instance of Claim.
804 805 806 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 804 def initialize(**args) update!(**args) end |
Instance Attribute Details
#applied_policy ⇒ Google::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
732 733 734 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 732 def applied_policy @applied_policy end |
#asset_id ⇒ String
The unique YouTube asset ID that identifies the asset associated with the
claim.
Corresponds to the JSON property assetId
738 739 740 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 738 def asset_id @asset_id end |
#block_outside_ownership ⇒ Boolean 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
744 745 746 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 744 def block_outside_ownership @block_outside_ownership end |
#content_type ⇒ String
This value indicates whether the claim covers the audio, video, or audiovisual
portion of the claimed content.
Corresponds to the JSON property contentType
751 752 753 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 751 def content_type @content_type end |
#id ⇒ String
The ID that YouTube assigns and uses to uniquely identify the claim.
Corresponds to the JSON property id
756 757 758 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 756 def id @id end |
#is_partner_uploaded ⇒ Boolean Also known as: is_partner_uploaded?
Indicates whether or not the claim is a partner uploaded claim.
Corresponds to the JSON property isPartnerUploaded
761 762 763 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 761 def is_partner_uploaded @is_partner_uploaded end |
#kind ⇒ String
The type of the API resource. For claim resources, this value is
youtubePartner#claim.
Corresponds to the JSON property kind
768 769 770 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 768 def kind @kind end |
#match_info ⇒ Google::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
774 775 776 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 774 def match_info @match_info end |
#origin ⇒ Google::Apis::YoutubePartnerV1::Claim::Origin
Corresponds to the JSON property origin
779 780 781 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 779 def origin @origin end |
#policy ⇒ Google::Apis::YoutubePartnerV1::Policy
The policy provided by the viewing owner on the claim.
Corresponds to the JSON property policy
784 785 786 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 784 def policy @policy end |
#status ⇒ String
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
791 792 793 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 791 def status @status end |
#time_created ⇒ DateTime
The time the claim was created.
Corresponds to the JSON property timeCreated
796 797 798 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 796 def time_created @time_created end |
#video_id ⇒ String
The unique YouTube video ID that identifies the video associated with the
claim.
Corresponds to the JSON property videoId
802 803 804 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 802 def video_id @video_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 809 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 |