harborapi
harborapi copied to clipboard
Python async client for the Harbor REST API v2.0.
[New Feature] enable purgeaudit This helps that the harbor db not get over filled and keeps clean. API Call: "/api/v2.0/system/purgeaudit/schedule" Would be nice if the python package support this api...
it seems that when you create a replication rule via the API, although you can specify an ID value, this value is in fact ignored, and the ID is assigned...
Hi, when running get_replication_policies I run into an error ``` Traceback (most recent call last): File "main2.py", line 21, in asyncio.run(main()) File "/usr/lib/python3.8/asyncio/runners.py", line 44, in run return loop.run_until_complete(main) File...
The spec is located [here](https://github.com/goharbor/pluggable-scanner-spec/blob/master/api/spec/scanner-adapter-openapi-v1.2.yaml), while the new [README](https://github.com/goharbor/pluggable-scanner-spec/tree/master?tab=readme-ov-file#scanner-adapter-api) section describes how it works. In general, it's a lot to take in, and we need to find out whether or...
These 2 endpoints are missing client methods: - [`/security/vul`](https://github.com/goharbor/harbor/blob/991b2a81747e9b0838d8345b80cc8835d91f684f/api/v2.0/swagger.yaml#L6090) - [`/security/summary`](https://github.com/goharbor/harbor/blob/991b2a81747e9b0838d8345b80cc8835d91f684f/api/v2.0/swagger.yaml#L6055) They use the new models introduced in the `pydantic-v2` branch. Furthermore, it seems like they _may_ be tied to...
goharbor/harbor#19543 adds the Permissions API. Method(s) for interacting with it need to be implemented.
`datamodel-code-generator` generates `pydantic.Field` attributes with the kwarg `example` which contains a single example value for the field: https://github.com/pederhan/harborapi/blob/705903fabc44c2e381bab55a75e1847a77032b98/harborapi/models/_models.py#L182-L191 However, in Pydantic V2, this is now called `examples`[¹](https://docs.pydantic.dev/latest/api/fields/#pydantic.fields.Field) [²](https://docs.pydantic.dev/latest/concepts/fields/#customizing-json-schema) and is...
When writing the examples for the documentation, I have been saving them locally as separate files. I think it's useful to have code examples in the repository itself. Before I...
The name `HarborAsyncClient` is technically correct, but is incredibly verbose. As this package is async-first, having `Async` in the class name seems superfluous. While we can't get rid of this...
Pydantic V2 removes support for `__root__` in models. The Pre-release blog post provides 2 different ways to create models with "root" fields. The easiest replacement seems to be [`AnalyzedType`](https://docs.pydantic.dev/blog/pydantic-v2-alpha/#analyzedtype). This...