pulp_container_client 2.27.2 → 2.27.4

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.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/ContainerContainerDistribution.md +6 -6
  4. data/docs/ContainerContainerDistributionResponse.md +14 -12
  5. data/docs/ContainerContainerPullThroughDistribution.md +8 -6
  6. data/docs/ContainerContainerPullThroughDistributionResponse.md +16 -12
  7. data/docs/ContainerContainerPushRepository.md +8 -6
  8. data/docs/ContainerContainerPushRepositoryResponse.md +16 -14
  9. data/docs/ContainerContainerRepository.md +2 -0
  10. data/docs/ContainerContainerRepositoryResponse.md +2 -0
  11. data/docs/PatchedcontainerContainerDistribution.md +6 -6
  12. data/docs/PatchedcontainerContainerPullThroughDistribution.md +8 -6
  13. data/docs/PatchedcontainerContainerPushRepository.md +8 -6
  14. data/docs/PatchedcontainerContainerRepository.md +2 -0
  15. data/docs/RepositoriesContainerApi.md +18 -2
  16. data/docs/RepositoriesContainerPushApi.md +18 -2
  17. data/lib/pulp_container_client/api/repositories_container_api.rb +27 -3
  18. data/lib/pulp_container_client/api/repositories_container_push_api.rb +27 -3
  19. data/lib/pulp_container_client/models/container_container_distribution.rb +29 -29
  20. data/lib/pulp_container_client/models/container_container_distribution_response.rb +63 -53
  21. data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +39 -28
  22. data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +73 -52
  23. data/lib/pulp_container_client/models/container_container_pull_through_remote.rb +15 -0
  24. data/lib/pulp_container_client/models/container_container_pull_through_remote_response.rb +15 -0
  25. data/lib/pulp_container_client/models/container_container_push_repository.rb +81 -40
  26. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +100 -59
  27. data/lib/pulp_container_client/models/container_container_remote.rb +15 -0
  28. data/lib/pulp_container_client/models/container_container_remote_response.rb +15 -0
  29. data/lib/pulp_container_client/models/container_container_repository.rb +42 -1
  30. data/lib/pulp_container_client/models/container_container_repository_response.rb +42 -1
  31. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +27 -27
  32. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +38 -27
  33. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_remote.rb +15 -0
  34. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +77 -36
  35. data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +15 -0
  36. data/lib/pulp_container_client/models/patchedcontainer_container_repository.rb +42 -1
  37. data/lib/pulp_container_client/models/set_label.rb +0 -11
  38. data/lib/pulp_container_client/models/set_label_response.rb +0 -21
  39. data/lib/pulp_container_client/models/unset_label.rb +0 -11
  40. data/lib/pulp_container_client/models/unset_label_response.rb +0 -21
  41. data/lib/pulp_container_client/version.rb +1 -1
  42. data/spec/api/repositories_container_api_spec.rb +9 -1
  43. data/spec/api/repositories_container_push_api_spec.rb +9 -1
  44. data/spec/models/container_container_distribution_response_spec.rb +16 -10
  45. data/spec/models/container_container_distribution_spec.rb +7 -7
  46. data/spec/models/container_container_pull_through_distribution_response_spec.rb +21 -9
  47. data/spec/models/container_container_pull_through_distribution_spec.rb +12 -6
  48. data/spec/models/container_container_push_repository_response_spec.rb +16 -10
  49. data/spec/models/container_container_push_repository_spec.rb +10 -4
  50. data/spec/models/container_container_repository_response_spec.rb +6 -0
  51. data/spec/models/container_container_repository_spec.rb +6 -0
  52. data/spec/models/patchedcontainer_container_distribution_spec.rb +7 -7
  53. data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +12 -6
  54. data/spec/models/patchedcontainer_container_push_repository_spec.rb +10 -4
  55. data/spec/models/patchedcontainer_container_repository_spec.rb +6 -0
  56. metadata +60 -60
@@ -16,22 +16,25 @@ require 'time'
16
16
  module PulpContainerClient
17
17
  # A serializer for a specialized pull-through distribution referencing sub-distributions.
18
18
  class ContainerContainerPullThroughDistribution
19
- # Whether this distribution should be shown in the content app.
20
- attr_accessor :hidden
21
-
22
19
  # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
