pulp_file_client 1.8.0 → 1.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/README.md +4 -4
- data/docs/FileFileRemote.md +7 -5
- data/docs/FileFileRemoteResponse.md +7 -5
- data/docs/PatchedfileFileRemote.md +7 -5
- data/docs/RepositoryAddRemoveContent.md +2 -2
- data/lib/pulp_file_client.rb +1 -1
- data/lib/pulp_file_client/api/content_files_api.rb +1 -1
- data/lib/pulp_file_client/api/distributions_file_api.rb +1 -1
- data/lib/pulp_file_client/api/publications_file_api.rb +1 -1
- data/lib/pulp_file_client/api/remotes_file_api.rb +1 -1
- data/lib/pulp_file_client/api/repositories_file_api.rb +1 -1
- data/lib/pulp_file_client/api/repositories_file_versions_api.rb +1 -1
- data/lib/pulp_file_client/api_client.rb +12 -8
- data/lib/pulp_file_client/api_error.rb +1 -1
- data/lib/pulp_file_client/configuration.rb +8 -1
- data/lib/pulp_file_client/models/async_operation_response.rb +1 -1
- data/lib/pulp_file_client/models/content_summary.rb +1 -1
- data/lib/pulp_file_client/models/content_summary_response.rb +1 -1
- data/lib/pulp_file_client/models/file_file_content.rb +1 -1
- data/lib/pulp_file_client/models/file_file_content_response.rb +1 -1
- data/lib/pulp_file_client/models/file_file_distribution.rb +1 -1
- data/lib/pulp_file_client/models/file_file_distribution_response.rb +1 -1
- data/lib/pulp_file_client/models/file_file_publication.rb +1 -1
- data/lib/pulp_file_client/models/file_file_publication_response.rb +1 -1
- data/lib/pulp_file_client/models/file_file_remote.rb +19 -7
- data/lib/pulp_file_client/models/file_file_remote_response.rb +19 -7
- data/lib/pulp_file_client/models/file_file_repository.rb +1 -1
- data/lib/pulp_file_client/models/file_file_repository_response.rb +1 -1
- data/lib/pulp_file_client/models/paginated_repository_version_response_list.rb +1 -1
- data/lib/pulp_file_client/models/paginatedfile_file_content_response_list.rb +1 -1
- data/lib/pulp_file_client/models/paginatedfile_file_distribution_response_list.rb +1 -1
- data/lib/pulp_file_client/models/paginatedfile_file_publication_response_list.rb +1 -1
- data/lib/pulp_file_client/models/paginatedfile_file_remote_response_list.rb +1 -1
- data/lib/pulp_file_client/models/paginatedfile_file_repository_response_list.rb +1 -1
- data/lib/pulp_file_client/models/patchedfile_file_distribution.rb +1 -1
- data/lib/pulp_file_client/models/patchedfile_file_remote.rb +19 -7
- data/lib/pulp_file_client/models/patchedfile_file_repository.rb +1 -1
- data/lib/pulp_file_client/models/policy_enum.rb +1 -1
- data/lib/pulp_file_client/models/repository_add_remove_content.rb +3 -3
- data/lib/pulp_file_client/models/repository_sync_url.rb +1 -1
- data/lib/pulp_file_client/models/repository_version.rb +1 -1
- data/lib/pulp_file_client/models/repository_version_response.rb +1 -1
- data/lib/pulp_file_client/version.rb +2 -2
- data/pulp_file_client.gemspec +1 -1
- data/spec/api/content_files_api_spec.rb +1 -1
- data/spec/api/distributions_file_api_spec.rb +1 -1
- data/spec/api/publications_file_api_spec.rb +1 -1
- data/spec/api/remotes_file_api_spec.rb +1 -1
- data/spec/api/repositories_file_api_spec.rb +1 -1
- data/spec/api/repositories_file_versions_api_spec.rb +1 -1
- 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/file_file_content_response_spec.rb +1 -1
- data/spec/models/file_file_content_spec.rb +1 -1
- data/spec/models/file_file_distribution_response_spec.rb +1 -1
- data/spec/models/file_file_distribution_spec.rb +1 -1
- data/spec/models/file_file_publication_response_spec.rb +1 -1
- data/spec/models/file_file_publication_spec.rb +1 -1
- data/spec/models/file_file_remote_response_spec.rb +7 -1
- data/spec/models/file_file_remote_spec.rb +7 -1
- data/spec/models/file_file_repository_response_spec.rb +1 -1
- data/spec/models/file_file_repository_spec.rb +1 -1
- data/spec/models/paginated_repository_version_response_list_spec.rb +1 -1
- data/spec/models/paginatedfile_file_content_response_list_spec.rb +1 -1
- data/spec/models/paginatedfile_file_distribution_response_list_spec.rb +1 -1
- data/spec/models/paginatedfile_file_publication_response_list_spec.rb +1 -1
- data/spec/models/paginatedfile_file_remote_response_list_spec.rb +1 -1
- data/spec/models/paginatedfile_file_repository_response_list_spec.rb +1 -1
- data/spec/models/patchedfile_file_distribution_spec.rb +1 -1
- data/spec/models/patchedfile_file_remote_spec.rb +7 -1
- data/spec/models/patchedfile_file_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 +26 -26
|
@@ -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 PulpFileClient
|
|
|
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
|
|
@@ -81,6 +84,7 @@ module PulpFileClient
|
|
|
81
84
|
:'pulp_labels' => :'pulp_labels',
|
|
82
85
|
:'pulp_last_updated' => :'pulp_last_updated',
|
|
83
86
|
:'download_concurrency' => :'download_concurrency',
|
|
87
|
+
:'max_retries' => :'max_retries',
|
|
84
88
|
:'policy' => :'policy',
|
|
85
89
|
:'total_timeout' => :'total_timeout',
|
|
86
90
|
:'connect_timeout' => :'connect_timeout',
|
|
@@ -105,6 +109,7 @@ module PulpFileClient
|
|
|
105
109
|
:'pulp_labels' => :'Object',
|
|
106
110
|
:'pulp_last_updated' => :'DateTime',
|
|
107
111
|
:'download_concurrency' => :'Integer',
|
|
112
|
+
:'max_retries' => :'Integer',
|
|
108
113
|
:'policy' => :'PolicyEnum',
|
|
109
114
|
:'total_timeout' => :'Float',
|
|
110
115
|
:'connect_timeout' => :'Float',
|
|
@@ -121,6 +126,8 @@ module PulpFileClient
|
|
|
121
126
|
:'ca_cert',
|
|
122
127
|
:'client_cert',
|
|
123
128
|
:'proxy_url',
|
|
129
|
+
:'download_concurrency',
|
|
130
|
+
:'max_retries',
|
|
124
131
|
:'total_timeout',
|
|
125
132
|
:'connect_timeout',
|
|
126
133
|
:'sock_connect_timeout',
|
|
@@ -188,6 +195,10 @@ module PulpFileClient
|
|
|
188
195
|
self.download_concurrency = attributes[:'download_concurrency']
|
|
189
196
|
end
|
|
190
197
|
|
|
198
|
+
if attributes.key?(:'max_retries')
|
|
199
|
+
self.max_retries = attributes[:'max_retries']
|
|
200
|
+
end
|
|
201
|
+
|
|
191
202
|
if attributes.key?(:'policy')
|
|
192
203
|
self.policy = attributes[:'policy']
|
|
193
204
|
end
|
|
@@ -333,6 +344,7 @@ module PulpFileClient
|
|
|
333
344
|
pulp_labels == o.pulp_labels &&
|
|
334
345
|
pulp_last_updated == o.pulp_last_updated &&
|
|
335
346
|
download_concurrency == o.download_concurrency &&
|
|
347
|
+
max_retries == o.max_retries &&
|
|
336
348
|
policy == o.policy &&
|
|
337
349
|
total_timeout == o.total_timeout &&
|
|
338
350
|
connect_timeout == o.connect_timeout &&
|
|
@@ -351,7 +363,7 @@ module PulpFileClient
|
|
|
351
363
|
# Calculates hash code according to all attributes.
|
|
352
364
|
# @return [Integer] Hash code
|
|
353
365
|
def hash
|
|
354
|
-
[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].hash
|
|
366
|
+
[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].hash
|
|
355
367
|
end
|
|
356
368
|
|
|
357
369
|
# 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
|
|
|
@@ -50,22 +50,25 @@ module PulpFileClient
|
|
|
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
|
|
@@ -90,6 +93,7 @@ module PulpFileClient
|
|
|
90
93
|
:'password' => :'password',
|
|
91
94
|
:'pulp_labels' => :'pulp_labels',
|
|
92
95
|
:'download_concurrency' => :'download_concurrency',
|
|
96
|
+
:'max_retries' => :'max_retries',
|
|
93
97
|
:'policy' => :'policy',
|
|
94
98
|
:'total_timeout' => :'total_timeout',
|
|
95
99
|
:'connect_timeout' => :'connect_timeout',
|
|
@@ -116,6 +120,7 @@ module PulpFileClient
|
|
|
116
120
|
:'password' => :'String',
|
|
117
121
|
:'pulp_labels' => :'Object',
|
|
118
122
|
:'download_concurrency' => :'Integer',
|
|
123
|
+
:'max_retries' => :'Integer',
|
|
119
124
|
:'policy' => :'PolicyEnum',
|
|
120
125
|
:'total_timeout' => :'Float',
|
|
121
126
|
:'connect_timeout' => :'Float',
|
|
@@ -137,6 +142,8 @@ module PulpFileClient
|
|
|
137
142
|
:'proxy_password',
|
|
138
143
|
:'username',
|
|
139
144
|
:'password',
|
|
145
|
+
:'download_concurrency',
|
|
146
|
+
:'max_retries',
|
|
140
147
|
:'total_timeout',
|
|
141
148
|
:'connect_timeout',
|
|
142
149
|
:'sock_connect_timeout',
|
|
@@ -212,6 +219,10 @@ module PulpFileClient
|
|
|
212
219
|
self.download_concurrency = attributes[:'download_concurrency']
|
|
213
220
|
end
|
|
214
221
|
|
|
222
|
+
if attributes.key?(:'max_retries')
|
|
223
|
+
self.max_retries = attributes[:'max_retries']
|
|
224
|
+
end
|
|
225
|
+
|
|
215
226
|
if attributes.key?(:'policy')
|
|
216
227
|
self.policy = attributes[:'policy']
|
|
217
228
|
end
|
|
@@ -349,6 +360,7 @@ module PulpFileClient
|
|
|
349
360
|
password == o.password &&
|
|
350
361
|
pulp_labels == o.pulp_labels &&
|
|
351
362
|
download_concurrency == o.download_concurrency &&
|
|
363
|
+
max_retries == o.max_retries &&
|
|
352
364
|
policy == o.policy &&
|
|
353
365
|
total_timeout == o.total_timeout &&
|
|
354
366
|
connect_timeout == o.connect_timeout &&
|
|
@@ -367,7 +379,7 @@ module PulpFileClient
|
|
|
367
379
|
# Calculates hash code according to all attributes.
|
|
368
380
|
# @return [Integer] Hash code
|
|
369
381
|
def hash
|
|
370
|
-
[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].hash
|
|
382
|
+
[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].hash
|
|
371
383
|
end
|
|
372
384
|
|
|
373
385
|
# 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
|
|
|
@@ -36,8 +36,8 @@ module PulpFileClient
|
|
|
36
36
|
# Attribute type mapping.
|
|
37
37
|
def self.openapi_types
|
|
38
38
|
{
|
|
39
|
-
:'add_content_units' => :'Array<
|
|
40
|
-
:'remove_content_units' => :'Array<
|
|
39
|
+
:'add_content_units' => :'Array<AnyType>',
|
|
40
|
+
:'remove_content_units' => :'Array<AnyType>',
|
|
41
41
|
:'base_version' => :'String'
|
|
42
42
|
}
|
|
43
43
|
end
|
|
@@ -6,10 +6,10 @@
|
|
|
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
|
module PulpFileClient
|
|
14
|
-
VERSION = '1.8.
|
|
14
|
+
VERSION = '1.8.1'
|
|
15
15
|
end
|
data/pulp_file_client.gemspec
CHANGED
data/spec/api_client_spec.rb
CHANGED
|
@@ -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
|
|
|
@@ -118,7 +118,7 @@ describe PulpFileClient::ApiClient do
|
|
|
118
118
|
end
|
|
119
119
|
|
|
120
120
|
it 'fails for invalid collection format' do
|
|
121
|
-
expect{api_client.build_collection_param(param, :INVALID)}.to raise_error(RuntimeError, 'unknown collection format: :INVALID')
|
|
121
|
+
expect { api_client.build_collection_param(param, :INVALID) }.to raise_error(RuntimeError, 'unknown collection format: :INVALID')
|
|
122
122
|
end
|
|
123
123
|
end
|
|
124
124
|
|