pulp_2to3_migration_client 0.3.0b1.dev01595619351 → 0.3.0b1.dev01595705725
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +21 -20
- data/docs/InlineResponse200.md +3 -3
- data/docs/InlineResponse2001.md +3 -3
- data/docs/InlineResponse2002.md +3 -3
- data/docs/MigrationPlansApi.md +39 -43
- data/docs/Pulp2ContentApi.md +152 -0
- data/docs/{Pulp2repositoriesApi.md → Pulp2RepositoriesApi.md} +27 -29
- data/docs/Pulp2to3MigrationMigrationPlan.md +1 -5
- data/docs/Pulp2to3MigrationMigrationPlanResponse.md +21 -0
- data/docs/{Pulp2to3MigrationPulp2Content.md → Pulp2to3MigrationPulp2ContentResponse.md} +3 -3
- data/docs/{Pulp2to3MigrationPulp2Repository.md → Pulp2to3MigrationPulp2RepositoryResponse.md} +6 -6
- data/lib/pulp_2to3_migration_client.rb +7 -6
- data/lib/pulp_2to3_migration_client/api/migration_plans_api.rb +42 -50
- data/lib/pulp_2to3_migration_client/api/{pulp2content_api.rb → pulp2_content_api.rb} +46 -50
- data/lib/pulp_2to3_migration_client/api/{pulp2repositories_api.rb → pulp2_repositories_api.rb} +29 -33
- data/lib/pulp_2to3_migration_client/api_client.rb +2 -2
- data/lib/pulp_2to3_migration_client/api_error.rb +2 -2
- data/lib/pulp_2to3_migration_client/configuration.rb +3 -3
- data/lib/pulp_2to3_migration_client/models/async_operation_response.rb +3 -2
- data/lib/pulp_2to3_migration_client/models/inline_response200.rb +3 -13
- data/lib/pulp_2to3_migration_client/models/inline_response2001.rb +3 -13
- data/lib/pulp_2to3_migration_client/models/inline_response2002.rb +3 -13
- data/lib/pulp_2to3_migration_client/models/migration_plan_run.rb +3 -2
- data/lib/pulp_2to3_migration_client/models/pulp2to3_migration_migration_plan.rb +4 -22
- data/lib/pulp_2to3_migration_client/models/pulp2to3_migration_migration_plan_response.rb +232 -0
- data/lib/pulp_2to3_migration_client/models/{pulp2to3_migration_pulp2_content.rb → pulp2to3_migration_pulp2_content_response.rb} +7 -59
- data/lib/pulp_2to3_migration_client/models/{pulp2to3_migration_pulp2_repository.rb → pulp2to3_migration_pulp2_repository_response.rb} +11 -108
- data/lib/pulp_2to3_migration_client/version.rb +3 -3
- data/pulp_2to3_migration_client.gemspec +4 -4
- data/spec/api/migration_plans_api_spec.rb +10 -14
- data/spec/api/pulp2_content_api_spec.rb +74 -0
- data/spec/api/{pulp2repositories_api_spec.rb → pulp2_repositories_api_spec.rb} +15 -17
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +2 -2
- data/spec/models/async_operation_response_spec.rb +2 -2
- data/spec/models/inline_response2001_spec.rb +2 -2
- data/spec/models/inline_response2002_spec.rb +2 -2
- data/spec/models/inline_response200_spec.rb +2 -2
- data/spec/models/migration_plan_run_spec.rb +2 -2
- data/spec/models/pulp2to3_migration_migration_plan_response_spec.rb +53 -0
- data/spec/models/pulp2to3_migration_migration_plan_spec.rb +2 -14
- data/spec/models/{pulp2to3_migration_pulp2_content_spec.rb → pulp2to3_migration_pulp2_content_response_spec.rb} +8 -8
- data/spec/models/{pulp2to3_migration_pulp2_repository_spec.rb → pulp2to3_migration_pulp2_repository_response_spec.rb} +8 -8
- data/spec/spec_helper.rb +2 -2
- metadata +24 -20
- data/docs/Pulp2contentApi.md +0 -154
- data/spec/api/pulp2content_api_spec.rb +0 -76
@@ -0,0 +1,152 @@
|
|
1
|
+
# Pulp2to3MigrationClient::Pulp2ContentApi
|
2
|
+
|
3
|
+
All URIs are relative to *http://pulp*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**list**](Pulp2ContentApi.md#list) | **GET** /pulp/api/v3/pulp2content/ |
|
8
|
+
[**read**](Pulp2ContentApi.md#read) | **GET** {pulp2_content_href} |
|
9
|
+
|
10
|
+
|
11
|
+
|
12
|
+
## list
|
13
|
+
|
14
|
+
> InlineResponse2001 list(opts)
|
15
|
+
|
16
|
+
|
17
|
+
|
18
|
+
ViewSet for Pulp2Content model.
|
19
|
+
|
20
|
+
### Example
|
21
|
+
|
22
|
+
```ruby
|
23
|
+
# load the gem
|
24
|
+
require 'pulp_2to3_migration_client'
|
25
|
+
# setup authorization
|
26
|
+
Pulp2to3MigrationClient.configure do |config|
|
27
|
+
# Configure HTTP basic authorization: basicAuth
|
28
|
+
config.username = 'YOUR USERNAME'
|
29
|
+
config.password = 'YOUR PASSWORD'
|
30
|
+
end
|
31
|
+
|
32
|
+
api_instance = Pulp2to3MigrationClient::Pulp2ContentApi.new
|
33
|
+
opts = {
|
34
|
+
limit: 56, # Integer | Number of results to return per page.
|
35
|
+
offset: 56, # Integer | The initial index from which to return the results.
|
36
|
+
ordering: 'ordering_example', # String | Which field to use when ordering the results.
|
37
|
+
pulp2_content_type_id: 'pulp2_content_type_id_example', # String | pulp2_content_type_id
|
38
|
+
pulp2_content_type_id__in: 'pulp2_content_type_id__in_example', # String | pulp2_content_type_id__in
|
39
|
+
pulp2_id: 'pulp2_id_example', # String | pulp2_id
|
40
|
+
pulp2_id__in: 'pulp2_id__in_example', # String | pulp2_id__in
|
41
|
+
pulp2_last_updated: 'pulp2_last_updated_example', # String | pulp2_last_updated
|
42
|
+
pulp2_last_updated__gt: 'pulp2_last_updated__gt_example', # String | pulp2_last_updated__gt
|
43
|
+
pulp2_last_updated__gte: 'pulp2_last_updated__gte_example', # String | pulp2_last_updated__gte
|
44
|
+
pulp2_last_updated__lt: 'pulp2_last_updated__lt_example', # String | pulp2_last_updated__lt
|
45
|
+
pulp2_last_updated__lte: 'pulp2_last_updated__lte_example', # String | pulp2_last_updated__lte
|
46
|
+
pulp2_last_updated__range: 'pulp2_last_updated__range_example', # String | pulp2_last_updated__range
|
47
|
+
pulp3_content: 'pulp3_content_example', # String | pulp3_content
|
48
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
49
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
50
|
+
}
|
51
|
+
|
52
|
+
begin
|
53
|
+
result = api_instance.list(opts)
|
54
|
+
p result
|
55
|
+
rescue Pulp2to3MigrationClient::ApiError => e
|
56
|
+
puts "Exception when calling Pulp2ContentApi->list: #{e}"
|
57
|
+
end
|
58
|
+
```
|
59
|
+
|
60
|
+
### Parameters
|
61
|
+
|
62
|
+
|
63
|
+
Name | Type | Description | Notes
|
64
|
+
------------- | ------------- | ------------- | -------------
|
65
|
+
**limit** | **Integer**| Number of results to return per page. | [optional]
|
66
|
+
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
67
|
+
**ordering** | **String**| Which field to use when ordering the results. | [optional]
|
68
|
+
**pulp2_content_type_id** | **String**| pulp2_content_type_id | [optional]
|
69
|
+
**pulp2_content_type_id__in** | **String**| pulp2_content_type_id__in | [optional]
|
70
|
+
**pulp2_id** | **String**| pulp2_id | [optional]
|
71
|
+
**pulp2_id__in** | **String**| pulp2_id__in | [optional]
|
72
|
+
**pulp2_last_updated** | **String**| pulp2_last_updated | [optional]
|
73
|
+
**pulp2_last_updated__gt** | **String**| pulp2_last_updated__gt | [optional]
|
74
|
+
**pulp2_last_updated__gte** | **String**| pulp2_last_updated__gte | [optional]
|
75
|
+
**pulp2_last_updated__lt** | **String**| pulp2_last_updated__lt | [optional]
|
76
|
+
**pulp2_last_updated__lte** | **String**| pulp2_last_updated__lte | [optional]
|
77
|
+
**pulp2_last_updated__range** | **String**| pulp2_last_updated__range | [optional]
|
78
|
+
**pulp3_content** | **String**| pulp3_content | [optional]
|
79
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
80
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
81
|
+
|
82
|
+
### Return type
|
83
|
+
|
84
|
+
[**InlineResponse2001**](InlineResponse2001.md)
|
85
|
+
|
86
|
+
### Authorization
|
87
|
+
|
88
|
+
[basicAuth](../README.md#basicAuth)
|
89
|
+
|
90
|
+
### HTTP request headers
|
91
|
+
|
92
|
+
- **Content-Type**: Not defined
|
93
|
+
- **Accept**: application/json
|
94
|
+
|
95
|
+
|
96
|
+
## read
|
97
|
+
|
98
|
+
> Pulp2to3MigrationPulp2ContentResponse read(pulp2_content_href, opts)
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
ViewSet for Pulp2Content model.
|
103
|
+
|
104
|
+
### Example
|
105
|
+
|
106
|
+
```ruby
|
107
|
+
# load the gem
|
108
|
+
require 'pulp_2to3_migration_client'
|
109
|
+
# setup authorization
|
110
|
+
Pulp2to3MigrationClient.configure do |config|
|
111
|
+
# Configure HTTP basic authorization: basicAuth
|
112
|
+
config.username = 'YOUR USERNAME'
|
113
|
+
config.password = 'YOUR PASSWORD'
|
114
|
+
end
|
115
|
+
|
116
|
+
api_instance = Pulp2to3MigrationClient::Pulp2ContentApi.new
|
117
|
+
pulp2_content_href = 'pulp2_content_href_example' # String |
|
118
|
+
opts = {
|
119
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
120
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
121
|
+
}
|
122
|
+
|
123
|
+
begin
|
124
|
+
result = api_instance.read(pulp2_content_href, opts)
|
125
|
+
p result
|
126
|
+
rescue Pulp2to3MigrationClient::ApiError => e
|
127
|
+
puts "Exception when calling Pulp2ContentApi->read: #{e}"
|
128
|
+
end
|
129
|
+
```
|
130
|
+
|
131
|
+
### Parameters
|
132
|
+
|
133
|
+
|
134
|
+
Name | Type | Description | Notes
|
135
|
+
------------- | ------------- | ------------- | -------------
|
136
|
+
**pulp2_content_href** | **String**| |
|
137
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
138
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
139
|
+
|
140
|
+
### Return type
|
141
|
+
|
142
|
+
[**Pulp2to3MigrationPulp2ContentResponse**](Pulp2to3MigrationPulp2ContentResponse.md)
|
143
|
+
|
144
|
+
### Authorization
|
145
|
+
|
146
|
+
[basicAuth](../README.md#basicAuth)
|
147
|
+
|
148
|
+
### HTTP request headers
|
149
|
+
|
150
|
+
- **Content-Type**: Not defined
|
151
|
+
- **Accept**: application/json
|
152
|
+
|
@@ -1,11 +1,11 @@
|
|
1
|
-
# Pulp2to3MigrationClient::
|
1
|
+
# Pulp2to3MigrationClient::Pulp2RepositoriesApi
|
2
2
|
|
3
3
|
All URIs are relative to *http://pulp*
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
-
[**list**](
|
8
|
-
[**read**](
|
7
|
+
[**list**](Pulp2RepositoriesApi.md#list) | **GET** /pulp/api/v3/pulp2repositories/ |
|
8
|
+
[**read**](Pulp2RepositoriesApi.md#read) | **GET** {pulp2_repository_href} |
|
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
|
+
|
17
17
|
|
18
18
|
ViewSet for Pulp2Repositories model.
|
19
19
|
|
@@ -24,30 +24,29 @@ ViewSet for Pulp2Repositories model.
|
|
24
24
|
require 'pulp_2to3_migration_client'
|
25
25
|
# setup authorization
|
26
26
|
Pulp2to3MigrationClient.configure do |config|
|
27
|
-
# Configure HTTP basic authorization:
|
27
|
+
# Configure HTTP basic authorization: basicAuth
|
28
28
|
config.username = 'YOUR USERNAME'
|
29
29
|
config.password = 'YOUR PASSWORD'
|
30
30
|
end
|
31
31
|
|
32
|
-
api_instance = Pulp2to3MigrationClient::
|
32
|
+
api_instance = Pulp2to3MigrationClient::Pulp2RepositoriesApi.new
|
33
33
|
opts = {
|
34
|
-
|
35
|
-
pulp2_repo_id: 'pulp2_repo_id_example', # String |
|
36
|
-
pulp2_repo_id__in: 'pulp2_repo_id__in_example', # String | Filter results where pulp2_repo_id is in a comma-separated list of values
|
37
|
-
is_migrated: 'is_migrated_example', # String |
|
38
|
-
not_in_plan: 'not_in_plan_example', # String |
|
34
|
+
is_migrated: 'is_migrated_example', # String | is_migrated
|
39
35
|
limit: 56, # Integer | Number of results to return per page.
|
36
|
+
not_in_plan: 'not_in_plan_example', # String | not_in_plan
|
40
37
|
offset: 56, # Integer | The initial index from which to return the results.
|
38
|
+
ordering: 'ordering_example', # String | Which field to use when ordering the results.
|
39
|
+
pulp2_repo_id: 'pulp2_repo_id_example', # String | pulp2_repo_id
|
40
|
+
pulp2_repo_id__in: 'pulp2_repo_id__in_example', # String | pulp2_repo_id__in
|
41
41
|
fields: 'fields_example', # String | A list of fields to include in the response.
|
42
42
|
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
43
43
|
}
|
44
44
|
|
45
45
|
begin
|
46
|
-
#List pulp2 repositorys
|
47
46
|
result = api_instance.list(opts)
|
48
47
|
p result
|
49
48
|
rescue Pulp2to3MigrationClient::ApiError => e
|
50
|
-
puts "Exception when calling
|
49
|
+
puts "Exception when calling Pulp2RepositoriesApi->list: #{e}"
|
51
50
|
end
|
52
51
|
```
|
53
52
|
|
@@ -56,13 +55,13 @@ end
|
|
56
55
|
|
57
56
|
Name | Type | Description | Notes
|
58
57
|
------------- | ------------- | ------------- | -------------
|
59
|
-
**
|
60
|
-
**pulp2_repo_id** | **String**| | [optional]
|
61
|
-
**pulp2_repo_id__in** | **String**| Filter results where pulp2_repo_id is in a comma-separated list of values | [optional]
|
62
|
-
**is_migrated** | **String**| | [optional]
|
63
|
-
**not_in_plan** | **String**| | [optional]
|
58
|
+
**is_migrated** | **String**| is_migrated | [optional]
|
64
59
|
**limit** | **Integer**| Number of results to return per page. | [optional]
|
60
|
+
**not_in_plan** | **String**| not_in_plan | [optional]
|
65
61
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
62
|
+
**ordering** | **String**| Which field to use when ordering the results. | [optional]
|
63
|
+
**pulp2_repo_id** | **String**| pulp2_repo_id | [optional]
|
64
|
+
**pulp2_repo_id__in** | **String**| pulp2_repo_id__in | [optional]
|
66
65
|
**fields** | **String**| A list of fields to include in the response. | [optional]
|
67
66
|
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
68
67
|
|
@@ -72,7 +71,7 @@ Name | Type | Description | Notes
|
|
72
71
|
|
73
72
|
### Authorization
|
74
73
|
|
75
|
-
[
|
74
|
+
[basicAuth](../README.md#basicAuth)
|
76
75
|
|
77
76
|
### HTTP request headers
|
78
77
|
|
@@ -82,9 +81,9 @@ Name | Type | Description | Notes
|
|
82
81
|
|
83
82
|
## read
|
84
83
|
|
85
|
-
>
|
84
|
+
> Pulp2to3MigrationPulp2RepositoryResponse read(pulp2_repository_href, opts)
|
85
|
+
|
86
86
|
|
87
|
-
Inspect a pulp2 repository
|
88
87
|
|
89
88
|
ViewSet for Pulp2Repositories model.
|
90
89
|
|
@@ -95,24 +94,23 @@ ViewSet for Pulp2Repositories model.
|
|
95
94
|
require 'pulp_2to3_migration_client'
|
96
95
|
# setup authorization
|
97
96
|
Pulp2to3MigrationClient.configure do |config|
|
98
|
-
# Configure HTTP basic authorization:
|
97
|
+
# Configure HTTP basic authorization: basicAuth
|
99
98
|
config.username = 'YOUR USERNAME'
|
100
99
|
config.password = 'YOUR PASSWORD'
|
101
100
|
end
|
102
101
|
|
103
|
-
api_instance = Pulp2to3MigrationClient::
|
104
|
-
pulp2_repository_href = 'pulp2_repository_href_example' # String |
|
102
|
+
api_instance = Pulp2to3MigrationClient::Pulp2RepositoriesApi.new
|
103
|
+
pulp2_repository_href = 'pulp2_repository_href_example' # String |
|
105
104
|
opts = {
|
106
105
|
fields: 'fields_example', # String | A list of fields to include in the response.
|
107
106
|
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
108
107
|
}
|
109
108
|
|
110
109
|
begin
|
111
|
-
#Inspect a pulp2 repository
|
112
110
|
result = api_instance.read(pulp2_repository_href, opts)
|
113
111
|
p result
|
114
112
|
rescue Pulp2to3MigrationClient::ApiError => e
|
115
|
-
puts "Exception when calling
|
113
|
+
puts "Exception when calling Pulp2RepositoriesApi->read: #{e}"
|
116
114
|
end
|
117
115
|
```
|
118
116
|
|
@@ -121,17 +119,17 @@ end
|
|
121
119
|
|
122
120
|
Name | Type | Description | Notes
|
123
121
|
------------- | ------------- | ------------- | -------------
|
124
|
-
**pulp2_repository_href** | **String**|
|
122
|
+
**pulp2_repository_href** | **String**| |
|
125
123
|
**fields** | **String**| A list of fields to include in the response. | [optional]
|
126
124
|
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
127
125
|
|
128
126
|
### Return type
|
129
127
|
|
130
|
-
[**
|
128
|
+
[**Pulp2to3MigrationPulp2RepositoryResponse**](Pulp2to3MigrationPulp2RepositoryResponse.md)
|
131
129
|
|
132
130
|
### Authorization
|
133
131
|
|
134
|
-
[
|
132
|
+
[basicAuth](../README.md#basicAuth)
|
135
133
|
|
136
134
|
### HTTP request headers
|
137
135
|
|
@@ -4,8 +4,6 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**pulp_href** | **String** | | [optional] [readonly]
|
8
|
-
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
9
7
|
**plan** | [**Object**](.md) | Migration Plan in JSON format |
|
10
8
|
|
11
9
|
## Code Sample
|
@@ -13,9 +11,7 @@ Name | Type | Description | Notes
|
|
13
11
|
```ruby
|
14
12
|
require 'Pulp2to3MigrationClient'
|
15
13
|
|
16
|
-
instance = Pulp2to3MigrationClient::Pulp2to3MigrationMigrationPlan.new(
|
17
|
-
pulp_created: null,
|
18
|
-
plan: null)
|
14
|
+
instance = Pulp2to3MigrationClient::Pulp2to3MigrationMigrationPlan.new(plan: null)
|
19
15
|
```
|
20
16
|
|
21
17
|
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# Pulp2to3MigrationClient::Pulp2to3MigrationMigrationPlanResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**pulp_href** | **String** | | [optional] [readonly]
|
8
|
+
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
9
|
+
**plan** | [**Object**](.md) | Migration Plan in JSON format |
|
10
|
+
|
11
|
+
## Code Sample
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'Pulp2to3MigrationClient'
|
15
|
+
|
16
|
+
instance = Pulp2to3MigrationClient::Pulp2to3MigrationMigrationPlanResponse.new(pulp_href: null,
|
17
|
+
pulp_created: null,
|
18
|
+
plan: null)
|
19
|
+
```
|
20
|
+
|
21
|
+
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Pulp2to3MigrationClient::
|
1
|
+
# Pulp2to3MigrationClient::Pulp2to3MigrationPulp2ContentResponse
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
@@ -12,14 +12,14 @@ Name | Type | Description | Notes
|
|
12
12
|
**pulp2_storage_path** | **String** | |
|
13
13
|
**downloaded** | **Boolean** | | [optional] [default to false]
|
14
14
|
**pulp3_content** | **String** | | [optional]
|
15
|
-
**pulp3_repository_version** | **
|
15
|
+
**pulp3_repository_version** | **Object** | | [optional] [readonly]
|
16
16
|
|
17
17
|
## Code Sample
|
18
18
|
|
19
19
|
```ruby
|
20
20
|
require 'Pulp2to3MigrationClient'
|
21
21
|
|
22
|
-
instance = Pulp2to3MigrationClient::
|
22
|
+
instance = Pulp2to3MigrationClient::Pulp2to3MigrationPulp2ContentResponse.new(pulp_href: null,
|
23
23
|
pulp_created: null,
|
24
24
|
pulp2_id: null,
|
25
25
|
pulp2_content_type_id: null,
|
data/docs/{Pulp2to3MigrationPulp2Repository.md → Pulp2to3MigrationPulp2RepositoryResponse.md}
RENAMED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Pulp2to3MigrationClient::
|
1
|
+
# Pulp2to3MigrationClient::Pulp2to3MigrationPulp2RepositoryResponse
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
@@ -12,17 +12,17 @@ Name | Type | Description | Notes
|
|
12
12
|
**is_migrated** | **Boolean** | | [optional] [default to false]
|
13
13
|
**not_in_plan** | **Boolean** | | [optional] [default to false]
|
14
14
|
**pulp3_repository_version** | **String** | RepositoryVersion to be served | [optional]
|
15
|
-
**pulp3_remote_href** | **
|
16
|
-
**pulp3_publication_href** | **
|
17
|
-
**pulp3_distribution_hrefs** | **
|
18
|
-
**pulp3_repository_href** | **
|
15
|
+
**pulp3_remote_href** | **Object** | | [optional] [readonly]
|
16
|
+
**pulp3_publication_href** | **Object** | | [optional] [readonly]
|
17
|
+
**pulp3_distribution_hrefs** | **Object** | | [optional] [readonly]
|
18
|
+
**pulp3_repository_href** | **Object** | | [optional] [readonly]
|
19
19
|
|
20
20
|
## Code Sample
|
21
21
|
|
22
22
|
```ruby
|
23
23
|
require 'Pulp2to3MigrationClient'
|
24
24
|
|
25
|
-
instance = Pulp2to3MigrationClient::
|
25
|
+
instance = Pulp2to3MigrationClient::Pulp2to3MigrationPulp2RepositoryResponse.new(pulp_href: null,
|
26
26
|
pulp_created: null,
|
27
27
|
pulp2_object_id: null,
|
28
28
|
pulp2_repo_id: null,
|
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
2
|
#Pulp 3 API
|
3
3
|
|
4
|
-
#
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
5
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
|
-
|
7
|
+
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 4.2.3
|
10
10
|
|
@@ -23,13 +23,14 @@ require 'pulp_2to3_migration_client/models/inline_response2001'
|
|
23
23
|
require 'pulp_2to3_migration_client/models/inline_response2002'
|
24
24
|
require 'pulp_2to3_migration_client/models/migration_plan_run'
|
25
25
|
require 'pulp_2to3_migration_client/models/pulp2to3_migration_migration_plan'
|
26
|
-
require 'pulp_2to3_migration_client/models/
|
27
|
-
require 'pulp_2to3_migration_client/models/
|
26
|
+
require 'pulp_2to3_migration_client/models/pulp2to3_migration_migration_plan_response'
|
27
|
+
require 'pulp_2to3_migration_client/models/pulp2to3_migration_pulp2_content_response'
|
28
|
+
require 'pulp_2to3_migration_client/models/pulp2to3_migration_pulp2_repository_response'
|
28
29
|
|
29
30
|
# APIs
|
30
31
|
require 'pulp_2to3_migration_client/api/migration_plans_api'
|
31
|
-
require 'pulp_2to3_migration_client/api/
|
32
|
-
require 'pulp_2to3_migration_client/api/
|
32
|
+
require 'pulp_2to3_migration_client/api/pulp2_content_api'
|
33
|
+
require 'pulp_2to3_migration_client/api/pulp2_repositories_api'
|
33
34
|
|
34
35
|
module Pulp2to3MigrationClient
|
35
36
|
class << self
|
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
2
|
#Pulp 3 API
|
3
3
|
|
4
|
-
#
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
5
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
|
-
|
7
|
+
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 4.2.3
|
10
10
|
|
@@ -19,28 +19,26 @@ module Pulp2to3MigrationClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
# Create a migration plan
|
23
22
|
# MigrationPlan ViewSet.
|
24
|
-
# @param
|
23
|
+
# @param pulp2to3_migration_migration_plan [Pulp2to3MigrationMigrationPlan]
|
25
24
|
# @param [Hash] opts the optional parameters
|
26
|
-
# @return [
|
27
|
-
def create(
|
28
|
-
data, _status_code, _headers = create_with_http_info(
|
25
|
+
# @return [Pulp2to3MigrationMigrationPlanResponse]
|
26
|
+
def create(pulp2to3_migration_migration_plan, opts = {})
|
27
|
+
data, _status_code, _headers = create_with_http_info(pulp2to3_migration_migration_plan, opts)
|
29
28
|
data
|
30
29
|
end
|
31
30
|
|
32
|
-
# Create a migration plan
|
33
31
|
# MigrationPlan ViewSet.
|
34
|
-
# @param
|
32
|
+
# @param pulp2to3_migration_migration_plan [Pulp2to3MigrationMigrationPlan]
|
35
33
|
# @param [Hash] opts the optional parameters
|
36
|
-
# @return [Array<(
|
37
|
-
def create_with_http_info(
|
34
|
+
# @return [Array<(Pulp2to3MigrationMigrationPlanResponse, Integer, Hash)>] Pulp2to3MigrationMigrationPlanResponse data, response status code and response headers
|
35
|
+
def create_with_http_info(pulp2to3_migration_migration_plan, opts = {})
|
38
36
|
if @api_client.config.debugging
|
39
37
|
@api_client.config.logger.debug 'Calling API: MigrationPlansApi.create ...'
|
40
38
|
end
|
41
|
-
# verify the required parameter '
|
42
|
-
if @api_client.config.client_side_validation &&
|
43
|
-
fail ArgumentError, "Missing the required parameter '
|
39
|
+
# verify the required parameter 'pulp2to3_migration_migration_plan' is set
|
40
|
+
if @api_client.config.client_side_validation && pulp2to3_migration_migration_plan.nil?
|
41
|
+
fail ArgumentError, "Missing the required parameter 'pulp2to3_migration_migration_plan' when calling MigrationPlansApi.create"
|
44
42
|
end
|
45
43
|
# resource path
|
46
44
|
local_var_path = '/pulp/api/v3/migration-plans/'
|
@@ -53,19 +51,19 @@ module Pulp2to3MigrationClient
|
|
53
51
|
# HTTP header 'Accept' (if needed)
|
54
52
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
55
53
|
# HTTP header 'Content-Type'
|
56
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
54
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
57
55
|
|
58
56
|
# form parameters
|
59
57
|
form_params = opts[:form_params] || {}
|
60
58
|
|
61
59
|
# http body (model)
|
62
|
-
post_body = opts[:body] || @api_client.object_to_http_body(
|
60
|
+
post_body = opts[:body] || @api_client.object_to_http_body(pulp2to3_migration_migration_plan)
|
63
61
|
|
64
62
|
# return_type
|
65
|
-
return_type = opts[:return_type] || '
|
63
|
+
return_type = opts[:return_type] || 'Pulp2to3MigrationMigrationPlanResponse'
|
66
64
|
|
67
65
|
# auth_names
|
68
|
-
auth_names = opts[:auth_names] || ['
|
66
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
69
67
|
|
70
68
|
new_options = opts.merge(
|
71
69
|
:header_params => header_params,
|
@@ -83,9 +81,8 @@ module Pulp2to3MigrationClient
|
|
83
81
|
return data, status_code, headers
|
84
82
|
end
|
85
83
|
|
86
|
-
# Delete a migration plan
|
87
84
|
# MigrationPlan ViewSet.
|
88
|
-
# @param migration_plan_href [String]
|
85
|
+
# @param migration_plan_href [String]
|
89
86
|
# @param [Hash] opts the optional parameters
|
90
87
|
# @return [nil]
|
91
88
|
def delete(migration_plan_href, opts = {})
|
@@ -93,9 +90,8 @@ module Pulp2to3MigrationClient
|
|
93
90
|
nil
|
94
91
|
end
|
95
92
|
|
96
|
-
# Delete a migration plan
|
97
93
|
# MigrationPlan ViewSet.
|
98
|
-
# @param migration_plan_href [String]
|
94
|
+
# @param migration_plan_href [String]
|
99
95
|
# @param [Hash] opts the optional parameters
|
100
96
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
101
97
|
def delete_with_http_info(migration_plan_href, opts = {})
|
@@ -125,7 +121,7 @@ module Pulp2to3MigrationClient
|
|
125
121
|
return_type = opts[:return_type]
|
126
122
|
|
127
123
|
# auth_names
|
128
|
-
auth_names = opts[:auth_names] || ['
|
124
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
129
125
|
|
130
126
|
new_options = opts.merge(
|
131
127
|
:header_params => header_params,
|
@@ -143,12 +139,11 @@ module Pulp2to3MigrationClient
|
|
143
139
|
return data, status_code, headers
|
144
140
|
end
|
145
141
|
|
146
|
-
# List migration plans
|
147
142
|
# MigrationPlan ViewSet.
|
148
143
|
# @param [Hash] opts the optional parameters
|
149
|
-
# @option opts [String] :ordering Which field to use when ordering the results.
|
150
144
|
# @option opts [Integer] :limit Number of results to return per page.
|
151
145
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
146
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
152
147
|
# @option opts [String] :fields A list of fields to include in the response.
|
153
148
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
154
149
|
# @return [InlineResponse200]
|
@@ -157,12 +152,11 @@ module Pulp2to3MigrationClient
|
|
157
152
|
data
|
158
153
|
end
|
159
154
|
|
160
|
-
# List migration plans
|
161
155
|
# MigrationPlan ViewSet.
|
162
156
|
# @param [Hash] opts the optional parameters
|
163
|
-
# @option opts [String] :ordering Which field to use when ordering the results.
|
164
157
|
# @option opts [Integer] :limit Number of results to return per page.
|
165
158
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
159
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
166
160
|
# @option opts [String] :fields A list of fields to include in the response.
|
167
161
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
168
162
|
# @return [Array<(InlineResponse200, Integer, Hash)>] InlineResponse200 data, response status code and response headers
|
@@ -175,9 +169,9 @@ module Pulp2to3MigrationClient
|
|
175
169
|
|
176
170
|
# query parameters
|
177
171
|
query_params = opts[:query_params] || {}
|
178
|
-
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
179
172
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
180
173
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
174
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
181
175
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
182
176
|
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
183
177
|
|
@@ -196,7 +190,7 @@ module Pulp2to3MigrationClient
|
|
196
190
|
return_type = opts[:return_type] || 'InlineResponse200'
|
197
191
|
|
198
192
|
# auth_names
|
199
|
-
auth_names = opts[:auth_names] || ['
|
193
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
200
194
|
|
201
195
|
new_options = opts.merge(
|
202
196
|
:header_params => header_params,
|
@@ -214,25 +208,23 @@ module Pulp2to3MigrationClient
|
|
214
208
|
return data, status_code, headers
|
215
209
|
end
|
216
210
|
|
217
|
-
# Inspect a migration plan
|
218
211
|
# MigrationPlan ViewSet.
|
219
|
-
# @param migration_plan_href [String]
|
212
|
+
# @param migration_plan_href [String]
|
220
213
|
# @param [Hash] opts the optional parameters
|
221
214
|
# @option opts [String] :fields A list of fields to include in the response.
|
222
215
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
223
|
-
# @return [
|
216
|
+
# @return [Pulp2to3MigrationMigrationPlanResponse]
|
224
217
|
def read(migration_plan_href, opts = {})
|
225
218
|
data, _status_code, _headers = read_with_http_info(migration_plan_href, opts)
|
226
219
|
data
|
227
220
|
end
|
228
221
|
|
229
|
-
# Inspect a migration plan
|
230
222
|
# MigrationPlan ViewSet.
|
231
|
-
# @param migration_plan_href [String]
|
223
|
+
# @param migration_plan_href [String]
|
232
224
|
# @param [Hash] opts the optional parameters
|
233
225
|
# @option opts [String] :fields A list of fields to include in the response.
|
234
226
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
235
|
-
# @return [Array<(
|
227
|
+
# @return [Array<(Pulp2to3MigrationMigrationPlanResponse, Integer, Hash)>] Pulp2to3MigrationMigrationPlanResponse data, response status code and response headers
|
236
228
|
def read_with_http_info(migration_plan_href, opts = {})
|
237
229
|
if @api_client.config.debugging
|
238
230
|
@api_client.config.logger.debug 'Calling API: MigrationPlansApi.read ...'
|
@@ -261,10 +253,10 @@ module Pulp2to3MigrationClient
|
|
261
253
|
post_body = opts[:body]
|
262
254
|
|
263
255
|
# return_type
|
264
|
-
return_type = opts[:return_type] || '
|
256
|
+
return_type = opts[:return_type] || 'Pulp2to3MigrationMigrationPlanResponse'
|
265
257
|
|
266
258
|
# auth_names
|
267
|
-
auth_names = opts[:auth_names] || ['
|
259
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
268
260
|
|
269
261
|
new_options = opts.merge(
|
270
262
|
:header_params => header_params,
|
@@ -284,22 +276,22 @@ module Pulp2to3MigrationClient
|
|
284
276
|
|
285
277
|
# Run migration plan
|
286
278
|
# Trigger an asynchronous task to run a migration from Pulp 2.
|
287
|
-
# @param migration_plan_href [String]
|
288
|
-
# @param
|
279
|
+
# @param migration_plan_href [String]
|
280
|
+
# @param migration_plan_run [MigrationPlanRun]
|
289
281
|
# @param [Hash] opts the optional parameters
|
290
282
|
# @return [AsyncOperationResponse]
|
291
|
-
def run(migration_plan_href,
|
292
|
-
data, _status_code, _headers = run_with_http_info(migration_plan_href,
|
283
|
+
def run(migration_plan_href, migration_plan_run, opts = {})
|
284
|
+
data, _status_code, _headers = run_with_http_info(migration_plan_href, migration_plan_run, opts)
|
293
285
|
data
|
294
286
|
end
|
295
287
|
|
296
288
|
# Run migration plan
|
297
289
|
# Trigger an asynchronous task to run a migration from Pulp 2.
|
298
|
-
# @param migration_plan_href [String]
|
299
|
-
# @param
|
290
|
+
# @param migration_plan_href [String]
|
291
|
+
# @param migration_plan_run [MigrationPlanRun]
|
300
292
|
# @param [Hash] opts the optional parameters
|
301
293
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
302
|
-
def run_with_http_info(migration_plan_href,
|
294
|
+
def run_with_http_info(migration_plan_href, migration_plan_run, opts = {})
|
303
295
|
if @api_client.config.debugging
|
304
296
|
@api_client.config.logger.debug 'Calling API: MigrationPlansApi.run ...'
|
305
297
|
end
|
@@ -307,9 +299,9 @@ module Pulp2to3MigrationClient
|
|
307
299
|
if @api_client.config.client_side_validation && migration_plan_href.nil?
|
308
300
|
fail ArgumentError, "Missing the required parameter 'migration_plan_href' when calling MigrationPlansApi.run"
|
309
301
|
end
|
310
|
-
# verify the required parameter '
|
311
|
-
if @api_client.config.client_side_validation &&
|
312
|
-
fail ArgumentError, "Missing the required parameter '
|
302
|
+
# verify the required parameter 'migration_plan_run' is set
|
303
|
+
if @api_client.config.client_side_validation && migration_plan_run.nil?
|
304
|
+
fail ArgumentError, "Missing the required parameter 'migration_plan_run' when calling MigrationPlansApi.run"
|
313
305
|
end
|
314
306
|
# resource path
|
315
307
|
local_var_path = '{migration_plan_href}run/'.sub('{' + 'migration_plan_href' + '}', CGI.escape(migration_plan_href.to_s).gsub('%2F', '/'))
|
@@ -322,19 +314,19 @@ module Pulp2to3MigrationClient
|
|
322
314
|
# HTTP header 'Accept' (if needed)
|
323
315
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
324
316
|
# HTTP header 'Content-Type'
|
325
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
317
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
326
318
|
|
327
319
|
# form parameters
|
328
320
|
form_params = opts[:form_params] || {}
|
329
321
|
|
330
322
|
# http body (model)
|
331
|
-
post_body = opts[:body] || @api_client.object_to_http_body(
|
323
|
+
post_body = opts[:body] || @api_client.object_to_http_body(migration_plan_run)
|
332
324
|
|
333
325
|
# return_type
|
334
326
|
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
335
327
|
|
336
328
|
# auth_names
|
337
|
-
auth_names = opts[:auth_names] || ['
|
329
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
338
330
|
|
339
331
|
new_options = opts.merge(
|
340
332
|
:header_params => header_params,
|