pulp_python_client 3.13.5 → 3.15.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.
- checksums.yaml +4 -4
- data/README.md +5 -4
- data/docs/RepositoriesPythonApi.md +71 -0
- data/lib/pulp_python_client/api/repositories_python_api.rb +63 -0
- data/lib/pulp_python_client/version.rb +1 -1
- data/spec/api/repositories_python_api_spec.rb +12 -0
- metadata +35 -35
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4e6e955f56d19af4f7baed4635429b0a38b0a7662f798950365b881f11053250
|
4
|
+
data.tar.gz: 61d57ed79665b6c60d1974bdbdda608a9dbf225b70639afddfbbd03c7d816613
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e57f3f8f04c91c798cf5089c92549cbb29082edecc90d6daafc715d6281ddb3bef627f7cd0e945f69aba9ecbf267197c02d4265ae5e6ef964da22cbc95a9b159
|
7
|
+
data.tar.gz: 0f39f7a8cb5fc229fca744df6401a9be4fbcd333619caf418c79f685137db9b2400dd19aace97c3ff00f1f3800b533d04f70b7b3dd17f825515134169f266437
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ Fetch, Upload, Organize, and Distribute Software Packages
|
|
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.
|
10
|
+
- Package version: 3.15.0
|
11
11
|
- Generator version: 7.10.0
|
12
12
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
13
13
|
For more information, please visit [https://pulpproject.org](https://pulpproject.org)
|
@@ -25,16 +25,16 @@ gem build pulp_python_client.gemspec
|
|
25
25
|
Then either install the gem locally:
|
26
26
|
|
27
27
|
```shell
|
28
|
-
gem install ./pulp_python_client-3.
|
28
|
+
gem install ./pulp_python_client-3.15.0.gem
|
29
29
|
```
|
30
30
|
|
31
|
-
(for development, run `gem install --dev ./pulp_python_client-3.
|
31
|
+
(for development, run `gem install --dev ./pulp_python_client-3.15.0.gem` to install the development dependencies)
|
32
32
|
|
33
33
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
34
34
|
|
35
35
|
Finally add this to the Gemfile:
|
36
36
|
|
37
|
-
gem 'pulp_python_client', '~> 3.
|
37
|
+
gem 'pulp_python_client', '~> 3.15.0'
|
38
38
|
|
39
39
|
### Install from Git
|
40
40
|
|
@@ -170,6 +170,7 @@ Class | Method | HTTP request | Description
|
|
170
170
|
*PulpPythonClient::RepositoriesPythonApi* | [**partial_update**](docs/RepositoriesPythonApi.md#partial_update) | **PATCH** {python_python_repository_href} | Update a python repository
|
171
171
|
*PulpPythonClient::RepositoriesPythonApi* | [**read**](docs/RepositoriesPythonApi.md#read) | **GET** {python_python_repository_href} | Inspect a python repository
|
172
172
|
*PulpPythonClient::RepositoriesPythonApi* | [**remove_role**](docs/RepositoriesPythonApi.md#remove_role) | **POST** {python_python_repository_href}remove_role/ | Remove a role
|
173
|
+
*PulpPythonClient::RepositoriesPythonApi* | [**repair_metadata**](docs/RepositoriesPythonApi.md#repair_metadata) | **POST** {python_python_repository_href}repair_metadata/ | Repair metadata
|
173
174
|
*PulpPythonClient::RepositoriesPythonApi* | [**set_label**](docs/RepositoriesPythonApi.md#set_label) | **POST** {python_python_repository_href}set_label/ | Set a label
|
174
175
|
*PulpPythonClient::RepositoriesPythonApi* | [**sync**](docs/RepositoriesPythonApi.md#sync) | **POST** {python_python_repository_href}sync/ | Sync from remote
|
175
176
|
*PulpPythonClient::RepositoriesPythonApi* | [**unset_label**](docs/RepositoriesPythonApi.md#unset_label) | **POST** {python_python_repository_href}unset_label/ | Unset a label
|
@@ -14,6 +14,7 @@ All URIs are relative to *http://localhost:24817*
|
|
14
14
|
| [**partial_update**](RepositoriesPythonApi.md#partial_update) | **PATCH** {python_python_repository_href} | Update a python repository |
|
15
15
|
| [**read**](RepositoriesPythonApi.md#read) | **GET** {python_python_repository_href} | Inspect a python repository |
|
16
16
|
| [**remove_role**](RepositoriesPythonApi.md#remove_role) | **POST** {python_python_repository_href}remove_role/ | Remove a role |
|
17
|
+
| [**repair_metadata**](RepositoriesPythonApi.md#repair_metadata) | **POST** {python_python_repository_href}repair_metadata/ | Repair metadata |
|
17
18
|
| [**set_label**](RepositoriesPythonApi.md#set_label) | **POST** {python_python_repository_href}set_label/ | Set a label |
|
18
19
|
| [**sync**](RepositoriesPythonApi.md#sync) | **POST** {python_python_repository_href}sync/ | Sync from remote |
|
19
20
|
| [**unset_label**](RepositoriesPythonApi.md#unset_label) | **POST** {python_python_repository_href}unset_label/ | Unset a label |
|
@@ -806,6 +807,76 @@ end
|
|
806
807
|
- **Accept**: application/json
|
807
808
|
|
808
809
|
|
810
|
+
## repair_metadata
|
811
|
+
|
812
|
+
> <AsyncOperationResponse> repair_metadata(python_python_repository_href)
|
813
|
+
|
814
|
+
Repair metadata
|
815
|
+
|
816
|
+
Trigger an asynchronous task to repair Python metadata. This task will repair metadata of all packages for the specified `Repository`, without creating a new `RepositoryVersion`.
|
817
|
+
|
818
|
+
### Examples
|
819
|
+
|
820
|
+
```ruby
|
821
|
+
require 'time'
|
822
|
+
require 'pulp_python_client'
|
823
|
+
# setup authorization
|
824
|
+
PulpPythonClient.configure do |config|
|
825
|
+
# Configure HTTP basic authorization: basicAuth
|
826
|
+
config.username = 'YOUR USERNAME'
|
827
|
+
config.password = 'YOUR PASSWORD'
|
828
|
+
end
|
829
|
+
|
830
|
+
api_instance = PulpPythonClient::RepositoriesPythonApi.new
|
831
|
+
python_python_repository_href = 'python_python_repository_href_example' # String |
|
832
|
+
|
833
|
+
begin
|
834
|
+
# Repair metadata
|
835
|
+
result = api_instance.repair_metadata(python_python_repository_href)
|
836
|
+
p result
|
837
|
+
rescue PulpPythonClient::ApiError => e
|
838
|
+
puts "Error when calling RepositoriesPythonApi->repair_metadata: #{e}"
|
839
|
+
end
|
840
|
+
```
|
841
|
+
|
842
|
+
#### Using the repair_metadata_with_http_info variant
|
843
|
+
|
844
|
+
This returns an Array which contains the response data, status code and headers.
|
845
|
+
|
846
|
+
> <Array(<AsyncOperationResponse>, Integer, Hash)> repair_metadata_with_http_info(python_python_repository_href)
|
847
|
+
|
848
|
+
```ruby
|
849
|
+
begin
|
850
|
+
# Repair metadata
|
851
|
+
data, status_code, headers = api_instance.repair_metadata_with_http_info(python_python_repository_href)
|
852
|
+
p status_code # => 2xx
|
853
|
+
p headers # => { ... }
|
854
|
+
p data # => <AsyncOperationResponse>
|
855
|
+
rescue PulpPythonClient::ApiError => e
|
856
|
+
puts "Error when calling RepositoriesPythonApi->repair_metadata_with_http_info: #{e}"
|
857
|
+
end
|
858
|
+
```
|
859
|
+
|
860
|
+
### Parameters
|
861
|
+
|
862
|
+
| Name | Type | Description | Notes |
|
863
|
+
| ---- | ---- | ----------- | ----- |
|
864
|
+
| **python_python_repository_href** | **String** | | |
|
865
|
+
|
866
|
+
### Return type
|
867
|
+
|
868
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
869
|
+
|
870
|
+
### Authorization
|
871
|
+
|
872
|
+
[basicAuth](../README.md#basicAuth)
|
873
|
+
|
874
|
+
### HTTP request headers
|
875
|
+
|
876
|
+
- **Content-Type**: Not defined
|
877
|
+
- **Accept**: application/json
|
878
|
+
|
879
|
+
|
809
880
|
## set_label
|
810
881
|
|
811
882
|
> <SetLabelResponse> set_label(python_python_repository_href, set_label)
|
@@ -804,6 +804,69 @@ module PulpPythonClient
|
|
804
804
|
return data, status_code, headers
|
805
805
|
end
|
806
806
|
|
807
|
+
# Repair metadata
|
808
|
+
# Trigger an asynchronous task to repair Python metadata. This task will repair metadata of all packages for the specified `Repository`, without creating a new `RepositoryVersion`.
|
809
|
+
# @param python_python_repository_href [String]
|
810
|
+
# @param [Hash] opts the optional parameters
|
811
|
+
# @return [AsyncOperationResponse]
|
812
|
+
def repair_metadata(python_python_repository_href, opts = {})
|
813
|
+
data, _status_code, _headers = repair_metadata_with_http_info(python_python_repository_href, opts)
|
814
|
+
data
|
815
|
+
end
|
816
|
+
|
817
|
+
# Repair metadata
|
818
|
+
# Trigger an asynchronous task to repair Python metadata. This task will repair metadata of all packages for the specified `Repository`, without creating a new `RepositoryVersion`.
|
819
|
+
# @param python_python_repository_href [String]
|
820
|
+
# @param [Hash] opts the optional parameters
|
821
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
822
|
+
def repair_metadata_with_http_info(python_python_repository_href, opts = {})
|
823
|
+
if @api_client.config.debugging
|
824
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesPythonApi.repair_metadata ...'
|
825
|
+
end
|
826
|
+
# verify the required parameter 'python_python_repository_href' is set
|
827
|
+
if @api_client.config.client_side_validation && python_python_repository_href.nil?
|
828
|
+
fail ArgumentError, "Missing the required parameter 'python_python_repository_href' when calling RepositoriesPythonApi.repair_metadata"
|
829
|
+
end
|
830
|
+
# resource path
|
831
|
+
local_var_path = '{python_python_repository_href}repair_metadata/'.sub('{' + 'python_python_repository_href' + '}', CGI.escape(python_python_repository_href.to_s).gsub('%2F', '/'))
|
832
|
+
|
833
|
+
# query parameters
|
834
|
+
query_params = opts[:query_params] || {}
|
835
|
+
|
836
|
+
# header parameters
|
837
|
+
header_params = opts[:header_params] || {}
|
838
|
+
# HTTP header 'Accept' (if needed)
|
839
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
840
|
+
|
841
|
+
# form parameters
|
842
|
+
form_params = opts[:form_params] || {}
|
843
|
+
|
844
|
+
# http body (model)
|
845
|
+
post_body = opts[:debug_body]
|
846
|
+
|
847
|
+
# return_type
|
848
|
+
return_type = opts[:debug_return_type] || 'AsyncOperationResponse'
|
849
|
+
|
850
|
+
# auth_names
|
851
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
852
|
+
|
853
|
+
new_options = opts.merge(
|
854
|
+
:operation => :"RepositoriesPythonApi.repair_metadata",
|
855
|
+
:header_params => header_params,
|
856
|
+
:query_params => query_params,
|
857
|
+
:form_params => form_params,
|
858
|
+
:body => post_body,
|
859
|
+
:auth_names => auth_names,
|
860
|
+
:return_type => return_type
|
861
|
+
)
|
862
|
+
|
863
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
864
|
+
if @api_client.config.debugging
|
865
|
+
@api_client.config.logger.debug "API called: RepositoriesPythonApi#repair_metadata\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
866
|
+
end
|
867
|
+
return data, status_code, headers
|
868
|
+
end
|
869
|
+
|
807
870
|
# Set a label
|
808
871
|
# Set a single pulp_label on the object to a specific value or null.
|
809
872
|
# @param python_python_repository_href [String]
|
@@ -191,6 +191,18 @@ describe 'RepositoriesPythonApi' do
|
|
191
191
|
end
|
192
192
|
end
|
193
193
|
|
194
|
+
# unit tests for repair_metadata
|
195
|
+
# Repair metadata
|
196
|
+
# Trigger an asynchronous task to repair Python metadata. This task will repair metadata of all packages for the specified `Repository`, without creating a new `RepositoryVersion`.
|
197
|
+
# @param python_python_repository_href
|
198
|
+
# @param [Hash] opts the optional parameters
|
199
|
+
# @return [AsyncOperationResponse]
|
200
|
+
describe 'repair_metadata test' do
|
201
|
+
it 'should work' do
|
202
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
203
|
+
end
|
204
|
+
end
|
205
|
+
|
194
206
|
# unit tests for set_label
|
195
207
|
# Set a label
|
196
208
|
# Set a single pulp_label on the object to a specific value or null.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pulp_python_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.15.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: 2025-
|
11
|
+
date: 2025-05-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -266,53 +266,53 @@ signing_key:
|
|
266
266
|
specification_version: 4
|
267
267
|
summary: Pulp 3 API Ruby Gem
|
268
268
|
test_files:
|
269
|
-
- spec/api/repositories_python_api_spec.rb
|
270
269
|
- spec/api/distributions_pypi_api_spec.rb
|
271
|
-
- spec/api/repositories_python_versions_api_spec.rb
|
272
|
-
- spec/api/remotes_python_api_spec.rb
|
273
|
-
- spec/api/pypi_metadata_api_spec.rb
|
274
|
-
- spec/api/content_packages_api_spec.rb
|
275
270
|
- spec/api/pypi_legacy_api_spec.rb
|
271
|
+
- spec/api/pypi_metadata_api_spec.rb
|
276
272
|
- spec/api/pypi_simple_api_spec.rb
|
273
|
+
- spec/api/repositories_python_versions_api_spec.rb
|
274
|
+
- spec/api/remotes_python_api_spec.rb
|
277
275
|
- spec/api/pypi_api_spec.rb
|
276
|
+
- spec/api/content_packages_api_spec.rb
|
278
277
|
- spec/api/publications_pypi_api_spec.rb
|
279
|
-
- spec/
|
280
|
-
- spec/models/object_roles_response_spec.rb
|
281
|
-
- spec/models/paginatedpython_python_distribution_response_list_spec.rb
|
282
|
-
- spec/models/paginatedpython_python_remote_response_list_spec.rb
|
283
|
-
- spec/models/python_python_publication_response_spec.rb
|
284
|
-
- spec/models/paginatedpython_python_publication_response_list_spec.rb
|
285
|
-
- spec/models/python_python_package_content_response_spec.rb
|
286
|
-
- spec/models/patchedpython_python_remote_spec.rb
|
287
|
-
- spec/models/async_operation_response_spec.rb
|
288
|
-
- spec/models/python_python_remote_spec.rb
|
289
|
-
- spec/models/set_label_spec.rb
|
290
|
-
- spec/models/my_permissions_response_spec.rb
|
291
|
-
- spec/models/nested_role_response_spec.rb
|
292
|
-
- spec/models/python_python_publication_spec.rb
|
293
|
-
- spec/models/python_python_remote_response_spec.rb
|
278
|
+
- spec/api/repositories_python_api_spec.rb
|
294
279
|
- spec/models/package_upload_task_response_spec.rb
|
295
280
|
- spec/models/patchedpython_python_repository_spec.rb
|
296
|
-
- spec/models/
|
281
|
+
- spec/models/nested_role_response_spec.rb
|
282
|
+
- spec/models/repair_spec.rb
|
283
|
+
- spec/models/my_permissions_response_spec.rb
|
284
|
+
- spec/models/python_python_remote_response_hidden_fields_inner_spec.rb
|
285
|
+
- spec/models/repository_version_response_spec.rb
|
286
|
+
- spec/models/content_summary_response_spec.rb
|
287
|
+
- spec/models/patchedpython_python_distribution_spec.rb
|
288
|
+
- spec/models/python_python_publication_response_spec.rb
|
297
289
|
- spec/models/repository_add_remove_content_spec.rb
|
298
290
|
- spec/models/package_metadata_response_spec.rb
|
299
291
|
- spec/models/set_label_response_spec.rb
|
300
|
-
- spec/models/repository_sync_url_spec.rb
|
301
|
-
- spec/models/paginatedpython_python_repository_response_list_spec.rb
|
302
292
|
- spec/models/paginatedpython_python_package_content_response_list_spec.rb
|
303
|
-
- spec/models/
|
293
|
+
- spec/models/paginatedpython_python_repository_response_list_spec.rb
|
294
|
+
- spec/models/python_python_repository_spec.rb
|
295
|
+
- spec/models/paginatedpython_python_remote_response_list_spec.rb
|
304
296
|
- spec/models/unset_label_spec.rb
|
297
|
+
- spec/models/python_python_package_content_response_spec.rb
|
298
|
+
- spec/models/python_python_repository_response_spec.rb
|
299
|
+
- spec/models/object_roles_response_spec.rb
|
300
|
+
- spec/models/exclude_platforms_enum_spec.rb
|
301
|
+
- spec/models/python_python_remote_response_spec.rb
|
302
|
+
- spec/models/patchedpython_python_remote_spec.rb
|
303
|
+
- spec/models/paginatedpython_python_publication_response_list_spec.rb
|
304
|
+
- spec/models/policy_enum_spec.rb
|
305
|
+
- spec/models/python_python_distribution_spec.rb
|
305
306
|
- spec/models/python_python_distribution_response_spec.rb
|
306
|
-
- spec/models/
|
307
|
+
- spec/models/python_python_publication_spec.rb
|
308
|
+
- spec/models/set_label_spec.rb
|
307
309
|
- spec/models/nested_role_spec.rb
|
308
|
-
- spec/models/
|
309
|
-
- spec/models/
|
310
|
-
- spec/models/
|
311
|
-
- spec/models/python_python_repository_spec.rb
|
312
|
-
- spec/models/exclude_platforms_enum_spec.rb
|
310
|
+
- spec/models/python_python_remote_spec.rb
|
311
|
+
- spec/models/async_operation_response_spec.rb
|
312
|
+
- spec/models/package_types_enum_spec.rb
|
313
313
|
- spec/models/paginated_repository_version_response_list_spec.rb
|
314
|
-
- spec/models/
|
314
|
+
- spec/models/repository_sync_url_spec.rb
|
315
|
+
- spec/models/paginatedpython_python_distribution_response_list_spec.rb
|
315
316
|
- spec/models/summary_response_spec.rb
|
316
|
-
- spec/models/
|
317
|
-
- spec/models/repository_version_response_spec.rb
|
317
|
+
- spec/models/unset_label_response_spec.rb
|
318
318
|
- spec/spec_helper.rb
|