Documentation Home Page OPAL-RT Dashboard Home Page
Pour la documentation en FRANÇAIS, utilisez l'outil de traduction de votre navigateur Chrome, Edge ou Safari. Voir un exemple.

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »


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

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.

delete()

Delete the current link.

to_json(fields, values)

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

property id: str

The ID of the resource.

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

  • No labels