Class: Google::Apis::YoutubePartnerV1::Asset

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

Returns a new instance of Asset.


196
197
198
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 196

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

Instance Attribute Details

#alias_idArray<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

Returns:

  • (Array<String>)

103
104
105
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 103

def alias_id
  @alias_id
end

#idString

An ID that YouTube assigns and uses to uniquely identify the asset. Corresponds to the JSON property id

Returns:

  • (String)

108
109
110
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 108

def id
  @id
end

#kindString

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

Returns:

  • (String)

114
115
116
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 114

def kind
  @kind
end

#labelArray<String>

A list of asset labels on the asset. Corresponds to the JSON property label

Returns:

  • (Array<String>)

119
120
121
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 119

def label
  @label
end

#match_policyGoogle::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


125
126
127
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 125

def match_policy
  @match_policy
end

#match_policy_effectiveGoogle::Apis::YoutubePartnerV1::AssetMatchPolicy

Corresponds to the JSON property matchPolicyEffective


130
131
132
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 130

def match_policy_effective
  @match_policy_effective
end

#match_policy_mineGoogle::Apis::YoutubePartnerV1::AssetMatchPolicy

Corresponds to the JSON property matchPolicyMine


135
136
137
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 135

def match_policy_mine
  @match_policy_mine
end

#metadataGoogle::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


142
143
144
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 142

def 
  @metadata
end

#metadata_effectiveGoogle::Apis::YoutubePartnerV1::Metadata

Corresponds to the JSON property metadataEffective


147
148
149
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 147

def 
  @metadata_effective
end

#metadata_mineGoogle::Apis::YoutubePartnerV1::Metadata

Corresponds to the JSON property metadataMine


152
153
154
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 152

def 
  @metadata_mine
end

#ownershipGoogle::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


159
160
161
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 159

def ownership
  @ownership
end

#ownership_conflictsGoogle::Apis::YoutubePartnerV1::OwnershipConflicts

The ownershipConflicts object contains information about the asset's ownership conflicts. Corresponds to the JSON property ownershipConflicts


165
166
167
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 165

def ownership_conflicts
  @ownership_conflicts
end

#ownership_effectiveGoogle::Apis::YoutubePartnerV1::RightsOwnership

Corresponds to the JSON property ownershipEffective


170
171
172
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 170

def ownership_effective
  @ownership_effective
end

#ownership_mineGoogle::Apis::YoutubePartnerV1::RightsOwnership

Corresponds to the JSON property ownershipMine


175
176
177
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 175

def ownership_mine
  @ownership_mine
end

#statusString

The asset's status. Corresponds to the JSON property status

Returns:

  • (String)

180
181
182
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 180

def status
  @status
end

#time_createdDateTime

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

Returns:

  • (DateTime)

186
187
188
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 186

def time_created
  @time_created
end

#typeString

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

Returns:

  • (String)

194
195
196
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 194

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 201

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