crc-pulp-file-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-file-client might be problematic. Click here for more details.

Files changed (21) hide show
  1. {crc_pulp_file_client-20250918.1.dist-info → crc_pulp_file_client-20250919.1.dist-info}/METADATA +1 -1
  2. {crc_pulp_file_client-20250918.1.dist-info → crc_pulp_file_client-20250919.1.dist-info}/RECORD +21 -21
  3. pulpcore/client/pulp_file/__init__.py +1 -1
  4. pulpcore/client/pulp_file/api_client.py +1 -1
  5. pulpcore/client/pulp_file/configuration.py +3 -3
  6. pulpcore/client/pulp_file/models/file_file_publication_response.py +2 -0
  7. pulpcore/client/pulp_file/models/file_file_remote.py +1 -1
  8. pulpcore/client/pulp_file/models/file_file_remote_response.py +3 -1
  9. pulpcore/client/pulp_file/models/file_file_repository.py +2 -2
  10. pulpcore/client/pulp_file/models/file_file_repository_response.py +3 -2
  11. pulpcore/client/pulp_file/models/paginated_repository_version_response_list.py +10 -0
  12. pulpcore/client/pulp_file/models/paginatedfile_file_alternate_content_source_response_list.py +10 -0
  13. pulpcore/client/pulp_file/models/paginatedfile_file_content_response_list.py +10 -0
  14. pulpcore/client/pulp_file/models/paginatedfile_file_distribution_response_list.py +10 -0
  15. pulpcore/client/pulp_file/models/paginatedfile_file_publication_response_list.py +10 -0
  16. pulpcore/client/pulp_file/models/paginatedfile_file_remote_response_list.py +10 -0
  17. pulpcore/client/pulp_file/models/paginatedfile_file_repository_response_list.py +10 -0
  18. pulpcore/client/pulp_file/models/patchedfile_file_remote.py +1 -1
  19. pulpcore/client/pulp_file/models/patchedfile_file_repository.py +2 -2
  20. {crc_pulp_file_client-20250918.1.dist-info → crc_pulp_file_client-20250919.1.dist-info}/WHEEL +0 -0
  21. {crc_pulp_file_client-20250918.1.dist-info → crc_pulp_file_client-20250919.1.dist-info}/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: crc-pulp_file-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_file/__init__.py,sha256=9shQoDZyKg9KxkItMJL0AJ9kMQRR0BxsseOu3glpVHU,5447
4
- pulpcore/client/pulp_file/api_client.py,sha256=VLMVMHmHNrSL1-afL98iKlTS9gTozQC8DuW2Mn-RAZ8,27523
3
+ pulpcore/client/pulp_file/__init__.py,sha256=bti3aZwh33TUJ-sSZLsxul34UTjKTsWSJv55vfcVlyY,5447
4
+ pulpcore/client/pulp_file/api_client.py,sha256=Lh4MXYEgaqv1cFbdba6lG5SKuF6uXUmU0EpQVC-tgT0,27523
5
5
  pulpcore/client/pulp_file/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
6
- pulpcore/client/pulp_file/configuration.py,sha256=w5LC4_J2fHHZtzA5ZP_Pqr1YQ5IgJlkzBnAQbihmASw,19677
6
+ pulpcore/client/pulp_file/configuration.py,sha256=f8Lw3AgKJ1lbGD15Yy0ElR2FH7_g1gmsOMaJePvY3S0,19677
7
7
  pulpcore/client/pulp_file/exceptions.py,sha256=voqdIkPGpfNSUF9SsFqERflJMVs-uYFH60fd1rcsz6Y,5957
8
8
  pulpcore/client/pulp_file/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
9
  pulpcore/client/pulp_file/rest.py,sha256=yBnNFa7idpssXPW-DhmcSN3gyZaQO12tRqU6hWbwreY,9408
@@ -24,27 +24,27 @@ pulpcore/client/pulp_file/models/file_file_content_response.py,sha256=y96Bd1wKXc
24
24
  pulpcore/client/pulp_file/models/file_file_distribution.py,sha256=qPUzMFTCCZqvAYepNMl7MBFpyFc27A4YSQUqhg4U9Nk,4676
25
25
  pulpcore/client/pulp_file/models/file_file_distribution_response.py,sha256=-91JAVb2-Xlm4mZDFjoiu9SSFvANqo8sjDKJrDAyOQM,6393
26
26
  pulpcore/client/pulp_file/models/file_file_publication.py,sha256=u3U1g_WGZDei6_DTVz0LSVq54O1QnsXej3t_e5wyFBg,3439
27
- pulpcore/client/pulp_file/models/file_file_publication_response.py,sha256=L2NyaF6t8dZXPdD8NIQYF8H_SKbCseKUsnKGvfmkZwM,4712
28
- pulpcore/client/pulp_file/models/file_file_remote.py,sha256=UJnSK13dWujUigx_0FQwLe_d6UpVs0vj7Xc6poa2BZg,11922
29
- pulpcore/client/pulp_file/models/file_file_remote_response.py,sha256=nN8OxPym9b_9EI7BMcHqVCOr4HXcnz26QbLmfvD4C8Q,11141
27
+ pulpcore/client/pulp_file/models/file_file_publication_response.py,sha256=Pz7O-RouNYUWzLe6VGtAC55hLtMZVlKcsFfRUG4USnM,4791
28
+ pulpcore/client/pulp_file/models/file_file_remote.py,sha256=Os2UDIzhk0l3ksqbViWsnK8Mb4kTSX1m3E16V2GWsGY,11953
29
+ pulpcore/client/pulp_file/models/file_file_remote_response.py,sha256=T2wJHPtf43DwxYKMDbaYyMO3AGe-W9OXXiFh1BEkAWA,11251
30
30
  pulpcore/client/pulp_file/models/file_file_remote_response_hidden_fields_inner.py,sha256=IKGVxnSiUd0tbbA6MZIWH-vOTVmhqrlPASmYxE6hfk8,2643
31
- pulpcore/client/pulp_file/models/file_file_repository.py,sha256=YILoZhDYvMQbdqKqIaOM0Y39zXJcahGCIII5cDqmtDQ,4970
32
- pulpcore/client/pulp_file/models/file_file_repository_response.py,sha256=Q69HAyXpL4W-28dBdW_lyCEQ2mtj7saoinZ0vNHT1g8,6363
31
+ pulpcore/client/pulp_file/models/file_file_repository.py,sha256=P9TpWZtyofexYiOdxlEkooVJXLjCvamServUdBRWl1U,4990
32
+ pulpcore/client/pulp_file/models/file_file_repository_response.py,sha256=lrlC05sSSCNrNz2JIGoi3_iaKYex-MM4aIa4xMwlc74,6423
33
33
  pulpcore/client/pulp_file/models/my_permissions_response.py,sha256=q5KI8WcrUykr38UGVLlque5b7NVMZFd7-Gy0exa-YK8,2519
34
34
  pulpcore/client/pulp_file/models/nested_role.py,sha256=_QDbpC49ZywdkvKtd2vWnh9cxhct1kcHizHxQ1pIvH0,3003
35
35
  pulpcore/client/pulp_file/models/nested_role_response.py,sha256=j3oDMZ6T7FdGcuOdhKM5VkAYn0aUbcF73675vaNDOxk,2874
36
36
  pulpcore/client/pulp_file/models/object_roles_response.py,sha256=5km9-7q9GluifQ2HAml1PHwHmHByEzjwmYBCVP2_8HU,2974
