pulpcore_client 3.105.27 → 3.106.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 (51) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +8 -4
  3. data/docs/ArtifactDistributionResponse.md +19 -15
  4. data/docs/DataRepair7272.md +18 -0
  5. data/docs/DataRepair7465.md +18 -0
  6. data/docs/Datarepair7272Api.md +82 -0
  7. data/docs/Datarepair7465Api.md +82 -0
  8. data/docs/DistributionResponse.md +5 -1
  9. data/docs/DistributionsOpenpgpApi.md +2 -2
  10. data/docs/OpenPGPDistributionResponse.md +2 -0
  11. data/docs/OpenPGPKeyring.md +2 -0
  12. data/docs/OpenPGPKeyringResponse.md +2 -0
  13. data/docs/PatchedOpenPGPKeyring.md +2 -0
  14. data/docs/Purge.md +1 -1
  15. data/docs/RepositoriesApi.md +18 -2
  16. data/docs/RepositoriesOpenpgpKeyringApi.md +18 -2
  17. data/docs/RepositoryResponse.md +2 -0
  18. data/lib/pulpcore_client/api/datarepair7272_api.rb +93 -0
  19. data/lib/pulpcore_client/api/datarepair7465_api.rb +93 -0
  20. data/lib/pulpcore_client/api/distributions_openpgp_api.rb +4 -4
  21. data/lib/pulpcore_client/api/repositories_api.rb +27 -3
  22. data/lib/pulpcore_client/api/repositories_openpgp_keyring_api.rb +27 -3
  23. data/lib/pulpcore_client/models/artifact_distribution_response.rb +87 -66
  24. data/lib/pulpcore_client/models/data_repair7272.rb +217 -0
  25. data/lib/pulpcore_client/models/data_repair7465.rb +217 -0
  26. data/lib/pulpcore_client/models/distribution_response.rb +27 -6
  27. data/lib/pulpcore_client/models/open_pgp_distribution.rb +1 -1
  28. data/lib/pulpcore_client/models/open_pgp_distribution_response.rb +12 -2
  29. data/lib/pulpcore_client/models/open_pgp_keyring.rb +27 -1
  30. data/lib/pulpcore_client/models/open_pgp_keyring_response.rb +27 -1
  31. data/lib/pulpcore_client/models/patched_open_pgp_distribution.rb +1 -1
  32. data/lib/pulpcore_client/models/patched_open_pgp_keyring.rb +27 -1
  33. data/lib/pulpcore_client/models/purge.rb +1 -1
  34. data/lib/pulpcore_client/models/repository_response.rb +27 -1
  35. data/lib/pulpcore_client/version.rb +1 -1
  36. data/lib/pulpcore_client.rb +4 -0
  37. data/spec/api/datarepair7272_api_spec.rb +48 -0
  38. data/spec/api/datarepair7465_api_spec.rb +48 -0
  39. data/spec/api/distributions_openpgp_api_spec.rb +2 -2
  40. data/spec/api/repositories_api_spec.rb +9 -1
  41. data/spec/api/repositories_openpgp_keyring_api_spec.rb +9 -1
  42. data/spec/models/artifact_distribution_response_spec.rb +21 -9
  43. data/spec/models/data_repair7272_spec.rb +36 -0
  44. data/spec/models/data_repair7465_spec.rb +36 -0
  45. data/spec/models/distribution_response_spec.rb +12 -0
  46. data/spec/models/open_pgp_distribution_response_spec.rb +6 -0
  47. data/spec/models/open_pgp_keyring_response_spec.rb +6 -0
  48. data/spec/models/open_pgp_keyring_spec.rb +6 -0
  49. data/spec/models/patched_open_pgp_keyring_spec.rb +6 -0
  50. data/spec/models/repository_response_spec.rb +6 -0
  51. metadata +215 -196
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module PulpcoreClient
17
- # The Serializer for the Distribution model. The serializer deliberately omits the `publication` and `repository_version` field due to plugins typically requiring one or the other but not both. To include the ``publication`` field, it is recommended plugins define the field:: publication = DetailRelatedField( required=False, help_text=_(\"Publication to be served\"), view_name_pattern=r\"publications(-.*/.*)?-detail\", queryset=models.Publication.objects.exclude(complete=False), allow_null=True, ) To include the ``repository_version`` field, it is recommended plugins define the field:: repository_version = RepositoryVersionRelatedField( required=False, help_text=_(\"RepositoryVersion to be served\"), allow_null=True ) Additionally, the serializer omits the ``remote`` field, which is used for pull-through caching feature and only by plugins which use publications. Plugins implementing a pull-through caching should define the field in their derived serializer class like this:: remote = DetailRelatedField( required=False, help_text=_('Remote that can be used to fetch content when using pull-through caching.'), queryset=models.Remote.objects.all(), allow_null=True )
17
+ # The Serializer for the Distribution model. The serializer deliberately omits the `publication` field due to not all plugins using publications. To include the `publication` field, plugins should define it:: publication = DetailRelatedField( required=False, help_text=_(\"Publication to be served\"), view_name_pattern=r\"publications(-.*/.*)?-detail\", queryset=models.Publication.objects.exclude(complete=False), allow_null=True, ) The serializer also omits the `remote` field, which is used for pull-through caching and only by plugins which use publications. Plugins implementing pull-through caching should define the field in their derived serializer class like this:: remote = DetailRelatedField( required=False, help_text=_('Remote that can be used to fetch content when using pull-through caching.'), queryset=models.Remote.objects.all(), allow_null=True )
18
18
  class DistributionResponse
19
19
  attr_accessor :pulp_href
20
20
 
@@ -36,6 +36,9 @@ module PulpcoreClient
36
36
  # An optional content-guard.
37
37
  attr_accessor :content_guard
38
38
 
39
+ # The Pulp Resource Name (PRN) of the associated optional content guard.
40
+ attr_accessor :content_guard_prn
41
+
39
42
  # Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
40
43
  attr_accessor :no_content_change_since
41
44
 
@@ -50,6 +53,9 @@ module PulpcoreClient
50
53
  # The latest RepositoryVersion for this Repository will be served.
51
54
  attr_accessor :repository
52
55
 
56
+ # RepositoryVersion to be served
57
+ attr_accessor :repository_version
58
+
53
59
  # Attribute mapping from ruby-style variable name to JSON key.
54
60
  def self.attribute_map
55
61
  {
@@ -60,11 +66,13 @@ module PulpcoreClient
60
66
  :'base_path' => :'base_path',
61
67
  :'base_url' => :'base_url',
62
68
  :'content_guard' => :'content_guard',
69
+ :'content_guard_prn' => :'content_guard_prn',
63
70
  :'no_content_change_since' => :'no_content_change_since',
64
71
  :'hidden' => :'hidden',
65
72
  :'pulp_labels' => :'pulp_labels',
66
73
  :'name' => :'name',
67
- :'repository' => :'repository'
74
+ :'repository' => :'repository',
75
+ :'repository_version' => :'repository_version'
68
76
  }
69
77
  end
70
78
 
@@ -83,11 +91,13 @@ module PulpcoreClient
83
91
  :'base_path' => :'String',
84
92
  :'base_url' => :'String',
85
93
  :'content_guard' => :'String',
94
+ :'content_guard_prn' => :'String',
86
95
  :'no_content_change_since' => :'String',
87
96
  :'hidden' => :'Boolean',
88
97
  :'pulp_labels' => :'Hash<String, String>',
89
98
  :'name' => :'String',
90
- :'repository' => :'String'
99
+ :'repository' => :'String',
100
+ :'repository_version' => :'String'
91
101
  }
92
102
  end
93
103
 
@@ -95,7 +105,8 @@ module PulpcoreClient
95
105
  def self.openapi_nullable
96
106
  Set.new([
97
107
  :'content_guard',
98
- :'repository'
108
+ :'repository',
109
+ :'repository_version'
99
110
  ])
100
111
  end
101
112
 
@@ -144,6 +155,10 @@ module PulpcoreClient
144
155
  self.content_guard = attributes[:'content_guard']
145
156
  end
146
157
 
158
+ if attributes.key?(:'content_guard_prn')
159
+ self.content_guard_prn = attributes[:'content_guard_prn']
160
+ end
161
+
147
162
  if attributes.key?(:'no_content_change_since')
148
163
  self.no_content_change_since = attributes[:'no_content_change_since']
149
164
  end
@@ -169,6 +184,10 @@ module PulpcoreClient
169
184
  if attributes.key?(:'repository')
170
185
  self.repository = attributes[:'repository']
171
186
  end
187
+
188
+ if attributes.key?(:'repository_version')
189
+ self.repository_version = attributes[:'repository_version']
190
+ end
172
191
  end
173
192
 
174
193
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -208,11 +227,13 @@ module PulpcoreClient
208
227
  base_path == o.base_path &&
