pulp_container_client 2.26.7 → 2.26.9

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 (33) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/ContainerContainerDistribution.md +8 -8
  4. data/docs/ContainerContainerDistributionResponse.md +16 -16
  5. data/docs/ContainerContainerPullThroughDistribution.md +8 -8
  6. data/docs/ContainerContainerPullThroughDistributionResponse.md +16 -16
  7. data/docs/ContainerContainerPushRepository.md +7 -7
  8. data/docs/ContainerContainerPushRepositoryResponse.md +17 -17
  9. data/docs/DistributionsContainerApi.md +2 -2
  10. data/docs/DistributionsPullThroughApi.md +2 -2
  11. data/docs/PatchedcontainerContainerDistribution.md +8 -8
  12. data/docs/PatchedcontainerContainerPullThroughDistribution.md +8 -8
  13. data/docs/PatchedcontainerContainerPushRepository.md +7 -7
  14. data/lib/pulp_container_client/models/container_container_distribution.rb +63 -63
  15. data/lib/pulp_container_client/models/container_container_distribution_response.rb +72 -72
  16. data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +63 -63
  17. data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +72 -72
  18. data/lib/pulp_container_client/models/container_container_push_repository.rb +48 -48
  19. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +65 -65
  20. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +56 -56
  21. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +56 -56
  22. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +46 -46
  23. data/lib/pulp_container_client/version.rb +1 -1
  24. data/spec/models/container_container_distribution_response_spec.rb +10 -10
  25. data/spec/models/container_container_distribution_spec.rb +6 -6
  26. data/spec/models/container_container_pull_through_distribution_response_spec.rb +10 -10
  27. data/spec/models/container_container_pull_through_distribution_spec.rb +6 -6
  28. data/spec/models/container_container_push_repository_response_spec.rb +11 -11
  29. data/spec/models/container_container_push_repository_spec.rb +5 -5
  30. data/spec/models/patchedcontainer_container_distribution_spec.rb +6 -6
  31. data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +6 -6
  32. data/spec/models/patchedcontainer_container_push_repository_spec.rb +5 -5
  33. metadata +60 -60
@@ -16,23 +16,23 @@ require 'time'
16
16
  module PulpContainerClient
17
17
  # A serializer for a specialized pull-through distribution referencing sub-distributions.
18
18
  class ContainerContainerPullThroughDistribution
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\")
20
- attr_accessor :base_path
21
-
22
- # An optional content-guard. If none is specified, a default one will be used.
23
- attr_accessor :content_guard
24
-
25
- attr_accessor :pulp_labels
19
+ # A unique name. Ex, `rawhide` and `stable`.
20
+ attr_accessor :name
26
21
 
27
22
  # Whether this distribution should be shown in the content app.
28
23
  attr_accessor :hidden
29
24
 
30
- # A unique name. Ex, `rawhide` and `stable`.
31
- attr_accessor :name
32
-
33
25
  # The latest RepositoryVersion for this Repository will be served.
34
26
  attr_accessor :repository
35
27
 
28
+ attr_accessor :pulp_labels
29
+
30
+ # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
31
+ attr_accessor :base_path
32
+
33
+ # An optional content-guard. If none is specified, a default one will be used.
34
+ attr_accessor :content_guard
35
+
36
36
  # Remote that can be used to fetch content when using pull-through caching.
37
37
  attr_accessor :remote
38
38
 
@@ -48,12 +48,12 @@ module PulpContainerClient
48
48
  # Attribute mapping from ruby-style variable name to JSON key.
49
49
  def self.attribute_map
