EnterpriseDepartmentGetListRequest
Bases: OCIRequest
Request a list of departments in an enterprise. You may request only the list of departments defined at the enterprise-level, or you may request the list of all departments in the enterprise including all the departments defined within the groups inside the enterprise. The response is either EnterpriseDepartmentGetListResponse or ErrorResponse.
Attributes:
enterprise_id (str):
include_group_departments (bool):
Source code in src/mercury_ocip_fast/commands/commands.py
Responses
Bases: OCIDataResponse
Response to EnterpriseDepartmentGetListRequest. 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
Example Usage
from mercury_ocip_fast.client import Client
from mercury_ocip_fast.commands import EnterpriseDepartmentGetListRequest
client = Client()
command = EnterpriseDepartmentGetListRequest(
enterprise_id=...,
include_group_departments=...,
)
response = client.command(command)
print(response)