pulp_deb_client 2.17.1 → 2.18.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: 55256508745ab7e10f6fd08831409fa81cc214d42964bc7d7068d31fb7cd2947
4
- data.tar.gz: 56b38b8ee1a3b4e291dc8215cf236b094c606c74068b04f16957bc9d9a420def
3
+ metadata.gz: 2f3e4fdde7d4fbd6da28e2c8e3d808328504f4a9619768e015769242ea45221b
4
+ data.tar.gz: d0521cce44076137f6a2ecdb1e4496486bedbd97347b81a9022ab885020c3df8
5
5
  SHA512:
6
- metadata.gz: '08ad35651e43fd5e6f2dda74cec3dbb86373b4b0290973675f27658e91814aa4ff8396412130733682b2f1882ebadd226cbfd5489e32f331604295c4453dcddd'
7
- data.tar.gz: 64b1a1a33f0632ebe71823aea87c6f5ff90059e62ff973b7cf26ab3269b2c07cfdf32746456f5a20dc8356a25f5ab98f00a1233f1ca42d018c7a9ea578854644
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.17.1
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.17.1.gem
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.17.1.gem` to install the development dependencies)
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.17.1'
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
+
@@ -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, repository_version)
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
- repository_version = PulpDebClient::RepositoryVersion.new # RepositoryVersion |
241
+ repair = PulpDebClient::Repair.new # Repair |
242
242
 
243
243
  begin
244
- result = api_instance.repair(deb_apt_repository_version_href, repository_version)
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
- **repository_version** | [**RepositoryVersion**](RepositoryVersion.md)| |
257
+ **repair** | [**Repair**](Repair.md)| |
258
258
 
259
259
  ### Return type
260
260
 
@@ -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 repository_version [RepositoryVersion]
273
+ # @param repair [Repair]
274
274
  # @param [Hash] opts the optional parameters
275
275
  # @return [AsyncOperationResponse]
276
- def repair(deb_apt_repository_version_href, repository_version, opts = {})
277
- data, _status_code, _headers = repair_with_http_info(deb_apt_repository_version_href, repository_version, opts)
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 repository_version [RepositoryVersion]
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, repository_version, opts = {})
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 'repository_version' is set
295
- if @api_client.config.client_side_validation && repository_version.nil?
296
- fail ArgumentError, "Missing the required parameter 'repository_version' when calling RepositoriesAptVersionsApi.repair"
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(repository_version)
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'
@@ -13,29 +13,32 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module PulpDebClient
16
- # Serializer for the RepositoryVersion content summary
17
- class ContentSummary
18
- attr_accessor :added
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
- attr_accessor :removed
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
- attr_accessor :present
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
- :'added' => :'added',
28
- :'removed' => :'removed',
29
- :'present' => :'present'
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
- :'added' => :'Hash<String, Object>',
37
- :'removed' => :'Hash<String, Object>',
38
- :'present' => :'Hash<String, Object>'
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::ContentSummary` initialize method"
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::ContentSummary`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
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?(:'added')
64
- if (value = attributes[:'added']).is_a?(Hash)
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?(:'removed')
70
- if (value = attributes[:'removed']).is_a?(Hash)
71
- self.removed = value
72
- end
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?(:'present')
76
- if (value = attributes[:'present']).is_a?(Hash)
77
- self.present = value
78
- end
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 @added.nil?
87
- invalid_properties.push('invalid value for "added", added cannot be nil.')
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 @added.nil?
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
- added == o.added &&
116
- removed == o.removed &&
117
- present == o.present
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
- [added, removed, present].hash
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
- # Base serializer for use with :class:`pulpcore.app.models.Model` This ensures that all Serializers provide values for the 'pulp_href` field. The class provides a default for the ``ref_name`` attribute in the ModelSerializers's ``Meta`` class. This ensures that the OpenAPI definitions of plugins are namespaced properly.
17
- class RepositoryVersion
18
- # A repository version whose content was used as the initial set of content for this repository version
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
- :'base_version' => :'base_version'
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
- :'base_version' => :'String'
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::RepositoryVersion` initialize method"
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::RepositoryVersion`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
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?(:'base_version')
57
- self.base_version = attributes[:'base_version']
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
- base_version == o.base_version
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
- [base_version].hash
92
+ [verify_checksums].hash
92
93
  end
