pulp_2to3_migration_client 0.0.1a1.dev01570732908 → 0.0.1a1.dev01570819348
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d26e1038a76b02d2650c2f8ee2c313586a0213d6efa5a602e99c869866a0285
|
4
|
+
data.tar.gz: 8efa4c2214f013fd93fd465f11db07ed0a651e3085ddc04dd92242493b4df582
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c55fd081e56dcebb842f44be18d5d5a019dba74a4566206b5f97b49ff432e274a956faf7ce670824fcf7afe01f412240171c874b2bac1ba7dc9f42c37610302
|
7
|
+
data.tar.gz: 1222e5aecef407396749bd00cd2377af6000e06939f8e577de45310efe573fe8c2fc7754f19fc1a3d013456035180e384cba7c619f151d69f893d26ca3585867
|
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.
|
10
|
+
- Package version: 0.0.1a1.dev01570819348
|
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.
|
26
|
+
gem install ./pulp_2to3_migration_client-0.0.1a1.dev01570819348.gem
|
27
27
|
```
|
28
28
|
|
29
|
-
(for development, run `gem install --dev ./pulp_2to3_migration_client-0.0.1a1.
|
29
|
+
(for development, run `gem install --dev ./pulp_2to3_migration_client-0.0.1a1.dev01570819348.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.
|
35
|
+
gem 'pulp_2to3_migration_client', '~> 0.0.1a1.dev01570819348'
|
36
36
|
|
37
37
|
### Install from Git
|
38
38
|
|
data/docs/MigrationPlanRun.md
CHANGED
@@ -4,14 +4,16 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**
|
7
|
+
**validate** | **Boolean** | If ``True``, migration cannot happen without successful validation of the Migration Plan | [optional] [default to false]
|
8
|
+
**dry_run** | **Boolean** | If ``True``, performs validation of a Migration Plan only, no migration is run. | [optional] [default to false]
|
8
9
|
|
9
10
|
## Code Sample
|
10
11
|
|
11
12
|
```ruby
|
12
13
|
require 'Pulp2to3MigrationClient'
|
13
14
|
|
14
|
-
instance = Pulp2to3MigrationClient::MigrationPlanRun.new(
|
15
|
+
instance = Pulp2to3MigrationClient::MigrationPlanRun.new(validate: null,
|
16
|
+
dry_run: null)
|
15
17
|
```
|
16
18
|
|
17
19
|
|
@@ -14,12 +14,16 @@ require 'date'
|
|
14
14
|
|
15
15
|
module Pulp2to3MigrationClient
|
16
16
|
class MigrationPlanRun
|
17
|
-
# If ``True``,
|
17
|
+
# If ``True``, migration cannot happen without successful validation of the Migration Plan
|
18
|
+
attr_accessor :validate
|
19
|
+
|
20
|
+
# If ``True``, performs validation of a Migration Plan only, no migration is run.
|
18
21
|
attr_accessor :dry_run
|
19
22
|
|
20
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
21
24
|
def self.attribute_map
|
22
25
|
{
|
26
|
+
:'validate' => :'validate',
|
23
27
|
:'dry_run' => :'dry_run'
|
24
28
|
}
|
25
29
|
end
|
@@ -27,6 +31,7 @@ module Pulp2to3MigrationClient
|
|
27
31
|
# Attribute type mapping.
|
28
32
|
def self.openapi_types
|
29
33
|
{
|
34
|
+
:'validate' => :'Boolean',
|
30
35
|
:'dry_run' => :'Boolean'
|
31
36
|
}
|
32
37
|
end
|
@@ -46,6 +51,12 @@ module Pulp2to3MigrationClient
|
|
46
51
|
h[k.to_sym] = v
|
47
52
|
}
|
48
53
|
|
54
|
+
if attributes.key?(:'validate')
|
55
|
+
self.validate = attributes[:'validate']
|
56
|
+
else
|
57
|
+
self.validate = false
|
58
|
+
end
|
59
|
+
|
49
60
|
if attributes.key?(:'dry_run')
|
50
61
|
self.dry_run = attributes[:'dry_run']
|
51
62
|
else
|
@@ -71,6 +82,7 @@ module Pulp2to3MigrationClient
|
|
71
82
|
def ==(o)
|
72
83
|
return true if self.equal?(o)
|
73
84
|
self.class == o.class &&
|
85
|
+
validate == o.validate &&
|
74
86
|
dry_run == o.dry_run
|
75
87
|
end
|
76
88
|
|
@@ -83,7 +95,7 @@ module Pulp2to3MigrationClient
|
|
83
95
|
# Calculates hash code according to all attributes.
|
84
96
|
# @return [Integer] Hash code
|
85
97
|
def hash
|
86
|
-
[dry_run].hash
|
98
|
+
[validate, dry_run].hash
|
87
99
|
end
|
88
100
|
|
89
101
|
# Builds the object from hash
|
@@ -32,6 +32,12 @@ describe 'MigrationPlanRun' do
|
|
32
32
|
expect(@instance).to be_instance_of(Pulp2to3MigrationClient::MigrationPlanRun)
|
33
33
|
end
|
34
34
|
end
|
35
|
+
describe 'test attribute "validate"' 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
|
+
|
35
41
|
describe 'test attribute "dry_run"' do
|
36
42
|
it 'should work' do
|
37
43
|
# 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.1a1.
|
4
|
+
version: 0.0.1a1.dev01570819348
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenAPI-Generator
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-10-
|
11
|
+
date: 2019-10-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|