crc-pulp-npm-client 20250918.1__py3-none-any.whl → 20250919.1__py3-none-any.whl

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.

@@ -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
@@ -1,9 +1,9 @@
1
1
  pulpcore/__init__.py,sha256=QDJyS5jtJnGFsSuOx43ZvLBCOrHImm8NrZk5f9URWdk,75
2
2
  pulpcore/client/__init__.py,sha256=QDJyS5jtJnGFsSuOx43ZvLBCOrHImm8NrZk5f9URWdk,75
3
- pulpcore/client/pulp_npm/__init__.py,sha256=wSaDwscCmeVu82YcnSCHFPz3UFYLIdM-r-gWo0gLHyM,3906
4
- pulpcore/client/pulp_npm/api_client.py,sha256=I3NMzWUnhKqGLhHJoKgbiZiUoiJAGXiCoVvpEcQGbMw,27517
3
+ pulpcore/client/pulp_npm/__init__.py,sha256=Yl8zKnreMUY3DxY3SdN-yNmUsS4SOI6tl26-khOsKbM,3906
4
+ pulpcore/client/pulp_npm/api_client.py,sha256=ppQrFWKOOrfdSPUbN9tINyIR3mpuVmyQh237nCiV178,27517
5
5
  pulpcore/client/pulp_npm/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
6
- pulpcore/client/pulp_npm/configuration.py,sha256=fNMlPgLwe6gEx2lPIekWctlkNKko9FgzkKl3ZRd1Bgs,19674
6
+ pulpcore/client/pulp_npm/configuration.py,sha256=ryQ5kP32B6aKdfb5VXkj63Bv57OTiZKBKF4UpLa-V9Y,19674
7
7
  pulpcore/client/pulp_npm/exceptions.py,sha256=voqdIkPGpfNSUF9SsFqERflJMVs-uYFH60fd1rcsz6Y,5957
8
8
  pulpcore/client/pulp_npm/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
9
  pulpcore/client/pulp_npm/rest.py,sha256=qI2QLYfBm1XAk85JdUc2JG2y0IfX51V98Ta2H4wMZoQ,9407
@@ -18,20 +18,20 @@ pulpcore/client/pulp_npm/models/async_operation_response.py,sha256=IbcgvoCxfMCL9
18
18
  pulpcore/client/pulp_npm/models/content_summary_response.py,sha256=lu9_HyGS1qnHpEQLJYe_e9rk9VGohiCNSI7mi7ZeobA,2714
19
19
  pulpcore/client/pulp_npm/models/npm_npm_distribution.py,sha256=ElRcXgl5NH01ZUkKqnc43SUhcv8Kw6tQMcAjqP0AgdQ,4571
20
20
  pulpcore/client/pulp_npm/models/npm_npm_distribution_response.py,sha256=mlZHzm9vTToriRqe_38Y2z6ub1npjxorpI8SjLCWB6o,6288
21
- pulpcore/client/pulp_npm/models/npm_npm_remote.py,sha256=cfvwJun7x1KpsyDbG_c0X-rLGBZ4cpOxA4Hr0Q8M5FA,12427
22
- pulpcore/client/pulp_npm/models/npm_npm_remote_response.py,sha256=Ee-bCIDB-ClFkoGQu1IHF29ea6Q0A59BCPhROdm5I04,11637
21
+ pulpcore/client/pulp_npm/models/npm_npm_remote.py,sha256=Kf7DU9raDa2EKPSQlAevW9cRJKPEUdMPakvnjRkU8-o,12458
22
+ pulpcore/client/pulp_npm/models/npm_npm_remote_response.py,sha256=VwTnUVLS_Rw48l5oQW7o7evDwh-2xTNZa5ucpOwbm3I,11747
23
23
  pulpcore/client/pulp_npm/models/npm_npm_remote_response_hidden_fields_inner.py,sha256=aCyHvOui1ZwAj56eJpjp4alkQ-w1lTBu0GcEXrqSDro,2635
24
- pulpcore/client/pulp_npm/models/npm_npm_repository.py,sha256=GpZaf6hN7R9k4F2Lbf0XD4Z5j7xXUWerftOCCX7KSw8,4392
25
- pulpcore/client/pulp_npm/models/npm_npm_repository_response.py,sha256=sG5SoRLAAzVN8DxUk2rT_jDVCv1t_zpBV39MvLYTGAk,5824
24
+ pulpcore/client/pulp_npm/models/npm_npm_repository.py,sha256=LzEN9XhJD2gMmiBKTSSoTGnXtdQQFPqUHiw6VvGt92w,4412
25
+ pulpcore/client/pulp_npm/models/npm_npm_repository_response.py,sha256=5R93mSpkT9wf0mRXQ39aQVuRJ63Ar2syIGAhJVQxAsk,5884
26
26
  pulpcore/client/pulp_npm/models/npm_package_response.py,sha256=_qy8_-I7zXIYeXCuIfgwzE9DjcaWjsFVO25T-ip2Uzs,4808
