pulpcore_client 3.105.2 → 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 (46) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +8 -4
  3. data/docs/ArtifactDistributionResponse.md +16 -12
  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/OpenPGPDistributionResponse.md +2 -0
  10. data/docs/OpenPGPKeyring.md +2 -0
  11. data/docs/OpenPGPKeyringResponse.md +2 -0
  12. data/docs/PatchedOpenPGPKeyring.md +2 -0
  13. data/docs/RepositoriesApi.md +18 -2
  14. data/docs/RepositoriesOpenpgpKeyringApi.md +18 -2
  15. data/docs/RepositoryResponse.md +2 -0
  16. data/lib/pulpcore_client/api/datarepair7272_api.rb +93 -0
  17. data/lib/pulpcore_client/api/datarepair7465_api.rb +93 -0
  18. data/lib/pulpcore_client/api/repositories_api.rb +27 -3
  19. data/lib/pulpcore_client/api/repositories_openpgp_keyring_api.rb +27 -3
  20. data/lib/pulpcore_client/models/artifact_distribution_response.rb +72 -51
  21. data/lib/pulpcore_client/models/data_repair7272.rb +217 -0
  22. data/lib/pulpcore_client/models/data_repair7465.rb +217 -0
  23. data/lib/pulpcore_client/models/distribution_response.rb +27 -6
  24. data/lib/pulpcore_client/models/open_pgp_distribution.rb +1 -1
  25. data/lib/pulpcore_client/models/open_pgp_distribution_response.rb +12 -2
  26. data/lib/pulpcore_client/models/open_pgp_keyring.rb +27 -1
  27. data/lib/pulpcore_client/models/open_pgp_keyring_response.rb +27 -1
  28. data/lib/pulpcore_client/models/patched_open_pgp_distribution.rb +1 -1
  29. data/lib/pulpcore_client/models/patched_open_pgp_keyring.rb +27 -1
  30. data/lib/pulpcore_client/models/repository_response.rb +27 -1
  31. data/lib/pulpcore_client/version.rb +1 -1
  32. data/lib/pulpcore_client.rb +4 -0
  33. data/spec/api/datarepair7272_api_spec.rb +48 -0
  34. data/spec/api/datarepair7465_api_spec.rb +48 -0
  35. data/spec/api/repositories_api_spec.rb +9 -1
  36. data/spec/api/repositories_openpgp_keyring_api_spec.rb +9 -1
  37. data/spec/models/artifact_distribution_response_spec.rb +20 -8
  38. data/spec/models/data_repair7272_spec.rb +36 -0
  39. data/spec/models/data_repair7465_spec.rb +36 -0
  40. data/spec/models/distribution_response_spec.rb +12 -0
  41. data/spec/models/open_pgp_distribution_response_spec.rb +6 -0
  42. data/spec/models/open_pgp_keyring_response_spec.rb +6 -0
  43. data/spec/models/open_pgp_keyring_spec.rb +6 -0
  44. data/spec/models/patched_open_pgp_keyring_spec.rb +6 -0
  45. data/spec/models/repository_response_spec.rb +6 -0
  46. metadata +17 -1
@@ -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
@@ -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.2'
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'
@@ -0,0 +1,48 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
+
6
+ The version of the OpenAPI document: v3
7
+ Contact: pulp-list@redhat.com
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.10.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for PulpcoreClient::Datarepair7272Api
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'Datarepair7272Api' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = PulpcoreClient::Datarepair7272Api.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of Datarepair7272Api' do
30
+ it 'should create an instance of Datarepair7272Api' do
31
+ expect(@api_instance).to be_instance_of(PulpcoreClient::Datarepair7272Api)
32
+ end
33
+ end
34
+
35
+ # unit tests for post
36
+ # Repair Repository Version Data (Issue #7272)
37
+ # Trigger an asynchronous task that repairs repository version content_ids cache and content count mismatches (Issue #7272). This task fixes two types of data corruption: 1) Mismatch between RepositoryVersion.content_ids cache and actual RepositoryContent relationships, and 2) Mismatch between RepositoryVersionContentDetails count and actual RepositoryContent count.
38
+ # @param data_repair7272
39
+ # @param [Hash] opts the optional parameters
40
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
41
+ # @return [AsyncOperationResponse]
42
+ describe 'post test' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
+ end
46
+ end
47
+
48
+ end
@@ -0,0 +1,48 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
+
6
+ The version of the OpenAPI document: v3
7
+ Contact: pulp-list@redhat.com
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.10.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for PulpcoreClient::Datarepair7465Api
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'Datarepair7465Api' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = PulpcoreClient::Datarepair7465Api.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of Datarepair7465Api' do
30
+ it 'should create an instance of Datarepair7465Api' do
31
+ expect(@api_instance).to be_instance_of(PulpcoreClient::Datarepair7465Api)
32
+ end
33
+ end
34
+
35
+ # unit tests for post
36
+ # Add Repository Version Content IDs (Issue #7465)
37
+ # Trigger an asynchronous task that adds missing repository version content_ids cache to all repository versions (Issue #7465).
38
+ # @param data_repair7465
39
+ # @param [Hash] opts the optional parameters
40
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
41
+ # @return [AsyncOperationResponse]
42
+ describe 'post test' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
+ end
46
+ end
47
+
48
+ end
@@ -49,7 +49,7 @@ describe 'RepositoriesApi' do
49
49
  # @option opts [String] :name__regex Filter results where name matches regex value
50
50
  # @option opts [String] :name__startswith Filter results where name starts with value
51
51
  # @option opts [Integer] :offset The initial index from which to return the results.
52
- # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;next_version&#x60; - Next version * &#x60;-next_version&#x60; - Next version (descending) * &#x60;retain_repo_versions&#x60; - Retain repo versions * &#x60;-retain_repo_versions&#x60; - Retain repo versions (descending) * &#x60;user_hidden&#x60; - User hidden * &#x60;-user_hidden&#x60; - User hidden (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
52
+ # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;next_version&#x60; - Next version * &#x60;-next_version&#x60; - Next version (descending) * &#x60;retain_repo_versions&#x60; - Retain repo versions * &#x60;-retain_repo_versions&#x60; - Retain repo versions (descending) * &#x60;retain_checkpoints&#x60; - Retain checkpoints * &#x60;-retain_checkpoints&#x60; - Retain checkpoints (descending) * &#x60;user_hidden&#x60; - User hidden * &#x60;-user_hidden&#x60; - User hidden (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
53
53
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
54
54
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
55
55
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
@@ -58,6 +58,14 @@ describe 'RepositoriesApi' do
58
58
  # @option opts [Array<String>] :pulp_type__in Multiple values may be separated by commas. * &#x60;core.openpgp&#x60; - core.openpgp * &#x60;file.file&#x60; - file.file
59
59
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
60
60
  # @option opts [String] :remote
61
+ # @option opts [Integer] :retain_checkpoints Filter results where retain_checkpoints matches value
62
+ # @option opts [Integer] :retain_checkpoints__gt Filter results where retain_checkpoints is greater than value
63
+ # @option opts [Integer] :retain_checkpoints__gte Filter results where retain_checkpoints is greater than or equal to value
64
+ # @option opts [Boolean] :retain_checkpoints__isnull Filter results where retain_checkpoints has a null value
65
+ # @option opts [Integer] :retain_checkpoints__lt Filter results where retain_checkpoints is less than value
66
+ # @option opts [Integer] :retain_checkpoints__lte Filter results where retain_checkpoints is less than or equal to value
67
+ # @option opts [Integer] :retain_checkpoints__ne Filter results where retain_checkpoints not equal to value
68
+ # @option opts [Array<Integer>] :retain_checkpoints__range Filter results where retain_checkpoints is between two comma separated values
61
69
  # @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
62
70
  # @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
63
71
  # @option opts [Integer] :retain_repo_versions__gte Filter results where retain_repo_versions is greater than or equal to value
@@ -89,13 +89,21 @@ describe 'RepositoriesOpenpgpKeyringApi' do
89
89
  # @option opts [String] :name__regex Filter results where name matches regex value
90
90
  # @option opts [String] :name__startswith Filter results where name starts with value
91
91
  # @option opts [Integer] :offset The initial index from which to return the results.
