pulp_2to3_migration_client 0.3.0b1.dev01595360000

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 (48) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/README.md +114 -0
  4. data/Rakefile +10 -0
  5. data/docs/AsyncOperationResponse.md +17 -0
  6. data/docs/InlineResponse200.md +23 -0
  7. data/docs/InlineResponse2001.md +23 -0
  8. data/docs/InlineResponse2002.md +23 -0
  9. data/docs/MigrationPlanRun.md +19 -0
  10. data/docs/MigrationPlansApi.md +295 -0
  11. data/docs/Pulp2contentApi.md +154 -0
  12. data/docs/Pulp2repositoriesApi.md +140 -0
  13. data/docs/Pulp2to3MigrationMigrationPlan.md +21 -0
  14. data/docs/Pulp2to3MigrationPulp2Content.md +33 -0
  15. data/docs/Pulp2to3MigrationPulp2Repository.md +39 -0
  16. data/git_push.sh +58 -0
  17. data/lib/pulp_2to3_migration_client.rb +50 -0
  18. data/lib/pulp_2to3_migration_client/api/migration_plans_api.rb +355 -0
  19. data/lib/pulp_2to3_migration_client/api/pulp2content_api.rb +194 -0
  20. data/lib/pulp_2to3_migration_client/api/pulp2repositories_api.rb +173 -0
  21. data/lib/pulp_2to3_migration_client/api_client.rb +402 -0
  22. data/lib/pulp_2to3_migration_client/api_error.rb +57 -0
  23. data/lib/pulp_2to3_migration_client/configuration.rb +243 -0
  24. data/lib/pulp_2to3_migration_client/models/async_operation_response.rb +212 -0
  25. data/lib/pulp_2to3_migration_client/models/inline_response200.rb +247 -0
  26. data/lib/pulp_2to3_migration_client/models/inline_response2001.rb +247 -0
  27. data/lib/pulp_2to3_migration_client/models/inline_response2002.rb +247 -0
  28. data/lib/pulp_2to3_migration_client/models/migration_plan_run.rb +221 -0
  29. data/lib/pulp_2to3_migration_client/models/pulp2to3_migration_migration_plan.rb +231 -0
  30. data/lib/pulp_2to3_migration_client/models/pulp2to3_migration_pulp2_content.rb +393 -0
  31. data/lib/pulp_2to3_migration_client/models/pulp2to3_migration_pulp2_repository.rb +444 -0
  32. data/lib/pulp_2to3_migration_client/version.rb +15 -0
  33. data/pulp_2to3_migration_client.gemspec +39 -0
  34. data/spec/api/migration_plans_api_spec.rb +102 -0
  35. data/spec/api/pulp2content_api_spec.rb +76 -0
  36. data/spec/api/pulp2repositories_api_spec.rb +69 -0
  37. data/spec/api_client_spec.rb +188 -0
  38. data/spec/configuration_spec.rb +42 -0
  39. data/spec/models/async_operation_response_spec.rb +41 -0
  40. data/spec/models/inline_response2001_spec.rb +59 -0
  41. data/spec/models/inline_response2002_spec.rb +59 -0
  42. data/spec/models/inline_response200_spec.rb +59 -0
  43. data/spec/models/migration_plan_run_spec.rb +47 -0
  44. data/spec/models/pulp2to3_migration_migration_plan_spec.rb +53 -0
  45. data/spec/models/pulp2to3_migration_pulp2_content_spec.rb +89 -0
  46. data/spec/models/pulp2to3_migration_pulp2_repository_spec.rb +107 -0
  47. data/spec/spec_helper.rb +111 -0
  48. metadata +157 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 9d8be6074c67499720c8b6a789f2243aff0da5e01dacc66884be93b083ed6215
