pulp_deb_client 2.5.0b1 → 2.6.0b1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (221) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +60 -39
  3. data/docs/ContentGenericContentsApi.md +26 -26
  4. data/docs/ContentInstallerFileIndicesApi.md +37 -37
  5. data/docs/ContentInstallerPackagesApi.md +56 -56
  6. data/docs/ContentPackageIndicesApi.md +37 -37
  7. data/docs/ContentPackageReleaseComponentsApi.md +33 -33
  8. data/docs/ContentPackagesApi.md +58 -58
  9. data/docs/ContentReleaseArchitecturesApi.md +33 -33
  10. data/docs/ContentReleaseComponentsApi.md +33 -33
  11. data/docs/ContentReleaseFilesApi.md +37 -37
  12. data/docs/ContentReleasesApi.md +35 -35
  13. data/docs/ContentSummary.md +3 -3
  14. data/docs/ContentSummaryResponse.md +21 -0
  15. data/docs/DebAptDistribution.md +1 -7
  16. data/docs/DebAptDistributionResponse.md +29 -0
  17. data/docs/DebAptPublication.md +1 -5
  18. data/docs/DebAptPublicationResponse.md +29 -0
  19. data/docs/DebAptRemote.md +4 -10
  20. data/docs/DebAptRemoteResponse.md +57 -0
  21. data/docs/DebAptRepository.md +4 -10
  22. data/docs/DebAptRepositoryResponse.md +29 -0
  23. data/docs/DebBasePackage.md +5 -75
  24. data/docs/DebBasePackageResponse.md +93 -0
  25. data/docs/DebGenericContent.md +5 -17
  26. data/docs/DebGenericContentResponse.md +35 -0
  27. data/docs/DebInstallerFileIndex.md +2 -6
  28. data/docs/DebInstallerFileIndexResponse.md +29 -0
  29. data/docs/DebPackageIndex.md +2 -6
  30. data/docs/DebPackageIndexResponse.md +29 -0
  31. data/docs/DebPackageReleaseComponent.md +1 -5
  32. data/docs/DebPackageReleaseComponentResponse.md +23 -0
  33. data/docs/DebRelease.md +1 -5
  34. data/docs/DebReleaseArchitecture.md +1 -5
  35. data/docs/DebReleaseArchitectureResponse.md +23 -0
  36. data/docs/DebReleaseComponent.md +1 -5
  37. data/docs/DebReleaseComponentResponse.md +23 -0
  38. data/docs/DebReleaseFile.md +2 -6
  39. data/docs/DebReleaseFileResponse.md +29 -0
  40. data/docs/DebReleaseResponse.md +25 -0
  41. data/docs/DebVerbatimPublication.md +1 -5
  42. data/docs/DebVerbatimPublicationResponse.md +23 -0
  43. data/docs/DistributionsAptApi.md +110 -62
  44. data/docs/InlineResponse200.md +3 -3
  45. data/docs/InlineResponse2001.md +3 -3
  46. data/docs/InlineResponse20010.md +3 -3
  47. data/docs/InlineResponse20011.md +3 -3
  48. data/docs/InlineResponse20012.md +3 -3
  49. data/docs/InlineResponse20013.md +3 -3
  50. data/docs/InlineResponse20014.md +3 -3
  51. data/docs/InlineResponse2002.md +3 -3
  52. data/docs/InlineResponse2003.md +3 -3
  53. data/docs/InlineResponse2004.md +3 -3
  54. data/docs/InlineResponse2005.md +3 -3
  55. data/docs/InlineResponse2006.md +3 -3
  56. data/docs/InlineResponse2007.md +3 -3
  57. data/docs/InlineResponse2008.md +3 -3
  58. data/docs/InlineResponse2009.md +3 -3
  59. data/docs/PatcheddebAptDistribution.md +23 -0
  60. data/docs/PatcheddebAptRemote.md +51 -0
  61. data/docs/PatcheddebAptRepository.md +21 -0
  62. data/docs/PolicyEnum.md +16 -0
  63. data/docs/PublicationsAptApi.md +43 -43
  64. data/docs/PublicationsVerbatimApi.md +43 -43
  65. data/docs/RemotesAptApi.md +128 -68
  66. data/docs/RepositoriesAptApi.md +100 -76
  67. data/docs/RepositoriesDebVersionsApi.md +96 -64
  68. data/docs/RepositoryAddRemoveContent.md +2 -2
  69. data/docs/RepositorySyncURL.md +1 -1
  70. data/docs/RepositoryVersion.md +1 -9
  71. data/docs/RepositoryVersionResponse.md +25 -0
  72. data/lib/pulp_deb_client/api/content_generic_contents_api.rb +36 -40
  73. data/lib/pulp_deb_client/api/content_installer_file_indices_api.rb +57 -57
  74. data/lib/pulp_deb_client/api/content_installer_packages_api.rb +90 -82
  75. data/lib/pulp_deb_client/api/content_package_indices_api.rb +57 -57
  76. data/lib/pulp_deb_client/api/content_package_release_components_api.rb +50 -50
  77. data/lib/pulp_deb_client/api/content_packages_api.rb +92 -84
  78. data/lib/pulp_deb_client/api/content_release_architectures_api.rb +51 -51
  79. data/lib/pulp_deb_client/api/content_release_components_api.rb +51 -51
  80. data/lib/pulp_deb_client/api/content_release_files_api.rb +57 -57
  81. data/lib/pulp_deb_client/api/content_releases_api.rb +54 -54
  82. data/lib/pulp_deb_client/api/distributions_apt_api.rb +157 -94
  83. data/lib/pulp_deb_client/api/publications_apt_api.rb +65 -65
  84. data/lib/pulp_deb_client/api/publications_verbatim_api.rb +65 -65
  85. data/lib/pulp_deb_client/api/remotes_apt_api.rb +187 -106
  86. data/lib/pulp_deb_client/api/repositories_apt_api.rb +151 -124
  87. data/lib/pulp_deb_client/api/repositories_deb_versions_api.rb +141 -96
  88. data/lib/pulp_deb_client/api_client.rb +2 -2
  89. data/lib/pulp_deb_client/api_error.rb +2 -2
  90. data/lib/pulp_deb_client/configuration.rb +3 -3
  91. data/lib/pulp_deb_client/models/async_operation_response.rb +3 -2
  92. data/lib/pulp_deb_client/models/content_summary.rb +9 -15
  93. data/lib/pulp_deb_client/models/content_summary_response.rb +240 -0
  94. data/lib/pulp_deb_client/models/deb_apt_distribution.rb +4 -85
  95. data/lib/pulp_deb_client/models/deb_apt_distribution_response.rb +279 -0
  96. data/lib/pulp_deb_client/models/deb_apt_publication.rb +4 -22
  97. data/lib/pulp_deb_client/models/deb_apt_publication_response.rb +270 -0
  98. data/lib/pulp_deb_client/models/deb_apt_remote.rb +7 -263
  99. data/lib/pulp_deb_client/models/deb_apt_remote_response.rb +446 -0
  100. data/lib/pulp_deb_client/models/deb_apt_repository.rb +18 -78
  101. data/lib/pulp_deb_client/models/deb_apt_repository_response.rb +271 -0
  102. data/lib/pulp_deb_client/models/deb_base_package.rb +18 -847
  103. data/lib/pulp_deb_client/models/deb_base_package_response.rb +558 -0
  104. data/lib/pulp_deb_client/models/deb_generic_content.rb +18 -185
  105. data/lib/pulp_deb_client/models/deb_generic_content_response.rb +302 -0
  106. data/lib/pulp_deb_client/models/deb_installer_file_index.rb +6 -79
  107. data/lib/pulp_deb_client/models/deb_installer_file_index_response.rb +287 -0
  108. data/lib/pulp_deb_client/models/deb_package_index.rb +6 -79
  109. data/lib/pulp_deb_client/models/deb_package_index_response.rb +287 -0
  110. data/lib/pulp_deb_client/models/deb_package_release_component.rb +4 -22
  111. data/lib/pulp_deb_client/models/deb_package_release_component_response.rb +247 -0
  112. data/lib/pulp_deb_client/models/deb_release.rb +4 -79
  113. data/lib/pulp_deb_client/models/deb_release_architecture.rb +4 -41
  114. data/lib/pulp_deb_client/models/deb_release_architecture_response.rb +247 -0
  115. data/lib/pulp_deb_client/models/deb_release_component.rb +4 -41
  116. data/lib/pulp_deb_client/models/deb_release_component_response.rb +247 -0
  117. data/lib/pulp_deb_client/models/deb_release_file.rb +6 -90
  118. data/lib/pulp_deb_client/models/deb_release_file_response.rb +277 -0
  119. data/lib/pulp_deb_client/models/deb_release_response.rb +259 -0
  120. data/lib/pulp_deb_client/models/deb_verbatim_publication.rb +4 -22
  121. data/lib/pulp_deb_client/models/deb_verbatim_publication_response.rb +236 -0
  122. data/lib/pulp_deb_client/models/inline_response200.rb +3 -13
  123. data/lib/pulp_deb_client/models/inline_response2001.rb +3 -13
  124. data/lib/pulp_deb_client/models/inline_response20010.rb +3 -13
  125. data/lib/pulp_deb_client/models/inline_response20011.rb +3 -13
  126. data/lib/pulp_deb_client/models/inline_response20012.rb +3 -13
  127. data/lib/pulp_deb_client/models/inline_response20013.rb +3 -13
  128. data/lib/pulp_deb_client/models/inline_response20014.rb +3 -13
  129. data/lib/pulp_deb_client/models/inline_response2002.rb +3 -13
  130. data/lib/pulp_deb_client/models/inline_response2003.rb +3 -13
  131. data/lib/pulp_deb_client/models/inline_response2004.rb +3 -13
  132. data/lib/pulp_deb_client/models/inline_response2005.rb +3 -13
  133. data/lib/pulp_deb_client/models/inline_response2006.rb +3 -13
  134. data/lib/pulp_deb_client/models/inline_response2007.rb +3 -13
  135. data/lib/pulp_deb_client/models/inline_response2008.rb +3 -13
  136. data/lib/pulp_deb_client/models/inline_response2009.rb +3 -13
  137. data/lib/pulp_deb_client/models/patcheddeb_apt_distribution.rb +240 -0
  138. data/lib/pulp_deb_client/models/patcheddeb_apt_remote.rb +402 -0
  139. data/lib/pulp_deb_client/models/patcheddeb_apt_repository.rb +229 -0
  140. data/lib/pulp_deb_client/models/policy_enum.rb +37 -0
  141. data/lib/pulp_deb_client/models/repository_add_remove_content.rb +5 -4
  142. data/lib/pulp_deb_client/models/repository_sync_url.rb +3 -8
  143. data/lib/pulp_deb_client/models/repository_version.rb +7 -43
  144. data/lib/pulp_deb_client/models/repository_version_response.rb +246 -0
  145. data/lib/pulp_deb_client/version.rb +3 -3
  146. data/lib/pulp_deb_client.rb +22 -2
  147. data/pulp_deb_client.gemspec +4 -4
  148. data/spec/api/content_generic_contents_api_spec.rb +12 -12
  149. data/spec/api/content_installer_file_indices_api_spec.rb +17 -17
  150. data/spec/api/content_installer_packages_api_spec.rb +27 -27
  151. data/spec/api/content_package_indices_api_spec.rb +17 -17
  152. data/spec/api/content_package_release_components_api_spec.rb +15 -15
  153. data/spec/api/content_packages_api_spec.rb +28 -28
  154. data/spec/api/content_release_architectures_api_spec.rb +15 -15
  155. data/spec/api/content_release_components_api_spec.rb +15 -15
  156. data/spec/api/content_release_files_api_spec.rb +17 -17
  157. data/spec/api/content_releases_api_spec.rb +16 -16
  158. data/spec/api/distributions_apt_api_spec.rb +41 -20
  159. data/spec/api/publications_apt_api_spec.rb +17 -17
  160. data/spec/api/publications_verbatim_api_spec.rb +17 -17
  161. data/spec/api/remotes_apt_api_spec.rb +51 -24
  162. data/spec/api/repositories_apt_api_spec.rb +31 -22
  163. data/spec/api/repositories_deb_versions_api_spec.rb +40 -25
  164. data/spec/api_client_spec.rb +2 -2
  165. data/spec/configuration_spec.rb +2 -2
  166. data/spec/models/async_operation_response_spec.rb +2 -2
  167. data/spec/models/content_summary_response_spec.rb +53 -0
  168. data/spec/models/content_summary_spec.rb +2 -2
  169. data/spec/models/deb_apt_distribution_response_spec.rb +77 -0
  170. data/spec/models/deb_apt_distribution_spec.rb +2 -20
  171. data/spec/models/deb_apt_publication_response_spec.rb +77 -0
  172. data/spec/models/deb_apt_publication_spec.rb +2 -14
  173. data/spec/models/deb_apt_remote_response_spec.rb +161 -0
  174. data/spec/models/deb_apt_remote_spec.rb +2 -24
  175. data/spec/models/deb_apt_repository_response_spec.rb +77 -0
  176. data/spec/models/deb_apt_repository_spec.rb +5 -23
  177. data/spec/models/deb_base_package_response_spec.rb +269 -0
  178. data/spec/models/deb_base_package_spec.rb +4 -214
  179. data/spec/models/deb_generic_content_response_spec.rb +95 -0
  180. data/spec/models/deb_generic_content_spec.rb +4 -40
  181. data/spec/models/deb_installer_file_index_response_spec.rb +77 -0
  182. data/spec/models/deb_installer_file_index_spec.rb +2 -14
  183. data/spec/models/deb_package_index_response_spec.rb +77 -0
  184. data/spec/models/deb_package_index_spec.rb +2 -14
  185. data/spec/models/deb_package_release_component_response_spec.rb +59 -0
  186. data/spec/models/deb_package_release_component_spec.rb +2 -14
  187. data/spec/models/deb_release_architecture_response_spec.rb +59 -0
  188. data/spec/models/deb_release_architecture_spec.rb +2 -14
  189. data/spec/models/deb_release_component_response_spec.rb +59 -0
  190. data/spec/models/deb_release_component_spec.rb +2 -14
  191. data/spec/models/deb_release_file_response_spec.rb +77 -0
  192. data/spec/models/deb_release_file_spec.rb +2 -14
  193. data/spec/models/deb_release_response_spec.rb +65 -0
  194. data/spec/models/deb_release_spec.rb +2 -14
  195. data/spec/models/deb_verbatim_publication_response_spec.rb +59 -0
  196. data/spec/models/deb_verbatim_publication_spec.rb +2 -14
  197. data/spec/models/inline_response20010_spec.rb +2 -2
  198. data/spec/models/inline_response20011_spec.rb +2 -2
  199. data/spec/models/inline_response20012_spec.rb +2 -2
  200. data/spec/models/inline_response20013_spec.rb +2 -2
  201. data/spec/models/inline_response20014_spec.rb +2 -2
  202. data/spec/models/inline_response2001_spec.rb +2 -2
  203. data/spec/models/inline_response2002_spec.rb +2 -2
  204. data/spec/models/inline_response2003_spec.rb +2 -2
  205. data/spec/models/inline_response2004_spec.rb +2 -2
  206. data/spec/models/inline_response2005_spec.rb +2 -2
  207. data/spec/models/inline_response2006_spec.rb +2 -2
  208. data/spec/models/inline_response2007_spec.rb +2 -2
  209. data/spec/models/inline_response2008_spec.rb +2 -2
  210. data/spec/models/inline_response2009_spec.rb +2 -2
  211. data/spec/models/inline_response200_spec.rb +2 -2
  212. data/spec/models/patcheddeb_apt_distribution_spec.rb +59 -0
  213. data/spec/models/patcheddeb_apt_remote_spec.rb +143 -0
  214. data/spec/models/patcheddeb_apt_repository_spec.rb +53 -0
  215. data/spec/models/policy_enum_spec.rb +35 -0
  216. data/spec/models/repository_add_remove_content_spec.rb +2 -2
  217. data/spec/models/repository_sync_url_spec.rb +2 -2
  218. data/spec/models/repository_version_response_spec.rb +65 -0
  219. data/spec/models/repository_version_spec.rb +2 -26
  220. data/spec/spec_helper.rb +2 -2
  221. metadata +120 -40
@@ -1,10 +1,10 @@
1
1
  =begin
2
2
  #Pulp 3 API
3
3
 
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
5
 
6
6
  The version of the OpenAPI document: v3
7
-
7
+ Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.2.3
10
10
 
@@ -13,181 +13,37 @@ OpenAPI Generator version: 4.2.3
13
13
  require 'date'
14
14
 
15
15
  module PulpDebClient
16
+ # A Serializer for InstallerPackage.
16
17
  class DebBasePackage
17
- attr_accessor :pulp_href
18
-
19
- # Timestamp of creation.
20
- attr_accessor :pulp_created
21
-
22
18
  # Artifact file representing the physical content
23
19
  attr_accessor :artifact
24
20
 
25
21
  # Path where the artifact is located relative to distributions base_path
26
22
  attr_accessor :relative_path
27
23
 
28
- # The MD5 checksum if available.
29
- attr_accessor :md5
30
-
31
- # The SHA-1 checksum if available.
32
- attr_accessor :sha1
33
-
34
- # The SHA-224 checksum if available.
35
- attr_accessor :sha224
36
-
37
- # The SHA-256 checksum if available.
38
- attr_accessor :sha256
39
-
40
- # The SHA-384 checksum if available.
41
- attr_accessor :sha384
42
-
43
- # The SHA-512 checksum if available.
44
- attr_accessor :sha512
45
-
46
- attr_accessor :package
47
-
48
- attr_accessor :source
49
-
50
- attr_accessor :version
51
-
52
- attr_accessor :architecture
53
-
54
- attr_accessor :section
55
-
56
- attr_accessor :priority
57
-
58
- attr_accessor :origin
59
-
60
- attr_accessor :tag
61
-
62
- attr_accessor :bugs
63
-
64
- attr_accessor :essential
65
-
66
- attr_accessor :build_essential
67
-
68
- attr_accessor :installed_size
24
+ # An uploaded file that may be turned into the artifact of the content unit.
25
+ attr_accessor :file
69
26
 
70
- attr_accessor :maintainer
71
-
72
- attr_accessor :original_maintainer
73
-
74
- attr_accessor :description
75
-
76
- attr_accessor :description_md5
77
-
78
- attr_accessor :homepage
79
-
80
- attr_accessor :built_using
81
-
82
- attr_accessor :auto_built_package
83
-
84
- attr_accessor :multi_arch
85
-
86
- attr_accessor :breaks
87
-
88
- attr_accessor :conflicts
89
-
90
- attr_accessor :depends
91
-
92
- attr_accessor :recommends
93
-
94
- attr_accessor :suggests
95
-
96
- attr_accessor :enhances
97
-
98
- attr_accessor :pre_depends
99
-
100
- attr_accessor :provides
101
-
102
- attr_accessor :replaces
27
+ # A URI of a repository the new content unit should be associated with.
28
+ attr_accessor :repository
103
29
 
104
30
  # Attribute mapping from ruby-style variable name to JSON key.
105
31
  def self.attribute_map
106
32
  {
107
- :'pulp_href' => :'pulp_href',
108
- :'pulp_created' => :'pulp_created',
109
33
  :'artifact' => :'artifact',
110
34
  :'relative_path' => :'relative_path',
111
- :'md5' => :'md5',
112
- :'sha1' => :'sha1',
113
- :'sha224' => :'sha224',
114
- :'sha256' => :'sha256',
115
- :'sha384' => :'sha384',
116
- :'sha512' => :'sha512',
117
- :'package' => :'package',
118
- :'source' => :'source',
119
- :'version' => :'version',
120
- :'architecture' => :'architecture',
121
- :'section' => :'section',
122
- :'priority' => :'priority',
123
- :'origin' => :'origin',
124
- :'tag' => :'tag',
125
- :'bugs' => :'bugs',
126
- :'essential' => :'essential',
127
- :'build_essential' => :'build_essential',
128
- :'installed_size' => :'installed_size',
129
- :'maintainer' => :'maintainer',
130
- :'original_maintainer' => :'original_maintainer',
131
- :'description' => :'description',
132
- :'description_md5' => :'description_md5',
133
- :'homepage' => :'homepage',
134
- :'built_using' => :'built_using',
135
- :'auto_built_package' => :'auto_built_package',
136
- :'multi_arch' => :'multi_arch',
137
- :'breaks' => :'breaks',
138
- :'conflicts' => :'conflicts',
139
- :'depends' => :'depends',
140
- :'recommends' => :'recommends',
141
- :'suggests' => :'suggests',
142
- :'enhances' => :'enhances',
143
- :'pre_depends' => :'pre_depends',
144
- :'provides' => :'provides',
145
- :'replaces' => :'replaces'
35
+ :'file' => :'file',
36
+ :'repository' => :'repository'
146
37
  }
147
38
  end
148
39
 
149
40
  # Attribute type mapping.
150
41
  def self.openapi_types
151
42
  {
152
- :'pulp_href' => :'String',
153
- :'pulp_created' => :'DateTime',
154
43
  :'artifact' => :'String',
155
44
  :'relative_path' => :'String',
156
- :'md5' => :'String',
157
- :'sha1' => :'String',
158
- :'sha224' => :'String',
159
- :'sha256' => :'String',
160
- :'sha384' => :'String',
161
- :'sha512' => :'String',
162
- :'package' => :'String',
163
- :'source' => :'String',
164
- :'version' => :'String',
165
- :'architecture' => :'String',
166
- :'section' => :'String',
167
- :'priority' => :'String',
168
- :'origin' => :'String',
169
- :'tag' => :'String',
170
- :'bugs' => :'String',
171
- :'essential' => :'String',
172
- :'build_essential' => :'String',
173
- :'installed_size' => :'String',
174
- :'maintainer' => :'String',
175
- :'original_maintainer' => :'String',
176
- :'description' => :'String',
177
- :'description_md5' => :'String',
178
- :'homepage' => :'String',
179
- :'built_using' => :'String',
180
- :'auto_built_package' => :'String',
181
- :'multi_arch' => :'String',
182
- :'breaks' => :'String',
183
- :'conflicts' => :'String',
184
- :'depends' => :'String',
185
- :'recommends' => :'String',
186
- :'suggests' => :'String',
187
- :'enhances' => :'String',
188
- :'pre_depends' => :'String',
189
- :'provides' => :'String',
190
- :'replaces' => :'String'
45
+ :'file' => :'File',
46
+ :'repository' => :'String'
191
47
  }
192
48
  end
193
49
 
@@ -212,14 +68,6 @@ module PulpDebClient
212
68
  h[k.to_sym] = v
213
69
  }
214
70
 
215
- if attributes.key?(:'pulp_href')
216
- self.pulp_href = attributes[:'pulp_href']
217
- end
218
-
219
- if attributes.key?(:'pulp_created')
220
- self.pulp_created = attributes[:'pulp_created']
221
- end
222
-
223
71
  if attributes.key?(:'artifact')
224
72
  self.artifact = attributes[:'artifact']
225
73
  end
@@ -228,144 +76,12 @@ module PulpDebClient
228
76
  self.relative_path = attributes[:'relative_path']
229
77
  end
230
78
 
231
- if attributes.key?(:'md5')
232
- self.md5 = attributes[:'md5']
233
- end
234
-
235
- if attributes.key?(:'sha1')
236
- self.sha1 = attributes[:'sha1']
237
- end
238
-
239
- if attributes.key?(:'sha224')
240
- self.sha224 = attributes[:'sha224']
241
- end
242
-
243
- if attributes.key?(:'sha256')
244
- self.sha256 = attributes[:'sha256']
245
- end
246
-
247
- if attributes.key?(:'sha384')
248
- self.sha384 = attributes[:'sha384']
249
- end
250
-
251
- if attributes.key?(:'sha512')
252
- self.sha512 = attributes[:'sha512']
253
- end
254
-
255
- if attributes.key?(:'package')
256
- self.package = attributes[:'package']
257
- end
258
-
259
- if attributes.key?(:'source')
260
- self.source = attributes[:'source']
261
- end
262
-
263
- if attributes.key?(:'version')
264
- self.version = attributes[:'version']
265
- end
266
-
267
- if attributes.key?(:'architecture')
268
- self.architecture = attributes[:'architecture']
269
- end
270
-
271
- if attributes.key?(:'section')
272
- self.section = attributes[:'section']
273
- end
274
-
275
- if attributes.key?(:'priority')
276
- self.priority = attributes[:'priority']
277
- end
278
-
279
- if attributes.key?(:'origin')
280
- self.origin = attributes[:'origin']
281
- end
282
-
283
- if attributes.key?(:'tag')
284
- self.tag = attributes[:'tag']
285
- end
286
-
287
- if attributes.key?(:'bugs')
288
- self.bugs = attributes[:'bugs']
289
- end
290
-
291
- if attributes.key?(:'essential')
292
- self.essential = attributes[:'essential']
293
- end
294
-
295
- if attributes.key?(:'build_essential')
296
- self.build_essential = attributes[:'build_essential']
297
- end
298
-
299
- if attributes.key?(:'installed_size')
300
- self.installed_size = attributes[:'installed_size']
301
- end
302
-
303
- if attributes.key?(:'maintainer')
304
- self.maintainer = attributes[:'maintainer']
305
- end
306
-
307
- if attributes.key?(:'original_maintainer')
308
- self.original_maintainer = attributes[:'original_maintainer']
79
+ if attributes.key?(:'file')
80
+ self.file = attributes[:'file']
309
81
  end
310
82
 
311
- if attributes.key?(:'description')
312
- self.description = attributes[:'description']
313
- end
314
-
315
- if attributes.key?(:'description_md5')
316
- self.description_md5 = attributes[:'description_md5']
317
- end
318
-
319
- if attributes.key?(:'homepage')
320
- self.homepage = attributes[:'homepage']
321
- end
322
-
323
- if attributes.key?(:'built_using')
324
- self.built_using = attributes[:'built_using']
325
- end
326
-
327
- if attributes.key?(:'auto_built_package')
328
- self.auto_built_package = attributes[:'auto_built_package']
329
- end
330
-
331
- if attributes.key?(:'multi_arch')
332
- self.multi_arch = attributes[:'multi_arch']
333
- end
334
-
335
- if attributes.key?(:'breaks')
336
- self.breaks = attributes[:'breaks']
337
- end
338
-
339
- if attributes.key?(:'conflicts')
340
- self.conflicts = attributes[:'conflicts']
341
- end
342
-
343
- if attributes.key?(:'depends')
344
- self.depends = attributes[:'depends']
345
- end
346
-
347
- if attributes.key?(:'recommends')
348
- self.recommends = attributes[:'recommends']
349
- end
350
-
351
- if attributes.key?(:'suggests')
352
- self.suggests = attributes[:'suggests']
353
- end
354
-
355
- if attributes.key?(:'enhances')
356
- self.enhances = attributes[:'enhances']
357
- end
358
-
359
- if attributes.key?(:'pre_depends')
360
- self.pre_depends = attributes[:'pre_depends']
361
- end
362
-
363
- if attributes.key?(:'provides')
364
- self.provides = attributes[:'provides']
365
- end
366
-
367
- if attributes.key?(:'replaces')
368
- self.replaces = attributes[:'replaces']
83
+ if attributes.key?(:'repository')
84
+ self.repository = attributes[:'repository']
369
85
  end
370
86
  end
371
87
 
@@ -373,569 +89,24 @@ module PulpDebClient
373
89
  # @return Array for valid properties with the reasons
374
90
  def list_invalid_properties
375
91
  invalid_properties = Array.new
376
- if !@relative_path.nil? && @relative_path.to_s.length < 1
377
- invalid_properties.push('invalid value for "relative_path", the character length must be great than or equal to 1.')
378
- end
379
-
380
- if !@md5.nil? && @md5.to_s.length < 1
381
- invalid_properties.push('invalid value for "md5", the character length must be great than or equal to 1.')
382
- end
383
-
384
- if !@sha1.nil? && @sha1.to_s.length < 1
385
- invalid_properties.push('invalid value for "sha1", the character length must be great than or equal to 1.')
386
- end
387
-
388
- if !@sha224.nil? && @sha224.to_s.length < 1
389
- invalid_properties.push('invalid value for "sha224", the character length must be great than or equal to 1.')
390
- end
391
-
392
- if !@sha256.nil? && @sha256.to_s.length < 1
393
- invalid_properties.push('invalid value for "sha256", the character length must be great than or equal to 1.')
394
- end
395
-
396
- if !@sha384.nil? && @sha384.to_s.length < 1
397
- invalid_properties.push('invalid value for "sha384", the character length must be great than or equal to 1.')
398
- end
399
-
400
- if !@sha512.nil? && @sha512.to_s.length < 1
401
- invalid_properties.push('invalid value for "sha512", the character length must be great than or equal to 1.')
402
- end
403
-
404
- if !@package.nil? && @package.to_s.length < 1
405
- invalid_properties.push('invalid value for "package", the character length must be great than or equal to 1.')
406
- end
407
-
408
- if !@source.nil? && @source.to_s.length < 1
409
- invalid_properties.push('invalid value for "source", the character length must be great than or equal to 1.')
410
- end
411
-
412
- if !@version.nil? && @version.to_s.length < 1
413
- invalid_properties.push('invalid value for "version", the character length must be great than or equal to 1.')
414
- end
415
-
416
- if !@architecture.nil? && @architecture.to_s.length < 1
417
- invalid_properties.push('invalid value for "architecture", the character length must be great than or equal to 1.')
418
- end
419
-
420
- if !@section.nil? && @section.to_s.length < 1
421
- invalid_properties.push('invalid value for "section", the character length must be great than or equal to 1.')
422
- end
423
-
424
- if !@priority.nil? && @priority.to_s.length < 1
425
- invalid_properties.push('invalid value for "priority", the character length must be great than or equal to 1.')
426
- end
427
-
428
- if !@origin.nil? && @origin.to_s.length < 1
429
- invalid_properties.push('invalid value for "origin", the character length must be great than or equal to 1.')
430
- end
431
-
432
- if !@tag.nil? && @tag.to_s.length < 1
433
- invalid_properties.push('invalid value for "tag", the character length must be great than or equal to 1.')
434
- end
435
-
436
- if !@bugs.nil? && @bugs.to_s.length < 1
437
- invalid_properties.push('invalid value for "bugs", the character length must be great than or equal to 1.')
438
- end
439
-
440
- if !@installed_size.nil? && @installed_size.to_s.length < 1
441
- invalid_properties.push('invalid value for "installed_size", the character length must be great than or equal to 1.')
442
- end
443
-
444
- if !@maintainer.nil? && @maintainer.to_s.length < 1
445
- invalid_properties.push('invalid value for "maintainer", the character length must be great than or equal to 1.')
446
- end
447
-
448
- if !@original_maintainer.nil? && @original_maintainer.to_s.length < 1
449
- invalid_properties.push('invalid value for "original_maintainer", the character length must be great than or equal to 1.')
450
- end
451
-
452
- if !@description.nil? && @description.to_s.length < 1
453
- invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
454
- end
455
-
456
- if !@description_md5.nil? && @description_md5.to_s.length < 1
457
- invalid_properties.push('invalid value for "description_md5", the character length must be great than or equal to 1.')
458
- end
459
-
460
- if !@homepage.nil? && @homepage.to_s.length < 1
461
- invalid_properties.push('invalid value for "homepage", the character length must be great than or equal to 1.')
462
- end
463
-
464
- if !@built_using.nil? && @built_using.to_s.length < 1
465
- invalid_properties.push('invalid value for "built_using", the character length must be great than or equal to 1.')
466
- end
467
-
468
- if !@auto_built_package.nil? && @auto_built_package.to_s.length < 1
469
- invalid_properties.push('invalid value for "auto_built_package", the character length must be great than or equal to 1.')
470
- end
471
-
472
- if !@multi_arch.nil? && @multi_arch.to_s.length < 1
473
- invalid_properties.push('invalid value for "multi_arch", the character length must be great than or equal to 1.')
474
- end
475
-
476
- if !@breaks.nil? && @breaks.to_s.length < 1
477
- invalid_properties.push('invalid value for "breaks", the character length must be great than or equal to 1.')
478
- end
479
-
480
- if !@conflicts.nil? && @conflicts.to_s.length < 1
481
- invalid_properties.push('invalid value for "conflicts", the character length must be great than or equal to 1.')
482
- end
483
-
484
- if !@depends.nil? && @depends.to_s.length < 1
485
- invalid_properties.push('invalid value for "depends", the character length must be great than or equal to 1.')
486
- end
487
-
488
- if !@recommends.nil? && @recommends.to_s.length < 1
489
- invalid_properties.push('invalid value for "recommends", the character length must be great than or equal to 1.')
490
- end
491
-
492
- if !@suggests.nil? && @suggests.to_s.length < 1
493
- invalid_properties.push('invalid value for "suggests", the character length must be great than or equal to 1.')
494
- end
495
-
496
- if !@enhances.nil? && @enhances.to_s.length < 1
497
- invalid_properties.push('invalid value for "enhances", the character length must be great than or equal to 1.')
498
- end
499
-
500
- if !@pre_depends.nil? && @pre_depends.to_s.length < 1
501
- invalid_properties.push('invalid value for "pre_depends", the character length must be great than or equal to 1.')
502
- end
503
-
504
- if !@provides.nil? && @provides.to_s.length < 1
505
- invalid_properties.push('invalid value for "provides", the character length must be great than or equal to 1.')
506
- end
507
-
508
- if !@replaces.nil? && @replaces.to_s.length < 1
509
- invalid_properties.push('invalid value for "replaces", the character length must be great than or equal to 1.')
510
- end
511
-
512
92
  invalid_properties
513
93
  end
514
94
 
515
95
  # Check to see if the all the properties in the model are valid
516
96
  # @return true if the model is valid
517
97
  def valid?
518
- return false if !@relative_path.nil? && @relative_path.to_s.length < 1
519
- return false if !@md5.nil? && @md5.to_s.length < 1
520
- return false if !@sha1.nil? && @sha1.to_s.length < 1
521
- return false if !@sha224.nil? && @sha224.to_s.length < 1
522
- return false if !@sha256.nil? && @sha256.to_s.length < 1
523
- return false if !@sha384.nil? && @sha384.to_s.length < 1
524
- return false if !@sha512.nil? && @sha512.to_s.length < 1
525
- return false if !@package.nil? && @package.to_s.length < 1
526
- return false if !@source.nil? && @source.to_s.length < 1
527
- return false if !@version.nil? && @version.to_s.length < 1
528
- return false if !@architecture.nil? && @architecture.to_s.length < 1
529
- return false if !@section.nil? && @section.to_s.length < 1
530
- return false if !@priority.nil? && @priority.to_s.length < 1
531
- return false if !@origin.nil? && @origin.to_s.length < 1
532
- return false if !@tag.nil? && @tag.to_s.length < 1
533
- return false if !@bugs.nil? && @bugs.to_s.length < 1
534
- return false if !@installed_size.nil? && @installed_size.to_s.length < 1
535
- return false if !@maintainer.nil? && @maintainer.to_s.length < 1
536
- return false if !@original_maintainer.nil? && @original_maintainer.to_s.length < 1
537
- return false if !@description.nil? && @description.to_s.length < 1
538
- return false if !@description_md5.nil? && @description_md5.to_s.length < 1
539
- return false if !@homepage.nil? && @homepage.to_s.length < 1
540
- return false if !@built_using.nil? && @built_using.to_s.length < 1
541
- return false if !@auto_built_package.nil? && @auto_built_package.to_s.length < 1
542
- return false if !@multi_arch.nil? && @multi_arch.to_s.length < 1
543
- return false if !@breaks.nil? && @breaks.to_s.length < 1
544
- return false if !@conflicts.nil? && @conflicts.to_s.length < 1
545
- return false if !@depends.nil? && @depends.to_s.length < 1
546
- return false if !@recommends.nil? && @recommends.to_s.length < 1
547
- return false if !@suggests.nil? && @suggests.to_s.length < 1
548
- return false if !@enhances.nil? && @enhances.to_s.length < 1
549
- return false if !@pre_depends.nil? && @pre_depends.to_s.length < 1
550
- return false if !@provides.nil? && @provides.to_s.length < 1
551
- return false if !@replaces.nil? && @replaces.to_s.length < 1
552
98
  true
553
99
  end
554
100
 
555
- # Custom attribute writer method with validation
556
- # @param [Object] relative_path Value to be assigned
557
- def relative_path=(relative_path)
558
- if !relative_path.nil? && relative_path.to_s.length < 1
559
- fail ArgumentError, 'invalid value for "relative_path", the character length must be great than or equal to 1.'
560
- end
561
-
562
- @relative_path = relative_path
563
- end
564
-
565
- # Custom attribute writer method with validation
566
- # @param [Object] md5 Value to be assigned
567
- def md5=(md5)
568
- if !md5.nil? && md5.to_s.length < 1
569
- fail ArgumentError, 'invalid value for "md5", the character length must be great than or equal to 1.'
570
- end
571
-
572
- @md5 = md5
573
- end
574
-
575
- # Custom attribute writer method with validation
576
- # @param [Object] sha1 Value to be assigned
577
- def sha1=(sha1)
578
- if !sha1.nil? && sha1.to_s.length < 1
579
- fail ArgumentError, 'invalid value for "sha1", the character length must be great than or equal to 1.'
580
- end
581
-
582
- @sha1 = sha1
583
- end
584
-
585
- # Custom attribute writer method with validation
586
- # @param [Object] sha224 Value to be assigned
587
- def sha224=(sha224)
588
- if !sha224.nil? && sha224.to_s.length < 1
589
- fail ArgumentError, 'invalid value for "sha224", the character length must be great than or equal to 1.'
590
- end
591
-
592
- @sha224 = sha224
593
- end
594
-
595
- # Custom attribute writer method with validation
596
- # @param [Object] sha256 Value to be assigned
597
- def sha256=(sha256)
598
- if !sha256.nil? && sha256.to_s.length < 1
599
- fail ArgumentError, 'invalid value for "sha256", the character length must be great than or equal to 1.'
600
- end
601
-
602
- @sha256 = sha256
603
- end
604
-
605
- # Custom attribute writer method with validation
606
- # @param [Object] sha384 Value to be assigned
607
- def sha384=(sha384)
608
- if !sha384.nil? && sha384.to_s.length < 1
609
- fail ArgumentError, 'invalid value for "sha384", the character length must be great than or equal to 1.'
610
- end
611
-
612
- @sha384 = sha384
613
- end
614
-
615
- # Custom attribute writer method with validation
616
- # @param [Object] sha512 Value to be assigned
617
- def sha512=(sha512)
618
- if !sha512.nil? && sha512.to_s.length < 1
619
- fail ArgumentError, 'invalid value for "sha512", the character length must be great than or equal to 1.'
620
- end
621
-
622
- @sha512 = sha512
623
- end
624
-
625
- # Custom attribute writer method with validation
626
- # @param [Object] package Value to be assigned
627
- def package=(package)
628
- if !package.nil? && package.to_s.length < 1
629
- fail ArgumentError, 'invalid value for "package", the character length must be great than or equal to 1.'
630
- end
631
-
632
- @package = package
633
- end
634
-
635
- # Custom attribute writer method with validation
636
- # @param [Object] source Value to be assigned
637
- def source=(source)
638
- if !source.nil? && source.to_s.length < 1
639
- fail ArgumentError, 'invalid value for "source", the character length must be great than or equal to 1.'
640
- end
641
-
642
- @source = source
643
- end
644
-
645
- # Custom attribute writer method with validation
646
- # @param [Object] version Value to be assigned
647
- def version=(version)
648
- if !version.nil? && version.to_s.length < 1
649
- fail ArgumentError, 'invalid value for "version", the character length must be great than or equal to 1.'
650
- end
651
-
652
- @version = version
653
- end
654
-
655
- # Custom attribute writer method with validation
656
- # @param [Object] architecture Value to be assigned
657
- def architecture=(architecture)
658
- if !architecture.nil? && architecture.to_s.length < 1
659
- fail ArgumentError, 'invalid value for "architecture", the character length must be great than or equal to 1.'
660
- end
661
-
662
- @architecture = architecture
663
- end
664
-
665
- # Custom attribute writer method with validation
666
- # @param [Object] section Value to be assigned
667
- def section=(section)
668
- if !section.nil? && section.to_s.length < 1
669
- fail ArgumentError, 'invalid value for "section", the character length must be great than or equal to 1.'
670
- end
671
-
672
- @section = section
673
- end
674
-
675
- # Custom attribute writer method with validation
676
- # @param [Object] priority Value to be assigned
677
- def priority=(priority)
678
- if !priority.nil? && priority.to_s.length < 1
679
- fail ArgumentError, 'invalid value for "priority", the character length must be great than or equal to 1.'
680
- end
681
-
682
- @priority = priority
683
- end
684
-
685
- # Custom attribute writer method with validation
686
- # @param [Object] origin Value to be assigned
687
- def origin=(origin)
688
- if !origin.nil? && origin.to_s.length < 1
689
- fail ArgumentError, 'invalid value for "origin", the character length must be great than or equal to 1.'
690
- end
691
-
692
- @origin = origin
693
- end
694
-
695
- # Custom attribute writer method with validation
696
- # @param [Object] tag Value to be assigned
697
- def tag=(tag)
698
- if !tag.nil? && tag.to_s.length < 1
699
- fail ArgumentError, 'invalid value for "tag", the character length must be great than or equal to 1.'
700
- end
701
-
702
- @tag = tag
703
- end
704
-
705
- # Custom attribute writer method with validation
706
- # @param [Object] bugs Value to be assigned
707
- def bugs=(bugs)
708
- if !bugs.nil? && bugs.to_s.length < 1
709
- fail ArgumentError, 'invalid value for "bugs", the character length must be great than or equal to 1.'
710
- end
711
-
712
- @bugs = bugs
713
- end
714
-
715
- # Custom attribute writer method with validation
716
- # @param [Object] installed_size Value to be assigned
717
- def installed_size=(installed_size)
718
- if !installed_size.nil? && installed_size.to_s.length < 1
719
- fail ArgumentError, 'invalid value for "installed_size", the character length must be great than or equal to 1.'
720
- end
721
-
722
- @installed_size = installed_size
723
- end
724
-
725
- # Custom attribute writer method with validation
726
- # @param [Object] maintainer Value to be assigned
727
- def maintainer=(maintainer)
728
- if !maintainer.nil? && maintainer.to_s.length < 1
729
- fail ArgumentError, 'invalid value for "maintainer", the character length must be great than or equal to 1.'
730
- end
731
-
732
- @maintainer = maintainer
733
- end
734
-
735
- # Custom attribute writer method with validation
736
- # @param [Object] original_maintainer Value to be assigned
737
- def original_maintainer=(original_maintainer)
738
- if !original_maintainer.nil? && original_maintainer.to_s.length < 1
739
- fail ArgumentError, 'invalid value for "original_maintainer", the character length must be great than or equal to 1.'
740
- end
741
-
742
- @original_maintainer = original_maintainer
743
- end
744
-
745
- # Custom attribute writer method with validation
746
- # @param [Object] description Value to be assigned
747
- def description=(description)
748
- if !description.nil? && description.to_s.length < 1
749
- fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
750
- end
751
-
752
- @description = description
753
- end
754
-
755
- # Custom attribute writer method with validation
756
- # @param [Object] description_md5 Value to be assigned
757
- def description_md5=(description_md5)
758
- if !description_md5.nil? && description_md5.to_s.length < 1
759
- fail ArgumentError, 'invalid value for "description_md5", the character length must be great than or equal to 1.'
760
- end
761
-
762
- @description_md5 = description_md5
763
- end
764
-
765
- # Custom attribute writer method with validation
766
- # @param [Object] homepage Value to be assigned
767
- def homepage=(homepage)
768
- if !homepage.nil? && homepage.to_s.length < 1
769
- fail ArgumentError, 'invalid value for "homepage", the character length must be great than or equal to 1.'
770
- end
771
-
772
- @homepage = homepage
773
- end
774
-
775
- # Custom attribute writer method with validation
776
- # @param [Object] built_using Value to be assigned
777
- def built_using=(built_using)
778
- if !built_using.nil? && built_using.to_s.length < 1
779
- fail ArgumentError, 'invalid value for "built_using", the character length must be great than or equal to 1.'
780
- end
781
-
782
- @built_using = built_using
783
- end
784
-
785
- # Custom attribute writer method with validation
786
- # @param [Object] auto_built_package Value to be assigned
787
- def auto_built_package=(auto_built_package)
788
- if !auto_built_package.nil? && auto_built_package.to_s.length < 1
789
- fail ArgumentError, 'invalid value for "auto_built_package", the character length must be great than or equal to 1.'
790
- end
791
-
792
- @auto_built_package = auto_built_package
793
- end
794
-
795
- # Custom attribute writer method with validation
796
- # @param [Object] multi_arch Value to be assigned
797
- def multi_arch=(multi_arch)
798
- if !multi_arch.nil? && multi_arch.to_s.length < 1
799
- fail ArgumentError, 'invalid value for "multi_arch", the character length must be great than or equal to 1.'
800
- end
801
-
802
- @multi_arch = multi_arch
803
- end
804
-
805
- # Custom attribute writer method with validation
806
- # @param [Object] breaks Value to be assigned
807
- def breaks=(breaks)
808
- if !breaks.nil? && breaks.to_s.length < 1
809
- fail ArgumentError, 'invalid value for "breaks", the character length must be great than or equal to 1.'
810
- end
811
-
812
- @breaks = breaks
813
- end
814
-
815
- # Custom attribute writer method with validation
816
- # @param [Object] conflicts Value to be assigned
817
- def conflicts=(conflicts)
818
- if !conflicts.nil? && conflicts.to_s.length < 1
819
- fail ArgumentError, 'invalid value for "conflicts", the character length must be great than or equal to 1.'
820
- end
821
-
822
- @conflicts = conflicts
823
- end
824
-
825
- # Custom attribute writer method with validation
826
- # @param [Object] depends Value to be assigned
827
- def depends=(depends)
828
- if !depends.nil? && depends.to_s.length < 1
829
- fail ArgumentError, 'invalid value for "depends", the character length must be great than or equal to 1.'
830
- end
831
-
832
- @depends = depends
833
- end
834
-
835
- # Custom attribute writer method with validation
836
- # @param [Object] recommends Value to be assigned
837
- def recommends=(recommends)
838
- if !recommends.nil? && recommends.to_s.length < 1
839
- fail ArgumentError, 'invalid value for "recommends", the character length must be great than or equal to 1.'
840
- end
841
-
842
- @recommends = recommends
843
- end
844
-
845
- # Custom attribute writer method with validation
846
- # @param [Object] suggests Value to be assigned
847
- def suggests=(suggests)
848
- if !suggests.nil? && suggests.to_s.length < 1
849
- fail ArgumentError, 'invalid value for "suggests", the character length must be great than or equal to 1.'
850
- end
851
-
852
- @suggests = suggests
853
- end
854
-
855
- # Custom attribute writer method with validation
856
- # @param [Object] enhances Value to be assigned
857
- def enhances=(enhances)
858
- if !enhances.nil? && enhances.to_s.length < 1
859
- fail ArgumentError, 'invalid value for "enhances", the character length must be great than or equal to 1.'
860
- end
861
-
862
- @enhances = enhances
863
- end
864
-
865
- # Custom attribute writer method with validation
866
- # @param [Object] pre_depends Value to be assigned
867
- def pre_depends=(pre_depends)
868
- if !pre_depends.nil? && pre_depends.to_s.length < 1
869
- fail ArgumentError, 'invalid value for "pre_depends", the character length must be great than or equal to 1.'
870
- end
871
-
872
- @pre_depends = pre_depends
873
- end
874
-
875
- # Custom attribute writer method with validation
876
- # @param [Object] provides Value to be assigned
877
- def provides=(provides)
878
- if !provides.nil? && provides.to_s.length < 1
879
- fail ArgumentError, 'invalid value for "provides", the character length must be great than or equal to 1.'
880
- end
881
-
882
- @provides = provides
883
- end
884
-
885
- # Custom attribute writer method with validation
886
- # @param [Object] replaces Value to be assigned
887
- def replaces=(replaces)
888
- if !replaces.nil? && replaces.to_s.length < 1
889
- fail ArgumentError, 'invalid value for "replaces", the character length must be great than or equal to 1.'
890
- end
891
-
892
- @replaces = replaces
893
- end
894
-
895
101
  # Checks equality by comparing each attribute.
896
102
  # @param [Object] Object to be compared
897
103
  def ==(o)
898
104
  return true if self.equal?(o)
899
105
  self.class == o.class &&
900
- pulp_href == o.pulp_href &&
901
- pulp_created == o.pulp_created &&
902
106
  artifact == o.artifact &&
903
107
  relative_path == o.relative_path &&
904
- md5 == o.md5 &&
905
- sha1 == o.sha1 &&
906
- sha224 == o.sha224 &&
907
- sha256 == o.sha256 &&
908
- sha384 == o.sha384 &&
909
- sha512 == o.sha512 &&
910
- package == o.package &&
911
- source == o.source &&
912
- version == o.version &&
913
- architecture == o.architecture &&
914
- section == o.section &&
915
- priority == o.priority &&
916
- origin == o.origin &&
917
- tag == o.tag &&
918
- bugs == o.bugs &&
919
- essential == o.essential &&
920
- build_essential == o.build_essential &&
921
- installed_size == o.installed_size &&
922
- maintainer == o.maintainer &&
923
- original_maintainer == o.original_maintainer &&
924
- description == o.description &&
925
- description_md5 == o.description_md5 &&
926
- homepage == o.homepage &&
927
- built_using == o.built_using &&
928
- auto_built_package == o.auto_built_package &&
929
- multi_arch == o.multi_arch &&
930
- breaks == o.breaks &&
931
- conflicts == o.conflicts &&
932
- depends == o.depends &&
933
- recommends == o.recommends &&
934
- suggests == o.suggests &&
935
- enhances == o.enhances &&
936
- pre_depends == o.pre_depends &&
937
- provides == o.provides &&
938
- replaces == o.replaces
108
+ file == o.file &&
109
+ repository == o.repository
939
110
  end
940
111
 
941
112
  # @see the `==` method
@@ -947,7 +118,7 @@ module PulpDebClient
947
118
  # Calculates hash code according to all attributes.
948
119
  # @return [Integer] Hash code
949
120
  def hash
950
- [pulp_href, pulp_created, artifact, relative_path, 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
121
+ [artifact, relative_path, file, repository].hash
951
122
  end
952
123
 
953
124
  # Builds the object from hash