pulp_2to3_migration_client 0.12.0.dev1623642407 → 0.12.0.dev1624592835

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/README.md +4 -4
  4. data/build/lib/pulpcore/__init__.py +2 -0
  5. data/build/lib/pulpcore/client/__init__.py +2 -0
  6. data/build/lib/pulpcore/client/pulp_2to3_migration/__init__.py +43 -0
  7. data/build/lib/pulpcore/client/pulp_2to3_migration/api/__init__.py +8 -0
  8. data/build/lib/pulpcore/client/pulp_2to3_migration/api/migration_plans_api.py +761 -0
  9. data/build/lib/pulpcore/client/pulp_2to3_migration/api/pulp2_content_api.py +350 -0
  10. data/build/lib/pulpcore/client/pulp_2to3_migration/api/pulp2_repositories_api.py +313 -0
  11. data/build/lib/pulpcore/client/pulp_2to3_migration/api_client.py +667 -0
  12. data/build/lib/pulpcore/client/pulp_2to3_migration/configuration.py +427 -0
  13. data/build/lib/pulpcore/client/pulp_2to3_migration/exceptions.py +121 -0
  14. data/build/lib/pulpcore/client/pulp_2to3_migration/models/__init__.py +26 -0
  15. data/build/lib/pulpcore/client/pulp_2to3_migration/models/async_operation_response.py +124 -0
  16. data/build/lib/pulpcore/client/pulp_2to3_migration/models/migration_plan_run.py +179 -0
  17. data/build/lib/pulpcore/client/pulp_2to3_migration/models/paginatedpulp2to3_migration_migration_plan_response_list.py +197 -0
  18. data/build/lib/pulpcore/client/pulp_2to3_migration/models/paginatedpulp2to3_migration_pulp2_content_response_list.py +197 -0
  19. data/build/lib/pulpcore/client/pulp_2to3_migration/models/paginatedpulp2to3_migration_pulp2_repository_response_list.py +197 -0
  20. data/build/lib/pulpcore/client/pulp_2to3_migration/models/pulp2to3_migration_migration_plan.py +124 -0
  21. data/build/lib/pulpcore/client/pulp_2to3_migration/models/pulp2to3_migration_migration_plan_response.py +178 -0
  22. data/build/lib/pulpcore/client/pulp_2to3_migration/models/pulp2to3_migration_pulp2_content_response.py +338 -0
  23. data/build/lib/pulpcore/client/pulp_2to3_migration/models/pulp2to3_migration_pulp2_repository_response.py +416 -0
  24. data/build/lib/pulpcore/client/pulp_2to3_migration/rest.py +292 -0
  25. data/dist/pulp_2to3_migration-client-0.12.0.dev1624592827.tar.gz +0 -0
  26. data/dist/pulp_2to3_migration_client-0.12.0.dev1624592827-py3-none-any.whl +0 -0
  27. data/lib/pulp_2to3_migration_client.rb +1 -1
  28. data/lib/pulp_2to3_migration_client/api/migration_plans_api.rb +1 -1
  29. data/lib/pulp_2to3_migration_client/api/pulp2_content_api.rb +1 -1
  30. data/lib/pulp_2to3_migration_client/api/pulp2_repositories_api.rb +1 -1
  31. data/lib/pulp_2to3_migration_client/api_client.rb +12 -8
  32. data/lib/pulp_2to3_migration_client/api_error.rb +1 -1
  33. data/lib/pulp_2to3_migration_client/configuration.rb +8 -1
  34. data/lib/pulp_2to3_migration_client/models/async_operation_response.rb +1 -1
  35. data/lib/pulp_2to3_migration_client/models/migration_plan_run.rb +1 -1
  36. data/lib/pulp_2to3_migration_client/models/paginatedpulp2to3_migration_migration_plan_response_list.rb +1 -1
  37. data/lib/pulp_2to3_migration_client/models/paginatedpulp2to3_migration_pulp2_content_response_list.rb +1 -1
  38. data/lib/pulp_2to3_migration_client/models/paginatedpulp2to3_migration_pulp2_repository_response_list.rb +1 -1
  39. data/lib/pulp_2to3_migration_client/models/pulp2to3_migration_migration_plan.rb +1 -1
  40. data/lib/pulp_2to3_migration_client/models/pulp2to3_migration_migration_plan_response.rb +1 -1
  41. data/lib/pulp_2to3_migration_client/models/pulp2to3_migration_pulp2_content_response.rb +1 -1
  42. data/lib/pulp_2to3_migration_client/models/pulp2to3_migration_pulp2_repository_response.rb +1 -1
  43. data/lib/pulp_2to3_migration_client/version.rb +2 -2
  44. data/pulp_2to3_migration_client.egg-info/PKG-INFO +15 -0
  45. data/pulp_2to3_migration_client.egg-info/SOURCES.txt +41 -0
  46. data/pulp_2to3_migration_client.egg-info/dependency_links.txt +1 -0
  47. data/pulp_2to3_migration_client.egg-info/requires.txt +4 -0
  48. data/pulp_2to3_migration_client.egg-info/top_level.txt +1 -0
  49. data/pulp_2to3_migration_client.gemspec +1 -1
  50. data/pulpcore/__init__.py +2 -0
  51. data/pulpcore/client/__init__.py +2 -0
  52. data/pulpcore/client/pulp_2to3_migration/__init__.py +43 -0
  53. data/pulpcore/client/pulp_2to3_migration/api/__init__.py +8 -0
  54. data/pulpcore/client/pulp_2to3_migration/api/migration_plans_api.py +761 -0
  55. data/pulpcore/client/pulp_2to3_migration/api/pulp2_content_api.py +350 -0
  56. data/pulpcore/client/pulp_2to3_migration/api/pulp2_repositories_api.py +313 -0
  57. data/pulpcore/client/pulp_2to3_migration/api_client.py +667 -0
  58. data/pulpcore/client/pulp_2to3_migration/configuration.py +427 -0
  59. data/pulpcore/client/pulp_2to3_migration/exceptions.py +121 -0
  60. data/pulpcore/client/pulp_2to3_migration/models/__init__.py +26 -0
  61. data/pulpcore/client/pulp_2to3_migration/models/async_operation_response.py +124 -0
  62. data/pulpcore/client/pulp_2to3_migration/models/migration_plan_run.py +179 -0
  63. data/pulpcore/client/pulp_2to3_migration/models/paginatedpulp2to3_migration_migration_plan_response_list.py +197 -0
  64. data/pulpcore/client/pulp_2to3_migration/models/paginatedpulp2to3_migration_pulp2_content_response_list.py +197 -0
  65. data/pulpcore/client/pulp_2to3_migration/models/paginatedpulp2to3_migration_pulp2_repository_response_list.py +197 -0
  66. data/pulpcore/client/pulp_2to3_migration/models/pulp2to3_migration_migration_plan.py +124 -0
  67. data/pulpcore/client/pulp_2to3_migration/models/pulp2to3_migration_migration_plan_response.py +178 -0
  68. data/pulpcore/client/pulp_2to3_migration/models/pulp2to3_migration_pulp2_content_response.py +338 -0
  69. data/pulpcore/client/pulp_2to3_migration/models/pulp2to3_migration_pulp2_repository_response.py +416 -0
  70. data/pulpcore/client/pulp_2to3_migration/rest.py +292 -0
  71. data/requirements.txt +6 -0
  72. data/setup.cfg +2 -0
  73. data/setup.py +42 -0
  74. data/spec/api/migration_plans_api_spec.rb +1 -1
  75. data/spec/api/pulp2_content_api_spec.rb +1 -1
  76. data/spec/api/pulp2_repositories_api_spec.rb +1 -1
  77. data/spec/api_client_spec.rb +2 -2
  78. data/spec/configuration_spec.rb +1 -1
  79. data/spec/models/async_operation_response_spec.rb +1 -1
  80. data/spec/models/migration_plan_run_spec.rb +1 -1
  81. data/spec/models/paginatedpulp2to3_migration_migration_plan_response_list_spec.rb +1 -1
  82. data/spec/models/paginatedpulp2to3_migration_pulp2_content_response_list_spec.rb +1 -1
  83. data/spec/models/paginatedpulp2to3_migration_pulp2_repository_response_list_spec.rb +1 -1
  84. data/spec/models/pulp2to3_migration_migration_plan_response_spec.rb +1 -1
  85. data/spec/models/pulp2to3_migration_migration_plan_spec.rb +1 -1
  86. data/spec/models/pulp2to3_migration_pulp2_content_response_spec.rb +1 -1
  87. data/spec/models/pulp2to3_migration_pulp2_repository_response_spec.rb +1 -1
  88. data/spec/spec_helper.rb +1 -1
  89. data/test-requirements.txt +3 -0
  90. data/test/__init__.py +0 -0
  91. data/test/test_async_operation_response.py +54 -0
  92. data/test/test_migration_plan_run.py +55 -0
  93. data/test/test_migration_plans_api.py +76 -0
  94. data/test/test_paginatedpulp2to3_migration_migration_plan_response_list.py +61 -0
  95. data/test/test_paginatedpulp2to3_migration_pulp2_content_response_list.py +67 -0
  96. data/test/test_paginatedpulp2to3_migration_pulp2_repository_response_list.py +72 -0
  97. data/test/test_pulp2_content_api.py +48 -0
  98. data/test/test_pulp2_repositories_api.py +48 -0
  99. data/test/test_pulp2to3_migration_migration_plan.py +54 -0
  100. data/test/test_pulp2to3_migration_migration_plan_response.py +56 -0
  101. data/test/test_pulp2to3_migration_pulp2_content_response.py +65 -0
  102. data/test/test_pulp2to3_migration_pulp2_repository_response.py +69 -0
  103. data/tox.ini +9 -0
  104. metadata +74 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e08fe570e9dd58420125dd0e9b7dd1e3254315f8f6c1ba6d714b9d3455573243
