pulp_python_client 3.0.0b9 → 3.0.0b11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +49 -42
- data/docs/ContentPackagesApi.md +54 -56
- data/docs/ContentSummary.md +3 -3
- data/docs/ContentSummaryResponse.md +21 -0
- data/docs/DistributionsPypiApi.md +108 -60
- data/docs/InlineResponse200.md +3 -3
- data/docs/InlineResponse2001.md +3 -3
- data/docs/InlineResponse2002.md +3 -3
- data/docs/InlineResponse2003.md +3 -3
- data/docs/InlineResponse2004.md +3 -3
- data/docs/InlineResponse2005.md +3 -3
- data/docs/PatchedpythonPythonDistribution.md +23 -0
- data/docs/PatchedpythonPythonRemote.md +43 -0
- data/docs/PatchedpythonPythonRepository.md +21 -0
- data/docs/PolicyEnum.md +16 -0
- data/docs/PublicationsPypiApi.md +40 -40
- data/docs/PythonBanderRemote.md +19 -0
- data/docs/PythonPythonDistribution.md +1 -7
- data/docs/{PythonPythonDistributionRead.md → PythonPythonDistributionResponse.md} +2 -2
- data/docs/PythonPythonPackageContent.md +61 -0
- data/docs/{PythonPythonPackageContentRead.md → PythonPythonPackageContentResponse.md} +3 -3
- data/docs/PythonPythonPublication.md +2 -8
- data/docs/{PythonPythonPublicationRead.md → PythonPythonPublicationResponse.md} +2 -2
- data/docs/PythonPythonRemote.md +6 -12
- data/docs/{PythonPythonRemoteRead.md → PythonPythonRemoteResponse.md} +7 -7
- data/docs/PythonPythonRepository.md +4 -10
- data/docs/{PythonPythonRepositoryRead.md → PythonPythonRepositoryResponse.md} +5 -3
- data/docs/RemotesPythonApi.md +181 -65
- data/docs/RepositoriesPythonApi.md +97 -73
- data/docs/RepositoriesPythonVersionsApi.md +94 -60
- data/docs/RepositoryAddRemoveContent.md +2 -2
- data/docs/RepositorySyncURL.md +1 -1
- data/docs/RepositoryVersion.md +1 -9
- data/docs/{RepositoryVersionRead.md → RepositoryVersionResponse.md} +3 -3
- data/lib/pulp_python_client.rb +15 -9
- data/lib/pulp_python_client/api/content_packages_api.rb +73 -84
- data/lib/pulp_python_client/api/distributions_pypi_api.rb +153 -90
- data/lib/pulp_python_client/api/publications_pypi_api.rb +59 -59
- data/lib/pulp_python_client/api/remotes_python_api.rb +253 -100
- data/lib/pulp_python_client/api/repositories_python_api.rb +145 -118
- data/lib/pulp_python_client/api/repositories_python_versions_api.rb +137 -89
- data/lib/pulp_python_client/api_client.rb +2 -2
- data/lib/pulp_python_client/api_error.rb +2 -2
- data/lib/pulp_python_client/configuration.rb +3 -3
- data/lib/pulp_python_client/models/async_operation_response.rb +3 -2
- data/lib/pulp_python_client/models/content_summary.rb +9 -15
- data/lib/pulp_python_client/models/content_summary_response.rb +240 -0
- data/lib/pulp_python_client/models/inline_response200.rb +3 -13
- data/lib/pulp_python_client/models/inline_response2001.rb +3 -13
- data/lib/pulp_python_client/models/inline_response2002.rb +3 -13
- data/lib/pulp_python_client/models/inline_response2003.rb +3 -13
- data/lib/pulp_python_client/models/inline_response2004.rb +3 -13
- data/lib/pulp_python_client/models/inline_response2005.rb +3 -13
- data/lib/pulp_python_client/models/patchedpython_python_distribution.rb +240 -0
- data/lib/pulp_python_client/models/patchedpython_python_remote.rb +359 -0
- data/lib/pulp_python_client/models/patchedpython_python_repository.rb +229 -0
- data/lib/pulp_python_client/models/policy_enum.rb +37 -0
- data/lib/pulp_python_client/models/{project_specifier.rb → python_bander_remote.rb} +26 -40
- data/lib/pulp_python_client/models/python_python_distribution.rb +4 -85
- data/lib/pulp_python_client/models/{python_python_distribution_read.rb → python_python_distribution_response.rb} +6 -58
- data/lib/pulp_python_client/models/python_python_package_content.rb +433 -0
- data/lib/pulp_python_client/models/{python_python_package_content_read.rb → python_python_package_content_response.rb} +6 -89
- data/lib/pulp_python_client/models/python_python_publication.rb +7 -37
- data/lib/pulp_python_client/models/{python_python_publication_read.rb → python_python_publication_response.rb} +6 -5
- data/lib/pulp_python_client/models/python_python_remote.rb +13 -209
- data/lib/pulp_python_client/models/{python_python_remote_read.rb → python_python_remote_response.rb} +15 -182
- data/lib/pulp_python_client/models/python_python_repository.rb +18 -78
- data/lib/pulp_python_client/models/{python_python_repository_read.rb → python_python_repository_response.rb} +21 -44
- data/lib/pulp_python_client/models/repository_add_remove_content.rb +5 -4
- data/lib/pulp_python_client/models/repository_sync_url.rb +3 -8
- data/lib/pulp_python_client/models/repository_version.rb +7 -43
- data/lib/pulp_python_client/models/{repository_version_read.rb → repository_version_response.rb} +8 -6
- data/lib/pulp_python_client/version.rb +3 -3
- data/pulp_python_client.gemspec +4 -4
- data/spec/api/content_packages_api_spec.rb +24 -25
- data/spec/api/distributions_pypi_api_spec.rb +39 -18
- data/spec/api/publications_pypi_api_spec.rb +14 -14
- data/spec/api/remotes_python_api_spec.rb +61 -21
- data/spec/api/repositories_python_api_spec.rb +28 -19
- data/spec/api/repositories_python_versions_api_spec.rb +38 -22
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +2 -2
- data/spec/models/async_operation_response_spec.rb +2 -2
- data/spec/models/content_summary_response_spec.rb +53 -0
- data/spec/models/content_summary_spec.rb +2 -2
- data/spec/models/inline_response2001_spec.rb +2 -2
- data/spec/models/inline_response2002_spec.rb +2 -2
- data/spec/models/inline_response2003_spec.rb +2 -2
- data/spec/models/inline_response2004_spec.rb +2 -2
- data/spec/models/inline_response2005_spec.rb +2 -2
- data/spec/models/inline_response200_spec.rb +2 -2
- data/spec/models/patchedpython_python_distribution_spec.rb +59 -0
- data/spec/models/patchedpython_python_remote_spec.rb +119 -0
- data/spec/models/patchedpython_python_repository_spec.rb +53 -0
- data/spec/models/policy_enum_spec.rb +35 -0
- data/spec/models/{project_specifier_spec.rb → python_bander_remote_spec.rb} +10 -10
- data/spec/models/{python_python_distribution_read_spec.rb → python_python_distribution_response_spec.rb} +8 -8
- data/spec/models/python_python_distribution_spec.rb +2 -20
- data/spec/models/{python_python_package_content_read_spec.rb → python_python_package_content_response_spec.rb} +8 -8
- data/spec/models/python_python_package_content_spec.rb +173 -0
- data/spec/models/{python_python_publication_read_spec.rb → python_python_publication_response_spec.rb} +8 -8
- data/spec/models/python_python_publication_spec.rb +2 -20
- data/spec/models/{python_python_remote_read_spec.rb → python_python_remote_response_spec.rb} +8 -12
- data/spec/models/python_python_remote_spec.rb +2 -24
- data/spec/models/{python_python_repository_read_spec.rb → python_python_repository_response_spec.rb} +14 -8
- data/spec/models/python_python_repository_spec.rb +5 -23
- data/spec/models/repository_add_remove_content_spec.rb +2 -2
- data/spec/models/repository_sync_url_spec.rb +2 -2
- data/spec/models/{repository_version_read_spec.rb → repository_version_response_spec.rb} +8 -8
- data/spec/models/repository_version_spec.rb +2 -26
- data/spec/spec_helper.rb +2 -2
- metadata +70 -46
- data/docs/ProjectSpecifier.md +0 -19
data/lib/pulp_python_client/models/{python_python_remote_read.rb → python_python_remote_response.rb}
RENAMED
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
2
|
#Pulp 3 API
|
3
3
|
|
4
|
-
#
|
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,7 +13,8 @@ OpenAPI Generator version: 4.2.3
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module PulpPythonClient
|
16
|
-
|
16
|
+
# A Serializer for PythonRemote.
|
17
|
+
class PythonPythonRemoteResponse
|
17
18
|
attr_accessor :pulp_href
|
18
19
|
|
19
20
|
# Timestamp of creation.
|
@@ -25,10 +26,10 @@ module PulpPythonClient
|
|
25
26
|
# The URL of an external content source.
|
26
27
|
attr_accessor :url
|
27
28
|
|
28
|
-
# A
|
29
|
+
# A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
|
29
30
|
attr_accessor :ca_cert
|
30
31
|
|
31
|
-
# A
|
32
|
+
# A PEM encoded client certificate used for authentication.
|
32
33
|
attr_accessor :client_cert
|
33
34
|
|
34
35
|
# A PEM encoded private key used for authentication.
|
@@ -55,37 +56,15 @@ module PulpPythonClient
|
|
55
56
|
# The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'cache_only'. 'immediate' is the default.
|
56
57
|
attr_accessor :policy
|
57
58
|
|
58
|
-
#
|
59
|
+
# A JSON list containing project specifiers for Python packages to include.
|
59
60
|
attr_accessor :includes
|
60
61
|
|
61
|
-
#
|
62
|
+
# A JSON list containing project specifiers for Python packages to exclude.
|
62
63
|
attr_accessor :excludes
|
63
64
|
|
64
65
|
# Whether or not to include pre-release packages in the sync.
|
65
66
|
attr_accessor :prereleases
|
66
67
|
|
67
|
-
class EnumAttributeValidator
|
68
|
-
attr_reader :datatype
|
69
|
-
attr_reader :allowable_values
|
70
|
-
|
71
|
-
def initialize(datatype, allowable_values)
|
72
|
-
@allowable_values = allowable_values.map do |value|
|
73
|
-
case datatype.to_s
|
74
|
-
when /Integer/i
|
75
|
-
value.to_i
|
76
|
-
when /Float/i
|
77
|
-
value.to_f
|
78
|
-
else
|
79
|
-
value
|
80
|
-
end
|
81
|
-
end
|
82
|
-
end
|
83
|
-
|
84
|
-
def valid?(value)
|
85
|
-
!value || allowable_values.include?(value)
|
86
|
-
end
|
87
|
-
end
|
88
|
-
|
89
68
|
# Attribute mapping from ruby-style variable name to JSON key.
|
90
69
|
def self.attribute_map
|
91
70
|
{
|
@@ -125,9 +104,9 @@ module PulpPythonClient
|
|
125
104
|
:'password' => :'String',
|
126
105
|
:'pulp_last_updated' => :'DateTime',
|
127
106
|
:'download_concurrency' => :'Integer',
|
128
|
-
:'policy' => :'
|
129
|
-
:'includes' => :'
|
130
|
-
:'excludes' => :'
|
107
|
+
:'policy' => :'PolicyEnum',
|
108
|
+
:'includes' => :'Object',
|
109
|
+
:'excludes' => :'Object',
|
131
110
|
:'prereleases' => :'Boolean'
|
132
111
|
}
|
133
112
|
end
|
@@ -148,13 +127,13 @@ module PulpPythonClient
|
|
148
127
|
# @param [Hash] attributes Model attributes in the form of hash
|
149
128
|
def initialize(attributes = {})
|
150
129
|
if (!attributes.is_a?(Hash))
|
151
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpPythonClient::
|
130
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpPythonClient::PythonPythonRemoteResponse` initialize method"
|
152
131
|
end
|
153
132
|
|
154
133
|
# check to see if the attribute exists and convert string to symbol for hash key
|
155
134
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
156
135
|
if (!self.class.attribute_map.key?(k.to_sym))
|
157
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpPythonClient::
|
136
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpPythonClient::PythonPythonRemoteResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
158
137
|
end
|
159
138
|
h[k.to_sym] = v
|
160
139
|
}
|
@@ -213,20 +192,14 @@ module PulpPythonClient
|
|
213
192
|
|
214
193
|
if attributes.key?(:'policy')
|
215
194
|
self.policy = attributes[:'policy']
|
216
|
-
else
|
217
|
-
self.policy = 'immediate'
|
218
195
|
end
|
219
196
|
|
220
197
|
if attributes.key?(:'includes')
|
221
|
-
|
222
|
-
self.includes = value
|
223
|
-
end
|
198
|
+
self.includes = attributes[:'includes']
|
224
199
|
end
|
225
200
|
|
226
201
|
if attributes.key?(:'excludes')
|
227
|
-
|
228
|
-
self.excludes = value
|
229
|
-
end
|
202
|
+
self.excludes = attributes[:'excludes']
|
230
203
|
end
|
231
204
|
|
232
205
|
if attributes.key?(:'prereleases')
|
@@ -242,42 +215,10 @@ module PulpPythonClient
|
|
242
215
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
243
216
|
end
|
244
217
|
|
245
|
-
if @name.to_s.length < 1
|
246
|
-
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
247
|
-
end
|
248
|
-
|
249
218
|
if @url.nil?
|
250
219
|
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
251
220
|
end
|
252
221
|
|
253
|
-
if @url.to_s.length < 1
|
254
|
-
invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
|
255
|
-
end
|
256
|
-
|
257
|
-
if !@ca_cert.nil? && @ca_cert.to_s.length < 1
|
258
|
-
invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
|
259
|
-
end
|
260
|
-
|
261
|
-
if !@client_cert.nil? && @client_cert.to_s.length < 1
|
262
|
-
invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
|
263
|
-
end
|
264
|
-
|
265
|
-
if !@client_key.nil? && @client_key.to_s.length < 1
|
266
|
-
invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
|
267
|
-
end
|
268
|
-
|
269
|
-
if !@proxy_url.nil? && @proxy_url.to_s.length < 1
|
270
|
-
invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
|
271
|
-
end
|
272
|
-
|
273
|
-
if !@username.nil? && @username.to_s.length < 1
|
274
|
-
invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
|
275
|
-
end
|
276
|
-
|
277
|
-
if !@password.nil? && @password.to_s.length < 1
|
278
|
-
invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
|
279
|
-
end
|
280
|
-
|
281
222
|
if !@download_concurrency.nil? && @download_concurrency < 1
|
282
223
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
283
224
|
end
|
@@ -289,109 +230,11 @@ module PulpPythonClient
|
|
289
230
|
# @return true if the model is valid
|
290
231
|
def valid?
|
291
232
|
return false if @name.nil?
|
292
|
-
return false if @name.to_s.length < 1
|
293
233
|
return false if @url.nil?
|
294
|
-
return false if @url.to_s.length < 1
|
295
|
-
return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
|
296
|
-
return false if !@client_cert.nil? && @client_cert.to_s.length < 1
|
297
|
-
return false if !@client_key.nil? && @client_key.to_s.length < 1
|
298
|
-
return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
|
299
|
-
return false if !@username.nil? && @username.to_s.length < 1
|
300
|
-
return false if !@password.nil? && @password.to_s.length < 1
|
301
234
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
302
|
-
policy_validator = EnumAttributeValidator.new('String', ["immediate", "on_demand", "streamed"])
|
303
|
-
return false unless policy_validator.valid?(@policy)
|
304
235
|
true
|
305
236
|
end
|
306
237
|
|
307
|
-
# Custom attribute writer method with validation
|
308
|
-
# @param [Object] name Value to be assigned
|
309
|
-
def name=(name)
|
310
|
-
if name.nil?
|
311
|
-
fail ArgumentError, 'name cannot be nil'
|
312
|
-
end
|
313
|
-
|
314
|
-
if name.to_s.length < 1
|
315
|
-
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
316
|
-
end
|
317
|
-
|
318
|
-
@name = name
|
319
|
-
end
|
320
|
-
|
321
|
-
# Custom attribute writer method with validation
|
322
|
-
# @param [Object] url Value to be assigned
|
323
|
-
def url=(url)
|
324
|
-
if url.nil?
|
325
|
-
fail ArgumentError, 'url cannot be nil'
|
326
|
-
end
|
327
|
-
|
328
|
-
if url.to_s.length < 1
|
329
|
-
fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
|
330
|
-
end
|
331
|
-
|
332
|
-
@url = url
|
333
|
-
end
|
334
|
-
|
335
|
-
# Custom attribute writer method with validation
|
336
|
-
# @param [Object] ca_cert Value to be assigned
|
337
|
-
def ca_cert=(ca_cert)
|
338
|
-
if !ca_cert.nil? && ca_cert.to_s.length < 1
|
339
|
-
fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
|
340
|
-
end
|
341
|
-
|
342
|
-
@ca_cert = ca_cert
|
343
|
-
end
|
344
|
-
|
345
|
-
# Custom attribute writer method with validation
|
346
|
-
# @param [Object] client_cert Value to be assigned
|
347
|
-
def client_cert=(client_cert)
|
348
|
-
if !client_cert.nil? && client_cert.to_s.length < 1
|
349
|
-
fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
|
350
|
-
end
|
351
|
-
|
352
|
-
@client_cert = client_cert
|
353
|
-
end
|
354
|
-
|
355
|
-
# Custom attribute writer method with validation
|
356
|
-
# @param [Object] client_key Value to be assigned
|
357
|
-
def client_key=(client_key)
|
358
|
-
if !client_key.nil? && client_key.to_s.length < 1
|
359
|
-
fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
|
360
|
-
end
|
361
|
-
|
362
|
-
@client_key = client_key
|
363
|
-
end
|
364
|
-
|
365
|
-
# Custom attribute writer method with validation
|
366
|
-
# @param [Object] proxy_url Value to be assigned
|
367
|
-
def proxy_url=(proxy_url)
|
368
|
-
if !proxy_url.nil? && proxy_url.to_s.length < 1
|
369
|
-
fail ArgumentError, 'invalid value for "proxy_url", the character length must be great than or equal to 1.'
|
370
|
-
end
|
371
|
-
|
372
|
-
@proxy_url = proxy_url
|
373
|
-
end
|
374
|
-
|
375
|
-
# Custom attribute writer method with validation
|
376
|
-
# @param [Object] username Value to be assigned
|
377
|
-
def username=(username)
|
378
|
-
if !username.nil? && username.to_s.length < 1
|
379
|
-
fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
|
380
|
-
end
|
381
|
-
|
382
|
-
@username = username
|
383
|
-
end
|
384
|
-
|
385
|
-
# Custom attribute writer method with validation
|
386
|
-
# @param [Object] password Value to be assigned
|
387
|
-
def password=(password)
|
388
|
-
if !password.nil? && password.to_s.length < 1
|
389
|
-
fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
|
390
|
-
end
|
391
|
-
|
392
|
-
@password = password
|
393
|
-
end
|
394
|
-
|
395
238
|
# Custom attribute writer method with validation
|
396
239
|
# @param [Object] download_concurrency Value to be assigned
|
397
240
|
def download_concurrency=(download_concurrency)
|
@@ -402,16 +245,6 @@ module PulpPythonClient
|
|
402
245
|
@download_concurrency = download_concurrency
|
403
246
|
end
|
404
247
|
|
405
|
-
# Custom attribute writer method checking allowed values (enum).
|
406
|
-
# @param [Object] policy Object to be assigned
|
407
|
-
def policy=(policy)
|
408
|
-
validator = EnumAttributeValidator.new('String', ["immediate", "on_demand", "streamed"])
|
409
|
-
unless validator.valid?(policy)
|
410
|
-
fail ArgumentError, "invalid value for \"policy\", must be one of #{validator.allowable_values}."
|
411
|
-
end
|
412
|
-
@policy = policy
|
413
|
-
end
|
414
|
-
|
415
248
|
# Checks equality by comparing each attribute.
|
416
249
|
# @param [Object] Object to be compared
|
417
250
|
def ==(o)
|
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
2
|
#Pulp 3 API
|
3
3
|
|
4
|
-
#
|
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,50 +13,39 @@ OpenAPI Generator version: 4.2.3
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module PulpPythonClient
|
16
|
+
# Serializer for Python Repositories.
|
16
17
|
class PythonPythonRepository
|
17
|
-
attr_accessor :pulp_href
|
18
|
-
|
19
|
-
# Timestamp of creation.
|
20
|
-
attr_accessor :pulp_created
|
21
|
-
|
22
|
-
attr_accessor :versions_href
|
23
|
-
|
24
|
-
attr_accessor :latest_version_href
|
25
|
-
|
26
18
|
# A unique name for this repository.
|
27
19
|
attr_accessor :name
|
28
20
|
|
29
21
|
# An optional description.
|
30
22
|
attr_accessor :description
|
31
23
|
|
24
|
+
attr_accessor :remote
|
25
|
+
|
32
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
27
|
def self.attribute_map
|
34
28
|
{
|
35
|
-
:'pulp_href' => :'pulp_href',
|
36
|
-
:'pulp_created' => :'pulp_created',
|
37
|
-
:'versions_href' => :'versions_href',
|
38
|
-
:'latest_version_href' => :'latest_version_href',
|
39
29
|
:'name' => :'name',
|
40
|
-
:'description' => :'description'
|
30
|
+
:'description' => :'description',
|
31
|
+
:'remote' => :'remote'
|
41
32
|
}
|
42
33
|
end
|
43
34
|
|
44
35
|
# Attribute type mapping.
|
45
36
|
def self.openapi_types
|
46
37
|
{
|
47
|
-
:'pulp_href' => :'String',
|
48
|
-
:'pulp_created' => :'DateTime',
|
49
|
-
:'versions_href' => :'String',
|
50
|
-
:'latest_version_href' => :'String',
|
51
38
|
:'name' => :'String',
|
52
|
-
:'description' => :'String'
|
39
|
+
:'description' => :'String',
|
40
|
+
:'remote' => :'String'
|
53
41
|
}
|
54
42
|
end
|
55
43
|
|
56
44
|
# List of attributes with nullable: true
|
57
45
|
def self.openapi_nullable
|
58
46
|
Set.new([
|
59
|
-
:'description'
|
47
|
+
:'description',
|
48
|
+
:'remote'
|
60
49
|
])
|
61
50
|
end
|
62
51
|
|
@@ -75,22 +64,6 @@ module PulpPythonClient
|
|
75
64
|
h[k.to_sym] = v
|
76
65
|
}
|
77
66
|
|
78
|
-
if attributes.key?(:'pulp_href')
|
79
|
-
self.pulp_href = attributes[:'pulp_href']
|
80
|
-
end
|
81
|
-
|
82
|
-
if attributes.key?(:'pulp_created')
|
83
|
-
self.pulp_created = attributes[:'pulp_created']
|
84
|
-
end
|
85
|
-
|
86
|
-
if attributes.key?(:'versions_href')
|
87
|
-
self.versions_href = attributes[:'versions_href']
|
88
|
-
end
|
89
|
-
|
90
|
-
if attributes.key?(:'latest_version_href')
|
91
|
-
self.latest_version_href = attributes[:'latest_version_href']
|
92
|
-
end
|
93
|
-
|
94
67
|
if attributes.key?(:'name')
|
95
68
|
self.name = attributes[:'name']
|
96
69
|
end
|
@@ -98,6 +71,10 @@ module PulpPythonClient
|
|
98
71
|
if attributes.key?(:'description')
|
99
72
|
self.description = attributes[:'description']
|
100
73
|
end
|
74
|
+
|
75
|
+
if attributes.key?(:'remote')
|
76
|
+
self.remote = attributes[:'remote']
|
77
|
+
end
|
101
78
|
end
|
102
79
|
|
103
80
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -108,14 +85,6 @@ module PulpPythonClient
|
|
108
85
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
109
86
|
end
|
110
87
|
|
111
|
-
if @name.to_s.length < 1
|
112
|
-
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
113
|
-
end
|
114
|
-
|
115
|
-
if !@description.nil? && @description.to_s.length < 1
|
116
|
-
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
117
|
-
end
|
118
|
-
|
119
88
|
invalid_properties
|
120
89
|
end
|
121
90
|
|
@@ -123,46 +92,17 @@ module PulpPythonClient
|
|
123
92
|
# @return true if the model is valid
|
124
93
|
def valid?
|
125
94
|
return false if @name.nil?
|
126
|
-
return false if @name.to_s.length < 1
|
127
|
-
return false if !@description.nil? && @description.to_s.length < 1
|
128
95
|
true
|
129
96
|
end
|
130
97
|
|
131
|
-
# Custom attribute writer method with validation
|
132
|
-
# @param [Object] name Value to be assigned
|
133
|
-
def name=(name)
|
134
|
-
if name.nil?
|
135
|
-
fail ArgumentError, 'name cannot be nil'
|
136
|
-
end
|
137
|
-
|
138
|
-
if name.to_s.length < 1
|
139
|
-
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
140
|
-
end
|
141
|
-
|
142
|
-
@name = name
|
143
|
-
end
|
144
|
-
|
145
|
-
# Custom attribute writer method with validation
|
146
|
-
# @param [Object] description Value to be assigned
|
147
|
-
def description=(description)
|
148
|
-
if !description.nil? && description.to_s.length < 1
|
149
|
-
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
150
|
-
end
|
151
|
-
|
152
|
-
@description = description
|
153
|
-
end
|
154
|
-
|
155
98
|
# Checks equality by comparing each attribute.
|
156
99
|
# @param [Object] Object to be compared
|
157
100
|
def ==(o)
|
158
101
|
return true if self.equal?(o)
|
159
102
|
self.class == o.class &&
|
160
|
-
pulp_href == o.pulp_href &&
|
161
|
-
pulp_created == o.pulp_created &&
|
162
|
-
versions_href == o.versions_href &&
|
163
|
-
latest_version_href == o.latest_version_href &&
|
164
103
|
name == o.name &&
|
165
|
-
description == o.description
|
104
|
+
description == o.description &&
|
105
|
+
remote == o.remote
|
166
106
|
end
|
167
107
|
|
168
108
|
# @see the `==` method
|
@@ -174,7 +114,7 @@ module PulpPythonClient
|
|
174
114
|
# Calculates hash code according to all attributes.
|
175
115
|
# @return [Integer] Hash code
|
176
116
|
def hash
|
177
|
-
[
|
117
|
+
[name, description, remote].hash
|
178
118
|
end
|
179
119
|
|
180
120
|
# Builds the object from hash
|