pulp_2to3_migration_client 0.0.1a1.dev01572548060 → 0.0.1a1.dev01572634587

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 (30) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +11 -7
  3. data/docs/InlineResponse200.md +1 -1
  4. data/docs/InlineResponse2001.md +1 -1
  5. data/docs/InlineResponse2002.md +23 -0
  6. data/docs/MigrationPlansApi.md +6 -6
  7. data/docs/Pulp2contentApi.md +2 -2
  8. data/docs/Pulp2repositoriesApi.md +134 -0
  9. data/docs/{MigrationPlan.md → Pulp2to3MigrationMigrationPlan.md} +2 -2
  10. data/docs/{Pulp2Content.md → Pulp2to3MigrationPulp2Content.md} +2 -2
  11. data/docs/Pulp2to3MigrationPulp2Repository.md +35 -0
  12. data/lib/pulp_2to3_migration_client/api/migration_plans_api.rb +8 -8
  13. data/lib/pulp_2to3_migration_client/api/pulp2content_api.rb +3 -3
  14. data/lib/pulp_2to3_migration_client/api/pulp2repositories_api.rb +164 -0
  15. data/lib/pulp_2to3_migration_client/models/inline_response200.rb +1 -1
  16. data/lib/pulp_2to3_migration_client/models/inline_response2001.rb +1 -1
  17. data/lib/pulp_2to3_migration_client/models/inline_response2002.rb +235 -0
  18. data/lib/pulp_2to3_migration_client/models/{migration_plan.rb → pulp2to3_migration_migration_plan.rb} +3 -3
  19. data/lib/pulp_2to3_migration_client/models/{pulp2_content.rb → pulp2to3_migration_pulp2_content.rb} +3 -3
  20. data/lib/pulp_2to3_migration_client/models/pulp2to3_migration_pulp2_repository.rb +337 -0
  21. data/lib/pulp_2to3_migration_client/version.rb +1 -1
  22. data/lib/pulp_2to3_migration_client.rb +5 -2
  23. data/spec/api/migration_plans_api_spec.rb +2 -2
  24. data/spec/api/pulp2content_api_spec.rb +1 -1
  25. data/spec/api/pulp2repositories_api_spec.rb +66 -0
  26. data/spec/models/inline_response2002_spec.rb +59 -0
  27. data/spec/models/{migration_plan_spec.rb → pulp2to3_migration_migration_plan_spec.rb} +6 -6
  28. data/spec/models/{pulp2_content_spec.rb → pulp2to3_migration_pulp2_content_spec.rb} +6 -6
  29. data/spec/models/pulp2to3_migration_pulp2_repository_spec.rb +95 -0
  30. metadata +22 -10
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6efa5e23c3ef2bda07d3d576cae7a6fdaec56ad8f4ec3b0e83adef45038fd3ae
4
- data.tar.gz: 878d57492f0b1e41fbc3cc430ab0c699f268ba03720b7d9c6bfefa79e6b65e8a
3
+ metadata.gz: 286238cb23916ce9c50b4ba56c028d12b59549912c6e342a511507e05c843634
4
+ data.tar.gz: 1dcd35581211d135c5d780e3af8705c7c5d2c15b9834fe0930e921f5e35df9ff
5
5
  SHA512:
6
- metadata.gz: 9fc469326a5f3ba1495aa35755f9b2862ecb5effac73d6876f52123c08db50f98fa3058ac07272aae6a10665a0ae64de30afad63d14471d1fa9e5d32c1dadb74
7
- data.tar.gz: bf9624636f2808789490f7e72eb5bbb96433555cbda88748a813d904b6339d49a3b64f26ce740972102f5edafa019fc48f7fb0d6e7d61828b85fd752c4f21b96
6
+ metadata.gz: 3c0727797af439b1160234222bb097d9bac6a3d643b4ae8137063b4e80708d2615217a779cc02f9f9bc1c87394817dec518dbd0c278db7242e1ef69499f166ef
7
+ data.tar.gz: 8dc12797964f5486093b606400406dbb46cddd7809598e0d7e47509b423ce553aafbc653ae9acff80bfccdc0aa99fe23c535508435350b26a1b301bc43264824
data/README.md CHANGED
@@ -7,7 +7,7 @@ No description provided (generated by Openapi Generator https://github.com/opena
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.0.1a1.dev01572548060
10
+ - Package version: 0.0.1a1.dev01572634587
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
 
13
13
  ## Installation
@@ -23,16 +23,16 @@ gem build pulp_2to3_migration_client.gemspec
23
23
  Then either install the gem locally:
24
24
 
25
25
  ```shell
26
- gem install ./pulp_2to3_migration_client-0.0.1a1.dev01572548060.gem
26
+ gem install ./pulp_2to3_migration_client-0.0.1a1.dev01572634587.gem
27
27
  ```
28
28
 
29
- (for development, run `gem install --dev ./pulp_2to3_migration_client-0.0.1a1.dev01572548060.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./pulp_2to3_migration_client-0.0.1a1.dev01572634587.gem` to install the development dependencies)
30
30
 
31
31
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
32
32
 
33
33
  Finally add this to the Gemfile:
34
34
 
35
- gem 'pulp_2to3_migration_client', '~> 0.0.1a1.dev01572548060'
35
+ gem 'pulp_2to3_migration_client', '~> 0.0.1a1.dev01572634587'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -64,7 +64,7 @@ Pulp2to3MigrationClient.configure do |config|
64
64
  end
65
65
 
66
66
  api_instance = Pulp2to3MigrationClient::MigrationPlansApi.new
67
- data = Pulp2to3MigrationClient::MigrationPlan.new # MigrationPlan |
67
+ data = Pulp2to3MigrationClient::Pulp2to3MigrationMigrationPlan.new # Pulp2to3MigrationMigrationPlan |
68
68
 
69
69
  begin
70
70
  #Create a migration plan
@@ -89,6 +89,8 @@ Class | Method | HTTP request | Description
89
89
  *Pulp2to3MigrationClient::MigrationPlansApi* | [**run**](docs/MigrationPlansApi.md#run) | **POST** {migration_plan_href}run/ | Run migration plan
90
90
  *Pulp2to3MigrationClient::Pulp2contentApi* | [**list**](docs/Pulp2contentApi.md#list) | **GET** /pulp/api/v3/pulp2content/ | List pulp2 contents
91
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
92
94
 
93
95
 
94
96
  ## Documentation for Models
@@ -96,9 +98,11 @@ Class | Method | HTTP request | Description
96
98
  - [Pulp2to3MigrationClient::AsyncOperationResponse](docs/AsyncOperationResponse.md)
97
99
  - [Pulp2to3MigrationClient::InlineResponse200](docs/InlineResponse200.md)
98
100
  - [Pulp2to3MigrationClient::InlineResponse2001](docs/InlineResponse2001.md)
99
- - [Pulp2to3MigrationClient::MigrationPlan](docs/MigrationPlan.md)
101
+ - [Pulp2to3MigrationClient::InlineResponse2002](docs/InlineResponse2002.md)
100
102
  - [Pulp2to3MigrationClient::MigrationPlanRun](docs/MigrationPlanRun.md)
101
- - [Pulp2to3MigrationClient::Pulp2Content](docs/Pulp2Content.md)
103
+ - [Pulp2to3MigrationClient::Pulp2to3MigrationMigrationPlan](docs/Pulp2to3MigrationMigrationPlan.md)
104
+ - [Pulp2to3MigrationClient::Pulp2to3MigrationPulp2Content](docs/Pulp2to3MigrationPulp2Content.md)
105
+ - [Pulp2to3MigrationClient::Pulp2to3MigrationPulp2Repository](docs/Pulp2to3MigrationPulp2Repository.md)
102
106
 
103
107
 
104
108
  ## Documentation for Authorization
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
7
7
  **count** | **Integer** | |
8
8
  **_next** | **String** | | [optional]
9
9
  **previous** | **String** | | [optional]
10
- **results** | [**Array<MigrationPlan>**](MigrationPlan.md) | |
10
+ **results** | [**Array<Pulp2to3MigrationMigrationPlan>**](Pulp2to3MigrationMigrationPlan.md) | |
11
11
 
12
12
  ## Code Sample
13
13
 
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
7
7
  **count** | **Integer** | |
8
8
  **_next** | **String** | | [optional]
9
9
  **previous** | **String** | | [optional]
10
- **results** | [**Array<Pulp2Content>**](Pulp2Content.md) | |
10
+ **results** | [**Array<Pulp2to3MigrationPulp2Content>**](Pulp2to3MigrationPulp2Content.md) | |
11
11
 
12
12
  ## Code Sample
13
13
 
@@ -0,0 +1,23 @@
1
+ # Pulp2to3MigrationClient::InlineResponse2002
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **count** | **Integer** | |
8
+ **_next** | **String** | | [optional]
9
+ **previous** | **String** | | [optional]
10
+ **results** | [**Array<Pulp2to3MigrationPulp2Repository>**](Pulp2to3MigrationPulp2Repository.md) | |
11
+
12
+ ## Code Sample
13
+
14
+ ```ruby
15
+ require 'Pulp2to3MigrationClient'
16
+
17
+ instance = Pulp2to3MigrationClient::InlineResponse2002.new(count: null,
18
+ _next: null,
19
+ previous: null,
20
+ results: null)
21
+ ```
22
+
23
+
@@ -14,7 +14,7 @@ Method | HTTP request | Description
14
14
 
15
15
  ## create
16
16
 
17
- > MigrationPlan create(data)
17
+ > Pulp2to3MigrationMigrationPlan create(data)
18
18
 
19
19
  Create a migration plan
20
20
 
@@ -33,7 +33,7 @@ Pulp2to3MigrationClient.configure do |config|
33
33
  end
34
34
 
35
35
  api_instance = Pulp2to3MigrationClient::MigrationPlansApi.new
36
- data = Pulp2to3MigrationClient::MigrationPlan.new # MigrationPlan |
36
+ data = Pulp2to3MigrationClient::Pulp2to3MigrationMigrationPlan.new # Pulp2to3MigrationMigrationPlan |
37
37
 
38
38
  begin
39
39
  #Create a migration plan
@@ -49,11 +49,11 @@ end
49
49
 
50
50
  Name | Type | Description | Notes
51
51
  ------------- | ------------- | ------------- | -------------
52
- **data** | [**MigrationPlan**](MigrationPlan.md)| |
52
+ **data** | [**Pulp2to3MigrationMigrationPlan**](Pulp2to3MigrationMigrationPlan.md)| |
53
53
 
54
54
  ### Return type
55
55
 
56
- [**MigrationPlan**](MigrationPlan.md)
56
+ [**Pulp2to3MigrationMigrationPlan**](Pulp2to3MigrationMigrationPlan.md)
57
57
 
58
58
  ### Authorization
59
59
 
@@ -180,7 +180,7 @@ Name | Type | Description | Notes
180
180
 
181
181
  ## read
182
182
 
183
- > MigrationPlan read(migration_plan_href, opts)
183
+ > Pulp2to3MigrationMigrationPlan read(migration_plan_href, opts)
184
184
 
185
185
  Inspect a migration plan
186
186
 
@@ -225,7 +225,7 @@ Name | Type | Description | Notes
225
225
 
226
226
  ### Return type
227
227
 
228
- [**MigrationPlan**](MigrationPlan.md)
228
+ [**Pulp2to3MigrationMigrationPlan**](Pulp2to3MigrationMigrationPlan.md)
229
229
 
230
230
  ### Authorization
231
231
 
@@ -94,7 +94,7 @@ Name | Type | Description | Notes
94
94
 
95
95
  ## read
96
96
 
97
- > Pulp2Content read(pulp2_content_href, opts)
97
+ > Pulp2to3MigrationPulp2Content read(pulp2_content_href, opts)
98
98
 
99
99
  Inspect a pulp2 content
100
100
 
@@ -139,7 +139,7 @@ Name | Type | Description | Notes
139
139
 
140
140
  ### Return type
141
141
 
142
- [**Pulp2Content**](Pulp2Content.md)
142
+ [**Pulp2to3MigrationPulp2Content**](Pulp2to3MigrationPulp2Content.md)
143
143
 
144
144
  ### Authorization
145
145
 
@@ -0,0 +1,134 @@
1
+ # Pulp2to3MigrationClient::Pulp2repositoriesApi
2
+
3
+ All URIs are relative to *http://localhost:24817*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
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
+
10
+
11
+
12
+ ## list
13
+
14
+ > InlineResponse2002 list(opts)
15
+
16
+ List pulp2 repositorys
17
+
18
+ ViewSet for Pulp2Repositories 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: Basic
28
+ config.username = 'YOUR USERNAME'
29
+ config.password = 'YOUR PASSWORD'
30
+ end
31
+
32
+ api_instance = Pulp2to3MigrationClient::Pulp2repositoriesApi.new
33
+ opts = {
34
+ pulp2_repo_id: 'pulp2_repo_id_example', # String |
35
+ pulp2_repo_id__in: 'pulp2_repo_id__in_example', # String | Filter results where pulp2_repo_id is in a comma-separated list of values
36
+ limit: 56, # Integer | Number of results to return per page.
37
+ offset: 56, # Integer | The initial index from which to return the results.
38
+ fields: 'fields_example', # String | A list of fields to include in the response.
39
+ exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
40
+ }
41
+
42
+ begin
43
+ #List pulp2 repositorys
44
+ result = api_instance.list(opts)
45
+ p result
46
+ rescue Pulp2to3MigrationClient::ApiError => e
47
+ puts "Exception when calling Pulp2repositoriesApi->list: #{e}"
48
+ end
49
+ ```
50
+
51
+ ### Parameters
52
+
53
+
54
+ Name | Type | Description | Notes
55
+ ------------- | ------------- | ------------- | -------------
56
+ **pulp2_repo_id** | **String**| | [optional]
57
+ **pulp2_repo_id__in** | **String**| Filter results where pulp2_repo_id is in a comma-separated list of values | [optional]
58
+ **limit** | **Integer**| Number of results to return per page. | [optional]
59
+ **offset** | **Integer**| The initial index from which to return the results. | [optional]
60
+ **fields** | **String**| A list of fields to include in the response. | [optional]
61
+ **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
62
+
63
+ ### Return type
64
+
65
+ [**InlineResponse2002**](InlineResponse2002.md)
66
+
67
+ ### Authorization
68
+
69
+ [Basic](../README.md#Basic)
70
+
71
+ ### HTTP request headers
72
+
73
+ - **Content-Type**: Not defined
74
+ - **Accept**: application/json
75
+
76
+
77
+ ## read
78
+
79
+ > Pulp2to3MigrationPulp2Repository read(pulp2_repository_href, opts)
80
+
81
+ Inspect a pulp2 repository
82
+
83
+ ViewSet for Pulp2Repositories model.
84
+
85
+ ### Example
86
+
87
+ ```ruby
88
+ # load the gem
89
+ require 'pulp_2to3_migration_client'
90
+ # setup authorization
91
+ Pulp2to3MigrationClient.configure do |config|
92
+ # Configure HTTP basic authorization: Basic
93
+ config.username = 'YOUR USERNAME'
94
+ config.password = 'YOUR PASSWORD'
95
+ end
96
+
97
+ api_instance = Pulp2to3MigrationClient::Pulp2repositoriesApi.new
98
+ pulp2_repository_href = 'pulp2_repository_href_example' # String | URI of Pulp2 Repository. e.g.: /pulp/api/v3/pulp2repositories/1/
99
+ opts = {
100
+ fields: 'fields_example', # String | A list of fields to include in the response.
101
+ exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
102
+ }
103
+
104
+ begin
105
+ #Inspect a pulp2 repository
106
+ result = api_instance.read(pulp2_repository_href, opts)
107
+ p result
108
+ rescue Pulp2to3MigrationClient::ApiError => e
109
+ puts "Exception when calling Pulp2repositoriesApi->read: #{e}"
110
+ end
111
+ ```
112
+
113
+ ### Parameters
114
+
115
+
116
+ Name | Type | Description | Notes
117
+ ------------- | ------------- | ------------- | -------------
118
+ **pulp2_repository_href** | **String**| URI of Pulp2 Repository. e.g.: /pulp/api/v3/pulp2repositories/1/ |
119
+ **fields** | **String**| A list of fields to include in the response. | [optional]
120
+ **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
121
+
122
+ ### Return type
123
+
124
+ [**Pulp2to3MigrationPulp2Repository**](Pulp2to3MigrationPulp2Repository.md)
125
+
126
+ ### Authorization
127
+
128
+ [Basic](../README.md#Basic)
129
+
130
+ ### HTTP request headers
131
+
132
+ - **Content-Type**: Not defined
133
+ - **Accept**: application/json
134
+
@@ -1,4 +1,4 @@
1
- # Pulp2to3MigrationClient::MigrationPlan
1
+ # Pulp2to3MigrationClient::Pulp2to3MigrationMigrationPlan
2
2
 
3
3
  ## Properties
4
4
 
@@ -13,7 +13,7 @@ Name | Type | Description | Notes
13
13
  ```ruby
14
14
  require 'Pulp2to3MigrationClient'
15
15
 
16
- instance = Pulp2to3MigrationClient::MigrationPlan.new(pulp_href: null,
16
+ instance = Pulp2to3MigrationClient::Pulp2to3MigrationMigrationPlan.new(pulp_href: null,
17
17
  pulp_created: null,
18
18
  plan: null)
19
19
  ```
@@ -1,4 +1,4 @@
1
- # Pulp2to3MigrationClient::Pulp2Content
1
+ # Pulp2to3MigrationClient::Pulp2to3MigrationPulp2Content
2
2
 
3
3
  ## Properties
4
4
 
@@ -18,7 +18,7 @@ Name | Type | Description | Notes
18
18
  ```ruby
19
19
  require 'Pulp2to3MigrationClient'
20
20
 
21
- instance = Pulp2to3MigrationClient::Pulp2Content.new(pulp_href: null,
21
+ instance = Pulp2to3MigrationClient::Pulp2to3MigrationPulp2Content.new(pulp_href: null,
22
22
  pulp_created: null,
23
23
  pulp2_id: null,
24
24
  pulp2_content_type_id: null,
@@ -0,0 +1,35 @@
1
+ # Pulp2to3MigrationClient::Pulp2to3MigrationPulp2Repository
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
+ **pulp2_object_id** | **String** | |
10
+ **pulp2_repo_id** | **String** | |
11
+ **is_migrated** | **Boolean** | | [optional] [default to false]
12
+ **pulp3_repository_version** | **String** | | [optional]
13
+ **pulp3_remote_href** | **String** | | [optional] [readonly]
14
+ **pulp3_publisher_href** | **String** | | [optional] [readonly]
15
+ **pulp3_publication_href** | **String** | | [optional] [readonly]
16
+ **pulp3_distribution_hrefs** | **String** | | [optional] [readonly]
17
+
18
+ ## Code Sample
19
+
20
+ ```ruby
21
+ require 'Pulp2to3MigrationClient'
22
+
23
+ instance = Pulp2to3MigrationClient::Pulp2to3MigrationPulp2Repository.new(pulp_href: null,
24
+ pulp_created: null,
25
+ pulp2_object_id: null,
26
+ pulp2_repo_id: null,
27
+ is_migrated: null,
28
+ pulp3_repository_version: null,
29
+ pulp3_remote_href: null,
30
+ pulp3_publisher_href: null,
31
+ pulp3_publication_href: null,
32
+ pulp3_distribution_hrefs: null)
33
+ ```
34
+
35
+
@@ -21,9 +21,9 @@ module Pulp2to3MigrationClient
21
21
  end
22
22
  # Create a migration plan
23
23
  # MigrationPlan ViewSet.
24
- # @param data [MigrationPlan]
24
+ # @param data [Pulp2to3MigrationMigrationPlan]
25
25
  # @param [Hash] opts the optional parameters
26
- # @return [MigrationPlan]
26
+ # @return [Pulp2to3MigrationMigrationPlan]
27
27
  def create(data, opts = {})
28
28
  data, _status_code, _headers = create_with_http_info(data, opts)
29
29
  data
@@ -31,9 +31,9 @@ module Pulp2to3MigrationClient
31
31
 
32
32
  # Create a migration plan
33
33
  # MigrationPlan ViewSet.
34
- # @param data [MigrationPlan]
34
+ # @param data [Pulp2to3MigrationMigrationPlan]
35
35
  # @param [Hash] opts the optional parameters
36
- # @return [Array<(MigrationPlan, Integer, Hash)>] MigrationPlan data, response status code and response headers
36
+ # @return [Array<(Pulp2to3MigrationMigrationPlan, Integer, Hash)>] Pulp2to3MigrationMigrationPlan data, response status code and response headers
37
37
  def create_with_http_info(data, opts = {})
38
38
  if @api_client.config.debugging
39
39
  @api_client.config.logger.debug 'Calling API: MigrationPlansApi.create ...'
@@ -62,7 +62,7 @@ module Pulp2to3MigrationClient
62
62
  post_body = opts[:body] || @api_client.object_to_http_body(data)
63
63
 
64
64
  # return_type
65
- return_type = opts[:return_type] || 'MigrationPlan'
65
+ return_type = opts[:return_type] || 'Pulp2to3MigrationMigrationPlan'
66
66
 
67
67
  # auth_names
68
68
  auth_names = opts[:auth_names] || ['Basic']
@@ -217,7 +217,7 @@ module Pulp2to3MigrationClient
217
217
  # @param [Hash] opts the optional parameters
218
218
  # @option opts [String] :fields A list of fields to include in the response.
219
219
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
220
- # @return [MigrationPlan]
220
+ # @return [Pulp2to3MigrationMigrationPlan]
221
221
  def read(migration_plan_href, opts = {})
222
222
  data, _status_code, _headers = read_with_http_info(migration_plan_href, opts)
223
223
  data
@@ -229,7 +229,7 @@ module Pulp2to3MigrationClient
229
229
  # @param [Hash] opts the optional parameters
230
230
  # @option opts [String] :fields A list of fields to include in the response.
231
231
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
232
- # @return [Array<(MigrationPlan, Integer, Hash)>] MigrationPlan data, response status code and response headers
232
+ # @return [Array<(Pulp2to3MigrationMigrationPlan, Integer, Hash)>] Pulp2to3MigrationMigrationPlan data, response status code and response headers
233
233
  def read_with_http_info(migration_plan_href, opts = {})
234
234
  if @api_client.config.debugging
235
235
  @api_client.config.logger.debug 'Calling API: MigrationPlansApi.read ...'
@@ -258,7 +258,7 @@ module Pulp2to3MigrationClient
258
258
  post_body = opts[:body]
259
259
 
260
260
  # return_type
261
- return_type = opts[:return_type] || 'MigrationPlan'
261
+ return_type = opts[:return_type] || 'Pulp2to3MigrationMigrationPlan'
262
262
 
263
263
  # auth_names
264
264
  auth_names = opts[:auth_names] || ['Basic']
@@ -126,7 +126,7 @@ module Pulp2to3MigrationClient
126
126
  # @param [Hash] opts the optional parameters
127
127
  # @option opts [String] :fields A list of fields to include in the response.
128
128
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
129
- # @return [Pulp2Content]
129
+ # @return [Pulp2to3MigrationPulp2Content]
130
130
  def read(pulp2_content_href, opts = {})
131
131
  data, _status_code, _headers = read_with_http_info(pulp2_content_href, opts)
132
132
  data
@@ -138,7 +138,7 @@ module Pulp2to3MigrationClient
138
138
  # @param [Hash] opts the optional parameters
139
139
  # @option opts [String] :fields A list of fields to include in the response.
140
140
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
141
- # @return [Array<(Pulp2Content, Integer, Hash)>] Pulp2Content data, response status code and response headers
141
+ # @return [Array<(Pulp2to3MigrationPulp2Content, Integer, Hash)>] Pulp2to3MigrationPulp2Content data, response status code and response headers
142
142
  def read_with_http_info(pulp2_content_href, opts = {})
143
143
  if @api_client.config.debugging
144
144
  @api_client.config.logger.debug 'Calling API: Pulp2contentApi.read ...'
@@ -167,7 +167,7 @@ module Pulp2to3MigrationClient
167
167
  post_body = opts[:body]
168
168
 
169
169
  # return_type
170
- return_type = opts[:return_type] || 'Pulp2Content'
170
+ return_type = opts[:return_type] || 'Pulp2to3MigrationPulp2Content'
171
171
 
172
172
  # auth_names
173
173
  auth_names = opts[:auth_names] || ['Basic']
@@ -0,0 +1,164 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: v3
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.2.1-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module Pulp2to3MigrationClient
16
+ class Pulp2repositoriesApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # List pulp2 repositorys
23
+ # ViewSet for Pulp2Repositories model.
24
+ # @param [Hash] opts the optional parameters
25
+ # @option opts [String] :pulp2_repo_id
26
+ # @option opts [String] :pulp2_repo_id__in Filter results where pulp2_repo_id is in a comma-separated list of values
27
+ # @option opts [Integer] :limit Number of results to return per page.
28
+ # @option opts [Integer] :offset The initial index from which to return the results.
29
+ # @option opts [String] :fields A list of fields to include in the response.
30
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
31
+ # @return [InlineResponse2002]
32
+ def list(opts = {})
33
+ data, _status_code, _headers = list_with_http_info(opts)
34
+ data
35
+ end
36
+
37
+ # List pulp2 repositorys
38
+ # ViewSet for Pulp2Repositories model.
39
+ # @param [Hash] opts the optional parameters
40
+ # @option opts [String] :pulp2_repo_id
41
+ # @option opts [String] :pulp2_repo_id__in Filter results where pulp2_repo_id is in a comma-separated list of values
42
+ # @option opts [Integer] :limit Number of results to return per page.
43
+ # @option opts [Integer] :offset The initial index from which to return the results.
44
+ # @option opts [String] :fields A list of fields to include in the response.
45
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
46
+ # @return [Array<(InlineResponse2002, Integer, Hash)>] InlineResponse2002 data, response status code and response headers
47
+ def list_with_http_info(opts = {})
48
+ if @api_client.config.debugging
49
+ @api_client.config.logger.debug 'Calling API: Pulp2repositoriesApi.list ...'
50
+ end
51
+ # resource path
52
+ local_var_path = '/pulp/api/v3/pulp2repositories/'
53
+
54
+ # query parameters
55
+ query_params = opts[:query_params] || {}
56
+ query_params[:'pulp2_repo_id'] = opts[:'pulp2_repo_id'] if !opts[:'pulp2_repo_id'].nil?
57
+ query_params[:'pulp2_repo_id__in'] = opts[:'pulp2_repo_id__in'] if !opts[:'pulp2_repo_id__in'].nil?
58
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
59
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
60
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
61
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
62
+
63
+ # header parameters
64
+ header_params = opts[:header_params] || {}
65
+ # HTTP header 'Accept' (if needed)
66
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
67
+
68
+ # form parameters
69
+ form_params = opts[:form_params] || {}
70
+
71
+ # http body (model)
72
+ post_body = opts[:body]
73
+
74
+ # return_type
75
+ return_type = opts[:return_type] || 'InlineResponse2002'
76
+
77
+ # auth_names
78
+ auth_names = opts[:auth_names] || ['Basic']
79
+
80
+ new_options = opts.merge(
81
+ :header_params => header_params,
82
+ :query_params => query_params,
83
+ :form_params => form_params,
84
+ :body => post_body,
85
+ :auth_names => auth_names,
86
+ :return_type => return_type
87
+ )
88
+
89
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
90
+ if @api_client.config.debugging
91
+ @api_client.config.logger.debug "API called: Pulp2repositoriesApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
92
+ end
93
+ return data, status_code, headers
94
+ end
95
+
96
+ # Inspect a pulp2 repository
97
+ # ViewSet for Pulp2Repositories model.
98
+ # @param pulp2_repository_href [String] URI of Pulp2 Repository. e.g.: /pulp/api/v3/pulp2repositories/1/
99
+ # @param [Hash] opts the optional parameters
100
+ # @option opts [String] :fields A list of fields to include in the response.
101
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
102
+ # @return [Pulp2to3MigrationPulp2Repository]
103
+ def read(pulp2_repository_href, opts = {})
104
+ data, _status_code, _headers = read_with_http_info(pulp2_repository_href, opts)
105
+ data
106
+ end
107
+
108
+ # Inspect a pulp2 repository
109
+ # ViewSet for Pulp2Repositories model.
110
+ # @param pulp2_repository_href [String] URI of Pulp2 Repository. e.g.: /pulp/api/v3/pulp2repositories/1/
111
+ # @param [Hash] opts the optional parameters
112
+ # @option opts [String] :fields A list of fields to include in the response.
113
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
114
+ # @return [Array<(Pulp2to3MigrationPulp2Repository, Integer, Hash)>] Pulp2to3MigrationPulp2Repository data, response status code and response headers
115
+ def read_with_http_info(pulp2_repository_href, opts = {})
116
+ if @api_client.config.debugging
117
+ @api_client.config.logger.debug 'Calling API: Pulp2repositoriesApi.read ...'
118
+ end
119
+ # verify the required parameter 'pulp2_repository_href' is set
120
+ if @api_client.config.client_side_validation && pulp2_repository_href.nil?
121
+ fail ArgumentError, "Missing the required parameter 'pulp2_repository_href' when calling Pulp2repositoriesApi.read"
122
+ end
123
+ # resource path
124
+ local_var_path = '{pulp2_repository_href}'.sub('{' + 'pulp2_repository_href' + '}', CGI.escape(pulp2_repository_href.to_s).gsub('%2F', '/'))
125
+
126
+ # query parameters
127
+ query_params = opts[:query_params] || {}
128
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
129
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
130
+
131
+ # header parameters
132
+ header_params = opts[:header_params] || {}
133
+ # HTTP header 'Accept' (if needed)
134
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
135
+
136
+ # form parameters
137
+ form_params = opts[:form_params] || {}
138
+
139
+ # http body (model)
140
+ post_body = opts[:body]
141
+
142
+ # return_type
143
+ return_type = opts[:return_type] || 'Pulp2to3MigrationPulp2Repository'
144
+
145
+ # auth_names
146
+ auth_names = opts[:auth_names] || ['Basic']
147
+
148
+ new_options = opts.merge(
149
+ :header_params => header_params,
150
+ :query_params => query_params,
151
+ :form_params => form_params,
152
+ :body => post_body,
153
+ :auth_names => auth_names,
154
+ :return_type => return_type
155
+ )
156
+
157
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
158
+ if @api_client.config.debugging
159
+ @api_client.config.logger.debug "API called: Pulp2repositoriesApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
160
+ end
161
+ return data, status_code, headers
162
+ end
163
+ end
164
+ end
@@ -38,7 +38,7 @@ module Pulp2to3MigrationClient
38
38
  :'count' => :'Integer',
39
39
  :'_next' => :'String',
40
40
  :'previous' => :'String',
41
- :'results' => :'Array<MigrationPlan>'
41
+ :'results' => :'Array<Pulp2to3MigrationMigrationPlan>'
42
42
  }
43
43
  end
44
44
 
@@ -38,7 +38,7 @@ module Pulp2to3MigrationClient
38
38
  :'count' => :'Integer',
39
39
  :'_next' => :'String',
40
40
  :'previous' => :'String',
41
- :'results' => :'Array<Pulp2Content>'
41
+ :'results' => :'Array<Pulp2to3MigrationPulp2Content>'
42
42
  }
43
43
  end
44
44