27
- pulpcore/client/pulp_npm/models/paginated_repository_version_response_list.py,sha256=dtmAyud0E61OvifJT4Ij1N-mPbOIDi_kEUCa_xYOPMs,3382
28
- pulpcore/client/pulp_npm/models/paginatednpm_npm_distribution_response_list.py,sha256=7tFwYrFsVrGF2x194gSyQZQy2w2CTbNWjfjCnjDBb0Q,3391
29
- pulpcore/client/pulp_npm/models/paginatednpm_npm_remote_response_list.py,sha256=GomfFU7RYGJOPvQD7lNMD70X685uf7vy1RQm6EeS5GE,3343
30
- pulpcore/client/pulp_npm/models/paginatednpm_npm_repository_response_list.py,sha256=dgys4BSQD9mefbQs0i4LS-O81DQWIhHBIdiTSCj8Hyg,3375
31
- pulpcore/client/pulp_npm/models/paginatednpm_package_response_list.py,sha256=Ndu6jTwcCG-ToKiDfIP-WztIAPFPHFF_lbmFkpcfA0c,3326
27
+ pulpcore/client/pulp_npm/models/paginated_repository_version_response_list.py,sha256=v0JZ2tczCP7laKk30-2iZOK3VEG7_iTbSHpMMwfIBQs,3796
28
+ pulpcore/client/pulp_npm/models/paginatednpm_npm_distribution_response_list.py,sha256=qQdxPi7GYIrKtBhn_QZKWS8ioKgVpnd2XjRUMvvbkCs,3805
29
+ pulpcore/client/pulp_npm/models/paginatednpm_npm_remote_response_list.py,sha256=AAUBxOeU86FJoKGEx_P6bD2L3Am5Q8bBK7ecScokanM,3757
30
+ pulpcore/client/pulp_npm/models/paginatednpm_npm_repository_response_list.py,sha256=Vltvbm5UAqyJREd0GD3hnBDef1xmMgVF0b4OfQxUSTE,3789
31
+ pulpcore/client/pulp_npm/models/paginatednpm_package_response_list.py,sha256=njtWHNYcJ3Bf17-EFWEqvY-gJufJkaGVT84OQXsm388,3740
32
32
  pulpcore/client/pulp_npm/models/patchednpm_npm_distribution.py,sha256=t9aT0wwaqDqdt4FhMQPMKxJt8FNlS7KtkSBK3bLxJAQ,4640
33
- pulpcore/client/pulp_npm/models/patchednpm_npm_remote.py,sha256=_QecLzPjNXJh7YHTFIjjSp3ALQd5HWscEKRCj5Va8tk,12496
34
- pulpcore/client/pulp_npm/models/patchednpm_npm_repository.py,sha256=HufjJkq6Ys-9j5qgMpW6JyEcWQoULEbhDc_7t9m-xUM,4437
33
+ pulpcore/client/pulp_npm/models/patchednpm_npm_remote.py,sha256=wk2r8PKF-NXw5NhisVK2nHemBON5JBk_eF5sKNGwlfI,12527
34
+ pulpcore/client/pulp_npm/models/patchednpm_npm_repository.py,sha256=MIEkD6oZaRGsSx8ARYLRah6ZN74OQewX5BLcNG82mCU,4457
35
35
  pulpcore/client/pulp_npm/models/policy_enum.py,sha256=alBNbWymx71uIJJLX3vvtlW-2wIql23bfXHM-DtgCww,1254
36
36
  pulpcore/client/pulp_npm/models/repair.py,sha256=M8UfanWpr-eFWYNl6Dba83L-dI2BA9djt8QxIhPR6i4,2756
37
37
  pulpcore/client/pulp_npm/models/repository_add_remove_content.py,sha256=q_pkagT8zIyG59AOIOCuZtBOVwrh_RHAbv6JcBPR0H8,3782
@@ -41,7 +41,7 @@ pulpcore/client/pulp_npm/models/set_label.py,sha256=U4GfMTtATF317Z37s7E8CAeTo0u6
41
41
  pulpcore/client/pulp_npm/models/set_label_response.py,sha256=nUSYQHAxcJ3ATyUmBfiu8L6xSspCLKwbwxVSZaY9yv0,3163
42
42
  pulpcore/client/pulp_npm/models/unset_label.py,sha256=m6s6AFgi5_7fKsjPhcLwz7ZjKXsSd_4F6PS7u5eINO0,2858
43
43
  pulpcore/client/pulp_npm/models/unset_label_response.py,sha256=-TZohJf66mUqg4qD04k1dNoyAx69bX_VSf-HM9EpqN8,3046
44
- crc_pulp_npm_client-20250918.1.dist-info/METADATA,sha256=q9yzDFFFxFaVtbQWKhBSel9o6OU3VPc93zknImi17mM,638
45
- crc_pulp_npm_client-20250918.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
46
- crc_pulp_npm_client-20250918.1.dist-info/top_level.txt,sha256=v1J0AeNxNhm8YE5-xQe1G1YbfoMRZ_u9DAg_Gi7omeY,9
47
- crc_pulp_npm_client-20250918.1.dist-info/RECORD,,
44
+ crc_pulp_npm_client-20250919.1.dist-info/METADATA,sha256=zF26BIYadfW_QK-PX33BNIfWULd9RlLG38utYo7-wJY,638
45
+ crc_pulp_npm_client-20250919.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
46
+ crc_pulp_npm_client-20250919.1.dist-info/top_level.txt,sha256=v1J0AeNxNhm8YE5-xQe1G1YbfoMRZ_u9DAg_Gi7omeY,9
47
+ crc_pulp_npm_client-20250919.1.dist-info/RECORD,,
@@ -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