pulp_python_client 3.4.0 → 3.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (266) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/README.md +4 -4
  4. data/docs/ContentPackagesApi.md +4 -0
  5. data/docs/RepositoryAddRemoveContent.md +2 -2
  6. data/lib/pulp_python_client/api/content_packages_api.rb +7 -1
  7. data/lib/pulp_python_client/api/distributions_pypi_api.rb +1 -1
  8. data/lib/pulp_python_client/api/publications_pypi_api.rb +1 -1
  9. data/lib/pulp_python_client/api/pypi_api.rb +1 -1
  10. data/lib/pulp_python_client/api/pypi_legacy_api.rb +1 -1
  11. data/lib/pulp_python_client/api/pypi_metadata_api.rb +1 -1
  12. data/lib/pulp_python_client/api/pypi_simple_api.rb +1 -1
  13. data/lib/pulp_python_client/api/remotes_python_api.rb +1 -1
  14. data/lib/pulp_python_client/api/repositories_python_api.rb +1 -1
  15. data/lib/pulp_python_client/api/repositories_python_versions_api.rb +1 -1
  16. data/lib/pulp_python_client/api_client.rb +12 -8
  17. data/lib/pulp_python_client/api_error.rb +1 -1
  18. data/lib/pulp_python_client/configuration.rb +8 -1
  19. data/lib/pulp_python_client/models/async_operation_response.rb +1 -1
  20. data/lib/pulp_python_client/models/content_summary.rb +1 -1
  21. data/lib/pulp_python_client/models/content_summary_response.rb +1 -1
  22. data/lib/pulp_python_client/models/exclude_platforms_enum.rb +1 -1
  23. data/lib/pulp_python_client/models/package_metadata_response.rb +1 -1
  24. data/lib/pulp_python_client/models/package_types_enum.rb +1 -1
  25. data/lib/pulp_python_client/models/package_upload.rb +1 -1
  26. data/lib/pulp_python_client/models/package_upload_task_response.rb +1 -1
  27. data/lib/pulp_python_client/models/paginated_repository_version_response_list.rb +1 -1
  28. data/lib/pulp_python_client/models/paginatedpython_python_distribution_response_list.rb +1 -1
  29. data/lib/pulp_python_client/models/paginatedpython_python_package_content_response_list.rb +1 -1
  30. data/lib/pulp_python_client/models/paginatedpython_python_publication_response_list.rb +1 -1
  31. data/lib/pulp_python_client/models/paginatedpython_python_remote_response_list.rb +1 -1
  32. data/lib/pulp_python_client/models/paginatedpython_python_repository_response_list.rb +1 -1
  33. data/lib/pulp_python_client/models/patchedpython_python_distribution.rb +1 -1
  34. data/lib/pulp_python_client/models/patchedpython_python_remote.rb +1 -1
  35. data/lib/pulp_python_client/models/patchedpython_python_repository.rb +1 -1
  36. data/lib/pulp_python_client/models/policy_enum.rb +1 -1
  37. data/lib/pulp_python_client/models/python_bander_remote.rb +1 -1
  38. data/lib/pulp_python_client/models/python_python_distribution.rb +1 -1
  39. data/lib/pulp_python_client/models/python_python_distribution_response.rb +1 -1
  40. data/lib/pulp_python_client/models/python_python_package_content.rb +1 -1
  41. data/lib/pulp_python_client/models/python_python_package_content_response.rb +1 -1
  42. data/lib/pulp_python_client/models/python_python_publication.rb +1 -1
  43. data/lib/pulp_python_client/models/python_python_publication_response.rb +1 -1
  44. data/lib/pulp_python_client/models/python_python_remote.rb +1 -1
  45. data/lib/pulp_python_client/models/python_python_remote_response.rb +1 -1
  46. data/lib/pulp_python_client/models/python_python_repository.rb +1 -1
  47. data/lib/pulp_python_client/models/python_python_repository_response.rb +1 -1
  48. data/lib/pulp_python_client/models/repository_add_remove_content.rb +3 -3
  49. data/lib/pulp_python_client/models/repository_sync_url.rb +1 -1
  50. data/lib/pulp_python_client/models/repository_version.rb +1 -1
  51. data/lib/pulp_python_client/models/repository_version_response.rb +1 -1
  52. data/lib/pulp_python_client/models/summary_response.rb +1 -1
  53. data/lib/pulp_python_client/version.rb +2 -2
  54. data/lib/pulp_python_client.rb +1 -1
  55. data/pulp_python_client.gemspec +1 -1
  56. data/spec/api/content_packages_api_spec.rb +3 -1
  57. data/spec/api/distributions_pypi_api_spec.rb +1 -1
  58. data/spec/api/publications_pypi_api_spec.rb +1 -1
  59. data/spec/api/pypi_api_spec.rb +1 -1
  60. data/spec/api/pypi_legacy_api_spec.rb +1 -1
  61. data/spec/api/pypi_metadata_api_spec.rb +1 -1
  62. data/spec/api/pypi_simple_api_spec.rb +1 -1
  63. data/spec/api/remotes_python_api_spec.rb +1 -1
  64. data/spec/api/repositories_python_api_spec.rb +1 -1
  65. data/spec/api/repositories_python_versions_api_spec.rb +1 -1
  66. data/spec/api_client_spec.rb +2 -2
  67. data/spec/configuration_spec.rb +1 -1
  68. data/spec/models/async_operation_response_spec.rb +1 -1
  69. data/spec/models/content_summary_response_spec.rb +1 -1
  70. data/spec/models/content_summary_spec.rb +1 -1
  71. data/spec/models/exclude_platforms_enum_spec.rb +1 -1
  72. data/spec/models/package_metadata_response_spec.rb +1 -1
  73. data/spec/models/package_types_enum_spec.rb +1 -1
  74. data/spec/models/package_upload_spec.rb +1 -1
  75. data/spec/models/package_upload_task_response_spec.rb +1 -1
  76. data/spec/models/paginated_repository_version_response_list_spec.rb +1 -1
  77. data/spec/models/paginatedpython_python_distribution_response_list_spec.rb +1 -1
  78. data/spec/models/paginatedpython_python_package_content_response_list_spec.rb +1 -1
  79. data/spec/models/paginatedpython_python_publication_response_list_spec.rb +1 -1
  80. data/spec/models/paginatedpython_python_remote_response_list_spec.rb +1 -1
  81. data/spec/models/paginatedpython_python_repository_response_list_spec.rb +1 -1
  82. data/spec/models/patchedpython_python_distribution_spec.rb +1 -1
  83. data/spec/models/patchedpython_python_remote_spec.rb +1 -1
  84. data/spec/models/patchedpython_python_repository_spec.rb +1 -1
  85. data/spec/models/policy_enum_spec.rb +1 -1
  86. data/spec/models/python_bander_remote_spec.rb +1 -1
  87. data/spec/models/python_python_distribution_response_spec.rb +1 -1
  88. data/spec/models/python_python_distribution_spec.rb +1 -1
  89. data/spec/models/python_python_package_content_response_spec.rb +1 -1
  90. data/spec/models/python_python_package_content_spec.rb +1 -1
  91. data/spec/models/python_python_publication_response_spec.rb +1 -1
  92. data/spec/models/python_python_publication_spec.rb +1 -1
  93. data/spec/models/python_python_remote_response_spec.rb +1 -1
  94. data/spec/models/python_python_remote_spec.rb +1 -1
  95. data/spec/models/python_python_repository_response_spec.rb +1 -1
  96. data/spec/models/python_python_repository_spec.rb +1 -1
  97. data/spec/models/repository_add_remove_content_spec.rb +1 -1
  98. data/spec/models/repository_sync_url_spec.rb +1 -1
  99. data/spec/models/repository_version_response_spec.rb +1 -1
  100. data/spec/models/repository_version_spec.rb +1 -1
  101. data/spec/models/summary_response_spec.rb +1 -1
  102. data/spec/spec_helper.rb +1 -1
  103. metadata +33 -196
  104. data/build/lib/pulpcore/__init__.py +0 -2
  105. data/build/lib/pulpcore/client/__init__.py +0 -2
  106. data/build/lib/pulpcore/client/pulp_python/__init__.py +0 -75
  107. data/build/lib/pulpcore/client/pulp_python/api/__init__.py +0 -15
  108. data/build/lib/pulpcore/client/pulp_python/api/content_packages_api.py +0 -626
  109. data/build/lib/pulpcore/client/pulp_python/api/distributions_pypi_api.py +0 -830
  110. data/build/lib/pulpcore/client/pulp_python/api/publications_pypi_api.py +0 -566
  111. data/build/lib/pulpcore/client/pulp_python/api/pypi_api.py +0 -162
  112. data/build/lib/pulpcore/client/pulp_python/api/pypi_legacy_api.py +0 -185
  113. data/build/lib/pulpcore/client/pulp_python/api/pypi_metadata_api.py +0 -171
  114. data/build/lib/pulpcore/client/pulp_python/api/pypi_simple_api.py +0 -434
  115. data/build/lib/pulpcore/client/pulp_python/api/remotes_python_api.py +0 -972
  116. data/build/lib/pulpcore/client/pulp_python/api/repositories_python_api.py +0 -1063
  117. data/build/lib/pulpcore/client/pulp_python/api/repositories_python_versions_api.py +0 -614
  118. data/build/lib/pulpcore/client/pulp_python/api_client.py +0 -667
  119. data/build/lib/pulpcore/client/pulp_python/configuration.py +0 -427
  120. data/build/lib/pulpcore/client/pulp_python/exceptions.py +0 -121
  121. data/build/lib/pulpcore/client/pulp_python/models/__init__.py +0 -51
  122. data/build/lib/pulpcore/client/pulp_python/models/async_operation_response.py +0 -124
  123. data/build/lib/pulpcore/client/pulp_python/models/content_summary.py +0 -176
  124. data/build/lib/pulpcore/client/pulp_python/models/content_summary_response.py +0 -176
  125. data/build/lib/pulpcore/client/pulp_python/models/exclude_platforms_enum.py +0 -103
  126. data/build/lib/pulpcore/client/pulp_python/models/package_metadata_response.py +0 -209
  127. data/build/lib/pulpcore/client/pulp_python/models/package_types_enum.py +0 -107
  128. data/build/lib/pulpcore/client/pulp_python/models/package_upload.py +0 -187
  129. data/build/lib/pulpcore/client/pulp_python/models/package_upload_task_response.py +0 -176
  130. data/build/lib/pulpcore/client/pulp_python/models/paginated_repository_version_response_list.py +0 -197
  131. data/build/lib/pulpcore/client/pulp_python/models/paginatedpython_python_distribution_response_list.py +0 -197
  132. data/build/lib/pulpcore/client/pulp_python/models/paginatedpython_python_package_content_response_list.py +0 -197
  133. data/build/lib/pulpcore/client/pulp_python/models/paginatedpython_python_publication_response_list.py +0 -197
  134. data/build/lib/pulpcore/client/pulp_python/models/paginatedpython_python_remote_response_list.py +0 -197
  135. data/build/lib/pulpcore/client/pulp_python/models/paginatedpython_python_repository_response_list.py +0 -197
  136. data/build/lib/pulpcore/client/pulp_python/models/patchedpython_python_distribution.py +0 -286
  137. data/build/lib/pulpcore/client/pulp_python/models/patchedpython_python_remote.py +0 -823
  138. data/build/lib/pulpcore/client/pulp_python/models/patchedpython_python_repository.py +0 -259
  139. data/build/lib/pulpcore/client/pulp_python/models/policy_enum.py +0 -102
  140. data/build/lib/pulpcore/client/pulp_python/models/python_bander_remote.py +0 -181
  141. data/build/lib/pulpcore/client/pulp_python/models/python_python_distribution.py +0 -288
  142. data/build/lib/pulpcore/client/pulp_python/models/python_python_distribution_response.py +0 -368
  143. data/build/lib/pulpcore/client/pulp_python/models/python_python_package_content.py +0 -824
  144. data/build/lib/pulpcore/client/pulp_python/models/python_python_package_content_response.py +0 -933
  145. data/build/lib/pulpcore/client/pulp_python/models/python_python_publication.py +0 -149
  146. data/build/lib/pulpcore/client/pulp_python/models/python_python_publication_response.py +0 -231
  147. data/build/lib/pulpcore/client/pulp_python/models/python_python_remote.py +0 -825
  148. data/build/lib/pulpcore/client/pulp_python/models/python_python_remote_response.py +0 -772
  149. data/build/lib/pulpcore/client/pulp_python/models/python_python_repository.py +0 -260
  150. data/build/lib/pulpcore/client/pulp_python/models/python_python_repository_response.py +0 -366
  151. data/build/lib/pulpcore/client/pulp_python/models/repository_add_remove_content.py +0 -179
  152. data/build/lib/pulpcore/client/pulp_python/models/repository_sync_url.py +0 -151
  153. data/build/lib/pulpcore/client/pulp_python/models/repository_version.py +0 -123
  154. data/build/lib/pulpcore/client/pulp_python/models/repository_version_response.py +0 -257
  155. data/build/lib/pulpcore/client/pulp_python/models/summary_response.py +0 -182
  156. data/build/lib/pulpcore/client/pulp_python/rest.py +0 -292
  157. data/dist/pulp_python-client-3.4.0.tar.gz +0 -0
  158. data/dist/pulp_python_client-3.4.0-py3-none-any.whl +0 -0
  159. data/pulp_python_client.egg-info/PKG-INFO +0 -15
  160. data/pulp_python_client.egg-info/SOURCES.txt +0 -105
  161. data/pulp_python_client.egg-info/dependency_links.txt +0 -1
  162. data/pulp_python_client.egg-info/requires.txt +0 -4
  163. data/pulp_python_client.egg-info/top_level.txt +0 -1
  164. data/pulpcore/__init__.py +0 -2
  165. data/pulpcore/client/__init__.py +0 -2
  166. data/pulpcore/client/pulp_python/__init__.py +0 -75
  167. data/pulpcore/client/pulp_python/api/__init__.py +0 -15
  168. data/pulpcore/client/pulp_python/api/content_packages_api.py +0 -626
  169. data/pulpcore/client/pulp_python/api/distributions_pypi_api.py +0 -830
  170. data/pulpcore/client/pulp_python/api/publications_pypi_api.py +0 -566
  171. data/pulpcore/client/pulp_python/api/pypi_api.py +0 -162
  172. data/pulpcore/client/pulp_python/api/pypi_legacy_api.py +0 -185
  173. data/pulpcore/client/pulp_python/api/pypi_metadata_api.py +0 -171
  174. data/pulpcore/client/pulp_python/api/pypi_simple_api.py +0 -434
  175. data/pulpcore/client/pulp_python/api/remotes_python_api.py +0 -972
  176. data/pulpcore/client/pulp_python/api/repositories_python_api.py +0 -1063
  177. data/pulpcore/client/pulp_python/api/repositories_python_versions_api.py +0 -614
  178. data/pulpcore/client/pulp_python/api_client.py +0 -667
  179. data/pulpcore/client/pulp_python/configuration.py +0 -427
  180. data/pulpcore/client/pulp_python/exceptions.py +0 -121
  181. data/pulpcore/client/pulp_python/models/__init__.py +0 -51
  182. data/pulpcore/client/pulp_python/models/async_operation_response.py +0 -124
  183. data/pulpcore/client/pulp_python/models/content_summary.py +0 -176
  184. data/pulpcore/client/pulp_python/models/content_summary_response.py +0 -176
  185. data/pulpcore/client/pulp_python/models/exclude_platforms_enum.py +0 -103
  186. data/pulpcore/client/pulp_python/models/package_metadata_response.py +0 -209
  187. data/pulpcore/client/pulp_python/models/package_types_enum.py +0 -107
  188. data/pulpcore/client/pulp_python/models/package_upload.py +0 -187
  189. data/pulpcore/client/pulp_python/models/package_upload_task_response.py +0 -176
  190. data/pulpcore/client/pulp_python/models/paginated_repository_version_response_list.py +0 -197
  191. data/pulpcore/client/pulp_python/models/paginatedpython_python_distribution_response_list.py +0 -197
  192. data/pulpcore/client/pulp_python/models/paginatedpython_python_package_content_response_list.py +0 -197
  193. data/pulpcore/client/pulp_python/models/paginatedpython_python_publication_response_list.py +0 -197
  194. data/pulpcore/client/pulp_python/models/paginatedpython_python_remote_response_list.py +0 -197
  195. data/pulpcore/client/pulp_python/models/paginatedpython_python_repository_response_list.py +0 -197
  196. data/pulpcore/client/pulp_python/models/patchedpython_python_distribution.py +0 -286
  197. data/pulpcore/client/pulp_python/models/patchedpython_python_remote.py +0 -823
  198. data/pulpcore/client/pulp_python/models/patchedpython_python_repository.py +0 -259
  199. data/pulpcore/client/pulp_python/models/policy_enum.py +0 -102
  200. data/pulpcore/client/pulp_python/models/python_bander_remote.py +0 -181
  201. data/pulpcore/client/pulp_python/models/python_python_distribution.py +0 -288
  202. data/pulpcore/client/pulp_python/models/python_python_distribution_response.py +0 -368
  203. data/pulpcore/client/pulp_python/models/python_python_package_content.py +0 -824
  204. data/pulpcore/client/pulp_python/models/python_python_package_content_response.py +0 -933
  205. data/pulpcore/client/pulp_python/models/python_python_publication.py +0 -149
  206. data/pulpcore/client/pulp_python/models/python_python_publication_response.py +0 -231
  207. data/pulpcore/client/pulp_python/models/python_python_remote.py +0 -825
  208. data/pulpcore/client/pulp_python/models/python_python_remote_response.py +0 -772
  209. data/pulpcore/client/pulp_python/models/python_python_repository.py +0 -260
  210. data/pulpcore/client/pulp_python/models/python_python_repository_response.py +0 -366
  211. data/pulpcore/client/pulp_python/models/repository_add_remove_content.py +0 -179
  212. data/pulpcore/client/pulp_python/models/repository_sync_url.py +0 -151
  213. data/pulpcore/client/pulp_python/models/repository_version.py +0 -123
  214. data/pulpcore/client/pulp_python/models/repository_version_response.py +0 -257
  215. data/pulpcore/client/pulp_python/models/summary_response.py +0 -182
  216. data/pulpcore/client/pulp_python/rest.py +0 -292
  217. data/requirements.txt +0 -6
  218. data/setup.cfg +0 -2
  219. data/setup.py +0 -42
  220. data/test/__init__.py +0 -0
  221. data/test/test_async_operation_response.py +0 -54
  222. data/test/test_content_packages_api.py +0 -55
  223. data/test/test_content_summary.py +0 -70
  224. data/test/test_content_summary_response.py +0 -70
  225. data/test/test_distributions_pypi_api.py +0 -76
  226. data/test/test_exclude_platforms_enum.py +0 -52
  227. data/test/test_package_metadata_response.py +0 -60
  228. data/test/test_package_types_enum.py +0 -52
  229. data/test/test_package_upload.py +0 -57
  230. data/test/test_package_upload_task_response.py +0 -58
  231. data/test/test_paginated_repository_version_response_list.py +0 -64
  232. data/test/test_paginatedpython_python_distribution_response_list.py +0 -68
  233. data/test/test_paginatedpython_python_package_content_response_list.py +0 -88
  234. data/test/test_paginatedpython_python_publication_response_list.py +0 -65
  235. data/test/test_paginatedpython_python_remote_response_list.py +0 -88
  236. data/test/test_paginatedpython_python_repository_response_list.py +0 -68
  237. data/test/test_patchedpython_python_distribution.py +0 -59
  238. data/test/test_patchedpython_python_remote.py +0 -84
  239. data/test/test_patchedpython_python_repository.py +0 -58
  240. data/test/test_policy_enum.py +0 -52
  241. data/test/test_publications_pypi_api.py +0 -62
  242. data/test/test_pypi_api.py +0 -41
  243. data/test/test_pypi_legacy_api.py +0 -41
  244. data/test/test_pypi_metadata_api.py +0 -41
  245. data/test/test_pypi_simple_api.py +0 -55
  246. data/test/test_python_bander_remote.py +0 -57
  247. data/test/test_python_python_distribution.py +0 -61
  248. data/test/test_python_python_distribution_response.py +0 -64
  249. data/test/test_python_python_package_content.py +0 -79
  250. data/test/test_python_python_package_content_response.py +0 -82
  251. data/test/test_python_python_publication.py +0 -54
  252. data/test/test_python_python_publication_response.py +0 -59
  253. data/test/test_python_python_remote.py +0 -86
  254. data/test/test_python_python_remote_response.py +0 -84
  255. data/test/test_python_python_repository.py +0 -59
  256. data/test/test_python_python_repository_response.py +0 -63
  257. data/test/test_remotes_python_api.py +0 -83
  258. data/test/test_repositories_python_api.py +0 -90
  259. data/test/test_repositories_python_versions_api.py +0 -61
  260. data/test/test_repository_add_remove_content.py +0 -59
  261. data/test/test_repository_sync_url.py +0 -54
  262. data/test/test_repository_version.py +0 -53
  263. data/test/test_repository_version_response.py +0 -58
  264. data/test/test_summary_response.py +0 -58
  265. data/test-requirements.txt +0 -3
  266. data/tox.ini +0 -9
