pulp_container_client 2.21.1 → 2.21.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/ContainerContainerDistribution.md +8 -8
  4. data/docs/ContainerContainerDistributionResponse.md +16 -16
  5. data/docs/ContainerContainerPullThroughDistribution.md +8 -8
  6. data/docs/ContainerContainerPullThroughDistributionResponse.md +16 -16
  7. data/docs/ContainerContainerPushRepository.md +4 -4
  8. data/docs/ContainerContainerPushRepositoryResponse.md +15 -15
  9. data/docs/PatchedcontainerContainerDistribution.md +8 -8
  10. data/docs/PatchedcontainerContainerPullThroughDistribution.md +8 -8
  11. data/docs/PatchedcontainerContainerPushRepository.md +4 -4
  12. data/lib/pulp_container_client/models/container_container_distribution.rb +59 -59
  13. data/lib/pulp_container_client/models/container_container_distribution_response.rb +71 -71
  14. data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +59 -59
  15. data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +71 -71
  16. data/lib/pulp_container_client/models/container_container_pull_through_remote.rb +20 -20
  17. data/lib/pulp_container_client/models/container_container_pull_through_remote_response.rb +20 -20
  18. data/lib/pulp_container_client/models/container_container_push_repository.rb +34 -34
  19. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +63 -63
  20. data/lib/pulp_container_client/models/container_container_remote.rb +20 -20
  21. data/lib/pulp_container_client/models/container_container_remote_response.rb +20 -20
  22. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +50 -50
  23. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +50 -50
  24. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_remote.rb +20 -20
  25. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +34 -34
  26. data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +20 -20
  27. data/lib/pulp_container_client/version.rb +1 -1
  28. data/spec/models/container_container_distribution_response_spec.rb +11 -11
  29. data/spec/models/container_container_distribution_spec.rb +5 -5
  30. data/spec/models/container_container_pull_through_distribution_response_spec.rb +11 -11
  31. data/spec/models/container_container_pull_through_distribution_spec.rb +5 -5
  32. data/spec/models/container_container_push_repository_response_spec.rb +11 -11
  33. data/spec/models/container_container_push_repository_spec.rb +3 -3
  34. data/spec/models/patchedcontainer_container_distribution_spec.rb +5 -5
  35. data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +5 -5
  36. data/spec/models/patchedcontainer_container_push_repository_spec.rb +3 -3
  37. metadata +64 -64
@@ -15,36 +15,36 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for a specialized pull-through distribution referencing sub-distributions.
17
17
  class ContainerContainerPullThroughDistributionResponse
18
- attr_accessor :pulp_labels
19
-
20
- # An optional content-guard. If none is specified, a default one will be used.
21
- attr_accessor :content_guard
18
+ # Timestamp of creation.
19
+ attr_accessor :pulp_created
22
20
 
23
- # Whether this distribution should be shown in the content app.
24
- attr_accessor :hidden
21
+ # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
22
+ attr_accessor :base_path
25
23
 
26
- attr_accessor :pulp_href
24
+ # The Pulp Resource Name (PRN).
25
+ attr_accessor :prn
27
26
 
28
- # Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
29
- attr_accessor :no_content_change_since
27
+ # A unique name. Ex, `rawhide` and `stable`.
28
+ attr_accessor :name
30
29
 
31
- # Timestamp of creation.
32
- attr_accessor :pulp_created
30
+ # An optional content-guard. If none is specified, a default one will be used.
31
+ attr_accessor :content_guard
33
32
 
34
33
  # The latest RepositoryVersion for this Repository will be served.
35
34
  attr_accessor :repository
36
35
 
37
- # A unique name. Ex, `rawhide` and `stable`.
38
- attr_accessor :name
36
+ # Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
37
+ attr_accessor :no_content_change_since
39
38
 
40
39
  # Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
41
40
  attr_accessor :pulp_last_updated
42
41
 
43
- # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
44
- attr_accessor :base_path
42
+ attr_accessor :pulp_href
45
43
 
46
- # The Pulp Resource Name (PRN).
47
- attr_accessor :prn
44
+ attr_accessor :pulp_labels
45
+
46
+ # Whether this distribution should be shown in the content app.
47
+ attr_accessor :hidden
48
48
 
