pyvider
2024-11-27
Renamed tfplugin6 to tfprotov6 with provider operation submodules and schema overhaul
57 files · 3,539+ · 1,551-
Renamed tfplugin6 package to tfprotov6 to match Go conventions
5 files changed
__init__.pyNew tfprotov6 package root replacing tfplugin6__init__.pyProto files moved into tfprotov6/proto/tfplugin6.protoProtobuf definition at new locationtfplugin6_pb2.pyGenerated protobuf Python codetfplugin6_pb2_grpc.pyGenerated gRPC service stubs
- Renamed entire pyvider/tfplugin6/ package to pyvider/tfprotov6/ to align with Go terraform-plugin-go naming conventions
decouple
behavioral
2 files
__init__.pyproto
- Removed old schema, types, and standalone test files from previous naming
deprecate
internal
2 files
schema.pytypes.py
Added provider operation submodules
6 files changed
__init__.pyProvider operations package with module exportsconfigure_provider.pyConfigureProvider operation handlerget_metadata.pyGetMetadata operation handlerget_provider_schema.pyGetProviderSchema operation handlerstop_provider.pyStopProvider operation handlervalidate_provider_config.pyValidateProviderConfig operation handler
- Created provider/ package with operation-specific modules for configure, get_metadata, get_provider_schema, stop, and validate_provider_config
instantiate
behavioral
5 files
configure_provider.pyget_metadata.pyget_provider_schema.pystop_provider.pyvalidate_provider_config.py
Rebuilt schema with full validation and diagnostic system
3 files changed
schema.pyRebuilt schema with SchemaAttribute, SchemaNestedBlock, SchemaBlock, and Schema dataclasses (317 lines)diagnostic.pyDiagnostic system with severity levels and summary/detail fields (50 lines)ephemeral_resource.pyEphemeral resource protocol support (85 lines)
- Rebuilt schema.py with SchemaAttribute, SchemaNestedBlock, SchemaBlock dataclasses including validation for required/optional/computed exclusivity and nested block min/max enforcement
instantiate
behavioral
1 file
schema.py
- Added diagnostic.py with severity levels and summary/detail fields for Terraform diagnostic messages
instantiate
behavioral
1 file
diagnostic.py
- Created ephemeral_resource.py for Terraform ephemeral resource protocol support
instantiate
behavioral
1 file
ephemeral_resource.py
Added comprehensive test suite for provider operations and schema
10 files changed
test_schema.pyComprehensive schema tests (413+ lines)test_tfprotov6_diagnostic.pyDiagnostic tests (157 lines)test_configure_provider.pyConfigureProvider operation teststest_get_metadata.pyGetMetadata operation teststest_get_provider_schema.pyGetProviderSchema operation teststest_stop_provider.pyStopProvider operation teststest_validate_provider_config.pyValidateProviderConfig operation teststest_ephemeral_resource.pyEphemeral resource tests (96 lines)test_main.pyMain entry point teststest_invalid_config.pyInvalid configuration tests
- Added comprehensive schema and diagnostic unit tests
qualify
behavioral
2 files
test_schema.pytest_tfprotov6_diagnostic.py
- Created provider operation tests for configure, get_metadata, get_provider_schema, stop, validate, and invalid config
qualify
behavioral
7 files
test_configure_provider.pytest_get_metadata.pytest_get_provider_schema.pytest_stop_provider.pytest_validate_provider_config.pytest_invalid_config.pytest_ephemeral_resource.py
Enhanced tftypes with improved attribute path and type modules
6 files changed
__init__.pyType registry (25 lines)attribute_path.pyEnhanced AttributePath implementationmap.pyImproved Map typeobject.pyImproved Object typeset.pyImproved Set typesimple.pyImproved simple types
- Enhanced attribute_path.py and type modules (map, object, set, simple) with improved validation
streamline
internal
5 files
attribute_path.pymap.pyobject.pyset.pysimple.py
- Updated gRPC helpers and service utilities
streamline
internal
2 files
grpc_helpers.pygrpc_service.py