pulp_2to3_migration_client 0.0.1b2.dev01581104109 → 0.0.1b2.dev01581185711
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/docs/Pulp2to3MigrationPulp2Repository.md +2 -0
- data/lib/pulp_2to3_migration_client/models/pulp2to3_migration_pulp2_repository.rb +34 -1
- data/lib/pulp_2to3_migration_client/version.rb +1 -1
- data/spec/models/pulp2to3_migration_pulp2_repository_spec.rb +6 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9d42cb7715e8245767e8f47817ab7699a4c850556e1f5c3520ee70f163c9d60a
|
4
|
+
data.tar.gz: 3d3047da230d27215c55dad14bf4a2104c4d8d91d1ebc933ba605457af5371a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e7783b7534912112274b0b838588529fcbd84cc5ecbf27336f0e2cbe96ce00a672a597f01942e03fc97077011b7703988879962f392f9d399331d62c0ceee50
|
7
|
+
data.tar.gz: c047b68408ee6966a035bd6606bf6aad9c232d4593e80d40c0ba29e6ed94af4f6beeb85315f2663b5c4313f1dfbb905a556c7cc93cca2050e26f074f772797ca
|
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.1b2.
|
10
|
+
- Package version: 0.0.1b2.dev01581185711
|
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.1b2.
|
26
|
+
gem install ./pulp_2to3_migration_client-0.0.1b2.dev01581185711.gem
|
27
27
|
```
|
28
28
|
|
29
|
-
(for development, run `gem install --dev ./pulp_2to3_migration_client-0.0.1b2.
|
29
|
+
(for development, run `gem install --dev ./pulp_2to3_migration_client-0.0.1b2.dev01581185711.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.1b2.
|
35
|
+
gem 'pulp_2to3_migration_client', '~> 0.0.1b2.dev01581185711'
|
36
36
|
|
37
37
|
### Install from Git
|
38
38
|
|
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
|
|
8
8
|
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
9
9
|
**pulp2_object_id** | **String** | |
|
10
10
|
**pulp2_repo_id** | **String** | |
|
11
|
+
**pulp2_repo_type** | **String** | |
|
11
12
|
**is_migrated** | **Boolean** | | [optional] [default to false]
|
12
13
|
**not_in_plan** | **Boolean** | | [optional] [default to false]
|
13
14
|
**pulp3_repository_version** | **String** | RepositoryVersion to be served | [optional]
|
@@ -25,6 +26,7 @@ instance = Pulp2to3MigrationClient::Pulp2to3MigrationPulp2Repository.new(pulp_hr
|
|
25
26
|
pulp_created: null,
|
26
27
|
pulp2_object_id: null,
|
27
28
|
pulp2_repo_id: null,
|
29
|
+
pulp2_repo_type: null,
|
28
30
|
is_migrated: null,
|
29
31
|
not_in_plan: null,
|
30
32
|
pulp3_repository_version: null,
|
@@ -23,6 +23,8 @@ module Pulp2to3MigrationClient
|
|
23
23
|
|
24
24
|
attr_accessor :pulp2_repo_id
|
25
25
|
|
26
|
+
attr_accessor :pulp2_repo_type
|
27
|
+
|
26
28
|
attr_accessor :is_migrated
|
27
29
|
|
28
30
|
attr_accessor :not_in_plan
|
@@ -49,6 +51,7 @@ module Pulp2to3MigrationClient
|
|
49
51
|
:'pulp_created' => :'pulp_created',
|
50
52
|
:'pulp2_object_id' => :'pulp2_object_id',
|
51
53
|
:'pulp2_repo_id' => :'pulp2_repo_id',
|
54
|
+
:'pulp2_repo_type' => :'pulp2_repo_type',
|
52
55
|
:'is_migrated' => :'is_migrated',
|
53
56
|
:'not_in_plan' => :'not_in_plan',
|
54
57
|
:'pulp3_repository_version' => :'pulp3_repository_version',
|
@@ -66,6 +69,7 @@ module Pulp2to3MigrationClient
|
|
66
69
|
:'pulp_created' => :'DateTime',
|
67
70
|
:'pulp2_object_id' => :'String',
|
68
71
|
:'pulp2_repo_id' => :'String',
|
72
|
+
:'pulp2_repo_type' => :'String',
|
69
73
|
:'is_migrated' => :'Boolean',
|
70
74
|
:'not_in_plan' => :'Boolean',
|
71
75
|
:'pulp3_repository_version' => :'String',
|
@@ -114,6 +118,10 @@ module Pulp2to3MigrationClient
|
|
114
118
|
self.pulp2_repo_id = attributes[:'pulp2_repo_id']
|
115
119
|
end
|
116
120
|
|
121
|
+
if attributes.key?(:'pulp2_repo_type')
|
122
|
+
self.pulp2_repo_type = attributes[:'pulp2_repo_type']
|
123
|
+
end
|
124
|
+
|
117
125
|
if attributes.key?(:'is_migrated')
|
118
126
|
self.is_migrated = attributes[:'is_migrated']
|
119
127
|
else
|
@@ -173,6 +181,14 @@ module Pulp2to3MigrationClient
|
|
173
181
|
invalid_properties.push('invalid value for "pulp2_repo_id", the character length must be great than or equal to 1.')
|
174
182
|
end
|
175
183
|
|
184
|
+
if @pulp2_repo_type.nil?
|
185
|
+
invalid_properties.push('invalid value for "pulp2_repo_type", pulp2_repo_type cannot be nil.')
|
186
|
+
end
|
187
|
+
|
188
|
+
if @pulp2_repo_type.to_s.length < 1
|
189
|
+
invalid_properties.push('invalid value for "pulp2_repo_type", the character length must be great than or equal to 1.')
|
190
|
+
end
|
191
|
+
|
176
192
|
if !@pulp3_remote_href.nil? && @pulp3_remote_href.to_s.length < 1
|
177
193
|
invalid_properties.push('invalid value for "pulp3_remote_href", the character length must be great than or equal to 1.')
|
178
194
|
end
|
@@ -196,6 +212,8 @@ module Pulp2to3MigrationClient
|
|
196
212
|
return false if @pulp2_object_id.to_s.length < 1
|
197
213
|
return false if @pulp2_repo_id.nil?
|
198
214
|
return false if @pulp2_repo_id.to_s.length < 1
|
215
|
+
return false if @pulp2_repo_type.nil?
|
216
|
+
return false if @pulp2_repo_type.to_s.length < 1
|
199
217
|
return false if !@pulp3_remote_href.nil? && @pulp3_remote_href.to_s.length < 1
|
200
218
|
return false if !@pulp3_publication_href.nil? && @pulp3_publication_href.to_s.length < 1
|
201
219
|
return false if !@pulp3_repository_href.nil? && @pulp3_repository_href.to_s.length < 1
|
@@ -234,6 +252,20 @@ module Pulp2to3MigrationClient
|
|
234
252
|
@pulp2_repo_id = pulp2_repo_id
|
235
253
|
end
|
236
254
|
|
255
|
+
# Custom attribute writer method with validation
|
256
|
+
# @param [Object] pulp2_repo_type Value to be assigned
|
257
|
+
def pulp2_repo_type=(pulp2_repo_type)
|
258
|
+
if pulp2_repo_type.nil?
|
259
|
+
fail ArgumentError, 'pulp2_repo_type cannot be nil'
|
260
|
+
end
|
261
|
+
|
262
|
+
if pulp2_repo_type.to_s.length < 1
|
263
|
+
fail ArgumentError, 'invalid value for "pulp2_repo_type", the character length must be great than or equal to 1.'
|
264
|
+
end
|
265
|
+
|
266
|
+
@pulp2_repo_type = pulp2_repo_type
|
267
|
+
end
|
268
|
+
|
237
269
|
# Custom attribute writer method with validation
|
238
270
|
# @param [Object] pulp3_remote_href Value to be assigned
|
239
271
|
def pulp3_remote_href=(pulp3_remote_href)
|
@@ -273,6 +305,7 @@ module Pulp2to3MigrationClient
|
|
273
305
|
pulp_created == o.pulp_created &&
|
274
306
|
pulp2_object_id == o.pulp2_object_id &&
|
275
307
|
pulp2_repo_id == o.pulp2_repo_id &&
|
308
|
+
pulp2_repo_type == o.pulp2_repo_type &&
|
276
309
|
is_migrated == o.is_migrated &&
|
277
310
|
not_in_plan == o.not_in_plan &&
|
278
311
|
pulp3_repository_version == o.pulp3_repository_version &&
|
@@ -291,7 +324,7 @@ module Pulp2to3MigrationClient
|
|
291
324
|
# Calculates hash code according to all attributes.
|
292
325
|
# @return [Integer] Hash code
|
293
326
|
def hash
|
294
|
-
[pulp_href, pulp_created, pulp2_object_id, pulp2_repo_id, is_migrated, not_in_plan, pulp3_repository_version, pulp3_remote_href, pulp3_publication_href, pulp3_distribution_hrefs, pulp3_repository_href].hash
|
327
|
+
[pulp_href, pulp_created, pulp2_object_id, pulp2_repo_id, pulp2_repo_type, is_migrated, not_in_plan, pulp3_repository_version, pulp3_remote_href, pulp3_publication_href, pulp3_distribution_hrefs, pulp3_repository_href].hash
|
295
328
|
end
|
296
329
|
|
297
330
|
# Builds the object from hash
|
@@ -56,6 +56,12 @@ describe 'Pulp2to3MigrationPulp2Repository' do
|
|
56
56
|
end
|
57
57
|
end
|
58
58
|
|
59
|
+
describe 'test attribute "pulp2_repo_type"' do
|
60
|
+
it 'should work' do
|
61
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
59
65
|
describe 'test attribute "is_migrated"' do
|
60
66
|
it 'should work' do
|
61
67
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
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.0.1b2.
|
4
|
+
version: 0.0.1b2.dev01581185711
|
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-02-
|
11
|
+
date: 2020-02-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|