pulp_python_client 3.3.0 → 3.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (230) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +17 -4
  3. data/build/lib/pulpcore/__init__.py +2 -0
  4. data/build/lib/pulpcore/client/__init__.py +2 -0
  5. data/build/lib/pulpcore/client/pulp_python/__init__.py +75 -0
  6. data/build/lib/pulpcore/client/pulp_python/api/__init__.py +15 -0
  7. data/build/lib/pulpcore/client/pulp_python/api/content_packages_api.py +626 -0
  8. data/build/lib/pulpcore/client/pulp_python/api/distributions_pypi_api.py +830 -0
  9. data/build/lib/pulpcore/client/pulp_python/api/publications_pypi_api.py +566 -0
  10. data/build/lib/pulpcore/client/pulp_python/api/pypi_api.py +162 -0
  11. data/build/lib/pulpcore/client/pulp_python/api/pypi_legacy_api.py +185 -0
  12. data/build/lib/pulpcore/client/pulp_python/api/pypi_metadata_api.py +171 -0
  13. data/build/lib/pulpcore/client/pulp_python/api/pypi_simple_api.py +434 -0
  14. data/build/lib/pulpcore/client/pulp_python/api/remotes_python_api.py +972 -0
  15. data/build/lib/pulpcore/client/pulp_python/api/repositories_python_api.py +1063 -0
  16. data/build/lib/pulpcore/client/pulp_python/api/repositories_python_versions_api.py +614 -0
  17. data/build/lib/pulpcore/client/pulp_python/api_client.py +667 -0
  18. data/build/lib/pulpcore/client/pulp_python/configuration.py +427 -0
  19. data/build/lib/pulpcore/client/pulp_python/exceptions.py +121 -0
  20. data/build/lib/pulpcore/client/pulp_python/models/__init__.py +51 -0
  21. data/build/lib/pulpcore/client/pulp_python/models/async_operation_response.py +124 -0
  22. data/build/lib/pulpcore/client/pulp_python/models/content_summary.py +176 -0
  23. data/build/lib/pulpcore/client/pulp_python/models/content_summary_response.py +176 -0
  24. data/build/lib/pulpcore/client/pulp_python/models/exclude_platforms_enum.py +103 -0
  25. data/build/lib/pulpcore/client/pulp_python/models/package_metadata_response.py +209 -0
  26. data/build/lib/pulpcore/client/pulp_python/models/package_types_enum.py +107 -0
  27. data/build/lib/pulpcore/client/pulp_python/models/package_upload.py +187 -0
  28. data/build/lib/pulpcore/client/pulp_python/models/package_upload_task_response.py +176 -0
  29. data/build/lib/pulpcore/client/pulp_python/models/paginated_repository_version_response_list.py +197 -0
  30. data/build/lib/pulpcore/client/pulp_python/models/paginatedpython_python_distribution_response_list.py +197 -0
  31. data/build/lib/pulpcore/client/pulp_python/models/paginatedpython_python_package_content_response_list.py +197 -0
  32. data/build/lib/pulpcore/client/pulp_python/models/paginatedpython_python_publication_response_list.py +197 -0
  33. data/build/lib/pulpcore/client/pulp_python/models/paginatedpython_python_remote_response_list.py +197 -0
  34. data/build/lib/pulpcore/client/pulp_python/models/paginatedpython_python_repository_response_list.py +197 -0
  35. data/build/lib/pulpcore/client/pulp_python/models/patchedpython_python_distribution.py +286 -0
  36. data/build/lib/pulpcore/client/pulp_python/models/patchedpython_python_remote.py +823 -0
  37. data/build/lib/pulpcore/client/pulp_python/models/patchedpython_python_repository.py +259 -0
  38. data/build/lib/pulpcore/client/pulp_python/models/policy_enum.py +102 -0
  39. data/build/lib/pulpcore/client/pulp_python/models/python_bander_remote.py +181 -0
  40. data/build/lib/pulpcore/client/pulp_python/models/python_python_distribution.py +288 -0
  41. data/build/lib/pulpcore/client/pulp_python/models/python_python_distribution_response.py +368 -0
  42. data/build/lib/pulpcore/client/pulp_python/models/python_python_package_content.py +824 -0
  43. data/build/lib/pulpcore/client/pulp_python/models/python_python_package_content_response.py +933 -0
  44. data/build/lib/pulpcore/client/pulp_python/models/python_python_publication.py +149 -0
  45. data/build/lib/pulpcore/client/pulp_python/models/python_python_publication_response.py +231 -0
  46. data/build/lib/pulpcore/client/pulp_python/models/python_python_remote.py +825 -0
  47. data/build/lib/pulpcore/client/pulp_python/models/python_python_remote_response.py +772 -0
  48. data/build/lib/pulpcore/client/pulp_python/models/python_python_repository.py +260 -0
  49. data/build/lib/pulpcore/client/pulp_python/models/python_python_repository_response.py +366 -0
  50. data/build/lib/pulpcore/client/pulp_python/models/repository_add_remove_content.py +179 -0
  51. data/build/lib/pulpcore/client/pulp_python/models/repository_sync_url.py +151 -0
  52. data/build/lib/pulpcore/client/pulp_python/models/repository_version.py +123 -0
  53. data/build/lib/pulpcore/client/pulp_python/models/repository_version_response.py +257 -0
  54. data/build/lib/pulpcore/client/pulp_python/models/summary_response.py +182 -0
  55. data/build/lib/pulpcore/client/pulp_python/rest.py +292 -0
  56. data/dist/pulp_python-client-3.4.0.tar.gz +0 -0
  57. data/dist/pulp_python_client-3.4.0-py3-none-any.whl +0 -0
  58. data/docs/ContentPackagesApi.md +6 -0
  59. data/docs/DistributionsPypiApi.md +2 -2
  60. data/docs/PackageMetadataResponse.md +23 -0
  61. data/docs/PackageUpload.md +21 -0
  62. data/docs/PackageUploadTaskResponse.md +21 -0
  63. data/docs/PatchedpythonPythonDistribution.md +3 -1
  64. data/docs/PatchedpythonPythonRemote.md +1 -1
  65. data/docs/PublicationsPypiApi.md +1 -1
  66. data/docs/PypiApi.md +62 -0
  67. data/docs/PypiLegacyApi.md +70 -0
  68. data/docs/PypiMetadataApi.md +64 -0
  69. data/docs/PypiSimpleApi.md +190 -0
  70. data/docs/PythonBanderRemote.md +1 -1
  71. data/docs/PythonPythonDistribution.md +3 -1
  72. data/docs/PythonPythonDistributionResponse.md +4 -2
  73. data/docs/PythonPythonPackageContent.md +6 -0
  74. data/docs/PythonPythonPackageContentResponse.md +5 -1
  75. data/docs/PythonPythonRemote.md +1 -1
  76. data/docs/PythonPythonRemoteResponse.md +1 -1
  77. data/docs/RemotesPythonApi.md +3 -3
  78. data/docs/RepositoriesPythonApi.md +4 -4
  79. data/docs/SummaryResponse.md +21 -0
  80. data/lib/pulp_python_client/api/content_packages_api.rb +9 -0
  81. data/lib/pulp_python_client/api/distributions_pypi_api.rb +4 -4
  82. data/lib/pulp_python_client/api/publications_pypi_api.rb +2 -2
  83. data/lib/pulp_python_client/api/pypi_api.rb +90 -0
  84. data/lib/pulp_python_client/api/pypi_legacy_api.rb +111 -0
  85. data/lib/pulp_python_client/api/pypi_metadata_api.rb +96 -0
  86. data/lib/pulp_python_client/api/pypi_simple_api.rb +249 -0
  87. data/lib/pulp_python_client/api/remotes_python_api.rb +4 -4
  88. data/lib/pulp_python_client/api/repositories_python_api.rb +8 -8
  89. data/lib/pulp_python_client/models/package_metadata_response.rb +257 -0
  90. data/lib/pulp_python_client/models/package_upload.rb +268 -0
  91. data/lib/pulp_python_client/models/package_upload_task_response.rb +240 -0
  92. data/lib/pulp_python_client/models/patchedpython_python_distribution.rb +17 -5
  93. data/lib/pulp_python_client/models/patchedpython_python_remote.rb +1 -1
  94. data/lib/pulp_python_client/models/python_bander_remote.rb +1 -1
  95. data/lib/pulp_python_client/models/python_python_distribution.rb +17 -5
  96. data/lib/pulp_python_client/models/python_python_distribution_response.rb +17 -6
  97. data/lib/pulp_python_client/models/python_python_package_content.rb +33 -1
  98. data/lib/pulp_python_client/models/python_python_package_content_response.rb +23 -1
  99. data/lib/pulp_python_client/models/python_python_remote.rb +1 -1
  100. data/lib/pulp_python_client/models/python_python_remote_response.rb +1 -1
  101. data/lib/pulp_python_client/models/summary_response.rb +243 -0
  102. data/lib/pulp_python_client/version.rb +1 -1
  103. data/lib/pulp_python_client.rb +8 -0
  104. data/pulp_python_client.egg-info/PKG-INFO +15 -0
  105. data/pulp_python_client.egg-info/SOURCES.txt +105 -0
  106. data/pulp_python_client.egg-info/dependency_links.txt +1 -0
  107. data/pulp_python_client.egg-info/requires.txt +4 -0
  108. data/pulp_python_client.egg-info/top_level.txt +1 -0
  109. data/pulpcore/__init__.py +2 -0
  110. data/pulpcore/client/__init__.py +2 -0
  111. data/pulpcore/client/pulp_python/__init__.py +75 -0
  112. data/pulpcore/client/pulp_python/api/__init__.py +15 -0
  113. data/pulpcore/client/pulp_python/api/content_packages_api.py +626 -0
  114. data/pulpcore/client/pulp_python/api/distributions_pypi_api.py +830 -0
  115. data/pulpcore/client/pulp_python/api/publications_pypi_api.py +566 -0
  116. data/pulpcore/client/pulp_python/api/pypi_api.py +162 -0
  117. data/pulpcore/client/pulp_python/api/pypi_legacy_api.py +185 -0
  118. data/pulpcore/client/pulp_python/api/pypi_metadata_api.py +171 -0
  119. data/pulpcore/client/pulp_python/api/pypi_simple_api.py +434 -0
  120. data/pulpcore/client/pulp_python/api/remotes_python_api.py +972 -0
  121. data/pulpcore/client/pulp_python/api/repositories_python_api.py +1063 -0
  122. data/pulpcore/client/pulp_python/api/repositories_python_versions_api.py +614 -0
  123. data/pulpcore/client/pulp_python/api_client.py +667 -0
  124. data/pulpcore/client/pulp_python/configuration.py +427 -0
  125. data/pulpcore/client/pulp_python/exceptions.py +121 -0
  126. data/pulpcore/client/pulp_python/models/__init__.py +51 -0
  127. data/pulpcore/client/pulp_python/models/async_operation_response.py +124 -0
  128. data/pulpcore/client/pulp_python/models/content_summary.py +176 -0
  129. data/pulpcore/client/pulp_python/models/content_summary_response.py +176 -0
  130. data/pulpcore/client/pulp_python/models/exclude_platforms_enum.py +103 -0
  131. data/pulpcore/client/pulp_python/models/package_metadata_response.py +209 -0
  132. data/pulpcore/client/pulp_python/models/package_types_enum.py +107 -0
  133. data/pulpcore/client/pulp_python/models/package_upload.py +187 -0
  134. data/pulpcore/client/pulp_python/models/package_upload_task_response.py +176 -0
  135. data/pulpcore/client/pulp_python/models/paginated_repository_version_response_list.py +197 -0
  136. data/pulpcore/client/pulp_python/models/paginatedpython_python_distribution_response_list.py +197 -0
  137. data/pulpcore/client/pulp_python/models/paginatedpython_python_package_content_response_list.py +197 -0
  138. data/pulpcore/client/pulp_python/models/paginatedpython_python_publication_response_list.py +197 -0
  139. data/pulpcore/client/pulp_python/models/paginatedpython_python_remote_response_list.py +197 -0
  140. data/pulpcore/client/pulp_python/models/paginatedpython_python_repository_response_list.py +197 -0
  141. data/pulpcore/client/pulp_python/models/patchedpython_python_distribution.py +286 -0
  142. data/pulpcore/client/pulp_python/models/patchedpython_python_remote.py +823 -0
  143. data/pulpcore/client/pulp_python/models/patchedpython_python_repository.py +259 -0
  144. data/pulpcore/client/pulp_python/models/policy_enum.py +102 -0
  145. data/pulpcore/client/pulp_python/models/python_bander_remote.py +181 -0
  146. data/pulpcore/client/pulp_python/models/python_python_distribution.py +288 -0
  147. data/pulpcore/client/pulp_python/models/python_python_distribution_response.py +368 -0
  148. data/pulpcore/client/pulp_python/models/python_python_package_content.py +824 -0
  149. data/pulpcore/client/pulp_python/models/python_python_package_content_response.py +933 -0
  150. data/pulpcore/client/pulp_python/models/python_python_publication.py +149 -0
  151. data/pulpcore/client/pulp_python/models/python_python_publication_response.py +231 -0
  152. data/pulpcore/client/pulp_python/models/python_python_remote.py +825 -0
  153. data/pulpcore/client/pulp_python/models/python_python_remote_response.py +772 -0
  154. data/pulpcore/client/pulp_python/models/python_python_repository.py +260 -0
  155. data/pulpcore/client/pulp_python/models/python_python_repository_response.py +366 -0
  156. data/pulpcore/client/pulp_python/models/repository_add_remove_content.py +179 -0
  157. data/pulpcore/client/pulp_python/models/repository_sync_url.py +151 -0
  158. data/pulpcore/client/pulp_python/models/repository_version.py +123 -0
  159. data/pulpcore/client/pulp_python/models/repository_version_response.py +257 -0
  160. data/pulpcore/client/pulp_python/models/summary_response.py +182 -0
  161. data/pulpcore/client/pulp_python/rest.py +292 -0
  162. data/requirements.txt +6 -0
  163. data/setup.cfg +2 -0
  164. data/setup.py +42 -0
  165. data/spec/api/content_packages_api_spec.rb +3 -0
  166. data/spec/api/distributions_pypi_api_spec.rb +2 -2
  167. data/spec/api/publications_pypi_api_spec.rb +1 -1
  168. data/spec/api/pypi_api_spec.rb +49 -0
  169. data/spec/api/pypi_legacy_api_spec.rb +50 -0
  170. data/spec/api/pypi_metadata_api_spec.rb +50 -0
  171. data/spec/api/pypi_simple_api_spec.rb +79 -0
  172. data/spec/api/remotes_python_api_spec.rb +2 -2
  173. data/spec/api/repositories_python_api_spec.rb +4 -4
  174. data/spec/models/package_metadata_response_spec.rb +59 -0
  175. data/spec/models/package_upload_spec.rb +53 -0
  176. data/spec/models/package_upload_task_response_spec.rb +53 -0
  177. data/spec/models/patchedpython_python_distribution_spec.rb +6 -0
  178. data/spec/models/python_python_distribution_response_spec.rb +6 -0
  179. data/spec/models/python_python_distribution_spec.rb +6 -0
  180. data/spec/models/python_python_package_content_response_spec.rb +12 -0
  181. data/spec/models/python_python_package_content_spec.rb +18 -0
  182. data/spec/models/summary_response_spec.rb +53 -0
  183. data/test/__init__.py +0 -0
  184. data/test/test_async_operation_response.py +54 -0
  185. data/test/test_content_packages_api.py +55 -0
  186. data/test/test_content_summary.py +70 -0
  187. data/test/test_content_summary_response.py +70 -0
  188. data/test/test_distributions_pypi_api.py +76 -0
  189. data/test/test_exclude_platforms_enum.py +52 -0
  190. data/test/test_package_metadata_response.py +60 -0
  191. data/test/test_package_types_enum.py +52 -0
  192. data/test/test_package_upload.py +57 -0
  193. data/test/test_package_upload_task_response.py +58 -0
  194. data/test/test_paginated_repository_version_response_list.py +64 -0
  195. data/test/test_paginatedpython_python_distribution_response_list.py +68 -0
  196. data/test/test_paginatedpython_python_package_content_response_list.py +88 -0
  197. data/test/test_paginatedpython_python_publication_response_list.py +65 -0
  198. data/test/test_paginatedpython_python_remote_response_list.py +88 -0
  199. data/test/test_paginatedpython_python_repository_response_list.py +68 -0
  200. data/test/test_patchedpython_python_distribution.py +59 -0
  201. data/test/test_patchedpython_python_remote.py +84 -0
  202. data/test/test_patchedpython_python_repository.py +58 -0
  203. data/test/test_policy_enum.py +52 -0
  204. data/test/test_publications_pypi_api.py +62 -0
  205. data/test/test_pypi_api.py +41 -0
  206. data/test/test_pypi_legacy_api.py +41 -0
  207. data/test/test_pypi_metadata_api.py +41 -0
  208. data/test/test_pypi_simple_api.py +55 -0
  209. data/test/test_python_bander_remote.py +57 -0
  210. data/test/test_python_python_distribution.py +61 -0
  211. data/test/test_python_python_distribution_response.py +64 -0
  212. data/test/test_python_python_package_content.py +79 -0
  213. data/test/test_python_python_package_content_response.py +82 -0
  214. data/test/test_python_python_publication.py +54 -0
  215. data/test/test_python_python_publication_response.py +59 -0
  216. data/test/test_python_python_remote.py +86 -0
  217. data/test/test_python_python_remote_response.py +84 -0
  218. data/test/test_python_python_repository.py +59 -0
  219. data/test/test_python_python_repository_response.py +63 -0
  220. data/test/test_remotes_python_api.py +83 -0
  221. data/test/test_repositories_python_api.py +90 -0
  222. data/test/test_repositories_python_versions_api.py +61 -0
  223. data/test/test_repository_add_remove_content.py +59 -0
  224. data/test/test_repository_sync_url.py +54 -0
  225. data/test/test_repository_version.py +53 -0
  226. data/test/test_repository_version_response.py +58 -0
  227. data/test/test_summary_response.py +58 -0
  228. data/test-requirements.txt +3 -0
  229. data/tox.ini +9 -0
  230. metadata +221 -26
@@ -0,0 +1,825 @@
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()