pulp_deb_client 2.0.0b2 → 2.0.0b3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +32 -18
- data/docs/ContentGenericContentsApi.md +12 -4
- data/docs/ContentInstallerFileIndexApi.md +20 -8
- data/docs/ContentInstallerPackagesApi.md +42 -4
- data/docs/ContentPackageIndexApi.md +20 -8
- data/docs/ContentPackagesApi.md +46 -6
- data/docs/{ContentReleasesApi.md → ContentReleaseFilesApi.md} +44 -32
- data/docs/ContentSummary.md +21 -0
- data/docs/{InstallerPackage.md → DebBasePackage.md} +40 -46
- data/docs/{DebDistribution.md → DebDebDistribution.md} +6 -6
- data/docs/{DebPublication.md → DebDebPublication.md} +5 -7
- data/docs/{DebRemote.md → DebDebRemote.md} +15 -21
- data/docs/DebDebRepository.md +27 -0
- data/docs/{GenericContent.md → DebGenericContent.md} +11 -17
- data/docs/{InstallerFileIndex.md → DebInstallerFileIndex.md} +5 -7
- data/docs/{PackageIndex.md → DebPackageIndex.md} +5 -7
- data/docs/{Release.md → DebReleaseFile.md} +5 -7
- data/docs/{VerbatimPublication.md → DebVerbatimPublication.md} +5 -7
- data/docs/DistributionsAptApi.md +16 -12
- data/docs/InlineResponse200.md +1 -1
- data/docs/InlineResponse2001.md +1 -1
- data/docs/InlineResponse20010.md +23 -0
- 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/InlineResponse2009.md +1 -1
- data/docs/PublicationsAptApi.md +12 -8
- data/docs/PublicationsVerbatimApi.md +12 -8
- data/docs/RemotesAptApi.md +30 -81
- data/docs/RepositoriesAptApi.md +465 -0
- data/docs/RepositoriesDebVersionsApi.md +214 -0
- data/docs/RepositoryAddRemoveContent.md +21 -0
- data/docs/RepositorySyncURL.md +2 -2
- data/docs/RepositoryVersion.md +25 -0
- data/lib/pulp_deb_client/api/content_generic_contents_api.rb +16 -4
- data/lib/pulp_deb_client/api/content_installer_file_index_api.rb +27 -9
- data/lib/pulp_deb_client/api/content_installer_packages_api.rb +61 -4
- data/lib/pulp_deb_client/api/content_package_index_api.rb +27 -9
- data/lib/pulp_deb_client/api/content_packages_api.rb +67 -7
- data/lib/pulp_deb_client/api/{content_releases_api.rb → content_release_files_api.rb} +61 -43
- data/lib/pulp_deb_client/api/distributions_apt_api.rb +19 -13
- data/lib/pulp_deb_client/api/publications_apt_api.rb +15 -9
- data/lib/pulp_deb_client/api/publications_verbatim_api.rb +15 -9
- data/lib/pulp_deb_client/api/remotes_apt_api.rb +40 -102
- data/lib/pulp_deb_client/api/repositories_apt_api.rb +568 -0
- data/lib/pulp_deb_client/api/repositories_deb_versions_api.rb +268 -0
- data/lib/pulp_deb_client/api_client.rb +1 -1
- data/lib/pulp_deb_client/api_error.rb +1 -1
- data/lib/pulp_deb_client/configuration.rb +1 -1
- data/lib/pulp_deb_client/models/async_operation_response.rb +12 -2
- data/lib/pulp_deb_client/models/content_summary.rb +246 -0
- data/lib/pulp_deb_client/models/{package.rb → deb_base_package.rb} +28 -62
- data/lib/pulp_deb_client/models/{deb_distribution.rb → deb_deb_distribution.rb} +30 -36
- data/lib/pulp_deb_client/models/{deb_publication.rb → deb_deb_publication.rb} +29 -42
- data/lib/pulp_deb_client/models/{deb_remote.rb → deb_deb_remote.rb} +87 -147
- data/lib/pulp_deb_client/models/deb_deb_repository.rb +294 -0
- data/lib/pulp_deb_client/models/{generic_content.rb → deb_generic_content.rb} +28 -62
- data/lib/pulp_deb_client/models/{installer_file_index.rb → deb_installer_file_index.rb} +28 -42
- data/lib/pulp_deb_client/models/{package_index.rb → deb_package_index.rb} +28 -42
- data/lib/pulp_deb_client/models/{release.rb → deb_release_file.rb} +28 -42
- data/lib/pulp_deb_client/models/{verbatim_publication.rb → deb_verbatim_publication.rb} +29 -42
- data/lib/pulp_deb_client/models/inline_response200.rb +15 -3
- data/lib/pulp_deb_client/models/inline_response2001.rb +15 -3
- data/lib/pulp_deb_client/models/inline_response20010.rb +247 -0
- data/lib/pulp_deb_client/models/inline_response2002.rb +15 -3
- data/lib/pulp_deb_client/models/inline_response2003.rb +15 -3
- data/lib/pulp_deb_client/models/inline_response2004.rb +15 -3
- data/lib/pulp_deb_client/models/inline_response2005.rb +15 -3
- data/lib/pulp_deb_client/models/inline_response2006.rb +15 -3
- data/lib/pulp_deb_client/models/inline_response2007.rb +15 -3
- data/lib/pulp_deb_client/models/inline_response2008.rb +15 -3
- data/lib/pulp_deb_client/models/inline_response2009.rb +15 -3
- data/lib/pulp_deb_client/models/repository_add_remove_content.rb +231 -0
- data/lib/pulp_deb_client/models/repository_sync_url.rb +22 -12
- data/lib/pulp_deb_client/models/repository_version.rb +244 -0
- data/lib/pulp_deb_client/version.rb +2 -2
- data/lib/pulp_deb_client.rb +18 -12
- data/pulp_deb_client.gemspec +1 -1
- data/spec/api/content_generic_contents_api_spec.rb +6 -2
- data/spec/api/content_installer_file_index_api_spec.rb +9 -3
- data/spec/api/content_installer_packages_api_spec.rb +21 -2
- data/spec/api/content_package_index_api_spec.rb +9 -3
- data/spec/api/content_packages_api_spec.rb +23 -3
- data/spec/api/{content_releases_api_spec.rb → content_release_files_api_spec.rb} +23 -17
- data/spec/api/distributions_apt_api_spec.rb +5 -3
- data/spec/api/publications_apt_api_spec.rb +5 -3
- data/spec/api/publications_verbatim_api_spec.rb +5 -3
- data/spec/api/remotes_apt_api_spec.rb +12 -22
- data/spec/api/repositories_apt_api_spec.rb +141 -0
- data/spec/api/repositories_deb_versions_api_spec.rb +91 -0
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/async_operation_response_spec.rb +1 -1
- data/spec/models/content_summary_spec.rb +53 -0
- data/spec/models/{package_spec.rb → deb_base_package_spec.rb} +9 -27
- data/spec/models/{deb_distribution_spec.rb → deb_deb_distribution_spec.rb} +9 -9
- data/spec/models/{deb_publication_spec.rb → deb_deb_publication_spec.rb} +9 -15
- data/spec/models/{deb_remote_spec.rb → deb_deb_remote_spec.rb} +14 -32
- data/spec/models/{verbatim_publication_spec.rb → deb_deb_repository_spec.rb} +13 -13
- data/spec/models/{generic_content_spec.rb → deb_generic_content_spec.rb} +9 -27
- data/spec/models/{package_index_spec.rb → deb_installer_file_index_spec.rb} +9 -15
- data/spec/models/{installer_file_index_spec.rb → deb_package_index_spec.rb} +9 -15
- data/spec/models/{release_spec.rb → deb_release_file_spec.rb} +9 -15
- data/spec/models/deb_verbatim_publication_spec.rb +65 -0
- data/spec/models/inline_response20010_spec.rb +59 -0
- 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_response2009_spec.rb +1 -1
- data/spec/models/inline_response200_spec.rb +1 -1
- data/spec/models/repository_add_remove_content_spec.rb +53 -0
- data/spec/models/repository_sync_url_spec.rb +2 -2
- data/spec/models/repository_version_spec.rb +65 -0
- data/spec/spec_helper.rb +1 -1
- metadata +70 -46
- data/docs/Package.md +0 -99
- data/lib/pulp_deb_client/models/installer_package.rb +0 -1101
- data/spec/models/installer_package_spec.rb +0 -287
@@ -1,1101 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Pulp 3 API
|
3
|
-
|
4
|
-
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
-
|
6
|
-
The version of the OpenAPI document: v3
|
7
|
-
|
8
|
-
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.1.3-SNAPSHOT
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'date'
|
14
|
-
|
15
|
-
module PulpDebClient
|
16
|
-
class InstallerPackage
|
17
|
-
attr_accessor :_href
|
18
|
-
|
19
|
-
# Timestamp of creation.
|
20
|
-
attr_accessor :_created
|
21
|
-
|
22
|
-
attr_accessor :_type
|
23
|
-
|
24
|
-
# Artifact file representing the physical content
|
25
|
-
attr_accessor :artifact
|
26
|
-
|
27
|
-
# Path where the artifact is located relative to distributions base_path
|
28
|
-
attr_accessor :relative_path
|
29
|
-
|
30
|
-
# An uploaded file that should be turned into the artifact of the content unit.
|
31
|
-
attr_accessor :file
|
32
|
-
|
33
|
-
# A URI of a repository the new content unit should be associated with.
|
34
|
-
attr_accessor :repository
|
35
|
-
|
36
|
-
# The MD5 checksum if available.
|
37
|
-
attr_accessor :md5
|
38
|
-
|
39
|
-
# The SHA-1 checksum if available.
|
40
|
-
attr_accessor :sha1
|
41
|
-
|
42
|
-
# The SHA-224 checksum if available.
|
43
|
-
attr_accessor :sha224
|
44
|
-
|
45
|
-
# The SHA-256 checksum if available.
|
46
|
-
attr_accessor :sha256
|
47
|
-
|
48
|
-
# The SHA-384 checksum if available.
|
49
|
-
attr_accessor :sha384
|
50
|
-
|
51
|
-
# The SHA-512 checksum if available.
|
52
|
-
attr_accessor :sha512
|
53
|
-
|
54
|
-
attr_accessor :package
|
55
|
-
|
56
|
-
attr_accessor :source
|
57
|
-
|
58
|
-
attr_accessor :version
|
59
|
-
|
60
|
-
attr_accessor :architecture
|
61
|
-
|
62
|
-
attr_accessor :section
|
63
|
-
|
64
|
-
attr_accessor :priority
|
65
|
-
|
66
|
-
attr_accessor :origin
|
67
|
-
|
68
|
-
attr_accessor :tag
|
69
|
-
|
70
|
-
attr_accessor :bugs
|
71
|
-
|
72
|
-
attr_accessor :essential
|
73
|
-
|
74
|
-
attr_accessor :build_essential
|
75
|
-
|
76
|
-
attr_accessor :installed_size
|
77
|
-
|
78
|
-
attr_accessor :maintainer
|
79
|
-
|
80
|
-
attr_accessor :original_maintainer
|
81
|
-
|
82
|
-
attr_accessor :description
|
83
|
-
|
84
|
-
attr_accessor :description_md5
|
85
|
-
|
86
|
-
attr_accessor :homepage
|
87
|
-
|
88
|
-
attr_accessor :built_using
|
89
|
-
|
90
|
-
attr_accessor :auto_built_package
|
91
|
-
|
92
|
-
attr_accessor :multi_arch
|
93
|
-
|
94
|
-
attr_accessor :breaks
|
95
|
-
|
96
|
-
attr_accessor :conflicts
|
97
|
-
|
98
|
-
attr_accessor :depends
|
99
|
-
|
100
|
-
attr_accessor :recommends
|
101
|
-
|
102
|
-
attr_accessor :suggests
|
103
|
-
|
104
|
-
attr_accessor :enhances
|
105
|
-
|
106
|
-
attr_accessor :pre_depends
|
107
|
-
|
108
|
-
attr_accessor :provides
|
109
|
-
|
110
|
-
attr_accessor :replaces
|
111
|
-
|
112
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
113
|
-
def self.attribute_map
|
114
|
-
{
|
115
|
-
:'_href' => :'_href',
|
116
|
-
:'_created' => :'_created',
|
117
|
-
:'_type' => :'_type',
|
118
|
-
:'artifact' => :'artifact',
|
119
|
-
:'relative_path' => :'relative_path',
|
120
|
-
:'file' => :'file',
|
121
|
-
:'repository' => :'repository',
|
122
|
-
:'md5' => :'md5',
|
123
|
-
:'sha1' => :'sha1',
|
124
|
-
:'sha224' => :'sha224',
|
125
|
-
:'sha256' => :'sha256',
|
126
|
-
:'sha384' => :'sha384',
|
127
|
-
:'sha512' => :'sha512',
|
128
|
-
:'package' => :'package',
|
129
|
-
:'source' => :'source',
|
130
|
-
:'version' => :'version',
|
131
|
-
:'architecture' => :'architecture',
|
132
|
-
:'section' => :'section',
|
133
|
-
:'priority' => :'priority',
|
134
|
-
:'origin' => :'origin',
|
135
|
-
:'tag' => :'tag',
|
136
|
-
:'bugs' => :'bugs',
|
137
|
-
:'essential' => :'essential',
|
138
|
-
:'build_essential' => :'build_essential',
|
139
|
-
:'installed_size' => :'installed_size',
|
140
|
-
:'maintainer' => :'maintainer',
|
141
|
-
:'original_maintainer' => :'original_maintainer',
|
142
|
-
:'description' => :'description',
|
143
|
-
:'description_md5' => :'description_md5',
|
144
|
-
:'homepage' => :'homepage',
|
145
|
-
:'built_using' => :'built_using',
|
146
|
-
:'auto_built_package' => :'auto_built_package',
|
147
|
-
:'multi_arch' => :'multi_arch',
|
148
|
-
:'breaks' => :'breaks',
|
149
|
-
:'conflicts' => :'conflicts',
|
150
|
-
:'depends' => :'depends',
|
151
|
-
:'recommends' => :'recommends',
|
152
|
-
:'suggests' => :'suggests',
|
153
|
-
:'enhances' => :'enhances',
|
154
|
-
:'pre_depends' => :'pre_depends',
|
155
|
-
:'provides' => :'provides',
|
156
|
-
:'replaces' => :'replaces'
|
157
|
-
}
|
158
|
-
end
|
159
|
-
|
160
|
-
# Attribute type mapping.
|
161
|
-
def self.openapi_types
|
162
|
-
{
|
163
|
-
:'_href' => :'String',
|
164
|
-
:'_created' => :'DateTime',
|
165
|
-
:'_type' => :'String',
|
166
|
-
:'artifact' => :'String',
|
167
|
-
:'relative_path' => :'String',
|
168
|
-
:'file' => :'String',
|
169
|
-
:'repository' => :'String',
|
170
|
-
:'md5' => :'String',
|
171
|
-
:'sha1' => :'String',
|
172
|
-
:'sha224' => :'String',
|
173
|
-
:'sha256' => :'String',
|
174
|
-
:'sha384' => :'String',
|
175
|
-
:'sha512' => :'String',
|
176
|
-
:'package' => :'String',
|
177
|
-
:'source' => :'String',
|
178
|
-
:'version' => :'String',
|
179
|
-
:'architecture' => :'String',
|
180
|
-
:'section' => :'String',
|
181
|
-
:'priority' => :'String',
|
182
|
-
:'origin' => :'String',
|
183
|
-
:'tag' => :'String',
|
184
|
-
:'bugs' => :'String',
|
185
|
-
:'essential' => :'String',
|
186
|
-
:'build_essential' => :'String',
|
187
|
-
:'installed_size' => :'String',
|
188
|
-
:'maintainer' => :'String',
|
189
|
-
:'original_maintainer' => :'String',
|
190
|
-
:'description' => :'String',
|
191
|
-
:'description_md5' => :'String',
|
192
|
-
:'homepage' => :'String',
|
193
|
-
:'built_using' => :'String',
|
194
|
-
:'auto_built_package' => :'String',
|
195
|
-
:'multi_arch' => :'String',
|
196
|
-
:'breaks' => :'String',
|
197
|
-
:'conflicts' => :'String',
|
198
|
-
:'depends' => :'String',
|
199
|
-
:'recommends' => :'String',
|
200
|
-
:'suggests' => :'String',
|
201
|
-
:'enhances' => :'String',
|
202
|
-
:'pre_depends' => :'String',
|
203
|
-
:'provides' => :'String',
|
204
|
-
:'replaces' => :'String'
|
205
|
-
}
|
206
|
-
end
|
207
|
-
|
208
|
-
# Initializes the object
|
209
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
210
|
-
def initialize(attributes = {})
|
211
|
-
if (!attributes.is_a?(Hash))
|
212
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpDebClient::InstallerPackage` initialize method"
|
213
|
-
end
|
214
|
-
|
215
|
-
# check to see if the attribute exists and convert string to symbol for hash key
|
216
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
217
|
-
if (!self.class.attribute_map.key?(k.to_sym))
|
218
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpDebClient::InstallerPackage`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
219
|
-
end
|
220
|
-
h[k.to_sym] = v
|
221
|
-
}
|
222
|
-
|
223
|
-
if attributes.key?(:'_href')
|
224
|
-
self._href = attributes[:'_href']
|
225
|
-
end
|
226
|
-
|
227
|
-
if attributes.key?(:'_created')
|
228
|
-
self._created = attributes[:'_created']
|
229
|
-
end
|
230
|
-
|
231
|
-
if attributes.key?(:'_type')
|
232
|
-
self._type = attributes[:'_type']
|
233
|
-
end
|
234
|
-
|
235
|
-
if attributes.key?(:'artifact')
|
236
|
-
self.artifact = attributes[:'artifact']
|
237
|
-
end
|
238
|
-
|
239
|
-
if attributes.key?(:'relative_path')
|
240
|
-
self.relative_path = attributes[:'relative_path']
|
241
|
-
end
|
242
|
-
|
243
|
-
if attributes.key?(:'file')
|
244
|
-
self.file = attributes[:'file']
|
245
|
-
end
|
246
|
-
|
247
|
-
if attributes.key?(:'repository')
|
248
|
-
self.repository = attributes[:'repository']
|
249
|
-
end
|
250
|
-
|
251
|
-
if attributes.key?(:'md5')
|
252
|
-
self.md5 = attributes[:'md5']
|
253
|
-
end
|
254
|
-
|
255
|
-
if attributes.key?(:'sha1')
|
256
|
-
self.sha1 = attributes[:'sha1']
|
257
|
-
end
|
258
|
-
|
259
|
-
if attributes.key?(:'sha224')
|
260
|
-
self.sha224 = attributes[:'sha224']
|
261
|
-
end
|
262
|
-
|
263
|
-
if attributes.key?(:'sha256')
|
264
|
-
self.sha256 = attributes[:'sha256']
|
265
|
-
end
|
266
|
-
|
267
|
-
if attributes.key?(:'sha384')
|
268
|
-
self.sha384 = attributes[:'sha384']
|
269
|
-
end
|
270
|
-
|
271
|
-
if attributes.key?(:'sha512')
|
272
|
-
self.sha512 = attributes[:'sha512']
|
273
|
-
end
|
274
|
-
|
275
|
-
if attributes.key?(:'package')
|
276
|
-
self.package = attributes[:'package']
|
277
|
-
end
|
278
|
-
|
279
|
-
if attributes.key?(:'source')
|
280
|
-
self.source = attributes[:'source']
|
281
|
-
end
|
282
|
-
|
283
|
-
if attributes.key?(:'version')
|
284
|
-
self.version = attributes[:'version']
|
285
|
-
end
|
286
|
-
|
287
|
-
if attributes.key?(:'architecture')
|
288
|
-
self.architecture = attributes[:'architecture']
|
289
|
-
end
|
290
|
-
|
291
|
-
if attributes.key?(:'section')
|
292
|
-
self.section = attributes[:'section']
|
293
|
-
end
|
294
|
-
|
295
|
-
if attributes.key?(:'priority')
|
296
|
-
self.priority = attributes[:'priority']
|
297
|
-
end
|
298
|
-
|
299
|
-
if attributes.key?(:'origin')
|
300
|
-
self.origin = attributes[:'origin']
|
301
|
-
end
|
302
|
-
|
303
|
-
if attributes.key?(:'tag')
|
304
|
-
self.tag = attributes[:'tag']
|
305
|
-
end
|
306
|
-
|
307
|
-
if attributes.key?(:'bugs')
|
308
|
-
self.bugs = attributes[:'bugs']
|
309
|
-
end
|
310
|
-
|
311
|
-
if attributes.key?(:'essential')
|
312
|
-
self.essential = attributes[:'essential']
|
313
|
-
end
|
314
|
-
|
315
|
-
if attributes.key?(:'build_essential')
|
316
|
-
self.build_essential = attributes[:'build_essential']
|
317
|
-
end
|
318
|
-
|
319
|
-
if attributes.key?(:'installed_size')
|
320
|
-
self.installed_size = attributes[:'installed_size']
|
321
|
-
end
|
322
|
-
|
323
|
-
if attributes.key?(:'maintainer')
|
324
|
-
self.maintainer = attributes[:'maintainer']
|
325
|
-
end
|
326
|
-
|
327
|
-
if attributes.key?(:'original_maintainer')
|
328
|
-
self.original_maintainer = attributes[:'original_maintainer']
|
329
|
-
end
|
330
|
-
|
331
|
-
if attributes.key?(:'description')
|
332
|
-
self.description = attributes[:'description']
|
333
|
-
end
|
334
|
-
|
335
|
-
if attributes.key?(:'description_md5')
|
336
|
-
self.description_md5 = attributes[:'description_md5']
|
337
|
-
end
|
338
|
-
|
339
|
-
if attributes.key?(:'homepage')
|
340
|
-
self.homepage = attributes[:'homepage']
|
341
|
-
end
|
342
|
-
|
343
|
-
if attributes.key?(:'built_using')
|
344
|
-
self.built_using = attributes[:'built_using']
|
345
|
-
end
|
346
|
-
|
347
|
-
if attributes.key?(:'auto_built_package')
|
348
|
-
self.auto_built_package = attributes[:'auto_built_package']
|
349
|
-
end
|
350
|
-
|
351
|
-
if attributes.key?(:'multi_arch')
|
352
|
-
self.multi_arch = attributes[:'multi_arch']
|
353
|
-
end
|
354
|
-
|
355
|
-
if attributes.key?(:'breaks')
|
356
|
-
self.breaks = attributes[:'breaks']
|
357
|
-
end
|
358
|
-
|
359
|
-
if attributes.key?(:'conflicts')
|
360
|
-
self.conflicts = attributes[:'conflicts']
|
361
|
-
end
|
362
|
-
|
363
|
-
if attributes.key?(:'depends')
|
364
|
-
self.depends = attributes[:'depends']
|
365
|
-
end
|
366
|
-
|
367
|
-
if attributes.key?(:'recommends')
|
368
|
-
self.recommends = attributes[:'recommends']
|
369
|
-
end
|
370
|
-
|
371
|
-
if attributes.key?(:'suggests')
|
372
|
-
self.suggests = attributes[:'suggests']
|
373
|
-
end
|
374
|
-
|
375
|
-
if attributes.key?(:'enhances')
|
376
|
-
self.enhances = attributes[:'enhances']
|
377
|
-
end
|
378
|
-
|
379
|
-
if attributes.key?(:'pre_depends')
|
380
|
-
self.pre_depends = attributes[:'pre_depends']
|
381
|
-
end
|
382
|
-
|
383
|
-
if attributes.key?(:'provides')
|
384
|
-
self.provides = attributes[:'provides']
|
385
|
-
end
|
386
|
-
|
387
|
-
if attributes.key?(:'replaces')
|
388
|
-
self.replaces = attributes[:'replaces']
|
389
|
-
end
|
390
|
-
end
|
391
|
-
|
392
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
393
|
-
# @return Array for valid properties with the reasons
|
394
|
-
def list_invalid_properties
|
395
|
-
invalid_properties = Array.new
|
396
|
-
if !@_type.nil? && @_type.to_s.length < 1
|
397
|
-
invalid_properties.push('invalid value for "_type", the character length must be great than or equal to 1.')
|
398
|
-
end
|
399
|
-
|
400
|
-
if !@relative_path.nil? && @relative_path.to_s.length < 1
|
401
|
-
invalid_properties.push('invalid value for "relative_path", the character length must be great than or equal to 1.')
|
402
|
-
end
|
403
|
-
|
404
|
-
if !@md5.nil? && @md5.to_s.length < 1
|
405
|
-
invalid_properties.push('invalid value for "md5", the character length must be great than or equal to 1.')
|
406
|
-
end
|
407
|
-
|
408
|
-
if !@sha1.nil? && @sha1.to_s.length < 1
|
409
|
-
invalid_properties.push('invalid value for "sha1", the character length must be great than or equal to 1.')
|
410
|
-
end
|
411
|
-
|
412
|
-
if !@sha224.nil? && @sha224.to_s.length < 1
|
413
|
-
invalid_properties.push('invalid value for "sha224", the character length must be great than or equal to 1.')
|
414
|
-
end
|
415
|
-
|
416
|
-
if !@sha256.nil? && @sha256.to_s.length < 1
|
417
|
-
invalid_properties.push('invalid value for "sha256", the character length must be great than or equal to 1.')
|
418
|
-
end
|
419
|
-
|
420
|
-
if !@sha384.nil? && @sha384.to_s.length < 1
|
421
|
-
invalid_properties.push('invalid value for "sha384", the character length must be great than or equal to 1.')
|
422
|
-
end
|
423
|
-
|
424
|
-
if !@sha512.nil? && @sha512.to_s.length < 1
|
425
|
-
invalid_properties.push('invalid value for "sha512", the character length must be great than or equal to 1.')
|
426
|
-
end
|
427
|
-
|
428
|
-
if !@package.nil? && @package.to_s.length < 1
|
429
|
-
invalid_properties.push('invalid value for "package", the character length must be great than or equal to 1.')
|
430
|
-
end
|
431
|
-
|
432
|
-
if !@source.nil? && @source.to_s.length < 1
|
433
|
-
invalid_properties.push('invalid value for "source", the character length must be great than or equal to 1.')
|
434
|
-
end
|
435
|
-
|
436
|
-
if !@version.nil? && @version.to_s.length < 1
|
437
|
-
invalid_properties.push('invalid value for "version", the character length must be great than or equal to 1.')
|
438
|
-
end
|
439
|
-
|
440
|
-
if !@architecture.nil? && @architecture.to_s.length < 1
|
441
|
-
invalid_properties.push('invalid value for "architecture", the character length must be great than or equal to 1.')
|
442
|
-
end
|
443
|
-
|
444
|
-
if !@section.nil? && @section.to_s.length < 1
|
445
|
-
invalid_properties.push('invalid value for "section", the character length must be great than or equal to 1.')
|
446
|
-
end
|
447
|
-
|
448
|
-
if !@priority.nil? && @priority.to_s.length < 1
|
449
|
-
invalid_properties.push('invalid value for "priority", the character length must be great than or equal to 1.')
|
450
|
-
end
|
451
|
-
|
452
|
-
if !@origin.nil? && @origin.to_s.length < 1
|
453
|
-
invalid_properties.push('invalid value for "origin", the character length must be great than or equal to 1.')
|
454
|
-
end
|
455
|
-
|
456
|
-
if !@tag.nil? && @tag.to_s.length < 1
|
457
|
-
invalid_properties.push('invalid value for "tag", the character length must be great than or equal to 1.')
|
458
|
-
end
|
459
|
-
|
460
|
-
if !@bugs.nil? && @bugs.to_s.length < 1
|
461
|
-
invalid_properties.push('invalid value for "bugs", the character length must be great than or equal to 1.')
|
462
|
-
end
|
463
|
-
|
464
|
-
if !@installed_size.nil? && @installed_size.to_s.length < 1
|
465
|
-
invalid_properties.push('invalid value for "installed_size", the character length must be great than or equal to 1.')
|
466
|
-
end
|
467
|
-
|
468
|
-
if !@maintainer.nil? && @maintainer.to_s.length < 1
|
469
|
-
invalid_properties.push('invalid value for "maintainer", the character length must be great than or equal to 1.')
|
470
|
-
end
|
471
|
-
|
472
|
-
if !@original_maintainer.nil? && @original_maintainer.to_s.length < 1
|
473
|
-
invalid_properties.push('invalid value for "original_maintainer", the character length must be great than or equal to 1.')
|
474
|
-
end
|
475
|
-
|
476
|
-
if !@description.nil? && @description.to_s.length < 1
|
477
|
-
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
478
|
-
end
|
479
|
-
|
480
|
-
if !@description_md5.nil? && @description_md5.to_s.length < 1
|
481
|
-
invalid_properties.push('invalid value for "description_md5", the character length must be great than or equal to 1.')
|
482
|
-
end
|
483
|
-
|
484
|
-
if !@homepage.nil? && @homepage.to_s.length < 1
|
485
|
-
invalid_properties.push('invalid value for "homepage", the character length must be great than or equal to 1.')
|
486
|
-
end
|
487
|
-
|
488
|
-
if !@built_using.nil? && @built_using.to_s.length < 1
|
489
|
-
invalid_properties.push('invalid value for "built_using", the character length must be great than or equal to 1.')
|
490
|
-
end
|
491
|
-
|
492
|
-
if !@auto_built_package.nil? && @auto_built_package.to_s.length < 1
|
493
|
-
invalid_properties.push('invalid value for "auto_built_package", the character length must be great than or equal to 1.')
|
494
|
-
end
|
495
|
-
|
496
|
-
if !@multi_arch.nil? && @multi_arch.to_s.length < 1
|
497
|
-
invalid_properties.push('invalid value for "multi_arch", the character length must be great than or equal to 1.')
|
498
|
-
end
|
499
|
-
|
500
|
-
if !@breaks.nil? && @breaks.to_s.length < 1
|
501
|
-
invalid_properties.push('invalid value for "breaks", the character length must be great than or equal to 1.')
|
502
|
-
end
|
503
|
-
|
504
|
-
if !@conflicts.nil? && @conflicts.to_s.length < 1
|
505
|
-
invalid_properties.push('invalid value for "conflicts", the character length must be great than or equal to 1.')
|
506
|
-
end
|
507
|
-
|
508
|
-
if !@depends.nil? && @depends.to_s.length < 1
|
509
|
-
invalid_properties.push('invalid value for "depends", the character length must be great than or equal to 1.')
|
510
|
-
end
|
511
|
-
|
512
|
-
if !@recommends.nil? && @recommends.to_s.length < 1
|
513
|
-
invalid_properties.push('invalid value for "recommends", the character length must be great than or equal to 1.')
|
514
|
-
end
|
515
|
-
|
516
|
-
if !@suggests.nil? && @suggests.to_s.length < 1
|
517
|
-
invalid_properties.push('invalid value for "suggests", the character length must be great than or equal to 1.')
|
518
|
-
end
|
519
|
-
|
520
|
-
if !@enhances.nil? && @enhances.to_s.length < 1
|
521
|
-
invalid_properties.push('invalid value for "enhances", the character length must be great than or equal to 1.')
|
522
|
-
end
|
523
|
-
|
524
|
-
if !@pre_depends.nil? && @pre_depends.to_s.length < 1
|
525
|
-
invalid_properties.push('invalid value for "pre_depends", the character length must be great than or equal to 1.')
|
526
|
-
end
|
527
|
-
|
528
|
-
if !@provides.nil? && @provides.to_s.length < 1
|
529
|
-
invalid_properties.push('invalid value for "provides", the character length must be great than or equal to 1.')
|
530
|
-
end
|
531
|
-
|
532
|
-
if !@replaces.nil? && @replaces.to_s.length < 1
|
533
|
-
invalid_properties.push('invalid value for "replaces", the character length must be great than or equal to 1.')
|
534
|
-
end
|
535
|
-
|
536
|
-
invalid_properties
|
537
|
-
end
|
538
|
-
|
539
|
-
# Check to see if the all the properties in the model are valid
|
540
|
-
# @return true if the model is valid
|
541
|
-
def valid?
|
542
|
-
return false if !@_type.nil? && @_type.to_s.length < 1
|
543
|
-
return false if !@relative_path.nil? && @relative_path.to_s.length < 1
|
544
|
-
return false if !@md5.nil? && @md5.to_s.length < 1
|
545
|
-
return false if !@sha1.nil? && @sha1.to_s.length < 1
|
546
|
-
return false if !@sha224.nil? && @sha224.to_s.length < 1
|
547
|
-
return false if !@sha256.nil? && @sha256.to_s.length < 1
|
548
|
-
return false if !@sha384.nil? && @sha384.to_s.length < 1
|
549
|
-
return false if !@sha512.nil? && @sha512.to_s.length < 1
|
550
|
-
return false if !@package.nil? && @package.to_s.length < 1
|
551
|
-
return false if !@source.nil? && @source.to_s.length < 1
|
552
|
-
return false if !@version.nil? && @version.to_s.length < 1
|
553
|
-
return false if !@architecture.nil? && @architecture.to_s.length < 1
|
554
|
-
return false if !@section.nil? && @section.to_s.length < 1
|
555
|
-
return false if !@priority.nil? && @priority.to_s.length < 1
|
556
|
-
return false if !@origin.nil? && @origin.to_s.length < 1
|
557
|
-
return false if !@tag.nil? && @tag.to_s.length < 1
|
558
|
-
return false if !@bugs.nil? && @bugs.to_s.length < 1
|
559
|
-
return false if !@installed_size.nil? && @installed_size.to_s.length < 1
|
560
|
-
return false if !@maintainer.nil? && @maintainer.to_s.length < 1
|
561
|
-
return false if !@original_maintainer.nil? && @original_maintainer.to_s.length < 1
|
562
|
-
return false if !@description.nil? && @description.to_s.length < 1
|
563
|
-
return false if !@description_md5.nil? && @description_md5.to_s.length < 1
|
564
|
-
return false if !@homepage.nil? && @homepage.to_s.length < 1
|
565
|
-
return false if !@built_using.nil? && @built_using.to_s.length < 1
|
566
|
-
return false if !@auto_built_package.nil? && @auto_built_package.to_s.length < 1
|
567
|
-
return false if !@multi_arch.nil? && @multi_arch.to_s.length < 1
|
568
|
-
return false if !@breaks.nil? && @breaks.to_s.length < 1
|
569
|
-
return false if !@conflicts.nil? && @conflicts.to_s.length < 1
|
570
|
-
return false if !@depends.nil? && @depends.to_s.length < 1
|
571
|
-
return false if !@recommends.nil? && @recommends.to_s.length < 1
|
572
|
-
return false if !@suggests.nil? && @suggests.to_s.length < 1
|
573
|
-
return false if !@enhances.nil? && @enhances.to_s.length < 1
|
574
|
-
return false if !@pre_depends.nil? && @pre_depends.to_s.length < 1
|
575
|
-
return false if !@provides.nil? && @provides.to_s.length < 1
|
576
|
-
return false if !@replaces.nil? && @replaces.to_s.length < 1
|
577
|
-
true
|
578
|
-
end
|
579
|
-
|
580
|
-
# Custom attribute writer method with validation
|
581
|
-
# @param [Object] _type Value to be assigned
|
582
|
-
def _type=(_type)
|
583
|
-
if !_type.nil? && _type.to_s.length < 1
|
584
|
-
fail ArgumentError, 'invalid value for "_type", the character length must be great than or equal to 1.'
|
585
|
-
end
|
586
|
-
|
587
|
-
@_type = _type
|
588
|
-
end
|
589
|
-
|
590
|
-
# Custom attribute writer method with validation
|
591
|
-
# @param [Object] relative_path Value to be assigned
|
592
|
-
def relative_path=(relative_path)
|
593
|
-
if !relative_path.nil? && relative_path.to_s.length < 1
|
594
|
-
fail ArgumentError, 'invalid value for "relative_path", the character length must be great than or equal to 1.'
|
595
|
-
end
|
596
|
-
|
597
|
-
@relative_path = relative_path
|
598
|
-
end
|
599
|
-
|
600
|
-
# Custom attribute writer method with validation
|
601
|
-
# @param [Object] md5 Value to be assigned
|
602
|
-
def md5=(md5)
|
603
|
-
if !md5.nil? && md5.to_s.length < 1
|
604
|
-
fail ArgumentError, 'invalid value for "md5", the character length must be great than or equal to 1.'
|
605
|
-
end
|
606
|
-
|
607
|
-
@md5 = md5
|
608
|
-
end
|
609
|
-
|
610
|
-
# Custom attribute writer method with validation
|
611
|
-
# @param [Object] sha1 Value to be assigned
|
612
|
-
def sha1=(sha1)
|
613
|
-
if !sha1.nil? && sha1.to_s.length < 1
|
614
|
-
fail ArgumentError, 'invalid value for "sha1", the character length must be great than or equal to 1.'
|
615
|
-
end
|
616
|
-
|
617
|
-
@sha1 = sha1
|
618
|
-
end
|
619
|
-
|
620
|
-
# Custom attribute writer method with validation
|
621
|
-
# @param [Object] sha224 Value to be assigned
|
622
|
-
def sha224=(sha224)
|
623
|
-
if !sha224.nil? && sha224.to_s.length < 1
|
624
|
-
fail ArgumentError, 'invalid value for "sha224", the character length must be great than or equal to 1.'
|
625
|
-
end
|
626
|
-
|
627
|
-
@sha224 = sha224
|
628
|
-
end
|
629
|
-
|
630
|
-
# Custom attribute writer method with validation
|
631
|
-
# @param [Object] sha256 Value to be assigned
|
632
|
-
def sha256=(sha256)
|
633
|
-
if !sha256.nil? && sha256.to_s.length < 1
|
634
|
-
fail ArgumentError, 'invalid value for "sha256", the character length must be great than or equal to 1.'
|
635
|
-
end
|
636
|
-
|
637
|
-
@sha256 = sha256
|
638
|
-
end
|
639
|
-
|
640
|
-
# Custom attribute writer method with validation
|
641
|
-
# @param [Object] sha384 Value to be assigned
|
642
|
-
def sha384=(sha384)
|
643
|
-
if !sha384.nil? && sha384.to_s.length < 1
|
644
|
-
fail ArgumentError, 'invalid value for "sha384", the character length must be great than or equal to 1.'
|
645
|
-
end
|
646
|
-
|
647
|
-
@sha384 = sha384
|
648
|
-
end
|
649
|
-
|
650
|
-
# Custom attribute writer method with validation
|
651
|
-
# @param [Object] sha512 Value to be assigned
|
652
|
-
def sha512=(sha512)
|
653
|
-
if !sha512.nil? && sha512.to_s.length < 1
|
654
|
-
fail ArgumentError, 'invalid value for "sha512", the character length must be great than or equal to 1.'
|
655
|
-
end
|
656
|
-
|
657
|
-
@sha512 = sha512
|
658
|
-
end
|
659
|
-
|
660
|
-
# Custom attribute writer method with validation
|
661
|
-
# @param [Object] package Value to be assigned
|
662
|
-
def package=(package)
|
663
|
-
if !package.nil? && package.to_s.length < 1
|
664
|
-
fail ArgumentError, 'invalid value for "package", the character length must be great than or equal to 1.'
|
665
|
-
end
|
666
|
-
|
667
|
-
@package = package
|
668
|
-
end
|
669
|
-
|
670
|
-
# Custom attribute writer method with validation
|
671
|
-
# @param [Object] source Value to be assigned
|
672
|
-
def source=(source)
|
673
|
-
if !source.nil? && source.to_s.length < 1
|
674
|
-
fail ArgumentError, 'invalid value for "source", the character length must be great than or equal to 1.'
|
675
|
-
end
|
676
|
-
|
677
|
-
@source = source
|
678
|
-
end
|
679
|
-
|
680
|
-
# Custom attribute writer method with validation
|
681
|
-
# @param [Object] version Value to be assigned
|
682
|
-
def version=(version)
|
683
|
-
if !version.nil? && version.to_s.length < 1
|
684
|
-
fail ArgumentError, 'invalid value for "version", the character length must be great than or equal to 1.'
|
685
|
-
end
|
686
|
-
|
687
|
-
@version = version
|
688
|
-
end
|
689
|
-
|
690
|
-
# Custom attribute writer method with validation
|
691
|
-
# @param [Object] architecture Value to be assigned
|
692
|
-
def architecture=(architecture)
|
693
|
-
if !architecture.nil? && architecture.to_s.length < 1
|
694
|
-
fail ArgumentError, 'invalid value for "architecture", the character length must be great than or equal to 1.'
|
695
|
-
end
|
696
|
-
|
697
|
-
@architecture = architecture
|
698
|
-
end
|
699
|
-
|
700
|
-
# Custom attribute writer method with validation
|
701
|
-
# @param [Object] section Value to be assigned
|
702
|
-
def section=(section)
|
703
|
-
if !section.nil? && section.to_s.length < 1
|
704
|
-
fail ArgumentError, 'invalid value for "section", the character length must be great than or equal to 1.'
|
705
|
-
end
|
706
|
-
|
707
|
-
@section = section
|
708
|
-
end
|
709
|
-
|
710
|
-
# Custom attribute writer method with validation
|
711
|
-
# @param [Object] priority Value to be assigned
|
712
|
-
def priority=(priority)
|
713
|
-
if !priority.nil? && priority.to_s.length < 1
|
714
|
-
fail ArgumentError, 'invalid value for "priority", the character length must be great than or equal to 1.'
|
715
|
-
end
|
716
|
-
|
717
|
-
@priority = priority
|
718
|
-
end
|
719
|
-
|
720
|
-
# Custom attribute writer method with validation
|
721
|
-
# @param [Object] origin Value to be assigned
|
722
|
-
def origin=(origin)
|
723
|
-
if !origin.nil? && origin.to_s.length < 1
|
724
|
-
fail ArgumentError, 'invalid value for "origin", the character length must be great than or equal to 1.'
|
725
|
-
end
|
726
|
-
|
727
|
-
@origin = origin
|
728
|
-
end
|
729
|
-
|
730
|
-
# Custom attribute writer method with validation
|
731
|
-
# @param [Object] tag Value to be assigned
|
732
|
-
def tag=(tag)
|
733
|
-
if !tag.nil? && tag.to_s.length < 1
|
734
|
-
fail ArgumentError, 'invalid value for "tag", the character length must be great than or equal to 1.'
|
735
|
-
end
|
736
|
-
|
737
|
-
@tag = tag
|
738
|
-
end
|
739
|
-
|
740
|
-
# Custom attribute writer method with validation
|
741
|
-
# @param [Object] bugs Value to be assigned
|
742
|
-
def bugs=(bugs)
|
743
|
-
if !bugs.nil? && bugs.to_s.length < 1
|
744
|
-
fail ArgumentError, 'invalid value for "bugs", the character length must be great than or equal to 1.'
|
745
|
-
end
|
746
|
-
|
747
|
-
@bugs = bugs
|
748
|
-
end
|
749
|
-
|
750
|
-
# Custom attribute writer method with validation
|
751
|
-
# @param [Object] installed_size Value to be assigned
|
752
|
-
def installed_size=(installed_size)
|
753
|
-
if !installed_size.nil? && installed_size.to_s.length < 1
|
754
|
-
fail ArgumentError, 'invalid value for "installed_size", the character length must be great than or equal to 1.'
|
755
|
-
end
|
756
|
-
|
757
|
-
@installed_size = installed_size
|
758
|
-
end
|
759
|
-
|
760
|
-
# Custom attribute writer method with validation
|
761
|
-
# @param [Object] maintainer Value to be assigned
|
762
|
-
def maintainer=(maintainer)
|
763
|
-
if !maintainer.nil? && maintainer.to_s.length < 1
|
764
|
-
fail ArgumentError, 'invalid value for "maintainer", the character length must be great than or equal to 1.'
|
765
|
-
end
|
766
|
-
|
767
|
-
@maintainer = maintainer
|
768
|
-
end
|
769
|
-
|
770
|
-
# Custom attribute writer method with validation
|
771
|
-
# @param [Object] original_maintainer Value to be assigned
|
772
|
-
def original_maintainer=(original_maintainer)
|
773
|
-
if !original_maintainer.nil? && original_maintainer.to_s.length < 1
|
774
|
-
fail ArgumentError, 'invalid value for "original_maintainer", the character length must be great than or equal to 1.'
|
775
|
-
end
|
776
|
-
|
777
|
-
@original_maintainer = original_maintainer
|
778
|
-
end
|
779
|
-
|
780
|
-
# Custom attribute writer method with validation
|
781
|
-
# @param [Object] description Value to be assigned
|
782
|
-
def description=(description)
|
783
|
-
if !description.nil? && description.to_s.length < 1
|
784
|
-
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
785
|
-
end
|
786
|
-
|
787
|
-
@description = description
|
788
|
-
end
|
789
|
-
|
790
|
-
# Custom attribute writer method with validation
|
791
|
-
# @param [Object] description_md5 Value to be assigned
|
792
|
-
def description_md5=(description_md5)
|
793
|
-
if !description_md5.nil? && description_md5.to_s.length < 1
|
794
|
-
fail ArgumentError, 'invalid value for "description_md5", the character length must be great than or equal to 1.'
|
795
|
-
end
|
796
|
-
|
797
|
-
@description_md5 = description_md5
|
798
|
-
end
|
799
|
-
|
800
|
-
# Custom attribute writer method with validation
|
801
|
-
# @param [Object] homepage Value to be assigned
|
802
|
-
def homepage=(homepage)
|
803
|
-
if !homepage.nil? && homepage.to_s.length < 1
|
804
|
-
fail ArgumentError, 'invalid value for "homepage", the character length must be great than or equal to 1.'
|
805
|
-
end
|
806
|
-
|
807
|
-
@homepage = homepage
|
808
|
-
end
|
809
|
-
|
810
|
-
# Custom attribute writer method with validation
|
811
|
-
# @param [Object] built_using Value to be assigned
|
812
|
-
def built_using=(built_using)
|
813
|
-
if !built_using.nil? && built_using.to_s.length < 1
|
814
|
-
fail ArgumentError, 'invalid value for "built_using", the character length must be great than or equal to 1.'
|
815
|
-
end
|
816
|
-
|
817
|
-
@built_using = built_using
|
818
|
-
end
|
819
|
-
|
820
|
-
# Custom attribute writer method with validation
|
821
|
-
# @param [Object] auto_built_package Value to be assigned
|
822
|
-
def auto_built_package=(auto_built_package)
|
823
|
-
if !auto_built_package.nil? && auto_built_package.to_s.length < 1
|
824
|
-
fail ArgumentError, 'invalid value for "auto_built_package", the character length must be great than or equal to 1.'
|
825
|
-
end
|
826
|
-
|
827
|
-
@auto_built_package = auto_built_package
|
828
|
-
end
|
829
|
-
|
830
|
-
# Custom attribute writer method with validation
|
831
|
-
# @param [Object] multi_arch Value to be assigned
|
832
|
-
def multi_arch=(multi_arch)
|
833
|
-
if !multi_arch.nil? && multi_arch.to_s.length < 1
|
834
|
-
fail ArgumentError, 'invalid value for "multi_arch", the character length must be great than or equal to 1.'
|
835
|
-
end
|
836
|
-
|
837
|
-
@multi_arch = multi_arch
|
838
|
-
end
|
839
|
-
|
840
|
-
# Custom attribute writer method with validation
|
841
|
-
# @param [Object] breaks Value to be assigned
|
842
|
-
def breaks=(breaks)
|
843
|
-
if !breaks.nil? && breaks.to_s.length < 1
|
844
|
-
fail ArgumentError, 'invalid value for "breaks", the character length must be great than or equal to 1.'
|
845
|
-
end
|
846
|
-
|
847
|
-
@breaks = breaks
|
848
|
-
end
|
849
|
-
|
850
|
-
# Custom attribute writer method with validation
|
851
|
-
# @param [Object] conflicts Value to be assigned
|
852
|
-
def conflicts=(conflicts)
|
853
|
-
if !conflicts.nil? && conflicts.to_s.length < 1
|
854
|
-
fail ArgumentError, 'invalid value for "conflicts", the character length must be great than or equal to 1.'
|
855
|
-
end
|
856
|
-
|
857
|
-
@conflicts = conflicts
|
858
|
-
end
|
859
|
-
|
860
|
-
# Custom attribute writer method with validation
|
861
|
-
# @param [Object] depends Value to be assigned
|
862
|
-
def depends=(depends)
|
863
|
-
if !depends.nil? && depends.to_s.length < 1
|
864
|
-
fail ArgumentError, 'invalid value for "depends", the character length must be great than or equal to 1.'
|
865
|
-
end
|
866
|
-
|
867
|
-
@depends = depends
|
868
|
-
end
|
869
|
-
|
870
|
-
# Custom attribute writer method with validation
|
871
|
-
# @param [Object] recommends Value to be assigned
|
872
|
-
def recommends=(recommends)
|
873
|
-
if !recommends.nil? && recommends.to_s.length < 1
|
874
|
-
fail ArgumentError, 'invalid value for "recommends", the character length must be great than or equal to 1.'
|
875
|
-
end
|
876
|
-
|
877
|
-
@recommends = recommends
|
878
|
-
end
|
879
|
-
|
880
|
-
# Custom attribute writer method with validation
|
881
|
-
# @param [Object] suggests Value to be assigned
|
882
|
-
def suggests=(suggests)
|
883
|
-
if !suggests.nil? && suggests.to_s.length < 1
|
884
|
-
fail ArgumentError, 'invalid value for "suggests", the character length must be great than or equal to 1.'
|
885
|
-
end
|
886
|
-
|
887
|
-
@suggests = suggests
|
888
|
-
end
|
889
|
-
|
890
|
-
# Custom attribute writer method with validation
|
891
|
-
# @param [Object] enhances Value to be assigned
|
892
|
-
def enhances=(enhances)
|
893
|
-
if !enhances.nil? && enhances.to_s.length < 1
|
894
|
-
fail ArgumentError, 'invalid value for "enhances", the character length must be great than or equal to 1.'
|
895
|
-
end
|
896
|
-
|
897
|
-
@enhances = enhances
|
898
|
-
end
|
899
|
-
|
900
|
-
# Custom attribute writer method with validation
|
901
|
-
# @param [Object] pre_depends Value to be assigned
|
902
|
-
def pre_depends=(pre_depends)
|
903
|
-
if !pre_depends.nil? && pre_depends.to_s.length < 1
|
904
|
-
fail ArgumentError, 'invalid value for "pre_depends", the character length must be great than or equal to 1.'
|
905
|
-
end
|
906
|
-
|
907
|
-
@pre_depends = pre_depends
|
908
|
-
end
|
909
|
-
|
910
|
-
# Custom attribute writer method with validation
|
911
|
-
# @param [Object] provides Value to be assigned
|
912
|
-
def provides=(provides)
|
913
|
-
if !provides.nil? && provides.to_s.length < 1
|
914
|
-
fail ArgumentError, 'invalid value for "provides", the character length must be great than or equal to 1.'
|
915
|
-
end
|
916
|
-
|
917
|
-
@provides = provides
|
918
|
-
end
|
919
|
-
|
920
|
-
# Custom attribute writer method with validation
|
921
|
-
# @param [Object] replaces Value to be assigned
|
922
|
-
def replaces=(replaces)
|
923
|
-
if !replaces.nil? && replaces.to_s.length < 1
|
924
|
-
fail ArgumentError, 'invalid value for "replaces", the character length must be great than or equal to 1.'
|
925
|
-
end
|
926
|
-
|
927
|
-
@replaces = replaces
|
928
|
-
end
|
929
|
-
|
930
|
-
# Checks equality by comparing each attribute.
|
931
|
-
# @param [Object] Object to be compared
|
932
|
-
def ==(o)
|
933
|
-
return true if self.equal?(o)
|
934
|
-
self.class == o.class &&
|
935
|
-
_href == o._href &&
|
936
|
-
_created == o._created &&
|
937
|
-
_type == o._type &&
|
938
|
-
artifact == o.artifact &&
|
939
|
-
relative_path == o.relative_path &&
|
940
|
-
file == o.file &&
|
941
|
-
repository == o.repository &&
|
942
|
-
md5 == o.md5 &&
|
943
|
-
sha1 == o.sha1 &&
|
944
|
-
sha224 == o.sha224 &&
|
945
|
-
sha256 == o.sha256 &&
|
946
|
-
sha384 == o.sha384 &&
|
947
|
-
sha512 == o.sha512 &&
|
948
|
-
package == o.package &&
|
949
|
-
source == o.source &&
|
950
|
-
version == o.version &&
|
951
|
-
architecture == o.architecture &&
|
952
|
-
section == o.section &&
|
953
|
-
priority == o.priority &&
|
954
|
-
origin == o.origin &&
|
955
|
-
tag == o.tag &&
|
956
|
-
bugs == o.bugs &&
|
957
|
-
essential == o.essential &&
|
958
|
-
build_essential == o.build_essential &&
|
959
|
-
installed_size == o.installed_size &&
|
960
|
-
maintainer == o.maintainer &&
|
961
|
-
original_maintainer == o.original_maintainer &&
|
962
|
-
description == o.description &&
|
963
|
-
description_md5 == o.description_md5 &&
|
964
|
-
homepage == o.homepage &&
|
965
|
-
built_using == o.built_using &&
|
966
|
-
auto_built_package == o.auto_built_package &&
|
967
|
-
multi_arch == o.multi_arch &&
|
968
|
-
breaks == o.breaks &&
|
969
|
-
conflicts == o.conflicts &&
|
970
|
-
depends == o.depends &&
|
971
|
-
recommends == o.recommends &&
|
972
|
-
suggests == o.suggests &&
|
973
|
-
enhances == o.enhances &&
|
974
|
-
pre_depends == o.pre_depends &&
|
975
|
-
provides == o.provides &&
|
976
|
-
replaces == o.replaces
|
977
|
-
end
|
978
|
-
|
979
|
-
# @see the `==` method
|
980
|
-
# @param [Object] Object to be compared
|
981
|
-
def eql?(o)
|
982
|
-
self == o
|
983
|
-
end
|
984
|
-
|
985
|
-
# Calculates hash code according to all attributes.
|
986
|
-
# @return [Integer] Hash code
|
987
|
-
def hash
|
988
|
-
[_href, _created, _type, artifact, relative_path, file, repository, md5, sha1, sha224, sha256, sha384, sha512, package, source, version, architecture, section, priority, origin, tag, bugs, essential, build_essential, installed_size, maintainer, original_maintainer, description, description_md5, homepage, built_using, auto_built_package, multi_arch, breaks, conflicts, depends, recommends, suggests, enhances, pre_depends, provides, replaces].hash
|
989
|
-
end
|
990
|
-
|
991
|
-
# Builds the object from hash
|
992
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
993
|
-
# @return [Object] Returns the model itself
|
994
|
-
def self.build_from_hash(attributes)
|
995
|
-
new.build_from_hash(attributes)
|
996
|
-
end
|
997
|
-
|
998
|
-
# Builds the object from hash
|
999
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
1000
|
-
# @return [Object] Returns the model itself
|
1001
|
-
def build_from_hash(attributes)
|
1002
|
-
return nil unless attributes.is_a?(Hash)
|
1003
|
-
self.class.openapi_types.each_pair do |key, type|
|
1004
|
-
if type =~ /\AArray<(.*)>/i
|
1005
|
-
# check to ensure the input is an array given that the attribute
|
1006
|
-
# is documented as an array but the input is not
|
1007
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
1008
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
1009
|
-
end
|
1010
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
1011
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
1012
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
1013
|
-
end
|
1014
|
-
|
1015
|
-
self
|
1016
|
-
end
|
1017
|
-
|
1018
|
-
# Deserializes the data based on type
|
1019
|
-
# @param string type Data type
|
1020
|
-
# @param string value Value to be deserialized
|
1021
|
-
# @return [Object] Deserialized data
|
1022
|
-
def _deserialize(type, value)
|
1023
|
-
case type.to_sym
|
1024
|
-
when :DateTime
|
1025
|
-
DateTime.parse(value)
|
1026
|
-
when :Date
|
1027
|
-
Date.parse(value)
|
1028
|
-
when :String
|
1029
|
-
value.to_s
|
1030
|
-
when :Integer
|
1031
|
-
value.to_i
|
1032
|
-
when :Float
|
1033
|
-
value.to_f
|
1034
|
-
when :Boolean
|
1035
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
1036
|
-
true
|
1037
|
-
else
|
1038
|
-
false
|
1039
|
-
end
|
1040
|
-
when :Object
|
1041
|
-
# generic object (usually a Hash), return directly
|
1042
|
-
value
|
1043
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
1044
|
-
inner_type = Regexp.last_match[:inner_type]
|
1045
|
-
value.map { |v| _deserialize(inner_type, v) }
|
1046
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
1047
|
-
k_type = Regexp.last_match[:k_type]
|
1048
|
-
v_type = Regexp.last_match[:v_type]
|
1049
|
-
{}.tap do |hash|
|
1050
|
-
value.each do |k, v|
|
1051
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
1052
|
-
end
|
1053
|
-
end
|
1054
|
-
else # model
|
1055
|
-
PulpDebClient.const_get(type).build_from_hash(value)
|
1056
|
-
end
|
1057
|
-
end
|
1058
|
-
|
1059
|
-
# Returns the string representation of the object
|
1060
|
-
# @return [String] String presentation of the object
|
1061
|
-
def to_s
|
1062
|
-
to_hash.to_s
|
1063
|
-
end
|
1064
|
-
|
1065
|
-
# to_body is an alias to to_hash (backward compatibility)
|
1066
|
-
# @return [Hash] Returns the object in the form of hash
|
1067
|
-
def to_body
|
1068
|
-
to_hash
|
1069
|
-
end
|
1070
|
-
|
1071
|
-
# Returns the object in the form of hash
|
1072
|
-
# @return [Hash] Returns the object in the form of hash
|
1073
|
-
def to_hash
|
1074
|
-
hash = {}
|
1075
|
-
self.class.attribute_map.each_pair do |attr, param|
|
1076
|
-
value = self.send(attr)
|
1077
|
-
next if value.nil?
|
1078
|
-
hash[param] = _to_hash(value)
|
1079
|
-
end
|
1080
|
-
hash
|
1081
|
-
end
|
1082
|
-
|
1083
|
-
# Outputs non-array value in the form of hash
|
1084
|
-
# For object, use to_hash. Otherwise, just return the value
|
1085
|
-
# @param [Object] value Any valid value
|
1086
|
-
# @return [Hash] Returns the value in the form of hash
|
1087
|
-
def _to_hash(value)
|
1088
|
-
if value.is_a?(Array)
|
1089
|
-
value.compact.map { |v| _to_hash(v) }
|
1090
|
-
elsif value.is_a?(Hash)
|
1091
|
-
{}.tap do |hash|
|
1092
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
1093
|
-
end
|
1094
|
-
elsif value.respond_to? :to_hash
|
1095
|
-
value.to_hash
|
1096
|
-
else
|
1097
|
-
value
|
1098
|
-
end
|
1099
|
-
end
|
1100
|
-
end
|
1101
|
-
end
|