49
49
  # Remote that can be used to fetch content when using pull-through caching.
50
50
  attr_accessor :remote
@@ -64,17 +64,17 @@ module PulpContainerClient
64
64
  # Attribute mapping from ruby-style variable name to JSON key.
65
65
  def self.attribute_map
66
66
  {
67
- :'pulp_labels' => :'pulp_labels',
68
- :'content_guard' => :'content_guard',
69
- :'hidden' => :'hidden',
70
- :'pulp_href' => :'pulp_href',
71
- :'no_content_change_since' => :'no_content_change_since',
72
67
  :'pulp_created' => :'pulp_created',
73
- :'repository' => :'repository',
74
- :'name' => :'name',
75
- :'pulp_last_updated' => :'pulp_last_updated',
76
68
  :'base_path' => :'base_path',
77
69
  :'prn' => :'prn',
70
+ :'name' => :'name',
71
+ :'content_guard' => :'content_guard',
72
+ :'repository' => :'repository',
73
+ :'no_content_change_since' => :'no_content_change_since',
74
+ :'pulp_last_updated' => :'pulp_last_updated',
75
+ :'pulp_href' => :'pulp_href',
76
+ :'pulp_labels' => :'pulp_labels',
77
+ :'hidden' => :'hidden',
78
78
  :'remote' => :'remote',
79
79
  :'distributions' => :'distributions',
80
80
  :'namespace' => :'namespace',
@@ -86,17 +86,17 @@ module PulpContainerClient
86
86
  # Attribute type mapping.
87
87
  def self.openapi_types
88
88
  {
89
- :'pulp_labels' => :'Hash<String, String>',
90
- :'content_guard' => :'String',
91
- :'hidden' => :'Boolean',
92
- :'pulp_href' => :'String',
93
- :'no_content_change_since' => :'String',
94
89
  :'pulp_created' => :'DateTime',
95
- :'repository' => :'String',
96
- :'name' => :'String',
97
- :'pulp_last_updated' => :'DateTime',
98
90
  :'base_path' => :'String',
99
91
  :'prn' => :'String',
92
+ :'name' => :'String',
93
+ :'content_guard' => :'String',
94
+ :'repository' => :'String',
95
+ :'no_content_change_since' => :'String',
96
+ :'pulp_last_updated' => :'DateTime',
97
+ :'pulp_href' => :'String',
98
+ :'pulp_labels' => :'Hash<String, String>',
99
+ :'hidden' => :'Boolean',
100
100
  :'remote' => :'String',
101
101
  :'distributions' => :'Array<String>',
102
102
  :'namespace' => :'String',
@@ -128,52 +128,52 @@ module PulpContainerClient
128
128
  h[k.to_sym] = v
129
129
  }
130
130
 
131
- if attributes.key?(:'pulp_labels')
132
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
133
- self.pulp_labels = value
134
- end
135
- end
136
-
137
- if attributes.key?(:'content_guard')
138
- self.content_guard = attributes[:'content_guard']
131
+ if attributes.key?(:'pulp_created')
132
+ self.pulp_created = attributes[:'pulp_created']
139
133
  end
140
134
 
141
- if attributes.key?(:'hidden')
142
- self.hidden = attributes[:'hidden']
143
- else
144
- self.hidden = false
135
+ if attributes.key?(:'base_path')
136
+ self.base_path = attributes[:'base_path']
145
137
  end
146
138
 
147
- if attributes.key?(:'pulp_href')
148
- self.pulp_href = attributes[:'pulp_href']
139
+ if attributes.key?(:'prn')
140
+ self.prn = attributes[:'prn']
149
141
  end
150
142
 
151
- if attributes.key?(:'no_content_change_since')
152
- self.no_content_change_since = attributes[:'no_content_change_since']
143
+ if attributes.key?(:'name')
144
+ self.name = attributes[:'name']
153
145
  end
154
146
 
155
- if attributes.key?(:'pulp_created')
156
- self.pulp_created = attributes[:'pulp_created']
147
+ if attributes.key?(:'content_guard')
148
+ self.content_guard = attributes[:'content_guard']
157
149
  end
158
150
 
159
151
  if attributes.key?(:'repository')
160
152
  self.repository = attributes[:'repository']
161
153
  end
162
154
 
163
- if attributes.key?(:'name')
164
- self.name = attributes[:'name']
155
+ if attributes.key?(:'no_content_change_since')
156
+ self.no_content_change_since = attributes[:'no_content_change_since']
165
157
  end
166
158
 
167
159
  if attributes.key?(:'pulp_last_updated')
168
160
  self.pulp_last_updated = attributes[:'pulp_last_updated']
169
161
  end
170
162
 
171
- if attributes.key?(:'base_path')
172
- self.base_path = attributes[:'base_path']
163
+ if attributes.key?(:'pulp_href')
164
+ self.pulp_href = attributes[:'pulp_href']
173
165
  end
174
166
 
175
- if attributes.key?(:'prn')
176
- self.prn = attributes[:'prn']
167
+ if attributes.key?(:'pulp_labels')
168
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
169
+ self.pulp_labels = value
170
+ end
171
+ end
172
+
173
+ if attributes.key?(:'hidden')
174
+ self.hidden = attributes[:'hidden']
175
+ else
176
+ self.hidden = false
177
177
  end
178
178
 
179
179
  if attributes.key?(:'remote')
@@ -203,14 +203,14 @@ module PulpContainerClient
203
203
  # @return Array for valid properties with the reasons
204
204
  def list_invalid_properties
205
205
  invalid_properties = Array.new
206
- if @name.nil?
207
- invalid_properties.push('invalid value for "name", name cannot be nil.')
208
- end
209
-
210
206
  if @base_path.nil?
211
207
  invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
212
208
  end
213
209
 
210
+ if @name.nil?
211
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
212
+ end
213
+
214
214
  if @remote.nil?
215
215
  invalid_properties.push('invalid value for "remote", remote cannot be nil.')
216
216
  end
@@ -221,8 +221,8 @@ module PulpContainerClient
221
221
  # Check to see if the all the properties in the model are valid
222
222
  # @return true if the model is valid
223
223
  def valid?
224
- return false if @name.nil?
225
224
  return false if @base_path.nil?
225
+ return false if @name.nil?
226
226
  return false if @remote.nil?
227
227
  true
228
228
  end
@@ -232,17 +232,17 @@ module PulpContainerClient
232
232
  def ==(o)
233
233
  return true if self.equal?(o)
234
234
  self.class == o.class &&
235
- pulp_labels == o.pulp_labels &&
236
- content_guard == o.content_guard &&
237
- hidden == o.hidden &&
238
- pulp_href == o.pulp_href &&
239
- no_content_change_since == o.no_content_change_since &&
240
235
  pulp_created == o.pulp_created &&
241
- repository == o.repository &&
242
- name == o.name &&
243
- pulp_last_updated == o.pulp_last_updated &&
244
236
  base_path == o.base_path &&
245
237
  prn == o.prn &&
238
+ name == o.name &&
239
+ content_guard == o.content_guard &&
240
+ repository == o.repository &&
241
+ no_content_change_since == o.no_content_change_since &&
242
+ pulp_last_updated == o.pulp_last_updated &&
243
+ pulp_href == o.pulp_href &&
244
+ pulp_labels == o.pulp_labels &&
245
+ hidden == o.hidden &&
246
246
  remote == o.remote &&
247
247
  distributions == o.distributions &&
248
248
  namespace == o.namespace &&
@@ -259,7 +259,7 @@ module PulpContainerClient
259
259
  # Calculates hash code according to all attributes.
260
260
  # @return [Integer] Hash code
261
261
  def hash
262
- [pulp_labels, content_guard, hidden, pulp_href, no_content_change_since, pulp_created, repository, name, pulp_last_updated, base_path, prn, remote, distributions, namespace, private, description].hash
262
+ [pulp_created, base_path, prn, name, content_guard, repository, no_content_change_since, pulp_last_updated, pulp_href, pulp_labels, hidden, remote, distributions, namespace, private, description].hash
263
263
  end
264
264
 
265
265
  # Builds the object from hash
@@ -335,20 +335,20 @@ module PulpContainerClient
335
335
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
336
336
  end
337
337
 
338
- if !@total_timeout.nil? && @total_timeout < 0
339
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
338
+ if !@total_timeout.nil? && @total_timeout < 0.0
339
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
340
340
  end
341
341
 
342
- if !@connect_timeout.nil? && @connect_timeout < 0
343
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
342
+ if !@connect_timeout.nil? && @connect_timeout < 0.0
343
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
344
344
  end
345
345
 
346
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
347
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
346
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
347
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
348
348
  end
349
349
 
350
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0
351
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
350
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
351
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
352
352
  end
353
353
 
354
354
  invalid_properties
@@ -370,10 +370,10 @@ module PulpContainerClient
370
370
  return false if !@username.nil? && @username.to_s.length < 1
371
371
  return false if !@password.nil? && @password.to_s.length < 1
372
372
  return false if !@download_concurrency.nil? && @download_concurrency < 1
373
- return false if !@total_timeout.nil? && @total_timeout < 0
374
- return false if !@connect_timeout.nil? && @connect_timeout < 0
375
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
376
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
373
+ return false if !@total_timeout.nil? && @total_timeout < 0.0
374
+ return false if !@connect_timeout.nil? && @connect_timeout < 0.0
375
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
376
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
377
377
  true
378
378
  end
379
379
 
@@ -498,8 +498,8 @@ module PulpContainerClient
498
498
  # Custom attribute writer method with validation
499
499
  # @param [Object] total_timeout Value to be assigned
500
500
  def total_timeout=(total_timeout)
501
- if !total_timeout.nil? && total_timeout < 0
502
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
501
+ if !total_timeout.nil? && total_timeout < 0.0
502
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
503
503
  end
504
504
 
505
505
  @total_timeout = total_timeout
@@ -508,8 +508,8 @@ module PulpContainerClient
508
508
  # Custom attribute writer method with validation
509
509
  # @param [Object] connect_timeout Value to be assigned
510
510
  def connect_timeout=(connect_timeout)
511
- if !connect_timeout.nil? && connect_timeout < 0
512
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
511
+ if !connect_timeout.nil? && connect_timeout < 0.0
512
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
513
513
  end
514
514
 
515
515
  @connect_timeout = connect_timeout
@@ -518,8 +518,8 @@ module PulpContainerClient
518
518
  # Custom attribute writer method with validation
519
519
  # @param [Object] sock_connect_timeout Value to be assigned
520
520
  def sock_connect_timeout=(sock_connect_timeout)
521
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0
522
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
521
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
522
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
523
523
  end
524
524
 
525
525
  @sock_connect_timeout = sock_connect_timeout
@@ -528,8 +528,8 @@ module PulpContainerClient
528
528
  # Custom attribute writer method with validation
529
529
  # @param [Object] sock_read_timeout Value to be assigned
530
530
  def sock_read_timeout=(sock_read_timeout)
531
- if !sock_read_timeout.nil? && sock_read_timeout < 0
532
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
531
+ if !sock_read_timeout.nil? && sock_read_timeout < 0.0
532
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
533
533
  end
534
534
 
535
535
  @sock_read_timeout = sock_read_timeout
@@ -291,20 +291,20 @@ module PulpContainerClient
291
291
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
292
292
  end
293
293
 
294
- if !@total_timeout.nil? && @total_timeout < 0
295
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
294
+ if !@total_timeout.nil? && @total_timeout < 0.0
295
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
296
296
  end
297
297
 
298
- if !@connect_timeout.nil? && @connect_timeout < 0
299
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
298
+ if !@connect_timeout.nil? && @connect_timeout < 0.0
299
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
300
300
  end
301
301
 
302
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
303
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
302
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
303
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
304
304
  end
305
305
 
306
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0
307
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
306
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
307
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
308
308
  end
309
309
 
310
310
  invalid_properties
@@ -316,10 +316,10 @@ module PulpContainerClient
316
316
  return false if @name.nil?
317
317
  return false if @url.nil?
318
318
  return false if !@download_concurrency.nil? && @download_concurrency < 1
319
- return false if !@total_timeout.nil? && @total_timeout < 0
320
- return false if !@connect_timeout.nil? && @connect_timeout < 0
321
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
322
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
319
+ return false if !@total_timeout.nil? && @total_timeout < 0.0
320
+ return false if !@connect_timeout.nil? && @connect_timeout < 0.0
321
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
322
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
323
323
  true
324
324
  end
325
325
 
@@ -336,8 +336,8 @@ module PulpContainerClient
336
336
  # Custom attribute writer method with validation
337
337
  # @param [Object] total_timeout Value to be assigned
338
338
  def total_timeout=(total_timeout)
339
- if !total_timeout.nil? && total_timeout < 0
340
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
339
+ if !total_timeout.nil? && total_timeout < 0.0
340
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
341
341
  end
342
342
 
343
343
  @total_timeout = total_timeout
@@ -346,8 +346,8 @@ module PulpContainerClient
346
346
  # Custom attribute writer method with validation
347
347
  # @param [Object] connect_timeout Value to be assigned
348
348
  def connect_timeout=(connect_timeout)
349
- if !connect_timeout.nil? && connect_timeout < 0
350
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
349
+ if !connect_timeout.nil? && connect_timeout < 0.0
350
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
351
351
  end
352
352
 
353
353
  @connect_timeout = connect_timeout
@@ -356,8 +356,8 @@ module PulpContainerClient
356
356
  # Custom attribute writer method with validation
357
357
  # @param [Object] sock_connect_timeout Value to be assigned
358
358
  def sock_connect_timeout=(sock_connect_timeout)
359
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0
360
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
359
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
360
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
361
361
  end
362
362
 
363
363
  @sock_connect_timeout = sock_connect_timeout
@@ -366,8 +366,8 @@ module PulpContainerClient
366
366
  # Custom attribute writer method with validation
367
367
  # @param [Object] sock_read_timeout Value to be assigned
368
368
  def sock_read_timeout=(sock_read_timeout)
369
- if !sock_read_timeout.nil? && sock_read_timeout < 0
370
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
369
+ if !sock_read_timeout.nil? && sock_read_timeout < 0.0
370
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
371
371
  end
372
372
 
373
373
  @sock_read_timeout = sock_read_timeout
@@ -15,27 +15,27 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # Serializer for Container Push Repositories.
17
17
  class ContainerContainerPushRepository
18
- attr_accessor :pulp_labels
18
+ # A unique name for this repository.
19
+ attr_accessor :name
19
20
 
20
21
  # A reference to an associated signing service.
21
22
  attr_accessor :manifest_signing_service
22
23
 
24
+ attr_accessor :pulp_labels
25
+
23
26
  # An optional description.
24
27
  attr_accessor :description
25
28
 
26
- # A unique name for this repository.
27
- attr_accessor :name
28
-
29
29
  # Retain X versions of the repository. Default is null which retains all versions.
30
30
  attr_accessor :retain_repo_versions
31
31
 
32
32
  # Attribute mapping from ruby-style variable name to JSON key.
33
33
  def self.attribute_map
34
34
  {
35
- :'pulp_labels' => :'pulp_labels',
35
+ :'name' => :'name',
36
36
  :'manifest_signing_service' => :'manifest_signing_service',
37
+ :'pulp_labels' => :'pulp_labels',
37
38
  :'description' => :'description',
38
- :'name' => :'name',
39
39
  :'retain_repo_versions' => :'retain_repo_versions'
40
40
  }
41
41
  end
@@ -43,10 +43,10 @@ module PulpContainerClient
43
43
  # Attribute type mapping.
44
44
  def self.openapi_types
45
45
  {
46
- :'pulp_labels' => :'Hash<String, String>',
46
+ :'name' => :'String',
47
47
  :'manifest_signing_service' => :'String',
48
+ :'pulp_labels' => :'Hash<String, String>',
48
49
  :'description' => :'String',
49
- :'name' => :'String',
50
50
  :'retain_repo_versions' => :'Integer'
51
51
  }
52
52
  end
@@ -75,22 +75,22 @@ module PulpContainerClient
75
75
  h[k.to_sym] = v
76
76
  }
