pulp_2to3_migration_client 0.12.0 → 0.12.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/lib/pulp_2to3_migration_client/api_client.rb +4 -2
  4. data/lib/pulp_2to3_migration_client/configuration.rb +7 -0
  5. data/lib/pulp_2to3_migration_client/version.rb +1 -1
  6. metadata +8 -75
  7. data/build/lib/pulpcore/__init__.py +0 -2
  8. data/build/lib/pulpcore/client/__init__.py +0 -2
  9. data/build/lib/pulpcore/client/pulp_2to3_migration/__init__.py +0 -43
  10. data/build/lib/pulpcore/client/pulp_2to3_migration/api/__init__.py +0 -8
  11. data/build/lib/pulpcore/client/pulp_2to3_migration/api/migration_plans_api.py +0 -761
  12. data/build/lib/pulpcore/client/pulp_2to3_migration/api/pulp2_content_api.py +0 -350
  13. data/build/lib/pulpcore/client/pulp_2to3_migration/api/pulp2_repositories_api.py +0 -313
  14. data/build/lib/pulpcore/client/pulp_2to3_migration/api_client.py +0 -667
  15. data/build/lib/pulpcore/client/pulp_2to3_migration/configuration.py +0 -427
  16. data/build/lib/pulpcore/client/pulp_2to3_migration/exceptions.py +0 -121
  17. data/build/lib/pulpcore/client/pulp_2to3_migration/models/__init__.py +0 -26
  18. data/build/lib/pulpcore/client/pulp_2to3_migration/models/async_operation_response.py +0 -124
  19. data/build/lib/pulpcore/client/pulp_2to3_migration/models/migration_plan_run.py +0 -179
  20. data/build/lib/pulpcore/client/pulp_2to3_migration/models/paginatedpulp2to3_migration_migration_plan_response_list.py +0 -197
  21. data/build/lib/pulpcore/client/pulp_2to3_migration/models/paginatedpulp2to3_migration_pulp2_content_response_list.py +0 -197
  22. data/build/lib/pulpcore/client/pulp_2to3_migration/models/paginatedpulp2to3_migration_pulp2_repository_response_list.py +0 -197
  23. data/build/lib/pulpcore/client/pulp_2to3_migration/models/pulp2to3_migration_migration_plan.py +0 -124
  24. data/build/lib/pulpcore/client/pulp_2to3_migration/models/pulp2to3_migration_migration_plan_response.py +0 -178
  25. data/build/lib/pulpcore/client/pulp_2to3_migration/models/pulp2to3_migration_pulp2_content_response.py +0 -338
  26. data/build/lib/pulpcore/client/pulp_2to3_migration/models/pulp2to3_migration_pulp2_repository_response.py +0 -416
  27. data/build/lib/pulpcore/client/pulp_2to3_migration/rest.py +0 -292
  28. data/dist/pulp_2to3_migration-client-0.12.0.tar.gz +0 -0
  29. data/dist/pulp_2to3_migration_client-0.12.0-py3-none-any.whl +0 -0
  30. data/pulp_2to3_migration_client.egg-info/PKG-INFO +0 -15
  31. data/pulp_2to3_migration_client.egg-info/SOURCES.txt +0 -41
  32. data/pulp_2to3_migration_client.egg-info/dependency_links.txt +0 -1
  33. data/pulp_2to3_migration_client.egg-info/requires.txt +0 -4
  34. data/pulp_2to3_migration_client.egg-info/top_level.txt +0 -1
  35. data/pulpcore/__init__.py +0 -2
  36. data/pulpcore/client/__init__.py +0 -2
  37. data/pulpcore/client/pulp_2to3_migration/__init__.py +0 -43
  38. data/pulpcore/client/pulp_2to3_migration/api/__init__.py +0 -8
  39. data/pulpcore/client/pulp_2to3_migration/api/migration_plans_api.py +0 -761
  40. data/pulpcore/client/pulp_2to3_migration/api/pulp2_content_api.py +0 -350
  41. data/pulpcore/client/pulp_2to3_migration/api/pulp2_repositories_api.py +0 -313
  42. data/pulpcore/client/pulp_2to3_migration/api_client.py +0 -667
  43. data/pulpcore/client/pulp_2to3_migration/configuration.py +0 -427
  44. data/pulpcore/client/pulp_2to3_migration/exceptions.py +0 -121
  45. data/pulpcore/client/pulp_2to3_migration/models/__init__.py +0 -26
  46. data/pulpcore/client/pulp_2to3_migration/models/async_operation_response.py +0 -124
  47. data/pulpcore/client/pulp_2to3_migration/models/migration_plan_run.py +0 -179
  48. data/pulpcore/client/pulp_2to3_migration/models/paginatedpulp2to3_migration_migration_plan_response_list.py +0 -197
  49. data/pulpcore/client/pulp_2to3_migration/models/paginatedpulp2to3_migration_pulp2_content_response_list.py +0 -197
  50. data/pulpcore/client/pulp_2to3_migration/models/paginatedpulp2to3_migration_pulp2_repository_response_list.py +0 -197
  51. data/pulpcore/client/pulp_2to3_migration/models/pulp2to3_migration_migration_plan.py +0 -124
  52. data/pulpcore/client/pulp_2to3_migration/models/pulp2to3_migration_migration_plan_response.py +0 -178
  53. data/pulpcore/client/pulp_2to3_migration/models/pulp2to3_migration_pulp2_content_response.py +0 -338
  54. data/pulpcore/client/pulp_2to3_migration/models/pulp2to3_migration_pulp2_repository_response.py +0 -416
  55. data/pulpcore/client/pulp_2to3_migration/rest.py +0 -292
  56. data/requirements.txt +0 -6
  57. data/setup.cfg +0 -2
  58. data/setup.py +0 -42
  59. data/test-requirements.txt +0 -3
  60. data/test/__init__.py +0 -0
  61. data/test/test_async_operation_response.py +0 -54
  62. data/test/test_migration_plan_run.py +0 -55
  63. data/test/test_migration_plans_api.py +0 -76
  64. data/test/test_paginatedpulp2to3_migration_migration_plan_response_list.py +0 -61
  65. data/test/test_paginatedpulp2to3_migration_pulp2_content_response_list.py +0 -67
  66. data/test/test_paginatedpulp2to3_migration_pulp2_repository_response_list.py +0 -72
  67. data/test/test_pulp2_content_api.py +0 -48
  68. data/test/test_pulp2_repositories_api.py +0 -48
  69. data/test/test_pulp2to3_migration_migration_plan.py +0 -54
  70. data/test/test_pulp2to3_migration_migration_plan_response.py +0 -56
  71. data/test/test_pulp2to3_migration_pulp2_content_response.py +0 -65
  72. data/test/test_pulp2to3_migration_pulp2_repository_response.py +0 -69
  73. data/tox.ini +0 -9
@@ -1,178 +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_2to3_migration.configuration import Configuration
20
-
21
-
22
- class Pulp2to3MigrationMigrationPlanResponse(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
- 'plan': 'object'
40
- }
41
-
42
- attribute_map = {
43
- 'pulp_href': 'pulp_href',
44
- 'pulp_created': 'pulp_created',
45
- 'plan': 'plan'
46
- }
47
-
48
- def __init__(self, pulp_href=None, pulp_created=None, plan=None, local_vars_configuration=None): # noqa: E501
49
- """Pulp2to3MigrationMigrationPlanResponse - a model defined in OpenAPI""" # noqa: E501
50
- if local_vars_configuration is None:
51
- local_vars_configuration = Configuration()
52
- self.local_vars_configuration = local_vars_configuration
53
-
54
- self._pulp_href = None
55
- self._pulp_created = None
56
- self._plan = None
57
- self.discriminator = None
58
-
59
- if pulp_href is not None:
60
- self.pulp_href = pulp_href
61
- if pulp_created is not None:
62
- self.pulp_created = pulp_created
63
- self.plan = plan
64
-
65
- @property
66
- def pulp_href(self):
67
- """Gets the pulp_href of this Pulp2to3MigrationMigrationPlanResponse. # noqa: E501
68
-
69
-
70
- :return: The pulp_href of this Pulp2to3MigrationMigrationPlanResponse. # noqa: E501
71
- :rtype: str
72
- """
73
- return self._pulp_href
74
-
75
- @pulp_href.setter
76
- def pulp_href(self, pulp_href):
77
- """Sets the pulp_href of this Pulp2to3MigrationMigrationPlanResponse.
78
-
79
-
80
- :param pulp_href: The pulp_href of this Pulp2to3MigrationMigrationPlanResponse. # noqa: E501
81
- :type: str
82
- """
83
-
84
- self._pulp_href = pulp_href
85
-
86
- @property
87
- def pulp_created(self):
88
- """Gets the pulp_created of this Pulp2to3MigrationMigrationPlanResponse. # noqa: E501
89
-
90
- Timestamp of creation. # noqa: E501
91
-
92
- :return: The pulp_created of this Pulp2to3MigrationMigrationPlanResponse. # noqa: E501
93
- :rtype: datetime
94
- """
95
- return self._pulp_created
96
-
97
- @pulp_created.setter
98
- def pulp_created(self, pulp_created):
99
- """Sets the pulp_created of this Pulp2to3MigrationMigrationPlanResponse.
100
-
101
- Timestamp of creation. # noqa: E501
102
-
103
- :param pulp_created: The pulp_created of this Pulp2to3MigrationMigrationPlanResponse. # noqa: E501
104
- :type: datetime
105
- """
106
-
107
- self._pulp_created = pulp_created
108
-
109
- @property
110
- def plan(self):
111
- """Gets the plan of this Pulp2to3MigrationMigrationPlanResponse. # noqa: E501
112
-
113
- Migration Plan in JSON format # noqa: E501
114
-
115
- :return: The plan of this Pulp2to3MigrationMigrationPlanResponse. # noqa: E501
116
- :rtype: object
117
- """
118
- return self._plan
119
-
120
- @plan.setter
121
- def plan(self, plan):
122
- """Sets the plan of this Pulp2to3MigrationMigrationPlanResponse.
123
-
124
- Migration Plan in JSON format # noqa: E501
125
-
126
- :param plan: The plan of this Pulp2to3MigrationMigrationPlanResponse. # noqa: E501
127
- :type: object
128
- """
129
- if self.local_vars_configuration.client_side_validation and plan is None: # noqa: E501
130
- raise ValueError("Invalid value for `plan`, must not be `None`") # noqa: E501
131
-
132
- self._plan = plan
133
-
134
- def to_dict(self):
135
- """Returns the model properties as a dict"""
136
- result = {}
137
-
138
- for attr, _ in six.iteritems(self.openapi_types):
139
- value = getattr(self, attr)
140
- if isinstance(value, list):
141
- result[attr] = list(map(
142
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
143
- value
144
- ))
145
- elif hasattr(value, "to_dict"):
146
- result[attr] = value.to_dict()
147
- elif isinstance(value, dict):
148
- result[attr] = dict(map(
149
- lambda item: (item[0], item[1].to_dict())
150
- if hasattr(item[1], "to_dict") else item,
151
- value.items()
152
- ))
153
- else:
154
- result[attr] = value
155
-
156
- return result
157
-
158
- def to_str(self):
159
- """Returns the string representation of the model"""
160
- return pprint.pformat(self.to_dict())
161
-
162
- def __repr__(self):
163
- """For `print` and `pprint`"""
164
- return self.to_str()
165
-
166
- def __eq__(self, other):
167
- """Returns true if both objects are equal"""
168
- if not isinstance(other, Pulp2to3MigrationMigrationPlanResponse):
169
- return False
170
-
171
- return self.to_dict() == other.to_dict()
172
-
173
- def __ne__(self, other):
174
- """Returns true if both objects are not equal"""
175
- if not isinstance(other, Pulp2to3MigrationMigrationPlanResponse):
176
- return True
177
-
178
- return self.to_dict() != other.to_dict()
@@ -1,338 +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_2to3_migration.configuration import Configuration
20
-
21
-
22
- class Pulp2to3MigrationPulp2ContentResponse(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
- 'pulp2_id': 'str',
40
- 'pulp2_content_type_id': 'str',
41
- 'pulp2_last_updated': 'int',
42
- 'pulp2_storage_path': 'str',
43
- 'downloaded': 'bool',
44
- 'pulp3_content': 'str',
45
- 'pulp3_repository_version': 'str'
46
- }
47
-
48
- attribute_map = {
49
- 'pulp_href': 'pulp_href',
50
- 'pulp_created': 'pulp_created',
51
- 'pulp2_id': 'pulp2_id',
52
- 'pulp2_content_type_id': 'pulp2_content_type_id',
53
- 'pulp2_last_updated': 'pulp2_last_updated',
54
- 'pulp2_storage_path': 'pulp2_storage_path',
55
- 'downloaded': 'downloaded',
56
- 'pulp3_content': 'pulp3_content',
57
- 'pulp3_repository_version': 'pulp3_repository_version'
58
- }
59
-
60
- def __init__(self, pulp_href=None, pulp_created=None, pulp2_id=None, pulp2_content_type_id=None, pulp2_last_updated=None, pulp2_storage_path=None, downloaded=False, pulp3_content=None, pulp3_repository_version=None, local_vars_configuration=None): # noqa: E501
61
- """Pulp2to3MigrationPulp2ContentResponse - a model defined in OpenAPI""" # noqa: E501
62
- if local_vars_configuration is None:
63
- local_vars_configuration = Configuration()
64
- self.local_vars_configuration = local_vars_configuration
65
-
66
- self._pulp_href = None
67
- self._pulp_created = None
68
- self._pulp2_id = None
69
- self._pulp2_content_type_id = None
70
- self._pulp2_last_updated = None
71
- self._pulp2_storage_path = None
72
- self._downloaded = None
73
- self._pulp3_content = None
74
- self._pulp3_repository_version = None
75
- self.discriminator = None
76
-
77
- if pulp_href is not None:
78
- self.pulp_href = pulp_href
79
- if pulp_created is not None:
80
- self.pulp_created = pulp_created
81
- self.pulp2_id = pulp2_id
82
- self.pulp2_content_type_id = pulp2_content_type_id
83
- self.pulp2_last_updated = pulp2_last_updated
84
- self.pulp2_storage_path = pulp2_storage_path
85
- if downloaded is not None:
86
- self.downloaded = downloaded
87
- self.pulp3_content = pulp3_content
88
- if pulp3_repository_version is not None:
89
- self.pulp3_repository_version = pulp3_repository_version
90
-
91
- @property
92
- def pulp_href(self):
93
- """Gets the pulp_href of this Pulp2to3MigrationPulp2ContentResponse. # noqa: E501
94
-
95
-
96
- :return: The pulp_href of this Pulp2to3MigrationPulp2ContentResponse. # noqa: E501
97
- :rtype: str
98
- """
99
- return self._pulp_href
100
-
101
- @pulp_href.setter
102
- def pulp_href(self, pulp_href):
103
- """Sets the pulp_href of this Pulp2to3MigrationPulp2ContentResponse.
104
-
105
-
106
- :param pulp_href: The pulp_href of this Pulp2to3MigrationPulp2ContentResponse. # noqa: E501
107
- :type: str
108
- """
109
-
110
- self._pulp_href = pulp_href
111
-
112
- @property
113
- def pulp_created(self):
114
- """Gets the pulp_created of this Pulp2to3MigrationPulp2ContentResponse. # noqa: E501
115
-
116
- Timestamp of creation. # noqa: E501
117
-
118
- :return: The pulp_created of this Pulp2to3MigrationPulp2ContentResponse. # noqa: E501
119
- :rtype: datetime
120
- """
121
- return self._pulp_created
122
-
123
- @pulp_created.setter
124
- def pulp_created(self, pulp_created):
125
- """Sets the pulp_created of this Pulp2to3MigrationPulp2ContentResponse.
126
-
127
- Timestamp of creation. # noqa: E501
128
-
129
- :param pulp_created: The pulp_created of this Pulp2to3MigrationPulp2ContentResponse. # noqa: E501
130
- :type: datetime
131
- """
132
-
133
- self._pulp_created = pulp_created
134
-
135
- @property
136
- def pulp2_id(self):
137
- """Gets the pulp2_id of this Pulp2to3MigrationPulp2ContentResponse. # noqa: E501
138
-
139
-
140
- :return: The pulp2_id of this Pulp2to3MigrationPulp2ContentResponse. # noqa: E501
141
- :rtype: str
142
- """
143
- return self._pulp2_id
144
-
145
- @pulp2_id.setter
146
- def pulp2_id(self, pulp2_id):
147
- """Sets the pulp2_id of this Pulp2to3MigrationPulp2ContentResponse.
148
-
149
-
150
- :param pulp2_id: The pulp2_id of this Pulp2to3MigrationPulp2ContentResponse. # noqa: E501
151
- :type: str
152
- """
153
- if self.local_vars_configuration.client_side_validation and pulp2_id is None: # noqa: E501
154
- raise ValueError("Invalid value for `pulp2_id`, must not be `None`") # noqa: E501
155
- if (self.local_vars_configuration.client_side_validation and
156
- pulp2_id is not None and len(pulp2_id) > 255):
157
- raise ValueError("Invalid value for `pulp2_id`, length must be less than or equal to `255`") # noqa: E501
158
-
159
- self._pulp2_id = pulp2_id
160
-
161
- @property
162
- def pulp2_content_type_id(self):
163
- """Gets the pulp2_content_type_id of this Pulp2to3MigrationPulp2ContentResponse. # noqa: E501
164
-
165
-
166
- :return: The pulp2_content_type_id of this Pulp2to3MigrationPulp2ContentResponse. # noqa: E501
167
- :rtype: str
168
- """
169
- return self._pulp2_content_type_id
170
-
171
- @pulp2_content_type_id.setter
172
- def pulp2_content_type_id(self, pulp2_content_type_id):
173
- """Sets the pulp2_content_type_id of this Pulp2to3MigrationPulp2ContentResponse.
174
-
175
-
176
- :param pulp2_content_type_id: The pulp2_content_type_id of this Pulp2to3MigrationPulp2ContentResponse. # noqa: E501
177
- :type: str
178
- """
179
- if self.local_vars_configuration.client_side_validation and pulp2_content_type_id is None: # noqa: E501
180
- raise ValueError("Invalid value for `pulp2_content_type_id`, must not be `None`") # noqa: E501
181
- if (self.local_vars_configuration.client_side_validation and
182
- pulp2_content_type_id is not None and len(pulp2_content_type_id) > 255):
183
- raise ValueError("Invalid value for `pulp2_content_type_id`, length must be less than or equal to `255`") # noqa: E501
184
-
185
- self._pulp2_content_type_id = pulp2_content_type_id
186
-
187
- @property
188
- def pulp2_last_updated(self):
189
- """Gets the pulp2_last_updated of this Pulp2to3MigrationPulp2ContentResponse. # noqa: E501
190
-
191
-
192
- :return: The pulp2_last_updated of this Pulp2to3MigrationPulp2ContentResponse. # noqa: E501
193
- :rtype: int
194
- """
195
- return self._pulp2_last_updated
196
-
197
- @pulp2_last_updated.setter
198
- def pulp2_last_updated(self, pulp2_last_updated):
199
- """Sets the pulp2_last_updated of this Pulp2to3MigrationPulp2ContentResponse.
200
-
201
-
202
- :param pulp2_last_updated: The pulp2_last_updated of this Pulp2to3MigrationPulp2ContentResponse. # noqa: E501
203
- :type: int
204
- """
205
- if self.local_vars_configuration.client_side_validation and pulp2_last_updated is None: # noqa: E501
206
- raise ValueError("Invalid value for `pulp2_last_updated`, must not be `None`") # noqa: E501
207
-
208
- self._pulp2_last_updated = pulp2_last_updated
209
-
210
- @property
211
- def pulp2_storage_path(self):
212
- """Gets the pulp2_storage_path of this Pulp2to3MigrationPulp2ContentResponse. # noqa: E501
213
-
214
-
215
- :return: The pulp2_storage_path of this Pulp2to3MigrationPulp2ContentResponse. # noqa: E501
216
- :rtype: str
217
- """
218
- return self._pulp2_storage_path
219
-
220
- @pulp2_storage_path.setter
221
- def pulp2_storage_path(self, pulp2_storage_path):
222
- """Sets the pulp2_storage_path of this Pulp2to3MigrationPulp2ContentResponse.
223
-
224
-
225
- :param pulp2_storage_path: The pulp2_storage_path of this Pulp2to3MigrationPulp2ContentResponse. # noqa: E501
226
- :type: str
227
- """
228
-
229
- self._pulp2_storage_path = pulp2_storage_path
230
-
231
- @property
232
- def downloaded(self):
233
- """Gets the downloaded of this Pulp2to3MigrationPulp2ContentResponse. # noqa: E501
234
-
235
-
236
- :return: The downloaded of this Pulp2to3MigrationPulp2ContentResponse. # noqa: E501
237
- :rtype: bool
238
- """
239
- return self._downloaded
240
-
241
- @downloaded.setter
242
- def downloaded(self, downloaded):
243
- """Sets the downloaded of this Pulp2to3MigrationPulp2ContentResponse.
244
-
245
-
246
- :param downloaded: The downloaded of this Pulp2to3MigrationPulp2ContentResponse. # noqa: E501
247
- :type: bool
248
- """
249
-
250
- self._downloaded = downloaded
251
-
252
- @property
253
- def pulp3_content(self):
254
- """Gets the pulp3_content of this Pulp2to3MigrationPulp2ContentResponse. # noqa: E501
255
-
256
-
257
- :return: The pulp3_content of this Pulp2to3MigrationPulp2ContentResponse. # noqa: E501
258
- :rtype: str
259
- """
260
- return self._pulp3_content
261
-
262
- @pulp3_content.setter
263
- def pulp3_content(self, pulp3_content):
264
- """Sets the pulp3_content of this Pulp2to3MigrationPulp2ContentResponse.
265
-
266
-
267
- :param pulp3_content: The pulp3_content of this Pulp2to3MigrationPulp2ContentResponse. # noqa: E501
268
- :type: str
269
- """
270
-
271
- self._pulp3_content = pulp3_content
272
-
273
- @property
274
- def pulp3_repository_version(self):
275
- """Gets the pulp3_repository_version of this Pulp2to3MigrationPulp2ContentResponse. # noqa: E501
276
-
277
-
278
- :return: The pulp3_repository_version of this Pulp2to3MigrationPulp2ContentResponse. # noqa: E501
279
- :rtype: str
280
- """
281
- return self._pulp3_repository_version
282
-
283
- @pulp3_repository_version.setter
284
- def pulp3_repository_version(self, pulp3_repository_version):
285
- """Sets the pulp3_repository_version of this Pulp2to3MigrationPulp2ContentResponse.
286
-
287
-
288
- :param pulp3_repository_version: The pulp3_repository_version of this Pulp2to3MigrationPulp2ContentResponse. # noqa: E501
289
- :type: str
290
- """
291
-
292
- self._pulp3_repository_version = pulp3_repository_version
293
-
294
- def to_dict(self):
295
- """Returns the model properties as a dict"""
296
- result = {}
297
-
298
- for attr, _ in six.iteritems(self.openapi_types):
299
- value = getattr(self, attr)
300
- if isinstance(value, list):
301
- result[attr] = list(map(
302
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
303
- value
304
- ))
305
- elif hasattr(value, "to_dict"):
306
- result[attr] = value.to_dict()
307
- elif isinstance(value, dict):
308
- result[attr] = dict(map(
309
- lambda item: (item[0], item[1].to_dict())
310
- if hasattr(item[1], "to_dict") else item,
311
- value.items()
312
- ))
313
- else:
314
- result[attr] = value
315
-
316
- return result
317
-
318
- def to_str(self):
319
- """Returns the string representation of the model"""
320
- return pprint.pformat(self.to_dict())
321
-
322
- def __repr__(self):
323
- """For `print` and `pprint`"""
324
- return self.to_str()
325
-
326
- def __eq__(self, other):
327
- """Returns true if both objects are equal"""
328
- if not isinstance(other, Pulp2to3MigrationPulp2ContentResponse):
329
- return False
330
-
331
- return self.to_dict() == other.to_dict()
332
-
333
- def __ne__(self, other):
334
- """Returns true if both objects are not equal"""
335
- if not isinstance(other, Pulp2to3MigrationPulp2ContentResponse):
336
- return True
337
-
338
- return self.to_dict() != other.to_dict()