pulpcore_client 3.0.0rc7 → 3.0.0rc8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -22
- data/docs/ArtifactsApi.md +4 -4
- data/docs/InlineResponse2001.md +1 -1
- data/docs/InlineResponse2002.md +1 -1
- data/docs/InlineResponse2003.md +1 -1
- data/docs/Status.md +3 -1
- data/docs/Storage.md +21 -0
- data/docs/TasksApi.md +2 -2
- data/docs/UploadsApi.md +2 -2
- data/docs/WorkersApi.md +2 -2
- data/lib/pulpcore_client/api/artifacts_api.rb +11 -7
- data/lib/pulpcore_client/api/orphans_api.rb +1 -1
- data/lib/pulpcore_client/api/status_api.rb +1 -1
- data/lib/pulpcore_client/api/tasks_api.rb +4 -4
- data/lib/pulpcore_client/api/uploads_api.rb +4 -4
- data/lib/pulpcore_client/api/workers_api.rb +4 -4
- data/lib/pulpcore_client/api_client.rb +1 -1
- data/lib/pulpcore_client/api_error.rb +1 -1
- data/lib/pulpcore_client/configuration.rb +1 -1
- data/lib/pulpcore_client/models/artifact.rb +18 -2
- data/lib/pulpcore_client/models/async_operation_response.rb +12 -2
- data/lib/pulpcore_client/models/content_app_status.rb +12 -2
- data/lib/pulpcore_client/models/database_connection.rb +12 -2
- data/lib/pulpcore_client/models/inline_response200.rb +14 -2
- data/lib/pulpcore_client/models/inline_response2001.rb +15 -3
- data/lib/pulpcore_client/models/inline_response2002.rb +15 -3
- data/lib/pulpcore_client/models/inline_response2003.rb +15 -3
- data/lib/pulpcore_client/models/progress_report.rb +13 -2
- data/lib/pulpcore_client/models/redis_connection.rb +12 -2
- data/lib/pulpcore_client/models/status.rb +25 -6
- data/lib/pulpcore_client/models/{inline_response2004.rb → storage.rb} +106 -41
- data/lib/pulpcore_client/models/task.rb +12 -2
- data/lib/pulpcore_client/models/task_cancel.rb +12 -2
- data/lib/pulpcore_client/models/upload.rb +12 -2
- data/lib/pulpcore_client/models/upload_chunk.rb +13 -2
- data/lib/pulpcore_client/models/upload_commit.rb +12 -2
- data/lib/pulpcore_client/models/upload_detail.rb +12 -2
- data/lib/pulpcore_client/models/version.rb +12 -2
- data/lib/pulpcore_client/models/worker.rb +12 -2
- data/lib/pulpcore_client/version.rb +2 -2
- data/lib/pulpcore_client.rb +2 -9
- data/pulpcore_client.gemspec +1 -1
- data/spec/api/artifacts_api_spec.rb +2 -2
- data/spec/api/orphans_api_spec.rb +1 -1
- data/spec/api/status_api_spec.rb +1 -1
- data/spec/api/tasks_api_spec.rb +2 -2
- data/spec/api/uploads_api_spec.rb +2 -2
- data/spec/api/workers_api_spec.rb +2 -2
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/artifact_spec.rb +1 -1
- data/spec/models/async_operation_response_spec.rb +1 -1
- data/spec/models/content_app_status_spec.rb +1 -1
- data/spec/models/database_connection_spec.rb +1 -1
- data/spec/models/inline_response2001_spec.rb +1 -1
- data/spec/models/inline_response2002_spec.rb +1 -1
- data/spec/models/inline_response2003_spec.rb +1 -1
- data/spec/models/inline_response200_spec.rb +1 -1
- data/spec/models/progress_report_spec.rb +1 -1
- data/spec/models/redis_connection_spec.rb +1 -1
- data/spec/models/status_spec.rb +7 -1
- data/spec/models/{content_summary_spec.rb → storage_spec.rb} +10 -10
- data/spec/models/task_cancel_spec.rb +1 -1
- data/spec/models/task_spec.rb +1 -1
- data/spec/models/upload_chunk_spec.rb +1 -1
- data/spec/models/upload_commit_spec.rb +1 -1
- data/spec/models/upload_detail_spec.rb +1 -1
- data/spec/models/upload_spec.rb +1 -1
- data/spec/models/version_spec.rb +1 -1
- data/spec/models/worker_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +6 -34
- data/docs/ContentSummary.md +0 -21
- data/docs/InlineResponse2004.md +0 -23
- data/docs/InlineResponse2005.md +0 -23
- data/docs/RepositoriesApi.md +0 -346
- data/docs/RepositoriesVersionsApi.md +0 -266
- data/docs/Repository.md +0 -29
- data/docs/RepositoryVersion.md +0 -25
- data/docs/RepositoryVersionCreate.md +0 -21
- data/lib/pulpcore_client/api/repositories_api.rb +0 -422
- data/lib/pulpcore_client/api/repositories_versions_api.rb +0 -334
- data/lib/pulpcore_client/models/content_summary.rb +0 -236
- data/lib/pulpcore_client/models/inline_response2005.rb +0 -235
- data/lib/pulpcore_client/models/repository.rb +0 -293
- data/lib/pulpcore_client/models/repository_version.rb +0 -234
- data/lib/pulpcore_client/models/repository_version_create.rb +0 -221
- data/spec/api/repositories_api_spec.rb +0 -112
- data/spec/api/repositories_versions_api_spec.rb +0 -102
- data/spec/models/inline_response2004_spec.rb +0 -59
- data/spec/models/inline_response2005_spec.rb +0 -59
- data/spec/models/repository_spec.rb +0 -77
- data/spec/models/repository_version_create_spec.rb +0 -53
- data/spec/models/repository_version_spec.rb +0 -65
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.2.
|
9
|
+
OpenAPI Generator version: 4.2.1-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -38,10 +38,18 @@ module PulpcoreClient
|
|
38
38
|
:'count' => :'Integer',
|
39
39
|
:'_next' => :'String',
|
40
40
|
:'previous' => :'String',
|
41
|
-
:'results' => :'Array<
|
41
|
+
:'results' => :'Array<Task>'
|
42
42
|
}
|
43
43
|
end
|
44
44
|
|
45
|
+
# List of attributes with nullable: true
|
46
|
+
def self.openapi_nullable
|
47
|
+
Set.new([
|
48
|
+
:'_next',
|
49
|
+
:'previous',
|
50
|
+
])
|
51
|
+
end
|
52
|
+
|
45
53
|
# Initializes the object
|
46
54
|
# @param [Hash] attributes Model attributes in the form of hash
|
47
55
|
def initialize(attributes = {})
|
@@ -208,7 +216,11 @@ module PulpcoreClient
|
|
208
216
|
hash = {}
|
209
217
|
self.class.attribute_map.each_pair do |attr, param|
|
210
218
|
value = self.send(attr)
|
211
|
-
|
219
|
+
if value.nil?
|
220
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
221
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
222
|
+
end
|
223
|
+
|
212
224
|
hash[param] = _to_hash(value)
|
213
225
|
end
|
214
226
|
hash
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.2.
|
9
|
+
OpenAPI Generator version: 4.2.1-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -38,10 +38,18 @@ module PulpcoreClient
|
|
38
38
|
:'count' => :'Integer',
|
39
39
|
:'_next' => :'String',
|
40
40
|
:'previous' => :'String',
|
41
|
-
:'results' => :'Array<
|
41
|
+
:'results' => :'Array<Upload>'
|
42
42
|
}
|
43
43
|
end
|
44
44
|
|
45
|
+
# List of attributes with nullable: true
|
46
|
+
def self.openapi_nullable
|
47
|
+
Set.new([
|
48
|
+
:'_next',
|
49
|
+
:'previous',
|
50
|
+
])
|
51
|
+
end
|
52
|
+
|
45
53
|
# Initializes the object
|
46
54
|
# @param [Hash] attributes Model attributes in the form of hash
|
47
55
|
def initialize(attributes = {})
|
@@ -208,7 +216,11 @@ module PulpcoreClient
|
|
208
216
|
hash = {}
|
209
217
|
self.class.attribute_map.each_pair do |attr, param|
|
210
218
|
value = self.send(attr)
|
211
|
-
|
219
|
+
if value.nil?
|
220
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
221
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
222
|
+
end
|
223
|
+
|
212
224
|
hash[param] = _to_hash(value)
|
213
225
|
end
|
214
226
|
hash
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.2.
|
9
|
+
OpenAPI Generator version: 4.2.1-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -38,10 +38,18 @@ module PulpcoreClient
|
|
38
38
|
:'count' => :'Integer',
|
39
39
|
:'_next' => :'String',
|
40
40
|
:'previous' => :'String',
|
41
|
-
:'results' => :'Array<
|
41
|
+
:'results' => :'Array<Worker>'
|
42
42
|
}
|
43
43
|
end
|
44
44
|
|
45
|
+
# List of attributes with nullable: true
|
46
|
+
def self.openapi_nullable
|
47
|
+
Set.new([
|
48
|
+
:'_next',
|
49
|
+
:'previous',
|
50
|
+
])
|
51
|
+
end
|
52
|
+
|
45
53
|
# Initializes the object
|
46
54
|
# @param [Hash] attributes Model attributes in the form of hash
|
47
55
|
def initialize(attributes = {})
|
@@ -208,7 +216,11 @@ module PulpcoreClient
|
|
208
216
|
hash = {}
|
209
217
|
self.class.attribute_map.each_pair do |attr, param|
|
210
218
|
value = self.send(attr)
|
211
|
-
|
219
|
+
if value.nil?
|
220
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
221
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
222
|
+
end
|
223
|
+
|
212
224
|
hash[param] = _to_hash(value)
|
213
225
|
end
|
214
226
|
hash
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.2.
|
9
|
+
OpenAPI Generator version: 4.2.1-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -56,6 +56,13 @@ module PulpcoreClient
|
|
56
56
|
}
|
57
57
|
end
|
58
58
|
|
59
|
+
# List of attributes with nullable: true
|
60
|
+
def self.openapi_nullable
|
61
|
+
Set.new([
|
62
|
+
:'suffix'
|
63
|
+
])
|
64
|
+
end
|
65
|
+
|
59
66
|
# Initializes the object
|
60
67
|
# @param [Hash] attributes Model attributes in the form of hash
|
61
68
|
def initialize(attributes = {})
|
@@ -280,7 +287,11 @@ module PulpcoreClient
|
|
280
287
|
hash = {}
|
281
288
|
self.class.attribute_map.each_pair do |attr, param|
|
282
289
|
value = self.send(attr)
|
283
|
-
|
290
|
+
if value.nil?
|
291
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
292
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
293
|
+
end
|
294
|
+
|
284
295
|
hash[param] = _to_hash(value)
|
285
296
|
end
|
286
297
|
hash
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.2.
|
9
|
+
OpenAPI Generator version: 4.2.1-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -32,6 +32,12 @@ module PulpcoreClient
|
|
32
32
|
}
|
33
33
|
end
|
34
34
|
|
35
|
+
# List of attributes with nullable: true
|
36
|
+
def self.openapi_nullable
|
37
|
+
Set.new([
|
38
|
+
])
|
39
|
+
end
|
40
|
+
|
35
41
|
# Initializes the object
|
36
42
|
# @param [Hash] attributes Model attributes in the form of hash
|
37
43
|
def initialize(attributes = {})
|
@@ -176,7 +182,11 @@ module PulpcoreClient
|
|
176
182
|
hash = {}
|
177
183
|
self.class.attribute_map.each_pair do |attr, param|
|
178
184
|
value = self.send(attr)
|
179
|
-
|
185
|
+
if value.nil?
|
186
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
187
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
188
|
+
end
|
189
|
+
|
180
190
|
hash[param] = _to_hash(value)
|
181
191
|
end
|
182
192
|
hash
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.2.
|
9
|
+
OpenAPI Generator version: 4.2.1-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -30,6 +30,8 @@ module PulpcoreClient
|
|
30
30
|
|
31
31
|
attr_accessor :redis_connection
|
32
32
|
|
33
|
+
attr_accessor :storage
|
34
|
+
|
33
35
|
# Attribute mapping from ruby-style variable name to JSON key.
|
34
36
|
def self.attribute_map
|
35
37
|
{
|
@@ -38,7 +40,8 @@ module PulpcoreClient
|
|
38
40
|
:'missing_workers' => :'missing_workers',
|
39
41
|
:'online_content_apps' => :'online_content_apps',
|
40
42
|
:'database_connection' => :'database_connection',
|
41
|
-
:'redis_connection' => :'redis_connection'
|
43
|
+
:'redis_connection' => :'redis_connection',
|
44
|
+
:'storage' => :'storage'
|
42
45
|
}
|
43
46
|
end
|
44
47
|
|
@@ -50,10 +53,17 @@ module PulpcoreClient
|
|
50
53
|
:'missing_workers' => :'Array<Worker>',
|
51
54
|
:'online_content_apps' => :'Array<ContentAppStatus>',
|
52
55
|
:'database_connection' => :'DatabaseConnection',
|
53
|
-
:'redis_connection' => :'RedisConnection'
|
56
|
+
:'redis_connection' => :'RedisConnection',
|
57
|
+
:'storage' => :'Storage'
|
54
58
|
}
|
55
59
|
end
|
56
60
|
|
61
|
+
# List of attributes with nullable: true
|
62
|
+
def self.openapi_nullable
|
63
|
+
Set.new([
|
64
|
+
])
|
65
|
+
end
|
66
|
+
|
57
67
|
# Initializes the object
|
58
68
|
# @param [Hash] attributes Model attributes in the form of hash
|
59
69
|
def initialize(attributes = {})
|
@@ -100,6 +110,10 @@ module PulpcoreClient
|
|
100
110
|
if attributes.key?(:'redis_connection')
|
101
111
|
self.redis_connection = attributes[:'redis_connection']
|
102
112
|
end
|
113
|
+
|
114
|
+
if attributes.key?(:'storage')
|
115
|
+
self.storage = attributes[:'storage']
|
116
|
+
end
|
103
117
|
end
|
104
118
|
|
105
119
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -155,7 +169,8 @@ module PulpcoreClient
|
|
155
169
|
missing_workers == o.missing_workers &&
|
156
170
|
online_content_apps == o.online_content_apps &&
|
157
171
|
database_connection == o.database_connection &&
|
158
|
-
redis_connection == o.redis_connection
|
172
|
+
redis_connection == o.redis_connection &&
|
173
|
+
storage == o.storage
|
159
174
|
end
|
160
175
|
|
161
176
|
# @see the `==` method
|
@@ -167,7 +182,7 @@ module PulpcoreClient
|
|
167
182
|
# Calculates hash code according to all attributes.
|
168
183
|
# @return [Integer] Hash code
|
169
184
|
def hash
|
170
|
-
[versions, online_workers, missing_workers, online_content_apps, database_connection, redis_connection].hash
|
185
|
+
[versions, online_workers, missing_workers, online_content_apps, database_connection, redis_connection, storage].hash
|
171
186
|
end
|
172
187
|
|
173
188
|
# Builds the object from hash
|
@@ -256,7 +271,11 @@ module PulpcoreClient
|
|
256
271
|
hash = {}
|
257
272
|
self.class.attribute_map.each_pair do |attr, param|
|
258
273
|
value = self.send(attr)
|
259
|
-
|
274
|
+
if value.nil?
|
275
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
276
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
277
|
+
end
|
278
|
+
|
260
279
|
hash[param] = _to_hash(value)
|
261
280
|
end
|
262
281
|
hash
|
@@ -6,73 +6,73 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.2.
|
9
|
+
OpenAPI Generator version: 4.2.1-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module PulpcoreClient
|
16
|
-
|
17
|
-
|
16
|
+
# Storage information
|
17
|
+
class Storage
|
18
|
+
# Total number of bytes
|
19
|
+
attr_accessor :total
|
18
20
|
|
19
|
-
|
21
|
+
# Number of bytes in use
|
22
|
+
attr_accessor :used
|
20
23
|
|
21
|
-
|
22
|
-
|
23
|
-
attr_accessor :results
|
24
|
+
# Number of free bytes
|
25
|
+
attr_accessor :free
|
24
26
|
|
25
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
26
28
|
def self.attribute_map
|
27
29
|
{
|
28
|
-
:'
|
29
|
-
:'
|
30
|
-
:'
|
31
|
-
:'results' => :'results'
|
30
|
+
:'total' => :'total',
|
31
|
+
:'used' => :'used',
|
32
|
+
:'free' => :'free'
|
32
33
|
}
|
33
34
|
end
|
34
35
|
|
35
36
|
# Attribute type mapping.
|
36
37
|
def self.openapi_types
|
37
38
|
{
|
38
|
-
:'
|
39
|
-
:'
|
40
|
-
:'
|
41
|
-
:'results' => :'Array<Upload>'
|
39
|
+
:'total' => :'Integer',
|
40
|
+
:'used' => :'Integer',
|
41
|
+
:'free' => :'Integer'
|
42
42
|
}
|
43
43
|
end
|
44
44
|
|
45
|
+
# List of attributes with nullable: true
|
46
|
+
def self.openapi_nullable
|
47
|
+
Set.new([
|
48
|
+
])
|
49
|
+
end
|
50
|
+
|
45
51
|
# Initializes the object
|
46
52
|
# @param [Hash] attributes Model attributes in the form of hash
|
47
53
|
def initialize(attributes = {})
|
48
54
|
if (!attributes.is_a?(Hash))
|
49
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpcoreClient::
|
55
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpcoreClient::Storage` initialize method"
|
50
56
|
end
|
51
57
|
|
52
58
|
# check to see if the attribute exists and convert string to symbol for hash key
|
53
59
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
54
60
|
if (!self.class.attribute_map.key?(k.to_sym))
|
55
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpcoreClient::
|
61
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpcoreClient::Storage`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
56
62
|
end
|
57
63
|
h[k.to_sym] = v
|
58
64
|
}
|
59
65
|
|
60
|
-
if attributes.key?(:'
|
61
|
-
self.
|
66
|
+
if attributes.key?(:'total')
|
67
|
+
self.total = attributes[:'total']
|
62
68
|
end
|
63
69
|
|
64
|
-
if attributes.key?(:'
|
65
|
-
self.
|
70
|
+
if attributes.key?(:'used')
|
71
|
+
self.used = attributes[:'used']
|
66
72
|
end
|
67
73
|
|
68
|
-
if attributes.key?(:'
|
69
|
-
self.
|
70
|
-
end
|
71
|
-
|
72
|
-
if attributes.key?(:'results')
|
73
|
-
if (value = attributes[:'results']).is_a?(Array)
|
74
|
-
self.results = value
|
75
|
-
end
|
74
|
+
if attributes.key?(:'free')
|
75
|
+
self.free = attributes[:'free']
|
76
76
|
end
|
77
77
|
end
|
78
78
|
|
@@ -80,12 +80,28 @@ module PulpcoreClient
|
|
80
80
|
# @return Array for valid properties with the reasons
|
81
81
|
def list_invalid_properties
|
82
82
|
invalid_properties = Array.new
|
83
|
-
if @
|
84
|
-
invalid_properties.push('invalid value for "
|
83
|
+
if @total.nil?
|
84
|
+
invalid_properties.push('invalid value for "total", total cannot be nil.')
|
85
|
+
end
|
86
|
+
|
87
|
+
if @total < 0
|
88
|
+
invalid_properties.push('invalid value for "total", must be greater than or equal to 0.')
|
85
89
|
end
|
86
90
|
|
87
|
-
if @
|
88
|
-
invalid_properties.push('invalid value for "
|
91
|
+
if @used.nil?
|
92
|
+
invalid_properties.push('invalid value for "used", used cannot be nil.')
|
93
|
+
end
|
94
|
+
|
95
|
+
if @used < 0
|
96
|
+
invalid_properties.push('invalid value for "used", must be greater than or equal to 0.')
|
97
|
+
end
|
98
|
+
|
99
|
+
if @free.nil?
|
100
|
+
invalid_properties.push('invalid value for "free", free cannot be nil.')
|
101
|
+
end
|
102
|
+
|
103
|
+
if @free < 0
|
104
|
+
invalid_properties.push('invalid value for "free", must be greater than or equal to 0.')
|
89
105
|
end
|
90
106
|
|
91
107
|
invalid_properties
|
@@ -94,20 +110,65 @@ module PulpcoreClient
|
|
94
110
|
# Check to see if the all the properties in the model are valid
|
95
111
|
# @return true if the model is valid
|
96
112
|
def valid?
|
97
|
-
return false if @
|
98
|
-
return false if @
|
113
|
+
return false if @total.nil?
|
114
|
+
return false if @total < 0
|
115
|
+
return false if @used.nil?
|
116
|
+
return false if @used < 0
|
117
|
+
return false if @free.nil?
|
118
|
+
return false if @free < 0
|
99
119
|
true
|
100
120
|
end
|
101
121
|
|
122
|
+
# Custom attribute writer method with validation
|
123
|
+
# @param [Object] total Value to be assigned
|
124
|
+
def total=(total)
|
125
|
+
if total.nil?
|
126
|
+
fail ArgumentError, 'total cannot be nil'
|
127
|
+
end
|
128
|
+
|
129
|
+
if total < 0
|
130
|
+
fail ArgumentError, 'invalid value for "total", must be greater than or equal to 0.'
|
131
|
+
end
|
132
|
+
|
133
|
+
@total = total
|
134
|
+
end
|
135
|
+
|
136
|
+
# Custom attribute writer method with validation
|
137
|
+
# @param [Object] used Value to be assigned
|
138
|
+
def used=(used)
|
139
|
+
if used.nil?
|
140
|
+
fail ArgumentError, 'used cannot be nil'
|
141
|
+
end
|
142
|
+
|
143
|
+
if used < 0
|
144
|
+
fail ArgumentError, 'invalid value for "used", must be greater than or equal to 0.'
|
145
|
+
end
|
146
|
+
|
147
|
+
@used = used
|
148
|
+
end
|
149
|
+
|
150
|
+
# Custom attribute writer method with validation
|
151
|
+
# @param [Object] free Value to be assigned
|
152
|
+
def free=(free)
|
153
|
+
if free.nil?
|
154
|
+
fail ArgumentError, 'free cannot be nil'
|
155
|
+
end
|
156
|
+
|
157
|
+
if free < 0
|
158
|
+
fail ArgumentError, 'invalid value for "free", must be greater than or equal to 0.'
|
159
|
+
end
|
160
|
+
|
161
|
+
@free = free
|
162
|
+
end
|
163
|
+
|
102
164
|
# Checks equality by comparing each attribute.
|
103
165
|
# @param [Object] Object to be compared
|
104
166
|
def ==(o)
|
105
167
|
return true if self.equal?(o)
|
106
168
|
self.class == o.class &&
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
results == o.results
|
169
|
+
total == o.total &&
|
170
|
+
used == o.used &&
|
171
|
+
free == o.free
|
111
172
|
end
|
112
173
|
|
113
174
|
# @see the `==` method
|
@@ -119,7 +180,7 @@ module PulpcoreClient
|
|
119
180
|
# Calculates hash code according to all attributes.
|
120
181
|
# @return [Integer] Hash code
|
121
182
|
def hash
|
122
|
-
[
|
183
|
+
[total, used, free].hash
|
123
184
|
end
|
124
185
|
|
125
186
|
# Builds the object from hash
|
@@ -208,7 +269,11 @@ module PulpcoreClient
|
|
208
269
|
hash = {}
|
209
270
|
self.class.attribute_map.each_pair do |attr, param|
|
210
271
|
value = self.send(attr)
|
211
|
-
|
272
|
+
if value.nil?
|
273
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
274
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
275
|
+
end
|
276
|
+
|
212
277
|
hash[param] = _to_hash(value)
|
213
278
|
end
|
214
279
|
hash
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.2.
|
9
|
+
OpenAPI Generator version: 4.2.1-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -88,6 +88,12 @@ module PulpcoreClient
|
|
88
88
|
}
|
89
89
|
end
|
90
90
|
|
91
|
+
# List of attributes with nullable: true
|
92
|
+
def self.openapi_nullable
|
93
|
+
Set.new([
|
94
|
+
])
|
95
|
+
end
|
96
|
+
|
91
97
|
# Initializes the object
|
92
98
|
# @param [Hash] attributes Model attributes in the form of hash
|
93
99
|
def initialize(attributes = {})
|
@@ -336,7 +342,11 @@ module PulpcoreClient
|
|
336
342
|
hash = {}
|
337
343
|
self.class.attribute_map.each_pair do |attr, param|
|
338
344
|
value = self.send(attr)
|
339
|
-
|
345
|
+
if value.nil?
|
346
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
347
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
348
|
+
end
|
349
|
+
|
340
350
|
hash[param] = _to_hash(value)
|
341
351
|
end
|
342
352
|
hash
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.2.
|
9
|
+
OpenAPI Generator version: 4.2.1-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -31,6 +31,12 @@ module PulpcoreClient
|
|
31
31
|
}
|
32
32
|
end
|
33
33
|
|
34
|
+
# List of attributes with nullable: true
|
35
|
+
def self.openapi_nullable
|
36
|
+
Set.new([
|
37
|
+
])
|
38
|
+
end
|
39
|
+
|
34
40
|
# Initializes the object
|
35
41
|
# @param [Hash] attributes Model attributes in the form of hash
|
36
42
|
def initialize(attributes = {})
|
@@ -194,7 +200,11 @@ module PulpcoreClient
|
|
194
200
|
hash = {}
|
195
201
|
self.class.attribute_map.each_pair do |attr, param|
|
196
202
|
value = self.send(attr)
|
197
|
-
|
203
|
+
if value.nil?
|
204
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
205
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
206
|
+
end
|
207
|
+
|
198
208
|
hash[param] = _to_hash(value)
|
199
209
|
end
|
200
210
|
hash
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.2.
|
9
|
+
OpenAPI Generator version: 4.2.1-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -45,6 +45,12 @@ module PulpcoreClient
|
|
45
45
|
}
|
46
46
|
end
|
47
47
|
|
48
|
+
# List of attributes with nullable: true
|
49
|
+
def self.openapi_nullable
|
50
|
+
Set.new([
|
51
|
+
])
|
52
|
+
end
|
53
|
+
|
48
54
|
# Initializes the object
|
49
55
|
# @param [Hash] attributes Model attributes in the form of hash
|
50
56
|
def initialize(attributes = {})
|
@@ -204,7 +210,11 @@ module PulpcoreClient
|
|
204
210
|
hash = {}
|
205
211
|
self.class.attribute_map.each_pair do |attr, param|
|
206
212
|
value = self.send(attr)
|
207
|
-
|
213
|
+
if value.nil?
|
214
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
215
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
216
|
+
end
|
217
|
+
|
208
218
|
hash[param] = _to_hash(value)
|
209
219
|
end
|
210
220
|
hash
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.2.
|
9
|
+
OpenAPI Generator version: 4.2.1-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -44,6 +44,13 @@ module PulpcoreClient
|
|
44
44
|
}
|
45
45
|
end
|
46
46
|
|
47
|
+
# List of attributes with nullable: true
|
48
|
+
def self.openapi_nullable
|
49
|
+
Set.new([
|
50
|
+
:'sha256',
|
51
|
+
])
|
52
|
+
end
|
53
|
+
|
47
54
|
# Initializes the object
|
48
55
|
# @param [Hash] attributes Model attributes in the form of hash
|
49
56
|
def initialize(attributes = {})
|
@@ -213,7 +220,11 @@ module PulpcoreClient
|
|
213
220
|
hash = {}
|
214
221
|
self.class.attribute_map.each_pair do |attr, param|
|
215
222
|
value = self.send(attr)
|
216
|
-
|
223
|
+
if value.nil?
|
224
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
225
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
226
|
+
end
|
227
|
+
|
217
228
|
hash[param] = _to_hash(value)
|
218
229
|
end
|
219
230
|
hash
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.2.
|
9
|
+
OpenAPI Generator version: 4.2.1-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -31,6 +31,12 @@ module PulpcoreClient
|
|
31
31
|
}
|
32
32
|
end
|
33
33
|
|
34
|
+
# List of attributes with nullable: true
|
35
|
+
def self.openapi_nullable
|
36
|
+
Set.new([
|
37
|
+
])
|
38
|
+
end
|
39
|
+
|
34
40
|
# Initializes the object
|
35
41
|
# @param [Hash] attributes Model attributes in the form of hash
|
36
42
|
def initialize(attributes = {})
|
@@ -194,7 +200,11 @@ module PulpcoreClient
|
|
194
200
|
hash = {}
|
195
201
|
self.class.attribute_map.each_pair do |attr, param|
|
196
202
|
value = self.send(attr)
|
197
|
-
|
203
|
+
if value.nil?
|
204
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
205
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
206
|
+
end
|
207
|
+
|
198
208
|
hash[param] = _to_hash(value)
|
199
209
|
end
|
200
210
|
hash
|