77
77
 
78
- if attributes.key?(:'pulp_labels')
79
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
80
- self.pulp_labels = value
81
- end
78
+ if attributes.key?(:'name')
79
+ self.name = attributes[:'name']
82
80
  end
83
81
 
84
82
  if attributes.key?(:'manifest_signing_service')
85
83
  self.manifest_signing_service = attributes[:'manifest_signing_service']
86
84
  end
87
85
 
88
- if attributes.key?(:'description')
89
- self.description = attributes[:'description']
86
+ if attributes.key?(:'pulp_labels')
87
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
88
+ self.pulp_labels = value
89
+ end
90
90
  end
91
91
 
92
- if attributes.key?(:'name')
93
- self.name = attributes[:'name']
92
+ if attributes.key?(:'description')
93
+ self.description = attributes[:'description']
94
94
  end
95
95
 
96
96
  if attributes.key?(:'retain_repo_versions')
@@ -102,10 +102,6 @@ module PulpContainerClient
102
102
  # @return Array for valid properties with the reasons
103
103
  def list_invalid_properties
104
104
  invalid_properties = Array.new
105
- if !@description.nil? && @description.to_s.length < 1
106
- invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
107
- end
108
-
109
105
  if @name.nil?
110
106
  invalid_properties.push('invalid value for "name", name cannot be nil.')
