pulp_container_client 2.29.1 → 2.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) 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 +12 -12
  5. data/docs/ContainerContainerPullThroughDistribution.md +6 -6
  6. data/docs/ContainerContainerPullThroughDistributionResponse.md +12 -12
  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 +6 -6
  12. data/docs/PatchedcontainerContainerPullThroughDistribution.md +6 -6
  13. data/docs/PatchedcontainerContainerPushRepository.md +7 -7
  14. data/lib/pulp_container_client/models/container_container_distribution.rb +55 -55
  15. data/lib/pulp_container_client/models/container_container_distribution_response.rb +66 -66
  16. data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +55 -55
  17. data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +66 -66
  18. data/lib/pulp_container_client/models/container_container_push_repository.rb +59 -59
  19. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +77 -77
  20. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +49 -49
  21. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +49 -49
  22. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +52 -52
  23. data/lib/pulp_container_client/version.rb +1 -1
  24. data/spec/models/container_container_distribution_response_spec.rb +12 -12
  25. data/spec/models/container_container_distribution_spec.rb +6 -6
  26. data/spec/models/container_container_pull_through_distribution_response_spec.rb +12 -12
  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 +6 -6
  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 +6 -6
  33. metadata +2 -2
@@ -16,25 +16,25 @@ require 'time'
16
16
  module PulpContainerClient
17
17
  # A serializer for ContainerDistribution.
18
18
  class PatchedcontainerContainerDistribution
19
+ # An optional content-guard. If none is specified, a default one will be used.
20
+ attr_accessor :content_guard
21
+
19
22
  # RepositoryVersion to be served
20
23
  attr_accessor :repository_version
21
24
 
22
- # A unique name. Ex, `rawhide` and `stable`.
23
- attr_accessor :name
24
-
25
25
  # The latest RepositoryVersion for this Repository will be served.
26
26
  attr_accessor :repository
27
27
 
28
+ # Whether this distribution should be shown in the content app.
29
+ attr_accessor :hidden
30
+
28
31
  # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
29
32
  attr_accessor :base_path
30
33
 
31
34
  attr_accessor :pulp_labels
32
35
 
33
- # Whether this distribution should be shown in the content app.
34
- attr_accessor :hidden
35
-
36
- # An optional content-guard. If none is specified, a default one will be used.
37
- attr_accessor :content_guard
36
+ # A unique name. Ex, `rawhide` and `stable`.
37
+ attr_accessor :name
38
38
 
39
39
  # Restrict pull access to explicitly authorized users. Defaults to unrestricted pull access.
40
40
  attr_accessor :private
@@ -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
+ :'content_guard' => :'content_guard',
48
49
  :'repository_version' => :'repository_version',
49
- :'name' => :'name',
50
50
  :'repository' => :'repository',
51
+ :'hidden' => :'hidden',
51
52
  :'base_path' => :'base_path',
52
53
  :'pulp_labels' => :'pulp_labels',
53
- :'hidden' => :'hidden',
54
- :'content_guard' => :'content_guard',
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
+ :'content_guard' => :'String',
68
69
  :'repository_version' => :'String',
69
- :'name' => :'String',
70
70
  :'repository' => :'String',
71
+ :'hidden' => :'Boolean',
71
72
  :'base_path' => :'String',
72
73
  :'pulp_labels' => :'Hash<String, String>',
73
- :'hidden' => :'Boolean',
74
- :'content_guard' => :'String',
74
+ :'name' => :'String',
75
75
  :'private' => :'Boolean',
76
76
  :'description' => :'String'
77
77
  }
@@ -101,18 +101,24 @@ module PulpContainerClient
101
101
  h[k.to_sym] = v
102
102
  }
103
103
 
104
- if attributes.key?(:'repository_version')
105
- self.repository_version = attributes[:'repository_version']
104
+ if attributes.key?(:'content_guard')
105
+ self.content_guard = attributes[:'content_guard']
106
106
  end
107
107
 
108
- if attributes.key?(:'name')
109
- self.name = attributes[:'name']
108
+ if attributes.key?(:'repository_version')
109
+ self.repository_version = attributes[:'repository_version']
110
110
  end
111
111
 
112
112
  if attributes.key?(:'repository')
113
113
  self.repository = attributes[:'repository']
