pulp_rpm_client 3.6.1 → 3.6.2
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 -5
- data/docs/RpmCopyApi.md +5 -5
- data/lib/pulp_rpm_client/api/rpm_copy_api.rb +6 -6
- data/lib/pulp_rpm_client/models/variant_response.rb +5 -25
- data/lib/pulp_rpm_client/version.rb +1 -1
- data/spec/api/rpm_copy_api_spec.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6b42bc8aad39a55d2bdf4167e26521216a72807c8d1b59797b95f8b84e0ef43e
|
4
|
+
data.tar.gz: 1f1b11e039666210e57266e12b81e195acfa88afc0fedc2c6d8a552854dd1f3a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50e0369bad5845b1d819c8bfd0d53756361ee24df5385ee3f758afffee532b6010763a4074bec8cc54fa7fba4f3a65df5fa2fbff3a1c8b08e2173c3f091507c3
|
7
|
+
data.tar.gz: f1e8ea4737d06206a148a746e0b47ba5dfd925b006767339321ced6494c9c69f74a3a09a4241e6e0bd040a0c16563ea4f1dad67eeabd84d416d9ab613f90ec21
|
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.6.
|
10
|
+
- Package version: 3.6.2
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
12
12
|
For more information, please visit [https://pulpproject.org](https://pulpproject.org)
|
13
13
|
|
@@ -24,16 +24,16 @@ gem build pulp_rpm_client.gemspec
|
|
24
24
|
Then either install the gem locally:
|
25
25
|
|
26
26
|
```shell
|
27
|
-
gem install ./pulp_rpm_client-3.6.
|
27
|
+
gem install ./pulp_rpm_client-3.6.2.gem
|
28
28
|
```
|
29
29
|
|
30
|
-
(for development, run `gem install --dev ./pulp_rpm_client-3.6.
|
30
|
+
(for development, run `gem install --dev ./pulp_rpm_client-3.6.2.gem` to install the development dependencies)
|
31
31
|
|
32
32
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
33
33
|
|
34
34
|
Finally add this to the Gemfile:
|
35
35
|
|
36
|
-
gem 'pulp_rpm_client', '~> 3.6.
|
36
|
+
gem 'pulp_rpm_client', '~> 3.6.2'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
@@ -144,7 +144,7 @@ Class | Method | HTTP request | Description
|
|
144
144
|
*PulpRpmClient::RepositoriesRpmVersionsApi* | [**list**](docs/RepositoriesRpmVersionsApi.md#list) | **GET** {rpm_rpm_repository_href}versions/ | List repository versions
|
145
145
|
*PulpRpmClient::RepositoriesRpmVersionsApi* | [**read**](docs/RepositoriesRpmVersionsApi.md#read) | **GET** {rpm_rpm_repository_version_href} | Inspect a repository version
|
146
146
|
*PulpRpmClient::RepositoriesRpmVersionsApi* | [**repair**](docs/RepositoriesRpmVersionsApi.md#repair) | **POST** {rpm_rpm_repository_version_href}repair/ |
|
147
|
-
*PulpRpmClient::RpmCopyApi* | [**
|
147
|
+
*PulpRpmClient::RpmCopyApi* | [**copy_content**](docs/RpmCopyApi.md#copy_content) | **POST** /pulp/api/v3/rpm/copy/ | Copy content
|
148
148
|
|
149
149
|
|
150
150
|
## Documentation for Models
|
data/docs/RpmCopyApi.md
CHANGED
@@ -4,13 +4,13 @@ All URIs are relative to *http://pulp*
|
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
-
[**
|
7
|
+
[**copy_content**](RpmCopyApi.md#copy_content) | **POST** /pulp/api/v3/rpm/copy/ | Copy content
|
8
8
|
|
9
9
|
|
10
10
|
|
11
|
-
##
|
11
|
+
## copy_content
|
12
12
|
|
13
|
-
> AsyncOperationResponse
|
13
|
+
> AsyncOperationResponse copy_content(copy)
|
14
14
|
|
15
15
|
Copy content
|
16
16
|
|
@@ -33,10 +33,10 @@ copy = PulpRpmClient::Copy.new # Copy |
|
|
33
33
|
|
34
34
|
begin
|
35
35
|
#Copy content
|
36
|
-
result = api_instance.
|
36
|
+
result = api_instance.copy_content(copy)
|
37
37
|
p result
|
38
38
|
rescue PulpRpmClient::ApiError => e
|
39
|
-
puts "Exception when calling RpmCopyApi->
|
39
|
+
puts "Exception when calling RpmCopyApi->copy_content: #{e}"
|
40
40
|
end
|
41
41
|
```
|
42
42
|
|
@@ -24,8 +24,8 @@ module PulpRpmClient
|
|
24
24
|
# @param copy [Copy]
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
26
|
# @return [AsyncOperationResponse]
|
27
|
-
def
|
28
|
-
data, _status_code, _headers =
|
27
|
+
def copy_content(copy, opts = {})
|
28
|
+
data, _status_code, _headers = copy_content_with_http_info(copy, opts)
|
29
29
|
data
|
30
30
|
end
|
31
31
|
|
@@ -34,13 +34,13 @@ module PulpRpmClient
|
|
34
34
|
# @param copy [Copy]
|
35
35
|
# @param [Hash] opts the optional parameters
|
36
36
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
37
|
-
def
|
37
|
+
def copy_content_with_http_info(copy, opts = {})
|
38
38
|
if @api_client.config.debugging
|
39
|
-
@api_client.config.logger.debug 'Calling API: RpmCopyApi.
|
39
|
+
@api_client.config.logger.debug 'Calling API: RpmCopyApi.copy_content ...'
|
40
40
|
end
|
41
41
|
# verify the required parameter 'copy' is set
|
42
42
|
if @api_client.config.client_side_validation && copy.nil?
|
43
|
-
fail ArgumentError, "Missing the required parameter 'copy' when calling RpmCopyApi.
|
43
|
+
fail ArgumentError, "Missing the required parameter 'copy' when calling RpmCopyApi.copy_content"
|
44
44
|
end
|
45
45
|
# resource path
|
46
46
|
local_var_path = '/pulp/api/v3/rpm/copy/'
|
@@ -78,7 +78,7 @@ module PulpRpmClient
|
|
78
78
|
|
79
79
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
80
80
|
if @api_client.config.debugging
|
81
|
-
@api_client.config.logger.debug "API called: RpmCopyApi#
|
81
|
+
@api_client.config.logger.debug "API called: RpmCopyApi#copy_content\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
82
82
|
end
|
83
83
|
return data, status_code, headers
|
84
84
|
end
|
@@ -80,6 +80,11 @@ module PulpRpmClient
|
|
80
80
|
# List of attributes with nullable: true
|
81
81
|
def self.openapi_nullable
|
82
82
|
Set.new([
|
83
|
+
:'source_packages',
|
84
|
+
:'source_repository',
|
85
|
+
:'debug_packages',
|
86
|
+
:'debug_repository',
|
87
|
+
:'identity'
|
83
88
|
])
|
84
89
|
end
|
85
90
|
|
@@ -163,26 +168,6 @@ module PulpRpmClient
|
|
163
168
|
invalid_properties.push('invalid value for "packages", packages cannot be nil.')
|
164
169
|
end
|
165
170
|
|
166
|
-
if @source_packages.nil?
|
167
|
-
invalid_properties.push('invalid value for "source_packages", source_packages cannot be nil.')
|
168
|
-
end
|
169
|
-
|
170
|
-
if @source_repository.nil?
|
171
|
-
invalid_properties.push('invalid value for "source_repository", source_repository cannot be nil.')
|
172
|
-
end
|
173
|
-
|
174
|
-
if @debug_packages.nil?
|
175
|
-
invalid_properties.push('invalid value for "debug_packages", debug_packages cannot be nil.')
|
176
|
-
end
|
177
|
-
|
178
|
-
if @debug_repository.nil?
|
179
|
-
invalid_properties.push('invalid value for "debug_repository", debug_repository cannot be nil.')
|
180
|
-
end
|
181
|
-
|
182
|
-
if @identity.nil?
|
183
|
-
invalid_properties.push('invalid value for "identity", identity cannot be nil.')
|
184
|
-
end
|
185
|
-
|
186
171
|
invalid_properties
|
187
172
|
end
|
188
173
|
|
@@ -194,11 +179,6 @@ module PulpRpmClient
|
|
194
179
|
return false if @name.nil?
|
195
180
|
return false if @type.nil?
|
196
181
|
return false if @packages.nil?
|
197
|
-
return false if @source_packages.nil?
|
198
|
-
return false if @source_repository.nil?
|
199
|
-
return false if @debug_packages.nil?
|
200
|
-
return false if @debug_repository.nil?
|
201
|
-
return false if @identity.nil?
|
202
182
|
true
|
203
183
|
end
|
204
184
|
|
@@ -32,13 +32,13 @@ describe 'RpmCopyApi' do
|
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
-
# unit tests for
|
35
|
+
# unit tests for copy_content
|
36
36
|
# Copy content
|
37
37
|
# Trigger an asynchronous task to copy RPM contentfrom one repository into another, creating a newrepository version.
|
38
38
|
# @param copy
|
39
39
|
# @param [Hash] opts the optional parameters
|
40
40
|
# @return [AsyncOperationResponse]
|
41
|
-
describe '
|
41
|
+
describe 'copy_content test' do
|
42
42
|
it 'should work' do
|
43
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
44
|
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.6.
|
4
|
+
version: 3.6.2
|
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-
|
11
|
+
date: 2020-09-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|