Skip to content

GroupCallCenterGetDNISAgentListRequest

Bases: OCIRequest

Get a list of agent who selected the DNIS as the outgoing call. The response is either GroupCallCenterGetDNISAgentListResponse or ErrorResponse.

Attributes:

dnis_key (DNISKey):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class GroupCallCenterGetDNISAgentListRequest(OCIRequest):
    """Get a list of agent who selected the DNIS as the outgoing call.
        The response is either GroupCallCenterGetDNISAgentListResponse or ErrorResponse.

    Attributes:

        dnis_key (DNISKey):

    """

    dnis_key: DNISKey = field(metadata={"alias": "dnisKey"})

Responses

Bases: OCIDataResponse

Response to the GroupCallCenterGetDNISAgentListRequest. Contains a table with column headings: "User Id", "Last Name", "First Name", "Hiragana Last Name", "Hiragana First Name", "Phone Number", "Extension", "Department", "Email Address".

Attributes:

agent_table (OCITable):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class GroupCallCenterGetDNISAgentListResponse(OCIDataResponse):
    """Response to the GroupCallCenterGetDNISAgentListRequest.
        Contains a table with column headings: \"User Id\", \"Last Name\",
        \"First Name\", \"Hiragana Last Name\", \"Hiragana First Name\",
        \"Phone Number\", \"Extension\", \"Department\", \"Email Address\".

    Attributes:

        agent_table (OCITable):

    """

    agent_table: OCITable = field(metadata={"alias": "agentTable"})

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 GroupCallCenterGetDNISAgentListRequest

client = Client()

command = GroupCallCenterGetDNISAgentListRequest(
    dnis_key=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip.client import Client

client = Client()

response = client.raw_command("GroupCallCenterGetDNISAgentListRequest",
    dnis_key=...,
)

print(response)