Class: Google::Apis::YoutubePartnerV1::Origination

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

Returns a new instance of Origination.


2455
2456
2457
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2455

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

Instance Attribute Details

#ownerString

The content owner who provided the metadata or ownership information. Corresponds to the JSON property owner

Returns:

  • (String)

2447
2448
2449
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2447

def owner
  @owner
end

#sourceString

The mechanism by which the piece of metadata, ownership or relationship information was provided. Corresponds to the JSON property source

Returns:

  • (String)

2453
2454
2455
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2453

def source
  @source
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


2460
2461
2462
2463
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2460

def update!(**args)
  @owner = args[:owner] if args.key?(:owner)
  @source = args[:source] if args.key?(:source)
end