114
114
  end
115
115
 
116
+ if attributes.key?(:'hidden')
117
+ self.hidden = attributes[:'hidden']
118
+ else
119
+ self.hidden = false
120
+ end
121
+
116
122
  if attributes.key?(:'base_path')
117
123
  self.base_path = attributes[:'base_path']
118
124
  end
@@ -123,14 +129,8 @@ module PulpContainerClient
123
129
  end
124
130
  end
125
131
 
126
- if attributes.key?(:'hidden')
127
- self.hidden = attributes[:'hidden']
128
- else
129
- self.hidden = false
130
- end
131
-
132
- if attributes.key?(:'content_guard')
133
- self.content_guard = attributes[:'content_guard']
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
+ content_guard == o.content_guard &&
218
219
  repository_version == o.repository_version &&
219
- name == o.name &&
220
220
  repository == o.repository &&
221
+ hidden == o.hidden &&
221
222
  base_path == o.base_path &&
222
223
  pulp_labels == o.pulp_labels &&
223
- hidden == o.hidden &&
224
- content_guard == o.content_guard &&
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_version, name, repository, base_path, pulp_labels, hidden, content_guard, private, description].hash
238
+ [content_guard, repository_version, repository, hidden, base_path, pulp_labels, name, private, description].hash
239
239
  end
240
240
 
241
241
  # Builds the object from hash
@@ -16,25 +16,25 @@ require 'time'
16
16
  module PulpContainerClient
17
17
  # A serializer for a specialized pull-through distribution referencing sub-distributions.
18
18
  class PatchedcontainerContainerPullThroughDistribution
19
+ # An optional content-guard. If none is specified, a default one will be used.
20
+ attr_accessor :content_guard
21
+
19
22
  # RepositoryVersion to be served
20
23
  attr_accessor :repository_version
21
24
 
22
- # A unique name. Ex, `rawhide` and `stable`.
23
- attr_accessor :name
24
-
25
25
  # The latest RepositoryVersion for this Repository will be served.
26
26
  attr_accessor :repository
27
27
 
28
+ # Whether this distribution should be shown in the content app.
29
+ attr_accessor :hidden
30
+
28
31
  # The registry path exposed by this pull-through distribution.
29
32
  attr_accessor :base_path
30
33
 
31
34
  attr_accessor :pulp_labels
32
35
 
33
- # Whether this distribution should be shown in the content app.
34
- attr_accessor :hidden
35
-
36
- # An optional content-guard. If none is specified, a default one will be used.
37
- attr_accessor :content_guard
36
+ # A unique name. Ex, `rawhide` and `stable`.
37
+ attr_accessor :name
38
38
 
39
39
  # Remote that can be used to fetch content when using pull-through caching.
40
40
  attr_accessor :remote
@@ -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
  :'repository_version' => :'repository_version',
55
- :'name' => :'name',
56
56
  :'repository' => :'repository',
57
+ :'hidden' => :'hidden',
57
58
  :'base_path' => :'base_path',
58
59
  :'pulp_labels' => :'pulp_labels',
59
- :'hidden' => :'hidden',
60
- :'content_guard' => :'content_guard',
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
+ :'content_guard' => :'String',
76
77
  :'repository_version' => :'String',
77
- :'name' => :'String',
78
78
  :'repository' => :'String',
79
+ :'hidden' => :'Boolean',
79
80
  :'base_path' => :'String',
80
81
  :'pulp_labels' => :'Hash<String, String>',
81
- :'hidden' => :'Boolean',
82
- :'content_guard' => :'String',
82
+ :'name' => :'String',
83
83
  :'remote' => :'String',
84
84
  :'distributions' => :'Array<String>',
85
85
  :'private' => :'Boolean',
@@ -111,18 +111,24 @@ module PulpContainerClient
111
111
  h[k.to_sym] = v
112
112
  }
113
113
 
114
- if attributes.key?(:'repository_version')
115
- self.repository_version = attributes[:'repository_version']
114
+ if attributes.key?(:'content_guard')
115
+ self.content_guard = attributes[:'content_guard']
116
116
  end
117
117
 
118
- if attributes.key?(:'name')
119
- self.name = attributes[:'name']
118
+ if attributes.key?(:'repository_version')
119
+ self.repository_version = attributes[:'repository_version']
120
120
  end
121
121
 
122
122
  if attributes.key?(:'repository')
123
123
  self.repository = attributes[:'repository']
124
124
  end
125
125
 
126
+ if attributes.key?(:'hidden')
127
+ self.hidden = attributes[:'hidden']
128
+ else
129
+ self.hidden = false
130
+ end
131
+
126
132
  if attributes.key?(:'base_path')
127
133
  self.base_path = attributes[:'base_path']
128
134
  end
@@ -133,14 +139,8 @@ module PulpContainerClient
133
139
  end
134
140
  end
135
141
 
136
- if attributes.key?(:'hidden')
137
- self.hidden = attributes[:'hidden']
138
- else
139
- self.hidden = false
140
- end
141
-
142
- if attributes.key?(:'content_guard')
143
- self.content_guard = attributes[:'content_guard']
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
+ content_guard == o.content_guard &&
238
239
  repository_version == o.repository_version &&
239
- name == o.name &&
240
240
  repository == o.repository &&
241
+ hidden == o.hidden &&
241
242
  base_path == o.base_path &&
242
243
  pulp_labels == o.pulp_labels &&
243
- hidden == o.hidden &&
244
- content_guard == o.content_guard &&
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_version, name, repository, base_path, pulp_labels, hidden, content_guard, remote, distributions, private, description].hash
260
+ [content_guard, repository_version, repository, hidden, base_path, pulp_labels, name, remote, distributions, private, description].hash
261
261
  end
262
262
 
263
263
  # Builds the object from hash
@@ -16,32 +16,32 @@ require 'time'
16
16
  module PulpContainerClient
17
17
  # Serializer for Container Push Repositories.
18
18
  class PatchedcontainerContainerPushRepository
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
24
-
25
- attr_accessor :pulp_labels
26
-
27
19
  # An optional description.
28
20
  attr_accessor :description
29
21
 
22
+ attr_accessor :pulp_labels
23
+
30
24
  # Retain X versions of the repository. Default is null which retains all versions.
31
25
  attr_accessor :retain_repo_versions
32
26
 
33
27
  # Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
34
28
  attr_accessor :retain_checkpoints
35
29
 
30
+ # A reference to an associated signing service.
31
+ attr_accessor :manifest_signing_service
32
+
33
+ # A unique name for this repository.
34
+ attr_accessor :name
35
+
36
36
  # Attribute mapping from ruby-style variable name to JSON key.
37
37
  def self.attribute_map
38
38
  {
39
- :'name' => :'name',
40
- :'manifest_signing_service' => :'manifest_signing_service',
41
- :'pulp_labels' => :'pulp_labels',
42
39
  :'description' => :'description',
40
+ :'pulp_labels' => :'pulp_labels',
43
41
  :'retain_repo_versions' => :'retain_repo_versions',
44
- :'retain_checkpoints' => :'retain_checkpoints'
42
+ :'retain_checkpoints' => :'retain_checkpoints',
43
+ :'manifest_signing_service' => :'manifest_signing_service',
44
+ :'name' => :'name'
45
45
  }
46
46
  end
47
47
 
@@ -53,22 +53,22 @@ module PulpContainerClient
53
53
  # Attribute type mapping.
54
54
  def self.openapi_types
55
55
  {
56
- :'name' => :'String',
57
- :'manifest_signing_service' => :'String',
58
- :'pulp_labels' => :'Hash<String, String>',
59
56
  :'description' => :'String',
57
+ :'pulp_labels' => :'Hash<String, String>',
60
58
  :'retain_repo_versions' => :'Integer',
61
- :'retain_checkpoints' => :'Integer'
59
+ :'retain_checkpoints' => :'Integer',
60
+ :'manifest_signing_service' => :'String',
61
+ :'name' => :'String'
62
62
  }
63
63
  end
64
64
 
65
65
  # List of attributes with nullable: true
66
66
  def self.openapi_nullable
67
67
  Set.new([
68
- :'manifest_signing_service',
69
68
  :'description',
70
69
  :'retain_repo_versions',
71
- :'retain_checkpoints'
70
+ :'retain_checkpoints',
71
+ :'manifest_signing_service',
72
72
  ])
73
73
  end
74
74
 
