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.



361
362
363
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 361

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)


342
343
344
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 342

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)


348
349
350
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 348

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)


354
355
356
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 354

def kind
  @kind
end

#parent_asset_idString

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

Returns:

  • (String)


359
360
361
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 359

def parent_asset_id
  @parent_asset_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



366
367
368
369
370
371
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 366

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