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



2526
2527
2528
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2526

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)


2518
2519
2520
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2518

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)


2524
2525
2526
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2524

def source
  @source
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2531
2532
2533
2534
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2531

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