Skip to content

GroupCallCenterGetDNISListRequest

Bases: OCIRequest

Get a list of DNIS that are configured for a Call Center. The response is either GroupCallCenterGetDNISListResponse or ErrorResponse.

Attributes:

service_user_id (str):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class GroupCallCenterGetDNISListRequest(OCIRequest):
    """Get a list of DNIS that are configured for a Call Center.
        The response is either GroupCallCenterGetDNISListResponse or ErrorResponse.

    Attributes:

        service_user_id (str):

    """

    service_user_id: str = field(metadata={"alias": "serviceUserId"})

Responses

Bases: OCIDataResponse

Response to the GroupCallCenterGetDNISListResponse. Contains a table with column headings: "Name", "Phone Number", "Extension", "Priority", "Is Primary DNIS".

Attributes:

display_dnis_number (bool):

display_dnis_name (bool):

promote_calls_from_priority1to0 (bool):

promote_calls_from_priority2to1 (bool):

promote_calls_from_priority3to2 (bool):

promote_calls_from_priority1to0_seconds (int):

promote_calls_from_priority2to1_seconds (int):

promote_calls_from_priority3to2_seconds (int):

dnis_table (OCITable):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class GroupCallCenterGetDNISListResponse(OCIDataResponse):
    """Response to the GroupCallCenterGetDNISListResponse.
        Contains a table with column headings: \"Name\", \"Phone Number\", \"Extension\", \"Priority\", \"Is Primary DNIS\".

    Attributes:

        display_dnis_number (bool):

        display_dnis_name (bool):

        promote_calls_from_priority1to0 (bool):

        promote_calls_from_priority2to1 (bool):

        promote_calls_from_priority3to2 (bool):

        promote_calls_from_priority1to0_seconds (int):

        promote_calls_from_priority2to1_seconds (int):

        promote_calls_from_priority3to2_seconds (int):

        dnis_table (OCITable):

    """

    display_dnis_number: bool = field(metadata={"alias": "displayDNISNumber"})

    display_dnis_name: bool = field(metadata={"alias": "displayDNISName"})

    promote_calls_from_priority1to0: bool = field(
        metadata={"alias": "promoteCallsFromPriority1to0"}
    )

    promote_calls_from_priority2to1: bool = field(
        metadata={"alias": "promoteCallsFromPriority2to1"}
    )

    promote_calls_from_priority3to2: bool = field(
        metadata={"alias": "promoteCallsFromPriority3to2"}
    )

    promote_calls_from_priority1to0_seconds: int = field(
        metadata={"alias": "promoteCallsFromPriority1to0Seconds"}
    )

    promote_calls_from_priority2to1_seconds: int = field(
        metadata={"alias": "promoteCallsFromPriority2to1Seconds"}
    )

    promote_calls_from_priority3to2_seconds: int = field(
        metadata={"alias": "promoteCallsFromPriority3to2Seconds"}
    )

    dnis_table: OCITable = field(metadata={"alias": "dnisTable"})

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 GroupCallCenterGetDNISListRequest

client = Client()

command = GroupCallCenterGetDNISListRequest(
    service_user_id=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip.client import Client

client = Client()

response = client.raw_command("GroupCallCenterGetDNISListRequest",
    service_user_id=...,
)

print(response)