pulp_deb_client 2.3.0b1 → 2.4.0b1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (133) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +21 -8
  3. data/docs/ContentGenericContentsApi.md +5 -5
  4. data/docs/ContentInstallerFileIndicesApi.md +5 -5
  5. data/docs/ContentInstallerPackagesApi.md +5 -5
  6. data/docs/ContentPackageIndicesApi.md +5 -5
  7. data/docs/ContentPackageReleaseComponentsApi.md +5 -5
  8. data/docs/ContentPackagesApi.md +5 -5
  9. data/docs/ContentReleaseArchitecturesApi.md +5 -5
  10. data/docs/ContentReleaseComponentsApi.md +5 -5
  11. data/docs/ContentReleaseFilesApi.md +5 -5
  12. data/docs/ContentReleasesApi.md +5 -5
  13. data/docs/{DebBasePackage.md → DebBasePackageRead.md} +2 -2
  14. data/docs/DebDebDistributionRead.md +29 -0
  15. data/docs/DebDebPublicationRead.md +29 -0
  16. data/docs/DebDebRemote.md +7 -3
  17. data/docs/DebDebRemoteRead.md +57 -0
  18. data/docs/DebDebRepositoryRead.md +27 -0
  19. data/docs/{DebGenericContent.md → DebGenericContentRead.md} +2 -2
  20. data/docs/DebInstallerFileIndexRead.md +29 -0
  21. data/docs/DebPackageIndexRead.md +29 -0
  22. data/docs/DebPackageReleaseComponentRead.md +23 -0
  23. data/docs/DebReleaseArchitectureRead.md +23 -0
  24. data/docs/DebReleaseComponentRead.md +23 -0
  25. data/docs/DebReleaseFileRead.md +29 -0
  26. data/docs/DebReleaseRead.md +25 -0
  27. data/docs/DebVerbatimPublicationRead.md +23 -0
  28. data/docs/DistributionsAptApi.md +3 -3
  29. data/docs/InlineResponse200.md +1 -1
  30. data/docs/InlineResponse2001.md +1 -1
  31. data/docs/InlineResponse20010.md +1 -1
  32. data/docs/InlineResponse20011.md +1 -1
  33. data/docs/InlineResponse20012.md +1 -1
  34. data/docs/InlineResponse20013.md +1 -1
  35. data/docs/InlineResponse20014.md +1 -1
  36. data/docs/InlineResponse2002.md +1 -1
  37. data/docs/InlineResponse2003.md +1 -1
  38. data/docs/InlineResponse2004.md +1 -1
  39. data/docs/InlineResponse2005.md +1 -1
  40. data/docs/InlineResponse2006.md +1 -1
  41. data/docs/InlineResponse2007.md +1 -1
  42. data/docs/InlineResponse2008.md +1 -1
  43. data/docs/InlineResponse2009.md +1 -1
  44. data/docs/PublicationsAptApi.md +3 -3
  45. data/docs/PublicationsVerbatimApi.md +3 -3
  46. data/docs/RemotesAptApi.md +5 -5
  47. data/docs/RepositoriesAptApi.md +10 -10
  48. data/docs/RepositoriesDebVersionsApi.md +3 -3
  49. data/docs/RepositoryVersionRead.md +25 -0
  50. data/lib/pulp_deb_client/api/content_generic_contents_api.rb +5 -5
  51. data/lib/pulp_deb_client/api/content_installer_file_indices_api.rb +6 -6
  52. data/lib/pulp_deb_client/api/content_installer_packages_api.rb +5 -5
  53. data/lib/pulp_deb_client/api/content_package_indices_api.rb +6 -6
  54. data/lib/pulp_deb_client/api/content_package_release_components_api.rb +6 -6
  55. data/lib/pulp_deb_client/api/content_packages_api.rb +5 -5
  56. data/lib/pulp_deb_client/api/content_release_architectures_api.rb +6 -6
  57. data/lib/pulp_deb_client/api/content_release_components_api.rb +6 -6
  58. data/lib/pulp_deb_client/api/content_release_files_api.rb +6 -6
  59. data/lib/pulp_deb_client/api/content_releases_api.rb +6 -6
  60. data/lib/pulp_deb_client/api/distributions_apt_api.rb +3 -3
  61. data/lib/pulp_deb_client/api/publications_apt_api.rb +3 -3
  62. data/lib/pulp_deb_client/api/publications_verbatim_api.rb +3 -3
  63. data/lib/pulp_deb_client/api/remotes_apt_api.rb +6 -6
  64. data/lib/pulp_deb_client/api/repositories_apt_api.rb +15 -15
  65. data/lib/pulp_deb_client/api/repositories_deb_versions_api.rb +3 -3
  66. data/lib/pulp_deb_client/configuration.rb +2 -2
  67. data/lib/pulp_deb_client/models/{deb_base_package.rb → deb_base_package_read.rb} +3 -3
  68. data/lib/pulp_deb_client/models/deb_deb_distribution_read.rb +331 -0
  69. data/lib/pulp_deb_client/models/deb_deb_publication_read.rb +269 -0
  70. data/lib/pulp_deb_client/models/deb_deb_remote.rb +56 -4
  71. data/lib/pulp_deb_client/models/deb_deb_remote_read.rb +670 -0
  72. data/lib/pulp_deb_client/models/deb_deb_repository_read.rb +294 -0
  73. data/lib/pulp_deb_client/models/{deb_generic_content.rb → deb_generic_content_read.rb} +3 -3
  74. data/lib/pulp_deb_client/models/deb_installer_file_index_read.rb +341 -0
  75. data/lib/pulp_deb_client/models/deb_package_index_read.rb +341 -0
  76. data/lib/pulp_deb_client/models/deb_package_release_component_read.rb +246 -0
  77. data/lib/pulp_deb_client/models/deb_release_architecture_read.rb +265 -0
  78. data/lib/pulp_deb_client/models/deb_release_component_read.rb +265 -0
  79. data/lib/pulp_deb_client/models/deb_release_file_read.rb +342 -0
  80. data/lib/pulp_deb_client/models/deb_release_read.rb +315 -0
  81. data/lib/pulp_deb_client/models/deb_verbatim_publication_read.rb +235 -0
  82. data/lib/pulp_deb_client/models/inline_response200.rb +1 -1
  83. data/lib/pulp_deb_client/models/inline_response2001.rb +1 -1
  84. data/lib/pulp_deb_client/models/inline_response20010.rb +1 -1
  85. data/lib/pulp_deb_client/models/inline_response20011.rb +1 -1
  86. data/lib/pulp_deb_client/models/inline_response20012.rb +1 -1
  87. data/lib/pulp_deb_client/models/inline_response20013.rb +1 -1
  88. data/lib/pulp_deb_client/models/inline_response20014.rb +1 -1
  89. data/lib/pulp_deb_client/models/inline_response2002.rb +1 -1
  90. data/lib/pulp_deb_client/models/inline_response2003.rb +1 -1
  91. data/lib/pulp_deb_client/models/inline_response2004.rb +1 -1
  92. data/lib/pulp_deb_client/models/inline_response2005.rb +1 -1
  93. data/lib/pulp_deb_client/models/inline_response2006.rb +1 -1
  94. data/lib/pulp_deb_client/models/inline_response2007.rb +1 -1
  95. data/lib/pulp_deb_client/models/inline_response2008.rb +1 -1
  96. data/lib/pulp_deb_client/models/inline_response2009.rb +1 -1
  97. data/lib/pulp_deb_client/models/repository_version_read.rb +244 -0
  98. data/lib/pulp_deb_client/version.rb +1 -1
  99. data/lib/pulp_deb_client.rb +15 -2
  100. data/spec/api/content_generic_contents_api_spec.rb +2 -2
  101. data/spec/api/content_installer_file_indices_api_spec.rb +2 -2
  102. data/spec/api/content_installer_packages_api_spec.rb +2 -2
  103. data/spec/api/content_package_indices_api_spec.rb +2 -2
  104. data/spec/api/content_package_release_components_api_spec.rb +2 -2
  105. data/spec/api/content_packages_api_spec.rb +2 -2
  106. data/spec/api/content_release_architectures_api_spec.rb +2 -2
  107. data/spec/api/content_release_components_api_spec.rb +2 -2
  108. data/spec/api/content_release_files_api_spec.rb +2 -2
  109. data/spec/api/content_releases_api_spec.rb +2 -2
  110. data/spec/api/distributions_apt_api_spec.rb +1 -1
  111. data/spec/api/publications_apt_api_spec.rb +1 -1
  112. data/spec/api/publications_verbatim_api_spec.rb +1 -1
  113. data/spec/api/remotes_apt_api_spec.rb +2 -2
  114. data/spec/api/repositories_apt_api_spec.rb +6 -6
  115. data/spec/api/repositories_deb_versions_api_spec.rb +1 -1
  116. data/spec/configuration_spec.rb +3 -3
  117. data/spec/models/{deb_base_package_spec.rb → deb_base_package_read_spec.rb} +6 -6
  118. data/spec/models/deb_deb_distribution_read_spec.rb +77 -0
  119. data/spec/models/deb_deb_publication_read_spec.rb +77 -0
  120. data/spec/models/deb_deb_remote_read_spec.rb +165 -0
  121. data/spec/models/deb_deb_remote_spec.rb +12 -0
  122. data/spec/models/deb_deb_repository_read_spec.rb +71 -0
  123. data/spec/models/{deb_generic_content_spec.rb → deb_generic_content_read_spec.rb} +6 -6
  124. data/spec/models/deb_installer_file_index_read_spec.rb +77 -0
  125. data/spec/models/deb_package_index_read_spec.rb +77 -0
  126. data/spec/models/deb_package_release_component_read_spec.rb +59 -0
  127. data/spec/models/deb_release_architecture_read_spec.rb +59 -0
  128. data/spec/models/deb_release_component_read_spec.rb +59 -0
  129. data/spec/models/deb_release_file_read_spec.rb +77 -0
  130. data/spec/models/deb_release_read_spec.rb +65 -0
  131. data/spec/models/deb_verbatim_publication_read_spec.rb +59 -0
  132. data/spec/models/repository_version_read_spec.rb +65 -0
  133. metadata +62 -10
@@ -0,0 +1,269 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: v3
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.2.3
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module PulpDebClient
16
+ class DebDebPublicationRead
17
+ attr_accessor :pulp_href
18
+
19
+ # Timestamp of creation.
20
+ attr_accessor :pulp_created
21
+
22
+ attr_accessor :repository_version
23
+
24
+ # A URI of the repository to be published.
25
+ attr_accessor :repository
26
+
27
+ # Activate simple publishing mode (all packages in one release component).
28
+ attr_accessor :simple
29
+
30
+ # Activate structured publishing mode.
31
+ attr_accessor :structured
32
+
33
+ # Sign Release files with this signing key
34
+ attr_accessor :signing_service
35
+
36
+ # Attribute mapping from ruby-style variable name to JSON key.
37
+ def self.attribute_map
38
+ {
39
+ :'pulp_href' => :'pulp_href',
40
+ :'pulp_created' => :'pulp_created',
41
+ :'repository_version' => :'repository_version',
42
+ :'repository' => :'repository',
43
+ :'simple' => :'simple',
44
+ :'structured' => :'structured',
45
+ :'signing_service' => :'signing_service'
46
+ }
47
+ end
48
+
49
+ # Attribute type mapping.
50
+ def self.openapi_types
51
+ {
52
+ :'pulp_href' => :'String',
53
+ :'pulp_created' => :'DateTime',
54
+ :'repository_version' => :'String',
55
+ :'repository' => :'String',
56
+ :'simple' => :'Boolean',
57
+ :'structured' => :'Boolean',
58
+ :'signing_service' => :'String'
59
+ }
60
+ end
61
+
62
+ # List of attributes with nullable: true
63
+ def self.openapi_nullable
64
+ Set.new([
65
+ ])
66
+ end
67
+
68
+ # Initializes the object
69
+ # @param [Hash] attributes Model attributes in the form of hash
70
+ def initialize(attributes = {})
71
+ if (!attributes.is_a?(Hash))
72
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpDebClient::DebDebPublicationRead` initialize method"
73
+ end
74
+
75
+ # check to see if the attribute exists and convert string to symbol for hash key
76
+ attributes = attributes.each_with_object({}) { |(k, v), h|
77
+ if (!self.class.attribute_map.key?(k.to_sym))
78
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpDebClient::DebDebPublicationRead`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
79
+ end
80
+ h[k.to_sym] = v
81
+ }
82
+
83
+ if attributes.key?(:'pulp_href')
84
+ self.pulp_href = attributes[:'pulp_href']
85
+ end
86
+
87
+ if attributes.key?(:'pulp_created')
88
+ self.pulp_created = attributes[:'pulp_created']
89
+ end
90
+
91
+ if attributes.key?(:'repository_version')
92
+ self.repository_version = attributes[:'repository_version']
93
+ end
94
+
95
+ if attributes.key?(:'repository')
96
+ self.repository = attributes[:'repository']
97
+ end
98
+
99
+ if attributes.key?(:'simple')
100
+ self.simple = attributes[:'simple']
101
+ else
102
+ self.simple = false
103
+ end
104
+
105
+ if attributes.key?(:'structured')
106
+ self.structured = attributes[:'structured']
107
+ else
108
+ self.structured = false
109
+ end
110
+
111
+ if attributes.key?(:'signing_service')
112
+ self.signing_service = attributes[:'signing_service']
113
+ end
114
+ end
115
+
116
+ # Show invalid properties with the reasons. Usually used together with valid?
117
+ # @return Array for valid properties with the reasons
118
+ def list_invalid_properties
119
+ invalid_properties = Array.new
120
+ invalid_properties
121
+ end
122
+
123
+ # Check to see if the all the properties in the model are valid
124
+ # @return true if the model is valid
125
+ def valid?
126
+ true
127
+ end
128
+
129
+ # Checks equality by comparing each attribute.
130
+ # @param [Object] Object to be compared
131
+ def ==(o)
132
+ return true if self.equal?(o)
133
+ self.class == o.class &&
134
+ pulp_href == o.pulp_href &&
135
+ pulp_created == o.pulp_created &&
136
+ repository_version == o.repository_version &&
137
+ repository == o.repository &&
138
+ simple == o.simple &&
139
+ structured == o.structured &&
140
+ signing_service == o.signing_service
141
+ end
142
+
143
+ # @see the `==` method
144
+ # @param [Object] Object to be compared
145
+ def eql?(o)
146
+ self == o
147
+ end
148
+
149
+ # Calculates hash code according to all attributes.
150
+ # @return [Integer] Hash code
151
+ def hash
152
+ [pulp_href, pulp_created, repository_version, repository, simple, structured, signing_service].hash
153
+ end
154
+
155
+ # Builds the object from hash
156
+ # @param [Hash] attributes Model attributes in the form of hash
157
+ # @return [Object] Returns the model itself
158
+ def self.build_from_hash(attributes)
159
+ new.build_from_hash(attributes)
160
+ end
161
+
162
+ # Builds the object from hash
163
+ # @param [Hash] attributes Model attributes in the form of hash
164
+ # @return [Object] Returns the model itself
165
+ def build_from_hash(attributes)
166
+ return nil unless attributes.is_a?(Hash)
167
+ self.class.openapi_types.each_pair do |key, type|
168
+ if type =~ /\AArray<(.*)>/i
169
+ # check to ensure the input is an array given that the attribute
170
+ # is documented as an array but the input is not
171
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
172
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
173
+ end
174
+ elsif !attributes[self.class.attribute_map[key]].nil?
175
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
176
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
177
+ end
178
+
179
+ self
180
+ end
181
+
182
+ # Deserializes the data based on type
183
+ # @param string type Data type
184
+ # @param string value Value to be deserialized
185
+ # @return [Object] Deserialized data
186
+ def _deserialize(type, value)
187
+ case type.to_sym
188
+ when :DateTime
189
+ DateTime.parse(value)
190
+ when :Date
191
+ Date.parse(value)
192
+ when :String
193
+ value.to_s
194
+ when :Integer
195
+ value.to_i
196
+ when :Float
197
+ value.to_f
198
+ when :Boolean
199
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
200
+ true
201
+ else
202
+ false
203
+ end
204
+ when :Object
205
+ # generic object (usually a Hash), return directly
206
+ value
207
+ when /\AArray<(?<inner_type>.+)>\z/
208
+ inner_type = Regexp.last_match[:inner_type]
209
+ value.map { |v| _deserialize(inner_type, v) }
210
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
211
+ k_type = Regexp.last_match[:k_type]
212
+ v_type = Regexp.last_match[:v_type]
213
+ {}.tap do |hash|
214
+ value.each do |k, v|
215
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
216
+ end
217
+ end
218
+ else # model
219
+ PulpDebClient.const_get(type).build_from_hash(value)
220
+ end
221
+ end
222
+
223
+ # Returns the string representation of the object
224
+ # @return [String] String presentation of the object
225
+ def to_s
226
+ to_hash.to_s
227
+ end
228
+
229
+ # to_body is an alias to to_hash (backward compatibility)
230
+ # @return [Hash] Returns the object in the form of hash
231
+ def to_body
232
+ to_hash
233
+ end
234
+
235
+ # Returns the object in the form of hash
236
+ # @return [Hash] Returns the object in the form of hash
237
+ def to_hash
238
+ hash = {}
239
+ self.class.attribute_map.each_pair do |attr, param|
240
+ value = self.send(attr)
241
+ if value.nil?
242
+ is_nullable = self.class.openapi_nullable.include?(attr)
243
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
244
+ end
245
+
246
+ hash[param] = _to_hash(value)
247
+ end
248
+ hash
249
+ end
250
+
251
+ # Outputs non-array value in the form of hash
252
+ # For object, use to_hash. Otherwise, just return the value
253
+ # @param [Object] value Any valid value
254
+ # @return [Hash] Returns the value in the form of hash
255
+ def _to_hash(value)
256
+ if value.is_a?(Array)
257
+ value.compact.map { |v| _to_hash(v) }
258
+ elsif value.is_a?(Hash)
259
+ {}.tap do |hash|
260
+ value.each { |k, v| hash[k] = _to_hash(v) }
261
+ end
262
+ elsif value.respond_to? :to_hash
263
+ value.to_hash
264
+ else
265
+ value
266
+ end
267
+ end
268
+ end
269
+ end
@@ -25,13 +25,13 @@ module PulpDebClient
25
25
  # The URL of an external content source.
