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.
Files changed (70) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +8 -7
  3. data/docs/InlineResponse200.md +1 -1
  4. data/docs/InlineResponse2001.md +1 -1
  5. data/docs/InlineResponse2002.md +1 -1
  6. data/docs/MigrationPlansApi.md +5 -5
  7. data/docs/Pulp2contentApi.md +3 -3
  8. data/docs/Pulp2repositoriesApi.md +3 -3
  9. data/docs/Pulp2to3MigrationMigrationPlanRead.md +21 -0
  10. data/docs/{Pulp2to3MigrationPulp2Content.md → Pulp2to3MigrationPulp2ContentRead.md} +5 -3
  11. data/docs/{Pulp2to3MigrationPulp2Repository.md → Pulp2to3MigrationPulp2RepositoryRead.md} +2 -2
  12. data/lib/pulp_2to3_migration_client.rb +3 -2
  13. data/lib/pulp_2to3_migration_client/api/migration_plans_api.rb +6 -6
  14. data/lib/pulp_2to3_migration_client/api/pulp2content_api.rb +3 -3
  15. data/lib/pulp_2to3_migration_client/api/pulp2repositories_api.rb +3 -3
  16. data/lib/pulp_2to3_migration_client/configuration.rb +2 -2
  17. data/lib/pulp_2to3_migration_client/models/inline_response200.rb +1 -1
  18. data/lib/pulp_2to3_migration_client/models/inline_response2001.rb +1 -1
  19. data/lib/pulp_2to3_migration_client/models/inline_response2002.rb +1 -1
  20. data/lib/pulp_2to3_migration_client/models/pulp2to3_migration_migration_plan_read.rb +231 -0
  21. data/lib/pulp_2to3_migration_client/models/{pulp2to3_migration_pulp2_content.rb → pulp2to3_migration_pulp2_content_read.rb} +33 -8
  22. data/lib/pulp_2to3_migration_client/models/{pulp2to3_migration_pulp2_repository.rb → pulp2to3_migration_pulp2_repository_read.rb} +3 -3
  23. data/lib/pulp_2to3_migration_client/version.rb +1 -1
  24. data/pulpcore/__init__.py +2 -0
  25. data/pulpcore/client/__init__.py +2 -0
  26. data/pulpcore/client/pulp_2to3_migration/__init__.py +42 -0
  27. data/pulpcore/client/pulp_2to3_migration/api/__init__.py +8 -0
  28. data/pulpcore/client/pulp_2to3_migration/api/migration_plans_api.py +609 -0
  29. data/pulpcore/client/pulp_2to3_migration/api/pulp2content_api.py +317 -0
  30. data/pulpcore/client/pulp_2to3_migration/api/pulp2repositories_api.py +289 -0
  31. data/pulpcore/client/pulp_2to3_migration/api_client.py +647 -0
  32. data/pulpcore/client/pulp_2to3_migration/configuration.py +387 -0
  33. data/pulpcore/client/pulp_2to3_migration/exceptions.py +120 -0
  34. data/pulpcore/client/pulp_2to3_migration/models/__init__.py +25 -0
  35. data/pulpcore/client/pulp_2to3_migration/models/async_operation_response.py +123 -0
  36. data/pulpcore/client/pulp_2to3_migration/models/inline_response200.py +198 -0
  37. data/pulpcore/client/pulp_2to3_migration/models/inline_response2001.py +198 -0
  38. data/pulpcore/client/pulp_2to3_migration/models/inline_response2002.py +198 -0
  39. data/pulpcore/client/pulp_2to3_migration/models/migration_plan_run.py +150 -0
  40. data/pulpcore/client/pulp_2to3_migration/models/pulp2to3_migration_migration_plan.py +177 -0
  41. data/pulpcore/client/pulp_2to3_migration/models/pulp2to3_migration_migration_plan_read.py +177 -0
  42. data/pulpcore/client/pulp_2to3_migration/models/pulp2to3_migration_pulp2_content_read.py +353 -0
  43. data/pulpcore/client/pulp_2to3_migration/models/pulp2to3_migration_pulp2_repository_read.py +441 -0
  44. data/pulpcore/client/pulp_2to3_migration/rest.py +296 -0
  45. data/requirements.txt +6 -0
  46. data/setup.cfg +2 -0
  47. data/setup.py +41 -0
  48. data/spec/api/migration_plans_api_spec.rb +2 -2
  49. data/spec/api/pulp2content_api_spec.rb +1 -1
  50. data/spec/api/pulp2repositories_api_spec.rb +1 -1
  51. data/spec/configuration_spec.rb +3 -3
  52. data/spec/models/pulp2to3_migration_migration_plan_read_spec.rb +53 -0
  53. data/spec/models/{pulp2to3_migration_pulp2_content_spec.rb → pulp2to3_migration_pulp2_content_read_spec.rb} +12 -6
  54. data/spec/models/{pulp2to3_migration_pulp2_repository_spec.rb → pulp2to3_migration_pulp2_repository_read_spec.rb} +6 -6
  55. data/test-requirements.txt +3 -0
  56. data/test/__init__.py +0 -0
  57. data/test/test_async_operation_response.py +53 -0
  58. data/test/test_inline_response200.py +67 -0
  59. data/test/test_inline_response2001.py +79 -0
  60. data/test/test_inline_response2002.py +89 -0
  61. data/test/test_migration_plan_run.py +53 -0
  62. data/test/test_migration_plans_api.py +68 -0
  63. data/test/test_pulp2content_api.py +47 -0
  64. data/test/test_pulp2repositories_api.py +47 -0
  65. data/test/test_pulp2to3_migration_migration_plan.py +55 -0
  66. data/test/test_pulp2to3_migration_migration_plan_read.py +55 -0
  67. data/test/test_pulp2to3_migration_pulp2_content_read.py +64 -0
  68. data/test/test_pulp2to3_migration_pulp2_repository_read.py +68 -0
  69. data/tox.ini +9 -0
  70. metadata +53 -10
