Class: Google::Apis::YoutubePartnerV1::AssetRelationship
- Inherits:
-
Object
- Object
- Google::Apis::YoutubePartnerV1::AssetRelationship
- 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
-
#child_asset_id ⇒ String
The ID of the child (contained) asset.
-
#id ⇒ String
A value that YouTube assigns and uses to uniquely identify the asset relationship.
-
#kind ⇒ String
The type of the API resource.
-
#parent_asset_id ⇒ String
The ID of the parent (containing) asset.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AssetRelationship
constructor
A new instance of AssetRelationship.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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_id ⇒ String
The ID of the child (contained) asset.
Corresponds to the JSON property childAssetId
375 376 377 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 375 def child_asset_id @child_asset_id end |
#id ⇒ String
A value that YouTube assigns and uses to uniquely identify the asset
relationship.
Corresponds to the JSON property id
381 382 383 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 381 def id @id end |
#kind ⇒ String
The type of the API resource. For this resource, the value is youtubePartner#
assetRelationship.
Corresponds to the JSON property kind
387 388 389 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 387 def kind @kind end |
#parent_asset_id ⇒ String
The ID of the parent (containing) asset.
Corresponds to the JSON property parentAssetId
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 |