inttegro.async_resources.file_references
Generated public typing surface. Do not edit by hand.
1# Generated by scripts/generate_async_resources.py; do not edit by hand. 2"""File reference reconciliation resource.""" 3from __future__ import annotations 4from ..async_http_client import AsyncHttpClient 5 6class AsyncFileReferences: 7 """Reconcile Inttegro resource file references. 8 9 Access this service as ``AsyncInttegroClient.file_references``. Methods use the client's shared transport and return the typed resource shapes documented below. 10 """ 11 12 def __init__(self, http: AsyncHttpClient): 13 self.http = http 14 15 async def reconcile(self, payload: dict): 16 """Replace the live file references for a Inttegro resource. 17 18 API endpoint: ``/file_references/reconcile``. 19 20 Args: 21 payload (dict): Typed request object or equivalent request mapping for this operation. 22 23 Returns: 24 ``Reconciliation`` decoded from the documented response shape. 25 26 Raises: 27 APIError: The API rejected the request or could not complete it. 28 NetworkError: The request could not reach the Inttegro API. 29 TimeoutError: The configured request deadline elapsed. 30 """ 31 return await self.http.post('/file_references/reconcile', payload)
class
AsyncFileReferences:
7class AsyncFileReferences: 8 """Reconcile Inttegro resource file references. 9 10 Access this service as ``AsyncInttegroClient.file_references``. Methods use the client's shared transport and return the typed resource shapes documented below. 11 """ 12 13 def __init__(self, http: AsyncHttpClient): 14 self.http = http 15 16 async def reconcile(self, payload: dict): 17 """Replace the live file references for a Inttegro resource. 18 19 API endpoint: ``/file_references/reconcile``. 20 21 Args: 22 payload (dict): Typed request object or equivalent request mapping for this operation. 23 24 Returns: 25 ``Reconciliation`` decoded from the documented response shape. 26 27 Raises: 28 APIError: The API rejected the request or could not complete it. 29 NetworkError: The request could not reach the Inttegro API. 30 TimeoutError: The configured request deadline elapsed. 31 """ 32 return await self.http.post('/file_references/reconcile', payload)
Reconcile Inttegro resource file references.
Access this service as AsyncInttegroClient.file_references. Methods use the client's shared transport and return the typed resource shapes documented below.
async def
reconcile( self, payload: inttegro.file_reference.ReconcileRequest) -> inttegro.file_reference.Reconciliation:
16 async def reconcile(self, payload: dict): 17 """Replace the live file references for a Inttegro resource. 18 19 API endpoint: ``/file_references/reconcile``. 20 21 Args: 22 payload (dict): Typed request object or equivalent request mapping for this operation. 23 24 Returns: 25 ``Reconciliation`` decoded from the documented response shape. 26 27 Raises: 28 APIError: The API rejected the request or could not complete it. 29 NetworkError: The request could not reach the Inttegro API. 30 TimeoutError: The configured request deadline elapsed. 31 """ 32 return await self.http.post('/file_references/reconcile', payload)
Replace the live file references for a Inttegro resource.
API endpoint: /file_references/reconcile.
Arguments:
- payload (dict): Typed request object or equivalent request mapping for this operation.
Returns:
Reconciliationdecoded from the documented response shape.
Raises:
- APIError: The API rejected the request or could not complete it.
- NetworkError: The request could not reach the Inttegro API.
- TimeoutError: The configured request deadline elapsed.