Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2025, 2026
# SPDX-License-Identifier: MPL-2.0

blank_issues_enabled: false
contact_links:
- name: HCP Terraform and Terraform Enterprise Troubleshooting and Feature Requests
Expand Down
3 changes: 3 additions & 0 deletions bin/publish-pypi.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/env bash
# Copyright IBM Corp. 2025, 2026
# SPDX-License-Identifier: MPL-2.0

set -euo pipefail


Expand Down
3 changes: 3 additions & 0 deletions examples/agent.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2025, 2026
# SPDX-License-Identifier: MPL-2.0

"""Simple Individual Agent operations example with the TFE Python SDK.

This example demonstrates:
Expand Down
3 changes: 3 additions & 0 deletions examples/agent_pool.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2025, 2026
# SPDX-License-Identifier: MPL-2.0

"""Simple Agent Pool operations example with the TFE Python SDK.

This example demonstrates:
Expand Down
3 changes: 3 additions & 0 deletions examples/apply.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2025, 2026
# SPDX-License-Identifier: MPL-2.0

from __future__ import annotations

import argparse
Expand Down
3 changes: 3 additions & 0 deletions examples/configuration_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/env python3
# Copyright IBM Corp. 2025, 2026
# SPDX-License-Identifier: MPL-2.0

"""
Complete Configuration Version Testing Suite

Expand Down
3 changes: 3 additions & 0 deletions examples/notification_configuration.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/env python3
# Copyright IBM Corp. 2025, 2026
# SPDX-License-Identifier: MPL-2.0

"""
Example usage of Notification Configuration API

Expand Down
3 changes: 3 additions & 0 deletions examples/oauth_client.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/env python3
# Copyright IBM Corp. 2025, 2026
# SPDX-License-Identifier: MPL-2.0

"""
Complete OAuth Client Testing Suite

Expand Down
3 changes: 3 additions & 0 deletions examples/oauth_token.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/env python3
# Copyright IBM Corp. 2025, 2026
# SPDX-License-Identifier: MPL-2.0

"""
Complete OAuth Token Testing Suite

Expand Down
3 changes: 3 additions & 0 deletions examples/org.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2025, 2026
# SPDX-License-Identifier: MPL-2.0

