pulp_deb_client 2.5.0b1 → 2.6.0b1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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,22 +13,18 @@ OpenAPI Generator version: 4.2.3
13
13
  require 'date'
14
14
 
15
15
  module PulpDebClient
16
+ # A Serializer for AptRemote.
16
17
  class DebAptRemote
17
- attr_accessor :pulp_href
18
-
19
- # Timestamp of creation.
20
- attr_accessor :pulp_created
21
-
22
18
  # A unique name for this remote.
23
19
  attr_accessor :name
24
20
 
25
21
  # The URL of an external content source.
26
22
  attr_accessor :url
27
23
 
28
- # A string containing the PEM encoded CA certificate used to validate the server certificate presented by the remote server. All new line characters must be escaped.
24
+ # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
29
25
  attr_accessor :ca_cert
30
26
 
31
- # A string containing the PEM encoded client certificate used for authentication. All new line characters must be escaped.
27
+ # A PEM encoded client certificate used for authentication.
32
28
  attr_accessor :client_cert
33
29
 
34
30
  # A PEM encoded private key used for authentication.
@@ -46,9 +42,6 @@ module PulpDebClient
46
42
  # The password to be used for authentication when syncing.
47
43
  attr_accessor :password
48
44
 
49
- # Timestamp of the most recent update of the remote.
50
- attr_accessor :pulp_last_updated
51
-
52
45
  # Total number of simultaneous connections.
53
46
  attr_accessor :download_concurrency
54
47
 
@@ -76,33 +69,9 @@ module PulpDebClient
76
69
  # Gpg public key to verify origin releases against
77
70
  attr_accessor :gpgkey
78
71
 
79
- class EnumAttributeValidator
80
- attr_reader :datatype
81
- attr_reader :allowable_values
82
-
83
- def initialize(datatype, allowable_values)
84
- @allowable_values = allowable_values.map do |value|
85
- case datatype.to_s
86
- when /Integer/i
87
- value.to_i
88
- when /Float/i
89
- value.to_f
90
- else
91
- value
92
- end
93
- end
94
- end
95
-
96
- def valid?(value)
97
- !value || allowable_values.include?(value)
98
- end
99
- end
100
-
101
72
  # Attribute mapping from ruby-style variable name to JSON key.
102
73
  def self.attribute_map
103
74
  {
104
- :'pulp_href' => :'pulp_href',
105
- :'pulp_created' => :'pulp_created',
106
75
  :'name' => :'name',
107
76
  :'url' => :'url',
108
77
  :'ca_cert' => :'ca_cert',
@@ -112,7 +81,6 @@ module PulpDebClient
112
81
  :'proxy_url' => :'proxy_url',
113
82
  :'username' => :'username',
114
83
  :'password' => :'password',
115
- :'pulp_last_updated' => :'pulp_last_updated',
116
84
  :'download_concurrency' => :'download_concurrency',
117
85
  :'policy' => :'policy',
118
86
  :'distributions' => :'distributions',
@@ -128,8 +96,6 @@ module PulpDebClient
128
96
  # Attribute type mapping.
129
97
  def self.openapi_types
130
98
  {
131
- :'pulp_href' => :'String',
132
- :'pulp_created' => :'DateTime',
133
99
  :'name' => :'String',
134
100
  :'url' => :'String',
135
101
  :'ca_cert' => :'String',
@@ -139,9 +105,8 @@ module PulpDebClient
139
105
  :'proxy_url' => :'String',
140
106
  :'username' => :'String',
141
107
  :'password' => :'String',
142
- :'pulp_last_updated' => :'DateTime',
143
108
  :'download_concurrency' => :'Integer',
144
- :'policy' => :'String',
109
+ :'policy' => :'PolicyEnum',
145
110
  :'distributions' => :'String',
146
111
  :'components' => :'String',
147
112
  :'architectures' => :'String',
@@ -182,14 +147,6 @@ module PulpDebClient
182
147
  h[k.to_sym] = v
183
148
  }
184
149
 
185
- if attributes.key?(:'pulp_href')
186
- self.pulp_href = attributes[:'pulp_href']
187
- end
188
-
189
- if attributes.key?(:'pulp_created')
190
- self.pulp_created = attributes[:'pulp_created']
191
- end
192
-
193
150
  if attributes.key?(:'name')
194
151
  self.name = attributes[:'name']
195
152
  end
@@ -226,18 +183,12 @@ module PulpDebClient
226
183
  self.password = attributes[:'password']
227
184
  end
228
185
 
229
- if attributes.key?(:'pulp_last_updated')
230
- self.pulp_last_updated = attributes[:'pulp_last_updated']
231
- end
232
-
233
186
  if attributes.key?(:'download_concurrency')
234
187
  self.download_concurrency = attributes[:'download_concurrency']
235
188
  end
236
189
 
237
190
  if attributes.key?(:'policy')
238
191
  self.policy = attributes[:'policy']
239
- else
240
- self.policy = 'immediate'
241
192
  end
242
193
 
243
194
  if attributes.key?(:'distributions')
@@ -277,42 +228,10 @@ module PulpDebClient
277
228
  invalid_properties.push('invalid value for "name", name cannot be nil.')
278
229
  end
279
230
 
280
- if @name.to_s.length < 1
281
- invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
282
- end
283
-
284
231
  if @url.nil?
285
232
  invalid_properties.push('invalid value for "url", url cannot be nil.')
286
233
  end
287
234
 
288
- if @url.to_s.length < 1
289
- invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
290
- end
291
-
292
- if !@ca_cert.nil? && @ca_cert.to_s.length < 1
293
- invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
294
- end
295
-
296
- if !@client_cert.nil? && @client_cert.to_s.length < 1
297
- invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
298
- end
299
-
300
- if !@client_key.nil? && @client_key.to_s.length < 1
301
- invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
302
- end
303
-
304
- if !@proxy_url.nil? && @proxy_url.to_s.length < 1
305
- invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
306
- end
307
-
308
- if !@username.nil? && @username.to_s.length < 1
309
- invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
310
- end
311
-
312
- if !@password.nil? && @password.to_s.length < 1
313
- invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
314
- end
315
-
316
235
  if !@download_concurrency.nil? && @download_concurrency < 1
317
236
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
318
237
  end
@@ -321,22 +240,6 @@ module PulpDebClient
321
240
  invalid_properties.push('invalid value for "distributions", distributions cannot be nil.')
322
241
  end
323
242
 
324
- if @distributions.to_s.length < 1
325
- invalid_properties.push('invalid value for "distributions", the character length must be great than or equal to 1.')
326
- end
327
-
328
- if !@components.nil? && @components.to_s.length < 1
329
- invalid_properties.push('invalid value for "components", the character length must be great than or equal to 1.')
330
- end
331
-
332
- if !@architectures.nil? && @architectures.to_s.length < 1
333
- invalid_properties.push('invalid value for "architectures", the character length must be great than or equal to 1.')
334
- end
335
-
336
- if !@gpgkey.nil? && @gpgkey.to_s.length < 1
337
- invalid_properties.push('invalid value for "gpgkey", the character length must be great than or equal to 1.')
338
- end
339
-
340
243
  invalid_properties
341
244
  end
342
245
 
@@ -344,114 +247,12 @@ module PulpDebClient
344
247
  # @return true if the model is valid
345
248
  def valid?
346
249
  return false if @name.nil?
347
- return false if @name.to_s.length < 1
348
250
  return false if @url.nil?
349
- return false if @url.to_s.length < 1
350
- return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
351
- return false if !@client_cert.nil? && @client_cert.to_s.length < 1
352
- return false if !@client_key.nil? && @client_key.to_s.length < 1
353
- return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
354
- return false if !@username.nil? && @username.to_s.length < 1
355
- return false if !@password.nil? && @password.to_s.length < 1
356
251
  return false if !@download_concurrency.nil? && @download_concurrency < 1
357
- policy_validator = EnumAttributeValidator.new('String', ["immediate", "on_demand", "streamed"])
358
- return false unless policy_validator.valid?(@policy)
359
252
  return false if @distributions.nil?
360
- return false if @distributions.to_s.length < 1
361
- return false if !@components.nil? && @components.to_s.length < 1
362
- return false if !@architectures.nil? && @architectures.to_s.length < 1
363
- return false if !@gpgkey.nil? && @gpgkey.to_s.length < 1
364
253
  true
365
254
  end
366
255
 
367
- # Custom attribute writer method with validation
368
- # @param [Object] name Value to be assigned
369
- def name=(name)
370
- if name.nil?
371
- fail ArgumentError, 'name cannot be nil'
372
- end
373
-
374
- if name.to_s.length < 1
375
- fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
376
- end
377
-
378
- @name = name
379
- end
380
-
381
- # Custom attribute writer method with validation
382
- # @param [Object] url Value to be assigned
383
- def url=(url)
384
- if url.nil?
385
- fail ArgumentError, 'url cannot be nil'
386
- end
387
-
388
- if url.to_s.length < 1
389
- fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
390
- end
391
-
392
- @url = url
393
- end
394
-
395
- # Custom attribute writer method with validation
396
- # @param [Object] ca_cert Value to be assigned
397
- def ca_cert=(ca_cert)
398
- if !ca_cert.nil? && ca_cert.to_s.length < 1
399
- fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
400
- end
401
-
402
- @ca_cert = ca_cert
403
- end
404
-
405
- # Custom attribute writer method with validation
406
- # @param [Object] client_cert Value to be assigned
407
- def client_cert=(client_cert)
408
- if !client_cert.nil? && client_cert.to_s.length < 1
409
- fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
410
- end
411
-
412
- @client_cert = client_cert
413
- end
414
-
415
- # Custom attribute writer method with validation
416
- # @param [Object] client_key Value to be assigned
417
- def client_key=(client_key)
418
- if !client_key.nil? && client_key.to_s.length < 1
419
- fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
420
- end
421
-
422
- @client_key = client_key
423
- end
424
-
425
- # Custom attribute writer method with validation
426
- # @param [Object] proxy_url Value to be assigned
427
- def proxy_url=(proxy_url)
428
- if !proxy_url.nil? && proxy_url.to_s.length < 1
429
- fail ArgumentError, 'invalid value for "proxy_url", the character length must be great than or equal to 1.'
430
- end
431
-
432
- @proxy_url = proxy_url
433
- end
434
-
435
- # Custom attribute writer method with validation
436
- # @param [Object] username Value to be assigned
437
- def username=(username)
438
- if !username.nil? && username.to_s.length < 1
439
- fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
440
- end
441
-
442
- @username = username
443
- end
444
-
445
- # Custom attribute writer method with validation
446
- # @param [Object] password Value to be assigned
447
- def password=(password)
448
- if !password.nil? && password.to_s.length < 1
449
- fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
450
- end
451
-
452
- @password = password
453
- end
454
-
455
256
  # Custom attribute writer method with validation
456
257
  # @param [Object] download_concurrency Value to be assigned
457
258
  def download_concurrency=(download_concurrency)
@@ -462,67 +263,11 @@ module PulpDebClient
462
263
  @download_concurrency = download_concurrency
463
264
  end
464
265
 
465
- # Custom attribute writer method checking allowed values (enum).
466
- # @param [Object] policy Object to be assigned
467
- def policy=(policy)
468
- validator = EnumAttributeValidator.new('String', ["immediate", "on_demand", "streamed"])
469
- unless validator.valid?(policy)
470
- fail ArgumentError, "invalid value for \"policy\", must be one of #{validator.allowable_values}."
471
- end
472
- @policy = policy
473
- end
474
-
475
- # Custom attribute writer method with validation
476
- # @param [Object] distributions Value to be assigned
477
- def distributions=(distributions)
478
- if distributions.nil?
479
- fail ArgumentError, 'distributions cannot be nil'
480
- end
481
-
482
- if distributions.to_s.length < 1
483
- fail ArgumentError, 'invalid value for "distributions", the character length must be great than or equal to 1.'
484
- end
485
-
486
- @distributions = distributions
487
- end
488
-
489
- # Custom attribute writer method with validation
490
- # @param [Object] components Value to be assigned
491
- def components=(components)
492
- if !components.nil? && components.to_s.length < 1
493
- fail ArgumentError, 'invalid value for "components", the character length must be great than or equal to 1.'
494
- end
495
-
496
- @components = components
497
- end
498
-
499
- # Custom attribute writer method with validation
500
- # @param [Object] architectures Value to be assigned
501
- def architectures=(architectures)
502
- if !architectures.nil? && architectures.to_s.length < 1
503
- fail ArgumentError, 'invalid value for "architectures", the character length must be great than or equal to 1.'
504
- end
505
-
506
- @architectures = architectures
507
- end
508
-
509
- # Custom attribute writer method with validation
510
- # @param [Object] gpgkey Value to be assigned
511
- def gpgkey=(gpgkey)
512
- if !gpgkey.nil? && gpgkey.to_s.length < 1
513
- fail ArgumentError, 'invalid value for "gpgkey", the character length must be great than or equal to 1.'
514
- end
515
-
516
- @gpgkey = gpgkey
517
- end
518
-
519
266
  # Checks equality by comparing each attribute.
520
267
  # @param [Object] Object to be compared
521
268
  def ==(o)
522
269
  return true if self.equal?(o)
523
270
  self.class == o.class &&
524
- pulp_href == o.pulp_href &&
525
- pulp_created == o.pulp_created &&
526
271
  name == o.name &&
527
272
  url == o.url &&
528
273
  ca_cert == o.ca_cert &&
@@ -532,7 +277,6 @@ module PulpDebClient
532
277
  proxy_url == o.proxy_url &&
533
278
  username == o.username &&
534
279
  password == o.password &&
535
- pulp_last_updated == o.pulp_last_updated &&
536
280
  download_concurrency == o.download_concurrency &&
537
281
  policy == o.policy &&
538
282
  distributions == o.distributions &&
@@ -553,7 +297,7 @@ module PulpDebClient
553
297
  # Calculates hash code according to all attributes.
554
298
  # @return [Integer] Hash code
555
299
  def hash
556
- [pulp_href, pulp_created, name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, pulp_last_updated, download_concurrency, policy, distributions, components, architectures, sync_sources, sync_udebs, sync_installer, gpgkey].hash
300
+ [name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, download_concurrency, policy, distributions, components, architectures, sync_sources, sync_udebs, sync_installer, gpgkey].hash
557
301
  end
558
302
 
559
303
  # Builds the object from hash