crc-pulp-python-client 20250922.2__py3-none-any.whl → 20251112.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-python-client might be problematic. Click here for more details.

Files changed (21) hide show
  1. crc_pulp_python_client-20251112.1.dist-info/METADATA +7928 -0
  2. {crc_pulp_python_client-20250922.2.dist-info → crc_pulp_python_client-20251112.1.dist-info}/RECORD +20 -20
  3. pulpcore/client/pulp_python/__init__.py +4 -4
  4. pulpcore/client/pulp_python/api/__init__.py +3 -3
  5. pulpcore/client/pulp_python/api/{pypi_legacy_api.py → api_legacy_api.py} +2 -2
  6. pulpcore/client/pulp_python/api/{pypi_api.py → api_pypi_api.py} +2 -2
  7. pulpcore/client/pulp_python/api/{pypi_simple_api.py → api_simple_api.py} +42 -8
  8. pulpcore/client/pulp_python/api/content_packages_api.py +36 -6
  9. pulpcore/client/pulp_python/api/distributions_pypi_api.py +16 -10
  10. pulpcore/client/pulp_python/api/pypi_metadata_api.py +1 -1
  11. pulpcore/client/pulp_python/api/remotes_python_api.py +16 -10
  12. pulpcore/client/pulp_python/api/repositories_python_api.py +16 -10
  13. pulpcore/client/pulp_python/api_client.py +1 -1
  14. pulpcore/client/pulp_python/configuration.py +3 -3
  15. pulpcore/client/pulp_python/models/patchedpython_python_distribution.py +8 -1
  16. pulpcore/client/pulp_python/models/python_python_distribution.py +8 -1
  17. pulpcore/client/pulp_python/models/python_python_distribution_response.py +8 -1
  18. pulpcore/client/pulp_python/models/python_python_package_content_response.py +9 -2
  19. crc_pulp_python_client-20250922.2.dist-info/METADATA +0 -25
  20. {crc_pulp_python_client-20250922.2.dist-info → crc_pulp_python_client-20251112.1.dist-info}/WHEEL +0 -0
  21. {crc_pulp_python_client-20250922.2.dist-info → crc_pulp_python_client-20251112.1.dist-info}/top_level.txt +0 -0
@@ -2705,10 +2705,10 @@ class RepositoriesPythonApi:
2705
2705
  _content_type: Optional[StrictStr] = None,
2706
2706
  _headers: Optional[Dict[StrictStr, Any]] = None,
2707
2707
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2708
- ) -> AsyncOperationResponse:
2708
+ ) -> PythonPythonRepositoryResponse:
2709
2709
  """Update a python repository
2710
2710
 
2711
- Trigger an asynchronous partial update task
2711
+ Update the entity partially and trigger an asynchronous task if necessary
2712
2712
 
2713
2713
  :param python_python_repository_href: (required)
2714
2714
  :type python_python_repository_href: str
@@ -2749,6 +2749,7 @@ class RepositoriesPythonApi:
2749
2749
  )
2750
2750
 
2751
2751
  _response_types_map: Dict[str, Optional[str]] = {
2752
+ '200': "PythonPythonRepositoryResponse",
2752
2753
  '202': "AsyncOperationResponse",
2753
2754
  }
2754
2755
  response_data = self.api_client.call_api(
@@ -2780,10 +2781,10 @@ class RepositoriesPythonApi:
2780
2781
  _content_type: Optional[StrictStr] = None,
2781
2782
  _headers: Optional[Dict[StrictStr, Any]] = None,
2782
2783
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2783
- ) -> ApiResponse[AsyncOperationResponse]:
2784
+ ) -> ApiResponse[PythonPythonRepositoryResponse]:
2784
2785
  """Update a python repository
2785
2786
 
2786
- Trigger an asynchronous partial update task
2787
+ Update the entity partially and trigger an asynchronous task if necessary
2787
2788
 
2788
2789
  :param python_python_repository_href: (required)
2789
2790
  :type python_python_repository_href: str
@@ -2824,6 +2825,7 @@ class RepositoriesPythonApi:
2824
2825
  )
2825
2826
 
