pulp_rpm_client 3.0.0b6 → 3.0.0b7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (111) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +10 -10
  3. data/docs/Addon.md +1 -3
  4. data/docs/Artifact.md +5 -5
  5. data/docs/ContentAdvisoriesApi.md +6 -2
  6. data/docs/{DistributionTreesDistributionTreesApi.md → ContentDistributionTreesApi.md} +28 -18
  7. data/docs/ContentModulemdApi.md +8 -4
  8. data/docs/ContentModulemdDefaultsApi.md +8 -4
  9. data/docs/ContentPackagesApi.md +8 -4
  10. data/docs/{RepoMetadataFilesRepoMetadataFilesApi.md → ContentRepoMetadataFilesApi.md} +28 -18
  11. data/docs/DistributionTree.md +2 -2
  12. data/docs/DistributionsRpmApi.md +8 -4
  13. data/docs/InlineResponse2001.md +1 -1
  14. data/docs/InlineResponse2002.md +1 -1
  15. data/docs/InlineResponse2003.md +1 -1
  16. data/docs/InlineResponse2004.md +1 -1
  17. data/docs/InlineResponse2005.md +1 -1
  18. data/docs/InlineResponse2006.md +1 -1
  19. data/docs/InlineResponse2007.md +1 -1
  20. data/docs/InlineResponse2008.md +1 -1
  21. data/docs/Modulemd.md +7 -9
  22. data/docs/ModulemdDefaults.md +6 -8
  23. data/docs/Package.md +41 -43
  24. data/docs/PublicationsRpmApi.md +8 -4
  25. data/docs/RemotesRpmApi.md +20 -16
  26. data/docs/RepoMetadataFile.md +5 -7
  27. data/docs/RpmDistribution.md +5 -5
  28. data/docs/RpmPublication.md +4 -6
  29. data/docs/RpmRemote.md +6 -8
  30. data/docs/UpdateRecord.md +6 -8
  31. data/docs/Variant.md +0 -2
  32. data/lib/pulp_rpm_client/api/content_advisories_api.rb +7 -1
  33. data/lib/pulp_rpm_client/api/{distribution_trees_distribution_trees_api.rb → content_distribution_trees_api.rb} +33 -18
  34. data/lib/pulp_rpm_client/api/content_modulemd_api.rb +10 -12
  35. data/lib/pulp_rpm_client/api/content_modulemd_defaults_api.rb +10 -8
  36. data/lib/pulp_rpm_client/api/content_packages_api.rb +10 -4
  37. data/lib/pulp_rpm_client/api/{repo_metadata_files_repo_metadata_files_api.rb → content_repo_metadata_files_api.rb} +33 -18
  38. data/lib/pulp_rpm_client/api/distributions_rpm_api.rb +10 -4
  39. data/lib/pulp_rpm_client/api/publications_rpm_api.rb +10 -4
  40. data/lib/pulp_rpm_client/api/remotes_rpm_api.rb +28 -22
  41. data/lib/pulp_rpm_client/api/rpm_copy_api.rb +1 -1
  42. data/lib/pulp_rpm_client/api_client.rb +1 -1
  43. data/lib/pulp_rpm_client/api_error.rb +1 -1
  44. data/lib/pulp_rpm_client/configuration.rb +1 -1
  45. data/lib/pulp_rpm_client/models/addon.rb +5 -20
  46. data/lib/pulp_rpm_client/models/artifact.rb +14 -14
  47. data/lib/pulp_rpm_client/models/async_operation_response.rb +1 -1
  48. data/lib/pulp_rpm_client/models/checksum.rb +1 -1
  49. data/lib/pulp_rpm_client/models/distribution_tree.rb +8 -8
  50. data/lib/pulp_rpm_client/models/image.rb +1 -1
  51. data/lib/pulp_rpm_client/models/inline_response200.rb +1 -1
  52. data/lib/pulp_rpm_client/models/inline_response2001.rb +2 -2
  53. data/lib/pulp_rpm_client/models/inline_response2002.rb +2 -2
  54. data/lib/pulp_rpm_client/models/inline_response2003.rb +2 -2
  55. data/lib/pulp_rpm_client/models/inline_response2004.rb +2 -2
  56. data/lib/pulp_rpm_client/models/inline_response2005.rb +2 -2
  57. data/lib/pulp_rpm_client/models/inline_response2006.rb +2 -2
  58. data/lib/pulp_rpm_client/models/inline_response2007.rb +2 -2
  59. data/lib/pulp_rpm_client/models/inline_response2008.rb +2 -2
  60. data/lib/pulp_rpm_client/models/modulemd.rb +16 -78
  61. data/lib/pulp_rpm_client/models/modulemd_defaults.rb +15 -58
  62. data/lib/pulp_rpm_client/models/package.rb +24 -218
  63. data/lib/pulp_rpm_client/models/repo_metadata_file.rb +14 -38
  64. data/lib/pulp_rpm_client/models/repository_sync_url.rb +1 -1
  65. data/lib/pulp_rpm_client/models/rpm_distribution.rb +14 -14
  66. data/lib/pulp_rpm_client/models/rpm_publication.rb +14 -38
  67. data/lib/pulp_rpm_client/models/rpm_remote.rb +20 -44
  68. data/lib/pulp_rpm_client/models/update_record.rb +14 -38
  69. data/lib/pulp_rpm_client/models/variant.rb +2 -17
  70. data/lib/pulp_rpm_client/version.rb +2 -2
  71. data/lib/pulp_rpm_client.rb +3 -3
  72. data/pulp_rpm_client.gemspec +1 -1
  73. data/spec/api/content_advisories_api_spec.rb +3 -1
  74. data/spec/api/{distribution_trees_distribution_trees_api_spec.rb → content_distribution_trees_api_spec.rb} +15 -10
  75. data/spec/api/content_modulemd_api_spec.rb +4 -2
  76. data/spec/api/content_modulemd_defaults_api_spec.rb +4 -2
  77. data/spec/api/content_packages_api_spec.rb +4 -2
  78. data/spec/api/{repo_metadata_files_repo_metadata_files_api_spec.rb → content_repo_metadata_files_api_spec.rb} +15 -10
  79. data/spec/api/distributions_rpm_api_spec.rb +4 -2
  80. data/spec/api/publications_rpm_api_spec.rb +4 -2
  81. data/spec/api/remotes_rpm_api_spec.rb +10 -8
  82. data/spec/api/rpm_copy_api_spec.rb +1 -1
  83. data/spec/api_client_spec.rb +2 -2
  84. data/spec/configuration_spec.rb +1 -1
  85. data/spec/models/addon_spec.rb +1 -7
  86. data/spec/models/artifact_spec.rb +3 -3
  87. data/spec/models/async_operation_response_spec.rb +1 -1
  88. data/spec/models/checksum_spec.rb +1 -1
  89. data/spec/models/distribution_tree_spec.rb +2 -2
  90. data/spec/models/image_spec.rb +1 -1
  91. data/spec/models/inline_response2001_spec.rb +1 -1
  92. data/spec/models/inline_response2002_spec.rb +1 -1
  93. data/spec/models/inline_response2003_spec.rb +1 -1
  94. data/spec/models/inline_response2004_spec.rb +1 -1
  95. data/spec/models/inline_response2005_spec.rb +1 -1
  96. data/spec/models/inline_response2006_spec.rb +1 -1
  97. data/spec/models/inline_response2007_spec.rb +1 -1
  98. data/spec/models/inline_response2008_spec.rb +1 -1
  99. data/spec/models/inline_response200_spec.rb +1 -1
  100. data/spec/models/modulemd_defaults_spec.rb +3 -9
  101. data/spec/models/modulemd_spec.rb +3 -9
  102. data/spec/models/package_spec.rb +3 -9
  103. data/spec/models/repo_metadata_file_spec.rb +3 -9
  104. data/spec/models/repository_sync_url_spec.rb +1 -1
  105. data/spec/models/rpm_distribution_spec.rb +3 -3
  106. data/spec/models/rpm_publication_spec.rb +3 -9
  107. data/spec/models/rpm_remote_spec.rb +4 -10
  108. data/spec/models/update_record_spec.rb +3 -9
  109. data/spec/models/variant_spec.rb +1 -7
  110. data/spec/spec_helper.rb +1 -1
  111. metadata +10 -10
