class Google::Apis::YoutubePartnerV1::AssetSnippet

Attributes

custom_id[RW]

Custom ID assigned by the content owner to this asset. Corresponds to the JSON property `customId` @return [String]

id[RW]

An ID that YouTube assigns and uses to uniquely identify the asset. Corresponds to the JSON property `id` @return [String]

isrc[RW]

The ISRC (International Standard Recording Code) for this asset. Corresponds to the JSON property `isrc` @return [String]

iswc[RW]

The ISWC (International Standard Musical Work Code) for this asset. Corresponds to the JSON property `iswc` @return [String]

kind[RW]

The type of the API resource. For this operation, the value is youtubePartner# assetSnippet. Corresponds to the JSON property `kind` @return [String]

time_created[RW]

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]

title[RW]

Title of this asset. Corresponds to the JSON property `title` @return [String]

type[RW]

The asset's type. This value determines which metadata fields might be included in the metadata object. Corresponds to the JSON property `type` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/youtube_partner_v1/classes.rb, line 532
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/youtube_partner_v1/classes.rb, line 537
def update!(**args)
  @custom_id = args[:custom_id] if args.key?(:custom_id)
  @id = args[:id] if args.key?(:id)
  @isrc = args[:isrc] if args.key?(:isrc)
  @iswc = args[:iswc] if args.key?(:iswc)
  @kind = args[:kind] if args.key?(:kind)
  @time_created = args[:time_created] if args.key?(:time_created)
  @title = args[:title] if args.key?(:title)
  @type = args[:type] if args.key?(:type)
end