pulp_2to3_migration_client 0.0.1a1.dev01569436440
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.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/README.md +110 -0
- data/Rakefile +10 -0
- data/docs/AsyncOperationResponse.md +17 -0
- data/docs/InlineResponse200.md +23 -0
- data/docs/InlineResponse2001.md +23 -0
- data/docs/MigrationPlan.md +21 -0
- data/docs/MigrationPlanRun.md +17 -0
- data/docs/MigrationPlansApi.md +289 -0
- data/docs/Pulp2Content.md +31 -0
- data/docs/Pulp2contentApi.md +148 -0
- data/git_push.sh +58 -0
- data/lib/pulp_2to3_migration_client/api/migration_plans_api.rb +346 -0
- data/lib/pulp_2to3_migration_client/api/pulp2content_api.rb +185 -0
- data/lib/pulp_2to3_migration_client/api_client.rb +402 -0
- data/lib/pulp_2to3_migration_client/api_error.rb +57 -0
- data/lib/pulp_2to3_migration_client/configuration.rb +243 -0
- data/lib/pulp_2to3_migration_client/models/async_operation_response.rb +202 -0
- data/lib/pulp_2to3_migration_client/models/inline_response200.rb +235 -0
- data/lib/pulp_2to3_migration_client/models/inline_response2001.rb +235 -0
- data/lib/pulp_2to3_migration_client/models/migration_plan.rb +221 -0
- data/lib/pulp_2to3_migration_client/models/migration_plan_run.rb +199 -0
- data/lib/pulp_2to3_migration_client/models/pulp2_content.rb +357 -0
- data/lib/pulp_2to3_migration_client/version.rb +15 -0
- data/lib/pulp_2to3_migration_client.rb +47 -0
- data/pulp_2to3_migration_client.gemspec +39 -0
- data/spec/api/migration_plans_api_spec.rb +99 -0
- data/spec/api/pulp2content_api_spec.rb +73 -0
- data/spec/api_client_spec.rb +188 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/async_operation_response_spec.rb +41 -0
- data/spec/models/inline_response2001_spec.rb +59 -0
- data/spec/models/inline_response200_spec.rb +59 -0
- data/spec/models/migration_plan_run_spec.rb +41 -0
- data/spec/models/migration_plan_spec.rb +53 -0
- data/spec/models/pulp2_content_spec.rb +83 -0
- data/spec/spec_helper.rb +111 -0
- metadata +146 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: fca62dc9a29c889486e7d8143c132f18b26efa1fadf825fe490c406532ca79fa
|
4
|
+
data.tar.gz: 1057fde59e06fcdf9e9a64b2a2a66dd62ce7f55aa3e888abd8f63af761e1fcd4
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 720bc2e1687791b98e1ccba57f6900f2450c8715a18eb106876824af694107ae427069dd7e8d04a90dacac62f6c6d29430081e4cc6a9dae437312dac1caad3ad
|
7
|
+
data.tar.gz: 5fcffd365d1e6d00216a5f98588c4f5ebf0b080ed6343c99d7653ba3eedc73e7b1c5ab90a38d5f144ca71912fb3cedad6893d1928d8ea504ee861f4fd865e2ca
|
data/Gemfile
ADDED
data/README.md
ADDED
@@ -0,0 +1,110 @@
|
|
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.0.1a1.dev01569436440
|
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.0.1a1.dev01569436440.gem
|
27
|
+
```
|
28
|
+
|
29
|
+
(for development, run `gem install --dev ./pulp_2to3_migration_client-0.0.1a1.dev01569436440.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.0.1a1.dev01569436440'
|
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::MigrationPlan.new # MigrationPlan |
|
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://localhost:24817*
|
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
|
+
|
93
|
+
|
94
|
+
## Documentation for Models
|
95
|
+
|
96
|
+
- [Pulp2to3MigrationClient::AsyncOperationResponse](docs/AsyncOperationResponse.md)
|
97
|
+
- [Pulp2to3MigrationClient::InlineResponse200](docs/InlineResponse200.md)
|
98
|
+
- [Pulp2to3MigrationClient::InlineResponse2001](docs/InlineResponse2001.md)
|
99
|
+
- [Pulp2to3MigrationClient::MigrationPlan](docs/MigrationPlan.md)
|
100
|
+
- [Pulp2to3MigrationClient::MigrationPlanRun](docs/MigrationPlanRun.md)
|
101
|
+
- [Pulp2to3MigrationClient::Pulp2Content](docs/Pulp2Content.md)
|
102
|
+
|
103
|
+
|
104
|
+
## Documentation for Authorization
|
105
|
+
|
106
|
+
|
107
|
+
### Basic
|
108
|
+
|
109
|
+
- **Type**: HTTP basic authentication
|
110
|
+
|
data/Rakefile
ADDED
@@ -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<MigrationPlan>**](MigrationPlan.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<Pulp2Content>**](Pulp2Content.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,21 @@
|
|
1
|
+
# Pulp2to3MigrationClient::MigrationPlan
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**_href** | **String** | | [optional]
|
8
|
+
**_created** | **DateTime** | Timestamp of creation. | [optional]
|
9
|
+
**plan** | **String** | Migration Plan in JSON format |
|
10
|
+
|
11
|
+
## Code Sample
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'Pulp2to3MigrationClient'
|
15
|
+
|
16
|
+
instance = Pulp2to3MigrationClient::MigrationPlan.new(_href: null,
|
17
|
+
_created: null,
|
18
|
+
plan: null)
|
19
|
+
```
|
20
|
+
|
21
|
+
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# Pulp2to3MigrationClient::MigrationPlanRun
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**dry_run** | **Boolean** | If ``True``, performs validation of a Migration Plan only, no migration is run. If ``False``, both validation and migration are run. | [optional] [default to false]
|
8
|
+
|
9
|
+
## Code Sample
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'Pulp2to3MigrationClient'
|
13
|
+
|
14
|
+
instance = Pulp2to3MigrationClient::MigrationPlanRun.new(dry_run: null)
|
15
|
+
```
|
16
|
+
|
17
|
+
|
@@ -0,0 +1,289 @@
|
|
1
|
+
# Pulp2to3MigrationClient::MigrationPlansApi
|
2
|
+
|
3
|
+
All URIs are relative to *http://localhost:24817*
|
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
|
+
> MigrationPlan 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::MigrationPlan.new # MigrationPlan |
|
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** | [**MigrationPlan**](MigrationPlan.md)| |
|
53
|
+
|
54
|
+
### Return type
|
55
|
+
|
56
|
+
[**MigrationPlan**](MigrationPlan.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
|
+
limit: 56, # Integer | Number of results to return per page.
|
143
|
+
offset: 56, # Integer | The initial index from which to return the results.
|
144
|
+
fields: 'fields_example' # String | A list of fields to include in the response.
|
145
|
+
}
|
146
|
+
|
147
|
+
begin
|
148
|
+
#List migration plans
|
149
|
+
result = api_instance.list(opts)
|
150
|
+
p result
|
151
|
+
rescue Pulp2to3MigrationClient::ApiError => e
|
152
|
+
puts "Exception when calling MigrationPlansApi->list: #{e}"
|
153
|
+
end
|
154
|
+
```
|
155
|
+
|
156
|
+
### Parameters
|
157
|
+
|
158
|
+
|
159
|
+
Name | Type | Description | Notes
|
160
|
+
------------- | ------------- | ------------- | -------------
|
161
|
+
**limit** | **Integer**| Number of results to return per page. | [optional]
|
162
|
+
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
163
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
164
|
+
|
165
|
+
### Return type
|
166
|
+
|
167
|
+
[**InlineResponse200**](InlineResponse200.md)
|
168
|
+
|
169
|
+
### Authorization
|
170
|
+
|
171
|
+
[Basic](../README.md#Basic)
|
172
|
+
|
173
|
+
### HTTP request headers
|
174
|
+
|
175
|
+
- **Content-Type**: Not defined
|
176
|
+
- **Accept**: application/json
|
177
|
+
|
178
|
+
|
179
|
+
## read
|
180
|
+
|
181
|
+
> MigrationPlan read(migration_plan_href, opts)
|
182
|
+
|
183
|
+
Inspect a migration plan
|
184
|
+
|
185
|
+
MigrationPlan ViewSet.
|
186
|
+
|
187
|
+
### Example
|
188
|
+
|
189
|
+
```ruby
|
190
|
+
# load the gem
|
191
|
+
require 'pulp_2to3_migration_client'
|
192
|
+
# setup authorization
|
193
|
+
Pulp2to3MigrationClient.configure do |config|
|
194
|
+
# Configure HTTP basic authorization: Basic
|
195
|
+
config.username = 'YOUR USERNAME'
|
196
|
+
config.password = 'YOUR PASSWORD'
|
197
|
+
end
|
198
|
+
|
199
|
+
api_instance = Pulp2to3MigrationClient::MigrationPlansApi.new
|
200
|
+
migration_plan_href = 'migration_plan_href_example' # String | URI of Migration Plan. e.g.: /pulp/api/v3/migration-plans/1/
|
201
|
+
opts = {
|
202
|
+
fields: 'fields_example' # String | A list of fields to include in the response.
|
203
|
+
}
|
204
|
+
|
205
|
+
begin
|
206
|
+
#Inspect a migration plan
|
207
|
+
result = api_instance.read(migration_plan_href, opts)
|
208
|
+
p result
|
209
|
+
rescue Pulp2to3MigrationClient::ApiError => e
|
210
|
+
puts "Exception when calling MigrationPlansApi->read: #{e}"
|
211
|
+
end
|
212
|
+
```
|
213
|
+
|
214
|
+
### Parameters
|
215
|
+
|
216
|
+
|
217
|
+
Name | Type | Description | Notes
|
218
|
+
------------- | ------------- | ------------- | -------------
|
219
|
+
**migration_plan_href** | **String**| URI of Migration Plan. e.g.: /pulp/api/v3/migration-plans/1/ |
|
220
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
221
|
+
|
222
|
+
### Return type
|
223
|
+
|
224
|
+
[**MigrationPlan**](MigrationPlan.md)
|
225
|
+
|
226
|
+
### Authorization
|
227
|
+
|
228
|
+
[Basic](../README.md#Basic)
|
229
|
+
|
230
|
+
### HTTP request headers
|
231
|
+
|
232
|
+
- **Content-Type**: Not defined
|
233
|
+
- **Accept**: application/json
|
234
|
+
|
235
|
+
|
236
|
+
## run
|
237
|
+
|
238
|
+
> AsyncOperationResponse run(migration_plan_href, data)
|
239
|
+
|
240
|
+
Run migration plan
|
241
|
+
|
242
|
+
Trigger an asynchronous task to run a migration from Pulp 2.
|
243
|
+
|
244
|
+
### Example
|
245
|
+
|
246
|
+
```ruby
|
247
|
+
# load the gem
|
248
|
+
require 'pulp_2to3_migration_client'
|
249
|
+
# setup authorization
|
250
|
+
Pulp2to3MigrationClient.configure do |config|
|
251
|
+
# Configure HTTP basic authorization: Basic
|
252
|
+
config.username = 'YOUR USERNAME'
|
253
|
+
config.password = 'YOUR PASSWORD'
|
254
|
+
end
|
255
|
+
|
256
|
+
api_instance = Pulp2to3MigrationClient::MigrationPlansApi.new
|
257
|
+
migration_plan_href = 'migration_plan_href_example' # String | URI of Migration Plan. e.g.: /pulp/api/v3/migration-plans/1/
|
258
|
+
data = Pulp2to3MigrationClient::MigrationPlanRun.new # MigrationPlanRun |
|
259
|
+
|
260
|
+
begin
|
261
|
+
#Run migration plan
|
262
|
+
result = api_instance.run(migration_plan_href, data)
|
263
|
+
p result
|
264
|
+
rescue Pulp2to3MigrationClient::ApiError => e
|
265
|
+
puts "Exception when calling MigrationPlansApi->run: #{e}"
|
266
|
+
end
|
267
|
+
```
|
268
|
+
|
269
|
+
### Parameters
|
270
|
+
|
271
|
+
|
272
|
+
Name | Type | Description | Notes
|
273
|
+
------------- | ------------- | ------------- | -------------
|
274
|
+
**migration_plan_href** | **String**| URI of Migration Plan. e.g.: /pulp/api/v3/migration-plans/1/ |
|
275
|
+
**data** | [**MigrationPlanRun**](MigrationPlanRun.md)| |
|
276
|
+
|
277
|
+
### Return type
|
278
|
+
|
279
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
280
|
+
|
281
|
+
### Authorization
|
282
|
+
|
283
|
+
[Basic](../README.md#Basic)
|
284
|
+
|
285
|
+
### HTTP request headers
|
286
|
+
|
287
|
+
- **Content-Type**: application/json
|
288
|
+
- **Accept**: application/json
|
289
|
+
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# Pulp2to3MigrationClient::Pulp2Content
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**_href** | **String** | | [optional]
|
8
|
+
**_created** | **DateTime** | Timestamp of creation. | [optional]
|
9
|
+
**pulp2_id** | **String** | |
|
10
|
+
**pulp2_content_type_id** | **String** | |
|
11
|
+
**pulp2_last_updated** | **Integer** | |
|
12
|
+
**pulp2_storage_path** | **String** | |
|
13
|
+
**downloaded** | **Boolean** | | [optional] [default to false]
|
14
|
+
**pulp3_content** | **String** | | [optional]
|
15
|
+
|
16
|
+
## Code Sample
|
17
|
+
|
18
|
+
```ruby
|
19
|
+
require 'Pulp2to3MigrationClient'
|
20
|
+
|
21
|
+
instance = Pulp2to3MigrationClient::Pulp2Content.new(_href: null,
|
22
|
+
_created: null,
|
23
|
+
pulp2_id: null,
|
24
|
+
pulp2_content_type_id: null,
|
25
|
+
pulp2_last_updated: null,
|
26
|
+
pulp2_storage_path: null,
|
27
|
+
downloaded: null,
|
28
|
+
pulp3_content: null)
|
29
|
+
```
|
30
|
+
|
31
|
+
|