209
228
  base_url == o.base_url &&
210
229
  content_guard == o.content_guard &&
230
+ content_guard_prn == o.content_guard_prn &&
211
231
  no_content_change_since == o.no_content_change_since &&
212
232
  hidden == o.hidden &&
213
233
  pulp_labels == o.pulp_labels &&
214
234
  name == o.name &&
215
- repository == o.repository
235
+ repository == o.repository &&
236
+ repository_version == o.repository_version
216
237
  end
217
238
 
218
239
  # @see the `==` method
@@ -224,7 +245,7 @@ module PulpcoreClient
224
245
  # Calculates hash code according to all attributes.
225
246
  # @return [Integer] Hash code
226
247
  def hash
227
- [pulp_href, prn, pulp_created, pulp_last_updated, base_path, base_url, content_guard, no_content_change_since, hidden, pulp_labels, name, repository].hash
248
+ [pulp_href, prn, pulp_created, pulp_last_updated, base_path, base_url, content_guard, content_guard_prn, no_content_change_since, hidden, pulp_labels, name, repository, repository_version].hash
228
249
  end
229
250
 
230
251
  # Builds the object from hash
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module PulpcoreClient
17
- # The Serializer for the Distribution model. The serializer deliberately omits the `publication` and `repository_version` field due to plugins typically requiring one or the other but not both. To include the ``publication`` field, it is recommended plugins define the field:: publication = DetailRelatedField( required=False, help_text=_(\"Publication to be served\"), view_name_pattern=r\"publications(-.*/.*)?-detail\", queryset=models.Publication.objects.exclude(complete=False), allow_null=True, ) To include the ``repository_version`` field, it is recommended plugins define the field:: repository_version = RepositoryVersionRelatedField( required=False, help_text=_(\"RepositoryVersion to be served\"), allow_null=True ) Additionally, the serializer omits the ``remote`` field, which is used for pull-through caching feature and only by plugins which use publications. Plugins implementing a pull-through caching should define the field in their derived serializer class like this:: remote = DetailRelatedField( required=False, help_text=_('Remote that can be used to fetch content when using pull-through caching.'), queryset=models.Remote.objects.all(), allow_null=True )
17
+ # The Serializer for the Distribution model. The serializer deliberately omits the `publication` field due to not all plugins using publications. To include the `publication` field, plugins should define it:: publication = DetailRelatedField( required=False, help_text=_(\"Publication to be served\"), view_name_pattern=r\"publications(-.*/.*)?-detail\", queryset=models.Publication.objects.exclude(complete=False), allow_null=True, ) The serializer also omits the `remote` field, which is used for pull-through caching and only by plugins which use publications. Plugins implementing pull-through caching should define the field in their derived serializer class like this:: remote = DetailRelatedField( required=False, help_text=_('Remote that can be used to fetch content when using pull-through caching.'), queryset=models.Remote.objects.all(), allow_null=True )
18
18
  class OpenPGPDistribution
19
19
  # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
20
20
  attr_accessor :base_path
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module PulpcoreClient
17
- # The Serializer for the Distribution model. The serializer deliberately omits the `publication` and `repository_version` field due to plugins typically requiring one or the other but not both. To include the ``publication`` field, it is recommended plugins define the field:: publication = DetailRelatedField( required=False, help_text=_(\"Publication to be served\"), view_name_pattern=r\"publications(-.*/.*)?-detail\", queryset=models.Publication.objects.exclude(complete=False), allow_null=True, ) To include the ``repository_version`` field, it is recommended plugins define the field:: repository_version = RepositoryVersionRelatedField( required=False, help_text=_(\"RepositoryVersion to be served\"), allow_null=True ) Additionally, the serializer omits the ``remote`` field, which is used for pull-through caching feature and only by plugins which use publications. Plugins implementing a pull-through caching should define the field in their derived serializer class like this:: remote = DetailRelatedField( required=False, help_text=_('Remote that can be used to fetch content when using pull-through caching.'), queryset=models.Remote.objects.all(), allow_null=True )
17
+ # The Serializer for the Distribution model. The serializer deliberately omits the `publication` field due to not all plugins using publications. To include the `publication` field, plugins should define it:: publication = DetailRelatedField( required=False, help_text=_(\"Publication to be served\"), view_name_pattern=r\"publications(-.*/.*)?-detail\", queryset=models.Publication.objects.exclude(complete=False), allow_null=True, ) The serializer also omits the `remote` field, which is used for pull-through caching and only by plugins which use publications. Plugins implementing pull-through caching should define the field in their derived serializer class like this:: remote = DetailRelatedField( required=False, help_text=_('Remote that can be used to fetch content when using pull-through caching.'), queryset=models.Remote.objects.all(), allow_null=True )
18
18
  class OpenPGPDistributionResponse
