Skip to content

EnterpriseDepartmentGetAvailableParentListRequest

Bases: OCIRequest

Get a list of enterprise level departments in an enterprise that could be the parent of the specified department. The department itself and all its decendents are not eligible to be the parent department. The response is either EnterpriseDepartmentGetAvailableParentListResponse or ErrorResponse.

Attributes:

enterprise_id (str):

department_name (str):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class EnterpriseDepartmentGetAvailableParentListRequest(OCIRequest):
    """Get a list of enterprise level departments in an enterprise that could be the parent of the
        specified department. The department itself and all its decendents are not eligible to be
        the parent department.
        The response is either EnterpriseDepartmentGetAvailableParentListResponse or ErrorResponse.

    Attributes:

        enterprise_id (str):

        department_name (str):

    """

    enterprise_id: str = field(metadata={"alias": "enterpriseId"})

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

Responses

Bases: OCIDataResponse

Response to EnterpriseDepartmentGetAvailableParentListRequest. The response includes two parallel arrays of department keys and department display names.

Attributes:

department_key (Optional[List[DepartmentKey]]):

full_path_name (Optional[List[str]]):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class EnterpriseDepartmentGetAvailableParentListResponse(OCIDataResponse):
    """Response to EnterpriseDepartmentGetAvailableParentListRequest.
        The response includes two parallel arrays of department keys and department display names.

    Attributes:

        department_key (Optional[List[DepartmentKey]]):

        full_path_name (Optional[List[str]]):

    """

    department_key: Optional[List[DepartmentKey]] = field(
        default=None, metadata={"alias": "departmentKey"}
    )

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

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 EnterpriseDepartmentGetAvailableParentListRequest

client = Client()

command = EnterpriseDepartmentGetAvailableParentListRequest(
    enterprise_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("EnterpriseDepartmentGetAvailableParentListRequest",
    enterprise_id=...,
    department_name=...,
)

print(response)