pulpcore_client 3.102.0 → 3.103.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +6 -4
- data/docs/ArtifactDistributionResponse.md +14 -14
- data/docs/ContentOpenpgpPublickeyApi.md +3 -1
- data/docs/GenericRemoteResponse.md +9 -9
- data/docs/Purge.md +1 -1
- data/docs/RemoteNetworkConfig.md +50 -0
- data/docs/RemoteNetworkConfigResponse.md +40 -0
- data/lib/pulpcore_client/api/content_openpgp_publickey_api.rb +3 -0
- data/lib/pulpcore_client/models/artifact_distribution_response.rb +69 -69
- data/lib/pulpcore_client/models/generic_remote_response.rb +49 -49
- data/lib/pulpcore_client/models/purge.rb +1 -1
- data/lib/pulpcore_client/models/remote_network_config.rb +573 -0
- data/lib/pulpcore_client/models/remote_network_config_response.rb +398 -0
- data/lib/pulpcore_client/version.rb +1 -1
- data/lib/pulpcore_client.rb +2 -0
- data/spec/api/content_openpgp_publickey_api_spec.rb +1 -0
- data/spec/models/artifact_distribution_response_spec.rb +11 -11
- data/spec/models/generic_remote_response_spec.rb +10 -10
- data/spec/models/remote_network_config_response_spec.rb +102 -0
- data/spec/models/remote_network_config_spec.rb +132 -0
- metadata +10 -2
|
@@ -33,6 +33,14 @@ module PulpcoreClient
|
|
|
33
33
|
# The URL of an external content source.
|
|
34
34
|
attr_accessor :url
|
|
35
35
|
|
|
36
|
+
attr_accessor :pulp_labels
|
|
37
|
+
|
|
38
|
+
# The policy to use when downloading content. * `immediate` - When syncing, download all metadata and content now. * `on_demand` - When syncing, download metadata, but do not download content now. Instead, download content as clients request it, and save it in Pulp to be served for future client requests. * `streamed` - When syncing, download metadata, but do not download content now. Instead,download content as clients request it, but never save it in Pulp. This causes future requests for that same content to have to be downloaded again.
|
|
39
|
+
attr_accessor :policy
|
|
40
|
+
|
|
41
|
+
# List of hidden (write only) fields
|
|
42
|
+
attr_accessor :hidden_fields
|
|
43
|
+
|
|
36
44
|
# A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
|
|
37
45
|
attr_accessor :ca_cert
|
|
38
46
|
|
|
@@ -45,17 +53,9 @@ module PulpcoreClient
|
|
|
45
53
|
# The proxy URL. Format: scheme://host:port
|
|
46
54
|
attr_accessor :proxy_url
|
|
47
55
|
|
|
48
|
-
attr_accessor :pulp_labels
|
|
49
|
-
|
|
50
|
-
# Total number of simultaneous connections. If not set then the default value will be used.
|
|
51
|
-
attr_accessor :download_concurrency
|
|
52
|
-
|
|
53
56
|
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
|
54
57
|
attr_accessor :max_retries
|
|
55
58
|
|
|
56
|
-
# The policy to use when downloading content. * `immediate` - When syncing, download all metadata and content now. * `on_demand` - When syncing, download metadata, but do not download content now. Instead, download content as clients request it, and save it in Pulp to be served for future client requests. * `streamed` - When syncing, download metadata, but do not download content now. Instead,download content as clients request it, but never save it in Pulp. This causes future requests for that same content to have to be downloaded again.
|
|
57
|
-
attr_accessor :policy
|
|
58
|
-
|
|
59
59
|
# 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
60
|
attr_accessor :total_timeout
|
|
61
61
|
|
|
@@ -71,12 +71,12 @@ module PulpcoreClient
|
|
|
71
71
|
# Headers for aiohttp.Clientsession
|
|
72
72
|
attr_accessor :headers
|
|
73
73
|
|
|
74
|
+
# Total number of simultaneous connections. If not set then the default value will be used.
|
|
75
|
+
attr_accessor :download_concurrency
|
|
76
|
+
|
|
74
77
|
# Limits requests per second for each concurrent downloader
|
|
75
78
|
attr_accessor :rate_limit
|
|
76
79
|
|
|
77
|
-
# List of hidden (write only) fields
|
|
78
|
-
attr_accessor :hidden_fields
|
|
79
|
-
|
|
80
80
|
class EnumAttributeValidator
|
|
81
81
|
attr_reader :datatype
|
|
82
82
|
attr_reader :allowable_values
|
|
@@ -108,21 +108,21 @@ module PulpcoreClient
|
|
|
108
108
|
:'pulp_last_updated' => :'pulp_last_updated',
|
|
109
109
|
:'name' => :'name',
|
|
110
110
|
:'url' => :'url',
|
|
111
|
+
:'pulp_labels' => :'pulp_labels',
|
|
112
|
+
:'policy' => :'policy',
|
|
113
|
+
:'hidden_fields' => :'hidden_fields',
|
|
111
114
|
:'ca_cert' => :'ca_cert',
|
|
112
115
|
:'client_cert' => :'client_cert',
|
|
113
116
|
:'tls_validation' => :'tls_validation',
|
|
114
117
|
:'proxy_url' => :'proxy_url',
|
|
115
|
-
:'pulp_labels' => :'pulp_labels',
|
|
116
|
-
:'download_concurrency' => :'download_concurrency',
|
|
117
118
|
:'max_retries' => :'max_retries',
|
|
118
|
-
:'policy' => :'policy',
|
|
119
119
|
:'total_timeout' => :'total_timeout',
|
|
120
120
|
:'connect_timeout' => :'connect_timeout',
|
|
121
121
|
:'sock_connect_timeout' => :'sock_connect_timeout',
|
|
122
122
|
:'sock_read_timeout' => :'sock_read_timeout',
|
|
123
123
|
:'headers' => :'headers',
|
|
124
|
-
:'
|
|
125
|
-
:'
|
|
124
|
+
:'download_concurrency' => :'download_concurrency',
|
|
125
|
+
:'rate_limit' => :'rate_limit'
|
|
126
126
|
}
|
|
127
127
|
end
|
|
128
128
|
|
|
@@ -140,21 +140,21 @@ module PulpcoreClient
|
|
|
140
140
|
:'pulp_last_updated' => :'Time',
|
|
141
141
|
:'name' => :'String',
|
|
142
142
|
:'url' => :'String',
|
|
143
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
144
|
+
:'policy' => :'GenericRemoteResponsePolicyEnum',
|
|
145
|
+
:'hidden_fields' => :'Array<GenericRemoteResponseHiddenFieldsInner>',
|
|
143
146
|
:'ca_cert' => :'String',
|
|
144
147
|
:'client_cert' => :'String',
|
|
145
148
|
:'tls_validation' => :'Boolean',
|
|
146
149
|
:'proxy_url' => :'String',
|
|
147
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
148
|
-
:'download_concurrency' => :'Integer',
|
|
149
150
|
:'max_retries' => :'Integer',
|
|
150
|
-
:'policy' => :'GenericRemoteResponsePolicyEnum',
|
|
151
151
|
:'total_timeout' => :'Float',
|
|
152
152
|
:'connect_timeout' => :'Float',
|
|
153
153
|
:'sock_connect_timeout' => :'Float',
|
|
154
154
|
:'sock_read_timeout' => :'Float',
|
|
155
155
|
:'headers' => :'Array<Object>',
|
|
156
|
-
:'
|
|
157
|
-
:'
|
|
156
|
+
:'download_concurrency' => :'Integer',
|
|
157
|
+
:'rate_limit' => :'Integer'
|
|
158
158
|
}
|
|
159
159
|
end
|
|
160
160
|
|
|
@@ -164,13 +164,13 @@ module PulpcoreClient
|
|
|
164
164
|
:'ca_cert',
|
|
165
165
|
:'client_cert',
|
|
166
166
|
:'proxy_url',
|
|
167
|
-
:'download_concurrency',
|
|
168
167
|
:'max_retries',
|
|
169
168
|
:'total_timeout',
|
|
170
169
|
:'connect_timeout',
|
|
171
170
|
:'sock_connect_timeout',
|
|
172
171
|
:'sock_read_timeout',
|
|
173
|
-
:'
|
|
172
|
+
:'download_concurrency',
|
|
173
|
+
:'rate_limit'
|
|
174
174
|
])
|
|
175
175
|
end
|
|
176
176
|
|
|
@@ -217,6 +217,22 @@ module PulpcoreClient
|
|
|
217
217
|
self.url = nil
|
|
218
218
|
end
|
|
219
219
|
|
|
220
|
+
if attributes.key?(:'pulp_labels')
|
|
221
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
222
|
+
self.pulp_labels = value
|
|
223
|
+
end
|
|
224
|
+
end
|
|
225
|
+
|
|
226
|
+
if attributes.key?(:'policy')
|
|
227
|
+
self.policy = attributes[:'policy']
|
|
228
|
+
end
|
|
229
|
+
|
|
230
|
+
if attributes.key?(:'hidden_fields')
|
|
231
|
+
if (value = attributes[:'hidden_fields']).is_a?(Array)
|
|
232
|
+
self.hidden_fields = value
|
|
233
|
+
end
|
|
234
|
+
end
|
|
235
|
+
|
|
220
236
|
if attributes.key?(:'ca_cert')
|
|
221
237
|
self.ca_cert = attributes[:'ca_cert']
|
|
222
238
|
end
|
|
@@ -233,24 +249,10 @@ module PulpcoreClient
|
|
|
233
249
|
self.proxy_url = attributes[:'proxy_url']
|
|
234
250
|
end
|
|
235
251
|
|
|
236
|
-
if attributes.key?(:'pulp_labels')
|
|
237
|
-
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
238
|
-
self.pulp_labels = value
|
|
239
|
-
end
|
|
240
|
-
end
|
|
241
|
-
|
|
242
|
-
if attributes.key?(:'download_concurrency')
|
|
243
|
-
self.download_concurrency = attributes[:'download_concurrency']
|
|
244
|
-
end
|
|
245
|
-
|
|
246
252
|
if attributes.key?(:'max_retries')
|
|
247
253
|
self.max_retries = attributes[:'max_retries']
|
|
248
254
|
end
|
|
249
255
|
|
|
250
|
-
if attributes.key?(:'policy')
|
|
251
|
-
self.policy = attributes[:'policy']
|
|
252
|
-
end
|
|
253
|
-
|
|
254
256
|
if attributes.key?(:'total_timeout')
|
|
255
257
|
self.total_timeout = attributes[:'total_timeout']
|
|
256
258
|
end
|
|
@@ -273,14 +275,12 @@ module PulpcoreClient
|
|
|
273
275
|
end
|
|
274
276
|
end
|
|
275
277
|
|
|
276
|
-
if attributes.key?(:'
|
|
277
|
-
self.
|
|
278
|
+
if attributes.key?(:'download_concurrency')
|
|
279
|
+
self.download_concurrency = attributes[:'download_concurrency']
|
|
278
280
|
end
|
|
279
281
|
|
|
280
|
-
if attributes.key?(:'
|
|
281
|
-
|
|
282
|
-
self.hidden_fields = value
|
|
283
|
-
end
|
|
282
|
+
if attributes.key?(:'rate_limit')
|
|
283
|
+
self.rate_limit = attributes[:'rate_limit']
|
|
284
284
|
end
|
|
285
285
|
end
|
|
286
286
|
|
|
@@ -380,21 +380,21 @@ module PulpcoreClient
|
|
|
380
380
|
pulp_last_updated == o.pulp_last_updated &&
|
|
381
381
|
name == o.name &&
|
|
382
382
|
url == o.url &&
|
|
383
|
+
pulp_labels == o.pulp_labels &&
|
|
384
|
+
policy == o.policy &&
|
|
385
|
+
hidden_fields == o.hidden_fields &&
|
|
383
386
|
ca_cert == o.ca_cert &&
|
|
384
387
|
client_cert == o.client_cert &&
|
|
385
388
|
tls_validation == o.tls_validation &&
|
|
386
389
|
proxy_url == o.proxy_url &&
|
|
387
|
-
pulp_labels == o.pulp_labels &&
|
|
388
|
-
download_concurrency == o.download_concurrency &&
|
|
389
390
|
max_retries == o.max_retries &&
|
|
390
|
-
policy == o.policy &&
|
|
391
391
|
total_timeout == o.total_timeout &&
|
|
392
392
|
connect_timeout == o.connect_timeout &&
|
|
393
393
|
sock_connect_timeout == o.sock_connect_timeout &&
|
|
394
394
|
sock_read_timeout == o.sock_read_timeout &&
|
|
395
395
|
headers == o.headers &&
|
|
396
|
-
|
|
397
|
-
|
|
396
|
+
download_concurrency == o.download_concurrency &&
|
|
397
|
+
rate_limit == o.rate_limit
|
|
398
398
|
end
|
|
399
399
|
|
|
400
400
|
# @see the `==` method
|
|
@@ -406,7 +406,7 @@ module PulpcoreClient
|
|
|
406
406
|
# Calculates hash code according to all attributes.
|
|
407
407
|
# @return [Integer] Hash code
|
|
408
408
|
def hash
|
|
409
|
-
[pulp_href, prn, pulp_created, pulp_last_updated, name, url,
|
|
409
|
+
[pulp_href, prn, pulp_created, pulp_last_updated, name, url, pulp_labels, policy, hidden_fields, ca_cert, client_cert, tls_validation, proxy_url, max_retries, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, download_concurrency, rate_limit].hash
|
|
410
410
|
end
|
|
411
411
|
|
|
412
412
|
# Builds the object from hash
|