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.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +17 -15
  3. data/docs/InlineResponse200.md +3 -3
  4. data/docs/InlineResponse2001.md +3 -3
  5. data/docs/InlineResponse2002.md +3 -3
  6. data/docs/MigrationPlansApi.md +31 -31
  7. data/docs/Pulp2ContentApi.md +154 -0
  8. data/docs/{Pulp2repositoriesApi.md → Pulp2RepositoriesApi.md} +25 -25
  9. data/docs/Pulp2to3MigrationMigrationPlan.md +1 -5
  10. data/docs/Pulp2to3MigrationMigrationPlanResponse.md +21 -0
  11. data/docs/{Pulp2to3MigrationPulp2Content.md → Pulp2to3MigrationPulp2ContentResponse.md} +3 -3
  12. data/docs/{Pulp2to3MigrationPulp2Repository.md → Pulp2to3MigrationPulp2RepositoryResponse.md} +6 -6
  13. data/lib/pulp_2to3_migration_client.rb +7 -6
  14. data/lib/pulp_2to3_migration_client/api/migration_plans_api.rb +42 -42
  15. data/lib/pulp_2to3_migration_client/api/{pulp2content_api.rb → pulp2_content_api.rb} +46 -46
  16. data/lib/pulp_2to3_migration_client/api/{pulp2repositories_api.rb → pulp2_repositories_api.rb} +29 -29
  17. data/lib/pulp_2to3_migration_client/api_client.rb +2 -2
  18. data/lib/pulp_2to3_migration_client/api_error.rb +2 -2
  19. data/lib/pulp_2to3_migration_client/configuration.rb +3 -3
  20. data/lib/pulp_2to3_migration_client/models/async_operation_response.rb +3 -2
  21. data/lib/pulp_2to3_migration_client/models/inline_response200.rb +3 -13
  22. data/lib/pulp_2to3_migration_client/models/inline_response2001.rb +3 -13
  23. data/lib/pulp_2to3_migration_client/models/inline_response2002.rb +3 -13
  24. data/lib/pulp_2to3_migration_client/models/migration_plan_run.rb +3 -2
  25. data/lib/pulp_2to3_migration_client/models/pulp2to3_migration_migration_plan.rb +4 -22
  26. data/lib/pulp_2to3_migration_client/models/pulp2to3_migration_migration_plan_response.rb +232 -0
  27. data/lib/pulp_2to3_migration_client/models/{pulp2to3_migration_pulp2_content.rb → pulp2to3_migration_pulp2_content_response.rb} +7 -59
  28. data/lib/pulp_2to3_migration_client/models/{pulp2to3_migration_pulp2_repository.rb → pulp2to3_migration_pulp2_repository_response.rb} +11 -108
  29. data/lib/pulp_2to3_migration_client/version.rb +3 -3
  30. data/pulp_2to3_migration_client.gemspec +4 -4
  31. data/spec/api/migration_plans_api_spec.rb +10 -10
  32. data/spec/api/{pulp2content_api_spec.rb → pulp2_content_api_spec.rb} +22 -22
  33. data/spec/api/{pulp2repositories_api_spec.rb → pulp2_repositories_api_spec.rb} +15 -15
  34. data/spec/api_client_spec.rb +2 -2
  35. data/spec/configuration_spec.rb +2 -2
  36. data/spec/models/async_operation_response_spec.rb +2 -2
  37. data/spec/models/inline_response2001_spec.rb +2 -2
  38. data/spec/models/inline_response2002_spec.rb +2 -2
  39. data/spec/models/inline_response200_spec.rb +2 -2
  40. data/spec/models/migration_plan_run_spec.rb +2 -2
  41. data/spec/models/pulp2to3_migration_migration_plan_response_spec.rb +53 -0
  42. data/spec/models/pulp2to3_migration_migration_plan_spec.rb +2 -14
  43. data/spec/models/{pulp2to3_migration_pulp2_content_spec.rb → pulp2to3_migration_pulp2_content_response_spec.rb} +8 -8
  44. data/spec/models/{pulp2to3_migration_pulp2_repository_spec.rb → pulp2to3_migration_pulp2_repository_response_spec.rb} +8 -8
  45. data/spec/spec_helper.rb +2 -2
  46. metadata +24 -20
  47. data/docs/Pulp2contentApi.md +0 -154
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6a5edc8bdd467df73d4c05a9c578f9b028688d2d577896937f651b66754ada52
4
- data.tar.gz: d79879d7ca6c8091eed2245124c6e6b6b007844005abe8d2adc28aa8dac1fa09
3
+ metadata.gz: 33a8232e6e62b7f00f96952b85e8c903f16ea921c632b22c5d47f47854f34d75
4
+ data.tar.gz: 0c12cb8aae00ce306b555985203d61c3e365a35c2a457fe4f0266b7e4fe6f7fb
5
5
  SHA512:
6
- metadata.gz: b3c920a3942595f295e18b480ff6d230dcf9aafc349fa10b5e5bb5eade6a09f508fb5072d6fc47ee03e40c2249c081a95c5652cdca4994dd5347c9f7bada309f
7
- data.tar.gz: f28cdeacef90541610528798849ba06d502a10a0959d023361c743bbd392563770fde9dd83d4648b52eaa021dc0c3bb3c6fc24a59f9440c4b335b7aa3e17081f
6
+ metadata.gz: 57486d53b606006cd25b7ee21825f9264061012fb50bf5fa9fc6ae54b40e2cd4c576e74401a609874a48bf6553b9d43762a6eede4855fb27d91136cb684b1bb3
7
+ data.tar.gz: 48566330e8f19183d0e410167173b8ced19f86d315d075350801841b53ad4d8f70c80b8b372da6ea2ae89bb07180329fc5cb22624a76c44b3416bc03452541f2
data/README.md CHANGED
@@ -2,13 +2,14 @@
2
2
 
3
3
  Pulp2to3MigrationClient - the Ruby gem for the Pulp 3 API
4
4
 
5
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+ Fetch, Upload, Organize, and Distribute Software Packages
6
6
 
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.dev01595619351
10
+ - Package version: 0.3.0b1.dev01596051478
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
+ For more information, please visit [https://pulpproject.org](https://pulpproject.org)
12
13
 
13
14
  ## Installation
14
15
 
@@ -23,16 +24,16 @@ gem build pulp_2to3_migration_client.gemspec
23
24
  Then either install the gem locally:
24
25
 
25
26
  ```shell
26
- gem install ./pulp_2to3_migration_client-0.3.0b1.dev01595619351.gem
27
+ gem install ./pulp_2to3_migration_client-0.3.0b1.dev01596051478.gem
27
28
  ```
28
29
 
29
- (for development, run `gem install --dev ./pulp_2to3_migration_client-0.3.0b1.dev01595619351.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./pulp_2to3_migration_client-0.3.0b1.dev01596051478.gem` to install the development dependencies)
30
31
 
31
32
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
32
33
 
33
34
  Finally add this to the Gemfile:
34
35
 
35
- gem 'pulp_2to3_migration_client', '~> 0.3.0b1.dev01595619351'
36
+ gem 'pulp_2to3_migration_client', '~> 0.3.0b1.dev01596051478'
36
37
 
37
38
  ### Install from Git
38
39
 
@@ -58,17 +59,17 @@ require 'pulp_2to3_migration_client'
58
59
 
59
60
  # Setup authorization
60
61
  Pulp2to3MigrationClient.configure do |config|
61
- # Configure HTTP basic authorization: Basic
62
+ # Configure HTTP basic authorization: basicAuth
62
63
  config.username = 'YOUR_USERNAME'
63
64
  config.password = 'YOUR_PASSWORD'
64
65
  end
65
66
 
66
67
  api_instance = Pulp2to3MigrationClient::MigrationPlansApi.new
67
- data = Pulp2to3MigrationClient::Pulp2to3MigrationMigrationPlan.new # Pulp2to3MigrationMigrationPlan |
68
+ pulp2to3_migration_migration_plan = Pulp2to3MigrationClient::Pulp2to3MigrationMigrationPlan.new # Pulp2to3MigrationMigrationPlan |
68
69
 
69
70
  begin
70
71
  #Create a migration plan
71
- result = api_instance.create(data)
72
+ result = api_instance.create(pulp2to3_migration_migration_plan)
72
73
  p result
73
74
  rescue Pulp2to3MigrationClient::ApiError => e
74
75
  puts "Exception when calling MigrationPlansApi->create: #{e}"
@@ -87,10 +88,10 @@ Class | Method | HTTP request | Description
87
88
  *Pulp2to3MigrationClient::MigrationPlansApi* | [**list**](docs/MigrationPlansApi.md#list) | **GET** /pulp/api/v3/migration-plans/ | List migration plans
88
89
  *Pulp2to3MigrationClient::MigrationPlansApi* | [**read**](docs/MigrationPlansApi.md#read) | **GET** {migration_plan_href} | Inspect a migration plan
89
90
  *Pulp2to3MigrationClient::MigrationPlansApi* | [**run**](docs/MigrationPlansApi.md#run) | **POST** {migration_plan_href}run/ | Run migration plan
90
- *Pulp2to3MigrationClient::Pulp2contentApi* | [**list**](docs/Pulp2contentApi.md#list) | **GET** /pulp/api/v3/pulp2content/ | List pulp2 contents
91
- *Pulp2to3MigrationClient::Pulp2contentApi* | [**read**](docs/Pulp2contentApi.md#read) | **GET** {pulp2_content_href} | Inspect a pulp2 content
92
- *Pulp2to3MigrationClient::Pulp2repositoriesApi* | [**list**](docs/Pulp2repositoriesApi.md#list) | **GET** /pulp/api/v3/pulp2repositories/ | List pulp2 repositorys
93
- *Pulp2to3MigrationClient::Pulp2repositoriesApi* | [**read**](docs/Pulp2repositoriesApi.md#read) | **GET** {pulp2_repository_href} | Inspect a pulp2 repository
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** {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** {pulp2_repository_href} | Inspect a pulp2 repository
94
95
 
95
96
 
96
97
  ## Documentation for Models
@@ -101,14 +102,15 @@ Class | Method | HTTP request | Description
101
102
  - [Pulp2to3MigrationClient::InlineResponse2002](docs/InlineResponse2002.md)
102
103
  - [Pulp2to3MigrationClient::MigrationPlanRun](docs/MigrationPlanRun.md)
103
104
  - [Pulp2to3MigrationClient::Pulp2to3MigrationMigrationPlan](docs/Pulp2to3MigrationMigrationPlan.md)
104
- - [Pulp2to3MigrationClient::Pulp2to3MigrationPulp2Content](docs/Pulp2to3MigrationPulp2Content.md)
105
- - [Pulp2to3MigrationClient::Pulp2to3MigrationPulp2Repository](docs/Pulp2to3MigrationPulp2Repository.md)
105
+ - [Pulp2to3MigrationClient::Pulp2to3MigrationMigrationPlanResponse](docs/Pulp2to3MigrationMigrationPlanResponse.md)
106
+ - [Pulp2to3MigrationClient::Pulp2to3MigrationPulp2ContentResponse](docs/Pulp2to3MigrationPulp2ContentResponse.md)
107
+ - [Pulp2to3MigrationClient::Pulp2to3MigrationPulp2RepositoryResponse](docs/Pulp2to3MigrationPulp2RepositoryResponse.md)
106
108
 
107
109
 
108
110
  ## Documentation for Authorization
109
111
 
110
112
 
111
- ### Basic
113
+ ### basicAuth
112
114
 
113
115
  - **Type**: HTTP basic authentication
114
116
 
@@ -4,17 +4,17 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **count** | **Integer** | |
7
+ **count** | **Integer** | | [optional]
8
8
  **_next** | **String** | | [optional]
9
9
  **previous** | **String** | | [optional]
10
- **results** | [**Array<Pulp2to3MigrationMigrationPlan>**](Pulp2to3MigrationMigrationPlan.md) | |
10
+ **results** | [**Array<Pulp2to3MigrationMigrationPlanResponse>**](Pulp2to3MigrationMigrationPlanResponse.md) | | [optional]
11
11
 
12
12
  ## Code Sample
13
13
 
14
14
  ```ruby
15
15
  require 'Pulp2to3MigrationClient'
16
16
 
17
- instance = Pulp2to3MigrationClient::InlineResponse200.new(count: null,
17
+ instance = Pulp2to3MigrationClient::InlineResponse200.new(count: 123,
18
18
  _next: null,
19
19
  previous: null,
20
20
  results: null)
@@ -4,17 +4,17 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **count** | **Integer** | |
7
+ **count** | **Integer** | | [optional]
8
8
  **_next** | **String** | | [optional]
9
9
  **previous** | **String** | | [optional]
10
- **results** | [**Array<Pulp2to3MigrationPulp2Content>**](Pulp2to3MigrationPulp2Content.md) | |
10
+ **results** | [**Array<Pulp2to3MigrationPulp2ContentResponse>**](Pulp2to3MigrationPulp2ContentResponse.md) | | [optional]
11
11
 
12
12
  ## Code Sample
13
13
 
14
14
  ```ruby
15
15
  require 'Pulp2to3MigrationClient'
16
16
 
17
- instance = Pulp2to3MigrationClient::InlineResponse2001.new(count: null,
17
+ instance = Pulp2to3MigrationClient::InlineResponse2001.new(count: 123,
18
18
  _next: null,
19
19
  previous: null,
20
20
  results: null)
@@ -4,17 +4,17 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **count** | **Integer** | |
7
+ **count** | **Integer** | | [optional]
8
8
  **_next** | **String** | | [optional]
9
9
  **previous** | **String** | | [optional]
10
- **results** | [**Array<Pulp2to3MigrationPulp2Repository>**](Pulp2to3MigrationPulp2Repository.md) | |
10
+ **results** | [**Array<Pulp2to3MigrationPulp2RepositoryResponse>**](Pulp2to3MigrationPulp2RepositoryResponse.md) | | [optional]
11
11
 
12
12
  ## Code Sample
13
13
 
14
14
  ```ruby
15
15
  require 'Pulp2to3MigrationClient'
16
16
 
17
- instance = Pulp2to3MigrationClient::InlineResponse2002.new(count: null,
17
+ instance = Pulp2to3MigrationClient::InlineResponse2002.new(count: 123,
18
18
  _next: null,
19
19
  previous: null,
20
20
  results: null)
@@ -14,7 +14,7 @@ Method | HTTP request | Description
14
14
 
15
15
  ## create
16
16
 
17
- > Pulp2to3MigrationMigrationPlan create(data)
17
+ > Pulp2to3MigrationMigrationPlanResponse create(pulp2to3_migration_migration_plan)
18
18
 
19
19
  Create a migration plan
20
20
 
@@ -27,17 +27,17 @@ MigrationPlan ViewSet.
27
27
  require 'pulp_2to3_migration_client'
28
28
  # setup authorization
29
29
  Pulp2to3MigrationClient.configure do |config|
30
- # Configure HTTP basic authorization: Basic
30
+ # Configure HTTP basic authorization: basicAuth
31
31
  config.username = 'YOUR USERNAME'
32
32
  config.password = 'YOUR PASSWORD'
33
33
  end
34
34
 
35
35
  api_instance = Pulp2to3MigrationClient::MigrationPlansApi.new
36
- data = Pulp2to3MigrationClient::Pulp2to3MigrationMigrationPlan.new # Pulp2to3MigrationMigrationPlan |
36
+ pulp2to3_migration_migration_plan = Pulp2to3MigrationClient::Pulp2to3MigrationMigrationPlan.new # Pulp2to3MigrationMigrationPlan |
37
37
 
38
38
  begin
39
39
  #Create a migration plan
40
- result = api_instance.create(data)
40
+ result = api_instance.create(pulp2to3_migration_migration_plan)
41
41
  p result
42
42
  rescue Pulp2to3MigrationClient::ApiError => e
43
43
  puts "Exception when calling MigrationPlansApi->create: #{e}"
@@ -49,19 +49,19 @@ end
49
49
 
50
50
  Name | Type | Description | Notes
51
51
  ------------- | ------------- | ------------- | -------------
52
- **data** | [**Pulp2to3MigrationMigrationPlan**](Pulp2to3MigrationMigrationPlan.md)| |
52
+ **pulp2to3_migration_migration_plan** | [**Pulp2to3MigrationMigrationPlan**](Pulp2to3MigrationMigrationPlan.md)| |
53
53
 
54
54
  ### Return type
55
55
 
56
- [**Pulp2to3MigrationMigrationPlan**](Pulp2to3MigrationMigrationPlan.md)
56
+ [**Pulp2to3MigrationMigrationPlanResponse**](Pulp2to3MigrationMigrationPlanResponse.md)
57
57
 
58
58
  ### Authorization
59
59
 
60
- [Basic](../README.md#Basic)
60
+ [basicAuth](../README.md#basicAuth)
61
61
 
62
62
  ### HTTP request headers
63
63
 
64
- - **Content-Type**: application/json
64
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
65
65
  - **Accept**: application/json
66
66
 
67
67
 
@@ -80,13 +80,13 @@ MigrationPlan ViewSet.
80
80
  require 'pulp_2to3_migration_client'
81
81
  # setup authorization
82
82
  Pulp2to3MigrationClient.configure do |config|
83
- # Configure HTTP basic authorization: Basic
83
+ # Configure HTTP basic authorization: basicAuth
84
84
  config.username = 'YOUR USERNAME'
85
85
  config.password = 'YOUR PASSWORD'
86
86
  end
87
87
 
88
88
  api_instance = Pulp2to3MigrationClient::MigrationPlansApi.new
89
- migration_plan_href = 'migration_plan_href_example' # String | URI of Migration Plan. e.g.: /pulp/api/v3/migration-plans/1/
89
+ migration_plan_href = 'migration_plan_href_example' # String |
90
90
 
91
91
  begin
92
92
  #Delete a migration plan
@@ -101,7 +101,7 @@ end
101
101
 
102
102
  Name | Type | Description | Notes
103
103
  ------------- | ------------- | ------------- | -------------
104
- **migration_plan_href** | **String**| URI of Migration Plan. e.g.: /pulp/api/v3/migration-plans/1/ |
104
+ **migration_plan_href** | **String**| |
105
105
 
106
106
  ### Return type
107
107
 
@@ -109,7 +109,7 @@ nil (empty response body)
109
109
 
110
110
  ### Authorization
111
111
 
112
- [Basic](../README.md#Basic)
112
+ [basicAuth](../README.md#basicAuth)
113
113
 
114
114
  ### HTTP request headers
115
115
 
@@ -132,16 +132,16 @@ MigrationPlan ViewSet.
132
132
  require 'pulp_2to3_migration_client'
133
133
  # setup authorization
134
134
  Pulp2to3MigrationClient.configure do |config|
135
- # Configure HTTP basic authorization: Basic
135
+ # Configure HTTP basic authorization: basicAuth
136
136
  config.username = 'YOUR USERNAME'
137
137
  config.password = 'YOUR PASSWORD'
138
138
  end
139
139
 
140
140
  api_instance = Pulp2to3MigrationClient::MigrationPlansApi.new
141
141
  opts = {
142
- ordering: 'ordering_example', # String | Which field to use when ordering the results.
143
142
  limit: 56, # Integer | Number of results to return per page.
144
143
  offset: 56, # Integer | The initial index from which to return the results.
144
+ ordering: 'ordering_example', # String | Which field to use when ordering the results.
145
145
  fields: 'fields_example', # String | A list of fields to include in the response.
146
146
  exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
147
147
  }
@@ -160,9 +160,9 @@ end
160
160
 
161
161
  Name | Type | Description | Notes
162
162
  ------------- | ------------- | ------------- | -------------
163
- **ordering** | **String**| Which field to use when ordering the results. | [optional]
164
163
  **limit** | **Integer**| Number of results to return per page. | [optional]
165
164
  **offset** | **Integer**| The initial index from which to return the results. | [optional]
165
+ **ordering** | **String**| Which field to use when ordering the results. | [optional]
166
166
  **fields** | **String**| A list of fields to include in the response. | [optional]
167
167
  **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
168
168
 
@@ -172,7 +172,7 @@ Name | Type | Description | Notes
172
172
 
173
173
  ### Authorization
174
174
 
175
- [Basic](../README.md#Basic)
175
+ [basicAuth](../README.md#basicAuth)
176
176
 
177
177
  ### HTTP request headers
178
178
 
@@ -182,7 +182,7 @@ Name | Type | Description | Notes
182
182
 
183
183
  ## read
184
184
 
185
- > Pulp2to3MigrationMigrationPlan read(migration_plan_href, opts)
185
+ > Pulp2to3MigrationMigrationPlanResponse read(migration_plan_href, opts)
186
186
 
187
187
  Inspect a migration plan
188
188
 
@@ -195,13 +195,13 @@ MigrationPlan ViewSet.
195
195
  require 'pulp_2to3_migration_client'
196
196
  # setup authorization
197
197
  Pulp2to3MigrationClient.configure do |config|
198
- # Configure HTTP basic authorization: Basic
198
+ # Configure HTTP basic authorization: basicAuth
199
199
  config.username = 'YOUR USERNAME'
200
200
  config.password = 'YOUR PASSWORD'
201
201
  end
202
202
 
203
203
  api_instance = Pulp2to3MigrationClient::MigrationPlansApi.new
204
- migration_plan_href = 'migration_plan_href_example' # String | URI of Migration Plan. e.g.: /pulp/api/v3/migration-plans/1/
204
+ migration_plan_href = 'migration_plan_href_example' # String |
205
205
  opts = {
206
206
  fields: 'fields_example', # String | A list of fields to include in the response.
207
207
  exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
@@ -221,17 +221,17 @@ end
221
221
 
222
222
  Name | Type | Description | Notes
223
223
  ------------- | ------------- | ------------- | -------------
224
- **migration_plan_href** | **String**| URI of Migration Plan. e.g.: /pulp/api/v3/migration-plans/1/ |
224
+ **migration_plan_href** | **String**| |
225
225
  **fields** | **String**| A list of fields to include in the response. | [optional]
226
226
  **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
227
227
 
228
228
  ### Return type
229
229
 
230
- [**Pulp2to3MigrationMigrationPlan**](Pulp2to3MigrationMigrationPlan.md)
230
+ [**Pulp2to3MigrationMigrationPlanResponse**](Pulp2to3MigrationMigrationPlanResponse.md)
231
231
 
232
232
  ### Authorization
233
233
 
234
- [Basic](../README.md#Basic)
234
+ [basicAuth](../README.md#basicAuth)
235
235
 
236
236
  ### HTTP request headers
237
237
 
@@ -241,7 +241,7 @@ Name | Type | Description | Notes
241
241
 
242
242
  ## run
243
243
 
244
- > AsyncOperationResponse run(migration_plan_href, data)
244
+ > AsyncOperationResponse run(migration_plan_href, migration_plan_run)
245
245
 
246
246
  Run migration plan
247
247
 
@@ -254,18 +254,18 @@ Trigger an asynchronous task to run a migration from Pulp 2.
254
254
  require 'pulp_2to3_migration_client'
255
255
  # setup authorization
256
256
  Pulp2to3MigrationClient.configure do |config|
257
- # Configure HTTP basic authorization: Basic
257
+ # Configure HTTP basic authorization: basicAuth
258
258
  config.username = 'YOUR USERNAME'
259
259
  config.password = 'YOUR PASSWORD'
260
260
  end
261
261
 
262
262
  api_instance = Pulp2to3MigrationClient::MigrationPlansApi.new
263
- migration_plan_href = 'migration_plan_href_example' # String | URI of Migration Plan. e.g.: /pulp/api/v3/migration-plans/1/
264
- data = Pulp2to3MigrationClient::MigrationPlanRun.new # MigrationPlanRun |
263
+ migration_plan_href = 'migration_plan_href_example' # String |
264
+ migration_plan_run = Pulp2to3MigrationClient::MigrationPlanRun.new # MigrationPlanRun |
265
265
 
266
266
  begin
267
267
  #Run migration plan
268
- result = api_instance.run(migration_plan_href, data)
268
+ result = api_instance.run(migration_plan_href, migration_plan_run)
269
269
  p result
270
270
  rescue Pulp2to3MigrationClient::ApiError => e
271
271
  puts "Exception when calling MigrationPlansApi->run: #{e}"
@@ -277,8 +277,8 @@ end
277
277
 
278
278
  Name | Type | Description | Notes
279
279
  ------------- | ------------- | ------------- | -------------
280
- **migration_plan_href** | **String**| URI of Migration Plan. e.g.: /pulp/api/v3/migration-plans/1/ |
281
- **data** | [**MigrationPlanRun**](MigrationPlanRun.md)| |
280
+ **migration_plan_href** | **String**| |
281
+ **migration_plan_run** | [**MigrationPlanRun**](MigrationPlanRun.md)| |
282
282
 
283
283
  ### Return type
284
284
 
@@ -286,10 +286,10 @@ Name | Type | Description | Notes
286
286
 
287
287
  ### Authorization
288
288
 
289
- [Basic](../README.md#Basic)
289
+ [basicAuth](../README.md#basicAuth)
290
290
 
291
291
  ### HTTP request headers
292
292
 
293
- - **Content-Type**: application/json
293
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
294
294
  - **Accept**: application/json
295
295
 
@@ -0,0 +1,154 @@
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/ | List pulp2 contents
8
+ [**read**](Pulp2ContentApi.md#read) | **GET** {pulp2_content_href} | Inspect a pulp2 content
9
+
10
+
11
+
12
+ ## list
13
+
14
+ > InlineResponse2001 list(opts)
15
+
16
+ List pulp2 contents
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
+ #List pulp2 contents
54
+ result = api_instance.list(opts)
55
+ p result
56
+ rescue Pulp2to3MigrationClient::ApiError => e
57
+ puts "Exception when calling Pulp2ContentApi->list: #{e}"
58
+ end
59
+ ```
60
+
61
+ ### Parameters
62
+
63
+
64
+ Name | Type | Description | Notes
65
+ ------------- | ------------- | ------------- | -------------
66
+ **limit** | **Integer**| Number of results to return per page. | [optional]
67
+ **offset** | **Integer**| The initial index from which to return the results. | [optional]
68
+ **ordering** | **String**| Which field to use when ordering the results. | [optional]
69
+ **pulp2_content_type_id** | **String**| pulp2_content_type_id | [optional]
70
+ **pulp2_content_type_id__in** | **String**| pulp2_content_type_id__in | [optional]
71
+ **pulp2_id** | **String**| pulp2_id | [optional]
72
+ **pulp2_id__in** | **String**| pulp2_id__in | [optional]
73
+ **pulp2_last_updated** | **String**| pulp2_last_updated | [optional]
74
+ **pulp2_last_updated__gt** | **String**| pulp2_last_updated__gt | [optional]
75
+ **pulp2_last_updated__gte** | **String**| pulp2_last_updated__gte | [optional]
76
+ **pulp2_last_updated__lt** | **String**| pulp2_last_updated__lt | [optional]
77
+ **pulp2_last_updated__lte** | **String**| pulp2_last_updated__lte | [optional]
78
+ **pulp2_last_updated__range** | **String**| pulp2_last_updated__range | [optional]
79
+ **pulp3_content** | **String**| pulp3_content | [optional]
80
+ **fields** | **String**| A list of fields to include in the response. | [optional]
81
+ **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
82
+
83
+ ### Return type
84
+
85
+ [**InlineResponse2001**](InlineResponse2001.md)
86
+
87
+ ### Authorization
88
+
89
+ [basicAuth](../README.md#basicAuth)
90
+
91
+ ### HTTP request headers
92
+
93
+ - **Content-Type**: Not defined
94
+ - **Accept**: application/json
95
+
96
+
97
+ ## read
98
+
99
+ > Pulp2to3MigrationPulp2ContentResponse read(pulp2_content_href, opts)
100
+
101
+ Inspect a pulp2 content
102
+
103
+ ViewSet for Pulp2Content model.
104
+
105
+ ### Example
106
+
107
+ ```ruby
108
+ # load the gem
109
+ require 'pulp_2to3_migration_client'
110
+ # setup authorization
111
+ Pulp2to3MigrationClient.configure do |config|
112
+ # Configure HTTP basic authorization: basicAuth
113
+ config.username = 'YOUR USERNAME'
114
+ config.password = 'YOUR PASSWORD'
115
+ end
116
+
117
+ api_instance = Pulp2to3MigrationClient::Pulp2ContentApi.new
118
+ pulp2_content_href = 'pulp2_content_href_example' # String |
119
+ opts = {
120
+ fields: 'fields_example', # String | A list of fields to include in the response.
121
+ exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
122
+ }
123
+
124
+ begin
125
+ #Inspect a pulp2 content
126
+ result = api_instance.read(pulp2_content_href, opts)
127
+ p result
128
+ rescue Pulp2to3MigrationClient::ApiError => e
129
+ puts "Exception when calling Pulp2ContentApi->read: #{e}"
130
+ end
131
+ ```
132
+
133
+ ### Parameters
134
+
135
+
136
+ Name | Type | Description | Notes
137
+ ------------- | ------------- | ------------- | -------------
138
+ **pulp2_content_href** | **String**| |
139
+ **fields** | **String**| A list of fields to include in the response. | [optional]
140
+ **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
141
+
142
+ ### Return type
143
+
144
+ [**Pulp2to3MigrationPulp2ContentResponse**](Pulp2to3MigrationPulp2ContentResponse.md)
145
+
146
+ ### Authorization
147
+
148
+ [basicAuth](../README.md#basicAuth)
149
+
150
+ ### HTTP request headers
151
+
152
+ - **Content-Type**: Not defined
153
+ - **Accept**: application/json
154
+