@@ -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.1.3-SNAPSHOT
9
+ OpenAPI Generator version: 4.2.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -14,12 +14,10 @@ require 'date'
14
14
 
15
15
  module PulpRpmClient
16
16
  class Modulemd
17
- attr_accessor :_href
17
+ attr_accessor :pulp_href
18
18
 
19
19
  # Timestamp of creation.
20
- attr_accessor :_created
21
-
22
- attr_accessor :_type
20
+ attr_accessor :pulp_created
23
21
 
24
22
  # Artifact file representing the physical content
25
23
  attr_accessor :artifact
@@ -60,9 +58,8 @@ module PulpRpmClient
60
58
  # Attribute mapping from ruby-style variable name to JSON key.
61
59
  def self.attribute_map
62
60
  {
63
- :'_href' => :'_href',
64
- :'_created' => :'_created',
65
- :'_type' => :'_type',
61
+ :'pulp_href' => :'pulp_href',
62
+ :'pulp_created' => :'pulp_created',
66
63
  :'artifact' => :'artifact',
67
64
  :'relative_path' => :'relative_path',
68
65
  :'file' => :'file',
@@ -81,9 +78,8 @@ module PulpRpmClient
81
78
  # Attribute type mapping.
82
79
  def self.openapi_types
83
80
  {
84
- :'_href' => :'String',
85
- :'_created' => :'DateTime',
86
- :'_type' => :'String',
81
+ :'pulp_href' => :'String',
82
+ :'pulp_created' => :'DateTime',
87
83
  :'artifact' => :'String',
88
84
  :'relative_path' => :'String',
89
85
  :'file' => :'String',
@@ -93,8 +89,8 @@ module PulpRpmClient
93
89
  :'version' => :'String',
94
90
  :'context' => :'String',
95
91
  :'arch' => :'String',
96
- :'artifacts' => :'String',
97
- :'dependencies' => :'String',
92
+ :'artifacts' => :'Object',
93
+ :'dependencies' => :'Object',
98
94
  :'packages' => :'Array<String>'
99
95
  }
100
96
  end
@@ -114,16 +110,12 @@ module PulpRpmClient
114
110
  h[k.to_sym] = v
115
111
  }
116
112
 
117
- if attributes.key?(:'_href')
118
- self._href = attributes[:'_href']
119
- end
120
-
121
- if attributes.key?(:'_created')
122
- self._created = attributes[:'_created']
113
+ if attributes.key?(:'pulp_href')
114
+ self.pulp_href = attributes[:'pulp_href']
123
115
  end
124
116
 
125
- if attributes.key?(:'_type')
126
- self._type = attributes[:'_type']
117
+ if attributes.key?(:'pulp_created')
118
+ self.pulp_created = attributes[:'pulp_created']
127
119
  end
128
120
 
129
121
  if attributes.key?(:'artifact')
@@ -181,10 +173,6 @@ module PulpRpmClient
181
173
  # @return Array for valid properties with the reasons
182
174
  def list_invalid_properties
183
175
  invalid_properties = Array.new
184
- if !@_type.nil? && @_type.to_s.length < 1
185
- invalid_properties.push('invalid value for "_type", the character length must be great than or equal to 1.')
186
- end
187
-
188
176
  if @relative_path.nil?
189
177
  invalid_properties.push('invalid value for "relative_path", relative_path cannot be nil.')
190
178
  end
@@ -237,25 +225,16 @@ module PulpRpmClient
237
225
  invalid_properties.push('invalid value for "artifacts", artifacts cannot be nil.')
238
226
  end
239
227
 
240
- if @artifacts.to_s.length < 1
241
- invalid_properties.push('invalid value for "artifacts", the character length must be great than or equal to 1.')
242
- end
243
-
244
228
  if @dependencies.nil?
245
229
  invalid_properties.push('invalid value for "dependencies", dependencies cannot be nil.')
246
230
  end
247
231
 
248
- if @dependencies.to_s.length < 1
249
- invalid_properties.push('invalid value for "dependencies", the character length must be great than or equal to 1.')
250
- end
251
-
252
232
  invalid_properties
253
233
  end
254
234
 
255
235
  # Check to see if the all the properties in the model are valid
256
236
  # @return true if the model is valid
257
237
  def valid?
258
- return false if !@_type.nil? && @_type.to_s.length < 1
259
238
  return false if @relative_path.nil?
260
239
  return false if @relative_path.to_s.length < 1
261
240
  return false if @name.nil?
@@ -269,22 +248,10 @@ module PulpRpmClient
269
248
  return false if @arch.nil?
270
249
  return false if @arch.to_s.length < 1
271
250
  return false if @artifacts.nil?
272
- return false if @artifacts.to_s.length < 1
273
251
  return false if @dependencies.nil?
274
- return false if @dependencies.to_s.length < 1
275
252
  true
276
253
  end
277
254
 
278
- # Custom attribute writer method with validation
279
- # @param [Object] _type Value to be assigned
280
- def _type=(_type)
281
- if !_type.nil? && _type.to_s.length < 1
282
- fail ArgumentError, 'invalid value for "_type", the character length must be great than or equal to 1.'
283
- end
284
-
285
- @_type = _type
286
- end
287
-
288
255
  # Custom attribute writer method with validation
289
256
  # @param [Object] relative_path Value to be assigned
290
257
  def relative_path=(relative_path)
@@ -369,42 +336,13 @@ module PulpRpmClient
369
336
  @arch = arch
370
337
  end
371
338
 
372
- # Custom attribute writer method with validation
373
- # @param [Object] artifacts Value to be assigned
374
- def artifacts=(artifacts)
375
- if artifacts.nil?
376
- fail ArgumentError, 'artifacts cannot be nil'
377
- end
378
-
379
- if artifacts.to_s.length < 1
380
- fail ArgumentError, 'invalid value for "artifacts", the character length must be great than or equal to 1.'
381
- end
382
-
383
- @artifacts = artifacts
384
- end
385
-
386
- # Custom attribute writer method with validation
387
- # @param [Object] dependencies Value to be assigned
388
- def dependencies=(dependencies)
389
- if dependencies.nil?
390
- fail ArgumentError, 'dependencies cannot be nil'
391
- end
392
-
393
- if dependencies.to_s.length < 1
394
- fail ArgumentError, 'invalid value for "dependencies", the character length must be great than or equal to 1.'
395
- end
396
-
397
- @dependencies = dependencies
398
- end
399
-
400
339
  # Checks equality by comparing each attribute.
401
340
  # @param [Object] Object to be compared
402
341
  def ==(o)
403
342
  return true if self.equal?(o)
404
343
  self.class == o.class &&
405
- _href == o._href &&
406
- _created == o._created &&
407
- _type == o._type &&
344
+ pulp_href == o.pulp_href &&
345
+ pulp_created == o.pulp_created &&
408
346
  artifact == o.artifact &&
409
347
  relative_path == o.relative_path &&
410
348
  file == o.file &&
@@ -428,7 +366,7 @@ module PulpRpmClient
428
366
  # Calculates hash code according to all attributes.
429
367
  # @return [Integer] Hash code
430
368
  def hash
431
- [_href, _created, _type, artifact, relative_path, file, repository, name, stream, version, context, arch, artifacts, dependencies, packages].hash
369
+ [pulp_href, pulp_created, artifact, relative_path, file, repository, name, stream, version, context, arch, artifacts, dependencies, packages].hash
432
370
  end
433
371
 
434
372
  # Builds the object from 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.1.3-SNAPSHOT
9
+ OpenAPI Generator version: 4.2.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -14,12 +14,10 @@ require 'date'
14
14
 
15
15
  module PulpRpmClient
16
16
  class ModulemdDefaults
17
- attr_accessor :_href
17
+ attr_accessor :pulp_href
18
18
 
19
19
  # Timestamp of creation.
20
- attr_accessor :_created
21
-
22
- attr_accessor :_type
20
+ attr_accessor :pulp_created
23
21
 
24
22
  # Artifact file representing the physical content
25
23
  attr_accessor :artifact
@@ -45,9 +43,8 @@ module PulpRpmClient
45
43
  # Attribute mapping from ruby-style variable name to JSON key.
46
44
  def self.attribute_map
47
45
  {
48
- :'_href' => :'_href',
49
- :'_created' => :'_created',
50
- :'_type' => :'_type',
46
+ :'pulp_href' => :'pulp_href',
47
+ :'pulp_created' => :'pulp_created',
51
48
  :'artifact' => :'artifact',
52
49
  :'relative_path' => :'relative_path',
53
50
  :'file' => :'file',
@@ -61,16 +58,15 @@ module PulpRpmClient
61
58
  # Attribute type mapping.
62
59
  def self.openapi_types
63
60
  {
64
- :'_href' => :'String',
65
- :'_created' => :'DateTime',
66
- :'_type' => :'String',
61
+ :'pulp_href' => :'String',
62
+ :'pulp_created' => :'DateTime',
67
63
  :'artifact' => :'String',
68
64
  :'relative_path' => :'String',
69
65
  :'file' => :'String',
70
66
  :'repository' => :'String',
71
67
  :'_module' => :'String',
72
68
  :'stream' => :'String',
73
- :'profiles' => :'String'
69
+ :'profiles' => :'Object'
74
70
  }
75
71
  end
76
72
 
@@ -89,16 +85,12 @@ module PulpRpmClient
89
85
  h[k.to_sym] = v
90
86
  }