37
- pulpcore/client/pulp_file/models/paginated_repository_version_response_list.py,sha256=st-5_U3NdOyCYUh8KC0jLO9i-cppzt4U8rV8V5LHQ9Y,3383
38
- pulpcore/client/pulp_file/models/paginatedfile_file_alternate_content_source_response_list.py,sha256=ezRdcYQ51hfMMK84vh5Qf1BN_xm_rxfHV2GURqUmtDs,3490
39
- pulpcore/client/pulp_file/models/paginatedfile_file_content_response_list.py,sha256=Ti2jBY8Hlx-rqOtgrYsHhQWgijja6OaBcpBdykntROk,3368
40
- pulpcore/client/pulp_file/models/paginatedfile_file_distribution_response_list.py,sha256=WkaVtIReVQ931HpMI6ZSl0Sb20YMm93eIjtiaY3LUG4,3408
41
- pulpcore/client/pulp_file/models/paginatedfile_file_publication_response_list.py,sha256=_U5aFjTYNlDeLMBhWt7_Hl30zc0Vrlp-z0VoKMS00cY,3400
42
- pulpcore/client/pulp_file/models/paginatedfile_file_remote_response_list.py,sha256=HNBbd16fkv1M5k4DlbpPWpqf3Hj65icKfmLagA1q6fU,3360
43
- pulpcore/client/pulp_file/models/paginatedfile_file_repository_response_list.py,sha256=kaSkUlPGUWbD1-oTBRPzBkIakPVBtBqvhSB168sTxJA,3392
37
+ pulpcore/client/pulp_file/models/paginated_repository_version_response_list.py,sha256=XJJmFDuaKLmrQti8UHd0hvZEZe6MLJKhcOFDrEXCEcU,3797
38
+ pulpcore/client/pulp_file/models/paginatedfile_file_alternate_content_source_response_list.py,sha256=YyfojWXZuKH71SJTTZaR8JOgv6YSjC5d1L9u4W38m6E,3904
39
+ pulpcore/client/pulp_file/models/paginatedfile_file_content_response_list.py,sha256=-i7Z87ei7ma-SHX2h6BVYlFK0luQiaJ0Fvmyht3V8kM,3782
40
+ pulpcore/client/pulp_file/models/paginatedfile_file_distribution_response_list.py,sha256=gvJtAUjuSOIOKujfki5xdEBHCseU6Mh84Esl7dheKRE,3822
41
+ pulpcore/client/pulp_file/models/paginatedfile_file_publication_response_list.py,sha256=_ST5xPr82H98CVdjgVd-cWNiQjv3jBVl7c87EKGg7oM,3814
42
+ pulpcore/client/pulp_file/models/paginatedfile_file_remote_response_list.py,sha256=CTo8femBEFirl8ygsfl2g8vwIjeRpP0N-MPG_m511SY,3774
43
+ pulpcore/client/pulp_file/models/paginatedfile_file_repository_response_list.py,sha256=NhI5YjpCO2gndCtj1s2Aun8YvF_UBd-O7ZzI0YrWHII,3806
44
44
  pulpcore/client/pulp_file/models/patchedfile_file_alternate_content_source.py,sha256=DC5r0E7lUcy-SDmtPZwqSxKgeWbH-r6aywOzoUMlZ9o,3613
45
45
  pulpcore/client/pulp_file/models/patchedfile_file_distribution.py,sha256=XUiXlisq_RJL6CxAuCn35l_NnWvhjHkLdcJKlG2JRZU,4745
46
- pulpcore/client/pulp_file/models/patchedfile_file_remote.py,sha256=GTK532NdGEkJmk9_YLw-WSsp44goAk85rTsh4A2klyU,11991
47
- pulpcore/client/pulp_file/models/patchedfile_file_repository.py,sha256=hx2gb_OsPpDXQkzj4EbcKUjUiMD7IQmPu0zxKPer9Rw,5015
46
+ pulpcore/client/pulp_file/models/patchedfile_file_remote.py,sha256=xzMVDA90RoT-7rXapQBLvIvFCRi_ReUuMQEGa-68qzI,12022
47
+ pulpcore/client/pulp_file/models/patchedfile_file_repository.py,sha256=62QYEmSXpCXQ6GeaTfXy242cbaT1sT3gjT_w-Rz5W9s,5035
48
48
  pulpcore/client/pulp_file/models/policy_enum.py,sha256=alBNbWymx71uIJJLX3vvtlW-2wIql23bfXHM-DtgCww,1254
49
49
  pulpcore/client/pulp_file/models/repair.py,sha256=M8UfanWpr-eFWYNl6Dba83L-dI2BA9djt8QxIhPR6i4,2756
50
50
  pulpcore/client/pulp_file/models/repository_add_remove_content.py,sha256=q_pkagT8zIyG59AOIOCuZtBOVwrh_RHAbv6JcBPR0H8,3782
