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

Constructor Details

#initialize(**args) ⇒ AssetRelationship

Returns a new instance of AssetRelationship.



319
320
321
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 319

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)


300
301
302
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 300

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)


306
307
308
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 306

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)


312
313
314
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 312

def kind
  @kind
end

#parent_asset_idString

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

Returns:

  • (String)


317
318
319
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 317

def parent_asset_id
  @parent_asset_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



324
325
326
327
328
329
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 324

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