4
+ data.tar.gz: 938fc6cdb9a778fc705c1e16a9c4c5293fa4c648342f1c7d188428eb21dad016
5
+ SHA512:
6
+ metadata.gz: a0eef720cea3972f548d7c9d46beef825a996c390abaf9914f6b12c6a7336d7073bf40928b964b002784380a8476407d36d6c7fb1a0026d79e916dc2c9c845bf
7
+ data.tar.gz: f4f19e827ec41e9be9c7bb7af7d306a39affd288f8704b3457ce30118e572766ad2154ba77b663b09637e19836e373db9b8df7cdca4724c19c9a1b9810b46bcc
data/Gemfile ADDED
@@ -0,0 +1,9 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
4
+
5
+ group :development, :test do
6
+ gem 'rake', '~> 12.0.0'
7
+ gem 'pry-byebug'
8
+ gem 'rubocop', '~> 0.66.0'
9
+ end
@@ -0,0 +1,114 @@
1
+ # pulp_2to3_migration_client
2
+
3
+ Pulp2to3MigrationClient - the Ruby gem for the Pulp 3 API
4
+
5
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+
7
+ This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
+
9
+ - API version: v3
10
+ - Package version: 0.3.0b1.dev01595360000
11
+ - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
+
13
+ ## Installation
14
+
15
+ ### Build a gem
16
+
17
+ To build the Ruby code into a gem:
18
+
19
+ ```shell
20
+ gem build pulp_2to3_migration_client.gemspec
21
+ ```
22
+
23
+ Then either install the gem locally:
24
+
25
+ ```shell
26
+ gem install ./pulp_2to3_migration_client-0.3.0b1.dev01595360000.gem
27
+ ```
28
+
29
+ (for development, run `gem install --dev ./pulp_2to3_migration_client-0.3.0b1.dev01595360000.gem` to install the development dependencies)
30
+
31
+ or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
32
+
33
+ Finally add this to the Gemfile:
34
+
35
+ gem 'pulp_2to3_migration_client', '~> 0.3.0b1.dev01595360000'
36
+
37
+ ### Install from Git
38
+
39
+ If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:
40
+
41
+ gem 'pulp_2to3_migration_client', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
42
+
43
+ ### Include the Ruby code directly
44
+
45
+ Include the Ruby code directly using `-I` as follows:
46
+
47
+ ```shell
48
+ ruby -Ilib script.rb
49
+ ```
50
+
51
+ ## Getting Started
52
+
53
+ Please follow the [installation](#installation) procedure and then run the following code:
54
+
55
+ ```ruby
56
+ # Load the gem
57
+ require 'pulp_2to3_migration_client'
58
+
59
+ # Setup authorization
60
+ Pulp2to3MigrationClient.configure do |config|
61
+ # Configure HTTP basic authorization: Basic
62
+ config.username = 'YOUR_USERNAME'
63
+ config.password = 'YOUR_PASSWORD'
64
+ end
65
+
66
+ api_instance = Pulp2to3MigrationClient::MigrationPlansApi.new
67
+ data = Pulp2to3MigrationClient::Pulp2to3MigrationMigrationPlan.new # Pulp2to3MigrationMigrationPlan |
68
+
69
+ begin
70
+ #Create a migration plan
71
+ result = api_instance.create(data)
72
+ p result
73
+ rescue Pulp2to3MigrationClient::ApiError => e
74
+ puts "Exception when calling MigrationPlansApi->create: #{e}"
75
+ end
76
+
77
+ ```
78
+
79
+ ## Documentation for API Endpoints
80
+
81
+ All URIs are relative to *http://pulp*
82
+
83
+ Class | Method | HTTP request | Description
84
+ ------------ | ------------- | ------------- | -------------
85
+ *Pulp2to3MigrationClient::MigrationPlansApi* | [**create**](docs/MigrationPlansApi.md#create) | **POST** /pulp/api/v3/migration-plans/ | Create a migration plan
86
+ *Pulp2to3MigrationClient::MigrationPlansApi* | [**delete**](docs/MigrationPlansApi.md#delete) | **DELETE** {migration_plan_href} | Delete a migration plan
87
+ *Pulp2to3MigrationClient::MigrationPlansApi* | [**list**](docs/MigrationPlansApi.md#list) | **GET** /pulp/api/v3/migration-plans/ | List migration plans
88
+ *Pulp2to3MigrationClient::MigrationPlansApi* | [**read**](docs/MigrationPlansApi.md#read) | **GET** {migration_plan_href} | Inspect a migration plan
89
+ *Pulp2to3MigrationClient::MigrationPlansApi* | [**run**](docs/MigrationPlansApi.md#run) | **POST** {migration_plan_href}run/ | Run migration plan
90
+ *Pulp2to3MigrationClient::Pulp2contentApi* | [**list**](docs/Pulp2contentApi.md#list) | **GET** /pulp/api/v3/pulp2content/ | List pulp2 contents
91
+ *Pulp2to3MigrationClient::Pulp2contentApi* | [**read**](docs/Pulp2contentApi.md#read) | **GET** {pulp2_content_href} | Inspect a pulp2 content
92
+ *Pulp2to3MigrationClient::Pulp2repositoriesApi* | [**list**](docs/Pulp2repositoriesApi.md#list) | **GET** /pulp/api/v3/pulp2repositories/ | List pulp2 repositorys
93
+ *Pulp2to3MigrationClient::Pulp2repositoriesApi* | [**read**](docs/Pulp2repositoriesApi.md#read) | **GET** {pulp2_repository_href} | Inspect a pulp2 repository
94
+
95
+
96
+ ## Documentation for Models
97
+
98
+ - [Pulp2to3MigrationClient::AsyncOperationResponse](docs/AsyncOperationResponse.md)
99
+ - [Pulp2to3MigrationClient::InlineResponse200](docs/InlineResponse200.md)
100
+ - [Pulp2to3MigrationClient::InlineResponse2001](docs/InlineResponse2001.md)
101
+ - [Pulp2to3MigrationClient::InlineResponse2002](docs/InlineResponse2002.md)
102
+ - [Pulp2to3MigrationClient::MigrationPlanRun](docs/MigrationPlanRun.md)
103
+ - [Pulp2to3MigrationClient::Pulp2to3MigrationMigrationPlan](docs/Pulp2to3MigrationMigrationPlan.md)
104
+ - [Pulp2to3MigrationClient::Pulp2to3MigrationPulp2Content](docs/Pulp2to3MigrationPulp2Content.md)
105
+ - [Pulp2to3MigrationClient::Pulp2to3MigrationPulp2Repository](docs/Pulp2to3MigrationPulp2Repository.md)
106
+
107
+
108
+ ## Documentation for Authorization
109
+
110
+
111
+ ### Basic
112
+
113
+ - **Type**: HTTP basic authentication
114
+
@@ -0,0 +1,10 @@
1
+ require "bundler/gem_tasks"
2
+
3
+ begin
4
+ require 'rspec/core/rake_task'
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+ task default: :spec
8
+ rescue LoadError
9
+ # no rspec available
10
+ end
@@ -0,0 +1,17 @@
1
+ # Pulp2to3MigrationClient::AsyncOperationResponse
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **task** | **String** | The href of the task. |
8
+
9
+ ## Code Sample
10
+
11
+ ```ruby
12
+ require 'Pulp2to3MigrationClient'
13
+
14
+ instance = Pulp2to3MigrationClient::AsyncOperationResponse.new(task: null)
15
+ ```
16
+
17
+
@@ -0,0 +1,23 @@
1
+ # Pulp2to3MigrationClient::InlineResponse200
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **count** | **Integer** | |
8
+ **_next** | **String** | | [optional]
9
+ **previous** | **String** | | [optional]
10
+ **results** | [**Array<Pulp2to3MigrationMigrationPlan>**](Pulp2to3MigrationMigrationPlan.md) | |
11
+
12
+ ## Code Sample
13
+
14
+ ```ruby
15
+ require 'Pulp2to3MigrationClient'
16
+
17
+ instance = Pulp2to3MigrationClient::InlineResponse200.new(count: null,
18
+ _next: null,
19
+ previous: null,
20
+ results: null)
21
+ ```
22
+
23
+
@@ -0,0 +1,23 @@
1
+ # Pulp2to3MigrationClient::InlineResponse2001
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **count** | **Integer** | |
8
+ **_next** | **String** | | [optional]
9
+ **previous** | **String** | | [optional]
10
+ **results** | [**Array<Pulp2to3MigrationPulp2Content>**](Pulp2to3MigrationPulp2Content.md) | |
11
+
12
+ ## Code Sample
13
+
14
+ ```ruby
15
+ require 'Pulp2to3MigrationClient'
16
+
17
+ instance = Pulp2to3MigrationClient::InlineResponse2001.new(count: null,
18
+ _next: null,
19
+ previous: null,
20
+ results: null)
21
+ ```
22
+
23
+
@@ -0,0 +1,23 @@
1
+ # Pulp2to3MigrationClient::InlineResponse2002
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **count** | **Integer** | |
8
+ **_next** | **String** | | [optional]
9
+ **previous** | **String** | | [optional]
10
+ **results** | [**Array<Pulp2to3MigrationPulp2Repository>**](Pulp2to3MigrationPulp2Repository.md) | |
11
+
12
+ ## Code Sample
13
+
14
+ ```ruby
15
+ require 'Pulp2to3MigrationClient'
16
+
17
+ instance = Pulp2to3MigrationClient::InlineResponse2002.new(count: null,
18
+ _next: null,
19
+ previous: null,
20
+ results: null)
21
+ ```
22
+
23
+
@@ -0,0 +1,19 @@
1
+ # Pulp2to3MigrationClient::MigrationPlanRun
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **validate** | **Boolean** | If ``True``, migration cannot happen without successful validation of the Migration Plan | [optional] [default to false]
8
+ **dry_run** | **Boolean** | If ``True``, performs validation of a Migration Plan only, no migration is run. | [optional] [default to false]
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'Pulp2to3MigrationClient'
14
+
15
+ instance = Pulp2to3MigrationClient::MigrationPlanRun.new(validate: null,
16
+ dry_run: null)
17
+ ```
18
+
19
+
@@ -0,0 +1,295 @@
1
+ # Pulp2to3MigrationClient::MigrationPlansApi
2
+
3
+ All URIs are relative to *http://pulp*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**create**](MigrationPlansApi.md#create) | **POST** /pulp/api/v3/migration-plans/ | Create a migration plan
8
+ [**delete**](MigrationPlansApi.md#delete) | **DELETE** {migration_plan_href} | Delete a migration plan
9
+ [**list**](MigrationPlansApi.md#list) | **GET** /pulp/api/v3/migration-plans/ | List migration plans
10
+ [**read**](MigrationPlansApi.md#read) | **GET** {migration_plan_href} | Inspect a migration plan
11
+ [**run**](MigrationPlansApi.md#run) | **POST** {migration_plan_href}run/ | Run migration plan
12
+
13
+
14
+
15
+ ## create
16
+
17
+ > Pulp2to3MigrationMigrationPlan create(data)
18
+
19
+ Create a migration plan
20
+
21
+ MigrationPlan ViewSet.
22
+
23
+ ### Example
24
+
25
+ ```ruby
26
+ # load the gem
27
+ require 'pulp_2to3_migration_client'
28
+ # setup authorization
29
+ Pulp2to3MigrationClient.configure do |config|
30
+ # Configure HTTP basic authorization: Basic
31
+ config.username = 'YOUR USERNAME'
32
+ config.password = 'YOUR PASSWORD'
33
+ end
34
+
35
+ api_instance = Pulp2to3MigrationClient::MigrationPlansApi.new
36
+ data = Pulp2to3MigrationClient::Pulp2to3MigrationMigrationPlan.new # Pulp2to3MigrationMigrationPlan |
37
+
38
+ begin
39
+ #Create a migration plan
40
+ result = api_instance.create(data)
41
+ p result
42
+ rescue Pulp2to3MigrationClient::ApiError => e
43
+ puts "Exception when calling MigrationPlansApi->create: #{e}"
44
+ end
45
+ ```
46
+
47
+ ### Parameters
48
+
49
+
50
+ Name | Type | Description | Notes
51
+ ------------- | ------------- | ------------- | -------------
52
+ **data** | [**Pulp2to3MigrationMigrationPlan**](Pulp2to3MigrationMigrationPlan.md)| |
53
+
54
+ ### Return type
55
+
56
+ [**Pulp2to3MigrationMigrationPlan**](Pulp2to3MigrationMigrationPlan.md)
57
+
58
+ ### Authorization
59
+
60
+ [Basic](../README.md#Basic)
61
+
62
+ ### HTTP request headers
63
+
64
+ - **Content-Type**: application/json
65
+ - **Accept**: application/json
66
+
67
+
68
+ ## delete
69
+
70
+ > delete(migration_plan_href)
71
+
72
+ Delete a migration plan
73
+
74
+ MigrationPlan ViewSet.
75
+
76
+ ### Example
77
+
78
+ ```ruby
79
+ # load the gem
80
+ require 'pulp_2to3_migration_client'
81
+ # setup authorization
82
+ Pulp2to3MigrationClient.configure do |config|
83
+ # Configure HTTP basic authorization: Basic
84
+ config.username = 'YOUR USERNAME'
85
+ config.password = 'YOUR PASSWORD'
86
+ end
87
+
88
+ api_instance = Pulp2to3MigrationClient::MigrationPlansApi.new
89
+ migration_plan_href = 'migration_plan_href_example' # String | URI of Migration Plan. e.g.: /pulp/api/v3/migration-plans/1/
90
+
91
+ begin
92
+ #Delete a migration plan
93
+ api_instance.delete(migration_plan_href)
94
+ rescue Pulp2to3MigrationClient::ApiError => e
95
+ puts "Exception when calling MigrationPlansApi->delete: #{e}"
96
+ end
97
+ ```
98
+
99
+ ### Parameters
100
+
101
+
102
+ Name | Type | Description | Notes
103
+ ------------- | ------------- | ------------- | -------------
104
+ **migration_plan_href** | **String**| URI of Migration Plan. e.g.: /pulp/api/v3/migration-plans/1/ |
105
+
106
+ ### Return type
107
+
108
+ nil (empty response body)
109
+
110
+ ### Authorization
111
+
112
+ [Basic](../README.md#Basic)
113
+
114
+ ### HTTP request headers
115
+
116
+ - **Content-Type**: Not defined
117
+ - **Accept**: Not defined
118
+
119
+
120
+ ## list
121
+
122
+ > InlineResponse200 list(opts)
123
+
124
+ List migration plans
125
+
126
+ MigrationPlan ViewSet.
127
+
128
+ ### Example
129
+
130
+ ```ruby
131
+ # load the gem
132
+ require 'pulp_2to3_migration_client'
133
+ # setup authorization
134
+ Pulp2to3MigrationClient.configure do |config|
135
+ # Configure HTTP basic authorization: Basic
136
+ config.username = 'YOUR USERNAME'
137
+ config.password = 'YOUR PASSWORD'
138
+ end
139
+
140
+ api_instance = Pulp2to3MigrationClient::MigrationPlansApi.new
141
+ opts = {
142
+ ordering: 'ordering_example', # String | Which field to use when ordering the results.
143
+ limit: 56, # Integer | Number of results to return per page.
144
+ offset: 56, # Integer | The initial index from which to return the results.
145
+ fields: 'fields_example', # String | A list of fields to include in the response.
146
+ exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
147
+ }
148
+
149
+ begin
150
+ #List migration plans
151
+ result = api_instance.list(opts)
152
+ p result
153
+ rescue Pulp2to3MigrationClient::ApiError => e
154
+ puts "Exception when calling MigrationPlansApi->list: #{e}"
155
+ end
156
+ ```
157
+
158
+ ### Parameters
159
+
160
+
161
+ Name | Type | Description | Notes
162
+ ------------- | ------------- | ------------- | -------------
163
+ **ordering** | **String**| Which field to use when ordering the results. | [optional]
164
+ **limit** | **Integer**| Number of results to return per page. | [optional]
165
+ **offset** | **Integer**| The initial index from which to return the results. | [optional]
166
+ **fields** | **String**| A list of fields to include in the response. | [optional]
167
+ **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
168
+
169
+ ### Return type
170
+
171
+ [**InlineResponse200**](InlineResponse200.md)
172
+
173
+ ### Authorization
174
+
175
+ [Basic](../README.md#Basic)
176
+
177
+ ### HTTP request headers
178
+
179
+ - **Content-Type**: Not defined
180
+ - **Accept**: application/json
181
+
182
+
183
+ ## read
184
+
185
+ > Pulp2to3MigrationMigrationPlan read(migration_plan_href, opts)
186
+
187
+ Inspect a migration plan
188
+
189
+ MigrationPlan ViewSet.
190
+
191
+ ### Example
192
+
193
+ ```ruby
194
+ # load the gem
195
+ require 'pulp_2to3_migration_client'
196
+ # setup authorization
197
+ Pulp2to3MigrationClient.configure do |config|
198
+ # Configure HTTP basic authorization: Basic
199
+ config.username = 'YOUR USERNAME'
200
+ config.password = 'YOUR PASSWORD'
201
+ end
202
+
203
+ api_instance = Pulp2to3MigrationClient::MigrationPlansApi.new
204
+ migration_plan_href = 'migration_plan_href_example' # String | URI of Migration Plan. e.g.: /pulp/api/v3/migration-plans/1/
205
+ opts = {
206
+ fields: 'fields_example', # String | A list of fields to include in the response.
207
+ exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
208
+ }
209
+
210
+ begin
211
+ #Inspect a migration plan
212
+ result = api_instance.read(migration_plan_href, opts)
213
+ p result
214
+ rescue Pulp2to3MigrationClient::ApiError => e
215
+ puts "Exception when calling MigrationPlansApi->read: #{e}"
216
+ end
217
+ ```
218
+
219
+ ### Parameters
220
+
221
+
222
+ Name | Type | Description | Notes
223
+ ------------- | ------------- | ------------- | -------------
224
+ **migration_plan_href** | **String**| URI of Migration Plan. e.g.: /pulp/api/v3/migration-plans/1/ |
225
+ **fields** | **String**| A list of fields to include in the response. | [optional]
226
+ **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
227
+
228
+ ### Return type
229
+
230
+ [**Pulp2to3MigrationMigrationPlan**](Pulp2to3MigrationMigrationPlan.md)
231
+
232
+ ### Authorization
233
+
234
+ [Basic](../README.md#Basic)
235
+
236
+ ### HTTP request headers
237
+
238
+ - **Content-Type**: Not defined
239
+ - **Accept**: application/json
240
+
241
+
242
+ ## run
243
+
244
+ > AsyncOperationResponse run(migration_plan_href, data)
245
+
246
+ Run migration plan
247
+
248
+ Trigger an asynchronous task to run a migration from Pulp 2.
249
+
250
+ ### Example
251
+
252
+ ```ruby
253
+ # load the gem
254
+ require 'pulp_2to3_migration_client'
255
+ # setup authorization
256
+ Pulp2to3MigrationClient.configure do |config|
257
+ # Configure HTTP basic authorization: Basic
258
+ config.username = 'YOUR USERNAME'
259
+ config.password = 'YOUR PASSWORD'
260
+ end
261
+
262
+ api_instance = Pulp2to3MigrationClient::MigrationPlansApi.new
263
+ migration_plan_href = 'migration_plan_href_example' # String | URI of Migration Plan. e.g.: /pulp/api/v3/migration-plans/1/
264
+ data = Pulp2to3MigrationClient::MigrationPlanRun.new # MigrationPlanRun |
265
+
266
+ begin
267
+ #Run migration plan
268
+ result = api_instance.run(migration_plan_href, data)
269
+ p result
270
+ rescue Pulp2to3MigrationClient::ApiError => e
271
+ puts "Exception when calling MigrationPlansApi->run: #{e}"
272
+ end
273
+ ```
274
+
275
+ ### Parameters
276
+
277
+
278
+ Name | Type | Description | Notes
279
+ ------------- | ------------- | ------------- | -------------
280
+ **migration_plan_href** | **String**| URI of Migration Plan. e.g.: /pulp/api/v3/migration-plans/1/ |
281
+ **data** | [**MigrationPlanRun**](MigrationPlanRun.md)| |
282
+
283
+ ### Return type
284
+
285
+ [**AsyncOperationResponse**](AsyncOperationResponse.md)
286
+
287
+ ### Authorization
288
+
289
+ [Basic](../README.md#Basic)
290
+
291
+ ### HTTP request headers
292
+
293
+ - **Content-Type**: application/json
294
+ - **Accept**: application/json
295
+