pulp_deb_client 2.12.0 → 2.14.1
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 +8 -8
- data/docs/DebAptRemote.md +7 -5
- data/docs/DebAptRemoteResponse.md +7 -5
- data/docs/PatcheddebAptRemote.md +7 -5
- data/docs/{RepositoriesDebVersionsApi.md → RepositoriesAptVersionsApi.md} +13 -13
- data/docs/RepositoryAddRemoveContent.md +2 -2
- data/lib/pulp_deb_client.rb +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 +8 -1
- 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 +1 -1
- data/lib/pulp_deb_client/models/deb_apt_repository_response.rb +1 -1
- 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 +1 -1
- 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/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 +1 -1
- 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 +1 -1
- data/spec/models/deb_apt_repository_spec.rb +1 -1
- 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 +1 -1
- 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
@@ -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
|
#
|
@@ -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
|
@@ -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
|
@@ -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
|
|
@@ -43,22 +43,25 @@ module PulpDebClient
|
|
43
43
|
# Timestamp of the most recent update of the remote.
|
44
44
|
attr_accessor :pulp_last_updated
|
45
45
|
|
46
|
-
# Total number of simultaneous connections.
|
46
|
+
# Total number of simultaneous connections. If not set then the default value will be used.
|
47
47
|
attr_accessor :download_concurrency
|
48
48
|
|
49
|
+
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
50
|
+
attr_accessor :max_retries
|
51
|
+
|
49
52
|
# The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'immediate' is the default.
|
50
53
|
attr_accessor :policy
|
51
54
|
|
52
|
-
# aiohttp.ClientTimeout.total (q.v.) for download-connections.
|
55
|
+
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
53
56
|
attr_accessor :total_timeout
|
54
57
|
|
55
|
-
# aiohttp.ClientTimeout.connect (q.v.) for download-connections.
|
58
|
+
# aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
56
59
|
attr_accessor :connect_timeout
|
57
60
|
|
58
|
-
# aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections.
|
61
|
+
# 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.
|
59
62
|
attr_accessor :sock_connect_timeout
|
60
63
|
|
61
|
-
# aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
|
64
|
+
# 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.
|
62
65
|
attr_accessor :sock_read_timeout
|
63
66
|
|
64
67
|
# Headers for aiohttp.Clientsession
|
@@ -105,6 +108,7 @@ module PulpDebClient
|
|
105
108
|
:'pulp_labels' => :'pulp_labels',
|
106
109
|
:'pulp_last_updated' => :'pulp_last_updated',
|
107
110
|
:'download_concurrency' => :'download_concurrency',
|
111
|
+
:'max_retries' => :'max_retries',
|
108
112
|
:'policy' => :'policy',
|
109
113
|
:'total_timeout' => :'total_timeout',
|
110
114
|
:'connect_timeout' => :'connect_timeout',
|
@@ -137,6 +141,7 @@ module PulpDebClient
|
|
137
141
|
:'pulp_labels' => :'Object',
|
138
142
|
:'pulp_last_updated' => :'DateTime',
|
139
143
|
:'download_concurrency' => :'Integer',
|
144
|
+
:'max_retries' => :'Integer',
|
140
145
|
:'policy' => :'PolicyEnum',
|
141
146
|
:'total_timeout' => :'Float',
|
142
147
|
:'connect_timeout' => :'Float',
|
@@ -161,6 +166,8 @@ module PulpDebClient
|
|
161
166
|
:'ca_cert',
|
162
167
|
:'client_cert',
|
163
168
|
:'proxy_url',
|
169
|
+
:'download_concurrency',
|
170
|
+
:'max_retries',
|
164
171
|
:'total_timeout',
|
165
172
|
:'connect_timeout',
|
166
173
|
:'sock_connect_timeout',
|
@@ -231,6 +238,10 @@ module PulpDebClient
|
|
231
238
|
self.download_concurrency = attributes[:'download_concurrency']
|
232
239
|
end
|
233
240
|
|
241
|
+
if attributes.key?(:'max_retries')
|
242
|
+
self.max_retries = attributes[:'max_retries']
|
243
|
+
end
|
244
|
+
|
234
245
|
if attributes.key?(:'policy')
|
235
246
|
self.policy = attributes[:'policy']
|
236
247
|
end
|
@@ -413,6 +424,7 @@ module PulpDebClient
|
|
413
424
|
pulp_labels == o.pulp_labels &&
|
414
425
|
pulp_last_updated == o.pulp_last_updated &&
|
415
426
|
download_concurrency == o.download_concurrency &&
|
427
|
+
max_retries == o.max_retries &&
|
416
428
|
policy == o.policy &&
|
417
429
|
total_timeout == o.total_timeout &&
|
418
430
|
connect_timeout == o.connect_timeout &&
|
@@ -439,7 +451,7 @@ module PulpDebClient
|
|
439
451
|
# Calculates hash code according to all attributes.
|
440
452
|
# @return [Integer] Hash code
|
441
453
|
def hash
|
442
|
-
[pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, pulp_last_updated, 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
|
454
|
+
[pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, pulp_last_updated, 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
|
443
455
|
end
|
444
456
|
|
445
457
|
# Builds the object from hash
|