Class: Google::Apis::YoutubePartnerV1::AssetSnippet
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::YoutubePartnerV1::AssetSnippet
 
- 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
- 
  
    
      #custom_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Custom ID assigned by the content owner to this asset. 
- 
  
    
      #id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    An ID that YouTube assigns and uses to uniquely identify the asset. 
- 
  
    
      #isrc  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The ISRC (International Standard Recording Code) for this asset. 
- 
  
    
      #iswc  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The ISWC (International Standard Musical Work Code) for this asset. 
- 
  
    
      #kind  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The type of the API resource. 
- 
  
    
      #time_created  ⇒ DateTime 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The date and time the asset was created. 
- 
  
    
      #title  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Title of this asset. 
- 
  
    
      #type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The asset's type. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ AssetSnippet 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of AssetSnippet. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ AssetSnippet
Returns a new instance of AssetSnippet
| 603 604 605 | # File 'generated/google/apis/youtube_partner_v1/classes.rb', line 603 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#custom_id ⇒ String
Custom ID assigned by the content owner to this asset.
Corresponds to the JSON property customId
| 563 564 565 | # File 'generated/google/apis/youtube_partner_v1/classes.rb', line 563 def custom_id @custom_id end | 
#id ⇒ String
An ID that YouTube assigns and uses to uniquely identify the asset.
Corresponds to the JSON property id
| 568 569 570 | # File 'generated/google/apis/youtube_partner_v1/classes.rb', line 568 def id @id end | 
#isrc ⇒ String
The ISRC (International Standard Recording Code) for this asset.
Corresponds to the JSON property isrc
| 573 574 575 | # File 'generated/google/apis/youtube_partner_v1/classes.rb', line 573 def isrc @isrc end | 
#iswc ⇒ String
The ISWC (International Standard Musical Work Code) for this asset.
Corresponds to the JSON property iswc
| 578 579 580 | # File 'generated/google/apis/youtube_partner_v1/classes.rb', line 578 def iswc @iswc end | 
#kind ⇒ String
The type of the API resource. For this operation, the value is youtubePartner#
assetSnippet.
Corresponds to the JSON property kind
| 584 585 586 | # File 'generated/google/apis/youtube_partner_v1/classes.rb', line 584 def kind @kind 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
| 590 591 592 | # File 'generated/google/apis/youtube_partner_v1/classes.rb', line 590 def time_created @time_created end | 
#title ⇒ String
Title of this asset.
Corresponds to the JSON property title
| 595 596 597 | # File 'generated/google/apis/youtube_partner_v1/classes.rb', line 595 def title @title end | 
#type ⇒ String
The asset's type. This value determines which metadata fields might be
included in the metadata object.
Corresponds to the JSON property type
| 601 602 603 | # File 'generated/google/apis/youtube_partner_v1/classes.rb', line 601 def type @type end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 608 609 610 611 612 613 614 615 616 617 | # File 'generated/google/apis/youtube_partner_v1/classes.rb', line 608 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 |