diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index f6782d3..36f20e0 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -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 diff --git a/bin/publish-pypi.sh b/bin/publish-pypi.sh index 9185a93..17270db 100755 --- a/bin/publish-pypi.sh +++ b/bin/publish-pypi.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + set -euo pipefail diff --git a/examples/agent.py b/examples/agent.py index c80eb62..3f046c7 100644 --- a/examples/agent.py +++ b/examples/agent.py @@ -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: diff --git a/examples/agent_pool.py b/examples/agent_pool.py index bbaf14e..82b91ec 100644 --- a/examples/agent_pool.py +++ b/examples/agent_pool.py @@ -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: diff --git a/examples/apply.py b/examples/apply.py index 44fd443..ea72dfa 100644 --- a/examples/apply.py +++ b/examples/apply.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations import argparse diff --git a/examples/configuration_version.py b/examples/configuration_version.py index 87fa6d1..cb85be5 100644 --- a/examples/configuration_version.py +++ b/examples/configuration_version.py @@ -1,4 +1,7 @@ #!/usr/bin/env python3 +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + """ Complete Configuration Version Testing Suite diff --git a/examples/notification_configuration.py b/examples/notification_configuration.py index 789367f..5a4a39d 100644 --- a/examples/notification_configuration.py +++ b/examples/notification_configuration.py @@ -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 diff --git a/examples/oauth_client.py b/examples/oauth_client.py index e9cf62a..5e2ba07 100644 --- a/examples/oauth_client.py +++ b/examples/oauth_client.py @@ -1,4 +1,7 @@ #!/usr/bin/env python3 +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + """ Complete OAuth Client Testing Suite diff --git a/examples/oauth_token.py b/examples/oauth_token.py index 4a31bfc..d7a8056 100644 --- a/examples/oauth_token.py +++ b/examples/oauth_token.py @@ -1,4 +1,7 @@ #!/usr/bin/env python3 +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + """ Complete OAuth Token Testing Suite diff --git a/examples/org.py b/examples/org.py index 6538f8d..8f4497a 100644 --- a/examples/org.py +++ b/examples/org.py @@ -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, diff --git a/examples/organization_membership.py b/examples/organization_membership.py index da6d45d..d93071c 100644 --- a/examples/organization_membership.py +++ b/examples/organization_membership.py @@ -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. diff --git a/examples/plan.py b/examples/plan.py index 41b1e77..8910bd0 100644 --- a/examples/plan.py +++ b/examples/plan.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations import argparse diff --git a/examples/policy.py b/examples/policy.py index 74352f4..cad0fd1 100644 --- a/examples/policy.py +++ b/examples/policy.py @@ -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: diff --git a/examples/policy_check.py b/examples/policy_check.py index 67f2081..c3164ec 100644 --- a/examples/policy_check.py +++ b/examples/policy_check.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations import argparse diff --git a/examples/policy_evaluation.py b/examples/policy_evaluation.py index d7cb2fd..67b7069 100644 --- a/examples/policy_evaluation.py +++ b/examples/policy_evaluation.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations import argparse diff --git a/examples/policy_set.py b/examples/policy_set.py index 1808d80..5278902 100644 --- a/examples/policy_set.py +++ b/examples/policy_set.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations import argparse diff --git a/examples/policy_set_parameter.py b/examples/policy_set_parameter.py index 9ffdf71..70e1f63 100644 --- a/examples/policy_set_parameter.py +++ b/examples/policy_set_parameter.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations import argparse diff --git a/examples/project.py b/examples/project.py index 7702b09..d7ce4da 100644 --- a/examples/project.py +++ b/examples/project.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + """ Comprehensive Integration Test for python-tfe Projects CRUD Operations diff --git a/examples/query_run.py b/examples/query_run.py index 66ee804..1007dcc 100644 --- a/examples/query_run.py +++ b/examples/query_run.py @@ -1,4 +1,7 @@ #!/usr/bin/env python3 +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + """ Query Run Individual Function Tests diff --git a/examples/registry_module.py b/examples/registry_module.py index cc53edf..bf8e7ab 100644 --- a/examples/registry_module.py +++ b/examples/registry_module.py @@ -1,4 +1,7 @@ #!/usr/bin/env python3 +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + """ Complete Registry Module Testing Suite diff --git a/examples/registry_provider.py b/examples/registry_provider.py index d2b7c4b..ee6b569 100644 --- a/examples/registry_provider.py +++ b/examples/registry_provider.py @@ -1,4 +1,7 @@ #!/usr/bin/env python3 +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + """ Registry Provider Individual Function Tests diff --git a/examples/registry_provider_version.py b/examples/registry_provider_version.py index 4da1c83..f72a28a 100644 --- a/examples/registry_provider_version.py +++ b/examples/registry_provider_version.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations import argparse diff --git a/examples/reserved_tag_key.py b/examples/reserved_tag_key.py index 8e62b1a..2e7dccf 100644 --- a/examples/reserved_tag_key.py +++ b/examples/reserved_tag_key.py @@ -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: diff --git a/examples/run.py b/examples/run.py index d95b6e9..ba1eb53 100644 --- a/examples/run.py +++ b/examples/run.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations import argparse diff --git a/examples/run_events.py b/examples/run_events.py index a648c5b..cf0a40e 100644 --- a/examples/run_events.py +++ b/examples/run_events.py @@ -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. diff --git a/examples/run_task.py b/examples/run_task.py index 8331941..90140ff 100644 --- a/examples/run_task.py +++ b/examples/run_task.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + """ Terraform Cloud/Enterprise Run Task Management Example diff --git a/examples/run_trigger.py b/examples/run_trigger.py index c6fed59..bf4b79f 100644 --- a/examples/run_trigger.py +++ b/examples/run_trigger.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + """ Terraform Cloud/Enterprise Run Trigger Management Example diff --git a/examples/ssh_keys.py b/examples/ssh_keys.py index 743bd98..730c3f3 100644 --- a/examples/ssh_keys.py +++ b/examples/ssh_keys.py @@ -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: diff --git a/examples/state_versions.py b/examples/state_versions.py index 6d3f8b8..cb03e5a 100644 --- a/examples/state_versions.py +++ b/examples/state_versions.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations import argparse diff --git a/examples/variable_sets.py b/examples/variable_sets.py index 0b41084..4b65f95 100644 --- a/examples/variable_sets.py +++ b/examples/variable_sets.py @@ -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: diff --git a/examples/variables.py b/examples/variables.py index 0b3fe34..bc723b9 100644 --- a/examples/variables.py +++ b/examples/variables.py @@ -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. diff --git a/examples/workspace.py b/examples/workspace.py index 4dfb643..c30632f 100644 --- a/examples/workspace.py +++ b/examples/workspace.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + """ Terraform Cloud/Enterprise Workspace Management Example diff --git a/examples/workspace_resources.py b/examples/workspace_resources.py index 15fbf1b..f71b7c9 100644 --- a/examples/workspace_resources.py +++ b/examples/workspace_resources.py @@ -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. diff --git a/src/pytfe/__init__.py b/src/pytfe/__init__.py index bc7be16..68cea56 100644 --- a/src/pytfe/__init__.py +++ b/src/pytfe/__init__.py @@ -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 diff --git a/src/pytfe/_http.py b/src/pytfe/_http.py index 2c32012..4c25358 100644 --- a/src/pytfe/_http.py +++ b/src/pytfe/_http.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations import re diff --git a/src/pytfe/_jsonapi.py b/src/pytfe/_jsonapi.py index 3a12f60..7fafff9 100644 --- a/src/pytfe/_jsonapi.py +++ b/src/pytfe/_jsonapi.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations from typing import Any diff --git a/src/pytfe/client.py b/src/pytfe/client.py index d1c8337..b5d79bc 100644 --- a/src/pytfe/client.py +++ b/src/pytfe/client.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations from ._http import HTTPTransport diff --git a/src/pytfe/config.py b/src/pytfe/config.py index e4c3da3..24c6177 100644 --- a/src/pytfe/config.py +++ b/src/pytfe/config.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations import os diff --git a/src/pytfe/errors.py b/src/pytfe/errors.py index 168d37b..e913f6d 100644 --- a/src/pytfe/errors.py +++ b/src/pytfe/errors.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations from typing import Any diff --git a/src/pytfe/models/__init__.py b/src/pytfe/models/__init__.py index 8524e6b..8a56d7c 100644 --- a/src/pytfe/models/__init__.py +++ b/src/pytfe/models/__init__.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations # ── Agent & Agent Pools ──────────────────────────────────────────────────────── diff --git a/src/pytfe/models/agent.py b/src/pytfe/models/agent.py index 48c3055..910c3b0 100644 --- a/src/pytfe/models/agent.py +++ b/src/pytfe/models/agent.py @@ -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, diff --git a/src/pytfe/models/apply.py b/src/pytfe/models/apply.py index abfa02b..c3f991c 100644 --- a/src/pytfe/models/apply.py +++ b/src/pytfe/models/apply.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations from datetime import datetime diff --git a/src/pytfe/models/comment.py b/src/pytfe/models/comment.py index 6242f39..da2cd21 100644 --- a/src/pytfe/models/comment.py +++ b/src/pytfe/models/comment.py @@ -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 diff --git a/src/pytfe/models/common.py b/src/pytfe/models/common.py index a6dd569..335bcc9 100644 --- a/src/pytfe/models/common.py +++ b/src/pytfe/models/common.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations from typing import Any diff --git a/src/pytfe/models/configuration_version.py b/src/pytfe/models/configuration_version.py index 6bc613a..7779783 100644 --- a/src/pytfe/models/configuration_version.py +++ b/src/pytfe/models/configuration_version.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations from enum import Enum diff --git a/src/pytfe/models/cost_estimate.py b/src/pytfe/models/cost_estimate.py index 3c0f4e1..d1b6ff6 100644 --- a/src/pytfe/models/cost_estimate.py +++ b/src/pytfe/models/cost_estimate.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations from datetime import datetime diff --git a/src/pytfe/models/data_retention_policy.py b/src/pytfe/models/data_retention_policy.py index 6b6349f..4671a21 100644 --- a/src/pytfe/models/data_retention_policy.py +++ b/src/pytfe/models/data_retention_policy.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations from pydantic import BaseModel diff --git a/src/pytfe/models/notification_configuration.py b/src/pytfe/models/notification_configuration.py index 0632a1e..cf4abac 100644 --- a/src/pytfe/models/notification_configuration.py +++ b/src/pytfe/models/notification_configuration.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + """ Notification Configuration Models diff --git a/src/pytfe/models/oauth_client.py b/src/pytfe/models/oauth_client.py index 4a74ee4..86ffbbf 100644 --- a/src/pytfe/models/oauth_client.py +++ b/src/pytfe/models/oauth_client.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations from datetime import datetime diff --git a/src/pytfe/models/oauth_token.py b/src/pytfe/models/oauth_token.py index a70c20e..9cc78ca 100644 --- a/src/pytfe/models/oauth_token.py +++ b/src/pytfe/models/oauth_token.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations from datetime import datetime diff --git a/src/pytfe/models/organization.py b/src/pytfe/models/organization.py index 21e40b2..4616d97 100644 --- a/src/pytfe/models/organization.py +++ b/src/pytfe/models/organization.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations from datetime import datetime diff --git a/src/pytfe/models/organization_membership.py b/src/pytfe/models/organization_membership.py index a588e9c..a80cbcb 100644 --- a/src/pytfe/models/organization_membership.py +++ b/src/pytfe/models/organization_membership.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations from enum import Enum diff --git a/src/pytfe/models/plan.py b/src/pytfe/models/plan.py index 2987a95..c543c25 100644 --- a/src/pytfe/models/plan.py +++ b/src/pytfe/models/plan.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations from datetime import datetime diff --git a/src/pytfe/models/plan_export.py b/src/pytfe/models/plan_export.py index 0d5e45a..a00085b 100644 --- a/src/pytfe/models/plan_export.py +++ b/src/pytfe/models/plan_export.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations from pydantic import BaseModel, ConfigDict diff --git a/src/pytfe/models/policy.py b/src/pytfe/models/policy.py index fb182d9..82a543f 100644 --- a/src/pytfe/models/policy.py +++ b/src/pytfe/models/policy.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations from datetime import datetime diff --git a/src/pytfe/models/policy_check.py b/src/pytfe/models/policy_check.py index 7b97274..5eb7229 100644 --- a/src/pytfe/models/policy_check.py +++ b/src/pytfe/models/policy_check.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations from datetime import datetime diff --git a/src/pytfe/models/policy_evaluation.py b/src/pytfe/models/policy_evaluation.py index 49ad257..4891338 100644 --- a/src/pytfe/models/policy_evaluation.py +++ b/src/pytfe/models/policy_evaluation.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations from datetime import datetime diff --git a/src/pytfe/models/policy_set.py b/src/pytfe/models/policy_set.py index 60fccb3..6bd7ca0 100644 --- a/src/pytfe/models/policy_set.py +++ b/src/pytfe/models/policy_set.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations from datetime import datetime diff --git a/src/pytfe/models/policy_set_outcome.py b/src/pytfe/models/policy_set_outcome.py index ffb9723..ea2e168 100644 --- a/src/pytfe/models/policy_set_outcome.py +++ b/src/pytfe/models/policy_set_outcome.py @@ -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 diff --git a/src/pytfe/models/policy_set_parameter.py b/src/pytfe/models/policy_set_parameter.py index 01a88c2..ec1b881 100644 --- a/src/pytfe/models/policy_set_parameter.py +++ b/src/pytfe/models/policy_set_parameter.py @@ -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 diff --git a/src/pytfe/models/policy_set_version.py b/src/pytfe/models/policy_set_version.py index 4114856..f56bfe8 100644 --- a/src/pytfe/models/policy_set_version.py +++ b/src/pytfe/models/policy_set_version.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations from datetime import datetime diff --git a/src/pytfe/models/policy_types.py b/src/pytfe/models/policy_types.py index 5a5c6b5..fd9ea2f 100644 --- a/src/pytfe/models/policy_types.py +++ b/src/pytfe/models/policy_types.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations from enum import Enum diff --git a/src/pytfe/models/project.py b/src/pytfe/models/project.py index 3f4b9c6..a933789 100644 --- a/src/pytfe/models/project.py +++ b/src/pytfe/models/project.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations from pydantic import BaseModel, Field diff --git a/src/pytfe/models/query_run.py b/src/pytfe/models/query_run.py index cdcfe57..79c84be 100644 --- a/src/pytfe/models/query_run.py +++ b/src/pytfe/models/query_run.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations from datetime import datetime diff --git a/src/pytfe/models/registry_module.py b/src/pytfe/models/registry_module.py index d7c39be..dc0953a 100644 --- a/src/pytfe/models/registry_module.py +++ b/src/pytfe/models/registry_module.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations from enum import Enum diff --git a/src/pytfe/models/registry_provider.py b/src/pytfe/models/registry_provider.py index 3ac3140..2861aca 100644 --- a/src/pytfe/models/registry_provider.py +++ b/src/pytfe/models/registry_provider.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations from datetime import datetime diff --git a/src/pytfe/models/registry_provider_version.py b/src/pytfe/models/registry_provider_version.py index 6c043d3..e587505 100644 --- a/src/pytfe/models/registry_provider_version.py +++ b/src/pytfe/models/registry_provider_version.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations from datetime import datetime diff --git a/src/pytfe/models/reserved_tag_key.py b/src/pytfe/models/reserved_tag_key.py index c332742..54622e0 100644 --- a/src/pytfe/models/reserved_tag_key.py +++ b/src/pytfe/models/reserved_tag_key.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations from datetime import datetime diff --git a/src/pytfe/models/run.py b/src/pytfe/models/run.py index 7ae158a..0d4ba3f 100644 --- a/src/pytfe/models/run.py +++ b/src/pytfe/models/run.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations from datetime import datetime diff --git a/src/pytfe/models/run_event.py b/src/pytfe/models/run_event.py index 419937d..bcf7b1b 100644 --- a/src/pytfe/models/run_event.py +++ b/src/pytfe/models/run_event.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations from datetime import datetime diff --git a/src/pytfe/models/run_task.py b/src/pytfe/models/run_task.py index 8741162..11c2bea 100644 --- a/src/pytfe/models/run_task.py +++ b/src/pytfe/models/run_task.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations from enum import Enum diff --git a/src/pytfe/models/run_trigger.py b/src/pytfe/models/run_trigger.py index b9a4e74..1abfc12 100644 --- a/src/pytfe/models/run_trigger.py +++ b/src/pytfe/models/run_trigger.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations from datetime import datetime diff --git a/src/pytfe/models/ssh_key.py b/src/pytfe/models/ssh_key.py index cc853e4..4df3d0a 100644 --- a/src/pytfe/models/ssh_key.py +++ b/src/pytfe/models/ssh_key.py @@ -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 diff --git a/src/pytfe/models/state_version.py b/src/pytfe/models/state_version.py index 018620c..44db44a 100644 --- a/src/pytfe/models/state_version.py +++ b/src/pytfe/models/state_version.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations from datetime import datetime diff --git a/src/pytfe/models/state_version_output.py b/src/pytfe/models/state_version_output.py index 1d69b27..2a31cc8 100644 --- a/src/pytfe/models/state_version_output.py +++ b/src/pytfe/models/state_version_output.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations from typing import Any diff --git a/src/pytfe/models/task_stage.py b/src/pytfe/models/task_stage.py index 3f8b12f..54b9346 100644 --- a/src/pytfe/models/task_stage.py +++ b/src/pytfe/models/task_stage.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations from pydantic import BaseModel, ConfigDict diff --git a/src/pytfe/models/team.py b/src/pytfe/models/team.py index c19b007..8b0b833 100644 --- a/src/pytfe/models/team.py +++ b/src/pytfe/models/team.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations from typing import TYPE_CHECKING diff --git a/src/pytfe/models/user.py b/src/pytfe/models/user.py index 26b902e..bfa4335 100644 --- a/src/pytfe/models/user.py +++ b/src/pytfe/models/user.py @@ -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 diff --git a/src/pytfe/models/variable.py b/src/pytfe/models/variable.py index e9a137a..8c40f05 100644 --- a/src/pytfe/models/variable.py +++ b/src/pytfe/models/variable.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations from enum import Enum diff --git a/src/pytfe/models/variable_set.py b/src/pytfe/models/variable_set.py index 0daee06..caeab0f 100644 --- a/src/pytfe/models/variable_set.py +++ b/src/pytfe/models/variable_set.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations from datetime import datetime diff --git a/src/pytfe/models/workspace.py b/src/pytfe/models/workspace.py index dca54b0..fceceec 100644 --- a/src/pytfe/models/workspace.py +++ b/src/pytfe/models/workspace.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations from datetime import datetime diff --git a/src/pytfe/models/workspace_resource.py b/src/pytfe/models/workspace_resource.py index 78eaa40..e3b5deb 100644 --- a/src/pytfe/models/workspace_resource.py +++ b/src/pytfe/models/workspace_resource.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + """Workspace resources models for Terraform Enterprise.""" from pydantic import BaseModel diff --git a/src/pytfe/models/workspace_run_task.py b/src/pytfe/models/workspace_run_task.py index b5072a6..f29695e 100644 --- a/src/pytfe/models/workspace_run_task.py +++ b/src/pytfe/models/workspace_run_task.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations from pydantic import BaseModel diff --git a/src/pytfe/resources/_base.py b/src/pytfe/resources/_base.py index 0d8bf10..4a598b9 100644 --- a/src/pytfe/resources/_base.py +++ b/src/pytfe/resources/_base.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations from collections.abc import Iterator diff --git a/src/pytfe/resources/admin/settings.py b/src/pytfe/resources/admin/settings.py index 8ee9407..0242f6a 100644 --- a/src/pytfe/resources/admin/settings.py +++ b/src/pytfe/resources/admin/settings.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations from typing import Any diff --git a/src/pytfe/resources/agent_pools.py b/src/pytfe/resources/agent_pools.py index e0ff776..108a384 100644 --- a/src/pytfe/resources/agent_pools.py +++ b/src/pytfe/resources/agent_pools.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + """Agent Pool resource implementation for the Python TFE SDK. This module provides the AgentPools service for managing Terraform Enterprise/Cloud diff --git a/src/pytfe/resources/agents.py b/src/pytfe/resources/agents.py index adc1ad7..d876368 100644 --- a/src/pytfe/resources/agents.py +++ b/src/pytfe/resources/agents.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + """Agent resource implementation for the Python TFE SDK. This module provides the Agents service for managing individual Terraform Enterprise/Cloud diff --git a/src/pytfe/resources/apply.py b/src/pytfe/resources/apply.py index c13a464..621a818 100644 --- a/src/pytfe/resources/apply.py +++ b/src/pytfe/resources/apply.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations from ..errors import InvalidApplyIDError diff --git a/src/pytfe/resources/configuration_version.py b/src/pytfe/resources/configuration_version.py index 50c5125..6a7d047 100644 --- a/src/pytfe/resources/configuration_version.py +++ b/src/pytfe/resources/configuration_version.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations import io diff --git a/src/pytfe/resources/notification_configuration.py b/src/pytfe/resources/notification_configuration.py index 4de32ea..f78814a 100644 --- a/src/pytfe/resources/notification_configuration.py +++ b/src/pytfe/resources/notification_configuration.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + """ Notification Configuration Resources diff --git a/src/pytfe/resources/oauth_client.py b/src/pytfe/resources/oauth_client.py index 2321785..86cfa90 100644 --- a/src/pytfe/resources/oauth_client.py +++ b/src/pytfe/resources/oauth_client.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations from collections.abc import Iterator diff --git a/src/pytfe/resources/oauth_token.py b/src/pytfe/resources/oauth_token.py index 337fa02..a417fa8 100644 --- a/src/pytfe/resources/oauth_token.py +++ b/src/pytfe/resources/oauth_token.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations from collections.abc import Iterator diff --git a/src/pytfe/resources/organization_membership.py b/src/pytfe/resources/organization_membership.py index 659608b..a697067 100644 --- a/src/pytfe/resources/organization_membership.py +++ b/src/pytfe/resources/organization_membership.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations import re diff --git a/src/pytfe/resources/organizations.py b/src/pytfe/resources/organizations.py index fe6f94c..f9ac4b1 100644 --- a/src/pytfe/resources/organizations.py +++ b/src/pytfe/resources/organizations.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations from collections.abc import Iterator diff --git a/src/pytfe/resources/plan.py b/src/pytfe/resources/plan.py index 332f2c5..7f7d39a 100644 --- a/src/pytfe/resources/plan.py +++ b/src/pytfe/resources/plan.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations from typing import Any diff --git a/src/pytfe/resources/policy.py b/src/pytfe/resources/policy.py index fb30ca0..a34749e 100644 --- a/src/pytfe/resources/policy.py +++ b/src/pytfe/resources/policy.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations from ..errors import ( diff --git a/src/pytfe/resources/policy_check.py b/src/pytfe/resources/policy_check.py index affae77..58aa1c3 100644 --- a/src/pytfe/resources/policy_check.py +++ b/src/pytfe/resources/policy_check.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations import time diff --git a/src/pytfe/resources/policy_evaluation.py b/src/pytfe/resources/policy_evaluation.py index 2f911f6..184fb2c 100644 --- a/src/pytfe/resources/policy_evaluation.py +++ b/src/pytfe/resources/policy_evaluation.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations from collections.abc import Iterator diff --git a/src/pytfe/resources/policy_set.py b/src/pytfe/resources/policy_set.py index f25e986..7ba1380 100644 --- a/src/pytfe/resources/policy_set.py +++ b/src/pytfe/resources/policy_set.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations from ..errors import ( diff --git a/src/pytfe/resources/policy_set_outcome.py b/src/pytfe/resources/policy_set_outcome.py index 42389d3..d025ec5 100644 --- a/src/pytfe/resources/policy_set_outcome.py +++ b/src/pytfe/resources/policy_set_outcome.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations from collections.abc import Iterator diff --git a/src/pytfe/resources/policy_set_parameter.py b/src/pytfe/resources/policy_set_parameter.py index 076579c..0f530b5 100644 --- a/src/pytfe/resources/policy_set_parameter.py +++ b/src/pytfe/resources/policy_set_parameter.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations from collections.abc import Iterator diff --git a/src/pytfe/resources/policy_set_version.py b/src/pytfe/resources/policy_set_version.py index b7c4234..c7a82bf 100644 --- a/src/pytfe/resources/policy_set_version.py +++ b/src/pytfe/resources/policy_set_version.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations from ..errors import ( diff --git a/src/pytfe/resources/projects.py b/src/pytfe/resources/projects.py index e64cb34..0d3c0ba 100644 --- a/src/pytfe/resources/projects.py +++ b/src/pytfe/resources/projects.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations import builtins diff --git a/src/pytfe/resources/query_run.py b/src/pytfe/resources/query_run.py index a552e64..bc7feca 100644 --- a/src/pytfe/resources/query_run.py +++ b/src/pytfe/resources/query_run.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations import io diff --git a/src/pytfe/resources/registry_module.py b/src/pytfe/resources/registry_module.py index b65d4d8..651471f 100644 --- a/src/pytfe/resources/registry_module.py +++ b/src/pytfe/resources/registry_module.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations import io diff --git a/src/pytfe/resources/registry_provider.py b/src/pytfe/resources/registry_provider.py index 2511636..d4ae122 100644 --- a/src/pytfe/resources/registry_provider.py +++ b/src/pytfe/resources/registry_provider.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations from collections.abc import Iterator diff --git a/src/pytfe/resources/registry_provider_version.py b/src/pytfe/resources/registry_provider_version.py index f2d4fb3..08735c4 100644 --- a/src/pytfe/resources/registry_provider_version.py +++ b/src/pytfe/resources/registry_provider_version.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations from collections.abc import Iterator diff --git a/src/pytfe/resources/reserved_tag_key.py b/src/pytfe/resources/reserved_tag_key.py index 8eed7fa..6000452 100644 --- a/src/pytfe/resources/reserved_tag_key.py +++ b/src/pytfe/resources/reserved_tag_key.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations from collections.abc import Iterator diff --git a/src/pytfe/resources/run.py b/src/pytfe/resources/run.py index 49efdbc..8c18b1d 100644 --- a/src/pytfe/resources/run.py +++ b/src/pytfe/resources/run.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations from typing import Any diff --git a/src/pytfe/resources/run_event.py b/src/pytfe/resources/run_event.py index fb5479f..a1fe907 100644 --- a/src/pytfe/resources/run_event.py +++ b/src/pytfe/resources/run_event.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations from typing import Any diff --git a/src/pytfe/resources/run_task.py b/src/pytfe/resources/run_task.py index 853eab6..952ca65 100644 --- a/src/pytfe/resources/run_task.py +++ b/src/pytfe/resources/run_task.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations from collections.abc import Iterator diff --git a/src/pytfe/resources/run_trigger.py b/src/pytfe/resources/run_trigger.py index 3a16d76..8abbccc 100644 --- a/src/pytfe/resources/run_trigger.py +++ b/src/pytfe/resources/run_trigger.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations import builtins diff --git a/src/pytfe/resources/ssh_keys.py b/src/pytfe/resources/ssh_keys.py index 429d5fe..1bd860b 100644 --- a/src/pytfe/resources/ssh_keys.py +++ b/src/pytfe/resources/ssh_keys.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations from typing import Any diff --git a/src/pytfe/resources/state_version_outputs.py b/src/pytfe/resources/state_version_outputs.py index 205073c..ec1a2a1 100644 --- a/src/pytfe/resources/state_version_outputs.py +++ b/src/pytfe/resources/state_version_outputs.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations from typing import Any diff --git a/src/pytfe/resources/state_versions.py b/src/pytfe/resources/state_versions.py index 29e1f5c..d77d521 100644 --- a/src/pytfe/resources/state_versions.py +++ b/src/pytfe/resources/state_versions.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations from typing import Any diff --git a/src/pytfe/resources/variable.py b/src/pytfe/resources/variable.py index 6eff36d..60ee924 100644 --- a/src/pytfe/resources/variable.py +++ b/src/pytfe/resources/variable.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations from collections.abc import Iterator diff --git a/src/pytfe/resources/variable_sets.py b/src/pytfe/resources/variable_sets.py index 4bf4353..4876a63 100644 --- a/src/pytfe/resources/variable_sets.py +++ b/src/pytfe/resources/variable_sets.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + """Variable Set resource implementation for the Python TFE SDK.""" import builtins diff --git a/src/pytfe/resources/workspace_resources.py b/src/pytfe/resources/workspace_resources.py index 617b5f7..6f5c1f9 100644 --- a/src/pytfe/resources/workspace_resources.py +++ b/src/pytfe/resources/workspace_resources.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + """Workspace resources service for Terraform Enterprise.""" from collections.abc import Iterator diff --git a/src/pytfe/resources/workspaces.py b/src/pytfe/resources/workspaces.py index 81b49f5..f55a310 100644 --- a/src/pytfe/resources/workspaces.py +++ b/src/pytfe/resources/workspaces.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations import builtins diff --git a/src/pytfe/utils.py b/src/pytfe/utils.py index 02c43cc..ef7a03f 100644 --- a/src/pytfe/utils.py +++ b/src/pytfe/utils.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from __future__ import annotations import io diff --git a/tests/__init__.py b/tests/__init__.py index 2cfc448..af1712d 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1 +1,4 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + """Tests for the python-tfe package.""" diff --git a/tests/units/test_agent_pools.py b/tests/units/test_agent_pools.py index a113ac6..81bf9de 100644 --- a/tests/units/test_agent_pools.py +++ b/tests/units/test_agent_pools.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + """Unit tests for agent pool operations. These tests mock the TFE API responses and focus on: diff --git a/tests/units/test_agents.py b/tests/units/test_agents.py index 94e9b33..69e40ae 100644 --- a/tests/units/test_agents.py +++ b/tests/units/test_agents.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + """Unit tests for individual agent operations. These tests mock the TFE API responses and focus on: diff --git a/tests/units/test_apply.py b/tests/units/test_apply.py index 62f7509..77f9600 100644 --- a/tests/units/test_apply.py +++ b/tests/units/test_apply.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + """Test cases for Apply resources.""" from __future__ import annotations diff --git a/tests/units/test_configuration_version.py b/tests/units/test_configuration_version.py index f4f0fa2..0b5fd20 100644 --- a/tests/units/test_configuration_version.py +++ b/tests/units/test_configuration_version.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + """ Comprehensive unit tests for configuration version operations in the Python TFE SDK. diff --git a/tests/units/test_notification_configuration.py b/tests/units/test_notification_configuration.py index 034d161..74d0ce2 100644 --- a/tests/units/test_notification_configuration.py +++ b/tests/units/test_notification_configuration.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + """ Unit tests for Notification Configuration API. diff --git a/tests/units/test_oauth_client.py b/tests/units/test_oauth_client.py index 00e4ff3..e0db5ae 100644 --- a/tests/units/test_oauth_client.py +++ b/tests/units/test_oauth_client.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + """ Comprehensive unit tests for OAuth client operations in the Python TFE SDK. diff --git a/tests/units/test_oauth_token.py b/tests/units/test_oauth_token.py index b60ee9b..0939f42 100644 --- a/tests/units/test_oauth_token.py +++ b/tests/units/test_oauth_token.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + """ Comprehensive unit tests for OAuth token operations in the Python TFE SDK. diff --git a/tests/units/test_organization_membership.py b/tests/units/test_organization_membership.py index 11888d5..c848fb7 100644 --- a/tests/units/test_organization_membership.py +++ b/tests/units/test_organization_membership.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + """ Comprehensive unit tests for organization membership operations in the Python TFE SDK. diff --git a/tests/units/test_plan.py b/tests/units/test_plan.py index a8d5146..36c3f7e 100644 --- a/tests/units/test_plan.py +++ b/tests/units/test_plan.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + """Unit tests for the plan module.""" from unittest.mock import Mock, patch diff --git a/tests/units/test_policy.py b/tests/units/test_policy.py index af4790c..6fd6c2a 100644 --- a/tests/units/test_policy.py +++ b/tests/units/test_policy.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + """Unit tests for the policy module.""" from unittest.mock import Mock, patch diff --git a/tests/units/test_policy_evaluation.py b/tests/units/test_policy_evaluation.py index 820496b..ea41ee0 100644 --- a/tests/units/test_policy_evaluation.py +++ b/tests/units/test_policy_evaluation.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + """Unit tests for the policy evaluation module.""" from unittest.mock import Mock diff --git a/tests/units/test_policy_set_parameter.py b/tests/units/test_policy_set_parameter.py index 05c2c4d..c8023c2 100644 --- a/tests/units/test_policy_set_parameter.py +++ b/tests/units/test_policy_set_parameter.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + """Unit tests for the policy_set_parameter module.""" from unittest.mock import Mock, patch diff --git a/tests/units/test_project.py b/tests/units/test_project.py index 801a29f..fc21228 100644 --- a/tests/units/test_project.py +++ b/tests/units/test_project.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from unittest.mock import Mock from pytfe.models import ( diff --git a/tests/units/test_query_run.py b/tests/units/test_query_run.py index 3409d13..e31bf4e 100644 --- a/tests/units/test_query_run.py +++ b/tests/units/test_query_run.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + """ Comprehensive unit tests for query run operations in the Python TFE SDK. diff --git a/tests/units/test_registry_provider_version.py b/tests/units/test_registry_provider_version.py index 46b76bd..e291e60 100644 --- a/tests/units/test_registry_provider_version.py +++ b/tests/units/test_registry_provider_version.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + """Unit tests for the registry_provider_version module.""" from unittest.mock import Mock, patch diff --git a/tests/units/test_reserved_tag_key.py b/tests/units/test_reserved_tag_key.py index d7ca66b..9c62bed 100644 --- a/tests/units/test_reserved_tag_key.py +++ b/tests/units/test_reserved_tag_key.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + """Test the Reserved Tag Keys functionality.""" from unittest.mock import Mock diff --git a/tests/units/test_run.py b/tests/units/test_run.py index bce2d2a..e2544df 100644 --- a/tests/units/test_run.py +++ b/tests/units/test_run.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + """Unit tests for the run module.""" from unittest.mock import Mock, patch diff --git a/tests/units/test_run_task.py b/tests/units/test_run_task.py index a428d79..cb197e3 100644 --- a/tests/units/test_run_task.py +++ b/tests/units/test_run_task.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + """Unit tests for the run task module.""" from unittest.mock import Mock, patch diff --git a/tests/units/test_run_trigger.py b/tests/units/test_run_trigger.py index 901dafb..88f05db 100644 --- a/tests/units/test_run_trigger.py +++ b/tests/units/test_run_trigger.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + """Unit tests for the run trigger module.""" from datetime import datetime diff --git a/tests/units/test_ssh_keys.py b/tests/units/test_ssh_keys.py index 5500846..35b970b 100644 --- a/tests/units/test_ssh_keys.py +++ b/tests/units/test_ssh_keys.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + """Test the SSH Keys functionality.""" from unittest.mock import Mock diff --git a/tests/units/test_transport.py b/tests/units/test_transport.py index 3d4fac3..40996b4 100644 --- a/tests/units/test_transport.py +++ b/tests/units/test_transport.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + from pytfe._http import HTTPTransport from pytfe.config import TFEConfig diff --git a/tests/units/test_variable_sets.py b/tests/units/test_variable_sets.py index 01ad868..36de265 100644 --- a/tests/units/test_variable_sets.py +++ b/tests/units/test_variable_sets.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + """Unit tests for Variable Set resources.""" from unittest.mock import Mock diff --git a/tests/units/test_workspace_resources.py b/tests/units/test_workspace_resources.py index f685d84..dc7c6d7 100644 --- a/tests/units/test_workspace_resources.py +++ b/tests/units/test_workspace_resources.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + """Unit tests for workspace resources service.""" from unittest.mock import Mock diff --git a/tests/units/test_workspaces.py b/tests/units/test_workspaces.py index 762b97f..4ed6736 100644 --- a/tests/units/test_workspaces.py +++ b/tests/units/test_workspaces.py @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2025, 2026 +# SPDX-License-Identifier: MPL-2.0 + """ Comprehensive unit tests for workspace operations in the Python TFE SDK.