from pytfe import TFEClient, TFEConfig
from pytfe.models import (
DataRetentionPolicyDeleteOlderSetOptions,
Expand Down
3 changes: 3 additions & 0 deletions examples/organization_membership.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/env python3
# Copyright IBM Corp. 2025, 2026
# SPDX-License-Identifier: MPL-2.0

"""
Example and test script for organization membership list functionality.

Expand Down
3 changes: 3 additions & 0 deletions examples/plan.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2025, 2026
# SPDX-License-Identifier: MPL-2.0

from __future__ import annotations

import argparse
Expand Down
3 changes: 3 additions & 0 deletions examples/policy.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/env python3
# Copyright IBM Corp. 2025, 2026
# SPDX-License-Identifier: MPL-2.0

"""Policy management example for python-tfe SDK.

This example demonstrates how to use the Policy API to:
Expand Down
3 changes: 3 additions & 0 deletions examples/policy_check.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2025, 2026
# SPDX-License-Identifier: MPL-2.0

from __future__ import annotations

import argparse
Expand Down
3 changes: 3 additions & 0 deletions examples/policy_evaluation.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2025, 2026
# SPDX-License-Identifier: MPL-2.0

from __future__ import annotations

import argparse
Expand Down
3 changes: 3 additions & 0 deletions examples/policy_set.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2025, 2026
# SPDX-License-Identifier: MPL-2.0

from __future__ import annotations

import argparse
Expand Down
3 changes: 3 additions & 0 deletions examples/policy_set_parameter.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2025, 2026
# SPDX-License-Identifier: MPL-2.0

from __future__ import annotations

import argparse
Expand Down
3 changes: 3 additions & 0 deletions examples/project.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2025, 2026
# SPDX-License-Identifier: MPL-2.0

"""
Comprehensive Integration Test for python-tfe Projects CRUD Operations

Expand Down
3 changes: 3 additions & 0 deletions examples/query_run.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/env python3
# Copyright IBM Corp. 2025, 2026
# SPDX-License-Identifier: MPL-2.0

"""
Query Run Individual Function Tests

Expand Down
3 changes: 3 additions & 0 deletions examples/registry_module.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/env python3
# Copyright IBM Corp. 2025, 2026
# SPDX-License-Identifier: MPL-2.0

"""
Complete Registry Module Testing Suite

Expand Down
3 changes: 3 additions & 0 deletions examples/registry_provider.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/env python3
# Copyright IBM Corp. 2025, 2026
# SPDX-License-Identifier: MPL-2.0

"""
Registry Provider Individual Function Tests

Expand Down
3 changes: 3 additions & 0 deletions examples/registry_provider_version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2025, 2026
# SPDX-License-Identifier: MPL-2.0

from __future__ import annotations

import argparse
Expand Down
3 changes: 3 additions & 0 deletions examples/reserved_tag_key.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/env python3
# Copyright IBM Corp. 2025, 2026
# SPDX-License-Identifier: MPL-2.0

"""Reserved Tag Keys Example Script.

This script demonstrates how to use the Reserved Tag Keys API to:
Expand Down
3 changes: 3 additions & 0 deletions examples/run.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2025, 2026
# SPDX-License-Identifier: MPL-2.0

from __future__ import annotations

import argparse
Expand Down
3 changes: 3 additions & 0 deletions examples/run_events.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2025, 2026
# SPDX-License-Identifier: MPL-2.0

"""Run Events Example for python-tfe SDK

This example demonstrates how to work with run events using the python-tfe SDK.
Expand Down
3 changes: 3 additions & 0 deletions examples/run_task.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2025, 2026
# SPDX-License-Identifier: MPL-2.0

"""
Terraform Cloud/Enterprise Run Task Management Example

Expand Down
3 changes: 3 additions & 0 deletions examples/run_trigger.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2025, 2026
# SPDX-License-Identifier: MPL-2.0

"""
Terraform Cloud/Enterprise Run Trigger Management Example

Expand Down
3 changes: 3 additions & 0 deletions examples/ssh_keys.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/env python3
# Copyright IBM Corp. 2025, 2026
# SPDX-License-Identifier: MPL-2.0

"""SSH Keys Example Script.

This script demonstrates how to use the SSH Keys API to:
Expand Down
3 changes: 3 additions & 0 deletions examples/state_versions.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2025, 2026
# SPDX-License-Identifier: MPL-2.0

from __future__ import annotations

import argparse
Expand Down
3 changes: 3 additions & 0 deletions examples/variable_sets.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2025, 2026
# SPDX-License-Identifier: MPL-2.0

"""Example demonstrating Variable Set operations with the TFE Python SDK.

This example shows how to:
Expand Down
3 changes: 3 additions & 0 deletions examples/variables.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/env python3
# Copyright IBM Corp. 2025, 2026
# SPDX-License-Identifier: MPL-2.0

"""
Comprehensive example testing all variable functions in TFE workspace.
Tests: list, list_all, create, read, update, and delete operations.
Expand Down
3 changes: 3 additions & 0 deletions examples/workspace.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2025, 2026
# SPDX-License-Identifier: MPL-2.0

"""
Terraform Cloud/Enterprise Workspace Management Example

Expand Down
3 changes: 3 additions & 0 deletions examples/workspace_resources.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2025, 2026
# SPDX-License-Identifier: MPL-2.0

"""Example script for working with workspace resources in Terraform Enterprise.

This script demonstrates how to list resources within a workspace.
Expand Down
3 changes: 3 additions & 0 deletions src/pytfe/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2025, 2026
# SPDX-License-Identifier: MPL-2.0

from . import errors, models
from .client import TFEClient
from .config import TFEConfig
Expand Down
3 changes: 3 additions & 0 deletions src/pytfe/_http.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2025, 2026
# SPDX-License-Identifier: MPL-2.0

from __future__ import annotations

import re
Expand Down
3 changes: 3 additions & 0 deletions src/pytfe/_jsonapi.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2025, 2026
# SPDX-License-Identifier: MPL-2.0

from __future__ import annotations

from typing import Any
Expand Down
3 changes: 3 additions & 0 deletions src/pytfe/client.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2025, 2026
# SPDX-License-Identifier: MPL-2.0

from __future__ import annotations

from ._http import HTTPTransport
Expand Down
3 changes: 3 additions & 0 deletions src/pytfe/config.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2025, 2026
# SPDX-License-Identifier: MPL-2.0

from __future__ import annotations

import os
Expand Down
3 changes: 3 additions & 0 deletions src/pytfe/errors.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2025, 2026
# SPDX-License-Identifier: MPL-2.0

from __future__ import annotations

from typing import Any
Expand Down
3 changes: 3 additions & 0 deletions src/pytfe/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2025, 2026
# SPDX-License-Identifier: MPL-2.0

from __future__ import annotations

# ── Agent & Agent Pools ────────────────────────────────────────────────────────
Expand Down
3 changes: 3 additions & 0 deletions src/pytfe/models/agent.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2025, 2026
# SPDX-License-Identifier: MPL-2.0

"""Agent and Agent Pool models for the Python TFE SDK.

This module contains Pydantic models for Terraform Enterprise/Cloud agents and agent pools,
Expand Down
3 changes: 3 additions & 0 deletions src/pytfe/models/apply.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2025, 2026
# SPDX-License-Identifier: MPL-2.0

from __future__ import annotations

from datetime import datetime
Expand Down
3 changes: 3 additions & 0 deletions src/pytfe/models/comment.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2025, 2026
# SPDX-License-Identifier: MPL-2.0

from __future__ import annotations

from pydantic import BaseModel, ConfigDict, Field
Expand Down
3 changes: 3 additions & 0 deletions src/pytfe/models/common.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2025, 2026
# SPDX-License-Identifier: MPL-2.0

from __future__ import annotations

from typing import Any
Expand Down
3 changes: 3 additions & 0 deletions src/pytfe/models/configuration_version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2025, 2026
# SPDX-License-Identifier: MPL-2.0

from __future__ import annotations

from enum import Enum
Expand Down
3 changes: 3 additions & 0 deletions src/pytfe/models/cost_estimate.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2025, 2026
# SPDX-License-Identifier: MPL-2.0

from __future__ import annotations

from datetime import datetime
Expand Down
3 changes: 3 additions & 0 deletions src/pytfe/models/data_retention_policy.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2025, 2026
# SPDX-License-Identifier: MPL-2.0

from __future__ import annotations

from pydantic import BaseModel
Expand Down
3 changes: 3 additions & 0 deletions src/pytfe/models/notification_configuration.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2025, 2026
# SPDX-License-Identifier: MPL-2.0

"""
Notification Configuration Models

Expand Down
3 changes: 3 additions & 0 deletions src/pytfe/models/oauth_client.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2025, 2026
# SPDX-License-Identifier: MPL-2.0

from __future__ import annotations

from datetime import datetime
Expand Down
3 changes: 3 additions & 0 deletions src/pytfe/models/oauth_token.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2025, 2026
# SPDX-License-Identifier: MPL-2.0

from __future__ import annotations

from datetime import datetime
Expand Down
3 changes: 3 additions & 0 deletions src/pytfe/models/organization.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2025, 2026
# SPDX-License-Identifier: MPL-2.0

from __future__ import annotations

from datetime import datetime
Expand Down
3 changes: 3 additions & 0 deletions src/pytfe/models/organization_membership.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2025, 2026
# SPDX-License-Identifier: MPL-2.0

from __future__ import annotations

from enum import Enum
Expand Down
3 changes: 3 additions & 0 deletions src/pytfe/models/plan.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2025, 2026
# SPDX-License-Identifier: MPL-2.0

from __future__ import annotations

from datetime import datetime
Expand Down
3 changes: 3 additions & 0 deletions src/pytfe/models/plan_export.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2025, 2026
# SPDX-License-Identifier: MPL-2.0

from __future__ import annotations

from pydantic import BaseModel, ConfigDict
Expand Down
3 changes: 3 additions & 0 deletions src/pytfe/models/policy.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2025, 2026
# SPDX-License-Identifier: MPL-2.0

from __future__ import annotations

from datetime import datetime
Expand Down
Loading
Loading