91
87
 
92
- if attributes.key?(:'_href')
93
- self._href = attributes[:'_href']
94
- end
95
-
96
- if attributes.key?(:'_created')
97
- self._created = attributes[:'_created']
88
+ if attributes.key?(:'pulp_href')
89
+ self.pulp_href = attributes[:'pulp_href']
98
90
  end
99
91
 
100
- if attributes.key?(:'_type')
101
- self._type = attributes[:'_type']
92
+ if attributes.key?(:'pulp_created')
93
+ self.pulp_created = attributes[:'pulp_created']
102
94
  end
103
95
 
104
96
  if attributes.key?(:'artifact')
@@ -134,10 +126,6 @@ module PulpRpmClient
134
126
  # @return Array for valid properties with the reasons
135
127
  def list_invalid_properties
136
128
  invalid_properties = Array.new
137
- if !@_type.nil? && @_type.to_s.length < 1
138
- invalid_properties.push('invalid value for "_type", the character length must be great than or equal to 1.')
139
- end
140
-
141
129
  if @relative_path.nil?
142
130
  invalid_properties.push('invalid value for "relative_path", relative_path cannot be nil.')
143
131
  end
@@ -166,17 +154,12 @@ module PulpRpmClient
166
154
  invalid_properties.push('invalid value for "profiles", profiles cannot be nil.')
167
155
  end
168
156
 
169
- if @profiles.to_s.length < 1
170
- invalid_properties.push('invalid value for "profiles", the character length must be great than or equal to 1.')
171
- end
172
-
173
157
  invalid_properties
174
158
  end
175
159
 
176
160
  # Check to see if the all the properties in the model are valid
177
161
  # @return true if the model is valid
178
162
  def valid?
179
- return false if !@_type.nil? && @_type.to_s.length < 1
180
163
  return false if @relative_path.nil?
181
164
  return false if @relative_path.to_s.length < 1
182
165
  return false if @_module.nil?
@@ -184,20 +167,9 @@ module PulpRpmClient
184
167
  return false if @stream.nil?
185
168
  return false if @stream.to_s.length < 1
186
169
  return false if @profiles.nil?
187
- return false if @profiles.to_s.length < 1
188
170
  true
189
171
  end
190
172
 
191
- # Custom attribute writer method with validation
192
- # @param [Object] _type Value to be assigned
193
- def _type=(_type)
194
- if !_type.nil? && _type.to_s.length < 1
195
- fail ArgumentError, 'invalid value for "_type", the character length must be great than or equal to 1.'
196
- end
197
-
198
- @_type = _type
199
- end
200
-
201
173
  # Custom attribute writer method with validation
202
174
  # @param [Object] relative_path Value to be assigned
203
175
  def relative_path=(relative_path)
@@ -240,28 +212,13 @@ module PulpRpmClient
240
212
  @stream = stream
241
213
  end
242
214
 
243
- # Custom attribute writer method with validation
244
- # @param [Object] profiles Value to be assigned
245
- def profiles=(profiles)
246
- if profiles.nil?
247
- fail ArgumentError, 'profiles cannot be nil'
248
- end
249
-
250
- if profiles.to_s.length < 1
251
- fail ArgumentError, 'invalid value for "profiles", the character length must be great than or equal to 1.'
252
- end
253
-
254
- @profiles = profiles
255
- end
256
-
257
215
  # Checks equality by comparing each attribute.
258
216
  # @param [Object] Object to be compared
259
217
  def ==(o)
260
218
  return true if self.equal?(o)
261
219
  self.class == o.class &&
262
- _href == o._href &&
263
- _created == o._created &&
264
- _type == o._type &&
220
+ pulp_href == o.pulp_href &&
221
+ pulp_created == o.pulp_created &&
265
222
  artifact == o.artifact &&
266
223
  relative_path == o.relative_path &&
267
224
  file == o.file &&
@@ -280,7 +237,7 @@ module PulpRpmClient
280
237
  # Calculates hash code according to all attributes.
281
238
  # @return [Integer] Hash code
282
239
  def hash
283
- [_href, _created, _type, artifact, relative_path, file, repository, _module, stream, profiles].hash
240
+ [pulp_href, pulp_created, artifact, relative_path, file, repository, _module, stream, profiles].hash
284
241
  end
285
242
 
286
243
  # Builds the object from hash