crc-pulp-npm-client 20250918.1__tar.gz → 20250919.1__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.

Files changed (85) hide show
  1. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/PKG-INFO +1 -1
  2. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/README.md +4 -4
  3. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/crc_pulp_npm_client.egg-info/PKG-INFO +1 -1
  4. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/pulpcore/client/pulp_npm/__init__.py +1 -1
  5. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/pulpcore/client/pulp_npm/api_client.py +1 -1
  6. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/pulpcore/client/pulp_npm/configuration.py +3 -3
  7. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/pulpcore/client/pulp_npm/models/npm_npm_remote.py +1 -1
  8. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/pulpcore/client/pulp_npm/models/npm_npm_remote_response.py +3 -1
  9. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/pulpcore/client/pulp_npm/models/npm_npm_repository.py +2 -2
  10. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/pulpcore/client/pulp_npm/models/npm_npm_repository_response.py +3 -2
  11. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/pulpcore/client/pulp_npm/models/paginated_repository_version_response_list.py +10 -0
  12. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/pulpcore/client/pulp_npm/models/paginatednpm_npm_distribution_response_list.py +10 -0
  13. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/pulpcore/client/pulp_npm/models/paginatednpm_npm_remote_response_list.py +10 -0
  14. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/pulpcore/client/pulp_npm/models/paginatednpm_npm_repository_response_list.py +10 -0
  15. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/pulpcore/client/pulp_npm/models/paginatednpm_package_response_list.py +10 -0
  16. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/pulpcore/client/pulp_npm/models/patchednpm_npm_remote.py +1 -1
  17. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/pulpcore/client/pulp_npm/models/patchednpm_npm_repository.py +2 -2
  18. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/pyproject.toml +1 -1
  19. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/setup.py +1 -1
  20. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/test/test_npm_npm_remote.py +1 -1
  21. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/test/test_npm_npm_remote_response.py +1 -1
  22. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/test/test_npm_npm_repository.py +1 -1
  23. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/test/test_npm_npm_repository_response.py +1 -1
  24. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/test/test_paginatednpm_npm_remote_response_list.py +2 -2
  25. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/test/test_paginatednpm_npm_repository_response_list.py +2 -2
  26. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/test/test_patchednpm_npm_remote.py +1 -1
  27. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/test/test_patchednpm_npm_repository.py +1 -1
  28. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/crc_pulp_npm_client.egg-info/SOURCES.txt +0 -0
  29. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/crc_pulp_npm_client.egg-info/dependency_links.txt +0 -0
  30. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/crc_pulp_npm_client.egg-info/requires.txt +0 -0
  31. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/crc_pulp_npm_client.egg-info/top_level.txt +0 -0
  32. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/pulpcore/__init__.py +0 -0
  33. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/pulpcore/client/__init__.py +0 -0
  34. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/pulpcore/client/pulp_npm/api/__init__.py +0 -0
  35. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/pulpcore/client/pulp_npm/api/content_packages_api.py +0 -0
  36. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/pulpcore/client/pulp_npm/api/distributions_npm_api.py +0 -0
  37. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/pulpcore/client/pulp_npm/api/remotes_npm_api.py +0 -0
  38. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/pulpcore/client/pulp_npm/api/repositories_npm_api.py +0 -0
  39. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/pulpcore/client/pulp_npm/api/repositories_npm_versions_api.py +0 -0
  40. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/pulpcore/client/pulp_npm/api_response.py +0 -0
  41. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/pulpcore/client/pulp_npm/exceptions.py +0 -0
  42. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/pulpcore/client/pulp_npm/models/__init__.py +0 -0
  43. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/pulpcore/client/pulp_npm/models/async_operation_response.py +0 -0
  44. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/pulpcore/client/pulp_npm/models/content_summary_response.py +0 -0
  45. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/pulpcore/client/pulp_npm/models/npm_npm_distribution.py +0 -0
  46. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/pulpcore/client/pulp_npm/models/npm_npm_distribution_response.py +0 -0
  47. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/pulpcore/client/pulp_npm/models/npm_npm_remote_response_hidden_fields_inner.py +0 -0
  48. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/pulpcore/client/pulp_npm/models/npm_package_response.py +0 -0
  49. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/pulpcore/client/pulp_npm/models/patchednpm_npm_distribution.py +0 -0
  50. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/pulpcore/client/pulp_npm/models/policy_enum.py +0 -0
  51. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/pulpcore/client/pulp_npm/models/repair.py +0 -0
  52. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/pulpcore/client/pulp_npm/models/repository_add_remove_content.py +0 -0
  53. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/pulpcore/client/pulp_npm/models/repository_sync_url.py +0 -0
  54. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/pulpcore/client/pulp_npm/models/repository_version_response.py +0 -0
  55. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/pulpcore/client/pulp_npm/models/set_label.py +0 -0
  56. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/pulpcore/client/pulp_npm/models/set_label_response.py +0 -0
  57. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/pulpcore/client/pulp_npm/models/unset_label.py +0 -0
  58. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/pulpcore/client/pulp_npm/models/unset_label_response.py +0 -0
  59. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/pulpcore/client/pulp_npm/py.typed +0 -0
  60. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/pulpcore/client/pulp_npm/rest.py +0 -0
  61. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/setup.cfg +0 -0
  62. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/test/test_async_operation_response.py +0 -0
  63. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/test/test_content_packages_api.py +0 -0
  64. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/test/test_content_summary_response.py +0 -0
  65. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/test/test_distributions_npm_api.py +0 -0
  66. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/test/test_npm_npm_distribution.py +0 -0
  67. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/test/test_npm_npm_distribution_response.py +0 -0
  68. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/test/test_npm_npm_remote_response_hidden_fields_inner.py +0 -0
  69. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/test/test_npm_package_response.py +0 -0
  70. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/test/test_paginated_repository_version_response_list.py +0 -0
  71. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/test/test_paginatednpm_npm_distribution_response_list.py +0 -0
  72. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/test/test_paginatednpm_package_response_list.py +0 -0
  73. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/test/test_patchednpm_npm_distribution.py +0 -0
  74. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/test/test_policy_enum.py +0 -0
  75. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/test/test_remotes_npm_api.py +0 -0
  76. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/test/test_repair.py +0 -0
  77. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/test/test_repositories_npm_api.py +0 -0
  78. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/test/test_repositories_npm_versions_api.py +0 -0
  79. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/test/test_repository_add_remove_content.py +0 -0
  80. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/test/test_repository_sync_url.py +0 -0
  81. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/test/test_repository_version_response.py +0 -0
  82. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/test/test_set_label.py +0 -0
  83. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/test/test_set_label_response.py +0 -0
  84. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/test/test_unset_label.py +0 -0
  85. {crc_pulp_npm_client-20250918.1 → crc_pulp_npm_client-20250919.1}/test/test_unset_label_response.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: crc-pulp_npm-client