26
26
  attr_accessor :url
27
27
 
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 checksum of the certificate file on GET.
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.
29
29
  attr_accessor :ca_cert
30
30
 
31
- # A string containing the PEM encoded client certificate used for authentication. All new line characters must be escaped. Returns SHA256 checksum of the certificate file on GET.
31
+ # A string containing the PEM encoded client certificate used for authentication. All new line characters must be escaped.
32
32
  attr_accessor :client_cert
33
33
 
34
- # A PEM encoded private key used for authentication. Returns SHA256 checksum of the certificate file on GET.
34
+ # A PEM encoded private key used for authentication.
35
35
  attr_accessor :client_key
36
36
 
37
37
  # If True, TLS peer validation must be performed.
@@ -40,6 +40,12 @@ module PulpDebClient
40
40
  # The proxy URL. Format: scheme://user:password@host:port
41
41
  attr_accessor :proxy_url
42
42
 
43
+ # The username to be used for authentication when syncing.
44
+ attr_accessor :username
45
+
46
+ # The password to be used for authentication when syncing.
47
+ attr_accessor :password
48
+
43
49
  # Timestamp of the most recent update of the remote.
44
50
  attr_accessor :pulp_last_updated
45
51
 
@@ -104,6 +110,8 @@ module PulpDebClient
104
110
  :'client_key' => :'client_key',
105
111
  :'tls_validation' => :'tls_validation',
106
112
  :'proxy_url' => :'proxy_url',
113
+ :'username' => :'username',
114
+ :'password' => :'password',
107
115
  :'pulp_last_updated' => :'pulp_last_updated',
108
116
  :'download_concurrency' => :'download_concurrency',
109
117
  :'policy' => :'policy',
@@ -129,6 +137,8 @@ module PulpDebClient
129
137
  :'client_key' => :'String',
130
138
  :'tls_validation' => :'Boolean',
131
139
  :'proxy_url' => :'String',
140
+ :'username' => :'String',
141
+ :'password' => :'String',
132
142
  :'pulp_last_updated' => :'DateTime',
133
143
  :'download_concurrency' => :'Integer',
134
144
  :'policy' => :'String',
@@ -149,6 +159,8 @@ module PulpDebClient
149
159
  :'client_cert',
150
160
  :'client_key',
151
161
  :'proxy_url',
162
+ :'username',
163
+ :'password',
152
164
  ])
153
165
  end
154
166
 
@@ -203,6 +215,14 @@ module PulpDebClient
203
215
  self.proxy_url = attributes[:'proxy_url']
204
216
  end
205
217
 
218
+ if attributes.key?(:'username')
219
+ self.username = attributes[:'username']
220
+ end
221
+
222
+ if attributes.key?(:'password')
223
+ self.password = attributes[:'password']
224
+ end
225
+
206
226
  if attributes.key?(:'pulp_last_updated')
207
227
  self.pulp_last_updated = attributes[:'pulp_last_updated']
208
228
  end
@@ -282,6 +302,14 @@ module PulpDebClient
282
302
  invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
283
303
  end
284
304
 
305
+ if !@username.nil? && @username.to_s.length < 1
306
+ invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
307
+ end
308
+
309
+ if !@password.nil? && @password.to_s.length < 1
310
+ invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
311
+ end
312
+
285
313
  if !@download_concurrency.nil? && @download_concurrency < 1
286
314
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
287
315
  end
@@ -320,6 +348,8 @@ module PulpDebClient
320
348
  return false if !@client_cert.nil? && @client_cert.to_s.length < 1
321
349
  return false if !@client_key.nil? && @client_key.to_s.length < 1
322
350
  return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
351
+ return false if !@username.nil? && @username.to_s.length < 1
352
+ return false if !@password.nil? && @password.to_s.length < 1
323
353
  return false if !@download_concurrency.nil? && @download_concurrency < 1
324
354
  policy_validator = EnumAttributeValidator.new('String', ["immediate", "on_demand", "streamed"])
325
355
  return false unless policy_validator.valid?(@policy)
@@ -399,6 +429,26 @@ module PulpDebClient
399
429
  @proxy_url = proxy_url
400
430
  end
401
431
 
432
+ # Custom attribute writer method with validation
433
+ # @param [Object] username Value to be assigned
434
+ def username=(username)
435
+ if !username.nil? && username.to_s.length < 1
436
+ fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
437
+ end
438
+
439
+ @username = username
440
+ end
441
+
442
+ # Custom attribute writer method with validation
443
+ # @param [Object] password Value to be assigned
444
+ def password=(password)
445
+ if !password.nil? && password.to_s.length < 1
446
+ fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
447
+ end
448
+
449
+ @password = password
450
+ end
451
+
402
452
  # Custom attribute writer method with validation
403
453
  # @param [Object] download_concurrency Value to be assigned
404
454
  def download_concurrency=(download_concurrency)
@@ -477,6 +527,8 @@ module PulpDebClient
477
527
  client_key == o.client_key &&
478
528
  tls_validation == o.tls_validation &&
479
529
  proxy_url == o.proxy_url &&
530
+ username == o.username &&
531
+ password == o.password &&
480
532
  pulp_last_updated == o.pulp_last_updated &&
481
533
  download_concurrency == o.download_concurrency &&
482
534
  policy == o.policy &&
@@ -498,7 +550,7 @@ module PulpDebClient
498
550
  # Calculates hash code according to all attributes.
499
551
  # @return [Integer] Hash code
500
552
  def hash
501
- [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, gpgkey].hash
553
+ [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
502
554
  end
503
555
 
504
556
  # Builds the object from hash