Class: Google::Apis::YoutubePartnerV1::RightsOwnership
- Inherits:
-
Object
- Object
- Google::Apis::YoutubePartnerV1::RightsOwnership
- 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
-
#general ⇒ Array<Google::Apis::YoutubePartnerV1::TerritoryOwners>
A list that identifies the owners of an asset and the territories where each owner has ownership.
-
#kind ⇒ String
The type of the API resource.
-
#mechanical ⇒ Array<Google::Apis::YoutubePartnerV1::TerritoryOwners>
A list that identifies owners of the mechanical rights for a composition asset.
-
#performance ⇒ Array<Google::Apis::YoutubePartnerV1::TerritoryOwners>
A list that identifies owners of the performance rights for a composition asset.
-
#synchronization ⇒ Array<Google::Apis::YoutubePartnerV1::TerritoryOwners>
A list that identifies owners of the synchronization rights for a composition asset.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RightsOwnership
constructor
A new instance of RightsOwnership.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ RightsOwnership
Returns a new instance of RightsOwnership.
3219 3220 3221 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3219 def initialize(**args) update!(**args) end |
Instance Attribute Details
#general ⇒ Array<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
3194 3195 3196 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3194 def general @general end |
#kind ⇒ String
The type of the API resource. For rightsOwnership resources, the value is
youtubePartner#rightsOwnership.
Corresponds to the JSON property kind
3200 3201 3202 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3200 def kind @kind end |
#mechanical ⇒ Array<Google::Apis::YoutubePartnerV1::TerritoryOwners>
A list that identifies owners of the mechanical rights for a composition asset.
Corresponds to the JSON property mechanical
3205 3206 3207 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3205 def mechanical @mechanical end |
#performance ⇒ Array<Google::Apis::YoutubePartnerV1::TerritoryOwners>
A list that identifies owners of the performance rights for a composition
asset.
Corresponds to the JSON property performance
3211 3212 3213 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3211 def performance @performance end |
#synchronization ⇒ Array<Google::Apis::YoutubePartnerV1::TerritoryOwners>
A list that identifies owners of the synchronization rights for a composition
asset.
Corresponds to the JSON property synchronization
3217 3218 3219 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3217 def synchronization @synchronization end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3224 3225 3226 3227 3228 3229 3230 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3224 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 |