Class: Google::Apis::YoutubePartnerV1::ClaimEvent

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: Source, TypeDetails

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) ⇒ ClaimEvent

Returns a new instance of ClaimEvent.



1023
1024
1025
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1023

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

Instance Attribute Details

#kindString

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

Returns:

  • (String)


996
997
998
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 996

def kind
  @kind
end

#reasonString

Reason of the event. Corresponds to the JSON property reason

Returns:

  • (String)


1001
1002
1003
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1001

def reason
  @reason
end

#sourceGoogle::Apis::YoutubePartnerV1::ClaimEvent::Source

Data related to source of the event. Corresponds to the JSON property source



1006
1007
1008
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1006

def source
  @source
end

#timeDateTime

The time when the event occurred. Corresponds to the JSON property time

Returns:

  • (DateTime)


1011
1012
1013
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1011

def time
  @time
end

#typeString

Type of the event. Corresponds to the JSON property type

Returns:

  • (String)


1016
1017
1018
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1016

def type
  @type
end

#type_detailsGoogle::Apis::YoutubePartnerV1::ClaimEvent::TypeDetails

Details of event's type. Corresponds to the JSON property typeDetails



1021
1022
1023
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1021

def type_details
  @type_details
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1028
1029
1030
1031
1032
1033
1034
1035
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1028

def update!(**args)
  @kind = args[:kind] if args.key?(:kind)
  @reason = args[:reason] if args.key?(:reason)
  @source = args[:source] if args.key?(:source)
  @time = args[:time] if args.key?(:time)
  @type = args[:type] if args.key?(:type)
  @type_details = args[:type_details] if args.key?(:type_details)
end