inttegro.file_reference
Models, requests, and enums for Inttegro file reference operations.
Import public types from the singular inttegro.file_reference namespace. Related request types, response shapes, and string-backed enums are grouped here for discovery.
1"""Models, requests, and enums for Inttegro file reference operations. 2 3Import public types from the singular ``inttegro.file_reference`` namespace. Related request types, response shapes, and string-backed enums are grouped here for discovery.""" 4 5from importlib import import_module 6from typing import TYPE_CHECKING, Any 7 8if TYPE_CHECKING: 9 from .input import Input as Input 10 from .reconcile_request import ReconcileRequest as ReconcileRequest 11 from .reconciliation import Reconciliation as Reconciliation 12 13 14_EXPORTS: dict[str, tuple[str, str]] = { 15 "Input": ("inttegro.file_reference.input", "Input"), 16 "ReconcileRequest": ("inttegro.file_reference.reconcile_request", "ReconcileRequest"), 17 "Reconciliation": ("inttegro.file_reference.reconciliation", "Reconciliation"), 18} 19 20__all__ = [ 21 "Input", 22 "ReconcileRequest", 23 "Reconciliation", 24] 25 26 27def __getattr__(name: str) -> Any: 28 """Load a public resource type on first access.""" 29 try: 30 module_name, attribute_name = _EXPORTS[name] 31 except KeyError: 32 raise AttributeError(f"module {__name__!r} has no attribute {name!r}") from None 33 value = getattr(import_module(module_name), attribute_name) 34 globals()[name] = value 35 return value
12@dataclass(frozen=True, slots=True, kw_only=True) 13class Input(ApiRequest): 14 """Parameters accepted by the input operation. 15 16 This is an immutable, keyword-only request object. ``to_dict()`` uses 17 the documented wire names, omits fields left as ``UNSET``, serializes 18 string-backed enums by value, and requires timezone-aware datetimes. 19 20 API contract schema: ``FileReferenceInput``. 21 """ 22 reference: str | UnsetType = field(default=UNSET) 23 """Caller-supplied file or file link reference. Optional. Python type: ``str``; wire name: ``reference``; JSON type: string""" 24 reference_kind: str | UnsetType = field(default=UNSET) 25 """Caller-defined reference kind; `file` and `file_link` are recommended. Optional. Python type: ``str``; wire name: ``reference_kind``; JSON type: string""" 26 purpose: str | UnsetType = field(default=UNSET) 27 """The purpose associated with this input. Optional. Python type: ``str``; wire name: ``purpose``; JSON type: string""" 28 file_id: str 29 """Non-blank file ID after trimming. Required. Python type: ``str``; wire name: ``file_id``; JSON type: string. Constraints: minimum length 1""" 30 field: str 31 """Non-blank resource field after trimming. Required. Python type: ``str``; wire name: ``field``; JSON type: string. Constraints: minimum length 1"""
Parameters accepted by the input operation.
This is an immutable, keyword-only request object. to_dict() uses
the documented wire names, omits fields left as UNSET, serializes
string-backed enums by value, and requires timezone-aware datetimes.
API contract schema: FileReferenceInput.
Caller-supplied file or file link reference. Optional. Python type: str; wire name: reference; JSON type: string
Caller-defined reference kind; file and file_link are recommended. Optional. Python type: str; wire name: reference_kind; JSON type: string
The purpose associated with this input. Optional. Python type: str; wire name: purpose; JSON type: string
Non-blank file ID after trimming. Required. Python type: str; wire name: file_id; JSON type: string. Constraints: minimum length 1
Non-blank resource field after trimming. Required. Python type: str; wire name: field; JSON type: string. Constraints: minimum length 1
12@dataclass(frozen=True, slots=True, kw_only=True) 13class ReconcileRequest(ApiRequest): 14 """Parameters accepted by the reconcile request operation. 15 16 This is an immutable, keyword-only request object. ``to_dict()`` uses 17 the documented wire names, omits fields left as ``UNSET``, serializes 18 string-backed enums by value, and requires timezone-aware datetimes. 19 20 API contract schema: ``FileReferenceReconcileRequest``. 21 """ 22 references: list[FileReferenceInput] | UnsetType = field(default=UNSET) 23 """The references associated with this reconcile request. Optional. Python type: ``list[FileReferenceInput]``; wire name: ``references``; JSON type: array of object (FileReferenceInput) values""" 24 resource_type: str 25 """Non-blank resource type after trimming. Required. Python type: ``str``; wire name: ``resource_type``; JSON type: string. Constraints: minimum length 1""" 26 resource_id: str 27 """Non-blank resource ID after trimming. Required. Python type: ``str``; wire name: ``resource_id``; JSON type: string. Constraints: minimum length 1"""
Parameters accepted by the reconcile request operation.
This is an immutable, keyword-only request object. to_dict() uses
the documented wire names, omits fields left as UNSET, serializes
string-backed enums by value, and requires timezone-aware datetimes.
API contract schema: FileReferenceReconcileRequest.
The references associated with this reconcile request. Optional. Python type: list[FileReferenceInput]; wire name: references; JSON type: array of object (FileReferenceInput) values
Non-blank resource type after trimming. Required. Python type: str; wire name: resource_type; JSON type: string. Constraints: minimum length 1
Non-blank resource ID after trimming. Required. Python type: str; wire name: resource_id; JSON type: string. Constraints: minimum length 1
13@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 14class Reconciliation(ApiModel): 15 """Typed reconciliation data in the file reference resource namespace. 16 17 Instances are immutable API responses. ``from_dict()`` decodes nested 18 objects, string-backed enums, and timezone-aware ISO-8601 timestamps; 19 ``to_dict()`` returns the corresponding JSON-compatible wire shape. 20 Fields not returned by the API remain absent and can still be queried 21 through mapping-style access. 22 23 API contract schema: ``FileReferenceReconciliation``. 24 """ 25 reconciled: Literal[True] = field(init=False) 26 """The reconciled associated with this reconciliation. Required. Python type: ``Literal[True]``; wire name: ``reconciled``; JSON type: boolean. Constraints: allowed values ``True``"""
Typed reconciliation data in the file reference resource namespace.
Instances are immutable API responses. from_dict() decodes nested
objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
to_dict() returns the corresponding JSON-compatible wire shape.
Fields not returned by the API remain absent and can still be queried
through mapping-style access.
API contract schema: FileReferenceReconciliation.
The reconciled associated with this reconciliation. Required. Python type: Literal[True]; wire name: reconciled; JSON type: boolean. Constraints: allowed values True