The page you navigated to () does not exist, so we brought you to the closest page to it.
You have switched from the to the variant of this site. There is no equivalent of . We have taken you to the closest page in the variant.
Cluster
Package: flyteplugins.union.remote
Represents a Union cluster.
Parameters
class Cluster(
pb2: ClusterPb2,
)| Parameter | Type | Description |
|---|---|---|
pb2 |
ClusterPb2 |
Properties
| Property | Type | Description |
|---|---|---|
health |
None |
|
health_display |
None |
|
monitoring_info |
None |
|
name |
None |
|
organization |
None |
|
state |
None |
|
tunnel_status |
None |
|
tunnel_status_display |
None |
|
tunnel_url |
None |
|
unhealthy_reasons |
None |
Methods
| Method | Description |
|---|---|
get() |
Get a cluster by name. |
listall() |
List all clusters in the organization. |
to_dict() |
Convert the object to a JSON-serializable dictionary. |
to_json() |
Convert the object to a JSON string. |
get()
Default invocation is sync and will block.
To call it asynchronously, use the function .aio() on the method name itself, e.g.,:
result = await Cluster.get.aio().
def get(
cls,
name: str,
) -> ClusterGet a cluster by name.
| Parameter | Type | Description |
|---|---|---|
cls |
||
name |
str |
listall()
Default invocation is sync and will block.
To call it asynchronously, use the function .aio() on the method name itself, e.g.,:
result = await Cluster.listall.aio().
def listall(
cls,
limit: int,
) -> AsyncIterator[Cluster]List all clusters in the organization.
| Parameter | Type | Description |
|---|---|---|
cls |
||
limit |
int |
Maximum number of clusters to return. |
to_dict()
def to_dict()Convert the object to a JSON-serializable dictionary.
Returns: dict: A dictionary representation of the object.
to_json()
def to_json()Convert the object to a JSON string.
Returns: str: A JSON string representation of the object.