2826
2827
  _response_types_map: Dict[str, Optional[str]] = {
2828
+ '200': "PythonPythonRepositoryResponse",
2827
2829
  '202': "AsyncOperationResponse",
2828
2830
  }
2829
2831
  response_data = self.api_client.call_api(
@@ -2858,7 +2860,7 @@ class RepositoriesPythonApi:
2858
2860
  ) -> RESTResponseType:
2859
2861
  """Update a python repository
2860
2862
 
2861
- Trigger an asynchronous partial update task
2863
+ Update the entity partially and trigger an asynchronous task if necessary
2862
2864
 
2863
2865
  :param python_python_repository_href: (required)
2864
2866
  :type python_python_repository_href: str
@@ -2899,6 +2901,7 @@ class RepositoriesPythonApi:
2899
2901
  )
2900
2902
 
2901
2903
  _response_types_map: Dict[str, Optional[str]] = {
2904
+ '200': "PythonPythonRepositoryResponse",
2902
2905
  '202': "AsyncOperationResponse",
2903
2906
  }
2904
2907
  response_data = self.api_client.call_api(
@@ -4844,10 +4847,10 @@ class RepositoriesPythonApi:
4844
4847
  _content_type: Optional[StrictStr] = None,
4845
4848
  _headers: Optional[Dict[StrictStr, Any]] = None,
4846
4849
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4847
- ) -> AsyncOperationResponse:
4850
+ ) -> PythonPythonRepositoryResponse:
4848
4851
  """Update a python repository
4849
4852
 
4850
- Trigger an asynchronous update task
4853
+ Update the entity and trigger an asynchronous task if necessary
4851
4854
 
4852
4855
  :param python_python_repository_href: (required)
4853
4856
  :type python_python_repository_href: str
@@ -4888,6 +4891,7 @@ class RepositoriesPythonApi:
4888
4891
  )
4889
4892
 
4890
4893
  _response_types_map: Dict[str, Optional[str]] = {
4894
+ '200': "PythonPythonRepositoryResponse",
4891
4895
  '202': "AsyncOperationResponse",
4892
4896
  }
4893
4897
  response_data = self.api_client.call_api(
@@ -4919,10 +4923,10 @@ class RepositoriesPythonApi:
4919
4923
  _content_type: Optional[StrictStr] = None,
4920
4924
  _headers: Optional[Dict[StrictStr, Any]] = None,
4921
4925
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4922
- ) -> ApiResponse[AsyncOperationResponse]:
4926
+ ) -> ApiResponse[PythonPythonRepositoryResponse]:
4923
4927
  """Update a python repository
4924
4928
 
4925
- Trigger an asynchronous update task
4929
+ Update the entity and trigger an asynchronous task if necessary
4926
4930
 
4927
4931
  :param python_python_repository_href: (required)
4928
4932
  :type python_python_repository_href: str
@@ -4963,6 +4967,7 @@ class RepositoriesPythonApi:
4963
4967
  )
4964
4968
 
4965
4969
  _response_types_map: Dict[str, Optional[str]] = {
4970
+ '200': "PythonPythonRepositoryResponse",
4966
4971
  '202': "AsyncOperationResponse",
4967
4972
  }
4968
4973
  response_data = self.api_client.call_api(
@@ -4997,7 +5002,7 @@ class RepositoriesPythonApi:
4997
5002
  ) -> RESTResponseType:
4998
5003
  """Update a python repository
4999
5004
 
5000
- Trigger an asynchronous update task
5005
+ Update the entity and trigger an asynchronous task if necessary
5001
5006
 
5002
5007
  :param python_python_repository_href: (required)
5003
5008
  :type python_python_repository_href: str
@@ -5038,6 +5043,7 @@ class RepositoriesPythonApi:
5038
5043
  )
5039
5044
 
5040
5045
  _response_types_map: Dict[str, Optional[str]] = {
5046
+ '200': "PythonPythonRepositoryResponse",
5041
5047
  '202': "AsyncOperationResponse",
5042
5048
  }
