pulp_container_client 2.27.15 → 2.28.0

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 (58) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +6 -6
  3. data/docs/ContainerContainerDistribution.md +6 -6
  4. data/docs/ContainerContainerDistributionResponse.md +16 -16
  5. data/docs/ContainerContainerNamespace.md +3 -1
  6. data/docs/ContainerContainerNamespaceResponse.md +3 -1
  7. data/docs/ContainerContainerPullThroughDistribution.md +6 -6
  8. data/docs/ContainerContainerPullThroughDistributionResponse.md +16 -16
  9. data/docs/ContainerContainerPushRepository.md +5 -5
  10. data/docs/ContainerContainerPushRepositoryResponse.md +13 -13
  11. data/docs/ContainerContainerRemote.md +6 -2
  12. data/docs/ContainerContainerRemoteResponse.md +4 -4
  13. data/docs/ContainerManifestSignatureResponse.md +2 -0
  14. data/docs/ContentSignaturesApi.md +2 -2
  15. data/docs/DistributionsPullThroughApi.md +10 -10
  16. data/docs/PatchedcontainerContainerDistribution.md +6 -6
  17. data/docs/PatchedcontainerContainerPullThroughDistribution.md +6 -6
  18. data/docs/PatchedcontainerContainerPushRepository.md +5 -5
  19. data/docs/PatchedcontainerContainerRemote.md +6 -2
  20. data/docs/PulpContainerNamespacesApi.md +2 -2
  21. data/lib/pulp_container_client/api/content_signatures_api.rb +3 -3
  22. data/lib/pulp_container_client/api/distributions_pull_through_api.rb +8 -4
  23. data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +3 -3
  24. data/lib/pulp_container_client/models/container_container_distribution.rb +25 -25
  25. data/lib/pulp_container_client/models/container_container_distribution_response.rb +66 -66
  26. data/lib/pulp_container_client/models/container_container_namespace.rb +15 -4
  27. data/lib/pulp_container_client/models/container_container_namespace_response.rb +15 -4
  28. data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +25 -25
  29. data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +66 -66
  30. data/lib/pulp_container_client/models/container_container_push_repository.rb +59 -59
  31. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +75 -75
  32. data/lib/pulp_container_client/models/container_container_remote.rb +29 -3
  33. data/lib/pulp_container_client/models/container_container_remote_response.rb +19 -19
  34. data/lib/pulp_container_client/models/container_manifest_signature_response.rb +14 -1
  35. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +22 -22
  36. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +22 -22
  37. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +56 -56
  38. data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +29 -3
  39. data/lib/pulp_container_client/version.rb +1 -1
  40. data/spec/api/content_signatures_api_spec.rb +1 -1
  41. data/spec/api/distributions_pull_through_api_spec.rb +4 -2
  42. data/spec/api/pulp_container_namespaces_api_spec.rb +1 -1
  43. data/spec/models/container_container_distribution_response_spec.rb +10 -10
  44. data/spec/models/container_container_distribution_spec.rb +3 -3
  45. data/spec/models/container_container_namespace_response_spec.rb +6 -0
  46. data/spec/models/container_container_namespace_spec.rb +6 -0
  47. data/spec/models/container_container_pull_through_distribution_response_spec.rb +10 -10
  48. data/spec/models/container_container_pull_through_distribution_spec.rb +3 -3
  49. data/spec/models/container_container_push_repository_response_spec.rb +10 -10
  50. data/spec/models/container_container_push_repository_spec.rb +5 -5
  51. data/spec/models/container_container_remote_response_spec.rb +2 -2
  52. data/spec/models/container_container_remote_spec.rb +12 -0
  53. data/spec/models/container_manifest_signature_response_spec.rb +6 -0
  54. data/spec/models/patchedcontainer_container_distribution_spec.rb +3 -3
  55. data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +3 -3
  56. data/spec/models/patchedcontainer_container_push_repository_spec.rb +5 -5
  57. data/spec/models/patchedcontainer_container_remote_spec.rb +12 -0
  58. metadata +56 -56
