pulp_python_client 3.14.0 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5c3379f10b3e6aa9772f346e8d82582675a780f8e906113ecc5b4d0473319c4f
4
- data.tar.gz: 1fdcc8194fe1339b04b8cc36a5df553cef943940888b1b804d6eaf27e6de68fb
3
+ metadata.gz: 4e6e955f56d19af4f7baed4635429b0a38b0a7662f798950365b881f11053250
4
+ data.tar.gz: 61d57ed79665b6c60d1974bdbdda608a9dbf225b70639afddfbbd03c7d816613
5
5
  SHA512:
6
- metadata.gz: 0a8031708363866d4a447104e3c424002a3b39ebe247937c17cfa9bd81ac128c844aa6c9d6051a950942e3e033cb025da2f378bb04c61d32616e7c57d5fc16a3
7
- data.tar.gz: 2117824b66af729df9b6bdef75e6c78b22e13d951f545f746bb881865405d662c77de0a83af11b57498321aa594d9219c1b846b97373299fedfa07b88a7b1b55
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.14.0
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.14.0.gem
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.14.0.gem` to install the development dependencies)
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.14.0'
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 &#x60;Repository&#x60;, without creating a new &#x60;RepositoryVersion&#x60;.
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]
@@ -11,5 +11,5 @@ Generator version: 7.10.0
11
11
  =end
12
12
 
13
13
  module PulpPythonClient
14
- VERSION = '3.14.0'
14
+ VERSION = '3.15.0'
15
15
  end
@@ -28,7 +28,6 @@ Gem::Specification.new do |s|
28
28
  s.required_ruby_version = ">= 2.7"
29
29
  s.metadata = {}
30
30
 
31
- s.add_runtime_dependency 'faraday-net_http', '>= 2.0', '< 3.1'
32
31
  s.add_runtime_dependency 'faraday', '>= 1.0.1', '< 2.9'
33
32
  s.add_runtime_dependency 'faraday-multipart'
34
33
  s.add_runtime_dependency 'marcel'
@@ -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 &#x60;Repository&#x60;, without creating a new &#x60;RepositoryVersion&#x60;.
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,35 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pulp_python_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.14.0
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-04-10 00:00:00.000000000 Z
11
+ date: 2025-05-13 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: faraday-net_http
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: '2.0'
20
- - - "<"
21
- - !ruby/object:Gem::Version
22
- version: '3.1'
23
- type: :runtime
24
- prerelease: false
25
- version_requirements: !ruby/object:Gem::Requirement
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- version: '2.0'
30
- - - "<"
31
- - !ruby/object:Gem::Version
32
- version: '3.1'
33
13
  - !ruby/object:Gem::Dependency
34
14
  name: faraday
35
15
  requirement: !ruby/object:Gem::Requirement
@@ -286,53 +266,53 @@ signing_key:
286
266
  specification_version: 4
287
267
  summary: Pulp 3 API Ruby Gem
288
268
  test_files:
289
- - spec/api/pypi_api_spec.rb
290
- - spec/api/repositories_python_versions_api_spec.rb
291
- - spec/api/publications_pypi_api_spec.rb
269
+ - spec/api/distributions_pypi_api_spec.rb
292
270
  - spec/api/pypi_legacy_api_spec.rb
293
271
  - spec/api/pypi_metadata_api_spec.rb
294
- - spec/api/content_packages_api_spec.rb
295
- - spec/api/remotes_python_api_spec.rb
296
272
  - spec/api/pypi_simple_api_spec.rb
297
- - spec/api/distributions_pypi_api_spec.rb
273
+ - spec/api/repositories_python_versions_api_spec.rb
274
+ - spec/api/remotes_python_api_spec.rb
275
+ - spec/api/pypi_api_spec.rb
276
+ - spec/api/content_packages_api_spec.rb
277
+ - spec/api/publications_pypi_api_spec.rb
298
278
  - spec/api/repositories_python_api_spec.rb
279
+ - spec/models/package_upload_task_response_spec.rb
280
+ - spec/models/patchedpython_python_repository_spec.rb
281
+ - spec/models/nested_role_response_spec.rb
299
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
300
287
  - spec/models/patchedpython_python_distribution_spec.rb
301
- - spec/models/python_python_repository_response_spec.rb
302
- - spec/models/paginatedpython_python_repository_response_list_spec.rb
303
- - spec/models/set_label_spec.rb
304
- - spec/models/policy_enum_spec.rb
305
- - spec/models/python_python_package_content_response_spec.rb
288
+ - spec/models/python_python_publication_response_spec.rb
306
289
  - spec/models/repository_add_remove_content_spec.rb
307
- - spec/models/exclude_platforms_enum_spec.rb
308
290
  - spec/models/package_metadata_response_spec.rb
291
+ - spec/models/set_label_response_spec.rb
292
+ - spec/models/paginatedpython_python_package_content_response_list_spec.rb
293
+ - spec/models/paginatedpython_python_repository_response_list_spec.rb
294
+ - spec/models/python_python_repository_spec.rb
309
295
  - spec/models/paginatedpython_python_remote_response_list_spec.rb
310
- - spec/models/patchedpython_python_remote_spec.rb
311
- - spec/models/paginatedpython_python_distribution_response_list_spec.rb
312
- - spec/models/nested_role_response_spec.rb
313
- - spec/models/nested_role_spec.rb
314
- - spec/models/package_types_enum_spec.rb
315
- - spec/models/python_python_remote_spec.rb
316
- - spec/models/repository_sync_url_spec.rb
317
- - spec/models/patchedpython_python_repository_spec.rb
318
296
  - spec/models/unset_label_spec.rb
319
- - spec/models/python_python_distribution_response_spec.rb
320
- - spec/models/unset_label_response_spec.rb
321
- - spec/models/python_python_publication_response_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
322
305
  - spec/models/python_python_distribution_spec.rb
323
- - spec/models/repository_version_response_spec.rb
324
- - spec/models/paginatedpython_python_package_content_response_list_spec.rb
306
+ - spec/models/python_python_distribution_response_spec.rb
325
307
  - spec/models/python_python_publication_spec.rb
326
- - spec/models/python_python_remote_response_spec.rb
308
+ - spec/models/set_label_spec.rb
309
+ - spec/models/nested_role_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
327
313
  - spec/models/paginated_repository_version_response_list_spec.rb
328
- - spec/models/my_permissions_response_spec.rb
329
- - spec/models/paginatedpython_python_publication_response_list_spec.rb
330
- - spec/models/python_python_remote_response_hidden_fields_inner_spec.rb
331
- - spec/models/object_roles_response_spec.rb
332
- - spec/models/package_upload_task_response_spec.rb
333
- - spec/models/set_label_response_spec.rb
314
+ - spec/models/repository_sync_url_spec.rb
315
+ - spec/models/paginatedpython_python_distribution_response_list_spec.rb
334
316
  - spec/models/summary_response_spec.rb
335
- - spec/models/content_summary_response_spec.rb
336
- - spec/models/python_python_repository_spec.rb
337
- - spec/models/async_operation_response_spec.rb
317
+ - spec/models/unset_label_response_spec.rb
338
318
  - spec/spec_helper.rb