pulp_2to3_migration_client 0.0.1b2.dev01580321227 → 0.0.1b2.dev01580407602

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 73f97a8927022519fde8f5f62e979aa67eea4e7c2972c8c3dde0486498e18284
4
- data.tar.gz: cce835c53f12403d38645e976f982c9604c0d93ca4b4f4558e5fbd67dd6a97b5
3
+ metadata.gz: 97498ca20602f0efb8bd651c8ba45681993e3d4ddddafb977e7fbbafe6c45507
4
+ data.tar.gz: 543053d8dacac7b3bd4272943d4fe09644efc9e44414b7ad2f5c8aac7a26423d
5
5
  SHA512:
6
- metadata.gz: dda829ded8775cdfa96fe5f4945d84a7d6e46891125210e35a8815bb034d4d9303c0a4ba08ce1922c3bf75b75267b9426d17d2ffc0b85e0922be4ef27e8f20ae
7
- data.tar.gz: 7f6f655ed1452256755e0fb4fa5e4c97e0488611f51625ed85aea7be50d982e26572f0098a66fc6872bb4e17272d91a7a9a7940f8cc4823727992d172bce9df4
6
+ metadata.gz: 560a5c04a6c64545cb8d1a19aa200ed11d93f042353fe0772dae69c996ac6d36acf35e74d0c1d7fb0fd1d3dc5ac83c1a0a21eab3b9be259a7fed73166c873922
7
+ data.tar.gz: d3461021c5a083374393beee75ba6abd7aff3a65f83b5e3b34e906a19eb1e26fc82a630ec169b31f177ca2dfa05ca40e0430c97163d3a9751725af911785206d
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.dev01580321227
10
+ - Package version: 0.0.1b2.dev01580407602
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.dev01580321227.gem
26
+ gem install ./pulp_2to3_migration_client-0.0.1b2.dev01580407602.gem
27
27
  ```
28
28
 
29
- (for development, run `gem install --dev ./pulp_2to3_migration_client-0.0.1b2.dev01580321227.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./pulp_2to3_migration_client-0.0.1b2.dev01580407602.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.dev01580321227'
35
+ gem 'pulp_2to3_migration_client', '~> 0.0.1b2.dev01580407602'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -11,9 +11,10 @@ Name | Type | Description | Notes
11
11
  **is_migrated** | **Boolean** | | [optional] [default to false]
12
12
  **not_in_plan** | **Boolean** | | [optional] [default to false]
13
13
  **pulp3_repository_version** | **String** | RepositoryVersion to be served | [optional]
14
- **pulp3_remote_href** | **String** | | [optional] [readonly]
15
- **pulp3_publication_href** | **String** | | [optional] [readonly]
16
- **pulp3_distribution_hrefs** | **String** | | [optional] [readonly]
14
+ **pulp3_remote_href** | **String** | Get pulp3_remote_href from pulp2repo | [optional] [readonly]
15
+ **pulp3_publication_href** | **String** | Get pulp3_publication_href from pulp3_repository_version | [optional] [readonly]
16
+ **pulp3_distribution_hrefs** | **Array<String>** | Get pulp3_distribution_hrefs from pulp3_repository_version | [optional] [readonly]
17
+ **pulp3_repository_href** | **String** | Get pulp3_repository_href from pulp2repo | [optional] [readonly]
17
18
 
18
19
  ## Code Sample
19
20
 
