pulp_rpm_client 3.0.0b5 → 3.0.0b6
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 +15 -6
- data/docs/ContentAdvisoriesApi.md +3 -3
- data/docs/ContentModulemdApi.md +210 -0
- data/docs/ContentModulemdDefaultsApi.md +200 -0
- data/docs/ContentPackagesApi.md +17 -9
- data/docs/DistributionTreesDistributionTreesApi.md +2 -2
- data/docs/DistributionsRpmApi.md +2 -2
- data/docs/InlineResponse2001.md +1 -1
- data/docs/InlineResponse2002.md +1 -1
- data/docs/InlineResponse2003.md +1 -1
- data/docs/InlineResponse2004.md +1 -1
- data/docs/InlineResponse2005.md +1 -1
- data/docs/InlineResponse2006.md +1 -1
- data/docs/InlineResponse2007.md +23 -0
- data/docs/InlineResponse2008.md +23 -0
- data/docs/Modulemd.md +45 -0
- data/docs/ModulemdDefaults.md +35 -0
- data/docs/Package.md +23 -19
- data/docs/PublicationsRpmApi.md +2 -2
- data/docs/RemotesRpmApi.md +2 -2
- data/docs/RepoMetadataFile.md +5 -1
- data/docs/RepoMetadataFilesRepoMetadataFilesApi.md +2 -2
- data/docs/RpmCopyApi.md +1 -1
- data/lib/pulp_rpm_client/api/content_advisories_api.rb +5 -5
- data/lib/pulp_rpm_client/api/content_modulemd_api.rb +319 -0
- data/lib/pulp_rpm_client/api/content_modulemd_defaults_api.rb +272 -0
- data/lib/pulp_rpm_client/api/content_packages_api.rb +32 -18
- data/lib/pulp_rpm_client/api/distribution_trees_distribution_trees_api.rb +3 -3
- data/lib/pulp_rpm_client/api/distributions_rpm_api.rb +3 -3
- data/lib/pulp_rpm_client/api/publications_rpm_api.rb +3 -3
- data/lib/pulp_rpm_client/api/remotes_rpm_api.rb +3 -3
- data/lib/pulp_rpm_client/api/repo_metadata_files_repo_metadata_files_api.rb +3 -3
- data/lib/pulp_rpm_client/api/rpm_copy_api.rb +1 -1
- data/lib/pulp_rpm_client/models/inline_response2001.rb +1 -1
- data/lib/pulp_rpm_client/models/inline_response2002.rb +1 -1
- data/lib/pulp_rpm_client/models/inline_response2003.rb +1 -1
- data/lib/pulp_rpm_client/models/inline_response2004.rb +1 -1
- data/lib/pulp_rpm_client/models/inline_response2005.rb +1 -1
- data/lib/pulp_rpm_client/models/inline_response2006.rb +1 -1
- data/lib/pulp_rpm_client/models/inline_response2007.rb +235 -0
- data/lib/pulp_rpm_client/models/inline_response2008.rb +235 -0
- data/lib/pulp_rpm_client/models/modulemd.rb +544 -0
- data/lib/pulp_rpm_client/models/modulemd_defaults.rb +396 -0
- data/lib/pulp_rpm_client/models/package.rb +73 -156
- data/lib/pulp_rpm_client/models/repo_metadata_file.rb +21 -6
- data/lib/pulp_rpm_client/version.rb +1 -1
- data/lib/pulp_rpm_client.rb +6 -1
- data/spec/api/content_advisories_api_spec.rb +2 -2
- data/spec/api/content_modulemd_api_spec.rb +88 -0
- data/spec/api/content_modulemd_defaults_api_spec.rb +83 -0
- data/spec/api/content_packages_api_spec.rb +7 -4
- data/spec/api/distribution_trees_distribution_trees_api_spec.rb +1 -1
- data/spec/api/distributions_rpm_api_spec.rb +1 -1
- data/spec/api/publications_rpm_api_spec.rb +1 -1
- data/spec/api/remotes_rpm_api_spec.rb +1 -1
- data/spec/api/repo_metadata_files_repo_metadata_files_api_spec.rb +1 -1
- data/spec/models/inline_response2007_spec.rb +59 -0
- data/spec/models/inline_response2008_spec.rb +59 -0
- data/spec/models/modulemd_defaults_spec.rb +95 -0
- data/spec/models/modulemd_spec.rb +125 -0
- data/spec/models/package_spec.rb +16 -4
- data/spec/models/repo_metadata_file_spec.rb +12 -0
- metadata +26 -6
- data/docs/RpmUploadApi.md +0 -66
- data/lib/pulp_rpm_client/api/rpm_upload_api.rb +0 -90
- data/spec/api/rpm_upload_api_spec.rb +0 -48
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.0.
|
4
|
+
version: 3.0.0b6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenAPI-Generator
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-10-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -79,6 +79,8 @@ files:
|
|
79
79
|
- docs/AsyncOperationResponse.md
|
80
80
|
- docs/Checksum.md
|
81
81
|
- docs/ContentAdvisoriesApi.md
|
82
|
+
- docs/ContentModulemdApi.md
|
83
|
+
- docs/ContentModulemdDefaultsApi.md
|
82
84
|
- docs/ContentPackagesApi.md
|
83
85
|
- docs/DistributionTree.md
|
84
86
|
- docs/DistributionTreesDistributionTreesApi.md
|
@@ -91,6 +93,10 @@ files:
|
|
91
93
|
- docs/InlineResponse2004.md
|
92
94
|
- docs/InlineResponse2005.md
|
93
95
|
- docs/InlineResponse2006.md
|
96
|
+
- docs/InlineResponse2007.md
|
97
|
+
- docs/InlineResponse2008.md
|
98
|
+
- docs/Modulemd.md
|
99
|
+
- docs/ModulemdDefaults.md
|
94
100
|
- docs/Package.md
|
95
101
|
- docs/PublicationsRpmApi.md
|
96
102
|
- docs/RemotesRpmApi.md
|
@@ -101,12 +107,13 @@ files:
|
|
101
107
|
- docs/RpmDistribution.md
|
102
108
|
- docs/RpmPublication.md
|
103
109
|
- docs/RpmRemote.md
|
104
|
-
- docs/RpmUploadApi.md
|
105
110
|
- docs/UpdateRecord.md
|
106
111
|
- docs/Variant.md
|
107
112
|
- git_push.sh
|
108
113
|
- lib/pulp_rpm_client.rb
|
109
114
|
- lib/pulp_rpm_client/api/content_advisories_api.rb
|
115
|
+
- lib/pulp_rpm_client/api/content_modulemd_api.rb
|
116
|
+
- lib/pulp_rpm_client/api/content_modulemd_defaults_api.rb
|
110
117
|
- lib/pulp_rpm_client/api/content_packages_api.rb
|
111
118
|
- lib/pulp_rpm_client/api/distribution_trees_distribution_trees_api.rb
|
112
119
|
- lib/pulp_rpm_client/api/distributions_rpm_api.rb
|
@@ -114,7 +121,6 @@ files:
|
|
114
121
|
- lib/pulp_rpm_client/api/remotes_rpm_api.rb
|
115
122
|
- lib/pulp_rpm_client/api/repo_metadata_files_repo_metadata_files_api.rb
|
116
123
|
- lib/pulp_rpm_client/api/rpm_copy_api.rb
|
117
|
-
- lib/pulp_rpm_client/api/rpm_upload_api.rb
|
118
124
|
- lib/pulp_rpm_client/api_client.rb
|
119
125
|
- lib/pulp_rpm_client/api_error.rb
|
120
126
|
- lib/pulp_rpm_client/configuration.rb
|
@@ -131,6 +137,10 @@ files:
|
|
131
137
|
- lib/pulp_rpm_client/models/inline_response2004.rb
|
132
138
|
- lib/pulp_rpm_client/models/inline_response2005.rb
|
133
139
|
- lib/pulp_rpm_client/models/inline_response2006.rb
|
140
|
+
- lib/pulp_rpm_client/models/inline_response2007.rb
|
141
|
+
- lib/pulp_rpm_client/models/inline_response2008.rb
|
142
|
+
- lib/pulp_rpm_client/models/modulemd.rb
|
143
|
+
- lib/pulp_rpm_client/models/modulemd_defaults.rb
|
134
144
|
- lib/pulp_rpm_client/models/package.rb
|
135
145
|
- lib/pulp_rpm_client/models/repo_metadata_file.rb
|
136
146
|
- lib/pulp_rpm_client/models/repository_sync_url.rb
|
@@ -142,6 +152,8 @@ files:
|
|
142
152
|
- lib/pulp_rpm_client/version.rb
|
143
153
|
- pulp_rpm_client.gemspec
|
144
154
|
- spec/api/content_advisories_api_spec.rb
|
155
|
+
- spec/api/content_modulemd_api_spec.rb
|
156
|
+
- spec/api/content_modulemd_defaults_api_spec.rb
|
145
157
|
- spec/api/content_packages_api_spec.rb
|
146
158
|
- spec/api/distribution_trees_distribution_trees_api_spec.rb
|
147
159
|
- spec/api/distributions_rpm_api_spec.rb
|
@@ -149,7 +161,6 @@ files:
|
|
149
161
|
- spec/api/remotes_rpm_api_spec.rb
|
150
162
|
- spec/api/repo_metadata_files_repo_metadata_files_api_spec.rb
|
151
163
|
- spec/api/rpm_copy_api_spec.rb
|
152
|
-
- spec/api/rpm_upload_api_spec.rb
|
153
164
|
- spec/api_client_spec.rb
|
154
165
|
- spec/configuration_spec.rb
|
155
166
|
- spec/models/addon_spec.rb
|
@@ -164,7 +175,11 @@ files:
|
|
164
175
|
- spec/models/inline_response2004_spec.rb
|
165
176
|
- spec/models/inline_response2005_spec.rb
|
166
177
|
- spec/models/inline_response2006_spec.rb
|
178
|
+
- spec/models/inline_response2007_spec.rb
|
179
|
+
- spec/models/inline_response2008_spec.rb
|
167
180
|
- spec/models/inline_response200_spec.rb
|
181
|
+
- spec/models/modulemd_defaults_spec.rb
|
182
|
+
- spec/models/modulemd_spec.rb
|
168
183
|
- spec/models/package_spec.rb
|
169
184
|
- spec/models/repo_metadata_file_spec.rb
|
170
185
|
- spec/models/repository_sync_url_spec.rb
|
@@ -202,10 +217,11 @@ test_files:
|
|
202
217
|
- spec/api/remotes_rpm_api_spec.rb
|
203
218
|
- spec/api/content_packages_api_spec.rb
|
204
219
|
- spec/api/distribution_trees_distribution_trees_api_spec.rb
|
220
|
+
- spec/api/content_modulemd_api_spec.rb
|
205
221
|
- spec/api/repo_metadata_files_repo_metadata_files_api_spec.rb
|
206
222
|
- spec/api/content_advisories_api_spec.rb
|
223
|
+
- spec/api/content_modulemd_defaults_api_spec.rb
|
207
224
|
- spec/api/publications_rpm_api_spec.rb
|
208
|
-
- spec/api/rpm_upload_api_spec.rb
|
209
225
|
- spec/api/rpm_copy_api_spec.rb
|
210
226
|
- spec/api/distributions_rpm_api_spec.rb
|
211
227
|
- spec/api_client_spec.rb
|
@@ -225,10 +241,14 @@ test_files:
|
|
225
241
|
- spec/models/async_operation_response_spec.rb
|
226
242
|
- spec/models/repo_metadata_file_spec.rb
|
227
243
|
- spec/models/rpm_distribution_spec.rb
|
244
|
+
- spec/models/inline_response2007_spec.rb
|
228
245
|
- spec/models/variant_spec.rb
|
229
246
|
- spec/models/repository_sync_url_spec.rb
|
230
247
|
- spec/models/rpm_remote_spec.rb
|
231
248
|
- spec/models/artifact_spec.rb
|
249
|
+
- spec/models/modulemd_spec.rb
|
232
250
|
- spec/models/inline_response2005_spec.rb
|
251
|
+
- spec/models/inline_response2008_spec.rb
|
252
|
+
- spec/models/modulemd_defaults_spec.rb
|
233
253
|
- spec/models/inline_response200_spec.rb
|
234
254
|
- spec/spec_helper.rb
|
data/docs/RpmUploadApi.md
DELETED
@@ -1,66 +0,0 @@
|
|
1
|
-
# PulpRpmClient::RpmUploadApi
|
2
|
-
|
3
|
-
All URIs are relative to *http://localhost:24817*
|
4
|
-
|
5
|
-
Method | HTTP request | Description
|
6
|
-
------------- | ------------- | -------------
|
7
|
-
[**upload_rpm_package**](RpmUploadApi.md#upload_rpm_package) | **POST** /rpm/upload/ | Upload a package
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
## upload_rpm_package
|
12
|
-
|
13
|
-
> AsyncOperationResponse upload_rpm_package(file, opts)
|
14
|
-
|
15
|
-
Upload a package
|
16
|
-
|
17
|
-
Create an artifact and trigger an asynchronoustask to create RPM content from it, optionallycreate new repository version.
|
18
|
-
|
19
|
-
### Example
|
20
|
-
|
21
|
-
```ruby
|
22
|
-
# load the gem
|
23
|
-
require 'pulp_rpm_client'
|
24
|
-
# setup authorization
|
25
|
-
PulpRpmClient.configure do |config|
|
26
|
-
# Configure HTTP basic authorization: Basic
|
27
|
-
config.username = 'YOUR USERNAME'
|
28
|
-
config.password = 'YOUR PASSWORD'
|
29
|
-
end
|
30
|
-
|
31
|
-
api_instance = PulpRpmClient::RpmUploadApi.new
|
32
|
-
file = File.new('/path/to/file') # File | The rpm file.
|
33
|
-
opts = {
|
34
|
-
repository: 'repository_example' # String | A URI of the repository.
|
35
|
-
}
|
36
|
-
|
37
|
-
begin
|
38
|
-
#Upload a package
|
39
|
-
result = api_instance.upload_rpm_package(file, opts)
|
40
|
-
p result
|
41
|
-
rescue PulpRpmClient::ApiError => e
|
42
|
-
puts "Exception when calling RpmUploadApi->upload_rpm_package: #{e}"
|
43
|
-
end
|
44
|
-
```
|
45
|
-
|
46
|
-
### Parameters
|
47
|
-
|
48
|
-
|
49
|
-
Name | Type | Description | Notes
|
50
|
-
------------- | ------------- | ------------- | -------------
|
51
|
-
**file** | **File**| The rpm file. |
|
52
|
-
**repository** | **String**| A URI of the repository. | [optional]
|
53
|
-
|
54
|
-
### Return type
|
55
|
-
|
56
|
-
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
57
|
-
|
58
|
-
### Authorization
|
59
|
-
|
60
|
-
[Basic](../README.md#Basic)
|
61
|
-
|
62
|
-
### HTTP request headers
|
63
|
-
|
64
|
-
- **Content-Type**: multipart/form-data, application/x-www-form-urlencoded
|
65
|
-
- **Accept**: application/json
|
66
|
-
|
@@ -1,90 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Pulp 3 API
|
3
|
-
|
4
|
-
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
-
|
6
|
-
The version of the OpenAPI document: v3
|
7
|
-
|
8
|
-
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.1.3-SNAPSHOT
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'cgi'
|
14
|
-
|
15
|
-
module PulpRpmClient
|
16
|
-
class RpmUploadApi
|
17
|
-
attr_accessor :api_client
|
18
|
-
|
19
|
-
def initialize(api_client = ApiClient.default)
|
20
|
-
@api_client = api_client
|
21
|
-
end
|
22
|
-
# Upload a package
|
23
|
-
# Create an artifact and trigger an asynchronoustask to create RPM content from it, optionallycreate new repository version.
|
24
|
-
# @param file [File] The rpm file.
|
25
|
-
# @param [Hash] opts the optional parameters
|
26
|
-
# @option opts [String] :repository A URI of the repository.
|
27
|
-
# @return [AsyncOperationResponse]
|
28
|
-
def upload_rpm_package(file, opts = {})
|
29
|
-
data, _status_code, _headers = upload_rpm_package_with_http_info(file, opts)
|
30
|
-
data
|
31
|
-
end
|
32
|
-
|
33
|
-
# Upload a package
|
34
|
-
# Create an artifact and trigger an asynchronoustask to create RPM content from it, optionallycreate new repository version.
|
35
|
-
# @param file [File] The rpm file.
|
36
|
-
# @param [Hash] opts the optional parameters
|
37
|
-
# @option opts [String] :repository A URI of the repository.
|
38
|
-
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
39
|
-
def upload_rpm_package_with_http_info(file, opts = {})
|
40
|
-
if @api_client.config.debugging
|
41
|
-
@api_client.config.logger.debug 'Calling API: RpmUploadApi.upload_rpm_package ...'
|
42
|
-
end
|
43
|
-
# verify the required parameter 'file' is set
|
44
|
-
if @api_client.config.client_side_validation && file.nil?
|
45
|
-
fail ArgumentError, "Missing the required parameter 'file' when calling RpmUploadApi.upload_rpm_package"
|
46
|
-
end
|
47
|
-
# resource path
|
48
|
-
local_var_path = '/rpm/upload/'
|
49
|
-
|
50
|
-
# query parameters
|
51
|
-
query_params = opts[:query_params] || {}
|
52
|
-
|
53
|
-
# header parameters
|
54
|
-
header_params = opts[:header_params] || {}
|
55
|
-
# HTTP header 'Accept' (if needed)
|
56
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
57
|
-
# HTTP header 'Content-Type'
|
58
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/x-www-form-urlencoded'])
|
59
|
-
|
60
|
-
# form parameters
|
61
|
-
form_params = opts[:form_params] || {}
|
62
|
-
form_params['file'] = file
|
63
|
-
form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
|
64
|
-
|
65
|
-
# http body (model)
|
66
|
-
post_body = opts[:body]
|
67
|
-
|
68
|
-
# return_type
|
69
|
-
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
70
|
-
|
71
|
-
# auth_names
|
72
|
-
auth_names = opts[:auth_names] || ['Basic']
|
73
|
-
|
74
|
-
new_options = opts.merge(
|
75
|
-
:header_params => header_params,
|
76
|
-
:query_params => query_params,
|
77
|
-
:form_params => form_params,
|
78
|
-
:body => post_body,
|
79
|
-
:auth_names => auth_names,
|
80
|
-
:return_type => return_type
|
81
|
-
)
|
82
|
-
|
83
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
84
|
-
if @api_client.config.debugging
|
85
|
-
@api_client.config.logger.debug "API called: RpmUploadApi#upload_rpm_package\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
86
|
-
end
|
87
|
-
return data, status_code, headers
|
88
|
-
end
|
89
|
-
end
|
90
|
-
end
|
@@ -1,48 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Pulp 3 API
|
3
|
-
|
4
|
-
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
-
|
6
|
-
The version of the OpenAPI document: v3
|
7
|
-
|
8
|
-
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.1.3-SNAPSHOT
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'spec_helper'
|
14
|
-
require 'json'
|
15
|
-
|
16
|
-
# Unit tests for PulpRpmClient::RpmUploadApi
|
17
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
-
# Please update as you see appropriate
|
19
|
-
describe 'RpmUploadApi' do
|
20
|
-
before do
|
21
|
-
# run before each test
|
22
|
-
@api_instance = PulpRpmClient::RpmUploadApi.new
|
23
|
-
end
|
24
|
-
|
25
|
-
after do
|
26
|
-
# run after each test
|
27
|
-
end
|
28
|
-
|
29
|
-
describe 'test an instance of RpmUploadApi' do
|
30
|
-
it 'should create an instance of RpmUploadApi' do
|
31
|
-
expect(@api_instance).to be_instance_of(PulpRpmClient::RpmUploadApi)
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
|
-
# unit tests for upload_rpm_package
|
36
|
-
# Upload a package
|
37
|
-
# Create an artifact and trigger an asynchronoustask to create RPM content from it, optionallycreate new repository version.
|
38
|
-
# @param file The rpm file.
|
39
|
-
# @param [Hash] opts the optional parameters
|
40
|
-
# @option opts [String] :repository A URI of the repository.
|
41
|
-
# @return [AsyncOperationResponse]
|
42
|
-
describe 'upload_rpm_package test' do
|
43
|
-
it 'should work' do
|
44
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
45
|
-
end
|
46
|
-
end
|
47
|
-
|
48
|
-
end
|