Skip to content

Update API Client#83

Open
etserend wants to merge 3 commits into
mainfrom
chore/splunk-ao-automation/update-api-client-2026-07-14-29355396309
Open

Update API Client#83
etserend wants to merge 3 commits into
mainfrom
chore/splunk-ao-automation/update-api-client-2026-07-14-29355396309

Conversation

@etserend

Copy link
Copy Markdown
Contributor

Fix any breaking changes if this pull request fails to deploy

@etserend etserend added the dependencies Pull requests that update a dependency file label Jul 14, 2026
@shuningc

Copy link
Copy Markdown
Contributor

Summary

This PR picks up the automated API client update from 717f3b1 (Update API Client, July 14) and fixes the hand-written SDK code that broke as a result of two breaking changes in the
regenerated client:

  1. IntegrationName renamed to IntegrationProvider

The upstream OpenAPI spec renamed the IntegrationName enum to IntegrationProvider (file integration_name.py → integration_provider.py, LABELSTUDIO value also removed). Updated all references
in:

  • src/splunk_ao/integration.py
  • src/splunk_ao/provider.py
  • src/splunk_ao/resources/models/init.py
  • tests/test_integration.py
  1. type_ removed from ProjectUpdate

The new spec dropped type_ from the ProjectUpdate model. Updated:

  • src/splunk_ao/project.py — removed type_=self.type from the ProjectUpdate constructor call and the corresponding response attribute sync
  • tests/test_project.py — removed the updated_response.type_ = RESOURCES_UNSET setup that is no longer valid

Testing

All 1819 tests pass locally (invoke test-report-xml). Type check clean (invoke type-check).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants