pulp_deb_client 2.13.0 → 2.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/README.md +9 -9
- data/docs/ContentGenericContentsApi.md +1 -1
- data/docs/ContentInstallerFileIndicesApi.md +1 -1
- data/docs/ContentInstallerPackagesApi.md +1 -1
- data/docs/ContentPackageIndicesApi.md +1 -1
- data/docs/ContentPackageReleaseComponentsApi.md +1 -1
- data/docs/ContentPackagesApi.md +1 -1
- data/docs/ContentReleaseArchitecturesApi.md +1 -1
- data/docs/ContentReleaseComponentsApi.md +1 -1
- data/docs/ContentReleaseFilesApi.md +1 -1
- data/docs/ContentReleasesApi.md +1 -1
- data/docs/DebAptRemote.md +7 -5
- data/docs/DebAptRemoteResponse.md +7 -5
- data/docs/DebAptRepository.md +3 -3
- data/docs/DebAptRepositoryResponse.md +3 -3
- data/docs/DistributionsAptApi.md +1 -1
- data/docs/PatcheddebAptRemote.md +7 -5
- data/docs/PatcheddebAptRepository.md +3 -3
- data/docs/PublicationsAptApi.md +1 -1
- data/docs/PublicationsVerbatimApi.md +1 -1
- data/docs/RemotesAptApi.md +1 -1
- data/docs/RepositoriesAptApi.md +1 -1
- data/docs/{RepositoriesDebVersionsApi.md → RepositoriesAptVersionsApi.md} +14 -14
- data/docs/RepositoryAddRemoveContent.md +2 -2
- data/lib/pulp_deb_client/api/content_generic_contents_api.rb +1 -1
- data/lib/pulp_deb_client/api/content_installer_file_indices_api.rb +1 -1
- data/lib/pulp_deb_client/api/content_installer_packages_api.rb +1 -1
- data/lib/pulp_deb_client/api/content_package_indices_api.rb +1 -1
- data/lib/pulp_deb_client/api/content_package_release_components_api.rb +1 -1
- data/lib/pulp_deb_client/api/content_packages_api.rb +1 -1
- data/lib/pulp_deb_client/api/content_release_architectures_api.rb +1 -1
- data/lib/pulp_deb_client/api/content_release_components_api.rb +1 -1
- data/lib/pulp_deb_client/api/content_release_files_api.rb +1 -1
- data/lib/pulp_deb_client/api/content_releases_api.rb +1 -1
- data/lib/pulp_deb_client/api/distributions_apt_api.rb +1 -1
- data/lib/pulp_deb_client/api/publications_apt_api.rb +1 -1
- data/lib/pulp_deb_client/api/publications_verbatim_api.rb +1 -1
- data/lib/pulp_deb_client/api/remotes_apt_api.rb +1 -1
- data/lib/pulp_deb_client/api/repositories_apt_api.rb +1 -1
- data/lib/pulp_deb_client/api/{repositories_deb_versions_api.rb → repositories_apt_versions_api.rb} +15 -15
- data/lib/pulp_deb_client/api_client.rb +12 -8
- data/lib/pulp_deb_client/api_error.rb +1 -1
- data/lib/pulp_deb_client/configuration.rb +10 -3
- data/lib/pulp_deb_client/models/async_operation_response.rb +1 -1
- data/lib/pulp_deb_client/models/content_summary.rb +1 -1
- data/lib/pulp_deb_client/models/content_summary_response.rb +1 -1
- data/lib/pulp_deb_client/models/deb_apt_distribution.rb +1 -1
- data/lib/pulp_deb_client/models/deb_apt_distribution_response.rb +1 -1
- data/lib/pulp_deb_client/models/deb_apt_publication.rb +1 -1
- data/lib/pulp_deb_client/models/deb_apt_publication_response.rb +1 -1
- data/lib/pulp_deb_client/models/deb_apt_remote.rb +19 -7
- data/lib/pulp_deb_client/models/deb_apt_remote_response.rb +19 -7
- data/lib/pulp_deb_client/models/deb_apt_repository.rb +18 -17
- data/lib/pulp_deb_client/models/deb_apt_repository_response.rb +18 -17
- data/lib/pulp_deb_client/models/deb_base_package.rb +1 -1
- data/lib/pulp_deb_client/models/deb_base_package_response.rb +1 -1
- data/lib/pulp_deb_client/models/deb_generic_content.rb +1 -1
- data/lib/pulp_deb_client/models/deb_generic_content_response.rb +1 -1
- data/lib/pulp_deb_client/models/deb_installer_file_index.rb +1 -1
- data/lib/pulp_deb_client/models/deb_installer_file_index_response.rb +1 -1
- data/lib/pulp_deb_client/models/deb_package_index.rb +1 -1
- data/lib/pulp_deb_client/models/deb_package_index_response.rb +1 -1
- data/lib/pulp_deb_client/models/deb_package_release_component.rb +1 -1
- data/lib/pulp_deb_client/models/deb_package_release_component_response.rb +1 -1
- data/lib/pulp_deb_client/models/deb_release.rb +1 -1
- data/lib/pulp_deb_client/models/deb_release_architecture.rb +1 -1
- data/lib/pulp_deb_client/models/deb_release_architecture_response.rb +1 -1
- data/lib/pulp_deb_client/models/deb_release_component.rb +1 -1
- data/lib/pulp_deb_client/models/deb_release_component_response.rb +1 -1
- data/lib/pulp_deb_client/models/deb_release_file.rb +1 -1
- data/lib/pulp_deb_client/models/deb_release_file_response.rb +1 -1
- data/lib/pulp_deb_client/models/deb_release_response.rb +1 -1
- data/lib/pulp_deb_client/models/deb_verbatim_publication.rb +1 -1
- data/lib/pulp_deb_client/models/deb_verbatim_publication_response.rb +1 -1
- data/lib/pulp_deb_client/models/paginated_repository_version_response_list.rb +1 -1
- data/lib/pulp_deb_client/models/paginateddeb_apt_distribution_response_list.rb +1 -1
- data/lib/pulp_deb_client/models/paginateddeb_apt_publication_response_list.rb +1 -1
- data/lib/pulp_deb_client/models/paginateddeb_apt_remote_response_list.rb +1 -1
- data/lib/pulp_deb_client/models/paginateddeb_apt_repository_response_list.rb +1 -1
- data/lib/pulp_deb_client/models/paginateddeb_base_package_response_list.rb +1 -1
- data/lib/pulp_deb_client/models/paginateddeb_generic_content_response_list.rb +1 -1
- data/lib/pulp_deb_client/models/paginateddeb_installer_file_index_response_list.rb +1 -1
- data/lib/pulp_deb_client/models/paginateddeb_package_index_response_list.rb +1 -1
- data/lib/pulp_deb_client/models/paginateddeb_package_release_component_response_list.rb +1 -1
- data/lib/pulp_deb_client/models/paginateddeb_release_architecture_response_list.rb +1 -1
- data/lib/pulp_deb_client/models/paginateddeb_release_component_response_list.rb +1 -1
- data/lib/pulp_deb_client/models/paginateddeb_release_file_response_list.rb +1 -1
- data/lib/pulp_deb_client/models/paginateddeb_release_response_list.rb +1 -1
- data/lib/pulp_deb_client/models/paginateddeb_verbatim_publication_response_list.rb +1 -1
- data/lib/pulp_deb_client/models/patcheddeb_apt_distribution.rb +1 -1
- data/lib/pulp_deb_client/models/patcheddeb_apt_remote.rb +19 -7
- data/lib/pulp_deb_client/models/patcheddeb_apt_repository.rb +18 -17
- data/lib/pulp_deb_client/models/policy_enum.rb +1 -1
- data/lib/pulp_deb_client/models/repository_add_remove_content.rb +3 -3
- data/lib/pulp_deb_client/models/repository_sync_url.rb +1 -1
- data/lib/pulp_deb_client/models/repository_version.rb +1 -1
- data/lib/pulp_deb_client/models/repository_version_response.rb +1 -1
- data/lib/pulp_deb_client/version.rb +2 -2
- data/lib/pulp_deb_client.rb +2 -2
- data/pulp_deb_client.gemspec +1 -1
- data/spec/api/content_generic_contents_api_spec.rb +1 -1
- data/spec/api/content_installer_file_indices_api_spec.rb +1 -1
- data/spec/api/content_installer_packages_api_spec.rb +1 -1
- data/spec/api/content_package_indices_api_spec.rb +1 -1
- data/spec/api/content_package_release_components_api_spec.rb +1 -1
- data/spec/api/content_packages_api_spec.rb +1 -1
- data/spec/api/content_release_architectures_api_spec.rb +1 -1
- data/spec/api/content_release_components_api_spec.rb +1 -1
- data/spec/api/content_release_files_api_spec.rb +1 -1
- data/spec/api/content_releases_api_spec.rb +1 -1
- data/spec/api/distributions_apt_api_spec.rb +1 -1
- data/spec/api/publications_apt_api_spec.rb +1 -1
- data/spec/api/publications_verbatim_api_spec.rb +1 -1
- data/spec/api/remotes_apt_api_spec.rb +1 -1
- data/spec/api/repositories_apt_api_spec.rb +1 -1
- data/spec/api/{repositories_deb_versions_api_spec.rb → repositories_apt_versions_api_spec.rb} +7 -7
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +4 -4
- data/spec/models/async_operation_response_spec.rb +1 -1
- data/spec/models/content_summary_response_spec.rb +1 -1
- data/spec/models/content_summary_spec.rb +1 -1
- data/spec/models/deb_apt_distribution_response_spec.rb +1 -1
- data/spec/models/deb_apt_distribution_spec.rb +1 -1
- data/spec/models/deb_apt_publication_response_spec.rb +1 -1
- data/spec/models/deb_apt_publication_spec.rb +1 -1
- data/spec/models/deb_apt_remote_response_spec.rb +7 -1
- data/spec/models/deb_apt_remote_spec.rb +7 -1
- data/spec/models/deb_apt_repository_response_spec.rb +2 -2
- data/spec/models/deb_apt_repository_spec.rb +2 -2
- data/spec/models/deb_base_package_response_spec.rb +1 -1
- data/spec/models/deb_base_package_spec.rb +1 -1
- data/spec/models/deb_generic_content_response_spec.rb +1 -1
- data/spec/models/deb_generic_content_spec.rb +1 -1
- data/spec/models/deb_installer_file_index_response_spec.rb +1 -1
- data/spec/models/deb_installer_file_index_spec.rb +1 -1
- data/spec/models/deb_package_index_response_spec.rb +1 -1
- data/spec/models/deb_package_index_spec.rb +1 -1
- data/spec/models/deb_package_release_component_response_spec.rb +1 -1
- data/spec/models/deb_package_release_component_spec.rb +1 -1
- data/spec/models/deb_release_architecture_response_spec.rb +1 -1
- data/spec/models/deb_release_architecture_spec.rb +1 -1
- data/spec/models/deb_release_component_response_spec.rb +1 -1
- data/spec/models/deb_release_component_spec.rb +1 -1
- data/spec/models/deb_release_file_response_spec.rb +1 -1
- data/spec/models/deb_release_file_spec.rb +1 -1
- data/spec/models/deb_release_response_spec.rb +1 -1
- data/spec/models/deb_release_spec.rb +1 -1
- data/spec/models/deb_verbatim_publication_response_spec.rb +1 -1
- data/spec/models/deb_verbatim_publication_spec.rb +1 -1
- data/spec/models/paginated_repository_version_response_list_spec.rb +1 -1
- data/spec/models/paginateddeb_apt_distribution_response_list_spec.rb +1 -1
- data/spec/models/paginateddeb_apt_publication_response_list_spec.rb +1 -1
- data/spec/models/paginateddeb_apt_remote_response_list_spec.rb +1 -1
- data/spec/models/paginateddeb_apt_repository_response_list_spec.rb +1 -1
- data/spec/models/paginateddeb_base_package_response_list_spec.rb +1 -1
- data/spec/models/paginateddeb_generic_content_response_list_spec.rb +1 -1
- data/spec/models/paginateddeb_installer_file_index_response_list_spec.rb +1 -1
- data/spec/models/paginateddeb_package_index_response_list_spec.rb +1 -1
- data/spec/models/paginateddeb_package_release_component_response_list_spec.rb +1 -1
- data/spec/models/paginateddeb_release_architecture_response_list_spec.rb +1 -1
- data/spec/models/paginateddeb_release_component_response_list_spec.rb +1 -1
- data/spec/models/paginateddeb_release_file_response_list_spec.rb +1 -1
- data/spec/models/paginateddeb_release_response_list_spec.rb +1 -1
- data/spec/models/paginateddeb_verbatim_publication_response_list_spec.rb +1 -1
- data/spec/models/patcheddeb_apt_distribution_spec.rb +1 -1
- data/spec/models/patcheddeb_apt_remote_spec.rb +7 -1
- data/spec/models/patcheddeb_apt_repository_spec.rb +2 -2
- data/spec/models/policy_enum_spec.rb +1 -1
- data/spec/models/repository_add_remove_content_spec.rb +1 -1
- data/spec/models/repository_sync_url_spec.rb +1 -1
- data/spec/models/repository_version_response_spec.rb +1 -1
- data/spec/models/repository_version_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +59 -59
@@ -4,8 +4,8 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**add_content_units** | **Array<
|
8
|
-
**remove_content_units** | **Array<
|
7
|
+
**add_content_units** | [**Array<AnyType>**](AnyType.md) | A list of content units to add to a new repository version. This content is added after remove_content_units are removed. | [optional]
|
8
|
+
**remove_content_units** | [**Array<AnyType>**](AnyType.md) | A list of content units to remove from the latest repository version. You may also specify '*' as an entry to remove all content. This content is removed before add_content_units are added. | [optional]
|
9
9
|
**base_version** | **String** | A repository version whose content will be used as the initial set of content for the new repository version | [optional]
|
10
10
|
|
11
11
|
## Code Sample
|
data/lib/pulp_deb_client/api/{repositories_deb_versions_api.rb → repositories_apt_versions_api.rb}
RENAMED
@@ -6,14 +6,14 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'cgi'
|
14
14
|
|
15
15
|
module PulpDebClient
|
16
|
-
class
|
16
|
+
class RepositoriesAptVersionsApi
|
17
17
|
attr_accessor :api_client
|
18
18
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
@@ -36,11 +36,11 @@ module PulpDebClient
|
|
36
36
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
37
37
|
def delete_with_http_info(deb_apt_repository_version_href, opts = {})
|
38
38
|
if @api_client.config.debugging
|
39
|
-
@api_client.config.logger.debug 'Calling API:
|
39
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesAptVersionsApi.delete ...'
|
40
40
|
end
|
41
41
|
# verify the required parameter 'deb_apt_repository_version_href' is set
|
42
42
|
if @api_client.config.client_side_validation && deb_apt_repository_version_href.nil?
|
43
|
-
fail ArgumentError, "Missing the required parameter 'deb_apt_repository_version_href' when calling
|
43
|
+
fail ArgumentError, "Missing the required parameter 'deb_apt_repository_version_href' when calling RepositoriesAptVersionsApi.delete"
|
44
44
|
end
|
45
45
|
# resource path
|
46
46
|
local_var_path = '{deb_apt_repository_version_href}'.sub('{' + 'deb_apt_repository_version_href' + '}', CGI.escape(deb_apt_repository_version_href.to_s).gsub('%2F', '/'))
|
@@ -76,7 +76,7 @@ module PulpDebClient
|
|
76
76
|
|
77
77
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
78
78
|
if @api_client.config.debugging
|
79
|
-
@api_client.config.logger.debug "API called:
|
79
|
+
@api_client.config.logger.debug "API called: RepositoriesAptVersionsApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
80
80
|
end
|
81
81
|
return data, status_code, headers
|
82
82
|
end
|
@@ -136,11 +136,11 @@ module PulpDebClient
|
|
136
136
|
# @return [Array<(PaginatedRepositoryVersionResponseList, Integer, Hash)>] PaginatedRepositoryVersionResponseList data, response status code and response headers
|
137
137
|
def list_with_http_info(deb_apt_repository_href, opts = {})
|
138
138
|
if @api_client.config.debugging
|
139
|
-
@api_client.config.logger.debug 'Calling API:
|
139
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesAptVersionsApi.list ...'
|
140
140
|
end
|
141
141
|
# verify the required parameter 'deb_apt_repository_href' is set
|
142
142
|
if @api_client.config.client_side_validation && deb_apt_repository_href.nil?
|
143
|
-
fail ArgumentError, "Missing the required parameter 'deb_apt_repository_href' when calling
|
143
|
+
fail ArgumentError, "Missing the required parameter 'deb_apt_repository_href' when calling RepositoriesAptVersionsApi.list"
|
144
144
|
end
|
145
145
|
# resource path
|
146
146
|
local_var_path = '{deb_apt_repository_href}versions/'.sub('{' + 'deb_apt_repository_href' + '}', CGI.escape(deb_apt_repository_href.to_s).gsub('%2F', '/'))
|
@@ -195,7 +195,7 @@ module PulpDebClient
|
|
195
195
|
|
196
196
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
197
197
|
if @api_client.config.debugging
|
198
|
-
@api_client.config.logger.debug "API called:
|
198
|
+
@api_client.config.logger.debug "API called: RepositoriesAptVersionsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
199
199
|
end
|
200
200
|
return data, status_code, headers
|
201
201
|
end
|
@@ -221,11 +221,11 @@ module PulpDebClient
|
|
221
221
|
# @return [Array<(RepositoryVersionResponse, Integer, Hash)>] RepositoryVersionResponse data, response status code and response headers
|
222
222
|
def read_with_http_info(deb_apt_repository_version_href, opts = {})
|
223
223
|
if @api_client.config.debugging
|
224
|
-
@api_client.config.logger.debug 'Calling API:
|
224
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesAptVersionsApi.read ...'
|
225
225
|
end
|
226
226
|
# verify the required parameter 'deb_apt_repository_version_href' is set
|
227
227
|
if @api_client.config.client_side_validation && deb_apt_repository_version_href.nil?
|
228
|
-
fail ArgumentError, "Missing the required parameter 'deb_apt_repository_version_href' when calling
|
228
|
+
fail ArgumentError, "Missing the required parameter 'deb_apt_repository_version_href' when calling RepositoriesAptVersionsApi.read"
|
229
229
|
end
|
230
230
|
# resource path
|
231
231
|
local_var_path = '{deb_apt_repository_version_href}'.sub('{' + 'deb_apt_repository_version_href' + '}', CGI.escape(deb_apt_repository_version_href.to_s).gsub('%2F', '/'))
|
@@ -263,7 +263,7 @@ module PulpDebClient
|
|
263
263
|
|
264
264
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
265
265
|
if @api_client.config.debugging
|
266
|
-
@api_client.config.logger.debug "API called:
|
266
|
+
@api_client.config.logger.debug "API called: RepositoriesAptVersionsApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
267
267
|
end
|
268
268
|
return data, status_code, headers
|
269
269
|
end
|
@@ -285,15 +285,15 @@ module PulpDebClient
|
|
285
285
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
286
286
|
def repair_with_http_info(deb_apt_repository_version_href, repository_version, opts = {})
|
287
287
|
if @api_client.config.debugging
|
288
|
-
@api_client.config.logger.debug 'Calling API:
|
288
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesAptVersionsApi.repair ...'
|
289
289
|
end
|
290
290
|
# verify the required parameter 'deb_apt_repository_version_href' is set
|
291
291
|
if @api_client.config.client_side_validation && deb_apt_repository_version_href.nil?
|
292
|
-
fail ArgumentError, "Missing the required parameter 'deb_apt_repository_version_href' when calling
|
292
|
+
fail ArgumentError, "Missing the required parameter 'deb_apt_repository_version_href' when calling RepositoriesAptVersionsApi.repair"
|
293
293
|
end
|
294
294
|
# verify the required parameter 'repository_version' is set
|
295
295
|
if @api_client.config.client_side_validation && repository_version.nil?
|
296
|
-
fail ArgumentError, "Missing the required parameter 'repository_version' when calling
|
296
|
+
fail ArgumentError, "Missing the required parameter 'repository_version' 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', '/'))
|
@@ -331,7 +331,7 @@ module PulpDebClient
|
|
331
331
|
|
332
332
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
333
333
|
if @api_client.config.debugging
|
334
|
-
@api_client.config.logger.debug "API called:
|
334
|
+
@api_client.config.logger.debug "API called: RepositoriesAptVersionsApi#repair\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
335
335
|
end
|
336
336
|
return data, status_code, headers
|
337
337
|
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -53,8 +53,10 @@ module PulpDebClient
|
|
53
53
|
:client_cert => @config.ssl_client_cert,
|
54
54
|
:client_key => @config.ssl_client_key
|
55
55
|
}
|
56
|
-
|
57
|
-
|
56
|
+
request_options = {
|
57
|
+
:params_encoder => @config.params_encoder
|
58
|
+
}
|
59
|
+
connection = Faraday.new(:url => config.base_url, :ssl => ssl_options, :request => request_options) do |conn|
|
58
60
|
conn.basic_auth(config.username, config.password)
|
59
61
|
if opts[:header_params]["Content-Type"] == "multipart/form-data"
|
60
62
|
conn.request :multipart
|
@@ -285,11 +287,13 @@ module PulpDebClient
|
|
285
287
|
tempfile.write(chunk)
|
286
288
|
end
|
287
289
|
request.on_complete do |response|
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
290
|
+
if tempfile
|
291
|
+
tempfile.close
|
292
|
+
@config.logger.info "Temp file written to #{tempfile.path}, please copy the file to a proper folder "\
|
293
|
+
"with e.g. `FileUtils.cp(tempfile.path, '/new/file/path')` otherwise the temp file "\
|
294
|
+
"will be deleted automatically with GC. It's also recommended to delete the temp file "\
|
295
|
+
"explicitly with `tempfile.delete`"
|
296
|
+
end
|
293
297
|
end
|
294
298
|
end
|
295
299
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -109,6 +109,12 @@ module PulpDebClient
|
|
109
109
|
# Client private key file (for client certificate)
|
110
110
|
attr_accessor :ssl_client_key
|
111
111
|
|
112
|
+
# Set this to customize parameters encoder of array parameter.
|
113
|
+
# Default to nil. Faraday uses NestedParamsEncoder when nil.
|
114
|
+
#
|
115
|
+
# @see The params_encoder option of Faraday. Related source code:
|
116
|
+
# https://github.com/lostisland/faraday/tree/main/lib/faraday/encoders
|
117
|
+
attr_accessor :params_encoder
|
112
118
|
# Set this to customize parameters encoding of array parameter with multi collectionFormat.
|
113
119
|
# Default to nil.
|
114
120
|
#
|
@@ -121,7 +127,7 @@ module PulpDebClient
|
|
121
127
|
attr_accessor :force_ending_format
|
122
128
|
|
123
129
|
def initialize
|
124
|
-
@scheme = '
|
130
|
+
@scheme = 'https'
|
125
131
|
@host = 'pulp'
|
126
132
|
@base_path = ''
|
127
133
|
@api_key = {}
|
@@ -133,6 +139,7 @@ module PulpDebClient
|
|
133
139
|
@ssl_ca_file = nil
|
134
140
|
@ssl_client_cert = nil
|
135
141
|
@ssl_client_key = nil
|
142
|
+
@params_encoder = nil
|
136
143
|
@debugging = false
|
137
144
|
@inject_format = false
|
138
145
|
@force_ending_format = false
|
@@ -202,7 +209,7 @@ module PulpDebClient
|
|
202
209
|
def server_settings
|
203
210
|
[
|
204
211
|
{
|
205
|
-
url: "
|
212
|
+
url: "https://pulp/",
|
206
213
|
description: "No description provided",
|
207
214
|
}
|
208
215
|
]
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -50,22 +50,25 @@ module PulpDebClient
|
|
50
50
|
|
51
51
|
attr_accessor :pulp_labels
|
52
52
|
|
53
|
-
# Total number of simultaneous connections.
|
53
|
+
# Total number of simultaneous connections. If not set then the default value will be used.
|
54
54
|
attr_accessor :download_concurrency
|
55
55
|
|
56
|
+
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
57
|
+
attr_accessor :max_retries
|
58
|
+
|
56
59
|
# The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'immediate' is the default.
|
57
60
|
attr_accessor :policy
|
58
61
|
|
59
|
-
# aiohttp.ClientTimeout.total (q.v.) for download-connections.
|
62
|
+
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
60
63
|
attr_accessor :total_timeout
|
61
64
|
|
62
|
-
# aiohttp.ClientTimeout.connect (q.v.) for download-connections.
|
65
|
+
# aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
63
66
|
attr_accessor :connect_timeout
|
64
67
|
|
65
|
-
# aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections.
|
68
|
+
# aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
66
69
|
attr_accessor :sock_connect_timeout
|
67
70
|
|
68
|
-
# aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
|
71
|
+
# aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
69
72
|
attr_accessor :sock_read_timeout
|
70
73
|
|
71
74
|
# Headers for aiohttp.Clientsession
|
@@ -114,6 +117,7 @@ module PulpDebClient
|
|
114
117
|
:'password' => :'password',
|
115
118
|
:'pulp_labels' => :'pulp_labels',
|
116
119
|
:'download_concurrency' => :'download_concurrency',
|
120
|
+
:'max_retries' => :'max_retries',
|
117
121
|
:'policy' => :'policy',
|
118
122
|
:'total_timeout' => :'total_timeout',
|
119
123
|
:'connect_timeout' => :'connect_timeout',
|
@@ -148,6 +152,7 @@ module PulpDebClient
|
|
148
152
|
:'password' => :'String',
|
149
153
|
:'pulp_labels' => :'Object',
|
150
154
|
:'download_concurrency' => :'Integer',
|
155
|
+
:'max_retries' => :'Integer',
|
151
156
|
:'policy' => :'PolicyEnum',
|
152
157
|
:'total_timeout' => :'Float',
|
153
158
|
:'connect_timeout' => :'Float',
|
@@ -177,6 +182,8 @@ module PulpDebClient
|
|
177
182
|
:'proxy_password',
|
178
183
|
:'username',
|
179
184
|
:'password',
|
185
|
+
:'download_concurrency',
|
186
|
+
:'max_retries',
|
180
187
|
:'total_timeout',
|
181
188
|
:'connect_timeout',
|
182
189
|
:'sock_connect_timeout',
|
@@ -255,6 +262,10 @@ module PulpDebClient
|
|
255
262
|
self.download_concurrency = attributes[:'download_concurrency']
|
256
263
|
end
|
257
264
|
|
265
|
+
if attributes.key?(:'max_retries')
|
266
|
+
self.max_retries = attributes[:'max_retries']
|
267
|
+
end
|
268
|
+
|
258
269
|
if attributes.key?(:'policy')
|
259
270
|
self.policy = attributes[:'policy']
|
260
271
|
end
|
@@ -439,6 +450,7 @@ module PulpDebClient
|
|
439
450
|
password == o.password &&
|
440
451
|
pulp_labels == o.pulp_labels &&
|
441
452
|
download_concurrency == o.download_concurrency &&
|
453
|
+
max_retries == o.max_retries &&
|
442
454
|
policy == o.policy &&
|
443
455
|
total_timeout == o.total_timeout &&
|
444
456
|
connect_timeout == o.connect_timeout &&
|
@@ -465,7 +477,7 @@ module PulpDebClient
|
|
465
477
|
# Calculates hash code according to all attributes.
|
466
478
|
# @return [Integer] Hash code
|
467
479
|
def hash
|
468
|
-
[name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, pulp_labels, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, distributions, components, architectures, sync_sources, sync_udebs, sync_installer, gpgkey, ignore_missing_package_indices].hash
|
480
|
+
[name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, pulp_labels, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, distributions, components, architectures, sync_sources, sync_udebs, sync_installer, gpgkey, ignore_missing_package_indices].hash
|
469
481
|
end
|
470
482
|
|
471
483
|
# Builds the object from hash
|