Skip to content

Commit

Permalink
Fix create remote nuget repo
Browse files Browse the repository at this point in the history
  • Loading branch information
anancarv authored Feb 14, 2022
2 parents 484212d + 691897f commit 0cd8410
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions pyartifactory/models/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,6 @@ class ContentSynchronisation(BaseModel):
source: Source = Source()


class Nuget(BaseModel):
"""Models a nuget feed."""

feedContextPath: str = "api/v2"
downloadContextPath: str = "api/v2/package"
v3FeedUrl: str = "https://api.nuget.org/v3/index.json"


class SimpleRepository(BaseModel):
"""Models a simple repository."""

Expand Down Expand Up @@ -269,7 +261,9 @@ class RemoteRepository(BaseRepositoryModel):
externalDependenciesPatterns: List[str] = ["**/*microsoft*/**", "**/*github*/**"]
downloadRedirect: bool = False
contentSynchronisation: ContentSynchronisation = ContentSynchronisation()
nuget: Nuget = Nuget()
feedContextPath: str = "api/v2"
downloadContextPath: str = "api/v2/package"
v3FeedUrl: str = "https://api.nuget.org/v3/index.json"
xrayIndex: bool = False


Expand Down

0 comments on commit 0cd8410

Please sign in to comment.