crc-pulp-npm-client 20250821.2__tar.gz → 20250821.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of crc-pulp-npm-client might be problematic. Click here for more details.
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/PKG-INFO +1 -1
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/README.md +4 -4
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/crc-pulp_npm-client/api_client.py +1 -1
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/crc-pulp_npm-client/configuration.py +3 -3
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/crc-pulp_npm-client/models/npm_npm_remote.py +1 -1
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/crc-pulp_npm-client/models/npm_npm_remote_response.py +1 -3
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/crc-pulp_npm-client/models/npm_npm_repository.py +2 -2
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/crc-pulp_npm-client/models/npm_npm_repository_response.py +2 -3
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/crc-pulp_npm-client/models/npm_package_response.py +5 -1
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/crc-pulp_npm-client/models/paginated_repository_version_response_list.py +0 -10
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/crc-pulp_npm-client/models/paginatednpm_npm_distribution_response_list.py +0 -10
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/crc-pulp_npm-client/models/paginatednpm_npm_remote_response_list.py +0 -10
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/crc-pulp_npm-client/models/paginatednpm_npm_repository_response_list.py +0 -10
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/crc-pulp_npm-client/models/paginatednpm_package_response_list.py +0 -10
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/crc-pulp_npm-client/models/patchednpm_npm_remote.py +1 -1
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/crc-pulp_npm-client/models/patchednpm_npm_repository.py +2 -2
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/crc-pulp_npm-client/models/repository_version_response.py +6 -2
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/crc_pulp_npm_client.egg-info/PKG-INFO +1 -1
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/pyproject.toml +1 -1
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/setup.py +1 -1
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/test/test_npm_npm_remote.py +1 -1
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/test/test_npm_npm_remote_response.py +1 -1
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/test/test_npm_npm_repository.py +1 -1
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/test/test_npm_npm_repository_response.py +1 -1
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/test/test_npm_package_response.py +1 -0
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/test/test_paginated_repository_version_response_list.py +4 -2
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/test/test_paginatednpm_npm_remote_response_list.py +2 -2
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/test/test_paginatednpm_npm_repository_response_list.py +2 -2
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/test/test_paginatednpm_package_response_list.py +2 -0
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/test/test_patchednpm_npm_remote.py +1 -1
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/test/test_patchednpm_npm_repository.py +1 -1
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/test/test_repository_version_response.py +2 -1
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/crc-pulp_npm-client/__init__.py +0 -0
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/crc-pulp_npm-client/api/__init__.py +0 -0
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/crc-pulp_npm-client/api/content_packages_api.py +0 -0
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/crc-pulp_npm-client/api/distributions_npm_api.py +0 -0
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/crc-pulp_npm-client/api/remotes_npm_api.py +0 -0
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/crc-pulp_npm-client/api/repositories_npm_api.py +0 -0
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/crc-pulp_npm-client/api/repositories_npm_versions_api.py +0 -0
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/crc-pulp_npm-client/api_response.py +0 -0
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/crc-pulp_npm-client/exceptions.py +0 -0
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/crc-pulp_npm-client/models/__init__.py +0 -0
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/crc-pulp_npm-client/models/async_operation_response.py +0 -0
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/crc-pulp_npm-client/models/content_summary_response.py +0 -0
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/crc-pulp_npm-client/models/npm_npm_distribution.py +0 -0
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/crc-pulp_npm-client/models/npm_npm_distribution_response.py +0 -0
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/crc-pulp_npm-client/models/npm_npm_remote_response_hidden_fields_inner.py +0 -0
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/crc-pulp_npm-client/models/patchednpm_npm_distribution.py +0 -0
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/crc-pulp_npm-client/models/policy_enum.py +0 -0
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/crc-pulp_npm-client/models/repair.py +0 -0
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/crc-pulp_npm-client/models/repository_add_remove_content.py +0 -0
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/crc-pulp_npm-client/models/repository_sync_url.py +0 -0
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/crc-pulp_npm-client/models/set_label.py +0 -0
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/crc-pulp_npm-client/models/set_label_response.py +0 -0
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/crc-pulp_npm-client/models/unset_label.py +0 -0
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/crc-pulp_npm-client/models/unset_label_response.py +0 -0
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/crc-pulp_npm-client/py.typed +0 -0
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/crc-pulp_npm-client/rest.py +0 -0
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/crc_pulp_npm_client.egg-info/SOURCES.txt +0 -0
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/crc_pulp_npm_client.egg-info/dependency_links.txt +0 -0
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/crc_pulp_npm_client.egg-info/requires.txt +0 -0
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/crc_pulp_npm_client.egg-info/top_level.txt +0 -0
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/setup.cfg +0 -0
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/test/test_async_operation_response.py +0 -0
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/test/test_content_packages_api.py +0 -0
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/test/test_content_summary_response.py +0 -0
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/test/test_distributions_npm_api.py +0 -0
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/test/test_npm_npm_distribution.py +0 -0
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/test/test_npm_npm_distribution_response.py +0 -0
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/test/test_npm_npm_remote_response_hidden_fields_inner.py +0 -0
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/test/test_paginatednpm_npm_distribution_response_list.py +0 -0
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/test/test_patchednpm_npm_distribution.py +0 -0
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/test/test_policy_enum.py +0 -0
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/test/test_remotes_npm_api.py +0 -0
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/test/test_repair.py +0 -0
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/test/test_repositories_npm_api.py +0 -0
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/test/test_repositories_npm_versions_api.py +0 -0
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/test/test_repository_add_remove_content.py +0 -0
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/test/test_repository_sync_url.py +0 -0
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/test/test_set_label.py +0 -0
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/test/test_set_label_response.py +0 -0
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/test/test_unset_label.py +0 -0
- {crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/test/test_unset_label_response.py +0 -0
|
@@ -4,7 +4,7 @@ Fetch, Upload, Organize, and Distribute Software Packages
|
|
|
4
4
|
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
5
5
|
|
|
6
6
|
- API version: v3
|
|
7
|
-
- Package version: 20250821.
|
|
7
|
+
- Package version: 20250821.4
|
|
8
8
|
- Generator version: 7.10.0
|
|
9
9
|
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
|
10
10
|
For more information, please visit [https://pulpproject.org](https://pulpproject.org)
|
|
@@ -56,10 +56,10 @@ import crc-pulp_npm-client
|
|
|
56
56
|
from crc-pulp_npm-client.rest import ApiException
|
|
57
57
|
from pprint import pprint
|
|
58
58
|
|
|
59
|
-
# Defining the host is optional and defaults to https://env-ephemeral-
|
|
59
|
+
# Defining the host is optional and defaults to https://env-ephemeral-rxp4hy.apps.crc-eph.r9lp.p1.openshiftapps.com
|
|
60
60
|
# See configuration.py for a list of all supported configuration parameters.
|
|
61
61
|
configuration = crc-pulp_npm-client.Configuration(
|
|
62
|
-
host = "https://env-ephemeral-
|
|
62
|
+
host = "https://env-ephemeral-rxp4hy.apps.crc-eph.r9lp.p1.openshiftapps.com"
|
|
63
63
|
)
|
|
64
64
|
|
|
65
65
|
# The client must configure the authentication and authorization parameters
|
|
@@ -110,7 +110,7 @@ with crc-pulp_npm-client.ApiClient(configuration) as api_client:
|
|
|
110
110
|
|
|
111
111
|
## Documentation for API Endpoints
|
|
112
112
|
|
|
113
|
-
All URIs are relative to *https://env-ephemeral-
|
|
113
|
+
All URIs are relative to *https://env-ephemeral-rxp4hy.apps.crc-eph.r9lp.p1.openshiftapps.com*
|
|
114
114
|
|
|
115
115
|
Class | Method | HTTP request | Description
|
|
116
116
|
------------ | ------------- | ------------- | -------------
|
{crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/crc-pulp_npm-client/api_client.py
RENAMED
|
@@ -91,7 +91,7 @@ class ApiClient:
|
|
|
91
91
|
self.default_headers[header_name] = header_value
|
|
92
92
|
self.cookie = cookie
|
|
93
93
|
# Set default User-Agent.
|
|
94
|
-
self.user_agent = 'OpenAPI-Generator/20250821.
|
|
94
|
+
self.user_agent = 'OpenAPI-Generator/20250821.4/python'
|
|
95
95
|
self.client_side_validation = configuration.client_side_validation
|
|
96
96
|
|
|
97
97
|
def __enter__(self):
|
|
@@ -225,7 +225,7 @@ conf = crc-pulp_npm-client.Configuration(
|
|
|
225
225
|
) -> None:
|
|
226
226
|
"""Constructor
|
|
227
227
|
"""
|
|
228
|
-
self._base_path = "https://env-ephemeral-
|
|
228
|
+
self._base_path = "https://env-ephemeral-rxp4hy.apps.crc-eph.r9lp.p1.openshiftapps.com" if host is None else host
|
|
229
229
|
"""Default Base url
|
|
230
230
|
"""
|
|
231
231
|
self.server_index = 0 if server_index is None and host is None else server_index
|
|
@@ -557,7 +557,7 @@ conf = crc-pulp_npm-client.Configuration(
|
|
|
557
557
|
"OS: {env}\n"\
|
|
558
558
|
"Python Version: {pyversion}\n"\
|
|
559
559
|
"Version of the API: v3\n"\
|
|
560
|
-
"SDK Package Version: 20250821.
|
|
560
|
+
"SDK Package Version: 20250821.4".\
|
|
561
561
|
format(env=sys.platform, pyversion=sys.version)
|
|
562
562
|
|
|
563
563
|
def get_host_settings(self) -> List[HostSetting]:
|
|
@@ -567,7 +567,7 @@ conf = crc-pulp_npm-client.Configuration(
|
|
|
567
567
|
"""
|
|
568
568
|
return [
|
|
569
569
|
{
|
|
570
|
-
'url': "https://env-ephemeral-
|
|
570
|
+
'url': "https://env-ephemeral-rxp4hy.apps.crc-eph.r9lp.p1.openshiftapps.com",
|
|
571
571
|
'description': "No description provided",
|
|
572
572
|
}
|
|
573
573
|
]
|
|
@@ -41,7 +41,7 @@ class NpmNpmRemote(BaseModel):
|
|
|
41
41
|
username: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The username to be used for authentication when syncing.")
|
|
42
42
|
password: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed.")
|
|
43
43
|
pulp_labels: Optional[Dict[str, Optional[StrictStr]]] = None
|
|
44
|
-
download_concurrency: Optional[
|
|
44
|
+
download_concurrency: Optional[StrictInt] = Field(default=None, description="Total number of simultaneous connections. If not set then the default value will be used.")
|
|
45
45
|
max_retries: Optional[StrictInt] = Field(default=None, description="Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.")
|
|
46
46
|
policy: Optional[PolicyEnum] = Field(default=None, description="The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'immediate' is the default. * `immediate` - When syncing, download all metadata and content now. * `on_demand` - When syncing, download metadata, but do not download content now. Instead, download content as clients request it, and save it in Pulp to be served for future client requests. * `streamed` - When syncing, download metadata, but do not download content now. Instead,download content as clients request it, but never save it in Pulp. This causes future requests for that same content to have to be downloaded again.")
|
|
47
47
|
total_timeout: Optional[Union[Annotated[float, Field(strict=True, ge=0.0)], Annotated[int, Field(strict=True, ge=0)]]] = Field(default=None, description="aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.")
|
|
@@ -42,7 +42,7 @@ class NpmNpmRemoteResponse(BaseModel):
|
|
|
42
42
|
tls_validation: Optional[StrictBool] = Field(default=None, description="If True, TLS peer validation must be performed.")
|
|
43
43
|
proxy_url: Optional[StrictStr] = Field(default=None, description="The proxy URL. Format: scheme://host:port")
|
|
44
44
|
pulp_labels: Optional[Dict[str, Optional[StrictStr]]] = None
|
|
45
|
-
download_concurrency: Optional[
|
|
45
|
+
download_concurrency: Optional[StrictInt] = Field(default=None, description="Total number of simultaneous connections. If not set then the default value will be used.")
|
|
46
46
|
max_retries: Optional[StrictInt] = Field(default=None, description="Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.")
|
|
47
47
|
policy: Optional[PolicyEnum] = Field(default=None, description="The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'immediate' is the default. * `immediate` - When syncing, download all metadata and content now. * `on_demand` - When syncing, download metadata, but do not download content now. Instead, download content as clients request it, and save it in Pulp to be served for future client requests. * `streamed` - When syncing, download metadata, but do not download content now. Instead,download content as clients request it, but never save it in Pulp. This causes future requests for that same content to have to be downloaded again.")
|
|
48
48
|
total_timeout: Optional[Union[Annotated[float, Field(strict=True, ge=0.0)], Annotated[int, Field(strict=True, ge=0)]]] = Field(default=None, description="aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.")
|
|
@@ -88,14 +88,12 @@ class NpmNpmRemoteResponse(BaseModel):
|
|
|
88
88
|
* OpenAPI `readOnly` fields are excluded.
|
|
89
89
|
* OpenAPI `readOnly` fields are excluded.
|
|
90
90
|
* OpenAPI `readOnly` fields are excluded.
|
|
91
|
-
* OpenAPI `readOnly` fields are excluded.
|
|
92
91
|
"""
|
|
93
92
|
excluded_fields: Set[str] = set([
|
|
94
93
|
"pulp_href",
|
|
95
94
|
"prn",
|
|
96
95
|
"pulp_created",
|
|
97
96
|
"pulp_last_updated",
|
|
98
|
-
"hidden_fields",
|
|
99
97
|
])
|
|
100
98
|
|
|
101
99
|
_dict = self.model_dump(
|
|
@@ -18,7 +18,7 @@ import pprint
|
|
|
18
18
|
import re # noqa: F401
|
|
19
19
|
import json
|
|
20
20
|
|
|
21
|
-
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
21
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
|
|
22
22
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
23
|
from typing_extensions import Annotated
|
|
24
24
|
from typing import Optional, Set
|
|
@@ -31,7 +31,7 @@ class NpmNpmRepository(BaseModel):
|
|
|
31
31
|
pulp_labels: Optional[Dict[str, Optional[StrictStr]]] = None
|
|
32
32
|
name: Annotated[str, Field(min_length=1, strict=True)] = Field(description="A unique name for this repository.")
|
|
33
33
|
description: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="An optional description.")
|
|
34
|
-
retain_repo_versions: Optional[
|
|
34
|
+
retain_repo_versions: Optional[StrictInt] = Field(default=None, description="Retain X versions of the repository. Default is null which retains all versions.")
|
|
35
35
|
remote: Optional[StrictStr] = Field(default=None, description="An optional remote to use by default when syncing.")
|
|
36
36
|
__properties: ClassVar[List[str]] = ["pulp_labels", "name", "description", "retain_repo_versions", "remote"]
|
|
37
37
|
|
|
@@ -19,9 +19,8 @@ import re # noqa: F401
|
|
|
19
19
|
import json
|
|
20
20
|
|
|
21
21
|
from datetime import datetime
|
|
22
|
-
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
22
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
|
|
23
23
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
24
|
-
from typing_extensions import Annotated
|
|
25
24
|
from typing import Optional, Set
|
|
26
25
|
from typing_extensions import Self
|
|
27
26
|
|
|
@@ -38,7 +37,7 @@ class NpmNpmRepositoryResponse(BaseModel):
|
|
|
38
37
|
latest_version_href: Optional[StrictStr] = None
|
|
39
38
|
name: StrictStr = Field(description="A unique name for this repository.")
|
|
40
39
|
description: Optional[StrictStr] = Field(default=None, description="An optional description.")
|
|
41
|
-
retain_repo_versions: Optional[
|
|
40
|
+
retain_repo_versions: Optional[StrictInt] = Field(default=None, description="Retain X versions of the repository. Default is null which retains all versions.")
|
|
42
41
|
remote: Optional[StrictStr] = Field(default=None, description="An optional remote to use by default when syncing.")
|
|
43
42
|
__properties: ClassVar[List[str]] = ["pulp_href", "prn", "pulp_created", "pulp_last_updated", "versions_href", "pulp_labels", "latest_version_href", "name", "description", "retain_repo_versions", "remote"]
|
|
44
43
|
|
|
@@ -33,11 +33,12 @@ class NpmPackageResponse(BaseModel):
|
|
|
33
33
|
pulp_created: Optional[datetime] = Field(default=None, description="Timestamp of creation.")
|
|
34
34
|
pulp_last_updated: Optional[datetime] = Field(default=None, description="Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.")
|
|
35
35
|
pulp_labels: Optional[Dict[str, Optional[StrictStr]]] = Field(default=None, description="A dictionary of arbitrary key/value pairs used to describe a specific Content instance.")
|
|
36
|
+
vuln_report: Optional[StrictStr] = None
|
|
36
37
|
artifact: Optional[StrictStr] = Field(default=None, description="Artifact file representing the physical content")
|
|
37
38
|
relative_path: StrictStr
|
|
38
39
|
name: StrictStr
|
|
39
40
|
version: StrictStr
|
|
40
|
-
__properties: ClassVar[List[str]] = ["pulp_href", "prn", "pulp_created", "pulp_last_updated", "pulp_labels", "artifact", "relative_path", "name", "version"]
|
|
41
|
+
__properties: ClassVar[List[str]] = ["pulp_href", "prn", "pulp_created", "pulp_last_updated", "pulp_labels", "vuln_report", "artifact", "relative_path", "name", "version"]
|
|
41
42
|
|
|
42
43
|
model_config = ConfigDict(
|
|
43
44
|
populate_by_name=True,
|
|
@@ -73,12 +74,14 @@ class NpmPackageResponse(BaseModel):
|
|
|
73
74
|
* OpenAPI `readOnly` fields are excluded.
|
|
74
75
|
* OpenAPI `readOnly` fields are excluded.
|
|
75
76
|
* OpenAPI `readOnly` fields are excluded.
|
|
77
|
+
* OpenAPI `readOnly` fields are excluded.
|
|
76
78
|
"""
|
|
77
79
|
excluded_fields: Set[str] = set([
|
|
78
80
|
"pulp_href",
|
|
79
81
|
"prn",
|
|
80
82
|
"pulp_created",
|
|
81
83
|
"pulp_last_updated",
|
|
84
|
+
"vuln_report",
|
|
82
85
|
])
|
|
83
86
|
|
|
84
87
|
_dict = self.model_dump(
|
|
@@ -103,6 +106,7 @@ class NpmPackageResponse(BaseModel):
|
|
|
103
106
|
"pulp_created": obj.get("pulp_created"),
|
|
104
107
|
"pulp_last_updated": obj.get("pulp_last_updated"),
|
|
105
108
|
"pulp_labels": obj.get("pulp_labels"),
|
|
109
|
+
"vuln_report": obj.get("vuln_report"),
|
|
106
110
|
"artifact": obj.get("artifact"),
|
|
107
111
|
"relative_path": obj.get("relative_path"),
|
|
108
112
|
"name": obj.get("name"),
|
|
@@ -80,16 +80,6 @@ class PaginatedRepositoryVersionResponseList(BaseModel):
|
|
|
80
80
|
if _item_results:
|
|
81
81
|
_items.append(_item_results.to_dict())
|
|
82
82
|
_dict['results'] = _items
|
|
83
|
-
# set to None if next (nullable) is None
|
|
84
|
-
# and model_fields_set contains the field
|
|
85
|
-
if self.next is None and "next" in self.model_fields_set:
|
|
86
|
-
_dict['next'] = None
|
|
87
|
-
|
|
88
|
-
# set to None if previous (nullable) is None
|
|
89
|
-
# and model_fields_set contains the field
|
|
90
|
-
if self.previous is None and "previous" in self.model_fields_set:
|
|
91
|
-
_dict['previous'] = None
|
|
92
|
-
|
|
93
83
|
return _dict
|
|
94
84
|
|
|
95
85
|
@classmethod
|
|
@@ -80,16 +80,6 @@ class PaginatednpmNpmDistributionResponseList(BaseModel):
|
|
|
80
80
|
if _item_results:
|
|
81
81
|
_items.append(_item_results.to_dict())
|
|
82
82
|
_dict['results'] = _items
|
|
83
|
-
# set to None if next (nullable) is None
|
|
84
|
-
# and model_fields_set contains the field
|
|
85
|
-
if self.next is None and "next" in self.model_fields_set:
|
|
86
|
-
_dict['next'] = None
|
|
87
|
-
|
|
88
|
-
# set to None if previous (nullable) is None
|
|
89
|
-
# and model_fields_set contains the field
|
|
90
|
-
if self.previous is None and "previous" in self.model_fields_set:
|
|
91
|
-
_dict['previous'] = None
|
|
92
|
-
|
|
93
83
|
return _dict
|
|
94
84
|
|
|
95
85
|
@classmethod
|
|
@@ -80,16 +80,6 @@ class PaginatednpmNpmRemoteResponseList(BaseModel):
|
|
|
80
80
|
if _item_results:
|
|
81
81
|
_items.append(_item_results.to_dict())
|
|
82
82
|
_dict['results'] = _items
|
|
83
|
-
# set to None if next (nullable) is None
|
|
84
|
-
# and model_fields_set contains the field
|
|
85
|
-
if self.next is None and "next" in self.model_fields_set:
|
|
86
|
-
_dict['next'] = None
|
|
87
|
-
|
|
88
|
-
# set to None if previous (nullable) is None
|
|
89
|
-
# and model_fields_set contains the field
|
|
90
|
-
if self.previous is None and "previous" in self.model_fields_set:
|
|
91
|
-
_dict['previous'] = None
|
|
92
|
-
|
|
93
83
|
return _dict
|
|
94
84
|
|
|
95
85
|
@classmethod
|
|
@@ -80,16 +80,6 @@ class PaginatednpmNpmRepositoryResponseList(BaseModel):
|
|
|
80
80
|
if _item_results:
|
|
81
81
|
_items.append(_item_results.to_dict())
|
|
82
82
|
_dict['results'] = _items
|
|
83
|
-
# set to None if next (nullable) is None
|
|
84
|
-
# and model_fields_set contains the field
|
|
85
|
-
if self.next is None and "next" in self.model_fields_set:
|
|
86
|
-
_dict['next'] = None
|
|
87
|
-
|
|
88
|
-
# set to None if previous (nullable) is None
|
|
89
|
-
# and model_fields_set contains the field
|
|
90
|
-
if self.previous is None and "previous" in self.model_fields_set:
|
|
91
|
-
_dict['previous'] = None
|
|
92
|
-
|
|
93
83
|
return _dict
|
|
94
84
|
|
|
95
85
|
@classmethod
|
|
@@ -80,16 +80,6 @@ class PaginatednpmPackageResponseList(BaseModel):
|
|
|
80
80
|
if _item_results:
|
|
81
81
|
_items.append(_item_results.to_dict())
|
|
82
82
|
_dict['results'] = _items
|
|
83
|
-
# set to None if next (nullable) is None
|
|
84
|
-
# and model_fields_set contains the field
|
|
85
|
-
if self.next is None and "next" in self.model_fields_set:
|
|
86
|
-
_dict['next'] = None
|
|
87
|
-
|
|
88
|
-
# set to None if previous (nullable) is None
|
|
89
|
-
# and model_fields_set contains the field
|
|
90
|
-
if self.previous is None and "previous" in self.model_fields_set:
|
|
91
|
-
_dict['previous'] = None
|
|
92
|
-
|
|
93
83
|
return _dict
|
|
94
84
|
|
|
95
85
|
@classmethod
|
|
@@ -41,7 +41,7 @@ class PatchednpmNpmRemote(BaseModel):
|
|
|
41
41
|
username: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The username to be used for authentication when syncing.")
|
|
42
42
|
password: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed.")
|
|
43
43
|
pulp_labels: Optional[Dict[str, Optional[StrictStr]]] = None
|
|
44
|
-
download_concurrency: Optional[
|
|
44
|
+
download_concurrency: Optional[StrictInt] = Field(default=None, description="Total number of simultaneous connections. If not set then the default value will be used.")
|
|
45
45
|
max_retries: Optional[StrictInt] = Field(default=None, description="Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.")
|
|
46
46
|
policy: Optional[PolicyEnum] = Field(default=None, description="The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'immediate' is the default. * `immediate` - When syncing, download all metadata and content now. * `on_demand` - When syncing, download metadata, but do not download content now. Instead, download content as clients request it, and save it in Pulp to be served for future client requests. * `streamed` - When syncing, download metadata, but do not download content now. Instead,download content as clients request it, but never save it in Pulp. This causes future requests for that same content to have to be downloaded again.")
|
|
47
47
|
total_timeout: Optional[Union[Annotated[float, Field(strict=True, ge=0.0)], Annotated[int, Field(strict=True, ge=0)]]] = Field(default=None, description="aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.")
|
|
@@ -18,7 +18,7 @@ import pprint
|
|
|
18
18
|
import re # noqa: F401
|
|
19
19
|
import json
|
|
20
20
|
|
|
21
|
-
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
21
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
|
|
22
22
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
23
|
from typing_extensions import Annotated
|
|
24
24
|
from typing import Optional, Set
|
|
@@ -31,7 +31,7 @@ class PatchednpmNpmRepository(BaseModel):
|
|
|
31
31
|
pulp_labels: Optional[Dict[str, Optional[StrictStr]]] = None
|
|
32
32
|
name: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="A unique name for this repository.")
|
|
33
33
|
description: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="An optional description.")
|
|
34
|
-
retain_repo_versions: Optional[
|
|
34
|
+
retain_repo_versions: Optional[StrictInt] = Field(default=None, description="Retain X versions of the repository. Default is null which retains all versions.")
|
|
35
35
|
remote: Optional[StrictStr] = Field(default=None, description="An optional remote to use by default when syncing.")
|
|
36
36
|
__properties: ClassVar[List[str]] = ["pulp_labels", "name", "description", "retain_repo_versions", "remote"]
|
|
37
37
|
|
|
@@ -37,7 +37,8 @@ class RepositoryVersionResponse(BaseModel):
|
|
|
37
37
|
repository: Optional[StrictStr] = None
|
|
38
38
|
base_version: Optional[StrictStr] = Field(default=None, description="A repository version whose content was used as the initial set of content for this repository version")
|
|
39
39
|
content_summary: Optional[ContentSummaryResponse] = Field(default=None, description="Various count summaries of the content in the version and the HREF to view them.")
|
|
40
|
-
|
|
40
|
+
vuln_report: Optional[StrictStr] = None
|
|
41
|
+
__properties: ClassVar[List[str]] = ["pulp_href", "prn", "pulp_created", "pulp_last_updated", "number", "repository", "base_version", "content_summary", "vuln_report"]
|
|
41
42
|
|
|
42
43
|
model_config = ConfigDict(
|
|
43
44
|
populate_by_name=True,
|
|
@@ -76,6 +77,7 @@ class RepositoryVersionResponse(BaseModel):
|
|
|
76
77
|
* OpenAPI `readOnly` fields are excluded.
|
|
77
78
|
* OpenAPI `readOnly` fields are excluded.
|
|
78
79
|
* OpenAPI `readOnly` fields are excluded.
|
|
80
|
+
* OpenAPI `readOnly` fields are excluded.
|
|
79
81
|
"""
|
|
80
82
|
excluded_fields: Set[str] = set([
|
|
81
83
|
"pulp_href",
|
|
@@ -85,6 +87,7 @@ class RepositoryVersionResponse(BaseModel):
|
|
|
85
87
|
"number",
|
|
86
88
|
"repository",
|
|
87
89
|
"content_summary",
|
|
90
|
+
"vuln_report",
|
|
88
91
|
])
|
|
89
92
|
|
|
90
93
|
_dict = self.model_dump(
|
|
@@ -114,7 +117,8 @@ class RepositoryVersionResponse(BaseModel):
|
|
|
114
117
|
"number": obj.get("number"),
|
|
115
118
|
"repository": obj.get("repository"),
|
|
116
119
|
"base_version": obj.get("base_version"),
|
|
117
|
-
"content_summary": ContentSummaryResponse.from_dict(obj["content_summary"]) if obj.get("content_summary") is not None else None
|
|
120
|
+
"content_summary": ContentSummaryResponse.from_dict(obj["content_summary"]) if obj.get("content_summary") is not None else None,
|
|
121
|
+
"vuln_report": obj.get("vuln_report")
|
|
118
122
|
})
|
|
119
123
|
return _obj
|
|
120
124
|
|
|
@@ -22,7 +22,7 @@ from setuptools import setup, find_packages # noqa: H301
|
|
|
22
22
|
# prerequisite: setuptools
|
|
23
23
|
# http://pypi.python.org/pypi/setuptools
|
|
24
24
|
NAME = "crc-pulp_npm-client"
|
|
25
|
-
VERSION = "20250821.
|
|
25
|
+
VERSION = "20250821.4"
|
|
26
26
|
PYTHON_REQUIRES = ">= 3.8"
|
|
27
27
|
REQUIRES = [
|
|
28
28
|
"urllib3 >= 1.25.3, < 3.0.0",
|
|
@@ -48,7 +48,8 @@ class TestPaginatedRepositoryVersionResponseList(unittest.TestCase):
|
|
|
48
48
|
number = 56,
|
|
49
49
|
repository = '',
|
|
50
50
|
base_version = '',
|
|
51
|
-
content_summary = null,
|
|
51
|
+
content_summary = null,
|
|
52
|
+
vuln_report = '', )
|
|
52
53
|
]
|
|
53
54
|
)
|
|
54
55
|
else:
|
|
@@ -63,7 +64,8 @@ class TestPaginatedRepositoryVersionResponseList(unittest.TestCase):
|
|
|
63
64
|
number = 56,
|
|
64
65
|
repository = '',
|
|
65
66
|
base_version = '',
|
|
66
|
-
content_summary = null,
|
|
67
|
+
content_summary = null,
|
|
68
|
+
vuln_report = '', )
|
|
67
69
|
],
|
|
68
70
|
)
|
|
69
71
|
"""
|
|
@@ -54,7 +54,7 @@ class TestPaginatednpmNpmRemoteResponseList(unittest.TestCase):
|
|
|
54
54
|
pulp_labels = {
|
|
55
55
|
'key' : ''
|
|
56
56
|
},
|
|
57
|
-
download_concurrency =
|
|
57
|
+
download_concurrency = 56,
|
|
58
58
|
max_retries = 56,
|
|
59
59
|
policy = null,
|
|
60
60
|
total_timeout = 0.0,
|
|
@@ -90,7 +90,7 @@ class TestPaginatednpmNpmRemoteResponseList(unittest.TestCase):
|
|
|
90
90
|
pulp_labels = {
|
|
91
91
|
'key' : ''
|
|
92
92
|
},
|
|
93
|
-
download_concurrency =
|
|
93
|
+
download_concurrency = 56,
|
|
94
94
|
max_retries = 56,
|
|
95
95
|
policy = null,
|
|
96
96
|
total_timeout = 0.0,
|
|
@@ -52,7 +52,7 @@ class TestPaginatednpmNpmRepositoryResponseList(unittest.TestCase):
|
|
|
52
52
|
latest_version_href = '',
|
|
53
53
|
name = '',
|
|
54
54
|
description = '',
|
|
55
|
-
retain_repo_versions =
|
|
55
|
+
retain_repo_versions = 56,
|
|
56
56
|
remote = '', )
|
|
57
57
|
]
|
|
58
58
|
)
|
|
@@ -72,7 +72,7 @@ class TestPaginatednpmNpmRepositoryResponseList(unittest.TestCase):
|
|
|
72
72
|
latest_version_href = '',
|
|
73
73
|
name = '',
|
|
74
74
|
description = '',
|
|
75
|
-
retain_repo_versions =
|
|
75
|
+
retain_repo_versions = 56,
|
|
76
76
|
remote = '', )
|
|
77
77
|
],
|
|
78
78
|
)
|
|
@@ -48,6 +48,7 @@ class TestPaginatednpmPackageResponseList(unittest.TestCase):
|
|
|
48
48
|
pulp_labels = {
|
|
49
49
|
'key' : ''
|
|
50
50
|
},
|
|
51
|
+
vuln_report = '',
|
|
51
52
|
artifact = '',
|
|
52
53
|
relative_path = '',
|
|
53
54
|
name = '',
|
|
@@ -66,6 +67,7 @@ class TestPaginatednpmPackageResponseList(unittest.TestCase):
|
|
|
66
67
|
pulp_labels = {
|
|
67
68
|
'key' : ''
|
|
68
69
|
},
|
|
70
|
+
vuln_report = '',
|
|
69
71
|
artifact = '',
|
|
70
72
|
relative_path = '',
|
|
71
73
|
name = '',
|
{crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/crc-pulp_npm-client/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/crc-pulp_npm-client/exceptions.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/crc-pulp_npm-client/py.typed
RENAMED
|
File without changes
|
{crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/crc-pulp_npm-client/rest.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/test/test_content_packages_api.py
RENAMED
|
File without changes
|
|
File without changes
|
{crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/test/test_distributions_npm_api.py
RENAMED
|
File without changes
|
{crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/test/test_npm_npm_distribution.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/test/test_remotes_npm_api.py
RENAMED
|
File without changes
|
|
File without changes
|
{crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/test/test_repositories_npm_api.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/test/test_repository_sync_url.py
RENAMED
|
File without changes
|
|
File without changes
|
{crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/test/test_set_label_response.py
RENAMED
|
File without changes
|
|
File without changes
|
{crc_pulp_npm_client-20250821.2 → crc_pulp_npm_client-20250821.4}/test/test_unset_label_response.py
RENAMED
|
File without changes
|