pulp_2to3_migration_client 0.2.0b3.dev01590500248 → 0.2.0b3.dev01590586626
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -6
- data/docs/InlineResponse200.md +1 -1
- data/docs/InlineResponse2001.md +1 -1
- data/docs/InlineResponse2002.md +1 -1
- data/docs/MigrationPlansApi.md +4 -4
- data/docs/Pulp2contentApi.md +2 -2
- data/docs/Pulp2repositoriesApi.md +2 -2
- data/docs/Pulp2to3MigrationMigrationPlanRead.md +21 -0
- data/docs/{Pulp2to3MigrationPulp2Content.md → Pulp2to3MigrationPulp2ContentRead.md} +2 -2
- 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/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} +3 -3
- 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/client/pulp_2to3_migration/__init__.py +3 -2
- data/pulpcore/client/pulp_2to3_migration/api/migration_plans_api.py +6 -6
- data/pulpcore/client/pulp_2to3_migration/api/pulp2content_api.py +3 -3
- data/pulpcore/client/pulp_2to3_migration/api/pulp2repositories_api.py +3 -3
- data/pulpcore/client/pulp_2to3_migration/models/__init__.py +3 -2
- data/pulpcore/client/pulp_2to3_migration/models/inline_response200.py +3 -3
- data/pulpcore/client/pulp_2to3_migration/models/inline_response2001.py +3 -3
- data/pulpcore/client/pulp_2to3_migration/models/inline_response2002.py +3 -3
- 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.py → pulp2to3_migration_pulp2_content_read.py} +40 -40
- data/pulpcore/client/pulp_2to3_migration/models/{pulp2to3_migration_pulp2_repository.py → pulp2to3_migration_pulp2_repository_read.py} +52 -52
- 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/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} +6 -6
- data/spec/models/{pulp2to3_migration_pulp2_repository_spec.rb → pulp2to3_migration_pulp2_repository_read_spec.rb} +6 -6
- data/test/test_inline_response200.py +2 -2
- data/test/test_inline_response2001.py +2 -2
- data/test/test_inline_response2002.py +2 -2
- data/test/test_pulp2to3_migration_migration_plan_read.py +55 -0
- data/test/{test_pulp2to3_migration_pulp2_content.py → test_pulp2to3_migration_pulp2_content_read.py} +9 -9
- data/test/{test_pulp2to3_migration_pulp2_repository.py → test_pulp2to3_migration_pulp2_repository_read.py} +9 -9
- metadata +20 -14
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.2.3
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module Pulp2to3MigrationClient
|
16
|
-
class
|
16
|
+
class Pulp2to3MigrationPulp2ContentRead
|
17
17
|
attr_accessor :pulp_href
|
18
18
|
|
19
19
|
# Timestamp of creation.
|
@@ -75,13 +75,13 @@ module Pulp2to3MigrationClient
|
|
75
75
|
# @param [Hash] attributes Model attributes in the form of hash
|
76
76
|
def initialize(attributes = {})
|
77
77
|
if (!attributes.is_a?(Hash))
|
78
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Pulp2to3MigrationClient::
|
78
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Pulp2to3MigrationClient::Pulp2to3MigrationPulp2ContentRead` initialize method"
|
79
79
|
end
|
80
80
|
|
81
81
|
# check to see if the attribute exists and convert string to symbol for hash key
|
82
82
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
83
83
|
if (!self.class.attribute_map.key?(k.to_sym))
|
84
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Pulp2to3MigrationClient::
|
84
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Pulp2to3MigrationClient::Pulp2to3MigrationPulp2ContentRead`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
85
85
|
end
|
86
86
|
h[k.to_sym] = v
|
87
87
|
}
|
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.2.3
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module Pulp2to3MigrationClient
|
16
|
-
class
|
16
|
+
class Pulp2to3MigrationPulp2RepositoryRead
|
17
17
|
attr_accessor :pulp_href
|
18
18
|
|
19
19
|
# Timestamp of creation.
|
@@ -91,13 +91,13 @@ module Pulp2to3MigrationClient
|
|
91
91
|
# @param [Hash] attributes Model attributes in the form of hash
|
92
92
|
def initialize(attributes = {})
|
93
93
|
if (!attributes.is_a?(Hash))
|
94
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Pulp2to3MigrationClient::
|
94
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Pulp2to3MigrationClient::Pulp2to3MigrationPulp2RepositoryRead` initialize method"
|
95
95
|
end
|
96
96
|
|
97
97
|
# check to see if the attribute exists and convert string to symbol for hash key
|
98
98
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
99
99
|
if (!self.class.attribute_map.key?(k.to_sym))
|
100
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Pulp2to3MigrationClient::
|
100
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Pulp2to3MigrationClient::Pulp2to3MigrationPulp2RepositoryRead`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
101
101
|
end
|
102
102
|
h[k.to_sym] = v
|
103
103
|
}
|
@@ -36,6 +36,7 @@ from pulpcore.client.pulp_2to3_migration.models.inline_response2001 import Inlin
|
|
36
36
|
from pulpcore.client.pulp_2to3_migration.models.inline_response2002 import InlineResponse2002
|
37
37
|
from pulpcore.client.pulp_2to3_migration.models.migration_plan_run import MigrationPlanRun
|
38
38
|
from pulpcore.client.pulp_2to3_migration.models.pulp2to3_migration_migration_plan import Pulp2to3MigrationMigrationPlan
|
39
|
-
from pulpcore.client.pulp_2to3_migration.models.
|
40
|
-
from pulpcore.client.pulp_2to3_migration.models.
|
39
|
+
from pulpcore.client.pulp_2to3_migration.models.pulp2to3_migration_migration_plan_read import Pulp2to3MigrationMigrationPlanRead
|
40
|
+
from pulpcore.client.pulp_2to3_migration.models.pulp2to3_migration_pulp2_content_read import Pulp2to3MigrationPulp2ContentRead
|
41
|
+
from pulpcore.client.pulp_2to3_migration.models.pulp2to3_migration_pulp2_repository_read import Pulp2to3MigrationPulp2RepositoryRead
|
41
42
|
|
@@ -54,7 +54,7 @@ class MigrationPlansApi(object):
|
|
54
54
|
number provided, it will be total request
|
55
55
|
timeout. It can also be a pair (tuple) of
|
56
56
|
(connection, read) timeouts.
|
57
|
-
:return:
|
57
|
+
:return: Pulp2to3MigrationMigrationPlanRead
|
58
58
|
If the method is called asynchronously,
|
59
59
|
returns the request thread.
|
60
60
|
"""
|
@@ -81,7 +81,7 @@ class MigrationPlansApi(object):
|
|
81
81
|
number provided, it will be total request
|
82
82
|
timeout. It can also be a pair (tuple) of
|
83
83
|
(connection, read) timeouts.
|
84
|
-
:return: tuple(
|
84
|
+
:return: tuple(Pulp2to3MigrationMigrationPlanRead, status_code(int), headers(HTTPHeaderDict))
|
85
85
|
If the method is called asynchronously,
|
86
86
|
returns the request thread.
|
87
87
|
"""
|
@@ -140,7 +140,7 @@ class MigrationPlansApi(object):
|
|
140
140
|
body=body_params,
|
141
141
|
post_params=form_params,
|
142
142
|
files=local_var_files,
|
143
|
-
response_type='
|
143
|
+
response_type='Pulp2to3MigrationMigrationPlanRead', # noqa: E501
|
144
144
|
auth_settings=auth_settings,
|
145
145
|
async_req=local_var_params.get('async_req'),
|
146
146
|
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
@@ -392,7 +392,7 @@ class MigrationPlansApi(object):
|
|
392
392
|
number provided, it will be total request
|
393
393
|
timeout. It can also be a pair (tuple) of
|
394
394
|
(connection, read) timeouts.
|
395
|
-
:return:
|
395
|
+
:return: Pulp2to3MigrationMigrationPlanRead
|
396
396
|
If the method is called asynchronously,
|
397
397
|
returns the request thread.
|
398
398
|
"""
|
@@ -421,7 +421,7 @@ class MigrationPlansApi(object):
|
|
421
421
|
number provided, it will be total request
|
422
422
|
timeout. It can also be a pair (tuple) of
|
423
423
|
(connection, read) timeouts.
|
424
|
-
:return: tuple(
|
424
|
+
:return: tuple(Pulp2to3MigrationMigrationPlanRead, status_code(int), headers(HTTPHeaderDict))
|
425
425
|
If the method is called asynchronously,
|
426
426
|
returns the request thread.
|
427
427
|
"""
|
@@ -480,7 +480,7 @@ class MigrationPlansApi(object):
|
|
480
480
|
body=body_params,
|
481
481
|
post_params=form_params,
|
482
482
|
files=local_var_files,
|
483
|
-
response_type='
|
483
|
+
response_type='Pulp2to3MigrationMigrationPlanRead', # noqa: E501
|
484
484
|
auth_settings=auth_settings,
|
485
485
|
async_req=local_var_params.get('async_req'),
|
486
486
|
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
@@ -220,7 +220,7 @@ class Pulp2contentApi(object):
|
|
220
220
|
number provided, it will be total request
|
221
221
|
timeout. It can also be a pair (tuple) of
|
222
222
|
(connection, read) timeouts.
|
223
|
-
:return:
|
223
|
+
:return: Pulp2to3MigrationPulp2ContentRead
|
224
224
|
If the method is called asynchronously,
|
225
225
|
returns the request thread.
|
226
226
|
"""
|
@@ -249,7 +249,7 @@ class Pulp2contentApi(object):
|
|
249
249
|
number provided, it will be total request
|
250
250
|
timeout. It can also be a pair (tuple) of
|
251
251
|
(connection, read) timeouts.
|
252
|
-
:return: tuple(
|
252
|
+
:return: tuple(Pulp2to3MigrationPulp2ContentRead, status_code(int), headers(HTTPHeaderDict))
|
253
253
|
If the method is called asynchronously,
|
254
254
|
returns the request thread.
|
255
255
|
"""
|
@@ -308,7 +308,7 @@ class Pulp2contentApi(object):
|
|
308
308
|
body=body_params,
|
309
309
|
post_params=form_params,
|
310
310
|
files=local_var_files,
|
311
|
-
response_type='
|
311
|
+
response_type='Pulp2to3MigrationPulp2ContentRead', # noqa: E501
|
312
312
|
auth_settings=auth_settings,
|
313
313
|
async_req=local_var_params.get('async_req'),
|
314
314
|
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
@@ -192,7 +192,7 @@ class Pulp2repositoriesApi(object):
|
|
192
192
|
number provided, it will be total request
|
193
193
|
timeout. It can also be a pair (tuple) of
|
194
194
|
(connection, read) timeouts.
|
195
|
-
:return:
|
195
|
+
:return: Pulp2to3MigrationPulp2RepositoryRead
|
196
196
|
If the method is called asynchronously,
|
197
197
|
returns the request thread.
|
198
198
|
"""
|
@@ -221,7 +221,7 @@ class Pulp2repositoriesApi(object):
|
|
221
221
|
number provided, it will be total request
|
222
222
|
timeout. It can also be a pair (tuple) of
|
223
223
|
(connection, read) timeouts.
|
224
|
-
:return: tuple(
|
224
|
+
:return: tuple(Pulp2to3MigrationPulp2RepositoryRead, status_code(int), headers(HTTPHeaderDict))
|
225
225
|
If the method is called asynchronously,
|
226
226
|
returns the request thread.
|
227
227
|
"""
|
@@ -280,7 +280,7 @@ class Pulp2repositoriesApi(object):
|
|
280
280
|
body=body_params,
|
281
281
|
post_params=form_params,
|
282
282
|
files=local_var_files,
|
283
|
-
response_type='
|
283
|
+
response_type='Pulp2to3MigrationPulp2RepositoryRead', # noqa: E501
|
284
284
|
auth_settings=auth_settings,
|
285
285
|
async_req=local_var_params.get('async_req'),
|
286
286
|
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
@@ -20,5 +20,6 @@ from pulpcore.client.pulp_2to3_migration.models.inline_response2001 import Inlin
|
|
20
20
|
from pulpcore.client.pulp_2to3_migration.models.inline_response2002 import InlineResponse2002
|
21
21
|
from pulpcore.client.pulp_2to3_migration.models.migration_plan_run import MigrationPlanRun
|
22
22
|
from pulpcore.client.pulp_2to3_migration.models.pulp2to3_migration_migration_plan import Pulp2to3MigrationMigrationPlan
|
23
|
-
from pulpcore.client.pulp_2to3_migration.models.
|
24
|
-
from pulpcore.client.pulp_2to3_migration.models.
|
23
|
+
from pulpcore.client.pulp_2to3_migration.models.pulp2to3_migration_migration_plan_read import Pulp2to3MigrationMigrationPlanRead
|
24
|
+
from pulpcore.client.pulp_2to3_migration.models.pulp2to3_migration_pulp2_content_read import Pulp2to3MigrationPulp2ContentRead
|
25
|
+
from pulpcore.client.pulp_2to3_migration.models.pulp2to3_migration_pulp2_repository_read import Pulp2to3MigrationPulp2RepositoryRead
|
@@ -36,7 +36,7 @@ class InlineResponse200(object):
|
|
36
36
|
'count': 'int',
|
37
37
|
'next': 'str',
|
38
38
|
'previous': 'str',
|
39
|
-
'results': 'list[
|
39
|
+
'results': 'list[Pulp2to3MigrationMigrationPlanRead]'
|
40
40
|
}
|
41
41
|
|
42
42
|
attribute_map = {
|
@@ -134,7 +134,7 @@ class InlineResponse200(object):
|
|
134
134
|
|
135
135
|
|
136
136
|
:return: The results of this InlineResponse200. # noqa: E501
|
137
|
-
:rtype: list[
|
137
|
+
:rtype: list[Pulp2to3MigrationMigrationPlanRead]
|
138
138
|
"""
|
139
139
|
return self._results
|
140
140
|
|
@@ -144,7 +144,7 @@ class InlineResponse200(object):
|
|
144
144
|
|
145
145
|
|
146
146
|
:param results: The results of this InlineResponse200. # noqa: E501
|
147
|
-
:type: list[
|
147
|
+
:type: list[Pulp2to3MigrationMigrationPlanRead]
|
148
148
|
"""
|
149
149
|
if self.local_vars_configuration.client_side_validation and results is None: # noqa: E501
|
150
150
|
raise ValueError("Invalid value for `results`, must not be `None`") # noqa: E501
|
@@ -36,7 +36,7 @@ class InlineResponse2001(object):
|
|
36
36
|
'count': 'int',
|
37
37
|
'next': 'str',
|
38
38
|
'previous': 'str',
|
39
|
-
'results': 'list[
|
39
|
+
'results': 'list[Pulp2to3MigrationPulp2ContentRead]'
|
40
40
|
}
|
41
41
|
|
42
42
|
attribute_map = {
|
@@ -134,7 +134,7 @@ class InlineResponse2001(object):
|
|
134
134
|
|
135
135
|
|
136
136
|
:return: The results of this InlineResponse2001. # noqa: E501
|
137
|
-
:rtype: list[
|
137
|
+
:rtype: list[Pulp2to3MigrationPulp2ContentRead]
|
138
138
|
"""
|
139
139
|
return self._results
|
140
140
|
|
@@ -144,7 +144,7 @@ class InlineResponse2001(object):
|
|
144
144
|
|
145
145
|
|
146
146
|
:param results: The results of this InlineResponse2001. # noqa: E501
|
147
|
-
:type: list[
|
147
|
+
:type: list[Pulp2to3MigrationPulp2ContentRead]
|
148
148
|
"""
|
149
149
|
if self.local_vars_configuration.client_side_validation and results is None: # noqa: E501
|
150
150
|
raise ValueError("Invalid value for `results`, must not be `None`") # noqa: E501
|
@@ -36,7 +36,7 @@ class InlineResponse2002(object):
|
|
36
36
|
'count': 'int',
|
37
37
|
'next': 'str',
|
38
38
|
'previous': 'str',
|
39
|
-
'results': 'list[
|
39
|
+
'results': 'list[Pulp2to3MigrationPulp2RepositoryRead]'
|
40
40
|
}
|
41
41
|
|
42
42
|
attribute_map = {
|
@@ -134,7 +134,7 @@ class InlineResponse2002(object):
|
|
134
134
|
|
135
135
|
|
136
136
|
:return: The results of this InlineResponse2002. # noqa: E501
|
137
|
-
:rtype: list[
|
137
|
+
:rtype: list[Pulp2to3MigrationPulp2RepositoryRead]
|
138
138
|
"""
|
139
139
|
return self._results
|
140
140
|
|
@@ -144,7 +144,7 @@ class InlineResponse2002(object):
|
|
144
144
|
|
145
145
|
|
146
146
|
:param results: The results of this InlineResponse2002. # noqa: E501
|
147
|
-
:type: list[
|
147
|
+
:type: list[Pulp2to3MigrationPulp2RepositoryRead]
|
148
148
|
"""
|
149
149
|
if self.local_vars_configuration.client_side_validation and results is None: # noqa: E501
|
150
150
|
raise ValueError("Invalid value for `results`, must not be `None`") # noqa: E501
|
@@ -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()
|
@@ -18,7 +18,7 @@ import six
|
|
18
18
|
from pulpcore.client.pulp_2to3_migration.configuration import Configuration
|
19
19
|
|
20
20
|
|
21
|
-
class
|
21
|
+
class Pulp2to3MigrationPulp2ContentRead(object):
|
22
22
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
23
23
|
Ref: https://openapi-generator.tech
|
24
24
|
|
@@ -57,7 +57,7 @@ class Pulp2to3MigrationPulp2Content(object):
|
|
57
57
|
}
|
58
58
|
|
59
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
|
-
"""
|
60
|
+
"""Pulp2to3MigrationPulp2ContentRead - a model defined in OpenAPI""" # noqa: E501
|
61
61
|
if local_vars_configuration is None:
|
62
62
|
local_vars_configuration = Configuration()
|
63
63
|
self.local_vars_configuration = local_vars_configuration
|
@@ -89,20 +89,20 @@ class Pulp2to3MigrationPulp2Content(object):
|
|
89
89
|
|
90
90
|
@property
|
91
91
|
def pulp_href(self):
|
92
|
-
"""Gets the pulp_href of this
|
92
|
+
"""Gets the pulp_href of this Pulp2to3MigrationPulp2ContentRead. # noqa: E501
|
93
93
|
|
94
94
|
|
95
|
-
:return: The pulp_href of this
|
95
|
+
:return: The pulp_href of this Pulp2to3MigrationPulp2ContentRead. # noqa: E501
|
96
96
|
:rtype: str
|
97
97
|
"""
|
98
98
|
return self._pulp_href
|
99
99
|
|
100
100
|
@pulp_href.setter
|
101
101
|
def pulp_href(self, pulp_href):
|
102
|
-
"""Sets the pulp_href of this
|
102
|
+
"""Sets the pulp_href of this Pulp2to3MigrationPulp2ContentRead.
|
103
103
|
|
104
104
|
|
105
|
-
:param pulp_href: The pulp_href of this
|
105
|
+
:param pulp_href: The pulp_href of this Pulp2to3MigrationPulp2ContentRead. # noqa: E501
|
106
106
|
:type: str
|
107
107
|
"""
|
108
108
|
|
@@ -110,22 +110,22 @@ class Pulp2to3MigrationPulp2Content(object):
|
|
110
110
|
|
111
111
|
@property
|
112
112
|
def pulp_created(self):
|
113
|
-
"""Gets the pulp_created of this
|
113
|
+
"""Gets the pulp_created of this Pulp2to3MigrationPulp2ContentRead. # noqa: E501
|
114
114
|
|
115
115
|
Timestamp of creation. # noqa: E501
|
116
116
|
|
117
|
-
:return: The pulp_created of this
|
117
|
+
:return: The pulp_created of this Pulp2to3MigrationPulp2ContentRead. # noqa: E501
|
118
118
|
:rtype: datetime
|
119
119
|
"""
|
120
120
|
return self._pulp_created
|
121
121
|
|
122
122
|
@pulp_created.setter
|
123
123
|
def pulp_created(self, pulp_created):
|
124
|
-
"""Sets the pulp_created of this
|
124
|
+
"""Sets the pulp_created of this Pulp2to3MigrationPulp2ContentRead.
|
125
125
|
|
126
126
|
Timestamp of creation. # noqa: E501
|
127
127
|
|
128
|
-
:param pulp_created: The pulp_created of this
|
128
|
+
:param pulp_created: The pulp_created of this Pulp2to3MigrationPulp2ContentRead. # noqa: E501
|
129
129
|
:type: datetime
|
130
130
|
"""
|
131
131
|
|
@@ -133,20 +133,20 @@ class Pulp2to3MigrationPulp2Content(object):
|
|
133
133
|
|
134
134
|
@property
|
135
135
|
def pulp2_id(self):
|
136
|
-
"""Gets the pulp2_id of this
|
136
|
+
"""Gets the pulp2_id of this Pulp2to3MigrationPulp2ContentRead. # noqa: E501
|
137
137
|
|
138
138
|
|
139
|
-
:return: The pulp2_id of this
|
139
|
+
:return: The pulp2_id of this Pulp2to3MigrationPulp2ContentRead. # noqa: E501
|
140
140
|
:rtype: str
|
141
141
|
"""
|
142
142
|
return self._pulp2_id
|
143
143
|
|
144
144
|
@pulp2_id.setter
|
145
145
|
def pulp2_id(self, pulp2_id):
|
146
|
-
"""Sets the pulp2_id of this
|
146
|
+
"""Sets the pulp2_id of this Pulp2to3MigrationPulp2ContentRead.
|
147
147
|
|
148
148
|
|
149
|
-
:param pulp2_id: The pulp2_id of this
|
149
|
+
:param pulp2_id: The pulp2_id of this Pulp2to3MigrationPulp2ContentRead. # noqa: E501
|
150
150
|
:type: str
|
151
151
|
"""
|
152
152
|
if self.local_vars_configuration.client_side_validation and pulp2_id is None: # noqa: E501
|
@@ -162,20 +162,20 @@ class Pulp2to3MigrationPulp2Content(object):
|
|
162
162
|
|
163
163
|
@property
|
164
164
|
def pulp2_content_type_id(self):
|
165
|
-
"""Gets the pulp2_content_type_id of this
|
165
|
+
"""Gets the pulp2_content_type_id of this Pulp2to3MigrationPulp2ContentRead. # noqa: E501
|
166
166
|
|
167
167
|
|
168
|
-
:return: The pulp2_content_type_id of this
|
168
|
+
:return: The pulp2_content_type_id of this Pulp2to3MigrationPulp2ContentRead. # noqa: E501
|
169
169
|
:rtype: str
|
170
170
|
"""
|
171
171
|
return self._pulp2_content_type_id
|
172
172
|
|
173
173
|
@pulp2_content_type_id.setter
|
174
174
|
def pulp2_content_type_id(self, pulp2_content_type_id):
|
175
|
-
"""Sets the pulp2_content_type_id of this
|
175
|
+
"""Sets the pulp2_content_type_id of this Pulp2to3MigrationPulp2ContentRead.
|
176
176
|
|
177
177
|
|
178
|
-
:param pulp2_content_type_id: The pulp2_content_type_id of this
|
178
|
+
:param pulp2_content_type_id: The pulp2_content_type_id of this Pulp2to3MigrationPulp2ContentRead. # noqa: E501
|
179
179
|
:type: str
|
180
180
|
"""
|
181
181
|
if self.local_vars_configuration.client_side_validation and pulp2_content_type_id is None: # noqa: E501
|
@@ -191,20 +191,20 @@ class Pulp2to3MigrationPulp2Content(object):
|
|
191
191
|
|
192
192
|
@property
|
193
193
|
def pulp2_last_updated(self):
|
194
|
-
"""Gets the pulp2_last_updated of this
|
194
|
+
"""Gets the pulp2_last_updated of this Pulp2to3MigrationPulp2ContentRead. # noqa: E501
|
195
195
|
|
196
196
|
|
197
|
-
:return: The pulp2_last_updated of this
|
197
|
+
:return: The pulp2_last_updated of this Pulp2to3MigrationPulp2ContentRead. # noqa: E501
|
198
198
|
:rtype: int
|
199
199
|
"""
|
200
200
|
return self._pulp2_last_updated
|
201
201
|
|
202
202
|
@pulp2_last_updated.setter
|
203
203
|
def pulp2_last_updated(self, pulp2_last_updated):
|
204
|
-
"""Sets the pulp2_last_updated of this
|
204
|
+
"""Sets the pulp2_last_updated of this Pulp2to3MigrationPulp2ContentRead.
|
205
205
|
|
206
206
|
|
207
|
-
:param pulp2_last_updated: The pulp2_last_updated of this
|
207
|
+
:param pulp2_last_updated: The pulp2_last_updated of this Pulp2to3MigrationPulp2ContentRead. # noqa: E501
|
208
208
|
:type: int
|
209
209
|
"""
|
210
210
|
if self.local_vars_configuration.client_side_validation and pulp2_last_updated is None: # noqa: E501
|
@@ -214,20 +214,20 @@ class Pulp2to3MigrationPulp2Content(object):
|
|
214
214
|
|
215
215
|
@property
|
216
216
|
def pulp2_storage_path(self):
|
217
|
-
"""Gets the pulp2_storage_path of this
|
217
|
+
"""Gets the pulp2_storage_path of this Pulp2to3MigrationPulp2ContentRead. # noqa: E501
|
218
218
|
|
219
219
|
|
220
|
-
:return: The pulp2_storage_path of this
|
220
|
+
:return: The pulp2_storage_path of this Pulp2to3MigrationPulp2ContentRead. # noqa: E501
|
221
221
|
:rtype: str
|
222
222
|
"""
|
223
223
|
return self._pulp2_storage_path
|
224
224
|
|
225
225
|
@pulp2_storage_path.setter
|
226
226
|
def pulp2_storage_path(self, pulp2_storage_path):
|
227
|
-
"""Sets the pulp2_storage_path of this
|
227
|
+
"""Sets the pulp2_storage_path of this Pulp2to3MigrationPulp2ContentRead.
|
228
228
|
|
229
229
|
|
230
|
-
:param pulp2_storage_path: The pulp2_storage_path of this
|
230
|
+
:param pulp2_storage_path: The pulp2_storage_path of this Pulp2to3MigrationPulp2ContentRead. # noqa: E501
|
231
231
|
:type: str
|
232
232
|
"""
|
233
233
|
if self.local_vars_configuration.client_side_validation and pulp2_storage_path is None: # noqa: E501
|
@@ -240,20 +240,20 @@ class Pulp2to3MigrationPulp2Content(object):
|
|
240
240
|
|
241
241
|
@property
|
242
242
|
def downloaded(self):
|
243
|
-
"""Gets the downloaded of this
|
243
|
+
"""Gets the downloaded of this Pulp2to3MigrationPulp2ContentRead. # noqa: E501
|
244
244
|
|
245
245
|
|
246
|
-
:return: The downloaded of this
|
246
|
+
:return: The downloaded of this Pulp2to3MigrationPulp2ContentRead. # noqa: E501
|
247
247
|
:rtype: bool
|
248
248
|
"""
|
249
249
|
return self._downloaded
|
250
250
|
|
251
251
|
@downloaded.setter
|
252
252
|
def downloaded(self, downloaded):
|
253
|
-
"""Sets the downloaded of this
|
253
|
+
"""Sets the downloaded of this Pulp2to3MigrationPulp2ContentRead.
|
254
254
|
|
255
255
|
|
256
|
-
:param downloaded: The downloaded of this
|
256
|
+
:param downloaded: The downloaded of this Pulp2to3MigrationPulp2ContentRead. # noqa: E501
|
257
257
|
:type: bool
|
258
258
|
"""
|
259
259
|
|
@@ -261,20 +261,20 @@ class Pulp2to3MigrationPulp2Content(object):
|
|
261
261
|
|
262
262
|
@property
|
263
263
|
def pulp3_content(self):
|
264
|
-
"""Gets the pulp3_content of this
|
264
|
+
"""Gets the pulp3_content of this Pulp2to3MigrationPulp2ContentRead. # noqa: E501
|
265
265
|
|
266
266
|
|
267
|
-
:return: The pulp3_content of this
|
267
|
+
:return: The pulp3_content of this Pulp2to3MigrationPulp2ContentRead. # noqa: E501
|
268
268
|
:rtype: str
|
269
269
|
"""
|
270
270
|
return self._pulp3_content
|
271
271
|
|
272
272
|
@pulp3_content.setter
|
273
273
|
def pulp3_content(self, pulp3_content):
|
274
|
-
"""Sets the pulp3_content of this
|
274
|
+
"""Sets the pulp3_content of this Pulp2to3MigrationPulp2ContentRead.
|
275
275
|
|
276
276
|
|
277
|
-
:param pulp3_content: The pulp3_content of this
|
277
|
+
:param pulp3_content: The pulp3_content of this Pulp2to3MigrationPulp2ContentRead. # noqa: E501
|
278
278
|
:type: str
|
279
279
|
"""
|
280
280
|
|
@@ -282,22 +282,22 @@ class Pulp2to3MigrationPulp2Content(object):
|
|
282
282
|
|
283
283
|
@property
|
284
284
|
def pulp3_repository_version(self):
|
285
|
-
"""Gets the pulp3_repository_version of this
|
285
|
+
"""Gets the pulp3_repository_version of this Pulp2to3MigrationPulp2ContentRead. # noqa: E501
|
286
286
|
|
287
287
|
Get pulp3_repository_version href from pulp2repo if available # noqa: E501
|
288
288
|
|
289
|
-
:return: The pulp3_repository_version of this
|
289
|
+
:return: The pulp3_repository_version of this Pulp2to3MigrationPulp2ContentRead. # noqa: E501
|
290
290
|
:rtype: str
|
291
291
|
"""
|
292
292
|
return self._pulp3_repository_version
|
293
293
|
|
294
294
|
@pulp3_repository_version.setter
|
295
295
|
def pulp3_repository_version(self, pulp3_repository_version):
|
296
|
-
"""Sets the pulp3_repository_version of this
|
296
|
+
"""Sets the pulp3_repository_version of this Pulp2to3MigrationPulp2ContentRead.
|
297
297
|
|
298
298
|
Get pulp3_repository_version href from pulp2repo if available # noqa: E501
|
299
299
|
|
300
|
-
:param pulp3_repository_version: The pulp3_repository_version of this
|
300
|
+
:param pulp3_repository_version: The pulp3_repository_version of this Pulp2to3MigrationPulp2ContentRead. # noqa: E501
|
301
301
|
:type: str
|
302
302
|
"""
|
303
303
|
if (self.local_vars_configuration.client_side_validation and
|
@@ -340,14 +340,14 @@ class Pulp2to3MigrationPulp2Content(object):
|
|
340
340
|
|
341
341
|
def __eq__(self, other):
|
342
342
|
"""Returns true if both objects are equal"""
|
343
|
-
if not isinstance(other,
|
343
|
+
if not isinstance(other, Pulp2to3MigrationPulp2ContentRead):
|
344
344
|
return False
|
345
345
|
|
346
346
|
return self.to_dict() == other.to_dict()
|
347
347
|
|
348
348
|
def __ne__(self, other):
|
349
349
|
"""Returns true if both objects are not equal"""
|
350
|
-
if not isinstance(other,
|
350
|
+
if not isinstance(other, Pulp2to3MigrationPulp2ContentRead):
|
351
351
|
return True
|
352
352
|
|
353
353
|
return self.to_dict() != other.to_dict()
|