Class: Google::Apis::YoutubePartnerV1::ClaimHistory

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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ClaimHistory

Returns a new instance of ClaimHistory.


1093
1094
1095
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1093

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

Instance Attribute Details

#eventArray<Google::Apis::YoutubePartnerV1::ClaimEvent>

A list of claim history events. Corresponds to the JSON property event


1075
1076
1077
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1075

def event
  @event
end

#idString

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

Returns:

  • (String)

1080
1081
1082
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1080

def id
  @id
end

#kindString

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

Returns:

  • (String)

1086
1087
1088
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1086

def kind
  @kind
end

#uploader_channel_idString

The external channel id of claimed video's uploader. Corresponds to the JSON property uploaderChannelId

Returns:

  • (String)

1091
1092
1093
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1091

def uploader_channel_id
  @uploader_channel_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1098
1099
1100
1101
1102
1103
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1098

def update!(**args)
  @event = args[:event] if args.key?(:event)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @uploader_channel_id = args[:uploader_channel_id] if args.key?(:uploader_channel_id)
end