@@ -55,7 +55,7 @@ pulpcore/client/pulp_file/models/set_label_response.py,sha256=nUSYQHAxcJ3ATyUmBf
55
55
  pulpcore/client/pulp_file/models/task_group_operation_response.py,sha256=78pUJXTIErFTVy3AFbqzjGppZyJdi582pYqxbquQnBw,2625
56
56
  pulpcore/client/pulp_file/models/unset_label.py,sha256=m6s6AFgi5_7fKsjPhcLwz7ZjKXsSd_4F6PS7u5eINO0,2858
57
57
  pulpcore/client/pulp_file/models/unset_label_response.py,sha256=-TZohJf66mUqg4qD04k1dNoyAx69bX_VSf-HM9EpqN8,3046
58
- crc_pulp_file_client-20250918.1.dist-info/METADATA,sha256=rUuTTfLER2xriqWPrPLgxpS4mA83G4dzeVwTisPvNZU,639
59
- crc_pulp_file_client-20250918.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
60
- crc_pulp_file_client-20250918.1.dist-info/top_level.txt,sha256=v1J0AeNxNhm8YE5-xQe1G1YbfoMRZ_u9DAg_Gi7omeY,9
61
- crc_pulp_file_client-20250918.1.dist-info/RECORD,,
58
+ crc_pulp_file_client-20250919.1.dist-info/METADATA,sha256=08l8lwlDHSLKWbWoEyC-Hp-PB1vWm9YwO5oWzG5P5VY,639
59
+ crc_pulp_file_client-20250919.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
60
+ crc_pulp_file_client-20250919.1.dist-info/top_level.txt,sha256=v1J0AeNxNhm8YE5-xQe1G1YbfoMRZ_u9DAg_Gi7omeY,9
61
+ crc_pulp_file_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_file.api.acs_file_api import AcsFileApi
@@ -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_file.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_file.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_file.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
  ]
@@ -73,12 +73,14 @@ class FileFilePublicationResponse(BaseModel):
73
73
  * OpenAPI `readOnly` fields are excluded.
74
74
  * OpenAPI `readOnly` fields are excluded.
75
75
  * OpenAPI `readOnly` fields are excluded.
76
+ * OpenAPI `readOnly` fields are excluded.
76
77
  """
77
78
  excluded_fields: Set[str] = set([
78
79
  "pulp_href",
79
80
  "prn",
80
81
  "pulp_created",
81
82
  "pulp_last_updated",
83
+ "distributions",
82
84
  ])
83
85
 
84
86
  _dict = self.model_dump(
@@ -41,7 +41,7 @@ class FileFileRemote(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 FileFileRemoteResponse(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 FileFileRemoteResponse(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, StrictBool, StrictInt, StrictStr
21
+ from pydantic import BaseModel, ConfigDict, Field, StrictBool, 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 FileFileRepository(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
  autopublish: Optional[StrictBool] = Field(default=False, description="Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository.")
37
37
  manifest: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default='PULP_MANIFEST', description="Filename to use for manifest file containing metadata for all the files.")
@@ -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, StrictBool, StrictInt, StrictStr
22
+ from pydantic import BaseModel, ConfigDict, Field, StrictBool, 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 FileFileRepositoryResponse(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
  autopublish: Optional[StrictBool] = Field(default=False, description="Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository.")
43
44
  manifest: Optional[StrictStr] = Field(default='PULP_MANIFEST', description="Filename to use for manifest file containing metadata for all the files.")
@@ -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 PaginatedfileFileAlternateContentSourceResponseList(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 PaginatedfileFileContentResponseList(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 PaginatedfileFileDistributionResponseList(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 PaginatedfileFilePublicationResponseList(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 PaginatedfileFileRemoteResponseList(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 PaginatedfileFileRepositoryResponseList(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 PatchedfileFileRemote(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, StrictBool, StrictInt, StrictStr
21
+ from pydantic import BaseModel, ConfigDict, Field, StrictBool, 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 PatchedfileFileRepository(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
  autopublish: Optional[StrictBool] = Field(default=False, description="Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository.")
37
37
  manifest: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default='PULP_MANIFEST', description="Filename to use for manifest file containing metadata for all the files.")