pulp_container_client 2.28.1 → 2.29.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +9 -6
  3. data/docs/ContainerContainerDistribution.md +8 -8
  4. data/docs/ContainerContainerDistributionResponse.md +20 -20
  5. data/docs/ContainerContainerPullThroughDistribution.md +9 -9
  6. data/docs/ContainerContainerPullThroughDistributionResponse.md +20 -20
  7. data/docs/ContainerContainerPushRepository.md +8 -8
  8. data/docs/ContainerContainerPushRepositoryResponse.md +16 -16
  9. data/docs/ContainerRepositorySyncURL.md +1 -1
  10. data/docs/ContentBlobsApi.md +4 -0
  11. data/docs/ContentManifestsApi.md +4 -0
  12. data/docs/ContentSignaturesApi.md +4 -0
  13. data/docs/ContentTagsApi.md +4 -0
  14. data/docs/DistributionsPullThroughApi.md +10 -10
  15. data/docs/PatchedcontainerContainerDistribution.md +8 -8
  16. data/docs/PatchedcontainerContainerPullThroughDistribution.md +9 -9
  17. data/docs/PatchedcontainerContainerPushRepository.md +8 -8
  18. data/docs/RepositoriesContainerApi.md +3 -3
  19. data/docs/RepositoriesContainerPushApi.md +75 -0
  20. data/lib/pulp_container_client/api/content_blobs_api.rb +6 -0
  21. data/lib/pulp_container_client/api/content_manifests_api.rb +6 -0
  22. data/lib/pulp_container_client/api/content_signatures_api.rb +6 -0
  23. data/lib/pulp_container_client/api/content_tags_api.rb +6 -0
  24. data/lib/pulp_container_client/api/distributions_pull_through_api.rb +4 -8
  25. data/lib/pulp_container_client/api/repositories_container_api.rb +6 -6
  26. data/lib/pulp_container_client/api/repositories_container_push_api.rb +66 -0
  27. data/lib/pulp_container_client/models/container_container_distribution.rb +42 -42
  28. data/lib/pulp_container_client/models/container_container_distribution_response.rb +82 -82
  29. data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +43 -43
  30. data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +82 -82
  31. data/lib/pulp_container_client/models/container_container_push_repository.rb +68 -68
  32. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +83 -83
  33. data/lib/pulp_container_client/models/container_repository_sync_url.rb +1 -1
  34. data/lib/pulp_container_client/models/nested_role.rb +1 -1
  35. data/lib/pulp_container_client/models/nested_role_response.rb +1 -1
  36. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +40 -40
  37. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +41 -41
  38. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +66 -66
  39. data/lib/pulp_container_client/models/repository_version_response.rb +1 -1
  40. data/lib/pulp_container_client/version.rb +1 -1
  41. data/spec/api/content_blobs_api_spec.rb +2 -0
  42. data/spec/api/content_manifests_api_spec.rb +2 -0
  43. data/spec/api/content_signatures_api_spec.rb +2 -0
  44. data/spec/api/content_tags_api_spec.rb +2 -0
  45. data/spec/api/distributions_pull_through_api_spec.rb +2 -4
  46. data/spec/api/repositories_container_api_spec.rb +3 -3
  47. data/spec/api/repositories_container_push_api_spec.rb +13 -0
  48. data/spec/models/container_container_distribution_response_spec.rb +12 -12
  49. data/spec/models/container_container_distribution_spec.rb +7 -7
  50. data/spec/models/container_container_pull_through_distribution_response_spec.rb +12 -12
  51. data/spec/models/container_container_pull_through_distribution_spec.rb +7 -7
  52. data/spec/models/container_container_push_repository_response_spec.rb +11 -11
  53. data/spec/models/container_container_push_repository_spec.rb +5 -5
  54. data/spec/models/patchedcontainer_container_distribution_spec.rb +7 -7
  55. data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +7 -7
  56. data/spec/models/patchedcontainer_container_push_repository_spec.rb +5 -5
  57. metadata +60 -60
@@ -16,42 +16,42 @@ require 'time'
16
16
  module PulpContainerClient
17
17
  # A serializer for a specialized pull-through distribution referencing sub-distributions.
18
18
  class ContainerContainerPullThroughDistributionResponse
19
- # Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
20
- attr_accessor :pulp_last_updated
19
+ # RepositoryVersion to be served
20
+ attr_accessor :repository_version
21
21
 
22
- # Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
23
- attr_accessor :no_content_change_since
22
+ # A unique name. Ex, `rawhide` and `stable`.
23
+ attr_accessor :name
24
24
 
25
- # The Pulp Resource Name (PRN) of the associated optional content guard.
26
- attr_accessor :content_guard_prn
25
+ # The latest RepositoryVersion for this Repository will be served.
26
+ attr_accessor :repository
27
27
 
28
28
  attr_accessor :pulp_href
29
29
 
30
- # An optional content-guard. If none is specified, a default one will be used.
31
- attr_accessor :content_guard
32
-
33
- # The Pulp Resource Name (PRN).
34
- attr_accessor :prn
30
+ # The Pulp Resource Name (PRN) of the associated optional content guard.
31
+ attr_accessor :content_guard_prn
35
32
 
36
- # Timestamp of creation.
37
- attr_accessor :pulp_created
33
+ # The registry path exposed by this pull-through distribution.
34
+ attr_accessor :base_path
38
35
 
39
36
  attr_accessor :pulp_labels
40
37
 
41
- # A unique name. Ex, `rawhide` and `stable`.
42
- attr_accessor :name
43
-
44
38
  # Whether this distribution should be shown in the content app.
45
39
  attr_accessor :hidden
46
40
 
47
- # The latest RepositoryVersion for this Repository will be served.
48
- attr_accessor :repository
41
+ # Timestamp of creation.
42
+ attr_accessor :pulp_created
49
43
 
50
- # RepositoryVersion to be served
51
- attr_accessor :repository_version
44
+ # The Pulp Resource Name (PRN).
45
+ attr_accessor :prn
52
46
 
53
- # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
54
- attr_accessor :base_path
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
+ # An optional content-guard. If none is specified, a default one will be used.
51
+ attr_accessor :content_guard
52
+
53
+ # Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
54
+ attr_accessor :no_content_change_since
55
55
 
56
56
  # Remote that can be used to fetch content when using pull-through caching.
57
57
  attr_accessor :remote
@@ -71,19 +71,19 @@ module PulpContainerClient
71
71
  # Attribute mapping from ruby-style variable name to JSON key.
72
72
  def self.attribute_map
73
73
  {
74
- :'pulp_last_updated' => :'pulp_last_updated',
75
- :'no_content_change_since' => :'no_content_change_since',
76
- :'content_guard_prn' => :'content_guard_prn',
77
- :'pulp_href' => :'pulp_href',
78
- :'content_guard' => :'content_guard',
79
- :'prn' => :'prn',
80
- :'pulp_created' => :'pulp_created',
81
- :'pulp_labels' => :'pulp_labels',
74
+ :'repository_version' => :'repository_version',
82
75
  :'name' => :'name',
83
- :'hidden' => :'hidden',
84
76
  :'repository' => :'repository',
85
- :'repository_version' => :'repository_version',
77
+ :'pulp_href' => :'pulp_href',
78
+ :'content_guard_prn' => :'content_guard_prn',
86
79
  :'base_path' => :'base_path',
80
+ :'pulp_labels' => :'pulp_labels',
81
+ :'hidden' => :'hidden',
82
+ :'pulp_created' => :'pulp_created',
83
+ :'prn' => :'prn',
84
+ :'pulp_last_updated' => :'pulp_last_updated',
85
+ :'content_guard' => :'content_guard',
86
+ :'no_content_change_since' => :'no_content_change_since',
87
87
  :'remote' => :'remote',
88
88
  :'distributions' => :'distributions',
89
89
  :'namespace' => :'namespace',
@@ -100,19 +100,19 @@ module PulpContainerClient
100
100
  # Attribute type mapping.
101
101
  def self.openapi_types
102
102
  {
103
- :'pulp_last_updated' => :'Time',
104
- :'no_content_change_since' => :'String',
105
- :'content_guard_prn' => :'String',
106
- :'pulp_href' => :'String',
107
- :'content_guard' => :'String',
108
- :'prn' => :'String',
109
- :'pulp_created' => :'Time',
110
- :'pulp_labels' => :'Hash<String, String>',
103
+ :'repository_version' => :'String',
111
104
  :'name' => :'String',
112
- :'hidden' => :'Boolean',
113
105
  :'repository' => :'String',
114
- :'repository_version' => :'String',
106
+ :'pulp_href' => :'String',
107
+ :'content_guard_prn' => :'String',
115
108
  :'base_path' => :'String',
109
+ :'pulp_labels' => :'Hash<String, String>',
110
+ :'hidden' => :'Boolean',
111
+ :'pulp_created' => :'Time',
112
+ :'prn' => :'String',
113
+ :'pulp_last_updated' => :'Time',
114
+ :'content_guard' => :'String',
115
+ :'no_content_change_since' => :'String',
116
116
  :'remote' => :'String',
117
117
  :'distributions' => :'Array<String>',
118
118
  :'namespace' => :'String',
@@ -124,8 +124,8 @@ module PulpContainerClient
124
124
  # List of attributes with nullable: true
125
125
  def self.openapi_nullable
126
126
  Set.new([
127
- :'repository',
128
127
  :'repository_version',
128
+ :'repository',
129
129
  :'description'
130
130
  ])
131
131
  end
@@ -145,32 +145,32 @@ module PulpContainerClient
145
145
  h[k.to_sym] = v
146
146
  }
147
147
 
148
- if attributes.key?(:'pulp_last_updated')
149
- self.pulp_last_updated = attributes[:'pulp_last_updated']
148
+ if attributes.key?(:'repository_version')
149
+ self.repository_version = attributes[:'repository_version']
150
150
  end
151
151
 
152
- if attributes.key?(:'no_content_change_since')
153
- self.no_content_change_since = attributes[:'no_content_change_since']
152
+ if attributes.key?(:'name')
153
+ self.name = attributes[:'name']
154
+ else
155
+ self.name = nil
154
156
  end
155
157
 
156
- if attributes.key?(:'content_guard_prn')
157
- self.content_guard_prn = attributes[:'content_guard_prn']
158
+ if attributes.key?(:'repository')
159
+ self.repository = attributes[:'repository']
158
160
  end
159
161
 
160
162
  if attributes.key?(:'pulp_href')
161
163
  self.pulp_href = attributes[:'pulp_href']
162
164
  end
163
165
 
164
- if attributes.key?(:'content_guard')
165
- self.content_guard = attributes[:'content_guard']
166
- end
167
-
168
- if attributes.key?(:'prn')
169
- self.prn = attributes[:'prn']
166
+ if attributes.key?(:'content_guard_prn')
167
+ self.content_guard_prn = attributes[:'content_guard_prn']
170
168
  end
171
169
 
172
- if attributes.key?(:'pulp_created')
173
- self.pulp_created = attributes[:'pulp_created']
170
+ if attributes.key?(:'base_path')
171
+ self.base_path = attributes[:'base_path']
172
+ else
173
+ self.base_path = nil
174
174
  end
175
175
 
176
176
  if attributes.key?(:'pulp_labels')
@@ -179,30 +179,30 @@ module PulpContainerClient
179
179
  end
180
180
  end
181
181
 
182
- if attributes.key?(:'name')
183
- self.name = attributes[:'name']
184
- else
185
- self.name = nil
186
- end
187
-
188
182
  if attributes.key?(:'hidden')
189
183
  self.hidden = attributes[:'hidden']
190
184
  else
191
185
  self.hidden = false
192
186
  end
193
187
 
194
- if attributes.key?(:'repository')
195
- self.repository = attributes[:'repository']
188
+ if attributes.key?(:'pulp_created')
189
+ self.pulp_created = attributes[:'pulp_created']
196
190
  end
197
191
 
198
- if attributes.key?(:'repository_version')
199
- self.repository_version = attributes[:'repository_version']
192
+ if attributes.key?(:'prn')
193
+ self.prn = attributes[:'prn']
200
194
  end
201
195
 
202
- if attributes.key?(:'base_path')
203
- self.base_path = attributes[:'base_path']
204
- else
205
- self.base_path = nil
196
+ if attributes.key?(:'pulp_last_updated')
197
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
198
+ end
199
+
200
+ if attributes.key?(:'content_guard')
201
+ self.content_guard = attributes[:'content_guard']
202
+ end
203
+
204
+ if attributes.key?(:'no_content_change_since')
205
+ self.no_content_change_since = attributes[:'no_content_change_since']
206
206
  end
207
207
 
208
208
  if attributes.key?(:'remote')
@@ -265,19 +265,19 @@ module PulpContainerClient
265
265
  def ==(o)
266
266
  return true if self.equal?(o)
267
267
  self.class == o.class &&
268
- pulp_last_updated == o.pulp_last_updated &&
269
- no_content_change_since == o.no_content_change_since &&
270
- content_guard_prn == o.content_guard_prn &&
271
- pulp_href == o.pulp_href &&
272
- content_guard == o.content_guard &&
273
- prn == o.prn &&
274
- pulp_created == o.pulp_created &&
275
- pulp_labels == o.pulp_labels &&
268
+ repository_version == o.repository_version &&
276
269
  name == o.name &&
277
- hidden == o.hidden &&
278
270
  repository == o.repository &&
279
- repository_version == o.repository_version &&
271
+ pulp_href == o.pulp_href &&
272
+ content_guard_prn == o.content_guard_prn &&
280
273
  base_path == o.base_path &&
274
+ pulp_labels == o.pulp_labels &&
275
+ hidden == o.hidden &&
276
+ pulp_created == o.pulp_created &&
277
+ prn == o.prn &&
278
+ pulp_last_updated == o.pulp_last_updated &&
279
+ content_guard == o.content_guard &&
280
+ no_content_change_since == o.no_content_change_since &&
281
281
  remote == o.remote &&
282
282
  distributions == o.distributions &&
283
283
  namespace == o.namespace &&
@@ -294,7 +294,7 @@ module PulpContainerClient
294
294
  # Calculates hash code according to all attributes.
295
295
  # @return [Integer] Hash code
296
296
  def hash
297
- [pulp_last_updated, no_content_change_since, content_guard_prn, pulp_href, content_guard, prn, pulp_created, pulp_labels, name, hidden, repository, repository_version, base_path, remote, distributions, namespace, private, description].hash
297
+ [repository_version, name, repository, pulp_href, content_guard_prn, base_path, pulp_labels, hidden, pulp_created, prn, pulp_last_updated, content_guard, no_content_change_since, remote, distributions, namespace, private, description].hash
298
298
  end
299
299
 
300
300
  # 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 ContainerContainerPushRepository
19
+ # A unique name for this repository.
20
+ attr_accessor :name
21
+
19
22
  # A reference to an associated signing service.
20
23
  attr_accessor :manifest_signing_service
21
24
 
22
- # Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
23
- attr_accessor :retain_checkpoints
24
-
25
- # Retain X versions of the repository. Default is null which retains all versions.
26
- attr_accessor :retain_repo_versions
25
+ attr_accessor :pulp_labels
27
26
 
28
27
  # An optional description.
29
28
  attr_accessor :description
30
29
 
31
- attr_accessor :pulp_labels
30
+ # Retain X versions of the repository. Default is null which retains all versions.
31
+ attr_accessor :retain_repo_versions
32
32
 
33
- # A unique name for this repository.
34
- attr_accessor :name
33
+ # Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
34
+ attr_accessor :retain_checkpoints
35
35
 
36
36
  # Attribute mapping from ruby-style variable name to JSON key.
37
37
  def self.attribute_map
38
38
  {
39
+ :'name' => :'name',
39
40
  :'manifest_signing_service' => :'manifest_signing_service',
40
- :'retain_checkpoints' => :'retain_checkpoints',
41
- :'retain_repo_versions' => :'retain_repo_versions',
42
- :'description' => :'description',
43
41
  :'pulp_labels' => :'pulp_labels',
44
- :'name' => :'name'
42
+ :'description' => :'description',
43
+ :'retain_repo_versions' => :'retain_repo_versions',
44
+ :'retain_checkpoints' => :'retain_checkpoints'
45
45
  }
46
46
  end
47
47
 
@@ -53,12 +53,12 @@ module PulpContainerClient
53
53
  # Attribute type mapping.
54
54
  def self.openapi_types
55
55
  {
56
+ :'name' => :'String',
56
57
  :'manifest_signing_service' => :'String',
57
- :'retain_checkpoints' => :'Integer',
58
- :'retain_repo_versions' => :'Integer',
59
- :'description' => :'String',
60
58
  :'pulp_labels' => :'Hash<String, String>',
61
- :'name' => :'String'
59
+ :'description' => :'String',
60
+ :'retain_repo_versions' => :'Integer',
61
+ :'retain_checkpoints' => :'Integer'
62
62
  }
63
63
  end
64
64
 
@@ -66,9 +66,9 @@ module PulpContainerClient
66
66
  def self.openapi_nullable
67
67
  Set.new([
68
68
  :'manifest_signing_service',
69
- :'retain_checkpoints',
70
- :'retain_repo_versions',
71
69
  :'description',
70
+ :'retain_repo_versions',
71
+ :'retain_checkpoints'
72
72
  ])
73
73
  end
74
74
 
@@ -87,32 +87,32 @@ module PulpContainerClient
87
87
  h[k.to_sym] = v
88
88
  }
89
89
 
90
- if attributes.key?(:'manifest_signing_service')
91
- self.manifest_signing_service = attributes[:'manifest_signing_service']
90
+ if attributes.key?(:'name')
91
+ self.name = attributes[:'name']
92
+ else
93
+ self.name = nil
92
94
  end
93
95
 
94
- if attributes.key?(:'retain_checkpoints')
95
- self.retain_checkpoints = attributes[:'retain_checkpoints']
96
+ if attributes.key?(:'manifest_signing_service')
97
+ self.manifest_signing_service = attributes[:'manifest_signing_service']
96
98
  end
97
99
 
98
- if attributes.key?(:'retain_repo_versions')
99
- self.retain_repo_versions = attributes[:'retain_repo_versions']
100
+ if attributes.key?(:'pulp_labels')
101
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
102
+ self.pulp_labels = value
103
+ end
100
104
  end
101
105
 
102
106
  if attributes.key?(:'description')
103
107
  self.description = attributes[:'description']
104
108
  end
105
109
 
106
- if attributes.key?(:'pulp_labels')
107
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
108
- self.pulp_labels = value
109
- end
110
+ if attributes.key?(:'retain_repo_versions')
111
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
110
112
  end
111
113
 
112
- if attributes.key?(:'name')
113
- self.name = attributes[:'name']
114
- else
115
- self.name = nil
114
+ if attributes.key?(:'retain_checkpoints')
115
+ self.retain_checkpoints = attributes[:'retain_checkpoints']
116
116
  end
117
117
  end
118
118
 
@@ -121,24 +121,24 @@ module PulpContainerClient
121
121
  def list_invalid_properties
122
122
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
123
123
  invalid_properties = Array.new
124
- if !@retain_checkpoints.nil? && @retain_checkpoints < 1
125
- invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
124
+ if @name.nil?
125
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
126
126
  end
127
127
 
128
- if !@retain_repo_versions.nil? && @retain_repo_versions < 1
129
- invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
128
+ if @name.to_s.length < 1
129
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
130
130
  end
131
131
 
132
132
  if !@description.nil? && @description.to_s.length < 1
133
133
  invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
134
134
  end
135
135
 
136
- if @name.nil?
137
- invalid_properties.push('invalid value for "name", name cannot be nil.')
136
+ if !@retain_repo_versions.nil? && @retain_repo_versions < 1
137
+ invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
138
138
  end
139
139
 
140
- if @name.to_s.length < 1
141
- invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
140
+ if !@retain_checkpoints.nil? && @retain_checkpoints < 1
141
+ invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
142
142
  end
143
143
 
144
144
  invalid_properties
@@ -148,32 +148,26 @@ module PulpContainerClient
148
148
  # @return true if the model is valid
149
149
  def valid?
150
150
  warn '[DEPRECATED] the `valid?` method is obsolete'
151
- return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
152
- return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
153
- return false if !@description.nil? && @description.to_s.length < 1
154
151
  return false if @name.nil?
155
152
  return false if @name.to_s.length < 1
153
+ return false if !@description.nil? && @description.to_s.length < 1
154
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
155
+ return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
156
156
  true
157
157
  end
158
158
 
159
159
  # Custom attribute writer method with validation
160
- # @param [Object] retain_checkpoints Value to be assigned
161
- def retain_checkpoints=(retain_checkpoints)
162
- if !retain_checkpoints.nil? && retain_checkpoints < 1
163
- fail ArgumentError, 'invalid value for "retain_checkpoints", must be greater than or equal to 1.'
160
+ # @param [Object] name Value to be assigned
161
+ def name=(name)
162
+ if name.nil?
163
+ fail ArgumentError, 'name cannot be nil'
164
164
  end
165
165
 
166
- @retain_checkpoints = retain_checkpoints
167
- end
168
-
169
- # Custom attribute writer method with validation
170
- # @param [Object] retain_repo_versions Value to be assigned
171
- def retain_repo_versions=(retain_repo_versions)
172
- if !retain_repo_versions.nil? && retain_repo_versions < 1
173
- fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
166
+ if name.to_s.length < 1
167
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
174
168
  end
175
169
 
176
- @retain_repo_versions = retain_repo_versions
170
+ @name = name
177
171
  end
178
172
 
179
173
  # Custom attribute writer method with validation
@@ -187,17 +181,23 @@ module PulpContainerClient
187
181
  end
188
182
 
189
183
  # 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'
184
+ # @param [Object] retain_repo_versions Value to be assigned
185
+ def retain_repo_versions=(retain_repo_versions)
186
+ if !retain_repo_versions.nil? && retain_repo_versions < 1
187
+ fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
194
188
  end
195
189
 
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.'
190
+ @retain_repo_versions = retain_repo_versions
191
+ end
192
+
193
+ # Custom attribute writer method with validation
194
+ # @param [Object] retain_checkpoints Value to be assigned
195
+ def retain_checkpoints=(retain_checkpoints)
196
+ if !retain_checkpoints.nil? && retain_checkpoints < 1
197
+ fail ArgumentError, 'invalid value for "retain_checkpoints", must be greater than or equal to 1.'
198
198
  end
199
199
 
200
- @name = name
200
+ @retain_checkpoints = retain_checkpoints
201
201
  end
202
202
 
203
203
  # Checks equality by comparing each attribute.
@@ -205,12 +205,12 @@ module PulpContainerClient
205
205
  def ==(o)
206
206
  return true if self.equal?(o)
207
207
  self.class == o.class &&
208
+ name == o.name &&
208
209
  manifest_signing_service == o.manifest_signing_service &&
209
- retain_checkpoints == o.retain_checkpoints &&
210
- retain_repo_versions == o.retain_repo_versions &&
211
- description == o.description &&
212
210
  pulp_labels == o.pulp_labels &&
213
- name == o.name
211
+ description == o.description &&
212
+ retain_repo_versions == o.retain_repo_versions &&
213
+ retain_checkpoints == o.retain_checkpoints
214
214
  end
215
215
 
216
216
  # @see the `==` method
@@ -222,7 +222,7 @@ module PulpContainerClient
222
222
  # Calculates hash code according to all attributes.
223
223
  # @return [Integer] Hash code
224
224
  def hash
225
- [manifest_signing_service, retain_checkpoints, retain_repo_versions, description, pulp_labels, name].hash
225
+ [name, manifest_signing_service, pulp_labels, description, retain_repo_versions, retain_checkpoints].hash
226
226
  end
227
227
 
228
228
  # Builds the object from hash