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.
Files changed (95) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -22
  3. data/docs/ArtifactsApi.md +4 -4
  4. data/docs/InlineResponse2001.md +1 -1
  5. data/docs/InlineResponse2002.md +1 -1
  6. data/docs/InlineResponse2003.md +1 -1
  7. data/docs/Status.md +3 -1
  8. data/docs/Storage.md +21 -0
  9. data/docs/TasksApi.md +2 -2
  10. data/docs/UploadsApi.md +2 -2
  11. data/docs/WorkersApi.md +2 -2
  12. data/lib/pulpcore_client/api/artifacts_api.rb +11 -7
  13. data/lib/pulpcore_client/api/orphans_api.rb +1 -1
  14. data/lib/pulpcore_client/api/status_api.rb +1 -1
  15. data/lib/pulpcore_client/api/tasks_api.rb +4 -4
  16. data/lib/pulpcore_client/api/uploads_api.rb +4 -4
  17. data/lib/pulpcore_client/api/workers_api.rb +4 -4
  18. data/lib/pulpcore_client/api_client.rb +1 -1
  19. data/lib/pulpcore_client/api_error.rb +1 -1
  20. data/lib/pulpcore_client/configuration.rb +1 -1
  21. data/lib/pulpcore_client/models/artifact.rb +18 -2
  22. data/lib/pulpcore_client/models/async_operation_response.rb +12 -2
  23. data/lib/pulpcore_client/models/content_app_status.rb +12 -2
  24. data/lib/pulpcore_client/models/database_connection.rb +12 -2
  25. data/lib/pulpcore_client/models/inline_response200.rb +14 -2
  26. data/lib/pulpcore_client/models/inline_response2001.rb +15 -3
  27. data/lib/pulpcore_client/models/inline_response2002.rb +15 -3
  28. data/lib/pulpcore_client/models/inline_response2003.rb +15 -3
  29. data/lib/pulpcore_client/models/progress_report.rb +13 -2
  30. data/lib/pulpcore_client/models/redis_connection.rb +12 -2
  31. data/lib/pulpcore_client/models/status.rb +25 -6
  32. data/lib/pulpcore_client/models/{inline_response2004.rb → storage.rb} +106 -41
  33. data/lib/pulpcore_client/models/task.rb +12 -2
  34. data/lib/pulpcore_client/models/task_cancel.rb +12 -2
  35. data/lib/pulpcore_client/models/upload.rb +12 -2
  36. data/lib/pulpcore_client/models/upload_chunk.rb +13 -2
  37. data/lib/pulpcore_client/models/upload_commit.rb +12 -2
  38. data/lib/pulpcore_client/models/upload_detail.rb +12 -2
  39. data/lib/pulpcore_client/models/version.rb +12 -2
  40. data/lib/pulpcore_client/models/worker.rb +12 -2
  41. data/lib/pulpcore_client/version.rb +2 -2
  42. data/lib/pulpcore_client.rb +2 -9
  43. data/pulpcore_client.gemspec +1 -1
  44. data/spec/api/artifacts_api_spec.rb +2 -2
  45. data/spec/api/orphans_api_spec.rb +1 -1
  46. data/spec/api/status_api_spec.rb +1 -1
  47. data/spec/api/tasks_api_spec.rb +2 -2
  48. data/spec/api/uploads_api_spec.rb +2 -2
  49. data/spec/api/workers_api_spec.rb +2 -2
  50. data/spec/api_client_spec.rb +1 -1
  51. data/spec/configuration_spec.rb +1 -1
  52. data/spec/models/artifact_spec.rb +1 -1
  53. data/spec/models/async_operation_response_spec.rb +1 -1
  54. data/spec/models/content_app_status_spec.rb +1 -1
  55. data/spec/models/database_connection_spec.rb +1 -1
  56. data/spec/models/inline_response2001_spec.rb +1 -1
  57. data/spec/models/inline_response2002_spec.rb +1 -1
  58. data/spec/models/inline_response2003_spec.rb +1 -1
  59. data/spec/models/inline_response200_spec.rb +1 -1
  60. data/spec/models/progress_report_spec.rb +1 -1
  61. data/spec/models/redis_connection_spec.rb +1 -1
  62. data/spec/models/status_spec.rb +7 -1
  63. data/spec/models/{content_summary_spec.rb → storage_spec.rb} +10 -10
  64. data/spec/models/task_cancel_spec.rb +1 -1
  65. data/spec/models/task_spec.rb +1 -1
  66. data/spec/models/upload_chunk_spec.rb +1 -1
  67. data/spec/models/upload_commit_spec.rb +1 -1
  68. data/spec/models/upload_detail_spec.rb +1 -1
  69. data/spec/models/upload_spec.rb +1 -1
  70. data/spec/models/version_spec.rb +1 -1
  71. data/spec/models/worker_spec.rb +1 -1
  72. data/spec/spec_helper.rb +1 -1
  73. metadata +6 -34
  74. data/docs/ContentSummary.md +0 -21
  75. data/docs/InlineResponse2004.md +0 -23
  76. data/docs/InlineResponse2005.md +0 -23
  77. data/docs/RepositoriesApi.md +0 -346
  78. data/docs/RepositoriesVersionsApi.md +0 -266
  79. data/docs/Repository.md +0 -29
  80. data/docs/RepositoryVersion.md +0 -25
  81. data/docs/RepositoryVersionCreate.md +0 -21
  82. data/lib/pulpcore_client/api/repositories_api.rb +0 -422
  83. data/lib/pulpcore_client/api/repositories_versions_api.rb +0 -334
  84. data/lib/pulpcore_client/models/content_summary.rb +0 -236
  85. data/lib/pulpcore_client/models/inline_response2005.rb +0 -235
  86. data/lib/pulpcore_client/models/repository.rb +0 -293
  87. data/lib/pulpcore_client/models/repository_version.rb +0 -234
  88. data/lib/pulpcore_client/models/repository_version_create.rb +0 -221
  89. data/spec/api/repositories_api_spec.rb +0 -112
  90. data/spec/api/repositories_versions_api_spec.rb +0 -102
  91. data/spec/models/inline_response2004_spec.rb +0 -59
  92. data/spec/models/inline_response2005_spec.rb +0 -59
  93. data/spec/models/repository_spec.rb +0 -77
  94. data/spec/models/repository_version_create_spec.rb +0 -53
  95. 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.0-SNAPSHOT
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<Repository>'
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
- next if value.nil?
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.0-SNAPSHOT
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<RepositoryVersion>'
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
- next if value.nil?
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.0-SNAPSHOT
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<Task>'
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
- next if value.nil?
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.0-SNAPSHOT
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
- next if value.nil?
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.0-SNAPSHOT
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
- next if value.nil?
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.0-SNAPSHOT
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
- next if value.nil?
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.0-SNAPSHOT
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
- class InlineResponse2004
17
- attr_accessor :count
16
+ # Storage information
17
+ class Storage
18
+ # Total number of bytes
19
+ attr_accessor :total
18
20
 
19
- attr_accessor :_next
21
+ # Number of bytes in use
22
+ attr_accessor :used
20
23
 
21
- attr_accessor :previous
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
- :'count' => :'count',
29
- :'_next' => :'next',
30
- :'previous' => :'previous',
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
- :'count' => :'Integer',
39
- :'_next' => :'String',
40
- :'previous' => :'String',
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::InlineResponse2004` initialize method"
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::InlineResponse2004`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
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?(:'count')
61
- self.count = attributes[:'count']
66
+ if attributes.key?(:'total')
67
+ self.total = attributes[:'total']
62
68
  end
63
69
 
64
- if attributes.key?(:'_next')
65
- self._next = attributes[:'_next']
70
+ if attributes.key?(:'used')
71
+ self.used = attributes[:'used']
66
72
  end
67
73
 
68
- if attributes.key?(:'previous')
69
- self.previous = attributes[:'previous']
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 @count.nil?
84
- invalid_properties.push('invalid value for "count", count cannot be nil.')
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 @results.nil?
88
- invalid_properties.push('invalid value for "results", results cannot be nil.')
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 @count.nil?
98
- return false if @results.nil?
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
- count == o.count &&
108
- _next == o._next &&
109
- previous == o.previous &&
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
- [count, _next, previous, results].hash
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
- next if value.nil?
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.0-SNAPSHOT
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
- next if value.nil?
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.0-SNAPSHOT
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
- next if value.nil?
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.0-SNAPSHOT
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
- next if value.nil?
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.0-SNAPSHOT
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
- next if value.nil?
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.0-SNAPSHOT
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
- next if value.nil?
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