19
19
  attr_accessor :pulp_href
20
20
 
@@ -36,6 +36,9 @@ module PulpcoreClient
36
36
  # An optional content-guard.
37
37
  attr_accessor :content_guard
38
38
 
39
+ # The Pulp Resource Name (PRN) of the associated optional content guard.
40
+ attr_accessor :content_guard_prn
41
+
39
42
  # Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
40
43
  attr_accessor :no_content_change_since
41
44
 
@@ -63,6 +66,7 @@ module PulpcoreClient
63
66
  :'base_path' => :'base_path',
64
67
  :'base_url' => :'base_url',
65
68
  :'content_guard' => :'content_guard',
69
+ :'content_guard_prn' => :'content_guard_prn',
66
70
  :'no_content_change_since' => :'no_content_change_since',
67
71
  :'hidden' => :'hidden',
68
72
  :'pulp_labels' => :'pulp_labels',
@@ -87,6 +91,7 @@ module PulpcoreClient
87
91
  :'base_path' => :'String',
88
92
  :'base_url' => :'String',
89
93
  :'content_guard' => :'String',
94
+ :'content_guard_prn' => :'String',
90
95
  :'no_content_change_since' => :'String',
91
96
  :'hidden' => :'Boolean',
92
97
  :'pulp_labels' => :'Hash<String, String>',
@@ -150,6 +155,10 @@ module PulpcoreClient
150
155
  self.content_guard = attributes[:'content_guard']
151
156
  end
152
157
 
158
+ if attributes.key?(:'content_guard_prn')
159
+ self.content_guard_prn = attributes[:'content_guard_prn']
160
+ end
161
+
153
162
  if attributes.key?(:'no_content_change_since')
154
163
  self.no_content_change_since = attributes[:'no_content_change_since']
155
164
  end
@@ -218,6 +227,7 @@ module PulpcoreClient
218
227
  base_path == o.base_path &&
219
228
  base_url == o.base_url &&
220
229
  content_guard == o.content_guard &&
230
+ content_guard_prn == o.content_guard_prn &&
221
231
  no_content_change_since == o.no_content_change_since &&
222
232
  hidden == o.hidden &&
223
233
  pulp_labels == o.pulp_labels &&
@@ -235,7 +245,7 @@ module PulpcoreClient
235
245
  # Calculates hash code according to all attributes.
236
246
  # @return [Integer] Hash code
237
247
  def hash
238
- [pulp_href, prn, pulp_created, pulp_last_updated, base_path, base_url, content_guard, no_content_change_since, hidden, pulp_labels, name, repository, repository_version].hash
248
+ [pulp_href, prn, pulp_created, pulp_last_updated, base_path, base_url, content_guard, content_guard_prn, no_content_change_since, hidden, pulp_labels, name, repository, repository_version].hash
239
249
  end
240
250
 
241
251
  # Builds the object from hash
@@ -27,6 +27,9 @@ module PulpcoreClient
27
27
  # Retain X versions of the repository. Default is null which retains all versions.
28
28
  attr_accessor :retain_repo_versions
29
29
 
30
+ # Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
31
+ attr_accessor :retain_checkpoints
32
+
30
33
  # An optional remote to use by default when syncing.
31
34
  attr_accessor :remote
32
35
 
@@ -37,6 +40,7 @@ module PulpcoreClient
37
40
  :'name' => :'name',
38
41
  :'description' => :'description',
39
42
  :'retain_repo_versions' => :'retain_repo_versions',
43
+ :'retain_checkpoints' => :'retain_checkpoints',
40
44
  :'remote' => :'remote'
41
45
  }
42
46
  end
@@ -53,6 +57,7 @@ module PulpcoreClient
53
57
  :'name' => :'String',
54
58
  :'description' => :'String',
55
59
  :'retain_repo_versions' => :'Integer',
60
+ :'retain_checkpoints' => :'Integer',
56
61
  :'remote' => :'String'
57
62
  }
58
63
  end
@@ -62,6 +67,7 @@ module PulpcoreClient
62
67
  Set.new([
63
68
  :'description',
64
69
  :'retain_repo_versions',
70
+ :'retain_checkpoints',
65
71
  :'remote'
66
72
  ])