92
- # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;next_version&#x60; - Next version * &#x60;-next_version&#x60; - Next version (descending) * &#x60;retain_repo_versions&#x60; - Retain repo versions * &#x60;-retain_repo_versions&#x60; - Retain repo versions (descending) * &#x60;user_hidden&#x60; - User hidden * &#x60;-user_hidden&#x60; - User hidden (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
92
+ # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;next_version&#x60; - Next version * &#x60;-next_version&#x60; - Next version (descending) * &#x60;retain_repo_versions&#x60; - Retain repo versions * &#x60;-retain_repo_versions&#x60; - Retain repo versions (descending) * &#x60;retain_checkpoints&#x60; - Retain checkpoints * &#x60;-retain_checkpoints&#x60; - Retain checkpoints (descending) * &#x60;user_hidden&#x60; - User hidden * &#x60;-user_hidden&#x60; - User hidden (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
93
93
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
94
94
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
95
95
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
96
96
  # @option opts [String] :pulp_label_select Filter labels by search string
97
97
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
98
98
  # @option opts [String] :remote
99
+ # @option opts [Integer] :retain_checkpoints Filter results where retain_checkpoints matches value
100
+ # @option opts [Integer] :retain_checkpoints__gt Filter results where retain_checkpoints is greater than value
101
+ # @option opts [Integer] :retain_checkpoints__gte Filter results where retain_checkpoints is greater than or equal to value
102
+ # @option opts [Boolean] :retain_checkpoints__isnull Filter results where retain_checkpoints has a null value
103
+ # @option opts [Integer] :retain_checkpoints__lt Filter results where retain_checkpoints is less than value
104
+ # @option opts [Integer] :retain_checkpoints__lte Filter results where retain_checkpoints is less than or equal to value
105
+ # @option opts [Integer] :retain_checkpoints__ne Filter results where retain_checkpoints not equal to value
106
+ # @option opts [Array<Integer>] :retain_checkpoints__range Filter results where retain_checkpoints is between two comma separated values
99
107
  # @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
100
108
  # @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
101
109
  # @option opts [Integer] :retain_repo_versions__gte Filter results where retain_repo_versions is greater than or equal to value
@@ -33,43 +33,55 @@ describe PulpcoreClient::ArtifactDistributionResponse do
33
33
  end
34
34
  end
35
35
 
36
+ describe 'test attribute "base_url"' do
37
+ it 'should work' do
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
+ end
40
+ end
41
+
36
42
  describe 'test attribute "pulp_labels"' do
37
43
  it 'should work' do
38
44
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
45
  end
40
46
  end
41
47
 
42
- describe 'test attribute "base_url"' do
48
+ describe 'test attribute "no_content_change_since"' do
43
49
  it 'should work' do
44
50
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
51
  end
46
52
  end
47
53
 
48
- describe 'test attribute "pulp_href"' do
54
+ describe 'test attribute "repository_version"' do
49
55
  it 'should work' do
50
56
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
51
57
  end
52
58
  end
53
59
 
54
- describe 'test attribute "pulp_last_updated"' do
60
+ describe 'test attribute "name"' do
55
61
  it 'should work' do
56
62
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
57
63
  end
58
64
  end
59
65
 
60
- describe 'test attribute "no_content_change_since"' do
66
+ describe 'test attribute "pulp_href"' do
61
67
  it 'should work' do
62
68
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
63
69
  end
64
70
  end
65
71
 
66
- describe 'test attribute "name"' do
72
+ describe 'test attribute "prn"' do
67
73
  it 'should work' do
68
74
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
69
75
  end
70
76
  end
71
77
 
72
- describe 'test attribute "base_path"' do
78
+ describe 'test attribute "content_guard_prn"' do
79
+ it 'should work' do
80
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
81
+ end
82
+ end
83
+
84
+ describe 'test attribute "content_guard"' do
73
85
  it 'should work' do
74
86
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
75
87
  end
@@ -81,13 +93,13 @@ describe PulpcoreClient::ArtifactDistributionResponse do
81
93
  end
82
94
  end
83
95
 
84
- describe 'test attribute "content_guard"' do
96
+ describe 'test attribute "base_path"' do
85
97
  it 'should work' do
86
98
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
87
99
  end
88
100
  end
89
101
 
90
- describe 'test attribute "prn"' do
102
+ describe 'test attribute "pulp_last_updated"' do
91
103
  it 'should work' do
92
104
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
93
105
  end