From 0b500d455c577abe6cd1c32f50653a155342ab1d Mon Sep 17 00:00:00 2001 From: "hashicorp-copywrite[bot]" <110428419+hashicorp-copywrite[bot]@users.noreply.github.com> Date: Tue, 10 Mar 2026 08:50:17 +0000 Subject: [PATCH] [COMPLIANCE] Add Copyright and License Headers --- .github/ISSUE_TEMPLATE/config.yml | 3 +++ bin/publish-pypi.sh | 3 +++ examples/agent.py | 3 +++ examples/agent_pool.py | 3 +++ examples/apply.py | 3 +++ examples/configuration_version.py | 3 +++ examples/notification_configuration.py | 3 +++ examples/oauth_client.py | 3 +++ examples/oauth_token.py | 3 +++ examples/org.py | 3 +++ examples/organization_membership.py | 3 +++ examples/plan.py | 3 +++ examples/policy.py | 3 +++ examples/policy_check.py | 3 +++ examples/policy_evaluation.py | 3 +++ examples/policy_set.py | 3 +++ examples/policy_set_parameter.py | 3 +++ examples/project.py | 3 +++ examples/query_run.py | 3 +++ examples/registry_module.py | 3 +++ examples/registry_provider.py | 3 +++ examples/registry_provider_version.py | 3 +++ examples/reserved_tag_key.py | 3 +++ examples/run.py | 3 +++ examples/run_events.py | 3 +++ examples/run_task.py | 3 +++ examples/run_trigger.py | 3 +++ examples/ssh_keys.py | 3 +++ examples/state_versions.py | 3 +++ examples/variable_sets.py | 3 +++ examples/variables.py | 3 +++ examples/workspace.py | 3 +++ examples/workspace_resources.py | 3 +++ src/pytfe/__init__.py | 3 +++ src/pytfe/_http.py | 3 +++ src/pytfe/_jsonapi.py | 3 +++ src/pytfe/client.py | 3 +++ src/pytfe/config.py | 3 +++ src/pytfe/errors.py | 3 +++ src/pytfe/models/__init__.py | 3 +++ src/pytfe/models/agent.py | 3 +++ src/pytfe/models/apply.py | 3 +++ src/pytfe/models/comment.py | 3 +++ src/pytfe/models/common.py | 3 +++ src/pytfe/models/configuration_version.py | 3 +++ src/pytfe/models/cost_estimate.py | 3 +++ src/pytfe/models/data_retention_policy.py | 3 +++ src/pytfe/models/notification_configuration.py | 3 +++ src/pytfe/models/oauth_client.py | 3 +++ src/pytfe/models/oauth_token.py | 3 +++ src/pytfe/models/organization.py | 3 +++ src/pytfe/models/organization_membership.py | 3 +++ src/pytfe/models/plan.py | 3 +++ src/pytfe/models/plan_export.py | 3 +++ src/pytfe/models/policy.py | 3 +++ src/pytfe/models/policy_check.py | 3 +++ src/pytfe/models/policy_evaluation.py | 3 +++ src/pytfe/models/policy_set.py | 3 +++ src/pytfe/models/policy_set_outcome.py | 3 +++ src/pytfe/models/policy_set_parameter.py | 3 +++ src/pytfe/models/policy_set_version.py | 3 +++ src/pytfe/models/policy_types.py | 3 +++ src/pytfe/models/project.py | 3 +++ src/pytfe/models/query_run.py | 3 +++ src/pytfe/models/registry_module.py | 3 +++ src/pytfe/models/registry_provider.py | 3 +++ src/pytfe/models/registry_provider_version.py | 3 +++ src/pytfe/models/reserved_tag_key.py | 3 +++ src/pytfe/models/run.py | 3 +++ src/pytfe/models/run_event.py | 3 +++ src/pytfe/models/run_task.py | 3 +++ src/pytfe/models/run_trigger.py | 3 +++ src/pytfe/models/ssh_key.py | 3 +++ src/pytfe/models/state_version.py | 3 +++ src/pytfe/models/state_version_output.py | 3 +++ src/pytfe/models/task_stage.py | 3 +++ src/pytfe/models/team.py | 3 +++ src/pytfe/models/user.py | 3 +++ src/pytfe/models/variable.py | 3 +++ src/pytfe/models/variable_set.py | 3 +++ src/pytfe/models/workspace.py | 3 +++ src/pytfe/models/workspace_resource.py | 3 +++ src/pytfe/models/workspace_run_task.py | 3 +++ src/pytfe/resources/_base.py | 3 +++ src/pytfe/resources/admin/settings.py | 3 +++ src/pytfe/resources/agent_pools.py | 3 +++ src/pytfe/resources/agents.py | 3 +++ src/pytfe/resources/apply.py | 3 +++ src/pytfe/resources/configuration_version.py | 3 +++ src/pytfe/resources/notification_configuration.py | 3 +++ src/pytfe/resources/oauth_client.py | 3 +++ src/pytfe/resources/oauth_token.py | 3 +++ src/pytfe/resources/organization_membership.py | 3 +++ src/pytfe/resources/organizations.py | 3 +++ src/pytfe/resources/plan.py | 3 +++ src/pytfe/resources/policy.py | 3 +++ src/pytfe/resources/policy_check.py | 3 +++ src/pytfe/resources/policy_evaluation.py | 3 +++ src/pytfe/resources/policy_set.py | 3 +++ src/pytfe/resources/policy_set_outcome.py | 3 +++ src/pytfe/resources/policy_set_parameter.py | 3 +++ src/pytfe/resources/policy_set_version.py | 3 +++ src/pytfe/resources/projects.py | 3 +++ src/pytfe/resources/query_run.py | 3 +++ src/pytfe/resources/registry_module.py | 3 +++ src/pytfe/resources/registry_provider.py | 3 +++ src/pytfe/resources/registry_provider_version.py | 3 +++ src/pytfe/resources/reserved_tag_key.py | 3 +++ src/pytfe/resources/run.py | 3 +++ src/pytfe/resources/run_event.py | 3 +++ src/pytfe/resources/run_task.py | 3 +++ src/pytfe/resources/run_trigger.py | 3 +++ src/pytfe/resources/ssh_keys.py | 3 +++ src/pytfe/resources/state_version_outputs.py | 3 +++ src/pytfe/resources/state_versions.py | 3 +++ src/pytfe/resources/variable.py | 3 +++ src/pytfe/resources/variable_sets.py | 3 +++ src/pytfe/resources/workspace_resources.py | 3 +++ src/pytfe/resources/workspaces.py | 3 +++ src/pytfe/utils.py | 3 +++ tests/__init__.py | 3 +++ tests/units/test_agent_pools.py | 3 +++ tests/units/test_agents.py | 3 +++ tests/units/test_apply.py | 3 +++ tests/units/test_configuration_version.py | 3 +++ tests/units/test_notification_configuration.py | 3 +++ tests/units/test_oauth_client.py | 3 +++ tests/units/test_oauth_token.py | 3 +++ tests/units/test_organization_membership.py | 3 +++ tests/units/test_plan.py | 3 +++ tests/units/test_policy.py | 3 +++ tests/units/test_policy_evaluation.py | 3 +++ tests/units/test_policy_set_parameter.py | 3 +++ tests/units/test_project.py | 3 +++ tests/units/test_query_run.py | 3 +++ tests/units/test_registry_provider_version.py | 3 +++ tests/units/test_reserved_tag_key.py | 3 +++ tests/units/test_run.py | 3 +++ tests/units/test_run_task.py | 3 +++ tests/units/test_run_trigger.py | 3 +++ tests/units/test_ssh_keys.py | 3 +++ tests/units/test_transport.py | 3 +++ tests/units/test_variable_sets.py | 3 +++ tests/units/test_workspace_resources.py | 3 +++ tests/units/test_workspaces.py | 3 +++ 145 files changed, 435 insertions(+) diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index f6782d3b..36f20e06 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 9185a936..17270db6 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 c80eb623..3f046c7b 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 bbaf14e0..82b91ec5 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 44fd4436..ea72dfa8 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 87fa6d1c..cb85be5d 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 789367f7..5a4a39d0 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 e9cf62ab..5e2ba07f 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 4a31bfcc..d7a80565 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 6538f8d9..8f4497ab 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 da6d45d6..d93071c6 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 41b1e779..8910bd07 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 74352f43..cad0fd18 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 67f20813..c3164ec8 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 d7cb2fd8..67b7069d 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 1808d80a..5278902b 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 9ffdf716..70e1f63a 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 7702b09a..d7ce4dab 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 66ee8042..1007dcc4 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 cc53edfe..bf8e7ab6 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 d2b7c4bc..ee6b5699 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 4da1c83a..f72a28aa 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 8e62b1a8..2e7dccfb 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 d95b6e95..ba1eb53d 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 a648c5b5..cf0a40eb 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 83319419..90140ff5 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 c6fed595..bf4b79fc 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 743bd98b..730c3f3e 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 6d3f8b82..cb03e5a0 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 0b410845..4b65f95a 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 0b3fe345..bc723b92 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 4dfb6435..c30632fa 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 15fbf1b0..f71b7c94 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 bc7be167..68cea566 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 2c32012b..4c25358e 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 3a12f604..7fafff9c 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 d1c83373..b5d79bcd 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 e4c3da33..24c6177f 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 168d37b4..e913f6d4 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 8524e6b1..8a56d7c0 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 48c30554..910c3b08 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 abfa02bb..c3f991c7 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 6242f39c..da2cd213 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 a6dd5698..335bcc91 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 6bc613a8..77797839 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 3c0f4e16..d1b6ff6b 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 6b6349ff..4671a21e 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 0632a1e8..cf4abacf 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 4a74ee43..86ffbbfa 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 a70c20e8..9cc78cad 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 21e40b23..4616d979 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 a588e9ce..a80cbcb3 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 2987a958..c543c256 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 0d5e45a9..a00085b2 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 fb182d94..82a543f9 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 7b97274e..5eb72294 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 49ad257c..4891338e 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 60fccb3b..6bd7ca0c 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 ffb97230..ea2e1682 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 01a88c25..ec1b881a 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 41148561..f56bfe89 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 5a5c6b5d..fd9ea2f3 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 3f4b9c6c..a9337891 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 cdcfe57d..79c84beb 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 d7c39be6..dc0953ad 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 3ac31409..2861acac 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 6c043d37..e5875051 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 c332742c..54622e05 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 7ae158a7..0d4ba3ff 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 419937d0..bcf7b1b9 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 87411626..11c2bea3 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 b9a4e740..1abfc12f 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 cc853e47..4df3d0a0 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 018620c2..44db44af 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 1d69b271..2a31cc82 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 3f8b12fd..54b9346b 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 c19b0079..8b0b8330 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 26b902e0..bfa43359 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 e9a137a5..8c40f051 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 0daee068..caeab0ff 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 dca54b0f..fceceec7 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 78eaa406..e3b5deb7 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 b5072a62..f29695ed 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 0d8bf103..4a598b92 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 8ee94076..0242f6aa 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 e0ff7761..108a3847 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 adc1ad79..d8763685 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 c13a464b..621a8181 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 50c51251..6a7d0477 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 4de32ea0..f78814a7 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 2321785e..86cfa908 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 337fa02c..a417fa83 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 659608b7..a6970670 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 fe6f94c5..f9ac4b1f 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 332f2c59..7f7d39a8 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 fb30ca02..a34749e8 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 affae777..58aa1c34 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 2f911f60..184fb2cd 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 f25e986c..7ba13803 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 42389d36..d025ec5c 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 076579c4..0f530b50 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 b7c42342..c7a82bf2 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 e64cb345..0d3c0baf 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 a552e644..bc7feca9 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 b65d4d8c..651471fb 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 2511636d..d4ae122b 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 f2d4fb34..08735c48 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 8eed7fa8..60004520 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 49efdbc3..8c18b1dc 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 fb5479f4..a1fe9072 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 853eab68..952ca653 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 3a16d765..8abbccc7 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 429d5fe8..1bd860b4 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 205073c4..ec1a2a18 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 29e1f5c8..d77d5218 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 6eff36d7..60ee9245 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 4bf4353c..4876a631 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 617b5f77..6f5c1f9d 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 81b49f5f..f55a310f 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 02c43cc1..ef7a03f0 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 2cfc4486..af1712d2 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 a113ac6a..81bf9def 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 94e9b333..69e40ae2 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 62f7509d..77f96008 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 f4f0fa20..0b5fd207 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 034d161e..74d0ce24 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 00e4ff33..e0db5aec 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 b60ee9bb..0939f428 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 11888d55..c848fb76 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 a8d5146d..36c3f7ee 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 af4790c8..6fd6c2ac 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 820496b8..ea41ee08 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 05c2c4d1..c8023c25 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 801a29f8..fc21228c 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 3409d13f..e31bf4ef 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 46b76bdc..e291e602 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 d7ca66b7..9c62bedf 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 bce2d2a8..e2544df4 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 a428d798..cb197e3a 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 901dafb8..88f05db7 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 55008464..35b970ba 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 3d4fac31..40996b4f 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 01ad8689..36de2652 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 f685d840..dc7c6d79 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 762b97f5..4ed6736b 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.