pulp_container_client 2.27.3 → 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 (46) 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 +34 -34
  20. data/lib/pulp_container_client/models/container_container_distribution_response.rb +73 -63
  21. data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +45 -34
  22. data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +82 -61
  23. data/lib/pulp_container_client/models/container_container_push_repository.rb +60 -34
  24. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +86 -60
  25. data/lib/pulp_container_client/models/container_container_repository.rb +27 -1
  26. data/lib/pulp_container_client/models/container_container_repository_response.rb +27 -1
  27. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +34 -34
  28. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +43 -32
  29. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +58 -32
  30. data/lib/pulp_container_client/models/patchedcontainer_container_repository.rb +27 -1
  31. data/lib/pulp_container_client/version.rb +1 -1
  32. data/spec/api/repositories_container_api_spec.rb +9 -1
  33. data/spec/api/repositories_container_push_api_spec.rb +9 -1
  34. data/spec/models/container_container_distribution_response_spec.rb +17 -11
  35. data/spec/models/container_container_distribution_spec.rb +7 -7
  36. data/spec/models/container_container_pull_through_distribution_response_spec.rb +22 -10
  37. data/spec/models/container_container_pull_through_distribution_spec.rb +12 -6
  38. data/spec/models/container_container_push_repository_response_spec.rb +15 -9
  39. data/spec/models/container_container_push_repository_spec.rb +9 -3
  40. data/spec/models/container_container_repository_response_spec.rb +6 -0
  41. data/spec/models/container_container_repository_spec.rb +6 -0
  42. data/spec/models/patchedcontainer_container_distribution_spec.rb +7 -7
  43. data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +12 -6
  44. data/spec/models/patchedcontainer_container_push_repository_spec.rb +9 -3
  45. data/spec/models/patchedcontainer_container_repository_spec.rb +6 -0
  46. metadata +59 -59
@@ -16,14 +16,6 @@ require 'time'
16
16
  module PulpContainerClient
17
17
  # A serializer for a specialized pull-through distribution referencing sub-distributions.
18
18
  class ContainerContainerPullThroughDistribution
19
- attr_accessor :pulp_labels
20
-
21
- # Whether this distribution should be shown in the content app.
22
- attr_accessor :hidden
23
-
24
- # The latest RepositoryVersion for this Repository will be served.
25
- attr_accessor :repository
26
-
27
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\")
28
20
  attr_accessor :base_path
29
21
 
@@ -33,6 +25,17 @@ module PulpContainerClient
33
25
  # An optional content-guard. If none is specified, a default one will be used.
34
26
  attr_accessor :content_guard
35
27
 
28
+ attr_accessor :pulp_labels
29
+
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
38
+
36
39
  # Remote that can be used to fetch content when using pull-through caching.
37
40
  attr_accessor :remote
38
41
 
@@ -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
- :'pulp_labels' => :'pulp_labels',
52
- :'hidden' => :'hidden',
53
- :'repository' => :'repository',
54
54
  :'base_path' => :'base_path',
55
55
  :'name' => :'name',
56
56
  :'content_guard' => :'content_guard',
57
+ :'pulp_labels' => :'pulp_labels',
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
- :'pulp_labels' => :'Hash<String, String>',
73
- :'hidden' => :'Boolean',
74
- :'repository' => :'String',
75
76
  :'base_path' => :'String',
76
77
  :'name' => :'String',
77
78
  :'content_guard' => :'String',
79
+ :'pulp_labels' => :'Hash<String, 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,22 +111,6 @@ module PulpContainerClient
105
111
  h[k.to_sym] = v
106
112
  }
107
113
 
108
- if attributes.key?(:'pulp_labels')
109
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
110
- self.pulp_labels = value
111
- end
112
- end
113
-
114
- if attributes.key?(:'hidden')
115
- self.hidden = attributes[:'hidden']
116
- else
117
- self.hidden = false
118
- end
119
-
120
- if attributes.key?(:'repository')
121
- self.repository = attributes[:'repository']
122
- end
123
-
124
114
  if attributes.key?(:'base_path')
125
115
  self.base_path = attributes[:'base_path']
126
116
  else
@@ -137,6 +127,26 @@ module PulpContainerClient
137
127
  self.content_guard = attributes[:'content_guard']
138
128
  end
139
129
 
130
+ if attributes.key?(:'pulp_labels')
131
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
132
+ self.pulp_labels = value
133
+ end
134
+ end
135
+
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']
146
+ else
147
+ self.hidden = false
148
+ end
149
+
140
150
  if attributes.key?(:'remote')
141
151
  self.remote = attributes[:'remote']
142
152
  else
@@ -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
- pulp_labels == o.pulp_labels &&
250
- hidden == o.hidden &&
251
- repository == o.repository &&
252
259
  base_path == o.base_path &&
