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.
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_id ⇒ String
The ID of the child (contained) asset.
Corresponds to the JSON property childAssetId
300 301 302 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 300 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
306 307 308 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 306 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
312 313 314 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 312 def kind @kind end |
#parent_asset_id ⇒ String
The ID of the parent (containing) asset.
Corresponds to the JSON property parentAssetId
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 |