pulp_container_client 2.29.2 → 2.29.3

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 +18 -18
  5. data/docs/ContainerContainerPullThroughDistribution.md +8 -8
  6. data/docs/ContainerContainerPullThroughDistributionResponse.md +18 -18
  7. data/docs/ContainerContainerPushRepository.md +6 -6
  8. data/docs/ContainerContainerPushRepositoryResponse.md +15 -15
  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 +6 -6
  14. data/lib/pulp_container_client/models/container_container_distribution.rb +64 -64
  15. data/lib/pulp_container_client/models/container_container_distribution_response.rb +88 -88
  16. data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +64 -64
  17. data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +88 -88
  18. data/lib/pulp_container_client/models/container_container_push_repository.rb +53 -53
  19. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +70 -70
  20. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +57 -57
  21. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +57 -57
  22. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +47 -47
  23. data/lib/pulp_container_client/version.rb +1 -1
  24. data/spec/models/container_container_distribution_response_spec.rb +13 -13
  25. data/spec/models/container_container_distribution_spec.rb +6 -6
  26. data/spec/models/container_container_pull_through_distribution_response_spec.rb +13 -13
  27. data/spec/models/container_container_pull_through_distribution_spec.rb +6 -6
  28. data/spec/models/container_container_push_repository_response_spec.rb +10 -10
  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 +2 -2
@@ -16,26 +16,26 @@ require 'time'
16
16
  module PulpContainerClient
17
17
  # A serializer for ContainerDistribution.
18
18
  class PatchedcontainerContainerDistribution
19
- # The latest RepositoryVersion for this Repository will be served.
20
- attr_accessor :repository
21
-
22
- # Whether this distribution should be shown in the content app.
23
- attr_accessor :hidden
24
-
25
- attr_accessor :pulp_labels
26
-
27
- # A unique name. Ex, `rawhide` and `stable`.
28
- attr_accessor :name
29
-
30
19
  # An optional content-guard. If none is specified, a default one will be used.
31
20
  attr_accessor :content_guard
32
21
 
33
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\")
34
23
  attr_accessor :base_path
35
24
 
25
+ attr_accessor :pulp_labels
26
+
27
+ # The latest RepositoryVersion for this Repository will be served.
28
+ attr_accessor :repository
29
+
36
30
  # RepositoryVersion to be served
37
31
  attr_accessor :repository_version
38
32
 
33
+ # Whether this distribution should be shown in the content app.
34
+ attr_accessor :hidden
35
+
36
+ # A unique name. Ex, `rawhide` and `stable`.
37
+ attr_accessor :name
38
+
39
39
  # Restrict pull access to explicitly authorized users. Defaults to unrestricted pull access.
40
40
  attr_accessor :private
41
41
 
@@ -45,13 +45,13 @@ module PulpContainerClient
45
45
  # Attribute mapping from ruby-style variable name to JSON key.
46
46
  def self.attribute_map
47
47
  {
48
- :'repository' => :'repository',
49
- :'hidden' => :'hidden',
50
- :'pulp_labels' => :'pulp_labels',
51
- :'name' => :'name',
52
48
  :'content_guard' => :'content_guard',
53
49
  :'base_path' => :'base_path',
50
+ :'pulp_labels' => :'pulp_labels',
51
+ :'repository' => :'repository',
54
52
  :'repository_version' => :'repository_version',
53
+ :'hidden' => :'hidden',
54
+ :'name' => :'name',
55
55
  :'private' => :'private',
56
56
  :'description' => :'description'
57
57
  }
@@ -65,13 +65,13 @@ module PulpContainerClient
65
65
  # Attribute type mapping.
66
66
  def self.openapi_types
67
67
  {
68
- :'repository' => :'String',
69
- :'hidden' => :'Boolean',
70
- :'pulp_labels' => :'Hash<String, String>',
71
- :'name' => :'String',
72
68
  :'content_guard' => :'String',
73
69
  :'base_path' => :'String',
70
+ :'pulp_labels' => :'Hash<String, String>',
71
+ :'repository' => :'String',
74
72
  :'repository_version' => :'String',
73
+ :'hidden' => :'Boolean',
74
+ :'name' => :'String',
75
75
  :'private' => :'Boolean',
76
76
  :'description' => :'String'
77
77
  }
