pulp_file_client 1.6.0.post3 → 1.6.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/README.md +4 -4
- data/docs/ContentFilesApi.md +10 -10
- data/docs/ContentSummary.md +3 -3
- data/docs/ContentSummaryResponse.md +3 -3
- data/docs/DistributionsFileApi.md +20 -20
- data/docs/ExportersFilesystemApi.md +22 -21
- data/docs/FileFileRemote.md +7 -1
- data/docs/FileFileRemoteResponse.md +3 -7
- data/docs/PatchedfileFileRemote.md +7 -1
- data/docs/PublicationsFileApi.md +14 -14
- data/docs/RemotesFileApi.md +24 -24
- data/docs/RepositoriesFileApi.md +12 -12
- data/docs/RepositoriesFileVersionsApi.md +28 -28
- data/lib/pulp_file_client/api/content_files_api.rb +10 -10
- data/lib/pulp_file_client/api/distributions_file_api.rb +22 -22
- data/lib/pulp_file_client/api/exporters_filesystem_api.rb +30 -28
- data/lib/pulp_file_client/api/publications_file_api.rb +15 -15
- data/lib/pulp_file_client/api/remotes_file_api.rb +26 -26
- data/lib/pulp_file_client/api/repositories_file_api.rb +13 -13
- data/lib/pulp_file_client/api/repositories_file_versions_api.rb +30 -30
- data/lib/pulp_file_client/models/content_summary.rb +12 -6
- data/lib/pulp_file_client/models/content_summary_response.rb +12 -6
- data/lib/pulp_file_client/models/file_file_remote.rb +36 -2
- data/lib/pulp_file_client/models/file_file_remote_response.rb +14 -35
- data/lib/pulp_file_client/models/patchedfile_file_remote.rb +36 -2
- data/lib/pulp_file_client/version.rb +1 -1
- data/spec/api/content_files_api_spec.rb +5 -5
- data/spec/api/distributions_file_api_spec.rb +10 -10
- data/spec/api/exporters_filesystem_api_spec.rb +11 -11
- data/spec/api/publications_file_api_spec.rb +7 -7
- data/spec/api/remotes_file_api_spec.rb +12 -12
- data/spec/api/repositories_file_api_spec.rb +6 -6
- data/spec/api/repositories_file_versions_api_spec.rb +14 -14
- data/spec/models/file_file_remote_response_spec.rb +6 -18
- data/spec/models/file_file_remote_spec.rb +18 -0
- data/spec/models/patchedfile_file_remote_spec.rb +18 -0
- metadata +33 -33
@@ -149,14 +149,14 @@ module PulpFileClient
|
|
149
149
|
# FileRepository represents a single file repository, to which content can be synced, added, or removed.
|
150
150
|
# @param [Hash] opts the optional parameters
|
151
151
|
# @option opts [Integer] :limit Number of results to return per page.
|
152
|
-
# @option opts [String] :name
|
153
|
-
# @option opts [String] :name__contains
|
154
|
-
# @option opts [String] :name__icontains
|
155
|
-
# @option opts [String] :name__in
|
156
|
-
# @option opts [String] :name__startswith
|
152
|
+
# @option opts [String] :name
|
153
|
+
# @option opts [String] :name__contains Filter results where name contains value
|
154
|
+
# @option opts [String] :name__icontains Filter results where name contains value
|
155
|
+
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
156
|
+
# @option opts [String] :name__startswith Filter results where name starts with value
|
157
157
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
158
158
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
159
|
-
# @option opts [String] :pulp_label_select
|
159
|
+
# @option opts [String] :pulp_label_select Filter labels by search string
|
160
160
|
# @option opts [String] :fields A list of fields to include in the response.
|
161
161
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
162
162
|
# @return [PaginatedfileFileRepositoryResponseList]
|
@@ -169,14 +169,14 @@ module PulpFileClient
|
|
169
169
|
# FileRepository represents a single file repository, to which content can be synced, added, or removed.
|
170
170
|
# @param [Hash] opts the optional parameters
|
171
171
|
# @option opts [Integer] :limit Number of results to return per page.
|
172
|
-
# @option opts [String] :name
|
173
|
-
# @option opts [String] :name__contains
|
174
|
-
# @option opts [String] :name__icontains
|
175
|
-
# @option opts [String] :name__in
|
176
|
-
# @option opts [String] :name__startswith
|
172
|
+
# @option opts [String] :name
|
173
|
+
# @option opts [String] :name__contains Filter results where name contains value
|
174
|
+
# @option opts [String] :name__icontains Filter results where name contains value
|
175
|
+
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
176
|
+
# @option opts [String] :name__startswith Filter results where name starts with value
|
177
177
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
178
178
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
179
|
-
# @option opts [String] :pulp_label_select
|
179
|
+
# @option opts [String] :pulp_label_select Filter labels by search string
|
180
180
|
# @option opts [String] :fields A list of fields to include in the response.
|
181
181
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
182
182
|
# @return [Array<(PaginatedfileFileRepositoryResponseList, Integer, Hash)>] PaginatedfileFileRepositoryResponseList data, response status code and response headers
|
@@ -193,7 +193,7 @@ module PulpFileClient
|
|
193
193
|
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
194
194
|
query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
|
195
195
|
query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
|
196
|
-
query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
|
196
|
+
query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
|
197
197
|
query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
|
198
198
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
199
199
|
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
@@ -85,23 +85,23 @@ module PulpFileClient
|
|
85
85
|
# FileRepositoryVersion represents a single file repository version.
|
86
86
|
# @param file_file_repository_href [String]
|
87
87
|
# @param [Hash] opts the optional parameters
|
88
|
-
# @option opts [String] :content
|
89
|
-
# @option opts [String] :content__in
|
88
|
+
# @option opts [String] :content Content Unit referenced by HREF
|
89
|
+
# @option opts [String] :content__in Content Unit referenced by HREF
|
90
90
|
# @option opts [Integer] :limit Number of results to return per page.
|
91
|
-
# @option opts [
|
92
|
-
# @option opts [
|
93
|
-
# @option opts [
|
94
|
-
# @option opts [
|
95
|
-
# @option opts [
|
96
|
-
# @option opts [
|
91
|
+
# @option opts [Integer] :number
|
92
|
+
# @option opts [Integer] :number__gt Filter results where number is greater than value
|
93
|
+
# @option opts [Integer] :number__gte Filter results where number is greater than or equal to value
|
94
|
+
# @option opts [Integer] :number__lt Filter results where number is less than value
|
95
|
+
# @option opts [Integer] :number__lte Filter results where number is less than or equal to value
|
96
|
+
# @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
|
97
97
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
98
98
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
99
|
-
# @option opts [
|
100
|
-
# @option opts [
|
101
|
-
# @option opts [
|
102
|
-
# @option opts [
|
103
|
-
# @option opts [
|
104
|
-
# @option opts [
|
99
|
+
# @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
|
100
|
+
# @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
|
101
|
+
# @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
102
|
+
# @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
|
103
|
+
# @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
104
|
+
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
105
105
|
# @option opts [String] :fields A list of fields to include in the response.
|
106
106
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
107
107
|
# @return [PaginatedRepositoryVersionResponseList]
|
@@ -114,23 +114,23 @@ module PulpFileClient
|
|
114
114
|
# FileRepositoryVersion represents a single file repository version.
|
115
115
|
# @param file_file_repository_href [String]
|
116
116
|
# @param [Hash] opts the optional parameters
|
117
|
-
# @option opts [String] :content
|
118
|
-
# @option opts [String] :content__in
|
117
|
+
# @option opts [String] :content Content Unit referenced by HREF
|
118
|
+
# @option opts [String] :content__in Content Unit referenced by HREF
|
119
119
|
# @option opts [Integer] :limit Number of results to return per page.
|
120
|
-
# @option opts [
|
121
|
-
# @option opts [
|
122
|
-
# @option opts [
|
123
|
-
# @option opts [
|
124
|
-
# @option opts [
|
125
|
-
# @option opts [
|
120
|
+
# @option opts [Integer] :number
|
121
|
+
# @option opts [Integer] :number__gt Filter results where number is greater than value
|
122
|
+
# @option opts [Integer] :number__gte Filter results where number is greater than or equal to value
|
123
|
+
# @option opts [Integer] :number__lt Filter results where number is less than value
|
124
|
+
# @option opts [Integer] :number__lte Filter results where number is less than or equal to value
|
125
|
+
# @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
|
126
126
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
127
127
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
128
|
-
# @option opts [
|
129
|
-
# @option opts [
|
130
|
-
# @option opts [
|
131
|
-
# @option opts [
|
132
|
-
# @option opts [
|
133
|
-
# @option opts [
|
128
|
+
# @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
|
129
|
+
# @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
|
130
|
+
# @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
131
|
+
# @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
|
132
|
+
# @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
133
|
+
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
134
134
|
# @option opts [String] :fields A list of fields to include in the response.
|
135
135
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
136
136
|
# @return [Array<(PaginatedRepositoryVersionResponseList, Integer, Hash)>] PaginatedRepositoryVersionResponseList data, response status code and response headers
|
@@ -155,7 +155,7 @@ module PulpFileClient
|
|
155
155
|
query_params[:'number__gte'] = opts[:'number__gte'] if !opts[:'number__gte'].nil?
|
156
156
|
query_params[:'number__lt'] = opts[:'number__lt'] if !opts[:'number__lt'].nil?
|
157
157
|
query_params[:'number__lte'] = opts[:'number__lte'] if !opts[:'number__lte'].nil?
|
158
|
-
query_params[:'number__range'] = opts[:'number__range'] if !opts[:'number__range'].nil?
|
158
|
+
query_params[:'number__range'] = @api_client.build_collection_param(opts[:'number__range'], :csv) if !opts[:'number__range'].nil?
|
159
159
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
160
160
|
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
161
161
|
query_params[:'pulp_created'] = opts[:'pulp_created'] if !opts[:'pulp_created'].nil?
|
@@ -163,7 +163,7 @@ module PulpFileClient
|
|
163
163
|
query_params[:'pulp_created__gte'] = opts[:'pulp_created__gte'] if !opts[:'pulp_created__gte'].nil?
|
164
164
|
query_params[:'pulp_created__lt'] = opts[:'pulp_created__lt'] if !opts[:'pulp_created__lt'].nil?
|
165
165
|
query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
|
166
|
-
query_params[:'pulp_created__range'] = opts[:'pulp_created__range'] if !opts[:'pulp_created__range'].nil?
|
166
|
+
query_params[:'pulp_created__range'] = @api_client.build_collection_param(opts[:'pulp_created__range'], :csv) if !opts[:'pulp_created__range'].nil?
|
167
167
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
168
168
|
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
169
169
|
|
@@ -33,9 +33,9 @@ module PulpFileClient
|
|
33
33
|
# Attribute type mapping.
|
34
34
|
def self.openapi_types
|
35
35
|
{
|
36
|
-
:'added' => :'Object',
|
37
|
-
:'removed' => :'Object',
|
38
|
-
:'present' => :'Object'
|
36
|
+
:'added' => :'Hash<String, Object>',
|
37
|
+
:'removed' => :'Hash<String, Object>',
|
38
|
+
:'present' => :'Hash<String, Object>'
|
39
39
|
}
|
40
40
|
end
|
41
41
|
|
@@ -61,15 +61,21 @@ module PulpFileClient
|
|
61
61
|
}
|
62
62
|
|
63
63
|
if attributes.key?(:'added')
|
64
|
-
|
64
|
+
if (value = attributes[:'added']).is_a?(Hash)
|
65
|
+
self.added = value
|
66
|
+
end
|
65
67
|
end
|
66
68
|
|
67
69
|
if attributes.key?(:'removed')
|
68
|
-
|
70
|
+
if (value = attributes[:'removed']).is_a?(Hash)
|
71
|
+
self.removed = value
|
72
|
+
end
|
69
73
|
end
|
70
74
|
|
71
75
|
if attributes.key?(:'present')
|
72
|
-
|
76
|
+
if (value = attributes[:'present']).is_a?(Hash)
|
77
|
+
self.present = value
|
78
|
+
end
|
73
79
|
end
|
74
80
|
end
|
75
81
|
|
@@ -33,9 +33,9 @@ module PulpFileClient
|
|
33
33
|
# Attribute type mapping.
|
34
34
|
def self.openapi_types
|
35
35
|
{
|
36
|
-
:'added' => :'Object',
|
37
|
-
:'removed' => :'Object',
|
38
|
-
:'present' => :'Object'
|
36
|
+
:'added' => :'Hash<String, Object>',
|
37
|
+
:'removed' => :'Hash<String, Object>',
|
38
|
+
:'present' => :'Hash<String, Object>'
|
39
39
|
}
|
40
40
|
end
|
41
41
|
|
@@ -61,15 +61,21 @@ module PulpFileClient
|
|
61
61
|
}
|
62
62
|
|
63
63
|
if attributes.key?(:'added')
|
64
|
-
|
64
|
+
if (value = attributes[:'added']).is_a?(Hash)
|
65
|
+
self.added = value
|
66
|
+
end
|
65
67
|
end
|
66
68
|
|
67
69
|
if attributes.key?(:'removed')
|
68
|
-
|
70
|
+
if (value = attributes[:'removed']).is_a?(Hash)
|
71
|
+
self.removed = value
|
72
|
+
end
|
69
73
|
end
|
70
74
|
|
71
75
|
if attributes.key?(:'present')
|
72
|
-
|
76
|
+
if (value = attributes[:'present']).is_a?(Hash)
|
77
|
+
self.present = value
|
78
|
+
end
|
73
79
|
end
|
74
80
|
end
|
75
81
|
|
@@ -33,9 +33,15 @@ module PulpFileClient
|
|
33
33
|
# If True, TLS peer validation must be performed.
|
34
34
|
attr_accessor :tls_validation
|
35
35
|
|
36
|
-
# The proxy URL. Format: scheme://
|
36
|
+
# The proxy URL. Format: scheme://host:port
|
37
37
|
attr_accessor :proxy_url
|
38
38
|
|
39
|
+
# The username to authenticte to the proxy.
|
40
|
+
attr_accessor :proxy_username
|
41
|
+
|
42
|
+
# The password to authenticte to the proxy.
|
43
|
+
attr_accessor :proxy_password
|
44
|
+
|
39
45
|
# The username to be used for authentication when syncing.
|
40
46
|
attr_accessor :username
|
41
47
|
|
@@ -62,6 +68,9 @@ module PulpFileClient
|
|
62
68
|
# aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
|
63
69
|
attr_accessor :sock_read_timeout
|
64
70
|
|
71
|
+
# Headers for aiohttp.Clientsession
|
72
|
+
attr_accessor :headers
|
73
|
+
|
65
74
|
# Limits total download rate in requests per second
|
66
75
|
attr_accessor :rate_limit
|
67
76
|
|
@@ -75,6 +84,8 @@ module PulpFileClient
|
|
75
84
|
:'client_key' => :'client_key',
|
76
85
|
:'tls_validation' => :'tls_validation',
|
77
86
|
:'proxy_url' => :'proxy_url',
|
87
|
+
:'proxy_username' => :'proxy_username',
|
88
|
+
:'proxy_password' => :'proxy_password',
|
78
89
|
:'username' => :'username',
|
79
90
|
:'password' => :'password',
|
80
91
|
:'pulp_labels' => :'pulp_labels',
|
@@ -84,6 +95,7 @@ module PulpFileClient
|
|
84
95
|
:'connect_timeout' => :'connect_timeout',
|
85
96
|
:'sock_connect_timeout' => :'sock_connect_timeout',
|
86
97
|
:'sock_read_timeout' => :'sock_read_timeout',
|
98
|
+
:'headers' => :'headers',
|
87
99
|
:'rate_limit' => :'rate_limit'
|
88
100
|
}
|
89
101
|
end
|
@@ -98,6 +110,8 @@ module PulpFileClient
|
|
98
110
|
:'client_key' => :'String',
|
99
111
|
:'tls_validation' => :'Boolean',
|
100
112
|
:'proxy_url' => :'String',
|
113
|
+
:'proxy_username' => :'String',
|
114
|
+
:'proxy_password' => :'String',
|
101
115
|
:'username' => :'String',
|
102
116
|
:'password' => :'String',
|
103
117
|
:'pulp_labels' => :'Object',
|
@@ -107,6 +121,7 @@ module PulpFileClient
|
|
107
121
|
:'connect_timeout' => :'Float',
|
108
122
|
:'sock_connect_timeout' => :'Float',
|
109
123
|
:'sock_read_timeout' => :'Float',
|
124
|
+
:'headers' => :'Array<Object>',
|
110
125
|
:'rate_limit' => :'Integer'
|
111
126
|
}
|
112
127
|
end
|
@@ -118,6 +133,8 @@ module PulpFileClient
|
|
118
133
|
:'client_cert',
|
119
134
|
:'client_key',
|
120
135
|
:'proxy_url',
|
136
|
+
:'proxy_username',
|
137
|
+
:'proxy_password',
|
121
138
|
:'username',
|
122
139
|
:'password',
|
123
140
|
:'total_timeout',
|
@@ -171,6 +188,14 @@ module PulpFileClient
|
|
171
188
|
self.proxy_url = attributes[:'proxy_url']
|
172
189
|
end
|
173
190
|
|
191
|
+
if attributes.key?(:'proxy_username')
|
192
|
+
self.proxy_username = attributes[:'proxy_username']
|
193
|
+
end
|
194
|
+
|
195
|
+
if attributes.key?(:'proxy_password')
|
196
|
+
self.proxy_password = attributes[:'proxy_password']
|
197
|
+
end
|
198
|
+
|
174
199
|
if attributes.key?(:'username')
|
175
200
|
self.username = attributes[:'username']
|
176
201
|
end
|
@@ -207,6 +232,12 @@ module PulpFileClient
|
|
207
232
|
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
208
233
|
end
|
209
234
|
|
235
|
+
if attributes.key?(:'headers')
|
236
|
+
if (value = attributes[:'headers']).is_a?(Array)
|
237
|
+
self.headers = value
|
238
|
+
end
|
239
|
+
end
|
240
|
+
|
210
241
|
if attributes.key?(:'rate_limit')
|
211
242
|
self.rate_limit = attributes[:'rate_limit']
|
212
243
|
end
|
@@ -322,6 +353,8 @@ module PulpFileClient
|
|
322
353
|
client_key == o.client_key &&
|
323
354
|
tls_validation == o.tls_validation &&
|
324
355
|
proxy_url == o.proxy_url &&
|
356
|
+
proxy_username == o.proxy_username &&
|
357
|
+
proxy_password == o.proxy_password &&
|
325
358
|
username == o.username &&
|
326
359
|
password == o.password &&
|
327
360
|
pulp_labels == o.pulp_labels &&
|
@@ -331,6 +364,7 @@ module PulpFileClient
|
|
331
364
|
connect_timeout == o.connect_timeout &&
|
332
365
|
sock_connect_timeout == o.sock_connect_timeout &&
|
333
366
|
sock_read_timeout == o.sock_read_timeout &&
|
367
|
+
headers == o.headers &&
|
334
368
|
rate_limit == o.rate_limit
|
335
369
|
end
|
336
370
|
|
@@ -343,7 +377,7 @@ module PulpFileClient
|
|
343
377
|
# Calculates hash code according to all attributes.
|
344
378
|
# @return [Integer] Hash code
|
345
379
|
def hash
|
346
|
-
[name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, pulp_labels, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, rate_limit].hash
|
380
|
+
[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
|
347
381
|
end
|
348
382
|
|
349
383
|
# Builds the object from hash
|
@@ -32,21 +32,12 @@ module PulpFileClient
|
|
32
32
|
# A PEM encoded client certificate used for authentication.
|
33
33
|
attr_accessor :client_cert
|
34
34
|
|
35
|
-
# A PEM encoded private key used for authentication.
|
36
|
-
attr_accessor :client_key
|
37
|
-
|
38
35
|
# If True, TLS peer validation must be performed.
|
39
36
|
attr_accessor :tls_validation
|
40
37
|
|
41
|
-
# The proxy URL. Format: scheme://
|
38
|
+
# The proxy URL. Format: scheme://host:port
|
42
39
|
attr_accessor :proxy_url
|
43
40
|
|
44
|
-
# The username to be used for authentication when syncing.
|
45
|
-
attr_accessor :username
|
46
|
-
|
47
|
-
# The password to be used for authentication when syncing.
|
48
|
-
attr_accessor :password
|
49
|
-
|
50
41
|
attr_accessor :pulp_labels
|
51
42
|
|
52
43
|
# Timestamp of the most recent update of the remote.
|
@@ -70,6 +61,9 @@ module PulpFileClient
|
|
70
61
|
# aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
|
71
62
|
attr_accessor :sock_read_timeout
|
72
63
|
|
64
|
+
# Headers for aiohttp.Clientsession
|
65
|
+
attr_accessor :headers
|
66
|
+
|
73
67
|
# Limits total download rate in requests per second
|
74
68
|
attr_accessor :rate_limit
|
75
69
|
|
@@ -82,11 +76,8 @@ module PulpFileClient
|
|
82
76
|
:'url' => :'url',
|
83
77
|
:'ca_cert' => :'ca_cert',
|
84
78
|
:'client_cert' => :'client_cert',
|
85
|
-
:'client_key' => :'client_key',
|
86
79
|
:'tls_validation' => :'tls_validation',
|
87
80
|
:'proxy_url' => :'proxy_url',
|
88
|
-
:'username' => :'username',
|
89
|
-
:'password' => :'password',
|
90
81
|
:'pulp_labels' => :'pulp_labels',
|
91
82
|
:'pulp_last_updated' => :'pulp_last_updated',
|
92
83
|
:'download_concurrency' => :'download_concurrency',
|
@@ -95,6 +86,7 @@ module PulpFileClient
|
|
95
86
|
:'connect_timeout' => :'connect_timeout',
|
96
87
|
:'sock_connect_timeout' => :'sock_connect_timeout',
|
97
88
|
:'sock_read_timeout' => :'sock_read_timeout',
|
89
|
+
:'headers' => :'headers',
|
98
90
|
:'rate_limit' => :'rate_limit'
|
99
91
|
}
|
100
92
|
end
|
@@ -108,11 +100,8 @@ module PulpFileClient
|
|
108
100
|
:'url' => :'String',
|
109
101
|
:'ca_cert' => :'String',
|
110
102
|
:'client_cert' => :'String',
|
111
|
-
:'client_key' => :'String',
|
112
103
|
:'tls_validation' => :'Boolean',
|
113
104
|
:'proxy_url' => :'String',
|
114
|
-
:'username' => :'String',
|
115
|
-
:'password' => :'String',
|
116
105
|
:'pulp_labels' => :'Object',
|
117
106
|
:'pulp_last_updated' => :'DateTime',
|
118
107
|
:'download_concurrency' => :'Integer',
|
@@ -121,6 +110,7 @@ module PulpFileClient
|
|
121
110
|
:'connect_timeout' => :'Float',
|
122
111
|
:'sock_connect_timeout' => :'Float',
|
123
112
|
:'sock_read_timeout' => :'Float',
|
113
|
+
:'headers' => :'Array<Object>',
|
124
114
|
:'rate_limit' => :'Integer'
|
125
115
|
}
|
126
116
|
end
|
@@ -130,10 +120,7 @@ module PulpFileClient
|
|
130
120
|
Set.new([
|
131
121
|
:'ca_cert',
|
132
122
|
:'client_cert',
|
133
|
-
:'client_key',
|
134
123
|
:'proxy_url',
|
135
|
-
:'username',
|
136
|
-
:'password',
|
137
124
|
:'total_timeout',
|
138
125
|
:'connect_timeout',
|
139
126
|
:'sock_connect_timeout',
|
@@ -181,10 +168,6 @@ module PulpFileClient
|
|
181
168
|
self.client_cert = attributes[:'client_cert']
|
182
169
|
end
|
183
170
|
|
184
|
-
if attributes.key?(:'client_key')
|
185
|
-
self.client_key = attributes[:'client_key']
|
186
|
-
end
|
187
|
-
|
188
171
|
if attributes.key?(:'tls_validation')
|
189
172
|
self.tls_validation = attributes[:'tls_validation']
|
190
173
|
end
|
@@ -193,14 +176,6 @@ module PulpFileClient
|
|
193
176
|
self.proxy_url = attributes[:'proxy_url']
|
194
177
|
end
|
195
178
|
|
196
|
-
if attributes.key?(:'username')
|
197
|
-
self.username = attributes[:'username']
|
198
|
-
end
|
199
|
-
|
200
|
-
if attributes.key?(:'password')
|
201
|
-
self.password = attributes[:'password']
|
202
|
-
end
|
203
|
-
|
204
179
|
if attributes.key?(:'pulp_labels')
|
205
180
|
self.pulp_labels = attributes[:'pulp_labels']
|
206
181
|
end
|
@@ -233,6 +208,12 @@ module PulpFileClient
|
|
233
208
|
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
234
209
|
end
|
235
210
|
|
211
|
+
if attributes.key?(:'headers')
|
212
|
+
if (value = attributes[:'headers']).is_a?(Array)
|
213
|
+
self.headers = value
|
214
|
+
end
|
215
|
+
end
|
216
|
+
|
236
217
|
if attributes.key?(:'rate_limit')
|
237
218
|
self.rate_limit = attributes[:'rate_limit']
|
238
219
|
end
|
@@ -347,11 +328,8 @@ module PulpFileClient
|
|
347
328
|
url == o.url &&
|
348
329
|
ca_cert == o.ca_cert &&
|
349
330
|
client_cert == o.client_cert &&
|
350
|
-
client_key == o.client_key &&
|
351
331
|
tls_validation == o.tls_validation &&
|
352
332
|
proxy_url == o.proxy_url &&
|
353
|
-
username == o.username &&
|
354
|
-
password == o.password &&
|
355
333
|
pulp_labels == o.pulp_labels &&
|
356
334
|
pulp_last_updated == o.pulp_last_updated &&
|
357
335
|
download_concurrency == o.download_concurrency &&
|
@@ -360,6 +338,7 @@ module PulpFileClient
|
|
360
338
|
connect_timeout == o.connect_timeout &&
|
361
339
|
sock_connect_timeout == o.sock_connect_timeout &&
|
362
340
|
sock_read_timeout == o.sock_read_timeout &&
|
341
|
+
headers == o.headers &&
|
363
342
|
rate_limit == o.rate_limit
|
364
343
|
end
|
365
344
|
|
@@ -372,7 +351,7 @@ module PulpFileClient
|
|
372
351
|
# Calculates hash code according to all attributes.
|
373
352
|
# @return [Integer] Hash code
|
374
353
|
def hash
|
375
|
-
[pulp_href, pulp_created, name, url, ca_cert, client_cert,
|
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
|
376
355
|
end
|
377
356
|
|
378
357
|
# Builds the object from hash
|