You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Add Metadata API endpoints and service patterns for resource management
- Implemented metadata API endpoints in `metadata.py` for querying resource metadata, dependencies, and hierarchical structures.
- Created a base service class `BaseResourceService` in `base.py` to provide common functionality for resource providers, including idempotency, event publishing, tenant isolation, and error handling.
- Added test suite for models, resource handlers, and resource provider functionality to ensure proper validation and behavior.
- Introduced a test implementation of `ResourceProvider` to facilitate testing of resource creation, retrieval, and deletion.
3.**Define resource types**: Set `supported_resource_types` in your provider
185
+
4.**Use common models**: Leverage shared models from `itl_controlplane_sdk.common.models.core`
186
+
5.**Register with registry**: Use `ResourceProviderRegistry.register_provider()`
187
+
6.**Add validation**: Use Pydantic models for request/response validation
188
+
189
+
See the [examples/quickstart.py](./examples/quickstart.py) for a complete example.
190
+
115
191
## CI/CD Pipeline
116
192
117
193
The repository includes a comprehensive CI/CD pipeline for automated testing and publishing:
@@ -121,17 +197,46 @@ The repository includes a comprehensive CI/CD pipeline for automated testing and
121
197
-**Security Scanning**: Dependency and code vulnerability checks
122
198
-**Provider Testing**: Validation of provider implementations
123
199
-**Automated Versioning**: Git tag-based version management (no manual editing!)
200
+
-**Quality Gates**: Code formatting, type checking, and test coverage validation
124
201
125
202
See [PIPELINE_SETUP.md](./PIPELINE_SETUP.md) for complete pipeline documentation and [AUTOMATED_VERSIONING.md](./AUTOMATED_VERSIONING.md) for version management details.
126
203
204
+
## Current Version
205
+
206
+
**Version**: 1.0.0
207
+
208
+
### Key Dependencies
209
+
-**Pydantic**: ≥2.0.0 for data validation and serialization
210
+
-**typing-extensions**: ≥4.0.0 for enhanced type hints
211
+
-**Python**: ≥3.8 (tested on 3.8-3.12)
212
+
213
+
### Recent Updates
214
+
- Enhanced type safety with comprehensive Pydantic models
215
+
- Added shared common models for core resources
216
+
- Improved provider registration and management
217
+
- Added base classes and common utilities for provider development
218
+
- Streamlined async operations with proper type hints
219
+
- Updated documentation and examples with real-world usage patterns
0 commit comments