50
50
  {
51
- :'base_path' => :'base_path',
52
- :'content_guard' => :'content_guard',
53
- :'pulp_labels' => :'pulp_labels',
54
- :'hidden' => :'hidden',
55
51
  :'name' => :'name',
52
+ :'hidden' => :'hidden',
56
53
  :'repository' => :'repository',
54
+ :'pulp_labels' => :'pulp_labels',
55
+ :'base_path' => :'base_path',
56
+ :'content_guard' => :'content_guard',
57
57
  :'remote' => :'remote',
58
58
  :'distributions' => :'distributions',
59
59
  :'private' => :'private',
@@ -69,12 +69,12 @@ module PulpContainerClient
69
69
  # Attribute type mapping.
70
70
  def self.openapi_types
71
71
  {
72
- :'base_path' => :'String',
73
- :'content_guard' => :'String',
74
- :'pulp_labels' => :'Hash<String, String>',
75
- :'hidden' => :'Boolean',
76
72
  :'name' => :'String',
73
+ :'hidden' => :'Boolean',
77
74
  :'repository' => :'String',
75
+ :'pulp_labels' => :'Hash<String, String>',
76
+ :'base_path' => :'String',
77
+ :'content_guard' => :'String',
78
78
  :'remote' => :'String',
79
79
  :'distributions' => :'Array<String>',
80
80
  :'private' => :'Boolean',
@@ -105,14 +105,20 @@ module PulpContainerClient
105
105
  h[k.to_sym] = v
106
106
  }
107
107
 
108
- if attributes.key?(:'base_path')
109
- self.base_path = attributes[:'base_path']
108
+ if attributes.key?(:'name')
109
+ self.name = attributes[:'name']
110
110
  else
111
- self.base_path = nil
111
+ self.name = nil
112
112
  end
113
113
 
114
- if attributes.key?(:'content_guard')
115
- self.content_guard = attributes[:'content_guard']
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']
116
122
  end
117
123
 
118
124
  if attributes.key?(:'pulp_labels')
@@ -121,20 +127,14 @@ module PulpContainerClient
121
127
  end
122
128
  end
123
129
 
124
- if attributes.key?(:'hidden')
125
- self.hidden = attributes[:'hidden']
126
- else
127
- self.hidden = false
128
- end
129
-
130
- if attributes.key?(:'name')
131
- self.name = attributes[:'name']
130
+ if attributes.key?(:'base_path')
131
+ self.base_path = attributes[:'base_path']
132
132
  else
133
- self.name = nil
133
+ self.base_path = nil
134
134
  end
135
135
 
136
- if attributes.key?(:'repository')
137
- self.repository = attributes[:'repository']
136
+ if attributes.key?(:'content_guard')
137
+ self.content_guard = attributes[:'content_guard']
138
138
  end
139
139
 
140
140
  if attributes.key?(:'remote')
@@ -163,14 +163,6 @@ module PulpContainerClient
163
163
  def list_invalid_properties
164
164
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
165
165
  invalid_properties = Array.new
166
- if @base_path.nil?
167
- invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
168
- end
169
-
170
- if @base_path.to_s.length < 1
171
- invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
172
- end
173
-
174
166
  if @name.nil?
175
167
  invalid_properties.push('invalid value for "name", name cannot be nil.')
176
168
  end
@@ -179,6 +171,14 @@ module PulpContainerClient
179
171
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
180
172
  end
181
173
 
174
+ if @base_path.nil?
175
+ invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
176
+ end
177
+
178
+ if @base_path.to_s.length < 1
179
+ invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
180
+ end
181
+
182
182
  if @remote.nil?
183
183
  invalid_properties.push('invalid value for "remote", remote cannot be nil.')
184
184
  end
@@ -194,29 +194,15 @@ module PulpContainerClient
194
194
  # @return true if the model is valid
195
195
  def valid?
196
196
  warn '[DEPRECATED] the `valid?` method is obsolete'
197
- return false if @base_path.nil?
198
- return false if @base_path.to_s.length < 1
199
197
  return false if @name.nil?
200
198
  return false if @name.to_s.length < 1
199
+ return false if @base_path.nil?
200
+ return false if @base_path.to_s.length < 1
201
201
  return false if @remote.nil?
202
202
  return false if !@description.nil? && @description.to_s.length < 1
203
203
  true
204
204
  end
205
205
 
206
- # Custom attribute writer method with validation
207
- # @param [Object] base_path Value to be assigned
208
- def base_path=(base_path)
209
- if base_path.nil?
210
- fail ArgumentError, 'base_path cannot be nil'
211
- end
212
-
213
- if base_path.to_s.length < 1
214
- fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
215
- end
216
-
217
- @base_path = base_path
218
- end
219
-
220
206
  # Custom attribute writer method with validation
221
207
  # @param [Object] name Value to be assigned
222
208
  def name=(name)
@@ -231,6 +217,20 @@ module PulpContainerClient
231
217
  @name = name
232
218
  end
233
219
 
220
+ # Custom attribute writer method with validation
221
+ # @param [Object] base_path Value to be assigned
222
+ def base_path=(base_path)
223
+ if base_path.nil?
224
+ fail ArgumentError, 'base_path cannot be nil'
225
+ end
226
+
227
+ if base_path.to_s.length < 1
228
+ fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
229
+ end
230
+
231
+ @base_path = base_path
232
+ end
233
+
234
234
  # Custom attribute writer method with validation
235
235
  # @param [Object] description Value to be assigned
236
236
  def description=(description)
@@ -246,12 +246,12 @@ module PulpContainerClient
246
246
  def ==(o)
247
247
  return true if self.equal?(o)
248
248
  self.class == o.class &&
249
- base_path == o.base_path &&
250
- content_guard == o.content_guard &&
251
- pulp_labels == o.pulp_labels &&
252
- hidden == o.hidden &&
253
249
  name == o.name &&
250
+ hidden == o.hidden &&
254
251
  repository == o.repository &&
252
+ pulp_labels == o.pulp_labels &&
253
+ base_path == o.base_path &&
254
+ content_guard == o.content_guard &&
255
255
  remote == o.remote &&
256
256
  distributions == o.distributions &&
257
257
  private == o.private &&
@@ -267,7 +267,7 @@ module PulpContainerClient
267
267
  # Calculates hash code according to all attributes.
268
268
  # @return [Integer] Hash code
269
269
  def hash
270
- [base_path, content_guard, pulp_labels, hidden, name, repository, remote, distributions, private, description].hash
270
+ [name, hidden, repository, pulp_labels, base_path, content_guard, remote, distributions, private, description].hash
271
271
  end
272
272
 
273
273
  # Builds the object from hash
@@ -16,36 +16,36 @@ 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_href
19
+ # A unique name. Ex, `rawhide` and `stable`.
20
+ attr_accessor :name
20
21
 
21
- # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
22
- attr_accessor :base_path
22
+ # Whether this distribution should be shown in the content app.
23
+ attr_accessor :hidden
23
24
 
24
25
  # 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.
25
26
  attr_accessor :pulp_last_updated
26
27
 
27
- # Timestamp of creation.
28
- attr_accessor :pulp_created
29
-
30
- # An optional content-guard. If none is specified, a default one will be used.
31
- attr_accessor :content_guard
32
-
33
- attr_accessor :pulp_labels
34
-
35
28
  # Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
36
29
  attr_accessor :no_content_change_since
37
30
 
31
+ # The latest RepositoryVersion for this Repository will be served.
32
+ attr_accessor :repository
33
+
38
34
  # The Pulp Resource Name (PRN).
39
35
  attr_accessor :prn
40
36
 
41
- # Whether this distribution should be shown in the content app.
42
- attr_accessor :hidden
37
+ attr_accessor :pulp_labels
43
38
 
44
- # A unique name. Ex, `rawhide` and `stable`.
45
- attr_accessor :name
39
+ # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
40
+ attr_accessor :base_path
46
41
 
47
- # The latest RepositoryVersion for this Repository will be served.
48
- attr_accessor :repository
42
+ # Timestamp of creation.
43
+ attr_accessor :pulp_created
44
+
45
+ attr_accessor :pulp_href
46
+
47
+ # An optional content-guard. If none is specified, a default one will be used.
48
+ attr_accessor :content_guard
49
49
 
50
50
  # Remote that can be used to fetch content when using pull-through caching.
51
51
  attr_accessor :remote
@@ -65,17 +65,17 @@ module PulpContainerClient
65
65
  # Attribute mapping from ruby-style variable name to JSON key.
66
66
  def self.attribute_map
67
67
  {
68
- :'pulp_href' => :'pulp_href',
69
- :'base_path' => :'base_path',
68
+ :'name' => :'name',
69
+ :'hidden' => :'hidden',
70
70
  :'pulp_last_updated' => :'pulp_last_updated',
71
- :'pulp_created' => :'pulp_created',
72
- :'content_guard' => :'content_guard',
73
- :'pulp_labels' => :'pulp_labels',
74
71
  :'no_content_change_since' => :'no_content_change_since',
75
- :'prn' => :'prn',
76
- :'hidden' => :'hidden',
77
- :'name' => :'name',
78
72
  :'repository' => :'repository',
73
+ :'prn' => :'prn',
74
+ :'pulp_labels' => :'pulp_labels',
75
+ :'base_path' => :'base_path',
76
+ :'pulp_created' => :'pulp_created',
77
+ :'pulp_href' => :'pulp_href',
78
+ :'content_guard' => :'content_guard',
79
79
  :'remote' => :'remote',
80
80
  :'distributions' => :'distributions',
81
81
  :'namespace' => :'namespace',
@@ -92,17 +92,17 @@ module PulpContainerClient
92
92
  # Attribute type mapping.
93
93
  def self.openapi_types
94
94
  {
95
- :'pulp_href' => :'String',
96
- :'base_path' => :'String',
95
+ :'name' => :'String',
96
+ :'hidden' => :'Boolean',
97
97
  :'pulp_last_updated' => :'Time',
98
- :'pulp_created' => :'Time',
99
- :'content_guard' => :'String',
100
- :'pulp_labels' => :'Hash<String, String>',
101
98
  :'no_content_change_since' => :'String',
102
- :'prn' => :'String',
103
- :'hidden' => :'Boolean',
104
- :'name' => :'String',
105
99
  :'repository' => :'String',
100
+ :'prn' => :'String',
101
+ :'pulp_labels' => :'Hash<String, String>',
102
+ :'base_path' => :'String',
103
+ :'pulp_created' => :'Time',
104
+ :'pulp_href' => :'String',
105
+ :'content_guard' => :'String',
106
106
  :'remote' => :'String',
107
107
  :'distributions' => :'Array<String>',
108
108
  :'namespace' => :'String',
@@ -134,26 +134,32 @@ module PulpContainerClient
134
134
  h[k.to_sym] = v
135
135
  }
136
136
 
137
- if attributes.key?(:'pulp_href')
138
- self.pulp_href = attributes[:'pulp_href']
137
+ if attributes.key?(:'name')
138
+ self.name = attributes[:'name']
139
+ else
140
+ self.name = nil
139
141
  end
140
142
 
141
- if attributes.key?(:'base_path')
142
- self.base_path = attributes[:'base_path']
143
+ if attributes.key?(:'hidden')
144
+ self.hidden = attributes[:'hidden']
143
145
  else
144
- self.base_path = nil
146
+ self.hidden = false
145
147
  end
146
148
 
147
149
  if attributes.key?(:'pulp_last_updated')
148
150
  self.pulp_last_updated = attributes[:'pulp_last_updated']
149
151
  end
150
152
 
151
- if attributes.key?(:'pulp_created')
152
- self.pulp_created = attributes[:'pulp_created']
153
+ if attributes.key?(:'no_content_change_since')
154
+ self.no_content_change_since = attributes[:'no_content_change_since']
153
155
  end
154
156
 
155
- if attributes.key?(:'content_guard')
156
- self.content_guard = attributes[:'content_guard']
157
+ if attributes.key?(:'repository')
158
+ self.repository = attributes[:'repository']
159
+ end
160
+
161
+ if attributes.key?(:'prn')
162
+ self.prn = attributes[:'prn']
157
163
  end
158
164
 
159
165
  if attributes.key?(:'pulp_labels')
@@ -162,28 +168,22 @@ module PulpContainerClient
162
168
  end
163
169
  end
164
170
 
165
- if attributes.key?(:'no_content_change_since')
166
- self.no_content_change_since = attributes[:'no_content_change_since']
167
- end
168
-
169
- if attributes.key?(:'prn')
170
- self.prn = attributes[:'prn']
171
+ if attributes.key?(:'base_path')
172
+ self.base_path = attributes[:'base_path']
173
+ else
174
+ self.base_path = nil
171
175
  end
172
176
 
173
- if attributes.key?(:'hidden')
174
- self.hidden = attributes[:'hidden']
175
- else
176
- self.hidden = false
177
+ if attributes.key?(:'pulp_created')
178
+ self.pulp_created = attributes[:'pulp_created']
177
179
  end
178
180
 
179
- if attributes.key?(:'name')
180
- self.name = attributes[:'name']
181
- else
182
- self.name = nil
181
+ if attributes.key?(:'pulp_href')
182
+ self.pulp_href = attributes[:'pulp_href']
183
183
  end
184
184
 
185
- if attributes.key?(:'repository')
186
- self.repository = attributes[:'repository']
185
+ if attributes.key?(:'content_guard')
186
+ self.content_guard = attributes[:'content_guard']
187
187
  end
188
188
 
189
189
  if attributes.key?(:'remote')
@@ -216,14 +216,14 @@ module PulpContainerClient
216
216
  def list_invalid_properties
217
217
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
218
218
  invalid_properties = Array.new
219
- if @base_path.nil?
220
- invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
221
- end
222
-
223
219
  if @name.nil?
224
220
  invalid_properties.push('invalid value for "name", name cannot be nil.')
225
221
  end
226
222
 
223
+ if @base_path.nil?
224
+ invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
225
+ end
226
+
227
227
  if @remote.nil?
228
228
  invalid_properties.push('invalid value for "remote", remote cannot be nil.')
229
229
  end
@@ -235,8 +235,8 @@ module PulpContainerClient
235
235
  # @return true if the model is valid
236
236
  def valid?
237
237
  warn '[DEPRECATED] the `valid?` method is obsolete'
238
- return false if @base_path.nil?
239
238
  return false if @name.nil?
239
+ return false if @base_path.nil?
240
240
  return false if @remote.nil?
241
241
  true
242
242
  end
@@ -246,17 +246,17 @@ module PulpContainerClient
246
246
  def ==(o)
247
247
  return true if self.equal?(o)
248
248
  self.class == o.class &&
249
- pulp_href == o.pulp_href &&
250
- base_path == o.base_path &&
249
+ name == o.name &&
250
+ hidden == o.hidden &&
251
251
  pulp_last_updated == o.pulp_last_updated &&
252
- pulp_created == o.pulp_created &&
253
- content_guard == o.content_guard &&
254
- pulp_labels == o.pulp_labels &&
255
252
  no_content_change_since == o.no_content_change_since &&
256
- prn == o.prn &&
257
- hidden == o.hidden &&
258
- name == o.name &&
259
253
  repository == o.repository &&
254
+ prn == o.prn &&
255
+ pulp_labels == o.pulp_labels &&
256
+ base_path == o.base_path &&
257
+ pulp_created == o.pulp_created &&
258
+ pulp_href == o.pulp_href &&
259
+ content_guard == o.content_guard &&
260
260
  remote == o.remote &&
261
261
  distributions == o.distributions &&
262
262
  namespace == o.namespace &&
@@ -273,7 +273,7 @@ module PulpContainerClient
273
273
  # Calculates hash code according to all attributes.
274
274
  # @return [Integer] Hash code
275
275
  def hash
276
- [pulp_href, base_path, pulp_last_updated, pulp_created, content_guard, pulp_labels, no_content_change_since, prn, hidden, name, repository, remote, distributions, namespace, private, description].hash
276
+ [name, hidden, pulp_last_updated, no_content_change_since, repository, prn, pulp_labels, base_path, pulp_created, pulp_href, content_guard, remote, distributions, namespace, private, description].hash
277
277
  end
278
278
 
279
279
  # Builds the object from hash
@@ -16,28 +16,28 @@ 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
21
+
22
+ # A reference to an associated signing service.
23
+ attr_accessor :manifest_signing_service
20
24
 
21
25
  # An optional description.
22
26
  attr_accessor :description
23
27
 
24
- # A unique name for this repository.
25
- attr_accessor :name
28
+ attr_accessor :pulp_labels
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
- # A reference to an associated signing service.
31
- attr_accessor :manifest_signing_service
32
-
33
33
  # Attribute mapping from ruby-style variable name to JSON key.
34
34
  def self.attribute_map
35
35
  {
36
- :'pulp_labels' => :'pulp_labels',
37
- :'description' => :'description',
38
36
  :'name' => :'name',
39
- :'retain_repo_versions' => :'retain_repo_versions',
40
- :'manifest_signing_service' => :'manifest_signing_service'
37
+ :'manifest_signing_service' => :'manifest_signing_service',
38
+ :'description' => :'description',
39
+ :'pulp_labels' => :'pulp_labels',
40
+ :'retain_repo_versions' => :'retain_repo_versions'
41
41
  }
42
42
  end
43
43
 
@@ -49,20 +49,20 @@ module PulpContainerClient
49
49
  # Attribute type mapping.
50
50
  def self.openapi_types
51
51
  {
52
- :'pulp_labels' => :'Hash<String, String>',
53
- :'description' => :'String',
54
52
  :'name' => :'String',
55
- :'retain_repo_versions' => :'Integer',
56
- :'manifest_signing_service' => :'String'
53
+ :'manifest_signing_service' => :'String',
54
+ :'description' => :'String',
55
+ :'pulp_labels' => :'Hash<String, String>',
56
+ :'retain_repo_versions' => :'Integer'
57
57
  }
58
58
  end
59
59
 
60
60
  # List of attributes with nullable: true
61
61
  def self.openapi_nullable
62
62
  Set.new([
63
+ :'manifest_signing_service',
63
64
  :'description',
64
- :'retain_repo_versions',
65
- :'manifest_signing_service'
65
+ :'retain_repo_versions'
66
66
  ])
67
67
  end
68
68
 
@@ -81,29 +81,29 @@ module PulpContainerClient
81
81
  h[k.to_sym] = v
82
82
  }
83
83
 
84
- if attributes.key?(:'pulp_labels')
85
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
86
- self.pulp_labels = value
87
- end
84
+ if attributes.key?(:'name')
85
+ self.name = attributes[:'name']
86
+ else
87
+ self.name = nil
88
+ end
89
+
90
+ if attributes.key?(:'manifest_signing_service')
91
+ self.manifest_signing_service = attributes[:'manifest_signing_service']
88
92
  end
89
93
 
90
94
  if attributes.key?(:'description')
91
95
  self.description = attributes[:'description']
92
96
  end
93
97
 
94
- if attributes.key?(:'name')
95
- self.name = attributes[:'name']
96
- else
97
- self.name = nil
98
+ if attributes.key?(:'pulp_labels')
99
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
100
+ self.pulp_labels = value
101
+ end
98
102
  end
99
103
 
100
104
  if attributes.key?(:'retain_repo_versions')
101
105
  self.retain_repo_versions = attributes[:'retain_repo_versions']
102
106
  end
103
-
104
- if attributes.key?(:'manifest_signing_service')
105
- self.manifest_signing_service = attributes[:'manifest_signing_service']
106
- end
107
107
  end
108
108
 
109
109
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -111,10 +111,6 @@ module PulpContainerClient
111
111
  def list_invalid_properties
112
112
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
113
113
  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
114
  if @name.nil?
119
115
  invalid_properties.push('invalid value for "name", name cannot be nil.')
120
116
  end
@@ -123,6 +119,10 @@ module PulpContainerClient
123
119
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
124
120
  end
125
121
 
122
+ if !@description.nil? && @description.to_s.length < 1
123
+ invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
124
+ end
125
+
126
126
  invalid_properties
127
127
  end
128
128
 
@@ -130,22 +130,12 @@ module PulpContainerClient
130
130
  # @return true if the model is valid
131
131
  def valid?
132
132
  warn '[DEPRECATED] the `valid?` method is obsolete'
133
- return false if !@description.nil? && @description.to_s.length < 1
134
133
  return false if @name.nil?
135
134
  return false if @name.to_s.length < 1
135
+ return false if !@description.nil? && @description.to_s.length < 1
136
136
  true
137
137
  end
138
138
 
139
- # Custom attribute writer method with validation
140
- # @param [Object] description Value to be assigned
141
- def description=(description)
142
- if !description.nil? && description.to_s.length < 1
143
- fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
144
- end
145
-
146
- @description = description
147
- end
148
-
149
139
  # Custom attribute writer method with validation
150
140
  # @param [Object] name Value to be assigned
151
141
  def name=(name)
@@ -160,16 +150,26 @@ module PulpContainerClient
160
150
  @name = name
161
151
  end
162
152
 
153
+ # Custom attribute writer method with validation
154
+ # @param [Object] description Value to be assigned
155
+ def description=(description)
156
+ if !description.nil? && description.to_s.length < 1
157
+ fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
158
+ end
159
+
160
+ @description = description
161
+ end
162
+
163
163
  # Checks equality by comparing each attribute.
164
164
  # @param [Object] Object to be compared
165
165
  def ==(o)
166
166
  return true if self.equal?(o)
167
167
  self.class == o.class &&
168
- pulp_labels == o.pulp_labels &&
169
- description == o.description &&
170
168
  name == o.name &&
171
- retain_repo_versions == o.retain_repo_versions &&
172
- manifest_signing_service == o.manifest_signing_service
169
+ manifest_signing_service == o.manifest_signing_service &&
170
+ description == o.description &&
171
+ pulp_labels == o.pulp_labels &&
172
+ retain_repo_versions == o.retain_repo_versions
173
173
  end
174
174
 
175
175
  # @see the `==` method
@@ -181,7 +181,7 @@ module PulpContainerClient
181
181
  # Calculates hash code according to all attributes.
182
182
  # @return [Integer] Hash code
183
183
  def hash
184
- [pulp_labels, description, name, retain_repo_versions, manifest_signing_service].hash
184
+ [name, manifest_signing_service, description, pulp_labels, retain_repo_versions].hash
185
185
  end
186
186
 
187
187
  # Builds the object from hash