diff --git a/bindings-python/gci/componentmodel.py b/bindings-python/gci/componentmodel.py index a9c1e0aa..86365ee6 100644 --- a/bindings-python/gci/componentmodel.py +++ b/bindings-python/gci/componentmodel.py @@ -386,8 +386,8 @@ class Resource(Artifact, LabelMethodsMixin): OciAccess, RelativeOciAccess, S3Access, + ResourceAccess, None, - dict, ] digest: typing.Optional[DigestSpec] = None extraIdentity: typing.Dict[str, str] = dataclasses.field(default_factory=dict) diff --git a/bindings-python/tests/gci/componentmodel_test.py b/bindings-python/tests/gci/componentmodel_test.py index 1b1e5615..c700c3ff 100644 --- a/bindings-python/tests/gci/componentmodel_test.py +++ b/bindings-python/tests/gci/componentmodel_test.py @@ -31,9 +31,9 @@ def test_deserialisation_of_custom_resources(): component_descriptor = cm.ComponentDescriptor.from_dict( component_descriptor_dict=component_descriptor_dict, ) - assert isinstance(component_descriptor.component.resources[0].access, dict) + assert isinstance(component_descriptor.component.resources[0].access, cm.ResourceAccess) assert component_descriptor.component.resources[1].access is None - assert isinstance(component_descriptor.component.resources[2].access, dict) + assert isinstance(component_descriptor.component.resources[2].access, cm.ResourceAccess) assert isinstance(component_descriptor.component.resources[3].access, cm.RelativeOciAccess)