@@ -1,103 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- Pulp 3 API
5
-
6
- Fetch, Upload, Organize, and Distribute Software Packages # noqa: E501
7
-
8
- The version of the OpenAPI document: v3
9
- Contact: pulp-list@redhat.com
10
- Generated by: https://openapi-generator.tech
11
- """
12
-
13
-
14
- import pprint
15
- import re # noqa: F401
16
-
17
- import six
18
-
19
- from pulpcore.client.pulp_python.configuration import Configuration
20
-
21
-
22
- class ExcludePlatformsEnum(object):
23
- """NOTE: This class is auto generated by OpenAPI Generator.
24
- Ref: https://openapi-generator.tech
25
-
26
- Do not edit the class manually.
27
- """
28
-
29
- """
30
- allowed enum values
31
- """
32
- WINDOWS = "windows"
33
- MACOS = "macos"
34
- FREEBSD = "freebsd"
35
- LINUX = "linux"
36
-
37
- allowable_values = [WINDOWS, MACOS, FREEBSD, LINUX] # noqa: E501
38
-
39
- """
40
- Attributes:
41
- openapi_types (dict): The key is attribute name
42
- and the value is attribute type.
43
- attribute_map (dict): The key is attribute name
44
- and the value is json key in definition.
45
- """
46
- openapi_types = {
47
- }
48
-
49
- attribute_map = {
50
- }
51
-
52
- def __init__(self, local_vars_configuration=None): # noqa: E501
53
- """ExcludePlatformsEnum - a model defined in OpenAPI""" # noqa: E501
54
- if local_vars_configuration is None:
55
- local_vars_configuration = Configuration()
56
- self.local_vars_configuration = local_vars_configuration
57
- self.discriminator = None
58
-
59
- def to_dict(self):
60
- """Returns the model properties as a dict"""
61
- result = {}
62
-
63
- for attr, _ in six.iteritems(self.openapi_types):
64
- value = getattr(self, attr)
65
- if isinstance(value, list):
66
- result[attr] = list(map(
67
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
68
- value
69
- ))
70
- elif hasattr(value, "to_dict"):
71
- result[attr] = value.to_dict()
72
- elif isinstance(value, dict):
73
- result[attr] = dict(map(
74
- lambda item: (item[0], item[1].to_dict())
75
- if hasattr(item[1], "to_dict") else item,
76
- value.items()
77
- ))
78
- else:
79
- result[attr] = value
80
-
81
- return result
82
-
83
- def to_str(self):
84
- """Returns the string representation of the model"""
85
- return pprint.pformat(self.to_dict())
86
-
87
- def __repr__(self):
88
- """For `print` and `pprint`"""
89
- return self.to_str()
90
-
91
- def __eq__(self, other):
92
- """Returns true if both objects are equal"""
93
- if not isinstance(other, ExcludePlatformsEnum):
94
- return False
95
-
96
- return self.to_dict() == other.to_dict()
97
-
98
- def __ne__(self, other):
99
- """Returns true if both objects are not equal"""
100
- if not isinstance(other, ExcludePlatformsEnum):
101
- return True
102
-
103
- return self.to_dict() != other.to_dict()
@@ -1,209 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- Pulp 3 API
5
-
6
- Fetch, Upload, Organize, and Distribute Software Packages # noqa: E501
7
-
8
- The version of the OpenAPI document: v3
9
- Contact: pulp-list@redhat.com
10
- Generated by: https://openapi-generator.tech
11
- """
12
-
13
-
14
- import pprint
15
- import re # noqa: F401
16
-
17
- import six
18
-
19
- from pulpcore.client.pulp_python.configuration import Configuration
20
-
21
-
22
- class PackageMetadataResponse(object):
23
- """NOTE: This class is auto generated by OpenAPI Generator.
24
- Ref: https://openapi-generator.tech
25
-
26
- Do not edit the class manually.
27
- """
28
-
29
- """
30
- Attributes:
31
- openapi_types (dict): The key is attribute name
32
- and the value is attribute type.
33
- attribute_map (dict): The key is attribute name
34
- and the value is json key in definition.
35
- """
36
- openapi_types = {
37
- 'last_serial': 'int',
38
- 'info': 'object',
39
- 'releases': 'object',
40
- 'urls': 'object'
41
- }
42
-
43
- attribute_map = {
44
- 'last_serial': 'last_serial',
45
- 'info': 'info',
46
- 'releases': 'releases',
47
- 'urls': 'urls'
48
- }
49
-
50
- def __init__(self, last_serial=None, info=None, releases=None, urls=None, local_vars_configuration=None): # noqa: E501
51
- """PackageMetadataResponse - a model defined in OpenAPI""" # noqa: E501
52
- if local_vars_configuration is None:
53
- local_vars_configuration = Configuration()
54
- self.local_vars_configuration = local_vars_configuration
55
-
56
- self._last_serial = None
57
- self._info = None
58
- self._releases = None
59
- self._urls = None
60
- self.discriminator = None
61
-
62
- self.last_serial = last_serial
63
- self.info = info
64
- self.releases = releases
65
- self.urls = urls
66
-
67
- @property
68
- def last_serial(self):
69
- """Gets the last_serial of this PackageMetadataResponse. # noqa: E501
70
-
71
- Cache value from last PyPI sync # noqa: E501
72
-
73
- :return: The last_serial of this PackageMetadataResponse. # noqa: E501
74
- :rtype: int
75
- """
76
- return self._last_serial
77
-
78
- @last_serial.setter
79
- def last_serial(self, last_serial):
80
- """Sets the last_serial of this PackageMetadataResponse.
81
-
82
- Cache value from last PyPI sync # noqa: E501
83
-
84
- :param last_serial: The last_serial of this PackageMetadataResponse. # noqa: E501
85
- :type: int
86
- """
87
- if self.local_vars_configuration.client_side_validation and last_serial is None: # noqa: E501
88
- raise ValueError("Invalid value for `last_serial`, must not be `None`") # noqa: E501
89
-
90
- self._last_serial = last_serial
91
-
92
- @property
93
- def info(self):
94
- """Gets the info of this PackageMetadataResponse. # noqa: E501
95
-
96
- Core metadata of the package # noqa: E501
97
-
98
- :return: The info of this PackageMetadataResponse. # noqa: E501
99
- :rtype: object
100
- """
101
- return self._info
102
-
103
- @info.setter
104
- def info(self, info):
105
- """Sets the info of this PackageMetadataResponse.
106
-
107
- Core metadata of the package # noqa: E501
108
-
109
- :param info: The info of this PackageMetadataResponse. # noqa: E501
110
- :type: object
111
- """
112
- if self.local_vars_configuration.client_side_validation and info is None: # noqa: E501
113
- raise ValueError("Invalid value for `info`, must not be `None`") # noqa: E501
114
-
115
- self._info = info
116
-
117
- @property
118
- def releases(self):
119
- """Gets the releases of this PackageMetadataResponse. # noqa: E501
120
-
121
- List of all the releases of the package # noqa: E501
122
-
123
- :return: The releases of this PackageMetadataResponse. # noqa: E501
124
- :rtype: object
125
- """
126
- return self._releases
127
-
128
- @releases.setter
129
- def releases(self, releases):
130
- """Sets the releases of this PackageMetadataResponse.
131
-
132
- List of all the releases of the package # noqa: E501
133
-
134
- :param releases: The releases of this PackageMetadataResponse. # noqa: E501
135
- :type: object
136
- """
137
- if self.local_vars_configuration.client_side_validation and releases is None: # noqa: E501
138
- raise ValueError("Invalid value for `releases`, must not be `None`") # noqa: E501
139
-
140
- self._releases = releases
141
-
142
- @property
143
- def urls(self):
144
- """Gets the urls of this PackageMetadataResponse. # noqa: E501
145
-
146
-
147
- :return: The urls of this PackageMetadataResponse. # noqa: E501
148
- :rtype: object
149
- """
150
- return self._urls
151
-
152
- @urls.setter
153
- def urls(self, urls):
154
- """Sets the urls of this PackageMetadataResponse.
155
-
156
-
157
- :param urls: The urls of this PackageMetadataResponse. # noqa: E501
158
- :type: object
159
- """
160
- if self.local_vars_configuration.client_side_validation and urls is None: # noqa: E501
161
- raise ValueError("Invalid value for `urls`, must not be `None`") # noqa: E501
162
-
163
- self._urls = urls
164
-
165
- def to_dict(self):
166
- """Returns the model properties as a dict"""
167
- result = {}
168
-
169
- for attr, _ in six.iteritems(self.openapi_types):
170
- value = getattr(self, attr)
171
- if isinstance(value, list):
172
- result[attr] = list(map(
173
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
174
- value
175
- ))
176
- elif hasattr(value, "to_dict"):
177
- result[attr] = value.to_dict()
178
- elif isinstance(value, dict):
179
- result[attr] = dict(map(
180
- lambda item: (item[0], item[1].to_dict())
181
- if hasattr(item[1], "to_dict") else item,
182
- value.items()
183
- ))
184
- else:
185
- result[attr] = value
186
-
187
- return result
188
-
189
- def to_str(self):
190
- """Returns the string representation of the model"""
191
- return pprint.pformat(self.to_dict())
192
-
193
- def __repr__(self):
194
- """For `print` and `pprint`"""
195
- return self.to_str()
196
-
197
- def __eq__(self, other):
198
- """Returns true if both objects are equal"""
199
- if not isinstance(other, PackageMetadataResponse):
200
- return False
201
-
202
- return self.to_dict() == other.to_dict()
203
-
204
- def __ne__(self, other):
205
- """Returns true if both objects are not equal"""
206
- if not isinstance(other, PackageMetadataResponse):
207
- return True
208
-
209
- return self.to_dict() != other.to_dict()
@@ -1,107 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- Pulp 3 API
5
-
6
- Fetch, Upload, Organize, and Distribute Software Packages # noqa: E501
7
-
8
- The version of the OpenAPI document: v3
9
- Contact: pulp-list@redhat.com
10
- Generated by: https://openapi-generator.tech
11
- """
12
-
13
-
14
- import pprint
15
- import re # noqa: F401
16
-
17
- import six
18
-
19
- from pulpcore.client.pulp_python.configuration import Configuration
20
-
21
-
22
- class PackageTypesEnum(object):
23
- """NOTE: This class is auto generated by OpenAPI Generator.
24
- Ref: https://openapi-generator.tech
25
-
26
- Do not edit the class manually.
27
- """
28
-
29
- """
30
- allowed enum values
31
- """
32
- BDIST_DMG = "bdist_dmg"
33
- BDIST_DUMB = "bdist_dumb"
34
- BDIST_EGG = "bdist_egg"
35
- BDIST_MSI = "bdist_msi"
36
- BDIST_RPM = "bdist_rpm"
37
- BDIST_WHEEL = "bdist_wheel"
38
- BDIST_WININST = "bdist_wininst"
39
- SDIST = "sdist"
40
-
41
- allowable_values = [BDIST_DMG, BDIST_DUMB, BDIST_EGG, BDIST_MSI, BDIST_RPM, BDIST_WHEEL, BDIST_WININST, SDIST] # noqa: E501
42
-
43
- """
44
- Attributes:
45
- openapi_types (dict): The key is attribute name
46
- and the value is attribute type.
47
- attribute_map (dict): The key is attribute name
48
- and the value is json key in definition.
49
- """
50
- openapi_types = {
51
- }
52
-
53
- attribute_map = {
54
- }
55
-
56
- def __init__(self, local_vars_configuration=None): # noqa: E501
57
- """PackageTypesEnum - a model defined in OpenAPI""" # noqa: E501
58
- if local_vars_configuration is None:
59
- local_vars_configuration = Configuration()
60
- self.local_vars_configuration = local_vars_configuration
61
- self.discriminator = None
62
-
63
- def to_dict(self):
64
- """Returns the model properties as a dict"""
65
- result = {}
66
-
67
- for attr, _ in six.iteritems(self.openapi_types):
68
- value = getattr(self, attr)
69
- if isinstance(value, list):
70
- result[attr] = list(map(
71
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
72
- value
73
- ))
74
- elif hasattr(value, "to_dict"):
75
- result[attr] = value.to_dict()
76
- elif isinstance(value, dict):
77
- result[attr] = dict(map(
78
- lambda item: (item[0], item[1].to_dict())
79
- if hasattr(item[1], "to_dict") else item,
80
- value.items()
81
- ))
82
- else:
83
- result[attr] = value
84
-
85
- return result
86
-
87
- def to_str(self):
88
- """Returns the string representation of the model"""
89
- return pprint.pformat(self.to_dict())
90
-
91
- def __repr__(self):
92
- """For `print` and `pprint`"""
93
- return self.to_str()
94
-
95
- def __eq__(self, other):
96
- """Returns true if both objects are equal"""
97
- if not isinstance(other, PackageTypesEnum):
98
- return False
99
-
100
- return self.to_dict() == other.to_dict()
101
-
102
- def __ne__(self, other):
103
- """Returns true if both objects are not equal"""
104
- if not isinstance(other, PackageTypesEnum):
105
- return True
106
-
107
- return self.to_dict() != other.to_dict()
@@ -1,187 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- Pulp 3 API
5
-
6
- Fetch, Upload, Organize, and Distribute Software Packages # noqa: E501
7
-
8
- The version of the OpenAPI document: v3
9
- Contact: pulp-list@redhat.com
10
- Generated by: https://openapi-generator.tech
11
- """
12
-
13
-
14
- import pprint
15
- import re # noqa: F401
16
-
17
- import six
18
-
19
- from pulpcore.client.pulp_python.configuration import Configuration
20
-
21
-
22
- class PackageUpload(object):
23
- """NOTE: This class is auto generated by OpenAPI Generator.
24
- Ref: https://openapi-generator.tech
25
-
26
- Do not edit the class manually.
27
- """
28
-
29
- """
30
- Attributes:
31
- openapi_types (dict): The key is attribute name
32
- and the value is attribute type.
33
- attribute_map (dict): The key is attribute name
34
- and the value is json key in definition.
35
- """
36
- openapi_types = {
37
- 'content': 'file',
38
- 'action': 'str',
39
- 'sha256_digest': 'str'
40
- }
41
-
42
- attribute_map = {
43
- 'content': 'content',
44
- 'action': 'action',
45
- 'sha256_digest': 'sha256_digest'
46
- }
47
-
48
- def __init__(self, content=None, action='file_upload', sha256_digest=None, local_vars_configuration=None): # noqa: E501
49
- """PackageUpload - a model defined in OpenAPI""" # noqa: E501
50
- if local_vars_configuration is None:
51
- local_vars_configuration = Configuration()
52
- self.local_vars_configuration = local_vars_configuration
53
-
54
- self._content = None
55
- self._action = None
56
- self._sha256_digest = None
57
- self.discriminator = None
58
-
59
- self.content = content
60
- if action is not None:
61
- self.action = action
62
- self.sha256_digest = sha256_digest
63
-
64
- @property
65
- def content(self):
66
- """Gets the content of this PackageUpload. # noqa: E501
67
-
68
- A Python package release file to upload to the index. # noqa: E501
69
-
70
- :return: The content of this PackageUpload. # noqa: E501
71
- :rtype: file
72
- """
73
- return self._content
74
-
75
- @content.setter
76
- def content(self, content):
77
- """Sets the content of this PackageUpload.
78
-
79
- A Python package release file to upload to the index. # noqa: E501
80
-
81
- :param content: The content of this PackageUpload. # noqa: E501
82
- :type: file
83
- """
84
- if self.local_vars_configuration.client_side_validation and content is None: # noqa: E501
85
- raise ValueError("Invalid value for `content`, must not be `None`") # noqa: E501
86
-
87
- self._content = content
88
-
89
- @property
90
- def action(self):
91
- """Gets the action of this PackageUpload. # noqa: E501
92
-
93
- Defaults to `file_upload`, don't change it or request will fail! # noqa: E501
94
-
95
- :return: The action of this PackageUpload. # noqa: E501
96
- :rtype: str
97
- """
98
- return self._action
99
-
100
- @action.setter
101
- def action(self, action):
102
- """Sets the action of this PackageUpload.
103
-
104
- Defaults to `file_upload`, don't change it or request will fail! # noqa: E501
105
-
106
- :param action: The action of this PackageUpload. # noqa: E501
107
- :type: str
108
- """
109
-
110
- self._action = action
111
-
112
- @property
113
- def sha256_digest(self):
114
- """Gets the sha256_digest of this PackageUpload. # noqa: E501
115
-
116
- SHA256 of package to validate upload integrity. # noqa: E501
117
-
118
- :return: The sha256_digest of this PackageUpload. # noqa: E501
119
- :rtype: str
120
- """
121
- return self._sha256_digest
122
-
123
- @sha256_digest.setter
124
- def sha256_digest(self, sha256_digest):
125
- """Sets the sha256_digest of this PackageUpload.
126
-
127
- SHA256 of package to validate upload integrity. # noqa: E501
128
-
129
- :param sha256_digest: The sha256_digest of this PackageUpload. # noqa: E501
130
- :type: str
131
- """
132
- if self.local_vars_configuration.client_side_validation and sha256_digest is None: # noqa: E501
133
- raise ValueError("Invalid value for `sha256_digest`, must not be `None`") # noqa: E501
134
- if (self.local_vars_configuration.client_side_validation and
135
- sha256_digest is not None and len(sha256_digest) > 64):
136
- raise ValueError("Invalid value for `sha256_digest`, length must be less than or equal to `64`") # noqa: E501
137
- if (self.local_vars_configuration.client_side_validation and
138
- sha256_digest is not None and len(sha256_digest) < 64):
139
- raise ValueError("Invalid value for `sha256_digest`, length must be greater than or equal to `64`") # noqa: E501
140
-
141
- self._sha256_digest = sha256_digest
142
-
143
- def to_dict(self):
144
- """Returns the model properties as a dict"""
145
- result = {}
146
-
147
- for attr, _ in six.iteritems(self.openapi_types):
148
- value = getattr(self, attr)
149
- if isinstance(value, list):
150
- result[attr] = list(map(
151
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
152
- value
153
- ))
154
- elif hasattr(value, "to_dict"):
155
- result[attr] = value.to_dict()
156
- elif isinstance(value, dict):
157
- result[attr] = dict(map(
158
- lambda item: (item[0], item[1].to_dict())
159
- if hasattr(item[1], "to_dict") else item,
160
- value.items()
161
- ))
162
- else:
163
- result[attr] = value
164
-
165
- return result
166
-
167
- def to_str(self):
168
- """Returns the string representation of the model"""
169
- return pprint.pformat(self.to_dict())
170
-
171
- def __repr__(self):
172
- """For `print` and `pprint`"""
173
- return self.to_str()
174
-
175
- def __eq__(self, other):
176
- """Returns true if both objects are equal"""
177
- if not isinstance(other, PackageUpload):
178
- return False
179
-
180
- return self.to_dict() == other.to_dict()
181
-
182
- def __ne__(self, other):
183
- """Returns true if both objects are not equal"""
184
- if not isinstance(other, PackageUpload):
185
- return True
186
-
187
- return self.to_dict() != other.to_dict()