Skip to content

EnterpriseRouteListEnterpriseTrunkNumberRangeGetSummaryListRequest

Bases: OCIRequest

Request a summary table of all enterprise trunk number ranges in the enterprise. The response is either EnterpriseRouteListEnterpriseTrunkNumberRangeGetSummaryListResponse or ErrorResponse.

Attributes:

service_provider_id (str):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class EnterpriseRouteListEnterpriseTrunkNumberRangeGetSummaryListRequest(OCIRequest):
    """Request a summary table of all enterprise trunk number ranges in the enterprise.
        The response is either EnterpriseRouteListEnterpriseTrunkNumberRangeGetSummaryListResponse or ErrorResponse.

    Attributes:

        service_provider_id (str):

    """

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

Responses

Bases: OCIDataResponse

Response to EnterpriseRouteListEnterpriseTrunkNumberRangeGetSummaryListRequest. The response contains a table with columns: "Number Range Start", "Number Range End", "Group Id", "User Id", "Last Name", "First Name", "Hiragana Last Name", "Hiragana First Name", "Phone Number", "Extension", "Department", "Email Address", "Enterprise Trunk", "Is Active" and "Extension Length". 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 range has been activated. The "Extension Length" column indicates the length of the extension for the enterpris trunk number range.

Attributes:

number_range_summary_table (OCITable):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class EnterpriseRouteListEnterpriseTrunkNumberRangeGetSummaryListResponse(
    OCIDataResponse
):
    """Response to EnterpriseRouteListEnterpriseTrunkNumberRangeGetSummaryListRequest.
        The response contains a table with columns: \"Number Range Start\", \"Number Range End\", \"Group Id\", \"User Id\",
        \"Last Name\", \"First Name\", \"Hiragana Last Name\", \"Hiragana First Name\", \"Phone Number\", \"Extension\", \"Department\",
        \"Email Address\", \"Enterprise Trunk\", \"Is Active\" and \"Extension Length\".
        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 range has been activated.
        The \"Extension Length\" column indicates the length of the extension for the enterpris trunk number range.

    Attributes:

        number_range_summary_table (OCITable):

    """

    number_range_summary_table: OCITable = field(
        metadata={"alias": "numberRangeSummaryTable"}
    )

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 EnterpriseRouteListEnterpriseTrunkNumberRangeGetSummaryListRequest

client = Client()

command = EnterpriseRouteListEnterpriseTrunkNumberRangeGetSummaryListRequest(
    service_provider_id=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip.client import Client

client = Client()

response = client.raw_command("EnterpriseRouteListEnterpriseTrunkNumberRangeGetSummaryListRequest",
    service_provider_id=...,
)

print(response)