23
20
  attr_accessor :base_path
24
21
 
25
- # The latest RepositoryVersion for this Repository will be served.
26
- attr_accessor :repository
22
+ # A unique name. Ex, `rawhide` and `stable`.
23
+ attr_accessor :name
27
24
 
28
25
  # An optional content-guard. If none is specified, a default one will be used.
29
26
  attr_accessor :content_guard
30
27
 
31
28
  attr_accessor :pulp_labels
32
29
 
33
- # A unique name. Ex, `rawhide` and `stable`.
34
- attr_accessor :name
30
+ # The latest RepositoryVersion for this Repository will be served.
31
+ attr_accessor :repository
32
+
33
+ # RepositoryVersion to be served
34
+ attr_accessor :repository_version
35
+
36
+ # Whether this distribution should be shown in the content app.
37
+ attr_accessor :hidden
35
38
 
36
39
  # Remote that can be used to fetch content when using pull-through caching.
37
40
  attr_accessor :remote
@@ -48,12 +51,13 @@ module PulpContainerClient
48
51
  # Attribute mapping from ruby-style variable name to JSON key.
49
52
  def self.attribute_map
50
53
  {
51
- :'hidden' => :'hidden',
52
54
  :'base_path' => :'base_path',
53
- :'repository' => :'repository',
55
+ :'name' => :'name',
54
56
  :'content_guard' => :'content_guard',
55
57
  :'pulp_labels' => :'pulp_labels',
56
- :'name' => :'name',
58
+ :'repository' => :'repository',
59
+ :'repository_version' => :'repository_version',
60
+ :'hidden' => :'hidden',
57
61
  :'remote' => :'remote',
58
62
  :'distributions' => :'distributions',
59
63
  :'private' => :'private',
@@ -69,12 +73,13 @@ module PulpContainerClient
69
73
  # Attribute type mapping.
70
74
  def self.openapi_types
71
75
  {
72
- :'hidden' => :'Boolean',
73
76
  :'base_path' => :'String',
74
- :'repository' => :'String',
77
+ :'name' => :'String',
75
78
  :'content_guard' => :'String',
76
79
  :'pulp_labels' => :'Hash<String, String>',
77
- :'name' => :'String',
80
+ :'repository' => :'String',
81
+ :'repository_version' => :'String',
82
+ :'hidden' => :'Boolean',
78
83
  :'remote' => :'String',
79
84
  :'distributions' => :'Array<String>',
80
85
  :'private' => :'Boolean',
@@ -86,6 +91,7 @@ module PulpContainerClient
86
91
  def self.openapi_nullable
87
92
  Set.new([
88
93
  :'repository',
94
+ :'repository_version',
89
95
  :'description'
90
96
  ])
91
97
  end
@@ -105,20 +111,16 @@ module PulpContainerClient
105
111
  h[k.to_sym] = v
106
112
  }
107
113
 
108
- if attributes.key?(:'hidden')
109
- self.hidden = attributes[:'hidden']
110
- else
111
- self.hidden = false
112
- end
113
-
114
114
  if attributes.key?(:'base_path')
115
115
  self.base_path = attributes[:'base_path']
116
116
  else
117
117
  self.base_path = nil
118
118
  end
119
119
 
120
- if attributes.key?(:'repository')
121
- self.repository = attributes[:'repository']
120
+ if attributes.key?(:'name')
121
+ self.name = attributes[:'name']
122
+ else
123
+ self.name = nil
122
124
  end
123
125
 
124
126
  if attributes.key?(:'content_guard')
@@ -131,10 +133,18 @@ module PulpContainerClient
131
133
  end
132
134
  end
133
135
 
134
- if attributes.key?(:'name')
135
- self.name = attributes[:'name']
136
+ if attributes.key?(:'repository')
137
+ self.repository = attributes[:'repository']
138
+ end
139
+
140
+ if attributes.key?(:'repository_version')
141
+ self.repository_version = attributes[:'repository_version']
142
+ end
143
+
144
+ if attributes.key?(:'hidden')
145
+ self.hidden = attributes[:'hidden']
136
146
  else
137
- self.name = nil
147
+ self.hidden = false
138
148
  end
139
149
 
140
150
  if attributes.key?(:'remote')
@@ -246,12 +256,13 @@ module PulpContainerClient
246
256
  def ==(o)
247
257
  return true if self.equal?(o)
248
258
  self.class == o.class &&
249
- hidden == o.hidden &&
250
259
  base_path == o.base_path &&
251
- repository == o.repository &&
260
+ name == o.name &&
252
261
  content_guard == o.content_guard &&
253
262
  pulp_labels == o.pulp_labels &&
254
- name == o.name &&
263
+ repository == o.repository &&
264
+ repository_version == o.repository_version &&
265
+ hidden == o.hidden &&
255
266
  remote == o.remote &&
256
267
  distributions == o.distributions &&
257
268
  private == o.private &&
@@ -267,7 +278,7 @@ module PulpContainerClient
267
278
  # Calculates hash code according to all attributes.
268
279
  # @return [Integer] Hash code
269
280
  def hash
270
- [hidden, base_path, repository, content_guard, pulp_labels, name, remote, distributions, private, description].hash
281
+ [base_path, name, content_guard, pulp_labels, repository, repository_version, hidden, remote, distributions, private, description].hash
271
282
  end
272
283
 
273
284
  # Builds the object from hash
@@ -19,33 +19,39 @@ module PulpContainerClient
19
19
  # Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
20
20
  attr_accessor :no_content_change_since
21
21
 
22
- # Timestamp of creation.
23
- attr_accessor :pulp_created
24
-
25
- # Whether this distribution should be shown in the content app.
26
- attr_accessor :hidden
22
+ # The Pulp Resource Name (PRN).
23
+ attr_accessor :prn
27
24
 
28
25
  # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
29
26
  attr_accessor :base_path
30
27
 
31
- # The Pulp Resource Name (PRN).
32
- attr_accessor :prn
33
-
34
- # The latest RepositoryVersion for this Repository will be served.
35
- attr_accessor :repository
28
+ # A unique name. Ex, `rawhide` and `stable`.
29
+ attr_accessor :name
36
30
 
37
31
  # An optional content-guard. If none is specified, a default one will be used.
38
32
  attr_accessor :content_guard
39
33
 
40
- # 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
- attr_accessor :pulp_last_updated
34
+ # The Pulp Resource Name (PRN) of the associated optional content guard.
35
+ attr_accessor :content_guard_prn
42
36
 
43
37
  attr_accessor :pulp_labels
44
38
 
45
39
  attr_accessor :pulp_href
46
40
 
47
- # A unique name. Ex, `rawhide` and `stable`.
48
- attr_accessor :name
41
+ # Timestamp of creation.
42
+ attr_accessor :pulp_created
43
+
44
+ # 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.
45
+ attr_accessor :pulp_last_updated
46
+
47
+ # The latest RepositoryVersion for this Repository will be served.
48
+ attr_accessor :repository
49
+
50
+ # RepositoryVersion to be served
51
+ attr_accessor :repository_version
52
+
53
+ # Whether this distribution should be shown in the content app.
54
+ attr_accessor :hidden
49
55
 
50
56
  # Remote that can be used to fetch content when using pull-through caching.
51
57
  attr_accessor :remote
@@ -66,16 +72,18 @@ module PulpContainerClient
66
72
  def self.attribute_map
67
73
  {
68
74
  :'no_content_change_since' => :'no_content_change_since',
69
- :'pulp_created' => :'pulp_created',
70
- :'hidden' => :'hidden',
71
- :'base_path' => :'base_path',
72
75
  :'prn' => :'prn',
73
- :'repository' => :'repository',
76
+ :'base_path' => :'base_path',
77
+ :'name' => :'name',
74
78
  :'content_guard' => :'content_guard',
75
- :'pulp_last_updated' => :'pulp_last_updated',
79
+ :'content_guard_prn' => :'content_guard_prn',
76
80
  :'pulp_labels' => :'pulp_labels',
77
81
  :'pulp_href' => :'pulp_href',
78
- :'name' => :'name',
82
+ :'pulp_created' => :'pulp_created',
83
+ :'pulp_last_updated' => :'pulp_last_updated',
84
+ :'repository' => :'repository',
85
+ :'repository_version' => :'repository_version',
86
+ :'hidden' => :'hidden',
79
87
  :'remote' => :'remote',
80
88
  :'distributions' => :'distributions',
81
89
  :'namespace' => :'namespace',
@@ -93,16 +101,18 @@ module PulpContainerClient
93
101
  def self.openapi_types
94
102
  {
95
103
  :'no_content_change_since' => :'String',
96
- :'pulp_created' => :'Time',
97
- :'hidden' => :'Boolean',
98
- :'base_path' => :'String',
99
104
  :'prn' => :'String',
100
- :'repository' => :'String',
105
+ :'base_path' => :'String',
106
+ :'name' => :'String',
101
107
  :'content_guard' => :'String',
102
- :'pulp_last_updated' => :'Time',
108
+ :'content_guard_prn' => :'String',
103
109
  :'pulp_labels' => :'Hash<String, String>',
104
110
  :'pulp_href' => :'String',
105
- :'name' => :'String',
111
+ :'pulp_created' => :'Time',
112
+ :'pulp_last_updated' => :'Time',
113
+ :'repository' => :'String',
114
+ :'repository_version' => :'String',
115
+ :'hidden' => :'Boolean',
106
116
  :'remote' => :'String',
107
117
  :'distributions' => :'Array<String>',
108
118
  :'namespace' => :'String',
@@ -115,6 +125,7 @@ module PulpContainerClient
115
125
  def self.openapi_nullable
116
126
  Set.new([
117
127
  :'repository',
128
+ :'repository_version',
118
129
  :'description'
119
130
  ])
120
131
  end
@@ -138,14 +149,8 @@ module PulpContainerClient
138
149
  self.no_content_change_since = attributes[:'no_content_change_since']
139
150
  end
140
151
 
141
- if attributes.key?(:'pulp_created')
142
- self.pulp_created = attributes[:'pulp_created']
143
- end
144
-
145
- if attributes.key?(:'hidden')
146
- self.hidden = attributes[:'hidden']
147
- else
148
- self.hidden = false
152
+ if attributes.key?(:'prn')
153
+ self.prn = attributes[:'prn']
149
154
  end
150
155
 
151
156
  if attributes.key?(:'base_path')
@@ -154,20 +159,18 @@ module PulpContainerClient
154
159
  self.base_path = nil
155
160
  end
156
161
 
157
- if attributes.key?(:'prn')
158
- self.prn = attributes[:'prn']
159
- end
160
-
161
- if attributes.key?(:'repository')
162
- self.repository = attributes[:'repository']
162
+ if attributes.key?(:'name')
163
+ self.name = attributes[:'name']
164
+ else
165
+ self.name = nil
163
166
  end
164
167
 
165
168
  if attributes.key?(:'content_guard')
166
169
  self.content_guard = attributes[:'content_guard']
167
170
  end
168
171
 
169
- if attributes.key?(:'pulp_last_updated')
170
- self.pulp_last_updated = attributes[:'pulp_last_updated']
172
+ if attributes.key?(:'content_guard_prn')
173
+ self.content_guard_prn = attributes[:'content_guard_prn']
171
174
  end
172
175
 
173
176
  if attributes.key?(:'pulp_labels')
@@ -180,10 +183,26 @@ module PulpContainerClient
180
183
  self.pulp_href = attributes[:'pulp_href']
181
184
  end
182
185
 
183
- if attributes.key?(:'name')
184
- self.name = attributes[:'name']
186
+ if attributes.key?(:'pulp_created')
187
+ self.pulp_created = attributes[:'pulp_created']
188
+ end
189
+
190
+ if attributes.key?(:'pulp_last_updated')
191
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
192
+ end
193
+
194
+ if attributes.key?(:'repository')
195
+ self.repository = attributes[:'repository']
196
+ end
197
+
198
+ if attributes.key?(:'repository_version')
199
+ self.repository_version = attributes[:'repository_version']
200
+ end
201
+
202
+ if attributes.key?(:'hidden')
203
+ self.hidden = attributes[:'hidden']
185
204
  else
186
- self.name = nil
205
+ self.hidden = false
187
206
  end
188
207
 
189
208
  if attributes.key?(:'remote')
@@ -247,16 +266,18 @@ module PulpContainerClient
247
266
  return true if self.equal?(o)
248
267
  self.class == o.class &&
249
268
  no_content_change_since == o.no_content_change_since &&
250
- pulp_created == o.pulp_created &&
251
- hidden == o.hidden &&
252
- base_path == o.base_path &&
253
269
  prn == o.prn &&
254
- repository == o.repository &&
270
+ base_path == o.base_path &&
271
+ name == o.name &&
255
272
  content_guard == o.content_guard &&
256
- pulp_last_updated == o.pulp_last_updated &&
273
+ content_guard_prn == o.content_guard_prn &&
257
274
  pulp_labels == o.pulp_labels &&
258
275
  pulp_href == o.pulp_href &&
259
- name == o.name &&
276
+ pulp_created == o.pulp_created &&
277
+ pulp_last_updated == o.pulp_last_updated &&
278
+ repository == o.repository &&
279
+ repository_version == o.repository_version &&
280
+ hidden == o.hidden &&
260
281
  remote == o.remote &&
261
282
  distributions == o.distributions &&
262
283
  namespace == o.namespace &&
@@ -273,7 +294,7 @@ module PulpContainerClient
273
294
  # Calculates hash code according to all attributes.
274
295
  # @return [Integer] Hash code
275
296
  def hash
276
- [no_content_change_since, pulp_created, hidden, base_path, prn, repository, content_guard, pulp_last_updated, pulp_labels, pulp_href, name, remote, distributions, namespace, private, description].hash
297
+ [no_content_change_since, prn, base_path, name, content_guard, content_guard_prn, pulp_labels, pulp_href, pulp_created, pulp_last_updated, repository, repository_version, hidden, remote, distributions, namespace, private, description].hash
277
298
  end
278
299
 
279
300
  # Builds the object from hash
@@ -380,6 +380,10 @@ module PulpContainerClient
380
380
  invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
381
381
  end
382
382
 
383
+ if !@download_concurrency.nil? && @download_concurrency < 1
384
+ invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
385
+ end
386
+
383
387
  invalid_properties
384
388
  end
385
389
 
@@ -403,6 +407,7 @@ module PulpContainerClient
403
407
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
404
408
  return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
405
409
  return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
410
+ return false if !@download_concurrency.nil? && @download_concurrency < 1
406
411
  true
407
412
  end
408
413
 
@@ -554,6 +559,16 @@ module PulpContainerClient
554
559
  @sock_read_timeout = sock_read_timeout
555
560
  end
556
561
 
562
+ # Custom attribute writer method with validation
563
+ # @param [Object] download_concurrency Value to be assigned
564
+ def download_concurrency=(download_concurrency)
565
+ if !download_concurrency.nil? && download_concurrency < 1
566
+ fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
567
+ end
568
+
569
+ @download_concurrency = download_concurrency
570
+ end
571
+
557
572
  # Checks equality by comparing each attribute.
558
573
  # @param [Object] Object to be compared
559
574
  def ==(o)
@@ -336,6 +336,10 @@ module PulpContainerClient
336
336
  invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
337
337
  end
338
338
 
339
+ if !@download_concurrency.nil? && @download_concurrency < 1
340
+ invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
341
+ end
342
+
339
343
  invalid_properties
340
344
  end
341
345
 
@@ -349,6 +353,7 @@ module PulpContainerClient
349
353
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
350
354
  return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
351
355
  return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
356
+ return false if !@download_concurrency.nil? && @download_concurrency < 1
352
357
  true
353
358
  end
354
359
 
@@ -392,6 +397,16 @@ module PulpContainerClient
392
397
  @sock_read_timeout = sock_read_timeout
393
398
  end
394
399
 
400
+ # Custom attribute writer method with validation
401
+ # @param [Object] download_concurrency Value to be assigned
402
+ def download_concurrency=(download_concurrency)
403
+ if !download_concurrency.nil? && download_concurrency < 1
404
+ fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
405
+ end
406
+
407
+ @download_concurrency = download_concurrency
408
+ end
409
+
395
410
  # Checks equality by comparing each attribute.
396
411
  # @param [Object] Object to be compared
397
412
  def ==(o)
@@ -16,28 +16,32 @@ require 'time'
16
16
  module PulpContainerClient
17
17
  # Serializer for Container Push Repositories.
18
18
  class ContainerContainerPushRepository
19
+ # A unique name for this repository.
20
+ attr_accessor :name
21
+
22
+ # A reference to an associated signing service.
23
+ attr_accessor :manifest_signing_service
24
+
25
+ attr_accessor :pulp_labels
26
+
19
27
  # An optional description.
20
28
  attr_accessor :description
21
29
 
22
30
  # Retain X versions of the repository. Default is null which retains all versions.
23
31
  attr_accessor :retain_repo_versions
24
32
 
25
- attr_accessor :pulp_labels
26
-
27
- # A reference to an associated signing service.
28
- attr_accessor :manifest_signing_service
29
-
30
- # A unique name for this repository.
31
- attr_accessor :name
33
+ # Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
34
+ attr_accessor :retain_checkpoints
32
35
 
33
36
  # Attribute mapping from ruby-style variable name to JSON key.
34
37
  def self.attribute_map
35
38
  {
39
+ :'name' => :'name',
40
+ :'manifest_signing_service' => :'manifest_signing_service',
41
+ :'pulp_labels' => :'pulp_labels',
36
42
  :'description' => :'description',
37
43
  :'retain_repo_versions' => :'retain_repo_versions',
38
- :'pulp_labels' => :'pulp_labels',
39
- :'manifest_signing_service' => :'manifest_signing_service',
40
- :'name' => :'name'
44
+ :'retain_checkpoints' => :'retain_checkpoints'
41
45
  }
42
46
  end
43
47
 
@@ -49,20 +53,22 @@ module PulpContainerClient
49
53
  # Attribute type mapping.
50
54
  def self.openapi_types
51
55
  {
56
+ :'name' => :'String',
57
+ :'manifest_signing_service' => :'String',
58
+ :'pulp_labels' => :'Hash<String, String>',
52
59
  :'description' => :'String',
53
60
  :'retain_repo_versions' => :'Integer',
54
- :'pulp_labels' => :'Hash<String, String>',
55
- :'manifest_signing_service' => :'String',
56
- :'name' => :'String'
61
+ :'retain_checkpoints' => :'Integer'
57
62
  }
58
63
  end
59
64
 
60
65
  # List of attributes with nullable: true
61
66
  def self.openapi_nullable
62
67
  Set.new([
68
+ :'manifest_signing_service',
63
69
  :'description',
64
70
  :'retain_repo_versions',
65
- :'manifest_signing_service',
71
+ :'retain_checkpoints'
66
72
  ])
67
73
  end
68
74
 
@@ -81,12 +87,14 @@ module PulpContainerClient
81
87
  h[k.to_sym] = v
82
88
  }
83
89
 
84
- if attributes.key?(:'description')
85
- self.description = attributes[:'description']
90
+ if attributes.key?(:'name')
91
+ self.name = attributes[:'name']
92
+ else
93
+ self.name = nil
86
94
  end
87
95
 
88
- if attributes.key?(:'retain_repo_versions')
89
- self.retain_repo_versions = attributes[:'retain_repo_versions']
96
+ if attributes.key?(:'manifest_signing_service')
97
+ self.manifest_signing_service = attributes[:'manifest_signing_service']
90
98
  end
91
99
 
92
100
  if attributes.key?(:'pulp_labels')
@@ -95,14 +103,16 @@ module PulpContainerClient
95
103
  end
96
104
  end
97
105
 
98
- if attributes.key?(:'manifest_signing_service')
99
- self.manifest_signing_service = attributes[:'manifest_signing_service']
106
+ if attributes.key?(:'description')
107
+ self.description = attributes[:'description']
100
108
  end
101
109
 
102
- if attributes.key?(:'name')
103
- self.name = attributes[:'name']
104
- else
105
- self.name = nil
110
+ if attributes.key?(:'retain_repo_versions')
111
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
112
+ end
113
+
114
+ if attributes.key?(:'retain_checkpoints')
115
+ self.retain_checkpoints = attributes[:'retain_checkpoints']
106
116
  end
107
117
  end
108
118
 
@@ -111,10 +121,6 @@ module PulpContainerClient
111
121
  def list_invalid_properties
112
122
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
113
123
  invalid_properties = Array.new
114
- if !@description.nil? && @description.to_s.length < 1
115
- invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
116
- end
117
-
118
124
  if @name.nil?
119
125
  invalid_properties.push('invalid value for "name", name cannot be nil.')
120
126
  end
@@ -123,6 +129,18 @@ module PulpContainerClient
123
129
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
124
130
  end
125
131
 
132
+ if !@description.nil? && @description.to_s.length < 1
133
+ invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
134
+ end
135
+
136
+ if !@retain_repo_versions.nil? && @retain_repo_versions < 1
137
+ invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
138
+ end
139
+
140
+ if !@retain_checkpoints.nil? && @retain_checkpoints < 1
141
+ invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
142
+ end
143
+
126
144
  invalid_properties
127
145
  end
128
146
 
@@ -130,12 +148,28 @@ module PulpContainerClient
130
148
  # @return true if the model is valid
131
149
  def valid?
132
150
  warn '[DEPRECATED] the `valid?` method is obsolete'
133
- return false if !@description.nil? && @description.to_s.length < 1
134
151
  return false if @name.nil?
135
152
  return false if @name.to_s.length < 1
153
+ return false if !@description.nil? && @description.to_s.length < 1
154
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
155
+ return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
136
156
  true
137
157
  end
138
158
 
159
+ # Custom attribute writer method with validation
160
+ # @param [Object] name Value to be assigned
161
+ def name=(name)
162
+ if name.nil?
163
+ fail ArgumentError, 'name cannot be nil'
164
+ end
165
+
166
+ if name.to_s.length < 1
167
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
168
+ end
169
+
170
+ @name = name
171
+ end
172
+
139
173
  # Custom attribute writer method with validation
140
174
  # @param [Object] description Value to be assigned
141
175
  def description=(description)
@@ -147,17 +181,23 @@ module PulpContainerClient
147
181
  end
148
182
 
149
183
  # Custom attribute writer method with validation
150
- # @param [Object] name Value to be assigned
151
- def name=(name)
152
- if name.nil?
153
- fail ArgumentError, 'name cannot be nil'
184
+ # @param [Object] retain_repo_versions Value to be assigned
185
+ def retain_repo_versions=(retain_repo_versions)
186
+ if !retain_repo_versions.nil? && retain_repo_versions < 1
187
+ fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
154
188
  end
155
189
 
156
- if name.to_s.length < 1
157
- fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
190
+ @retain_repo_versions = retain_repo_versions
191
+ end
192
+
193
+ # Custom attribute writer method with validation
194
+ # @param [Object] retain_checkpoints Value to be assigned
195
+ def retain_checkpoints=(retain_checkpoints)
196
+ if !retain_checkpoints.nil? && retain_checkpoints < 1
197
+ fail ArgumentError, 'invalid value for "retain_checkpoints", must be greater than or equal to 1.'
158
198
  end
159
199
 
160
- @name = name
200
+ @retain_checkpoints = retain_checkpoints
161
201
  end
162
202
 
163
203
  # Checks equality by comparing each attribute.
@@ -165,11 +205,12 @@ module PulpContainerClient
165
205
  def ==(o)
166
206
  return true if self.equal?(o)
167
207
  self.class == o.class &&
208
+ name == o.name &&
209
+ manifest_signing_service == o.manifest_signing_service &&
210
+ pulp_labels == o.pulp_labels &&
168
211
  description == o.description &&
169
212
  retain_repo_versions == o.retain_repo_versions &&
170
- pulp_labels == o.pulp_labels &&
171
- manifest_signing_service == o.manifest_signing_service &&
172
- name == o.name
213
+ retain_checkpoints == o.retain_checkpoints
173
214
  end
174
215
 
175
216
  # @see the `==` method
@@ -181,7 +222,7 @@ module PulpContainerClient
181
222
  # Calculates hash code according to all attributes.
182
223
  # @return [Integer] Hash code
183
224
  def hash
184
- [description, retain_repo_versions, pulp_labels, manifest_signing_service, name].hash
225
+ [name, manifest_signing_service, pulp_labels, description, retain_repo_versions, retain_checkpoints].hash
185
226
  end
186
227
 
187
228
  # Builds the object from hash