You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Do all formatting and linting with Ruff
* Rename "audit log rotation" to "purge"
* Import custom root models in `parser.py`
* Format fragments with Ruff manually
* Update API spec
* Remove unused `type: ignore` comments
* Run linting and formatting on all files
* Add Python 3.12 support
* Add `SBOMOverview` to changelog
* Remove all unnecessary "# type: ignore" comments
* Format and lint tests
-`HarborAsyncClient.delete_scanner` now raises `HarborAPIException` if no scanner response is returned from the API (was `UnprocessableEntity` before).
146
158
147
-
148
159
### Removed
149
160
150
161
- Loguru dependency. The library now uses the standard Python logging library for logging purposes. See [Logging](https://unioslo.github.io/harborapi/usage/logging/) in the docs for more information.
@@ -175,15 +186,12 @@ The big Pydantic V2 update. This is a major update in terms of both scope and AP
@@ -267,7 +272,6 @@ Until the official API spec is fixed, this is the best we can do.
267
272
268
273
-`harbor` being added as an executable script installed by the project. This was a mistake, as the `harbor` executable script is intended to be exposed by [harbor-cli](https://github.com/unioslo/harbor-cli).
@@ -279,9 +283,8 @@ Until the official API spec is fixed, this is the best we can do.
279
283
-`HarborAsyncClient.get_artifact_vulnerabilities()` now always returns a `harborapi.models.HarborVulnerabilityReport` object. If the artifact has no vulnerabilities or the report cannot be processed, an exception is raised.
280
284
281
285
### Removed
282
-
-`config` argument from `HarborAsyncClient.__init__()`. The `config` argument was never implemented.
283
-
284
286
287
+
-`config` argument from `HarborAsyncClient.__init__()`. The `config` argument was never implemented.
@@ -330,7 +333,6 @@ Until the official API spec is fixed, this is the best we can do.
330
333
331
334
-`HarborAsyncClient.update_project_member_role()` now accepts integer arguments for its `role_id` parameter, since `RoleRequest` only has a single field (`role_id`).
332
335
333
-
334
336
### Fixed
335
337
336
338
- Potential bug with `models.VulnerabilitySummary` if `summary` is `None`.
@@ -366,7 +368,6 @@ Until the official API spec is fixed, this is the best we can do.
366
368
-`HarborAsyncClient.get_system_certificate()`
367
369
- Returns the system certificate. (`GET /api/v2.0/systeminfo/getcert`)
368
370
369
-
370
371
### Changed
371
372
372
373
-**BREAKING**: Methods that download files, now return `FileResponse` instead of a bytes object. `FileResponse` contains the file contents along with its metadata. The object can be passed to `bytes()` to get the response contents, otherwise it can be accessed via the `FileResponse.content` attribute.
@@ -435,12 +436,10 @@ Until the official API spec is fixed, this is the best we can do.
435
436
- DEPRECATED: Using `credentials` as a parameter for `HarborAsyncClient.__init__` is deprecated. Use `basicauth` instead.
436
437
-`HarborAsyncClient.credentials` is now a Pydantic SecretStr, which prevents it from being printed in clear text when locals are dumped, such as when printing the client object. To access the value, use `HarborAsyncClient.credentials.get_secret_value()`.
437
438
438
-
439
439
### Removed
440
440
441
441
- Explicit logging calls from `HarborAsyncClient.set_user_cli_secret()` and `HarborAsyncClient.set_user_password()`. The exception handler handles logging if configured.
- Models with `harborapi.models.ScheduleObj` fields are now correctly validated when the Harbor API responds with a value of `"Schedule"` for the field `ScheduleObj.type`, which is not a valid value for the enum according to their own spec.
`NativeReportSummary.severity_enum` which returns the severity of the report as a `harborarpi.scanner.Severity` enum, which can be used for comparisons between reports.
465
462
466
-
467
463
### Fixed
468
464
469
465
`harborarpi.scanner.Severity` enum not having a `None` value, which is observed when a report has no vulnerabilities.
@@ -475,7 +471,6 @@ Until the official API spec is fixed, this is the best we can do.
475
471
- Certain resource enumeration methods missing the `limit` parameter.
476
472
-`HarborAsyncClient.get_gc_jobs()` ignoring user parameters.
@@ -493,7 +488,6 @@ Until the official API spec is fixed, this is the best we can do.
493
488
494
489
-`HarborAsyncClient.get_registry_providers` now returns a `RegistryProviders` object, which is a model whose only attribute `providers` is a dict of `RegistryProviderInfo` objects. Previously this method attempted to return a list of `RegistryProviderInfo` objects, but this was incorrect.
@@ -506,7 +500,6 @@ Until the official API spec is fixed, this is the best we can do.
506
500
507
501
-`limit` parameter for all methods that return a list of items. This parameter is used to limit the number of items returned by the API. See the [docs](https://unioslo.github.io/harborapi/usage/limit/) for more details.
508
502
509
-
510
503
### Removed
511
504
512
505
-`retrieve_all` parameter for all methods that return a list of items. Use the new `limit` parameter to control the number of results to retrieve. Passing `retrieve_all` to these methods will be silently ignored. In the future this will raise a DeprecationWarning.
@@ -517,7 +510,6 @@ Until the official API spec is fixed, this is the best we can do.
517
510
518
511
- New parameters `raw` and `validate` to `HarborAsyncClient` and `HarborClient` to control whether the client returns the raw data from the API, and whether the client validates the data from the API, respectively. See the [docs](https://unioslo.github.io/harborapi/usage/validation/) for more details.
@@ -533,7 +525,6 @@ Until the official API spec is fixed, this is the best we can do.
533
525
534
526
-`HarborAsyncClient.search()` raising an error when finding Helm Charts with an empty `engine` field.
535
527
536
-
537
528
### Removed
538
529
539
530
-**BREAKING**: `HarborAsyncClient.get_internal_config()`. This endpoint is meant for internal usage only, and the new model definitions don't seem to play well with it. If you need this endpoint, please open an issue.
0 commit comments