111
107
  end
@@ -114,6 +110,10 @@ module PulpContainerClient
114
110
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
115
111
  end
116
112
 
113
+ if !@description.nil? && @description.to_s.length < 1
114
+ invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
115
+ end
116
+
117
117
  if !@retain_repo_versions.nil? && @retain_repo_versions < 1
118
118
  invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
119
119
  end
@@ -124,23 +124,13 @@ module PulpContainerClient
124
124
  # Check to see if the all the properties in the model are valid
125
125
  # @return true if the model is valid
126
126
  def valid?
127
- return false if !@description.nil? && @description.to_s.length < 1
128
127
  return false if @name.nil?
129
128
  return false if @name.to_s.length < 1
129
+ return false if !@description.nil? && @description.to_s.length < 1
130
130
  return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
131
131
  true
132
132
  end
133
133
 
134
- # Custom attribute writer method with validation
135
- # @param [Object] description Value to be assigned
136
- def description=(description)
137
- if !description.nil? && description.to_s.length < 1
138
- fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
139
- end
140
-
141
- @description = description
142
- end
143
-
144
134
  # Custom attribute writer method with validation
145
135
  # @param [Object] name Value to be assigned
146
136
  def name=(name)
@@ -155,6 +145,16 @@ module PulpContainerClient
155
145
  @name = name
