pulp_rpm_client 3.17.4 → 3.17.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (89) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -6
  3. data/docs/AcsRpmApi.md +2 -2
  4. data/docs/ContentAdvisoriesApi.md +2 -2
  5. data/docs/ContentDistributionTreesApi.md +2 -2
  6. data/docs/ContentModulemdDefaultsApi.md +5 -3
  7. data/docs/ContentModulemdsApi.md +4 -2
  8. data/docs/ContentPackagecategoriesApi.md +2 -2
  9. data/docs/ContentPackageenvironmentsApi.md +2 -2
  10. data/docs/ContentPackagegroupsApi.md +2 -2
  11. data/docs/ContentPackagelangpacksApi.md +2 -2
  12. data/docs/ContentPackagesApi.md +5 -3
  13. data/docs/ContentRepoMetadataFilesApi.md +2 -2
  14. data/docs/DistributionsRpmApi.md +2 -2
  15. data/docs/PatchedrpmRpmRemote.md +2 -2
  16. data/docs/PatchedrpmUlnRemote.md +1 -1
  17. data/docs/PublicationsRpmApi.md +4 -2
  18. data/docs/RemotesRpmApi.md +2 -2
  19. data/docs/RemotesUlnApi.md +2 -2
  20. data/docs/Repair.md +17 -0
  21. data/docs/RepositoriesRpmApi.md +2 -2
  22. data/docs/RepositoriesRpmVersionsApi.md +6 -6
  23. data/docs/RpmModulemd.md +2 -0
  24. data/docs/RpmModulemdDefaults.md +2 -0
  25. data/docs/RpmPackage.md +3 -1
  26. data/docs/RpmRpmPublication.md +2 -2
  27. data/docs/RpmRpmPublicationResponse.md +2 -2
  28. data/docs/RpmRpmRemote.md +2 -2
  29. data/docs/RpmUlnRemote.md +1 -1
  30. data/docs/RpmUlnRemoteResponse.md +0 -4
  31. data/lib/pulp_rpm_client/api/acs_rpm_api.rb +7 -3
  32. data/lib/pulp_rpm_client/api/content_advisories_api.rb +7 -3
  33. data/lib/pulp_rpm_client/api/content_distribution_trees_api.rb +7 -3
  34. data/lib/pulp_rpm_client/api/content_modulemd_defaults_api.rb +10 -3
  35. data/lib/pulp_rpm_client/api/content_modulemds_api.rb +10 -3
  36. data/lib/pulp_rpm_client/api/content_packagecategories_api.rb +7 -3
  37. data/lib/pulp_rpm_client/api/content_packageenvironments_api.rb +7 -3
  38. data/lib/pulp_rpm_client/api/content_packagegroups_api.rb +7 -3
  39. data/lib/pulp_rpm_client/api/content_packagelangpacks_api.rb +7 -3
  40. data/lib/pulp_rpm_client/api/content_packages_api.rb +10 -3
  41. data/lib/pulp_rpm_client/api/content_repo_metadata_files_api.rb +7 -3
  42. data/lib/pulp_rpm_client/api/distributions_rpm_api.rb +7 -3
  43. data/lib/pulp_rpm_client/api/publications_rpm_api.rb +10 -3
  44. data/lib/pulp_rpm_client/api/remotes_rpm_api.rb +7 -3
  45. data/lib/pulp_rpm_client/api/remotes_uln_api.rb +7 -3
  46. data/lib/pulp_rpm_client/api/repositories_rpm_api.rb +7 -3
  47. data/lib/pulp_rpm_client/api/repositories_rpm_versions_api.rb +16 -12
  48. data/lib/pulp_rpm_client/api_client.rb +1 -4
  49. data/lib/pulp_rpm_client/configuration.rb +1 -0
  50. data/lib/pulp_rpm_client/models/patchedrpm_rpm_remote.rb +2 -2
  51. data/lib/pulp_rpm_client/models/patchedrpm_uln_remote.rb +1 -1
  52. data/lib/pulp_rpm_client/models/{repository_version.rb → repair.rb} +13 -12
  53. data/lib/pulp_rpm_client/models/rpm_modulemd.rb +11 -1
  54. data/lib/pulp_rpm_client/models/rpm_modulemd_defaults.rb +11 -1
  55. data/lib/pulp_rpm_client/models/rpm_package.rb +14 -4
  56. data/lib/pulp_rpm_client/models/rpm_rpm_publication.rb +0 -4
  57. data/lib/pulp_rpm_client/models/rpm_rpm_publication_response.rb +0 -4
  58. data/lib/pulp_rpm_client/models/rpm_rpm_remote.rb +2 -2
  59. data/lib/pulp_rpm_client/models/rpm_uln_remote.rb +1 -1
  60. data/lib/pulp_rpm_client/models/rpm_uln_remote_response.rb +1 -31
  61. data/lib/pulp_rpm_client/version.rb +1 -1
  62. data/lib/pulp_rpm_client.rb +1 -2
  63. data/spec/api/acs_rpm_api_spec.rb +1 -1
  64. data/spec/api/content_advisories_api_spec.rb +1 -1
  65. data/spec/api/content_distribution_trees_api_spec.rb +1 -1
  66. data/spec/api/content_modulemd_defaults_api_spec.rb +2 -1
  67. data/spec/api/content_modulemds_api_spec.rb +2 -1
  68. data/spec/api/content_packagecategories_api_spec.rb +1 -1
  69. data/spec/api/content_packageenvironments_api_spec.rb +1 -1
  70. data/spec/api/content_packagegroups_api_spec.rb +1 -1
  71. data/spec/api/content_packagelangpacks_api_spec.rb +1 -1
  72. data/spec/api/content_packages_api_spec.rb +2 -1
  73. data/spec/api/content_repo_metadata_files_api_spec.rb +1 -1
  74. data/spec/api/distributions_rpm_api_spec.rb +1 -1
  75. data/spec/api/publications_rpm_api_spec.rb +2 -1
  76. data/spec/api/remotes_rpm_api_spec.rb +1 -1
  77. data/spec/api/remotes_uln_api_spec.rb +1 -1
  78. data/spec/api/repositories_rpm_api_spec.rb +1 -1
  79. data/spec/api/repositories_rpm_versions_api_spec.rb +2 -2
  80. data/spec/models/{repository_version_spec.rb → repair_spec.rb} +7 -7
  81. data/spec/models/rpm_modulemd_defaults_spec.rb +6 -0
  82. data/spec/models/rpm_modulemd_spec.rb +6 -0
  83. data/spec/models/rpm_package_spec.rb +6 -0
  84. data/spec/models/rpm_uln_remote_response_spec.rb +0 -12
  85. metadata +73 -77
  86. data/docs/ContentSummary.md +0 -21
  87. data/docs/RepositoryVersion.md +0 -17
  88. data/lib/pulp_rpm_client/models/content_summary.rb +0 -246
  89. data/spec/models/content_summary_spec.rb +0 -53
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pulp_rpm_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.17.4
4
+ version: 3.17.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-24 00:00:00.000000000 Z
11
+ date: 2022-07-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -96,7 +96,6 @@ files:
96
96
  - docs/ContentPackagelangpacksApi.md