93
94
 
94
95
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.3.1
11
11
  =end
12
12
 
13
13
  module PulpDebClient
14
- VERSION = '2.17.1'
14
+ VERSION = '2.18.0'
15
15
  end
@@ -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'
@@ -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 repository_version
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::ContentSummary
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 'ContentSummary' do
20
+ describe 'Copy' do
21
21
  before do
22
22
  # run before each test
23
- @instance = PulpDebClient::ContentSummary.new
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 ContentSummary' do
31
- it 'should create an instance of ContentSummary' do
32
- expect(@instance).to be_instance_of(PulpDebClient::ContentSummary)
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 "added"' do
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 "removed"' do
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 "present"' do
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::RepositoryVersion
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 'RepositoryVersion' do
20
+ describe 'Repair' do
21
21
  before do
22
22
  # run before each test
23
- @instance = PulpDebClient::RepositoryVersion.new
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 RepositoryVersion' do
31
- it 'should create an instance of RepositoryVersion' do
32
- expect(@instance).to be_instance_of(PulpDebClient::RepositoryVersion)
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 "base_version"' do
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,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pulp_deb_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.17.1
4
+ version: 2.18.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
@@ -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,11 +145,11 @@ 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
153
154
  - git_push.sh
154
155
  - lib/pulp_deb_client.rb
@@ -162,6 +163,7 @@ files:
162
163
  - lib/pulp_deb_client/api/content_release_components_api.rb
163
164
  - lib/pulp_deb_client/api/content_release_files_api.rb
164
165
  - lib/pulp_deb_client/api/content_releases_api.rb
166
+ - lib/pulp_deb_client/api/deb_copy_api.rb
165
167
  - lib/pulp_deb_client/api/distributions_apt_api.rb
166
168
  - lib/pulp_deb_client/api/publications_apt_api.rb
167
169
  - lib/pulp_deb_client/api/publications_verbatim_api.rb
@@ -172,8 +174,8 @@ files:
172
174
  - lib/pulp_deb_client/api_error.rb
173
175
  - lib/pulp_deb_client/configuration.rb
174
176
  - lib/pulp_deb_client/models/async_operation_response.rb
175
- - lib/pulp_deb_client/models/content_summary.rb
176
177
  - lib/pulp_deb_client/models/content_summary_response.rb
178
+ - lib/pulp_deb_client/models/copy.rb
177
179
  - lib/pulp_deb_client/models/deb_apt_distribution.rb
178
180
  - lib/pulp_deb_client/models/deb_apt_distribution_response.rb
179
181
  - lib/pulp_deb_client/models/deb_apt_publication.rb
@@ -221,9 +223,9 @@ files:
221
223
  - lib/pulp_deb_client/models/patcheddeb_apt_remote.rb
222
224
  - lib/pulp_deb_client/models/patcheddeb_apt_repository.rb
223
225
  - lib/pulp_deb_client/models/policy_enum.rb
226
+ - lib/pulp_deb_client/models/repair.rb
224
227
  - lib/pulp_deb_client/models/repository_add_remove_content.rb
225
228
  - lib/pulp_deb_client/models/repository_sync_url.rb
226
- - lib/pulp_deb_client/models/repository_version.rb
227
229
  - lib/pulp_deb_client/models/repository_version_response.rb
228
230
  - lib/pulp_deb_client/version.rb
229
231
  - pulp_deb_client.gemspec
@@ -237,6 +239,7 @@ files:
237
239
  - spec/api/content_release_components_api_spec.rb
238
240
  - spec/api/content_release_files_api_spec.rb
239
241
  - spec/api/content_releases_api_spec.rb
242
+ - spec/api/deb_copy_api_spec.rb
240
243
  - spec/api/distributions_apt_api_spec.rb
241
244
  - spec/api/publications_apt_api_spec.rb
242
245
  - spec/api/publications_verbatim_api_spec.rb
@@ -247,7 +250,7 @@ files:
247
250
  - spec/configuration_spec.rb
248
251
  - spec/models/async_operation_response_spec.rb
249
252
  - spec/models/content_summary_response_spec.rb
250
- - spec/models/content_summary_spec.rb
253
+ - spec/models/copy_spec.rb
251
254
  - spec/models/deb_apt_distribution_response_spec.rb
252
255
  - spec/models/deb_apt_distribution_spec.rb
253
256
  - spec/models/deb_apt_publication_response_spec.rb
@@ -295,10 +298,10 @@ files:
295
298
  - spec/models/patcheddeb_apt_remote_spec.rb
296
299
  - spec/models/patcheddeb_apt_repository_spec.rb
297
300
  - spec/models/policy_enum_spec.rb
301
+ - spec/models/repair_spec.rb
298
302
  - spec/models/repository_add_remove_content_spec.rb
299
303
  - spec/models/repository_sync_url_spec.rb
300
304
  - spec/models/repository_version_response_spec.rb
301
- - spec/models/repository_version_spec.rb
302
305
  - spec/spec_helper.rb
303
306
  homepage: https://openapi-generator.tech
304
307
  licenses:
@@ -339,6 +342,7 @@ test_files:
339
342
  - spec/api/publications_apt_api_spec.rb
340
343
  - spec/api/remotes_apt_api_spec.rb
341
344
  - spec/api/content_generic_contents_api_spec.rb
345
+ - spec/api/deb_copy_api_spec.rb
342
346
  - spec/api/content_installer_file_indices_api_spec.rb
343
347
  - spec/api_client_spec.rb
344
348
  - spec/configuration_spec.rb
@@ -348,10 +352,10 @@ test_files:
348
352
  - spec/models/deb_apt_distribution_response_spec.rb
349
353
  - spec/models/deb_apt_distribution_spec.rb
350
354
  - spec/models/deb_verbatim_publication_response_spec.rb
355
+ - spec/models/copy_spec.rb
351
356
  - spec/models/deb_apt_remote_response_spec.rb
352
357
  - spec/models/paginateddeb_apt_publication_response_list_spec.rb
353
358
  - spec/models/deb_generic_content_response_spec.rb
354
- - spec/models/repository_version_spec.rb
355
359
  - spec/models/deb_apt_publication_response_spec.rb
356
360
  - spec/models/patcheddeb_apt_repository_spec.rb
357
361
  - spec/models/deb_verbatim_publication_spec.rb
@@ -359,6 +363,7 @@ test_files:
359
363
  - spec/models/repository_add_remove_content_spec.rb
360
364
  - spec/models/deb_installer_file_index_spec.rb
361
365
  - spec/models/repository_sync_url_spec.rb
366
+ - spec/models/repair_spec.rb
362
367
  - spec/models/deb_base_package_spec.rb
363
368
  - spec/models/deb_package_index_spec.rb
364
369
  - spec/models/paginateddeb_apt_repository_response_list_spec.rb
@@ -388,7 +393,6 @@ test_files:
388
393
  - spec/models/repository_version_response_spec.rb
389
394
  - spec/models/patcheddeb_apt_remote_spec.rb
390
395
  - spec/models/deb_package_index_response_spec.rb
391
- - spec/models/content_summary_spec.rb
392
396
  - spec/models/paginateddeb_base_package_response_list_spec.rb
393
397
  - spec/models/paginateddeb_generic_content_response_list_spec.rb
394
398
  - spec/models/deb_release_component_response_spec.rb
@@ -1,21 +0,0 @@
1
- # PulpDebClient::ContentSummary
2
-
3
- ## Properties
4
-
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **added** | **Hash&lt;String, Object&gt;** | |
8
- **removed** | **Hash&lt;String, Object&gt;** | |
9
- **present** | **Hash&lt;String, Object&gt;** | |
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
-
@@ -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
-