@@ -87,12 +87,8 @@ module PulpContainerClient
87
87
  h[k.to_sym] = v
88
88
  }
89
89
 
90
- if attributes.key?(:'name')
91
- self.name = attributes[:'name']
92
- end
93
-
94
- if attributes.key?(:'manifest_signing_service')
95
- self.manifest_signing_service = attributes[:'manifest_signing_service']
90
+ if attributes.key?(:'description')
91
+ self.description = attributes[:'description']
96
92
  end
97
93
 
98
94
  if attributes.key?(:'pulp_labels')
@@ -101,10 +97,6 @@ module PulpContainerClient
101
97
  end
102
98
  end
103
99
 
104
- if attributes.key?(:'description')
105
- self.description = attributes[:'description']
106
- end
107
-
108
100
  if attributes.key?(:'retain_repo_versions')
109
101
  self.retain_repo_versions = attributes[:'retain_repo_versions']
110
102
  end
@@ -112,6 +104,14 @@ module PulpContainerClient
112
104
  if attributes.key?(:'retain_checkpoints')
113
105
  self.retain_checkpoints = attributes[:'retain_checkpoints']
114
106
  end
107
+
108
+ if attributes.key?(:'manifest_signing_service')
109
+ self.manifest_signing_service = attributes[:'manifest_signing_service']
110
+ end
111
+
112
+ if attributes.key?(:'name')
113
+ self.name = attributes[:'name']
114
+ end
115
115
  end
116
116
 
117
117
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -119,10 +119,6 @@ module PulpContainerClient
119
119
  def list_invalid_properties
120
120
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
121
121
  invalid_properties = Array.new
122
- if !@name.nil? && @name.to_s.length < 1
123
- invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
124
- end
125
-
126
122
  if !@description.nil? && @description.to_s.length < 1
127
123
  invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
128
124
  end
@@ -135,6 +131,10 @@ module PulpContainerClient
135
131
  invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
136
132
  end
137
133
 
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
+ end
137
+
138
138
  invalid_properties
139
139
  end
140
140
 
@@ -142,27 +142,13 @@ module PulpContainerClient
142
142
  # @return true if the model is valid
143
143
  def valid?
144
144
  warn '[DEPRECATED] the `valid?` method is obsolete'
145
- return false if !@name.nil? && @name.to_s.length < 1
146
145
  return false if !@description.nil? && @description.to_s.length < 1
147
146
  return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
148
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
 
152
- # Custom attribute writer method with validation
153
- # @param [Object] name Value to be assigned
154
- def name=(name)
155
- if name.nil?
156
- fail ArgumentError, 'name cannot be nil'
157
- end
158
-
159
- if name.to_s.length < 1
160
- fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
161
- end
162
-
163
- @name = name
164
- end
165
-
166
152
  # Custom attribute writer method with validation
167
153
  # @param [Object] description Value to be assigned
168
154
  def description=(description)
@@ -193,17 +179,31 @@ module PulpContainerClient
193
179
  @retain_checkpoints = retain_checkpoints
194
180
  end
195
181
 
182
+ # Custom attribute writer method with validation
183
+ # @param [Object] name Value to be assigned
184
+ def name=(name)
185
+ if name.nil?
186
+ fail ArgumentError, 'name cannot be nil'
187
+ end
188
+
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
+ end
195
+
196
196
  # Checks equality by comparing each attribute.
197
197
  # @param [Object] Object to be compared
198
198
  def ==(o)
199
199
  return true if self.equal?(o)
200
200
  self.class == o.class &&
201
- name == o.name &&
202
- manifest_signing_service == o.manifest_signing_service &&
203
- pulp_labels == o.pulp_labels &&
204
201
  description == o.description &&
202
+ pulp_labels == o.pulp_labels &&
205
203
  retain_repo_versions == o.retain_repo_versions &&
206
- retain_checkpoints == o.retain_checkpoints
204
+ retain_checkpoints == o.retain_checkpoints &&
205
+ manifest_signing_service == o.manifest_signing_service &&
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
- [name, manifest_signing_service, pulp_labels, description, retain_repo_versions, retain_checkpoints].hash
218
+ [description, pulp_labels, retain_repo_versions, retain_checkpoints, manifest_signing_service, 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.1'
14
+ VERSION = '2.30.0'
15
15
  end