253
260
  name == o.name &&
254
261
  content_guard == o.content_guard &&
262
+ pulp_labels == o.pulp_labels &&
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
- [pulp_labels, hidden, repository, base_path, name, content_guard, 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
@@ -16,28 +16,12 @@ require 'time'
16
16
  module PulpContainerClient
17
17
  # A serializer for a specialized pull-through distribution referencing sub-distributions.
18
18
  class ContainerContainerPullThroughDistributionResponse
19
- # Timestamp of creation.
20
- attr_accessor :pulp_created
21
-
22
- attr_accessor :pulp_labels
23
-
24
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.
25
20
  attr_accessor :no_content_change_since
26
21
 
27
- # Whether this distribution should be shown in the content app.
28
- attr_accessor :hidden
29
-
30
22
  # The Pulp Resource Name (PRN).
31
23
  attr_accessor :prn
32
24
 
33
- # 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.
34
- attr_accessor :pulp_last_updated
35
-
36
- attr_accessor :pulp_href
37
-
38
- # The latest RepositoryVersion for this Repository will be served.
39
- attr_accessor :repository
40
-
41
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\")
42
26
  attr_accessor :base_path
43
27
 
@@ -47,6 +31,28 @@ module PulpContainerClient
47
31
  # An optional content-guard. If none is specified, a default one will be used.
48
32
  attr_accessor :content_guard
49
33
 
34
+ # The Pulp Resource Name (PRN) of the associated optional content guard.
35
+ attr_accessor :content_guard_prn
36
+
37
+ attr_accessor :pulp_labels
38
+
39
+ attr_accessor :pulp_href
40
+
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
55
+
50
56
  # Remote that can be used to fetch content when using pull-through caching.
51
57
  attr_accessor :remote
52
58
 
@@ -65,17 +71,19 @@ module PulpContainerClient
65
71
  # Attribute mapping from ruby-style variable name to JSON key.
66
72
  def self.attribute_map
67
73
  {
68
- :'pulp_created' => :'pulp_created',
69
- :'pulp_labels' => :'pulp_labels',
70
74
  :'no_content_change_since' => :'no_content_change_since',
71
- :'hidden' => :'hidden',
72
75
  :'prn' => :'prn',
73
- :'pulp_last_updated' => :'pulp_last_updated',
74
- :'pulp_href' => :'pulp_href',
75
- :'repository' => :'repository',
76
76
  :'base_path' => :'base_path',
77
77
  :'name' => :'name',
78
78
  :'content_guard' => :'content_guard',
79
+ :'content_guard_prn' => :'content_guard_prn',
80
+ :'pulp_labels' => :'pulp_labels',
81
+ :'pulp_href' => :'pulp_href',
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',
@@ -92,17 +100,19 @@ module PulpContainerClient
92
100
  # Attribute type mapping.
93
101
  def self.openapi_types
94
102
  {
95
- :'pulp_created' => :'Time',
96
- :'pulp_labels' => :'Hash<String, String>',
97
103
  :'no_content_change_since' => :'String',
98
- :'hidden' => :'Boolean',
99
104
  :'prn' => :'String',
100
- :'pulp_last_updated' => :'Time',
101
- :'pulp_href' => :'String',
102
- :'repository' => :'String',
103
105
  :'base_path' => :'String',
104
106
  :'name' => :'String',
105
107
  :'content_guard' => :'String',
108
+ :'content_guard_prn' => :'String',
109
+ :'pulp_labels' => :'Hash<String, String>',
110
+ :'pulp_href' => :'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
@@ -134,56 +145,64 @@ module PulpContainerClient
134
145
  h[k.to_sym] = v
135
146
  }
136
147
 
137
- if attributes.key?(:'pulp_created')
138
- self.pulp_created = attributes[:'pulp_created']
148
+ if attributes.key?(:'no_content_change_since')
149
+ self.no_content_change_since = attributes[:'no_content_change_since']
139
150
  end
140
151
 
141
- if attributes.key?(:'pulp_labels')
142
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
143
- self.pulp_labels = value
144
- end
152
+ if attributes.key?(:'prn')
153
+ self.prn = attributes[:'prn']
145
154
  end
146
155
 
147
- if attributes.key?(:'no_content_change_since')
148
- self.no_content_change_since = attributes[:'no_content_change_since']
156
+ if attributes.key?(:'base_path')
157
+ self.base_path = attributes[:'base_path']
158
+ else
159
+ self.base_path = nil
149
160
  end
150
161
 
151
- if attributes.key?(:'hidden')
152
- self.hidden = attributes[:'hidden']
162
+ if attributes.key?(:'name')
163
+ self.name = attributes[:'name']
153
164
  else
154
- self.hidden = false
165
+ self.name = nil
155
166
  end
156
167
 
157
- if attributes.key?(:'prn')
158
- self.prn = attributes[:'prn']
168
+ if attributes.key?(:'content_guard')
169
+ self.content_guard = attributes[:'content_guard']
159
170
  end
160
171
 
161
- if attributes.key?(:'pulp_last_updated')
162
- self.pulp_last_updated = attributes[:'pulp_last_updated']
172
+ if attributes.key?(:'content_guard_prn')
173
+ self.content_guard_prn = attributes[:'content_guard_prn']
174
+ end
175
+
176
+ if attributes.key?(:'pulp_labels')
177
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
178
+ self.pulp_labels = value
179
+ end
163
180
  end
164
181
 
165
182
  if attributes.key?(:'pulp_href')
166
183
  self.pulp_href = attributes[:'pulp_href']
167
184
  end
168
185
 
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
+
169
194
  if attributes.key?(:'repository')
170
195
  self.repository = attributes[:'repository']
171
196
  end
172
197
 
173
- if attributes.key?(:'base_path')
174
- self.base_path = attributes[:'base_path']
175
- else
176
- self.base_path = nil
198
+ if attributes.key?(:'repository_version')
199
+ self.repository_version = attributes[:'repository_version']
177
200
  end
178
201
 
179
- if attributes.key?(:'name')
180
- self.name = attributes[:'name']
202
+ if attributes.key?(:'hidden')
203
+ self.hidden = attributes[:'hidden']
181
204
  else
182
- self.name = nil
183
- end
184
-
185
- if attributes.key?(:'content_guard')
186
- self.content_guard = attributes[:'content_guard']
205
+ self.hidden = false
187
206
  end
188
207
 
189
208
  if attributes.key?(:'remote')
@@ -246,17 +265,19 @@ module PulpContainerClient
246
265
  def ==(o)
247
266
  return true if self.equal?(o)
248
267
  self.class == o.class &&
249
- pulp_created == o.pulp_created &&
250
- pulp_labels == o.pulp_labels &&
251
268
  no_content_change_since == o.no_content_change_since &&
252
- hidden == o.hidden &&
253
269
  prn == o.prn &&
254
- pulp_last_updated == o.pulp_last_updated &&
255
- pulp_href == o.pulp_href &&
256
- repository == o.repository &&
257
270
  base_path == o.base_path &&
258
271
  name == o.name &&
259
272
  content_guard == o.content_guard &&
273
+ content_guard_prn == o.content_guard_prn &&
274
+ pulp_labels == o.pulp_labels &&
275
+ pulp_href == o.pulp_href &&
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
- [pulp_created, pulp_labels, no_content_change_since, hidden, prn, pulp_last_updated, pulp_href, repository, base_path, name, content_guard, 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
@@ -16,28 +16,32 @@ require 'time'
16
16
  module PulpContainerClient
17
17
  # Serializer for Container Push Repositories.
18
18
  class ContainerContainerPushRepository
19
- attr_accessor :pulp_labels
19
+ # A unique name for this repository.
20
+ attr_accessor :name
20
21
 
21
22
  # A reference to an associated signing service.
22
23
  attr_accessor :manifest_signing_service
23
24
 
24
- # A unique name for this repository.
25
- attr_accessor :name
25
+ attr_accessor :pulp_labels
26
+
27
+ # An optional description.
28
+ attr_accessor :description
26
29
 
27
30
  # Retain X versions of the repository. Default is null which retains all versions.
28
31
  attr_accessor :retain_repo_versions
29
32
 
30
- # An optional description.
31
- attr_accessor :description
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
  {
36
- :'pulp_labels' => :'pulp_labels',
37
- :'manifest_signing_service' => :'manifest_signing_service',
38
39
  :'name' => :'name',
40
+ :'manifest_signing_service' => :'manifest_signing_service',
41
+ :'pulp_labels' => :'pulp_labels',
42
+ :'description' => :'description',
39
43
  :'retain_repo_versions' => :'retain_repo_versions',
40
- :'description' => :'description'
44
+ :'retain_checkpoints' => :'retain_checkpoints'
41
45
  }
42
46
  end
43
47
 
@@ -49,11 +53,12 @@ module PulpContainerClient
49
53
  # Attribute type mapping.
50
54
  def self.openapi_types
51
55
  {
52
- :'pulp_labels' => :'Hash<String, String>',
53
- :'manifest_signing_service' => :'String',
54
56
  :'name' => :'String',
57
+ :'manifest_signing_service' => :'String',
58
+ :'pulp_labels' => :'Hash<String, String>',
59
+ :'description' => :'String',
55
60
  :'retain_repo_versions' => :'Integer',
56
- :'description' => :'String'
61
+ :'retain_checkpoints' => :'Integer'
57
62
  }
58
63
  end
59
64
 
@@ -61,8 +66,9 @@ module PulpContainerClient
61
66
  def self.openapi_nullable
62
67
  Set.new([
63
68
  :'manifest_signing_service',
69
+ :'description',
64
70
  :'retain_repo_versions',
65
- :'description'
71
+ :'retain_checkpoints'
66
72
  ])
67
73
  end
68
74
 
@@ -81,28 +87,32 @@ module PulpContainerClient
81
87
  h[k.to_sym] = v
82
88
  }
83
89
 
84
- if attributes.key?(:'pulp_labels')
85
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
86
- self.pulp_labels = value
87
- end
90
+ if attributes.key?(:'name')
91
+ self.name = attributes[:'name']
92
+ else
93
+ self.name = nil
88
94
  end
89
95
 
90
96
  if attributes.key?(:'manifest_signing_service')
91
97
  self.manifest_signing_service = attributes[:'manifest_signing_service']
92
98
  end
93
99
 
94
- if attributes.key?(:'name')
95
- self.name = attributes[:'name']
96
- else
97
- self.name = nil
100
+ if attributes.key?(:'pulp_labels')
101
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
102
+ self.pulp_labels = value
103
+ end
104
+ end
105
+
106
+ if attributes.key?(:'description')
107
+ self.description = attributes[:'description']
98
108
  end
99
109
 
100
110
  if attributes.key?(:'retain_repo_versions')
101
111
  self.retain_repo_versions = attributes[:'retain_repo_versions']
102
112
  end
103
113
 
104
- if attributes.key?(:'description')
105
- self.description = attributes[:'description']
114
+ if attributes.key?(:'retain_checkpoints')
115
+ self.retain_checkpoints = attributes[:'retain_checkpoints']
106
116
  end
107
117
  end
108
118
 
@@ -119,12 +129,16 @@ module PulpContainerClient
119
129
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
120
130
  end
121
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
+
122
136
  if !@retain_repo_versions.nil? && @retain_repo_versions < 1
123
137
  invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
124
138
  end
125
139
 
126
- if !@description.nil? && @description.to_s.length < 1
127
- invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
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.')
128
142
  end
129
143
 
130
144
  invalid_properties
@@ -136,8 +150,9 @@ module PulpContainerClient
136
150
  warn '[DEPRECATED] the `valid?` method is obsolete'
137
151
  return false if @name.nil?
138
152
  return false if @name.to_s.length < 1
139
- return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
140
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
141
156
  true
142
157
  end
143
158
 
@@ -155,6 +170,16 @@ module PulpContainerClient
155
170
  @name = name
156
171
  end
157
172
 
173
+ # Custom attribute writer method with validation
174
+ # @param [Object] description Value to be assigned
175
+ def description=(description)
176
+ if !description.nil? && description.to_s.length < 1
177
+ fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
178
+ end
179
+
180
+ @description = description
181
+ end
182
+
158
183
  # Custom attribute writer method with validation
159
184
  # @param [Object] retain_repo_versions Value to be assigned
160
185
  def retain_repo_versions=(retain_repo_versions)
@@ -166,13 +191,13 @@ module PulpContainerClient
166
191
  end
167
192
 
168
193
  # Custom attribute writer method with validation
169
- # @param [Object] description Value to be assigned
170
- def description=(description)
171
- if !description.nil? && description.to_s.length < 1
172
- fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
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.'
173
198
  end
174
199
 
175
- @description = description
200
+ @retain_checkpoints = retain_checkpoints
176
201
  end
177
202
 
178
203
  # Checks equality by comparing each attribute.
@@ -180,11 +205,12 @@ module PulpContainerClient
180
205
  def ==(o)
181
206
  return true if self.equal?(o)
182
207
  self.class == o.class &&
183
- pulp_labels == o.pulp_labels &&
184
- manifest_signing_service == o.manifest_signing_service &&
185
208
  name == o.name &&
209
+ manifest_signing_service == o.manifest_signing_service &&
210
+ pulp_labels == o.pulp_labels &&
211
+ description == o.description &&
186
212
  retain_repo_versions == o.retain_repo_versions &&
187
- description == o.description
213
+ retain_checkpoints == o.retain_checkpoints
188
214
  end
189
215
 
190
216
  # @see the `==` method
@@ -196,7 +222,7 @@ module PulpContainerClient
196
222
  # Calculates hash code according to all attributes.
197
223
  # @return [Integer] Hash code
198
224
  def hash
199
- [pulp_labels, manifest_signing_service, name, retain_repo_versions, description].hash
225
+ [name, manifest_signing_service, pulp_labels, description, retain_repo_versions, retain_checkpoints].hash
200
226
  end
201
227
 
202
228
  # Builds the object from hash