pulp_python_client 3.4.0 → 3.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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,772 +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 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()