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,
)
| 91 | |
| 92 | |
| 93 | def 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 | |
| 123 | async def asyncio_detailed( |
nothing calls this directly
no test coverage detected