pulp_2to3_migration_client 0.6.0.dev01605540150 → 0.7.0.dev01608003072

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: f37a44c651257d8bc9455d0db52c3790a9972aaf036aeed4078cf0525dafb3f2
4
- data.tar.gz: 1799c107b52b28d76cac9d7fb025d8c680696751cfd6b8d638952235af2d4094
3
+ metadata.gz: b8696ff337075f5e782ed2e0fbe8a7376297f2fd951d9c2c23781e0d93862fe5
4
+ data.tar.gz: b28862024a2bdb1a2e79c03e5d2bb19345e8d6c0557611042d4a09b0261b728b
5
5
  SHA512:
6
- metadata.gz: 69218b78dee03c5988236f9cec1d85ae5c2e6a911b2866b6db308dc8e6984de41064bc800f20e42a4c12721972fb2686ae99f9ff5a21db1f8e1fc080962d79c6
7
- data.tar.gz: 96a3b3ae82f41c539ebae838e3a7c91c957a57223478fdcef0dcf9b4ff7125d038f15ad58005269d303e3af8dfceb5b7314027231e82d23c7e79d740cd4080a9
6
+ metadata.gz: aac848c5cea5ac2c72df71c0dd2b1a6dbb53a2b1d75b93c9b4464c26b3c07320de0e3f65c5d70ecca2ca3149247a571da381bda8fde82d5788ff9cfec0ce630c
7
+ data.tar.gz: 495bc951c8fa12204247501569fad88cc633dfff8e304ed6c5be3cc3f5d4b3aae09680bf714b5fa85a53a5f28cb6a1113ceeee6231d0e77f6210b1d837d0d4b2
data/README.md CHANGED
@@ -7,7 +7,7 @@ Fetch, Upload, Organize, and Distribute Software Packages
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.6.0.dev01605540150
10
+ - Package version: 0.7.0.dev01608003072
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
  For more information, please visit [https://pulpproject.org](https://pulpproject.org)
13
13
 
@@ -24,16 +24,16 @@ gem build pulp_2to3_migration_client.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./pulp_2to3_migration_client-0.6.0.dev01605540150.gem
27
+ gem install ./pulp_2to3_migration_client-0.7.0.dev01608003072.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./pulp_2to3_migration_client-0.6.0.dev01605540150.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./pulp_2to3_migration_client-0.7.0.dev01608003072.gem` to install the development dependencies)
31
31
 
32
32
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
33
33
 
34
34
  Finally add this to the Gemfile:
35
35
 
36
- gem 'pulp_2to3_migration_client', '~> 0.6.0.dev01605540150'
36
+ gem 'pulp_2to3_migration_client', '~> 0.7.0.dev01608003072'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -4,8 +4,9 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **validate** | **Boolean** | If ``True``, migration cannot happen without successful validation of the Migration Plan | [optional] [default to false]
7
+ **validate** | **Boolean** | If ``True``, migration cannot happen without successful validation of the Migration Plan. | [optional] [default to false]
8
8
  **dry_run** | **Boolean** | If ``True``, performs validation of a Migration Plan only, no migration is run. | [optional] [default to false]
9
+ **skip_corrupted** | **Boolean** | If ``True``, skips corrupted or missing Pulp 2 content without causing a task failure. If you need this content, run a sync task in Pulp 3 for a repo of interest to bring any missing content back. Alternatively, repair it in Pulp 2and re-run the migration task. | [optional] [default to false]
9
10
 
10
11
  ## Code Sample
11
12
 
@@ -13,7 +14,8 @@ Name | Type | Description | Notes
13
14
  require 'Pulp2to3MigrationClient'
14
15
 
15
16
  instance = Pulp2to3MigrationClient::MigrationPlanRun.new(validate: null,
16
- dry_run: null)
17
+ dry_run: null,
18
+ skip_corrupted: null)
17
19
  ```
18
20
 
19
21
 
@@ -15,17 +15,21 @@ require 'date'
15
15
  module Pulp2to3MigrationClient
16
16
  # A serializer for running a migration plan.
17
17
  class MigrationPlanRun
18
- # If ``True``, migration cannot happen without successful validation of the Migration Plan
18
+ # If ``True``, migration cannot happen without successful validation of the Migration Plan.
19
19
  attr_accessor :validate
20
20
 
21
21
  # If ``True``, performs validation of a Migration Plan only, no migration is run.
22
22
  attr_accessor :dry_run
23
23
 
24
+ # If ``True``, skips corrupted or missing Pulp 2 content without causing a task failure. If you need this content, run a sync task in Pulp 3 for a repo of interest to bring any missing content back. Alternatively, repair it in Pulp 2and re-run the migration task.
25
+ attr_accessor :skip_corrupted
26
+
24
27
  # Attribute mapping from ruby-style variable name to JSON key.
25
28
  def self.attribute_map
26
29
  {
27
30
  :'validate' => :'validate',
28
- :'dry_run' => :'dry_run'
31
+ :'dry_run' => :'dry_run',
32
+ :'skip_corrupted' => :'skip_corrupted'
29
33
  }
30
34
  end
31
35
 
@@ -33,7 +37,8 @@ module Pulp2to3MigrationClient
33
37
  def self.openapi_types
34
38
  {
35
39
  :'validate' => :'Boolean',
36
- :'dry_run' => :'Boolean'
40
+ :'dry_run' => :'Boolean',
41
+ :'skip_corrupted' => :'Boolean'
37
42
  }
38
43
  end
39
44
 
@@ -69,6 +74,12 @@ module Pulp2to3MigrationClient
69
74
  else
70
75
  self.dry_run = false
71
76
  end
77
+
78
+ if attributes.key?(:'skip_corrupted')
79
+ self.skip_corrupted = attributes[:'skip_corrupted']
80
+ else
81
+ self.skip_corrupted = false
82
+ end
72
83
  end
73
84
 
74
85
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -90,7 +101,8 @@ module Pulp2to3MigrationClient
90
101
  return true if self.equal?(o)
91
102
  self.class == o.class &&
92
103
  validate == o.validate &&
93
- dry_run == o.dry_run
104
+ dry_run == o.dry_run &&
105
+ skip_corrupted == o.skip_corrupted
94
106
  end
95
107
 
96
108
  # @see the `==` method
@@ -102,7 +114,7 @@ module Pulp2to3MigrationClient
102
114
  # Calculates hash code according to all attributes.
103
115
  # @return [Integer] Hash code
104
116
  def hash
105
- [validate, dry_run].hash
117
+ [validate, dry_run, skip_corrupted].hash
106
118
  end
107
119
 
108
120
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.2.3
11
11
  =end
12
12
 
13
13
  module Pulp2to3MigrationClient
14
- VERSION = '0.6.0.dev01605540150'
14
+ VERSION = '0.7.0.dev01608003072'
15
15
  end
@@ -44,4 +44,10 @@ describe 'MigrationPlanRun' do
44
44
  end
45
45
  end
46
46
 
47
+ describe 'test attribute "skip_corrupted"' 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
+
47
53
  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.6.0.dev01605540150
4
+ version: 0.7.0.dev01608003072
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-11-16 00:00:00.000000000 Z
11
+ date: 2020-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -139,23 +139,23 @@ required_rubygems_version: !ruby/object:Gem::Requirement
139
139
  - !ruby/object:Gem::Version
140
140
  version: 1.3.1
141
141
  requirements: []
142
- rubygems_version: 3.0.6
142
+ rubygems_version: 3.0.3
143
143
  signing_key:
144
144
  specification_version: 4
145
145
  summary: Pulp 3 API Ruby Gem
146
146
  test_files:
147
- - spec/api/migration_plans_api_spec.rb
148
147
  - spec/api/pulp2_content_api_spec.rb
149
148
  - spec/api/pulp2_repositories_api_spec.rb
149
+ - spec/api/migration_plans_api_spec.rb
150
150
  - spec/api_client_spec.rb
151
151
  - spec/configuration_spec.rb
152
152
  - spec/models/pulp2to3_migration_migration_plan_spec.rb
153
- - spec/models/async_operation_response_spec.rb
154
- - spec/models/pulp2to3_migration_pulp2_repository_response_spec.rb
155
- - spec/models/pulp2to3_migration_migration_plan_response_spec.rb
156
- - spec/models/migration_plan_run_spec.rb
157
153
  - spec/models/paginatedpulp2to3_migration_pulp2_content_response_list_spec.rb
154
+ - spec/models/paginatedpulp2to3_migration_pulp2_repository_response_list_spec.rb
155
+ - spec/models/migration_plan_run_spec.rb
156
+ - spec/models/pulp2to3_migration_migration_plan_response_spec.rb
158
157
  - spec/models/pulp2to3_migration_pulp2_content_response_spec.rb
158
+ - spec/models/async_operation_response_spec.rb
159
+ - spec/models/pulp2to3_migration_pulp2_repository_response_spec.rb
159
160
  - spec/models/paginatedpulp2to3_migration_migration_plan_response_list_spec.rb
160
- - spec/models/paginatedpulp2to3_migration_pulp2_repository_response_list_spec.rb
161
161
  - spec/spec_helper.rb