67
73
  end
@@ -101,6 +107,10 @@ module PulpcoreClient
101
107
  self.retain_repo_versions = attributes[:'retain_repo_versions']
102
108
  end
103
109
 
110
+ if attributes.key?(:'retain_checkpoints')
111
+ self.retain_checkpoints = attributes[:'retain_checkpoints']
112
+ end
113
+
104
114
  if attributes.key?(:'remote')
105
115
  self.remote = attributes[:'remote']
106
116
  end
@@ -127,6 +137,10 @@ module PulpcoreClient
127
137
  invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
128
138
  end
129
139
 
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
+ end
143
+
130
144
  invalid_properties
131
145
  end
132
146
 
@@ -138,6 +152,7 @@ module PulpcoreClient
138
152
  return false if @name.to_s.length < 1
139
153
  return false if !@description.nil? && @description.to_s.length < 1
140
154
  return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
155
+ return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
141
156
  true
142
157
  end
143
158
 
@@ -175,6 +190,16 @@ module PulpcoreClient
175
190
  @retain_repo_versions = retain_repo_versions
176
191
  end
177
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
+ end
199
+
200
+ @retain_checkpoints = retain_checkpoints
201
+ end
202
+
178
203
  # Checks equality by comparing each attribute.
179
204
  # @param [Object] Object to be compared
180
205
  def ==(o)
@@ -184,6 +209,7 @@ module PulpcoreClient
184
209
  name == o.name &&
185
210
  description == o.description &&
186
211
  retain_repo_versions == o.retain_repo_versions &&
212
+ retain_checkpoints == o.retain_checkpoints &&
187
213
  remote == o.remote
188
214
  end
189
215
 
@@ -196,7 +222,7 @@ module PulpcoreClient
196
222
  # Calculates hash code according to all attributes.
197
223
  # @return [Integer] Hash code
198
224
  def hash
199
- [pulp_labels, name, description, retain_repo_versions, remote].hash
225
+ [pulp_labels, name, description, retain_repo_versions, retain_checkpoints, remote].hash
200
226
  end
201
227
 
202
228
  # Builds the object from hash
@@ -42,6 +42,9 @@ module PulpcoreClient
42
42
  # Retain X versions of the repository. Default is null which retains all versions.
43
43
  attr_accessor :retain_repo_versions
44
44
 
45
+ # Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
46
+ attr_accessor :retain_checkpoints
47
+
45
48
  # An optional remote to use by default when syncing.
46
49
  attr_accessor :remote
47
50
 
@@ -58,6 +61,7 @@ module PulpcoreClient
58
61
  :'name' => :'name',
59
62
  :'description' => :'description',
60
63
  :'retain_repo_versions' => :'retain_repo_versions',
64
+ :'retain_checkpoints' => :'retain_checkpoints',
61
65
  :'remote' => :'remote'
62
66
  }
63
67
  end
@@ -80,6 +84,7 @@ module PulpcoreClient
80
84
  :'name' => :'String',
81
85
  :'description' => :'String',
82
86
  :'retain_repo_versions' => :'Integer',
87
+ :'retain_checkpoints' => :'Integer',
83
88
  :'remote' => :'String'
84
89
  }
85
90
  end
@@ -89,6 +94,7 @@ module PulpcoreClient
89
94
  Set.new([
90
95
  :'description',
91
96
  :'retain_repo_versions',
97
+ :'retain_checkpoints',
92
98
  :'remote'
93
99
  ])
94
100
  end
@@ -152,6 +158,10 @@ module PulpcoreClient
152
158
  self.retain_repo_versions = attributes[:'retain_repo_versions']
153
159
  end
154
160
 
161
+ if attributes.key?(:'retain_checkpoints')
162
+ self.retain_checkpoints = attributes[:'retain_checkpoints']
163
+ end
164
+
155
165
  if attributes.key?(:'remote')
156
166
  self.remote = attributes[:'remote']
157
167
  end
@@ -170,6 +180,10 @@ module PulpcoreClient
170
180
  invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
171
181
  end
172
182
 
183
+ if !@retain_checkpoints.nil? && @retain_checkpoints < 1
184
+ invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
185
+ end
186
+
173
187
  invalid_properties
174
188
  end
175
189
 
@@ -179,6 +193,7 @@ module PulpcoreClient
179
193
  warn '[DEPRECATED] the `valid?` method is obsolete'
