SystemLegacyAutomaticCallbackModifyLineTypeRequest
Bases: OCIRequest
Modifies the system's legacy automatic callback line type attributes. The response is either a SuccessResponse or an ErrorResponse.
Attributes:
line_type (str):
match_action (Optional[str]):
no_match_action (Optional[str]):
Source code in src/mercury_ocip/commands/commands.py
| @dataclass(kw_only=True)
class SystemLegacyAutomaticCallbackModifyLineTypeRequest(OCIRequest):
"""Modifies the system's legacy automatic callback line type attributes.
The response is either a SuccessResponse or an ErrorResponse.
Attributes:
line_type (str):
match_action (Optional[str]):
no_match_action (Optional[str]):
"""
line_type: str = field(metadata={"alias": "lineType"})
match_action: Optional[str] = field(default=None, metadata={"alias": "matchAction"})
no_match_action: Optional[str] = field(
default=None, metadata={"alias": "noMatchAction"}
)
|
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 SystemLegacyAutomaticCallbackModifyLineTypeRequest
client = Client()
command = SystemLegacyAutomaticCallbackModifyLineTypeRequest(
line_type=...,
match_action=...,
no_match_action=...,
)
response = client.command(command)
print(response)
Example 2 with Raw Command
from mercury_ocip.client import Client
client = Client()
response = client.raw_command("SystemLegacyAutomaticCallbackModifyLineTypeRequest",
line_type=...,
match_action=...,
no_match_action=...,
)
print(response)