Skip to content

Location Hierarchy Assignments Parsers

flowtask.components.Workday.parsers.location_hierarchy_assignments_parsers

Parsers for Location Hierarchy Organization Assignments data.

parse_location_hierarchy_assignment

parse_location_hierarchy_assignment(assignment_data)

Parse location hierarchy organization assignment data.

Parameters:

Name Type Description Default
assignment_data Dict[str, Any]

Raw assignment data from the API (already Location_Hierarchy_Organization_Assignments_Data)

required

Returns:

Type Description
LocationHierarchyAssignment

Parsed LocationHierarchyAssignment object

parse_location_hierarchy_assignments_data

parse_location_hierarchy_assignments_data(raw_data)

Main parser function for location hierarchy assignments data.

Parameters:

Name Type Description Default
raw_data Dict[str, Any]

Raw data from the API response

required

Returns:

Type Description
Dict[str, Any]

Dictionary with parsed assignments and metadata

parse_location_hierarchy_assignments_response

parse_location_hierarchy_assignments_response(response_data)

Parse the complete location hierarchy assignments response.

Parameters:

Name Type Description Default
response_data Dict[str, Any]

Raw response data from the API

required

Returns:

Type Description
List[LocationHierarchyAssignment]

List of parsed LocationHierarchyAssignment objects

parse_location_hierarchy_reference

parse_location_hierarchy_reference(reference_data)

Parse location hierarchy reference data.

Parameters:

Name Type Description Default
reference_data Dict[str, Any]

Raw location hierarchy reference data

required

Returns:

Type Description
LocationHierarchyReference

Parsed LocationHierarchyReference object

parse_organization_assignment

parse_organization_assignment(assignment_data)

Parse organization assignment by type data.

Parameters:

Name Type Description Default
assignment_data Dict[str, Any]

Raw organization assignment data

required

Returns:

Type Description
OrganizationAssignment

Parsed OrganizationAssignment object

parse_organization_reference

parse_organization_reference(org_data)

Parse organization reference data.

Parameters:

Name Type Description Default
org_data Dict[str, Any]

Raw organization reference data

required

Returns:

Type Description
OrganizationReference

Parsed OrganizationReference object

parse_organization_type_reference

parse_organization_type_reference(type_data)

Parse organization type reference data.

Parameters:

Name Type Description Default
type_data Dict[str, Any]

Raw organization type reference data

required

Returns:

Type Description
OrganizationTypeReference

Parsed OrganizationTypeReference object

parse_response_results

parse_response_results(response_data)

Parse response results (pagination info).

Parameters:

Name Type Description Default
response_data Dict[str, Any]

Raw response data from the API

required

Returns:

Type Description
Dict[str, Any]

Dictionary with pagination information