@@ -101,14 +101,12 @@ module PulpContainerClient
101
101
  h[k.to_sym] = v
102
102
  }
103
103
 
104
- if attributes.key?(:'repository')
105
- self.repository = attributes[:'repository']
104
+ if attributes.key?(:'content_guard')
105
+ self.content_guard = attributes[:'content_guard']
106
106
  end
107
107
 
108
- if attributes.key?(:'hidden')
109
- self.hidden = attributes[:'hidden']
110
- else
111
- self.hidden = false
108
+ if attributes.key?(:'base_path')
109
+ self.base_path = attributes[:'base_path']
112
110
  end
113
111
 
114
112
  if attributes.key?(:'pulp_labels')
@@ -117,20 +115,22 @@ module PulpContainerClient
117
115
  end
118
116
  end
119
117
 
120
- if attributes.key?(:'name')
121
- self.name = attributes[:'name']
118
+ if attributes.key?(:'repository')
119
+ self.repository = attributes[:'repository']
122
120
  end
123
121
 
124
- if attributes.key?(:'content_guard')
125
- self.content_guard = attributes[:'content_guard']
122
+ if attributes.key?(:'repository_version')
123
+ self.repository_version = attributes[:'repository_version']
126
124
  end
127
125
 
128
- if attributes.key?(:'base_path')
129
- self.base_path = attributes[:'base_path']
126
+ if attributes.key?(:'hidden')
127
+ self.hidden = attributes[:'hidden']
128
+ else
129
+ self.hidden = false
130
130
  end
131
131
 
132
- if attributes.key?(:'repository_version')
133
- self.repository_version = attributes[:'repository_version']
132
+ if attributes.key?(:'name')
133
+ self.name = attributes[:'name']
134
134
  end
135
135
 
136
136
  if attributes.key?(:'private')
@@ -147,14 +147,14 @@ module PulpContainerClient
147
147
  def list_invalid_properties
148
148
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
149
149
  invalid_properties = Array.new
150
- if !@name.nil? && @name.to_s.length < 1
151
- invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
152
- end
153
-
154
150
  if !@base_path.nil? && @base_path.to_s.length < 1
155
151
  invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
156
152
  end
157
153
 
154
+ if !@name.nil? && @name.to_s.length < 1
155
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
156
+ end
157
+
158
158
  if !@description.nil? && @description.to_s.length < 1
159
159
  invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
160
160
  end
@@ -166,26 +166,12 @@ module PulpContainerClient
166
166
  # @return true if the model is valid
167
167
  def valid?
168
168
  warn '[DEPRECATED] the `valid?` method is obsolete'
169
- return false if !@name.nil? && @name.to_s.length < 1
170
169
  return false if !@base_path.nil? && @base_path.to_s.length < 1
170
+ return false if !@name.nil? && @name.to_s.length < 1
171
171
  return false if !@description.nil? && @description.to_s.length < 1
172
172
  true
173
173
  end
174
174
 
175
- # Custom attribute writer method with validation
176
- # @param [Object] name Value to be assigned
177
- def name=(name)
178
- if name.nil?
179
- fail ArgumentError, 'name cannot be nil'
180
- end
181
-
182
- if name.to_s.length < 1
183
- fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
184
- end
185
-
186
- @name = name
187
- end
188
-
189
175
  # Custom attribute writer method with validation
190
176
  # @param [Object] base_path Value to be assigned
191
177
  def base_path=(base_path)
@@ -200,6 +186,20 @@ module PulpContainerClient
200
186
  @base_path = base_path
201
187
  end
202
188
 