97
97
  - docs/ContentPackagesApi.md
98
98
  - docs/ContentRepoMetadataFilesApi.md
99
- - docs/ContentSummary.md
100
99
  - docs/ContentSummaryResponse.md
101
100
  - docs/Copy.md
102
101
  - docs/DistributionsRpmApi.md
@@ -129,10 +128,10 @@ files:
129
128
  - docs/PublicationsRpmApi.md
130
129
  - docs/RemotesRpmApi.md
131
130
  - docs/RemotesUlnApi.md
131
+ - docs/Repair.md
132
132
  - docs/RepositoriesRpmApi.md
133
133
  - docs/RepositoriesRpmVersionsApi.md
134
134
  - docs/RepositoryAddRemoveContent.md
135
- - docs/RepositoryVersion.md
136
135
  - docs/RepositoryVersionResponse.md
137
136
  - docs/RpmCompsApi.md
138
137
  - docs/RpmCopyApi.md
@@ -198,7 +197,6 @@ files:
198
197
  - lib/pulp_rpm_client/models/async_operation_response.rb
199
198
  - lib/pulp_rpm_client/models/checksum_response.rb
200
199
  - lib/pulp_rpm_client/models/comps_xml.rb
201
- - lib/pulp_rpm_client/models/content_summary.rb
202
200
  - lib/pulp_rpm_client/models/content_summary_response.rb
