Class: Google::Apis::YoutubePartnerV1::AssetSnippet

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

Returns a new instance of AssetSnippet.



570
571
572
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 570

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

Instance Attribute Details

#custom_idString

Custom ID assigned by the content owner to this asset. Corresponds to the JSON property customId

Returns:

  • (String)


530
531
532
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 530

def custom_id
  @custom_id
end

#idString

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

Returns:

  • (String)


535
536
537
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 535

def id
  @id
end

#isrcString

The ISRC (International Standard Recording Code) for this asset. Corresponds to the JSON property isrc

Returns:

  • (String)


540
541
542
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 540

def isrc
  @isrc
end

#iswcString

The ISWC (International Standard Musical Work Code) for this asset. Corresponds to the JSON property iswc

Returns:

  • (String)


545
546
547
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 545

def iswc
  @iswc
end

#kindString

The type of the API resource. For this operation, the value is youtubePartner# assetSnippet. Corresponds to the JSON property kind

Returns:

  • (String)


551
552
553
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 551

def kind
  @kind
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)


557
558
559
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 557

def time_created
  @time_created
end

#titleString

Title of this asset. Corresponds to the JSON property title

Returns:

  • (String)


562
563
564
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 562

def title
  @title
end

#typeString

The asset's type. This value determines which metadata fields might be included in the metadata object. Corresponds to the JSON property type

Returns:

  • (String)


568
569
570
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 568

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



575
576
577
578
579
580
581
582
583
584
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 575

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