SystemApplicationControllerAddRequest
Bases: OCIRequest
Add an application controller, which is a server where remote application resides and controls the Route Point. The response is either a SuccessResponse or an ErrorResponse.
Attributes:
name (str):
subscriber_id (str):
channel_set_id (str):
Source code in src/mercury_ocip/commands/commands.py
| @dataclass(kw_only=True)
class SystemApplicationControllerAddRequest(OCIRequest):
"""Add an application controller, which is a server where remote
application resides and controls the Route Point.
The response is either a SuccessResponse or an ErrorResponse.
Attributes:
name (str):
subscriber_id (str):
channel_set_id (str):
"""
name: str = field(metadata={"alias": "name"})
subscriber_id: str = field(metadata={"alias": "subscriberId"})
channel_set_id: str = field(metadata={"alias": "channelSetId"})
|
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 SystemApplicationControllerAddRequest
client = Client()
command = SystemApplicationControllerAddRequest(
name=...,
subscriber_id=...,
channel_set_id=...,
)
response = client.command(command)
print(response)
Example 2 with Raw Command
from mercury_ocip.client import Client
client = Client()
response = client.raw_command("SystemApplicationControllerAddRequest",
name=...,
subscriber_id=...,
channel_set_id=...,
)
print(response)