Skip to content

SystemOCICallControlApplicationAddRequest22

Bases: OCIRequest

Add an application to the OCI call control application list. The response is either SuccessResponse or ErrorResponse.

Attributes:

application_id (str):

enable_system_wide (bool):

notification_timeout_seconds (int):

description (Optional[str]):

max_event_channels_per_set (int):

unresponsive_channel_set_grace_period_seconds (int):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class SystemOCICallControlApplicationAddRequest22(OCIRequest):
    """Add an application to the OCI call control application list.
        The response is either SuccessResponse or ErrorResponse.

    Attributes:

        application_id (str):

        enable_system_wide (bool):

        notification_timeout_seconds (int):

        description (Optional[str]):

        max_event_channels_per_set (int):

        unresponsive_channel_set_grace_period_seconds (int):

    """

    application_id: str = field(metadata={"alias": "applicationId"})

    enable_system_wide: bool = field(metadata={"alias": "enableSystemWide"})

    notification_timeout_seconds: int = field(
        metadata={"alias": "notificationTimeoutSeconds"}
    )

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

    max_event_channels_per_set: int = field(
        metadata={"alias": "maxEventChannelsPerSet"}
    )

    unresponsive_channel_set_grace_period_seconds: int = field(
        metadata={"alias": "unresponsiveChannelSetGracePeriodSeconds"}
    )

Responses

Bases: OCIResponse

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

Bases: OCIResponse

Source 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 SystemOCICallControlApplicationAddRequest22

client = Client()

command = SystemOCICallControlApplicationAddRequest22(
    application_id=...,
    enable_system_wide=...,
    notification_timeout_seconds=...,
    description=...,
    max_event_channels_per_set=...,
    unresponsive_channel_set_grace_period_seconds=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip.client import Client

client = Client()

response = client.raw_command("SystemOCICallControlApplicationAddRequest22",
    application_id=...,
    enable_system_wide=...,
    notification_timeout_seconds=...,
    description=...,
    max_event_channels_per_set=...,
    unresponsive_channel_set_grace_period_seconds=...,
)

print(response)