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