Skip to content

Add organization audit configuration API support#154

Open
NimishaShrivastava-dev wants to merge 5 commits into
hashicorp:next-1.0.0from
NimishaShrivastava-dev:feature/organization-audit-configurations-api-specs
Open

Add organization audit configuration API support#154
NimishaShrivastava-dev wants to merge 5 commits into
hashicorp:next-1.0.0from
NimishaShrivastava-dev:feature/organization-audit-configurations-api-specs

Conversation

@NimishaShrivastava-dev
Copy link
Copy Markdown
Contributor

@NimishaShrivastava-dev NimishaShrivastava-dev commented May 12, 2026

Add organization audit configuration API support

Summary

This PR adds organization audit configuration API support to the Python SDK, based on the existing Go SDK behavior.

Implemented operations:

  • Read an organization audit configuration
  • Send a test audit event for an organization
  • Update an organization audit configuration

Changes

Added new model definitions for organization audit configuration payloads and options.

Added a new resource service with:

  • read(organization)
  • test(organization)
  • update(organization, options)

Updated the client to expose:

  • client.organization_audit_configuration

Added:

  • Unit tests for success and validation paths
  • Runnable example script demonstrating end-to-end usage

Files Added / Updated

  • src/pytfe/models/organization_audit_configuration.py
  • src/pytfe/resources/organization_audit_configuration.py
  • tests/units/test_organization_audit_configuration.py
  • examples/organization_audit_configuration.py
  • src/pytfe/client.py

Validation

Unit Tests

python -m pytest tests/units/test_organization_audit_configuration.py -v

Result:

  • All tests passed successfully

Example Execution

python examples/organization_audit_configuration.py

Result:

  • Read, test, and update operations executed successfully against a real organization configuration.

image image

@NimishaShrivastava-dev NimishaShrivastava-dev requested a review from a team as a code owner May 12, 2026 06:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant