(session: SessionDep, ctx: TenantContextDep, id: int)
| 311 | |
| 312 | @router.get("/{id}", response_model=ClusterPublic, response_model_exclude_none=True) |
| 313 | async def get_cluster(session: SessionDep, ctx: TenantContextDep, id: int): |
| 314 | cluster = await Cluster.one_by_id( |
| 315 | session, |
| 316 | id, |
| 317 | options=CLUSTER_LOAD_OPTIONS, |
| 318 | ) |
| 319 | assert_cluster_visible(ctx, cluster, not_found_message=f"cluster {id} not found") |
| 320 | return cluster |
| 321 | |
| 322 | |
| 323 | def create_update_check( |
nothing calls this directly
no test coverage detected