4
- data.tar.gz: 15d8ba0db8c061e50b56293d8cc6f618b04de067e89b4729b1c58294615ba473
3
+ metadata.gz: bc3c2ad7e7fc7ff7916ae0066aa78e4d49ac326a38019ef9399ddcd7ca37a8a7
4
+ data.tar.gz: 1400551d3fa8fd26b22d313c2fd9e23e46dd168bee3b4b108f2de05a9480b96c
5
5
  SHA512:
6
- metadata.gz: 043332f795cb43ac69a1d61b964155681eab2a23dbcb6a560ab6d307b8886237617c59234e8006f2741e5fe24f5051daa761a359d5eaa7d9a182e60c9415deab
7
- data.tar.gz: 6bccf65ffc5fb63e1e9e874745ed1be543acaecb0709536ba5b80ad3396d5b7d29daafb24093881e1ecabaeaed0bbdaed4ff27648bbc39499a2f862e74d8a21f
6
+ metadata.gz: 690a71567ccff0193fedd985bd2723efde78c1901dbb88391463a518594c45255c4d907a48af49439d3bb2d082c1af0ab5883642c48f6d22eb333e71d11b0bc9
7
+ data.tar.gz: 20fa335e6f8b73592452632f4b0edd5ea9ed12f9ab1be92454a795b170ac7529eb6ed8fda84a320c74a099b97e27d3fe3ad12ddece386ba90a7532a3c46fd3db
data/Gemfile CHANGED
@@ -3,7 +3,7 @@ source 'https://rubygems.org'
3
3
  gemspec
4
4
 
5
5
  group :development, :test do
6
- gem 'rake', '~> 12.0.0'
6
+ gem 'rake', '~> 13.0.1'
7
7
  gem 'pry-byebug'
8
8
  gem 'rubocop', '~> 0.66.0'
9
9
  end
data/README.md CHANGED
@@ -7,7 +7,7 @@ Fetch, Upload, Organize, and Distribute Software Packages
7
7
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
8
 
9
9
  - API version: v3
