Class: Google::Apis::YoutubePartnerV1::RightsOwnership

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

Returns a new instance of RightsOwnership



3368
3369
3370
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3368

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

Instance Attribute Details

#generalArray<Google::Apis::YoutubePartnerV1::TerritoryOwners>

A list that identifies the owners of an asset and the territories where each owner has ownership. General asset ownership is used for all types of assets and is the only type of ownership data that can be provided for assets that are not compositions. Note: You cannot specify general ownership rights and also specify either mechanical, performance, or synchronization rights. Corresponds to the JSON property general



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

def general
  @general
end

#kindString

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

Returns:

  • (String)


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

def kind
  @kind
end

#mechanicalArray<Google::Apis::YoutubePartnerV1::TerritoryOwners>

A list that identifies owners of the mechanical rights for a composition asset. Corresponds to the JSON property mechanical



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

def mechanical
  @mechanical
end

#performanceArray<Google::Apis::YoutubePartnerV1::TerritoryOwners>

A list that identifies owners of the performance rights for a composition asset. Corresponds to the JSON property performance



3360
3361
3362
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3360

def performance
  @performance
end

#synchronizationArray<Google::Apis::YoutubePartnerV1::TerritoryOwners>

A list that identifies owners of the synchronization rights for a composition asset. Corresponds to the JSON property synchronization



3366
3367
3368
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3366

def synchronization
  @synchronization
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3373
3374
3375
3376
3377
3378
3379
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3373

def update!(**args)
  @general = args[:general] if args.key?(:general)
  @kind = args[:kind] if args.key?(:kind)
  @mechanical = args[:mechanical] if args.key?(:mechanical)
  @performance = args[:performance] if args.key?(:performance)
  @synchronization = args[:synchronization] if args.key?(:synchronization)
end