180
194
  return false if @name.nil?
181
195
  return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
196
+ return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
182
197
  true
183
198
  end
184
199
 
@@ -192,6 +207,16 @@ module PulpcoreClient
192
207
  @retain_repo_versions = retain_repo_versions
193
208
  end
194
209
 
210
+ # Custom attribute writer method with validation
211
+ # @param [Object] retain_checkpoints Value to be assigned
212
+ def retain_checkpoints=(retain_checkpoints)
213
+ if !retain_checkpoints.nil? && retain_checkpoints < 1
214
+ fail ArgumentError, 'invalid value for "retain_checkpoints", must be greater than or equal to 1.'
215
+ end
216
+
217
+ @retain_checkpoints = retain_checkpoints
218
+ end
219
+
195
220
  # Checks equality by comparing each attribute.
196
221
  # @param [Object] Object to be compared
197
222
  def ==(o)
@@ -207,6 +232,7 @@ module PulpcoreClient
207
232
  name == o.name &&
208
233
  description == o.description &&
209
234
  retain_repo_versions == o.retain_repo_versions &&
235
+ retain_checkpoints == o.retain_checkpoints &&
210
236
  remote == o.remote
211
237
  end
212
238
 
@@ -219,7 +245,7 @@ module PulpcoreClient
219
245
  # Calculates hash code according to all attributes.
220
246
  # @return [Integer] Hash code
221
247
  def hash
222
- [pulp_href, prn, pulp_created, pulp_last_updated, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, remote].hash
248
+ [pulp_href, prn, pulp_created, pulp_last_updated, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, retain_checkpoints, remote].hash
223
249
  end
224
250
 
225
251
  # Builds the object from hash
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module PulpcoreClient
17
- # The Serializer for the Distribution model. The serializer deliberately omits the `publication` and `repository_version` field due to plugins typically requiring one or the other but not both. To include the ``publication`` field, it is recommended plugins define the field:: publication = DetailRelatedField( required=False, help_text=_(\"Publication to be served\"), view_name_pattern=r\"publications(-.*/.*)?-detail\", queryset=models.Publication.objects.exclude(complete=False), allow_null=True, ) To include the ``repository_version`` field, it is recommended plugins define the field:: repository_version = RepositoryVersionRelatedField( required=False, help_text=_(\"RepositoryVersion to be served\"), allow_null=True ) Additionally, the serializer omits the ``remote`` field, which is used for pull-through caching feature and only by plugins which use publications. Plugins implementing a pull-through caching should define the field in their derived serializer class like this:: remote = DetailRelatedField( required=False, help_text=_('Remote that can be used to fetch content when using pull-through caching.'), queryset=models.Remote.objects.all(), allow_null=True )
17
+ # The Serializer for the Distribution model. The serializer deliberately omits the `publication` field due to not all plugins using publications. To include the `publication` field, plugins should define it:: publication = DetailRelatedField( required=False, help_text=_(\"Publication to be served\"), view_name_pattern=r\"publications(-.*/.*)?-detail\", queryset=models.Publication.objects.exclude(complete=False), allow_null=True, ) The serializer also omits the `remote` field, which is used for pull-through caching and only by plugins which use publications. Plugins implementing pull-through caching should define the field in their derived serializer class like this:: remote = DetailRelatedField( required=False, help_text=_('Remote that can be used to fetch content when using pull-through caching.'), queryset=models.Remote.objects.all(), allow_null=True )
18
18
  class PatchedOpenPGPDistribution
19
19
  # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
20
20
  attr_accessor :base_path
@@ -27,6 +27,9 @@ module PulpcoreClient
27
27
  # Retain X versions of the repository. Default is null which retains all versions.
28
28
  attr_accessor :retain_repo_versions
29
29
 
30
+ # Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
31
+ attr_accessor :retain_checkpoints
32
+
30
33
  # An optional remote to use by default when syncing.
31
34
  attr_accessor :remote
32
35
 
@@ -37,6 +40,7 @@ module PulpcoreClient
37
40
  :'name' => :'name',
38
41
  :'description' => :'description',
39
42
  :'retain_repo_versions' => :'retain_repo_versions',
43
+ :'retain_checkpoints' => :'retain_checkpoints',
40
44
  :'remote' => :'remote'
41
45
  }
42
46
  end
@@ -53,6 +57,7 @@ module PulpcoreClient
53
57
  :'name' => :'String',
54
58
  :'description' => :'String',
