pulpcore_client 3.72.0 → 3.72.2

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 (77) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/ArtifactDistributionResponse.md +14 -14
  4. data/docs/FilesystemExportResponse.md +1 -1
  5. data/docs/GenericRemoteResponse.md +1 -1
  6. data/docs/GroupRoleResponse.md +1 -1
  7. data/docs/NestedOpenPGPPublicSubkeyResponse.md +1 -1
  8. data/docs/NestedOpenPGPUserAttributeResponse.md +1 -1
  9. data/docs/NestedOpenPGPUserIDResponse.md +1 -1
  10. data/docs/OpenPGPPublicKeyResponse.md +3 -3
  11. data/docs/OpenPGPPublicSubkeyResponse.md +1 -1
  12. data/docs/OpenPGPUserAttributeResponse.md +1 -1
  13. data/docs/OpenPGPUserIDResponse.md +1 -1
  14. data/docs/PulpExportResponse.md +1 -1
  15. data/docs/Purge.md +1 -1
  16. data/docs/RBACContentGuardResponse.md +2 -2
  17. data/docs/TaskGroupResponse.md +2 -2
  18. data/docs/TaskResponse.md +4 -4
  19. data/docs/UploadDetailResponse.md +1 -1
  20. data/docs/UpstreamPulpResponse.md +1 -1
  21. data/docs/UserResponse.md +2 -2
  22. data/docs/UserRoleResponse.md +1 -1
  23. data/lib/pulpcore_client/models/artifact_distribution_response.rb +68 -68
  24. data/lib/pulpcore_client/models/generic_remote_response.rb +15 -0
  25. data/lib/pulpcore_client/models/nested_open_pgp_signature.rb +9 -0
  26. data/lib/pulpcore_client/models/nested_open_pgp_signature_response.rb +15 -0
  27. data/lib/pulpcore_client/models/open_pgp_keyring.rb +15 -0
  28. data/lib/pulpcore_client/models/open_pgp_keyring_response.rb +15 -0
  29. data/lib/pulpcore_client/models/open_pgp_signature_response.rb +15 -0
  30. data/lib/pulpcore_client/models/paginated_access_policy_response_list.rb +2 -0
  31. data/lib/pulpcore_client/models/paginated_artifact_distribution_response_list.rb +2 -0
  32. data/lib/pulpcore_client/models/paginated_artifact_response_list.rb +2 -0
  33. data/lib/pulpcore_client/models/paginated_composite_content_guard_response_list.rb +2 -0
  34. data/lib/pulpcore_client/models/paginated_content_guard_response_list.rb +2 -0
  35. data/lib/pulpcore_client/models/paginated_content_redirect_content_guard_response_list.rb +2 -0
  36. data/lib/pulpcore_client/models/paginated_distribution_response_list.rb +2 -0
  37. data/lib/pulpcore_client/models/paginated_domain_response_list.rb +2 -0
  38. data/lib/pulpcore_client/models/paginated_filesystem_export_response_list.rb +2 -0
  39. data/lib/pulpcore_client/models/paginated_filesystem_exporter_response_list.rb +2 -0
  40. data/lib/pulpcore_client/models/paginated_generic_remote_response_list.rb +2 -0
  41. data/lib/pulpcore_client/models/paginated_group_response_list.rb +2 -0
  42. data/lib/pulpcore_client/models/paginated_group_role_response_list.rb +2 -0
  43. data/lib/pulpcore_client/models/paginated_group_user_response_list.rb +2 -0
  44. data/lib/pulpcore_client/models/paginated_header_content_guard_response_list.rb +2 -0
  45. data/lib/pulpcore_client/models/paginated_import_response_list.rb +2 -0
  46. data/lib/pulpcore_client/models/paginated_multiple_artifact_content_response_list.rb +2 -0
  47. data/lib/pulpcore_client/models/paginated_open_pgp_distribution_response_list.rb +2 -0
  48. data/lib/pulpcore_client/models/paginated_open_pgp_keyring_response_list.rb +2 -0
  49. data/lib/pulpcore_client/models/paginated_open_pgp_public_key_response_list.rb +2 -0
  50. data/lib/pulpcore_client/models/paginated_open_pgp_public_subkey_response_list.rb +2 -0
  51. data/lib/pulpcore_client/models/paginated_open_pgp_signature_response_list.rb +2 -0
  52. data/lib/pulpcore_client/models/paginated_open_pgp_user_attribute_response_list.rb +2 -0
  53. data/lib/pulpcore_client/models/paginated_open_pgp_user_id_response_list.rb +2 -0
  54. data/lib/pulpcore_client/models/paginated_publication_response_list.rb +2 -0
  55. data/lib/pulpcore_client/models/paginated_pulp_export_response_list.rb +2 -0
  56. data/lib/pulpcore_client/models/paginated_pulp_exporter_response_list.rb +2 -0
  57. data/lib/pulpcore_client/models/paginated_pulp_importer_response_list.rb +2 -0
  58. data/lib/pulpcore_client/models/paginated_rbac_content_guard_response_list.rb +2 -0
  59. data/lib/pulpcore_client/models/paginated_repository_response_list.rb +2 -0
  60. data/lib/pulpcore_client/models/paginated_repository_version_response_list.rb +2 -0
  61. data/lib/pulpcore_client/models/paginated_role_response_list.rb +2 -0
  62. data/lib/pulpcore_client/models/paginated_signing_service_response_list.rb +2 -0
  63. data/lib/pulpcore_client/models/paginated_task_group_response_list.rb +2 -0
  64. data/lib/pulpcore_client/models/paginated_task_response_list.rb +2 -0
  65. data/lib/pulpcore_client/models/paginated_task_schedule_response_list.rb +2 -0
  66. data/lib/pulpcore_client/models/paginated_upload_response_list.rb +2 -0
  67. data/lib/pulpcore_client/models/paginated_upstream_pulp_response_list.rb +2 -0
  68. data/lib/pulpcore_client/models/paginated_user_response_list.rb +2 -0
  69. data/lib/pulpcore_client/models/paginated_user_role_response_list.rb +2 -0
  70. data/lib/pulpcore_client/models/paginated_worker_response_list.rb +2 -0
  71. data/lib/pulpcore_client/models/patched_open_pgp_keyring.rb +15 -0
  72. data/lib/pulpcore_client/models/purge.rb +0 -2
  73. data/lib/pulpcore_client/models/repository_response.rb +15 -0
  74. data/lib/pulpcore_client/models/storage_response.rb +45 -0
  75. data/lib/pulpcore_client/version.rb +1 -1
  76. data/spec/models/artifact_distribution_response_spec.rb +11 -11
  77. metadata +187 -187
@@ -124,6 +124,10 @@ module PulpcoreClient
124
124
  def list_invalid_properties
125
125
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
126
126
  invalid_properties = Array.new
127
+ if !@issuer.nil? && @issuer.to_s.length > 16
128
+ invalid_properties.push('invalid value for "issuer", the character length must be smaller than or equal to 16.')
129
+ end
130
+
127
131
  if @created.nil?
128
132
  invalid_properties.push('invalid value for "created", created cannot be nil.')
129
133
  end
@@ -139,11 +143,22 @@ module PulpcoreClient
139
143
  # @return true if the model is valid
140
144
  def valid?
141
145
  warn '[DEPRECATED] the `valid?` method is obsolete'
146
+ return false if !@issuer.nil? && @issuer.to_s.length > 16
142
147
  return false if @created.nil?
143
148
  return false if @expired.nil?
144
149
  true
145
150
  end
146
151
 
152
+ # Custom attribute writer method with validation
153
+ # @param [Object] issuer Value to be assigned
154
+ def issuer=(issuer)
155
+ if !issuer.nil? && issuer.to_s.length > 16
156
+ fail ArgumentError, 'invalid value for "issuer", the character length must be smaller than or equal to 16.'
157
+ end
158
+
159
+ @issuer = issuer
160
+ end
161
+
147
162
  # Checks equality by comparing each attribute.
148
163
  # @param [Object] Object to be compared
149
164
  def ==(o)
@@ -123,6 +123,10 @@ module PulpcoreClient
123
123
  invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
124
124
  end
125
125
 
126
+ if !@retain_repo_versions.nil? && @retain_repo_versions < 1
127
+ invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
128
+ end
129
+
126
130
  invalid_properties
127
131
  end
128
132
 
@@ -133,6 +137,7 @@ module PulpcoreClient
133
137
  return false if @name.nil?
134
138
  return false if @name.to_s.length < 1
135
139
  return false if !@description.nil? && @description.to_s.length < 1
140
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
136
141
  true
137
142
  end
138
143
 
@@ -160,6 +165,16 @@ module PulpcoreClient
160
165
  @description = description
161
166
  end
162
167
 
168
+ # Custom attribute writer method with validation
169
+ # @param [Object] retain_repo_versions Value to be assigned
170
+ def retain_repo_versions=(retain_repo_versions)
171
+ if !retain_repo_versions.nil? && retain_repo_versions < 1
172
+ fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
173
+ end
174
+
175
+ @retain_repo_versions = retain_repo_versions
176
+ end
177
+
163
178
  # Checks equality by comparing each attribute.
164
179
  # @param [Object] Object to be compared
165
180
  def ==(o)
@@ -166,6 +166,10 @@ module PulpcoreClient
166
166
  invalid_properties.push('invalid value for "name", name cannot be nil.')
167
167
  end
168
168
 
169
+ if !@retain_repo_versions.nil? && @retain_repo_versions < 1
170
+ invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
171
+ end
172
+
169
173
  invalid_properties
170
174
  end
171
175
 
@@ -174,9 +178,20 @@ module PulpcoreClient
174
178
  def valid?
175
179
  warn '[DEPRECATED] the `valid?` method is obsolete'
176
180
  return false if @name.nil?
181
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
177
182
  true
178
183
  end
179
184
 
185
+ # Custom attribute writer method with validation
186
+ # @param [Object] retain_repo_versions Value to be assigned
187
+ def retain_repo_versions=(retain_repo_versions)
188
+ if !retain_repo_versions.nil? && retain_repo_versions < 1
189
+ fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
190
+ end
191
+
192
+ @retain_repo_versions = retain_repo_versions
193
+ end
194
+
180
195
  # Checks equality by comparing each attribute.
181
196
  # @param [Object] Object to be compared
182
197
  def ==(o)
@@ -167,6 +167,10 @@ module PulpcoreClient
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 !@issuer.nil? && @issuer.to_s.length > 16
171
+ invalid_properties.push('invalid value for "issuer", the character length must be smaller than or equal to 16.')
172
+ end
173
+
170
174
  if @created.nil?
171
175
  invalid_properties.push('invalid value for "created", created cannot be nil.')
172
176
  end
@@ -182,11 +186,22 @@ module PulpcoreClient
182
186
  # @return true if the model is valid
183
187
  def valid?
184
188
  warn '[DEPRECATED] the `valid?` method is obsolete'
189
+ return false if !@issuer.nil? && @issuer.to_s.length > 16
185
190
  return false if @created.nil?
186
191
  return false if @expired.nil?
187
192
  true
188
193
  end
189
194
 
195
+ # Custom attribute writer method with validation
196
+ # @param [Object] issuer Value to be assigned
197
+ def issuer=(issuer)
198
+ if !issuer.nil? && issuer.to_s.length > 16
199
+ fail ArgumentError, 'invalid value for "issuer", the character length must be smaller than or equal to 16.'
200
+ end
201
+
202
+ @issuer = issuer
203
+ end
204
+
190
205
  # Checks equality by comparing each attribute.
191
206
  # @param [Object] Object to be compared
192
207
  def ==(o)
@@ -51,6 +51,8 @@ module PulpcoreClient
51
51
  # List of attributes with nullable: true
52
52
  def self.openapi_nullable
53
53
  Set.new([
54
+ :'_next',
55
+ :'previous',
54
56
  ])
55
57
  end
56
58
 
@@ -51,6 +51,8 @@ module PulpcoreClient
51
51
  # List of attributes with nullable: true
52
52
  def self.openapi_nullable
53
53
  Set.new([
54
+ :'_next',
55
+ :'previous',
54
56
  ])
55
57
  end
56
58
 
@@ -51,6 +51,8 @@ module PulpcoreClient
51
51
  # List of attributes with nullable: true
52
52
  def self.openapi_nullable
53
53
  Set.new([
54
+ :'_next',
55
+ :'previous',
54
56
  ])
55
57
  end
56
58
 
@@ -51,6 +51,8 @@ module PulpcoreClient
51
51
  # List of attributes with nullable: true
52
52
  def self.openapi_nullable
53
53
  Set.new([
54
+ :'_next',
55
+ :'previous',
54
56
  ])
55
57
  end
56
58
 
@@ -51,6 +51,8 @@ module PulpcoreClient
51
51
  # List of attributes with nullable: true
52
52
  def self.openapi_nullable
53
53
  Set.new([
54
+ :'_next',
55
+ :'previous',
54
56
  ])
55
57
  end
56
58
 
@@ -51,6 +51,8 @@ module PulpcoreClient
51
51
  # List of attributes with nullable: true
52
52
  def self.openapi_nullable
53
53
  Set.new([
54
+ :'_next',
55
+ :'previous',
54
56
  ])
55
57
  end
56
58
 
@@ -51,6 +51,8 @@ module PulpcoreClient
51
51
  # List of attributes with nullable: true
52
52
  def self.openapi_nullable
53
53
  Set.new([
54
+ :'_next',
55
+ :'previous',
54
56
  ])
55
57
  end
56
58
 
@@ -51,6 +51,8 @@ module PulpcoreClient
51
51
  # List of attributes with nullable: true
52
52
  def self.openapi_nullable
53
53
  Set.new([
54
+ :'_next',
55
+ :'previous',
54
56
  ])
55
57
  end
56
58
 
@@ -51,6 +51,8 @@ module PulpcoreClient
51
51
  # List of attributes with nullable: true
52
52
  def self.openapi_nullable
53
53
  Set.new([
54
+ :'_next',
55
+ :'previous',
54
56
  ])
55
57
  end
56
58
 
@@ -51,6 +51,8 @@ module PulpcoreClient
51
51
  # List of attributes with nullable: true
52
52
  def self.openapi_nullable
53
53
  Set.new([
54
+ :'_next',
55
+ :'previous',
54
56
  ])
55
57
  end
56
58
 
@@ -51,6 +51,8 @@ module PulpcoreClient
51
51
  # List of attributes with nullable: true
52
52
  def self.openapi_nullable
53
53
  Set.new([
54
+ :'_next',
55
+ :'previous',
54
56
  ])
55
57
  end
56
58
 
@@ -51,6 +51,8 @@ module PulpcoreClient
51
51
  # List of attributes with nullable: true
52
52
  def self.openapi_nullable
53
53
  Set.new([
54
+ :'_next',
55
+ :'previous',
54
56
  ])
55
57
  end
56
58
 
@@ -51,6 +51,8 @@ module PulpcoreClient
51
51
  # List of attributes with nullable: true
52
52
  def self.openapi_nullable
53
53
  Set.new([
54
+ :'_next',
55
+ :'previous',
54
56
  ])
55
57
  end
56
58
 
@@ -51,6 +51,8 @@ module PulpcoreClient
51
51
  # List of attributes with nullable: true
52
52
  def self.openapi_nullable
53
53
  Set.new([
54
+ :'_next',
55
+ :'previous',
54
56
  ])
55
57
  end
56
58
 
@@ -51,6 +51,8 @@ module PulpcoreClient
51
51
  # List of attributes with nullable: true
52
52
  def self.openapi_nullable
53
53
  Set.new([
54
+ :'_next',
55
+ :'previous',
54
56
  ])
55
57
  end
56
58
 
@@ -51,6 +51,8 @@ module PulpcoreClient
51
51
  # List of attributes with nullable: true
52
52
  def self.openapi_nullable
53
53
  Set.new([
54
+ :'_next',
55
+ :'previous',
54
56
  ])
55
57
  end
56
58
 
@@ -51,6 +51,8 @@ module PulpcoreClient
51
51
  # List of attributes with nullable: true
52
52
  def self.openapi_nullable
53
53
  Set.new([
54
+ :'_next',
55
+ :'previous',
54
56
  ])
55
57
  end
56
58
 
@@ -51,6 +51,8 @@ module PulpcoreClient
51
51
  # List of attributes with nullable: true
52
52
  def self.openapi_nullable
53
53
  Set.new([
54
+ :'_next',
55
+ :'previous',
54
56
  ])
55
57
  end
56
58
 
@@ -51,6 +51,8 @@ module PulpcoreClient
51
51
  # List of attributes with nullable: true
52
52
  def self.openapi_nullable
53
53
  Set.new([
54
+ :'_next',
55
+ :'previous',
54
56
  ])
55
57
  end
56
58
 
@@ -51,6 +51,8 @@ module PulpcoreClient
51
51
  # List of attributes with nullable: true
52
52
  def self.openapi_nullable
53
53
  Set.new([
54
+ :'_next',
55
+ :'previous',
54
56
  ])
55
57
  end
56
58
 
@@ -51,6 +51,8 @@ module PulpcoreClient
51
51
  # List of attributes with nullable: true
52
52
  def self.openapi_nullable
53
53
  Set.new([
54
+ :'_next',
55
+ :'previous',
54
56
  ])
55
57
  end
56
58
 
@@ -51,6 +51,8 @@ module PulpcoreClient
51
51
  # List of attributes with nullable: true
52
52
  def self.openapi_nullable
53
53
  Set.new([
54
+ :'_next',
55
+ :'previous',
54
56
  ])
55
57
  end
56
58
 
@@ -51,6 +51,8 @@ module PulpcoreClient
51
51
  # List of attributes with nullable: true
52
52
  def self.openapi_nullable
53
53
  Set.new([
54
+ :'_next',
55
+ :'previous',
54
56
  ])
55
57
  end
56
58
 
@@ -51,6 +51,8 @@ module PulpcoreClient
51
51
  # List of attributes with nullable: true
52
52
  def self.openapi_nullable
53
53
  Set.new([
54
+ :'_next',
55
+ :'previous',
54
56
  ])
55
57
  end
56
58
 
@@ -51,6 +51,8 @@ module PulpcoreClient
51
51
  # List of attributes with nullable: true
52
52
  def self.openapi_nullable
53
53
  Set.new([
54
+ :'_next',
55
+ :'previous',
54
56
  ])
55
57
  end
56
58
 
@@ -51,6 +51,8 @@ module PulpcoreClient
51
51
  # List of attributes with nullable: true
52
52
  def self.openapi_nullable
53
53
  Set.new([
54
+ :'_next',
55
+ :'previous',
54
56
  ])
55
57
  end
56
58
 
@@ -51,6 +51,8 @@ module PulpcoreClient
51
51
  # List of attributes with nullable: true
52
52
  def self.openapi_nullable
53
53
  Set.new([
54
+ :'_next',
55
+ :'previous',
54
56
  ])
55
57
  end
56
58
 
@@ -51,6 +51,8 @@ module PulpcoreClient
51
51
  # List of attributes with nullable: true
52
52
  def self.openapi_nullable
53
53
  Set.new([
54
+ :'_next',
55
+ :'previous',
54
56
  ])
55
57
  end
56
58
 
@@ -51,6 +51,8 @@ module PulpcoreClient
51
51
  # List of attributes with nullable: true
52
52
  def self.openapi_nullable
53
53
  Set.new([
54
+ :'_next',
55
+ :'previous',
54
56
  ])
55
57
  end
56
58
 
@@ -51,6 +51,8 @@ module PulpcoreClient
51
51
  # List of attributes with nullable: true
52
52
  def self.openapi_nullable
53
53
  Set.new([
54
+ :'_next',
55
+ :'previous',
54
56
  ])
55
57
  end
56
58
 
@@ -51,6 +51,8 @@ module PulpcoreClient
51
51
  # List of attributes with nullable: true
52
52
  def self.openapi_nullable
53
53
  Set.new([
54
+ :'_next',
55
+ :'previous',
54
56
  ])
55
57
  end
56
58
 
@@ -51,6 +51,8 @@ module PulpcoreClient
51
51
  # List of attributes with nullable: true
52
52
  def self.openapi_nullable
53
53
  Set.new([
54
+ :'_next',
55
+ :'previous',
54
56
  ])
55
57
  end
56
58
 
@@ -51,6 +51,8 @@ module PulpcoreClient
51
51
  # List of attributes with nullable: true
52
52
  def self.openapi_nullable
53
53
  Set.new([
54
+ :'_next',
55
+ :'previous',
54
56
  ])
55
57
  end
56
58
 
@@ -51,6 +51,8 @@ module PulpcoreClient
51
51
  # List of attributes with nullable: true
52
52
  def self.openapi_nullable
53
53
  Set.new([
54
+ :'_next',
55
+ :'previous',
54
56
  ])
55
57
  end
56
58
 
@@ -51,6 +51,8 @@ module PulpcoreClient
51
51
  # List of attributes with nullable: true
52
52
  def self.openapi_nullable
53
53
  Set.new([
54
+ :'_next',
55
+ :'previous',
54
56
  ])
55
57
  end
56
58
 
@@ -51,6 +51,8 @@ module PulpcoreClient
51
51
  # List of attributes with nullable: true
52
52
  def self.openapi_nullable
53
53
  Set.new([
54
+ :'_next',
55
+ :'previous',
54
56
  ])
55
57
  end
56
58
 
@@ -51,6 +51,8 @@ module PulpcoreClient
51
51
  # List of attributes with nullable: true
52
52
  def self.openapi_nullable
53
53
  Set.new([
54
+ :'_next',
55
+ :'previous',
54
56
  ])
55
57
  end
56
58
 
@@ -51,6 +51,8 @@ module PulpcoreClient
51
51
  # List of attributes with nullable: true
52
52
  def self.openapi_nullable
53
53
  Set.new([
54
+ :'_next',
55
+ :'previous',
54
56
  ])
55
57
  end
56
58
 
@@ -51,6 +51,8 @@ module PulpcoreClient
51
51
  # List of attributes with nullable: true
52
52
  def self.openapi_nullable
53
53
  Set.new([
54
+ :'_next',
55
+ :'previous',
54
56
  ])
55
57
  end
56
58
 
@@ -51,6 +51,8 @@ module PulpcoreClient
51
51
  # List of attributes with nullable: true
52
52
  def self.openapi_nullable
53
53
  Set.new([
54
+ :'_next',
55
+ :'previous',
54
56
  ])
55
57
  end
56
58
 
@@ -51,6 +51,8 @@ module PulpcoreClient
51
51
  # List of attributes with nullable: true
52
52
  def self.openapi_nullable
53
53
  Set.new([
54
+ :'_next',
55
+ :'previous',
54
56
  ])
55
57
  end
56
58
 
@@ -117,6 +117,10 @@ module PulpcoreClient
117
117
  invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
118
118
  end
119
119
 
120
+ if !@retain_repo_versions.nil? && @retain_repo_versions < 1
121
+ invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
122
+ end
123
+
120
124
  invalid_properties
121
125
  end
122
126
 
@@ -126,6 +130,7 @@ module PulpcoreClient
126
130
  warn '[DEPRECATED] the `valid?` method is obsolete'
127
131
  return false if !@name.nil? && @name.to_s.length < 1
128
132
  return false if !@description.nil? && @description.to_s.length < 1
133
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
129
134
  true
130
135
  end
131
136
 
@@ -153,6 +158,16 @@ module PulpcoreClient
153
158
  @description = description
154
159
  end
155
160
 
161
+ # Custom attribute writer method with validation
162
+ # @param [Object] retain_repo_versions Value to be assigned
163
+ def retain_repo_versions=(retain_repo_versions)
164
+ if !retain_repo_versions.nil? && retain_repo_versions < 1
165
+ fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
166
+ end
167
+
168
+ @retain_repo_versions = retain_repo_versions
169
+ end
170
+
156
171
  # Checks equality by comparing each attribute.
157
172
  # @param [Object] Object to be compared
158
173
  def ==(o)
@@ -65,8 +65,6 @@ module PulpcoreClient
65
65
 
66
66
  if attributes.key?(:'finished_before')
67
67
  self.finished_before = attributes[:'finished_before']
68
- else
69
- self.finished_before = '2025-01-26'
70
68
  end
71
69
 
72
70
  if attributes.key?(:'states')
@@ -166,6 +166,10 @@ module PulpcoreClient
166
166
  invalid_properties.push('invalid value for "name", name cannot be nil.')
167
167
  end
168
168
 
169
+ if !@retain_repo_versions.nil? && @retain_repo_versions < 1
170
+ invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
171
+ end
172
+
169
173
  invalid_properties
170
174
  end
171
175
 
@@ -174,9 +178,20 @@ module PulpcoreClient
174
178
  def valid?
175
179
  warn '[DEPRECATED] the `valid?` method is obsolete'
176
180
  return false if @name.nil?
181
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
177
182
  true
178
183
  end
179
184
 
185
+ # Custom attribute writer method with validation
186
+ # @param [Object] retain_repo_versions Value to be assigned
187
+ def retain_repo_versions=(retain_repo_versions)
188
+ if !retain_repo_versions.nil? && retain_repo_versions < 1
189
+ fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
190
+ end
191
+
192
+ @retain_repo_versions = retain_repo_versions
193
+ end
194
+
180
195
  # Checks equality by comparing each attribute.
181
196
  # @param [Object] Object to be compared
182
197
  def ==(o)