189
+ # Custom attribute writer method with validation
190
+ # @param [Object] name Value to be assigned
191
+ def name=(name)
192
+ if name.nil?
193
+ fail ArgumentError, 'name cannot be nil'
194
+ end
195
+
196
+ if name.to_s.length < 1
197
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
198
+ end
199
+
200
+ @name = name
201
+ end
202
+
203
203
  # Custom attribute writer method with validation
204
204
  # @param [Object] description Value to be assigned
205
205
  def description=(description)
@@ -215,13 +215,13 @@ module PulpContainerClient
215
215
  def ==(o)
216
216
  return true if self.equal?(o)
217
217
  self.class == o.class &&
218
- repository == o.repository &&
219
- hidden == o.hidden &&
220
- pulp_labels == o.pulp_labels &&
221
- name == o.name &&
222
218
  content_guard == o.content_guard &&
223
219
  base_path == o.base_path &&
220
+ pulp_labels == o.pulp_labels &&
221
+ repository == o.repository &&
224
222
  repository_version == o.repository_version &&
223
+ hidden == o.hidden &&
224
+ name == o.name &&
225
225
  private == o.private &&
226
226
  description == o.description
227
227
  end
@@ -235,7 +235,7 @@ module PulpContainerClient
235
235
  # Calculates hash code according to all attributes.
236
236
  # @return [Integer] Hash code
237
237
  def hash
238
- [repository, hidden, pulp_labels, name, content_guard, base_path, repository_version, private, description].hash
238
+ [content_guard, base_path, pulp_labels, repository, repository_version, hidden, name, private, description].hash
239
239
  end
240
240
 
241
241
  # Builds the object from hash
@@ -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 PatchedcontainerContainerPullThroughDistribution
19
- # The latest RepositoryVersion for this Repository will be served.
20
- attr_accessor :repository
21
-
22
- # Whether this distribution should be shown in the content app.
23
- attr_accessor :hidden
24
-
25
- attr_accessor :pulp_labels
26
-
27
- # A unique name. Ex, `rawhide` and `stable`.
28
- attr_accessor :name
29
-
30
19
  # An optional content-guard. If none is specified, a default one will be used.
31
20
  attr_accessor :content_guard
32
21
 
33
22
  # The registry path exposed by this pull-through distribution.
34
23
  attr_accessor :base_path
35
24
 
25
+ attr_accessor :pulp_labels
26
+
27
+ # The latest RepositoryVersion for this Repository will be served.
28
+ attr_accessor :repository
29
+
36
30
  # RepositoryVersion to be served
37
31
  attr_accessor :repository_version
38
32
 
33
+ # Whether this distribution should be shown in the content app.
34
+ attr_accessor :hidden
35
+
36
+ # A unique name. Ex, `rawhide` and `stable`.
37
+ attr_accessor :name
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
- :'repository' => :'repository',
55
- :'hidden' => :'hidden',
56
- :'pulp_labels' => :'pulp_labels',
57
- :'name' => :'name',
58
54
  :'content_guard' => :'content_guard',
59
55
  :'base_path' => :'base_path',
56
+ :'pulp_labels' => :'pulp_labels',
57
+ :'repository' => :'repository',
60
58
  :'repository_version' => :'repository_version',
59
+ :'hidden' => :'hidden',
60
+ :'name' => :'name',
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
- :'repository' => :'String',
77
- :'hidden' => :'Boolean',
78
- :'pulp_labels' => :'Hash<String, String>',
79
- :'name' => :'String',
80
76
  :'content_guard' => :'String',
81
77
  :'base_path' => :'String',
78
+ :'pulp_labels' => :'Hash<String, String>',
79
+ :'repository' => :'String',
82
80
  :'repository_version' => :'String',
81
+ :'hidden' => :'Boolean',
82
+ :'name' => :'String',
83
83
  :'remote' => :'String',
84
84
  :'distributions' => :'Array<String>',
85
85
  :'private' => :'Boolean',
@@ -111,14 +111,12 @@ module PulpContainerClient
111
111
  h[k.to_sym] = v
112
112
  }
113
113
 
114
- if attributes.key?(:'repository')
115
- self.repository = attributes[:'repository']
114
+ if attributes.key?(:'content_guard')
115
+ self.content_guard = attributes[:'content_guard']
116
116
  end
117
117
 
118
- if attributes.key?(:'hidden')
119
- self.hidden = attributes[:'hidden']
120
- else
121
- self.hidden = false
118
+ if attributes.key?(:'base_path')
119
+ self.base_path = attributes[:'base_path']
122
120
  end
123
121
 
124
122
  if attributes.key?(:'pulp_labels')
@@ -127,20 +125,22 @@ module PulpContainerClient
127
125
  end
128
126
  end
129
127
 
130
- if attributes.key?(:'name')
131
- self.name = attributes[:'name']
128
+ if attributes.key?(:'repository')
129
+ self.repository = attributes[:'repository']
132
130
  end
133
131
 
134
- if attributes.key?(:'content_guard')
135
- self.content_guard = attributes[:'content_guard']
132
+ if attributes.key?(:'repository_version')
133
+ self.repository_version = attributes[:'repository_version']
136
134
  end
137
135
 
138
- if attributes.key?(:'base_path')
139
- self.base_path = attributes[:'base_path']
136
+ if attributes.key?(:'hidden')
137
+ self.hidden = attributes[:'hidden']
138
+ else
139
+ self.hidden = false
140
140
  end
141
141
 
142
- if attributes.key?(:'repository_version')
143
- self.repository_version = attributes[:'repository_version']
142
+ if attributes.key?(:'name')
143
+ self.name = attributes[:'name']
144
144
  end
145
145
 
146
146
  if attributes.key?(:'remote')
@@ -167,14 +167,14 @@ module PulpContainerClient
167
167
  def list_invalid_properties
168
168
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
169
169
  invalid_properties = Array.new
170
- if !@name.nil? && @name.to_s.length < 1
171
- invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
172
- end
173
-
174
170
  if !@base_path.nil? && @base_path.to_s.length < 1
175
171
  invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
176
172
  end
177
173
 
174
+ if !@name.nil? && @name.to_s.length < 1
175
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
176
+ end
177
+
178
178
  if !@description.nil? && @description.to_s.length < 1
179
179
  invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
180
180
  end
@@ -186,26 +186,12 @@ module PulpContainerClient
186
186
  # @return true if the model is valid
187
187
  def valid?
188
188
  warn '[DEPRECATED] the `valid?` method is obsolete'
189
- return false if !@name.nil? && @name.to_s.length < 1
190
189
  return false if !@base_path.nil? && @base_path.to_s.length < 1
190
+ return false if !@name.nil? && @name.to_s.length < 1
191
191
  return false if !@description.nil? && @description.to_s.length < 1
192
192
  true
193
193
  end
194
194
 
195
- # Custom attribute writer method with validation
196
- # @param [Object] name Value to be assigned
197
- def name=(name)
198
- if name.nil?
199
- fail ArgumentError, 'name cannot be nil'
200
- end
201
-
202
- if name.to_s.length < 1
203
- fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
204
- end
205
-
206
- @name = name
207
- end
208
-
209
195
  # Custom attribute writer method with validation
210
196
  # @param [Object] base_path Value to be assigned
211
197
  def base_path=(base_path)
@@ -220,6 +206,20 @@ module PulpContainerClient
220
206
  @base_path = base_path
221
207
  end
222
208
 
209
+ # Custom attribute writer method with validation
210
+ # @param [Object] name Value to be assigned
211
+ def name=(name)
212
+ if name.nil?
213
+ fail ArgumentError, 'name cannot be nil'
214
+ end
215
+
216
+ if name.to_s.length < 1
217
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
218
+ end
219
+
220
+ @name = name
221
+ end
222
+
223
223
  # Custom attribute writer method with validation
224
224
  # @param [Object] description Value to be assigned
225
225
  def description=(description)
@@ -235,13 +235,13 @@ module PulpContainerClient
235
235
  def ==(o)
236
236
  return true if self.equal?(o)
237
237
  self.class == o.class &&
238
- repository == o.repository &&
239
- hidden == o.hidden &&
240
- pulp_labels == o.pulp_labels &&
241
- name == o.name &&
242
238
  content_guard == o.content_guard &&
243
239
  base_path == o.base_path &&
240
+ pulp_labels == o.pulp_labels &&
241
+ repository == o.repository &&
244
242
  repository_version == o.repository_version &&
243
+ hidden == o.hidden &&
244
+ name == o.name &&
245
245
  remote == o.remote &&
246
246
  distributions == o.distributions &&
247
247
  private == o.private &&
@@ -257,7 +257,7 @@ module PulpContainerClient
257
257
  # Calculates hash code according to all attributes.
258
258
  # @return [Integer] Hash code
259
259
  def hash
260
- [repository, hidden, pulp_labels, name, content_guard, base_path, repository_version, remote, distributions, private, description].hash
260
+ [content_guard, base_path, pulp_labels, repository, repository_version, hidden, name, remote, distributions, private, description].hash
261
261
  end
262
262
 
263
263
  # Builds the object from hash
@@ -19,10 +19,8 @@ module PulpContainerClient
19
19
  # Retain X versions of the repository. Default is null which retains all versions.
20
20
  attr_accessor :retain_repo_versions
21
21
 
22
- attr_accessor :pulp_labels
23
-
24
- # A unique name for this repository.
25
- attr_accessor :name
22
+ # An optional description.
23
+ attr_accessor :description
26
24
 
27
25
  # Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
28
26
  attr_accessor :retain_checkpoints
@@ -30,18 +28,20 @@ module PulpContainerClient
30
28
  # A reference to an associated signing service.
31
29
  attr_accessor :manifest_signing_service
32
30
 
33
- # An optional description.
34
- attr_accessor :description
31
+ attr_accessor :pulp_labels
32
+
33
+ # A unique name for this repository.
34
+ attr_accessor :name
35
35
 
36
36
  # Attribute mapping from ruby-style variable name to JSON key.
37
37
  def self.attribute_map
38
38
  {
39
39
  :'retain_repo_versions' => :'retain_repo_versions',
40
- :'pulp_labels' => :'pulp_labels',
41
- :'name' => :'name',
40
+ :'description' => :'description',
42
41
  :'retain_checkpoints' => :'retain_checkpoints',
43
42
  :'manifest_signing_service' => :'manifest_signing_service',
44
- :'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
  :'retain_repo_versions' => :'Integer',
57
- :'pulp_labels' => :'Hash<String, String>',
58
- :'name' => :'String',
57
+ :'description' => :'String',
59
58
  :'retain_checkpoints' => :'Integer',
60
59
  :'manifest_signing_service' => :'String',
61
- :'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
  :'retain_repo_versions',
69
+ :'description',
69
70
  :'retain_checkpoints',
70
71
  :'manifest_signing_service',
71
- :'description'
72
72
  ])
73
73
  end
74
74
 
@@ -91,14 +91,8 @@ module PulpContainerClient
91
91
  self.retain_repo_versions = attributes[:'retain_repo_versions']
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
98
- end
99
-
100
- if attributes.key?(:'name')
101
- self.name = attributes[:'name']
94
+ if attributes.key?(:'description')
95
+ self.description = attributes[:'description']
102
96
  end
103
97
 
104
98
  if attributes.key?(:'retain_checkpoints')
@@ -109,8 +103,14 @@ module PulpContainerClient
109
103
  self.manifest_signing_service = attributes[:'manifest_signing_service']
110
104
  end
111
105
 
112
- if attributes.key?(:'description')
113
- self.description = attributes[:'description']
106
+ if attributes.key?(:'pulp_labels')
107
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
108
+ self.pulp_labels = value
109
+ end
110
+ end
111
+
112
+ if attributes.key?(:'name')
113
+ self.name = attributes[:'name']
114
114
  end
115
115
  end
116
116
 
@@ -123,16 +123,16 @@ module PulpContainerClient
123
123
  invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
124
124
  end
125
125
 
126
- if !@name.nil? && @name.to_s.length < 1
127
- invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
126
+ if !@description.nil? && @description.to_s.length < 1
127
+ invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
128
128
  end
129
129
 
130
130
  if !@retain_checkpoints.nil? && @retain_checkpoints < 1
131
131
  invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
132
132
  end
133
133
 
134
- if !@description.nil? && @description.to_s.length < 1
135
- invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
134
+ if !@name.nil? && @name.to_s.length < 1
135
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
136
136
  end
137
137
 
138
138
  invalid_properties
@@ -143,9 +143,9 @@ module PulpContainerClient
143
143
  def valid?
144
144
  warn '[DEPRECATED] the `valid?` method is obsolete'
145
145
  return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
146
- return false if !@name.nil? && @name.to_s.length < 1
147
- return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
148
146
  return false if !@description.nil? && @description.to_s.length < 1
147
+ return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
148
+ return false if !@name.nil? && @name.to_s.length < 1
149
149
  true
150
150
  end
151
151
 
@@ -160,17 +160,13 @@ module PulpContainerClient
160
160
  end
161
161
 
162
162
  # Custom attribute writer method with validation
163
- # @param [Object] name Value to be assigned
164
- def name=(name)
165
- if name.nil?
166
- fail ArgumentError, 'name cannot be nil'
167
- end
168
-
169
- if name.to_s.length < 1
170
- fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
163
+ # @param [Object] description Value to be assigned
164
+ def description=(description)
165
+ if !description.nil? && description.to_s.length < 1
166
+ fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
171
167
  end
172
168
 
173
- @name = name
169
+ @description = description
174
170
  end
175
171
 
176
172
  # Custom attribute writer method with validation
@@ -184,13 +180,17 @@ module PulpContainerClient
184
180
  end
185
181
 
186
182
  # Custom attribute writer method with validation
187
- # @param [Object] description Value to be assigned
188
- def description=(description)
189
- if !description.nil? && description.to_s.length < 1
190
- fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
183
+ # @param [Object] name Value to be assigned
184
+ def name=(name)
185
+ if name.nil?
186
+ fail ArgumentError, 'name cannot be nil'
191
187
  end
192
188
 
193
- @description = description
189
+ if name.to_s.length < 1
190
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
191
+ end
192
+
193
+ @name = name
194
194
  end
195
195
 
196
196
  # Checks equality by comparing each attribute.
@@ -199,11 +199,11 @@ module PulpContainerClient
199
199
  return true if self.equal?(o)
200
200
  self.class == o.class &&
201
201
  retain_repo_versions == o.retain_repo_versions &&
202
- pulp_labels == o.pulp_labels &&
203
- name == o.name &&
202
+ description == o.description &&
204
203
  retain_checkpoints == o.retain_checkpoints &&
205
204
  manifest_signing_service == o.manifest_signing_service &&
206
- description == o.description
205
+ pulp_labels == o.pulp_labels &&
206
+ name == o.name
207
207
  end
208
208
 
209
209
  # @see the `==` method
@@ -215,7 +215,7 @@ module PulpContainerClient
215
215
  # Calculates hash code according to all attributes.
216
216
  # @return [Integer] Hash code
217
217
  def hash
218
- [retain_repo_versions, pulp_labels, name, retain_checkpoints, manifest_signing_service, description].hash
218
+ [retain_repo_versions, description, retain_checkpoints, manifest_signing_service, pulp_labels, name].hash
219
219
  end
220
220
 
221
221
  # Builds the object from hash
@@ -11,5 +11,5 @@ Generator version: 7.10.0
11
11
  =end
12
12
 
13
13
  module PulpContainerClient
14
- VERSION = '2.29.2'
14
+ VERSION = '2.29.3'
15
15
  end