Skip to content

SystemLanguageAddRequest22

Bases: OCIRequest

Request to add a language to the system. The response is either a SuccessResponse or an ErrorResponse.

Attributes:

language (str):

locale (str):

encoding (str):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class SystemLanguageAddRequest22(OCIRequest):
    """Request to add a language to the system.
        The response is either a SuccessResponse or an ErrorResponse.

    Attributes:

        language (str):

        locale (str):

        encoding (str):

    """

    language: str = field(metadata={"alias": "language"})

    locale: str = field(metadata={"alias": "locale"})

    encoding: str = field(metadata={"alias": "encoding"})

Responses

Bases: OCIResponse

Source code in src/mercury_ocip_fast/commands/base_command.py
class SuccessResponse(OCIResponse):
    pass

Bases: OCIResponse

Source code in src/mercury_ocip_fast/commands/base_command.py
class ErrorResponse(OCIResponse):
    errorCode: Optional[int] = None
    summary: str
    summaryEnglish: str
    detail: Optional[str] = None

Example Usage

from mercury_ocip_fast.client import Client
from mercury_ocip_fast.commands import SystemLanguageAddRequest22

client = Client()

command = SystemLanguageAddRequest22(
    language=...,
    locale=...,
    encoding=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip_fast.client import Client

client = Client()

response = client.raw_command("SystemLanguageAddRequest22",
    language=...,
    locale=...,
    encoding=...,
)

print(response)