203
201
  - lib/pulp_rpm_client/models/copy.rb
204
202
  - lib/pulp_rpm_client/models/image_response.rb
@@ -227,8 +225,8 @@ files:
227
225
  - lib/pulp_rpm_client/models/patchedrpm_rpm_repository.rb
228
226
  - lib/pulp_rpm_client/models/patchedrpm_uln_remote.rb
229
227
  - lib/pulp_rpm_client/models/policy_enum.rb
228
+ - lib/pulp_rpm_client/models/repair.rb
230
229
  - lib/pulp_rpm_client/models/repository_add_remove_content.rb
231
- - lib/pulp_rpm_client/models/repository_version.rb
232
230
  - lib/pulp_rpm_client/models/repository_version_response.rb
233
231
  - lib/pulp_rpm_client/models/rpm_distribution_tree_response.rb
234
232
  - lib/pulp_rpm_client/models/rpm_modulemd.rb
@@ -292,7 +290,6 @@ files:
292
290
  - spec/models/checksum_response_spec.rb
293
291
  - spec/models/comps_xml_spec.rb
294
292
  - spec/models/content_summary_response_spec.rb
295
- - spec/models/content_summary_spec.rb
296
293
  - spec/models/copy_spec.rb
297
294
  - spec/models/image_response_spec.rb
298
295
  - spec/models/metadata_checksum_type_enum_spec.rb
@@ -320,9 +317,9 @@ files:
320
317
  - spec/models/patchedrpm_rpm_repository_spec.rb
321
318
  - spec/models/patchedrpm_uln_remote_spec.rb
322
319
  - spec/models/policy_enum_spec.rb
320
+ - spec/models/repair_spec.rb
323
321
  - spec/models/repository_add_remove_content_spec.rb
324
322
  - spec/models/repository_version_response_spec.rb
325
- - spec/models/repository_version_spec.rb
326
323
  - spec/models/rpm_distribution_tree_response_spec.rb
327
324
  - spec/models/rpm_modulemd_defaults_response_spec.rb
328
325
  - spec/models/rpm_modulemd_defaults_spec.rb
@@ -381,95 +378,94 @@ signing_key:
381
378
  specification_version: 4
382
379
  summary: Pulp 3 API Ruby Gem
383
380
  test_files:
384
- - spec/api/remotes_rpm_api_spec.rb
381
+ - spec/api/repositories_rpm_versions_api_spec.rb
385
382
  - spec/api/content_modulemds_api_spec.rb
386
- - spec/api/content_advisories_api_spec.rb
383
+ - spec/api/content_packagecategories_api_spec.rb
384
+ - spec/api/remotes_rpm_api_spec.rb
387
385
  - spec/api/content_packagegroups_api_spec.rb
386
+ - spec/api/content_modulemd_defaults_api_spec.rb
387
+ - spec/api/repositories_rpm_api_spec.rb
388
+ - spec/api/remotes_uln_api_spec.rb
389
+ - spec/api/content_advisories_api_spec.rb
390
+ - spec/api/acs_rpm_api_spec.rb
391
+ - spec/api/content_packages_api_spec.rb
388
392
  - spec/api/content_packageenvironments_api_spec.rb
389
393
  - spec/api/content_repo_metadata_files_api_spec.rb
390
394
  - spec/api/content_packagelangpacks_api_spec.rb
391
- - spec/api/repositories_rpm_versions_api_spec.rb
392
- - spec/api/rpm_copy_api_spec.rb
395
+ - spec/api/rpm_comps_api_spec.rb
393
396
  - spec/api/publications_rpm_api_spec.rb
394
- - spec/api/content_packagecategories_api_spec.rb
395
- - spec/api/content_packages_api_spec.rb
396
- - spec/api/repositories_rpm_api_spec.rb
397
397
  - spec/api/content_distribution_trees_api_spec.rb
398
- - spec/api/content_modulemd_defaults_api_spec.rb
399
- - spec/api/rpm_comps_api_spec.rb
400
- - spec/api/acs_rpm_api_spec.rb
401
- - spec/api/remotes_uln_api_spec.rb
402
398
  - spec/api/distributions_rpm_api_spec.rb
399
+ - spec/api/rpm_copy_api_spec.rb
403
400
  - spec/api_client_spec.rb
404
401
  - spec/configuration_spec.rb
405
- - spec/models/rpm_uln_remote_response_spec.rb
406
- - spec/models/paginatedrpm_repo_metadata_file_response_list_spec.rb
407
- - spec/models/repository_version_response_spec.rb
408
- - spec/models/rpm_repo_metadata_file_response_spec.rb
409
- - spec/models/paginatedrpm_package_category_response_list_spec.rb
410
- - spec/models/rpm_update_collection_spec.rb
411
- - spec/models/paginatedrpm_modulemd_response_list_spec.rb
412
- - spec/models/image_response_spec.rb
413
- - spec/models/artifact_response_spec.rb
414
- - spec/models/patchedrpm_uln_remote_spec.rb
415
- - spec/models/skip_types_enum_spec.rb
416
- - spec/models/async_operation_response_spec.rb
417
- - spec/models/rpm_package_response_spec.rb
418
- - spec/models/rpm_rpm_remote_response_spec.rb
419
- - spec/models/rpm_rpm_repository_response_spec.rb
420
- - spec/models/paginatedrpm_distribution_tree_response_list_spec.rb
421
- - spec/models/paginatedrpm_package_group_response_list_spec.rb
422
402
  - spec/models/paginated_repository_version_response_list_spec.rb
423
- - spec/models/patchedrpm_rpm_repository_spec.rb
424
- - spec/models/content_summary_response_spec.rb
403
+ - spec/models/rpm_update_collection_spec.rb
404
+ - spec/models/rpm_modulemd_defaults_spec.rb
405
+ - spec/models/rpm_update_record_spec.rb
406
+ - spec/models/repair_spec.rb
407
+ - spec/models/paginatedrpm_rpm_repository_response_list_spec.rb
408
+ - spec/models/patchedrpm_rpm_distribution_spec.rb
409
+ - spec/models/paginatedrpm_uln_remote_response_list_spec.rb
410
+ - spec/models/rpm_rpm_publication_spec.rb
411
+ - spec/models/paginatedrpm_rpm_publication_response_list_spec.rb
412
+ - spec/models/rpm_modulemd_defaults_response_spec.rb
413
+ - spec/models/rpm_repository_sync_url_spec.rb
414
+ - spec/models/rpm_rpm_repository_spec.rb
415
+ - spec/models/rpm_distribution_tree_response_spec.rb
416
+ - spec/models/paginatedrpm_package_langpacks_response_list_spec.rb
417
+ - spec/models/paginatedrpm_repo_metadata_file_response_list_spec.rb
418
+ - spec/models/rpm_modulemd_spec.rb
419
+ - spec/models/rpm_uln_remote_spec.rb
420
+ - spec/models/rpm_update_collection_response_spec.rb
425
421
  - spec/models/package_checksum_type_enum_spec.rb
426
422
  - spec/models/rpm_package_spec.rb
427
- - spec/models/rpm_modulemd_response_spec.rb
428
- - spec/models/paginatedrpm_rpm_distribution_response_list_spec.rb
429
- - spec/models/patchedrpm_rpm_remote_spec.rb
430
- - spec/models/rpm_update_record_response_spec.rb
423
+ - spec/models/paginatedrpm_distribution_tree_response_list_spec.rb
424
+ - spec/models/content_summary_response_spec.rb
425
+ - spec/models/paginatedrpm_package_category_response_list_spec.rb
426
+ - spec/models/rpm_package_langpacks_response_spec.rb
427
+ - spec/models/rpm_rpm_remote_response_spec.rb
428
+ - spec/models/repository_add_remove_content_spec.rb
429
+ - spec/models/rpm_rpm_distribution_response_spec.rb
430
+ - spec/models/policy_enum_spec.rb
431
431
  - spec/models/addon_response_spec.rb
432
- - spec/models/rpm_repository_sync_url_spec.rb
433
- - spec/models/paginatedrpm_rpm_publication_response_list_spec.rb
434
- - spec/models/rpm_rpm_publication_spec.rb
435
- - spec/models/paginatedrpm_package_response_list_spec.rb
436
- - spec/models/rpm_rpm_remote_spec.rb
437
- - spec/models/metadata_checksum_type_enum_spec.rb
438
- - spec/models/paginatedrpm_rpm_repository_response_list_spec.rb
439
- - spec/models/rpm_rpm_alternate_content_source_response_spec.rb
432
+ - spec/models/rpm_package_environment_response_spec.rb
433
+ - spec/models/rpm_package_group_response_spec.rb
440
434
  - spec/models/task_group_operation_response_spec.rb
441
- - spec/models/rpm_modulemd_spec.rb
442
- - spec/models/policy_enum_spec.rb
435
+ - spec/models/paginatedrpm_rpm_alternate_content_source_response_list_spec.rb
436
+ - spec/models/rpm_uln_remote_response_spec.rb
437
+ - spec/models/patchedrpm_uln_remote_spec.rb
443
438
  - spec/models/paginatedrpm_rpm_remote_response_list_spec.rb
439
+ - spec/models/paginatedrpm_rpm_distribution_response_list_spec.rb
440
+ - spec/models/rpm_rpm_alternate_content_source_response_spec.rb
441
+ - spec/models/paginatedrpm_package_response_list_spec.rb
442
+ - spec/models/paginatedrpm_package_environment_response_list_spec.rb
443
+ - spec/models/rpm_package_category_response_spec.rb
444
+ - spec/models/async_operation_response_spec.rb
445
+ - spec/models/skip_types_enum_spec.rb
444
446
  - spec/models/rpm_rpm_distribution_spec.rb
445
- - spec/models/paginatedrpm_uln_remote_response_list_spec.rb
446
- - spec/models/variant_response_spec.rb
447
- - spec/models/content_summary_spec.rb
448
- - spec/models/rpm_modulemd_defaults_response_spec.rb
449
- - spec/models/rpm_package_langpacks_response_spec.rb
450
- - spec/models/patchedrpm_rpm_distribution_spec.rb
451
- - spec/models/sync_policy_enum_spec.rb
452
- - spec/models/rpm_distribution_tree_response_spec.rb
453
- - spec/models/rpm_update_record_spec.rb
454
- - spec/models/rpm_rpm_repository_spec.rb
455
- - spec/models/copy_spec.rb
447
+ - spec/models/patchedrpm_rpm_remote_spec.rb
456
448
  - spec/models/checksum_response_spec.rb
457
449
  - spec/models/patchedrpm_rpm_alternate_content_source_spec.rb
458
- - spec/models/repository_version_spec.rb
459
- - spec/models/paginatedrpm_modulemd_defaults_response_list_spec.rb
450
+ - spec/models/rpm_rpm_repository_response_spec.rb
451
+ - spec/models/paginatedrpm_modulemd_response_list_spec.rb
452
+ - spec/models/artifact_response_spec.rb
453
+ - spec/models/rpm_rpm_remote_spec.rb
454
+ - spec/models/copy_spec.rb
455
+ - spec/models/rpm_rpm_publication_response_spec.rb
456
+ - spec/models/image_response_spec.rb
457
+ - spec/models/patchedrpm_rpm_repository_spec.rb
460
458
  - spec/models/paginatedrpm_update_record_response_list_spec.rb
461
- - spec/models/rpm_modulemd_defaults_spec.rb
462
- - spec/models/paginatedrpm_package_langpacks_response_list_spec.rb
463
- - spec/models/rpm_package_category_response_spec.rb
464
- - spec/models/rpm_package_environment_response_spec.rb
465
- - spec/models/paginatedrpm_package_environment_response_list_spec.rb
459
+ - spec/models/repository_version_response_spec.rb
466
460
  - spec/models/comps_xml_spec.rb
467
- - spec/models/rpm_package_group_response_spec.rb
468
- - spec/models/rpm_update_collection_response_spec.rb
469
- - spec/models/paginatedrpm_rpm_alternate_content_source_response_list_spec.rb
470
- - spec/models/rpm_uln_remote_spec.rb
471
- - spec/models/rpm_rpm_publication_response_spec.rb
461
+ - spec/models/rpm_package_response_spec.rb
462
+ - spec/models/rpm_repo_metadata_file_response_spec.rb
463
+ - spec/models/sync_policy_enum_spec.rb
464
+ - spec/models/paginatedrpm_package_group_response_list_spec.rb
465
+ - spec/models/rpm_update_record_response_spec.rb
472
466
  - spec/models/rpm_rpm_alternate_content_source_spec.rb
473
- - spec/models/rpm_rpm_distribution_response_spec.rb
474
- - spec/models/repository_add_remove_content_spec.rb
467
+ - spec/models/paginatedrpm_modulemd_defaults_response_list_spec.rb
468
+ - spec/models/metadata_checksum_type_enum_spec.rb
469
+ - spec/models/variant_response_spec.rb
470
+ - spec/models/rpm_modulemd_response_spec.rb
475
471
  - spec/spec_helper.rb
@@ -1,21 +0,0 @@
1
- # PulpRpmClient::ContentSummary
2
-
3
- ## Properties
4
-
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **added** | **Hash<String, Object>** | |
8
- **removed** | **Hash<String, Object>** | |
9
- **present** | **Hash<String, Object>** | |
10
-
11
- ## Code Sample
12
-
13
- ```ruby
14
- require 'PulpRpmClient'
15
-
16
- instance = PulpRpmClient::ContentSummary.new(added: null,
17
- removed: null,
18
- present: null)
19
- ```
20
-
21
-
@@ -1,17 +0,0 @@
1
- # PulpRpmClient::RepositoryVersion
2
-
3
- ## Properties
4
-
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **base_version** | **String** | A repository version whose content was used as the initial set of content for this repository version | [optional]
8
-
9
- ## Code Sample
10
-
11
- ```ruby
12
- require 'PulpRpmClient'
13
-
14
- instance = PulpRpmClient::RepositoryVersion.new(base_version: null)
15
- ```
16
-
17
-
@@ -1,246 +0,0 @@
1
- =begin
2
- #Pulp 3 API
3
-
4
- #Fetch, Upload, Organize, and Distribute Software Packages
5
-
6
- The version of the OpenAPI document: v3
7
- Contact: pulp-list@redhat.com
8
- Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.1
10
-
11
- =end
12
-
13
- require 'date'
14
-
15
- module PulpRpmClient
16
- # Serializer for the RepositoryVersion content summary
17
- class ContentSummary
18
- attr_accessor :added
19
-
20
- attr_accessor :removed
21
-
22
- attr_accessor :present
23
-
24
- # Attribute mapping from ruby-style variable name to JSON key.
25
- def self.attribute_map
26
- {
27
- :'added' => :'added',
28
- :'removed' => :'removed',
29
- :'present' => :'present'
30
- }
31
- end
32
-
33
- # Attribute type mapping.
34
- def self.openapi_types
35
- {
36
- :'added' => :'Hash<String, Object>',
37
- :'removed' => :'Hash<String, Object>',
38
- :'present' => :'Hash<String, Object>'
39
- }
40
- end
41
-
42
- # List of attributes with nullable: true
43
- def self.openapi_nullable
44
- Set.new([
45
- ])
46
- end
47
-
48
- # Initializes the object
49
- # @param [Hash] attributes Model attributes in the form of hash
50
- def initialize(attributes = {})
51
- if (!attributes.is_a?(Hash))
52
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpRpmClient::ContentSummary` initialize method"
53
- end
54
-
55
- # check to see if the attribute exists and convert string to symbol for hash key
56
- attributes = attributes.each_with_object({}) { |(k, v), h|
57
- if (!self.class.attribute_map.key?(k.to_sym))
58
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpRpmClient::ContentSummary`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
59
- end
60
- h[k.to_sym] = v
61
- }
62
-
63
- if attributes.key?(:'added')
64
- if (value = attributes[:'added']).is_a?(Hash)
65
- self.added = value
66
- end
67
- end
68
-
69
- if attributes.key?(:'removed')
70
- if (value = attributes[:'removed']).is_a?(Hash)
71
- self.removed = value
72
- end
73
- end
74
-
75
- if attributes.key?(:'present')
76
- if (value = attributes[:'present']).is_a?(Hash)
77
- self.present = value
78
- end
79
- end
80
- end
81
-
82
- # Show invalid properties with the reasons. Usually used together with valid?
83
- # @return Array for valid properties with the reasons
84
- def list_invalid_properties
85
- invalid_properties = Array.new
86
- if @added.nil?
87
- invalid_properties.push('invalid value for "added", added cannot be nil.')
88
- end
89
-
90
- if @removed.nil?
91
- invalid_properties.push('invalid value for "removed", removed cannot be nil.')
92
- end
93
-
94
- if @present.nil?
95
- invalid_properties.push('invalid value for "present", present cannot be nil.')
96
- end
97
-
98
- invalid_properties
99
- end
100
-
101
- # Check to see if the all the properties in the model are valid
102
- # @return true if the model is valid
103
- def valid?
104
- return false if @added.nil?
105
- return false if @removed.nil?
106
- return false if @present.nil?
107
- true
108
- end
109
-
110
- # Checks equality by comparing each attribute.
111
- # @param [Object] Object to be compared
112
- def ==(o)
113
- return true if self.equal?(o)
114
- self.class == o.class &&
115
- added == o.added &&
116
- removed == o.removed &&
117
- present == o.present
118
- end
119
-
120
- # @see the `==` method
121
- # @param [Object] Object to be compared
122
- def eql?(o)
123
- self == o
124
- end
125
-
126
- # Calculates hash code according to all attributes.
127
- # @return [Integer] Hash code
128
- def hash
129
- [added, removed, present].hash
130
- end
131
-
132
- # Builds the object from hash
133
- # @param [Hash] attributes Model attributes in the form of hash
134
- # @return [Object] Returns the model itself
135
- def self.build_from_hash(attributes)
136
- new.build_from_hash(attributes)
137
- end
138
-
139
- # Builds the object from hash
140
- # @param [Hash] attributes Model attributes in the form of hash
141
- # @return [Object] Returns the model itself
142
- def build_from_hash(attributes)
143
- return nil unless attributes.is_a?(Hash)
144
- self.class.openapi_types.each_pair do |key, type|
145
- if type =~ /\AArray<(.*)>/i
146
- # check to ensure the input is an array given that the attribute
147
- # is documented as an array but the input is not
148
- if attributes[self.class.attribute_map[key]].is_a?(Array)
149
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
150
- end
151
- elsif !attributes[self.class.attribute_map[key]].nil?
152
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
153
- end # or else data not found in attributes(hash), not an issue as the data can be optional
154
- end
155
-
156
- self
157
- end
158
-
159
- # Deserializes the data based on type
160
- # @param string type Data type
161
- # @param string value Value to be deserialized
162
- # @return [Object] Deserialized data
163
- def _deserialize(type, value)
164
- case type.to_sym
165
- when :DateTime
166
- DateTime.parse(value)
167
- when :Date
168
- Date.parse(value)
169
- when :String
170
- value.to_s
171
- when :Integer
172
- value.to_i
173
- when :Float
174
- value.to_f
175
- when :Boolean
176
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
177
- true
178
- else
179
- false
180
- end
181
- when :Object
182
- # generic object (usually a Hash), return directly
183
- value
184
- when /\AArray<(?<inner_type>.+)>\z/
185
- inner_type = Regexp.last_match[:inner_type]
186
- value.map { |v| _deserialize(inner_type, v) }
187
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
188
- k_type = Regexp.last_match[:k_type]
189
- v_type = Regexp.last_match[:v_type]
190
- {}.tap do |hash|
191
- value.each do |k, v|
192
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
193
- end
194
- end
195
- else # model
196
- PulpRpmClient.const_get(type).build_from_hash(value)
197
- end
198
- end
199
-
200
- # Returns the string representation of the object
201
- # @return [String] String presentation of the object
202
- def to_s
203
- to_hash.to_s
204
- end
205
-
206
- # to_body is an alias to to_hash (backward compatibility)
207
- # @return [Hash] Returns the object in the form of hash
208
- def to_body
209
- to_hash
210
- end
211
-
212
- # Returns the object in the form of hash
213
- # @return [Hash] Returns the object in the form of hash
214
- def to_hash
215
- hash = {}
216
- self.class.attribute_map.each_pair do |attr, param|
217
- value = self.send(attr)
218
- if value.nil?
219
- is_nullable = self.class.openapi_nullable.include?(attr)
220
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
221
- end
222
-
223
- hash[param] = _to_hash(value)
224
- end
225
- hash
226
- end
227
-
228
- # Outputs non-array value in the form of hash
229
- # For object, use to_hash. Otherwise, just return the value
230
- # @param [Object] value Any valid value
231
- # @return [Hash] Returns the value in the form of hash
232
- def _to_hash(value)
233
- if value.is_a?(Array)
234
- value.compact.map { |v| _to_hash(v) }
235
- elsif value.is_a?(Hash)
236
- {}.tap do |hash|
237
- value.each { |k, v| hash[k] = _to_hash(v) }
238
- end
239
- elsif value.respond_to? :to_hash
240
- value.to_hash
241
- else
242
- value
243
- end
244
- end
245
- end
246
- end
@@ -1,53 +0,0 @@
1
- =begin
2
- #Pulp 3 API
3
-
4
- #Fetch, Upload, Organize, and Distribute Software Packages
5
-
6
- The version of the OpenAPI document: v3
7
- Contact: pulp-list@redhat.com
8
- Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.1
10
-
11
- =end
12
-
13
- require 'spec_helper'
14
- require 'json'
15
- require 'date'
16
-
17
- # Unit tests for PulpRpmClient::ContentSummary
18
- # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
- # Please update as you see appropriate
20
- describe 'ContentSummary' do
21
- before do
22
- # run before each test
23
- @instance = PulpRpmClient::ContentSummary.new
24
- end
25
-
26
- after do
27
- # run after each test
28
- end
29
-
30
- describe 'test an instance of ContentSummary' do
31
- it 'should create an instance of ContentSummary' do
32
- expect(@instance).to be_instance_of(PulpRpmClient::ContentSummary)
33
- end
34
- end
35
- describe 'test attribute "added"' do
36
- it 'should work' do
37
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
- end
39
- end
40
-
41
- describe 'test attribute "removed"' do
42
- it 'should work' do
43
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
- end
45
- end
46
-
47
- describe 'test attribute "present"' do
48
- it 'should work' do
49
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
- end
51
- end
52
-
53
- end