@@ -0,0 +1,89 @@
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
+ from __future__ import absolute_import
14
+
15
+ import unittest
16
+ import datetime
17
+
18
+ import pulpcore.client.pulp_2to3_migration
19
+ from pulpcore.client.pulp_2to3_migration.models.inline_response2002 import InlineResponse2002 # noqa: E501
20
+ from pulpcore.client.pulp_2to3_migration.rest import ApiException
21
+
22
+ class TestInlineResponse2002(unittest.TestCase):
23
+ """InlineResponse2002 unit test stubs"""
24
+
25
+ def setUp(self):
26
+ pass
27
+
28
+ def tearDown(self):
29
+ pass
30
+
31
+ def make_instance(self, include_optional):
32
+ """Test InlineResponse2002
33
+ include_option is a boolean, when False only required
34
+ params are included, when True both required and
35
+ optional params are included """
36
+ # model = pulpcore.client.pulp_2to3_migration.models.inline_response2002.InlineResponse2002() # noqa: E501
37
+ if include_optional :
38
+ return InlineResponse2002(
39
+ count = 56,
40
+ next = '0',
41
+ previous = '0',
42
+ results = [
43
+ pulpcore.client.pulp_2to3_migration.models.pulp_2to3_migration/pulp2_repository_read.pulp_2to3_migration.Pulp2RepositoryRead(
44
+ pulp_href = '0',
45
+ pulp_created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
46
+ pulp2_object_id = '0',
47
+ pulp2_repo_id = '0',
48
+ pulp2_repo_type = '0',
49
+ is_migrated = True,
50
+ not_in_plan = True,
51
+ pulp3_repository_version = '0',
52
+ pulp3_remote_href = '0',
53
+ pulp3_publication_href = '0',
54
+ pulp3_distribution_hrefs = [
55
+ '0'
56
+ ],
57
+ pulp3_repository_href = '0', )
58
+ ]
59
+ )
60
+ else :
61
+ return InlineResponse2002(
62
+ count = 56,
63
+ results = [
64
+ pulpcore.client.pulp_2to3_migration.models.pulp_2to3_migration/pulp2_repository_read.pulp_2to3_migration.Pulp2RepositoryRead(
65
+ pulp_href = '0',
66
+ pulp_created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
67
+ pulp2_object_id = '0',
68
+ pulp2_repo_id = '0',
69
+ pulp2_repo_type = '0',
70
+ is_migrated = True,
71
+ not_in_plan = True,
72
+ pulp3_repository_version = '0',
73
+ pulp3_remote_href = '0',
74
+ pulp3_publication_href = '0',
75
+ pulp3_distribution_hrefs = [
76
+ '0'
77
+ ],
78
+ pulp3_repository_href = '0', )
79
+ ],
80
+ )
81
+
82
+ def testInlineResponse2002(self):
83
+ """Test InlineResponse2002"""
84
+ inst_req_only = self.make_instance(include_optional=False)
85
+ inst_req_and_optional = self.make_instance(include_optional=True)
86
+
87
+
88
+ if __name__ == '__main__':
89
+ unittest.main()
@@ -0,0 +1,53 @@
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
+ from __future__ import absolute_import
14
+
15
+ import unittest
16
+ import datetime
17
+
18
+ import pulpcore.client.pulp_2to3_migration
19
+ from pulpcore.client.pulp_2to3_migration.models.migration_plan_run import MigrationPlanRun # noqa: E501
20
+ from pulpcore.client.pulp_2to3_migration.rest import ApiException
21
+
22
+ class TestMigrationPlanRun(unittest.TestCase):
23
+ """MigrationPlanRun unit test stubs"""
24
+
25
+ def setUp(self):
26
+ pass
27
+
28
+ def tearDown(self):
29
+ pass
30
+
31
+ def make_instance(self, include_optional):
32
+ """Test MigrationPlanRun
33
+ include_option is a boolean, when False only required
34
+ params are included, when True both required and
35
+ optional params are included """
36
+ # model = pulpcore.client.pulp_2to3_migration.models.migration_plan_run.MigrationPlanRun() # noqa: E501
37
+ if include_optional :
38
+ return MigrationPlanRun(
39
+ validate = True,
40
+ dry_run = True
41
+ )
42
+ else :
43
+ return MigrationPlanRun(
44
+ )
45
+
46
+ def testMigrationPlanRun(self):
47
+ """Test MigrationPlanRun"""
48
+ inst_req_only = self.make_instance(include_optional=False)
49
+ inst_req_and_optional = self.make_instance(include_optional=True)
50
+
51
+
52
+ if __name__ == '__main__':
53
+ unittest.main()
@@ -0,0 +1,68 @@
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
+ from __future__ import absolute_import
14
+
15
+ import unittest
16
+
17
+ import pulpcore.client.pulp_2to3_migration
18
+ from pulpcore.client.pulp_2to3_migration.api.migration_plans_api import MigrationPlansApi # noqa: E501
19
+ from pulpcore.client.pulp_2to3_migration.rest import ApiException
20
+
21
+
22
+ class TestMigrationPlansApi(unittest.TestCase):
23
+ """MigrationPlansApi unit test stubs"""
24
+
25
+ def setUp(self):
26
+ self.api = pulpcore.client.pulp_2to3_migration.api.migration_plans_api.MigrationPlansApi() # noqa: E501
27
+
28
+ def tearDown(self):
29
+ pass
30
+
31
+ def test_create(self):
32
+ """Test case for create
33
+
34
+ Create a migration plan # noqa: E501
35
+ """
36
+ pass
37
+
38
+ def test_delete(self):
39
+ """Test case for delete
40
+
41
+ Delete a migration plan # noqa: E501
42
+ """
43
+ pass
44
+
45
+ def test_list(self):
46
+ """Test case for list
47
+
48
+ List migration plans # noqa: E501
49
+ """
50
+ pass
51
+
52
+ def test_read(self):
53
+ """Test case for read
54
+
55
+ Inspect a migration plan # noqa: E501
56
+ """
57
+ pass
58
+
59
+ def test_run(self):
60
+ """Test case for run
61
+
62
+ Run migration plan # noqa: E501
63
+ """
64
+ pass
65
+
66
+
67
+ if __name__ == '__main__':
68
+ unittest.main()
@@ -0,0 +1,47 @@
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
+ from __future__ import absolute_import
14
+
15
+ import unittest
16
+
17
+ import pulpcore.client.pulp_2to3_migration
18
+ from pulpcore.client.pulp_2to3_migration.api.pulp2content_api import Pulp2contentApi # noqa: E501
19
+ from pulpcore.client.pulp_2to3_migration.rest import ApiException
20
+
21
+
22
+ class TestPulp2contentApi(unittest.TestCase):
23
+ """Pulp2contentApi unit test stubs"""
24
+
25
+ def setUp(self):
26
+ self.api = pulpcore.client.pulp_2to3_migration.api.pulp2content_api.Pulp2contentApi() # noqa: E501
27
+
28
+ def tearDown(self):
29
+ pass
30
+
31
+ def test_list(self):
32
+ """Test case for list
33
+
34
+ List pulp2 contents # noqa: E501
35
+ """
36
+ pass
37
+
38
+ def test_read(self):
39
+ """Test case for read
40
+
41
+ Inspect a pulp2 content # noqa: E501
42
+ """
43
+ pass
44
+
45
+
46
+ if __name__ == '__main__':
47
+ unittest.main()
@@ -0,0 +1,47 @@
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
+ from __future__ import absolute_import
14
+
15
+ import unittest
16
+
17
+ import pulpcore.client.pulp_2to3_migration
18
+ from pulpcore.client.pulp_2to3_migration.api.pulp2repositories_api import Pulp2repositoriesApi # noqa: E501
19
+ from pulpcore.client.pulp_2to3_migration.rest import ApiException
20
+
21
+
22
+ class TestPulp2repositoriesApi(unittest.TestCase):
23
+ """Pulp2repositoriesApi unit test stubs"""
24
+
25
+ def setUp(self):
26
+ self.api = pulpcore.client.pulp_2to3_migration.api.pulp2repositories_api.Pulp2repositoriesApi() # noqa: E501
27
+
28
+ def tearDown(self):
29
+ pass
30
+
31
+ def test_list(self):
32
+ """Test case for list
33
+
34
+ List pulp2 repositorys # noqa: E501
35
+ """
36
+ pass
37
+
38
+ def test_read(self):
39
+ """Test case for read
40
+
41
+ Inspect a pulp2 repository # noqa: E501
42
+ """
43
+ pass
44
+
45
+
46
+ if __name__ == '__main__':
47
+ unittest.main()
@@ -0,0 +1,55 @@
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
+ from __future__ import absolute_import
14
+
15
+ import unittest
16
+ import datetime
17
+
18
+ import pulpcore.client.pulp_2to3_migration
19
+ from pulpcore.client.pulp_2to3_migration.models.pulp2to3_migration_migration_plan import Pulp2to3MigrationMigrationPlan # noqa: E501
20
+ from pulpcore.client.pulp_2to3_migration.rest import ApiException
21
+
22
+ class TestPulp2to3MigrationMigrationPlan(unittest.TestCase):
23
+ """Pulp2to3MigrationMigrationPlan unit test stubs"""
24
+
25
+ def setUp(self):
26
+ pass
27
+
28
+ def tearDown(self):
29
+ pass
30
+
31
+ def make_instance(self, include_optional):
32
+ """Test Pulp2to3MigrationMigrationPlan
33
+ include_option is a boolean, when False only required
34
+ params are included, when True both required and
35
+ optional params are included """
36
+ # model = pulpcore.client.pulp_2to3_migration.models.pulp2to3_migration_migration_plan.Pulp2to3MigrationMigrationPlan() # noqa: E501
37
+ if include_optional :
38
+ return Pulp2to3MigrationMigrationPlan(
39
+ pulp_href = '0',
40
+ pulp_created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
41
+ plan = pulpcore.client.pulp_2to3_migration.models.plan.Plan()
42
+ )
43
+ else :
44
+ return Pulp2to3MigrationMigrationPlan(
45
+ plan = pulpcore.client.pulp_2to3_migration.models.plan.Plan(),
46
+ )
47
+
48
+ def testPulp2to3MigrationMigrationPlan(self):
49
+ """Test Pulp2to3MigrationMigrationPlan"""
50
+ inst_req_only = self.make_instance(include_optional=False)
51
+ inst_req_and_optional = self.make_instance(include_optional=True)
52
+
53
+
54
+ if __name__ == '__main__':
55
+ unittest.main()
@@ -0,0 +1,55 @@
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
+ from __future__ import absolute_import
14
+
15
+ import unittest
16
+ import datetime
17
+
18
+ import pulpcore.client.pulp_2to3_migration
19
+ from pulpcore.client.pulp_2to3_migration.models.pulp2to3_migration_migration_plan_read import Pulp2to3MigrationMigrationPlanRead # noqa: E501
20
+ from pulpcore.client.pulp_2to3_migration.rest import ApiException
21
+
22
+ class TestPulp2to3MigrationMigrationPlanRead(unittest.TestCase):
23
+ """Pulp2to3MigrationMigrationPlanRead unit test stubs"""
24
+
25
+ def setUp(self):
26
+ pass
27
+
28
+ def tearDown(self):
29
+ pass
30
+
31
+ def make_instance(self, include_optional):
32
+ """Test Pulp2to3MigrationMigrationPlanRead
33
+ include_option is a boolean, when False only required
34
+ params are included, when True both required and
35
+ optional params are included """
36
+ # model = pulpcore.client.pulp_2to3_migration.models.pulp2to3_migration_migration_plan_read.Pulp2to3MigrationMigrationPlanRead() # noqa: E501
37
+ if include_optional :
38
+ return Pulp2to3MigrationMigrationPlanRead(
39
+ pulp_href = '0',
40
+ pulp_created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
41
+ plan = pulpcore.client.pulp_2to3_migration.models.plan.Plan()
42
+ )
43
+ else :
44
+ return Pulp2to3MigrationMigrationPlanRead(
45
+ plan = pulpcore.client.pulp_2to3_migration.models.plan.Plan(),
46
+ )
47
+
48
+ def testPulp2to3MigrationMigrationPlanRead(self):
49
+ """Test Pulp2to3MigrationMigrationPlanRead"""
50
+ inst_req_only = self.make_instance(include_optional=False)
51
+ inst_req_and_optional = self.make_instance(include_optional=True)
52
+
53
+
54
+ if __name__ == '__main__':
55
+ unittest.main()
@@ -0,0 +1,64 @@
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
+ from __future__ import absolute_import
14
+
15
+ import unittest
16
+ import datetime
17
+
18
+ import pulpcore.client.pulp_2to3_migration
19
+ from pulpcore.client.pulp_2to3_migration.models.pulp2to3_migration_pulp2_content_read import Pulp2to3MigrationPulp2ContentRead # noqa: E501
20
+ from pulpcore.client.pulp_2to3_migration.rest import ApiException
21
+
22
+ class TestPulp2to3MigrationPulp2ContentRead(unittest.TestCase):
23
+ """Pulp2to3MigrationPulp2ContentRead unit test stubs"""
24
+
25
+ def setUp(self):
26
+ pass
27
+
28
+ def tearDown(self):
29
+ pass
30
+
31
+ def make_instance(self, include_optional):
32
+ """Test Pulp2to3MigrationPulp2ContentRead
33
+ include_option is a boolean, when False only required
34
+ params are included, when True both required and
35
+ optional params are included """
36
+ # model = pulpcore.client.pulp_2to3_migration.models.pulp2to3_migration_pulp2_content_read.Pulp2to3MigrationPulp2ContentRead() # noqa: E501
37
+ if include_optional :
38
+ return Pulp2to3MigrationPulp2ContentRead(
39
+ pulp_href = '0',
40
+ pulp_created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
41
+ pulp2_id = '0',
42
+ pulp2_content_type_id = '0',
43
+ pulp2_last_updated = 56,
44
+ pulp2_storage_path = '0',
45
+ downloaded = True,
46
+ pulp3_content = '0',
47
+ pulp3_repository_version = '0'
48
+ )
49
+ else :
50
+ return Pulp2to3MigrationPulp2ContentRead(
51
+ pulp2_id = '0',
52
+ pulp2_content_type_id = '0',
53
+ pulp2_last_updated = 56,
54
+ pulp2_storage_path = '0',
55
+ )
56
+
57
+ def testPulp2to3MigrationPulp2ContentRead(self):
58
+ """Test Pulp2to3MigrationPulp2ContentRead"""
59
+ inst_req_only = self.make_instance(include_optional=False)
60
+ inst_req_and_optional = self.make_instance(include_optional=True)
61
+
62
+
63
+ if __name__ == '__main__':
64
+ unittest.main()