Class: Google::Apis::YoutubePartnerV1::ClaimEvent
- Inherits:
-
Object
- Object
- Google::Apis::YoutubePartnerV1::ClaimEvent
- 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
-
#kind ⇒ String
The type of the API resource.
-
#reason ⇒ String
Reason of the event.
-
#source ⇒ Google::Apis::YoutubePartnerV1::ClaimEvent::Source
Data related to source of the event.
-
#time ⇒ DateTime
The time when the event occurred.
-
#type ⇒ String
Type of the event.
-
#type_details ⇒ Google::Apis::YoutubePartnerV1::ClaimEvent::TypeDetails
Details of event's type.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ClaimEvent
constructor
A new instance of ClaimEvent.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ClaimEvent
Returns a new instance of ClaimEvent
1056 1057 1058 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1056 def initialize(**args) update!(**args) end |
Instance Attribute Details
#kind ⇒ String
The type of the API resource. For claimEvent resources, this value is
youtubePartner#claimEvent.
Corresponds to the JSON property kind
1029 1030 1031 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1029 def kind @kind end |
#reason ⇒ String
Reason of the event.
Corresponds to the JSON property reason
1034 1035 1036 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1034 def reason @reason end |
#source ⇒ Google::Apis::YoutubePartnerV1::ClaimEvent::Source
Data related to source of the event.
Corresponds to the JSON property source
1039 1040 1041 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1039 def source @source end |
#time ⇒ DateTime
The time when the event occurred.
Corresponds to the JSON property time
1044 1045 1046 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1044 def time @time end |
#type ⇒ String
Type of the event.
Corresponds to the JSON property type
1049 1050 1051 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1049 def type @type end |
#type_details ⇒ Google::Apis::YoutubePartnerV1::ClaimEvent::TypeDetails
Details of event's type.
Corresponds to the JSON property typeDetails
1054 1055 1056 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1054 def type_details @type_details end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1061 1062 1063 1064 1065 1066 1067 1068 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1061 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 |