5043
5049
  response_data = self.api_client.call_api(
@@ -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/20250922.2/python'
94
+ self.user_agent = 'crc-pulp-client'
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_python.Configuration(
225
225
  ) -> None:
226
226
  """Constructor
227
227
  """
228
- self._base_path = "https://env-ephemeral-esvaiu.apps.crc-eph.r9lp.p1.openshiftapps.com" if host is None else host
228
+ self._base_path = "https://env-ephemeral-dojq1g.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_python.Configuration(
557
557
  "OS: {env}\n"\
558
558
  "Python Version: {pyversion}\n"\
559
559
  "Version of the API: v3\n"\
560
- "SDK Package Version: 20250922.2".\
560
+ "SDK Package Version: 20251112.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_python.Configuration(
567
567
  """
568
568
  return [
569
569
  {
570
- 'url': "https://env-ephemeral-esvaiu.apps.crc-eph.r9lp.p1.openshiftapps.com",
570
+ 'url': "https://env-ephemeral-dojq1g.apps.crc-eph.r9lp.p1.openshiftapps.com",
571
571
  'description': "No description provided",
572
572
  }
573
573
  ]
@@ -35,9 +35,10 @@ class PatchedpythonPythonDistribution(BaseModel):
35
35
  name: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="A unique name. Ex, `rawhide` and `stable`.")
36
36
  repository: Optional[StrictStr] = Field(default=None, description="The latest RepositoryVersion for this Repository will be served.")
37
37
  publication: Optional[StrictStr] = Field(default=None, description="Publication to be served")
38
+ repository_version: Optional[StrictStr] = Field(default=None, description="RepositoryVersion to be served.")
38
39
  allow_uploads: Optional[StrictBool] = Field(default=True, description="Allow packages to be uploaded to this index.")
39
40
  remote: Optional[StrictStr] = Field(default=None, description="Remote that can be used to fetch content when using pull-through caching.")
40
- __properties: ClassVar[List[str]] = ["base_path", "content_guard", "hidden", "pulp_labels", "name", "repository", "publication", "allow_uploads", "remote"]
41
+ __properties: ClassVar[List[str]] = ["base_path", "content_guard", "hidden", "pulp_labels", "name", "repository", "publication", "repository_version", "allow_uploads", "remote"]
41
42
 
42
43
  model_config = ConfigDict(
43
44
  populate_by_name=True,
@@ -93,6 +94,11 @@ class PatchedpythonPythonDistribution(BaseModel):
93
94
  if self.publication is None and "publication" in self.model_fields_set:
94
95
  _dict['publication'] = None
95
96
 
97
+ # set to None if repository_version (nullable) is None
98
+ # and model_fields_set contains the field
99
+ if self.repository_version is None and "repository_version" in self.model_fields_set:
100
+ _dict['repository_version'] = None
101
+
96
102
  # set to None if remote (nullable) is None
97
103
  # and model_fields_set contains the field
98
104
  if self.remote is None and "remote" in self.model_fields_set:
@@ -117,6 +123,7 @@ class PatchedpythonPythonDistribution(BaseModel):
117
123
  "name": obj.get("name"),
118
124
  "repository": obj.get("repository"),
119
125
  "publication": obj.get("publication"),
126
+ "repository_version": obj.get("repository_version"),
120
127
  "allow_uploads": obj.get("allow_uploads") if obj.get("allow_uploads") is not None else True,
121
128
  "remote": obj.get("remote")
122
129
  })
@@ -35,9 +35,10 @@ class PythonPythonDistribution(BaseModel):
35
35
  name: Annotated[str, Field(min_length=1, strict=True)] = Field(description="A unique name. Ex, `rawhide` and `stable`.")
36
36
  repository: Optional[StrictStr] = Field(default=None, description="The latest RepositoryVersion for this Repository will be served.")
37
37
  publication: Optional[StrictStr] = Field(default=None, description="Publication to be served")
38
+ repository_version: Optional[StrictStr] = Field(default=None, description="RepositoryVersion to be served.")
38
39
  allow_uploads: Optional[StrictBool] = Field(default=True, description="Allow packages to be uploaded to this index.")
39
40
  remote: Optional[StrictStr] = Field(default=None, description="Remote that can be used to fetch content when using pull-through caching.")
40
- __properties: ClassVar[List[str]] = ["base_path", "content_guard", "hidden", "pulp_labels", "name", "repository", "publication", "allow_uploads", "remote"]
41
+ __properties: ClassVar[List[str]] = ["base_path", "content_guard", "hidden", "pulp_labels", "name", "repository", "publication", "repository_version", "allow_uploads", "remote"]
41
42
 
42
43
  model_config = ConfigDict(
43
44
  populate_by_name=True,
@@ -93,6 +94,11 @@ class PythonPythonDistribution(BaseModel):
93
94
  if self.publication is None and "publication" in self.model_fields_set:
94
95
  _dict['publication'] = None
95
96
 
97
+ # set to None if repository_version (nullable) is None
98
+ # and model_fields_set contains the field
99
+ if self.repository_version is None and "repository_version" in self.model_fields_set:
100
+ _dict['repository_version'] = None
101
+
96
102
  # set to None if remote (nullable) is None
97
103
  # and model_fields_set contains the field
98
104
  if self.remote is None and "remote" in self.model_fields_set:
@@ -117,6 +123,7 @@ class PythonPythonDistribution(BaseModel):
117
123
  "name": obj.get("name"),
118
124
  "repository": obj.get("repository"),
119
125
  "publication": obj.get("publication"),
126
+ "repository_version": obj.get("repository_version"),
120
127
  "allow_uploads": obj.get("allow_uploads") if obj.get("allow_uploads") is not None else True,
121
128
  "remote": obj.get("remote")
122
129
  })
@@ -41,9 +41,10 @@ class PythonPythonDistributionResponse(BaseModel):
41
41
  name: StrictStr = Field(description="A unique name. Ex, `rawhide` and `stable`.")
42
42
  repository: Optional[StrictStr] = Field(default=None, description="The latest RepositoryVersion for this Repository will be served.")
43
43
  publication: Optional[StrictStr] = Field(default=None, description="Publication to be served")
44
+ repository_version: Optional[StrictStr] = Field(default=None, description="RepositoryVersion to be served.")
44
45
  allow_uploads: Optional[StrictBool] = Field(default=True, description="Allow packages to be uploaded to this index.")
45
46
  remote: Optional[StrictStr] = Field(default=None, description="Remote that can be used to fetch content when using pull-through caching.")
46
- __properties: ClassVar[List[str]] = ["pulp_href", "prn", "pulp_created", "pulp_last_updated", "base_path", "base_url", "content_guard", "no_content_change_since", "hidden", "pulp_labels", "name", "repository", "publication", "allow_uploads", "remote"]
47
+ __properties: ClassVar[List[str]] = ["pulp_href", "prn", "pulp_created", "pulp_last_updated", "base_path", "base_url", "content_guard", "no_content_change_since", "hidden", "pulp_labels", "name", "repository", "publication", "repository_version", "allow_uploads", "remote"]
47
48
 
48
49
  model_config = ConfigDict(
49
50
  populate_by_name=True,
@@ -111,6 +112,11 @@ class PythonPythonDistributionResponse(BaseModel):
111
112
  if self.publication is None and "publication" in self.model_fields_set:
112
113
  _dict['publication'] = None
113
114
 
115
+ # set to None if repository_version (nullable) is None
116
+ # and model_fields_set contains the field
117
+ if self.repository_version is None and "repository_version" in self.model_fields_set:
118
+ _dict['repository_version'] = None
119
+
114
120
  # set to None if remote (nullable) is None
115
121
  # and model_fields_set contains the field
116
122
  if self.remote is None and "remote" in self.model_fields_set:
@@ -141,6 +147,7 @@ class PythonPythonDistributionResponse(BaseModel):
141
147
  "name": obj.get("name"),
142
148
  "repository": obj.get("repository"),
143
149
  "publication": obj.get("publication"),
150
+ "repository_version": obj.get("repository_version"),
144
151
  "allow_uploads": obj.get("allow_uploads") if obj.get("allow_uploads") is not None else True,
145
152
  "remote": obj.get("remote")
146
153
  })
@@ -67,7 +67,8 @@ class PythonPythonPackageContentResponse(BaseModel):
67
67
  packagetype: Optional[StrictStr] = Field(default=None, description="The type of the distribution package (e.g. sdist, bdist_wheel, bdist_egg, etc)")
68
68
  python_version: Optional[StrictStr] = Field(default=None, description="The tag that indicates which Python implementation or version the package requires.")
69
69
  sha256: Optional[StrictStr] = Field(default='', description="The SHA256 digest of this package.")
70
- __properties: ClassVar[List[str]] = ["pulp_href", "prn", "pulp_created", "pulp_last_updated", "pulp_labels", "vuln_report", "artifact", "author", "author_email", "description", "home_page", "keywords", "license", "metadata_version", "name", "platform", "summary", "version", "classifiers", "download_url", "supported_platform", "maintainer", "maintainer_email", "obsoletes_dist", "project_url", "project_urls", "provides_dist", "requires_external", "requires_dist", "requires_python", "description_content_type", "provides_extras", "dynamic", "license_expression", "license_file", "filename", "packagetype", "python_version", "sha256"]
70
+ metadata_sha256: Optional[StrictStr] = Field(default=None, description="The SHA256 digest of the package's METADATA file.")
71
+ __properties: ClassVar[List[str]] = ["pulp_href", "prn", "pulp_created", "pulp_last_updated", "pulp_labels", "vuln_report", "artifact", "author", "author_email", "description", "home_page", "keywords", "license", "metadata_version", "name", "platform", "summary", "version", "classifiers", "download_url", "supported_platform", "maintainer", "maintainer_email", "obsoletes_dist", "project_url", "project_urls", "provides_dist", "requires_external", "requires_dist", "requires_python", "description_content_type", "provides_extras", "dynamic", "license_expression", "license_file", "filename", "packagetype", "python_version", "sha256", "metadata_sha256"]
71
72
 
72
73
  model_config = ConfigDict(
73
74
  populate_by_name=True,
@@ -175,6 +176,11 @@ class PythonPythonPackageContentResponse(BaseModel):
175
176
  if self.license_file is None and "license_file" in self.model_fields_set:
176
177
  _dict['license_file'] = None
177
178
 
179
+ # set to None if metadata_sha256 (nullable) is None
180
+ # and model_fields_set contains the field
181
+ if self.metadata_sha256 is None and "metadata_sha256" in self.model_fields_set:
182
+ _dict['metadata_sha256'] = None
183
+
178
184
  return _dict
179
185
 
180
186
  @classmethod
@@ -225,7 +231,8 @@ class PythonPythonPackageContentResponse(BaseModel):
225
231
  "filename": obj.get("filename"),
226
232
  "packagetype": obj.get("packagetype"),
227
233
  "python_version": obj.get("python_version"),
228
- "sha256": obj.get("sha256") if obj.get("sha256") is not None else ''
234
+ "sha256": obj.get("sha256") if obj.get("sha256") is not None else '',
235
+ "metadata_sha256": obj.get("metadata_sha256")
229
236
  })
230
237
  return _obj
231
238
 
@@ -1,25 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: crc-pulp_python-client
3
- Version: 20250922.2
4
- Summary: Pulp 3 API
5
- Home-page:
6
- Author: Pulp Team
7
- Author-email: pulp-list@redhat.com
8
- License: GPLv2+
9
- Keywords: pulp,pulpcore,client,Pulp 3 API
10
- Description-Content-Type: text/markdown
11
- Requires-Dist: urllib3<3.0.0,>=1.25.3
12
- Requires-Dist: python-dateutil<2.10.0,>=2.8.1
13
- Requires-Dist: pydantic>=2
14
- Requires-Dist: typing-extensions>=4.7.1
15
- Dynamic: author
16
- Dynamic: author-email
17
- Dynamic: description
18
- Dynamic: description-content-type
19
- Dynamic: keywords
20
- Dynamic: license
21
- Dynamic: requires-dist
22
- Dynamic: summary
23
-
24
- Fetch, Upload, Organize, and Distribute Software Packages
25
-