Class: Google::Apis::YoutubePartnerV1::RightsOwnershipHistory

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

Returns a new instance of RightsOwnershipHistory.



3349
3350
3351
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3349

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

Instance Attribute Details

#kindString

The type of the API resource. For ownership history resources, the value is youtubePartner#rightsOwnershipHistory. Corresponds to the JSON property kind

Returns:

  • (String)


3331
3332
3333
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3331

def kind
  @kind
end

#originationGoogle::Apis::YoutubePartnerV1::Origination

The origination object contains information that describes the metadata source. Corresponds to the JSON property origination



3336
3337
3338
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3336

def origination
  @origination
end

#ownershipGoogle::Apis::YoutubePartnerV1::RightsOwnership

The ownership object contains the ownership data provided by the specified source (origination) at the specified time (timeProvided). Corresponds to the JSON property ownership



3342
3343
3344
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3342

def ownership
  @ownership
end

#time_providedDateTime

The time that the ownership data was provided. Corresponds to the JSON property timeProvided

Returns:

  • (DateTime)


3347
3348
3349
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3347

def time_provided
  @time_provided
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3354
3355
3356
3357
3358
3359
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3354

def update!(**args)
  @kind = args[:kind] if args.key?(:kind)
  @origination = args[:origination] if args.key?(:origination)
  @ownership = args[:ownership] if args.key?(:ownership)
  @time_provided = args[:time_provided] if args.key?(:time_provided)
end