pulp_2to3_migration_client 0.2.0b5.dev01594582030 → 0.2.0b6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (29) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -6
  3. data/docs/InlineResponse200.md +1 -1
  4. data/docs/InlineResponse2001.md +1 -1
  5. data/docs/InlineResponse2002.md +1 -1
  6. data/docs/MigrationPlansApi.md +4 -4
  7. data/docs/Pulp2contentApi.md +2 -2
  8. data/docs/Pulp2repositoriesApi.md +2 -2
  9. data/docs/Pulp2to3MigrationMigrationPlanRead.md +21 -0
  10. data/docs/{Pulp2to3MigrationPulp2Content.md → Pulp2to3MigrationPulp2ContentRead.md} +2 -2
  11. data/docs/{Pulp2to3MigrationPulp2Repository.md → Pulp2to3MigrationPulp2RepositoryRead.md} +2 -2
  12. data/lib/pulp_2to3_migration_client.rb +3 -2
  13. data/lib/pulp_2to3_migration_client/api/migration_plans_api.rb +6 -6
  14. data/lib/pulp_2to3_migration_client/api/pulp2content_api.rb +3 -3
  15. data/lib/pulp_2to3_migration_client/api/pulp2repositories_api.rb +3 -3
  16. data/lib/pulp_2to3_migration_client/models/inline_response200.rb +1 -1
  17. data/lib/pulp_2to3_migration_client/models/inline_response2001.rb +1 -1
  18. data/lib/pulp_2to3_migration_client/models/inline_response2002.rb +1 -1
  19. data/lib/pulp_2to3_migration_client/models/pulp2to3_migration_migration_plan_read.rb +231 -0
  20. data/lib/pulp_2to3_migration_client/models/{pulp2to3_migration_pulp2_content.rb → pulp2to3_migration_pulp2_content_read.rb} +3 -3
  21. data/lib/pulp_2to3_migration_client/models/{pulp2to3_migration_pulp2_repository.rb → pulp2to3_migration_pulp2_repository_read.rb} +3 -3
  22. data/lib/pulp_2to3_migration_client/version.rb +1 -1
  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 +1 -1
  26. data/spec/models/pulp2to3_migration_migration_plan_read_spec.rb +53 -0
  27. data/spec/models/{pulp2to3_migration_pulp2_content_spec.rb → pulp2to3_migration_pulp2_content_read_spec.rb} +6 -6
  28. data/spec/models/{pulp2to3_migration_pulp2_repository_spec.rb → pulp2to3_migration_pulp2_repository_read_spec.rb} +6 -6
  29. metadata +18 -14
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 78bffea0ed8f6986cdbbd50082348e0b4f15dd0d19d2bf1f5c0244c3fc92bbfb
4
- data.tar.gz: 3723542ba9446c52331c26bb22ac824704257a449280dbe7a5cd693208141ffc
3
+ metadata.gz: cfe3067e281696618a6875d31f31b26c21400d406388ba88d1bbde8a9c4455ee
4
+ data.tar.gz: f7cb8e46d47c5c6e8dddd22db9f00bb941245757e5ee168ed01fb33ba19e2be4
5
5
  SHA512:
6
- metadata.gz: 6988e090a3b2a2a6f7883b8103998ede0a057624d2386b7205eb78b84a749f66b643309fe255c5c098dc4fd66156619c15b93f280309974ecf42d79fbdb14f9b
7
- data.tar.gz: 4326ea5cbb4c773a2900dd5fdac56d545b0372d79ad5e8c1c7f52cdce3ecdc1deeebf7bedb13da5e0b9475ad1ec5a6dcbf7cb4982ad6149fb1477ffd457c6a7e
6
+ metadata.gz: 265b45f89f1d516ec7c29d952526cac38b48a2a4bee1ba7811615c62ba4814d4b4432fd3919c13b66fe1b02e3b5acd5704e9217721b8eec405cfe8f158a6f988
7
+ data.tar.gz: 12823ac077d652364f5a0ad2900834afa122dfd8fbc9cd2e314aa70a1441f56957f9d5b052878f9b936e9c0e9bd88bbafda0352e9a7ebd77acd3e580fc2a575f
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.2.0b5.dev01594582030
10
+ - Package version: 0.2.0b6
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.2.0b5.dev01594582030.gem
26
+ gem install ./pulp_2to3_migration_client-0.2.0b6.gem
27
27
  ```
28
28
 
29
- (for development, run `gem install --dev ./pulp_2to3_migration_client-0.2.0b5.dev01594582030.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./pulp_2to3_migration_client-0.2.0b6.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.2.0b5.dev01594582030'
35
+ gem 'pulp_2to3_migration_client', '~> 0.2.0b6'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -101,8 +101,9 @@ Class | Method | HTTP request | Description
101
101
  - [Pulp2to3MigrationClient::InlineResponse2002](docs/InlineResponse2002.md)
102
102
  - [Pulp2to3MigrationClient::MigrationPlanRun](docs/MigrationPlanRun.md)
