MCPcopy Create free account
hub / github.com/LaunchPlatform/beanhub-cli / sync

Function sync

beanhub_cli/internal_api/api/connect/get_sync_batch.py:93–120  ·  view source on GitHub ↗

Get a sync batch Args: username (str): repo_name (str): sync_batch_id (UUID): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. httpx.TimeoutException: If the request tak

(
    username: str,
    repo_name: str,
    sync_batch_id: UUID,
    *,
    client: AuthenticatedClient,
)

Source from the content-addressed store, hash-verified

91
92
93def sync(
94 username: str,
95 repo_name: str,
96 sync_batch_id: UUID,
97 *,
98 client: AuthenticatedClient,
99) -> Optional[Union[GetSyncBatchResponse, HTTPValidationError]]:
100 """Get a sync batch
101
102 Args:
103 username (str):
104 repo_name (str):
105 sync_batch_id (UUID):
106
107 Raises:
108 errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
109 httpx.TimeoutException: If the request takes longer than Client.timeout.
110
111 Returns:
112 Union[GetSyncBatchResponse, HTTPValidationError]
113 """
114
115 return sync_detailed(
116 username=username,
117 repo_name=repo_name,
118 sync_batch_id=sync_batch_id,
119 client=client,
120 ).parsed
121
122
123async def asyncio_detailed(

Callers

nothing calls this directly

Calls 1

sync_detailedFunction · 0.70

Tested by

no test coverage detected