Skip to content

GroupRouteListEnterpriseTrunkNumberPrefixGetSummaryListRequest

Bases: OCIRequest

Get the list of assigned and unassigned enterprise trunknumber prefixes in a group. The response is either GroupRouteListEnterpriseTrunkNumberPrefixGetSummaryListResponse or ErrorResponse.

Attributes:

service_provider_id (str):

group_id (str):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class GroupRouteListEnterpriseTrunkNumberPrefixGetSummaryListRequest(OCIRequest):
    """Get the list of assigned and unassigned enterprise trunknumber prefixes in a group.
        The response is either GroupRouteListEnterpriseTrunkNumberPrefixGetSummaryListResponse or ErrorResponse.

    Attributes:

        service_provider_id (str):

        group_id (str):

    """

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

    group_id: str = field(metadata={"alias": "groupId"})

Responses

Bases: OCIDataResponse

Response to GroupRouteListEnterpriseTrunkNumberRangeGetSummaryListRequest. The response contains a table with columns: "Number Prefix", "User Id", "Last Name", "First Name", "Hiragana Last Name", "Hiragana First Name", "Phone Number", "Extension", "Department", "Email Address", "Enterprise Trunk"","Is Active", "Extension Range Start" and "Extension Range End". The "User Id", "Last Name", "First Name", "Hiragana Last Name", "Hiragana First Name", "Phone Number", "Extension", "Department" and "Email Address" columns contains the corresponding attributes of the user possessing the number range. The "Enterprise Trunk" column contains the enterprise trunk the user possessing the number range belongs to. The "Is Active" column indicates if the number prefix has been activated. The "Extension Range Start" column indicates the start for an extension range. The "Extension Range End" column indicates the end for an extension range.

Attributes:

number_prefix_summary_table (OCITable):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class GroupRouteListEnterpriseTrunkNumberPrefixGetSummaryListResponse(OCIDataResponse):
    """Response to GroupRouteListEnterpriseTrunkNumberRangeGetSummaryListRequest.
        The response contains a table with columns: \"Number Prefix\", \"User Id\",
        \"Last Name\", \"First Name\", \"Hiragana Last Name\", \"Hiragana First Name\", \"Phone Number\", \"Extension\",
        \"Department\", \"Email Address\", \"Enterprise Trunk\"\",\"Is Active\", \"Extension Range Start\" and \"Extension Range End\".
        The \"User Id\", \"Last Name\", \"First Name\", \"Hiragana Last Name\", \"Hiragana First Name\", \"Phone Number\",
        \"Extension\", \"Department\" and \"Email Address\" columns contains the corresponding attributes of the user possessing the number range.
        The \"Enterprise Trunk\" column contains the enterprise trunk the user possessing the number range belongs to.
        The \"Is Active\" column indicates if the number prefix has been activated.
        The \"Extension Range Start\" column indicates the start for an extension range.
        The \"Extension Range End\" column indicates the end for an extension range.

    Attributes:

        number_prefix_summary_table (OCITable):

    """

    number_prefix_summary_table: OCITable = field(
        metadata={"alias": "numberPrefixSummaryTable"}
    )

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 GroupRouteListEnterpriseTrunkNumberPrefixGetSummaryListRequest

client = Client()

command = GroupRouteListEnterpriseTrunkNumberPrefixGetSummaryListRequest(
    service_provider_id=...,
    group_id=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip_fast.client import Client

client = Client()

response = client.raw_command("GroupRouteListEnterpriseTrunkNumberPrefixGetSummaryListRequest",
    service_provider_id=...,
    group_id=...,
)

print(response)