Skip to content

GroupCallCenterModifyDNISParametersRequest

Bases: OCIRequest

Modify the setting that are configured for all the DNIS in a Call Center. The response is either SuccessResponse or ErrorResponse.

Attributes:

service_user_id (str):

display_dnis_number (Optional[bool]):

display_dnis_name (Optional[bool]):

promote_calls_from_priority1to0 (Optional[bool]):

promote_calls_from_priority2to1 (Optional[bool]):

promote_calls_from_priority3to2 (Optional[bool]):

promote_calls_from_priority1to0_seconds (Optional[int]):

promote_calls_from_priority2to1_seconds (Optional[int]):

promote_calls_from_priority3to2_seconds (Optional[int]):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class GroupCallCenterModifyDNISParametersRequest(OCIRequest):
    """Modify the setting that are configured for all the DNIS in a Call Center.
      The response is either SuccessResponse or ErrorResponse.

    Attributes:

        service_user_id (str):

        display_dnis_number (Optional[bool]):

        display_dnis_name (Optional[bool]):

        promote_calls_from_priority1to0 (Optional[bool]):

        promote_calls_from_priority2to1 (Optional[bool]):

        promote_calls_from_priority3to2 (Optional[bool]):

        promote_calls_from_priority1to0_seconds (Optional[int]):

        promote_calls_from_priority2to1_seconds (Optional[int]):

        promote_calls_from_priority3to2_seconds (Optional[int]):

    """

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

    display_dnis_number: Optional[bool] = field(
        default=None, metadata={"alias": "displayDNISNumber"}
    )

    display_dnis_name: Optional[bool] = field(
        default=None, metadata={"alias": "displayDNISName"}
    )

    promote_calls_from_priority1to0: Optional[bool] = field(
        default=None, metadata={"alias": "promoteCallsFromPriority1to0"}
    )

    promote_calls_from_priority2to1: Optional[bool] = field(
        default=None, metadata={"alias": "promoteCallsFromPriority2to1"}
    )

    promote_calls_from_priority3to2: Optional[bool] = field(
        default=None, metadata={"alias": "promoteCallsFromPriority3to2"}
    )

    promote_calls_from_priority1to0_seconds: Optional[int] = field(
        default=None, metadata={"alias": "promoteCallsFromPriority1to0Seconds"}
    )

    promote_calls_from_priority2to1_seconds: Optional[int] = field(
        default=None, metadata={"alias": "promoteCallsFromPriority2to1Seconds"}
    )

    promote_calls_from_priority3to2_seconds: Optional[int] = field(
        default=None, metadata={"alias": "promoteCallsFromPriority3to2Seconds"}
    )

Responses

Bases: OCIResponse

Source code in src/mercury_ocip/commands/base_command.py
class SuccessResponse(OCIResponse):
    pass

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 GroupCallCenterModifyDNISParametersRequest

client = Client()

command = GroupCallCenterModifyDNISParametersRequest(
    service_user_id=...,
    display_dnis_number=...,
    display_dnis_name=...,
    promote_calls_from_priority1to0=...,
    promote_calls_from_priority2to1=...,
    promote_calls_from_priority3to2=...,
    promote_calls_from_priority1to0_seconds=...,
    promote_calls_from_priority2to1_seconds=...,
    promote_calls_from_priority3to2_seconds=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip.client import Client

client = Client()

response = client.raw_command("GroupCallCenterModifyDNISParametersRequest",
    service_user_id=...,
    display_dnis_number=...,
    display_dnis_name=...,
    promote_calls_from_priority1to0=...,
    promote_calls_from_priority2to1=...,
    promote_calls_from_priority3to2=...,
    promote_calls_from_priority1to0_seconds=...,
    promote_calls_from_priority2to1_seconds=...,
    promote_calls_from_priority3to2_seconds=...,
)

print(response)