pulp_2to3_migration_client 0.3.0b1.dev01595619351 → 0.3.0b1.dev01596051478
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 +17 -15
- data/docs/InlineResponse200.md +3 -3
- data/docs/InlineResponse2001.md +3 -3
- data/docs/InlineResponse2002.md +3 -3
- data/docs/MigrationPlansApi.md +31 -31
- data/docs/Pulp2ContentApi.md +154 -0
- data/docs/{Pulp2repositoriesApi.md → Pulp2RepositoriesApi.md} +25 -25
- 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 -42
- data/lib/pulp_2to3_migration_client/api/{pulp2content_api.rb → pulp2_content_api.rb} +46 -46
- data/lib/pulp_2to3_migration_client/api/{pulp2repositories_api.rb → pulp2_repositories_api.rb} +29 -29
- 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 -10
- data/spec/api/{pulp2content_api_spec.rb → pulp2_content_api_spec.rb} +22 -22
- data/spec/api/{pulp2repositories_api_spec.rb → pulp2_repositories_api_spec.rb} +15 -15
- 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
@@ -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/ | List pulp2 repositorys
|
8
|
+
[**read**](Pulp2RepositoriesApi.md#read) | **GET** {pulp2_repository_href} | Inspect a pulp2 repository
|
9
9
|
|
10
10
|
|
11
11
|
|
@@ -24,20 +24,20 @@ 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
|
}
|
@@ -47,7 +47,7 @@ begin
|
|
47
47
|
result = api_instance.list(opts)
|
48
48
|
p result
|
49
49
|
rescue Pulp2to3MigrationClient::ApiError => e
|
50
|
-
puts "Exception when calling
|
50
|
+
puts "Exception when calling Pulp2RepositoriesApi->list: #{e}"
|
51
51
|
end
|
52
52
|
```
|
53
53
|
|
@@ -56,13 +56,13 @@ end
|
|
56
56
|
|
57
57
|
Name | Type | Description | Notes
|
58
58
|
------------- | ------------- | ------------- | -------------
|
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]
|
59
|
+
**is_migrated** | **String**| is_migrated | [optional]
|
64
60
|
**limit** | **Integer**| Number of results to return per page. | [optional]
|
61
|
+
**not_in_plan** | **String**| not_in_plan | [optional]
|
65
62
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
63
|
+
**ordering** | **String**| Which field to use when ordering the results. | [optional]
|
64
|
+
**pulp2_repo_id** | **String**| pulp2_repo_id | [optional]
|
65
|
+
**pulp2_repo_id__in** | **String**| pulp2_repo_id__in | [optional]
|
66
66
|
**fields** | **String**| A list of fields to include in the response. | [optional]
|
67
67
|
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
68
68
|
|
@@ -72,7 +72,7 @@ Name | Type | Description | Notes
|
|
72
72
|
|
73
73
|
### Authorization
|
74
74
|
|
75
|
-
[
|
75
|
+
[basicAuth](../README.md#basicAuth)
|
76
76
|
|
77
77
|
### HTTP request headers
|
78
78
|
|
@@ -82,7 +82,7 @@ Name | Type | Description | Notes
|
|
82
82
|
|
83
83
|
## read
|
84
84
|
|
85
|
-
>
|
85
|
+
> Pulp2to3MigrationPulp2RepositoryResponse read(pulp2_repository_href, opts)
|
86
86
|
|
87
87
|
Inspect a pulp2 repository
|
88
88
|
|
@@ -95,13 +95,13 @@ ViewSet for Pulp2Repositories model.
|
|
95
95
|
require 'pulp_2to3_migration_client'
|
96
96
|
# setup authorization
|
97
97
|
Pulp2to3MigrationClient.configure do |config|
|
98
|
-
# Configure HTTP basic authorization:
|
98
|
+
# Configure HTTP basic authorization: basicAuth
|
99
99
|
config.username = 'YOUR USERNAME'
|
100
100
|
config.password = 'YOUR PASSWORD'
|
101
101
|
end
|
102
102
|
|
103
|
-
api_instance = Pulp2to3MigrationClient::
|
104
|
-
pulp2_repository_href = 'pulp2_repository_href_example' # String |
|
103
|
+
api_instance = Pulp2to3MigrationClient::Pulp2RepositoriesApi.new
|
104
|
+
pulp2_repository_href = 'pulp2_repository_href_example' # String |
|
105
105
|
opts = {
|
106
106
|
fields: 'fields_example', # String | A list of fields to include in the response.
|
107
107
|
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
@@ -112,7 +112,7 @@ begin
|
|
112
112
|
result = api_instance.read(pulp2_repository_href, opts)
|
113
113
|
p result
|
114
114
|
rescue Pulp2to3MigrationClient::ApiError => e
|
115
|
-
puts "Exception when calling
|
115
|
+
puts "Exception when calling Pulp2RepositoriesApi->read: #{e}"
|
116
116
|
end
|
117
117
|
```
|
118
118
|
|
@@ -121,17 +121,17 @@ end
|
|
121
121
|
|
122
122
|
Name | Type | Description | Notes
|
123
123
|
------------- | ------------- | ------------- | -------------
|
124
|
-
**pulp2_repository_href** | **String**|
|
124
|
+
**pulp2_repository_href** | **String**| |
|
125
125
|
**fields** | **String**| A list of fields to include in the response. | [optional]
|
126
126
|
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
127
127
|
|
128
128
|
### Return type
|
129
129
|
|
130
|
-
[**
|
130
|
+
[**Pulp2to3MigrationPulp2RepositoryResponse**](Pulp2to3MigrationPulp2RepositoryResponse.md)
|
131
131
|
|
132
132
|
### Authorization
|
133
133
|
|
134
|
-
[
|
134
|
+
[basicAuth](../README.md#basicAuth)
|
135
135
|
|
136
136
|
### HTTP request headers
|
137
137
|
|
@@ -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
|
|
@@ -21,26 +21,26 @@ module Pulp2to3MigrationClient
|
|
21
21
|
end
|
22
22
|
# Create a migration plan
|
23
23
|
# MigrationPlan ViewSet.
|
24
|
-
# @param
|
24
|
+
# @param pulp2to3_migration_migration_plan [Pulp2to3MigrationMigrationPlan]
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
|
-
# @return [
|
27
|
-
def create(
|
28
|
-
data, _status_code, _headers = create_with_http_info(
|
26
|
+
# @return [Pulp2to3MigrationMigrationPlanResponse]
|
27
|
+
def create(pulp2to3_migration_migration_plan, opts = {})
|
28
|
+
data, _status_code, _headers = create_with_http_info(pulp2to3_migration_migration_plan, opts)
|
29
29
|
data
|
30
30
|
end
|
31
31
|
|
32
32
|
# Create a migration plan
|
33
33
|
# MigrationPlan ViewSet.
|
34
|
-
# @param
|
34
|
+
# @param pulp2to3_migration_migration_plan [Pulp2to3MigrationMigrationPlan]
|
35
35
|
# @param [Hash] opts the optional parameters
|
36
|
-
# @return [Array<(
|
37
|
-
def create_with_http_info(
|
36
|
+
# @return [Array<(Pulp2to3MigrationMigrationPlanResponse, Integer, Hash)>] Pulp2to3MigrationMigrationPlanResponse data, response status code and response headers
|
37
|
+
def create_with_http_info(pulp2to3_migration_migration_plan, opts = {})
|
38
38
|
if @api_client.config.debugging
|
39
39
|
@api_client.config.logger.debug 'Calling API: MigrationPlansApi.create ...'
|
40
40
|
end
|
41
|
-
# verify the required parameter '
|
42
|
-
if @api_client.config.client_side_validation &&
|
43
|
-
fail ArgumentError, "Missing the required parameter '
|
41
|
+
# verify the required parameter 'pulp2to3_migration_migration_plan' is set
|
42
|
+
if @api_client.config.client_side_validation && pulp2to3_migration_migration_plan.nil?
|
43
|
+
fail ArgumentError, "Missing the required parameter 'pulp2to3_migration_migration_plan' when calling MigrationPlansApi.create"
|
44
44
|
end
|
45
45
|
# resource path
|
46
46
|
local_var_path = '/pulp/api/v3/migration-plans/'
|
@@ -53,19 +53,19 @@ module Pulp2to3MigrationClient
|
|
53
53
|
# HTTP header 'Accept' (if needed)
|
54
54
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
55
55
|
# HTTP header 'Content-Type'
|
56
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
56
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
57
57
|
|
58
58
|
# form parameters
|
59
59
|
form_params = opts[:form_params] || {}
|
60
60
|
|
61
61
|
# http body (model)
|
62
|
-
post_body = opts[:body] || @api_client.object_to_http_body(
|
62
|
+
post_body = opts[:body] || @api_client.object_to_http_body(pulp2to3_migration_migration_plan)
|
63
63
|
|
64
64
|
# return_type
|
65
|
-
return_type = opts[:return_type] || '
|
65
|
+
return_type = opts[:return_type] || 'Pulp2to3MigrationMigrationPlanResponse'
|
66
66
|
|
67
67
|
# auth_names
|
68
|
-
auth_names = opts[:auth_names] || ['
|
68
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
69
69
|
|
70
70
|
new_options = opts.merge(
|
71
71
|
:header_params => header_params,
|
@@ -85,7 +85,7 @@ module Pulp2to3MigrationClient
|
|
85
85
|
|
86
86
|
# Delete a migration plan
|
87
87
|
# MigrationPlan ViewSet.
|
88
|
-
# @param migration_plan_href [String]
|
88
|
+
# @param migration_plan_href [String]
|
89
89
|
# @param [Hash] opts the optional parameters
|
90
90
|
# @return [nil]
|
91
91
|
def delete(migration_plan_href, opts = {})
|
@@ -95,7 +95,7 @@ module Pulp2to3MigrationClient
|
|
95
95
|
|
96
96
|
# Delete a migration plan
|
97
97
|
# MigrationPlan ViewSet.
|
98
|
-
# @param migration_plan_href [String]
|
98
|
+
# @param migration_plan_href [String]
|
99
99
|
# @param [Hash] opts the optional parameters
|
100
100
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
101
101
|
def delete_with_http_info(migration_plan_href, opts = {})
|
@@ -125,7 +125,7 @@ module Pulp2to3MigrationClient
|
|
125
125
|
return_type = opts[:return_type]
|
126
126
|
|
127
127
|
# auth_names
|
128
|
-
auth_names = opts[:auth_names] || ['
|
128
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
129
129
|
|
130
130
|
new_options = opts.merge(
|
131
131
|
:header_params => header_params,
|
@@ -146,9 +146,9 @@ module Pulp2to3MigrationClient
|
|
146
146
|
# List migration plans
|
147
147
|
# MigrationPlan ViewSet.
|
148
148
|
# @param [Hash] opts the optional parameters
|
149
|
-
# @option opts [String] :ordering Which field to use when ordering the results.
|
150
149
|
# @option opts [Integer] :limit Number of results to return per page.
|
151
150
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
151
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
152
152
|
# @option opts [String] :fields A list of fields to include in the response.
|
153
153
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
154
154
|
# @return [InlineResponse200]
|
@@ -160,9 +160,9 @@ module Pulp2to3MigrationClient
|
|
160
160
|
# List migration plans
|
161
161
|
# MigrationPlan ViewSet.
|
162
162
|
# @param [Hash] opts the optional parameters
|
163
|
-
# @option opts [String] :ordering Which field to use when ordering the results.
|
164
163
|
# @option opts [Integer] :limit Number of results to return per page.
|
165
164
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
165
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
166
166
|
# @option opts [String] :fields A list of fields to include in the response.
|
167
167
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
168
168
|
# @return [Array<(InlineResponse200, Integer, Hash)>] InlineResponse200 data, response status code and response headers
|
@@ -175,9 +175,9 @@ module Pulp2to3MigrationClient
|
|
175
175
|
|
176
176
|
# query parameters
|
177
177
|
query_params = opts[:query_params] || {}
|
178
|
-
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
179
178
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
180
179
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
180
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
181
181
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
182
182
|
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
183
183
|
|
@@ -196,7 +196,7 @@ module Pulp2to3MigrationClient
|
|
196
196
|
return_type = opts[:return_type] || 'InlineResponse200'
|
197
197
|
|
198
198
|
# auth_names
|
199
|
-
auth_names = opts[:auth_names] || ['
|
199
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
200
200
|
|
201
201
|
new_options = opts.merge(
|
202
202
|
:header_params => header_params,
|
@@ -216,11 +216,11 @@ module Pulp2to3MigrationClient
|
|
216
216
|
|
217
217
|
# Inspect a migration plan
|
218
218
|
# MigrationPlan ViewSet.
|
219
|
-
# @param migration_plan_href [String]
|
219
|
+
# @param migration_plan_href [String]
|
220
220
|
# @param [Hash] opts the optional parameters
|
221
221
|
# @option opts [String] :fields A list of fields to include in the response.
|
222
222
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
223
|
-
# @return [
|
223
|
+
# @return [Pulp2to3MigrationMigrationPlanResponse]
|
224
224
|
def read(migration_plan_href, opts = {})
|
225
225
|
data, _status_code, _headers = read_with_http_info(migration_plan_href, opts)
|
226
226
|
data
|
@@ -228,11 +228,11 @@ module Pulp2to3MigrationClient
|
|
228
228
|
|
229
229
|
# Inspect a migration plan
|
230
230
|
# MigrationPlan ViewSet.
|
231
|
-
# @param migration_plan_href [String]
|
231
|
+
# @param migration_plan_href [String]
|
232
232
|
# @param [Hash] opts the optional parameters
|
233
233
|
# @option opts [String] :fields A list of fields to include in the response.
|
234
234
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
235
|
-
# @return [Array<(
|
235
|
+
# @return [Array<(Pulp2to3MigrationMigrationPlanResponse, Integer, Hash)>] Pulp2to3MigrationMigrationPlanResponse data, response status code and response headers
|
236
236
|
def read_with_http_info(migration_plan_href, opts = {})
|
237
237
|
if @api_client.config.debugging
|
238
238
|
@api_client.config.logger.debug 'Calling API: MigrationPlansApi.read ...'
|
@@ -261,10 +261,10 @@ module Pulp2to3MigrationClient
|
|
261
261
|
post_body = opts[:body]
|
262
262
|
|
263
263
|
# return_type
|
264
|
-
return_type = opts[:return_type] || '
|
264
|
+
return_type = opts[:return_type] || 'Pulp2to3MigrationMigrationPlanResponse'
|
265
265
|
|
266
266
|
# auth_names
|
267
|
-
auth_names = opts[:auth_names] || ['
|
267
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
268
268
|
|
269
269
|
new_options = opts.merge(
|
270
270
|
:header_params => header_params,
|
@@ -284,22 +284,22 @@ module Pulp2to3MigrationClient
|
|
284
284
|
|
285
285
|
# Run migration plan
|
286
286
|
# Trigger an asynchronous task to run a migration from Pulp 2.
|
287
|
-
# @param migration_plan_href [String]
|
288
|
-
# @param
|
287
|
+
# @param migration_plan_href [String]
|
288
|
+
# @param migration_plan_run [MigrationPlanRun]
|
289
289
|
# @param [Hash] opts the optional parameters
|
290
290
|
# @return [AsyncOperationResponse]
|
291
|
-
def run(migration_plan_href,
|
292
|
-
data, _status_code, _headers = run_with_http_info(migration_plan_href,
|
291
|
+
def run(migration_plan_href, migration_plan_run, opts = {})
|
292
|
+
data, _status_code, _headers = run_with_http_info(migration_plan_href, migration_plan_run, opts)
|
293
293
|
data
|
294
294
|
end
|
295
295
|
|
296
296
|
# Run migration plan
|
297
297
|
# Trigger an asynchronous task to run a migration from Pulp 2.
|
298
|
-
# @param migration_plan_href [String]
|
299
|
-
# @param
|
298
|
+
# @param migration_plan_href [String]
|
299
|
+
# @param migration_plan_run [MigrationPlanRun]
|
300
300
|
# @param [Hash] opts the optional parameters
|
301
301
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
302
|
-
def run_with_http_info(migration_plan_href,
|
302
|
+
def run_with_http_info(migration_plan_href, migration_plan_run, opts = {})
|
303
303
|
if @api_client.config.debugging
|
304
304
|
@api_client.config.logger.debug 'Calling API: MigrationPlansApi.run ...'
|
305
305
|
end
|
@@ -307,9 +307,9 @@ module Pulp2to3MigrationClient
|
|
307
307
|
if @api_client.config.client_side_validation && migration_plan_href.nil?
|
308
308
|
fail ArgumentError, "Missing the required parameter 'migration_plan_href' when calling MigrationPlansApi.run"
|
309
309
|
end
|
310
|
-
# verify the required parameter '
|
311
|
-
if @api_client.config.client_side_validation &&
|
312
|
-
fail ArgumentError, "Missing the required parameter '
|
310
|
+
# verify the required parameter 'migration_plan_run' is set
|
311
|
+
if @api_client.config.client_side_validation && migration_plan_run.nil?
|
312
|
+
fail ArgumentError, "Missing the required parameter 'migration_plan_run' when calling MigrationPlansApi.run"
|
313
313
|
end
|
314
314
|
# resource path
|
315
315
|
local_var_path = '{migration_plan_href}run/'.sub('{' + 'migration_plan_href' + '}', CGI.escape(migration_plan_href.to_s).gsub('%2F', '/'))
|
@@ -322,19 +322,19 @@ module Pulp2to3MigrationClient
|
|
322
322
|
# HTTP header 'Accept' (if needed)
|
323
323
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
324
324
|
# HTTP header 'Content-Type'
|
325
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
325
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
326
326
|
|
327
327
|
# form parameters
|
328
328
|
form_params = opts[:form_params] || {}
|
329
329
|
|
330
330
|
# http body (model)
|
331
|
-
post_body = opts[:body] || @api_client.object_to_http_body(
|
331
|
+
post_body = opts[:body] || @api_client.object_to_http_body(migration_plan_run)
|
332
332
|
|
333
333
|
# return_type
|
334
334
|
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
335
335
|
|
336
336
|
# auth_names
|
337
|
-
auth_names = opts[:auth_names] || ['
|
337
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
338
338
|
|
339
339
|
new_options = opts.merge(
|
340
340
|
:header_params => header_params,
|