pulp_container_client 2.24.12 → 2.24.13

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