Skip to content

FileResource

Bases: OCIType

Represents either an existing file for the application server to use, or the contents of a file to transfer.

Attributes:

source_file_name (Optional[str]):

file_content (Optional[int]):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class FileResource(OCIType):
    """Represents either an existing file for the application server to use, or
        the contents of a file to transfer.

    Attributes:

        source_file_name (Optional[str]):

        file_content (Optional[int]):

    """

    source_file_name: Optional[str] = field(
        default=None, metadata={"alias": "sourceFileName"}
    )

    file_content: Optional[int] = field(default=None, metadata={"alias": "fileContent"})