pulp_maven_client 0.20.0 → 0.21.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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5f9ee8236440ed9cb5501f20ef4834d3d8a505bfe1701df3510991c5ffd5fda0
|
|
4
|
+
data.tar.gz: 57cce39904acc04966334123eb9a553ef08bc92583a2a25f149b5b9b59afc27e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a641e553382b02f260724bc848fd7379fe2a6511ed20a091826ec155d2e2d1bd5bd1255dec40f5ce419b13a26b01adeeadd76e1fd481e5e370258964dce792eb
|
|
7
|
+
data.tar.gz: 11e62ee250795584f5fec3cfc5e25d2042206c6f282c6e2fd57ad5e9d390f53d1761303708df44e507710202b31d68deebadb4a31bb2d554dcef3a766430d759
|
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: 0.
|
|
10
|
+
- Package version: 0.21.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_maven_client.gemspec
|
|
|
25
25
|
Then either install the gem locally:
|
|
26
26
|
|
|
27
27
|
```shell
|
|
28
|
-
gem install ./pulp_maven_client-0.
|
|
28
|
+
gem install ./pulp_maven_client-0.21.0.gem
|
|
29
29
|
```
|
|
30
30
|
|
|
31
|
-
(for development, run `gem install --dev ./pulp_maven_client-0.
|
|
31
|
+
(for development, run `gem install --dev ./pulp_maven_client-0.21.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_maven_client', '~> 0.
|
|
37
|
+
gem 'pulp_maven_client', '~> 0.21.0'
|
|
38
38
|
|
|
39
39
|
### Install from Git
|
|
40
40
|
|
|
@@ -138,6 +138,7 @@ Class | Method | HTTP request | Description
|
|
|
138
138
|
*PulpMavenClient::RepositoriesMavenApi* | [**modify**](docs/RepositoriesMavenApi.md#modify) | **POST** {maven_maven_repository_href}modify/ | Modify Repository Content
|
|
139
139
|
*PulpMavenClient::RepositoriesMavenApi* | [**partial_update**](docs/RepositoriesMavenApi.md#partial_update) | **PATCH** {maven_maven_repository_href} | Update a maven repository
|
|
140
140
|
*PulpMavenClient::RepositoriesMavenApi* | [**read**](docs/RepositoriesMavenApi.md#read) | **GET** {maven_maven_repository_href} | Inspect a maven repository
|
|
141
|
+
*PulpMavenClient::RepositoriesMavenApi* | [**repair_metadata**](docs/RepositoriesMavenApi.md#repair_metadata) | **POST** {maven_maven_repository_href}repair_metadata/ | Repair metadata
|
|
141
142
|
*PulpMavenClient::RepositoriesMavenApi* | [**set_label**](docs/RepositoriesMavenApi.md#set_label) | **POST** {maven_maven_repository_href}set_label/ | Set a label
|
|
142
143
|
*PulpMavenClient::RepositoriesMavenApi* | [**unset_label**](docs/RepositoriesMavenApi.md#unset_label) | **POST** {maven_maven_repository_href}unset_label/ | Unset a label
|
|
143
144
|
*PulpMavenClient::RepositoriesMavenApi* | [**update**](docs/RepositoriesMavenApi.md#update) | **PUT** {maven_maven_repository_href} | Update a maven repository
|
|
@@ -11,6 +11,7 @@ All URIs are relative to *http://localhost:24817*
|
|
|
11
11
|
| [**modify**](RepositoriesMavenApi.md#modify) | **POST** {maven_maven_repository_href}modify/ | Modify Repository Content |
|
|
12
12
|
| [**partial_update**](RepositoriesMavenApi.md#partial_update) | **PATCH** {maven_maven_repository_href} | Update a maven repository |
|
|
13
13
|
| [**read**](RepositoriesMavenApi.md#read) | **GET** {maven_maven_repository_href} | Inspect a maven repository |
|
|
14
|
+
| [**repair_metadata**](RepositoriesMavenApi.md#repair_metadata) | **POST** {maven_maven_repository_href}repair_metadata/ | Repair metadata |
|
|
14
15
|
| [**set_label**](RepositoriesMavenApi.md#set_label) | **POST** {maven_maven_repository_href}set_label/ | Set a label |
|
|
15
16
|
| [**unset_label**](RepositoriesMavenApi.md#unset_label) | **POST** {maven_maven_repository_href}unset_label/ | Unset a label |
|
|
16
17
|
| [**update**](RepositoriesMavenApi.md#update) | **PUT** {maven_maven_repository_href} | Update a maven repository |
|
|
@@ -618,6 +619,80 @@ end
|
|
|
618
619
|
- **Accept**: application/json
|
|
619
620
|
|
|
620
621
|
|
|
622
|
+
## repair_metadata
|
|
623
|
+
|
|
624
|
+
> <AsyncOperationResponse> repair_metadata(maven_maven_repository_href, opts)
|
|
625
|
+
|
|
626
|
+
Repair metadata
|
|
627
|
+
|
|
628
|
+
Trigger an asynchronous task to regenerate all maven-metadata.xml files and their checksums for every artifact in the repository.
|
|
629
|
+
|
|
630
|
+
### Examples
|
|
631
|
+
|
|
632
|
+
```ruby
|
|
633
|
+
require 'time'
|
|
634
|
+
require 'pulp_maven_client'
|
|
635
|
+
# setup authorization
|
|
636
|
+
PulpMavenClient.configure do |config|
|
|
637
|
+
# Configure HTTP basic authorization: basicAuth
|
|
638
|
+
config.username = 'YOUR USERNAME'
|
|
639
|
+
config.password = 'YOUR PASSWORD'
|
|
640
|
+
end
|
|
641
|
+
|
|
642
|
+
api_instance = PulpMavenClient::RepositoriesMavenApi.new
|
|
643
|
+
maven_maven_repository_href = 'maven_maven_repository_href_example' # String |
|
|
644
|
+
opts = {
|
|
645
|
+
x_task_diagnostics: ['inner_example'] # Array<String> | List of profilers to use on tasks.
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
begin
|
|
649
|
+
# Repair metadata
|
|
650
|
+
result = api_instance.repair_metadata(maven_maven_repository_href, opts)
|
|
651
|
+
p result
|
|
652
|
+
rescue PulpMavenClient::ApiError => e
|
|
653
|
+
puts "Error when calling RepositoriesMavenApi->repair_metadata: #{e}"
|
|
654
|
+
end
|
|
655
|
+
```
|
|
656
|
+
|
|
657
|
+
#### Using the repair_metadata_with_http_info variant
|
|
658
|
+
|
|
659
|
+
This returns an Array which contains the response data, status code and headers.
|
|
660
|
+
|
|
661
|
+
> <Array(<AsyncOperationResponse>, Integer, Hash)> repair_metadata_with_http_info(maven_maven_repository_href, opts)
|
|
662
|
+
|
|
663
|
+
```ruby
|
|
664
|
+
begin
|
|
665
|
+
# Repair metadata
|
|
666
|
+
data, status_code, headers = api_instance.repair_metadata_with_http_info(maven_maven_repository_href, opts)
|
|
667
|
+
p status_code # => 2xx
|
|
668
|
+
p headers # => { ... }
|
|
669
|
+
p data # => <AsyncOperationResponse>
|
|
670
|
+
rescue PulpMavenClient::ApiError => e
|
|
671
|
+
puts "Error when calling RepositoriesMavenApi->repair_metadata_with_http_info: #{e}"
|
|
672
|
+
end
|
|
673
|
+
```
|
|
674
|
+
|
|
675
|
+
### Parameters
|
|
676
|
+
|
|
677
|
+
| Name | Type | Description | Notes |
|
|
678
|
+
| ---- | ---- | ----------- | ----- |
|
|
679
|
+
| **maven_maven_repository_href** | **String** | | |
|
|
680
|
+
| **x_task_diagnostics** | [**Array<String>**](String.md) | List of profilers to use on tasks. | [optional] |
|
|
681
|
+
|
|
682
|
+
### Return type
|
|
683
|
+
|
|
684
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
|
685
|
+
|
|
686
|
+
### Authorization
|
|
687
|
+
|
|
688
|
+
[basicAuth](../README.md#basicAuth)
|
|
689
|
+
|
|
690
|
+
### HTTP request headers
|
|
691
|
+
|
|
692
|
+
- **Content-Type**: Not defined
|
|
693
|
+
- **Accept**: application/json
|
|
694
|
+
|
|
695
|
+
|
|
621
696
|
## set_label
|
|
622
697
|
|
|
623
698
|
> <SetLabelResponse> set_label(maven_maven_repository_href, set_label, opts)
|
|
@@ -637,6 +637,72 @@ module PulpMavenClient
|
|
|
637
637
|
return data, status_code, headers
|
|
638
638
|
end
|
|
639
639
|
|
|
640
|
+
# Repair metadata
|
|
641
|
+
# Trigger an asynchronous task to regenerate all maven-metadata.xml files and their checksums for every artifact in the repository.
|
|
642
|
+
# @param maven_maven_repository_href [String]
|
|
643
|
+
# @param [Hash] opts the optional parameters
|
|
644
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
645
|
+
# @return [AsyncOperationResponse]
|
|
646
|
+
def repair_metadata(maven_maven_repository_href, opts = {})
|
|
647
|
+
data, _status_code, _headers = repair_metadata_with_http_info(maven_maven_repository_href, opts)
|
|
648
|
+
data
|
|
649
|
+
end
|
|
650
|
+
|
|
651
|
+
# Repair metadata
|
|
652
|
+
# Trigger an asynchronous task to regenerate all maven-metadata.xml files and their checksums for every artifact in the repository.
|
|
653
|
+
# @param maven_maven_repository_href [String]
|
|
654
|
+
# @param [Hash] opts the optional parameters
|
|
655
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
656
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
|
657
|
+
def repair_metadata_with_http_info(maven_maven_repository_href, opts = {})
|
|
658
|
+
if @api_client.config.debugging
|
|
659
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesMavenApi.repair_metadata ...'
|
|
660
|
+
end
|
|
661
|
+
# verify the required parameter 'maven_maven_repository_href' is set
|
|
662
|
+
if @api_client.config.client_side_validation && maven_maven_repository_href.nil?
|
|
663
|
+
fail ArgumentError, "Missing the required parameter 'maven_maven_repository_href' when calling RepositoriesMavenApi.repair_metadata"
|
|
664
|
+
end
|
|
665
|
+
# resource path
|
|
666
|
+
local_var_path = '{maven_maven_repository_href}repair_metadata/'.sub('{' + 'maven_maven_repository_href' + '}', CGI.escape(maven_maven_repository_href.to_s).gsub('%2F', '/'))
|
|
667
|
+
|
|
668
|
+
# query parameters
|
|
669
|
+
query_params = opts[:query_params] || {}
|
|
670
|
+
|
|
671
|
+
# header parameters
|
|
672
|
+
header_params = opts[:header_params] || {}
|
|
673
|
+
# HTTP header 'Accept' (if needed)
|
|
674
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
675
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
|
676
|
+
|
|
677
|
+
# form parameters
|
|
678
|
+
form_params = opts[:form_params] || {}
|
|
679
|
+
|
|
680
|
+
# http body (model)
|
|
681
|
+
post_body = opts[:debug_body]
|
|
682
|
+
|
|
683
|
+
# return_type
|
|
684
|
+
return_type = opts[:debug_return_type] || 'AsyncOperationResponse'
|
|
685
|
+
|
|
686
|
+
# auth_names
|
|
687
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
|
688
|
+
|
|
689
|
+
new_options = opts.merge(
|
|
690
|
+
:operation => :"RepositoriesMavenApi.repair_metadata",
|
|
691
|
+
:header_params => header_params,
|
|
692
|
+
:query_params => query_params,
|
|
693
|
+
:form_params => form_params,
|
|
694
|
+
:body => post_body,
|
|
695
|
+
:auth_names => auth_names,
|
|
696
|
+
:return_type => return_type
|
|
697
|
+
)
|
|
698
|
+
|
|
699
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
700
|
+
if @api_client.config.debugging
|
|
701
|
+
@api_client.config.logger.debug "API called: RepositoriesMavenApi#repair_metadata\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
702
|
+
end
|
|
703
|
+
return data, status_code, headers
|
|
704
|
+
end
|
|
705
|
+
|
|
640
706
|
# Set a label
|
|
641
707
|
# Set a single pulp_label on the object to a specific value or null.
|
|
642
708
|
# @param maven_maven_repository_href [String]
|
|
@@ -165,6 +165,19 @@ describe 'RepositoriesMavenApi' do
|
|
|
165
165
|
end
|
|
166
166
|
end
|
|
167
167
|
|
|
168
|
+
# unit tests for repair_metadata
|
|
169
|
+
# Repair metadata
|
|
170
|
+
# Trigger an asynchronous task to regenerate all maven-metadata.xml files and their checksums for every artifact in the repository.
|
|
171
|
+
# @param maven_maven_repository_href
|
|
172
|
+
# @param [Hash] opts the optional parameters
|
|
173
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
174
|
+
# @return [AsyncOperationResponse]
|
|
175
|
+
describe 'repair_metadata test' do
|
|
176
|
+
it 'should work' do
|
|
177
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
178
|
+
end
|
|
179
|
+
end
|
|
180
|
+
|
|
168
181
|
# unit tests for set_label
|
|
169
182
|
# Set a label
|
|
170
183
|
# 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_maven_client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.21.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: 2026-
|
|
11
|
+
date: 2026-07-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|