10
- - Package version: 0.12.0.dev1623642407
10
+ - Package version: 0.12.0.dev1624592835
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
  For more information, please visit [https://pulpproject.org](https://pulpproject.org)
13
13
 
@@ -24,16 +24,16 @@ gem build pulp_2to3_migration_client.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./pulp_2to3_migration_client-0.12.0.dev1623642407.gem
27
+ gem install ./pulp_2to3_migration_client-0.12.0.dev1624592835.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./pulp_2to3_migration_client-0.12.0.dev1623642407.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./pulp_2to3_migration_client-0.12.0.dev1624592835.gem` to install the development dependencies)
31
31
 
32
32
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
33
33
 
34
34
  Finally add this to the Gemfile:
35
35
 
36
- gem 'pulp_2to3_migration_client', '~> 0.12.0.dev1623642407'
36
+ gem 'pulp_2to3_migration_client', '~> 0.12.0.dev1624592835'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -0,0 +1,2 @@
1
+ from pkgutil import extend_path
2
+ __path__ = extend_path(__path__, __name__)
@@ -0,0 +1,2 @@
1
+ from pkgutil import extend_path
2
+ __path__ = extend_path(__path__, __name__)
@@ -0,0 +1,43 @@
1
+ # coding: utf-8
2
+
3
+ # flake8: noqa
4
+
5
+ """
6
+ Pulp 3 API
7
+
8
+ Fetch, Upload, Organize, and Distribute Software Packages # noqa: E501
9
+
10
+ The version of the OpenAPI document: v3
11
+ Contact: pulp-list@redhat.com
12
+ Generated by: https://openapi-generator.tech
13
+ """
14
+
15
+
16
+ from __future__ import absolute_import
17
+
18
+ __version__ = "0.12.0.dev1624592827"
19
+
20
+ # import apis into sdk package
21
+ from pulpcore.client.pulp_2to3_migration.api.migration_plans_api import MigrationPlansApi
22
+ from pulpcore.client.pulp_2to3_migration.api.pulp2_content_api import Pulp2ContentApi
23
+ from pulpcore.client.pulp_2to3_migration.api.pulp2_repositories_api import Pulp2RepositoriesApi
24
+
25
+ # import ApiClient
26
+ from pulpcore.client.pulp_2to3_migration.api_client import ApiClient
27
+ from pulpcore.client.pulp_2to3_migration.configuration import Configuration
28
+ from pulpcore.client.pulp_2to3_migration.exceptions import OpenApiException
29
+ from pulpcore.client.pulp_2to3_migration.exceptions import ApiTypeError
30
+ from pulpcore.client.pulp_2to3_migration.exceptions import ApiValueError
31
+ from pulpcore.client.pulp_2to3_migration.exceptions import ApiKeyError
32
+ from pulpcore.client.pulp_2to3_migration.exceptions import ApiException
33
+ # import models into sdk package
34
+ from pulpcore.client.pulp_2to3_migration.models.async_operation_response import AsyncOperationResponse
35
+ from pulpcore.client.pulp_2to3_migration.models.migration_plan_run import MigrationPlanRun
36
+ from pulpcore.client.pulp_2to3_migration.models.paginatedpulp2to3_migration_migration_plan_response_list import Paginatedpulp2to3MigrationMigrationPlanResponseList
37
+ from pulpcore.client.pulp_2to3_migration.models.paginatedpulp2to3_migration_pulp2_content_response_list import Paginatedpulp2to3MigrationPulp2ContentResponseList
38
+ from pulpcore.client.pulp_2to3_migration.models.paginatedpulp2to3_migration_pulp2_repository_response_list import Paginatedpulp2to3MigrationPulp2RepositoryResponseList
39
+ from pulpcore.client.pulp_2to3_migration.models.pulp2to3_migration_migration_plan import Pulp2to3MigrationMigrationPlan
40
+ from pulpcore.client.pulp_2to3_migration.models.pulp2to3_migration_migration_plan_response import Pulp2to3MigrationMigrationPlanResponse
41
+ from pulpcore.client.pulp_2to3_migration.models.pulp2to3_migration_pulp2_content_response import Pulp2to3MigrationPulp2ContentResponse
42
+ from pulpcore.client.pulp_2to3_migration.models.pulp2to3_migration_pulp2_repository_response import Pulp2to3MigrationPulp2RepositoryResponse
43
+
@@ -0,0 +1,8 @@
1
+ from __future__ import absolute_import
2
+
3
+ # flake8: noqa
4
+
5
+ # import apis into api package
6
+ from pulpcore.client.pulp_2to3_migration.api.migration_plans_api import MigrationPlansApi
7
+ from pulpcore.client.pulp_2to3_migration.api.pulp2_content_api import Pulp2ContentApi
8
+ from pulpcore.client.pulp_2to3_migration.api.pulp2_repositories_api import Pulp2RepositoriesApi
@@ -0,0 +1,761 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Pulp 3 API
5
+
6
+ Fetch, Upload, Organize, and Distribute Software Packages # noqa: E501
7
+
8
+ The version of the OpenAPI document: v3
9
+ Contact: pulp-list@redhat.com
10
+ Generated by: https://openapi-generator.tech
11
+ """
12
+
13
+
14
+ from __future__ import absolute_import
15
+
16
+ import re # noqa: F401
17
+
18
+ # python 2 and python 3 compatibility library
19
+ import six
20
+
21
+ from pulpcore.client.pulp_2to3_migration.api_client import ApiClient
22
+ from pulpcore.client.pulp_2to3_migration.exceptions import ( # noqa: F401
23
+ ApiTypeError,
24
+ ApiValueError
25
+ )
26
+
27
+
28
+ class MigrationPlansApi(object):
29
+ """NOTE: This class is auto generated by OpenAPI Generator
30
+ Ref: https://openapi-generator.tech
31
+
32
+ Do not edit the class manually.
33
+ """
34
+
35
+ def __init__(self, api_client=None):
36
+ if api_client is None:
37
+ api_client = ApiClient()
38
+ self.api_client = api_client
39
+
40
+ def create(self, pulp2to3_migration_migration_plan, **kwargs): # noqa: E501
41
+ """Create a migration plan # noqa: E501
42
+
43
+ MigrationPlan ViewSet. # noqa: E501
44
+ This method makes a synchronous HTTP request by default. To make an
45
+ asynchronous HTTP request, please pass async_req=True
46
+ >>> thread = api.create(pulp2to3_migration_migration_plan, async_req=True)
47
+ >>> result = thread.get()
48
+
49
+ :param async_req bool: execute request asynchronously
50
+ :param Pulp2to3MigrationMigrationPlan pulp2to3_migration_migration_plan: (required)
51
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
52
+ be returned without reading/decoding response
53
+ data. Default is True.
54
+ :param _request_timeout: timeout setting for this request. If one
55
+ number provided, it will be total request
56
+ timeout. It can also be a pair (tuple) of
57
+ (connection, read) timeouts.
58
+ :return: Pulp2to3MigrationMigrationPlanResponse
59
+ If the method is called asynchronously,
60
+ returns the request thread.
61
+ """
62
+ kwargs['_return_http_data_only'] = True
63
+ return self.create_with_http_info(pulp2to3_migration_migration_plan, **kwargs) # noqa: E501
64
+
65
+ def create_with_http_info(self, pulp2to3_migration_migration_plan, **kwargs): # noqa: E501
66
+ """Create a migration plan # noqa: E501
67
+
68
+ MigrationPlan ViewSet. # noqa: E501
69
+ This method makes a synchronous HTTP request by default. To make an
70
+ asynchronous HTTP request, please pass async_req=True
71
+ >>> thread = api.create_with_http_info(pulp2to3_migration_migration_plan, async_req=True)
72
+ >>> result = thread.get()
73
+
74
+ :param async_req bool: execute request asynchronously
75
+ :param Pulp2to3MigrationMigrationPlan pulp2to3_migration_migration_plan: (required)
76
+ :param _return_http_data_only: response data without head status code
77
+ and headers
78
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
79
+ be returned without reading/decoding response
80
+ data. Default is True.
81
+ :param _request_timeout: timeout setting for this request. If one
82
+ number provided, it will be total request
83
+ timeout. It can also be a pair (tuple) of
84
+ (connection, read) timeouts.
85
+ :return: tuple(Pulp2to3MigrationMigrationPlanResponse, status_code(int), headers(HTTPHeaderDict))
86
+ If the method is called asynchronously,
87
+ returns the request thread.
88
+ """
89
+
90
+ local_var_params = locals()
91
+
92
+ all_params = [
93
+ 'pulp2to3_migration_migration_plan'
94
+ ]
95
+ all_params.extend(
96
+ [
97
+ 'async_req',
98
+ '_return_http_data_only',
99
+ '_preload_content',
100
+ '_request_timeout'
101
+ ]
102
+ )
103
+
104
+ for key, val in six.iteritems(local_var_params['kwargs']):
105
+ if key not in all_params:
106
+ raise ApiTypeError(
107
+ "Got an unexpected keyword argument '%s'"
108
+ " to method create" % key
109
+ )
110
+ local_var_params[key] = val
111
+ del local_var_params['kwargs']
112
+ # verify the required parameter 'pulp2to3_migration_migration_plan' is set
113
+ if self.api_client.client_side_validation and ('pulp2to3_migration_migration_plan' not in local_var_params or # noqa: E501
114
+ local_var_params['pulp2to3_migration_migration_plan'] is None): # noqa: E501
115
+ raise ApiValueError("Missing the required parameter `pulp2to3_migration_migration_plan` when calling `create`") # noqa: E501
116
+
117
+ collection_formats = {}
118
+
119
+ path_params = {}
120
+
121
+ query_params = []
122
+
123
+ header_params = {}
124
+
125
+ form_params = []
126
+ local_var_files = {}
127
+
128
+ body_params = None
129
+ if 'pulp2to3_migration_migration_plan' in local_var_params:
130
+ body_params = local_var_params['pulp2to3_migration_migration_plan']
131
+ # HTTP header `Accept`
132
+ header_params['Accept'] = self.api_client.select_header_accept(
133
+ ['application/json']) # noqa: E501
134
+
135
+ # HTTP header `Content-Type`
136
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
137
+ ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data']) # noqa: E501
138
+
139
+ # Authentication setting
140
+ auth_settings = ['basicAuth', 'cookieAuth'] # noqa: E501
141
+
142
+ return self.api_client.call_api(
143
+ '/pulp/api/v3/migration-plans/', 'POST',
144
+ path_params,
145
+ query_params,
146
+ header_params,
147
+ body=body_params,
148
+ post_params=form_params,
149
+ files=local_var_files,
150
+ response_type='Pulp2to3MigrationMigrationPlanResponse', # noqa: E501
151
+ auth_settings=auth_settings,
152
+ async_req=local_var_params.get('async_req'),
153
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
154
+ _preload_content=local_var_params.get('_preload_content', True),
155
+ _request_timeout=local_var_params.get('_request_timeout'),
156
+ collection_formats=collection_formats)
157
+
158
+ def delete(self, pulp_2to3_migration_migration_plan_href, **kwargs): # noqa: E501
159
+ """Delete a migration plan # noqa: E501
160
+
161
+ MigrationPlan ViewSet. # noqa: E501
162
+ This method makes a synchronous HTTP request by default. To make an
163
+ asynchronous HTTP request, please pass async_req=True
164
+ >>> thread = api.delete(pulp_2to3_migration_migration_plan_href, async_req=True)
165
+ >>> result = thread.get()
166
+
167
+ :param async_req bool: execute request asynchronously
168
+ :param str pulp_2to3_migration_migration_plan_href: (required)
169
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
170
+ be returned without reading/decoding response
171
+ data. Default is True.
172
+ :param _request_timeout: timeout setting for this request. If one
173
+ number provided, it will be total request
174
+ timeout. It can also be a pair (tuple) of
175
+ (connection, read) timeouts.
176
+ :return: None
177
+ If the method is called asynchronously,
178
+ returns the request thread.
179
+ """
180
+ kwargs['_return_http_data_only'] = True
181
+ return self.delete_with_http_info(pulp_2to3_migration_migration_plan_href, **kwargs) # noqa: E501
182
+
183
+ def delete_with_http_info(self, pulp_2to3_migration_migration_plan_href, **kwargs): # noqa: E501
184
+ """Delete a migration plan # noqa: E501
185
+
186
+ MigrationPlan ViewSet. # noqa: E501
187
+ This method makes a synchronous HTTP request by default. To make an
188
+ asynchronous HTTP request, please pass async_req=True
189
+ >>> thread = api.delete_with_http_info(pulp_2to3_migration_migration_plan_href, async_req=True)
190
+ >>> result = thread.get()
191
+
192
+ :param async_req bool: execute request asynchronously
193
+ :param str pulp_2to3_migration_migration_plan_href: (required)
194
+ :param _return_http_data_only: response data without head status code
195
+ and headers
196
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
197
+ be returned without reading/decoding response
198
+ data. Default is True.
199
+ :param _request_timeout: timeout setting for this request. If one
200
+ number provided, it will be total request
201
+ timeout. It can also be a pair (tuple) of
202
+ (connection, read) timeouts.
203
+ :return: None
204
+ If the method is called asynchronously,
205
+ returns the request thread.
206
+ """
207
+
208
+ local_var_params = locals()
209
+
210
+ all_params = [
211
+ 'pulp_2to3_migration_migration_plan_href'
212
+ ]
213
+ all_params.extend(
214
+ [
215
+ 'async_req',
216
+ '_return_http_data_only',
217
+ '_preload_content',
218
+ '_request_timeout'
219
+ ]
220
+ )
221
+
222
+ for key, val in six.iteritems(local_var_params['kwargs']):
223
+ if key not in all_params:
224
+ raise ApiTypeError(
225
+ "Got an unexpected keyword argument '%s'"
226
+ " to method delete" % key
227
+ )
228
+ local_var_params[key] = val
229
+ del local_var_params['kwargs']
230
+ # verify the required parameter 'pulp_2to3_migration_migration_plan_href' is set
231
+ if self.api_client.client_side_validation and ('pulp_2to3_migration_migration_plan_href' not in local_var_params or # noqa: E501
232
+ local_var_params['pulp_2to3_migration_migration_plan_href'] is None): # noqa: E501
233
+ raise ApiValueError("Missing the required parameter `pulp_2to3_migration_migration_plan_href` when calling `delete`") # noqa: E501
234
+
235
+ collection_formats = {}
236
+
237
+ path_params = {}
238
+ if 'pulp_2to3_migration_migration_plan_href' in local_var_params:
239
+ path_params['pulp_2to3_migration_migration_plan_href'] = local_var_params['pulp_2to3_migration_migration_plan_href'] # noqa: E501
240
+
241
+ query_params = []
242
+
243
+ header_params = {}
244
+
245
+ form_params = []
246
+ local_var_files = {}
247
+
248
+ body_params = None
249
+ # Authentication setting
250
+ auth_settings = ['basicAuth', 'cookieAuth'] # noqa: E501
251
+
252
+ return self.api_client.call_api(
253
+ '{pulp_2to3_migration_migration_plan_href}', 'DELETE',
254
+ path_params,
255
+ query_params,
256
+ header_params,
257
+ body=body_params,
258
+ post_params=form_params,
259
+ files=local_var_files,
260
+ response_type=None, # noqa: E501
261
+ auth_settings=auth_settings,
262
+ async_req=local_var_params.get('async_req'),
263
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
264
+ _preload_content=local_var_params.get('_preload_content', True),
265
+ _request_timeout=local_var_params.get('_request_timeout'),
266
+ collection_formats=collection_formats)
267
+
268
+ def list(self, **kwargs): # noqa: E501
269
+ """List migration plans # noqa: E501
270
+
271
+ MigrationPlan ViewSet. # noqa: E501
272
+ This method makes a synchronous HTTP request by default. To make an
273
+ asynchronous HTTP request, please pass async_req=True
274
+ >>> thread = api.list(async_req=True)
275
+ >>> result = thread.get()
276
+
277
+ :param async_req bool: execute request asynchronously
278
+ :param int limit: Number of results to return per page.
279
+ :param int offset: The initial index from which to return the results.
280
+ :param str ordering: Which field to use when ordering the results.
281
+ :param str fields: A list of fields to include in the response.
282
+ :param str exclude_fields: A list of fields to exclude from the response.
283
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
284
+ be returned without reading/decoding response
285
+ data. Default is True.
286
+ :param _request_timeout: timeout setting for this request. If one
287
+ number provided, it will be total request
288
+ timeout. It can also be a pair (tuple) of
289
+ (connection, read) timeouts.
290
+ :return: Paginatedpulp2to3MigrationMigrationPlanResponseList
291
+ If the method is called asynchronously,
292
+ returns the request thread.
293
+ """
294
+ kwargs['_return_http_data_only'] = True
295
+ return self.list_with_http_info(**kwargs) # noqa: E501
296
+
297
+ def list_with_http_info(self, **kwargs): # noqa: E501
298
+ """List migration plans # noqa: E501
299
+
300
+ MigrationPlan ViewSet. # noqa: E501
301
+ This method makes a synchronous HTTP request by default. To make an
302
+ asynchronous HTTP request, please pass async_req=True
303
+ >>> thread = api.list_with_http_info(async_req=True)
304
+ >>> result = thread.get()
305
+
306
+ :param async_req bool: execute request asynchronously
307
+ :param int limit: Number of results to return per page.
308
+ :param int offset: The initial index from which to return the results.
309
+ :param str ordering: Which field to use when ordering the results.
310
+ :param str fields: A list of fields to include in the response.
311
+ :param str exclude_fields: A list of fields to exclude from the response.
312
+ :param _return_http_data_only: response data without head status code
313
+ and headers
314
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
315
+ be returned without reading/decoding response
316
+ data. Default is True.
317
+ :param _request_timeout: timeout setting for this request. If one
318
+ number provided, it will be total request
319
+ timeout. It can also be a pair (tuple) of
320
+ (connection, read) timeouts.
321
+ :return: tuple(Paginatedpulp2to3MigrationMigrationPlanResponseList, status_code(int), headers(HTTPHeaderDict))
322
+ If the method is called asynchronously,
323
+ returns the request thread.
324
+ """
325
+
326
+ local_var_params = locals()
327
+
328
+ all_params = [
329
+ 'limit',
330
+ 'offset',
331
+ 'ordering',
332
+ 'fields',
333
+ 'exclude_fields'
334
+ ]
335
+ all_params.extend(
336
+ [
337
+ 'async_req',
338
+ '_return_http_data_only',
339
+ '_preload_content',
340
+ '_request_timeout'
341
+ ]
342
+ )
343
+
344
+ for key, val in six.iteritems(local_var_params['kwargs']):
345
+ if key not in all_params:
346
+ raise ApiTypeError(
347
+ "Got an unexpected keyword argument '%s'"
348
+ " to method list" % key
349
+ )
350
+ local_var_params[key] = val
351
+ del local_var_params['kwargs']
352
+
353
+ collection_formats = {}
354
+
355
+ path_params = {}
356
+
357
+ query_params = []
358
+ if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
359
+ query_params.append(('limit', local_var_params['limit'])) # noqa: E501
360
+ if 'offset' in local_var_params and local_var_params['offset'] is not None: # noqa: E501
361
+ query_params.append(('offset', local_var_params['offset'])) # noqa: E501
362
+ if 'ordering' in local_var_params and local_var_params['ordering'] is not None: # noqa: E501
363
+ query_params.append(('ordering', local_var_params['ordering'])) # noqa: E501
364
+ if 'fields' in local_var_params and local_var_params['fields'] is not None: # noqa: E501
365
+ query_params.append(('fields', local_var_params['fields'])) # noqa: E501
366
+ if 'exclude_fields' in local_var_params and local_var_params['exclude_fields'] is not None: # noqa: E501
367
+ query_params.append(('exclude_fields', local_var_params['exclude_fields'])) # noqa: E501
368
+
369
+ header_params = {}
370
+
371
+ form_params = []
372
+ local_var_files = {}
373
+
374
+ body_params = None
375
+ # HTTP header `Accept`
376
+ header_params['Accept'] = self.api_client.select_header_accept(
377
+ ['application/json']) # noqa: E501
378
+
379
+ # Authentication setting
380
+ auth_settings = ['basicAuth', 'cookieAuth'] # noqa: E501
381
+
382
+ return self.api_client.call_api(
383
+ '/pulp/api/v3/migration-plans/', 'GET',
384
+ path_params,
385
+ query_params,
386
+ header_params,
387
+ body=body_params,
388
+ post_params=form_params,
389
+ files=local_var_files,
390
+ response_type='Paginatedpulp2to3MigrationMigrationPlanResponseList', # noqa: E501
391
+ auth_settings=auth_settings,
392
+ async_req=local_var_params.get('async_req'),
393
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
394
+ _preload_content=local_var_params.get('_preload_content', True),
395
+ _request_timeout=local_var_params.get('_request_timeout'),
396
+ collection_formats=collection_formats)
397
+
398
+ def read(self, pulp_2to3_migration_migration_plan_href, **kwargs): # noqa: E501
399
+ """Inspect a migration plan # noqa: E501
400
+
401
+ MigrationPlan ViewSet. # noqa: E501
402
+ This method makes a synchronous HTTP request by default. To make an
403
+ asynchronous HTTP request, please pass async_req=True
404
+ >>> thread = api.read(pulp_2to3_migration_migration_plan_href, async_req=True)
405
+ >>> result = thread.get()
406
+
407
+ :param async_req bool: execute request asynchronously
408
+ :param str pulp_2to3_migration_migration_plan_href: (required)
409
+ :param str fields: A list of fields to include in the response.
410
+ :param str exclude_fields: A list of fields to exclude from the response.
411
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
412
+ be returned without reading/decoding response
413
+ data. Default is True.
414
+ :param _request_timeout: timeout setting for this request. If one
415
+ number provided, it will be total request
416
+ timeout. It can also be a pair (tuple) of
417
+ (connection, read) timeouts.
418
+ :return: Pulp2to3MigrationMigrationPlanResponse
419
+ If the method is called asynchronously,
420
+ returns the request thread.
421
+ """
422
+ kwargs['_return_http_data_only'] = True
423
+ return self.read_with_http_info(pulp_2to3_migration_migration_plan_href, **kwargs) # noqa: E501
424
+
425
+ def read_with_http_info(self, pulp_2to3_migration_migration_plan_href, **kwargs): # noqa: E501
426
+ """Inspect a migration plan # noqa: E501
427
+
428
+ MigrationPlan ViewSet. # noqa: E501
429
+ This method makes a synchronous HTTP request by default. To make an
430
+ asynchronous HTTP request, please pass async_req=True
431
+ >>> thread = api.read_with_http_info(pulp_2to3_migration_migration_plan_href, async_req=True)
432
+ >>> result = thread.get()
433
+
434
+ :param async_req bool: execute request asynchronously
435
+ :param str pulp_2to3_migration_migration_plan_href: (required)
436
+ :param str fields: A list of fields to include in the response.
437
+ :param str exclude_fields: A list of fields to exclude from the response.
438
+ :param _return_http_data_only: response data without head status code
439
+ and headers
440
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
441
+ be returned without reading/decoding response
442
+ data. Default is True.
443
+ :param _request_timeout: timeout setting for this request. If one
444
+ number provided, it will be total request
445
+ timeout. It can also be a pair (tuple) of
446
+ (connection, read) timeouts.
447
+ :return: tuple(Pulp2to3MigrationMigrationPlanResponse, status_code(int), headers(HTTPHeaderDict))
448
+ If the method is called asynchronously,
449
+ returns the request thread.
450
+ """
451
+
452
+ local_var_params = locals()
453
+
454
+ all_params = [
455
+ 'pulp_2to3_migration_migration_plan_href',
456
+ 'fields',
457
+ 'exclude_fields'
458
+ ]
459
+ all_params.extend(
460
+ [
461
+ 'async_req',
462
+ '_return_http_data_only',
463
+ '_preload_content',
464
+ '_request_timeout'
465
+ ]
466
+ )
467
+
468
+ for key, val in six.iteritems(local_var_params['kwargs']):
469
+ if key not in all_params:
470
+ raise ApiTypeError(
471
+ "Got an unexpected keyword argument '%s'"
472
+ " to method read" % key
473
+ )
474
+ local_var_params[key] = val
475
+ del local_var_params['kwargs']
476
+ # verify the required parameter 'pulp_2to3_migration_migration_plan_href' is set
477
+ if self.api_client.client_side_validation and ('pulp_2to3_migration_migration_plan_href' not in local_var_params or # noqa: E501
478
+ local_var_params['pulp_2to3_migration_migration_plan_href'] is None): # noqa: E501
479
+ raise ApiValueError("Missing the required parameter `pulp_2to3_migration_migration_plan_href` when calling `read`") # noqa: E501
480
+
481
+ collection_formats = {}
482
+
483
+ path_params = {}
484
+ if 'pulp_2to3_migration_migration_plan_href' in local_var_params:
485
+ path_params['pulp_2to3_migration_migration_plan_href'] = local_var_params['pulp_2to3_migration_migration_plan_href'] # noqa: E501
486
+
487
+ query_params = []
488
+ if 'fields' in local_var_params and local_var_params['fields'] is not None: # noqa: E501
489
+ query_params.append(('fields', local_var_params['fields'])) # noqa: E501
490
+ if 'exclude_fields' in local_var_params and local_var_params['exclude_fields'] is not None: # noqa: E501
491
+ query_params.append(('exclude_fields', local_var_params['exclude_fields'])) # noqa: E501
492
+
493
+ header_params = {}
494
+
495
+ form_params = []
496
+ local_var_files = {}
497
+
498
+ body_params = None
499
+ # HTTP header `Accept`
500
+ header_params['Accept'] = self.api_client.select_header_accept(
501
+ ['application/json']) # noqa: E501
502
+
503
+ # Authentication setting
504
+ auth_settings = ['basicAuth', 'cookieAuth'] # noqa: E501
505
+
506
+ return self.api_client.call_api(
507
+ '{pulp_2to3_migration_migration_plan_href}', 'GET',
508
+ path_params,
509
+ query_params,
510
+ header_params,
511
+ body=body_params,
512
+ post_params=form_params,
513
+ files=local_var_files,
514
+ response_type='Pulp2to3MigrationMigrationPlanResponse', # noqa: E501
515
+ auth_settings=auth_settings,
516
+ async_req=local_var_params.get('async_req'),
517
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
518
+ _preload_content=local_var_params.get('_preload_content', True),
519
+ _request_timeout=local_var_params.get('_request_timeout'),
520
+ collection_formats=collection_formats)
521
+
522
+ def reset(self, pulp_2to3_migration_migration_plan_href, **kwargs): # noqa: E501
523
+ """Reset Pulp 3 data for plugins specified in the migration plan # noqa: E501
524
+
525
+ Trigger an asynchronous task to remove data from Pulp 3 related to the plugins specified in the migration plan. # noqa: E501
526
+ This method makes a synchronous HTTP request by default. To make an
527
+ asynchronous HTTP request, please pass async_req=True
528
+ >>> thread = api.reset(pulp_2to3_migration_migration_plan_href, async_req=True)
529
+ >>> result = thread.get()
530
+
531
+ :param async_req bool: execute request asynchronously
532
+ :param str pulp_2to3_migration_migration_plan_href: (required)
533
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
534
+ be returned without reading/decoding response
535
+ data. Default is True.
536
+ :param _request_timeout: timeout setting for this request. If one
537
+ number provided, it will be total request
538
+ timeout. It can also be a pair (tuple) of
539
+ (connection, read) timeouts.
540
+ :return: AsyncOperationResponse
541
+ If the method is called asynchronously,
542
+ returns the request thread.
543
+ """
544
+ kwargs['_return_http_data_only'] = True
545
+ return self.reset_with_http_info(pulp_2to3_migration_migration_plan_href, **kwargs) # noqa: E501
546
+
547
+ def reset_with_http_info(self, pulp_2to3_migration_migration_plan_href, **kwargs): # noqa: E501
548
+ """Reset Pulp 3 data for plugins specified in the migration plan # noqa: E501
549
+
550
+ Trigger an asynchronous task to remove data from Pulp 3 related to the plugins specified in the migration plan. # noqa: E501
551
+ This method makes a synchronous HTTP request by default. To make an
552
+ asynchronous HTTP request, please pass async_req=True
553
+ >>> thread = api.reset_with_http_info(pulp_2to3_migration_migration_plan_href, async_req=True)
554
+ >>> result = thread.get()
555
+
556
+ :param async_req bool: execute request asynchronously
557
+ :param str pulp_2to3_migration_migration_plan_href: (required)
558
+ :param _return_http_data_only: response data without head status code
559
+ and headers
560
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
561
+ be returned without reading/decoding response
562
+ data. Default is True.
563
+ :param _request_timeout: timeout setting for this request. If one
564
+ number provided, it will be total request
565
+ timeout. It can also be a pair (tuple) of
566
+ (connection, read) timeouts.
567
+ :return: tuple(AsyncOperationResponse, status_code(int), headers(HTTPHeaderDict))
568
+ If the method is called asynchronously,
569
+ returns the request thread.
570
+ """
571
+
572
+ local_var_params = locals()
573
+
574
+ all_params = [
575
+ 'pulp_2to3_migration_migration_plan_href'
576
+ ]
577
+ all_params.extend(
578
+ [
579
+ 'async_req',
580
+ '_return_http_data_only',
581
+ '_preload_content',
582
+ '_request_timeout'
583
+ ]
584
+ )
585
+
586
+ for key, val in six.iteritems(local_var_params['kwargs']):
587
+ if key not in all_params:
588
+ raise ApiTypeError(
589
+ "Got an unexpected keyword argument '%s'"
590
+ " to method reset" % key
591
+ )
592
+ local_var_params[key] = val
593
+ del local_var_params['kwargs']
594
+ # verify the required parameter 'pulp_2to3_migration_migration_plan_href' is set
595
+ if self.api_client.client_side_validation and ('pulp_2to3_migration_migration_plan_href' not in local_var_params or # noqa: E501
596
+ local_var_params['pulp_2to3_migration_migration_plan_href'] is None): # noqa: E501
597
+ raise ApiValueError("Missing the required parameter `pulp_2to3_migration_migration_plan_href` when calling `reset`") # noqa: E501
598
+
599
+ collection_formats = {}
600
+
601
+ path_params = {}
602
+ if 'pulp_2to3_migration_migration_plan_href' in local_var_params:
603
+ path_params['pulp_2to3_migration_migration_plan_href'] = local_var_params['pulp_2to3_migration_migration_plan_href'] # noqa: E501
604
+
605
+ query_params = []
606
+
607
+ header_params = {}
608
+
609
+ form_params = []
610
+ local_var_files = {}
611
+
612
+ body_params = None
613
+ # HTTP header `Accept`
614
+ header_params['Accept'] = self.api_client.select_header_accept(
615
+ ['application/json']) # noqa: E501
616
+
617
+ # Authentication setting
618
+ auth_settings = ['basicAuth', 'cookieAuth'] # noqa: E501
619
+
620
+ return self.api_client.call_api(
621
+ '{pulp_2to3_migration_migration_plan_href}reset/', 'POST',
622
+ path_params,
623
+ query_params,
624
+ header_params,
625
+ body=body_params,
626
+ post_params=form_params,
627
+ files=local_var_files,
628
+ response_type='AsyncOperationResponse', # noqa: E501
629
+ auth_settings=auth_settings,
630
+ async_req=local_var_params.get('async_req'),
631
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
632
+ _preload_content=local_var_params.get('_preload_content', True),
633
+ _request_timeout=local_var_params.get('_request_timeout'),
634
+ collection_formats=collection_formats)
635
+
636
+ def run(self, pulp_2to3_migration_migration_plan_href, migration_plan_run, **kwargs): # noqa: E501
637
+ """Run migration plan # noqa: E501
638
+
639
+ Trigger an asynchronous task to run a migration from Pulp 2. # noqa: E501
640
+ This method makes a synchronous HTTP request by default. To make an
641
+ asynchronous HTTP request, please pass async_req=True
642
+ >>> thread = api.run(pulp_2to3_migration_migration_plan_href, migration_plan_run, async_req=True)
643
+ >>> result = thread.get()
644
+
645
+ :param async_req bool: execute request asynchronously
646
+ :param str pulp_2to3_migration_migration_plan_href: (required)
647
+ :param MigrationPlanRun migration_plan_run: (required)
648
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
649
+ be returned without reading/decoding response
650
+ data. Default is True.
651
+ :param _request_timeout: timeout setting for this request. If one
652
+ number provided, it will be total request
653
+ timeout. It can also be a pair (tuple) of
654
+ (connection, read) timeouts.
655
+ :return: AsyncOperationResponse
656
+ If the method is called asynchronously,
657
+ returns the request thread.
658
+ """
659
+ kwargs['_return_http_data_only'] = True
660
+ return self.run_with_http_info(pulp_2to3_migration_migration_plan_href, migration_plan_run, **kwargs) # noqa: E501
661
+
662
+ def run_with_http_info(self, pulp_2to3_migration_migration_plan_href, migration_plan_run, **kwargs): # noqa: E501
663
+ """Run migration plan # noqa: E501
664
+
665
+ Trigger an asynchronous task to run a migration from Pulp 2. # noqa: E501
666
+ This method makes a synchronous HTTP request by default. To make an
667
+ asynchronous HTTP request, please pass async_req=True
668
+ >>> thread = api.run_with_http_info(pulp_2to3_migration_migration_plan_href, migration_plan_run, async_req=True)
669
+ >>> result = thread.get()
670
+
671
+ :param async_req bool: execute request asynchronously
672
+ :param str pulp_2to3_migration_migration_plan_href: (required)
673
+ :param MigrationPlanRun migration_plan_run: (required)
674
+ :param _return_http_data_only: response data without head status code
675
+ and headers
676
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
677
+ be returned without reading/decoding response
678
+ data. Default is True.
679
+ :param _request_timeout: timeout setting for this request. If one
680
+ number provided, it will be total request
681
+ timeout. It can also be a pair (tuple) of
682
+ (connection, read) timeouts.
683
+ :return: tuple(AsyncOperationResponse, status_code(int), headers(HTTPHeaderDict))
684
+ If the method is called asynchronously,
685
+ returns the request thread.
686
+ """
687
+
688
+ local_var_params = locals()
689
+
690
+ all_params = [
691
+ 'pulp_2to3_migration_migration_plan_href',
692
+ 'migration_plan_run'
693
+ ]
694
+ all_params.extend(
695
+ [
696
+ 'async_req',
697
+ '_return_http_data_only',
698
+ '_preload_content',
699
+ '_request_timeout'
700
+ ]
701
+ )
702
+
703
+ for key, val in six.iteritems(local_var_params['kwargs']):
704
+ if key not in all_params:
705
+ raise ApiTypeError(
706
+ "Got an unexpected keyword argument '%s'"
707
+ " to method run" % key
708
+ )
709
+ local_var_params[key] = val
710
+ del local_var_params['kwargs']
711
+ # verify the required parameter 'pulp_2to3_migration_migration_plan_href' is set
712
+ if self.api_client.client_side_validation and ('pulp_2to3_migration_migration_plan_href' not in local_var_params or # noqa: E501
713
+ local_var_params['pulp_2to3_migration_migration_plan_href'] is None): # noqa: E501
714
+ raise ApiValueError("Missing the required parameter `pulp_2to3_migration_migration_plan_href` when calling `run`") # noqa: E501
715
+ # verify the required parameter 'migration_plan_run' is set
716
+ if self.api_client.client_side_validation and ('migration_plan_run' not in local_var_params or # noqa: E501
717
+ local_var_params['migration_plan_run'] is None): # noqa: E501
718
+ raise ApiValueError("Missing the required parameter `migration_plan_run` when calling `run`") # noqa: E501
719
+
720
+ collection_formats = {}
721
+
722
+ path_params = {}
723
+ if 'pulp_2to3_migration_migration_plan_href' in local_var_params:
724
+ path_params['pulp_2to3_migration_migration_plan_href'] = local_var_params['pulp_2to3_migration_migration_plan_href'] # noqa: E501
725
+
726
+ query_params = []
727
+
728
+ header_params = {}
729
+
730
+ form_params = []
731
+ local_var_files = {}
732
+
733
+ body_params = None
734
+ if 'migration_plan_run' in local_var_params:
735
+ body_params = local_var_params['migration_plan_run']
736
+ # HTTP header `Accept`
737
+ header_params['Accept'] = self.api_client.select_header_accept(
738
+ ['application/json']) # noqa: E501
739
+
740
+ # HTTP header `Content-Type`
741
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
742
+ ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data']) # noqa: E501
743
+
744
+ # Authentication setting
745
+ auth_settings = ['basicAuth', 'cookieAuth'] # noqa: E501
746
+
747
+ return self.api_client.call_api(
748
+ '{pulp_2to3_migration_migration_plan_href}run/', 'POST',
749
+ path_params,
750
+ query_params,
751
+ header_params,
752
+ body=body_params,
753
+ post_params=form_params,
754
+ files=local_var_files,
755
+ response_type='AsyncOperationResponse', # noqa: E501
756
+ auth_settings=auth_settings,
757
+ async_req=local_var_params.get('async_req'),
758
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
759
+ _preload_content=local_var_params.get('_preload_content', True),
760
+ _request_timeout=local_var_params.get('_request_timeout'),
761
+ collection_formats=collection_formats)