Skip to content

Commit c74414c

Browse files
algolia-botmillotp
andcommitted
feat(specs): only use shortname in the source input [skip-bc] (generated)
algolia/api-clients-automation#4287 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Pierre Millot <[email protected]>
1 parent f652bea commit c74414c

File tree

4 files changed

+1
-94
lines changed

4 files changed

+1
-94
lines changed

algoliasearch/ingestion/models/docker_image_type.py

Lines changed: 0 additions & 34 deletions
This file was deleted.

algoliasearch/ingestion/models/docker_registry.py

Lines changed: 0 additions & 34 deletions
This file was deleted.

algoliasearch/ingestion/models/source_docker.py

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,8 @@
1818
from typing_extensions import Self
1919

2020

21-
from algoliasearch.ingestion.models.docker_image_type import DockerImageType
22-
from algoliasearch.ingestion.models.docker_registry import DockerRegistry
23-
2421
_ALIASES = {
25-
"image_type": "imageType",
26-
"registry": "registry",
2722
"image": "image",
28-
"version": "version",
2923
"configuration": "configuration",
3024
}
3125

@@ -39,12 +33,8 @@ class SourceDocker(BaseModel):
3933
SourceDocker
4034
"""
4135

42-
image_type: DockerImageType
43-
registry: DockerRegistry
4436
image: str
45-
""" Docker image name. """
46-
version: Optional[str] = None
47-
""" Docker image version. """
37+
""" Shortname of the image, as returned by the referential. """
4838
configuration: object
4939
""" Configuration of the spec. """
5040

@@ -83,7 +73,4 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
8373
if not isinstance(obj, dict):
8474
return cls.model_validate(obj)
8575

86-
obj["imageType"] = obj.get("imageType")
87-
obj["registry"] = obj.get("registry")
88-
8976
return cls.model_validate(obj)

algoliasearch/ingestion/models/source_update_docker.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,7 @@
1818
from typing_extensions import Self
1919

2020

21-
from algoliasearch.ingestion.models.docker_registry import DockerRegistry
22-
2321
_ALIASES = {
24-
"registry": "registry",
25-
"image": "image",
26-
"version": "version",
2722
"configuration": "configuration",
2823
}
2924

@@ -37,11 +32,6 @@ class SourceUpdateDocker(BaseModel):
3732
SourceUpdateDocker
3833
"""
3934

40-
registry: Optional[DockerRegistry] = None
41-
image: Optional[str] = None
42-
""" Docker image name. """
43-
version: Optional[str] = None
44-
""" Docker image version. """
4535
configuration: object
4636
""" Configuration of the spec. """
4737

@@ -80,6 +70,4 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
8070
if not isinstance(obj, dict):
8171
return cls.model_validate(obj)
8272

83-
obj["registry"] = obj.get("registry")
84-
8573
return cls.model_validate(obj)

0 commit comments

Comments
 (0)