55
59
  :'retain_repo_versions' => :'Integer',
60
+ :'retain_checkpoints' => :'Integer',
56
61
  :'remote' => :'String'
57
62
  }
58
63
  end
@@ -62,6 +67,7 @@ module PulpcoreClient
62
67
  Set.new([
63
68
  :'description',
64
69
  :'retain_repo_versions',
70
+ :'retain_checkpoints',
65
71
  :'remote'
66
72
  ])
67
73
  end
@@ -99,6 +105,10 @@ module PulpcoreClient
99
105
  self.retain_repo_versions = attributes[:'retain_repo_versions']
100
106
  end
101
107
 
108
+ if attributes.key?(:'retain_checkpoints')
109
+ self.retain_checkpoints = attributes[:'retain_checkpoints']
110
+ end
111
+
102
112
  if attributes.key?(:'remote')
103
113
  self.remote = attributes[:'remote']
104
114
  end
@@ -121,6 +131,10 @@ module PulpcoreClient
121
131
  invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
122
132
  end
123
133
 
134
+ if !@retain_checkpoints.nil? && @retain_checkpoints < 1
135
+ invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
136
+ end
137
+
124
138
  invalid_properties
125
139
  end
126
140
 
@@ -131,6 +145,7 @@ module PulpcoreClient
131
145
  return false if !@name.nil? && @name.to_s.length < 1
132
146
  return false if !@description.nil? && @description.to_s.length < 1
133
147
  return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
148
+ return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
134
149
  true
135
150
  end
136
151
 
@@ -168,6 +183,16 @@ module PulpcoreClient
168
183
  @retain_repo_versions = retain_repo_versions
169
184
  end
170
185
 
186
+ # Custom attribute writer method with validation
187
+ # @param [Object] retain_checkpoints Value to be assigned
188
+ def retain_checkpoints=(retain_checkpoints)
189
+ if !retain_checkpoints.nil? && retain_checkpoints < 1
190
+ fail ArgumentError, 'invalid value for "retain_checkpoints", must be greater than or equal to 1.'
191
+ end
192
+
193
+ @retain_checkpoints = retain_checkpoints
194
+ end
195
+
171
196
  # Checks equality by comparing each attribute.
172
197
  # @param [Object] Object to be compared
173
198
  def ==(o)
@@ -177,6 +202,7 @@ module PulpcoreClient
177
202
  name == o.name &&
178
203
  description == o.description &&
179
204
  retain_repo_versions == o.retain_repo_versions &&
205
+ retain_checkpoints == o.retain_checkpoints &&
180
206
  remote == o.remote
181
207
  end
182
208
 
@@ -189,7 +215,7 @@ module PulpcoreClient
189
215
  # Calculates hash code according to all attributes.
190
216
  # @return [Integer] Hash code
191
217
  def hash
192
- [pulp_labels, name, description, retain_repo_versions, remote].hash
218
+ [pulp_labels, name, description, retain_repo_versions, retain_checkpoints, remote].hash
193
219
  end
194
220
 
195
221
  # Builds the object from hash
@@ -66,7 +66,7 @@ module PulpcoreClient
66
66
  if attributes.key?(:'finished_before')
67
67
  self.finished_before = attributes[:'finished_before']
68
68
  else
69
- self.finished_before = '2026-10-10'
69
+ self.finished_before = '2026-02-22'
70
70
  end
71
71
 
72
72
  if attributes.key?(:'states')
@@ -42,6 +42,9 @@ module PulpcoreClient
42
42
  # Retain X versions of the repository. Default is null which retains all versions.
43
43
  attr_accessor :retain_repo_versions
44
44
 
45
+ # Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
46
+ attr_accessor :retain_checkpoints
47
+
45
48
  # An optional remote to use by default when syncing.
46
49
  attr_accessor :remote
47
50
 
@@ -58,6 +61,7 @@ module PulpcoreClient
58
61
  :'name' => :'name',
59
62
  :'description' => :'description',
60
63
  :'retain_repo_versions' => :'retain_repo_versions',
64
+ :'retain_checkpoints' => :'retain_checkpoints',
61
65
  :'remote' => :'remote'
62
66
  }
63
67
  end
@@ -80,6 +84,7 @@ module PulpcoreClient
80
84
  :'name' => :'String',
81
85
  :'description' => :'String',
82
86
  :'retain_repo_versions' => :'Integer',
87
+ :'retain_checkpoints' => :'Integer',
83
88
  :'remote' => :'String'
