Skip to content

API Reference parrot_tools.interfaces.workday.config

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot_tools.interfaces.workday.config

View source

WorkdayConfig — credential + tenant configuration for WorkdayService.

Each optional credential field falls back to the matching WORKDAY_* setting from parrot.conf when left None (G3/C6).

WSDL routing helper

get_wsdl_path(operation_type) maps a Workday operation key to the correct WSDL file path. The mapping is lifted verbatim from the two wsdl_mapping blocks in workday.py (original source) (lines 339-360 and 500-517) and unified into a single canonical dict.

Known discrepancy between the two original blocks

get_organization:

  • __init__ (line 345): WORKDAY_WSDL_HUMAN_RESOURCES ← used here
  • helper method (line 506): WORKDAY_WSDL_PATH ← superseded The __init__ block is the authoritative runtime path (executed on every component instantiation), so this module uses WORKDAY_WSDL_HUMAN_RESOURCES for get_organization.

Class WorkdayConfig

Explicit Workday credentials / tenant; each optional field falls back to the matching WORKDAY_* in parrot.conf when left None.

Usage::

# All-defaults — picks up credentials from the environment / conf.
cfg = WorkdayConfig()

# Explicit override — useful for multi-tenant scenarios or tests.
cfg = WorkdayConfig(client_id="my-id", client_secret="my-secret")

Resolved values are exposed via the resolved_* computed properties so that callers always get a definite value regardless of whether an explicit override was provided.

Fields:

Field Type Default Description
client_id str | None None
client_secret str | None None
token_url str | None None
refresh_token str | None None
report_username str | None None
report_password str | None None
tenant str | None None
report_owner str | None None
workday_url str | None None
timeout int 300
env str | None None

Attributes:

Attribute Type Description
resolved_env str The effective environment (explicit env or WORKDAY_ENV).
resolved_is_sandbox bool True when targeting the sandbox/implementation tenant.
resolved_client_id str | None Explicit client_id or the env-appropriate WORKDAY_CLIENT_ID[_IMPL].
resolved_client_secret str | None Explicit client_secret or the env-appropriate WORKDAY_CLIENT_SECRET[_IMPL].
resolved_token_url str | None Explicit token_url or the env-appropriate WORKDAY_TOKEN_URL[_IMPL].
resolved_refresh_token str | None Explicit refresh_token or the env-appropriate WORKDAY_REFRESH_TOKEN[_IMPL].
resolved_report_username str | None Return the explicit report_username or fall back to WORKDAY_REPORT_USERNAME.
resolved_report_password str | None Return the explicit report_password or fall back to WORKDAY_REPORT_PASSWORD.
resolved_tenant str | None Return the explicit tenant or fall back to WORKDAY_DEFAULT_TENANT.
resolved_report_owner str | None Return the explicit report_owner or fall back to WORKDAY_REPORT_OWNER.
resolved_workday_url str | None Return the explicit workday_url or fall back to WORKDAY_URL.

Function get_wsdl_path

Return the WSDL path for a given Workday operation type.

Falls back to WORKDAY_WSDL_PATH (staffing WSDL) for unknown types, matching the behaviour of workday.py:360 and workday.py:517.

get_wsdl_path(operation_type: str) -> Any

Parameter Type Default Description
operation_type str The Workday operation key (e.g. "get_workers").

Returns: Any — The resolved WSDL path (str or pathlib.Path depending on whether the value was loaded from the config file or the fallback).

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally