class Google::Apis::YoutubePartnerV1::Asset
Attributes
A list of asset IDs that can be used to refer to the asset. The list contains values if the asset represents multiple constituent assets that have been merged. In that case, any of the asset IDs originally assigned to the constituent assets could be used to update the master, or synthesized, asset. Corresponds to the JSON property `aliasId` @return [Array<String>]
An ID that YouTube assigns and uses to uniquely identify the asset. Corresponds to the JSON property `id` @return [String]
The type of the API resource. For asset resources, the value is youtubePartner# asset. Corresponds to the JSON property `kind` @return [String]
A list of asset labels on the asset. Corresponds to the JSON property `label` @return [Array<String>]
The matchPolicy object contains information about the asset's match policy, which YouTube applies to user-uploaded videos that match the asset. Corresponds to the JSON property `matchPolicy` @return [Google::Apis::YoutubePartnerV1::AssetMatchPolicy]
Corresponds to the JSON property `matchPolicyEffective` @return [Google::Apis::YoutubePartnerV1::AssetMatchPolicy]
Corresponds to the JSON property `matchPolicyMine` @return [Google::Apis::YoutubePartnerV1::AssetMatchPolicy]
The metadata object contains information that identifies and describes the asset. This information could be used to search for the asset or to eliminate duplication within YouTube's database. Corresponds to the JSON property `metadata` @return [Google::Apis::YoutubePartnerV1::Metadata]
Corresponds to the JSON property `metadataEffective` @return [Google::Apis::YoutubePartnerV1::Metadata]
Corresponds to the JSON property `metadataMine` @return [Google::Apis::YoutubePartnerV1::Metadata]
The ownership object identifies an asset's owners and provides additional details about their ownership, such as the territories where they own the asset. Corresponds to the JSON property `ownership` @return [Google::Apis::YoutubePartnerV1::RightsOwnership]
The ownershipConflicts object contains information about the asset's ownership conflicts. Corresponds to the JSON property `ownershipConflicts` @return [Google::Apis::YoutubePartnerV1::OwnershipConflicts]
Corresponds to the JSON property `ownershipEffective` @return [Google::Apis::YoutubePartnerV1::RightsOwnership]
Corresponds to the JSON property `ownershipMine` @return [Google::Apis::YoutubePartnerV1::RightsOwnership]
The asset's status. Corresponds to the JSON property `status` @return [String]
The date and time the asset was created. The value is specified in RFC 3339 ( YYYY-MM-DDThh:mm:ss.000Z) format. Corresponds to the JSON property `timeCreated` @return [DateTime]
The asset's type. This value determines the metadata fields that you can set for the asset. In addition, certain API functions may only be supported for specific types of assets. For example, composition assets may have more complex ownership data than other types of assets. Corresponds to the JSON property `type` @return [String]
Public Class Methods
# File generated/google/apis/youtube_partner_v1/classes.rb, line 229 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/youtube_partner_v1/classes.rb, line 234 def update!(**args) @alias_id = args[:alias_id] if args.key?(:alias_id) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @label = args[:label] if args.key?(:label) @match_policy = args[:match_policy] if args.key?(:match_policy) @match_policy_effective = args[:match_policy_effective] if args.key?(:match_policy_effective) @match_policy_mine = args[:match_policy_mine] if args.key?(:match_policy_mine) @metadata = args[:metadata] if args.key?(:metadata) @metadata_effective = args[:metadata_effective] if args.key?(:metadata_effective) @metadata_mine = args[:metadata_mine] if args.key?(:metadata_mine) @ownership = args[:ownership] if args.key?(:ownership) @ownership_conflicts = args[:ownership_conflicts] if args.key?(:ownership_conflicts) @ownership_effective = args[:ownership_effective] if args.key?(:ownership_effective) @ownership_mine = args[:ownership_mine] if args.key?(:ownership_mine) @status = args[:status] if args.key?(:status) @time_created = args[:time_created] if args.key?(:time_created) @type = args[:type] if args.key?(:type) end