Skip to content

GroupDepartmentGetRequest

Bases: OCIRequest

Request the attributes of a department. The response is either a GroupDepartmentGetResponse or an ErrorResponse.

Attributes:

service_provider_id (str):

group_id (str):

department_name (str):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class GroupDepartmentGetRequest(OCIRequest):
    """Request the attributes of a department.
        The response is either a GroupDepartmentGetResponse or an ErrorResponse.

    Attributes:

        service_provider_id (str):

        group_id (str):

        department_name (str):

    """

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

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

    department_name: str = field(metadata={"alias": "departmentName"})

Responses

Bases: OCIDataResponse

Response to GroupDepartmentGetRequest. The following elements are only used in AS data mode: callingLineIdName caliingLineIdPhoneNumber

Attributes:

parent_department_key (Optional[DepartmentKey]):

calling_line_id_name (Optional[str]):

calling_line_id_phone_number (Optional[str]):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class GroupDepartmentGetResponse(OCIDataResponse):
    """Response to GroupDepartmentGetRequest.
        The following elements are only used in AS data mode:
          callingLineIdName
          caliingLineIdPhoneNumber

    Attributes:

        parent_department_key (Optional[DepartmentKey]):

        calling_line_id_name (Optional[str]):

        calling_line_id_phone_number (Optional[str]):

    """

    parent_department_key: Optional[DepartmentKey] = field(
        default=None, metadata={"alias": "parentDepartmentKey"}
    )

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

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

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 GroupDepartmentGetRequest

client = Client()

command = GroupDepartmentGetRequest(
    service_provider_id=...,
    group_id=...,
    department_name=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip_fast.client import Client

client = Client()

response = client.raw_command("GroupDepartmentGetRequest",
    service_provider_id=...,
    group_id=...,
    department_name=...,
)

print(response)