pulp_rpm_client 3.3.0b1 → 3.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -4
  3. data/docs/ContentAdvisoriesApi.md +2 -0
  4. data/docs/ContentDistributionTreesApi.md +2 -0
  5. data/docs/ContentModulemdDefaultsApi.md +2 -0
  6. data/docs/ContentModulemdsApi.md +2 -0
  7. data/docs/ContentPackagecategoriesApi.md +2 -0
  8. data/docs/ContentPackageenvironmentsApi.md +2 -0
  9. data/docs/ContentPackagegroupsApi.md +2 -0
  10. data/docs/ContentPackagelangpacksApi.md +2 -0
  11. data/docs/ContentPackagesApi.md +2 -0
  12. data/docs/ContentRepoMetadataFilesApi.md +2 -0
  13. data/docs/DistributionsRpmApi.md +2 -0
  14. data/docs/RemotesRpmApi.md +2 -0
  15. data/docs/RepositoriesRpmApi.md +2 -0
  16. data/docs/RepositoriesRpmVersionsApi.md +55 -0
  17. data/docs/RpmRepositorySyncURL.md +3 -1
  18. data/docs/RpmRpmPublication.md +5 -1
  19. data/lib/pulp_rpm_client/api/content_advisories_api.rb +3 -0
  20. data/lib/pulp_rpm_client/api/content_distribution_trees_api.rb +3 -0
  21. data/lib/pulp_rpm_client/api/content_modulemd_defaults_api.rb +3 -0
  22. data/lib/pulp_rpm_client/api/content_modulemds_api.rb +3 -0
  23. data/lib/pulp_rpm_client/api/content_packagecategories_api.rb +3 -0
  24. data/lib/pulp_rpm_client/api/content_packageenvironments_api.rb +3 -0
  25. data/lib/pulp_rpm_client/api/content_packagegroups_api.rb +3 -0
  26. data/lib/pulp_rpm_client/api/content_packagelangpacks_api.rb +3 -0
  27. data/lib/pulp_rpm_client/api/content_packages_api.rb +3 -0
  28. data/lib/pulp_rpm_client/api/content_repo_metadata_files_api.rb +3 -0
  29. data/lib/pulp_rpm_client/api/distributions_rpm_api.rb +3 -0
  30. data/lib/pulp_rpm_client/api/remotes_rpm_api.rb +3 -0
  31. data/lib/pulp_rpm_client/api/repositories_rpm_api.rb +3 -0
  32. data/lib/pulp_rpm_client/api/repositories_rpm_versions_api.rb +68 -0
  33. data/lib/pulp_rpm_client/models/rpm_repository_sync_url.rb +16 -4
  34. data/lib/pulp_rpm_client/models/rpm_rpm_publication.rb +74 -4
  35. data/lib/pulp_rpm_client/version.rb +1 -1
  36. data/spec/api/content_advisories_api_spec.rb +1 -0
  37. data/spec/api/content_distribution_trees_api_spec.rb +1 -0
  38. data/spec/api/content_modulemd_defaults_api_spec.rb +1 -0
  39. data/spec/api/content_modulemds_api_spec.rb +1 -0
  40. data/spec/api/content_packagecategories_api_spec.rb +1 -0
  41. data/spec/api/content_packageenvironments_api_spec.rb +1 -0
  42. data/spec/api/content_packagegroups_api_spec.rb +1 -0
  43. data/spec/api/content_packagelangpacks_api_spec.rb +1 -0
  44. data/spec/api/content_packages_api_spec.rb +1 -0
  45. data/spec/api/content_repo_metadata_files_api_spec.rb +1 -0
  46. data/spec/api/distributions_rpm_api_spec.rb +1 -0
  47. data/spec/api/remotes_rpm_api_spec.rb +1 -0
  48. data/spec/api/repositories_rpm_api_spec.rb +1 -0
  49. data/spec/api/repositories_rpm_versions_api_spec.rb +12 -0
  50. data/spec/models/rpm_repository_sync_url_spec.rb +6 -0
  51. data/spec/models/rpm_rpm_publication_spec.rb +20 -0
  52. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 19b7b81e436e3d8ae841cca4d84513d8c5a52c04810c5eaea22da70433c37163
4
- data.tar.gz: bb68645bd059fbb2820ce55a4893b95ab9fd2a70ad0d9bd6afd936531e36d804
3
+ metadata.gz: acfd9ad14d7440cb8110d8167317128693ec68a48107faa85af4e34cc6293386
4
+ data.tar.gz: 8da36f7148a3bf9fb311cca1d64ad504999a02f79bb5fc8343f961b9237d6940
5
5
  SHA512:
6
- metadata.gz: 86e448994a196f0e59210f6b7af5171c48a0fca24b1e55e1cafa63538e017f4626e53407c6450a96cfb442eae9f6e359899cd5ac26d1949c68c1692023759d70
7
- data.tar.gz: c46f37f97a7532f36ffee70248a5e5cf91774651123495c260b9c2783bf1ce88f27117289d02ef7843ad7473cfba2525c15a84c1bb1b5abdd485b892bd62c719
6
+ metadata.gz: 757a070665df175933a6940734014f828598d6482e6699aa356ad4a98e0ddba5b0002aad4565aacab49671e911b51ddd011d2aed1fe843279fe7848bc39d07f2
7
+ data.tar.gz: 82b6df569699b21bb4b9ffac3297a9a49e55a9db151e63fb4653441827c028baefd8af4e4d18a16f53dba43b5ff441d256a6fe6bb86e1dcf03984e10ee2e7f9a
data/README.md CHANGED
@@ -7,7 +7,7 @@ No description provided (generated by Openapi Generator https://github.com/opena
7
7
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
8
 
9
9
  - API version: v3
10
- - Package version: 3.3.0b1
10
+ - Package version: 3.3.0
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
 
13
13
  ## Installation
@@ -23,16 +23,16 @@ gem build pulp_rpm_client.gemspec
23
23
  Then either install the gem locally:
24
24
 
25
25
  ```shell
26
- gem install ./pulp_rpm_client-3.3.0b1.gem
26
+ gem install ./pulp_rpm_client-3.3.0.gem
27
27
  ```
28
28
 
29
- (for development, run `gem install --dev ./pulp_rpm_client-3.3.0b1.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./pulp_rpm_client-3.3.0.gem` to install the development dependencies)
30
30
 
31
31
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
32
32
 
33
33
  Finally add this to the Gemfile:
34
34
 
35
- gem 'pulp_rpm_client', '~> 3.3.0b1'
35
+ gem 'pulp_rpm_client', '~> 3.3.0'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -144,6 +144,7 @@ Class | Method | HTTP request | Description
144
144
  *PulpRpmClient::RepositoriesRpmVersionsApi* | [**delete**](docs/RepositoriesRpmVersionsApi.md#delete) | **DELETE** {rpm_repository_version_href} | Delete a repository version
145
145
  *PulpRpmClient::RepositoriesRpmVersionsApi* | [**list**](docs/RepositoriesRpmVersionsApi.md#list) | **GET** {rpm_repository_href}versions/ | List repository versions
146
146
  *PulpRpmClient::RepositoriesRpmVersionsApi* | [**read**](docs/RepositoriesRpmVersionsApi.md#read) | **GET** {rpm_repository_version_href} | Inspect a repository version
147
+ *PulpRpmClient::RepositoriesRpmVersionsApi* | [**repair**](docs/RepositoriesRpmVersionsApi.md#repair) | **POST** {rpm_repository_version_href}repair/ |
147
148
  *PulpRpmClient::RpmCopyApi* | [**copy_content**](docs/RpmCopyApi.md#copy_content) | **POST** /pulp/api/v3/rpm/copy/ | Copy content
148
149
 
149
150
 
@@ -93,6 +93,7 @@ end
93
93
 
94
94
  api_instance = PulpRpmClient::ContentAdvisoriesApi.new
95
95
  opts = {
96
+ ordering: 'ordering_example', # String | Which field to use when ordering the results.
96
97
  id: 'id_example', # String | Filter results where id matches value
97
98
  id__in: 'id__in_example', # String | Filter results where id is in a comma-separated list of values
98
99
  status: 'status_example', # String | Filter results where status matches value
@@ -127,6 +128,7 @@ end
127
128
 
128
129
  Name | Type | Description | Notes
129
130
  ------------- | ------------- | ------------- | -------------
131
+ **ordering** | **String**| Which field to use when ordering the results. | [optional]
130
132
  **id** | **String**| Filter results where id matches value | [optional]
131
133
  **id__in** | **String**| Filter results where id is in a comma-separated list of values | [optional]
132
134
  **status** | **String**| Filter results where status matches value | [optional]
@@ -84,6 +84,7 @@ end
84
84
 
85
85
  api_instance = PulpRpmClient::ContentDistributionTreesApi.new
86
86
  opts = {
87
+ ordering: 'ordering_example', # String | Which field to use when ordering the results.
87
88
  repository_version: 'repository_version_example', # String | Repository Version referenced by HREF
88
89
  repository_version_added: 'repository_version_added_example', # String | Repository Version referenced by HREF
89
90
  repository_version_removed: 'repository_version_removed_example', # String | Repository Version referenced by HREF
@@ -107,6 +108,7 @@ end
107
108
 
108
109
  Name | Type | Description | Notes
109
110
  ------------- | ------------- | ------------- | -------------
111
+ **ordering** | **String**| Which field to use when ordering the results. | [optional]
110
112
  **repository_version** | **String**| Repository Version referenced by HREF | [optional]
111
113
  **repository_version_added** | **String**| Repository Version referenced by HREF | [optional]
112
114
  **repository_version_removed** | **String**| Repository Version referenced by HREF | [optional]
@@ -99,6 +99,7 @@ end
99
99
 
100
100
  api_instance = PulpRpmClient::ContentModulemdDefaultsApi.new
101
101
  opts = {
102
+ ordering: 'ordering_example', # String | Which field to use when ordering the results.
102
103
  _module: '_module_example', # String | Filter results where module matches value
103
104
  module__in: 'module__in_example', # String | Filter results where module is in a comma-separated list of values
104
105
  stream: 'stream_example', # String | Filter results where stream matches value
@@ -127,6 +128,7 @@ end
127
128
 
128
129
  Name | Type | Description | Notes
129
130
  ------------- | ------------- | ------------- | -------------
131
+ **ordering** | **String**| Which field to use when ordering the results. | [optional]
130
132
  **_module** | **String**| Filter results where module matches value | [optional]
131
133
  **module__in** | **String**| Filter results where module is in a comma-separated list of values | [optional]
132
134
  **stream** | **String**| Filter results where stream matches value | [optional]
@@ -109,6 +109,7 @@ end
109
109
 
110
110
  api_instance = PulpRpmClient::ContentModulemdsApi.new
111
111
  opts = {
112
+ ordering: 'ordering_example', # String | Which field to use when ordering the results.
112
113
  name: 'name_example', # String | Filter results where name matches value
113
114
  name__in: 'name__in_example', # String | Filter results where name is in a comma-separated list of values
114
115
  stream: 'stream_example', # String | Filter results where stream matches value
@@ -137,6 +138,7 @@ end
137
138
 
138
139
  Name | Type | Description | Notes
139
140
  ------------- | ------------- | ------------- | -------------
141
+ **ordering** | **String**| Which field to use when ordering the results. | [optional]
140
142
  **name** | **String**| Filter results where name matches value | [optional]
141
143
  **name__in** | **String**| Filter results where name is in a comma-separated list of values | [optional]
142
144
  **stream** | **String**| Filter results where stream matches value | [optional]
@@ -84,6 +84,7 @@ end
84
84
 
85
85
  api_instance = PulpRpmClient::ContentPackagecategoriesApi.new
86
86
  opts = {
87
+ ordering: 'ordering_example', # String | Which field to use when ordering the results.
87
88
  repository_version: 'repository_version_example', # String | Repository Version referenced by HREF
88
89
  repository_version_added: 'repository_version_added_example', # String | Repository Version referenced by HREF
89
90
  repository_version_removed: 'repository_version_removed_example', # String | Repository Version referenced by HREF
@@ -107,6 +108,7 @@ end
107
108
 
108
109
  Name | Type | Description | Notes
109
110
  ------------- | ------------- | ------------- | -------------
111
+ **ordering** | **String**| Which field to use when ordering the results. | [optional]
110
112
  **repository_version** | **String**| Repository Version referenced by HREF | [optional]
111
113
  **repository_version_added** | **String**| Repository Version referenced by HREF | [optional]
112
114
  **repository_version_removed** | **String**| Repository Version referenced by HREF | [optional]
@@ -84,6 +84,7 @@ end
84
84
 
85
85
  api_instance = PulpRpmClient::ContentPackageenvironmentsApi.new
86
86
  opts = {
87
+ ordering: 'ordering_example', # String | Which field to use when ordering the results.
87
88
  repository_version: 'repository_version_example', # String | Repository Version referenced by HREF
88
89
  repository_version_added: 'repository_version_added_example', # String | Repository Version referenced by HREF
89
90
  repository_version_removed: 'repository_version_removed_example', # String | Repository Version referenced by HREF
@@ -107,6 +108,7 @@ end
107
108
 
108
109
  Name | Type | Description | Notes
109
110
  ------------- | ------------- | ------------- | -------------
111
+ **ordering** | **String**| Which field to use when ordering the results. | [optional]
110
112
  **repository_version** | **String**| Repository Version referenced by HREF | [optional]
111
113
  **repository_version_added** | **String**| Repository Version referenced by HREF | [optional]
112
114
  **repository_version_removed** | **String**| Repository Version referenced by HREF | [optional]
@@ -84,6 +84,7 @@ end
84
84
 
85
85
  api_instance = PulpRpmClient::ContentPackagegroupsApi.new
86
86
  opts = {
87
+ ordering: 'ordering_example', # String | Which field to use when ordering the results.
87
88
  repository_version: 'repository_version_example', # String | Repository Version referenced by HREF
88
89
  repository_version_added: 'repository_version_added_example', # String | Repository Version referenced by HREF
89
90
  repository_version_removed: 'repository_version_removed_example', # String | Repository Version referenced by HREF
@@ -107,6 +108,7 @@ end
107
108
 
108
109
  Name | Type | Description | Notes
109
110
  ------------- | ------------- | ------------- | -------------
111
+ **ordering** | **String**| Which field to use when ordering the results. | [optional]
110
112
  **repository_version** | **String**| Repository Version referenced by HREF | [optional]
111
113
  **repository_version_added** | **String**| Repository Version referenced by HREF | [optional]
112
114
  **repository_version_removed** | **String**| Repository Version referenced by HREF | [optional]
@@ -84,6 +84,7 @@ end
84
84
 
85
85
  api_instance = PulpRpmClient::ContentPackagelangpacksApi.new
86
86
  opts = {
87
+ ordering: 'ordering_example', # String | Which field to use when ordering the results.
87
88
  repository_version: 'repository_version_example', # String | Repository Version referenced by HREF
88
89
  repository_version_added: 'repository_version_added_example', # String | Repository Version referenced by HREF
89
90
  repository_version_removed: 'repository_version_removed_example', # String | Repository Version referenced by HREF
@@ -107,6 +108,7 @@ end
107
108
 
108
109
  Name | Type | Description | Notes
109
110
  ------------- | ------------- | ------------- | -------------
111
+ **ordering** | **String**| Which field to use when ordering the results. | [optional]
110
112
  **repository_version** | **String**| Repository Version referenced by HREF | [optional]
111
113
  **repository_version_added** | **String**| Repository Version referenced by HREF | [optional]
112
114
  **repository_version_removed** | **String**| Repository Version referenced by HREF | [optional]
@@ -93,6 +93,7 @@ end
93
93
 
94
94
  api_instance = PulpRpmClient::ContentPackagesApi.new
95
95
  opts = {
96
+ ordering: 'ordering_example', # String | Which field to use when ordering the results.
96
97
  name: 'name_example', # String | Filter results where name matches value
97
98
  name__in: 'name__in_example', # String | Filter results where name is in a comma-separated list of values
98
99
  name__ne: 'name__ne_example', # String | Filter results where name not equal to value
@@ -137,6 +138,7 @@ end
137
138
 
138
139
  Name | Type | Description | Notes
139
140
  ------------- | ------------- | ------------- | -------------
141
+ **ordering** | **String**| Which field to use when ordering the results. | [optional]
140
142
  **name** | **String**| Filter results where name matches value | [optional]
141
143
  **name__in** | **String**| Filter results where name is in a comma-separated list of values | [optional]
142
144
  **name__ne** | **String**| Filter results where name not equal to value | [optional]
@@ -84,6 +84,7 @@ end
84
84
 
85
85
  api_instance = PulpRpmClient::ContentRepoMetadataFilesApi.new
86
86
  opts = {
87
+ ordering: 'ordering_example', # String | Which field to use when ordering the results.
87
88
  repository_version: 'repository_version_example', # String | Repository Version referenced by HREF
88
89
  repository_version_added: 'repository_version_added_example', # String | Repository Version referenced by HREF
89
90
  repository_version_removed: 'repository_version_removed_example', # String | Repository Version referenced by HREF
@@ -107,6 +108,7 @@ end
107
108
 
108
109
  Name | Type | Description | Notes
109
110
  ------------- | ------------- | ------------- | -------------
111
+ **ordering** | **String**| Which field to use when ordering the results. | [optional]
110
112
  **repository_version** | **String**| Repository Version referenced by HREF | [optional]
111
113
  **repository_version_added** | **String**| Repository Version referenced by HREF | [optional]
112
114
  **repository_version_removed** | **String**| Repository Version referenced by HREF | [optional]
@@ -141,6 +141,7 @@ end
141
141
 
142
142
  api_instance = PulpRpmClient::DistributionsRpmApi.new
143
143
  opts = {
144
+ ordering: 'ordering_example', # String | Which field to use when ordering the results.
144
145
  name: 'name_example', # String |
145
146
  name__in: 'name__in_example', # String | Filter results where name is in a comma-separated list of values
146
147
  base_path: 'base_path_example', # String |
@@ -167,6 +168,7 @@ end
167
168
 
168
169
  Name | Type | Description | Notes
169
170
  ------------- | ------------- | ------------- | -------------
171
+ **ordering** | **String**| Which field to use when ordering the results. | [optional]
170
172
  **name** | **String**| | [optional]
171
173
  **name__in** | **String**| Filter results where name is in a comma-separated list of values | [optional]
172
174
  **base_path** | **String**| | [optional]
@@ -141,6 +141,7 @@ end
141
141
 
142
142
  api_instance = PulpRpmClient::RemotesRpmApi.new
143
143
  opts = {
144
+ ordering: 'ordering_example', # String | Which field to use when ordering the results.
144
145
  name: 'name_example', # String |
145
146
  name__in: 'name__in_example', # String | Filter results where name is in a comma-separated list of values
146
147
  pulp_last_updated__lt: 'pulp_last_updated__lt_example', # String | Filter results where pulp_last_updated is less than value
@@ -169,6 +170,7 @@ end
169
170
 
170
171
  Name | Type | Description | Notes
171
172
  ------------- | ------------- | ------------- | -------------
173
+ **ordering** | **String**| Which field to use when ordering the results. | [optional]
172
174
  **name** | **String**| | [optional]
173
175
  **name__in** | **String**| Filter results where name is in a comma-separated list of values | [optional]
174
176
  **pulp_last_updated__lt** | **String**| Filter results where pulp_last_updated is less than value | [optional]
@@ -143,6 +143,7 @@ end
143
143
 
144
144
  api_instance = PulpRpmClient::RepositoriesRpmApi.new
145
145
  opts = {
146
+ ordering: 'ordering_example', # String | Which field to use when ordering the results.
146
147
  name: 'name_example', # String |
147
148
  name__in: 'name__in_example', # String | Filter results where name is in a comma-separated list of values
148
149
  limit: 56, # Integer | Number of results to return per page.
@@ -165,6 +166,7 @@ end
165
166
 
166
167
  Name | Type | Description | Notes
167
168
  ------------- | ------------- | ------------- | -------------
169
+ **ordering** | **String**| Which field to use when ordering the results. | [optional]
168
170
  **name** | **String**| | [optional]
169
171
  **name__in** | **String**| Filter results where name is in a comma-separated list of values | [optional]
170
172
  **limit** | **Integer**| Number of results to return per page. | [optional]
@@ -7,6 +7,7 @@ Method | HTTP request | Description
7
7
  [**delete**](RepositoriesRpmVersionsApi.md#delete) | **DELETE** {rpm_repository_version_href} | Delete a repository version
8
8
  [**list**](RepositoriesRpmVersionsApi.md#list) | **GET** {rpm_repository_href}versions/ | List repository versions
9
9
  [**read**](RepositoriesRpmVersionsApi.md#read) | **GET** {rpm_repository_version_href} | Inspect a repository version
10
+ [**repair**](RepositoriesRpmVersionsApi.md#repair) | **POST** {rpm_repository_version_href}repair/ |
10
11
 
11
12
 
12
13
 
@@ -212,3 +213,57 @@ Name | Type | Description | Notes
212
213
  - **Content-Type**: Not defined
213
214
  - **Accept**: application/json
214
215
 
216
+
217
+ ## repair
218
+
219
+ > AsyncOperationResponse repair(rpm_repository_version_href, data)
220
+
221
+
222
+
223
+ Trigger an asynchronous task to repair a repositroy version.
224
+
225
+ ### Example
226
+
227
+ ```ruby
228
+ # load the gem
229
+ require 'pulp_rpm_client'
230
+ # setup authorization
231
+ PulpRpmClient.configure do |config|
232
+ # Configure HTTP basic authorization: Basic
233
+ config.username = 'YOUR USERNAME'
234
+ config.password = 'YOUR PASSWORD'
235
+ end
236
+
237
+ api_instance = PulpRpmClient::RepositoriesRpmVersionsApi.new
238
+ rpm_repository_version_href = 'rpm_repository_version_href_example' # String | URI of Repository Version. e.g.: /pulp/api/v3/repositories/rpm/rpm/1/versions/1/
239
+ data = PulpRpmClient::RepositoryVersion.new # RepositoryVersion |
240
+
241
+ begin
242
+ result = api_instance.repair(rpm_repository_version_href, data)
243
+ p result
244
+ rescue PulpRpmClient::ApiError => e
245
+ puts "Exception when calling RepositoriesRpmVersionsApi->repair: #{e}"
246
+ end
247
+ ```
248
+
249
+ ### Parameters
250
+
251
+
252
+ Name | Type | Description | Notes
253
+ ------------- | ------------- | ------------- | -------------
254
+ **rpm_repository_version_href** | **String**| URI of Repository Version. e.g.: /pulp/api/v3/repositories/rpm/rpm/1/versions/1/ |
255
+ **data** | [**RepositoryVersion**](RepositoryVersion.md)| |
256
+
257
+ ### Return type
258
+
259
+ [**AsyncOperationResponse**](AsyncOperationResponse.md)
260
+
261
+ ### Authorization
262
+
263
+ [Basic](../README.md#Basic)
264
+
265
+ ### HTTP request headers
266
+
267
+ - **Content-Type**: application/json
268
+ - **Accept**: application/json
269
+
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
7
7
  **remote** | **String** | A URI of the repository to be synchronized. |
8
8
  **mirror** | **Boolean** | If ``True``, synchronization will remove all content that is not present in the remote repository. If ``False``, sync will be additive only. | [optional] [default to false]
9
9
  **skip_types** | **Array<String>** | List of content types to skip during sync. | [optional]
10
+ **optimize** | **Boolean** | Whether or not to optimize sync. | [optional] [default to true]
10
11
 
11
12
  ## Code Sample
12
13
 
@@ -15,7 +16,8 @@ require 'PulpRpmClient'
15
16
 
16
17
  instance = PulpRpmClient::RpmRepositorySyncURL.new(remote: null,
17
18
  mirror: null,
18
- skip_types: null)
19
+ skip_types: null,
20
+ optimize: null)
19
21
  ```
20
22
 
21
23
 
@@ -8,6 +8,8 @@ Name | Type | Description | Notes
8
8
  **pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
9
9
  **repository_version** | **String** | | [optional]
10
10
  **repository** | **String** | A URI of the repository to be published. | [optional]
11
+ **metadata_checksum_type** | **String** | The checksum type for metadata. | [optional] [default to 'sha256']
12
+ **package_checksum_type** | **String** | The checksum type for packages. | [optional] [default to 'sha256']
11
13
 
12
14
  ## Code Sample
13
15
 
@@ -17,7 +19,9 @@ require 'PulpRpmClient'
17
19
  instance = PulpRpmClient::RpmRpmPublication.new(pulp_href: null,
18
20
  pulp_created: null,
19
21
  repository_version: null,
20
- repository: null)
22
+ repository: null,
23
+ metadata_checksum_type: null,
24
+ package_checksum_type: null)
21
25
  ```
22
26
 
23
27
 
@@ -100,6 +100,7 @@ module PulpRpmClient
100
100
  # List update records
101
101
  # Define endpoint name which will appear in the API endpoint for this content type. For example:: http://pulp.example.com/pulp/api/v3/content/rpm/advisories/ Also specify queryset and serializer for UpdateRecord.
102
102
  # @param [Hash] opts the optional parameters
103
+ # @option opts [String] :ordering Which field to use when ordering the results.
103
104
  # @option opts [String] :id Filter results where id matches value
104
105
  # @option opts [String] :id__in Filter results where id is in a comma-separated list of values
105
106
  # @option opts [String] :status Filter results where status matches value
@@ -127,6 +128,7 @@ module PulpRpmClient
127
128
  # List update records
128
129
  # Define endpoint name which will appear in the API endpoint for this content type. For example:: http://pulp.example.com/pulp/api/v3/content/rpm/advisories/ Also specify queryset and serializer for UpdateRecord.
129
130
  # @param [Hash] opts the optional parameters
131
+ # @option opts [String] :ordering Which field to use when ordering the results.
130
132
  # @option opts [String] :id Filter results where id matches value
131
133
  # @option opts [String] :id__in Filter results where id is in a comma-separated list of values
132
134
  # @option opts [String] :status Filter results where status matches value
@@ -155,6 +157,7 @@ module PulpRpmClient
155
157
 
156
158
  # query parameters
157
159
  query_params = opts[:query_params] || {}
160
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
158
161
  query_params[:'id'] = opts[:'id'] if !opts[:'id'].nil?
159
162
  query_params[:'id__in'] = opts[:'id__in'] if !opts[:'id__in'].nil?
160
163
  query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
@@ -82,6 +82,7 @@ module PulpRpmClient
82
82
  # List distribution trees
83
83
  # Distribution Tree Viewset.
84
84
  # @param [Hash] opts the optional parameters
85
+ # @option opts [String] :ordering Which field to use when ordering the results.
85
86
  # @option opts [String] :repository_version Repository Version referenced by HREF
86
87
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
87
88
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -98,6 +99,7 @@ module PulpRpmClient
98
99
  # List distribution trees
99
100
  # Distribution Tree Viewset.
100
101
  # @param [Hash] opts the optional parameters
102
+ # @option opts [String] :ordering Which field to use when ordering the results.
101
103
  # @option opts [String] :repository_version Repository Version referenced by HREF
102
104
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
103
105
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -115,6 +117,7 @@ module PulpRpmClient
115
117
 
116
118
  # query parameters
117
119
  query_params = opts[:query_params] || {}
120
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
118
121
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
119
122
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
120
123
  query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
@@ -129,6 +129,7 @@ module PulpRpmClient
129
129
  # List modulemd defaultss
130
130
  # ViewSet for Modulemd.
131
131
  # @param [Hash] opts the optional parameters
132
+ # @option opts [String] :ordering Which field to use when ordering the results.
132
133
  # @option opts [String] :_module Filter results where module matches value
133
134
  # @option opts [String] :module__in Filter results where module is in a comma-separated list of values
134
135
  # @option opts [String] :stream Filter results where stream matches value
@@ -150,6 +151,7 @@ module PulpRpmClient
150
151
  # List modulemd defaultss
151
152
  # ViewSet for Modulemd.
152
153
  # @param [Hash] opts the optional parameters
154
+ # @option opts [String] :ordering Which field to use when ordering the results.
153
155
  # @option opts [String] :_module Filter results where module matches value
154
156
  # @option opts [String] :module__in Filter results where module is in a comma-separated list of values
155
157
  # @option opts [String] :stream Filter results where stream matches value
@@ -172,6 +174,7 @@ module PulpRpmClient
172
174
 
173
175
  # query parameters
174
176
  query_params = opts[:query_params] || {}
177
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
175
178
  query_params[:'module'] = opts[:'_module'] if !opts[:'_module'].nil?
176
179
  query_params[:'module__in'] = opts[:'module__in'] if !opts[:'module__in'].nil?
177
180
  query_params[:'stream'] = opts[:'stream'] if !opts[:'stream'].nil?
@@ -172,6 +172,7 @@ module PulpRpmClient
172
172
  # List modulemds
173
173
  # ViewSet for Modulemd.
174
174
  # @param [Hash] opts the optional parameters
175
+ # @option opts [String] :ordering Which field to use when ordering the results.
175
176
  # @option opts [String] :name Filter results where name matches value
176
177
  # @option opts [String] :name__in Filter results where name is in a comma-separated list of values
177
178
  # @option opts [String] :stream Filter results where stream matches value
@@ -193,6 +194,7 @@ module PulpRpmClient
193
194
  # List modulemds
194
195
  # ViewSet for Modulemd.
195
196
  # @param [Hash] opts the optional parameters
197
+ # @option opts [String] :ordering Which field to use when ordering the results.
196
198
  # @option opts [String] :name Filter results where name matches value
197
199
  # @option opts [String] :name__in Filter results where name is in a comma-separated list of values
198
200
  # @option opts [String] :stream Filter results where stream matches value
@@ -215,6 +217,7 @@ module PulpRpmClient
215
217
 
216
218
  # query parameters
217
219
  query_params = opts[:query_params] || {}
220
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
218
221
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
219
222
  query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
220
223
  query_params[:'stream'] = opts[:'stream'] if !opts[:'stream'].nil?
@@ -82,6 +82,7 @@ module PulpRpmClient
82
82
  # List package categorys
83
83
  # PackageCategory ViewSet.
84
84
  # @param [Hash] opts the optional parameters
85
+ # @option opts [String] :ordering Which field to use when ordering the results.
85
86
  # @option opts [String] :repository_version Repository Version referenced by HREF
86
87
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
87
88
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -98,6 +99,7 @@ module PulpRpmClient
98
99
  # List package categorys
99
100
  # PackageCategory ViewSet.
100
101
  # @param [Hash] opts the optional parameters
102
+ # @option opts [String] :ordering Which field to use when ordering the results.
101
103
  # @option opts [String] :repository_version Repository Version referenced by HREF
102
104
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
103
105
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -115,6 +117,7 @@ module PulpRpmClient
115
117
 
116
118
  # query parameters
117
119
  query_params = opts[:query_params] || {}
120
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
118
121
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
119
122
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
120
123
  query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
@@ -82,6 +82,7 @@ module PulpRpmClient
82
82
  # List package environments
83
83
  # PackageEnvironment ViewSet.
84
84
  # @param [Hash] opts the optional parameters
85
+ # @option opts [String] :ordering Which field to use when ordering the results.
85
86
  # @option opts [String] :repository_version Repository Version referenced by HREF
86
87
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
87
88
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -98,6 +99,7 @@ module PulpRpmClient
98
99
  # List package environments
99
100
  # PackageEnvironment ViewSet.
100
101
  # @param [Hash] opts the optional parameters
102
+ # @option opts [String] :ordering Which field to use when ordering the results.
101
103
  # @option opts [String] :repository_version Repository Version referenced by HREF
102
104
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
103
105
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -115,6 +117,7 @@ module PulpRpmClient
115
117
 
116
118
  # query parameters
117
119
  query_params = opts[:query_params] || {}
120
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
118
121
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
119
122
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
120
123
  query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
@@ -82,6 +82,7 @@ module PulpRpmClient
82
82
  # List package groups
83
83
  # PackageGroup ViewSet.
84
84
  # @param [Hash] opts the optional parameters
85
+ # @option opts [String] :ordering Which field to use when ordering the results.
85
86
  # @option opts [String] :repository_version Repository Version referenced by HREF
86
87
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
87
88
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -98,6 +99,7 @@ module PulpRpmClient
98
99
  # List package groups
99
100
  # PackageGroup ViewSet.
100
101
  # @param [Hash] opts the optional parameters
102
+ # @option opts [String] :ordering Which field to use when ordering the results.
101
103
  # @option opts [String] :repository_version Repository Version referenced by HREF
102
104
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
103
105
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -115,6 +117,7 @@ module PulpRpmClient
115
117
 
116
118
  # query parameters
117
119
  query_params = opts[:query_params] || {}
120
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
118
121
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
119
122
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
120
123
  query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
@@ -82,6 +82,7 @@ module PulpRpmClient
82
82
  # List package langpackss
83
83
  # PackageLangpacks ViewSet.
84
84
  # @param [Hash] opts the optional parameters
85
+ # @option opts [String] :ordering Which field to use when ordering the results.
85
86
  # @option opts [String] :repository_version Repository Version referenced by HREF
86
87
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
87
88
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -98,6 +99,7 @@ module PulpRpmClient
98
99
  # List package langpackss
99
100
  # PackageLangpacks ViewSet.
100
101
  # @param [Hash] opts the optional parameters
102
+ # @option opts [String] :ordering Which field to use when ordering the results.
101
103
  # @option opts [String] :repository_version Repository Version referenced by HREF
102
104
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
103
105
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -115,6 +117,7 @@ module PulpRpmClient
115
117
 
116
118
  # query parameters
117
119
  query_params = opts[:query_params] || {}
120
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
118
121
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
119
122
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
120
123
  query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
@@ -100,6 +100,7 @@ module PulpRpmClient
100
100
  # List packages
101
101
  # Define endpoint name which will appear in the API endpoint for this content type. For example:: http://pulp.example.com/pulp/api/v3/content/rpm/packages/ Also specify queryset and serializer for Package.
102
102
  # @param [Hash] opts the optional parameters
103
+ # @option opts [String] :ordering Which field to use when ordering the results.
103
104
  # @option opts [String] :name Filter results where name matches value
104
105
  # @option opts [String] :name__in Filter results where name is in a comma-separated list of values
105
106
  # @option opts [String] :name__ne Filter results where name not equal to value
@@ -137,6 +138,7 @@ module PulpRpmClient
137
138
  # List packages
138
139
  # Define endpoint name which will appear in the API endpoint for this content type. For example:: http://pulp.example.com/pulp/api/v3/content/rpm/packages/ Also specify queryset and serializer for Package.
139
140
  # @param [Hash] opts the optional parameters
141
+ # @option opts [String] :ordering Which field to use when ordering the results.
140
142
  # @option opts [String] :name Filter results where name matches value
141
143
  # @option opts [String] :name__in Filter results where name is in a comma-separated list of values
142
144
  # @option opts [String] :name__ne Filter results where name not equal to value
@@ -175,6 +177,7 @@ module PulpRpmClient
175
177
 
176
178
  # query parameters
177
179
  query_params = opts[:query_params] || {}
180
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
178
181
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
179
182
  query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
180
183
  query_params[:'name__ne'] = opts[:'name__ne'] if !opts[:'name__ne'].nil?
@@ -82,6 +82,7 @@ module PulpRpmClient
82
82
  # List repo metadata files
83
83
  # RepoMetadataFile Viewset.
84
84
  # @param [Hash] opts the optional parameters
85
+ # @option opts [String] :ordering Which field to use when ordering the results.
85
86
  # @option opts [String] :repository_version Repository Version referenced by HREF
86
87
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
87
88
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -98,6 +99,7 @@ module PulpRpmClient
98
99
  # List repo metadata files
99
100
  # RepoMetadataFile Viewset.
100
101
  # @param [Hash] opts the optional parameters
102
+ # @option opts [String] :ordering Which field to use when ordering the results.
101
103
  # @option opts [String] :repository_version Repository Version referenced by HREF
102
104
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
103
105
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -115,6 +117,7 @@ module PulpRpmClient
115
117
 
116
118
  # query parameters
117
119
  query_params = opts[:query_params] || {}
120
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
118
121
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
119
122
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
120
123
  query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
@@ -148,6 +148,7 @@ module PulpRpmClient
148
148
  # List rpm distributions
149
149
  # ViewSet for RPM Distributions.
150
150
  # @param [Hash] opts the optional parameters
151
+ # @option opts [String] :ordering Which field to use when ordering the results.
151
152
  # @option opts [String] :name
152
153
  # @option opts [String] :name__in Filter results where name is in a comma-separated list of values
153
154
  # @option opts [String] :base_path
@@ -167,6 +168,7 @@ module PulpRpmClient
167
168
  # List rpm distributions
168
169
  # ViewSet for RPM Distributions.
169
170
  # @param [Hash] opts the optional parameters
171
+ # @option opts [String] :ordering Which field to use when ordering the results.
170
172
  # @option opts [String] :name
171
173
  # @option opts [String] :name__in Filter results where name is in a comma-separated list of values
172
174
  # @option opts [String] :base_path
@@ -187,6 +189,7 @@ module PulpRpmClient
187
189
 
188
190
  # query parameters
189
191
  query_params = opts[:query_params] || {}
192
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
190
193
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
191
194
  query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
192
195
  query_params[:'base_path'] = opts[:'base_path'] if !opts[:'base_path'].nil?
@@ -148,6 +148,7 @@ module PulpRpmClient
148
148
  # List rpm remotes
149
149
  # A ViewSet for RpmRemote.
150
150
  # @param [Hash] opts the optional parameters
151
+ # @option opts [String] :ordering Which field to use when ordering the results.
151
152
  # @option opts [String] :name
152
153
  # @option opts [String] :name__in Filter results where name is in a comma-separated list of values
153
154
  # @option opts [String] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
@@ -169,6 +170,7 @@ module PulpRpmClient
169
170
  # List rpm remotes
170
171
  # A ViewSet for RpmRemote.
171
172
  # @param [Hash] opts the optional parameters
173
+ # @option opts [String] :ordering Which field to use when ordering the results.
172
174
  # @option opts [String] :name
173
175
  # @option opts [String] :name__in Filter results where name is in a comma-separated list of values
174
176
  # @option opts [String] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
@@ -191,6 +193,7 @@ module PulpRpmClient
191
193
 
192
194
  # query parameters
193
195
  query_params = opts[:query_params] || {}
196
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
194
197
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
195
198
  query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
196
199
  query_params[:'pulp_last_updated__lt'] = opts[:'pulp_last_updated__lt'] if !opts[:'pulp_last_updated__lt'].nil?
@@ -148,6 +148,7 @@ module PulpRpmClient
148
148
  # List rpm repositorys
149
149
  # A ViewSet for RpmRepository.
150
150
  # @param [Hash] opts the optional parameters
151
+ # @option opts [String] :ordering Which field to use when ordering the results.
151
152
  # @option opts [String] :name
152
153
  # @option opts [String] :name__in Filter results where name is in a comma-separated list of values
153
154
  # @option opts [Integer] :limit Number of results to return per page.
@@ -163,6 +164,7 @@ module PulpRpmClient
163
164
  # List rpm repositorys
164
165
  # A ViewSet for RpmRepository.
165
166
  # @param [Hash] opts the optional parameters
167
+ # @option opts [String] :ordering Which field to use when ordering the results.
166
168
  # @option opts [String] :name
167
169
  # @option opts [String] :name__in Filter results where name is in a comma-separated list of values
168
170
  # @option opts [Integer] :limit Number of results to return per page.
@@ -179,6 +181,7 @@ module PulpRpmClient
179
181
 
180
182
  # query parameters
181
183
  query_params = opts[:query_params] || {}
184
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
182
185
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
183
186
  query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
184
187
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
@@ -264,5 +264,73 @@ module PulpRpmClient
264
264
  end
265
265
  return data, status_code, headers
266
266
  end
267
+
268
+ # Trigger an asynchronous task to repair a repositroy version.
269
+ # @param rpm_repository_version_href [String] URI of Repository Version. e.g.: /pulp/api/v3/repositories/rpm/rpm/1/versions/1/
270
+ # @param data [RepositoryVersion]
271
+ # @param [Hash] opts the optional parameters
272
+ # @return [AsyncOperationResponse]
273
+ def repair(rpm_repository_version_href, data, opts = {})
274
+ data, _status_code, _headers = repair_with_http_info(rpm_repository_version_href, data, opts)
275
+ data
276
+ end
277
+
278
+ # Trigger an asynchronous task to repair a repositroy version.
279
+ # @param rpm_repository_version_href [String] URI of Repository Version. e.g.: /pulp/api/v3/repositories/rpm/rpm/1/versions/1/
280
+ # @param data [RepositoryVersion]
281
+ # @param [Hash] opts the optional parameters
282
+ # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
283
+ def repair_with_http_info(rpm_repository_version_href, data, opts = {})
284
+ if @api_client.config.debugging
285
+ @api_client.config.logger.debug 'Calling API: RepositoriesRpmVersionsApi.repair ...'
286
+ end
287
+ # verify the required parameter 'rpm_repository_version_href' is set
288
+ if @api_client.config.client_side_validation && rpm_repository_version_href.nil?
289
+ fail ArgumentError, "Missing the required parameter 'rpm_repository_version_href' when calling RepositoriesRpmVersionsApi.repair"
290
+ end
291
+ # verify the required parameter 'data' is set
292
+ if @api_client.config.client_side_validation && data.nil?
293
+ fail ArgumentError, "Missing the required parameter 'data' when calling RepositoriesRpmVersionsApi.repair"
294
+ end
295
+ # resource path
296
+ local_var_path = '{rpm_repository_version_href}repair/'.sub('{' + 'rpm_repository_version_href' + '}', CGI.escape(rpm_repository_version_href.to_s).gsub('%2F', '/'))
297
+
298
+ # query parameters
299
+ query_params = opts[:query_params] || {}
300
+
301
+ # header parameters
302
+ header_params = opts[:header_params] || {}
303
+ # HTTP header 'Accept' (if needed)
304
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
305
+ # HTTP header 'Content-Type'
306
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
307
+
308
+ # form parameters
309
+ form_params = opts[:form_params] || {}
310
+
311
+ # http body (model)
312
+ post_body = opts[:body] || @api_client.object_to_http_body(data)
313
+
314
+ # return_type
315
+ return_type = opts[:return_type] || 'AsyncOperationResponse'
316
+
317
+ # auth_names
318
+ auth_names = opts[:auth_names] || ['Basic']
319
+
320
+ new_options = opts.merge(
321
+ :header_params => header_params,
322
+ :query_params => query_params,
323
+ :form_params => form_params,
324
+ :body => post_body,
325
+ :auth_names => auth_names,
326
+ :return_type => return_type
327
+ )
328
+
329
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
330
+ if @api_client.config.debugging
331
+ @api_client.config.logger.debug "API called: RepositoriesRpmVersionsApi#repair\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
332
+ end
333
+ return data, status_code, headers
334
+ end
267
335
  end
268
336
  end
@@ -23,6 +23,9 @@ module PulpRpmClient
23
23
  # List of content types to skip during sync.
24
24
  attr_accessor :skip_types
25
25
 
26
+ # Whether or not to optimize sync.
27
+ attr_accessor :optimize
28
+
26
29
  class EnumAttributeValidator
27
30
  attr_reader :datatype
28
31
  attr_reader :allowable_values
@@ -50,7 +53,8 @@ module PulpRpmClient
50
53
  {
51
54
  :'remote' => :'remote',
52
55
  :'mirror' => :'mirror',
53
- :'skip_types' => :'skip_types'
56
+ :'skip_types' => :'skip_types',
57
+ :'optimize' => :'optimize'
54
58
  }
55
59
  end
56
60
 
@@ -59,7 +63,8 @@ module PulpRpmClient
59
63
  {
60
64
  :'remote' => :'String',
61
65
  :'mirror' => :'Boolean',
62
- :'skip_types' => :'Array<String>'
66
+ :'skip_types' => :'Array<String>',
67
+ :'optimize' => :'Boolean'
63
68
  }
64
69
  end
65
70
 
@@ -99,6 +104,12 @@ module PulpRpmClient
99
104
  self.skip_types = value
100
105
  end
101
106
  end
107
+
108
+ if attributes.key?(:'optimize')
109
+ self.optimize = attributes[:'optimize']
110
+ else
111
+ self.optimize = true
112
+ end
102
113
  end
103
114
 
104
115
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -126,7 +137,8 @@ module PulpRpmClient
126
137
  self.class == o.class &&
127
138
  remote == o.remote &&
128
139
  mirror == o.mirror &&
129
- skip_types == o.skip_types
140
+ skip_types == o.skip_types &&
141
+ optimize == o.optimize
130
142
  end
131
143
 
132
144
  # @see the `==` method
@@ -138,7 +150,7 @@ module PulpRpmClient
138
150
  # Calculates hash code according to all attributes.
139
151
  # @return [Integer] Hash code
140
152
  def hash
141
- [remote, mirror, skip_types].hash
153
+ [remote, mirror, skip_types, optimize].hash
142
154
  end
143
155
 
144
156
  # Builds the object from hash
@@ -24,13 +24,43 @@ module PulpRpmClient
24
24
  # A URI of the repository to be published.
25
25
  attr_accessor :repository
26
26
 
27
+ # The checksum type for metadata.
28
+ attr_accessor :metadata_checksum_type
29
+
30
+ # The checksum type for packages.
31
+ attr_accessor :package_checksum_type
32
+
33
+ class EnumAttributeValidator
34
+ attr_reader :datatype
35
+ attr_reader :allowable_values
36
+
37
+ def initialize(datatype, allowable_values)
38
+ @allowable_values = allowable_values.map do |value|
39
+ case datatype.to_s
40
+ when /Integer/i
41
+ value.to_i
42
+ when /Float/i
43
+ value.to_f
44
+ else
45
+ value
46
+ end
47
+ end
48
+ end
49
+
50
+ def valid?(value)
51
+ !value || allowable_values.include?(value)
52
+ end
53
+ end
54
+
27
55
  # Attribute mapping from ruby-style variable name to JSON key.
28
56
  def self.attribute_map
29
57
  {
30
58
  :'pulp_href' => :'pulp_href',
31
59
  :'pulp_created' => :'pulp_created',
32
60
  :'repository_version' => :'repository_version',
33
- :'repository' => :'repository'
61
+ :'repository' => :'repository',
62
+ :'metadata_checksum_type' => :'metadata_checksum_type',
63
+ :'package_checksum_type' => :'package_checksum_type'
34
64
  }
35
65
  end
36
66
 
@@ -40,7 +70,9 @@ module PulpRpmClient
40
70
  :'pulp_href' => :'String',
41
71
  :'pulp_created' => :'DateTime',
42
72
  :'repository_version' => :'String',
43
- :'repository' => :'String'
73
+ :'repository' => :'String',
74
+ :'metadata_checksum_type' => :'String',
75
+ :'package_checksum_type' => :'String'
44
76
  }
45
77
  end
46
78
 
@@ -80,6 +112,18 @@ module PulpRpmClient
80
112
  if attributes.key?(:'repository')
81
113
  self.repository = attributes[:'repository']
82
114
  end
115
+
116
+ if attributes.key?(:'metadata_checksum_type')
117
+ self.metadata_checksum_type = attributes[:'metadata_checksum_type']
118
+ else
119
+ self.metadata_checksum_type = 'sha256'
120
+ end
121
+
122
+ if attributes.key?(:'package_checksum_type')
123
+ self.package_checksum_type = attributes[:'package_checksum_type']
124
+ else
125
+ self.package_checksum_type = 'sha256'
126
+ end
83
127
  end
84
128
 
85
129
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -92,9 +136,33 @@ module PulpRpmClient
92
136
  # Check to see if the all the properties in the model are valid
93
137
  # @return true if the model is valid
94
138
  def valid?
139
+ metadata_checksum_type_validator = EnumAttributeValidator.new('String', ["unknown", "md5", "sha1", "sha224", "sha256", "sha384", "sha512"])
140
+ return false unless metadata_checksum_type_validator.valid?(@metadata_checksum_type)
141
+ package_checksum_type_validator = EnumAttributeValidator.new('String', ["unknown", "md5", "sha1", "sha224", "sha256", "sha384", "sha512"])
142
+ return false unless package_checksum_type_validator.valid?(@package_checksum_type)
95
143
  true
96
144
  end
97
145
 
146
+ # Custom attribute writer method checking allowed values (enum).
147
+ # @param [Object] metadata_checksum_type Object to be assigned
148
+ def metadata_checksum_type=(metadata_checksum_type)
149
+ validator = EnumAttributeValidator.new('String', ["unknown", "md5", "sha1", "sha224", "sha256", "sha384", "sha512"])
150
+ unless validator.valid?(metadata_checksum_type)
151
+ fail ArgumentError, "invalid value for \"metadata_checksum_type\", must be one of #{validator.allowable_values}."
152
+ end
153
+ @metadata_checksum_type = metadata_checksum_type
154
+ end
155
+
156
+ # Custom attribute writer method checking allowed values (enum).
157
+ # @param [Object] package_checksum_type Object to be assigned
158
+ def package_checksum_type=(package_checksum_type)
159
+ validator = EnumAttributeValidator.new('String', ["unknown", "md5", "sha1", "sha224", "sha256", "sha384", "sha512"])
160
+ unless validator.valid?(package_checksum_type)
161
+ fail ArgumentError, "invalid value for \"package_checksum_type\", must be one of #{validator.allowable_values}."
162
+ end
163
+ @package_checksum_type = package_checksum_type
164
+ end
165
+
98
166
  # Checks equality by comparing each attribute.
99
167
  # @param [Object] Object to be compared
100
168
  def ==(o)
@@ -103,7 +171,9 @@ module PulpRpmClient
103
171
  pulp_href == o.pulp_href &&
104
172
  pulp_created == o.pulp_created &&
105
173
  repository_version == o.repository_version &&
106
- repository == o.repository
174
+ repository == o.repository &&
175
+ metadata_checksum_type == o.metadata_checksum_type &&
176
+ package_checksum_type == o.package_checksum_type
107
177
  end
108
178
 
109
179
  # @see the `==` method
@@ -115,7 +185,7 @@ module PulpRpmClient
115
185
  # Calculates hash code according to all attributes.
116
186
  # @return [Integer] Hash code
117
187
  def hash
118
- [pulp_href, pulp_created, repository_version, repository].hash
188
+ [pulp_href, pulp_created, repository_version, repository, metadata_checksum_type, package_checksum_type].hash
119
189
  end
120
190
 
121
191
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.2.3
11
11
  =end
12
12
 
13
13
  module PulpRpmClient
14
- VERSION = '3.3.0b1'
14
+ VERSION = '3.3.0'
15
15
  end
@@ -51,6 +51,7 @@ describe 'ContentAdvisoriesApi' do
51
51
  # List update records
52
52
  # Define endpoint name which will appear in the API endpoint for this content type. For example:: http://pulp.example.com/pulp/api/v3/content/rpm/advisories/ Also specify queryset and serializer for UpdateRecord.
53
53
  # @param [Hash] opts the optional parameters
54
+ # @option opts [String] :ordering Which field to use when ordering the results.
54
55
  # @option opts [String] :id Filter results where id matches value
55
56
  # @option opts [String] :id__in Filter results where id is in a comma-separated list of values
56
57
  # @option opts [String] :status Filter results where status matches value
@@ -48,6 +48,7 @@ describe 'ContentDistributionTreesApi' do
48
48
  # List distribution trees
49
49
  # Distribution Tree Viewset.
50
50
  # @param [Hash] opts the optional parameters
51
+ # @option opts [String] :ordering Which field to use when ordering the results.
51
52
  # @option opts [String] :repository_version Repository Version referenced by HREF
52
53
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
53
54
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -54,6 +54,7 @@ describe 'ContentModulemdDefaultsApi' do
54
54
  # List modulemd defaultss
55
55
  # ViewSet for Modulemd.
56
56
  # @param [Hash] opts the optional parameters
57
+ # @option opts [String] :ordering Which field to use when ordering the results.
57
58
  # @option opts [String] :_module Filter results where module matches value
58
59
  # @option opts [String] :module__in Filter results where module is in a comma-separated list of values
59
60
  # @option opts [String] :stream Filter results where stream matches value
@@ -59,6 +59,7 @@ describe 'ContentModulemdsApi' do
59
59
  # List modulemds
60
60
  # ViewSet for Modulemd.
61
61
  # @param [Hash] opts the optional parameters
62
+ # @option opts [String] :ordering Which field to use when ordering the results.
62
63
  # @option opts [String] :name Filter results where name matches value
63
64
  # @option opts [String] :name__in Filter results where name is in a comma-separated list of values
64
65
  # @option opts [String] :stream Filter results where stream matches value
@@ -48,6 +48,7 @@ describe 'ContentPackagecategoriesApi' do
48
48
  # List package categorys
49
49
  # PackageCategory ViewSet.
50
50
  # @param [Hash] opts the optional parameters
51
+ # @option opts [String] :ordering Which field to use when ordering the results.
51
52
  # @option opts [String] :repository_version Repository Version referenced by HREF
52
53
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
53
54
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -48,6 +48,7 @@ describe 'ContentPackageenvironmentsApi' do
48
48
  # List package environments
49
49
  # PackageEnvironment ViewSet.
50
50
  # @param [Hash] opts the optional parameters
51
+ # @option opts [String] :ordering Which field to use when ordering the results.
51
52
  # @option opts [String] :repository_version Repository Version referenced by HREF
52
53
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
53
54
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -48,6 +48,7 @@ describe 'ContentPackagegroupsApi' do
48
48
  # List package groups
49
49
  # PackageGroup ViewSet.
50
50
  # @param [Hash] opts the optional parameters
51
+ # @option opts [String] :ordering Which field to use when ordering the results.
51
52
  # @option opts [String] :repository_version Repository Version referenced by HREF
52
53
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
53
54
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -48,6 +48,7 @@ describe 'ContentPackagelangpacksApi' do
48
48
  # List package langpackss
49
49
  # PackageLangpacks ViewSet.
50
50
  # @param [Hash] opts the optional parameters
51
+ # @option opts [String] :ordering Which field to use when ordering the results.
51
52
  # @option opts [String] :repository_version Repository Version referenced by HREF
52
53
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
53
54
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -51,6 +51,7 @@ describe 'ContentPackagesApi' do
51
51
  # List packages
52
52
  # Define endpoint name which will appear in the API endpoint for this content type. For example:: http://pulp.example.com/pulp/api/v3/content/rpm/packages/ Also specify queryset and serializer for Package.
53
53
  # @param [Hash] opts the optional parameters
54
+ # @option opts [String] :ordering Which field to use when ordering the results.
54
55
  # @option opts [String] :name Filter results where name matches value
55
56
  # @option opts [String] :name__in Filter results where name is in a comma-separated list of values
56
57
  # @option opts [String] :name__ne Filter results where name not equal to value
@@ -48,6 +48,7 @@ describe 'ContentRepoMetadataFilesApi' do
48
48
  # List repo metadata files
49
49
  # RepoMetadataFile Viewset.
50
50
  # @param [Hash] opts the optional parameters
51
+ # @option opts [String] :ordering Which field to use when ordering the results.
51
52
  # @option opts [String] :repository_version Repository Version referenced by HREF
52
53
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
53
54
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -60,6 +60,7 @@ describe 'DistributionsRpmApi' do
60
60
  # List rpm distributions
61
61
  # ViewSet for RPM Distributions.
62
62
  # @param [Hash] opts the optional parameters
63
+ # @option opts [String] :ordering Which field to use when ordering the results.
63
64
  # @option opts [String] :name
64
65
  # @option opts [String] :name__in Filter results where name is in a comma-separated list of values
65
66
  # @option opts [String] :base_path
@@ -60,6 +60,7 @@ describe 'RemotesRpmApi' do
60
60
  # List rpm remotes
61
61
  # A ViewSet for RpmRemote.
62
62
  # @param [Hash] opts the optional parameters
63
+ # @option opts [String] :ordering Which field to use when ordering the results.
63
64
  # @option opts [String] :name
64
65
  # @option opts [String] :name__in Filter results where name is in a comma-separated list of values
65
66
  # @option opts [String] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
@@ -60,6 +60,7 @@ describe 'RepositoriesRpmApi' do
60
60
  # List rpm repositorys
61
61
  # A ViewSet for RpmRepository.
62
62
  # @param [Hash] opts the optional parameters
63
+ # @option opts [String] :ordering Which field to use when ordering the results.
63
64
  # @option opts [String] :name
64
65
  # @option opts [String] :name__in Filter results where name is in a comma-separated list of values
65
66
  # @option opts [Integer] :limit Number of results to return per page.
@@ -88,4 +88,16 @@ describe 'RepositoriesRpmVersionsApi' do
88
88
  end
89
89
  end
90
90
 
91
+ # unit tests for repair
92
+ # Trigger an asynchronous task to repair a repositroy version.
93
+ # @param rpm_repository_version_href URI of Repository Version. e.g.: /pulp/api/v3/repositories/rpm/rpm/1/versions/1/
94
+ # @param data
95
+ # @param [Hash] opts the optional parameters
96
+ # @return [AsyncOperationResponse]
97
+ describe 'repair test' do
98
+ it 'should work' do
99
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
100
+ end
101
+ end
102
+
91
103
  end
@@ -54,4 +54,10 @@ describe 'RpmRepositorySyncURL' do
54
54
  end
55
55
  end
56
56
 
57
+ describe 'test attribute "optimize"' do
58
+ it 'should work' do
59
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
60
+ end
61
+ end
62
+
57
63
  end
@@ -56,4 +56,24 @@ describe 'RpmRpmPublication' do
56
56
  end
57
57
  end
58
58
 
59
+ describe 'test attribute "metadata_checksum_type"' do
60
+ it 'should work' do
61
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
62
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["unknown", "md5", "sha1", "sha224", "sha256", "sha384", "sha512"])
63
+ # validator.allowable_values.each do |value|
64
+ # expect { @instance.metadata_checksum_type = value }.not_to raise_error
65
+ # end
66
+ end
67
+ end
68
+
69
+ describe 'test attribute "package_checksum_type"' do
70
+ it 'should work' do
71
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
72
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["unknown", "md5", "sha1", "sha224", "sha256", "sha384", "sha512"])
73
+ # validator.allowable_values.each do |value|
74
+ # expect { @instance.package_checksum_type = value }.not_to raise_error
75
+ # end
76
+ end
77
+ end
78
+
59
79
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pulp_rpm_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.0b1
4
+ version: 3.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-13 00:00:00.000000000 Z
11
+ date: 2020-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -270,9 +270,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
270
270
  version: '1.9'
271
271
  required_rubygems_version: !ruby/object:Gem::Requirement
272
272
  requirements:
273
- - - ">"
273
+ - - ">="
274
274
  - !ruby/object:Gem::Version
275
- version: 1.3.1
275
+ version: '0'
276
276
  requirements: []
277
277
  rubygems_version: 3.0.6
278
278
  signing_key: