Skip to content

EnterpriseCallCenterAgentUnavailableCodeGetRequest

Bases: OCIRequest

Get a Call Center Agent Unavailable Code. The response is either EnterpriseCallCenterAgentUnavailableCodeGetResponse or ErrorResponse.

Attributes:

service_provider_id (str):

code (str):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class EnterpriseCallCenterAgentUnavailableCodeGetRequest(OCIRequest):
    """Get a Call Center Agent Unavailable Code.
        The response is either EnterpriseCallCenterAgentUnavailableCodeGetResponse or ErrorResponse.

    Attributes:

        service_provider_id (str):

        code (str):

    """

    service_provider_id: str = field(metadata={"alias": "serviceProviderId"})

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

Responses

Bases: OCIDataResponse

Response to the EnterpriseCallCenterAgentUnavailableCodeGetRequest

Attributes:

is_active (bool):

description (Optional[str]):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class EnterpriseCallCenterAgentUnavailableCodeGetResponse(OCIDataResponse):
    """Response to the EnterpriseCallCenterAgentUnavailableCodeGetRequest

    Attributes:

        is_active (bool):

        description (Optional[str]):

    """

    is_active: bool = field(metadata={"alias": "isActive"})

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

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 EnterpriseCallCenterAgentUnavailableCodeGetRequest

client = Client()

command = EnterpriseCallCenterAgentUnavailableCodeGetRequest(
    service_provider_id=...,
    code=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip_fast.client import Client

client = Client()

response = client.raw_command("EnterpriseCallCenterAgentUnavailableCodeGetRequest",
    service_provider_id=...,
    code=...,
)

print(response)