pulp_container_client 2.27.10 → 2.28.1

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