156
146
  end
157
147
 
148
+ # Custom attribute writer method with validation
149
+ # @param [Object] description Value to be assigned
150
+ def description=(description)
151
+ if !description.nil? && description.to_s.length < 1
152
+ fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
153
+ end
154
+
155
+ @description = description
156
+ end
157
+
158
158
  # Custom attribute writer method with validation
159
159
  # @param [Object] retain_repo_versions Value to be assigned
160
160
  def retain_repo_versions=(retain_repo_versions)
@@ -170,10 +170,10 @@ module PulpContainerClient
170
170
  def ==(o)
171
171
  return true if self.equal?(o)
172
172
  self.class == o.class &&
173
- pulp_labels == o.pulp_labels &&
173
+ name == o.name &&
174
174
  manifest_signing_service == o.manifest_signing_service &&
175
+ pulp_labels == o.pulp_labels &&
175
176
  description == o.description &&
176
- name == o.name &&
177
177
  retain_repo_versions == o.retain_repo_versions
178
178
  end
179
179
 
@@ -186,7 +186,7 @@ module PulpContainerClient
186
186
  # Calculates hash code according to all attributes.
187
187
  # @return [Integer] Hash code
188
188
  def hash
189
- [pulp_labels, manifest_signing_service, description, name, retain_repo_versions].hash
189
+ [name, manifest_signing_service, pulp_labels, description, retain_repo_versions].hash
190
190
  end
191
191
 
192
192
  # Builds the object from hash