pulp_2to3_migration_client 0.2.0b2.dev01587578581 → 0.2.0b3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -7
- data/docs/InlineResponse200.md +1 -1
- data/docs/InlineResponse2001.md +1 -1
- data/docs/InlineResponse2002.md +1 -1
- data/docs/MigrationPlansApi.md +5 -5
- data/docs/Pulp2contentApi.md +3 -3
- data/docs/Pulp2repositoriesApi.md +3 -3
- data/docs/Pulp2to3MigrationMigrationPlanRead.md +21 -0
- data/docs/{Pulp2to3MigrationPulp2Content.md → Pulp2to3MigrationPulp2ContentRead.md} +5 -3
- data/docs/{Pulp2to3MigrationPulp2Repository.md → Pulp2to3MigrationPulp2RepositoryRead.md} +2 -2
- data/lib/pulp_2to3_migration_client.rb +3 -2
- data/lib/pulp_2to3_migration_client/api/migration_plans_api.rb +6 -6
- data/lib/pulp_2to3_migration_client/api/pulp2content_api.rb +3 -3
- data/lib/pulp_2to3_migration_client/api/pulp2repositories_api.rb +3 -3
- data/lib/pulp_2to3_migration_client/configuration.rb +2 -2
- data/lib/pulp_2to3_migration_client/models/inline_response200.rb +1 -1
- data/lib/pulp_2to3_migration_client/models/inline_response2001.rb +1 -1
- data/lib/pulp_2to3_migration_client/models/inline_response2002.rb +1 -1
- data/lib/pulp_2to3_migration_client/models/pulp2to3_migration_migration_plan_read.rb +231 -0
- data/lib/pulp_2to3_migration_client/models/{pulp2to3_migration_pulp2_content.rb → pulp2to3_migration_pulp2_content_read.rb} +33 -8
- data/lib/pulp_2to3_migration_client/models/{pulp2to3_migration_pulp2_repository.rb → pulp2to3_migration_pulp2_repository_read.rb} +3 -3
- data/lib/pulp_2to3_migration_client/version.rb +1 -1
- data/pulpcore/__init__.py +2 -0
- data/pulpcore/client/__init__.py +2 -0
- data/pulpcore/client/pulp_2to3_migration/__init__.py +42 -0
- data/pulpcore/client/pulp_2to3_migration/api/__init__.py +8 -0
- data/pulpcore/client/pulp_2to3_migration/api/migration_plans_api.py +609 -0
- data/pulpcore/client/pulp_2to3_migration/api/pulp2content_api.py +317 -0
- data/pulpcore/client/pulp_2to3_migration/api/pulp2repositories_api.py +289 -0
- data/pulpcore/client/pulp_2to3_migration/api_client.py +647 -0
- data/pulpcore/client/pulp_2to3_migration/configuration.py +387 -0
- data/pulpcore/client/pulp_2to3_migration/exceptions.py +120 -0
- data/pulpcore/client/pulp_2to3_migration/models/__init__.py +25 -0
- data/pulpcore/client/pulp_2to3_migration/models/async_operation_response.py +123 -0
- data/pulpcore/client/pulp_2to3_migration/models/inline_response200.py +198 -0
- data/pulpcore/client/pulp_2to3_migration/models/inline_response2001.py +198 -0
- data/pulpcore/client/pulp_2to3_migration/models/inline_response2002.py +198 -0
- data/pulpcore/client/pulp_2to3_migration/models/migration_plan_run.py +150 -0
- data/pulpcore/client/pulp_2to3_migration/models/pulp2to3_migration_migration_plan.py +177 -0
- data/pulpcore/client/pulp_2to3_migration/models/pulp2to3_migration_migration_plan_read.py +177 -0
- data/pulpcore/client/pulp_2to3_migration/models/pulp2to3_migration_pulp2_content_read.py +353 -0
- data/pulpcore/client/pulp_2to3_migration/models/pulp2to3_migration_pulp2_repository_read.py +441 -0
- data/pulpcore/client/pulp_2to3_migration/rest.py +296 -0
- data/requirements.txt +6 -0
- data/setup.cfg +2 -0
- data/setup.py +41 -0
- data/spec/api/migration_plans_api_spec.rb +2 -2
- data/spec/api/pulp2content_api_spec.rb +1 -1
- data/spec/api/pulp2repositories_api_spec.rb +1 -1
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/pulp2to3_migration_migration_plan_read_spec.rb +53 -0
- data/spec/models/{pulp2to3_migration_pulp2_content_spec.rb → pulp2to3_migration_pulp2_content_read_spec.rb} +12 -6
- data/spec/models/{pulp2to3_migration_pulp2_repository_spec.rb → pulp2to3_migration_pulp2_repository_read_spec.rb} +6 -6
- data/test-requirements.txt +3 -0
- data/test/__init__.py +0 -0
- data/test/test_async_operation_response.py +53 -0
- data/test/test_inline_response200.py +67 -0
- data/test/test_inline_response2001.py +79 -0
- data/test/test_inline_response2002.py +89 -0
- data/test/test_migration_plan_run.py +53 -0
- data/test/test_migration_plans_api.py +68 -0
- data/test/test_pulp2content_api.py +47 -0
- data/test/test_pulp2repositories_api.py +47 -0
- data/test/test_pulp2to3_migration_migration_plan.py +55 -0
- data/test/test_pulp2to3_migration_migration_plan_read.py +55 -0
- data/test/test_pulp2to3_migration_pulp2_content_read.py +64 -0
- data/test/test_pulp2to3_migration_pulp2_repository_read.py +68 -0
- data/tox.ini +9 -0
- metadata +53 -10
@@ -0,0 +1,198 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Pulp 3 API
|
5
|
+
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
7
|
+
|
8
|
+
The version of the OpenAPI document: v3
|
9
|
+
Generated by: https://openapi-generator.tech
|
10
|
+
"""
|
11
|
+
|
12
|
+
|
13
|
+
import pprint
|
14
|
+
import re # noqa: F401
|
15
|
+
|
16
|
+
import six
|
17
|
+
|
18
|
+
from pulpcore.client.pulp_2to3_migration.configuration import Configuration
|
19
|
+
|
20
|
+
|
21
|
+
class InlineResponse2002(object):
|
22
|
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
23
|
+
Ref: https://openapi-generator.tech
|
24
|
+
|
25
|
+
Do not edit the class manually.
|
26
|
+
"""
|
27
|
+
|
28
|
+
"""
|
29
|
+
Attributes:
|
30
|
+
openapi_types (dict): The key is attribute name
|
31
|
+
and the value is attribute type.
|
32
|
+
attribute_map (dict): The key is attribute name
|
33
|
+
and the value is json key in definition.
|
34
|
+
"""
|
35
|
+
openapi_types = {
|
36
|
+
'count': 'int',
|
37
|
+
'next': 'str',
|
38
|
+
'previous': 'str',
|
39
|
+
'results': 'list[Pulp2to3MigrationPulp2RepositoryRead]'
|
40
|
+
}
|
41
|
+
|
42
|
+
attribute_map = {
|
43
|
+
'count': 'count',
|
44
|
+
'next': 'next',
|
45
|
+
'previous': 'previous',
|
46
|
+
'results': 'results'
|
47
|
+
}
|
48
|
+
|
49
|
+
def __init__(self, count=None, next=None, previous=None, results=None, local_vars_configuration=None): # noqa: E501
|
50
|
+
"""InlineResponse2002 - a model defined in OpenAPI""" # noqa: E501
|
51
|
+
if local_vars_configuration is None:
|
52
|
+
local_vars_configuration = Configuration()
|
53
|
+
self.local_vars_configuration = local_vars_configuration
|
54
|
+
|
55
|
+
self._count = None
|
56
|
+
self._next = None
|
57
|
+
self._previous = None
|
58
|
+
self._results = None
|
59
|
+
self.discriminator = None
|
60
|
+
|
61
|
+
self.count = count
|
62
|
+
self.next = next
|
63
|
+
self.previous = previous
|
64
|
+
self.results = results
|
65
|
+
|
66
|
+
@property
|
67
|
+
def count(self):
|
68
|
+
"""Gets the count of this InlineResponse2002. # noqa: E501
|
69
|
+
|
70
|
+
|
71
|
+
:return: The count of this InlineResponse2002. # noqa: E501
|
72
|
+
:rtype: int
|
73
|
+
"""
|
74
|
+
return self._count
|
75
|
+
|
76
|
+
@count.setter
|
77
|
+
def count(self, count):
|
78
|
+
"""Sets the count of this InlineResponse2002.
|
79
|
+
|
80
|
+
|
81
|
+
:param count: The count of this InlineResponse2002. # noqa: E501
|
82
|
+
:type: int
|
83
|
+
"""
|
84
|
+
if self.local_vars_configuration.client_side_validation and count is None: # noqa: E501
|
85
|
+
raise ValueError("Invalid value for `count`, must not be `None`") # noqa: E501
|
86
|
+
|
87
|
+
self._count = count
|
88
|
+
|
89
|
+
@property
|
90
|
+
def next(self):
|
91
|
+
"""Gets the next of this InlineResponse2002. # noqa: E501
|
92
|
+
|
93
|
+
|
94
|
+
:return: The next of this InlineResponse2002. # noqa: E501
|
95
|
+
:rtype: str
|
96
|
+
"""
|
97
|
+
return self._next
|
98
|
+
|
99
|
+
@next.setter
|
100
|
+
def next(self, next):
|
101
|
+
"""Sets the next of this InlineResponse2002.
|
102
|
+
|
103
|
+
|
104
|
+
:param next: The next of this InlineResponse2002. # noqa: E501
|
105
|
+
:type: str
|
106
|
+
"""
|
107
|
+
|
108
|
+
self._next = next
|
109
|
+
|
110
|
+
@property
|
111
|
+
def previous(self):
|
112
|
+
"""Gets the previous of this InlineResponse2002. # noqa: E501
|
113
|
+
|
114
|
+
|
115
|
+
:return: The previous of this InlineResponse2002. # noqa: E501
|
116
|
+
:rtype: str
|
117
|
+
"""
|
118
|
+
return self._previous
|
119
|
+
|
120
|
+
@previous.setter
|
121
|
+
def previous(self, previous):
|
122
|
+
"""Sets the previous of this InlineResponse2002.
|
123
|
+
|
124
|
+
|
125
|
+
:param previous: The previous of this InlineResponse2002. # noqa: E501
|
126
|
+
:type: str
|
127
|
+
"""
|
128
|
+
|
129
|
+
self._previous = previous
|
130
|
+
|
131
|
+
@property
|
132
|
+
def results(self):
|
133
|
+
"""Gets the results of this InlineResponse2002. # noqa: E501
|
134
|
+
|
135
|
+
|
136
|
+
:return: The results of this InlineResponse2002. # noqa: E501
|
137
|
+
:rtype: list[Pulp2to3MigrationPulp2RepositoryRead]
|
138
|
+
"""
|
139
|
+
return self._results
|
140
|
+
|
141
|
+
@results.setter
|
142
|
+
def results(self, results):
|
143
|
+
"""Sets the results of this InlineResponse2002.
|
144
|
+
|
145
|
+
|
146
|
+
:param results: The results of this InlineResponse2002. # noqa: E501
|
147
|
+
:type: list[Pulp2to3MigrationPulp2RepositoryRead]
|
148
|
+
"""
|
149
|
+
if self.local_vars_configuration.client_side_validation and results is None: # noqa: E501
|
150
|
+
raise ValueError("Invalid value for `results`, must not be `None`") # noqa: E501
|
151
|
+
|
152
|
+
self._results = results
|
153
|
+
|
154
|
+
def to_dict(self):
|
155
|
+
"""Returns the model properties as a dict"""
|
156
|
+
result = {}
|
157
|
+
|
158
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
159
|
+
value = getattr(self, attr)
|
160
|
+
if isinstance(value, list):
|
161
|
+
result[attr] = list(map(
|
162
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
163
|
+
value
|
164
|
+
))
|
165
|
+
elif hasattr(value, "to_dict"):
|
166
|
+
result[attr] = value.to_dict()
|
167
|
+
elif isinstance(value, dict):
|
168
|
+
result[attr] = dict(map(
|
169
|
+
lambda item: (item[0], item[1].to_dict())
|
170
|
+
if hasattr(item[1], "to_dict") else item,
|
171
|
+
value.items()
|
172
|
+
))
|
173
|
+
else:
|
174
|
+
result[attr] = value
|
175
|
+
|
176
|
+
return result
|
177
|
+
|
178
|
+
def to_str(self):
|
179
|
+
"""Returns the string representation of the model"""
|
180
|
+
return pprint.pformat(self.to_dict())
|
181
|
+
|
182
|
+
def __repr__(self):
|
183
|
+
"""For `print` and `pprint`"""
|
184
|
+
return self.to_str()
|
185
|
+
|
186
|
+
def __eq__(self, other):
|
187
|
+
"""Returns true if both objects are equal"""
|
188
|
+
if not isinstance(other, InlineResponse2002):
|
189
|
+
return False
|
190
|
+
|
191
|
+
return self.to_dict() == other.to_dict()
|
192
|
+
|
193
|
+
def __ne__(self, other):
|
194
|
+
"""Returns true if both objects are not equal"""
|
195
|
+
if not isinstance(other, InlineResponse2002):
|
196
|
+
return True
|
197
|
+
|
198
|
+
return self.to_dict() != other.to_dict()
|
@@ -0,0 +1,150 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Pulp 3 API
|
5
|
+
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
7
|
+
|
8
|
+
The version of the OpenAPI document: v3
|
9
|
+
Generated by: https://openapi-generator.tech
|
10
|
+
"""
|
11
|
+
|
12
|
+
|
13
|
+
import pprint
|
14
|
+
import re # noqa: F401
|
15
|
+
|
16
|
+
import six
|
17
|
+
|
18
|
+
from pulpcore.client.pulp_2to3_migration.configuration import Configuration
|
19
|
+
|
20
|
+
|
21
|
+
class MigrationPlanRun(object):
|
22
|
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
23
|
+
Ref: https://openapi-generator.tech
|
24
|
+
|
25
|
+
Do not edit the class manually.
|
26
|
+
"""
|
27
|
+
|
28
|
+
"""
|
29
|
+
Attributes:
|
30
|
+
openapi_types (dict): The key is attribute name
|
31
|
+
and the value is attribute type.
|
32
|
+
attribute_map (dict): The key is attribute name
|
33
|
+
and the value is json key in definition.
|
34
|
+
"""
|
35
|
+
openapi_types = {
|
36
|
+
'validate': 'bool',
|
37
|
+
'dry_run': 'bool'
|
38
|
+
}
|
39
|
+
|
40
|
+
attribute_map = {
|
41
|
+
'validate': 'validate',
|
42
|
+
'dry_run': 'dry_run'
|
43
|
+
}
|
44
|
+
|
45
|
+
def __init__(self, validate=False, dry_run=False, local_vars_configuration=None): # noqa: E501
|
46
|
+
"""MigrationPlanRun - a model defined in OpenAPI""" # noqa: E501
|
47
|
+
if local_vars_configuration is None:
|
48
|
+
local_vars_configuration = Configuration()
|
49
|
+
self.local_vars_configuration = local_vars_configuration
|
50
|
+
|
51
|
+
self._validate = None
|
52
|
+
self._dry_run = None
|
53
|
+
self.discriminator = None
|
54
|
+
|
55
|
+
if validate is not None:
|
56
|
+
self.validate = validate
|
57
|
+
if dry_run is not None:
|
58
|
+
self.dry_run = dry_run
|
59
|
+
|
60
|
+
@property
|
61
|
+
def validate(self):
|
62
|
+
"""Gets the validate of this MigrationPlanRun. # noqa: E501
|
63
|
+
|
64
|
+
If ``True``, migration cannot happen without successful validation of the Migration Plan # noqa: E501
|
65
|
+
|
66
|
+
:return: The validate of this MigrationPlanRun. # noqa: E501
|
67
|
+
:rtype: bool
|
68
|
+
"""
|
69
|
+
return self._validate
|
70
|
+
|
71
|
+
@validate.setter
|
72
|
+
def validate(self, validate):
|
73
|
+
"""Sets the validate of this MigrationPlanRun.
|
74
|
+
|
75
|
+
If ``True``, migration cannot happen without successful validation of the Migration Plan # noqa: E501
|
76
|
+
|
77
|
+
:param validate: The validate of this MigrationPlanRun. # noqa: E501
|
78
|
+
:type: bool
|
79
|
+
"""
|
80
|
+
|
81
|
+
self._validate = validate
|
82
|
+
|
83
|
+
@property
|
84
|
+
def dry_run(self):
|
85
|
+
"""Gets the dry_run of this MigrationPlanRun. # noqa: E501
|
86
|
+
|
87
|
+
If ``True``, performs validation of a Migration Plan only, no migration is run. # noqa: E501
|
88
|
+
|
89
|
+
:return: The dry_run of this MigrationPlanRun. # noqa: E501
|
90
|
+
:rtype: bool
|
91
|
+
"""
|
92
|
+
return self._dry_run
|
93
|
+
|
94
|
+
@dry_run.setter
|
95
|
+
def dry_run(self, dry_run):
|
96
|
+
"""Sets the dry_run of this MigrationPlanRun.
|
97
|
+
|
98
|
+
If ``True``, performs validation of a Migration Plan only, no migration is run. # noqa: E501
|
99
|
+
|
100
|
+
:param dry_run: The dry_run of this MigrationPlanRun. # noqa: E501
|
101
|
+
:type: bool
|
102
|
+
"""
|
103
|
+
|
104
|
+
self._dry_run = dry_run
|
105
|
+
|
106
|
+
def to_dict(self):
|
107
|
+
"""Returns the model properties as a dict"""
|
108
|
+
result = {}
|
109
|
+
|
110
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
111
|
+
value = getattr(self, attr)
|
112
|
+
if isinstance(value, list):
|
113
|
+
result[attr] = list(map(
|
114
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
115
|
+
value
|
116
|
+
))
|
117
|
+
elif hasattr(value, "to_dict"):
|
118
|
+
result[attr] = value.to_dict()
|
119
|
+
elif isinstance(value, dict):
|
120
|
+
result[attr] = dict(map(
|
121
|
+
lambda item: (item[0], item[1].to_dict())
|
122
|
+
if hasattr(item[1], "to_dict") else item,
|
123
|
+
value.items()
|
124
|
+
))
|
125
|
+
else:
|
126
|
+
result[attr] = value
|
127
|
+
|
128
|
+
return result
|
129
|
+
|
130
|
+
def to_str(self):
|
131
|
+
"""Returns the string representation of the model"""
|
132
|
+
return pprint.pformat(self.to_dict())
|
133
|
+
|
134
|
+
def __repr__(self):
|
135
|
+
"""For `print` and `pprint`"""
|
136
|
+
return self.to_str()
|
137
|
+
|
138
|
+
def __eq__(self, other):
|
139
|
+
"""Returns true if both objects are equal"""
|
140
|
+
if not isinstance(other, MigrationPlanRun):
|
141
|
+
return False
|
142
|
+
|
143
|
+
return self.to_dict() == other.to_dict()
|
144
|
+
|
145
|
+
def __ne__(self, other):
|
146
|
+
"""Returns true if both objects are not equal"""
|
147
|
+
if not isinstance(other, MigrationPlanRun):
|
148
|
+
return True
|
149
|
+
|
150
|
+
return self.to_dict() != other.to_dict()
|
@@ -0,0 +1,177 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Pulp 3 API
|
5
|
+
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
7
|
+
|
8
|
+
The version of the OpenAPI document: v3
|
9
|
+
Generated by: https://openapi-generator.tech
|
10
|
+
"""
|
11
|
+
|
12
|
+
|
13
|
+
import pprint
|
14
|
+
import re # noqa: F401
|
15
|
+
|
16
|
+
import six
|
17
|
+
|
18
|
+
from pulpcore.client.pulp_2to3_migration.configuration import Configuration
|
19
|
+
|
20
|
+
|
21
|
+
class Pulp2to3MigrationMigrationPlan(object):
|
22
|
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
23
|
+
Ref: https://openapi-generator.tech
|
24
|
+
|
25
|
+
Do not edit the class manually.
|
26
|
+
"""
|
27
|
+
|
28
|
+
"""
|
29
|
+
Attributes:
|
30
|
+
openapi_types (dict): The key is attribute name
|
31
|
+
and the value is attribute type.
|
32
|
+
attribute_map (dict): The key is attribute name
|
33
|
+
and the value is json key in definition.
|
34
|
+
"""
|
35
|
+
openapi_types = {
|
36
|
+
'pulp_href': 'str',
|
37
|
+
'pulp_created': 'datetime',
|
38
|
+
'plan': 'object'
|
39
|
+
}
|
40
|
+
|
41
|
+
attribute_map = {
|
42
|
+
'pulp_href': 'pulp_href',
|
43
|
+
'pulp_created': 'pulp_created',
|
44
|
+
'plan': 'plan'
|
45
|
+
}
|
46
|
+
|
47
|
+
def __init__(self, pulp_href=None, pulp_created=None, plan=None, local_vars_configuration=None): # noqa: E501
|
48
|
+
"""Pulp2to3MigrationMigrationPlan - a model defined in OpenAPI""" # noqa: E501
|
49
|
+
if local_vars_configuration is None:
|
50
|
+
local_vars_configuration = Configuration()
|
51
|
+
self.local_vars_configuration = local_vars_configuration
|
52
|
+
|
53
|
+
self._pulp_href = None
|
54
|
+
self._pulp_created = None
|
55
|
+
self._plan = None
|
56
|
+
self.discriminator = None
|
57
|
+
|
58
|
+
if pulp_href is not None:
|
59
|
+
self.pulp_href = pulp_href
|
60
|
+
if pulp_created is not None:
|
61
|
+
self.pulp_created = pulp_created
|
62
|
+
self.plan = plan
|
63
|
+
|
64
|
+
@property
|
65
|
+
def pulp_href(self):
|
66
|
+
"""Gets the pulp_href of this Pulp2to3MigrationMigrationPlan. # noqa: E501
|
67
|
+
|
68
|
+
|
69
|
+
:return: The pulp_href of this Pulp2to3MigrationMigrationPlan. # noqa: E501
|
70
|
+
:rtype: str
|
71
|
+
"""
|
72
|
+
return self._pulp_href
|
73
|
+
|
74
|
+
@pulp_href.setter
|
75
|
+
def pulp_href(self, pulp_href):
|
76
|
+
"""Sets the pulp_href of this Pulp2to3MigrationMigrationPlan.
|
77
|
+
|
78
|
+
|
79
|
+
:param pulp_href: The pulp_href of this Pulp2to3MigrationMigrationPlan. # noqa: E501
|
80
|
+
:type: str
|
81
|
+
"""
|
82
|
+
|
83
|
+
self._pulp_href = pulp_href
|
84
|
+
|
85
|
+
@property
|
86
|
+
def pulp_created(self):
|
87
|
+
"""Gets the pulp_created of this Pulp2to3MigrationMigrationPlan. # noqa: E501
|
88
|
+
|
89
|
+
Timestamp of creation. # noqa: E501
|
90
|
+
|
91
|
+
:return: The pulp_created of this Pulp2to3MigrationMigrationPlan. # noqa: E501
|
92
|
+
:rtype: datetime
|
93
|
+
"""
|
94
|
+
return self._pulp_created
|
95
|
+
|
96
|
+
@pulp_created.setter
|
97
|
+
def pulp_created(self, pulp_created):
|
98
|
+
"""Sets the pulp_created of this Pulp2to3MigrationMigrationPlan.
|
99
|
+
|
100
|
+
Timestamp of creation. # noqa: E501
|
101
|
+
|
102
|
+
:param pulp_created: The pulp_created of this Pulp2to3MigrationMigrationPlan. # noqa: E501
|
103
|
+
:type: datetime
|
104
|
+
"""
|
105
|
+
|
106
|
+
self._pulp_created = pulp_created
|
107
|
+
|
108
|
+
@property
|
109
|
+
def plan(self):
|
110
|
+
"""Gets the plan of this Pulp2to3MigrationMigrationPlan. # noqa: E501
|
111
|
+
|
112
|
+
Migration Plan in JSON format # noqa: E501
|
113
|
+
|
114
|
+
:return: The plan of this Pulp2to3MigrationMigrationPlan. # noqa: E501
|
115
|
+
:rtype: object
|
116
|
+
"""
|
117
|
+
return self._plan
|
118
|
+
|
119
|
+
@plan.setter
|
120
|
+
def plan(self, plan):
|
121
|
+
"""Sets the plan of this Pulp2to3MigrationMigrationPlan.
|
122
|
+
|
123
|
+
Migration Plan in JSON format # noqa: E501
|
124
|
+
|
125
|
+
:param plan: The plan of this Pulp2to3MigrationMigrationPlan. # noqa: E501
|
126
|
+
:type: object
|
127
|
+
"""
|
128
|
+
if self.local_vars_configuration.client_side_validation and plan is None: # noqa: E501
|
129
|
+
raise ValueError("Invalid value for `plan`, must not be `None`") # noqa: E501
|
130
|
+
|
131
|
+
self._plan = plan
|
132
|
+
|
133
|
+
def to_dict(self):
|
134
|
+
"""Returns the model properties as a dict"""
|
135
|
+
result = {}
|
136
|
+
|
137
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
138
|
+
value = getattr(self, attr)
|
139
|
+
if isinstance(value, list):
|
140
|
+
result[attr] = list(map(
|
141
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
142
|
+
value
|
143
|
+
))
|
144
|
+
elif hasattr(value, "to_dict"):
|
145
|
+
result[attr] = value.to_dict()
|
146
|
+
elif isinstance(value, dict):
|
147
|
+
result[attr] = dict(map(
|
148
|
+
lambda item: (item[0], item[1].to_dict())
|
149
|
+
if hasattr(item[1], "to_dict") else item,
|
150
|
+
value.items()
|
151
|
+
))
|
152
|
+
else:
|
153
|
+
result[attr] = value
|
154
|
+
|
155
|
+
return result
|
156
|
+
|
157
|
+
def to_str(self):
|
158
|
+
"""Returns the string representation of the model"""
|
159
|
+
return pprint.pformat(self.to_dict())
|
160
|
+
|
161
|
+
def __repr__(self):
|
162
|
+
"""For `print` and `pprint`"""
|
163
|
+
return self.to_str()
|
164
|
+
|
165
|
+
def __eq__(self, other):
|
166
|
+
"""Returns true if both objects are equal"""
|
167
|
+
if not isinstance(other, Pulp2to3MigrationMigrationPlan):
|
168
|
+
return False
|
169
|
+
|
170
|
+
return self.to_dict() == other.to_dict()
|
171
|
+
|
172
|
+
def __ne__(self, other):
|
173
|
+
"""Returns true if both objects are not equal"""
|
174
|
+
if not isinstance(other, Pulp2to3MigrationMigrationPlan):
|
175
|
+
return True
|
176
|
+
|
177
|
+
return self.to_dict() != other.to_dict()
|