pulp_2to3_migration_client 0.3.0b1.dev01595964989 → 0.3.0b1.dev01596397265
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 +4 -4
- data/README.md +14 -13
- data/docs/MigrationPlansApi.md +25 -21
- data/docs/Pulp2ContentApi.md +10 -8
- data/docs/Pulp2RepositoriesApi.md +10 -8
- data/lib/pulp_2to3_migration_client/api/migration_plans_api.rb +35 -27
- data/lib/pulp_2to3_migration_client/api/pulp2_content_api.rb +13 -9
- data/lib/pulp_2to3_migration_client/api/pulp2_repositories_api.rb +13 -9
- data/lib/pulp_2to3_migration_client/version.rb +1 -1
- data/spec/api/migration_plans_api_spec.rb +7 -3
- data/spec/api/pulp2_content_api_spec.rb +3 -1
- data/spec/api/pulp2_repositories_api_spec.rb +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f5e63776df5165b6ec8c94fefd2dcf569af15b67127fe310fe48f004e80633f6
|
4
|
+
data.tar.gz: d34012cd16a8f217906ea5159f2a8e7df5bee55e23a7feee7d6f681ee53945cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3da373296df7fdf997b9ace10e461baaf41f39cd3ce8a6549b06a2fd0bb36d17c694e532a69deed00290c162f9a341e166181db4462124ad8a63f2f0ab5a3f41
|
7
|
+
data.tar.gz: 6826eefbfcfcea2c49b38bb475e95cdacc20233a491518f6a19e73c98a37d2fd97d50c45093a867cf74c126b7b05de290a2480b96175f44975fb926dc9a6c7c8
|
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.3.0b1.
|
10
|
+
- Package version: 0.3.0b1.dev01596397265
|
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.3.0b1.
|
27
|
+
gem install ./pulp_2to3_migration_client-0.3.0b1.dev01596397265.gem
|
28
28
|
```
|
29
29
|
|
30
|
-
(for development, run `gem install --dev ./pulp_2to3_migration_client-0.3.0b1.
|
30
|
+
(for development, run `gem install --dev ./pulp_2to3_migration_client-0.3.0b1.dev01596397265.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.3.0b1.
|
36
|
+
gem 'pulp_2to3_migration_client', '~> 0.3.0b1.dev01596397265'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
@@ -68,6 +68,7 @@ api_instance = Pulp2to3MigrationClient::MigrationPlansApi.new
|
|
68
68
|
pulp2to3_migration_migration_plan = Pulp2to3MigrationClient::Pulp2to3MigrationMigrationPlan.new # Pulp2to3MigrationMigrationPlan |
|
69
69
|
|
70
70
|
begin
|
71
|
+
#Create a migration plan
|
71
72
|
result = api_instance.create(pulp2to3_migration_migration_plan)
|
72
73
|
p result
|
73
74
|
rescue Pulp2to3MigrationClient::ApiError => e
|
@@ -82,15 +83,15 @@ All URIs are relative to *http://pulp*
|
|
82
83
|
|
83
84
|
Class | Method | HTTP request | Description
|
84
85
|
------------ | ------------- | ------------- | -------------
|
85
|
-
*Pulp2to3MigrationClient::MigrationPlansApi* | [**create**](docs/MigrationPlansApi.md#create) | **POST** /pulp/api/v3/migration-plans/ |
|
86
|
-
*Pulp2to3MigrationClient::MigrationPlansApi* | [**delete**](docs/MigrationPlansApi.md#delete) | **DELETE** {
|
87
|
-
*Pulp2to3MigrationClient::MigrationPlansApi* | [**list**](docs/MigrationPlansApi.md#list) | **GET** /pulp/api/v3/migration-plans/ |
|
88
|
-
*Pulp2to3MigrationClient::MigrationPlansApi* | [**read**](docs/MigrationPlansApi.md#read) | **GET** {
|
89
|
-
*Pulp2to3MigrationClient::MigrationPlansApi* | [**run**](docs/MigrationPlansApi.md#run) | **POST** {
|
90
|
-
*Pulp2to3MigrationClient::Pulp2ContentApi* | [**list**](docs/Pulp2ContentApi.md#list) | **GET** /pulp/api/v3/pulp2content/ |
|
91
|
-
*Pulp2to3MigrationClient::Pulp2ContentApi* | [**read**](docs/Pulp2ContentApi.md#read) | **GET** {
|
92
|
-
*Pulp2to3MigrationClient::Pulp2RepositoriesApi* | [**list**](docs/Pulp2RepositoriesApi.md#list) | **GET** /pulp/api/v3/pulp2repositories/ |
|
93
|
-
*Pulp2to3MigrationClient::Pulp2RepositoriesApi* | [**read**](docs/Pulp2RepositoriesApi.md#read) | **GET** {
|
86
|
+
*Pulp2to3MigrationClient::MigrationPlansApi* | [**create**](docs/MigrationPlansApi.md#create) | **POST** /pulp/api/v3/migration-plans/ | Create a migration plan
|
87
|
+
*Pulp2to3MigrationClient::MigrationPlansApi* | [**delete**](docs/MigrationPlansApi.md#delete) | **DELETE** {pulp_2to3_migration_migration_plan_href} | Delete a migration plan
|
88
|
+
*Pulp2to3MigrationClient::MigrationPlansApi* | [**list**](docs/MigrationPlansApi.md#list) | **GET** /pulp/api/v3/migration-plans/ | List migration plans
|
89
|
+
*Pulp2to3MigrationClient::MigrationPlansApi* | [**read**](docs/MigrationPlansApi.md#read) | **GET** {pulp_2to3_migration_migration_plan_href} | Inspect a migration plan
|
90
|
+
*Pulp2to3MigrationClient::MigrationPlansApi* | [**run**](docs/MigrationPlansApi.md#run) | **POST** {pulp_2to3_migration_migration_plan_href}run/ | Run migration plan
|
91
|
+
*Pulp2to3MigrationClient::Pulp2ContentApi* | [**list**](docs/Pulp2ContentApi.md#list) | **GET** /pulp/api/v3/pulp2content/ | List pulp2 contents
|
92
|
+
*Pulp2to3MigrationClient::Pulp2ContentApi* | [**read**](docs/Pulp2ContentApi.md#read) | **GET** {pulp_2to3_migration_pulp2_content_href} | Inspect a pulp2 content
|
93
|
+
*Pulp2to3MigrationClient::Pulp2RepositoriesApi* | [**list**](docs/Pulp2RepositoriesApi.md#list) | **GET** /pulp/api/v3/pulp2repositories/ | List pulp2 repositorys
|
94
|
+
*Pulp2to3MigrationClient::Pulp2RepositoriesApi* | [**read**](docs/Pulp2RepositoriesApi.md#read) | **GET** {pulp_2to3_migration_pulp2_repository_href} | Inspect a pulp2 repository
|
94
95
|
|
95
96
|
|
96
97
|
## Documentation for Models
|
data/docs/MigrationPlansApi.md
CHANGED
@@ -4,11 +4,11 @@ All URIs are relative to *http://pulp*
|
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
-
[**create**](MigrationPlansApi.md#create) | **POST** /pulp/api/v3/migration-plans/ |
|
8
|
-
[**delete**](MigrationPlansApi.md#delete) | **DELETE** {
|
9
|
-
[**list**](MigrationPlansApi.md#list) | **GET** /pulp/api/v3/migration-plans/ |
|
10
|
-
[**read**](MigrationPlansApi.md#read) | **GET** {
|
11
|
-
[**run**](MigrationPlansApi.md#run) | **POST** {
|
7
|
+
[**create**](MigrationPlansApi.md#create) | **POST** /pulp/api/v3/migration-plans/ | Create a migration plan
|
8
|
+
[**delete**](MigrationPlansApi.md#delete) | **DELETE** {pulp_2to3_migration_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** {pulp_2to3_migration_migration_plan_href} | Inspect a migration plan
|
11
|
+
[**run**](MigrationPlansApi.md#run) | **POST** {pulp_2to3_migration_migration_plan_href}run/ | Run migration plan
|
12
12
|
|
13
13
|
|
14
14
|
|
@@ -16,7 +16,7 @@ Method | HTTP request | Description
|
|
16
16
|
|
17
17
|
> Pulp2to3MigrationMigrationPlanResponse create(pulp2to3_migration_migration_plan)
|
18
18
|
|
19
|
-
|
19
|
+
Create a migration plan
|
20
20
|
|
21
21
|
MigrationPlan ViewSet.
|
22
22
|
|
@@ -36,6 +36,7 @@ api_instance = Pulp2to3MigrationClient::MigrationPlansApi.new
|
|
36
36
|
pulp2to3_migration_migration_plan = Pulp2to3MigrationClient::Pulp2to3MigrationMigrationPlan.new # Pulp2to3MigrationMigrationPlan |
|
37
37
|
|
38
38
|
begin
|
39
|
+
#Create a migration plan
|
39
40
|
result = api_instance.create(pulp2to3_migration_migration_plan)
|
40
41
|
p result
|
41
42
|
rescue Pulp2to3MigrationClient::ApiError => e
|
@@ -66,9 +67,9 @@ Name | Type | Description | Notes
|
|
66
67
|
|
67
68
|
## delete
|
68
69
|
|
69
|
-
> delete(
|
70
|
-
|
70
|
+
> delete(pulp_2to3_migration_migration_plan_href)
|
71
71
|
|
72
|
+
Delete a migration plan
|
72
73
|
|
73
74
|
MigrationPlan ViewSet.
|
74
75
|
|
@@ -85,10 +86,11 @@ Pulp2to3MigrationClient.configure do |config|
|
|
85
86
|
end
|
86
87
|
|
87
88
|
api_instance = Pulp2to3MigrationClient::MigrationPlansApi.new
|
88
|
-
|
89
|
+
pulp_2to3_migration_migration_plan_href = 'pulp_2to3_migration_migration_plan_href_example' # String |
|
89
90
|
|
90
91
|
begin
|
91
|
-
|
92
|
+
#Delete a migration plan
|
93
|
+
api_instance.delete(pulp_2to3_migration_migration_plan_href)
|
92
94
|
rescue Pulp2to3MigrationClient::ApiError => e
|
93
95
|
puts "Exception when calling MigrationPlansApi->delete: #{e}"
|
94
96
|
end
|
@@ -99,7 +101,7 @@ end
|
|
99
101
|
|
100
102
|
Name | Type | Description | Notes
|
101
103
|
------------- | ------------- | ------------- | -------------
|
102
|
-
**
|
104
|
+
**pulp_2to3_migration_migration_plan_href** | **String**| |
|
103
105
|
|
104
106
|
### Return type
|
105
107
|
|
@@ -119,7 +121,7 @@ nil (empty response body)
|
|
119
121
|
|
120
122
|
> InlineResponse200 list(opts)
|
121
123
|
|
122
|
-
|
124
|
+
List migration plans
|
123
125
|
|
124
126
|
MigrationPlan ViewSet.
|
125
127
|
|
@@ -145,6 +147,7 @@ opts = {
|
|
145
147
|
}
|
146
148
|
|
147
149
|
begin
|
150
|
+
#List migration plans
|
148
151
|
result = api_instance.list(opts)
|
149
152
|
p result
|
150
153
|
rescue Pulp2to3MigrationClient::ApiError => e
|
@@ -179,9 +182,9 @@ Name | Type | Description | Notes
|
|
179
182
|
|
180
183
|
## read
|
181
184
|
|
182
|
-
> Pulp2to3MigrationMigrationPlanResponse read(
|
183
|
-
|
185
|
+
> Pulp2to3MigrationMigrationPlanResponse read(pulp_2to3_migration_migration_plan_href, opts)
|
184
186
|
|
187
|
+
Inspect a migration plan
|
185
188
|
|
186
189
|
MigrationPlan ViewSet.
|
187
190
|
|
@@ -198,14 +201,15 @@ Pulp2to3MigrationClient.configure do |config|
|
|
198
201
|
end
|
199
202
|
|
200
203
|
api_instance = Pulp2to3MigrationClient::MigrationPlansApi.new
|
201
|
-
|
204
|
+
pulp_2to3_migration_migration_plan_href = 'pulp_2to3_migration_migration_plan_href_example' # String |
|
202
205
|
opts = {
|
203
206
|
fields: 'fields_example', # String | A list of fields to include in the response.
|
204
207
|
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
205
208
|
}
|
206
209
|
|
207
210
|
begin
|
208
|
-
|
211
|
+
#Inspect a migration plan
|
212
|
+
result = api_instance.read(pulp_2to3_migration_migration_plan_href, opts)
|
209
213
|
p result
|
210
214
|
rescue Pulp2to3MigrationClient::ApiError => e
|
211
215
|
puts "Exception when calling MigrationPlansApi->read: #{e}"
|
@@ -217,7 +221,7 @@ end
|
|
217
221
|
|
218
222
|
Name | Type | Description | Notes
|
219
223
|
------------- | ------------- | ------------- | -------------
|
220
|
-
**
|
224
|
+
**pulp_2to3_migration_migration_plan_href** | **String**| |
|
221
225
|
**fields** | **String**| A list of fields to include in the response. | [optional]
|
222
226
|
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
223
227
|
|
@@ -237,7 +241,7 @@ Name | Type | Description | Notes
|
|
237
241
|
|
238
242
|
## run
|
239
243
|
|
240
|
-
> AsyncOperationResponse run(
|
244
|
+
> AsyncOperationResponse run(pulp_2to3_migration_migration_plan_href, migration_plan_run)
|
241
245
|
|
242
246
|
Run migration plan
|
243
247
|
|
@@ -256,12 +260,12 @@ Pulp2to3MigrationClient.configure do |config|
|
|
256
260
|
end
|
257
261
|
|
258
262
|
api_instance = Pulp2to3MigrationClient::MigrationPlansApi.new
|
259
|
-
|
263
|
+
pulp_2to3_migration_migration_plan_href = 'pulp_2to3_migration_migration_plan_href_example' # String |
|
260
264
|
migration_plan_run = Pulp2to3MigrationClient::MigrationPlanRun.new # MigrationPlanRun |
|
261
265
|
|
262
266
|
begin
|
263
267
|
#Run migration plan
|
264
|
-
result = api_instance.run(
|
268
|
+
result = api_instance.run(pulp_2to3_migration_migration_plan_href, migration_plan_run)
|
265
269
|
p result
|
266
270
|
rescue Pulp2to3MigrationClient::ApiError => e
|
267
271
|
puts "Exception when calling MigrationPlansApi->run: #{e}"
|
@@ -273,7 +277,7 @@ end
|
|
273
277
|
|
274
278
|
Name | Type | Description | Notes
|
275
279
|
------------- | ------------- | ------------- | -------------
|
276
|
-
**
|
280
|
+
**pulp_2to3_migration_migration_plan_href** | **String**| |
|
277
281
|
**migration_plan_run** | [**MigrationPlanRun**](MigrationPlanRun.md)| |
|
278
282
|
|
279
283
|
### Return type
|
data/docs/Pulp2ContentApi.md
CHANGED
@@ -4,8 +4,8 @@ All URIs are relative to *http://pulp*
|
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
-
[**list**](Pulp2ContentApi.md#list) | **GET** /pulp/api/v3/pulp2content/ |
|
8
|
-
[**read**](Pulp2ContentApi.md#read) | **GET** {
|
7
|
+
[**list**](Pulp2ContentApi.md#list) | **GET** /pulp/api/v3/pulp2content/ | List pulp2 contents
|
8
|
+
[**read**](Pulp2ContentApi.md#read) | **GET** {pulp_2to3_migration_pulp2_content_href} | Inspect a pulp2 content
|
9
9
|
|
10
10
|
|
11
11
|
|
@@ -13,7 +13,7 @@ Method | HTTP request | Description
|
|
13
13
|
|
14
14
|
> InlineResponse2001 list(opts)
|
15
15
|
|
16
|
-
|
16
|
+
List pulp2 contents
|
17
17
|
|
18
18
|
ViewSet for Pulp2Content model.
|
19
19
|
|
@@ -50,6 +50,7 @@ opts = {
|
|
50
50
|
}
|
51
51
|
|
52
52
|
begin
|
53
|
+
#List pulp2 contents
|
53
54
|
result = api_instance.list(opts)
|
54
55
|
p result
|
55
56
|
rescue Pulp2to3MigrationClient::ApiError => e
|
@@ -95,9 +96,9 @@ Name | Type | Description | Notes
|
|
95
96
|
|
96
97
|
## read
|
97
98
|
|
98
|
-
> Pulp2to3MigrationPulp2ContentResponse read(
|
99
|
-
|
99
|
+
> Pulp2to3MigrationPulp2ContentResponse read(pulp_2to3_migration_pulp2_content_href, opts)
|
100
100
|
|
101
|
+
Inspect a pulp2 content
|
101
102
|
|
102
103
|
ViewSet for Pulp2Content model.
|
103
104
|
|
@@ -114,14 +115,15 @@ Pulp2to3MigrationClient.configure do |config|
|
|
114
115
|
end
|
115
116
|
|
116
117
|
api_instance = Pulp2to3MigrationClient::Pulp2ContentApi.new
|
117
|
-
|
118
|
+
pulp_2to3_migration_pulp2_content_href = 'pulp_2to3_migration_pulp2_content_href_example' # String |
|
118
119
|
opts = {
|
119
120
|
fields: 'fields_example', # String | A list of fields to include in the response.
|
120
121
|
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
121
122
|
}
|
122
123
|
|
123
124
|
begin
|
124
|
-
|
125
|
+
#Inspect a pulp2 content
|
126
|
+
result = api_instance.read(pulp_2to3_migration_pulp2_content_href, opts)
|
125
127
|
p result
|
126
128
|
rescue Pulp2to3MigrationClient::ApiError => e
|
127
129
|
puts "Exception when calling Pulp2ContentApi->read: #{e}"
|
@@ -133,7 +135,7 @@ end
|
|
133
135
|
|
134
136
|
Name | Type | Description | Notes
|
135
137
|
------------- | ------------- | ------------- | -------------
|
136
|
-
**
|
138
|
+
**pulp_2to3_migration_pulp2_content_href** | **String**| |
|
137
139
|
**fields** | **String**| A list of fields to include in the response. | [optional]
|
138
140
|
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
139
141
|
|
@@ -4,8 +4,8 @@ All URIs are relative to *http://pulp*
|
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
-
[**list**](Pulp2RepositoriesApi.md#list) | **GET** /pulp/api/v3/pulp2repositories/ |
|
8
|
-
[**read**](Pulp2RepositoriesApi.md#read) | **GET** {
|
7
|
+
[**list**](Pulp2RepositoriesApi.md#list) | **GET** /pulp/api/v3/pulp2repositories/ | List pulp2 repositorys
|
8
|
+
[**read**](Pulp2RepositoriesApi.md#read) | **GET** {pulp_2to3_migration_pulp2_repository_href} | Inspect a pulp2 repository
|
9
9
|
|
10
10
|
|
11
11
|
|
@@ -13,7 +13,7 @@ Method | HTTP request | Description
|
|
13
13
|
|
14
14
|
> InlineResponse2002 list(opts)
|
15
15
|
|
16
|
-
|
16
|
+
List pulp2 repositorys
|
17
17
|
|
18
18
|
ViewSet for Pulp2Repositories model.
|
19
19
|
|
@@ -43,6 +43,7 @@ opts = {
|
|
43
43
|
}
|
44
44
|
|
45
45
|
begin
|
46
|
+
#List pulp2 repositorys
|
46
47
|
result = api_instance.list(opts)
|
47
48
|
p result
|
48
49
|
rescue Pulp2to3MigrationClient::ApiError => e
|
@@ -81,9 +82,9 @@ Name | Type | Description | Notes
|
|
81
82
|
|
82
83
|
## read
|
83
84
|
|
84
|
-
> Pulp2to3MigrationPulp2RepositoryResponse read(
|
85
|
-
|
85
|
+
> Pulp2to3MigrationPulp2RepositoryResponse read(pulp_2to3_migration_pulp2_repository_href, opts)
|
86
86
|
|
87
|
+
Inspect a pulp2 repository
|
87
88
|
|
88
89
|
ViewSet for Pulp2Repositories model.
|
89
90
|
|
@@ -100,14 +101,15 @@ Pulp2to3MigrationClient.configure do |config|
|
|
100
101
|
end
|
101
102
|
|
102
103
|
api_instance = Pulp2to3MigrationClient::Pulp2RepositoriesApi.new
|
103
|
-
|
104
|
+
pulp_2to3_migration_pulp2_repository_href = 'pulp_2to3_migration_pulp2_repository_href_example' # String |
|
104
105
|
opts = {
|
105
106
|
fields: 'fields_example', # String | A list of fields to include in the response.
|
106
107
|
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
107
108
|
}
|
108
109
|
|
109
110
|
begin
|
110
|
-
|
111
|
+
#Inspect a pulp2 repository
|
112
|
+
result = api_instance.read(pulp_2to3_migration_pulp2_repository_href, opts)
|
111
113
|
p result
|
112
114
|
rescue Pulp2to3MigrationClient::ApiError => e
|
113
115
|
puts "Exception when calling Pulp2RepositoriesApi->read: #{e}"
|
@@ -119,7 +121,7 @@ end
|
|
119
121
|
|
120
122
|
Name | Type | Description | Notes
|
121
123
|
------------- | ------------- | ------------- | -------------
|
122
|
-
**
|
124
|
+
**pulp_2to3_migration_pulp2_repository_href** | **String**| |
|
123
125
|
**fields** | **String**| A list of fields to include in the response. | [optional]
|
124
126
|
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
125
127
|
|
@@ -19,6 +19,7 @@ module Pulp2to3MigrationClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
+
# Create a migration plan
|
22
23
|
# MigrationPlan ViewSet.
|
23
24
|
# @param pulp2to3_migration_migration_plan [Pulp2to3MigrationMigrationPlan]
|
24
25
|
# @param [Hash] opts the optional parameters
|
@@ -28,6 +29,7 @@ module Pulp2to3MigrationClient
|
|
28
29
|
data
|
29
30
|
end
|
30
31
|
|
32
|
+
# Create a migration plan
|
31
33
|
# MigrationPlan ViewSet.
|
32
34
|
# @param pulp2to3_migration_migration_plan [Pulp2to3MigrationMigrationPlan]
|
33
35
|
# @param [Hash] opts the optional parameters
|
@@ -81,29 +83,31 @@ module Pulp2to3MigrationClient
|
|
81
83
|
return data, status_code, headers
|
82
84
|
end
|
83
85
|
|
86
|
+
# Delete a migration plan
|
84
87
|
# MigrationPlan ViewSet.
|
85
|
-
# @param
|
88
|
+
# @param pulp_2to3_migration_migration_plan_href [String]
|
86
89
|
# @param [Hash] opts the optional parameters
|
87
90
|
# @return [nil]
|
88
|
-
def delete(
|
89
|
-
delete_with_http_info(
|
91
|
+
def delete(pulp_2to3_migration_migration_plan_href, opts = {})
|
92
|
+
delete_with_http_info(pulp_2to3_migration_migration_plan_href, opts)
|
90
93
|
nil
|
91
94
|
end
|
92
95
|
|
96
|
+
# Delete a migration plan
|
93
97
|
# MigrationPlan ViewSet.
|
94
|
-
# @param
|
98
|
+
# @param pulp_2to3_migration_migration_plan_href [String]
|
95
99
|
# @param [Hash] opts the optional parameters
|
96
100
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
97
|
-
def delete_with_http_info(
|
101
|
+
def delete_with_http_info(pulp_2to3_migration_migration_plan_href, opts = {})
|
98
102
|
if @api_client.config.debugging
|
99
103
|
@api_client.config.logger.debug 'Calling API: MigrationPlansApi.delete ...'
|
100
104
|
end
|
101
|
-
# verify the required parameter '
|
102
|
-
if @api_client.config.client_side_validation &&
|
103
|
-
fail ArgumentError, "Missing the required parameter '
|
105
|
+
# verify the required parameter 'pulp_2to3_migration_migration_plan_href' is set
|
106
|
+
if @api_client.config.client_side_validation && pulp_2to3_migration_migration_plan_href.nil?
|
107
|
+
fail ArgumentError, "Missing the required parameter 'pulp_2to3_migration_migration_plan_href' when calling MigrationPlansApi.delete"
|
104
108
|
end
|
105
109
|
# resource path
|
106
|
-
local_var_path = '{
|
110
|
+
local_var_path = '{pulp_2to3_migration_migration_plan_href}'.sub('{' + 'pulp_2to3_migration_migration_plan_href' + '}', CGI.escape(pulp_2to3_migration_migration_plan_href.to_s).gsub('%2F', '/'))
|
107
111
|
|
108
112
|
# query parameters
|
109
113
|
query_params = opts[:query_params] || {}
|
@@ -139,6 +143,7 @@ module Pulp2to3MigrationClient
|
|
139
143
|
return data, status_code, headers
|
140
144
|
end
|
141
145
|
|
146
|
+
# List migration plans
|
142
147
|
# MigrationPlan ViewSet.
|
143
148
|
# @param [Hash] opts the optional parameters
|
144
149
|
# @option opts [Integer] :limit Number of results to return per page.
|
@@ -152,6 +157,7 @@ module Pulp2to3MigrationClient
|
|
152
157
|
data
|
153
158
|
end
|
154
159
|
|
160
|
+
# List migration plans
|
155
161
|
# MigrationPlan ViewSet.
|
156
162
|
# @param [Hash] opts the optional parameters
|
157
163
|
# @option opts [Integer] :limit Number of results to return per page.
|
@@ -208,33 +214,35 @@ module Pulp2to3MigrationClient
|
|
208
214
|
return data, status_code, headers
|
209
215
|
end
|
210
216
|
|
217
|
+
# Inspect a migration plan
|
211
218
|
# MigrationPlan ViewSet.
|
212
|
-
# @param
|
219
|
+
# @param pulp_2to3_migration_migration_plan_href [String]
|
213
220
|
# @param [Hash] opts the optional parameters
|
214
221
|
# @option opts [String] :fields A list of fields to include in the response.
|
215
222
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
216
223
|
# @return [Pulp2to3MigrationMigrationPlanResponse]
|
217
|
-
def read(
|
218
|
-
data, _status_code, _headers = read_with_http_info(
|
224
|
+
def read(pulp_2to3_migration_migration_plan_href, opts = {})
|
225
|
+
data, _status_code, _headers = read_with_http_info(pulp_2to3_migration_migration_plan_href, opts)
|
219
226
|
data
|
220
227
|
end
|
221
228
|
|
229
|
+
# Inspect a migration plan
|
222
230
|
# MigrationPlan ViewSet.
|
223
|
-
# @param
|
231
|
+
# @param pulp_2to3_migration_migration_plan_href [String]
|
224
232
|
# @param [Hash] opts the optional parameters
|
225
233
|
# @option opts [String] :fields A list of fields to include in the response.
|
226
234
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
227
235
|
# @return [Array<(Pulp2to3MigrationMigrationPlanResponse, Integer, Hash)>] Pulp2to3MigrationMigrationPlanResponse data, response status code and response headers
|
228
|
-
def read_with_http_info(
|
236
|
+
def read_with_http_info(pulp_2to3_migration_migration_plan_href, opts = {})
|
229
237
|
if @api_client.config.debugging
|
230
238
|
@api_client.config.logger.debug 'Calling API: MigrationPlansApi.read ...'
|
231
239
|
end
|
232
|
-
# verify the required parameter '
|
233
|
-
if @api_client.config.client_side_validation &&
|
234
|
-
fail ArgumentError, "Missing the required parameter '
|
240
|
+
# verify the required parameter 'pulp_2to3_migration_migration_plan_href' is set
|
241
|
+
if @api_client.config.client_side_validation && pulp_2to3_migration_migration_plan_href.nil?
|
242
|
+
fail ArgumentError, "Missing the required parameter 'pulp_2to3_migration_migration_plan_href' when calling MigrationPlansApi.read"
|
235
243
|
end
|
236
244
|
# resource path
|
237
|
-
local_var_path = '{
|
245
|
+
local_var_path = '{pulp_2to3_migration_migration_plan_href}'.sub('{' + 'pulp_2to3_migration_migration_plan_href' + '}', CGI.escape(pulp_2to3_migration_migration_plan_href.to_s).gsub('%2F', '/'))
|
238
246
|
|
239
247
|
# query parameters
|
240
248
|
query_params = opts[:query_params] || {}
|
@@ -276,35 +284,35 @@ module Pulp2to3MigrationClient
|
|
276
284
|
|
277
285
|
# Run migration plan
|
278
286
|
# Trigger an asynchronous task to run a migration from Pulp 2.
|
279
|
-
# @param
|
287
|
+
# @param pulp_2to3_migration_migration_plan_href [String]
|
280
288
|
# @param migration_plan_run [MigrationPlanRun]
|
281
289
|
# @param [Hash] opts the optional parameters
|
282
290
|
# @return [AsyncOperationResponse]
|
283
|
-
def run(
|
284
|
-
data, _status_code, _headers = run_with_http_info(
|
291
|
+
def run(pulp_2to3_migration_migration_plan_href, migration_plan_run, opts = {})
|
292
|
+
data, _status_code, _headers = run_with_http_info(pulp_2to3_migration_migration_plan_href, migration_plan_run, opts)
|
285
293
|
data
|
286
294
|
end
|
287
295
|
|
288
296
|
# Run migration plan
|
289
297
|
# Trigger an asynchronous task to run a migration from Pulp 2.
|
290
|
-
# @param
|
298
|
+
# @param pulp_2to3_migration_migration_plan_href [String]
|
291
299
|
# @param migration_plan_run [MigrationPlanRun]
|
292
300
|
# @param [Hash] opts the optional parameters
|
293
301
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
294
|
-
def run_with_http_info(
|
302
|
+
def run_with_http_info(pulp_2to3_migration_migration_plan_href, migration_plan_run, opts = {})
|
295
303
|
if @api_client.config.debugging
|
296
304
|
@api_client.config.logger.debug 'Calling API: MigrationPlansApi.run ...'
|
297
305
|
end
|
298
|
-
# verify the required parameter '
|
299
|
-
if @api_client.config.client_side_validation &&
|
300
|
-
fail ArgumentError, "Missing the required parameter '
|
306
|
+
# verify the required parameter 'pulp_2to3_migration_migration_plan_href' is set
|
307
|
+
if @api_client.config.client_side_validation && pulp_2to3_migration_migration_plan_href.nil?
|
308
|
+
fail ArgumentError, "Missing the required parameter 'pulp_2to3_migration_migration_plan_href' when calling MigrationPlansApi.run"
|
301
309
|
end
|
302
310
|
# verify the required parameter 'migration_plan_run' is set
|
303
311
|
if @api_client.config.client_side_validation && migration_plan_run.nil?
|
304
312
|
fail ArgumentError, "Missing the required parameter 'migration_plan_run' when calling MigrationPlansApi.run"
|
305
313
|
end
|
306
314
|
# resource path
|
307
|
-
local_var_path = '{
|
315
|
+
local_var_path = '{pulp_2to3_migration_migration_plan_href}run/'.sub('{' + 'pulp_2to3_migration_migration_plan_href' + '}', CGI.escape(pulp_2to3_migration_migration_plan_href.to_s).gsub('%2F', '/'))
|
308
316
|
|
309
317
|
# query parameters
|
310
318
|
query_params = opts[:query_params] || {}
|
@@ -19,6 +19,7 @@ module Pulp2to3MigrationClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
+
# List pulp2 contents
|
22
23
|
# ViewSet for Pulp2Content model.
|
23
24
|
# @param [Hash] opts the optional parameters
|
24
25
|
# @option opts [Integer] :limit Number of results to return per page.
|
@@ -43,6 +44,7 @@ module Pulp2to3MigrationClient
|
|
43
44
|
data
|
44
45
|
end
|
45
46
|
|
47
|
+
# List pulp2 contents
|
46
48
|
# ViewSet for Pulp2Content model.
|
47
49
|
# @param [Hash] opts the optional parameters
|
48
50
|
# @option opts [Integer] :limit Number of results to return per page.
|
@@ -121,33 +123,35 @@ module Pulp2to3MigrationClient
|
|
121
123
|
return data, status_code, headers
|
122
124
|
end
|
123
125
|
|
126
|
+
# Inspect a pulp2 content
|
124
127
|
# ViewSet for Pulp2Content model.
|
125
|
-
# @param
|
128
|
+
# @param pulp_2to3_migration_pulp2_content_href [String]
|
126
129
|
# @param [Hash] opts the optional parameters
|
127
130
|
# @option opts [String] :fields A list of fields to include in the response.
|
128
131
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
129
132
|
# @return [Pulp2to3MigrationPulp2ContentResponse]
|
130
|
-
def read(
|
131
|
-
data, _status_code, _headers = read_with_http_info(
|
133
|
+
def read(pulp_2to3_migration_pulp2_content_href, opts = {})
|
134
|
+
data, _status_code, _headers = read_with_http_info(pulp_2to3_migration_pulp2_content_href, opts)
|
132
135
|
data
|
133
136
|
end
|
134
137
|
|
138
|
+
# Inspect a pulp2 content
|
135
139
|
# ViewSet for Pulp2Content model.
|
136
|
-
# @param
|
140
|
+
# @param pulp_2to3_migration_pulp2_content_href [String]
|
137
141
|
# @param [Hash] opts the optional parameters
|
138
142
|
# @option opts [String] :fields A list of fields to include in the response.
|
139
143
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
140
144
|
# @return [Array<(Pulp2to3MigrationPulp2ContentResponse, Integer, Hash)>] Pulp2to3MigrationPulp2ContentResponse data, response status code and response headers
|
141
|
-
def read_with_http_info(
|
145
|
+
def read_with_http_info(pulp_2to3_migration_pulp2_content_href, opts = {})
|
142
146
|
if @api_client.config.debugging
|
143
147
|
@api_client.config.logger.debug 'Calling API: Pulp2ContentApi.read ...'
|
144
148
|
end
|
145
|
-
# verify the required parameter '
|
146
|
-
if @api_client.config.client_side_validation &&
|
147
|
-
fail ArgumentError, "Missing the required parameter '
|
149
|
+
# verify the required parameter 'pulp_2to3_migration_pulp2_content_href' is set
|
150
|
+
if @api_client.config.client_side_validation && pulp_2to3_migration_pulp2_content_href.nil?
|
151
|
+
fail ArgumentError, "Missing the required parameter 'pulp_2to3_migration_pulp2_content_href' when calling Pulp2ContentApi.read"
|
148
152
|
end
|
149
153
|
# resource path
|
150
|
-
local_var_path = '{
|
154
|
+
local_var_path = '{pulp_2to3_migration_pulp2_content_href}'.sub('{' + 'pulp_2to3_migration_pulp2_content_href' + '}', CGI.escape(pulp_2to3_migration_pulp2_content_href.to_s).gsub('%2F', '/'))
|
151
155
|
|
152
156
|
# query parameters
|
153
157
|
query_params = opts[:query_params] || {}
|
@@ -19,6 +19,7 @@ module Pulp2to3MigrationClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
+
# List pulp2 repositorys
|
22
23
|
# ViewSet for Pulp2Repositories model.
|
23
24
|
# @param [Hash] opts the optional parameters
|
24
25
|
# @option opts [String] :is_migrated is_migrated
|
@@ -36,6 +37,7 @@ module Pulp2to3MigrationClient
|
|
36
37
|
data
|
37
38
|
end
|
38
39
|
|
40
|
+
# List pulp2 repositorys
|
39
41
|
# ViewSet for Pulp2Repositories model.
|
40
42
|
# @param [Hash] opts the optional parameters
|
41
43
|
# @option opts [String] :is_migrated is_migrated
|
@@ -100,33 +102,35 @@ module Pulp2to3MigrationClient
|
|
100
102
|
return data, status_code, headers
|
101
103
|
end
|
102
104
|
|
105
|
+
# Inspect a pulp2 repository
|
103
106
|
# ViewSet for Pulp2Repositories model.
|
104
|
-
# @param
|
107
|
+
# @param pulp_2to3_migration_pulp2_repository_href [String]
|
105
108
|
# @param [Hash] opts the optional parameters
|
106
109
|
# @option opts [String] :fields A list of fields to include in the response.
|
107
110
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
108
111
|
# @return [Pulp2to3MigrationPulp2RepositoryResponse]
|
109
|
-
def read(
|
110
|
-
data, _status_code, _headers = read_with_http_info(
|
112
|
+
def read(pulp_2to3_migration_pulp2_repository_href, opts = {})
|
113
|
+
data, _status_code, _headers = read_with_http_info(pulp_2to3_migration_pulp2_repository_href, opts)
|
111
114
|
data
|
112
115
|
end
|
113
116
|
|
117
|
+
# Inspect a pulp2 repository
|
114
118
|
# ViewSet for Pulp2Repositories model.
|
115
|
-
# @param
|
119
|
+
# @param pulp_2to3_migration_pulp2_repository_href [String]
|
116
120
|
# @param [Hash] opts the optional parameters
|
117
121
|
# @option opts [String] :fields A list of fields to include in the response.
|
118
122
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
119
123
|
# @return [Array<(Pulp2to3MigrationPulp2RepositoryResponse, Integer, Hash)>] Pulp2to3MigrationPulp2RepositoryResponse data, response status code and response headers
|
120
|
-
def read_with_http_info(
|
124
|
+
def read_with_http_info(pulp_2to3_migration_pulp2_repository_href, opts = {})
|
121
125
|
if @api_client.config.debugging
|
122
126
|
@api_client.config.logger.debug 'Calling API: Pulp2RepositoriesApi.read ...'
|
123
127
|
end
|
124
|
-
# verify the required parameter '
|
125
|
-
if @api_client.config.client_side_validation &&
|
126
|
-
fail ArgumentError, "Missing the required parameter '
|
128
|
+
# verify the required parameter 'pulp_2to3_migration_pulp2_repository_href' is set
|
129
|
+
if @api_client.config.client_side_validation && pulp_2to3_migration_pulp2_repository_href.nil?
|
130
|
+
fail ArgumentError, "Missing the required parameter 'pulp_2to3_migration_pulp2_repository_href' when calling Pulp2RepositoriesApi.read"
|
127
131
|
end
|
128
132
|
# resource path
|
129
|
-
local_var_path = '{
|
133
|
+
local_var_path = '{pulp_2to3_migration_pulp2_repository_href}'.sub('{' + 'pulp_2to3_migration_pulp2_repository_href' + '}', CGI.escape(pulp_2to3_migration_pulp2_repository_href.to_s).gsub('%2F', '/'))
|
130
134
|
|
131
135
|
# query parameters
|
132
136
|
query_params = opts[:query_params] || {}
|
@@ -33,6 +33,7 @@ describe 'MigrationPlansApi' do
|
|
33
33
|
end
|
34
34
|
|
35
35
|
# unit tests for create
|
36
|
+
# Create a migration plan
|
36
37
|
# MigrationPlan ViewSet.
|
37
38
|
# @param pulp2to3_migration_migration_plan
|
38
39
|
# @param [Hash] opts the optional parameters
|
@@ -44,8 +45,9 @@ describe 'MigrationPlansApi' do
|
|
44
45
|
end
|
45
46
|
|
46
47
|
# unit tests for delete
|
48
|
+
# Delete a migration plan
|
47
49
|
# MigrationPlan ViewSet.
|
48
|
-
# @param
|
50
|
+
# @param pulp_2to3_migration_migration_plan_href
|
49
51
|
# @param [Hash] opts the optional parameters
|
50
52
|
# @return [nil]
|
51
53
|
describe 'delete test' do
|
@@ -55,6 +57,7 @@ describe 'MigrationPlansApi' do
|
|
55
57
|
end
|
56
58
|
|
57
59
|
# unit tests for list
|
60
|
+
# List migration plans
|
58
61
|
# MigrationPlan ViewSet.
|
59
62
|
# @param [Hash] opts the optional parameters
|
60
63
|
# @option opts [Integer] :limit Number of results to return per page.
|
@@ -70,8 +73,9 @@ describe 'MigrationPlansApi' do
|
|
70
73
|
end
|
71
74
|
|
72
75
|
# unit tests for read
|
76
|
+
# Inspect a migration plan
|
73
77
|
# MigrationPlan ViewSet.
|
74
|
-
# @param
|
78
|
+
# @param pulp_2to3_migration_migration_plan_href
|
75
79
|
# @param [Hash] opts the optional parameters
|
76
80
|
# @option opts [String] :fields A list of fields to include in the response.
|
77
81
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
@@ -85,7 +89,7 @@ describe 'MigrationPlansApi' do
|
|
85
89
|
# unit tests for run
|
86
90
|
# Run migration plan
|
87
91
|
# Trigger an asynchronous task to run a migration from Pulp 2.
|
88
|
-
# @param
|
92
|
+
# @param pulp_2to3_migration_migration_plan_href
|
89
93
|
# @param migration_plan_run
|
90
94
|
# @param [Hash] opts the optional parameters
|
91
95
|
# @return [AsyncOperationResponse]
|
@@ -33,6 +33,7 @@ describe 'Pulp2ContentApi' do
|
|
33
33
|
end
|
34
34
|
|
35
35
|
# unit tests for list
|
36
|
+
# List pulp2 contents
|
36
37
|
# ViewSet for Pulp2Content model.
|
37
38
|
# @param [Hash] opts the optional parameters
|
38
39
|
# @option opts [Integer] :limit Number of results to return per page.
|
@@ -59,8 +60,9 @@ describe 'Pulp2ContentApi' do
|
|
59
60
|
end
|
60
61
|
|
61
62
|
# unit tests for read
|
63
|
+
# Inspect a pulp2 content
|
62
64
|
# ViewSet for Pulp2Content model.
|
63
|
-
# @param
|
65
|
+
# @param pulp_2to3_migration_pulp2_content_href
|
64
66
|
# @param [Hash] opts the optional parameters
|
65
67
|
# @option opts [String] :fields A list of fields to include in the response.
|
66
68
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
@@ -33,6 +33,7 @@ describe 'Pulp2RepositoriesApi' do
|
|
33
33
|
end
|
34
34
|
|
35
35
|
# unit tests for list
|
36
|
+
# List pulp2 repositorys
|
36
37
|
# ViewSet for Pulp2Repositories model.
|
37
38
|
# @param [Hash] opts the optional parameters
|
38
39
|
# @option opts [String] :is_migrated is_migrated
|
@@ -52,8 +53,9 @@ describe 'Pulp2RepositoriesApi' do
|
|
52
53
|
end
|
53
54
|
|
54
55
|
# unit tests for read
|
56
|
+
# Inspect a pulp2 repository
|
55
57
|
# ViewSet for Pulp2Repositories model.
|
56
|
-
# @param
|
58
|
+
# @param pulp_2to3_migration_pulp2_repository_href
|
57
59
|
# @param [Hash] opts the optional parameters
|
58
60
|
# @option opts [String] :fields A list of fields to include in the response.
|
59
61
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pulp_2to3_migration_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.0b1.
|
4
|
+
version: 0.3.0b1.dev01596397265
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenAPI-Generator
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-08-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|