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,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 Pulp2to3MigrationMigrationPlanRead(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
|
+
"""Pulp2to3MigrationMigrationPlanRead - 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 Pulp2to3MigrationMigrationPlanRead. # noqa: E501
|
67
|
+
|
68
|
+
|
69
|
+
:return: The pulp_href of this Pulp2to3MigrationMigrationPlanRead. # 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 Pulp2to3MigrationMigrationPlanRead.
|
77
|
+
|
78
|
+
|
79
|
+
:param pulp_href: The pulp_href of this Pulp2to3MigrationMigrationPlanRead. # 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 Pulp2to3MigrationMigrationPlanRead. # noqa: E501
|
88
|
+
|
89
|
+
Timestamp of creation. # noqa: E501
|
90
|
+
|
91
|
+
:return: The pulp_created of this Pulp2to3MigrationMigrationPlanRead. # 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 Pulp2to3MigrationMigrationPlanRead.
|
99
|
+
|
100
|
+
Timestamp of creation. # noqa: E501
|
101
|
+
|
102
|
+
:param pulp_created: The pulp_created of this Pulp2to3MigrationMigrationPlanRead. # 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 Pulp2to3MigrationMigrationPlanRead. # noqa: E501
|
111
|
+
|
112
|
+
Migration Plan in JSON format # noqa: E501
|
113
|
+
|
114
|
+
:return: The plan of this Pulp2to3MigrationMigrationPlanRead. # 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 Pulp2to3MigrationMigrationPlanRead.
|
122
|
+
|
123
|
+
Migration Plan in JSON format # noqa: E501
|
124
|
+
|
125
|
+
:param plan: The plan of this Pulp2to3MigrationMigrationPlanRead. # 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, Pulp2to3MigrationMigrationPlanRead):
|
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, Pulp2to3MigrationMigrationPlanRead):
|
175
|
+
return True
|
176
|
+
|
177
|
+
return self.to_dict() != other.to_dict()
|
@@ -0,0 +1,353 @@
|
|
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 Pulp2to3MigrationPulp2ContentRead(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
|
+
'pulp2_id': 'str',
|
39
|
+
'pulp2_content_type_id': 'str',
|
40
|
+
'pulp2_last_updated': 'int',
|
41
|
+
'pulp2_storage_path': 'str',
|
42
|
+
'downloaded': 'bool',
|
43
|
+
'pulp3_content': 'str',
|
44
|
+
'pulp3_repository_version': 'str'
|
45
|
+
}
|
46
|
+
|
47
|
+
attribute_map = {
|
48
|
+
'pulp_href': 'pulp_href',
|
49
|
+
'pulp_created': 'pulp_created',
|
50
|
+
'pulp2_id': 'pulp2_id',
|
51
|
+
'pulp2_content_type_id': 'pulp2_content_type_id',
|
52
|
+
'pulp2_last_updated': 'pulp2_last_updated',
|
53
|
+
'pulp2_storage_path': 'pulp2_storage_path',
|
54
|
+
'downloaded': 'downloaded',
|
55
|
+
'pulp3_content': 'pulp3_content',
|
56
|
+
'pulp3_repository_version': 'pulp3_repository_version'
|
57
|
+
}
|
58
|
+
|
59
|
+
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
|
60
|
+
"""Pulp2to3MigrationPulp2ContentRead - a model defined in OpenAPI""" # noqa: E501
|
61
|
+
if local_vars_configuration is None:
|
62
|
+
local_vars_configuration = Configuration()
|
63
|
+
self.local_vars_configuration = local_vars_configuration
|
64
|
+
|
65
|
+
self._pulp_href = None
|
66
|
+
self._pulp_created = None
|
67
|
+
self._pulp2_id = None
|
68
|
+
self._pulp2_content_type_id = None
|
69
|
+
self._pulp2_last_updated = None
|
70
|
+
self._pulp2_storage_path = None
|
71
|
+
self._downloaded = None
|
72
|
+
self._pulp3_content = None
|
73
|
+
self._pulp3_repository_version = None
|
74
|
+
self.discriminator = None
|
75
|
+
|
76
|
+
if pulp_href is not None:
|
77
|
+
self.pulp_href = pulp_href
|
78
|
+
if pulp_created is not None:
|
79
|
+
self.pulp_created = pulp_created
|
80
|
+
self.pulp2_id = pulp2_id
|
81
|
+
self.pulp2_content_type_id = pulp2_content_type_id
|
82
|
+
self.pulp2_last_updated = pulp2_last_updated
|
83
|
+
self.pulp2_storage_path = pulp2_storage_path
|
84
|
+
if downloaded is not None:
|
85
|
+
self.downloaded = downloaded
|
86
|
+
self.pulp3_content = pulp3_content
|
87
|
+
if pulp3_repository_version is not None:
|
88
|
+
self.pulp3_repository_version = pulp3_repository_version
|
89
|
+
|
90
|
+
@property
|
91
|
+
def pulp_href(self):
|
92
|
+
"""Gets the pulp_href of this Pulp2to3MigrationPulp2ContentRead. # noqa: E501
|
93
|
+
|
94
|
+
|
95
|
+
:return: The pulp_href of this Pulp2to3MigrationPulp2ContentRead. # noqa: E501
|
96
|
+
:rtype: str
|
97
|
+
"""
|
98
|
+
return self._pulp_href
|
99
|
+
|
100
|
+
@pulp_href.setter
|
101
|
+
def pulp_href(self, pulp_href):
|
102
|
+
"""Sets the pulp_href of this Pulp2to3MigrationPulp2ContentRead.
|
103
|
+
|
104
|
+
|
105
|
+
:param pulp_href: The pulp_href of this Pulp2to3MigrationPulp2ContentRead. # noqa: E501
|
106
|
+
:type: str
|
107
|
+
"""
|
108
|
+
|
109
|
+
self._pulp_href = pulp_href
|
110
|
+
|
111
|
+
@property
|
112
|
+
def pulp_created(self):
|
113
|
+
"""Gets the pulp_created of this Pulp2to3MigrationPulp2ContentRead. # noqa: E501
|
114
|
+
|
115
|
+
Timestamp of creation. # noqa: E501
|
116
|
+
|
117
|
+
:return: The pulp_created of this Pulp2to3MigrationPulp2ContentRead. # noqa: E501
|
118
|
+
:rtype: datetime
|
119
|
+
"""
|
120
|
+
return self._pulp_created
|
121
|
+
|
122
|
+
@pulp_created.setter
|
123
|
+
def pulp_created(self, pulp_created):
|
124
|
+
"""Sets the pulp_created of this Pulp2to3MigrationPulp2ContentRead.
|
125
|
+
|
126
|
+
Timestamp of creation. # noqa: E501
|
127
|
+
|
128
|
+
:param pulp_created: The pulp_created of this Pulp2to3MigrationPulp2ContentRead. # noqa: E501
|
129
|
+
:type: datetime
|
130
|
+
"""
|
131
|
+
|
132
|
+
self._pulp_created = pulp_created
|
133
|
+
|
134
|
+
@property
|
135
|
+
def pulp2_id(self):
|
136
|
+
"""Gets the pulp2_id of this Pulp2to3MigrationPulp2ContentRead. # noqa: E501
|
137
|
+
|
138
|
+
|
139
|
+
:return: The pulp2_id of this Pulp2to3MigrationPulp2ContentRead. # noqa: E501
|
140
|
+
:rtype: str
|
141
|
+
"""
|
142
|
+
return self._pulp2_id
|
143
|
+
|
144
|
+
@pulp2_id.setter
|
145
|
+
def pulp2_id(self, pulp2_id):
|
146
|
+
"""Sets the pulp2_id of this Pulp2to3MigrationPulp2ContentRead.
|
147
|
+
|
148
|
+
|
149
|
+
:param pulp2_id: The pulp2_id of this Pulp2to3MigrationPulp2ContentRead. # noqa: E501
|
150
|
+
:type: str
|
151
|
+
"""
|
152
|
+
if self.local_vars_configuration.client_side_validation and pulp2_id is None: # noqa: E501
|
153
|
+
raise ValueError("Invalid value for `pulp2_id`, must not be `None`") # noqa: E501
|
154
|
+
if (self.local_vars_configuration.client_side_validation and
|
155
|
+
pulp2_id is not None and len(pulp2_id) > 255):
|
156
|
+
raise ValueError("Invalid value for `pulp2_id`, length must be less than or equal to `255`") # noqa: E501
|
157
|
+
if (self.local_vars_configuration.client_side_validation and
|
158
|
+
pulp2_id is not None and len(pulp2_id) < 1):
|
159
|
+
raise ValueError("Invalid value for `pulp2_id`, length must be greater than or equal to `1`") # noqa: E501
|
160
|
+
|
161
|
+
self._pulp2_id = pulp2_id
|
162
|
+
|
163
|
+
@property
|
164
|
+
def pulp2_content_type_id(self):
|
165
|
+
"""Gets the pulp2_content_type_id of this Pulp2to3MigrationPulp2ContentRead. # noqa: E501
|
166
|
+
|
167
|
+
|
168
|
+
:return: The pulp2_content_type_id of this Pulp2to3MigrationPulp2ContentRead. # noqa: E501
|
169
|
+
:rtype: str
|
170
|
+
"""
|
171
|
+
return self._pulp2_content_type_id
|
172
|
+
|
173
|
+
@pulp2_content_type_id.setter
|
174
|
+
def pulp2_content_type_id(self, pulp2_content_type_id):
|
175
|
+
"""Sets the pulp2_content_type_id of this Pulp2to3MigrationPulp2ContentRead.
|
176
|
+
|
177
|
+
|
178
|
+
:param pulp2_content_type_id: The pulp2_content_type_id of this Pulp2to3MigrationPulp2ContentRead. # noqa: E501
|
179
|
+
:type: str
|
180
|
+
"""
|
181
|
+
if self.local_vars_configuration.client_side_validation and pulp2_content_type_id is None: # noqa: E501
|
182
|
+
raise ValueError("Invalid value for `pulp2_content_type_id`, must not be `None`") # noqa: E501
|
183
|
+
if (self.local_vars_configuration.client_side_validation and
|
184
|
+
pulp2_content_type_id is not None and len(pulp2_content_type_id) > 255):
|
185
|
+
raise ValueError("Invalid value for `pulp2_content_type_id`, length must be less than or equal to `255`") # noqa: E501
|
186
|
+
if (self.local_vars_configuration.client_side_validation and
|
187
|
+
pulp2_content_type_id is not None and len(pulp2_content_type_id) < 1):
|
188
|
+
raise ValueError("Invalid value for `pulp2_content_type_id`, length must be greater than or equal to `1`") # noqa: E501
|
189
|
+
|
190
|
+
self._pulp2_content_type_id = pulp2_content_type_id
|
191
|
+
|
192
|
+
@property
|
193
|
+
def pulp2_last_updated(self):
|
194
|
+
"""Gets the pulp2_last_updated of this Pulp2to3MigrationPulp2ContentRead. # noqa: E501
|
195
|
+
|
196
|
+
|
197
|
+
:return: The pulp2_last_updated of this Pulp2to3MigrationPulp2ContentRead. # noqa: E501
|
198
|
+
:rtype: int
|
199
|
+
"""
|
200
|
+
return self._pulp2_last_updated
|
201
|
+
|
202
|
+
@pulp2_last_updated.setter
|
203
|
+
def pulp2_last_updated(self, pulp2_last_updated):
|
204
|
+
"""Sets the pulp2_last_updated of this Pulp2to3MigrationPulp2ContentRead.
|
205
|
+
|
206
|
+
|
207
|
+
:param pulp2_last_updated: The pulp2_last_updated of this Pulp2to3MigrationPulp2ContentRead. # noqa: E501
|
208
|
+
:type: int
|
209
|
+
"""
|
210
|
+
if self.local_vars_configuration.client_side_validation and pulp2_last_updated is None: # noqa: E501
|
211
|
+
raise ValueError("Invalid value for `pulp2_last_updated`, must not be `None`") # noqa: E501
|
212
|
+
|
213
|
+
self._pulp2_last_updated = pulp2_last_updated
|
214
|
+
|
215
|
+
@property
|
216
|
+
def pulp2_storage_path(self):
|
217
|
+
"""Gets the pulp2_storage_path of this Pulp2to3MigrationPulp2ContentRead. # noqa: E501
|
218
|
+
|
219
|
+
|
220
|
+
:return: The pulp2_storage_path of this Pulp2to3MigrationPulp2ContentRead. # noqa: E501
|
221
|
+
:rtype: str
|
222
|
+
"""
|
223
|
+
return self._pulp2_storage_path
|
224
|
+
|
225
|
+
@pulp2_storage_path.setter
|
226
|
+
def pulp2_storage_path(self, pulp2_storage_path):
|
227
|
+
"""Sets the pulp2_storage_path of this Pulp2to3MigrationPulp2ContentRead.
|
228
|
+
|
229
|
+
|
230
|
+
:param pulp2_storage_path: The pulp2_storage_path of this Pulp2to3MigrationPulp2ContentRead. # noqa: E501
|
231
|
+
:type: str
|
232
|
+
"""
|
233
|
+
if self.local_vars_configuration.client_side_validation and pulp2_storage_path is None: # noqa: E501
|
234
|
+
raise ValueError("Invalid value for `pulp2_storage_path`, must not be `None`") # noqa: E501
|
235
|
+
if (self.local_vars_configuration.client_side_validation and
|
236
|
+
pulp2_storage_path is not None and len(pulp2_storage_path) < 1):
|
237
|
+
raise ValueError("Invalid value for `pulp2_storage_path`, length must be greater than or equal to `1`") # noqa: E501
|
238
|
+
|
239
|
+
self._pulp2_storage_path = pulp2_storage_path
|
240
|
+
|
241
|
+
@property
|
242
|
+
def downloaded(self):
|
243
|
+
"""Gets the downloaded of this Pulp2to3MigrationPulp2ContentRead. # noqa: E501
|
244
|
+
|
245
|
+
|
246
|
+
:return: The downloaded of this Pulp2to3MigrationPulp2ContentRead. # noqa: E501
|
247
|
+
:rtype: bool
|
248
|
+
"""
|
249
|
+
return self._downloaded
|
250
|
+
|
251
|
+
@downloaded.setter
|
252
|
+
def downloaded(self, downloaded):
|
253
|
+
"""Sets the downloaded of this Pulp2to3MigrationPulp2ContentRead.
|
254
|
+
|
255
|
+
|
256
|
+
:param downloaded: The downloaded of this Pulp2to3MigrationPulp2ContentRead. # noqa: E501
|
257
|
+
:type: bool
|
258
|
+
"""
|
259
|
+
|
260
|
+
self._downloaded = downloaded
|
261
|
+
|
262
|
+
@property
|
263
|
+
def pulp3_content(self):
|
264
|
+
"""Gets the pulp3_content of this Pulp2to3MigrationPulp2ContentRead. # noqa: E501
|
265
|
+
|
266
|
+
|
267
|
+
:return: The pulp3_content of this Pulp2to3MigrationPulp2ContentRead. # noqa: E501
|
268
|
+
:rtype: str
|
269
|
+
"""
|
270
|
+
return self._pulp3_content
|
271
|
+
|
272
|
+
@pulp3_content.setter
|
273
|
+
def pulp3_content(self, pulp3_content):
|
274
|
+
"""Sets the pulp3_content of this Pulp2to3MigrationPulp2ContentRead.
|
275
|
+
|
276
|
+
|
277
|
+
:param pulp3_content: The pulp3_content of this Pulp2to3MigrationPulp2ContentRead. # noqa: E501
|
278
|
+
:type: str
|
279
|
+
"""
|
280
|
+
|
281
|
+
self._pulp3_content = pulp3_content
|
282
|
+
|
283
|
+
@property
|
284
|
+
def pulp3_repository_version(self):
|
285
|
+
"""Gets the pulp3_repository_version of this Pulp2to3MigrationPulp2ContentRead. # noqa: E501
|
286
|
+
|
287
|
+
Get pulp3_repository_version href from pulp2repo if available # noqa: E501
|
288
|
+
|
289
|
+
:return: The pulp3_repository_version of this Pulp2to3MigrationPulp2ContentRead. # noqa: E501
|
290
|
+
:rtype: str
|
291
|
+
"""
|
292
|
+
return self._pulp3_repository_version
|
293
|
+
|
294
|
+
@pulp3_repository_version.setter
|
295
|
+
def pulp3_repository_version(self, pulp3_repository_version):
|
296
|
+
"""Sets the pulp3_repository_version of this Pulp2to3MigrationPulp2ContentRead.
|
297
|
+
|
298
|
+
Get pulp3_repository_version href from pulp2repo if available # noqa: E501
|
299
|
+
|
300
|
+
:param pulp3_repository_version: The pulp3_repository_version of this Pulp2to3MigrationPulp2ContentRead. # noqa: E501
|
301
|
+
:type: str
|
302
|
+
"""
|
303
|
+
if (self.local_vars_configuration.client_side_validation and
|
304
|
+
pulp3_repository_version is not None and len(pulp3_repository_version) < 1):
|
305
|
+
raise ValueError("Invalid value for `pulp3_repository_version`, length must be greater than or equal to `1`") # noqa: E501
|
306
|
+
|
307
|
+
self._pulp3_repository_version = pulp3_repository_version
|
308
|
+
|
309
|
+
def to_dict(self):
|
310
|
+
"""Returns the model properties as a dict"""
|
311
|
+
result = {}
|
312
|
+
|
313
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
314
|
+
value = getattr(self, attr)
|
315
|
+
if isinstance(value, list):
|
316
|
+
result[attr] = list(map(
|
317
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
318
|
+
value
|
319
|
+
))
|
320
|
+
elif hasattr(value, "to_dict"):
|
321
|
+
result[attr] = value.to_dict()
|
322
|
+
elif isinstance(value, dict):
|
323
|
+
result[attr] = dict(map(
|
324
|
+
lambda item: (item[0], item[1].to_dict())
|
325
|
+
if hasattr(item[1], "to_dict") else item,
|
326
|
+
value.items()
|
327
|
+
))
|
328
|
+
else:
|
329
|
+
result[attr] = value
|
330
|
+
|
331
|
+
return result
|
332
|
+
|
333
|
+
def to_str(self):
|
334
|
+
"""Returns the string representation of the model"""
|
335
|
+
return pprint.pformat(self.to_dict())
|
336
|
+
|
337
|
+
def __repr__(self):
|
338
|
+
"""For `print` and `pprint`"""
|
339
|
+
return self.to_str()
|
340
|
+
|
341
|
+
def __eq__(self, other):
|
342
|
+
"""Returns true if both objects are equal"""
|
343
|
+
if not isinstance(other, Pulp2to3MigrationPulp2ContentRead):
|
344
|
+
return False
|
345
|
+
|
346
|
+
return self.to_dict() == other.to_dict()
|
347
|
+
|
348
|
+
def __ne__(self, other):
|
349
|
+
"""Returns true if both objects are not equal"""
|
350
|
+
if not isinstance(other, Pulp2to3MigrationPulp2ContentRead):
|
351
|
+
return True
|
352
|
+
|
353
|
+
return self.to_dict() != other.to_dict()
|