pulp_2to3_migration_client 0.3.0b1.dev01595619351 → 0.3.0b1.dev01595705725
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +21 -20
- data/docs/InlineResponse200.md +3 -3
- data/docs/InlineResponse2001.md +3 -3
- data/docs/InlineResponse2002.md +3 -3
- data/docs/MigrationPlansApi.md +39 -43
- data/docs/Pulp2ContentApi.md +152 -0
- data/docs/{Pulp2repositoriesApi.md → Pulp2RepositoriesApi.md} +27 -29
- data/docs/Pulp2to3MigrationMigrationPlan.md +1 -5
- data/docs/Pulp2to3MigrationMigrationPlanResponse.md +21 -0
- data/docs/{Pulp2to3MigrationPulp2Content.md → Pulp2to3MigrationPulp2ContentResponse.md} +3 -3
- data/docs/{Pulp2to3MigrationPulp2Repository.md → Pulp2to3MigrationPulp2RepositoryResponse.md} +6 -6
- data/lib/pulp_2to3_migration_client.rb +7 -6
- data/lib/pulp_2to3_migration_client/api/migration_plans_api.rb +42 -50
- data/lib/pulp_2to3_migration_client/api/{pulp2content_api.rb → pulp2_content_api.rb} +46 -50
- data/lib/pulp_2to3_migration_client/api/{pulp2repositories_api.rb → pulp2_repositories_api.rb} +29 -33
- data/lib/pulp_2to3_migration_client/api_client.rb +2 -2
- data/lib/pulp_2to3_migration_client/api_error.rb +2 -2
- data/lib/pulp_2to3_migration_client/configuration.rb +3 -3
- data/lib/pulp_2to3_migration_client/models/async_operation_response.rb +3 -2
- data/lib/pulp_2to3_migration_client/models/inline_response200.rb +3 -13
- data/lib/pulp_2to3_migration_client/models/inline_response2001.rb +3 -13
- data/lib/pulp_2to3_migration_client/models/inline_response2002.rb +3 -13
- data/lib/pulp_2to3_migration_client/models/migration_plan_run.rb +3 -2
- data/lib/pulp_2to3_migration_client/models/pulp2to3_migration_migration_plan.rb +4 -22
- data/lib/pulp_2to3_migration_client/models/pulp2to3_migration_migration_plan_response.rb +232 -0
- data/lib/pulp_2to3_migration_client/models/{pulp2to3_migration_pulp2_content.rb → pulp2to3_migration_pulp2_content_response.rb} +7 -59
- data/lib/pulp_2to3_migration_client/models/{pulp2to3_migration_pulp2_repository.rb → pulp2to3_migration_pulp2_repository_response.rb} +11 -108
- data/lib/pulp_2to3_migration_client/version.rb +3 -3
- data/pulp_2to3_migration_client.gemspec +4 -4
- data/spec/api/migration_plans_api_spec.rb +10 -14
- data/spec/api/pulp2_content_api_spec.rb +74 -0
- data/spec/api/{pulp2repositories_api_spec.rb → pulp2_repositories_api_spec.rb} +15 -17
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +2 -2
- data/spec/models/async_operation_response_spec.rb +2 -2
- data/spec/models/inline_response2001_spec.rb +2 -2
- data/spec/models/inline_response2002_spec.rb +2 -2
- data/spec/models/inline_response200_spec.rb +2 -2
- data/spec/models/migration_plan_run_spec.rb +2 -2
- data/spec/models/pulp2to3_migration_migration_plan_response_spec.rb +53 -0
- data/spec/models/pulp2to3_migration_migration_plan_spec.rb +2 -14
- data/spec/models/{pulp2to3_migration_pulp2_content_spec.rb → pulp2to3_migration_pulp2_content_response_spec.rb} +8 -8
- data/spec/models/{pulp2to3_migration_pulp2_repository_spec.rb → pulp2to3_migration_pulp2_repository_response_spec.rb} +8 -8
- data/spec/spec_helper.rb +2 -2
- metadata +24 -20
- data/docs/Pulp2contentApi.md +0 -154
- data/spec/api/pulp2content_api_spec.rb +0 -76
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
2
|
#Pulp 3 API
|
3
3
|
|
4
|
-
#
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
5
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
|
-
|
7
|
+
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 4.2.3
|
10
10
|
|
@@ -38,7 +38,7 @@ module Pulp2to3MigrationClient
|
|
38
38
|
:'count' => :'Integer',
|
39
39
|
:'_next' => :'String',
|
40
40
|
:'previous' => :'String',
|
41
|
-
:'results' => :'Array<
|
41
|
+
:'results' => :'Array<Pulp2to3MigrationPulp2ContentResponse>'
|
42
42
|
}
|
43
43
|
end
|
44
44
|
|
@@ -88,22 +88,12 @@ module Pulp2to3MigrationClient
|
|
88
88
|
# @return Array for valid properties with the reasons
|
89
89
|
def list_invalid_properties
|
90
90
|
invalid_properties = Array.new
|
91
|
-
if @count.nil?
|
92
|
-
invalid_properties.push('invalid value for "count", count cannot be nil.')
|
93
|
-
end
|
94
|
-
|
95
|
-
if @results.nil?
|
96
|
-
invalid_properties.push('invalid value for "results", results cannot be nil.')
|
97
|
-
end
|
98
|
-
|
99
91
|
invalid_properties
|
100
92
|
end
|
101
93
|
|
102
94
|
# Check to see if the all the properties in the model are valid
|
103
95
|
# @return true if the model is valid
|
104
96
|
def valid?
|
105
|
-
return false if @count.nil?
|
106
|
-
return false if @results.nil?
|
107
97
|
true
|
108
98
|
end
|
109
99
|
|
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
2
|
#Pulp 3 API
|
3
3
|
|
4
|
-
#
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
5
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
|
-
|
7
|
+
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 4.2.3
|
10
10
|
|
@@ -38,7 +38,7 @@ module Pulp2to3MigrationClient
|
|
38
38
|
:'count' => :'Integer',
|
39
39
|
:'_next' => :'String',
|
40
40
|
:'previous' => :'String',
|
41
|
-
:'results' => :'Array<
|
41
|
+
:'results' => :'Array<Pulp2to3MigrationPulp2RepositoryResponse>'
|
42
42
|
}
|
43
43
|
end
|
44
44
|
|
@@ -88,22 +88,12 @@ module Pulp2to3MigrationClient
|
|
88
88
|
# @return Array for valid properties with the reasons
|
89
89
|
def list_invalid_properties
|
90
90
|
invalid_properties = Array.new
|
91
|
-
if @count.nil?
|
92
|
-
invalid_properties.push('invalid value for "count", count cannot be nil.')
|
93
|
-
end
|
94
|
-
|
95
|
-
if @results.nil?
|
96
|
-
invalid_properties.push('invalid value for "results", results cannot be nil.')
|
97
|
-
end
|
98
|
-
|
99
91
|
invalid_properties
|
100
92
|
end
|
101
93
|
|
102
94
|
# Check to see if the all the properties in the model are valid
|
103
95
|
# @return true if the model is valid
|
104
96
|
def valid?
|
105
|
-
return false if @count.nil?
|
106
|
-
return false if @results.nil?
|
107
97
|
true
|
108
98
|
end
|
109
99
|
|
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
2
|
#Pulp 3 API
|
3
3
|
|
4
|
-
#
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
5
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
|
-
|
7
|
+
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 4.2.3
|
10
10
|
|
@@ -13,6 +13,7 @@ OpenAPI Generator version: 4.2.3
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module Pulp2to3MigrationClient
|
16
|
+
# A serializer for running a migration plan.
|
16
17
|
class MigrationPlanRun
|
17
18
|
# If ``True``, migration cannot happen without successful validation of the Migration Plan
|
18
19
|
attr_accessor :validate
|
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
2
|
#Pulp 3 API
|
3
3
|
|
4
|
-
#
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
5
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
|
-
|
7
|
+
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 4.2.3
|
10
10
|
|
@@ -13,20 +13,14 @@ OpenAPI Generator version: 4.2.3
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module Pulp2to3MigrationClient
|
16
|
+
# Serializer for migration plan model.
|
16
17
|
class Pulp2to3MigrationMigrationPlan
|
17
|
-
attr_accessor :pulp_href
|
18
|
-
|
19
|
-
# Timestamp of creation.
|
20
|
-
attr_accessor :pulp_created
|
21
|
-
|
22
18
|
# Migration Plan in JSON format
|
23
19
|
attr_accessor :plan
|
24
20
|
|
25
21
|
# Attribute mapping from ruby-style variable name to JSON key.
|
26
22
|
def self.attribute_map
|
27
23
|
{
|
28
|
-
:'pulp_href' => :'pulp_href',
|
29
|
-
:'pulp_created' => :'pulp_created',
|
30
24
|
:'plan' => :'plan'
|
31
25
|
}
|
32
26
|
end
|
@@ -34,8 +28,6 @@ module Pulp2to3MigrationClient
|
|
34
28
|
# Attribute type mapping.
|
35
29
|
def self.openapi_types
|
36
30
|
{
|
37
|
-
:'pulp_href' => :'String',
|
38
|
-
:'pulp_created' => :'DateTime',
|
39
31
|
:'plan' => :'Object'
|
40
32
|
}
|
41
33
|
end
|
@@ -61,14 +53,6 @@ module Pulp2to3MigrationClient
|
|
61
53
|
h[k.to_sym] = v
|
62
54
|
}
|
63
55
|
|
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
56
|
if attributes.key?(:'plan')
|
73
57
|
self.plan = attributes[:'plan']
|
74
58
|
end
|
@@ -97,8 +81,6 @@ module Pulp2to3MigrationClient
|
|
97
81
|
def ==(o)
|
98
82
|
return true if self.equal?(o)
|
99
83
|
self.class == o.class &&
|
100
|
-
pulp_href == o.pulp_href &&
|
101
|
-
pulp_created == o.pulp_created &&
|
102
84
|
plan == o.plan
|
103
85
|
end
|
104
86
|
|
@@ -111,7 +93,7 @@ module Pulp2to3MigrationClient
|
|
111
93
|
# Calculates hash code according to all attributes.
|
112
94
|
# @return [Integer] Hash code
|
113
95
|
def hash
|
114
|
-
[
|
96
|
+
[plan].hash
|
115
97
|
end
|
116
98
|
|
117
99
|
# Builds the object from hash
|
@@ -0,0 +1,232 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
Contact: pulp-list@redhat.com
|
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
|
+
# Serializer for migration plan model.
|
17
|
+
class Pulp2to3MigrationMigrationPlanResponse
|
18
|
+
attr_accessor :pulp_href
|
19
|
+
|
20
|
+
# Timestamp of creation.
|
21
|
+
attr_accessor :pulp_created
|
22
|
+
|
23
|
+
# Migration Plan in JSON format
|
24
|
+
attr_accessor :plan
|
25
|
+
|
26
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
27
|
+
def self.attribute_map
|
28
|
+
{
|
29
|
+
:'pulp_href' => :'pulp_href',
|
30
|
+
:'pulp_created' => :'pulp_created',
|
31
|
+
:'plan' => :'plan'
|
32
|
+
}
|
33
|
+
end
|
34
|
+
|
35
|
+
# Attribute type mapping.
|
36
|
+
def self.openapi_types
|
37
|
+
{
|
38
|
+
:'pulp_href' => :'String',
|
39
|
+
:'pulp_created' => :'DateTime',
|
40
|
+
:'plan' => :'Object'
|
41
|
+
}
|
42
|
+
end
|
43
|
+
|
44
|
+
# List of attributes with nullable: true
|
45
|
+
def self.openapi_nullable
|
46
|
+
Set.new([
|
47
|
+
])
|
48
|
+
end
|
49
|
+
|
50
|
+
# Initializes the object
|
51
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
52
|
+
def initialize(attributes = {})
|
53
|
+
if (!attributes.is_a?(Hash))
|
54
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Pulp2to3MigrationClient::Pulp2to3MigrationMigrationPlanResponse` initialize method"
|
55
|
+
end
|
56
|
+
|
57
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
58
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
59
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
60
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Pulp2to3MigrationClient::Pulp2to3MigrationMigrationPlanResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
61
|
+
end
|
62
|
+
h[k.to_sym] = v
|
63
|
+
}
|
64
|
+
|
65
|
+
if attributes.key?(:'pulp_href')
|
66
|
+
self.pulp_href = attributes[:'pulp_href']
|
67
|
+
end
|
68
|
+
|
69
|
+
if attributes.key?(:'pulp_created')
|
70
|
+
self.pulp_created = attributes[:'pulp_created']
|
71
|
+
end
|
72
|
+
|
73
|
+
if attributes.key?(:'plan')
|
74
|
+
self.plan = attributes[:'plan']
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
79
|
+
# @return Array for valid properties with the reasons
|
80
|
+
def list_invalid_properties
|
81
|
+
invalid_properties = Array.new
|
82
|
+
if @plan.nil?
|
83
|
+
invalid_properties.push('invalid value for "plan", plan cannot be nil.')
|
84
|
+
end
|
85
|
+
|
86
|
+
invalid_properties
|
87
|
+
end
|
88
|
+
|
89
|
+
# Check to see if the all the properties in the model are valid
|
90
|
+
# @return true if the model is valid
|
91
|
+
def valid?
|
92
|
+
return false if @plan.nil?
|
93
|
+
true
|
94
|
+
end
|
95
|
+
|
96
|
+
# Checks equality by comparing each attribute.
|
97
|
+
# @param [Object] Object to be compared
|
98
|
+
def ==(o)
|
99
|
+
return true if self.equal?(o)
|
100
|
+
self.class == o.class &&
|
101
|
+
pulp_href == o.pulp_href &&
|
102
|
+
pulp_created == o.pulp_created &&
|
103
|
+
plan == o.plan
|
104
|
+
end
|
105
|
+
|
106
|
+
# @see the `==` method
|
107
|
+
# @param [Object] Object to be compared
|
108
|
+
def eql?(o)
|
109
|
+
self == o
|
110
|
+
end
|
111
|
+
|
112
|
+
# Calculates hash code according to all attributes.
|
113
|
+
# @return [Integer] Hash code
|
114
|
+
def hash
|
115
|
+
[pulp_href, pulp_created, plan].hash
|
116
|
+
end
|
117
|
+
|
118
|
+
# Builds the object from hash
|
119
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
120
|
+
# @return [Object] Returns the model itself
|
121
|
+
def self.build_from_hash(attributes)
|
122
|
+
new.build_from_hash(attributes)
|
123
|
+
end
|
124
|
+
|
125
|
+
# Builds the object from hash
|
126
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
127
|
+
# @return [Object] Returns the model itself
|
128
|
+
def build_from_hash(attributes)
|
129
|
+
return nil unless attributes.is_a?(Hash)
|
130
|
+
self.class.openapi_types.each_pair do |key, type|
|
131
|
+
if type =~ /\AArray<(.*)>/i
|
132
|
+
# check to ensure the input is an array given that the attribute
|
133
|
+
# is documented as an array but the input is not
|
134
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
135
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
136
|
+
end
|
137
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
138
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
139
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
140
|
+
end
|
141
|
+
|
142
|
+
self
|
143
|
+
end
|
144
|
+
|
145
|
+
# Deserializes the data based on type
|
146
|
+
# @param string type Data type
|
147
|
+
# @param string value Value to be deserialized
|
148
|
+
# @return [Object] Deserialized data
|
149
|
+
def _deserialize(type, value)
|
150
|
+
case type.to_sym
|
151
|
+
when :DateTime
|
152
|
+
DateTime.parse(value)
|
153
|
+
when :Date
|
154
|
+
Date.parse(value)
|
155
|
+
when :String
|
156
|
+
value.to_s
|
157
|
+
when :Integer
|
158
|
+
value.to_i
|
159
|
+
when :Float
|
160
|
+
value.to_f
|
161
|
+
when :Boolean
|
162
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
163
|
+
true
|
164
|
+
else
|
165
|
+
false
|
166
|
+
end
|
167
|
+
when :Object
|
168
|
+
# generic object (usually a Hash), return directly
|
169
|
+
value
|
170
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
171
|
+
inner_type = Regexp.last_match[:inner_type]
|
172
|
+
value.map { |v| _deserialize(inner_type, v) }
|
173
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
174
|
+
k_type = Regexp.last_match[:k_type]
|
175
|
+
v_type = Regexp.last_match[:v_type]
|
176
|
+
{}.tap do |hash|
|
177
|
+
value.each do |k, v|
|
178
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
179
|
+
end
|
180
|
+
end
|
181
|
+
else # model
|
182
|
+
Pulp2to3MigrationClient.const_get(type).build_from_hash(value)
|
183
|
+
end
|
184
|
+
end
|
185
|
+
|
186
|
+
# Returns the string representation of the object
|
187
|
+
# @return [String] String presentation of the object
|
188
|
+
def to_s
|
189
|
+
to_hash.to_s
|
190
|
+
end
|
191
|
+
|
192
|
+
# to_body is an alias to to_hash (backward compatibility)
|
193
|
+
# @return [Hash] Returns the object in the form of hash
|
194
|
+
def to_body
|
195
|
+
to_hash
|
196
|
+
end
|
197
|
+
|
198
|
+
# Returns the object in the form of hash
|
199
|
+
# @return [Hash] Returns the object in the form of hash
|
200
|
+
def to_hash
|
201
|
+
hash = {}
|
202
|
+
self.class.attribute_map.each_pair do |attr, param|
|
203
|
+
value = self.send(attr)
|
204
|
+
if value.nil?
|
205
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
206
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
207
|
+
end
|
208
|
+
|
209
|
+
hash[param] = _to_hash(value)
|
210
|
+
end
|
211
|
+
hash
|
212
|
+
end
|
213
|
+
|
214
|
+
# Outputs non-array value in the form of hash
|
215
|
+
# For object, use to_hash. Otherwise, just return the value
|
216
|
+
# @param [Object] value Any valid value
|
217
|
+
# @return [Hash] Returns the value in the form of hash
|
218
|
+
def _to_hash(value)
|
219
|
+
if value.is_a?(Array)
|
220
|
+
value.compact.map { |v| _to_hash(v) }
|
221
|
+
elsif value.is_a?(Hash)
|
222
|
+
{}.tap do |hash|
|
223
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
224
|
+
end
|
225
|
+
elsif value.respond_to? :to_hash
|
226
|
+
value.to_hash
|
227
|
+
else
|
228
|
+
value
|
229
|
+
end
|
230
|
+
end
|
231
|
+
end
|
232
|
+
end
|
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
2
|
#Pulp 3 API
|
3
3
|
|
4
|
-
#
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
5
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
|
-
|
7
|
+
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 4.2.3
|
10
10
|
|
@@ -13,7 +13,8 @@ OpenAPI Generator version: 4.2.3
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module Pulp2to3MigrationClient
|
16
|
-
|
16
|
+
# A serializer for the Pulp2Content model
|
17
|
+
class Pulp2to3MigrationPulp2ContentResponse
|
17
18
|
attr_accessor :pulp_href
|
18
19
|
|
19
20
|
# Timestamp of creation.
|
@@ -31,7 +32,6 @@ module Pulp2to3MigrationClient
|
|
31
32
|
|
32
33
|
attr_accessor :pulp3_content
|
33
34
|
|
34
|
-
# Get pulp3_repository_version href from pulp2repo if available
|
35
35
|
attr_accessor :pulp3_repository_version
|
36
36
|
|
37
37
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -60,7 +60,7 @@ module Pulp2to3MigrationClient
|
|
60
60
|
:'pulp2_storage_path' => :'String',
|
61
61
|
:'downloaded' => :'Boolean',
|
62
62
|
:'pulp3_content' => :'String',
|
63
|
-
:'pulp3_repository_version' => :'
|
63
|
+
:'pulp3_repository_version' => :'Object'
|
64
64
|
}
|
65
65
|
end
|
66
66
|
|
@@ -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::
|
78
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Pulp2to3MigrationClient::Pulp2to3MigrationPulp2ContentResponse` 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::
|
84
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Pulp2to3MigrationClient::Pulp2to3MigrationPulp2ContentResponse`. 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
|
}
|
@@ -137,10 +137,6 @@ module Pulp2to3MigrationClient
|
|
137
137
|
invalid_properties.push('invalid value for "pulp2_id", the character length must be smaller than or equal to 255.')
|
138
138
|
end
|
139
139
|
|
140
|
-
if @pulp2_id.to_s.length < 1
|
141
|
-
invalid_properties.push('invalid value for "pulp2_id", the character length must be great than or equal to 1.')
|
142
|
-
end
|
143
|
-
|
144
140
|
if @pulp2_content_type_id.nil?
|
145
141
|
invalid_properties.push('invalid value for "pulp2_content_type_id", pulp2_content_type_id cannot be nil.')
|
146
142
|
end
|
@@ -149,10 +145,6 @@ module Pulp2to3MigrationClient
|
|
149
145
|
invalid_properties.push('invalid value for "pulp2_content_type_id", the character length must be smaller than or equal to 255.')
|
150
146
|
end
|
151
147
|
|
152
|
-
if @pulp2_content_type_id.to_s.length < 1
|
153
|
-
invalid_properties.push('invalid value for "pulp2_content_type_id", the character length must be great than or equal to 1.')
|
154
|
-
end
|
155
|
-
|
156
148
|
if @pulp2_last_updated.nil?
|
157
149
|
invalid_properties.push('invalid value for "pulp2_last_updated", pulp2_last_updated cannot be nil.')
|
158
150
|
end
|
@@ -161,14 +153,6 @@ module Pulp2to3MigrationClient
|
|
161
153
|
invalid_properties.push('invalid value for "pulp2_storage_path", pulp2_storage_path cannot be nil.')
|
162
154
|
end
|
163
155
|
|
164
|
-
if @pulp2_storage_path.to_s.length < 1
|
165
|
-
invalid_properties.push('invalid value for "pulp2_storage_path", the character length must be great than or equal to 1.')
|
166
|
-
end
|
167
|
-
|
168
|
-
if !@pulp3_repository_version.nil? && @pulp3_repository_version.to_s.length < 1
|
169
|
-
invalid_properties.push('invalid value for "pulp3_repository_version", the character length must be great than or equal to 1.')
|
170
|
-
end
|
171
|
-
|
172
156
|
invalid_properties
|
173
157
|
end
|
174
158
|
|
@@ -177,14 +161,10 @@ module Pulp2to3MigrationClient
|
|
177
161
|
def valid?
|
178
162
|
return false if @pulp2_id.nil?
|
179
163
|
return false if @pulp2_id.to_s.length > 255
|
180
|
-
return false if @pulp2_id.to_s.length < 1
|
181
164
|
return false if @pulp2_content_type_id.nil?
|
182
165
|
return false if @pulp2_content_type_id.to_s.length > 255
|
183
|
-
return false if @pulp2_content_type_id.to_s.length < 1
|
184
166
|
return false if @pulp2_last_updated.nil?
|
185
167
|
return false if @pulp2_storage_path.nil?
|
186
|
-
return false if @pulp2_storage_path.to_s.length < 1
|
187
|
-
return false if !@pulp3_repository_version.nil? && @pulp3_repository_version.to_s.length < 1
|
188
168
|
true
|
189
169
|
end
|
190
170
|
|
@@ -199,10 +179,6 @@ module Pulp2to3MigrationClient
|
|
199
179
|
fail ArgumentError, 'invalid value for "pulp2_id", the character length must be smaller than or equal to 255.'
|
200
180
|
end
|
201
181
|
|
202
|
-
if pulp2_id.to_s.length < 1
|
203
|
-
fail ArgumentError, 'invalid value for "pulp2_id", the character length must be great than or equal to 1.'
|
204
|
-
end
|
205
|
-
|
206
182
|
@pulp2_id = pulp2_id
|
207
183
|
end
|
208
184
|
|
@@ -217,37 +193,9 @@ module Pulp2to3MigrationClient
|
|
217
193
|
fail ArgumentError, 'invalid value for "pulp2_content_type_id", the character length must be smaller than or equal to 255.'
|
218
194
|
end
|
219
195
|
|
220
|
-
if pulp2_content_type_id.to_s.length < 1
|
221
|
-
fail ArgumentError, 'invalid value for "pulp2_content_type_id", the character length must be great than or equal to 1.'
|
222
|
-
end
|
223
|
-
|
224
196
|
@pulp2_content_type_id = pulp2_content_type_id
|
225
197
|
end
|
226
198
|
|
227
|
-
# Custom attribute writer method with validation
|
228
|
-
# @param [Object] pulp2_storage_path Value to be assigned
|
229
|
-
def pulp2_storage_path=(pulp2_storage_path)
|
230
|
-
if pulp2_storage_path.nil?
|
231
|
-
fail ArgumentError, 'pulp2_storage_path cannot be nil'
|
232
|
-
end
|
233
|
-
|
234
|
-
if pulp2_storage_path.to_s.length < 1
|
235
|
-
fail ArgumentError, 'invalid value for "pulp2_storage_path", the character length must be great than or equal to 1.'
|
236
|
-
end
|
237
|
-
|
238
|
-
@pulp2_storage_path = pulp2_storage_path
|
239
|
-
end
|
240
|
-
|
241
|
-
# Custom attribute writer method with validation
|
242
|
-
# @param [Object] pulp3_repository_version Value to be assigned
|
243
|
-
def pulp3_repository_version=(pulp3_repository_version)
|
244
|
-
if !pulp3_repository_version.nil? && pulp3_repository_version.to_s.length < 1
|
245
|
-
fail ArgumentError, 'invalid value for "pulp3_repository_version", the character length must be great than or equal to 1.'
|
246
|
-
end
|
247
|
-
|
248
|
-
@pulp3_repository_version = pulp3_repository_version
|
249
|
-
end
|
250
|
-
|
251
199
|
# Checks equality by comparing each attribute.
|
252
200
|
# @param [Object] Object to be compared
|
253
201
|
def ==(o)
|