Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Panel
bgColorunset
Anchor
opalone._internal.links.Link
opalone._internal.links.Link
class opalone._internal.links.Link(link_id, model_id=None)
Panel
bgColorunset

Bases: Resource

A link is a visual relationship between two block Ports. It has a user-defined route and contains properties inferred from connected ports.

Parameters:
  • link_id (str) – The ID of the link.

  • model_id (str) – The ID of the model that owns this link.

Panel
bgColorunset
Anchor
opalone._internal.links.Link.delete
opalone._internal.links.Link.delete
delete()
Panel
bgColorunset

Delete the current link.

Panel
bgColorunset
Anchor
opalone._internal.links.Link.to_json
opalone._internal.links.Link.to_json
to_json(fields, values)
Panel
bgColorunset

Convert this resource to a serialized JSON representation.

Parameters:
  • fields (tuple[str] | list[str]) – Fields to include.

  • values (tuple[object] | list[object]) – The value of each field

Returns:

The serialized JSON representation.

Return type:

str

Panel
bgColorunset
Anchor
opalone._internal.links.Link.id
opalone._internal.links.Link.id
property id: str
Panel
bgColorunset

The ID of the resource.

This property is read-only, it cannot be modified.