Class: Google::Apis::YoutubePartnerV1::AssetRelationship

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

Returns a new instance of AssetRelationship.



394
395
396
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 394

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

Instance Attribute Details

#child_asset_idString

The ID of the child (contained) asset. Corresponds to the JSON property childAssetId

Returns:

  • (String)


375
376
377
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 375

def child_asset_id
  @child_asset_id
end

#idString

A value that YouTube assigns and uses to uniquely identify the asset relationship. Corresponds to the JSON property id

Returns:

  • (String)


381
382
383
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 381

def id
  @id
end

#kindString

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

Returns:

  • (String)


387
388
389
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 387

def kind
  @kind
end

#parent_asset_idString

The ID of the parent (containing) asset. Corresponds to the JSON property parentAssetId

Returns:

  • (String)


392
393
394
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 392

def parent_asset_id
  @parent_asset_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



399
400
401
402
403
404
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 399

def update!(**args)
  @child_asset_id = args[:child_asset_id] if args.key?(:child_asset_id)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @parent_asset_id = args[:parent_asset_id] if args.key?(:parent_asset_id)
end