3
- Version: 20250918.1
3
+ Version: 20250919.1
4
4
  Summary: Pulp 3 API
5
5
  Home-page:
6
6
  Author: Pulp Team
@@ -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: 20250918.1
7
+ - Package version: 20250919.1
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 pulpcore.client.pulp_npm
56
56
  from pulpcore.client.pulp_npm.rest import ApiException
57
57
  from pprint import pprint
58
58
 
59
- # Defining the host is optional and defaults to https://env-ephemeral-rqmobx.apps.crc-eph.r9lp.p1.openshiftapps.com
59
+ # Defining the host is optional and defaults to https://env-ephemeral-nmdhqa.apps.crc-eph.r9lp.p1.openshiftapps.com
60
60
  # See configuration.py for a list of all supported configuration parameters.
61
61
  configuration = pulpcore.client.pulp_npm.Configuration(
62
- host = "https://env-ephemeral-rqmobx.apps.crc-eph.r9lp.p1.openshiftapps.com"
62
+ host = "https://env-ephemeral-nmdhqa.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 pulpcore.client.pulp_npm.ApiClient(configuration) as api_client:
110
110
 
111
111
  ## Documentation for API Endpoints
112
112
 
113
- All URIs are relative to *https://env-ephemeral-rqmobx.apps.crc-eph.r9lp.p1.openshiftapps.com*
113
+ All URIs are relative to *https://env-ephemeral-nmdhqa.apps.crc-eph.r9lp.p1.openshiftapps.com*
114
114
 
115
115
  Class | Method | HTTP request | Description
116
116
  ------------ | ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: crc-pulp_npm-client
3
- Version: 20250918.1
3
+ Version: 20250919.1
4
4
  Summary: Pulp 3 API
5
5
  Home-page:
6
6
  Author: Pulp Team
@@ -15,7 +15,7 @@
15
15
  """ # noqa: E501
16
16
 
17
17
 
18
- __version__ = "20250918.1"
18
+ __version__ = "20250919.1"
19
19
 
20
20
  # import apis into sdk package
21
21
  from pulpcore.client.pulp_npm.api.content_packages_api import ContentPackagesApi
@@ -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/20250918.1/python'
94
+ self.user_agent = 'OpenAPI-Generator/20250919.1/python'
95
95
  self.client_side_validation = configuration.client_side_validation
96
96
 
97
97
  def __enter__(self):
@@ -225,7 +225,7 @@ conf = pulpcore.client.pulp_npm.Configuration(
225
225
  ) -> None:
226
226
  """Constructor
227
227
  """
228
- self._base_path = "https://env-ephemeral-rqmobx.apps.crc-eph.r9lp.p1.openshiftapps.com" if host is None else host
228
+ self._base_path = "https://env-ephemeral-nmdhqa.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 = pulpcore.client.pulp_npm.Configuration(
557
557
  "OS: {env}\n"\
558
558
  "Python Version: {pyversion}\n"\
559
559
  "Version of the API: v3\n"\
560
- "SDK Package Version: 20250918.1".\
560
+ "SDK Package Version: 20250919.1".\
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 = pulpcore.client.pulp_npm.Configuration(
567
567
  """
568
568
  return [
569
569
  {
570
- 'url': "https://env-ephemeral-rqmobx.apps.crc-eph.r9lp.p1.openshiftapps.com",
570
+ 'url': "https://env-ephemeral-nmdhqa.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[StrictInt] = Field(default=None, description="Total number of simultaneous connections. If not set then the default value will be used.")
44
+ download_concurrency: Optional[Annotated[int, Field(strict=True, ge=1)]] = 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[StrictInt] = Field(default=None, description="Total number of simultaneous connections. If not set then the default value will be used.")
45
+ download_concurrency: Optional[Annotated[int, Field(strict=True, ge=1)]] = 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,12 +88,14 @@ 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.
91
92
  """
92
93
  excluded_fields: Set[str] = set([
93
94
  "pulp_href",
94
95
  "prn",
95
96
  "pulp_created",
96
97
  "pulp_last_updated",
98
+ "hidden_fields",
97
99
  ])
98
100
 
99
101
  _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, StrictInt, StrictStr
21
+ from pydantic import BaseModel, ConfigDict, Field, 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[StrictInt] = Field(default=None, description="Retain X versions of the repository. Default is null which retains all versions.")
34
+ retain_repo_versions: Optional[Annotated[int, Field(strict=True, ge=1)]] = 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,8 +19,9 @@ import re # noqa: F401
19
19
  import json
20
20
 
21
21
  from datetime import datetime
22
- from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
22
+ from pydantic import BaseModel, ConfigDict, Field, StrictStr
23
23
  from typing import Any, ClassVar, Dict, List, Optional
24
+ from typing_extensions import Annotated
24
25
  from typing import Optional, Set
25
26
  from typing_extensions import Self
26
27
 
@@ -37,7 +38,7 @@ class NpmNpmRepositoryResponse(BaseModel):
37
38
  latest_version_href: Optional[StrictStr] = None
38
39
  name: StrictStr = Field(description="A unique name for this repository.")
39
40
  description: Optional[StrictStr] = Field(default=None, description="An optional description.")
40
- retain_repo_versions: Optional[StrictInt] = Field(default=None, description="Retain X versions of the repository. Default is null which retains all versions.")
41
+ retain_repo_versions: Optional[Annotated[int, Field(strict=True, ge=1)]] = Field(default=None, description="Retain X versions of the repository. Default is null which retains all versions.")
41
42
  remote: Optional[StrictStr] = Field(default=None, description="An optional remote to use by default when syncing.")
42
43
  __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"]
43
44
 
@@ -80,6 +80,16 @@ 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
+
83
93
  return _dict
84
94
 
85
95
  @classmethod
@@ -80,6 +80,16 @@ 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
+
83
93
  return _dict
84
94
 
85
95
  @classmethod
@@ -80,6 +80,16 @@ 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
+
83
93
  return _dict
84
94
 
85
95
  @classmethod
@@ -80,6 +80,16 @@ 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
+
83
93
  return _dict
84
94
 
85
95
  @classmethod
@@ -80,6 +80,16 @@ 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
+
83
93
  return _dict
84
94
 
85
95
  @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[StrictInt] = Field(default=None, description="Total number of simultaneous connections. If not set then the default value will be used.")
44
+ download_concurrency: Optional[Annotated[int, Field(strict=True, ge=1)]] = 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, StrictInt, StrictStr
21
+ from pydantic import BaseModel, ConfigDict, Field, 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[StrictInt] = Field(default=None, description="Retain X versions of the repository. Default is null which retains all versions.")
34
+ retain_repo_versions: Optional[Annotated[int, Field(strict=True, ge=1)]] = 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
 
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "pulpcore.client.pulp_npm"
3
- version = "20250918.1"
3
+ version = "20250919.1"
4
4
  description = "Pulp 3 API"
5
5
  authors = ["Pulp Team <pulp-list@redhat.com>"]
6
6
  license = "GPLv2+"
@@ -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 = "20250918.1"
25
+ VERSION = "20250919.1"
26
26
  PYTHON_REQUIRES = ">= 3.8"
27
27
  REQUIRES = [
28
28
  "urllib3 >= 1.25.3, < 3.0.0",
@@ -50,7 +50,7 @@ class TestNpmNpmRemote(unittest.TestCase):
50
50
  pulp_labels = {
51
51
  'key' : ''
52
52
  },
53
- download_concurrency = 56,
53
+ download_concurrency = 1,
54
54
  max_retries = 56,
55
55
  policy = 'immediate',
56
56
  total_timeout = 0.0,
@@ -49,7 +49,7 @@ class TestNpmNpmRemoteResponse(unittest.TestCase):
49
49
  pulp_labels = {
50
50
  'key' : ''
51
51
  },
52
- download_concurrency = 56,
52
+ download_concurrency = 1,
53
53
  max_retries = 56,
54
54
  policy = 'immediate',
55
55
  total_timeout = 0.0,
@@ -41,7 +41,7 @@ class TestNpmNpmRepository(unittest.TestCase):
41
41
  },
42
42
  name = '0',
43
43
  description = '0',
44
- retain_repo_versions = 56,
44
+ retain_repo_versions = 1,
45
45
  remote = ''
46
46
  )
47
47
  else:
@@ -47,7 +47,7 @@ class TestNpmNpmRepositoryResponse(unittest.TestCase):
47
47
  latest_version_href = '',
48
48
  name = '',
49
49
  description = '',
50
- retain_repo_versions = 56,
50
+ retain_repo_versions = 1,
51
51
  remote = ''
52
52
  )
53
53
  else:
@@ -54,7 +54,7 @@ class TestPaginatednpmNpmRemoteResponseList(unittest.TestCase):
54
54
  pulp_labels = {
55
55
  'key' : ''
56
56
  },
57
- download_concurrency = 56,
57
+ download_concurrency = 1,
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 = 56,
93
+ download_concurrency = 1,
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 = 56,
55
+ retain_repo_versions = 1,
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 = 56,
75
+ retain_repo_versions = 1,
76
76
  remote = '', )
77
77
  ],
78
78
  )
@@ -50,7 +50,7 @@ class TestPatchednpmNpmRemote(unittest.TestCase):
50
50
  pulp_labels = {
51
51
  'key' : ''
52
52
  },
53
- download_concurrency = 56,
53
+ download_concurrency = 1,
54
54
  max_retries = 56,
55
55
  policy = 'immediate',
56
56
  total_timeout = 0.0,
@@ -41,7 +41,7 @@ class TestPatchednpmNpmRepository(unittest.TestCase):
41
41
  },
42
42
  name = '0',
43
43
  description = '0',
44
- retain_repo_versions = 56,
44
+ retain_repo_versions = 1,
45
45
  remote = ''
46
46
  )
47
47
  else: