pulp_python_client 3.0.0b10 → 3.0.0b11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (113) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +46 -33
  3. data/docs/ContentPackagesApi.md +52 -52
  4. data/docs/ContentSummary.md +3 -3
  5. data/docs/ContentSummaryResponse.md +21 -0
  6. data/docs/DistributionsPypiApi.md +108 -60
  7. data/docs/InlineResponse200.md +3 -3
  8. data/docs/InlineResponse2001.md +3 -3
  9. data/docs/InlineResponse2002.md +3 -3
  10. data/docs/InlineResponse2003.md +3 -3
  11. data/docs/InlineResponse2004.md +3 -3
  12. data/docs/InlineResponse2005.md +3 -3
  13. data/docs/PatchedpythonPythonDistribution.md +23 -0
  14. data/docs/PatchedpythonPythonRemote.md +43 -0
  15. data/docs/PatchedpythonPythonRepository.md +21 -0
  16. data/docs/PolicyEnum.md +16 -0
  17. data/docs/PublicationsPypiApi.md +40 -40
  18. data/docs/PythonBanderRemote.md +19 -0
  19. data/docs/PythonPythonDistribution.md +1 -7
  20. data/docs/PythonPythonDistributionResponse.md +29 -0
  21. data/docs/PythonPythonPackageContent.md +7 -15
  22. data/docs/PythonPythonPackageContentResponse.md +69 -0
  23. data/docs/PythonPythonPublication.md +2 -8
  24. data/docs/PythonPythonPublicationResponse.md +25 -0
  25. data/docs/PythonPythonRemote.md +4 -10
  26. data/docs/PythonPythonRemoteResponse.md +49 -0
  27. data/docs/PythonPythonRepository.md +4 -10
  28. data/docs/PythonPythonRepositoryResponse.md +29 -0
  29. data/docs/RemotesPythonApi.md +129 -69
  30. data/docs/RepositoriesPythonApi.md +97 -73
  31. data/docs/RepositoriesPythonVersionsApi.md +94 -62
  32. data/docs/RepositoryAddRemoveContent.md +2 -2
  33. data/docs/RepositorySyncURL.md +1 -1
  34. data/docs/RepositoryVersion.md +1 -9
  35. data/docs/RepositoryVersionResponse.md +25 -0
  36. data/lib/pulp_python_client.rb +14 -2
  37. data/lib/pulp_python_client/api/content_packages_api.rb +70 -70
  38. data/lib/pulp_python_client/api/distributions_pypi_api.rb +153 -90
  39. data/lib/pulp_python_client/api/publications_pypi_api.rb +59 -59
  40. data/lib/pulp_python_client/api/remotes_python_api.rb +185 -108
  41. data/lib/pulp_python_client/api/repositories_python_api.rb +145 -118
  42. data/lib/pulp_python_client/api/repositories_python_versions_api.rb +137 -92
  43. data/lib/pulp_python_client/api_client.rb +2 -2
  44. data/lib/pulp_python_client/api_error.rb +2 -2
  45. data/lib/pulp_python_client/configuration.rb +3 -3
  46. data/lib/pulp_python_client/models/async_operation_response.rb +3 -2
  47. data/lib/pulp_python_client/models/content_summary.rb +9 -15
  48. data/lib/pulp_python_client/models/content_summary_response.rb +240 -0
  49. data/lib/pulp_python_client/models/inline_response200.rb +3 -13
  50. data/lib/pulp_python_client/models/inline_response2001.rb +3 -13
  51. data/lib/pulp_python_client/models/inline_response2002.rb +3 -13
  52. data/lib/pulp_python_client/models/inline_response2003.rb +3 -13
  53. data/lib/pulp_python_client/models/inline_response2004.rb +3 -13
  54. data/lib/pulp_python_client/models/inline_response2005.rb +3 -13
  55. data/lib/pulp_python_client/models/patchedpython_python_distribution.rb +240 -0
  56. data/lib/pulp_python_client/models/patchedpython_python_remote.rb +359 -0
  57. data/lib/pulp_python_client/models/patchedpython_python_repository.rb +229 -0
  58. data/lib/pulp_python_client/models/policy_enum.rb +37 -0
  59. data/lib/pulp_python_client/models/python_bander_remote.rb +228 -0
  60. data/lib/pulp_python_client/models/python_python_distribution.rb +4 -85
  61. data/lib/pulp_python_client/models/python_python_distribution_response.rb +279 -0
  62. data/lib/pulp_python_client/models/python_python_package_content.rb +28 -136
  63. data/lib/pulp_python_client/models/python_python_package_content_response.rb +467 -0
  64. data/lib/pulp_python_client/models/python_python_publication.rb +7 -37
  65. data/lib/pulp_python_client/models/python_python_publication_response.rb +248 -0
  66. data/lib/pulp_python_client/models/python_python_remote.rb +7 -199
  67. data/lib/pulp_python_client/models/python_python_remote_response.rb +398 -0
  68. data/lib/pulp_python_client/models/python_python_repository.rb +18 -78
  69. data/lib/pulp_python_client/models/python_python_repository_response.rb +271 -0
  70. data/lib/pulp_python_client/models/repository_add_remove_content.rb +5 -4
  71. data/lib/pulp_python_client/models/repository_sync_url.rb +3 -8
  72. data/lib/pulp_python_client/models/repository_version.rb +7 -43
  73. data/lib/pulp_python_client/models/repository_version_response.rb +246 -0
  74. data/lib/pulp_python_client/version.rb +3 -3
  75. data/pulp_python_client.gemspec +4 -4
  76. data/spec/api/content_packages_api_spec.rb +24 -24
  77. data/spec/api/distributions_pypi_api_spec.rb +39 -18
  78. data/spec/api/publications_pypi_api_spec.rb +14 -14
  79. data/spec/api/remotes_python_api_spec.rb +49 -22
  80. data/spec/api/repositories_python_api_spec.rb +28 -19
  81. data/spec/api/repositories_python_versions_api_spec.rb +38 -23
  82. data/spec/api_client_spec.rb +2 -2
  83. data/spec/configuration_spec.rb +2 -2
  84. data/spec/models/async_operation_response_spec.rb +2 -2
  85. data/spec/models/content_summary_response_spec.rb +53 -0
  86. data/spec/models/content_summary_spec.rb +2 -2
  87. data/spec/models/inline_response2001_spec.rb +2 -2
  88. data/spec/models/inline_response2002_spec.rb +2 -2
  89. data/spec/models/inline_response2003_spec.rb +2 -2
  90. data/spec/models/inline_response2004_spec.rb +2 -2
  91. data/spec/models/inline_response2005_spec.rb +2 -2
  92. data/spec/models/inline_response200_spec.rb +2 -2
  93. data/spec/models/patchedpython_python_distribution_spec.rb +59 -0
  94. data/spec/models/patchedpython_python_remote_spec.rb +119 -0
  95. data/spec/models/patchedpython_python_repository_spec.rb +53 -0
  96. data/spec/models/policy_enum_spec.rb +35 -0
  97. data/spec/models/python_bander_remote_spec.rb +47 -0
  98. data/spec/models/python_python_distribution_response_spec.rb +77 -0
  99. data/spec/models/python_python_distribution_spec.rb +2 -20
  100. data/spec/models/python_python_package_content_response_spec.rb +197 -0
  101. data/spec/models/python_python_package_content_spec.rb +5 -29
  102. data/spec/models/python_python_publication_response_spec.rb +65 -0
  103. data/spec/models/python_python_publication_spec.rb +2 -20
  104. data/spec/models/python_python_remote_response_spec.rb +137 -0
  105. data/spec/models/python_python_remote_spec.rb +2 -24
  106. data/spec/models/python_python_repository_response_spec.rb +77 -0
  107. data/spec/models/python_python_repository_spec.rb +5 -23
  108. data/spec/models/repository_add_remove_content_spec.rb +2 -2
  109. data/spec/models/repository_sync_url_spec.rb +2 -2
  110. data/spec/models/repository_version_response_spec.rb +65 -0
  111. data/spec/models/repository_version_spec.rb +2 -26
  112. data/spec/spec_helper.rb +2 -2
  113. metadata +52 -4
@@ -0,0 +1,398 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
+
6
+ The version of the OpenAPI document: v3
7
+ Contact: pulp-list@redhat.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.2.3
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module PulpPythonClient
16
+ # A Serializer for PythonRemote.
17
+ class PythonPythonRemoteResponse
18
+ attr_accessor :pulp_href
19
+
20
+ # Timestamp of creation.
21
+ attr_accessor :pulp_created
22
+
23
+ # A unique name for this remote.
24
+ attr_accessor :name
25
+
26
+ # The URL of an external content source.
27
+ attr_accessor :url
28
+
29
+ # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
30
+ attr_accessor :ca_cert
31
+
32
+ # A PEM encoded client certificate used for authentication.
33
+ attr_accessor :client_cert
34
+
35
+ # A PEM encoded private key used for authentication.
36
+ attr_accessor :client_key
37
+
38
+ # If True, TLS peer validation must be performed.
39
+ attr_accessor :tls_validation
40
+
41
+ # The proxy URL. Format: scheme://user:password@host:port
42
+ attr_accessor :proxy_url
43
+
44
+ # The username to be used for authentication when syncing.
45
+ attr_accessor :username
46
+
47
+ # The password to be used for authentication when syncing.
48
+ attr_accessor :password
49
+
50
+ # Timestamp of the most recent update of the remote.
51
+ attr_accessor :pulp_last_updated
52
+
53
+ # Total number of simultaneous connections.
54
+ attr_accessor :download_concurrency
55
+
56
+ # The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'cache_only'. 'immediate' is the default.
57
+ attr_accessor :policy
58
+
59
+ # A JSON list containing project specifiers for Python packages to include.
60
+ attr_accessor :includes
61
+
62
+ # A JSON list containing project specifiers for Python packages to exclude.
63
+ attr_accessor :excludes
64
+
65
+ # Whether or not to include pre-release packages in the sync.
66
+ attr_accessor :prereleases
67
+
68
+ # Attribute mapping from ruby-style variable name to JSON key.
69
+ def self.attribute_map
70
+ {
71
+ :'pulp_href' => :'pulp_href',
72
+ :'pulp_created' => :'pulp_created',
73
+ :'name' => :'name',
74
+ :'url' => :'url',
75
+ :'ca_cert' => :'ca_cert',
76
+ :'client_cert' => :'client_cert',
77
+ :'client_key' => :'client_key',
78
+ :'tls_validation' => :'tls_validation',
79
+ :'proxy_url' => :'proxy_url',
80
+ :'username' => :'username',
81
+ :'password' => :'password',
82
+ :'pulp_last_updated' => :'pulp_last_updated',
83
+ :'download_concurrency' => :'download_concurrency',
84
+ :'policy' => :'policy',
85
+ :'includes' => :'includes',
86
+ :'excludes' => :'excludes',
87
+ :'prereleases' => :'prereleases'
88
+ }
89
+ end
90
+
91
+ # Attribute type mapping.
92
+ def self.openapi_types
93
+ {
94
+ :'pulp_href' => :'String',
95
+ :'pulp_created' => :'DateTime',
96
+ :'name' => :'String',
97
+ :'url' => :'String',
98
+ :'ca_cert' => :'String',
99
+ :'client_cert' => :'String',
100
+ :'client_key' => :'String',
101
+ :'tls_validation' => :'Boolean',
102
+ :'proxy_url' => :'String',
103
+ :'username' => :'String',
104
+ :'password' => :'String',
105
+ :'pulp_last_updated' => :'DateTime',
106
+ :'download_concurrency' => :'Integer',
107
+ :'policy' => :'PolicyEnum',
108
+ :'includes' => :'Object',
109
+ :'excludes' => :'Object',
110
+ :'prereleases' => :'Boolean'
111
+ }
112
+ end
113
+
114
+ # List of attributes with nullable: true
115
+ def self.openapi_nullable
116
+ Set.new([
117
+ :'ca_cert',
118
+ :'client_cert',
119
+ :'client_key',
120
+ :'proxy_url',
121
+ :'username',
122
+ :'password',
123
+ ])
124
+ end
125
+
126
+ # Initializes the object
127
+ # @param [Hash] attributes Model attributes in the form of hash
128
+ def initialize(attributes = {})
129
+ if (!attributes.is_a?(Hash))
130
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpPythonClient::PythonPythonRemoteResponse` initialize method"
131
+ end
132
+
133
+ # check to see if the attribute exists and convert string to symbol for hash key
134
+ attributes = attributes.each_with_object({}) { |(k, v), h|
135
+ if (!self.class.attribute_map.key?(k.to_sym))
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
137
+ end
138
+ h[k.to_sym] = v
139
+ }
140
+
141
+ if attributes.key?(:'pulp_href')
142
+ self.pulp_href = attributes[:'pulp_href']
143
+ end
144
+
145
+ if attributes.key?(:'pulp_created')
146
+ self.pulp_created = attributes[:'pulp_created']
147
+ end
148
+
149
+ if attributes.key?(:'name')
150
+ self.name = attributes[:'name']
151
+ end
152
+
153
+ if attributes.key?(:'url')
154
+ self.url = attributes[:'url']
155
+ end
156
+
157
+ if attributes.key?(:'ca_cert')
158
+ self.ca_cert = attributes[:'ca_cert']
159
+ end
160
+
161
+ if attributes.key?(:'client_cert')
162
+ self.client_cert = attributes[:'client_cert']
163
+ end
164
+
165
+ if attributes.key?(:'client_key')
166
+ self.client_key = attributes[:'client_key']
167
+ end
168
+
169
+ if attributes.key?(:'tls_validation')
170
+ self.tls_validation = attributes[:'tls_validation']
171
+ end
172
+
173
+ if attributes.key?(:'proxy_url')
174
+ self.proxy_url = attributes[:'proxy_url']
175
+ end
176
+
177
+ if attributes.key?(:'username')
178
+ self.username = attributes[:'username']
179
+ end
180
+
181
+ if attributes.key?(:'password')
182
+ self.password = attributes[:'password']
183
+ end
184
+
185
+ if attributes.key?(:'pulp_last_updated')
186
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
187
+ end
188
+
189
+ if attributes.key?(:'download_concurrency')
190
+ self.download_concurrency = attributes[:'download_concurrency']
191
+ end
192
+
193
+ if attributes.key?(:'policy')
194
+ self.policy = attributes[:'policy']
195
+ end
196
+
197
+ if attributes.key?(:'includes')
198
+ self.includes = attributes[:'includes']
199
+ end
200
+
201
+ if attributes.key?(:'excludes')
202
+ self.excludes = attributes[:'excludes']
203
+ end
204
+
205
+ if attributes.key?(:'prereleases')
206
+ self.prereleases = attributes[:'prereleases']
207
+ end
208
+ end
209
+
210
+ # Show invalid properties with the reasons. Usually used together with valid?
211
+ # @return Array for valid properties with the reasons
212
+ def list_invalid_properties
213
+ invalid_properties = Array.new
214
+ if @name.nil?
215
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
216
+ end
217
+
218
+ if @url.nil?
219
+ invalid_properties.push('invalid value for "url", url cannot be nil.')
220
+ end
221
+
222
+ if !@download_concurrency.nil? && @download_concurrency < 1
223
+ invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
224
+ end
225
+
226
+ invalid_properties
227
+ end
228
+
229
+ # Check to see if the all the properties in the model are valid
230
+ # @return true if the model is valid
231
+ def valid?
232
+ return false if @name.nil?
233
+ return false if @url.nil?
234
+ return false if !@download_concurrency.nil? && @download_concurrency < 1
235
+ true
236
+ end
237
+
238
+ # Custom attribute writer method with validation
239
+ # @param [Object] download_concurrency Value to be assigned
240
+ def download_concurrency=(download_concurrency)
241
+ if !download_concurrency.nil? && download_concurrency < 1
242
+ fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
243
+ end
244
+
245
+ @download_concurrency = download_concurrency
246
+ end
247
+
248
+ # Checks equality by comparing each attribute.
249
+ # @param [Object] Object to be compared
250
+ def ==(o)
251
+ return true if self.equal?(o)
252
+ self.class == o.class &&
253
+ pulp_href == o.pulp_href &&
254
+ pulp_created == o.pulp_created &&
255
+ name == o.name &&
256
+ url == o.url &&
257
+ ca_cert == o.ca_cert &&
258
+ client_cert == o.client_cert &&
259
+ client_key == o.client_key &&
260
+ tls_validation == o.tls_validation &&
261
+ proxy_url == o.proxy_url &&
262
+ username == o.username &&
263
+ password == o.password &&
264
+ pulp_last_updated == o.pulp_last_updated &&
265
+ download_concurrency == o.download_concurrency &&
266
+ policy == o.policy &&
267
+ includes == o.includes &&
268
+ excludes == o.excludes &&
269
+ prereleases == o.prereleases
270
+ end
271
+
272
+ # @see the `==` method
273
+ # @param [Object] Object to be compared
274
+ def eql?(o)
275
+ self == o
276
+ end
277
+
278
+ # Calculates hash code according to all attributes.
279
+ # @return [Integer] Hash code
280
+ def hash
281
+ [pulp_href, pulp_created, name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, pulp_last_updated, download_concurrency, policy, includes, excludes, prereleases].hash
282
+ end
283
+
284
+ # Builds the object from hash
285
+ # @param [Hash] attributes Model attributes in the form of hash
286
+ # @return [Object] Returns the model itself
287
+ def self.build_from_hash(attributes)
288
+ new.build_from_hash(attributes)
289
+ end
290
+
291
+ # Builds the object from hash
292
+ # @param [Hash] attributes Model attributes in the form of hash
293
+ # @return [Object] Returns the model itself
294
+ def build_from_hash(attributes)
295
+ return nil unless attributes.is_a?(Hash)
296
+ self.class.openapi_types.each_pair do |key, type|
297
+ if type =~ /\AArray<(.*)>/i
298
+ # check to ensure the input is an array given that the attribute
299
+ # is documented as an array but the input is not
300
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
301
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
302
+ end
303
+ elsif !attributes[self.class.attribute_map[key]].nil?
304
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
305
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
306
+ end
307
+
308
+ self
309
+ end
310
+
311
+ # Deserializes the data based on type
312
+ # @param string type Data type
313
+ # @param string value Value to be deserialized
314
+ # @return [Object] Deserialized data
315
+ def _deserialize(type, value)
316
+ case type.to_sym
317
+ when :DateTime
318
+ DateTime.parse(value)
319
+ when :Date
320
+ Date.parse(value)
321
+ when :String
322
+ value.to_s
323
+ when :Integer
324
+ value.to_i
325
+ when :Float
326
+ value.to_f
327
+ when :Boolean
328
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
329
+ true
330
+ else
331
+ false
332
+ end
333
+ when :Object
334
+ # generic object (usually a Hash), return directly
335
+ value
336
+ when /\AArray<(?<inner_type>.+)>\z/
337
+ inner_type = Regexp.last_match[:inner_type]
338
+ value.map { |v| _deserialize(inner_type, v) }
339
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
340
+ k_type = Regexp.last_match[:k_type]
341
+ v_type = Regexp.last_match[:v_type]
342
+ {}.tap do |hash|
343
+ value.each do |k, v|
344
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
345
+ end
346
+ end
347
+ else # model
348
+ PulpPythonClient.const_get(type).build_from_hash(value)
349
+ end
350
+ end
351
+
352
+ # Returns the string representation of the object
353
+ # @return [String] String presentation of the object
354
+ def to_s
355
+ to_hash.to_s
356
+ end
357
+
358
+ # to_body is an alias to to_hash (backward compatibility)
359
+ # @return [Hash] Returns the object in the form of hash
360
+ def to_body
361
+ to_hash
362
+ end
363
+
364
+ # Returns the object in the form of hash
365
+ # @return [Hash] Returns the object in the form of hash
366
+ def to_hash
367
+ hash = {}
368
+ self.class.attribute_map.each_pair do |attr, param|
369
+ value = self.send(attr)
370
+ if value.nil?
371
+ is_nullable = self.class.openapi_nullable.include?(attr)
372
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
373
+ end
374
+
375
+ hash[param] = _to_hash(value)
376
+ end
377
+ hash
378
+ end
379
+
380
+ # Outputs non-array value in the form of hash
381
+ # For object, use to_hash. Otherwise, just return the value
382
+ # @param [Object] value Any valid value
383
+ # @return [Hash] Returns the value in the form of hash
384
+ def _to_hash(value)
385
+ if value.is_a?(Array)
386
+ value.compact.map { |v| _to_hash(v) }
387
+ elsif value.is_a?(Hash)
388
+ {}.tap do |hash|
389
+ value.each { |k, v| hash[k] = _to_hash(v) }
390
+ end
391
+ elsif value.respond_to? :to_hash
392
+ value.to_hash
393
+ else
394
+ value
395
+ end
396
+ end
397
+ end
398
+ end
@@ -1,10 +1,10 @@
1
1
  =begin
2
2
  #Pulp 3 API
3
3
 
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
5
 
6
6
  The version of the OpenAPI document: v3
7
-
7
+ Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.2.3
10
10
 
@@ -13,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
- [pulp_href, pulp_created, versions_href, latest_version_href, name, description].hash
117
+ [name, description, remote].hash
178
118
  end
179
119
 
180
120
  # Builds the object from hash