@@ -19,13 +19,13 @@ module PulpContainerClient
19
19
  # Whether this distribution should be shown in the content app.
20
20
  attr_accessor :hidden
21
21
 
22
- # An optional content-guard. If none is specified, a default one will be used.
23
- attr_accessor :content_guard
22
+ # 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
+ attr_accessor :base_path
24
24
 
25
25
  attr_accessor :pulp_labels
26
26
 
27
- # The registry path exposed by this pull-through distribution.
28
- attr_accessor :base_path
27
+ # A unique name. Ex, `rawhide` and `stable`.
28
+ attr_accessor :name
29
29
 
30
30
  # The latest RepositoryVersion for this Repository will be served.
31
31
  attr_accessor :repository
@@ -33,8 +33,8 @@ module PulpContainerClient
33
33
  # RepositoryVersion to be served
34
34
  attr_accessor :repository_version
35
35
 
36
- # A unique name. Ex, `rawhide` and `stable`.
37
- attr_accessor :name
36
+ # An optional content-guard. If none is specified, a default one will be used.
37
+ attr_accessor :content_guard
38
38
 
39
39
  # Remote that can be used to fetch content when using pull-through caching.
40
40
  attr_accessor :remote
@@ -52,12 +52,12 @@ module PulpContainerClient
52
52
  def self.attribute_map