103
103
  - [Pulp2to3MigrationClient::Pulp2to3MigrationMigrationPlan](docs/Pulp2to3MigrationMigrationPlan.md)
104
- - [Pulp2to3MigrationClient::Pulp2to3MigrationPulp2Content](docs/Pulp2to3MigrationPulp2Content.md)
105
- - [Pulp2to3MigrationClient::Pulp2to3MigrationPulp2Repository](docs/Pulp2to3MigrationPulp2Repository.md)
104
+ - [Pulp2to3MigrationClient::Pulp2to3MigrationMigrationPlanRead](docs/Pulp2to3MigrationMigrationPlanRead.md)
105
+ - [Pulp2to3MigrationClient::Pulp2to3MigrationPulp2ContentRead](docs/Pulp2to3MigrationPulp2ContentRead.md)
106
+ - [Pulp2to3MigrationClient::Pulp2to3MigrationPulp2RepositoryRead](docs/Pulp2to3MigrationPulp2RepositoryRead.md)
106
107
 
107
108
 
108
109
  ## 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<Pulp2to3MigrationMigrationPlan>**](Pulp2to3MigrationMigrationPlan.md) | |
10
+ **results** | [**Array<Pulp2to3MigrationMigrationPlanRead>**](Pulp2to3MigrationMigrationPlanRead.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<Pulp2to3MigrationPulp2Content>**](Pulp2to3MigrationPulp2Content.md) | |
10
+ **results** | [**Array<Pulp2to3MigrationPulp2ContentRead>**](Pulp2to3MigrationPulp2ContentRead.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<Pulp2to3MigrationPulp2Repository>**](Pulp2to3MigrationPulp2Repository.md) | |
10
+ **results** | [**Array<Pulp2to3MigrationPulp2RepositoryRead>**](Pulp2to3MigrationPulp2RepositoryRead.md) | |
11
11
 
12
12
  ## Code Sample
13
13
 
@@ -14,7 +14,7 @@ Method | HTTP request | Description
14
14
 
15
15
  ## create
16
16
 
17
- > Pulp2to3MigrationMigrationPlan create(data)
17
+ > Pulp2to3MigrationMigrationPlanRead create(data)
18
18
 
19
19
  Create a migration plan
20
20
 
@@ -53,7 +53,7 @@ Name | Type | Description | Notes
53
53
 
54
54
  ### Return type
55
55
 
56
- [**Pulp2to3MigrationMigrationPlan**](Pulp2to3MigrationMigrationPlan.md)
56
+ [**Pulp2to3MigrationMigrationPlanRead**](Pulp2to3MigrationMigrationPlanRead.md)
57
57
 
58
58
  ### Authorization
59
59
 
@@ -182,7 +182,7 @@ Name | Type | Description | Notes
182
182
 
183
183
  ## read
184
184
 
185
- > Pulp2to3MigrationMigrationPlan read(migration_plan_href, opts)
185
+ > Pulp2to3MigrationMigrationPlanRead read(migration_plan_href, opts)
186
186
 
187
187
  Inspect a migration plan
188
188
 
@@ -227,7 +227,7 @@ Name | Type | Description | Notes
227
227
 
228
228
  ### Return type
229
229
 
230
- [**Pulp2to3MigrationMigrationPlan**](Pulp2to3MigrationMigrationPlan.md)
230
+ [**Pulp2to3MigrationMigrationPlanRead**](Pulp2to3MigrationMigrationPlanRead.md)
231
231
 
232
232
  ### Authorization
233
233
 
@@ -96,7 +96,7 @@ Name | Type | Description | Notes
96
96
 
97
97
  ## read
98
98
 
99
- > Pulp2to3MigrationPulp2Content read(pulp2_content_href, opts)
99
+ > Pulp2to3MigrationPulp2ContentRead read(pulp2_content_href, opts)
100
100
 
101
101
  Inspect a pulp2 content
102
102
 
@@ -141,7 +141,7 @@ Name | Type | Description | Notes
141
141
 
142
142
  ### Return type
143
143
 
144
- [**Pulp2to3MigrationPulp2Content**](Pulp2to3MigrationPulp2Content.md)
144
+ [**Pulp2to3MigrationPulp2ContentRead**](Pulp2to3MigrationPulp2ContentRead.md)
145
145
 
146
146
  ### Authorization
147
147
 
@@ -82,7 +82,7 @@ Name | Type | Description | Notes
82
82
 
83
83
  ## read
84
84
 
85
- > Pulp2to3MigrationPulp2Repository read(pulp2_repository_href, opts)
85
+ > Pulp2to3MigrationPulp2RepositoryRead read(pulp2_repository_href, opts)
86
86
 
87
87
  Inspect a pulp2 repository
88
88
 
@@ -127,7 +127,7 @@ Name | Type | Description | Notes
127
127
 
128
128
  ### Return type
129
129
 
130
- [**Pulp2to3MigrationPulp2Repository**](Pulp2to3MigrationPulp2Repository.md)
130
+ [**Pulp2to3MigrationPulp2RepositoryRead**](Pulp2to3MigrationPulp2RepositoryRead.md)
131
131
 
132
132
  ### Authorization
133
133
 
@@ -0,0 +1,21 @@
1
+ # Pulp2to3MigrationClient::Pulp2to3MigrationMigrationPlanRead
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::Pulp2to3MigrationMigrationPlanRead.new(pulp_href: null,
17
+ pulp_created: null,
18
+ plan: null)
19
+ ```
20
+
21
+
@@ -1,4 +1,4 @@
1
- # Pulp2to3MigrationClient::Pulp2to3MigrationPulp2Content
1
+ # Pulp2to3MigrationClient::Pulp2to3MigrationPulp2ContentRead
2
2
 
3
3
  ## Properties
4
4
 
@@ -19,7 +19,7 @@ Name | Type | Description | Notes
19
19
  ```ruby
20
20
  require 'Pulp2to3MigrationClient'
21
21
 
22
- instance = Pulp2to3MigrationClient::Pulp2to3MigrationPulp2Content.new(pulp_href: null,
22
+ instance = Pulp2to3MigrationClient::Pulp2to3MigrationPulp2ContentRead.new(pulp_href: null,
23
23
  pulp_created: null,
24
24
  pulp2_id: null,
25
25
  pulp2_content_type_id: null,
@@ -1,4 +1,4 @@
1
- # Pulp2to3MigrationClient::Pulp2to3MigrationPulp2Repository
1
+ # Pulp2to3MigrationClient::Pulp2to3MigrationPulp2RepositoryRead
2
2
 
3
3
  ## Properties
4
4
 
@@ -22,7 +22,7 @@ Name | Type | Description | Notes
22
22
  ```ruby
23
23
  require 'Pulp2to3MigrationClient'
24
24
 
25
- instance = Pulp2to3MigrationClient::Pulp2to3MigrationPulp2Repository.new(pulp_href: null,
25
+ instance = Pulp2to3MigrationClient::Pulp2to3MigrationPulp2RepositoryRead.new(pulp_href: null,
26
26
  pulp_created: null,
27
27
  pulp2_object_id: null,
28
28
  pulp2_repo_id: null,
@@ -23,8 +23,9 @@ 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/pulp2to3_migration_pulp2_content'
27
- require 'pulp_2to3_migration_client/models/pulp2to3_migration_pulp2_repository'
26
+ require 'pulp_2to3_migration_client/models/pulp2to3_migration_migration_plan_read'
27
+ require 'pulp_2to3_migration_client/models/pulp2to3_migration_pulp2_content_read'
28
+ require 'pulp_2to3_migration_client/models/pulp2to3_migration_pulp2_repository_read'
28
29
 
29
30
  # APIs
30
31
  require 'pulp_2to3_migration_client/api/migration_plans_api'
@@ -23,7 +23,7 @@ module Pulp2to3MigrationClient
23
23
  # MigrationPlan ViewSet.
24
24
  # @param data [Pulp2to3MigrationMigrationPlan]
25
25
  # @param [Hash] opts the optional parameters
26
- # @return [Pulp2to3MigrationMigrationPlan]
26
+ # @return [Pulp2to3MigrationMigrationPlanRead]
27
27
  def create(data, opts = {})
28
28
  data, _status_code, _headers = create_with_http_info(data, opts)
29
29
  data
@@ -33,7 +33,7 @@ module Pulp2to3MigrationClient
33
33
  # MigrationPlan ViewSet.
34
34
  # @param data [Pulp2to3MigrationMigrationPlan]
35
35
  # @param [Hash] opts the optional parameters
36
- # @return [Array<(Pulp2to3MigrationMigrationPlan, Integer, Hash)>] Pulp2to3MigrationMigrationPlan data, response status code and response headers
36
+ # @return [Array<(Pulp2to3MigrationMigrationPlanRead, Integer, Hash)>] Pulp2to3MigrationMigrationPlanRead 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] || 'Pulp2to3MigrationMigrationPlan'
65
+ return_type = opts[:return_type] || 'Pulp2to3MigrationMigrationPlanRead'
66
66
 
67
67
  # auth_names
68
68
  auth_names = opts[:auth_names] || ['Basic']
@@ -220,7 +220,7 @@ module Pulp2to3MigrationClient
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 [Pulp2to3MigrationMigrationPlan]
223
+ # @return [Pulp2to3MigrationMigrationPlanRead]
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
@@ -232,7 +232,7 @@ module Pulp2to3MigrationClient
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<(Pulp2to3MigrationMigrationPlan, Integer, Hash)>] Pulp2to3MigrationMigrationPlan data, response status code and response headers
235
+ # @return [Array<(Pulp2to3MigrationMigrationPlanRead, Integer, Hash)>] Pulp2to3MigrationMigrationPlanRead 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,7 +261,7 @@ module Pulp2to3MigrationClient
261
261
  post_body = opts[:body]
262
262
 
263
263
  # return_type
264
- return_type = opts[:return_type] || 'Pulp2to3MigrationMigrationPlan'
264
+ return_type = opts[:return_type] || 'Pulp2to3MigrationMigrationPlanRead'
265
265
 
266
266
  # auth_names
267
267
  auth_names = opts[:auth_names] || ['Basic']
@@ -129,7 +129,7 @@ module Pulp2to3MigrationClient
129
129
  # @param [Hash] opts the optional parameters
130
130
  # @option opts [String] :fields A list of fields to include in the response.
131
131
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
132
- # @return [Pulp2to3MigrationPulp2Content]
132
+ # @return [Pulp2to3MigrationPulp2ContentRead]
133
133
  def read(pulp2_content_href, opts = {})
134
134
  data, _status_code, _headers = read_with_http_info(pulp2_content_href, opts)
135
135
  data
@@ -141,7 +141,7 @@ module Pulp2to3MigrationClient
141
141
  # @param [Hash] opts the optional parameters
142
142
  # @option opts [String] :fields A list of fields to include in the response.
143
143
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
144
- # @return [Array<(Pulp2to3MigrationPulp2Content, Integer, Hash)>] Pulp2to3MigrationPulp2Content data, response status code and response headers
144
+ # @return [Array<(Pulp2to3MigrationPulp2ContentRead, Integer, Hash)>] Pulp2to3MigrationPulp2ContentRead data, response status code and response headers
145
145
  def read_with_http_info(pulp2_content_href, opts = {})
146
146
  if @api_client.config.debugging
147
147
  @api_client.config.logger.debug 'Calling API: Pulp2contentApi.read ...'
@@ -170,7 +170,7 @@ module Pulp2to3MigrationClient
170
170
  post_body = opts[:body]
171
171
 
172
172
  # return_type
173
- return_type = opts[:return_type] || 'Pulp2to3MigrationPulp2Content'
173
+ return_type = opts[:return_type] || 'Pulp2to3MigrationPulp2ContentRead'
174
174
 
175
175
  # auth_names
176
176
  auth_names = opts[:auth_names] || ['Basic']
@@ -108,7 +108,7 @@ module Pulp2to3MigrationClient
108
108
  # @param [Hash] opts the optional parameters
109
109
  # @option opts [String] :fields A list of fields to include in the response.
110
110
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
111
- # @return [Pulp2to3MigrationPulp2Repository]
111
+ # @return [Pulp2to3MigrationPulp2RepositoryRead]
112
112
  def read(pulp2_repository_href, opts = {})
113
113
  data, _status_code, _headers = read_with_http_info(pulp2_repository_href, opts)
114
114
  data
@@ -120,7 +120,7 @@ module Pulp2to3MigrationClient
120
120
  # @param [Hash] opts the optional parameters
121
121
  # @option opts [String] :fields A list of fields to include in the response.
122
122
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
123
- # @return [Array<(Pulp2to3MigrationPulp2Repository, Integer, Hash)>] Pulp2to3MigrationPulp2Repository data, response status code and response headers
123
+ # @return [Array<(Pulp2to3MigrationPulp2RepositoryRead, Integer, Hash)>] Pulp2to3MigrationPulp2RepositoryRead data, response status code and response headers
124
124
  def read_with_http_info(pulp2_repository_href, opts = {})
125
125
  if @api_client.config.debugging
126
126
  @api_client.config.logger.debug 'Calling API: Pulp2repositoriesApi.read ...'
@@ -149,7 +149,7 @@ module Pulp2to3MigrationClient
149
149
  post_body = opts[:body]
150
150
 
151
151
  # return_type
152
- return_type = opts[:return_type] || 'Pulp2to3MigrationPulp2Repository'
152
+ return_type = opts[:return_type] || 'Pulp2to3MigrationPulp2RepositoryRead'
153
153
 
154
154
  # auth_names
155
155
  auth_names = opts[:auth_names] || ['Basic']
@@ -38,7 +38,7 @@ module Pulp2to3MigrationClient
38
38
  :'count' => :'Integer',
39
39
  :'_next' => :'String',
40
40
  :'previous' => :'String',
41
- :'results' => :'Array<Pulp2to3MigrationMigrationPlan>'
41
+ :'results' => :'Array<Pulp2to3MigrationMigrationPlanRead>'
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<Pulp2to3MigrationPulp2Content>'
41
+ :'results' => :'Array<Pulp2to3MigrationPulp2ContentRead>'
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<Pulp2to3MigrationPulp2Repository>'
41
+ :'results' => :'Array<Pulp2to3MigrationPulp2RepositoryRead>'
42
42
  }
43
43
  end
44
44
 
@@ -0,0 +1,231 @@
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.3
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module Pulp2to3MigrationClient
16
+ class Pulp2to3MigrationMigrationPlanRead
17
+ attr_accessor :pulp_href
18
+
19
+ # Timestamp of creation.
20
+ attr_accessor :pulp_created
21
+
22
+ # Migration Plan in JSON format
23
+ attr_accessor :plan
24
+
25
+ # Attribute mapping from ruby-style variable name to JSON key.
26
+ def self.attribute_map
27
+ {
28
+ :'pulp_href' => :'pulp_href',
29
+ :'pulp_created' => :'pulp_created',
30
+ :'plan' => :'plan'
31
+ }
32
+ end
33
+
34
+ # Attribute type mapping.
35
+ def self.openapi_types
36
+ {
37
+ :'pulp_href' => :'String',
38
+ :'pulp_created' => :'DateTime',
39
+ :'plan' => :'Object'
40
+ }
41
+ end
42
+
43
+ # List of attributes with nullable: true
44
+ def self.openapi_nullable
45
+ Set.new([
46
+ ])
47
+ end
48
+
49
+ # Initializes the object
50
+ # @param [Hash] attributes Model attributes in the form of hash
51
+ def initialize(attributes = {})
52
+ if (!attributes.is_a?(Hash))
53
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Pulp2to3MigrationClient::Pulp2to3MigrationMigrationPlanRead` initialize method"
54
+ end
55
+
56
+ # check to see if the attribute exists and convert string to symbol for hash key
57
+ attributes = attributes.each_with_object({}) { |(k, v), h|
58
+ if (!self.class.attribute_map.key?(k.to_sym))
59
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Pulp2to3MigrationClient::Pulp2to3MigrationMigrationPlanRead`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
60
+ end
61
+ h[k.to_sym] = v
62
+ }
63
+
64
+ if attributes.key?(:'pulp_href')
65
+ self.pulp_href = attributes[:'pulp_href']
66
+ end
67
+
68
+ if attributes.key?(:'pulp_created')
69
+ self.pulp_created = attributes[:'pulp_created']
70
+ end
71
+
72
+ if attributes.key?(:'plan')
73
+ self.plan = attributes[:'plan']
74
+ end
75
+ end
76
+
77
+ # Show invalid properties with the reasons. Usually used together with valid?
78
+ # @return Array for valid properties with the reasons
79
+ def list_invalid_properties
80
+ invalid_properties = Array.new
81
+ if @plan.nil?
82
+ invalid_properties.push('invalid value for "plan", plan cannot be nil.')
83
+ end
84
+
85
+ invalid_properties
86
+ end
87
+
88
+ # Check to see if the all the properties in the model are valid
89
+ # @return true if the model is valid
90
+ def valid?
91
+ return false if @plan.nil?
92
+ true
93
+ end
94
+
95
+ # Checks equality by comparing each attribute.
96
+ # @param [Object] Object to be compared
97
+ def ==(o)
98
+ return true if self.equal?(o)
99
+ self.class == o.class &&
100
+ pulp_href == o.pulp_href &&
101
+ pulp_created == o.pulp_created &&
102
+ plan == o.plan
103
+ end
104
+
105
+ # @see the `==` method
106
+ # @param [Object] Object to be compared
107
+ def eql?(o)
108
+ self == o
109
+ end
110
+
111
+ # Calculates hash code according to all attributes.
112
+ # @return [Integer] Hash code
113
+ def hash
114
+ [pulp_href, pulp_created, plan].hash
115
+ end
116
+
117
+ # Builds the object from hash
118
+ # @param [Hash] attributes Model attributes in the form of hash
119
+ # @return [Object] Returns the model itself
120
+ def self.build_from_hash(attributes)
121
+ new.build_from_hash(attributes)
122
+ end
123
+
124
+ # Builds the object from hash
125
+ # @param [Hash] attributes Model attributes in the form of hash
126
+ # @return [Object] Returns the model itself
127
+ def build_from_hash(attributes)
128
+ return nil unless attributes.is_a?(Hash)
129
+ self.class.openapi_types.each_pair do |key, type|
130
+ if type =~ /\AArray<(.*)>/i
131
+ # check to ensure the input is an array given that the attribute
132
+ # is documented as an array but the input is not
133
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
134
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
135
+ end
136
+ elsif !attributes[self.class.attribute_map[key]].nil?
137
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
138
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
139
+ end
140
+
141
+ self
142
+ end
143
+
144
+ # Deserializes the data based on type
145
+ # @param string type Data type
146
+ # @param string value Value to be deserialized
147
+ # @return [Object] Deserialized data
148
+ def _deserialize(type, value)
149
+ case type.to_sym
150
+ when :DateTime
151
+ DateTime.parse(value)
152
+ when :Date
153
+ Date.parse(value)
154
+ when :String
155
+ value.to_s
156
+ when :Integer
157
+ value.to_i
158
+ when :Float
159
+ value.to_f
160
+ when :Boolean
161
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
162
+ true
163
+ else
164
+ false
165
+ end
166
+ when :Object
167
+ # generic object (usually a Hash), return directly
168
+ value
169
+ when /\AArray<(?<inner_type>.+)>\z/
170
+ inner_type = Regexp.last_match[:inner_type]
171
+ value.map { |v| _deserialize(inner_type, v) }
172
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
173
+ k_type = Regexp.last_match[:k_type]
174
+ v_type = Regexp.last_match[:v_type]
175
+ {}.tap do |hash|
176
+ value.each do |k, v|
177
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
178
+ end
179
+ end
180
+ else # model
181
+ Pulp2to3MigrationClient.const_get(type).build_from_hash(value)
182
+ end
183
+ end
184
+
185
+ # Returns the string representation of the object
186
+ # @return [String] String presentation of the object
187
+ def to_s
188
+ to_hash.to_s
189
+ end
190
+
191
+ # to_body is an alias to to_hash (backward compatibility)
192
+ # @return [Hash] Returns the object in the form of hash
193
+ def to_body
194
+ to_hash
195
+ end
196
+
197
+ # Returns the object in the form of hash
198
+ # @return [Hash] Returns the object in the form of hash
199
+ def to_hash
200
+ hash = {}
201
+ self.class.attribute_map.each_pair do |attr, param|
202
+ value = self.send(attr)
203
+ if value.nil?
204
+ is_nullable = self.class.openapi_nullable.include?(attr)
205
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
206
+ end
207
+
208
+ hash[param] = _to_hash(value)
209
+ end
210
+ hash
211
+ end
212
+
213
+ # Outputs non-array value in the form of hash
214
+ # For object, use to_hash. Otherwise, just return the value
215
+ # @param [Object] value Any valid value
216
+ # @return [Hash] Returns the value in the form of hash
217
+ def _to_hash(value)
218
+ if value.is_a?(Array)
219
+ value.compact.map { |v| _to_hash(v) }
220
+ elsif value.is_a?(Hash)
221
+ {}.tap do |hash|
222
+ value.each { |k, v| hash[k] = _to_hash(v) }
223
+ end
224
+ elsif value.respond_to? :to_hash
225
+ value.to_hash
226
+ else
227
+ value
228
+ end
229
+ end
230
+ end
231
+ end
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.2.3
13
13
  require 'date'
14
14
 
15
15
  module Pulp2to3MigrationClient
16
- class Pulp2to3MigrationPulp2Content
16
+ class Pulp2to3MigrationPulp2ContentRead
17
17
  attr_accessor :pulp_href
18
18
 
19
19
  # Timestamp of creation.
@@ -75,13 +75,13 @@ module Pulp2to3MigrationClient
75
75
  # @param [Hash] attributes Model attributes in the form of hash
76
76
  def initialize(attributes = {})
77
77
  if (!attributes.is_a?(Hash))
78
- fail ArgumentError, "The input argument (attributes) must be a hash in `Pulp2to3MigrationClient::Pulp2to3MigrationPulp2Content` initialize method"
78
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Pulp2to3MigrationClient::Pulp2to3MigrationPulp2ContentRead` initialize method"
79
79
  end
80
80
 
81
81
  # check to see if the attribute exists and convert string to symbol for hash key
82
82
  attributes = attributes.each_with_object({}) { |(k, v), h|
83
83
  if (!self.class.attribute_map.key?(k.to_sym))
84
- fail ArgumentError, "`#{k}` is not a valid attribute in `Pulp2to3MigrationClient::Pulp2to3MigrationPulp2Content`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
84
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Pulp2to3MigrationClient::Pulp2to3MigrationPulp2ContentRead`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
85
85
  end
86
86
  h[k.to_sym] = v
87
87
  }
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.2.3
13
13
  require 'date'
14
14
 
15
15
  module Pulp2to3MigrationClient
16
- class Pulp2to3MigrationPulp2Repository
16
+ class Pulp2to3MigrationPulp2RepositoryRead
17
17
  attr_accessor :pulp_href
18
18
 
19
19
  # Timestamp of creation.
@@ -91,13 +91,13 @@ module Pulp2to3MigrationClient
91
91
  # @param [Hash] attributes Model attributes in the form of hash
92
92
  def initialize(attributes = {})
93
93
  if (!attributes.is_a?(Hash))
94
- fail ArgumentError, "The input argument (attributes) must be a hash in `Pulp2to3MigrationClient::Pulp2to3MigrationPulp2Repository` initialize method"
94
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Pulp2to3MigrationClient::Pulp2to3MigrationPulp2RepositoryRead` initialize method"
95
95
  end
96
96
 
97
97
  # check to see if the attribute exists and convert string to symbol for hash key
98
98
  attributes = attributes.each_with_object({}) { |(k, v), h|
99
99
  if (!self.class.attribute_map.key?(k.to_sym))
100
- fail ArgumentError, "`#{k}` is not a valid attribute in `Pulp2to3MigrationClient::Pulp2to3MigrationPulp2Repository`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
100
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Pulp2to3MigrationClient::Pulp2to3MigrationPulp2RepositoryRead`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
101
101
  end
102
102
  h[k.to_sym] = v
103
103
  }
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.2.3
11
11
  =end
12
12
 
13
13
  module Pulp2to3MigrationClient
14
- VERSION = '0.2.0b5.dev01594582030'
14
+ VERSION = '0.2.0b6'
15
15
  end
@@ -37,7 +37,7 @@ describe 'MigrationPlansApi' do
37
37
  # MigrationPlan ViewSet.
38
38
  # @param data
39
39
  # @param [Hash] opts the optional parameters
40
- # @return [Pulp2to3MigrationMigrationPlan]
40
+ # @return [Pulp2to3MigrationMigrationPlanRead]
41
41
  describe 'create test' do
42
42
  it 'should work' do
43
43
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -79,7 +79,7 @@ describe 'MigrationPlansApi' do
79
79
  # @param [Hash] opts the optional parameters
80
80
  # @option opts [String] :fields A list of fields to include in the response.
81
81
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
82
- # @return [Pulp2to3MigrationMigrationPlan]
82
+ # @return [Pulp2to3MigrationMigrationPlanRead]
83
83
  describe 'read test' do
84
84
  it 'should work' do
85
85
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -66,7 +66,7 @@ describe 'Pulp2contentApi' do
66
66
  # @param [Hash] opts the optional parameters
67
67
  # @option opts [String] :fields A list of fields to include in the response.
68
68
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
69
- # @return [Pulp2to3MigrationPulp2Content]
69
+ # @return [Pulp2to3MigrationPulp2ContentRead]
70
70
  describe 'read test' do
71
71
  it 'should work' do
72
72
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -59,7 +59,7 @@ describe 'Pulp2repositoriesApi' do
59
59
  # @param [Hash] opts the optional parameters
60
60
  # @option opts [String] :fields A list of fields to include in the response.
61
61
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
62
- # @return [Pulp2to3MigrationPulp2Repository]
62
+ # @return [Pulp2to3MigrationPulp2RepositoryRead]
63
63
  describe 'read test' do
64
64
  it 'should work' do
65
65
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -0,0 +1,53 @@
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.3
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for Pulp2to3MigrationClient::Pulp2to3MigrationMigrationPlanRead
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'Pulp2to3MigrationMigrationPlanRead' do
21
+ before do
22
+ # run before each test
23
+ @instance = Pulp2to3MigrationClient::Pulp2to3MigrationMigrationPlanRead.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of Pulp2to3MigrationMigrationPlanRead' do
31
+ it 'should create an instance of Pulp2to3MigrationMigrationPlanRead' do
32
+ expect(@instance).to be_instance_of(Pulp2to3MigrationClient::Pulp2to3MigrationMigrationPlanRead)
33
+ end
34
+ end
35
+ describe 'test attribute "pulp_href"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "pulp_created"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ describe 'test attribute "plan"' do
48
+ it 'should work' do
49
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
+ end
51
+ end
52
+
53
+ end
@@ -14,22 +14,22 @@ require 'spec_helper'
14
14
  require 'json'
15
15
  require 'date'
16
16
 
17
- # Unit tests for Pulp2to3MigrationClient::Pulp2to3MigrationPulp2Content
17
+ # Unit tests for Pulp2to3MigrationClient::Pulp2to3MigrationPulp2ContentRead
18
18
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
19
  # Please update as you see appropriate
20
- describe 'Pulp2to3MigrationPulp2Content' do
20
+ describe 'Pulp2to3MigrationPulp2ContentRead' do
21
21
  before do
22
22
  # run before each test
23
- @instance = Pulp2to3MigrationClient::Pulp2to3MigrationPulp2Content.new
23
+ @instance = Pulp2to3MigrationClient::Pulp2to3MigrationPulp2ContentRead.new
24
24
  end
25
25
 
26
26
  after do
27
27
  # run after each test
28
28
  end
29
29
 
30
- describe 'test an instance of Pulp2to3MigrationPulp2Content' do
31
- it 'should create an instance of Pulp2to3MigrationPulp2Content' do
32
- expect(@instance).to be_instance_of(Pulp2to3MigrationClient::Pulp2to3MigrationPulp2Content)
30
+ describe 'test an instance of Pulp2to3MigrationPulp2ContentRead' do
31
+ it 'should create an instance of Pulp2to3MigrationPulp2ContentRead' do
32
+ expect(@instance).to be_instance_of(Pulp2to3MigrationClient::Pulp2to3MigrationPulp2ContentRead)
33
33
  end
34
34
  end
35
35
  describe 'test attribute "pulp_href"' do
@@ -14,22 +14,22 @@ require 'spec_helper'
14
14
  require 'json'
15
15
  require 'date'
16
16
 
17
- # Unit tests for Pulp2to3MigrationClient::Pulp2to3MigrationPulp2Repository
17
+ # Unit tests for Pulp2to3MigrationClient::Pulp2to3MigrationPulp2RepositoryRead
18
18
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
19
  # Please update as you see appropriate
20
- describe 'Pulp2to3MigrationPulp2Repository' do
20
+ describe 'Pulp2to3MigrationPulp2RepositoryRead' do
21
21
  before do
22
22
  # run before each test
23
- @instance = Pulp2to3MigrationClient::Pulp2to3MigrationPulp2Repository.new
23
+ @instance = Pulp2to3MigrationClient::Pulp2to3MigrationPulp2RepositoryRead.new
24
24
  end
25
25
 
26
26
  after do
27
27
  # run after each test
28
28
  end
29
29
 
30
- describe 'test an instance of Pulp2to3MigrationPulp2Repository' do
31
- it 'should create an instance of Pulp2to3MigrationPulp2Repository' do
32
- expect(@instance).to be_instance_of(Pulp2to3MigrationClient::Pulp2to3MigrationPulp2Repository)
30
+ describe 'test an instance of Pulp2to3MigrationPulp2RepositoryRead' do
31
+ it 'should create an instance of Pulp2to3MigrationPulp2RepositoryRead' do
32
+ expect(@instance).to be_instance_of(Pulp2to3MigrationClient::Pulp2to3MigrationPulp2RepositoryRead)
33
33
  end
34
34
  end
35
35
  describe 'test attribute "pulp_href"' do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pulp_2to3_migration_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0b5.dev01594582030
4
+ version: 0.2.0b6
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-12 00:00:00.000000000 Z
11
+ date: 2020-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -83,8 +83,9 @@ files:
83
83
  - docs/Pulp2contentApi.md
84
84
  - docs/Pulp2repositoriesApi.md
85
85
  - docs/Pulp2to3MigrationMigrationPlan.md
86
- - docs/Pulp2to3MigrationPulp2Content.md
87
- - docs/Pulp2to3MigrationPulp2Repository.md
86
+ - docs/Pulp2to3MigrationMigrationPlanRead.md
87
+ - docs/Pulp2to3MigrationPulp2ContentRead.md
88
+ - docs/Pulp2to3MigrationPulp2RepositoryRead.md
88
89
  - git_push.sh
89
90
  - lib/pulp_2to3_migration_client.rb
90
91
  - lib/pulp_2to3_migration_client/api/migration_plans_api.rb
@@ -99,8 +100,9 @@ files:
99
100
  - lib/pulp_2to3_migration_client/models/inline_response2002.rb
100
101
  - lib/pulp_2to3_migration_client/models/migration_plan_run.rb
101
102
  - lib/pulp_2to3_migration_client/models/pulp2to3_migration_migration_plan.rb
102
- - lib/pulp_2to3_migration_client/models/pulp2to3_migration_pulp2_content.rb
103
- - lib/pulp_2to3_migration_client/models/pulp2to3_migration_pulp2_repository.rb
103
+ - lib/pulp_2to3_migration_client/models/pulp2to3_migration_migration_plan_read.rb
104
+ - lib/pulp_2to3_migration_client/models/pulp2to3_migration_pulp2_content_read.rb
105
+ - lib/pulp_2to3_migration_client/models/pulp2to3_migration_pulp2_repository_read.rb
104
106
  - lib/pulp_2to3_migration_client/version.rb
105
107
  - pulp_2to3_migration_client.gemspec
106
108
  - spec/api/migration_plans_api_spec.rb
@@ -113,9 +115,10 @@ files:
113
115
  - spec/models/inline_response2002_spec.rb
114
116
  - spec/models/inline_response200_spec.rb
115
117
  - spec/models/migration_plan_run_spec.rb
118
+ - spec/models/pulp2to3_migration_migration_plan_read_spec.rb
116
119
  - spec/models/pulp2to3_migration_migration_plan_spec.rb
117
- - spec/models/pulp2to3_migration_pulp2_content_spec.rb
118
- - spec/models/pulp2to3_migration_pulp2_repository_spec.rb
120
+ - spec/models/pulp2to3_migration_pulp2_content_read_spec.rb
121
+ - spec/models/pulp2to3_migration_pulp2_repository_read_spec.rb
119
122
  - spec/spec_helper.rb
120
123
  homepage: https://openapi-generator.tech
121
124
  licenses:
@@ -141,17 +144,18 @@ signing_key:
141
144
  specification_version: 4
142
145
  summary: Pulp 3 API Ruby Gem
143
146
  test_files:
147
+ - spec/api/pulp2content_api_spec.rb
144
148
  - spec/api/migration_plans_api_spec.rb
145
149
  - spec/api/pulp2repositories_api_spec.rb
146
- - spec/api/pulp2content_api_spec.rb
147
150
  - spec/api_client_spec.rb
148
151
  - spec/configuration_spec.rb
152
+ - spec/models/pulp2to3_migration_pulp2_content_read_spec.rb
153
+ - spec/models/pulp2to3_migration_pulp2_repository_read_spec.rb
154
+ - spec/models/pulp2to3_migration_migration_plan_spec.rb
155
+ - spec/models/pulp2to3_migration_migration_plan_read_spec.rb
149
156
  - spec/models/async_operation_response_spec.rb
150
- - spec/models/inline_response2001_spec.rb
151
- - spec/models/pulp2to3_migration_pulp2_repository_spec.rb
152
157
  - spec/models/migration_plan_run_spec.rb
153
- - spec/models/inline_response200_spec.rb
158
+ - spec/models/inline_response2001_spec.rb
154
159
  - spec/models/inline_response2002_spec.rb
155
- - spec/models/pulp2to3_migration_migration_plan_spec.rb
156
- - spec/models/pulp2to3_migration_pulp2_content_spec.rb
160
+ - spec/models/inline_response200_spec.rb
157
161
  - spec/spec_helper.rb