84
89
  }
85
90
  end
@@ -89,6 +94,7 @@ module PulpcoreClient
89
94
  Set.new([
90
95
  :'description',
91
96
  :'retain_repo_versions',
97
+ :'retain_checkpoints',
92
98
  :'remote'
93
99
  ])
94
100
  end
@@ -152,6 +158,10 @@ module PulpcoreClient
152
158
  self.retain_repo_versions = attributes[:'retain_repo_versions']
153
159
  end
154
160
 
161
+ if attributes.key?(:'retain_checkpoints')
162
+ self.retain_checkpoints = attributes[:'retain_checkpoints']
163
+ end
164
+
155
165
  if attributes.key?(:'remote')
156
166
  self.remote = attributes[:'remote']
157
167
  end
@@ -170,6 +180,10 @@ module PulpcoreClient
170
180
  invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
171
181
  end
172
182
 
183
+ if !@retain_checkpoints.nil? && @retain_checkpoints < 1
184
+ invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
185
+ end
186
+
173
187
  invalid_properties
174
188
  end
175
189
 
@@ -179,6 +193,7 @@ module PulpcoreClient
179
193
  warn '[DEPRECATED] the `valid?` method is obsolete'
180
194
  return false if @name.nil?
181
195
  return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
196
+ return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
182
197
  true
183
198
  end
184
199
 
@@ -192,6 +207,16 @@ module PulpcoreClient
192
207
  @retain_repo_versions = retain_repo_versions
193
208
  end
194
209
 
210
+ # Custom attribute writer method with validation
211
+ # @param [Object] retain_checkpoints Value to be assigned
212
+ def retain_checkpoints=(retain_checkpoints)
213
+ if !retain_checkpoints.nil? && retain_checkpoints < 1
214
+ fail ArgumentError, 'invalid value for "retain_checkpoints", must be greater than or equal to 1.'
215
+ end
216
+
217
+ @retain_checkpoints = retain_checkpoints
218
+ end
219
+
195
220
  # Checks equality by comparing each attribute.
196
221
  # @param [Object] Object to be compared
197
222
  def ==(o)
@@ -207,6 +232,7 @@ module PulpcoreClient
207
232
  name == o.name &&
208
233
  description == o.description &&
209
234
  retain_repo_versions == o.retain_repo_versions &&
235
+ retain_checkpoints == o.retain_checkpoints &&
210
236
  remote == o.remote
211
237
  end
212
238
 
@@ -219,7 +245,7 @@ module PulpcoreClient
219
245
  # Calculates hash code according to all attributes.
220
246
  # @return [Integer] Hash code
221
247
  def hash
222
- [pulp_href, prn, pulp_created, pulp_last_updated, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, remote].hash
248
+ [pulp_href, prn, pulp_created, pulp_last_updated, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, retain_checkpoints, remote].hash
223
249
  end
224
250
 
225
251
  # Builds the object from hash
@@ -11,5 +11,5 @@ Generator version: 7.10.0
11
11
  =end
12
12
 
13
13
  module PulpcoreClient
14
- VERSION = '3.105.27'
14
+ VERSION = '3.106.0'
15
15
  end
@@ -30,6 +30,8 @@ require 'pulpcore_client/models/content_redirect_content_guard'
30
30
  require 'pulpcore_client/models/content_redirect_content_guard_response'
31
31
  require 'pulpcore_client/models/content_settings_response'
32
32
  require 'pulpcore_client/models/content_summary_response'
33
+ require 'pulpcore_client/models/data_repair7272'
34
+ require 'pulpcore_client/models/data_repair7465'
33
35
  require 'pulpcore_client/models/database_connection_response'
34
36
  require 'pulpcore_client/models/distribution_response'
35
37
  require 'pulpcore_client/models/domain'
@@ -207,6 +209,8 @@ require 'pulpcore_client/api/contentguards_composite_api'
207
209
  require 'pulpcore_client/api/contentguards_content_redirect_api'
208
210
  require 'pulpcore_client/api/contentguards_header_api'
209
211
  require 'pulpcore_client/api/contentguards_rbac_api'
212
+ require 'pulpcore_client/api/datarepair7272_api'
213
+ require 'pulpcore_client/api/datarepair7465_api'
210
214
  require 'pulpcore_client/api/distributions_api'
211
215
  require 'pulpcore_client/api/distributions_artifacts_api'
212
216
  require 'pulpcore_client/api/distributions_openpgp_api'