Skip to content

GroupRoutePointGetDNISListRequest

Bases: OCIRequest

Get a list of DNIS that are configured for a Route Point. The response is either GroupRoutePointGetDNISListResponse or ErrorResponse.

Attributes:

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

    Attributes:

        service_user_id (str):

    """

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

Responses

Bases: OCIDataResponse

Response to the GroupRoutePointGetDNISListRequest. Contains a table with column headings: "Name", "Phone Number", "Extension".

Attributes:

display_dnis_number (bool):

display_dnis_name (bool):

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

    Attributes:

        display_dnis_number (bool):

        display_dnis_name (bool):

        dnis_table (OCITable):

    """

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

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

    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 GroupRoutePointGetDNISListRequest

client = Client()

command = GroupRoutePointGetDNISListRequest(
    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("GroupRoutePointGetDNISListRequest",
    service_user_id=...,
)

print(response)