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.
- checksums.yaml +4 -4
- data/README.md +10 -10
- data/docs/Addon.md +1 -3
- data/docs/Artifact.md +5 -5
- data/docs/ContentAdvisoriesApi.md +6 -2
- data/docs/{DistributionTreesDistributionTreesApi.md → ContentDistributionTreesApi.md} +28 -18
- data/docs/ContentModulemdApi.md +8 -4
- data/docs/ContentModulemdDefaultsApi.md +8 -4
- data/docs/ContentPackagesApi.md +8 -4
- data/docs/{RepoMetadataFilesRepoMetadataFilesApi.md → ContentRepoMetadataFilesApi.md} +28 -18
- data/docs/DistributionTree.md +2 -2
- data/docs/DistributionsRpmApi.md +8 -4
- data/docs/InlineResponse2001.md +1 -1
- data/docs/InlineResponse2002.md +1 -1
- data/docs/InlineResponse2003.md +1 -1
- data/docs/InlineResponse2004.md +1 -1
- data/docs/InlineResponse2005.md +1 -1
- data/docs/InlineResponse2006.md +1 -1
- data/docs/InlineResponse2007.md +1 -1
- data/docs/InlineResponse2008.md +1 -1
- data/docs/Modulemd.md +7 -9
- data/docs/ModulemdDefaults.md +6 -8
- data/docs/Package.md +41 -43
- data/docs/PublicationsRpmApi.md +8 -4
- data/docs/RemotesRpmApi.md +20 -16
- data/docs/RepoMetadataFile.md +5 -7
- data/docs/RpmDistribution.md +5 -5
- data/docs/RpmPublication.md +4 -6
- data/docs/RpmRemote.md +6 -8
- data/docs/UpdateRecord.md +6 -8
- data/docs/Variant.md +0 -2
- data/lib/pulp_rpm_client/api/content_advisories_api.rb +7 -1
- data/lib/pulp_rpm_client/api/{distribution_trees_distribution_trees_api.rb → content_distribution_trees_api.rb} +33 -18
- data/lib/pulp_rpm_client/api/content_modulemd_api.rb +10 -12
- data/lib/pulp_rpm_client/api/content_modulemd_defaults_api.rb +10 -8
- data/lib/pulp_rpm_client/api/content_packages_api.rb +10 -4
- data/lib/pulp_rpm_client/api/{repo_metadata_files_repo_metadata_files_api.rb → content_repo_metadata_files_api.rb} +33 -18
- data/lib/pulp_rpm_client/api/distributions_rpm_api.rb +10 -4
- data/lib/pulp_rpm_client/api/publications_rpm_api.rb +10 -4
- data/lib/pulp_rpm_client/api/remotes_rpm_api.rb +28 -22
- data/lib/pulp_rpm_client/api/rpm_copy_api.rb +1 -1
- data/lib/pulp_rpm_client/api_client.rb +1 -1
- data/lib/pulp_rpm_client/api_error.rb +1 -1
- data/lib/pulp_rpm_client/configuration.rb +1 -1
- data/lib/pulp_rpm_client/models/addon.rb +5 -20
- data/lib/pulp_rpm_client/models/artifact.rb +14 -14
- data/lib/pulp_rpm_client/models/async_operation_response.rb +1 -1
- data/lib/pulp_rpm_client/models/checksum.rb +1 -1
- data/lib/pulp_rpm_client/models/distribution_tree.rb +8 -8
- data/lib/pulp_rpm_client/models/image.rb +1 -1
- data/lib/pulp_rpm_client/models/inline_response200.rb +1 -1
- data/lib/pulp_rpm_client/models/inline_response2001.rb +2 -2
- data/lib/pulp_rpm_client/models/inline_response2002.rb +2 -2
- data/lib/pulp_rpm_client/models/inline_response2003.rb +2 -2
- data/lib/pulp_rpm_client/models/inline_response2004.rb +2 -2
- data/lib/pulp_rpm_client/models/inline_response2005.rb +2 -2
- data/lib/pulp_rpm_client/models/inline_response2006.rb +2 -2
- data/lib/pulp_rpm_client/models/inline_response2007.rb +2 -2
- data/lib/pulp_rpm_client/models/inline_response2008.rb +2 -2
- data/lib/pulp_rpm_client/models/modulemd.rb +16 -78
- data/lib/pulp_rpm_client/models/modulemd_defaults.rb +15 -58
- data/lib/pulp_rpm_client/models/package.rb +24 -218
- data/lib/pulp_rpm_client/models/repo_metadata_file.rb +14 -38
- data/lib/pulp_rpm_client/models/repository_sync_url.rb +1 -1
- data/lib/pulp_rpm_client/models/rpm_distribution.rb +14 -14
- data/lib/pulp_rpm_client/models/rpm_publication.rb +14 -38
- data/lib/pulp_rpm_client/models/rpm_remote.rb +20 -44
- data/lib/pulp_rpm_client/models/update_record.rb +14 -38
- data/lib/pulp_rpm_client/models/variant.rb +2 -17
- data/lib/pulp_rpm_client/version.rb +2 -2
- data/lib/pulp_rpm_client.rb +3 -3
- data/pulp_rpm_client.gemspec +1 -1
- data/spec/api/content_advisories_api_spec.rb +3 -1
- data/spec/api/{distribution_trees_distribution_trees_api_spec.rb → content_distribution_trees_api_spec.rb} +15 -10
- data/spec/api/content_modulemd_api_spec.rb +4 -2
- data/spec/api/content_modulemd_defaults_api_spec.rb +4 -2
- data/spec/api/content_packages_api_spec.rb +4 -2
- data/spec/api/{repo_metadata_files_repo_metadata_files_api_spec.rb → content_repo_metadata_files_api_spec.rb} +15 -10
- data/spec/api/distributions_rpm_api_spec.rb +4 -2
- data/spec/api/publications_rpm_api_spec.rb +4 -2
- data/spec/api/remotes_rpm_api_spec.rb +10 -8
- data/spec/api/rpm_copy_api_spec.rb +1 -1
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/addon_spec.rb +1 -7
- data/spec/models/artifact_spec.rb +3 -3
- data/spec/models/async_operation_response_spec.rb +1 -1
- data/spec/models/checksum_spec.rb +1 -1
- data/spec/models/distribution_tree_spec.rb +2 -2
- data/spec/models/image_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_response2004_spec.rb +1 -1
- data/spec/models/inline_response2005_spec.rb +1 -1
- data/spec/models/inline_response2006_spec.rb +1 -1
- data/spec/models/inline_response2007_spec.rb +1 -1
- data/spec/models/inline_response2008_spec.rb +1 -1
- data/spec/models/inline_response200_spec.rb +1 -1
- data/spec/models/modulemd_defaults_spec.rb +3 -9
- data/spec/models/modulemd_spec.rb +3 -9
- data/spec/models/package_spec.rb +3 -9
- data/spec/models/repo_metadata_file_spec.rb +3 -9
- data/spec/models/repository_sync_url_spec.rb +1 -1
- data/spec/models/rpm_distribution_spec.rb +3 -3
- data/spec/models/rpm_publication_spec.rb +3 -9
- data/spec/models/rpm_remote_spec.rb +4 -10
- data/spec/models/update_record_spec.rb +3 -9
- data/spec/models/variant_spec.rb +1 -7
- data/spec/spec_helper.rb +1 -1
- 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.
|
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 Package
|
17
|
-
attr_accessor :
|
17
|
+
attr_accessor :pulp_href
|
18
18
|
|
19
19
|
# Timestamp of creation.
|
20
|
-
attr_accessor :
|
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
|
@@ -144,9 +142,8 @@ module PulpRpmClient
|
|
144
142
|
# Attribute mapping from ruby-style variable name to JSON key.
|
145
143
|
def self.attribute_map
|
146
144
|
{
|
147
|
-
:'
|
148
|
-
:'
|
149
|
-
:'_type' => :'_type',
|
145
|
+
:'pulp_href' => :'pulp_href',
|
146
|
+
:'pulp_created' => :'pulp_created',
|
150
147
|
:'artifact' => :'artifact',
|
151
148
|
:'relative_path' => :'relative_path',
|
152
149
|
:'file' => :'file',
|
@@ -193,9 +190,8 @@ module PulpRpmClient
|
|
193
190
|
# Attribute type mapping.
|
194
191
|
def self.openapi_types
|
195
192
|
{
|
196
|
-
:'
|
197
|
-
:'
|
198
|
-
:'_type' => :'String',
|
193
|
+
:'pulp_href' => :'String',
|
194
|
+
:'pulp_created' => :'DateTime',
|
199
195
|
:'artifact' => :'String',
|
200
196
|
:'relative_path' => :'String',
|
201
197
|
:'file' => :'String',
|
@@ -210,16 +206,16 @@ module PulpRpmClient
|
|
210
206
|
:'summary' => :'String',
|
211
207
|
:'description' => :'String',
|
212
208
|
:'url' => :'String',
|
213
|
-
:'changelogs' => :'
|
214
|
-
:'files' => :'
|
215
|
-
:'requires' => :'
|
216
|
-
:'provides' => :'
|
217
|
-
:'conflicts' => :'
|
218
|
-
:'obsoletes' => :'
|
219
|
-
:'suggests' => :'
|
220
|
-
:'enhances' => :'
|
221
|
-
:'recommends' => :'
|
222
|
-
:'supplements' => :'
|
209
|
+
:'changelogs' => :'Object',
|
210
|
+
:'files' => :'Object',
|
211
|
+
:'requires' => :'Object',
|
212
|
+
:'provides' => :'Object',
|
213
|
+
:'conflicts' => :'Object',
|
214
|
+
:'obsoletes' => :'Object',
|
215
|
+
:'suggests' => :'Object',
|
216
|
+
:'enhances' => :'Object',
|
217
|
+
:'recommends' => :'Object',
|
218
|
+
:'supplements' => :'Object',
|
223
219
|
:'location_base' => :'String',
|
224
220
|
:'location_href' => :'String',
|
225
221
|
:'rpm_buildhost' => :'String',
|
@@ -254,16 +250,12 @@ module PulpRpmClient
|
|
254
250
|
h[k.to_sym] = v
|
255
251
|
}
|
256
252
|
|
257
|
-
if attributes.key?(:'
|
258
|
-
self.
|
259
|
-
end
|
260
|
-
|
261
|
-
if attributes.key?(:'_created')
|
262
|
-
self._created = attributes[:'_created']
|
253
|
+
if attributes.key?(:'pulp_href')
|
254
|
+
self.pulp_href = attributes[:'pulp_href']
|
263
255
|
end
|
264
256
|
|
265
|
-
if attributes.key?(:'
|
266
|
-
self.
|
257
|
+
if attributes.key?(:'pulp_created')
|
258
|
+
self.pulp_created = attributes[:'pulp_created']
|
267
259
|
end
|
268
260
|
|
269
261
|
if attributes.key?(:'artifact')
|
@@ -324,62 +316,42 @@ module PulpRpmClient
|
|
324
316
|
|
325
317
|
if attributes.key?(:'changelogs')
|
326
318
|
self.changelogs = attributes[:'changelogs']
|
327
|
-
else
|
328
|
-
self.changelogs = '[]'
|
329
319
|
end
|
330
320
|
|
331
321
|
if attributes.key?(:'files')
|
332
322
|
self.files = attributes[:'files']
|
333
|
-
else
|
334
|
-
self.files = '[]'
|
335
323
|
end
|
336
324
|
|
337
325
|
if attributes.key?(:'requires')
|
338
326
|
self.requires = attributes[:'requires']
|
339
|
-
else
|
340
|
-
self.requires = '[]'
|
341
327
|
end
|
342
328
|
|
343
329
|
if attributes.key?(:'provides')
|
344
330
|
self.provides = attributes[:'provides']
|
345
|
-
else
|
346
|
-
self.provides = '[]'
|
347
331
|
end
|
348
332
|
|
349
333
|
if attributes.key?(:'conflicts')
|
350
334
|
self.conflicts = attributes[:'conflicts']
|
351
|
-
else
|
352
|
-
self.conflicts = '[]'
|
353
335
|
end
|
354
336
|
|
355
337
|
if attributes.key?(:'obsoletes')
|
356
338
|
self.obsoletes = attributes[:'obsoletes']
|
357
|
-
else
|
358
|
-
self.obsoletes = '[]'
|
359
339
|
end
|
360
340
|
|
361
341
|
if attributes.key?(:'suggests')
|
362
342
|
self.suggests = attributes[:'suggests']
|
363
|
-
else
|
364
|
-
self.suggests = '[]'
|
365
343
|
end
|
366
344
|
|
367
345
|
if attributes.key?(:'enhances')
|
368
346
|
self.enhances = attributes[:'enhances']
|
369
|
-
else
|
370
|
-
self.enhances = '[]'
|
371
347
|
end
|
372
348
|
|
373
349
|
if attributes.key?(:'recommends')
|
374
350
|
self.recommends = attributes[:'recommends']
|
375
|
-
else
|
376
|
-
self.recommends = '[]'
|
377
351
|
end
|
378
352
|
|
379
353
|
if attributes.key?(:'supplements')
|
380
354
|
self.supplements = attributes[:'supplements']
|
381
|
-
else
|
382
|
-
self.supplements = '[]'
|
383
355
|
end
|
384
356
|
|
385
357
|
if attributes.key?(:'location_base')
|
@@ -451,10 +423,6 @@ module PulpRpmClient
|
|
451
423
|
# @return Array for valid properties with the reasons
|
452
424
|
def list_invalid_properties
|
453
425
|
invalid_properties = Array.new
|
454
|
-
if !@_type.nil? && @_type.to_s.length < 1
|
455
|
-
invalid_properties.push('invalid value for "_type", the character length must be great than or equal to 1.')
|
456
|
-
end
|
457
|
-
|
458
426
|
if @relative_path.nil?
|
459
427
|
invalid_properties.push('invalid value for "relative_path", relative_path cannot be nil.')
|
460
428
|
end
|
@@ -487,46 +455,6 @@ module PulpRpmClient
|
|
487
455
|
invalid_properties.push('invalid value for "checksum_type", the character length must be great than or equal to 1.')
|
488
456
|
end
|
489
457
|
|
490
|
-
if !@changelogs.nil? && @changelogs.to_s.length < 1
|
491
|
-
invalid_properties.push('invalid value for "changelogs", the character length must be great than or equal to 1.')
|
492
|
-
end
|
493
|
-
|
494
|
-
if !@files.nil? && @files.to_s.length < 1
|
495
|
-
invalid_properties.push('invalid value for "files", the character length must be great than or equal to 1.')
|
496
|
-
end
|
497
|
-
|
498
|
-
if !@requires.nil? && @requires.to_s.length < 1
|
499
|
-
invalid_properties.push('invalid value for "requires", the character length must be great than or equal to 1.')
|
500
|
-
end
|
501
|
-
|
502
|
-
if !@provides.nil? && @provides.to_s.length < 1
|
503
|
-
invalid_properties.push('invalid value for "provides", the character length must be great than or equal to 1.')
|
504
|
-
end
|
505
|
-
|
506
|
-
if !@conflicts.nil? && @conflicts.to_s.length < 1
|
507
|
-
invalid_properties.push('invalid value for "conflicts", the character length must be great than or equal to 1.')
|
508
|
-
end
|
509
|
-
|
510
|
-
if !@obsoletes.nil? && @obsoletes.to_s.length < 1
|
511
|
-
invalid_properties.push('invalid value for "obsoletes", the character length must be great than or equal to 1.')
|
512
|
-
end
|
513
|
-
|
514
|
-
if !@suggests.nil? && @suggests.to_s.length < 1
|
515
|
-
invalid_properties.push('invalid value for "suggests", the character length must be great than or equal to 1.')
|
516
|
-
end
|
517
|
-
|
518
|
-
if !@enhances.nil? && @enhances.to_s.length < 1
|
519
|
-
invalid_properties.push('invalid value for "enhances", the character length must be great than or equal to 1.')
|
520
|
-
end
|
521
|
-
|
522
|
-
if !@recommends.nil? && @recommends.to_s.length < 1
|
523
|
-
invalid_properties.push('invalid value for "recommends", the character length must be great than or equal to 1.')
|
524
|
-
end
|
525
|
-
|
526
|
-
if !@supplements.nil? && @supplements.to_s.length < 1
|
527
|
-
invalid_properties.push('invalid value for "supplements", the character length must be great than or equal to 1.')
|
528
|
-
end
|
529
|
-
|
530
458
|
if !@location_href.nil? && @location_href.to_s.length < 1
|
531
459
|
invalid_properties.push('invalid value for "location_href", the character length must be great than or equal to 1.')
|
532
460
|
end
|
@@ -537,7 +465,6 @@ module PulpRpmClient
|
|
537
465
|
# Check to see if the all the properties in the model are valid
|
538
466
|
# @return true if the model is valid
|
539
467
|
def valid?
|
540
|
-
return false if !@_type.nil? && @_type.to_s.length < 1
|
541
468
|
return false if @relative_path.nil?
|
542
469
|
return false if @relative_path.to_s.length < 1
|
543
470
|
return false if !@name.nil? && @name.to_s.length < 1
|
@@ -546,30 +473,10 @@ module PulpRpmClient
|
|
546
473
|
return false if !@arch.nil? && @arch.to_s.length < 1
|
547
474
|
return false if !@pkg_id.nil? && @pkg_id.to_s.length < 1
|
548
475
|
return false if !@checksum_type.nil? && @checksum_type.to_s.length < 1
|
549
|
-
return false if !@changelogs.nil? && @changelogs.to_s.length < 1
|
550
|
-
return false if !@files.nil? && @files.to_s.length < 1
|
551
|
-
return false if !@requires.nil? && @requires.to_s.length < 1
|
552
|
-
return false if !@provides.nil? && @provides.to_s.length < 1
|
553
|
-
return false if !@conflicts.nil? && @conflicts.to_s.length < 1
|
554
|
-
return false if !@obsoletes.nil? && @obsoletes.to_s.length < 1
|
555
|
-
return false if !@suggests.nil? && @suggests.to_s.length < 1
|
556
|
-
return false if !@enhances.nil? && @enhances.to_s.length < 1
|
557
|
-
return false if !@recommends.nil? && @recommends.to_s.length < 1
|
558
|
-
return false if !@supplements.nil? && @supplements.to_s.length < 1
|
559
476
|
return false if !@location_href.nil? && @location_href.to_s.length < 1
|
560
477
|
true
|
561
478
|
end
|
562
479
|
|
563
|
-
# Custom attribute writer method with validation
|
564
|
-
# @param [Object] _type Value to be assigned
|
565
|
-
def _type=(_type)
|
566
|
-
if !_type.nil? && _type.to_s.length < 1
|
567
|
-
fail ArgumentError, 'invalid value for "_type", the character length must be great than or equal to 1.'
|
568
|
-
end
|
569
|
-
|
570
|
-
@_type = _type
|
571
|
-
end
|
572
|
-
|
573
480
|
# Custom attribute writer method with validation
|
574
481
|
# @param [Object] relative_path Value to be assigned
|
575
482
|
def relative_path=(relative_path)
|
@@ -644,106 +551,6 @@ module PulpRpmClient
|
|
644
551
|
@checksum_type = checksum_type
|
645
552
|
end
|
646
553
|
|
647
|
-
# Custom attribute writer method with validation
|
648
|
-
# @param [Object] changelogs Value to be assigned
|
649
|
-
def changelogs=(changelogs)
|
650
|
-
if !changelogs.nil? && changelogs.to_s.length < 1
|
651
|
-
fail ArgumentError, 'invalid value for "changelogs", the character length must be great than or equal to 1.'
|
652
|
-
end
|
653
|
-
|
654
|
-
@changelogs = changelogs
|
655
|
-
end
|
656
|
-
|
657
|
-
# Custom attribute writer method with validation
|
658
|
-
# @param [Object] files Value to be assigned
|
659
|
-
def files=(files)
|
660
|
-
if !files.nil? && files.to_s.length < 1
|
661
|
-
fail ArgumentError, 'invalid value for "files", the character length must be great than or equal to 1.'
|
662
|
-
end
|
663
|
-
|
664
|
-
@files = files
|
665
|
-
end
|
666
|
-
|
667
|
-
# Custom attribute writer method with validation
|
668
|
-
# @param [Object] requires Value to be assigned
|
669
|
-
def requires=(requires)
|
670
|
-
if !requires.nil? && requires.to_s.length < 1
|
671
|
-
fail ArgumentError, 'invalid value for "requires", the character length must be great than or equal to 1.'
|
672
|
-
end
|
673
|
-
|
674
|
-
@requires = requires
|
675
|
-
end
|
676
|
-
|
677
|
-
# Custom attribute writer method with validation
|
678
|
-
# @param [Object] provides Value to be assigned
|
679
|
-
def provides=(provides)
|
680
|
-
if !provides.nil? && provides.to_s.length < 1
|
681
|
-
fail ArgumentError, 'invalid value for "provides", the character length must be great than or equal to 1.'
|
682
|
-
end
|
683
|
-
|
684
|
-
@provides = provides
|
685
|
-
end
|
686
|
-
|
687
|
-
# Custom attribute writer method with validation
|
688
|
-
# @param [Object] conflicts Value to be assigned
|
689
|
-
def conflicts=(conflicts)
|
690
|
-
if !conflicts.nil? && conflicts.to_s.length < 1
|
691
|
-
fail ArgumentError, 'invalid value for "conflicts", the character length must be great than or equal to 1.'
|
692
|
-
end
|
693
|
-
|
694
|
-
@conflicts = conflicts
|
695
|
-
end
|
696
|
-
|
697
|
-
# Custom attribute writer method with validation
|
698
|
-
# @param [Object] obsoletes Value to be assigned
|
699
|
-
def obsoletes=(obsoletes)
|
700
|
-
if !obsoletes.nil? && obsoletes.to_s.length < 1
|
701
|
-
fail ArgumentError, 'invalid value for "obsoletes", the character length must be great than or equal to 1.'
|
702
|
-
end
|
703
|
-
|
704
|
-
@obsoletes = obsoletes
|
705
|
-
end
|
706
|
-
|
707
|
-
# Custom attribute writer method with validation
|
708
|
-
# @param [Object] suggests Value to be assigned
|
709
|
-
def suggests=(suggests)
|
710
|
-
if !suggests.nil? && suggests.to_s.length < 1
|
711
|
-
fail ArgumentError, 'invalid value for "suggests", the character length must be great than or equal to 1.'
|
712
|
-
end
|
713
|
-
|
714
|
-
@suggests = suggests
|
715
|
-
end
|
716
|
-
|
717
|
-
# Custom attribute writer method with validation
|
718
|
-
# @param [Object] enhances Value to be assigned
|
719
|
-
def enhances=(enhances)
|
720
|
-
if !enhances.nil? && enhances.to_s.length < 1
|
721
|
-
fail ArgumentError, 'invalid value for "enhances", the character length must be great than or equal to 1.'
|
722
|
-
end
|
723
|
-
|
724
|
-
@enhances = enhances
|
725
|
-
end
|
726
|
-
|
727
|
-
# Custom attribute writer method with validation
|
728
|
-
# @param [Object] recommends Value to be assigned
|
729
|
-
def recommends=(recommends)
|
730
|
-
if !recommends.nil? && recommends.to_s.length < 1
|
731
|
-
fail ArgumentError, 'invalid value for "recommends", the character length must be great than or equal to 1.'
|
732
|
-
end
|
733
|
-
|
734
|
-
@recommends = recommends
|
735
|
-
end
|
736
|
-
|
737
|
-
# Custom attribute writer method with validation
|
738
|
-
# @param [Object] supplements Value to be assigned
|
739
|
-
def supplements=(supplements)
|
740
|
-
if !supplements.nil? && supplements.to_s.length < 1
|
741
|
-
fail ArgumentError, 'invalid value for "supplements", the character length must be great than or equal to 1.'
|
742
|
-
end
|
743
|
-
|
744
|
-
@supplements = supplements
|
745
|
-
end
|
746
|
-
|
747
554
|
# Custom attribute writer method with validation
|
748
555
|
# @param [Object] location_href Value to be assigned
|
749
556
|
def location_href=(location_href)
|
@@ -759,9 +566,8 @@ module PulpRpmClient
|
|
759
566
|
def ==(o)
|
760
567
|
return true if self.equal?(o)
|
761
568
|
self.class == o.class &&
|
762
|
-
|
763
|
-
|
764
|
-
_type == o._type &&
|
569
|
+
pulp_href == o.pulp_href &&
|
570
|
+
pulp_created == o.pulp_created &&
|
765
571
|
artifact == o.artifact &&
|
766
572
|
relative_path == o.relative_path &&
|
767
573
|
file == o.file &&
|
@@ -813,7 +619,7 @@ module PulpRpmClient
|
|
813
619
|
# Calculates hash code according to all attributes.
|
814
620
|
# @return [Integer] Hash code
|
815
621
|
def hash
|
816
|
-
[
|
622
|
+
[pulp_href, pulp_created, artifact, relative_path, file, repository, name, epoch, version, release, arch, pkg_id, checksum_type, summary, description, url, changelogs, files, requires, provides, conflicts, obsoletes, suggests, enhances, recommends, supplements, location_base, location_href, rpm_buildhost, rpm_group, rpm_license, rpm_packager, rpm_sourcerpm, rpm_vendor, rpm_header_start, rpm_header_end, is_modular, size_archive, size_installed, size_package, time_build, time_file].hash
|
817
623
|
end
|
818
624
|
|
819
625
|
# 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.
|
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 RepoMetadataFile
|
17
|
-
attr_accessor :
|
17
|
+
attr_accessor :pulp_href
|
18
18
|
|
19
19
|
# Timestamp of creation.
|
20
|
-
attr_accessor :
|
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
|
-
:'
|
49
|
-
:'
|
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,9 +58,8 @@ module PulpRpmClient
|
|
61
58
|
# Attribute type mapping.
|
62
59
|
def self.openapi_types
|
63
60
|
{
|
64
|
-
:'
|
65
|
-
:'
|
66
|
-
:'_type' => :'String',
|
61
|
+
:'pulp_href' => :'String',
|
62
|
+
:'pulp_created' => :'DateTime',
|
67
63
|
:'artifact' => :'String',
|
68
64
|
:'relative_path' => :'String',
|
69
65
|
:'file' => :'String',
|
@@ -89,16 +85,12 @@ module PulpRpmClient
|
|
89
85
|
h[k.to_sym] = v
|
90
86
|
}
|
91
87
|
|
92
|
-
if attributes.key?(:'
|
93
|
-
self.
|
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?(:'
|
101
|
-
self.
|
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
|
@@ -176,7 +164,6 @@ module PulpRpmClient
|
|
176
164
|
# Check to see if the all the properties in the model are valid
|
177
165
|
# @return true if the model is valid
|
178
166
|
def valid?
|
179
|
-
return false if !@_type.nil? && @_type.to_s.length < 1
|
180
167
|
return false if @relative_path.nil?
|
181
168
|
return false if @relative_path.to_s.length < 1
|
182
169
|
return false if @data_type.nil?
|
@@ -188,16 +175,6 @@ module PulpRpmClient
|
|
188
175
|
true
|
189
176
|
end
|
190
177
|
|
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
178
|
# Custom attribute writer method with validation
|
202
179
|
# @param [Object] relative_path Value to be assigned
|
203
180
|
def relative_path=(relative_path)
|
@@ -259,9 +236,8 @@ module PulpRpmClient
|
|
259
236
|
def ==(o)
|
260
237
|
return true if self.equal?(o)
|
261
238
|
self.class == o.class &&
|
262
|
-
|
263
|
-
|
264
|
-
_type == o._type &&
|
239
|
+
pulp_href == o.pulp_href &&
|
240
|
+
pulp_created == o.pulp_created &&
|
265
241
|
artifact == o.artifact &&
|
266
242
|
relative_path == o.relative_path &&
|
267
243
|
file == o.file &&
|
@@ -280,7 +256,7 @@ module PulpRpmClient
|
|
280
256
|
# Calculates hash code according to all attributes.
|
281
257
|
# @return [Integer] Hash code
|
282
258
|
def hash
|
283
|
-
[
|
259
|
+
[pulp_href, pulp_created, artifact, relative_path, file, repository, data_type, checksum_type, checksum].hash
|
284
260
|
end
|
285
261
|
|
286
262
|
# 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.
|
9
|
+
OpenAPI Generator version: 4.2.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -14,10 +14,10 @@ require 'date'
|
|
14
14
|
|
15
15
|
module PulpRpmClient
|
16
16
|
class RpmDistribution
|
17
|
-
attr_accessor :
|
17
|
+
attr_accessor :pulp_href
|
18
18
|
|
19
19
|
# Timestamp of creation.
|
20
|
-
attr_accessor :
|
20
|
+
attr_accessor :pulp_created
|
21
21
|
|
22
22
|
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
23
23
|
attr_accessor :base_path
|
@@ -37,8 +37,8 @@ module PulpRpmClient
|
|
37
37
|
# Attribute mapping from ruby-style variable name to JSON key.
|
38
38
|
def self.attribute_map
|
39
39
|
{
|
40
|
-
:'
|
41
|
-
:'
|
40
|
+
:'pulp_href' => :'pulp_href',
|
41
|
+
:'pulp_created' => :'pulp_created',
|
42
42
|
:'base_path' => :'base_path',
|
43
43
|
:'base_url' => :'base_url',
|
44
44
|
:'content_guard' => :'content_guard',
|
@@ -50,8 +50,8 @@ module PulpRpmClient
|
|
50
50
|
# Attribute type mapping.
|
51
51
|
def self.openapi_types
|
52
52
|
{
|
53
|
-
:'
|
54
|
-
:'
|
53
|
+
:'pulp_href' => :'String',
|
54
|
+
:'pulp_created' => :'DateTime',
|
55
55
|
:'base_path' => :'String',
|
56
56
|
:'base_url' => :'String',
|
57
57
|
:'content_guard' => :'String',
|
@@ -75,12 +75,12 @@ module PulpRpmClient
|
|
75
75
|
h[k.to_sym] = v
|
76
76
|
}
|
77
77
|
|
78
|
-
if attributes.key?(:'
|
79
|
-
self.
|
78
|
+
if attributes.key?(:'pulp_href')
|
79
|
+
self.pulp_href = attributes[:'pulp_href']
|
80
80
|
end
|
81
81
|
|
82
|
-
if attributes.key?(:'
|
83
|
-
self.
|
82
|
+
if attributes.key?(:'pulp_created')
|
83
|
+
self.pulp_created = attributes[:'pulp_created']
|
84
84
|
end
|
85
85
|
|
86
86
|
if attributes.key?(:'base_path')
|
@@ -203,8 +203,8 @@ module PulpRpmClient
|
|
203
203
|
def ==(o)
|
204
204
|
return true if self.equal?(o)
|
205
205
|
self.class == o.class &&
|
206
|
-
|
207
|
-
|
206
|
+
pulp_href == o.pulp_href &&
|
207
|
+
pulp_created == o.pulp_created &&
|
208
208
|
base_path == o.base_path &&
|
209
209
|
base_url == o.base_url &&
|
210
210
|
content_guard == o.content_guard &&
|
@@ -221,7 +221,7 @@ module PulpRpmClient
|
|
221
221
|
# Calculates hash code according to all attributes.
|
222
222
|
# @return [Integer] Hash code
|
223
223
|
def hash
|
224
|
-
[
|
224
|
+
[pulp_href, pulp_created, base_path, base_url, content_guard, name, publication].hash
|
225
225
|
end
|
226
226
|
|
227
227
|
# Builds the object from hash
|