crc-pulp-gem-client 20250915.2__py3-none-any.whl → 20260120.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.
Files changed (23) hide show
  1. crc_pulp_gem_client-20260120.1.dist-info/METADATA +6742 -0
  2. {crc_pulp_gem_client-20250915.2.dist-info → crc_pulp_gem_client-20260120.1.dist-info}/RECORD +22 -22
  3. pulpcore/client/pulp_gem/__init__.py +1 -1
  4. pulpcore/client/pulp_gem/api/distributions_gem_api.py +16 -10
  5. pulpcore/client/pulp_gem/api/remotes_gem_api.py +16 -10
  6. pulpcore/client/pulp_gem/api/repositories_gem_api.py +16 -10
  7. pulpcore/client/pulp_gem/api_client.py +1 -1
  8. pulpcore/client/pulp_gem/configuration.py +3 -3
  9. pulpcore/client/pulp_gem/models/gem_gem_remote.py +11 -1
  10. pulpcore/client/pulp_gem/models/gem_gem_remote_response.py +13 -1
  11. pulpcore/client/pulp_gem/models/gem_gem_repository.py +2 -2
  12. pulpcore/client/pulp_gem/models/gem_gem_repository_response.py +3 -2
  13. pulpcore/client/pulp_gem/models/paginated_repository_version_response_list.py +10 -0
  14. pulpcore/client/pulp_gem/models/paginatedgem_gem_content_response_list.py +10 -0
  15. pulpcore/client/pulp_gem/models/paginatedgem_gem_distribution_response_list.py +10 -0
  16. pulpcore/client/pulp_gem/models/paginatedgem_gem_publication_response_list.py +10 -0
  17. pulpcore/client/pulp_gem/models/paginatedgem_gem_remote_response_list.py +10 -0
  18. pulpcore/client/pulp_gem/models/paginatedgem_gem_repository_response_list.py +10 -0
  19. pulpcore/client/pulp_gem/models/patchedgem_gem_remote.py +11 -1
  20. pulpcore/client/pulp_gem/models/patchedgem_gem_repository.py +2 -2
  21. crc_pulp_gem_client-20250915.2.dist-info/METADATA +0 -25
  22. {crc_pulp_gem_client-20250915.2.dist-info → crc_pulp_gem_client-20260120.1.dist-info}/WHEEL +0 -0
  23. {crc_pulp_gem_client-20250915.2.dist-info → crc_pulp_gem_client-20260120.1.dist-info}/top_level.txt +0 -0
@@ -80,6 +80,16 @@ class PaginatedgemGemPublicationResponseList(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 PaginatedgemGemRemoteResponseList(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 PaginatedgemGemRepositoryResponseList(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 PatchedgemGemRemote(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.")
@@ -169,6 +169,16 @@ class PatchedgemGemRemote(BaseModel):
169
169
  if self.rate_limit is None and "rate_limit" in self.model_fields_set:
170
170
  _dict['rate_limit'] = None
171
171
 
172
+ # set to None if includes (nullable) is None
173
+ # and model_fields_set contains the field
174
+ if self.includes is None and "includes" in self.model_fields_set:
175
+ _dict['includes'] = None
176
+
177
+ # set to None if excludes (nullable) is None
178
+ # and model_fields_set contains the field
179
+ if self.excludes is None and "excludes" in self.model_fields_set:
180
+ _dict['excludes'] = None
181
+
172
182
  return _dict
173
183
 
174
184
  @classmethod
@@ -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 PatchedgemGemRepository(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,25 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: crc-pulp_gem-client
3
- Version: 20250915.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
-