pulp_2to3_migration_client 0.12.0.dev1623642407 → 0.12.0.dev1624592835

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 (104) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/README.md +4 -4
  4. data/build/lib/pulpcore/__init__.py +2 -0
  5. data/build/lib/pulpcore/client/__init__.py +2 -0
  6. data/build/lib/pulpcore/client/pulp_2to3_migration/__init__.py +43 -0
  7. data/build/lib/pulpcore/client/pulp_2to3_migration/api/__init__.py +8 -0
  8. data/build/lib/pulpcore/client/pulp_2to3_migration/api/migration_plans_api.py +761 -0
  9. data/build/lib/pulpcore/client/pulp_2to3_migration/api/pulp2_content_api.py +350 -0
  10. data/build/lib/pulpcore/client/pulp_2to3_migration/api/pulp2_repositories_api.py +313 -0
  11. data/build/lib/pulpcore/client/pulp_2to3_migration/api_client.py +667 -0
  12. data/build/lib/pulpcore/client/pulp_2to3_migration/configuration.py +427 -0
  13. data/build/lib/pulpcore/client/pulp_2to3_migration/exceptions.py +121 -0
  14. data/build/lib/pulpcore/client/pulp_2to3_migration/models/__init__.py +26 -0
  15. data/build/lib/pulpcore/client/pulp_2to3_migration/models/async_operation_response.py +124 -0
  16. data/build/lib/pulpcore/client/pulp_2to3_migration/models/migration_plan_run.py +179 -0
  17. data/build/lib/pulpcore/client/pulp_2to3_migration/models/paginatedpulp2to3_migration_migration_plan_response_list.py +197 -0
  18. data/build/lib/pulpcore/client/pulp_2to3_migration/models/paginatedpulp2to3_migration_pulp2_content_response_list.py +197 -0
  19. data/build/lib/pulpcore/client/pulp_2to3_migration/models/paginatedpulp2to3_migration_pulp2_repository_response_list.py +197 -0
  20. data/build/lib/pulpcore/client/pulp_2to3_migration/models/pulp2to3_migration_migration_plan.py +124 -0
  21. data/build/lib/pulpcore/client/pulp_2to3_migration/models/pulp2to3_migration_migration_plan_response.py +178 -0
  22. data/build/lib/pulpcore/client/pulp_2to3_migration/models/pulp2to3_migration_pulp2_content_response.py +338 -0
  23. data/build/lib/pulpcore/client/pulp_2to3_migration/models/pulp2to3_migration_pulp2_repository_response.py +416 -0
  24. data/build/lib/pulpcore/client/pulp_2to3_migration/rest.py +292 -0
  25. data/dist/pulp_2to3_migration-client-0.12.0.dev1624592827.tar.gz +0 -0
  26. data/dist/pulp_2to3_migration_client-0.12.0.dev1624592827-py3-none-any.whl +0 -0
  27. data/lib/pulp_2to3_migration_client.rb +1 -1
  28. data/lib/pulp_2to3_migration_client/api/migration_plans_api.rb +1 -1
  29. data/lib/pulp_2to3_migration_client/api/pulp2_content_api.rb +1 -1
  30. data/lib/pulp_2to3_migration_client/api/pulp2_repositories_api.rb +1 -1
  31. data/lib/pulp_2to3_migration_client/api_client.rb +12 -8
  32. data/lib/pulp_2to3_migration_client/api_error.rb +1 -1
  33. data/lib/pulp_2to3_migration_client/configuration.rb +8 -1
  34. data/lib/pulp_2to3_migration_client/models/async_operation_response.rb +1 -1
  35. data/lib/pulp_2to3_migration_client/models/migration_plan_run.rb +1 -1
  36. data/lib/pulp_2to3_migration_client/models/paginatedpulp2to3_migration_migration_plan_response_list.rb +1 -1
  37. data/lib/pulp_2to3_migration_client/models/paginatedpulp2to3_migration_pulp2_content_response_list.rb +1 -1
  38. data/lib/pulp_2to3_migration_client/models/paginatedpulp2to3_migration_pulp2_repository_response_list.rb +1 -1
  39. data/lib/pulp_2to3_migration_client/models/pulp2to3_migration_migration_plan.rb +1 -1
  40. data/lib/pulp_2to3_migration_client/models/pulp2to3_migration_migration_plan_response.rb +1 -1
  41. data/lib/pulp_2to3_migration_client/models/pulp2to3_migration_pulp2_content_response.rb +1 -1
  42. data/lib/pulp_2to3_migration_client/models/pulp2to3_migration_pulp2_repository_response.rb +1 -1
  43. data/lib/pulp_2to3_migration_client/version.rb +2 -2
  44. data/pulp_2to3_migration_client.egg-info/PKG-INFO +15 -0
  45. data/pulp_2to3_migration_client.egg-info/SOURCES.txt +41 -0
  46. data/pulp_2to3_migration_client.egg-info/dependency_links.txt +1 -0
  47. data/pulp_2to3_migration_client.egg-info/requires.txt +4 -0
  48. data/pulp_2to3_migration_client.egg-info/top_level.txt +1 -0
  49. data/pulp_2to3_migration_client.gemspec +1 -1
  50. data/pulpcore/__init__.py +2 -0
  51. data/pulpcore/client/__init__.py +2 -0
  52. data/pulpcore/client/pulp_2to3_migration/__init__.py +43 -0
  53. data/pulpcore/client/pulp_2to3_migration/api/__init__.py +8 -0
  54. data/pulpcore/client/pulp_2to3_migration/api/migration_plans_api.py +761 -0
  55. data/pulpcore/client/pulp_2to3_migration/api/pulp2_content_api.py +350 -0
  56. data/pulpcore/client/pulp_2to3_migration/api/pulp2_repositories_api.py +313 -0
  57. data/pulpcore/client/pulp_2to3_migration/api_client.py +667 -0
  58. data/pulpcore/client/pulp_2to3_migration/configuration.py +427 -0
  59. data/pulpcore/client/pulp_2to3_migration/exceptions.py +121 -0
  60. data/pulpcore/client/pulp_2to3_migration/models/__init__.py +26 -0
  61. data/pulpcore/client/pulp_2to3_migration/models/async_operation_response.py +124 -0
  62. data/pulpcore/client/pulp_2to3_migration/models/migration_plan_run.py +179 -0
  63. data/pulpcore/client/pulp_2to3_migration/models/paginatedpulp2to3_migration_migration_plan_response_list.py +197 -0
  64. data/pulpcore/client/pulp_2to3_migration/models/paginatedpulp2to3_migration_pulp2_content_response_list.py +197 -0
  65. data/pulpcore/client/pulp_2to3_migration/models/paginatedpulp2to3_migration_pulp2_repository_response_list.py +197 -0
  66. data/pulpcore/client/pulp_2to3_migration/models/pulp2to3_migration_migration_plan.py +124 -0
  67. data/pulpcore/client/pulp_2to3_migration/models/pulp2to3_migration_migration_plan_response.py +178 -0
  68. data/pulpcore/client/pulp_2to3_migration/models/pulp2to3_migration_pulp2_content_response.py +338 -0
  69. data/pulpcore/client/pulp_2to3_migration/models/pulp2to3_migration_pulp2_repository_response.py +416 -0
  70. data/pulpcore/client/pulp_2to3_migration/rest.py +292 -0
  71. data/requirements.txt +6 -0
  72. data/setup.cfg +2 -0
  73. data/setup.py +42 -0
  74. data/spec/api/migration_plans_api_spec.rb +1 -1
  75. data/spec/api/pulp2_content_api_spec.rb +1 -1
  76. data/spec/api/pulp2_repositories_api_spec.rb +1 -1
  77. data/spec/api_client_spec.rb +2 -2
  78. data/spec/configuration_spec.rb +1 -1
  79. data/spec/models/async_operation_response_spec.rb +1 -1
  80. data/spec/models/migration_plan_run_spec.rb +1 -1
  81. data/spec/models/paginatedpulp2to3_migration_migration_plan_response_list_spec.rb +1 -1
  82. data/spec/models/paginatedpulp2to3_migration_pulp2_content_response_list_spec.rb +1 -1
  83. data/spec/models/paginatedpulp2to3_migration_pulp2_repository_response_list_spec.rb +1 -1
  84. data/spec/models/pulp2to3_migration_migration_plan_response_spec.rb +1 -1
  85. data/spec/models/pulp2to3_migration_migration_plan_spec.rb +1 -1
  86. data/spec/models/pulp2to3_migration_pulp2_content_response_spec.rb +1 -1
  87. data/spec/models/pulp2to3_migration_pulp2_repository_response_spec.rb +1 -1
  88. data/spec/spec_helper.rb +1 -1
  89. data/test-requirements.txt +3 -0
  90. data/test/__init__.py +0 -0
  91. data/test/test_async_operation_response.py +54 -0
  92. data/test/test_migration_plan_run.py +55 -0
  93. data/test/test_migration_plans_api.py +76 -0
  94. data/test/test_paginatedpulp2to3_migration_migration_plan_response_list.py +61 -0
  95. data/test/test_paginatedpulp2to3_migration_pulp2_content_response_list.py +67 -0
  96. data/test/test_paginatedpulp2to3_migration_pulp2_repository_response_list.py +72 -0
  97. data/test/test_pulp2_content_api.py +48 -0
  98. data/test/test_pulp2_repositories_api.py +48 -0
  99. data/test/test_pulp2to3_migration_migration_plan.py +54 -0
  100. data/test/test_pulp2to3_migration_migration_plan_response.py +56 -0
  101. data/test/test_pulp2to3_migration_pulp2_content_response.py +65 -0
  102. data/test/test_pulp2to3_migration_pulp2_repository_response.py +69 -0
  103. data/tox.ini +9 -0
  104. metadata +74 -7
@@ -0,0 +1,178 @@
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()
@@ -0,0 +1,338 @@
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()