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,149 +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 PythonPythonPublication(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
- 'repository_version': 'str',
38
- 'repository': 'str'
39
- }
40
-
41
- attribute_map = {
42
- 'repository_version': 'repository_version',
43
- 'repository': 'repository'
44
- }
45
-
46
- def __init__(self, repository_version=None, repository=None, local_vars_configuration=None): # noqa: E501
47
- """PythonPythonPublication - a model defined in OpenAPI""" # noqa: E501
48
- if local_vars_configuration is None:
49
- local_vars_configuration = Configuration()
50
- self.local_vars_configuration = local_vars_configuration
51
-
52
- self._repository_version = None
53
- self._repository = None
54
- self.discriminator = None
55
-
56
- if repository_version is not None:
57
- self.repository_version = repository_version
58
- if repository is not None:
59
- self.repository = repository
60
-
61
- @property
62
- def repository_version(self):
63
- """Gets the repository_version of this PythonPythonPublication. # noqa: E501
64
-
65
-
66
- :return: The repository_version of this PythonPythonPublication. # noqa: E501
67
- :rtype: str
68
- """
69
- return self._repository_version
70
-
71
- @repository_version.setter
72
- def repository_version(self, repository_version):
73
- """Sets the repository_version of this PythonPythonPublication.
74
-
75
-
76
- :param repository_version: The repository_version of this PythonPythonPublication. # noqa: E501
77
- :type: str
78
- """
79
-
80
- self._repository_version = repository_version
81
-
82
- @property
83
- def repository(self):
84
- """Gets the repository of this PythonPythonPublication. # noqa: E501
85
-
86
- A URI of the repository to be published. # noqa: E501
87
-
88
- :return: The repository of this PythonPythonPublication. # noqa: E501
89
- :rtype: str
90
- """
91
- return self._repository
92
-
93
- @repository.setter
94
- def repository(self, repository):
95
- """Sets the repository of this PythonPythonPublication.
96
-
97
- A URI of the repository to be published. # noqa: E501
98
-
99
- :param repository: The repository of this PythonPythonPublication. # noqa: E501
100
- :type: str
101
- """
102
-
103
- self._repository = repository
104
-
105
- def to_dict(self):
106
- """Returns the model properties as a dict"""
107
- result = {}
108
-
109
- for attr, _ in six.iteritems(self.openapi_types):
110
- value = getattr(self, attr)
111
- if isinstance(value, list):
112
- result[attr] = list(map(
113
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
114
- value
115
- ))
116
- elif hasattr(value, "to_dict"):
117
- result[attr] = value.to_dict()
118
- elif isinstance(value, dict):
119
- result[attr] = dict(map(
120
- lambda item: (item[0], item[1].to_dict())
121
- if hasattr(item[1], "to_dict") else item,
122
- value.items()
123
- ))
124
- else:
125
- result[attr] = value
126
-
127
- return result
128
-
129
- def to_str(self):
130
- """Returns the string representation of the model"""
131
- return pprint.pformat(self.to_dict())
132
-
133
- def __repr__(self):
134
- """For `print` and `pprint`"""
135
- return self.to_str()
136
-
137
- def __eq__(self, other):
138
- """Returns true if both objects are equal"""
139
- if not isinstance(other, PythonPythonPublication):
140
- return False
141
-
142
- return self.to_dict() == other.to_dict()
143
-
144
- def __ne__(self, other):
145
- """Returns true if both objects are not equal"""
146
- if not isinstance(other, PythonPythonPublication):
147
- return True
148
-
149
- return self.to_dict() != other.to_dict()
@@ -1,231 +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 PythonPythonPublicationResponse(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
- 'pulp_href': 'str',
38
- 'pulp_created': 'datetime',
39
- 'repository_version': 'str',
40
- 'repository': 'str',
41
- 'distributions': 'list[str]'
42
- }
43
-
44
- attribute_map = {
45
- 'pulp_href': 'pulp_href',
46
- 'pulp_created': 'pulp_created',
47
- 'repository_version': 'repository_version',
48
- 'repository': 'repository',
49
- 'distributions': 'distributions'
50
- }
51
-
52
- def __init__(self, pulp_href=None, pulp_created=None, repository_version=None, repository=None, distributions=None, local_vars_configuration=None): # noqa: E501
53
- """PythonPythonPublicationResponse - 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
-
58
- self._pulp_href = None
59
- self._pulp_created = None
60
- self._repository_version = None
61
- self._repository = None
62
- self._distributions = None
63
- self.discriminator = None
64
-
65
- if pulp_href is not None:
66
- self.pulp_href = pulp_href
67
- if pulp_created is not None:
68
- self.pulp_created = pulp_created
69
- if repository_version is not None:
70
- self.repository_version = repository_version
71
- if repository is not None:
72
- self.repository = repository
73
- if distributions is not None:
74
- self.distributions = distributions
75
-
76
- @property
77
- def pulp_href(self):
78
- """Gets the pulp_href of this PythonPythonPublicationResponse. # noqa: E501
79
-
80
-
81
- :return: The pulp_href of this PythonPythonPublicationResponse. # noqa: E501
82
- :rtype: str
83
- """
84
- return self._pulp_href
85
-
86
- @pulp_href.setter
87
- def pulp_href(self, pulp_href):
88
- """Sets the pulp_href of this PythonPythonPublicationResponse.
89
-
90
-
91
- :param pulp_href: The pulp_href of this PythonPythonPublicationResponse. # noqa: E501
92
- :type: str
93
- """
94
-
95
- self._pulp_href = pulp_href
96
-
97
- @property
98
- def pulp_created(self):
99
- """Gets the pulp_created of this PythonPythonPublicationResponse. # noqa: E501
100
-
101
- Timestamp of creation. # noqa: E501
102
-
103
- :return: The pulp_created of this PythonPythonPublicationResponse. # noqa: E501
104
- :rtype: datetime
105
- """
106
- return self._pulp_created
107
-
108
- @pulp_created.setter
109
- def pulp_created(self, pulp_created):
110
- """Sets the pulp_created of this PythonPythonPublicationResponse.
111
-
112
- Timestamp of creation. # noqa: E501
113
-
114
- :param pulp_created: The pulp_created of this PythonPythonPublicationResponse. # noqa: E501
115
- :type: datetime
116
- """
117
-
118
- self._pulp_created = pulp_created
119
-
120
- @property
121
- def repository_version(self):
122
- """Gets the repository_version of this PythonPythonPublicationResponse. # noqa: E501
123
-
124
-
125
- :return: The repository_version of this PythonPythonPublicationResponse. # noqa: E501
126
- :rtype: str
127
- """
128
- return self._repository_version
129
-
130
- @repository_version.setter
131
- def repository_version(self, repository_version):
132
- """Sets the repository_version of this PythonPythonPublicationResponse.
133
-
134
-
135
- :param repository_version: The repository_version of this PythonPythonPublicationResponse. # noqa: E501
136
- :type: str
137
- """
138
-
139
- self._repository_version = repository_version
140
-
141
- @property
142
- def repository(self):
143
- """Gets the repository of this PythonPythonPublicationResponse. # noqa: E501
144
-
145
- A URI of the repository to be published. # noqa: E501
146
-
147
- :return: The repository of this PythonPythonPublicationResponse. # noqa: E501
148
- :rtype: str
149
- """
150
- return self._repository
151
-
152
- @repository.setter
153
- def repository(self, repository):
154
- """Sets the repository of this PythonPythonPublicationResponse.
155
-
156
- A URI of the repository to be published. # noqa: E501
157
-
158
- :param repository: The repository of this PythonPythonPublicationResponse. # noqa: E501
159
- :type: str
160
- """
161
-
162
- self._repository = repository
163
-
164
- @property
165
- def distributions(self):
166
- """Gets the distributions of this PythonPythonPublicationResponse. # noqa: E501
167
-
168
- This publication is currently being hosted as configured by these distributions. # noqa: E501
169
-
170
- :return: The distributions of this PythonPythonPublicationResponse. # noqa: E501
171
- :rtype: list[str]
172
- """
173
- return self._distributions
174
-
175
- @distributions.setter
176
- def distributions(self, distributions):
177
- """Sets the distributions of this PythonPythonPublicationResponse.
178
-
179
- This publication is currently being hosted as configured by these distributions. # noqa: E501
180
-
181
- :param distributions: The distributions of this PythonPythonPublicationResponse. # noqa: E501
182
- :type: list[str]
183
- """
184
-
185
- self._distributions = distributions
186
-
187
- def to_dict(self):
188
- """Returns the model properties as a dict"""
189
- result = {}
190
-
191
- for attr, _ in six.iteritems(self.openapi_types):
192
- value = getattr(self, attr)
193
- if isinstance(value, list):
194
- result[attr] = list(map(
195
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
196
- value
197
- ))
198
- elif hasattr(value, "to_dict"):
199
- result[attr] = value.to_dict()
200
- elif isinstance(value, dict):
201
- result[attr] = dict(map(
202
- lambda item: (item[0], item[1].to_dict())
203
- if hasattr(item[1], "to_dict") else item,
204
- value.items()
205
- ))
206
- else:
207
- result[attr] = value
208
-
209
- return result
210
-
211
- def to_str(self):
212
- """Returns the string representation of the model"""
213
- return pprint.pformat(self.to_dict())
214
-
215
- def __repr__(self):
216
- """For `print` and `pprint`"""
217
- return self.to_str()
218
-
219
- def __eq__(self, other):
220
- """Returns true if both objects are equal"""
221
- if not isinstance(other, PythonPythonPublicationResponse):
222
- return False
223
-
224
- return self.to_dict() == other.to_dict()
225
-
226
- def __ne__(self, other):
227
- """Returns true if both objects are not equal"""
228
- if not isinstance(other, PythonPythonPublicationResponse):
229
- return True
230
-
231
- return self.to_dict() != other.to_dict()
@@ -1,825 +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 PythonPythonRemote(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
- 'name': 'str',
38
- 'url': 'str',
39
- 'ca_cert': 'str',
40
- 'client_cert': 'str',
41
- 'client_key': 'str',
42
- 'tls_validation': 'bool',
43
- 'proxy_url': 'str',
44
- 'proxy_username': 'str',
45
- 'proxy_password': 'str',
46
- 'username': 'str',
47
- 'password': 'str',
48
- 'pulp_labels': 'object',
49
- 'download_concurrency': 'int',
50
- 'policy': 'PolicyEnum',
51
- 'total_timeout': 'float',
52
- 'connect_timeout': 'float',
53
- 'sock_connect_timeout': 'float',
54
- 'sock_read_timeout': 'float',
55
- 'headers': 'list[object]',
56
- 'rate_limit': 'int',
57
- 'includes': 'object',
58
- 'excludes': 'object',
59
- 'prereleases': 'bool',
60
- 'package_types': 'list[PackageTypesEnum]',
61
- 'keep_latest_packages': 'int',
62
- 'exclude_platforms': 'list[ExcludePlatformsEnum]'
63
- }
64
-
65
- attribute_map = {
66
- 'name': 'name',
67
- 'url': 'url',
68
- 'ca_cert': 'ca_cert',
69
- 'client_cert': 'client_cert',
70
- 'client_key': 'client_key',
71
- 'tls_validation': 'tls_validation',
72
- 'proxy_url': 'proxy_url',
73
- 'proxy_username': 'proxy_username',
74
- 'proxy_password': 'proxy_password',
75
- 'username': 'username',
76
- 'password': 'password',
77
- 'pulp_labels': 'pulp_labels',
78
- 'download_concurrency': 'download_concurrency',
79
- 'policy': 'policy',
80
- 'total_timeout': 'total_timeout',
81
- 'connect_timeout': 'connect_timeout',
82
- 'sock_connect_timeout': 'sock_connect_timeout',
83
- 'sock_read_timeout': 'sock_read_timeout',
84
- 'headers': 'headers',
85
- 'rate_limit': 'rate_limit',
86
- 'includes': 'includes',
87
- 'excludes': 'excludes',
88
- 'prereleases': 'prereleases',
89
- 'package_types': 'package_types',
90
- 'keep_latest_packages': 'keep_latest_packages',
91
- 'exclude_platforms': 'exclude_platforms'
92
- }
93
-
94
- def __init__(self, name=None, url=None, ca_cert=None, client_cert=None, client_key=None, tls_validation=None, proxy_url=None, proxy_username=None, proxy_password=None, username=None, password=None, pulp_labels=None, download_concurrency=None, policy=None, total_timeout=None, connect_timeout=None, sock_connect_timeout=None, sock_read_timeout=None, headers=None, rate_limit=None, includes=None, excludes=None, prereleases=None, package_types=None, keep_latest_packages=0, exclude_platforms=None, local_vars_configuration=None): # noqa: E501
95
- """PythonPythonRemote - a model defined in OpenAPI""" # noqa: E501
96
- if local_vars_configuration is None:
97
- local_vars_configuration = Configuration()
98
- self.local_vars_configuration = local_vars_configuration
99
-
100
- self._name = None
101
- self._url = None
102
- self._ca_cert = None
103
- self._client_cert = None
104
- self._client_key = None
105
- self._tls_validation = None
106
- self._proxy_url = None
107
- self._proxy_username = None
108
- self._proxy_password = None
109
- self._username = None
110
- self._password = None
111
- self._pulp_labels = None
112
- self._download_concurrency = None
113
- self._policy = None
114
- self._total_timeout = None
115
- self._connect_timeout = None
116
- self._sock_connect_timeout = None
117
- self._sock_read_timeout = None
118
- self._headers = None
119
- self._rate_limit = None
120
- self._includes = None
121
- self._excludes = None
122
- self._prereleases = None
123
- self._package_types = None
124
- self._keep_latest_packages = None
125
- self._exclude_platforms = None
126
- self.discriminator = None
127
-
128
- self.name = name
129
- self.url = url
130
- self.ca_cert = ca_cert
131
- self.client_cert = client_cert
132
- self.client_key = client_key
133
- if tls_validation is not None:
134
- self.tls_validation = tls_validation
135
- self.proxy_url = proxy_url
136
- self.proxy_username = proxy_username
137
- self.proxy_password = proxy_password
138
- self.username = username
139
- self.password = password
140
- if pulp_labels is not None:
141
- self.pulp_labels = pulp_labels
142
- if download_concurrency is not None:
143
- self.download_concurrency = download_concurrency
144
- if policy is not None:
145
- self.policy = policy
146
- self.total_timeout = total_timeout
147
- self.connect_timeout = connect_timeout
148
- self.sock_connect_timeout = sock_connect_timeout
149
- self.sock_read_timeout = sock_read_timeout
150
- if headers is not None:
151
- self.headers = headers
152
- self.rate_limit = rate_limit
153
- if includes is not None:
154
- self.includes = includes
155
- if excludes is not None:
156
- self.excludes = excludes
157
- if prereleases is not None:
158
- self.prereleases = prereleases
159
- if package_types is not None:
160
- self.package_types = package_types
161
- if keep_latest_packages is not None:
162
- self.keep_latest_packages = keep_latest_packages
163
- if exclude_platforms is not None:
164
- self.exclude_platforms = exclude_platforms
165
-
166
- @property
167
- def name(self):
168
- """Gets the name of this PythonPythonRemote. # noqa: E501
169
-
170
- A unique name for this remote. # noqa: E501
171
-
172
- :return: The name of this PythonPythonRemote. # noqa: E501
173
- :rtype: str
174
- """
175
- return self._name
176
-
177
- @name.setter
178
- def name(self, name):
179
- """Sets the name of this PythonPythonRemote.
180
-
181
- A unique name for this remote. # noqa: E501
182
-
183
- :param name: The name of this PythonPythonRemote. # noqa: E501
184
- :type: str
185
- """
186
- if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
187
- raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
188
-
189
- self._name = name
190
-
191
- @property
192
- def url(self):
193
- """Gets the url of this PythonPythonRemote. # noqa: E501
194
-
195
- The URL of an external content source. # noqa: E501
196
-
197
- :return: The url of this PythonPythonRemote. # noqa: E501
198
- :rtype: str
199
- """
200
- return self._url
201
-
202
- @url.setter
203
- def url(self, url):
204
- """Sets the url of this PythonPythonRemote.
205
-
206
- The URL of an external content source. # noqa: E501
207
-
208
- :param url: The url of this PythonPythonRemote. # noqa: E501
209
- :type: str
210
- """
211
- if self.local_vars_configuration.client_side_validation and url is None: # noqa: E501
212
- raise ValueError("Invalid value for `url`, must not be `None`") # noqa: E501
213
-
214
- self._url = url
215
-
216
- @property
217
- def ca_cert(self):
218
- """Gets the ca_cert of this PythonPythonRemote. # noqa: E501
219
-
220
- A PEM encoded CA certificate used to validate the server certificate presented by the remote server. # noqa: E501
221
-
222
- :return: The ca_cert of this PythonPythonRemote. # noqa: E501
223
- :rtype: str
224
- """
225
- return self._ca_cert
226
-
227
- @ca_cert.setter
228
- def ca_cert(self, ca_cert):
229
- """Sets the ca_cert of this PythonPythonRemote.
230
-
231
- A PEM encoded CA certificate used to validate the server certificate presented by the remote server. # noqa: E501
232
-
233
- :param ca_cert: The ca_cert of this PythonPythonRemote. # noqa: E501
234
- :type: str
235
- """
236
-
237
- self._ca_cert = ca_cert
238
-
239
- @property
240
- def client_cert(self):
241
- """Gets the client_cert of this PythonPythonRemote. # noqa: E501
242
-
243
- A PEM encoded client certificate used for authentication. # noqa: E501
244
-
245
- :return: The client_cert of this PythonPythonRemote. # noqa: E501
246
- :rtype: str
247
- """
248
- return self._client_cert
249
-
250
- @client_cert.setter
251
- def client_cert(self, client_cert):
252
- """Sets the client_cert of this PythonPythonRemote.
253
-
254
- A PEM encoded client certificate used for authentication. # noqa: E501
255
-
256
- :param client_cert: The client_cert of this PythonPythonRemote. # noqa: E501
257
- :type: str
258
- """
259
-
260
- self._client_cert = client_cert
261
-
262
- @property
263
- def client_key(self):
264
- """Gets the client_key of this PythonPythonRemote. # noqa: E501
265
-
266
- A PEM encoded private key used for authentication. # noqa: E501
267
-
268
- :return: The client_key of this PythonPythonRemote. # noqa: E501
269
- :rtype: str
270
- """
271
- return self._client_key
272
-
273
- @client_key.setter
274
- def client_key(self, client_key):
275
- """Sets the client_key of this PythonPythonRemote.
276
-
277
- A PEM encoded private key used for authentication. # noqa: E501
278
-
279
- :param client_key: The client_key of this PythonPythonRemote. # noqa: E501
280
- :type: str
281
- """
282
-
283
- self._client_key = client_key
284
-
285
- @property
286
- def tls_validation(self):
287
- """Gets the tls_validation of this PythonPythonRemote. # noqa: E501
288
-
289
- If True, TLS peer validation must be performed. # noqa: E501
290
-
291
- :return: The tls_validation of this PythonPythonRemote. # noqa: E501
292
- :rtype: bool
293
- """
294
- return self._tls_validation
295
-
296
- @tls_validation.setter
297
- def tls_validation(self, tls_validation):
298
- """Sets the tls_validation of this PythonPythonRemote.
299
-
300
- If True, TLS peer validation must be performed. # noqa: E501
301
-
302
- :param tls_validation: The tls_validation of this PythonPythonRemote. # noqa: E501
303
- :type: bool
304
- """
305
-
306
- self._tls_validation = tls_validation
307
-
308
- @property
309
- def proxy_url(self):
310
- """Gets the proxy_url of this PythonPythonRemote. # noqa: E501
311
-
312
- The proxy URL. Format: scheme://host:port # noqa: E501
313
-
314
- :return: The proxy_url of this PythonPythonRemote. # noqa: E501
315
- :rtype: str
316
- """
317
- return self._proxy_url
318
-
319
- @proxy_url.setter
320
- def proxy_url(self, proxy_url):
321
- """Sets the proxy_url of this PythonPythonRemote.
322
-
323
- The proxy URL. Format: scheme://host:port # noqa: E501
324
-
325
- :param proxy_url: The proxy_url of this PythonPythonRemote. # noqa: E501
326
- :type: str
327
- """
328
-
329
- self._proxy_url = proxy_url
330
-
331
- @property
332
- def proxy_username(self):
333
- """Gets the proxy_username of this PythonPythonRemote. # noqa: E501
334
-
335
- The username to authenticte to the proxy. # noqa: E501
336
-
337
- :return: The proxy_username of this PythonPythonRemote. # noqa: E501
338
- :rtype: str
339
- """
340
- return self._proxy_username
341
-
342
- @proxy_username.setter
343
- def proxy_username(self, proxy_username):
344
- """Sets the proxy_username of this PythonPythonRemote.
345
-
346
- The username to authenticte to the proxy. # noqa: E501
347
-
348
- :param proxy_username: The proxy_username of this PythonPythonRemote. # noqa: E501
349
- :type: str
350
- """
351
-
352
- self._proxy_username = proxy_username
353
-
354
- @property
355
- def proxy_password(self):
356
- """Gets the proxy_password of this PythonPythonRemote. # noqa: E501
357
-
358
- The password to authenticte to the proxy. # noqa: E501
359
-
360
- :return: The proxy_password of this PythonPythonRemote. # noqa: E501
361
- :rtype: str
362
- """
363
- return self._proxy_password
364
-
365
- @proxy_password.setter
366
- def proxy_password(self, proxy_password):
367
- """Sets the proxy_password of this PythonPythonRemote.
368
-
369
- The password to authenticte to the proxy. # noqa: E501
370
-
371
- :param proxy_password: The proxy_password of this PythonPythonRemote. # noqa: E501
372
- :type: str
373
- """
374
-
375
- self._proxy_password = proxy_password
376
-
377
- @property
378
- def username(self):
379
- """Gets the username of this PythonPythonRemote. # noqa: E501
380
-
381
- The username to be used for authentication when syncing. # noqa: E501
382
-
383
- :return: The username of this PythonPythonRemote. # noqa: E501
384
- :rtype: str
385
- """
386
- return self._username
387
-
388
- @username.setter
389
- def username(self, username):
390
- """Sets the username of this PythonPythonRemote.
391
-
392
- The username to be used for authentication when syncing. # noqa: E501
393
-
394
- :param username: The username of this PythonPythonRemote. # noqa: E501
395
- :type: str
396
- """
397
-
398
- self._username = username
399
-
400
- @property
401
- def password(self):
402
- """Gets the password of this PythonPythonRemote. # noqa: E501
403
-
404
- The password to be used for authentication when syncing. # noqa: E501
405
-
406
- :return: The password of this PythonPythonRemote. # noqa: E501
407
- :rtype: str
408
- """
409
- return self._password
410
-
411
- @password.setter
412
- def password(self, password):
413
- """Sets the password of this PythonPythonRemote.
414
-
415
- The password to be used for authentication when syncing. # noqa: E501
416
-
417
- :param password: The password of this PythonPythonRemote. # noqa: E501
418
- :type: str
419
- """
420
-
421
- self._password = password
422
-
423
- @property
424
- def pulp_labels(self):
425
- """Gets the pulp_labels of this PythonPythonRemote. # noqa: E501
426
-
427
-
428
- :return: The pulp_labels of this PythonPythonRemote. # noqa: E501
429
- :rtype: object
430
- """
431
- return self._pulp_labels
432
-
433
- @pulp_labels.setter
434
- def pulp_labels(self, pulp_labels):
435
- """Sets the pulp_labels of this PythonPythonRemote.
436
-
437
-
438
- :param pulp_labels: The pulp_labels of this PythonPythonRemote. # noqa: E501
439
- :type: object
440
- """
441
-
442
- self._pulp_labels = pulp_labels
443
-
444
- @property
445
- def download_concurrency(self):
446
- """Gets the download_concurrency of this PythonPythonRemote. # noqa: E501
447
-
448
- Total number of simultaneous connections. # noqa: E501
449
-
450
- :return: The download_concurrency of this PythonPythonRemote. # noqa: E501
451
- :rtype: int
452
- """
453
- return self._download_concurrency
454
-
455
- @download_concurrency.setter
456
- def download_concurrency(self, download_concurrency):
457
- """Sets the download_concurrency of this PythonPythonRemote.
458
-
459
- Total number of simultaneous connections. # noqa: E501
460
-
461
- :param download_concurrency: The download_concurrency of this PythonPythonRemote. # noqa: E501
462
- :type: int
463
- """
464
- if (self.local_vars_configuration.client_side_validation and
465
- download_concurrency is not None and download_concurrency < 1): # noqa: E501
466
- raise ValueError("Invalid value for `download_concurrency`, must be a value greater than or equal to `1`") # noqa: E501
467
-
468
- self._download_concurrency = download_concurrency
469
-
470
- @property
471
- def policy(self):
472
- """Gets the policy of this PythonPythonRemote. # noqa: E501
473
-
474
- The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'on_demand' is the default. # noqa: E501
475
-
476
- :return: The policy of this PythonPythonRemote. # noqa: E501
477
- :rtype: PolicyEnum
478
- """
479
- return self._policy
480
-
481
- @policy.setter
482
- def policy(self, policy):
483
- """Sets the policy of this PythonPythonRemote.
484
-
485
- The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'on_demand' is the default. # noqa: E501
486
-
487
- :param policy: The policy of this PythonPythonRemote. # noqa: E501
488
- :type: PolicyEnum
489
- """
490
-
491
- self._policy = policy
492
-
493
- @property
494
- def total_timeout(self):
495
- """Gets the total_timeout of this PythonPythonRemote. # noqa: E501
496
-
497
- aiohttp.ClientTimeout.total (q.v.) for download-connections. # noqa: E501
498
-
499
- :return: The total_timeout of this PythonPythonRemote. # noqa: E501
500
- :rtype: float
501
- """
502
- return self._total_timeout
503
-
504
- @total_timeout.setter
505
- def total_timeout(self, total_timeout):
506
- """Sets the total_timeout of this PythonPythonRemote.
507
-
508
- aiohttp.ClientTimeout.total (q.v.) for download-connections. # noqa: E501
509
-
510
- :param total_timeout: The total_timeout of this PythonPythonRemote. # noqa: E501
511
- :type: float
512
- """
513
- if (self.local_vars_configuration.client_side_validation and
514
- total_timeout is not None and total_timeout < 0.0): # noqa: E501
515
- raise ValueError("Invalid value for `total_timeout`, must be a value greater than or equal to `0.0`") # noqa: E501
516
-
517
- self._total_timeout = total_timeout
518
-
519
- @property
520
- def connect_timeout(self):
521
- """Gets the connect_timeout of this PythonPythonRemote. # noqa: E501
522
-
523
- aiohttp.ClientTimeout.connect (q.v.) for download-connections. # noqa: E501
524
-
525
- :return: The connect_timeout of this PythonPythonRemote. # noqa: E501
526
- :rtype: float
527
- """
528
- return self._connect_timeout
529
-
530
- @connect_timeout.setter
531
- def connect_timeout(self, connect_timeout):
532
- """Sets the connect_timeout of this PythonPythonRemote.
533
-
534
- aiohttp.ClientTimeout.connect (q.v.) for download-connections. # noqa: E501
535
-
536
- :param connect_timeout: The connect_timeout of this PythonPythonRemote. # noqa: E501
537
- :type: float
538
- """
539
- if (self.local_vars_configuration.client_side_validation and
540
- connect_timeout is not None and connect_timeout < 0.0): # noqa: E501
541
- raise ValueError("Invalid value for `connect_timeout`, must be a value greater than or equal to `0.0`") # noqa: E501
542
-
543
- self._connect_timeout = connect_timeout
544
-
545
- @property
546
- def sock_connect_timeout(self):
547
- """Gets the sock_connect_timeout of this PythonPythonRemote. # noqa: E501
548
-
549
- aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. # noqa: E501
550
-
551
- :return: The sock_connect_timeout of this PythonPythonRemote. # noqa: E501
552
- :rtype: float
553
- """
554
- return self._sock_connect_timeout
555
-
556
- @sock_connect_timeout.setter
557
- def sock_connect_timeout(self, sock_connect_timeout):
558
- """Sets the sock_connect_timeout of this PythonPythonRemote.
559
-
560
- aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. # noqa: E501
561
-
562
- :param sock_connect_timeout: The sock_connect_timeout of this PythonPythonRemote. # noqa: E501
563
- :type: float
564
- """
565
- if (self.local_vars_configuration.client_side_validation and
566
- sock_connect_timeout is not None and sock_connect_timeout < 0.0): # noqa: E501
567
- raise ValueError("Invalid value for `sock_connect_timeout`, must be a value greater than or equal to `0.0`") # noqa: E501
568
-
569
- self._sock_connect_timeout = sock_connect_timeout
570
-
571
- @property
572
- def sock_read_timeout(self):
573
- """Gets the sock_read_timeout of this PythonPythonRemote. # noqa: E501
574
-
575
- aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. # noqa: E501
576
-
577
- :return: The sock_read_timeout of this PythonPythonRemote. # noqa: E501
578
- :rtype: float
579
- """
580
- return self._sock_read_timeout
581
-
582
- @sock_read_timeout.setter
583
- def sock_read_timeout(self, sock_read_timeout):
584
- """Sets the sock_read_timeout of this PythonPythonRemote.
585
-
586
- aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. # noqa: E501
587
-
588
- :param sock_read_timeout: The sock_read_timeout of this PythonPythonRemote. # noqa: E501
589
- :type: float
590
- """
591
- if (self.local_vars_configuration.client_side_validation and
592
- sock_read_timeout is not None and sock_read_timeout < 0.0): # noqa: E501
593
- raise ValueError("Invalid value for `sock_read_timeout`, must be a value greater than or equal to `0.0`") # noqa: E501
594
-
595
- self._sock_read_timeout = sock_read_timeout
596
-
597
- @property
598
- def headers(self):
599
- """Gets the headers of this PythonPythonRemote. # noqa: E501
600
-
601
- Headers for aiohttp.Clientsession # noqa: E501
602
-
603
- :return: The headers of this PythonPythonRemote. # noqa: E501
604
- :rtype: list[object]
605
- """
606
- return self._headers
607
-
608
- @headers.setter
609
- def headers(self, headers):
610
- """Sets the headers of this PythonPythonRemote.
611
-
612
- Headers for aiohttp.Clientsession # noqa: E501
613
-
614
- :param headers: The headers of this PythonPythonRemote. # noqa: E501
615
- :type: list[object]
616
- """
617
-
618
- self._headers = headers
619
-
620
- @property
621
- def rate_limit(self):
622
- """Gets the rate_limit of this PythonPythonRemote. # noqa: E501
623
-
624
- Limits total download rate in requests per second # noqa: E501
625
-
626
- :return: The rate_limit of this PythonPythonRemote. # noqa: E501
627
- :rtype: int
628
- """
629
- return self._rate_limit
630
-
631
- @rate_limit.setter
632
- def rate_limit(self, rate_limit):
633
- """Sets the rate_limit of this PythonPythonRemote.
634
-
635
- Limits total download rate in requests per second # noqa: E501
636
-
637
- :param rate_limit: The rate_limit of this PythonPythonRemote. # noqa: E501
638
- :type: int
639
- """
640
-
641
- self._rate_limit = rate_limit
642
-
643
- @property
644
- def includes(self):
645
- """Gets the includes of this PythonPythonRemote. # noqa: E501
646
-
647
- A JSON list containing project specifiers for Python packages to include. # noqa: E501
648
-
649
- :return: The includes of this PythonPythonRemote. # noqa: E501
650
- :rtype: object
651
- """
652
- return self._includes
653
-
654
- @includes.setter
655
- def includes(self, includes):
656
- """Sets the includes of this PythonPythonRemote.
657
-
658
- A JSON list containing project specifiers for Python packages to include. # noqa: E501
659
-
660
- :param includes: The includes of this PythonPythonRemote. # noqa: E501
661
- :type: object
662
- """
663
-
664
- self._includes = includes
665
-
666
- @property
667
- def excludes(self):
668
- """Gets the excludes of this PythonPythonRemote. # noqa: E501
669
-
670
- A JSON list containing project specifiers for Python packages to exclude. # noqa: E501
671
-
672
- :return: The excludes of this PythonPythonRemote. # noqa: E501
673
- :rtype: object
674
- """
675
- return self._excludes
676
-
677
- @excludes.setter
678
- def excludes(self, excludes):
679
- """Sets the excludes of this PythonPythonRemote.
680
-
681
- A JSON list containing project specifiers for Python packages to exclude. # noqa: E501
682
-
683
- :param excludes: The excludes of this PythonPythonRemote. # noqa: E501
684
- :type: object
685
- """
686
-
687
- self._excludes = excludes
688
-
689
- @property
690
- def prereleases(self):
691
- """Gets the prereleases of this PythonPythonRemote. # noqa: E501
692
-
693
- Whether or not to include pre-release packages in the sync. # noqa: E501
694
-
695
- :return: The prereleases of this PythonPythonRemote. # noqa: E501
696
- :rtype: bool
697
- """
698
- return self._prereleases
699
-
700
- @prereleases.setter
701
- def prereleases(self, prereleases):
702
- """Sets the prereleases of this PythonPythonRemote.
703
-
704
- Whether or not to include pre-release packages in the sync. # noqa: E501
705
-
706
- :param prereleases: The prereleases of this PythonPythonRemote. # noqa: E501
707
- :type: bool
708
- """
709
-
710
- self._prereleases = prereleases
711
-
712
- @property
713
- def package_types(self):
714
- """Gets the package_types of this PythonPythonRemote. # noqa: E501
715
-
716
- The package types to sync for Python content. Leave blank to get everypackage type. # noqa: E501
717
-
718
- :return: The package_types of this PythonPythonRemote. # noqa: E501
719
- :rtype: list[PackageTypesEnum]
720
- """
721
- return self._package_types
722
-
723
- @package_types.setter
724
- def package_types(self, package_types):
725
- """Sets the package_types of this PythonPythonRemote.
726
-
727
- The package types to sync for Python content. Leave blank to get everypackage type. # noqa: E501
728
-
729
- :param package_types: The package_types of this PythonPythonRemote. # noqa: E501
730
- :type: list[PackageTypesEnum]
731
- """
732
-
733
- self._package_types = package_types
734
-
735
- @property
736
- def keep_latest_packages(self):
737
- """Gets the keep_latest_packages of this PythonPythonRemote. # noqa: E501
738
-
739
- The amount of latest versions of a package to keep on sync, includespre-releases if synced. Default 0 keeps all versions. # noqa: E501
740
-
741
- :return: The keep_latest_packages of this PythonPythonRemote. # noqa: E501
742
- :rtype: int
743
- """
744
- return self._keep_latest_packages
745
-
746
- @keep_latest_packages.setter
747
- def keep_latest_packages(self, keep_latest_packages):
748
- """Sets the keep_latest_packages of this PythonPythonRemote.
749
-
750
- The amount of latest versions of a package to keep on sync, includespre-releases if synced. Default 0 keeps all versions. # noqa: E501
751
-
752
- :param keep_latest_packages: The keep_latest_packages of this PythonPythonRemote. # noqa: E501
753
- :type: int
754
- """
755
-
756
- self._keep_latest_packages = keep_latest_packages
757
-
758
- @property
759
- def exclude_platforms(self):
760
- """Gets the exclude_platforms of this PythonPythonRemote. # noqa: E501
761
-
762
- List of platforms to exclude syncing Python packages for. Possible valuesinclude: windows, macos, freebsd, and linux. # noqa: E501
763
-
764
- :return: The exclude_platforms of this PythonPythonRemote. # noqa: E501
765
- :rtype: list[ExcludePlatformsEnum]
766
- """
767
- return self._exclude_platforms
768
-
769
- @exclude_platforms.setter
770
- def exclude_platforms(self, exclude_platforms):
771
- """Sets the exclude_platforms of this PythonPythonRemote.
772
-
773
- List of platforms to exclude syncing Python packages for. Possible valuesinclude: windows, macos, freebsd, and linux. # noqa: E501
774
-
775
- :param exclude_platforms: The exclude_platforms of this PythonPythonRemote. # noqa: E501
776
- :type: list[ExcludePlatformsEnum]
777
- """
778
-
779
- self._exclude_platforms = exclude_platforms
780
-
781
- def to_dict(self):
782
- """Returns the model properties as a dict"""
783
- result = {}
784
-
785
- for attr, _ in six.iteritems(self.openapi_types):
786
- value = getattr(self, attr)
787
- if isinstance(value, list):
788
- result[attr] = list(map(
789
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
790
- value
791
- ))
792
- elif hasattr(value, "to_dict"):
793
- result[attr] = value.to_dict()
794
- elif isinstance(value, dict):
795
- result[attr] = dict(map(
796
- lambda item: (item[0], item[1].to_dict())
797
- if hasattr(item[1], "to_dict") else item,
798
- value.items()
799
- ))
800
- else:
801
- result[attr] = value
802
-
803
- return result
804
-
805
- def to_str(self):
806
- """Returns the string representation of the model"""
807
- return pprint.pformat(self.to_dict())
808
-
809
- def __repr__(self):
810
- """For `print` and `pprint`"""
811
- return self.to_str()
812
-
813
- def __eq__(self, other):
814
- """Returns true if both objects are equal"""
815
- if not isinstance(other, PythonPythonRemote):
816
- return False
817
-
818
- return self.to_dict() == other.to_dict()
819
-
820
- def __ne__(self, other):
821
- """Returns true if both objects are not equal"""
822
- if not isinstance(other, PythonPythonRemote):
823
- return True
824
-
825
- return self.to_dict() != other.to_dict()