53
53
  {
54
54
  :'hidden' => :'hidden',
55
- :'content_guard' => :'content_guard',
56
- :'pulp_labels' => :'pulp_labels',
57
55
  :'base_path' => :'base_path',
56
+ :'pulp_labels' => :'pulp_labels',
57
+ :'name' => :'name',
58
58
  :'repository' => :'repository',
59
59
  :'repository_version' => :'repository_version',
60
- :'name' => :'name',
60
+ :'content_guard' => :'content_guard',
61
61
  :'remote' => :'remote',
62
62
  :'distributions' => :'distributions',
63
63
  :'private' => :'private',
@@ -74,12 +74,12 @@ module PulpContainerClient
74
74
  def self.openapi_types
75
75
  {
76
76
  :'hidden' => :'Boolean',
77
- :'content_guard' => :'String',
78
- :'pulp_labels' => :'Hash<String, String>',
79
77
  :'base_path' => :'String',
78
+ :'pulp_labels' => :'Hash<String, String>',
79
+ :'name' => :'String',
80
80
  :'repository' => :'String',
81
81
  :'repository_version' => :'String',
82
- :'name' => :'String',
82
+ :'content_guard' => :'String',
83
83
  :'remote' => :'String',
84
84
  :'distributions' => :'Array<String>',
85
85
  :'private' => :'Boolean',
@@ -117,8 +117,10 @@ module PulpContainerClient
117
117
  self.hidden = false
118
118
  end
119
119
 
120
- if attributes.key?(:'content_guard')
121
- self.content_guard = attributes[:'content_guard']
120
+ if attributes.key?(:'base_path')
121
+ self.base_path = attributes[:'base_path']
122
+ else
123
+ self.base_path = nil
122
124
  end
123
125
 
124
126
  if attributes.key?(:'pulp_labels')
@@ -127,10 +129,10 @@ module PulpContainerClient
127
129
  end
128
130
  end
129
131
 
130
- if attributes.key?(:'base_path')
131
- self.base_path = attributes[:'base_path']
132
+ if attributes.key?(:'name')
133
+ self.name = attributes[:'name']
132
134
  else
133
- self.base_path = nil
135
+ self.name = nil
134
136
  end
135
137
 
136
138
  if attributes.key?(:'repository')
@@ -141,10 +143,8 @@ module PulpContainerClient
141
143
  self.repository_version = attributes[:'repository_version']
142
144
  end
143
145
 
144
- if attributes.key?(:'name')
145
- self.name = attributes[:'name']
146
- else
147
- self.name = nil
146
+ if attributes.key?(:'content_guard')
147
+ self.content_guard = attributes[:'content_guard']
148
148
  end
149
149
 
150
150
  if attributes.key?(:'remote')
@@ -257,12 +257,12 @@ module PulpContainerClient
257
257
  return true if self.equal?(o)
258
258
  self.class == o.class &&
259
259
  hidden == o.hidden &&
260
- content_guard == o.content_guard &&
261
- pulp_labels == o.pulp_labels &&
262
260
  base_path == o.base_path &&
261
+ pulp_labels == o.pulp_labels &&
262
+ name == o.name &&
263
263
  repository == o.repository &&
264
264
  repository_version == o.repository_version &&
265
- name == o.name &&
265
+ content_guard == o.content_guard &&
266
266
  remote == o.remote &&
267
267
  distributions == o.distributions &&
268
268
  private == o.private &&
@@ -278,7 +278,7 @@ module PulpContainerClient
278
278
  # Calculates hash code according to all attributes.
279
279
  # @return [Integer] Hash code
280
280
  def hash
281
- [hidden, content_guard, pulp_labels, base_path, repository, repository_version, name, remote, distributions, private, description].hash
281
+ [hidden, base_path, pulp_labels, name, repository, repository_version, content_guard, remote, distributions, private, description].hash
282
282
  end
283
283
 
284
284
  # Builds the object from hash
@@ -19,39 +19,39 @@ module PulpContainerClient
19
19
  # Whether this distribution should be shown in the content app.
20
20
  attr_accessor :hidden
21
21
 
22
- # Timestamp of creation.
23
- attr_accessor :pulp_created
24
-
25
- # Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
26
- attr_accessor :no_content_change_since
27
-
28
- # An optional content-guard. If none is specified, a default one will be used.
29
- attr_accessor :content_guard
22
+ # 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
+ attr_accessor :base_path
30
24
 
31
- attr_accessor :pulp_labels
25
+ # The Pulp Resource Name (PRN).
26
+ attr_accessor :prn
32
27
 
33
28
  # 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
29
  attr_accessor :pulp_last_updated
35
30
 
36
- attr_accessor :pulp_href
31
+ attr_accessor :pulp_labels
37
32
 
38
- # The registry path exposed by this pull-through distribution.
39
- attr_accessor :base_path
33
+ attr_accessor :pulp_href
40
34
 
41
- # The Pulp Resource Name (PRN).
42
- attr_accessor :prn
35
+ # A unique name. Ex, `rawhide` and `stable`.
36
+ attr_accessor :name
43
37
 
44
38
  # The latest RepositoryVersion for this Repository will be served.
45
39
  attr_accessor :repository
46
40
 
41
+ # Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
42
+ attr_accessor :no_content_change_since
43
+
44
+ # The Pulp Resource Name (PRN) of the associated optional content guard.
45
+ attr_accessor :content_guard_prn
46
+
47
47
  # RepositoryVersion to be served
48
48
  attr_accessor :repository_version
49
49
 
50
- # A unique name. Ex, `rawhide` and `stable`.
51
- attr_accessor :name
50
+ # Timestamp of creation.
51
+ attr_accessor :pulp_created
52
52
 
53
- # The Pulp Resource Name (PRN) of the associated optional content guard.
54
- attr_accessor :content_guard_prn
53
+ # An optional content-guard. If none is specified, a default one will be used.
54
+ attr_accessor :content_guard
55
55
 
56
56
  # Remote that can be used to fetch content when using pull-through caching.
57
57
  attr_accessor :remote
@@ -72,18 +72,18 @@ module PulpContainerClient
72
72
  def self.attribute_map
73
73
  {
74
74
  :'hidden' => :'hidden',
75
- :'pulp_created' => :'pulp_created',
76
- :'no_content_change_since' => :'no_content_change_since',
77
- :'content_guard' => :'content_guard',
78
- :'pulp_labels' => :'pulp_labels',
79
- :'pulp_last_updated' => :'pulp_last_updated',
80
- :'pulp_href' => :'pulp_href',
81
75
  :'base_path' => :'base_path',
82
76
  :'prn' => :'prn',
83
- :'repository' => :'repository',
84
- :'repository_version' => :'repository_version',
77
+ :'pulp_last_updated' => :'pulp_last_updated',
78
+ :'pulp_labels' => :'pulp_labels',
79
+ :'pulp_href' => :'pulp_href',
85
80
  :'name' => :'name',
81
+ :'repository' => :'repository',
82
+ :'no_content_change_since' => :'no_content_change_since',
86
83
  :'content_guard_prn' => :'content_guard_prn',
84
+ :'repository_version' => :'repository_version',
85
+ :'pulp_created' => :'pulp_created',
86
+ :'content_guard' => :'content_guard',
87
87
  :'remote' => :'remote',
88
88
  :'distributions' => :'distributions',
89
89
  :'namespace' => :'namespace',
@@ -101,18 +101,18 @@ module PulpContainerClient
101
101
  def self.openapi_types
102
102
  {
103
103
  :'hidden' => :'Boolean',
104
- :'pulp_created' => :'Time',
105
- :'no_content_change_since' => :'String',
106
- :'content_guard' => :'String',
107
- :'pulp_labels' => :'Hash<String, String>',
108
- :'pulp_last_updated' => :'Time',
109
- :'pulp_href' => :'String',
110
104
  :'base_path' => :'String',
111
105
  :'prn' => :'String',
112
- :'repository' => :'String',
113
- :'repository_version' => :'String',
106
+ :'pulp_last_updated' => :'Time',
107
+ :'pulp_labels' => :'Hash<String, String>',
108
+ :'pulp_href' => :'String',
114
109
  :'name' => :'String',
110
+ :'repository' => :'String',
111
+ :'no_content_change_since' => :'String',
115
112
  :'content_guard_prn' => :'String',
113
+ :'repository_version' => :'String',
114
+ :'pulp_created' => :'Time',
115
+ :'content_guard' => :'String',
116
116
  :'remote' => :'String',
117
117
  :'distributions' => :'Array<String>',
118
118
  :'namespace' => :'String',
@@ -151,16 +151,18 @@ module PulpContainerClient
151
151
  self.hidden = false
152
152
  end
153
153
 
154
- if attributes.key?(:'pulp_created')
155
- self.pulp_created = attributes[:'pulp_created']
154
+ if attributes.key?(:'base_path')
155
+ self.base_path = attributes[:'base_path']
156
+ else
157
+ self.base_path = nil
156
158
  end
157
159
 
158
- if attributes.key?(:'no_content_change_since')
159
- self.no_content_change_since = attributes[:'no_content_change_since']
160
+ if attributes.key?(:'prn')
161
+ self.prn = attributes[:'prn']
160
162
  end
161
163
 
162
- if attributes.key?(:'content_guard')
163
- self.content_guard = attributes[:'content_guard']
164
+ if attributes.key?(:'pulp_last_updated')
165
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
164
166
  end
165
167
 
166
168
  if attributes.key?(:'pulp_labels')
@@ -169,40 +171,38 @@ module PulpContainerClient
169
171
  end
170
172
  end
171
173
 
172
- if attributes.key?(:'pulp_last_updated')
173
- self.pulp_last_updated = attributes[:'pulp_last_updated']
174
- end
175
-
176
174
  if attributes.key?(:'pulp_href')
177
175
  self.pulp_href = attributes[:'pulp_href']
178
176
  end
179
177
 
180
- if attributes.key?(:'base_path')
181
- self.base_path = attributes[:'base_path']
178
+ if attributes.key?(:'name')
179
+ self.name = attributes[:'name']
182
180
  else
183
- self.base_path = nil
184
- end
185
-
186
- if attributes.key?(:'prn')
187
- self.prn = attributes[:'prn']
181
+ self.name = nil
188
182
  end
189
183
 
190
184
  if attributes.key?(:'repository')
191
185
  self.repository = attributes[:'repository']
192
186
  end
193
187
 
188
+ if attributes.key?(:'no_content_change_since')
189
+ self.no_content_change_since = attributes[:'no_content_change_since']
190
+ end
191
+
192
+ if attributes.key?(:'content_guard_prn')
193
+ self.content_guard_prn = attributes[:'content_guard_prn']
194
+ end
195
+
194
196
  if attributes.key?(:'repository_version')
195
197
  self.repository_version = attributes[:'repository_version']
196
198
  end
197
199
 
198
- if attributes.key?(:'name')
199
- self.name = attributes[:'name']
200
- else
201
- self.name = nil
200
+ if attributes.key?(:'pulp_created')
201
+ self.pulp_created = attributes[:'pulp_created']
202
202
  end
203
203
 
204
- if attributes.key?(:'content_guard_prn')
205
- self.content_guard_prn = attributes[:'content_guard_prn']
204
+ if attributes.key?(:'content_guard')
205
+ self.content_guard = attributes[:'content_guard']
206
206
  end
207
207
 
208
208
  if attributes.key?(:'remote')
@@ -266,18 +266,18 @@ module PulpContainerClient
266
266
  return true if self.equal?(o)
267
267
  self.class == o.class &&
268
268
  hidden == o.hidden &&
269
- pulp_created == o.pulp_created &&
270
- no_content_change_since == o.no_content_change_since &&
271
- content_guard == o.content_guard &&
272
- pulp_labels == o.pulp_labels &&
273
- pulp_last_updated == o.pulp_last_updated &&
274
- pulp_href == o.pulp_href &&
275
269
  base_path == o.base_path &&
276
270
  prn == o.prn &&
277
- repository == o.repository &&
278
- repository_version == o.repository_version &&
271
+ pulp_last_updated == o.pulp_last_updated &&
272
+ pulp_labels == o.pulp_labels &&
273
+ pulp_href == o.pulp_href &&
279
274
  name == o.name &&
275
+ repository == o.repository &&
276
+ no_content_change_since == o.no_content_change_since &&
280
277
  content_guard_prn == o.content_guard_prn &&
278
+ repository_version == o.repository_version &&
279
+ pulp_created == o.pulp_created &&
280
+ content_guard == o.content_guard &&
281
281
  remote == o.remote &&
282
282
  distributions == o.distributions &&
283
283
  namespace == o.namespace &&
@@ -294,7 +294,7 @@ module PulpContainerClient
294
294
  # Calculates hash code according to all attributes.
295
295
  # @return [Integer] Hash code
296
296
  def hash
297
- [hidden, pulp_created, no_content_change_since, content_guard, pulp_labels, pulp_last_updated, pulp_href, base_path, prn, repository, repository_version, name, content_guard_prn, remote, distributions, namespace, private, description].hash
297
+ [hidden, base_path, prn, pulp_last_updated, pulp_labels, pulp_href, name, repository, no_content_change_since, content_guard_prn, repository_version, pulp_created, content_guard, remote, distributions, namespace, private, description].hash
298
298
  end
299
299
 
300
300
  # Builds the object from hash
@@ -19,29 +19,29 @@ module PulpContainerClient
19
19
  # A reference to an associated signing service.
20
20
  attr_accessor :manifest_signing_service
21
21
 
22
+ # Retain X versions of the repository. Default is null which retains all versions.
23
+ attr_accessor :retain_repo_versions
24
+
22
25
  attr_accessor :pulp_labels
23
26
 
27
+ # A unique name for this repository.
28
+ attr_accessor :name
29
+
24
30
  # An optional description.
25
31
  attr_accessor :description
26
32
 
27
33
  # Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
28
34
  attr_accessor :retain_checkpoints
29
35
 
30
- # A unique name for this repository.
31
- attr_accessor :name
32
-
33
- # Retain X versions of the repository. Default is null which retains all versions.
34
- attr_accessor :retain_repo_versions
35
-
36
36
  # Attribute mapping from ruby-style variable name to JSON key.
37
37
  def self.attribute_map
38
38
  {
39
39
  :'manifest_signing_service' => :'manifest_signing_service',
40
+ :'retain_repo_versions' => :'retain_repo_versions',
40
41
  :'pulp_labels' => :'pulp_labels',
41
- :'description' => :'description',
42
- :'retain_checkpoints' => :'retain_checkpoints',
43
42
  :'name' => :'name',
44
- :'retain_repo_versions' => :'retain_repo_versions'
43
+ :'description' => :'description',
44
+ :'retain_checkpoints' => :'retain_checkpoints'
45
45
  }
46
46
  end
47
47
 
@@ -54,11 +54,11 @@ module PulpContainerClient
54
54
  def self.openapi_types
55
55
  {
56
56
  :'manifest_signing_service' => :'String',
57
+ :'retain_repo_versions' => :'Integer',
57
58
  :'pulp_labels' => :'Hash<String, String>',
58
- :'description' => :'String',
59
- :'retain_checkpoints' => :'Integer',
60
59
  :'name' => :'String',
61
- :'retain_repo_versions' => :'Integer'
60
+ :'description' => :'String',
61
+ :'retain_checkpoints' => :'Integer'
62
62
  }
63
63
  end
64
64
 
@@ -66,9 +66,9 @@ module PulpContainerClient
66
66
  def self.openapi_nullable
67
67
  Set.new([
68
68
  :'manifest_signing_service',
69
+ :'retain_repo_versions',
69
70
  :'description',
70
- :'retain_checkpoints',
71
- :'retain_repo_versions'
71
+ :'retain_checkpoints'
72
72
  ])
73
73
  end
74
74
 
@@ -91,28 +91,28 @@ module PulpContainerClient
91
91
  self.manifest_signing_service = attributes[:'manifest_signing_service']
92
92
  end
93
93
 
94
+ if attributes.key?(:'retain_repo_versions')
95
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
96
+ end
97
+
94
98
  if attributes.key?(:'pulp_labels')
95
99
  if (value = attributes[:'pulp_labels']).is_a?(Hash)
96
100
  self.pulp_labels = value
97
101
  end
98
102
  end
99
103
 
100
- if attributes.key?(:'description')
101
- self.description = attributes[:'description']
102
- end
103
-
104
- if attributes.key?(:'retain_checkpoints')
105
- self.retain_checkpoints = attributes[:'retain_checkpoints']
106
- end
107
-
108
104
  if attributes.key?(:'name')
109
105
  self.name = attributes[:'name']
110
106
  else
111
107
  self.name = nil
112
108
  end
113
109
 
114
- if attributes.key?(:'retain_repo_versions')
115
- self.retain_repo_versions = attributes[:'retain_repo_versions']
110
+ if attributes.key?(:'description')
111
+ self.description = attributes[:'description']
112
+ end
113
+
114
+ if attributes.key?(:'retain_checkpoints')
115
+ self.retain_checkpoints = attributes[:'retain_checkpoints']
116
116
  end
117
117
  end
118
118
 
@@ -121,12 +121,8 @@ module PulpContainerClient
121
121
  def list_invalid_properties
122
122
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
123
123
  invalid_properties = Array.new
124
- if !@description.nil? && @description.to_s.length < 1
125
- invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
126
- end
127
-
128
- if !@retain_checkpoints.nil? && @retain_checkpoints < 1
129
- invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
124
+ if !@retain_repo_versions.nil? && @retain_repo_versions < 1
125
+ invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
130
126
  end
131
127
 
132
128
  if @name.nil?
@@ -137,8 +133,12 @@ module PulpContainerClient
137
133
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
138
134
  end
139
135
 
140
- if !@retain_repo_versions.nil? && @retain_repo_versions < 1
141
- invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
136
+ if !@description.nil? && @description.to_s.length < 1
137
+ invalid_properties.push('invalid value for "description", the character length must be great 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
142
  end
143
143
 
144
144
  invalid_properties
@@ -148,32 +148,22 @@ module PulpContainerClient
148
148
  # @return true if the model is valid
149
149
  def valid?
150
150
  warn '[DEPRECATED] the `valid?` method is obsolete'
151
- return false if !@description.nil? && @description.to_s.length < 1
152
- return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
151
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
153
152
  return false if @name.nil?
154
153
  return false if @name.to_s.length < 1
155
- return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
154
+ return false if !@description.nil? && @description.to_s.length < 1
155
+ return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
156
156
  true
157
157
  end
158
158
 
159
159
  # Custom attribute writer method with validation
160
- # @param [Object] description Value to be assigned
161
- def description=(description)
162
- if !description.nil? && description.to_s.length < 1
163
- fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
164
- end
165
-
166
- @description = description
167
- end
168
-
169
- # Custom attribute writer method with validation
170
- # @param [Object] retain_checkpoints Value to be assigned
171
- def retain_checkpoints=(retain_checkpoints)
172
- if !retain_checkpoints.nil? && retain_checkpoints < 1
173
- fail ArgumentError, 'invalid value for "retain_checkpoints", must be greater than or equal to 1.'
160
+ # @param [Object] retain_repo_versions Value to be assigned
161
+ def retain_repo_versions=(retain_repo_versions)
162
+ if !retain_repo_versions.nil? && retain_repo_versions < 1
163
+ fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
174
164
  end
175
165
 
176
- @retain_checkpoints = retain_checkpoints
166
+ @retain_repo_versions = retain_repo_versions
177
167
  end
178
168
 
179
169
  # Custom attribute writer method with validation
@@ -191,13 +181,23 @@ module PulpContainerClient
191
181
  end
192
182
 
193
183
  # Custom attribute writer method with validation
194
- # @param [Object] retain_repo_versions Value to be assigned
195
- def retain_repo_versions=(retain_repo_versions)
196
- if !retain_repo_versions.nil? && retain_repo_versions < 1
197
- fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
184
+ # @param [Object] description Value to be assigned
185
+ def description=(description)
186
+ if !description.nil? && description.to_s.length < 1
187
+ fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
198
188
  end
199
189
 
200
- @retain_repo_versions = retain_repo_versions
190
+ @description = description
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.'
198
+ end
199
+
200
+ @retain_checkpoints = retain_checkpoints
201
201
  end
202
202
 
203
203
  # Checks equality by comparing each attribute.
@@ -206,11 +206,11 @@ module PulpContainerClient
206
206
  return true if self.equal?(o)
207
207
  self.class == o.class &&
208
208
  manifest_signing_service == o.manifest_signing_service &&
209
+ retain_repo_versions == o.retain_repo_versions &&
209
210
  pulp_labels == o.pulp_labels &&
210
- description == o.description &&
211
- retain_checkpoints == o.retain_checkpoints &&
212
211
  name == o.name &&
213
- retain_repo_versions == o.retain_repo_versions
212
+ description == o.description &&
213
+ retain_checkpoints == o.retain_checkpoints
214
214
  end
215
215
 
216
216
  # @see the `==` method
@@ -222,7 +222,7 @@ module PulpContainerClient
222
222
  # Calculates hash code according to all attributes.
223
223
  # @return [Integer] Hash code
224
224
  def hash
225
- [manifest_signing_service, pulp_labels, description, retain_checkpoints, name, retain_repo_versions].hash
225
+ [manifest_signing_service, retain_repo_versions, pulp_labels, name, description, retain_checkpoints].hash
226
226
  end
227
227
 
228
228
  # Builds the object from hash