SystemLanguageModifyRequest22
Bases: OCIRequest
Request to modify a language properties in the system. If the becomeDefaultLanguage element is present, the language in this request becomes the default language for the system. The response is either a SuccessResponse or an ErrorResponse.
Attributes:
language (str):
become_default_language (Optional[bool]):
locale (Optional[str]):
encoding (Optional[str]):
Source code in src/mercury_ocip/commands/commands.py
| @dataclass(kw_only=True)
class SystemLanguageModifyRequest22(OCIRequest):
"""Request to modify a language properties in the system.
If the becomeDefaultLanguage element is present, the language in this request becomes
the default language for the system.
The response is either a SuccessResponse or an ErrorResponse.
Attributes:
language (str):
become_default_language (Optional[bool]):
locale (Optional[str]):
encoding (Optional[str]):
"""
language: str = field(metadata={"alias": "language"})
become_default_language: Optional[bool] = field(
default=None, metadata={"alias": "becomeDefaultLanguage"}
)
locale: Optional[str] = field(default=None, metadata={"alias": "locale"})
encoding: Optional[str] = field(default=None, metadata={"alias": "encoding"})
|
Responses
Bases: OCIResponseSource code in src/mercury_ocip/commands/base_command.py
| class SuccessResponse(OCIResponse):
pass
|
Bases: OCIResponseSource code in src/mercury_ocip/commands/base_command.py
| class ErrorResponse(OCIResponse):
errorCode: Optional[int] = None
summary: str
summaryEnglish: str
detail: Optional[str] = None
|
Example Usage
from mercury_ocip.client import Client
from mercury_ocip.commands import SystemLanguageModifyRequest22
client = Client()
command = SystemLanguageModifyRequest22(
language=...,
become_default_language=...,
locale=...,
encoding=...,
)
response = client.command(command)
print(response)
Example 2 with Raw Command
from mercury_ocip.client import Client
client = Client()
response = client.raw_command("SystemLanguageModifyRequest22",
language=...,
become_default_language=...,
locale=...,
encoding=...,
)
print(response)