diff --git a/pyartifactory/__init__.py b/pyartifactory/__init__.py index 6fda7b3..ccd38e2 100644 --- a/pyartifactory/__init__.py +++ b/pyartifactory/__init__.py @@ -13,4 +13,4 @@ AccessTokenModel, ) -__version__ = "1.3.0" +__version__ = "1.3.1" diff --git a/pyartifactory/models/repository.py b/pyartifactory/models/repository.py index 98cc64e..f76f1ca 100644 --- a/pyartifactory/models/repository.py +++ b/pyartifactory/models/repository.py @@ -182,6 +182,7 @@ class LocalRepositoryResponse(LocalRepository): class VirtualRepository(BaseRepositoryModel): """Models a virtual repository.""" + rclass: RClassEnum = RClassEnum.virtual repositories: Optional[List[str]] = None artifactoryRequestsCanRetrieveRemoteArtifacts: bool = False debianTrivialLayout: bool = False @@ -194,7 +195,7 @@ class VirtualRepository(BaseRepositoryModel): externalDependenciesRemoteRepo: Optional[str] = None -class VirtualRepositoryResponse(LocalRepository): +class VirtualRepositoryResponse(VirtualRepository): """Models a virtual repository response.""" dockerApiVersion: str = "V2" @@ -218,6 +219,7 @@ class VirtualRepositoryResponse(LocalRepository): class RemoteRepository(BaseRepositoryModel): """Models a remote Repository.""" + rclass: RClassEnum = RClassEnum.remote url: str username: Optional[str] = None password: Optional[SecretStr] = None diff --git a/pyproject.toml b/pyproject.toml index ec39f1d..3ed9178 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "PyArtifactory" -version = "1.3.0" +version = "1.3.1" description = "Typed interactions with the Jfrog Artifactory REST API" authors = ["Ananias CARVALHO ", "Thomas GAUDIN "] license = "MIT"