pulp_rpm_client 3.2.0 → 3.3.0b1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (136) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +6 -4
  3. data/docs/ContentModulemdDefaultsApi.md +2 -0
  4. data/docs/ContentModulemdsApi.md +2 -0
  5. data/docs/ContentPackagesApi.md +2 -0
  6. data/docs/Copy.md +19 -0
  7. data/docs/RpmCopyApi.md +62 -0
  8. data/docs/RpmModulemd.md +3 -1
  9. data/docs/RpmModulemdDefaults.md +3 -1
  10. data/docs/RpmPackage.md +2 -0
  11. data/docs/RpmRepoMetadataFile.md +3 -1
  12. data/docs/RpmRpmRepository.md +3 -1
  13. data/lib/pulp_rpm_client.rb +3 -1
  14. data/lib/pulp_rpm_client/api/content_advisories_api.rb +1 -1
  15. data/lib/pulp_rpm_client/api/content_distribution_trees_api.rb +1 -1
  16. data/lib/pulp_rpm_client/api/content_modulemd_defaults_api.rb +4 -1
  17. data/lib/pulp_rpm_client/api/content_modulemds_api.rb +4 -1
  18. data/lib/pulp_rpm_client/api/content_packagecategories_api.rb +1 -1
  19. data/lib/pulp_rpm_client/api/content_packageenvironments_api.rb +1 -1
  20. data/lib/pulp_rpm_client/api/content_packagegroups_api.rb +1 -1
  21. data/lib/pulp_rpm_client/api/content_packagelangpacks_api.rb +1 -1
  22. data/lib/pulp_rpm_client/api/content_packages_api.rb +4 -1
  23. data/lib/pulp_rpm_client/api/content_repo_metadata_files_api.rb +1 -1
  24. data/lib/pulp_rpm_client/api/distributions_rpm_api.rb +1 -1
  25. data/lib/pulp_rpm_client/api/publications_rpm_api.rb +1 -1
  26. data/lib/pulp_rpm_client/api/remotes_rpm_api.rb +1 -1
  27. data/lib/pulp_rpm_client/api/repositories_rpm_api.rb +1 -1
  28. data/lib/pulp_rpm_client/api/repositories_rpm_versions_api.rb +1 -1
  29. data/lib/pulp_rpm_client/api/rpm_copy_api.rb +86 -0
  30. data/lib/pulp_rpm_client/api_client.rb +1 -1
  31. data/lib/pulp_rpm_client/api_error.rb +1 -1
  32. data/lib/pulp_rpm_client/configuration.rb +1 -1
  33. data/lib/pulp_rpm_client/models/addon.rb +1 -1
  34. data/lib/pulp_rpm_client/models/artifact.rb +1 -1
  35. data/lib/pulp_rpm_client/models/async_operation_response.rb +1 -1
  36. data/lib/pulp_rpm_client/models/checksum.rb +1 -1
  37. data/lib/pulp_rpm_client/models/content_summary.rb +1 -1
  38. data/lib/pulp_rpm_client/models/copy.rb +224 -0
  39. data/lib/pulp_rpm_client/models/image.rb +1 -1
  40. data/lib/pulp_rpm_client/models/inline_response200.rb +1 -1
  41. data/lib/pulp_rpm_client/models/inline_response2001.rb +1 -1
  42. data/lib/pulp_rpm_client/models/inline_response20010.rb +1 -1
  43. data/lib/pulp_rpm_client/models/inline_response20011.rb +1 -1
  44. data/lib/pulp_rpm_client/models/inline_response20012.rb +1 -1
  45. data/lib/pulp_rpm_client/models/inline_response20013.rb +1 -1
  46. data/lib/pulp_rpm_client/models/inline_response20014.rb +1 -1
  47. data/lib/pulp_rpm_client/models/inline_response2002.rb +1 -1
  48. data/lib/pulp_rpm_client/models/inline_response2003.rb +1 -1
  49. data/lib/pulp_rpm_client/models/inline_response2004.rb +1 -1
  50. data/lib/pulp_rpm_client/models/inline_response2005.rb +1 -1
  51. data/lib/pulp_rpm_client/models/inline_response2006.rb +1 -1
  52. data/lib/pulp_rpm_client/models/inline_response2007.rb +1 -1
  53. data/lib/pulp_rpm_client/models/inline_response2008.rb +1 -1
  54. data/lib/pulp_rpm_client/models/inline_response2009.rb +1 -1
  55. data/lib/pulp_rpm_client/models/repository_add_remove_content.rb +1 -1
  56. data/lib/pulp_rpm_client/models/repository_version.rb +1 -1
  57. data/lib/pulp_rpm_client/models/rpm_distribution_tree.rb +1 -1
  58. data/lib/pulp_rpm_client/models/rpm_modulemd.rb +30 -5
  59. data/lib/pulp_rpm_client/models/rpm_modulemd_defaults.rb +30 -5
  60. data/lib/pulp_rpm_client/models/rpm_package.rb +27 -2
  61. data/lib/pulp_rpm_client/models/rpm_package_category.rb +1 -1
  62. data/lib/pulp_rpm_client/models/rpm_package_environment.rb +1 -1
  63. data/lib/pulp_rpm_client/models/rpm_package_group.rb +1 -1
  64. data/lib/pulp_rpm_client/models/rpm_package_langpacks.rb +1 -1
  65. data/lib/pulp_rpm_client/models/rpm_repo_metadata_file.rb +30 -5
  66. data/lib/pulp_rpm_client/models/rpm_repository_sync_url.rb +1 -1
  67. data/lib/pulp_rpm_client/models/rpm_rpm_distribution.rb +1 -1
  68. data/lib/pulp_rpm_client/models/rpm_rpm_publication.rb +1 -1
  69. data/lib/pulp_rpm_client/models/rpm_rpm_remote.rb +1 -1
  70. data/lib/pulp_rpm_client/models/rpm_rpm_repository.rb +17 -6
  71. data/lib/pulp_rpm_client/models/rpm_update_collection.rb +1 -1
  72. data/lib/pulp_rpm_client/models/rpm_update_record.rb +1 -1
  73. data/lib/pulp_rpm_client/models/variant.rb +1 -1
  74. data/lib/pulp_rpm_client/version.rb +2 -2
  75. data/pulp_rpm_client.gemspec +1 -1
  76. data/spec/api/content_advisories_api_spec.rb +1 -1
  77. data/spec/api/content_distribution_trees_api_spec.rb +1 -1
  78. data/spec/api/content_modulemd_defaults_api_spec.rb +2 -1
  79. data/spec/api/content_modulemds_api_spec.rb +2 -1
  80. data/spec/api/content_packagecategories_api_spec.rb +1 -1
  81. data/spec/api/content_packageenvironments_api_spec.rb +1 -1
  82. data/spec/api/content_packagegroups_api_spec.rb +1 -1
  83. data/spec/api/content_packagelangpacks_api_spec.rb +1 -1
  84. data/spec/api/content_packages_api_spec.rb +2 -1
  85. data/spec/api/content_repo_metadata_files_api_spec.rb +1 -1
  86. data/spec/api/distributions_rpm_api_spec.rb +1 -1
  87. data/spec/api/publications_rpm_api_spec.rb +1 -1
  88. data/spec/api/remotes_rpm_api_spec.rb +1 -1
  89. data/spec/api/repositories_rpm_api_spec.rb +1 -1
  90. data/spec/api/repositories_rpm_versions_api_spec.rb +1 -1
  91. data/spec/api/rpm_copy_api_spec.rb +47 -0
  92. data/spec/api_client_spec.rb +1 -1
  93. data/spec/configuration_spec.rb +1 -1
  94. data/spec/models/addon_spec.rb +1 -1
  95. data/spec/models/artifact_spec.rb +1 -1
  96. data/spec/models/async_operation_response_spec.rb +1 -1
  97. data/spec/models/checksum_spec.rb +1 -1
  98. data/spec/models/content_summary_spec.rb +1 -1
  99. data/spec/models/copy_spec.rb +47 -0
  100. data/spec/models/image_spec.rb +1 -1
  101. data/spec/models/inline_response20010_spec.rb +1 -1
  102. data/spec/models/inline_response20011_spec.rb +1 -1
  103. data/spec/models/inline_response20012_spec.rb +1 -1
  104. data/spec/models/inline_response20013_spec.rb +1 -1
  105. data/spec/models/inline_response20014_spec.rb +1 -1
  106. data/spec/models/inline_response2001_spec.rb +1 -1
  107. data/spec/models/inline_response2002_spec.rb +1 -1
  108. data/spec/models/inline_response2003_spec.rb +1 -1
  109. data/spec/models/inline_response2004_spec.rb +1 -1
  110. data/spec/models/inline_response2005_spec.rb +1 -1
  111. data/spec/models/inline_response2006_spec.rb +1 -1
  112. data/spec/models/inline_response2007_spec.rb +1 -1
  113. data/spec/models/inline_response2008_spec.rb +1 -1
  114. data/spec/models/inline_response2009_spec.rb +1 -1
  115. data/spec/models/inline_response200_spec.rb +1 -1
  116. data/spec/models/repository_add_remove_content_spec.rb +1 -1
  117. data/spec/models/repository_version_spec.rb +1 -1
  118. data/spec/models/rpm_distribution_tree_spec.rb +1 -1
  119. data/spec/models/rpm_modulemd_defaults_spec.rb +7 -1
  120. data/spec/models/rpm_modulemd_spec.rb +7 -1
  121. data/spec/models/rpm_package_category_spec.rb +1 -1
  122. data/spec/models/rpm_package_environment_spec.rb +1 -1
  123. data/spec/models/rpm_package_group_spec.rb +1 -1
  124. data/spec/models/rpm_package_langpacks_spec.rb +1 -1
  125. data/spec/models/rpm_package_spec.rb +7 -1
  126. data/spec/models/rpm_repo_metadata_file_spec.rb +7 -1
  127. data/spec/models/rpm_repository_sync_url_spec.rb +1 -1
  128. data/spec/models/rpm_rpm_distribution_spec.rb +1 -1
  129. data/spec/models/rpm_rpm_publication_spec.rb +1 -1
  130. data/spec/models/rpm_rpm_remote_spec.rb +1 -1
  131. data/spec/models/rpm_rpm_repository_spec.rb +7 -1
  132. data/spec/models/rpm_update_collection_spec.rb +1 -1
  133. data/spec/models/rpm_update_record_spec.rb +1 -1
  134. data/spec/models/variant_spec.rb +1 -1
  135. data/spec/spec_helper.rb +1 -1
  136. metadata +12 -4
@@ -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.2
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
@@ -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.2
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
@@ -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.2
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
@@ -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.2
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
@@ -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.2
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
@@ -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.2
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
@@ -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.2
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
@@ -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.2
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
@@ -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.2
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
@@ -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.2
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
@@ -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.2
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
@@ -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.2
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
@@ -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.2
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
@@ -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.2
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
@@ -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.2
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
@@ -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.2
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
@@ -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.2
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
@@ -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.2
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
@@ -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.2
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
@@ -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.2
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
@@ -46,6 +46,9 @@ module PulpRpmClient
46
46
  # Modulemd artifacts' packages.
47
47
  attr_accessor :packages
48
48
 
49
+ # The SHA-256 checksum if available.
50
+ attr_accessor :sha256
51
+
49
52
  # Attribute mapping from ruby-style variable name to JSON key.
50
53
  def self.attribute_map
51
54
  {
@@ -59,7 +62,8 @@ module PulpRpmClient
59
62
  :'arch' => :'arch',
60
63
  :'artifacts' => :'artifacts',
61
64
  :'dependencies' => :'dependencies',
62
- :'packages' => :'packages'
65
+ :'packages' => :'packages',
66
+ :'sha256' => :'sha256'
63
67
  }
64
68
  end
65
69
 
@@ -76,7 +80,8 @@ module PulpRpmClient
76
80
  :'arch' => :'String',
77
81
  :'artifacts' => :'Object',
78
82
  :'dependencies' => :'Object',
79
- :'packages' => :'Array<String>'
83
+ :'packages' => :'Array<String>',
84
+ :'sha256' => :'String'
80
85
  }
81
86
  end
82
87
 
@@ -146,6 +151,10 @@ module PulpRpmClient
146
151
  self.packages = value
147
152
  end
148
153
  end
154
+
155
+ if attributes.key?(:'sha256')
156
+ self.sha256 = attributes[:'sha256']
157
+ end
149
158
  end
150
159
 
151
160
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -200,6 +209,10 @@ module PulpRpmClient
200
209
  invalid_properties.push('invalid value for "dependencies", dependencies cannot be nil.')
201
210
  end
202
211
 
212
+ if !@sha256.nil? && @sha256.to_s.length < 1
213
+ invalid_properties.push('invalid value for "sha256", the character length must be great than or equal to 1.')
214
+ end
215
+
203
216
  invalid_properties
204
217
  end
205
218
 
@@ -218,6 +231,7 @@ module PulpRpmClient
218
231
  return false if @arch.to_s.length < 1
219
232
  return false if @artifacts.nil?
220
233
  return false if @dependencies.nil?
234
+ return false if !@sha256.nil? && @sha256.to_s.length < 1
221
235
  true
222
236
  end
223
237
 
@@ -291,6 +305,16 @@ module PulpRpmClient
291
305
  @arch = arch
292
306
  end
293
307
 
308
+ # Custom attribute writer method with validation
309
+ # @param [Object] sha256 Value to be assigned
310
+ def sha256=(sha256)
311
+ if !sha256.nil? && sha256.to_s.length < 1
312
+ fail ArgumentError, 'invalid value for "sha256", the character length must be great than or equal to 1.'
313
+ end
314
+
315
+ @sha256 = sha256
316
+ end
317
+
294
318
  # Checks equality by comparing each attribute.
295
319
  # @param [Object] Object to be compared
296
320
  def ==(o)
@@ -306,7 +330,8 @@ module PulpRpmClient
306
330
  arch == o.arch &&
307
331
  artifacts == o.artifacts &&
308
332
  dependencies == o.dependencies &&
309
- packages == o.packages
333
+ packages == o.packages &&
334
+ sha256 == o.sha256
310
335
  end
311
336
 
312
337
  # @see the `==` method
@@ -318,7 +343,7 @@ module PulpRpmClient
318
343
  # Calculates hash code according to all attributes.
319
344
  # @return [Integer] Hash code
320
345
  def hash
321
- [pulp_href, pulp_created, artifact, name, stream, version, context, arch, artifacts, dependencies, packages].hash
346
+ [pulp_href, pulp_created, artifact, name, stream, version, context, arch, artifacts, dependencies, packages, sha256].hash
322
347
  end
323
348
 
324
349
  # 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.2.2
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
@@ -31,6 +31,9 @@ module PulpRpmClient
31
31
  # Default profiles for modulemd streams.
32
32
  attr_accessor :profiles
33
33
 
34
+ # The SHA-256 checksum if available.
35
+ attr_accessor :sha256
36
+
34
37
  # Attribute mapping from ruby-style variable name to JSON key.
35
38
  def self.attribute_map
36
39
  {
@@ -39,7 +42,8 @@ module PulpRpmClient
39
42
  :'artifact' => :'artifact',
40
43
  :'_module' => :'module',
41
44
  :'stream' => :'stream',
42
- :'profiles' => :'profiles'
45
+ :'profiles' => :'profiles',
46
+ :'sha256' => :'sha256'
43
47
  }
44
48
  end
45
49
 
@@ -51,7 +55,8 @@ module PulpRpmClient
51
55
  :'artifact' => :'String',
52
56
  :'_module' => :'String',
53
57
  :'stream' => :'String',
54
- :'profiles' => :'Object'
58
+ :'profiles' => :'Object',
59
+ :'sha256' => :'String'
55
60
  }
56
61
  end
57
62
 
@@ -99,6 +104,10 @@ module PulpRpmClient
99
104
  if attributes.key?(:'profiles')
100
105
  self.profiles = attributes[:'profiles']
101
106
  end
107
+
108
+ if attributes.key?(:'sha256')
109
+ self.sha256 = attributes[:'sha256']
110
+ end
102
111
  end
103
112
 
104
113
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -125,6 +134,10 @@ module PulpRpmClient
125
134
  invalid_properties.push('invalid value for "profiles", profiles cannot be nil.')
126
135
  end
127
136
 
137
+ if !@sha256.nil? && @sha256.to_s.length < 1
138
+ invalid_properties.push('invalid value for "sha256", the character length must be great than or equal to 1.')
139
+ end
140
+
128
141
  invalid_properties
129
142
  end
130
143
 
@@ -136,6 +149,7 @@ module PulpRpmClient
136
149
  return false if @stream.nil?
137
150
  return false if @stream.to_s.length < 1
138
151
  return false if @profiles.nil?
152
+ return false if !@sha256.nil? && @sha256.to_s.length < 1
139
153
  true
140
154
  end
141
155
 
@@ -167,6 +181,16 @@ module PulpRpmClient
167
181
  @stream = stream
168
182
  end
169
183
 
184
+ # Custom attribute writer method with validation
185
+ # @param [Object] sha256 Value to be assigned
186
+ def sha256=(sha256)
187
+ if !sha256.nil? && sha256.to_s.length < 1
188
+ fail ArgumentError, 'invalid value for "sha256", the character length must be great than or equal to 1.'
189
+ end
190
+
191
+ @sha256 = sha256
192
+ end
193
+
170
194
  # Checks equality by comparing each attribute.
171
195
  # @param [Object] Object to be compared
172
196
  def ==(o)
@@ -177,7 +201,8 @@ module PulpRpmClient
177
201
  artifact == o.artifact &&
178
202
  _module == o._module &&
179
203
  stream == o.stream &&
180
- profiles == o.profiles
204
+ profiles == o.profiles &&
205
+ sha256 == o.sha256
181
206
  end
182
207
 
183
208
  # @see the `==` method
@@ -189,7 +214,7 @@ module PulpRpmClient
189
214
  # Calculates hash code according to all attributes.
190
215
  # @return [Integer] Hash code
191
216
  def hash
192
- [pulp_href, pulp_created, artifact, _module, stream, profiles].hash
217
+ [pulp_href, pulp_created, artifact, _module, stream, profiles, sha256].hash
193
218
  end
194
219
 
195
220
  # 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.2.2
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
@@ -79,6 +79,9 @@ module PulpRpmClient
79
79
  # Capabilities the package recommends
80
80
  attr_accessor :recommends
81
81
 
82
+ # The SHA-256 checksum if available.
83
+ attr_accessor :sha256
84
+
82
85
  # Capabilities the package supplements
83
86
  attr_accessor :supplements
84
87
 
@@ -155,6 +158,7 @@ module PulpRpmClient
155
158
  :'suggests' => :'suggests',
156
159
  :'enhances' => :'enhances',
157
160
  :'recommends' => :'recommends',
161
+ :'sha256' => :'sha256',
158
162
  :'supplements' => :'supplements',
159
163
  :'location_base' => :'location_base',
160
164
  :'location_href' => :'location_href',
@@ -200,6 +204,7 @@ module PulpRpmClient
200
204
  :'suggests' => :'Object',
201
205
  :'enhances' => :'Object',
202
206
  :'recommends' => :'Object',
207
+ :'sha256' => :'String',
203
208
  :'supplements' => :'Object',
204
209
  :'location_base' => :'String',
205
210
  :'location_href' => :'String',
@@ -329,6 +334,10 @@ module PulpRpmClient
329
334
  self.recommends = attributes[:'recommends']
330
335
  end
331
336
 
337
+ if attributes.key?(:'sha256')
338
+ self.sha256 = attributes[:'sha256']
339
+ end
340
+
332
341
  if attributes.key?(:'supplements')
333
342
  self.supplements = attributes[:'supplements']
334
343
  end
@@ -426,6 +435,10 @@ module PulpRpmClient
426
435
  invalid_properties.push('invalid value for "checksum_type", the character length must be great than or equal to 1.')
427
436
  end
428
437
 
438
+ if !@sha256.nil? && @sha256.to_s.length < 1
439
+ invalid_properties.push('invalid value for "sha256", the character length must be great than or equal to 1.')
440
+ end
441
+
429
442
  if !@location_href.nil? && @location_href.to_s.length < 1
430
443
  invalid_properties.push('invalid value for "location_href", the character length must be great than or equal to 1.')
431
444
  end
@@ -442,6 +455,7 @@ module PulpRpmClient
442
455
  return false if !@arch.nil? && @arch.to_s.length < 1
443
456
  return false if !@pkg_id.nil? && @pkg_id.to_s.length < 1
444
457
  return false if !@checksum_type.nil? && @checksum_type.to_s.length < 1
458
+ return false if !@sha256.nil? && @sha256.to_s.length < 1
445
459
  return false if !@location_href.nil? && @location_href.to_s.length < 1
446
460
  true
447
461
  end
@@ -506,6 +520,16 @@ module PulpRpmClient
506
520
  @checksum_type = checksum_type
507
521
  end
508
522
 
523
+ # Custom attribute writer method with validation
524
+ # @param [Object] sha256 Value to be assigned
525
+ def sha256=(sha256)
526
+ if !sha256.nil? && sha256.to_s.length < 1
527
+ fail ArgumentError, 'invalid value for "sha256", the character length must be great than or equal to 1.'
528
+ end
529
+
530
+ @sha256 = sha256
531
+ end
532
+
509
533
  # Custom attribute writer method with validation
510
534
  # @param [Object] location_href Value to be assigned
511
535
  def location_href=(location_href)
@@ -543,6 +567,7 @@ module PulpRpmClient
543
567
  suggests == o.suggests &&
544
568
  enhances == o.enhances &&
545
569
  recommends == o.recommends &&
570
+ sha256 == o.sha256 &&
546
571
  supplements == o.supplements &&
547
572
  location_base == o.location_base &&
548
573
  location_href == o.location_href &&
@@ -571,7 +596,7 @@ module PulpRpmClient
571
596
  # Calculates hash code according to all attributes.
572
597
  # @return [Integer] Hash code
573
598
  def hash
574
- [pulp_href, pulp_created, artifact, 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
599
+ [pulp_href, pulp_created, artifact, name, epoch, version, release, arch, pkg_id, checksum_type, summary, description, url, changelogs, files, requires, provides, conflicts, obsoletes, suggests, enhances, recommends, sha256, 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
575
600
  end
576
601
 
577
602
  # Builds the object from hash