Class: Google::Apis::YoutubePartnerV1::Asset
- Inherits:
-
Object
- Object
- Google::Apis::YoutubePartnerV1::Asset
- 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
-
#alias_id ⇒ Array<String>
A list of asset IDs that can be used to refer to the asset.
-
#id ⇒ String
An ID that YouTube assigns and uses to uniquely identify the asset.
-
#kind ⇒ String
The type of the API resource.
-
#label ⇒ Array<String>
A list of asset labels on the asset.
-
#match_policy ⇒ Google::Apis::YoutubePartnerV1::AssetMatchPolicy
The matchPolicy object contains information about the asset's match policy, which YouTube applies to user-uploaded videos that match the asset.
-
#match_policy_effective ⇒ Google::Apis::YoutubePartnerV1::AssetMatchPolicy
Corresponds to the JSON property
matchPolicyEffective
. -
#match_policy_mine ⇒ Google::Apis::YoutubePartnerV1::AssetMatchPolicy
Corresponds to the JSON property
matchPolicyMine
. -
#metadata ⇒ Google::Apis::YoutubePartnerV1::Metadata
The metadata object contains information that identifies and describes the asset.
-
#metadata_effective ⇒ Google::Apis::YoutubePartnerV1::Metadata
Corresponds to the JSON property
metadataEffective
. -
#metadata_mine ⇒ Google::Apis::YoutubePartnerV1::Metadata
Corresponds to the JSON property
metadataMine
. -
#ownership ⇒ Google::Apis::YoutubePartnerV1::RightsOwnership
The ownership object identifies an asset's owners and provides additional details about their ownership, such as the territories where they own the asset.
-
#ownership_conflicts ⇒ Google::Apis::YoutubePartnerV1::OwnershipConflicts
The ownershipConflicts object contains information about the asset's ownership conflicts.
-
#ownership_effective ⇒ Google::Apis::YoutubePartnerV1::RightsOwnership
Corresponds to the JSON property
ownershipEffective
. -
#ownership_mine ⇒ Google::Apis::YoutubePartnerV1::RightsOwnership
Corresponds to the JSON property
ownershipMine
. -
#status ⇒ String
The asset's status.
-
#time_created ⇒ DateTime
The date and time the asset was created.
-
#type ⇒ String
The asset's type.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Asset
constructor
A new instance of Asset.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Asset
Returns a new instance of Asset
229 230 231 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 229 def initialize(**args) update!(**args) end |
Instance Attribute Details
#alias_id ⇒ Array<String>
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
136 137 138 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 136 def alias_id @alias_id end |
#id ⇒ String
An ID that YouTube assigns and uses to uniquely identify the asset.
Corresponds to the JSON property id
141 142 143 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 141 def id @id end |
#kind ⇒ String
The type of the API resource. For asset resources, the value is youtubePartner#
asset.
Corresponds to the JSON property kind
147 148 149 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 147 def kind @kind end |
#label ⇒ Array<String>
A list of asset labels on the asset.
Corresponds to the JSON property label
152 153 154 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 152 def label @label end |
#match_policy ⇒ Google::Apis::YoutubePartnerV1::AssetMatchPolicy
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
158 159 160 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 158 def match_policy @match_policy end |
#match_policy_effective ⇒ Google::Apis::YoutubePartnerV1::AssetMatchPolicy
Corresponds to the JSON property matchPolicyEffective
163 164 165 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 163 def match_policy_effective @match_policy_effective end |
#match_policy_mine ⇒ Google::Apis::YoutubePartnerV1::AssetMatchPolicy
Corresponds to the JSON property matchPolicyMine
168 169 170 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 168 def match_policy_mine @match_policy_mine end |
#metadata ⇒ Google::Apis::YoutubePartnerV1::Metadata
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
175 176 177 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 175 def @metadata end |
#metadata_effective ⇒ Google::Apis::YoutubePartnerV1::Metadata
Corresponds to the JSON property metadataEffective
180 181 182 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 180 def @metadata_effective end |
#metadata_mine ⇒ Google::Apis::YoutubePartnerV1::Metadata
Corresponds to the JSON property metadataMine
185 186 187 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 185 def @metadata_mine end |
#ownership ⇒ Google::Apis::YoutubePartnerV1::RightsOwnership
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
192 193 194 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 192 def ownership @ownership end |
#ownership_conflicts ⇒ Google::Apis::YoutubePartnerV1::OwnershipConflicts
The ownershipConflicts object contains information about the asset's ownership
conflicts.
Corresponds to the JSON property ownershipConflicts
198 199 200 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 198 def ownership_conflicts @ownership_conflicts end |
#ownership_effective ⇒ Google::Apis::YoutubePartnerV1::RightsOwnership
Corresponds to the JSON property ownershipEffective
203 204 205 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 203 def ownership_effective @ownership_effective end |
#ownership_mine ⇒ Google::Apis::YoutubePartnerV1::RightsOwnership
Corresponds to the JSON property ownershipMine
208 209 210 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 208 def ownership_mine @ownership_mine end |
#status ⇒ String
The asset's status.
Corresponds to the JSON property status
213 214 215 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 213 def status @status end |
#time_created ⇒ DateTime
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
219 220 221 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 219 def time_created @time_created end |
#type ⇒ String
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
227 228 229 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 227 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 |
# 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 |