@@ -29,7 +30,8 @@ instance = Pulp2to3MigrationClient::Pulp2to3MigrationPulp2Repository.new(pulp_hr
29
30
  pulp3_repository_version: null,
30
31
  pulp3_remote_href: null,
31
32
  pulp3_publication_href: null,
32
- pulp3_distribution_hrefs: null)
33
+ pulp3_distribution_hrefs: null,
34
+ pulp3_repository_href: null)
33
35
  ```
34
36
 
35
37
 
@@ -30,12 +30,18 @@ module Pulp2to3MigrationClient
30
30
  # RepositoryVersion to be served
31
31
  attr_accessor :pulp3_repository_version
32
32
 
33
+ # Get pulp3_remote_href from pulp2repo
33
34
  attr_accessor :pulp3_remote_href
34
35
 
36
+ # Get pulp3_publication_href from pulp3_repository_version
35
37
  attr_accessor :pulp3_publication_href
36
38
 
39
+ # Get pulp3_distribution_hrefs from pulp3_repository_version
37
40
  attr_accessor :pulp3_distribution_hrefs
38
41
 
42
+ # Get pulp3_repository_href from pulp2repo
43
+ attr_accessor :pulp3_repository_href
44
+
39
45
  # Attribute mapping from ruby-style variable name to JSON key.
40
46
  def self.attribute_map
41
47
  {
@@ -48,7 +54,8 @@ module Pulp2to3MigrationClient
48
54
  :'pulp3_repository_version' => :'pulp3_repository_version',
49
55
  :'pulp3_remote_href' => :'pulp3_remote_href',
50
56
  :'pulp3_publication_href' => :'pulp3_publication_href',
51
- :'pulp3_distribution_hrefs' => :'pulp3_distribution_hrefs'
57
+ :'pulp3_distribution_hrefs' => :'pulp3_distribution_hrefs',
58
+ :'pulp3_repository_href' => :'pulp3_repository_href'
52
59
  }
53
60
  end
54
61
 
@@ -64,7 +71,8 @@ module Pulp2to3MigrationClient
64
71
  :'pulp3_repository_version' => :'String',
65
72
  :'pulp3_remote_href' => :'String',
66
73
  :'pulp3_publication_href' => :'String',
67
- :'pulp3_distribution_hrefs' => :'String'
74
+ :'pulp3_distribution_hrefs' => :'Array<String>',
75
+ :'pulp3_repository_href' => :'String'
68
76
  }
69
77
  end
70
78
 
@@ -131,7 +139,13 @@ module Pulp2to3MigrationClient
131
139
  end
132
140
 
133
141
  if attributes.key?(:'pulp3_distribution_hrefs')
134
- self.pulp3_distribution_hrefs = attributes[:'pulp3_distribution_hrefs']
142
+ if (value = attributes[:'pulp3_distribution_hrefs']).is_a?(Array)
143
+ self.pulp3_distribution_hrefs = value
144
+ end
145
+ end
146
+
147
+ if attributes.key?(:'pulp3_repository_href')
148
+ self.pulp3_repository_href = attributes[:'pulp3_repository_href']
135
149
  end
136
150
  end
137
151
 
@@ -159,6 +173,18 @@ module Pulp2to3MigrationClient
159
173
  invalid_properties.push('invalid value for "pulp2_repo_id", the character length must be great than or equal to 1.')
160
174
  end
161
175
 
176
+ if !@pulp3_remote_href.nil? && @pulp3_remote_href.to_s.length < 1
177
+ invalid_properties.push('invalid value for "pulp3_remote_href", the character length must be great than or equal to 1.')
178
+ end
179
+
180
+ if !@pulp3_publication_href.nil? && @pulp3_publication_href.to_s.length < 1
181
+ invalid_properties.push('invalid value for "pulp3_publication_href", the character length must be great than or equal to 1.')
182
+ end
183
+
184
+ if !@pulp3_repository_href.nil? && @pulp3_repository_href.to_s.length < 1
185
+ invalid_properties.push('invalid value for "pulp3_repository_href", the character length must be great than or equal to 1.')
186
+ end
187
+
162
188
  invalid_properties
163
189
  end
164
190
 
@@ -170,6 +196,9 @@ module Pulp2to3MigrationClient
170
196
  return false if @pulp2_object_id.to_s.length < 1
171
197
  return false if @pulp2_repo_id.nil?
172
198
  return false if @pulp2_repo_id.to_s.length < 1
199
+ return false if !@pulp3_remote_href.nil? && @pulp3_remote_href.to_s.length < 1
200
+ return false if !@pulp3_publication_href.nil? && @pulp3_publication_href.to_s.length < 1
201
+ return false if !@pulp3_repository_href.nil? && @pulp3_repository_href.to_s.length < 1
173
202
  true
174
203
  end
175
204
 
@@ -205,6 +234,36 @@ module Pulp2to3MigrationClient
205
234
  @pulp2_repo_id = pulp2_repo_id
206
235
  end
207
236
 
237
+ # Custom attribute writer method with validation
238
+ # @param [Object] pulp3_remote_href Value to be assigned
239
+ def pulp3_remote_href=(pulp3_remote_href)
240
+ if !pulp3_remote_href.nil? && pulp3_remote_href.to_s.length < 1
241
+ fail ArgumentError, 'invalid value for "pulp3_remote_href", the character length must be great than or equal to 1.'
242
+ end
243
+
244
+ @pulp3_remote_href = pulp3_remote_href
245
+ end
246
+
247
+ # Custom attribute writer method with validation
248
+ # @param [Object] pulp3_publication_href Value to be assigned
249
+ def pulp3_publication_href=(pulp3_publication_href)
250
+ if !pulp3_publication_href.nil? && pulp3_publication_href.to_s.length < 1
251
+ fail ArgumentError, 'invalid value for "pulp3_publication_href", the character length must be great than or equal to 1.'
252
+ end
253
+
254
+ @pulp3_publication_href = pulp3_publication_href
255
+ end
256
+
257
+ # Custom attribute writer method with validation
258
+ # @param [Object] pulp3_repository_href Value to be assigned
259
+ def pulp3_repository_href=(pulp3_repository_href)
260
+ if !pulp3_repository_href.nil? && pulp3_repository_href.to_s.length < 1
261
+ fail ArgumentError, 'invalid value for "pulp3_repository_href", the character length must be great than or equal to 1.'
262
+ end
263
+
264
+ @pulp3_repository_href = pulp3_repository_href
265
+ end
266
+
208
267
  # Checks equality by comparing each attribute.
209
268
  # @param [Object] Object to be compared
210
269
  def ==(o)
@@ -219,7 +278,8 @@ module Pulp2to3MigrationClient
219
278
  pulp3_repository_version == o.pulp3_repository_version &&
220
279
  pulp3_remote_href == o.pulp3_remote_href &&
221
280
  pulp3_publication_href == o.pulp3_publication_href &&
222
- pulp3_distribution_hrefs == o.pulp3_distribution_hrefs
281
+ pulp3_distribution_hrefs == o.pulp3_distribution_hrefs &&
282
+ pulp3_repository_href == o.pulp3_repository_href
223
283
  end
224
284
 
225
285
  # @see the `==` method
@@ -231,7 +291,7 @@ module Pulp2to3MigrationClient
231
291
  # Calculates hash code according to all attributes.
232
292
  # @return [Integer] Hash code
233
293
  def hash
234
- [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].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
235
295
  end
236
296
 
237
297
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.2.2
11
11
  =end
12
12
 
13
13
  module Pulp2to3MigrationClient
14
- VERSION = '0.0.1b2.dev01580321227'
14
+ VERSION = '0.0.1b2.dev01580407602'
15
15
  end
@@ -92,4 +92,10 @@ describe 'Pulp2to3MigrationPulp2Repository' do
92
92
  end
93
93
  end
94
94
 
95
+ describe 'test attribute "pulp3_repository_href"' do
96
+ it 'should work' do
97
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
98
+ end
99
+ end
100
+
95
101
  end
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.dev01580321227
4
+ version: 0.0.1b2.dev01580407602
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-01-29 00:00:00.000000000 Z
11
+ date: 2020-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday