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.
Files changed (128) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +32 -18
  3. data/docs/ContentGenericContentsApi.md +12 -4
  4. data/docs/ContentInstallerFileIndexApi.md +20 -8
  5. data/docs/ContentInstallerPackagesApi.md +42 -4
  6. data/docs/ContentPackageIndexApi.md +20 -8
  7. data/docs/ContentPackagesApi.md +46 -6
  8. data/docs/{ContentReleasesApi.md → ContentReleaseFilesApi.md} +44 -32
  9. data/docs/ContentSummary.md +21 -0
  10. data/docs/{InstallerPackage.md → DebBasePackage.md} +40 -46
  11. data/docs/{DebDistribution.md → DebDebDistribution.md} +6 -6
  12. data/docs/{DebPublication.md → DebDebPublication.md} +5 -7
  13. data/docs/{DebRemote.md → DebDebRemote.md} +15 -21
  14. data/docs/DebDebRepository.md +27 -0
  15. data/docs/{GenericContent.md → DebGenericContent.md} +11 -17
  16. data/docs/{InstallerFileIndex.md → DebInstallerFileIndex.md} +5 -7
  17. data/docs/{PackageIndex.md → DebPackageIndex.md} +5 -7
  18. data/docs/{Release.md → DebReleaseFile.md} +5 -7
  19. data/docs/{VerbatimPublication.md → DebVerbatimPublication.md} +5 -7
  20. data/docs/DistributionsAptApi.md +16 -12
  21. data/docs/InlineResponse200.md +1 -1
  22. data/docs/InlineResponse2001.md +1 -1
  23. data/docs/InlineResponse20010.md +23 -0
  24. data/docs/InlineResponse2002.md +1 -1
  25. data/docs/InlineResponse2003.md +1 -1
  26. data/docs/InlineResponse2004.md +1 -1
  27. data/docs/InlineResponse2005.md +1 -1
  28. data/docs/InlineResponse2006.md +1 -1
  29. data/docs/InlineResponse2007.md +1 -1
  30. data/docs/InlineResponse2008.md +1 -1
  31. data/docs/InlineResponse2009.md +1 -1
  32. data/docs/PublicationsAptApi.md +12 -8
  33. data/docs/PublicationsVerbatimApi.md +12 -8
  34. data/docs/RemotesAptApi.md +30 -81
  35. data/docs/RepositoriesAptApi.md +465 -0
  36. data/docs/RepositoriesDebVersionsApi.md +214 -0
  37. data/docs/RepositoryAddRemoveContent.md +21 -0
  38. data/docs/RepositorySyncURL.md +2 -2
  39. data/docs/RepositoryVersion.md +25 -0
  40. data/lib/pulp_deb_client/api/content_generic_contents_api.rb +16 -4
  41. data/lib/pulp_deb_client/api/content_installer_file_index_api.rb +27 -9
  42. data/lib/pulp_deb_client/api/content_installer_packages_api.rb +61 -4
  43. data/lib/pulp_deb_client/api/content_package_index_api.rb +27 -9
  44. data/lib/pulp_deb_client/api/content_packages_api.rb +67 -7
  45. data/lib/pulp_deb_client/api/{content_releases_api.rb → content_release_files_api.rb} +61 -43
  46. data/lib/pulp_deb_client/api/distributions_apt_api.rb +19 -13
  47. data/lib/pulp_deb_client/api/publications_apt_api.rb +15 -9
  48. data/lib/pulp_deb_client/api/publications_verbatim_api.rb +15 -9
  49. data/lib/pulp_deb_client/api/remotes_apt_api.rb +40 -102
  50. data/lib/pulp_deb_client/api/repositories_apt_api.rb +568 -0
  51. data/lib/pulp_deb_client/api/repositories_deb_versions_api.rb +268 -0
  52. data/lib/pulp_deb_client/api_client.rb +1 -1
  53. data/lib/pulp_deb_client/api_error.rb +1 -1
  54. data/lib/pulp_deb_client/configuration.rb +1 -1
  55. data/lib/pulp_deb_client/models/async_operation_response.rb +12 -2
  56. data/lib/pulp_deb_client/models/content_summary.rb +246 -0
  57. data/lib/pulp_deb_client/models/{package.rb → deb_base_package.rb} +28 -62
  58. data/lib/pulp_deb_client/models/{deb_distribution.rb → deb_deb_distribution.rb} +30 -36
  59. data/lib/pulp_deb_client/models/{deb_publication.rb → deb_deb_publication.rb} +29 -42
  60. data/lib/pulp_deb_client/models/{deb_remote.rb → deb_deb_remote.rb} +87 -147
  61. data/lib/pulp_deb_client/models/deb_deb_repository.rb +294 -0
  62. data/lib/pulp_deb_client/models/{generic_content.rb → deb_generic_content.rb} +28 -62
  63. data/lib/pulp_deb_client/models/{installer_file_index.rb → deb_installer_file_index.rb} +28 -42
  64. data/lib/pulp_deb_client/models/{package_index.rb → deb_package_index.rb} +28 -42
  65. data/lib/pulp_deb_client/models/{release.rb → deb_release_file.rb} +28 -42
  66. data/lib/pulp_deb_client/models/{verbatim_publication.rb → deb_verbatim_publication.rb} +29 -42
  67. data/lib/pulp_deb_client/models/inline_response200.rb +15 -3
  68. data/lib/pulp_deb_client/models/inline_response2001.rb +15 -3
  69. data/lib/pulp_deb_client/models/inline_response20010.rb +247 -0
  70. data/lib/pulp_deb_client/models/inline_response2002.rb +15 -3
  71. data/lib/pulp_deb_client/models/inline_response2003.rb +15 -3
  72. data/lib/pulp_deb_client/models/inline_response2004.rb +15 -3
  73. data/lib/pulp_deb_client/models/inline_response2005.rb +15 -3
  74. data/lib/pulp_deb_client/models/inline_response2006.rb +15 -3
  75. data/lib/pulp_deb_client/models/inline_response2007.rb +15 -3
  76. data/lib/pulp_deb_client/models/inline_response2008.rb +15 -3
  77. data/lib/pulp_deb_client/models/inline_response2009.rb +15 -3
  78. data/lib/pulp_deb_client/models/repository_add_remove_content.rb +231 -0
  79. data/lib/pulp_deb_client/models/repository_sync_url.rb +22 -12
  80. data/lib/pulp_deb_client/models/repository_version.rb +244 -0
  81. data/lib/pulp_deb_client/version.rb +2 -2
  82. data/lib/pulp_deb_client.rb +18 -12
  83. data/pulp_deb_client.gemspec +1 -1
  84. data/spec/api/content_generic_contents_api_spec.rb +6 -2
  85. data/spec/api/content_installer_file_index_api_spec.rb +9 -3
  86. data/spec/api/content_installer_packages_api_spec.rb +21 -2
  87. data/spec/api/content_package_index_api_spec.rb +9 -3
  88. data/spec/api/content_packages_api_spec.rb +23 -3
  89. data/spec/api/{content_releases_api_spec.rb → content_release_files_api_spec.rb} +23 -17
  90. data/spec/api/distributions_apt_api_spec.rb +5 -3
  91. data/spec/api/publications_apt_api_spec.rb +5 -3
  92. data/spec/api/publications_verbatim_api_spec.rb +5 -3
  93. data/spec/api/remotes_apt_api_spec.rb +12 -22
  94. data/spec/api/repositories_apt_api_spec.rb +141 -0
  95. data/spec/api/repositories_deb_versions_api_spec.rb +91 -0
  96. data/spec/api_client_spec.rb +2 -2
  97. data/spec/configuration_spec.rb +1 -1
  98. data/spec/models/async_operation_response_spec.rb +1 -1
  99. data/spec/models/content_summary_spec.rb +53 -0
  100. data/spec/models/{package_spec.rb → deb_base_package_spec.rb} +9 -27
  101. data/spec/models/{deb_distribution_spec.rb → deb_deb_distribution_spec.rb} +9 -9
  102. data/spec/models/{deb_publication_spec.rb → deb_deb_publication_spec.rb} +9 -15
  103. data/spec/models/{deb_remote_spec.rb → deb_deb_remote_spec.rb} +14 -32
  104. data/spec/models/{verbatim_publication_spec.rb → deb_deb_repository_spec.rb} +13 -13
  105. data/spec/models/{generic_content_spec.rb → deb_generic_content_spec.rb} +9 -27
  106. data/spec/models/{package_index_spec.rb → deb_installer_file_index_spec.rb} +9 -15
  107. data/spec/models/{installer_file_index_spec.rb → deb_package_index_spec.rb} +9 -15
  108. data/spec/models/{release_spec.rb → deb_release_file_spec.rb} +9 -15
  109. data/spec/models/deb_verbatim_publication_spec.rb +65 -0
  110. data/spec/models/inline_response20010_spec.rb +59 -0
  111. data/spec/models/inline_response2001_spec.rb +1 -1
  112. data/spec/models/inline_response2002_spec.rb +1 -1
  113. data/spec/models/inline_response2003_spec.rb +1 -1
  114. data/spec/models/inline_response2004_spec.rb +1 -1
  115. data/spec/models/inline_response2005_spec.rb +1 -1
  116. data/spec/models/inline_response2006_spec.rb +1 -1
  117. data/spec/models/inline_response2007_spec.rb +1 -1
  118. data/spec/models/inline_response2008_spec.rb +1 -1
  119. data/spec/models/inline_response2009_spec.rb +1 -1
  120. data/spec/models/inline_response200_spec.rb +1 -1
  121. data/spec/models/repository_add_remove_content_spec.rb +53 -0
  122. data/spec/models/repository_sync_url_spec.rb +2 -2
  123. data/spec/models/repository_version_spec.rb +65 -0
  124. data/spec/spec_helper.rb +1 -1
  125. metadata +70 -46
  126. data/docs/Package.md +0 -99
  127. data/lib/pulp_deb_client/models/installer_package.rb +0 -1101
  128. data/spec/models/installer_package_spec.rb +0 -287
@@ -6,20 +6,18 @@
6
6
  The version of the OpenAPI document: v3
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.1.3-SNAPSHOT
9
+ OpenAPI Generator version: 4.2.1-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
14
 
15
15
  module PulpDebClient
16
- class DebRemote
17
- attr_accessor :_href
16
+ class DebDebRemote
17
+ attr_accessor :pulp_href
18
18
 
19
19
  # Timestamp of creation.
20
- attr_accessor :_created
21
-
22
- attr_accessor :_type
20
+ attr_accessor :pulp_created
23
21
 
24
22
  # A unique name for this remote.
25
23
  attr_accessor :name
@@ -28,28 +26,22 @@ module PulpDebClient
28
26
  attr_accessor :url
29
27
 
30
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. Returns SHA256 sum on GET.
31
- attr_accessor :ssl_ca_certificate
29
+ attr_accessor :ca_cert
32
30
 
33
31
  # A string containing the PEM encoded client certificate used for authentication. All new line characters must be escaped. Returns SHA256 sum on GET.
34
- attr_accessor :ssl_client_certificate
32
+ attr_accessor :client_cert
35
33
 
36
34
  # A PEM encoded private key used for authentication. Returns SHA256 sum on GET.
37
- attr_accessor :ssl_client_key
35
+ attr_accessor :client_key
38
36
 
39
- # If True, SSL peer validation must be performed.
40
- attr_accessor :ssl_validation
37
+ # If True, TLS peer validation must be performed.
38
+ attr_accessor :tls_validation
41
39
 
42
40
  # The proxy URL. Format: scheme://user:password@host:port
43
41
  attr_accessor :proxy_url
44
42
 
45
- # The username to be used for authentication when syncing.
46
- attr_accessor :username
47
-
48
- # The password to be used for authentication when syncing.
49
- attr_accessor :password
50
-
51
43
  # Timestamp of the most recent update of the remote.
52
- attr_accessor :_last_updated
44
+ attr_accessor :pulp_last_updated
53
45
 
54
46
  # Total number of simultaneous connections.
55
47
  attr_accessor :download_concurrency
@@ -100,19 +92,16 @@ module PulpDebClient
100
92
  # Attribute mapping from ruby-style variable name to JSON key.
101
93
  def self.attribute_map
102
94
  {
103
- :'_href' => :'_href',
104
- :'_created' => :'_created',
105
- :'_type' => :'_type',
95
+ :'pulp_href' => :'pulp_href',
96
+ :'pulp_created' => :'pulp_created',
106
97
  :'name' => :'name',
107
98
  :'url' => :'url',
108
- :'ssl_ca_certificate' => :'ssl_ca_certificate',
109
- :'ssl_client_certificate' => :'ssl_client_certificate',
110
- :'ssl_client_key' => :'ssl_client_key',
111
- :'ssl_validation' => :'ssl_validation',
99
+ :'ca_cert' => :'ca_cert',
100
+ :'client_cert' => :'client_cert',
101
+ :'client_key' => :'client_key',
102
+ :'tls_validation' => :'tls_validation',
112
103
  :'proxy_url' => :'proxy_url',
113
- :'username' => :'username',
114
- :'password' => :'password',
115
- :'_last_updated' => :'_last_updated',
104
+ :'pulp_last_updated' => :'pulp_last_updated',
116
105
  :'download_concurrency' => :'download_concurrency',
117
106
  :'policy' => :'policy',
118
107
  :'distributions' => :'distributions',
@@ -127,19 +116,16 @@ module PulpDebClient
127
116
  # Attribute type mapping.
128
117
  def self.openapi_types
129
118
  {
130
- :'_href' => :'String',
131
- :'_created' => :'DateTime',
132
- :'_type' => :'String',
119
+ :'pulp_href' => :'String',
120
+ :'pulp_created' => :'DateTime',
133
121
  :'name' => :'String',
134
122
  :'url' => :'String',
135
- :'ssl_ca_certificate' => :'String',
136
- :'ssl_client_certificate' => :'String',
137
- :'ssl_client_key' => :'String',
138
- :'ssl_validation' => :'Boolean',
123
+ :'ca_cert' => :'String',
124
+ :'client_cert' => :'String',
125
+ :'client_key' => :'String',
126
+ :'tls_validation' => :'Boolean',
139
127
  :'proxy_url' => :'String',
140
- :'username' => :'String',
141
- :'password' => :'String',
142
- :'_last_updated' => :'DateTime',
128
+ :'pulp_last_updated' => :'DateTime',
143
129
  :'download_concurrency' => :'Integer',
144
130
  :'policy' => :'String',
145
131
  :'distributions' => :'String',
@@ -151,31 +137,37 @@ module PulpDebClient
151
137
  }
152
138
  end
153
139
 
140
+ # List of attributes with nullable: true
141
+ def self.openapi_nullable
142
+ Set.new([
143
+ :'ca_cert',
144
+ :'client_cert',
145
+ :'client_key',
146
+ :'proxy_url',
147
+ ])
148
+ end
149
+
154
150
  # Initializes the object
155
151
  # @param [Hash] attributes Model attributes in the form of hash
156
152
  def initialize(attributes = {})
157
153
  if (!attributes.is_a?(Hash))
158
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpDebClient::DebRemote` initialize method"
154
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpDebClient::DebDebRemote` initialize method"
159
155
  end
160
156
 
161
157
  # check to see if the attribute exists and convert string to symbol for hash key
162
158
  attributes = attributes.each_with_object({}) { |(k, v), h|
163
159
  if (!self.class.attribute_map.key?(k.to_sym))
164
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpDebClient::DebRemote`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
160
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpDebClient::DebDebRemote`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
165
161
  end
166
162
  h[k.to_sym] = v
167
163
  }
168
164
 
169
- if attributes.key?(:'_href')
170
- self._href = attributes[:'_href']
165
+ if attributes.key?(:'pulp_href')
166
+ self.pulp_href = attributes[:'pulp_href']
171
167
  end
172
168
 
173
- if attributes.key?(:'_created')
174
- self._created = attributes[:'_created']
175
- end
176
-
177
- if attributes.key?(:'_type')
178
- self._type = attributes[:'_type']
169
+ if attributes.key?(:'pulp_created')
170
+ self.pulp_created = attributes[:'pulp_created']
179
171
  end
180
172
 
181
173
  if attributes.key?(:'name')
@@ -186,36 +178,28 @@ module PulpDebClient
186
178
  self.url = attributes[:'url']
187
179
  end
188
180
 
189
- if attributes.key?(:'ssl_ca_certificate')
190
- self.ssl_ca_certificate = attributes[:'ssl_ca_certificate']
181
+ if attributes.key?(:'ca_cert')
182
+ self.ca_cert = attributes[:'ca_cert']
191
183
  end
192
184
 
193
- if attributes.key?(:'ssl_client_certificate')
194
- self.ssl_client_certificate = attributes[:'ssl_client_certificate']
185
+ if attributes.key?(:'client_cert')
186
+ self.client_cert = attributes[:'client_cert']
195
187
  end
196
188
 
197
- if attributes.key?(:'ssl_client_key')
198
- self.ssl_client_key = attributes[:'ssl_client_key']
189
+ if attributes.key?(:'client_key')
190
+ self.client_key = attributes[:'client_key']
199
191
  end
200
192
 
201
- if attributes.key?(:'ssl_validation')
202
- self.ssl_validation = attributes[:'ssl_validation']
193
+ if attributes.key?(:'tls_validation')
194
+ self.tls_validation = attributes[:'tls_validation']
203
195
  end
204
196
 
205
197
  if attributes.key?(:'proxy_url')
206
198
  self.proxy_url = attributes[:'proxy_url']
207
199
  end
208
200
 
209
- if attributes.key?(:'username')
210
- self.username = attributes[:'username']
211
- end
212
-
213
- if attributes.key?(:'password')
214
- self.password = attributes[:'password']
215
- end
216
-
217
- if attributes.key?(:'_last_updated')
218
- self._last_updated = attributes[:'_last_updated']
201
+ if attributes.key?(:'pulp_last_updated')
202
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
219
203
  end
220
204
 
221
205
  if attributes.key?(:'download_concurrency')
@@ -257,10 +241,6 @@ module PulpDebClient
257
241
  # @return Array for valid properties with the reasons
258
242
  def list_invalid_properties
259
243
  invalid_properties = Array.new
260
- if !@_type.nil? && @_type.to_s.length < 1
261
- invalid_properties.push('invalid value for "_type", the character length must be great than or equal to 1.')
262
- end
263
-
264
244
  if @name.nil?
265
245
  invalid_properties.push('invalid value for "name", name cannot be nil.')
266
246
  end
@@ -277,30 +257,22 @@ module PulpDebClient
277
257
  invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
278
258
  end
279
259
 
280
- if !@ssl_ca_certificate.nil? && @ssl_ca_certificate.to_s.length < 1
281
- invalid_properties.push('invalid value for "ssl_ca_certificate", the character length must be great than or equal to 1.')
260
+ if !@ca_cert.nil? && @ca_cert.to_s.length < 1
261
+ invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
282
262
  end
283
263
 
284
- if !@ssl_client_certificate.nil? && @ssl_client_certificate.to_s.length < 1
285
- invalid_properties.push('invalid value for "ssl_client_certificate", the character length must be great than or equal to 1.')
264
+ if !@client_cert.nil? && @client_cert.to_s.length < 1
265
+ invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
286
266
  end
287
267
 
288
- if !@ssl_client_key.nil? && @ssl_client_key.to_s.length < 1
289
- invalid_properties.push('invalid value for "ssl_client_key", the character length must be great than or equal to 1.')
268
+ if !@client_key.nil? && @client_key.to_s.length < 1
269
+ invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
290
270
  end
291
271
 
292
272
  if !@proxy_url.nil? && @proxy_url.to_s.length < 1
293
273
  invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
294
274
  end
295
275
 
296
- if !@username.nil? && @username.to_s.length < 1
297
- invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
298
- end
299
-
300
- if !@password.nil? && @password.to_s.length < 1
301
- invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
302
- end
303
-
304
276
  if !@download_concurrency.nil? && @download_concurrency < 1
305
277
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
306
278
  end
@@ -327,17 +299,14 @@ module PulpDebClient
327
299
  # Check to see if the all the properties in the model are valid
328
300
  # @return true if the model is valid
329
301
  def valid?
330
- return false if !@_type.nil? && @_type.to_s.length < 1
331
302
  return false if @name.nil?
332
303
  return false if @name.to_s.length < 1
333
304
  return false if @url.nil?
334
305
  return false if @url.to_s.length < 1
335
- return false if !@ssl_ca_certificate.nil? && @ssl_ca_certificate.to_s.length < 1
336
- return false if !@ssl_client_certificate.nil? && @ssl_client_certificate.to_s.length < 1
337
- return false if !@ssl_client_key.nil? && @ssl_client_key.to_s.length < 1
306
+ return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
307
+ return false if !@client_cert.nil? && @client_cert.to_s.length < 1
308
+ return false if !@client_key.nil? && @client_key.to_s.length < 1
338
309
  return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
339
- return false if !@username.nil? && @username.to_s.length < 1
340
- return false if !@password.nil? && @password.to_s.length < 1
341
310
  return false if !@download_concurrency.nil? && @download_concurrency < 1
342
311
  policy_validator = EnumAttributeValidator.new('String', ["immediate", "on_demand", "streamed"])
343
312
  return false unless policy_validator.valid?(@policy)
@@ -348,16 +317,6 @@ module PulpDebClient
348
317
  true
349
318
  end
350
319
 
351
- # Custom attribute writer method with validation
352
- # @param [Object] _type Value to be assigned
353
- def _type=(_type)
354
- if !_type.nil? && _type.to_s.length < 1
355
- fail ArgumentError, 'invalid value for "_type", the character length must be great than or equal to 1.'
356
- end
357
-
358
- @_type = _type
359
- end
360
-
361
320
  # Custom attribute writer method with validation
362
321
  # @param [Object] name Value to be assigned
363
322
  def name=(name)
@@ -387,33 +346,33 @@ module PulpDebClient
387
346
  end
388
347
 
389
348
  # Custom attribute writer method with validation
390
- # @param [Object] ssl_ca_certificate Value to be assigned
391
- def ssl_ca_certificate=(ssl_ca_certificate)
392
- if !ssl_ca_certificate.nil? && ssl_ca_certificate.to_s.length < 1
393
- fail ArgumentError, 'invalid value for "ssl_ca_certificate", the character length must be great than or equal to 1.'
349
+ # @param [Object] ca_cert Value to be assigned
350
+ def ca_cert=(ca_cert)
351
+ if !ca_cert.nil? && ca_cert.to_s.length < 1
352
+ fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
394
353
  end
395
354
 
396
- @ssl_ca_certificate = ssl_ca_certificate
355
+ @ca_cert = ca_cert
397
356
  end
398
357
 
399
358
  # Custom attribute writer method with validation
400
- # @param [Object] ssl_client_certificate Value to be assigned
401
- def ssl_client_certificate=(ssl_client_certificate)
402
- if !ssl_client_certificate.nil? && ssl_client_certificate.to_s.length < 1
403
- fail ArgumentError, 'invalid value for "ssl_client_certificate", the character length must be great than or equal to 1.'
359
+ # @param [Object] client_cert Value to be assigned
360
+ def client_cert=(client_cert)
361
+ if !client_cert.nil? && client_cert.to_s.length < 1
362
+ fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
404
363
  end
405
364
 
406
- @ssl_client_certificate = ssl_client_certificate
365
+ @client_cert = client_cert
407
366
  end
408
367
 
409
368
  # Custom attribute writer method with validation
410
- # @param [Object] ssl_client_key Value to be assigned
411
- def ssl_client_key=(ssl_client_key)
412
- if !ssl_client_key.nil? && ssl_client_key.to_s.length < 1
413
- fail ArgumentError, 'invalid value for "ssl_client_key", the character length must be great than or equal to 1.'
369
+ # @param [Object] client_key Value to be assigned
370
+ def client_key=(client_key)
371
+ if !client_key.nil? && client_key.to_s.length < 1
372
+ fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
414
373
  end
415
374
 
416
- @ssl_client_key = ssl_client_key
375
+ @client_key = client_key
417
376
  end
418
377
 
419
378
  # Custom attribute writer method with validation
@@ -426,26 +385,6 @@ module PulpDebClient
426
385
  @proxy_url = proxy_url
427
386
  end
428
387
 
429
- # Custom attribute writer method with validation
430
- # @param [Object] username Value to be assigned
431
- def username=(username)
432
- if !username.nil? && username.to_s.length < 1
433
- fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
434
- end
435
-
436
- @username = username
437
- end
438
-
439
- # Custom attribute writer method with validation
440
- # @param [Object] password Value to be assigned
441
- def password=(password)
442
- if !password.nil? && password.to_s.length < 1
443
- fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
444
- end
445
-
446
- @password = password
447
- end
448
-
449
388
  # Custom attribute writer method with validation
450
389
  # @param [Object] download_concurrency Value to be assigned
451
390
  def download_concurrency=(download_concurrency)
@@ -505,19 +444,16 @@ module PulpDebClient
505
444
  def ==(o)
506
445
  return true if self.equal?(o)
507
446
  self.class == o.class &&
508
- _href == o._href &&
509
- _created == o._created &&
510
- _type == o._type &&
447
+ pulp_href == o.pulp_href &&
448
+ pulp_created == o.pulp_created &&
511
449
  name == o.name &&
512
450
  url == o.url &&
513
- ssl_ca_certificate == o.ssl_ca_certificate &&
514
- ssl_client_certificate == o.ssl_client_certificate &&
515
- ssl_client_key == o.ssl_client_key &&
516
- ssl_validation == o.ssl_validation &&
451
+ ca_cert == o.ca_cert &&
452
+ client_cert == o.client_cert &&
453
+ client_key == o.client_key &&
454
+ tls_validation == o.tls_validation &&
517
455
  proxy_url == o.proxy_url &&
518
- username == o.username &&
519
- password == o.password &&
520
- _last_updated == o._last_updated &&
456
+ pulp_last_updated == o.pulp_last_updated &&
521
457
  download_concurrency == o.download_concurrency &&
522
458
  policy == o.policy &&
523
459
  distributions == o.distributions &&
@@ -537,7 +473,7 @@ module PulpDebClient
537
473
  # Calculates hash code according to all attributes.
538
474
  # @return [Integer] Hash code
539
475
  def hash
540
- [_href, _created, _type, name, url, ssl_ca_certificate, ssl_client_certificate, ssl_client_key, ssl_validation, proxy_url, username, password, _last_updated, download_concurrency, policy, distributions, components, architectures, sync_sources, sync_udebs, sync_installer].hash
476
+ [pulp_href, pulp_created, name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, pulp_last_updated, download_concurrency, policy, distributions, components, architectures, sync_sources, sync_udebs, sync_installer].hash
541
477
  end
542
478
 
543
479
  # Builds the object from hash
@@ -626,7 +562,11 @@ module PulpDebClient
626
562
  hash = {}
627
563
  self.class.attribute_map.each_pair do |attr, param|
628
564
  value = self.send(attr)
629
- next if value.nil?
565
+ if value.nil?
566
+ is_nullable = self.class.openapi_nullable.include?(attr)
567
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
568
+ end
569
+
630
570
  hash[param] = _to_hash(value)
631
571
  end
632
572
  hash