pulp_deb_client 2.0.0b2 → 2.0.0b3
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.
- checksums.yaml +4 -4
- data/README.md +32 -18
- data/docs/ContentGenericContentsApi.md +12 -4
- data/docs/ContentInstallerFileIndexApi.md +20 -8
- data/docs/ContentInstallerPackagesApi.md +42 -4
- data/docs/ContentPackageIndexApi.md +20 -8
- data/docs/ContentPackagesApi.md +46 -6
- data/docs/{ContentReleasesApi.md → ContentReleaseFilesApi.md} +44 -32
- data/docs/ContentSummary.md +21 -0
- data/docs/{InstallerPackage.md → DebBasePackage.md} +40 -46
- data/docs/{DebDistribution.md → DebDebDistribution.md} +6 -6
- data/docs/{DebPublication.md → DebDebPublication.md} +5 -7
- data/docs/{DebRemote.md → DebDebRemote.md} +15 -21
- data/docs/DebDebRepository.md +27 -0
- data/docs/{GenericContent.md → DebGenericContent.md} +11 -17
- data/docs/{InstallerFileIndex.md → DebInstallerFileIndex.md} +5 -7
- data/docs/{PackageIndex.md → DebPackageIndex.md} +5 -7
- data/docs/{Release.md → DebReleaseFile.md} +5 -7
- data/docs/{VerbatimPublication.md → DebVerbatimPublication.md} +5 -7
- data/docs/DistributionsAptApi.md +16 -12
- data/docs/InlineResponse200.md +1 -1
- data/docs/InlineResponse2001.md +1 -1
- data/docs/InlineResponse20010.md +23 -0
- data/docs/InlineResponse2002.md +1 -1
- data/docs/InlineResponse2003.md +1 -1
- data/docs/InlineResponse2004.md +1 -1
- data/docs/InlineResponse2005.md +1 -1
- data/docs/InlineResponse2006.md +1 -1
- data/docs/InlineResponse2007.md +1 -1
- data/docs/InlineResponse2008.md +1 -1
- data/docs/InlineResponse2009.md +1 -1
- data/docs/PublicationsAptApi.md +12 -8
- data/docs/PublicationsVerbatimApi.md +12 -8
- data/docs/RemotesAptApi.md +30 -81
- data/docs/RepositoriesAptApi.md +465 -0
- data/docs/RepositoriesDebVersionsApi.md +214 -0
- data/docs/RepositoryAddRemoveContent.md +21 -0
- data/docs/RepositorySyncURL.md +2 -2
- data/docs/RepositoryVersion.md +25 -0
- data/lib/pulp_deb_client/api/content_generic_contents_api.rb +16 -4
- data/lib/pulp_deb_client/api/content_installer_file_index_api.rb +27 -9
- data/lib/pulp_deb_client/api/content_installer_packages_api.rb +61 -4
- data/lib/pulp_deb_client/api/content_package_index_api.rb +27 -9
- data/lib/pulp_deb_client/api/content_packages_api.rb +67 -7
- data/lib/pulp_deb_client/api/{content_releases_api.rb → content_release_files_api.rb} +61 -43
- data/lib/pulp_deb_client/api/distributions_apt_api.rb +19 -13
- data/lib/pulp_deb_client/api/publications_apt_api.rb +15 -9
- data/lib/pulp_deb_client/api/publications_verbatim_api.rb +15 -9
- data/lib/pulp_deb_client/api/remotes_apt_api.rb +40 -102
- data/lib/pulp_deb_client/api/repositories_apt_api.rb +568 -0
- data/lib/pulp_deb_client/api/repositories_deb_versions_api.rb +268 -0
- data/lib/pulp_deb_client/api_client.rb +1 -1
- data/lib/pulp_deb_client/api_error.rb +1 -1
- data/lib/pulp_deb_client/configuration.rb +1 -1
- data/lib/pulp_deb_client/models/async_operation_response.rb +12 -2
- data/lib/pulp_deb_client/models/content_summary.rb +246 -0
- data/lib/pulp_deb_client/models/{package.rb → deb_base_package.rb} +28 -62
- data/lib/pulp_deb_client/models/{deb_distribution.rb → deb_deb_distribution.rb} +30 -36
- data/lib/pulp_deb_client/models/{deb_publication.rb → deb_deb_publication.rb} +29 -42
- data/lib/pulp_deb_client/models/{deb_remote.rb → deb_deb_remote.rb} +87 -147
- data/lib/pulp_deb_client/models/deb_deb_repository.rb +294 -0
- data/lib/pulp_deb_client/models/{generic_content.rb → deb_generic_content.rb} +28 -62
- data/lib/pulp_deb_client/models/{installer_file_index.rb → deb_installer_file_index.rb} +28 -42
- data/lib/pulp_deb_client/models/{package_index.rb → deb_package_index.rb} +28 -42
- data/lib/pulp_deb_client/models/{release.rb → deb_release_file.rb} +28 -42
- data/lib/pulp_deb_client/models/{verbatim_publication.rb → deb_verbatim_publication.rb} +29 -42
- data/lib/pulp_deb_client/models/inline_response200.rb +15 -3
- data/lib/pulp_deb_client/models/inline_response2001.rb +15 -3
- data/lib/pulp_deb_client/models/inline_response20010.rb +247 -0
- data/lib/pulp_deb_client/models/inline_response2002.rb +15 -3
- data/lib/pulp_deb_client/models/inline_response2003.rb +15 -3
- data/lib/pulp_deb_client/models/inline_response2004.rb +15 -3
- data/lib/pulp_deb_client/models/inline_response2005.rb +15 -3
- data/lib/pulp_deb_client/models/inline_response2006.rb +15 -3
- data/lib/pulp_deb_client/models/inline_response2007.rb +15 -3
- data/lib/pulp_deb_client/models/inline_response2008.rb +15 -3
- data/lib/pulp_deb_client/models/inline_response2009.rb +15 -3
- data/lib/pulp_deb_client/models/repository_add_remove_content.rb +231 -0
- data/lib/pulp_deb_client/models/repository_sync_url.rb +22 -12
- data/lib/pulp_deb_client/models/repository_version.rb +244 -0
- data/lib/pulp_deb_client/version.rb +2 -2
- data/lib/pulp_deb_client.rb +18 -12
- data/pulp_deb_client.gemspec +1 -1
- data/spec/api/content_generic_contents_api_spec.rb +6 -2
- data/spec/api/content_installer_file_index_api_spec.rb +9 -3
- data/spec/api/content_installer_packages_api_spec.rb +21 -2
- data/spec/api/content_package_index_api_spec.rb +9 -3
- data/spec/api/content_packages_api_spec.rb +23 -3
- data/spec/api/{content_releases_api_spec.rb → content_release_files_api_spec.rb} +23 -17
- data/spec/api/distributions_apt_api_spec.rb +5 -3
- data/spec/api/publications_apt_api_spec.rb +5 -3
- data/spec/api/publications_verbatim_api_spec.rb +5 -3
- data/spec/api/remotes_apt_api_spec.rb +12 -22
- data/spec/api/repositories_apt_api_spec.rb +141 -0
- data/spec/api/repositories_deb_versions_api_spec.rb +91 -0
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/async_operation_response_spec.rb +1 -1
- data/spec/models/content_summary_spec.rb +53 -0
- data/spec/models/{package_spec.rb → deb_base_package_spec.rb} +9 -27
- data/spec/models/{deb_distribution_spec.rb → deb_deb_distribution_spec.rb} +9 -9
- data/spec/models/{deb_publication_spec.rb → deb_deb_publication_spec.rb} +9 -15
- data/spec/models/{deb_remote_spec.rb → deb_deb_remote_spec.rb} +14 -32
- data/spec/models/{verbatim_publication_spec.rb → deb_deb_repository_spec.rb} +13 -13
- data/spec/models/{generic_content_spec.rb → deb_generic_content_spec.rb} +9 -27
- data/spec/models/{package_index_spec.rb → deb_installer_file_index_spec.rb} +9 -15
- data/spec/models/{installer_file_index_spec.rb → deb_package_index_spec.rb} +9 -15
- data/spec/models/{release_spec.rb → deb_release_file_spec.rb} +9 -15
- data/spec/models/deb_verbatim_publication_spec.rb +65 -0
- data/spec/models/inline_response20010_spec.rb +59 -0
- data/spec/models/inline_response2001_spec.rb +1 -1
- data/spec/models/inline_response2002_spec.rb +1 -1
- data/spec/models/inline_response2003_spec.rb +1 -1
- data/spec/models/inline_response2004_spec.rb +1 -1
- data/spec/models/inline_response2005_spec.rb +1 -1
- data/spec/models/inline_response2006_spec.rb +1 -1
- data/spec/models/inline_response2007_spec.rb +1 -1
- data/spec/models/inline_response2008_spec.rb +1 -1
- data/spec/models/inline_response2009_spec.rb +1 -1
- data/spec/models/inline_response200_spec.rb +1 -1
- data/spec/models/repository_add_remove_content_spec.rb +53 -0
- data/spec/models/repository_sync_url_spec.rb +2 -2
- data/spec/models/repository_version_spec.rb +65 -0
- data/spec/spec_helper.rb +1 -1
- metadata +70 -46
- data/docs/Package.md +0 -99
- data/lib/pulp_deb_client/models/installer_package.rb +0 -1101
- data/spec/models/installer_package_spec.rb +0 -287
|
@@ -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
|
|
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
|
|
17
|
-
attr_accessor :
|
|
16
|
+
class DebDebRemote
|
|
17
|
+
attr_accessor :pulp_href
|
|
18
18
|
|
|
19
19
|
# Timestamp of creation.
|
|
20
|
-
attr_accessor :
|
|
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 :
|
|
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 :
|
|
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 :
|
|
35
|
+
attr_accessor :client_key
|
|
38
36
|
|
|
39
|
-
# If True,
|
|
40
|
-
attr_accessor :
|
|
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 :
|
|
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
|
-
:'
|
|
104
|
-
:'
|
|
105
|
-
:'_type' => :'_type',
|
|
95
|
+
:'pulp_href' => :'pulp_href',
|
|
96
|
+
:'pulp_created' => :'pulp_created',
|
|
106
97
|
:'name' => :'name',
|
|
107
98
|
:'url' => :'url',
|
|
108
|
-
:'
|
|
109
|
-
:'
|
|
110
|
-
:'
|
|
111
|
-
:'
|
|
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
|
-
:'
|
|
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
|
-
:'
|
|
131
|
-
:'
|
|
132
|
-
:'_type' => :'String',
|
|
119
|
+
:'pulp_href' => :'String',
|
|
120
|
+
:'pulp_created' => :'DateTime',
|
|
133
121
|
:'name' => :'String',
|
|
134
122
|
:'url' => :'String',
|
|
135
|
-
:'
|
|
136
|
-
:'
|
|
137
|
-
:'
|
|
138
|
-
:'
|
|
123
|
+
:'ca_cert' => :'String',
|
|
124
|
+
:'client_cert' => :'String',
|
|
125
|
+
:'client_key' => :'String',
|
|
126
|
+
:'tls_validation' => :'Boolean',
|
|
139
127
|
:'proxy_url' => :'String',
|
|
140
|
-
:'
|
|
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::
|
|
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::
|
|
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?(:'
|
|
170
|
-
self.
|
|
165
|
+
if attributes.key?(:'pulp_href')
|
|
166
|
+
self.pulp_href = attributes[:'pulp_href']
|
|
171
167
|
end
|
|
172
168
|
|
|
173
|
-
if attributes.key?(:'
|
|
174
|
-
self.
|
|
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?(:'
|
|
190
|
-
self.
|
|
181
|
+
if attributes.key?(:'ca_cert')
|
|
182
|
+
self.ca_cert = attributes[:'ca_cert']
|
|
191
183
|
end
|
|
192
184
|
|
|
193
|
-
if attributes.key?(:'
|
|
194
|
-
self.
|
|
185
|
+
if attributes.key?(:'client_cert')
|
|
186
|
+
self.client_cert = attributes[:'client_cert']
|
|
195
187
|
end
|
|
196
188
|
|
|
197
|
-
if attributes.key?(:'
|
|
198
|
-
self.
|
|
189
|
+
if attributes.key?(:'client_key')
|
|
190
|
+
self.client_key = attributes[:'client_key']
|
|
199
191
|
end
|
|
200
192
|
|
|
201
|
-
if attributes.key?(:'
|
|
202
|
-
self.
|
|
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?(:'
|
|
210
|
-
self.
|
|
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 !@
|
|
281
|
-
invalid_properties.push('invalid value for "
|
|
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 !@
|
|
285
|
-
invalid_properties.push('invalid value for "
|
|
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 !@
|
|
289
|
-
invalid_properties.push('invalid value for "
|
|
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 !@
|
|
336
|
-
return false if !@
|
|
337
|
-
return false if !@
|
|
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]
|
|
391
|
-
def
|
|
392
|
-
if !
|
|
393
|
-
fail ArgumentError, 'invalid value for "
|
|
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
|
-
@
|
|
355
|
+
@ca_cert = ca_cert
|
|
397
356
|
end
|
|
398
357
|
|
|
399
358
|
# Custom attribute writer method with validation
|
|
400
|
-
# @param [Object]
|
|
401
|
-
def
|
|
402
|
-
if !
|
|
403
|
-
fail ArgumentError, 'invalid value for "
|
|
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
|
-
@
|
|
365
|
+
@client_cert = client_cert
|
|
407
366
|
end
|
|
408
367
|
|
|
409
368
|
# Custom attribute writer method with validation
|
|
410
|
-
# @param [Object]
|
|
411
|
-
def
|
|
412
|
-
if !
|
|
413
|
-
fail ArgumentError, 'invalid value for "
|
|
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
|
-
@
|
|
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
|
-
|
|
509
|
-
|
|
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
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
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
|
-
|
|
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
|
-
[
|
|
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
|
-
|
|
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
|