pulp_deb_client 2.17.2 → 2.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -6
- data/docs/Copy.md +21 -0
- data/docs/DebCopyApi.md +62 -0
- data/docs/Repair.md +17 -0
- data/docs/RepositoriesAptVersionsApi.md +4 -4
- data/git_push.sh +58 -0
- data/lib/pulp_deb_client/api/deb_copy_api.rb +86 -0
- data/lib/pulp_deb_client/api/repositories_apt_versions_api.rb +9 -9
- data/lib/pulp_deb_client/api_client.rb +1 -1
- data/lib/pulp_deb_client/models/{content_summary.rb → copy.rb} +33 -42
- data/lib/pulp_deb_client/models/{repository_version.rb → repair.rb} +13 -12
- data/lib/pulp_deb_client/version.rb +1 -1
- data/lib/pulp_deb_client.rb +3 -2
- data/pulp_deb_client.gemspec +3 -3
- data/spec/api/deb_copy_api_spec.rb +47 -0
- data/spec/api/repositories_apt_versions_api_spec.rb +1 -1
- data/spec/models/{content_summary_spec.rb → copy_spec.rb} +9 -9
- data/spec/models/{repository_version_spec.rb → repair_spec.rb} +7 -7
- metadata +73 -68
- data/docs/ContentSummary.md +0 -21
- data/docs/RepositoryVersion.md +0 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f3e4fdde7d4fbd6da28e2c8e3d808328504f4a9619768e015769242ea45221b
|
4
|
+
data.tar.gz: d0521cce44076137f6a2ecdb1e4496486bedbd97347b81a9022ab885020c3df8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5fcebc5c35fb4e62d25d02931535ac2da55fc5a173d7783161c0d5c2ec0192b7304943879bc9adf6d4c25c2017468eaba2a3a674c7b5dd4257ae945dd4aef4d8
|
7
|
+
data.tar.gz: 7ab44397906cff2eaf0687a4ed5b0225808d0e69ed707305f7fd0902b46699fd31fd86d78f13ae24acba684b77c1e04a271816ad0293372783d7202cfbf85c75
|
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: 2.
|
10
|
+
- Package version: 2.18.0
|
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_deb_client.gemspec
|
|
24
24
|
Then either install the gem locally:
|
25
25
|
|
26
26
|
```shell
|
27
|
-
gem install ./pulp_deb_client-2.
|
27
|
+
gem install ./pulp_deb_client-2.18.0.gem
|
28
28
|
```
|
29
29
|
|
30
|
-
(for development, run `gem install --dev ./pulp_deb_client-2.
|
30
|
+
(for development, run `gem install --dev ./pulp_deb_client-2.18.0.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_deb_client', '~> 2.
|
36
|
+
gem 'pulp_deb_client', '~> 2.18.0'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
@@ -118,6 +118,7 @@ Class | Method | HTTP request | Description
|
|
118
118
|
*PulpDebClient::ContentReleasesApi* | [**create**](docs/ContentReleasesApi.md#create) | **POST** /pulp/api/v3/content/deb/releases/ | Create a release
|
119
119
|
*PulpDebClient::ContentReleasesApi* | [**list**](docs/ContentReleasesApi.md#list) | **GET** /pulp/api/v3/content/deb/releases/ | List releases
|
120
120
|
*PulpDebClient::ContentReleasesApi* | [**read**](docs/ContentReleasesApi.md#read) | **GET** {deb_release_href} | Inspect a release
|
121
|
+
*PulpDebClient::DebCopyApi* | [**copy_content**](docs/DebCopyApi.md#copy_content) | **POST** /pulp/api/v3/deb/copy/ | Copy content
|
121
122
|
*PulpDebClient::DistributionsAptApi* | [**create**](docs/DistributionsAptApi.md#create) | **POST** /pulp/api/v3/distributions/deb/apt/ | Create an apt distribution
|
122
123
|
*PulpDebClient::DistributionsAptApi* | [**delete**](docs/DistributionsAptApi.md#delete) | **DELETE** {deb_apt_distribution_href} | Delete an apt distribution
|
123
124
|
*PulpDebClient::DistributionsAptApi* | [**list**](docs/DistributionsAptApi.md#list) | **GET** /pulp/api/v3/distributions/deb/apt/ | List apt distributions
|
@@ -155,8 +156,8 @@ Class | Method | HTTP request | Description
|
|
155
156
|
## Documentation for Models
|
156
157
|
|
157
158
|
- [PulpDebClient::AsyncOperationResponse](docs/AsyncOperationResponse.md)
|
158
|
-
- [PulpDebClient::ContentSummary](docs/ContentSummary.md)
|
159
159
|
- [PulpDebClient::ContentSummaryResponse](docs/ContentSummaryResponse.md)
|
160
|
+
- [PulpDebClient::Copy](docs/Copy.md)
|
160
161
|
- [PulpDebClient::DebAptDistribution](docs/DebAptDistribution.md)
|
161
162
|
- [PulpDebClient::DebAptDistributionResponse](docs/DebAptDistributionResponse.md)
|
162
163
|
- [PulpDebClient::DebAptPublication](docs/DebAptPublication.md)
|
@@ -204,9 +205,9 @@ Class | Method | HTTP request | Description
|
|
204
205
|
- [PulpDebClient::PatcheddebAptRemote](docs/PatcheddebAptRemote.md)
|
205
206
|
- [PulpDebClient::PatcheddebAptRepository](docs/PatcheddebAptRepository.md)
|
206
207
|
- [PulpDebClient::PolicyEnum](docs/PolicyEnum.md)
|
208
|
+
- [PulpDebClient::Repair](docs/Repair.md)
|
207
209
|
- [PulpDebClient::RepositoryAddRemoveContent](docs/RepositoryAddRemoveContent.md)
|
208
210
|
- [PulpDebClient::RepositorySyncURL](docs/RepositorySyncURL.md)
|
209
|
-
- [PulpDebClient::RepositoryVersion](docs/RepositoryVersion.md)
|
210
211
|
- [PulpDebClient::RepositoryVersionResponse](docs/RepositoryVersionResponse.md)
|
211
212
|
|
212
213
|
|
data/docs/Copy.md
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
# PulpDebClient::Copy
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**config** | [**Object**](.md) | A JSON document describing sources, destinations, and content to be copied |
|
8
|
+
**structured** | **Boolean** | Also copy any distributions, components, and releases as needed for any packages being copied. This will allow for structured publications of the target repository.Default is set to True | [optional] [default to true]
|
9
|
+
**dependency_solving** | **Boolean** | Also copy dependencies of any packages being copied. NOT YETIMPLEMENTED! You must keep this at \"False\"! | [optional] [default to false]
|
10
|
+
|
11
|
+
## Code Sample
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'PulpDebClient'
|
15
|
+
|
16
|
+
instance = PulpDebClient::Copy.new(config: null,
|
17
|
+
structured: null,
|
18
|
+
dependency_solving: null)
|
19
|
+
```
|
20
|
+
|
21
|
+
|
data/docs/DebCopyApi.md
ADDED
@@ -0,0 +1,62 @@
|
|
1
|
+
# PulpDebClient::DebCopyApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://pulp*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**copy_content**](DebCopyApi.md#copy_content) | **POST** /pulp/api/v3/deb/copy/ | Copy content
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
## copy_content
|
12
|
+
|
13
|
+
> AsyncOperationResponse copy_content(copy)
|
14
|
+
|
15
|
+
Copy content
|
16
|
+
|
17
|
+
Trigger an asynchronous task to copy APT contentfrom one repository into another, creating a newrepository version.
|
18
|
+
|
19
|
+
### Example
|
20
|
+
|
21
|
+
```ruby
|
22
|
+
# load the gem
|
23
|
+
require 'pulp_deb_client'
|
24
|
+
# setup authorization
|
25
|
+
PulpDebClient.configure do |config|
|
26
|
+
# Configure HTTP basic authorization: basicAuth
|
27
|
+
config.username = 'YOUR USERNAME'
|
28
|
+
config.password = 'YOUR PASSWORD'
|
29
|
+
end
|
30
|
+
|
31
|
+
api_instance = PulpDebClient::DebCopyApi.new
|
32
|
+
copy = PulpDebClient::Copy.new # Copy |
|
33
|
+
|
34
|
+
begin
|
35
|
+
#Copy content
|
36
|
+
result = api_instance.copy_content(copy)
|
37
|
+
p result
|
38
|
+
rescue PulpDebClient::ApiError => e
|
39
|
+
puts "Exception when calling DebCopyApi->copy_content: #{e}"
|
40
|
+
end
|
41
|
+
```
|
42
|
+
|
43
|
+
### Parameters
|
44
|
+
|
45
|
+
|
46
|
+
Name | Type | Description | Notes
|
47
|
+
------------- | ------------- | ------------- | -------------
|
48
|
+
**copy** | [**Copy**](Copy.md)| |
|
49
|
+
|
50
|
+
### Return type
|
51
|
+
|
52
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
53
|
+
|
54
|
+
### Authorization
|
55
|
+
|
56
|
+
[basicAuth](../README.md#basicAuth)
|
57
|
+
|
58
|
+
### HTTP request headers
|
59
|
+
|
60
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
61
|
+
- **Accept**: application/json
|
62
|
+
|
data/docs/Repair.md
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
# PulpDebClient::Repair
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**verify_checksums** | **Boolean** | Will verify that the checksum of all stored files matches what saved in the database. Otherwise only the existence of the files will be checked. Enabled by default | [optional] [default to true]
|
8
|
+
|
9
|
+
## Code Sample
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'PulpDebClient'
|
13
|
+
|
14
|
+
instance = PulpDebClient::Repair.new(verify_checksums: null)
|
15
|
+
```
|
16
|
+
|
17
|
+
|
@@ -218,7 +218,7 @@ Name | Type | Description | Notes
|
|
218
218
|
|
219
219
|
## repair
|
220
220
|
|
221
|
-
> AsyncOperationResponse repair(deb_apt_repository_version_href,
|
221
|
+
> AsyncOperationResponse repair(deb_apt_repository_version_href, repair)
|
222
222
|
|
223
223
|
|
224
224
|
|
@@ -238,10 +238,10 @@ end
|
|
238
238
|
|
239
239
|
api_instance = PulpDebClient::RepositoriesAptVersionsApi.new
|
240
240
|
deb_apt_repository_version_href = 'deb_apt_repository_version_href_example' # String |
|
241
|
-
|
241
|
+
repair = PulpDebClient::Repair.new # Repair |
|
242
242
|
|
243
243
|
begin
|
244
|
-
result = api_instance.repair(deb_apt_repository_version_href,
|
244
|
+
result = api_instance.repair(deb_apt_repository_version_href, repair)
|
245
245
|
p result
|
246
246
|
rescue PulpDebClient::ApiError => e
|
247
247
|
puts "Exception when calling RepositoriesAptVersionsApi->repair: #{e}"
|
@@ -254,7 +254,7 @@ end
|
|
254
254
|
Name | Type | Description | Notes
|
255
255
|
------------- | ------------- | ------------- | -------------
|
256
256
|
**deb_apt_repository_version_href** | **String**| |
|
257
|
-
**
|
257
|
+
**repair** | [**Repair**](Repair.md)| |
|
258
258
|
|
259
259
|
### Return type
|
260
260
|
|
data/git_push.sh
ADDED
@@ -0,0 +1,58 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
3
|
+
#
|
4
|
+
# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com"
|
5
|
+
|
6
|
+
git_user_id=$1
|
7
|
+
git_repo_id=$2
|
8
|
+
release_note=$3
|
9
|
+
git_host=$4
|
10
|
+
|
11
|
+
if [ "$git_host" = "" ]; then
|
12
|
+
git_host="github.com"
|
13
|
+
echo "[INFO] No command line input provided. Set \$git_host to $git_host"
|
14
|
+
fi
|
15
|
+
|
16
|
+
if [ "$git_user_id" = "" ]; then
|
17
|
+
git_user_id="GIT_USER_ID"
|
18
|
+
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
19
|
+
fi
|
20
|
+
|
21
|
+
if [ "$git_repo_id" = "" ]; then
|
22
|
+
git_repo_id="GIT_REPO_ID"
|
23
|
+
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
24
|
+
fi
|
25
|
+
|
26
|
+
if [ "$release_note" = "" ]; then
|
27
|
+
release_note="Minor update"
|
28
|
+
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
29
|
+
fi
|
30
|
+
|
31
|
+
# Initialize the local directory as a Git repository
|
32
|
+
git init
|
33
|
+
|
34
|
+
# Adds the files in the local repository and stages them for commit.
|
35
|
+
git add .
|
36
|
+
|
37
|
+
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
38
|
+
git commit -m "$release_note"
|
39
|
+
|
40
|
+
# Sets the new remote
|
41
|
+
git_remote=`git remote`
|
42
|
+
if [ "$git_remote" = "" ]; then # git remote not defined
|
43
|
+
|
44
|
+
if [ "$GIT_TOKEN" = "" ]; then
|
45
|
+
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
46
|
+
git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
|
47
|
+
else
|
48
|
+
git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git
|
49
|
+
fi
|
50
|
+
|
51
|
+
fi
|
52
|
+
|
53
|
+
git pull origin master
|
54
|
+
|
55
|
+
# Pushes (Forces) the changes in the local repository up to the remote repository
|
56
|
+
echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
|
57
|
+
git push origin master 2>&1 | grep -v 'To https'
|
58
|
+
|
@@ -0,0 +1,86 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
Contact: pulp-list@redhat.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module PulpDebClient
|
16
|
+
class DebCopyApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Copy content
|
23
|
+
# Trigger an asynchronous task to copy APT contentfrom one repository into another, creating a newrepository version.
|
24
|
+
# @param copy [Copy]
|
25
|
+
# @param [Hash] opts the optional parameters
|
26
|
+
# @return [AsyncOperationResponse]
|
27
|
+
def copy_content(copy, opts = {})
|
28
|
+
data, _status_code, _headers = copy_content_with_http_info(copy, opts)
|
29
|
+
data
|
30
|
+
end
|
31
|
+
|
32
|
+
# Copy content
|
33
|
+
# Trigger an asynchronous task to copy APT contentfrom one repository into another, creating a newrepository version.
|
34
|
+
# @param copy [Copy]
|
35
|
+
# @param [Hash] opts the optional parameters
|
36
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
37
|
+
def copy_content_with_http_info(copy, opts = {})
|
38
|
+
if @api_client.config.debugging
|
39
|
+
@api_client.config.logger.debug 'Calling API: DebCopyApi.copy_content ...'
|
40
|
+
end
|
41
|
+
# verify the required parameter 'copy' is set
|
42
|
+
if @api_client.config.client_side_validation && copy.nil?
|
43
|
+
fail ArgumentError, "Missing the required parameter 'copy' when calling DebCopyApi.copy_content"
|
44
|
+
end
|
45
|
+
# resource path
|
46
|
+
local_var_path = '/pulp/api/v3/deb/copy/'
|
47
|
+
|
48
|
+
# query parameters
|
49
|
+
query_params = opts[:query_params] || {}
|
50
|
+
|
51
|
+
# header parameters
|
52
|
+
header_params = opts[:header_params] || {}
|
53
|
+
# HTTP header 'Accept' (if needed)
|
54
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
55
|
+
# HTTP header 'Content-Type'
|
56
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
57
|
+
|
58
|
+
# form parameters
|
59
|
+
form_params = opts[:form_params] || {}
|
60
|
+
|
61
|
+
# http body (model)
|
62
|
+
post_body = opts[:body] || @api_client.object_to_http_body(copy)
|
63
|
+
|
64
|
+
# return_type
|
65
|
+
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
66
|
+
|
67
|
+
# auth_names
|
68
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
69
|
+
|
70
|
+
new_options = opts.merge(
|
71
|
+
:header_params => header_params,
|
72
|
+
:query_params => query_params,
|
73
|
+
:form_params => form_params,
|
74
|
+
:body => post_body,
|
75
|
+
:auth_names => auth_names,
|
76
|
+
:return_type => return_type
|
77
|
+
)
|
78
|
+
|
79
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
80
|
+
if @api_client.config.debugging
|
81
|
+
@api_client.config.logger.debug "API called: DebCopyApi#copy_content\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
82
|
+
end
|
83
|
+
return data, status_code, headers
|
84
|
+
end
|
85
|
+
end
|
86
|
+
end
|
@@ -270,20 +270,20 @@ module PulpDebClient
|
|
270
270
|
|
271
271
|
# Trigger an asynchronous task to repair a repository version.
|
272
272
|
# @param deb_apt_repository_version_href [String]
|
273
|
-
# @param
|
273
|
+
# @param repair [Repair]
|
274
274
|
# @param [Hash] opts the optional parameters
|
275
275
|
# @return [AsyncOperationResponse]
|
276
|
-
def repair(deb_apt_repository_version_href,
|
277
|
-
data, _status_code, _headers = repair_with_http_info(deb_apt_repository_version_href,
|
276
|
+
def repair(deb_apt_repository_version_href, repair, opts = {})
|
277
|
+
data, _status_code, _headers = repair_with_http_info(deb_apt_repository_version_href, repair, opts)
|
278
278
|
data
|
279
279
|
end
|
280
280
|
|
281
281
|
# Trigger an asynchronous task to repair a repository version.
|
282
282
|
# @param deb_apt_repository_version_href [String]
|
283
|
-
# @param
|
283
|
+
# @param repair [Repair]
|
284
284
|
# @param [Hash] opts the optional parameters
|
285
285
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
286
|
-
def repair_with_http_info(deb_apt_repository_version_href,
|
286
|
+
def repair_with_http_info(deb_apt_repository_version_href, repair, opts = {})
|
287
287
|
if @api_client.config.debugging
|
288
288
|
@api_client.config.logger.debug 'Calling API: RepositoriesAptVersionsApi.repair ...'
|
289
289
|
end
|
@@ -291,9 +291,9 @@ module PulpDebClient
|
|
291
291
|
if @api_client.config.client_side_validation && deb_apt_repository_version_href.nil?
|
292
292
|
fail ArgumentError, "Missing the required parameter 'deb_apt_repository_version_href' when calling RepositoriesAptVersionsApi.repair"
|
293
293
|
end
|
294
|
-
# verify the required parameter '
|
295
|
-
if @api_client.config.client_side_validation &&
|
296
|
-
fail ArgumentError, "Missing the required parameter '
|
294
|
+
# verify the required parameter 'repair' is set
|
295
|
+
if @api_client.config.client_side_validation && repair.nil?
|
296
|
+
fail ArgumentError, "Missing the required parameter 'repair' when calling RepositoriesAptVersionsApi.repair"
|
297
297
|
end
|
298
298
|
# resource path
|
299
299
|
local_var_path = '{deb_apt_repository_version_href}repair/'.sub('{' + 'deb_apt_repository_version_href' + '}', CGI.escape(deb_apt_repository_version_href.to_s).gsub('%2F', '/'))
|
@@ -312,7 +312,7 @@ module PulpDebClient
|
|
312
312
|
form_params = opts[:form_params] || {}
|
313
313
|
|
314
314
|
# http body (model)
|
315
|
-
post_body = opts[:body] || @api_client.object_to_http_body(
|
315
|
+
post_body = opts[:body] || @api_client.object_to_http_body(repair)
|
316
316
|
|
317
317
|
# return_type
|
318
318
|
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
@@ -154,7 +154,7 @@ module PulpDebClient
|
|
154
154
|
case value
|
155
155
|
when ::File, ::Tempfile
|
156
156
|
# TODO hardcode to application/octet-stream, need better way to detect content type
|
157
|
-
data[key] = Faraday::
|
157
|
+
data[key] = Faraday::UploadIO.new(value.path, 'application/octet-stream', value.path)
|
158
158
|
when ::Array, nil
|
159
159
|
# let Faraday handle Array and nil parameters
|
160
160
|
data[key] = value
|
@@ -13,29 +13,32 @@ OpenAPI Generator version: 4.3.1
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module PulpDebClient
|
16
|
-
#
|
17
|
-
class
|
18
|
-
|
16
|
+
# A serializer for Content Copy API.
|
17
|
+
class Copy
|
18
|
+
# A JSON document describing sources, destinations, and content to be copied
|
19
|
+
attr_accessor :config
|
19
20
|
|
20
|
-
|
21
|
+
# Also copy any distributions, components, and releases as needed for any packages being copied. This will allow for structured publications of the target repository.Default is set to True
|
22
|
+
attr_accessor :structured
|
21
23
|
|
22
|
-
|
24
|
+
# Also copy dependencies of any packages being copied. NOT YETIMPLEMENTED! You must keep this at \"False\"!
|
25
|
+
attr_accessor :dependency_solving
|
23
26
|
|
24
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
25
28
|
def self.attribute_map
|
26
29
|
{
|
27
|
-
:'
|
28
|
-
:'
|
29
|
-
:'
|
30
|
+
:'config' => :'config',
|
31
|
+
:'structured' => :'structured',
|
32
|
+
:'dependency_solving' => :'dependency_solving'
|
30
33
|
}
|
31
34
|
end
|
32
35
|
|
33
36
|
# Attribute type mapping.
|
34
37
|
def self.openapi_types
|
35
38
|
{
|
36
|
-
:'
|
37
|
-
:'
|
38
|
-
:'
|
39
|
+
:'config' => :'Object',
|
40
|
+
:'structured' => :'Boolean',
|
41
|
+
:'dependency_solving' => :'Boolean'
|
39
42
|
}
|
40
43
|
end
|
41
44
|
|
@@ -49,33 +52,31 @@ module PulpDebClient
|
|
49
52
|
# @param [Hash] attributes Model attributes in the form of hash
|
50
53
|
def initialize(attributes = {})
|
51
54
|
if (!attributes.is_a?(Hash))
|
52
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpDebClient::
|
55
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpDebClient::Copy` initialize method"
|
53
56
|
end
|
54
57
|
|
55
58
|
# check to see if the attribute exists and convert string to symbol for hash key
|
56
59
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
57
60
|
if (!self.class.attribute_map.key?(k.to_sym))
|
58
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpDebClient::
|
61
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpDebClient::Copy`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
59
62
|
end
|
60
63
|
h[k.to_sym] = v
|
61
64
|
}
|
62
65
|
|
63
|
-
if attributes.key?(:'
|
64
|
-
|
65
|
-
self.added = value
|
66
|
-
end
|
66
|
+
if attributes.key?(:'config')
|
67
|
+
self.config = attributes[:'config']
|
67
68
|
end
|
68
69
|
|
69
|
-
if attributes.key?(:'
|
70
|
-
|
71
|
-
|
72
|
-
|
70
|
+
if attributes.key?(:'structured')
|
71
|
+
self.structured = attributes[:'structured']
|
72
|
+
else
|
73
|
+
self.structured = true
|
73
74
|
end
|
74
75
|
|
75
|
-
if attributes.key?(:'
|
76
|
-
|
77
|
-
|
78
|
-
|
76
|
+
if attributes.key?(:'dependency_solving')
|
77
|
+
self.dependency_solving = attributes[:'dependency_solving']
|
78
|
+
else
|
79
|
+
self.dependency_solving = false
|
79
80
|
end
|
80
81
|
end
|
81
82
|
|
@@ -83,16 +84,8 @@ module PulpDebClient
|
|
83
84
|
# @return Array for valid properties with the reasons
|
84
85
|
def list_invalid_properties
|
85
86
|
invalid_properties = Array.new
|
86
|
-
if @
|
87
|
-
invalid_properties.push('invalid value for "
|
88
|
-
end
|
89
|
-
|
90
|
-
if @removed.nil?
|
91
|
-
invalid_properties.push('invalid value for "removed", removed cannot be nil.')
|
92
|
-
end
|
93
|
-
|
94
|
-
if @present.nil?
|
95
|
-
invalid_properties.push('invalid value for "present", present cannot be nil.')
|
87
|
+
if @config.nil?
|
88
|
+
invalid_properties.push('invalid value for "config", config cannot be nil.')
|
96
89
|
end
|
97
90
|
|
98
91
|
invalid_properties
|
@@ -101,9 +94,7 @@ module PulpDebClient
|
|
101
94
|
# Check to see if the all the properties in the model are valid
|
102
95
|
# @return true if the model is valid
|
103
96
|
def valid?
|
104
|
-
return false if @
|
105
|
-
return false if @removed.nil?
|
106
|
-
return false if @present.nil?
|
97
|
+
return false if @config.nil?
|
107
98
|
true
|
108
99
|
end
|
109
100
|
|
@@ -112,9 +103,9 @@ module PulpDebClient
|
|
112
103
|
def ==(o)
|
113
104
|
return true if self.equal?(o)
|
114
105
|
self.class == o.class &&
|
115
|
-
|
116
|
-
|
117
|
-
|
106
|
+
config == o.config &&
|
107
|
+
structured == o.structured &&
|
108
|
+
dependency_solving == o.dependency_solving
|
118
109
|
end
|
119
110
|
|
120
111
|
# @see the `==` method
|
@@ -126,7 +117,7 @@ module PulpDebClient
|
|
126
117
|
# Calculates hash code according to all attributes.
|
127
118
|
# @return [Integer] Hash code
|
128
119
|
def hash
|
129
|
-
[
|
120
|
+
[config, structured, dependency_solving].hash
|
130
121
|
end
|
131
122
|
|
132
123
|
# Builds the object from hash
|
@@ -13,22 +13,21 @@ OpenAPI Generator version: 4.3.1
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module PulpDebClient
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
attr_accessor :base_version
|
16
|
+
class Repair
|
17
|
+
# Will verify that the checksum of all stored files matches what saved in the database. Otherwise only the existence of the files will be checked. Enabled by default
|
18
|
+
attr_accessor :verify_checksums
|
20
19
|
|
21
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
22
21
|
def self.attribute_map
|
23
22
|
{
|
24
|
-
:'
|
23
|
+
:'verify_checksums' => :'verify_checksums'
|
25
24
|
}
|
26
25
|
end
|
27
26
|
|
28
27
|
# Attribute type mapping.
|
29
28
|
def self.openapi_types
|
30
29
|
{
|
31
|
-
:'
|
30
|
+
:'verify_checksums' => :'Boolean'
|
32
31
|
}
|
33
32
|
end
|
34
33
|
|
@@ -42,19 +41,21 @@ module PulpDebClient
|
|
42
41
|
# @param [Hash] attributes Model attributes in the form of hash
|
43
42
|
def initialize(attributes = {})
|
44
43
|
if (!attributes.is_a?(Hash))
|
45
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpDebClient::
|
44
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpDebClient::Repair` initialize method"
|
46
45
|
end
|
47
46
|
|
48
47
|
# check to see if the attribute exists and convert string to symbol for hash key
|
49
48
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
50
49
|
if (!self.class.attribute_map.key?(k.to_sym))
|
51
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpDebClient::
|
50
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpDebClient::Repair`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
52
51
|
end
|
53
52
|
h[k.to_sym] = v
|
54
53
|
}
|
55
54
|
|
56
|
-
if attributes.key?(:'
|
57
|
-
self.
|
55
|
+
if attributes.key?(:'verify_checksums')
|
56
|
+
self.verify_checksums = attributes[:'verify_checksums']
|
57
|
+
else
|
58
|
+
self.verify_checksums = true
|
58
59
|
end
|
59
60
|
end
|
60
61
|
|
@@ -76,7 +77,7 @@ module PulpDebClient
|
|
76
77
|
def ==(o)
|
77
78
|
return true if self.equal?(o)
|
78
79
|
self.class == o.class &&
|
79
|
-
|
80
|
+
verify_checksums == o.verify_checksums
|
80
81
|
end
|
81
82
|
|
82
83
|
# @see the `==` method
|
@@ -88,7 +89,7 @@ module PulpDebClient
|
|
88
89
|
# Calculates hash code according to all attributes.
|
89
90
|
# @return [Integer] Hash code
|
90
91
|
def hash
|
91
|
-
[
|
92
|
+
[verify_checksums].hash
|
92
93
|
end
|
93
94
|
|
94
95
|
# Builds the object from hash
|
data/lib/pulp_deb_client.rb
CHANGED
@@ -18,8 +18,8 @@ require 'pulp_deb_client/configuration'
|
|
18
18
|
|
19
19
|
# Models
|
20
20
|
require 'pulp_deb_client/models/async_operation_response'
|
21
|
-
require 'pulp_deb_client/models/content_summary'
|
22
21
|
require 'pulp_deb_client/models/content_summary_response'
|
22
|
+
require 'pulp_deb_client/models/copy'
|
23
23
|
require 'pulp_deb_client/models/deb_apt_distribution'
|
24
24
|
require 'pulp_deb_client/models/deb_apt_distribution_response'
|
25
25
|
require 'pulp_deb_client/models/deb_apt_publication'
|
@@ -67,9 +67,9 @@ require 'pulp_deb_client/models/patcheddeb_apt_distribution'
|
|
67
67
|
require 'pulp_deb_client/models/patcheddeb_apt_remote'
|
68
68
|
require 'pulp_deb_client/models/patcheddeb_apt_repository'
|
69
69
|
require 'pulp_deb_client/models/policy_enum'
|
70
|
+
require 'pulp_deb_client/models/repair'
|
70
71
|
require 'pulp_deb_client/models/repository_add_remove_content'
|
71
72
|
require 'pulp_deb_client/models/repository_sync_url'
|
72
|
-
require 'pulp_deb_client/models/repository_version'
|
73
73
|
require 'pulp_deb_client/models/repository_version_response'
|
74
74
|
|
75
75
|
# APIs
|
@@ -83,6 +83,7 @@ require 'pulp_deb_client/api/content_release_architectures_api'
|
|
83
83
|
require 'pulp_deb_client/api/content_release_components_api'
|
84
84
|
require 'pulp_deb_client/api/content_release_files_api'
|
85
85
|
require 'pulp_deb_client/api/content_releases_api'
|
86
|
+
require 'pulp_deb_client/api/deb_copy_api'
|
86
87
|
require 'pulp_deb_client/api/distributions_apt_api'
|
87
88
|
require 'pulp_deb_client/api/publications_apt_api'
|
88
89
|
require 'pulp_deb_client/api/publications_verbatim_api'
|
data/pulp_deb_client.gemspec
CHANGED
@@ -21,13 +21,13 @@ Gem::Specification.new do |s|
|
|
21
21
|
s.platform = Gem::Platform::RUBY
|
22
22
|
s.authors = ["OpenAPI-Generator"]
|
23
23
|
s.email = ["pulp-list@redhat.com"]
|
24
|
-
s.homepage = "https://
|
24
|
+
s.homepage = "https://openapi-generator.tech"
|
25
25
|
s.summary = "Pulp 3 API Ruby Gem"
|
26
26
|
s.description = "Fetch, Upload, Organize, and Distribute Software Packages"
|
27
|
-
s.license = '
|
27
|
+
s.license = 'GPL-2.0+'
|
28
28
|
s.required_ruby_version = ">= 1.9"
|
29
29
|
|
30
|
-
s.add_runtime_dependency 'faraday', '
|
30
|
+
s.add_runtime_dependency 'faraday', '~> 0.17', '< 1.9.0'
|
31
31
|
s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
|
32
32
|
|
33
33
|
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
|
@@ -0,0 +1,47 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
Contact: pulp-list@redhat.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for PulpDebClient::DebCopyApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'DebCopyApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = PulpDebClient::DebCopyApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of DebCopyApi' do
|
30
|
+
it 'should create an instance of DebCopyApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(PulpDebClient::DebCopyApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for copy_content
|
36
|
+
# Copy content
|
37
|
+
# Trigger an asynchronous task to copy APT contentfrom one repository into another, creating a newrepository version.
|
38
|
+
# @param copy
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @return [AsyncOperationResponse]
|
41
|
+
describe 'copy_content test' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
end
|
@@ -92,7 +92,7 @@ describe 'RepositoriesAptVersionsApi' do
|
|
92
92
|
# unit tests for repair
|
93
93
|
# Trigger an asynchronous task to repair a repository version.
|
94
94
|
# @param deb_apt_repository_version_href
|
95
|
-
# @param
|
95
|
+
# @param repair
|
96
96
|
# @param [Hash] opts the optional parameters
|
97
97
|
# @return [AsyncOperationResponse]
|
98
98
|
describe 'repair test' do
|
@@ -14,37 +14,37 @@ require 'spec_helper'
|
|
14
14
|
require 'json'
|
15
15
|
require 'date'
|
16
16
|
|
17
|
-
# Unit tests for PulpDebClient::
|
17
|
+
# Unit tests for PulpDebClient::Copy
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
19
|
# Please update as you see appropriate
|
20
|
-
describe '
|
20
|
+
describe 'Copy' do
|
21
21
|
before do
|
22
22
|
# run before each test
|
23
|
-
@instance = PulpDebClient::
|
23
|
+
@instance = PulpDebClient::Copy.new
|
24
24
|
end
|
25
25
|
|
26
26
|
after do
|
27
27
|
# run after each test
|
28
28
|
end
|
29
29
|
|
30
|
-
describe 'test an instance of
|
31
|
-
it 'should create an instance of
|
32
|
-
expect(@instance).to be_instance_of(PulpDebClient::
|
30
|
+
describe 'test an instance of Copy' do
|
31
|
+
it 'should create an instance of Copy' do
|
32
|
+
expect(@instance).to be_instance_of(PulpDebClient::Copy)
|
33
33
|
end
|
34
34
|
end
|
35
|
-
describe 'test attribute "
|
35
|
+
describe 'test attribute "config"' do
|
36
36
|
it 'should work' do
|
37
37
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
|
-
describe 'test attribute "
|
41
|
+
describe 'test attribute "structured"' 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
|
45
45
|
end
|
46
46
|
|
47
|
-
describe 'test attribute "
|
47
|
+
describe 'test attribute "dependency_solving"' do
|
48
48
|
it 'should work' do
|
49
49
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
50
|
end
|
@@ -14,25 +14,25 @@ require 'spec_helper'
|
|
14
14
|
require 'json'
|
15
15
|
require 'date'
|
16
16
|
|
17
|
-
# Unit tests for PulpDebClient::
|
17
|
+
# Unit tests for PulpDebClient::Repair
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
19
|
# Please update as you see appropriate
|
20
|
-
describe '
|
20
|
+
describe 'Repair' do
|
21
21
|
before do
|
22
22
|
# run before each test
|
23
|
-
@instance = PulpDebClient::
|
23
|
+
@instance = PulpDebClient::Repair.new
|
24
24
|
end
|
25
25
|
|
26
26
|
after do
|
27
27
|
# run after each test
|
28
28
|
end
|
29
29
|
|
30
|
-
describe 'test an instance of
|
31
|
-
it 'should create an instance of
|
32
|
-
expect(@instance).to be_instance_of(PulpDebClient::
|
30
|
+
describe 'test an instance of Repair' do
|
31
|
+
it 'should create an instance of Repair' do
|
32
|
+
expect(@instance).to be_instance_of(PulpDebClient::Repair)
|
33
33
|
end
|
34
34
|
end
|
35
|
-
describe 'test attribute "
|
35
|
+
describe 'test attribute "verify_checksums"' do
|
36
36
|
it 'should work' do
|
37
37
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
38
|
end
|
metadata
CHANGED
@@ -1,35 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pulp_deb_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.18.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: 2022-
|
11
|
+
date: 2022-04-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: '0.17'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version:
|
22
|
+
version: 1.9.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
|
-
- - "
|
27
|
+
- - "~>"
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
29
|
+
version: '0.17'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version:
|
32
|
+
version: 1.9.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: json
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -91,8 +91,8 @@ files:
|
|
91
91
|
- docs/ContentReleaseComponentsApi.md
|
92
92
|
- docs/ContentReleaseFilesApi.md
|
93
93
|
- docs/ContentReleasesApi.md
|
94
|
-
- docs/ContentSummary.md
|
95
94
|
- docs/ContentSummaryResponse.md
|
95
|
+
- docs/Copy.md
|
96
96
|
- docs/DebAptDistribution.md
|
97
97
|
- docs/DebAptDistributionResponse.md
|
98
98
|
- docs/DebAptPublication.md
|
@@ -103,6 +103,7 @@ files:
|
|
103
103
|
- docs/DebAptRepositoryResponse.md
|
104
104
|
- docs/DebBasePackage.md
|
105
105
|
- docs/DebBasePackageResponse.md
|
106
|
+
- docs/DebCopyApi.md
|
106
107
|
- docs/DebGenericContent.md
|
107
108
|
- docs/DebGenericContentResponse.md
|
108
109
|
- docs/DebInstallerFileIndex.md
|
@@ -144,12 +145,13 @@ files:
|
|
144
145
|
- docs/PublicationsAptApi.md
|
145
146
|
- docs/PublicationsVerbatimApi.md
|
146
147
|
- docs/RemotesAptApi.md
|
148
|
+
- docs/Repair.md
|
147
149
|
- docs/RepositoriesAptApi.md
|
148
150
|
- docs/RepositoriesAptVersionsApi.md
|
149
151
|
- docs/RepositoryAddRemoveContent.md
|
150
152
|
- docs/RepositorySyncURL.md
|
151
|
-
- docs/RepositoryVersion.md
|
152
153
|
- docs/RepositoryVersionResponse.md
|
154
|
+
- git_push.sh
|
153
155
|
- lib/pulp_deb_client.rb
|
154
156
|
- lib/pulp_deb_client/api/content_generic_contents_api.rb
|
155
157
|
- lib/pulp_deb_client/api/content_installer_file_indices_api.rb
|
@@ -161,6 +163,7 @@ files:
|
|
161
163
|
- lib/pulp_deb_client/api/content_release_components_api.rb
|
162
164
|
- lib/pulp_deb_client/api/content_release_files_api.rb
|
163
165
|
- lib/pulp_deb_client/api/content_releases_api.rb
|
166
|
+
- lib/pulp_deb_client/api/deb_copy_api.rb
|
164
167
|
- lib/pulp_deb_client/api/distributions_apt_api.rb
|
165
168
|
- lib/pulp_deb_client/api/publications_apt_api.rb
|
166
169
|
- lib/pulp_deb_client/api/publications_verbatim_api.rb
|
@@ -171,8 +174,8 @@ files:
|
|
171
174
|
- lib/pulp_deb_client/api_error.rb
|
172
175
|
- lib/pulp_deb_client/configuration.rb
|
173
176
|
- lib/pulp_deb_client/models/async_operation_response.rb
|
174
|
-
- lib/pulp_deb_client/models/content_summary.rb
|
175
177
|
- lib/pulp_deb_client/models/content_summary_response.rb
|
178
|
+
- lib/pulp_deb_client/models/copy.rb
|
176
179
|
- lib/pulp_deb_client/models/deb_apt_distribution.rb
|
177
180
|
- lib/pulp_deb_client/models/deb_apt_distribution_response.rb
|
178
181
|
- lib/pulp_deb_client/models/deb_apt_publication.rb
|
@@ -220,9 +223,9 @@ files:
|
|
220
223
|
- lib/pulp_deb_client/models/patcheddeb_apt_remote.rb
|
221
224
|
- lib/pulp_deb_client/models/patcheddeb_apt_repository.rb
|
222
225
|
- lib/pulp_deb_client/models/policy_enum.rb
|
226
|
+
- lib/pulp_deb_client/models/repair.rb
|
223
227
|
- lib/pulp_deb_client/models/repository_add_remove_content.rb
|
224
228
|
- lib/pulp_deb_client/models/repository_sync_url.rb
|
225
|
-
- lib/pulp_deb_client/models/repository_version.rb
|
226
229
|
- lib/pulp_deb_client/models/repository_version_response.rb
|
227
230
|
- lib/pulp_deb_client/version.rb
|
228
231
|
- pulp_deb_client.gemspec
|
@@ -236,6 +239,7 @@ files:
|
|
236
239
|
- spec/api/content_release_components_api_spec.rb
|
237
240
|
- spec/api/content_release_files_api_spec.rb
|
238
241
|
- spec/api/content_releases_api_spec.rb
|
242
|
+
- spec/api/deb_copy_api_spec.rb
|
239
243
|
- spec/api/distributions_apt_api_spec.rb
|
240
244
|
- spec/api/publications_apt_api_spec.rb
|
241
245
|
- spec/api/publications_verbatim_api_spec.rb
|
@@ -246,7 +250,7 @@ files:
|
|
246
250
|
- spec/configuration_spec.rb
|
247
251
|
- spec/models/async_operation_response_spec.rb
|
248
252
|
- spec/models/content_summary_response_spec.rb
|
249
|
-
- spec/models/
|
253
|
+
- spec/models/copy_spec.rb
|
250
254
|
- spec/models/deb_apt_distribution_response_spec.rb
|
251
255
|
- spec/models/deb_apt_distribution_spec.rb
|
252
256
|
- spec/models/deb_apt_publication_response_spec.rb
|
@@ -294,14 +298,14 @@ files:
|
|
294
298
|
- spec/models/patcheddeb_apt_remote_spec.rb
|
295
299
|
- spec/models/patcheddeb_apt_repository_spec.rb
|
296
300
|
- spec/models/policy_enum_spec.rb
|
301
|
+
- spec/models/repair_spec.rb
|
297
302
|
- spec/models/repository_add_remove_content_spec.rb
|
298
303
|
- spec/models/repository_sync_url_spec.rb
|
299
304
|
- spec/models/repository_version_response_spec.rb
|
300
|
-
- spec/models/repository_version_spec.rb
|
301
305
|
- spec/spec_helper.rb
|
302
|
-
homepage: https://
|
306
|
+
homepage: https://openapi-generator.tech
|
303
307
|
licenses:
|
304
|
-
-
|
308
|
+
- GPL-2.0+
|
305
309
|
metadata: {}
|
306
310
|
post_install_message:
|
307
311
|
rdoc_options: []
|
@@ -323,76 +327,77 @@ signing_key:
|
|
323
327
|
specification_version: 4
|
324
328
|
summary: Pulp 3 API Ruby Gem
|
325
329
|
test_files:
|
326
|
-
- spec/api/
|
330
|
+
- spec/api/content_installer_packages_api_spec.rb
|
327
331
|
- spec/api/content_release_files_api_spec.rb
|
328
|
-
- spec/api/
|
329
|
-
- spec/api/
|
332
|
+
- spec/api/content_releases_api_spec.rb
|
333
|
+
- spec/api/content_release_components_api_spec.rb
|
330
334
|
- spec/api/repositories_apt_api_spec.rb
|
331
|
-
- spec/api/content_generic_contents_api_spec.rb
|
332
|
-
- spec/api/publications_apt_api_spec.rb
|
333
335
|
- spec/api/distributions_apt_api_spec.rb
|
334
|
-
- spec/api/
|
336
|
+
- spec/api/repositories_apt_versions_api_spec.rb
|
335
337
|
- spec/api/content_package_indices_api_spec.rb
|
336
338
|
- spec/api/content_release_architectures_api_spec.rb
|
339
|
+
- spec/api/content_package_release_components_api_spec.rb
|
340
|
+
- spec/api/content_packages_api_spec.rb
|
341
|
+
- spec/api/publications_verbatim_api_spec.rb
|
342
|
+
- spec/api/publications_apt_api_spec.rb
|
337
343
|
- spec/api/remotes_apt_api_spec.rb
|
338
|
-
- spec/api/
|
344
|
+
- spec/api/content_generic_contents_api_spec.rb
|
345
|
+
- spec/api/deb_copy_api_spec.rb
|
339
346
|
- spec/api/content_installer_file_indices_api_spec.rb
|
340
|
-
- spec/api/content_releases_api_spec.rb
|
341
|
-
- spec/api/content_release_components_api_spec.rb
|
342
347
|
- spec/api_client_spec.rb
|
343
348
|
- spec/configuration_spec.rb
|
344
|
-
- spec/models/paginateddeb_generic_content_response_list_spec.rb
|
345
|
-
- spec/models/repository_version_response_spec.rb
|
346
|
-
- spec/models/paginateddeb_apt_publication_response_list_spec.rb
|
347
|
-
- spec/models/deb_installer_file_index_spec.rb
|
348
|
-
- spec/models/paginateddeb_package_index_response_list_spec.rb
|
349
|
-
- spec/models/deb_verbatim_publication_spec.rb
|
350
|
-
- spec/models/deb_base_package_response_spec.rb
|
351
349
|
- spec/models/paginateddeb_release_component_response_list_spec.rb
|
352
|
-
- spec/models/paginateddeb_apt_remote_response_list_spec.rb
|
353
|
-
- spec/models/paginateddeb_apt_repository_response_list_spec.rb
|
354
|
-
- spec/models/patcheddeb_apt_remote_spec.rb
|
355
|
-
- spec/models/deb_package_release_component_spec.rb
|
356
|
-
- spec/models/deb_release_file_response_spec.rb
|
357
|
-
- spec/models/deb_release_architecture_spec.rb
|
358
350
|
- spec/models/deb_release_architecture_response_spec.rb
|
359
|
-
- spec/models/
|
360
|
-
- spec/models/
|
361
|
-
- spec/models/async_operation_response_spec.rb
|
351
|
+
- spec/models/deb_base_package_response_spec.rb
|
352
|
+
- spec/models/deb_apt_distribution_response_spec.rb
|
362
353
|
- spec/models/deb_apt_distribution_spec.rb
|
363
|
-
- spec/models/
|
364
|
-
- spec/models/
|
365
|
-
- spec/models/
|
366
|
-
- spec/models/
|
367
|
-
- spec/models/deb_package_index_response_spec.rb
|
368
|
-
- spec/models/deb_generic_content_spec.rb
|
369
|
-
- spec/models/deb_release_file_spec.rb
|
354
|
+
- spec/models/deb_verbatim_publication_response_spec.rb
|
355
|
+
- spec/models/copy_spec.rb
|
356
|
+
- spec/models/deb_apt_remote_response_spec.rb
|
357
|
+
- spec/models/paginateddeb_apt_publication_response_list_spec.rb
|
370
358
|
- spec/models/deb_generic_content_response_spec.rb
|
371
|
-
- spec/models/paginateddeb_verbatim_publication_response_list_spec.rb
|
372
|
-
- spec/models/policy_enum_spec.rb
|
373
|
-
- spec/models/paginated_repository_version_response_list_spec.rb
|
374
|
-
- spec/models/repository_sync_url_spec.rb
|
375
359
|
- spec/models/deb_apt_publication_response_spec.rb
|
376
|
-
- spec/models/
|
377
|
-
- spec/models/
|
378
|
-
- spec/models/
|
379
|
-
- spec/models/
|
380
|
-
- spec/models/
|
381
|
-
- spec/models/
|
382
|
-
- spec/models/
|
383
|
-
- spec/models/content_summary_spec.rb
|
384
|
-
- spec/models/deb_apt_publication_spec.rb
|
360
|
+
- spec/models/patcheddeb_apt_repository_spec.rb
|
361
|
+
- spec/models/deb_verbatim_publication_spec.rb
|
362
|
+
- spec/models/paginateddeb_apt_remote_response_list_spec.rb
|
363
|
+
- spec/models/repository_add_remove_content_spec.rb
|
364
|
+
- spec/models/deb_installer_file_index_spec.rb
|
365
|
+
- spec/models/repository_sync_url_spec.rb
|
366
|
+
- spec/models/repair_spec.rb
|
385
367
|
- spec/models/deb_base_package_spec.rb
|
386
368
|
- spec/models/deb_package_index_spec.rb
|
387
|
-
- spec/models/
|
369
|
+
- spec/models/paginateddeb_apt_repository_response_list_spec.rb
|
370
|
+
- spec/models/content_summary_response_spec.rb
|
371
|
+
- spec/models/deb_installer_file_index_response_spec.rb
|
372
|
+
- spec/models/paginateddeb_release_architecture_response_list_spec.rb
|
373
|
+
- spec/models/paginateddeb_apt_distribution_response_list_spec.rb
|
374
|
+
- spec/models/deb_release_spec.rb
|
375
|
+
- spec/models/deb_apt_repository_spec.rb
|
376
|
+
- spec/models/deb_release_component_spec.rb
|
388
377
|
- spec/models/deb_package_release_component_response_spec.rb
|
378
|
+
- spec/models/async_operation_response_spec.rb
|
379
|
+
- spec/models/deb_apt_remote_spec.rb
|
380
|
+
- spec/models/deb_release_architecture_spec.rb
|
381
|
+
- spec/models/deb_package_release_component_spec.rb
|
382
|
+
- spec/models/policy_enum_spec.rb
|
383
|
+
- spec/models/deb_release_file_spec.rb
|
384
|
+
- spec/models/paginateddeb_release_file_response_list_spec.rb
|
385
|
+
- spec/models/deb_apt_publication_spec.rb
|
386
|
+
- spec/models/paginateddeb_package_index_response_list_spec.rb
|
387
|
+
- spec/models/paginateddeb_package_release_component_response_list_spec.rb
|
388
|
+
- spec/models/paginateddeb_installer_file_index_response_list_spec.rb
|
389
|
+
- spec/models/deb_apt_repository_response_spec.rb
|
390
|
+
- spec/models/paginated_repository_version_response_list_spec.rb
|
389
391
|
- spec/models/deb_release_response_spec.rb
|
392
|
+
- spec/models/patcheddeb_apt_distribution_spec.rb
|
393
|
+
- spec/models/repository_version_response_spec.rb
|
394
|
+
- spec/models/patcheddeb_apt_remote_spec.rb
|
395
|
+
- spec/models/deb_package_index_response_spec.rb
|
390
396
|
- spec/models/paginateddeb_base_package_response_list_spec.rb
|
391
|
-
- spec/models/
|
392
|
-
- spec/models/
|
393
|
-
- spec/models/
|
394
|
-
- spec/models/
|
395
|
-
- spec/models/
|
397
|
+
- spec/models/paginateddeb_generic_content_response_list_spec.rb
|
398
|
+
- spec/models/deb_release_component_response_spec.rb
|
399
|
+
- spec/models/deb_generic_content_spec.rb
|
400
|
+
- spec/models/deb_release_file_response_spec.rb
|
401
|
+
- spec/models/paginateddeb_verbatim_publication_response_list_spec.rb
|
396
402
|
- spec/models/paginateddeb_release_response_list_spec.rb
|
397
|
-
- spec/models/deb_release_spec.rb
|
398
403
|
- spec/spec_helper.rb
|
data/docs/ContentSummary.md
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
# PulpDebClient::ContentSummary
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**added** | **Hash<String, Object>** | |
|
8
|
-
**removed** | **Hash<String, Object>** | |
|
9
|
-
**present** | **Hash<String, Object>** | |
|
10
|
-
|
11
|
-
## Code Sample
|
12
|
-
|
13
|
-
```ruby
|
14
|
-
require 'PulpDebClient'
|
15
|
-
|
16
|
-
instance = PulpDebClient::ContentSummary.new(added: null,
|
17
|
-
removed: null,
|
18
|
-
present: null)
|
19
|
-
```
|
20
|
-
|
21
|
-
|
data/docs/RepositoryVersion.md
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
# PulpDebClient::RepositoryVersion
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**base_version** | **String** | A repository version whose content was used as the initial set of content for this repository version | [optional]
|
8
|
-
|
9
|
-
## Code Sample
|
10
|
-
|
11
|
-
```ruby
|
12
|
-
require 'PulpDebClient'
|
13
|
-
|
14
|
-
instance = PulpDebClient::RepositoryVersion.new(base_version: null)
|
15
|
-
```
|
16
|
-
|
17
|
-
|