Execute a sync() API call.
- Version
- project: str, mandatory.
- package: str, mandatory.
- version: str, mandatory.
- auto_adapt_to_throttle: bool, default False, optional.
None
Returns the 'requests.result' of the sync() API call.
May raise exceptions on issues with the HTTP connection or wrong parameters:
- SpectraAssureInvalidAction: our exception.
- any other exception from requests.get().
def sync_version(
api_client: SpectraAssureApiOperations,
project: str,
package: str,
version: str,
) -> None:
rr = api_client.sync(
project=project,
package=package,
version=version,
)
print("Sync Version", rr.status_code, rr.text)
return int(rr.status_code)```