Skip to content

GroupCallCenterCurrentAndPastDNISGetListRequest

Bases: OCIRequest

Request to get all the past and current DNIS for the Call Center for the group. The response is either GroupCallCenterCurrentAndPastDNISGetListResponse or ErrorResponse.

Attributes:

service_provider_id (str):

group_id (str):

service_user_id (str):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class GroupCallCenterCurrentAndPastDNISGetListRequest(OCIRequest):
    """Request to get all the past and current DNIS for the Call Center for the group.
        The response is either GroupCallCenterCurrentAndPastDNISGetListResponse or ErrorResponse.

    Attributes:

        service_provider_id (str):

        group_id (str):

        service_user_id (str):

    """

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

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

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

Responses

Bases: OCIDataResponse

Response to the GroupCallCenterCurrentAndPastDNISGetListRequest.

Attributes:

name (Optional[List[str]]):

deleted_name (Optional[List[str]]):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class GroupCallCenterCurrentAndPastDNISGetListResponse(OCIDataResponse):
    """Response to the GroupCallCenterCurrentAndPastDNISGetListRequest.

    Attributes:

        name (Optional[List[str]]):

        deleted_name (Optional[List[str]]):

    """

    name: Optional[List[str]] = field(default=None, metadata={"alias": "name"})

    deleted_name: Optional[List[str]] = field(
        default=None, metadata={"alias": "deletedName"}
    )

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 GroupCallCenterCurrentAndPastDNISGetListRequest

client = Client()

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

print(response)