pulp_python_client 3.24.1 → 3.24.2

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.
@@ -22,6 +22,11 @@ module PulpPythonClient
22
22
  # The URL of an external content source.
23
23
  attr_accessor :url
24
24
 
25
+ attr_accessor :pulp_labels
26
+
27
+ # The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'on_demand' is the default. * `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.
28
+ attr_accessor :policy
29
+
25
30
  # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
26
31
  attr_accessor :ca_cert
27
32
 
@@ -49,17 +54,9 @@ module PulpPythonClient
49
54
  # The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed.
50
55
  attr_accessor :password
51
56
 
52
- attr_accessor :pulp_labels
53
-
54
- # Total number of simultaneous connections. If not set then the default value will be used.
55
- attr_accessor :download_concurrency
56
-
57
57
  # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
58
58
  attr_accessor :max_retries
59
59
 
60
- # The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'on_demand' is the default. * `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.
61
- attr_accessor :policy
62
-
63
60
  # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
64
61
  attr_accessor :total_timeout
65
62
 
@@ -75,6 +72,9 @@ module PulpPythonClient
75
72
  # Headers for aiohttp.Clientsession
76
73
  attr_accessor :headers
77
74
 
75
+ # Total number of simultaneous connections. If not set then the default value will be used.
76
+ attr_accessor :download_concurrency
77
+
78
78
  # Limits requests per second for each concurrent downloader
79
79
  attr_accessor :rate_limit
80
80
 
@@ -126,6 +126,8 @@ module PulpPythonClient
126
126
  {
127
127
  :'name' => :'name',
128
128
  :'url' => :'url',
129
+ :'pulp_labels' => :'pulp_labels',
130
+ :'policy' => :'policy',
129
131
  :'ca_cert' => :'ca_cert',
130
132
  :'client_cert' => :'client_cert',
131
133
  :'client_key' => :'client_key',
@@ -135,15 +137,13 @@ module PulpPythonClient
135
137
  :'proxy_password' => :'proxy_password',
136
138
  :'username' => :'username',
137
139
  :'password' => :'password',
138
- :'pulp_labels' => :'pulp_labels',
139
- :'download_concurrency' => :'download_concurrency',
140
140
  :'max_retries' => :'max_retries',
141
- :'policy' => :'policy',
142
141
  :'total_timeout' => :'total_timeout',
143
142
  :'connect_timeout' => :'connect_timeout',
144
143
  :'sock_connect_timeout' => :'sock_connect_timeout',
145
144
  :'sock_read_timeout' => :'sock_read_timeout',
146
145
  :'headers' => :'headers',
146
+ :'download_concurrency' => :'download_concurrency',
147
147
  :'rate_limit' => :'rate_limit',
148
148
  :'includes' => :'includes',
149
149
  :'excludes' => :'excludes',
@@ -165,6 +165,8 @@ module PulpPythonClient
165
165
  {
166
166
  :'name' => :'String',
167
167
  :'url' => :'String',
168
+ :'pulp_labels' => :'Hash<String, String>',
169
+ :'policy' => :'PolicyEnum',
168
170
  :'ca_cert' => :'String',
169
171
  :'client_cert' => :'String',
170
172
  :'client_key' => :'String',
@@ -174,15 +176,13 @@ module PulpPythonClient
174
176
  :'proxy_password' => :'String',
175
177
  :'username' => :'String',
176
178
  :'password' => :'String',
177
- :'pulp_labels' => :'Hash<String, String>',
178
- :'download_concurrency' => :'Integer',
179
179
  :'max_retries' => :'Integer',
180
- :'policy' => :'PolicyEnum',
181
180
  :'total_timeout' => :'Float',
182
181
  :'connect_timeout' => :'Float',
183
182
  :'sock_connect_timeout' => :'Float',
184
183
  :'sock_read_timeout' => :'Float',
185
184
  :'headers' => :'Array<Object>',
185
+ :'download_concurrency' => :'Integer',
186
186
  :'rate_limit' => :'Integer',
187
187
  :'includes' => :'Array<String>',
188
188
  :'excludes' => :'Array<String>',
@@ -205,12 +205,12 @@ module PulpPythonClient
205
205
  :'proxy_password',
206
206
  :'username',
207
207
  :'password',
208
- :'download_concurrency',
209
208
  :'max_retries',
210
209
  :'total_timeout',
211
210
  :'connect_timeout',
212
211
  :'sock_connect_timeout',
213
212
  :'sock_read_timeout',
213
+ :'download_concurrency',
214
214
  :'rate_limit',
215
215
  ])
216
216
  end
@@ -242,6 +242,16 @@ module PulpPythonClient
242
242
  self.url = nil
243
243
  end
244
244
 
245
+ if attributes.key?(:'pulp_labels')
246
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
247
+ self.pulp_labels = value
248
+ end
249
+ end
250
+
251
+ if attributes.key?(:'policy')
252
+ self.policy = attributes[:'policy']
253
+ end
254
+
245
255
  if attributes.key?(:'ca_cert')
246
256
  self.ca_cert = attributes[:'ca_cert']
247
257
  end
@@ -278,24 +288,10 @@ module PulpPythonClient
278
288
  self.password = attributes[:'password']
279
289
  end
280
290
 
281
- if attributes.key?(:'pulp_labels')
282
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
283
- self.pulp_labels = value
284
- end
285
- end
286
-
287
- if attributes.key?(:'download_concurrency')
288
- self.download_concurrency = attributes[:'download_concurrency']
289
- end
290
-
291
291
  if attributes.key?(:'max_retries')
292
292
  self.max_retries = attributes[:'max_retries']
293
293
  end
294
294
 
295
- if attributes.key?(:'policy')
296
- self.policy = attributes[:'policy']
297
- end
298
-
299
295
  if attributes.key?(:'total_timeout')
300
296
  self.total_timeout = attributes[:'total_timeout']
301
297
  end
@@ -318,6 +314,10 @@ module PulpPythonClient
318
314
  end
319
315
  end
320
316
 
317
+ if attributes.key?(:'download_concurrency')
318
+ self.download_concurrency = attributes[:'download_concurrency']
319
+ end
320
+
321
321
  if attributes.key?(:'rate_limit')
322
322
  self.rate_limit = attributes[:'rate_limit']
323
323
  end
@@ -613,6 +613,8 @@ module PulpPythonClient
613
613
  self.class == o.class &&
614
614
  name == o.name &&
615
615
  url == o.url &&
616
+ pulp_labels == o.pulp_labels &&
617
+ policy == o.policy &&
616
618
  ca_cert == o.ca_cert &&
617
619
  client_cert == o.client_cert &&
618
620
  client_key == o.client_key &&
@@ -622,15 +624,13 @@ module PulpPythonClient
622
624
  proxy_password == o.proxy_password &&
623
625
  username == o.username &&
624
626
  password == o.password &&
625
- pulp_labels == o.pulp_labels &&
626
- download_concurrency == o.download_concurrency &&
627
627
  max_retries == o.max_retries &&
628
- policy == o.policy &&
629
628
  total_timeout == o.total_timeout &&
630
629
  connect_timeout == o.connect_timeout &&
631
630
  sock_connect_timeout == o.sock_connect_timeout &&
632
631
  sock_read_timeout == o.sock_read_timeout &&
633
632
  headers == o.headers &&
633
+ download_concurrency == o.download_concurrency &&
634
634
  rate_limit == o.rate_limit &&
635
635
  includes == o.includes &&
636
636
  excludes == o.excludes &&
@@ -650,7 +650,7 @@ module PulpPythonClient
650
650
  # Calculates hash code according to all attributes.
651
651
  # @return [Integer] Hash code
652
652
  def hash
653
- [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, includes, excludes, prereleases, package_types, keep_latest_packages, exclude_platforms, provenance].hash
653
+ [name, url, pulp_labels, policy, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, max_retries, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, download_concurrency, rate_limit, includes, excludes, prereleases, package_types, keep_latest_packages, exclude_platforms, provenance].hash
654
654
  end
655
655
 
656
656
  # Builds the object from hash
@@ -33,6 +33,14 @@ module PulpPythonClient
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. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'on_demand' is the default. * `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 PulpPythonClient
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. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'on_demand' is the default. * `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 PulpPythonClient
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
  # A list containing project specifiers for Python packages to include.
81
81
  attr_accessor :includes
82
82
 
@@ -129,21 +129,21 @@ module PulpPythonClient
129
129
  :'pulp_last_updated' => :'pulp_last_updated',
130
130
  :'name' => :'name',
131
131
  :'url' => :'url',
132
+ :'pulp_labels' => :'pulp_labels',
133
+ :'policy' => :'policy',
134
+ :'hidden_fields' => :'hidden_fields',
132
135
  :'ca_cert' => :'ca_cert',
133
136
  :'client_cert' => :'client_cert',
134
137
  :'tls_validation' => :'tls_validation',
135
138
  :'proxy_url' => :'proxy_url',
136
- :'pulp_labels' => :'pulp_labels',
137
- :'download_concurrency' => :'download_concurrency',
138
139
  :'max_retries' => :'max_retries',
139
- :'policy' => :'policy',
140
140
  :'total_timeout' => :'total_timeout',
141
141
  :'connect_timeout' => :'connect_timeout',
142
142
  :'sock_connect_timeout' => :'sock_connect_timeout',
143
143
  :'sock_read_timeout' => :'sock_read_timeout',
144
144
  :'headers' => :'headers',
145
+ :'download_concurrency' => :'download_concurrency',
145
146
  :'rate_limit' => :'rate_limit',
146
- :'hidden_fields' => :'hidden_fields',
147
147
  :'includes' => :'includes',
148
148
  :'excludes' => :'excludes',
149
149
  :'prereleases' => :'prereleases',
@@ -168,21 +168,21 @@ module PulpPythonClient
168
168
  :'pulp_last_updated' => :'Time',
169
169
  :'name' => :'String',
170
170
  :'url' => :'String',
171
+ :'pulp_labels' => :'Hash<String, String>',
172
+ :'policy' => :'PolicyEnum',
173
+ :'hidden_fields' => :'Array<PythonPythonRemoteResponseHiddenFieldsInner>',
171
174
  :'ca_cert' => :'String',
172
175
  :'client_cert' => :'String',
173
176
  :'tls_validation' => :'Boolean',
174
177
  :'proxy_url' => :'String',
175
- :'pulp_labels' => :'Hash<String, String>',
176
- :'download_concurrency' => :'Integer',
177
178
  :'max_retries' => :'Integer',
178
- :'policy' => :'PolicyEnum',
179
179
  :'total_timeout' => :'Float',
180
180
  :'connect_timeout' => :'Float',
181
181
  :'sock_connect_timeout' => :'Float',
182
182
  :'sock_read_timeout' => :'Float',
183
183
  :'headers' => :'Array<Object>',
184
+ :'download_concurrency' => :'Integer',
184
185
  :'rate_limit' => :'Integer',
185
- :'hidden_fields' => :'Array<PythonPythonRemoteResponseHiddenFieldsInner>',
186
186
  :'includes' => :'Array<String>',
187
187
  :'excludes' => :'Array<String>',
188
188
  :'prereleases' => :'Boolean',
@@ -199,12 +199,12 @@ module PulpPythonClient
199
199
  :'ca_cert',
200
200
  :'client_cert',
201
201
  :'proxy_url',
202
- :'download_concurrency',
203
202
  :'max_retries',
204
203
  :'total_timeout',
205
204
  :'connect_timeout',
206
205
  :'sock_connect_timeout',
207
206
  :'sock_read_timeout',
207
+ :'download_concurrency',
208
208
  :'rate_limit',
209
209
  ])
210
210
  end
@@ -252,6 +252,22 @@ module PulpPythonClient
252
252
  self.url = nil
253
253
  end
254
254
 
255
+ if attributes.key?(:'pulp_labels')
256
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
257
+ self.pulp_labels = value
258
+ end
259
+ end
260
+
261
+ if attributes.key?(:'policy')
262
+ self.policy = attributes[:'policy']
263
+ end
264
+
265
+ if attributes.key?(:'hidden_fields')
266
+ if (value = attributes[:'hidden_fields']).is_a?(Array)
267
+ self.hidden_fields = value
268
+ end
269
+ end
270
+
255
271
  if attributes.key?(:'ca_cert')
256
272
  self.ca_cert = attributes[:'ca_cert']
257
273
  end
@@ -268,24 +284,10 @@ module PulpPythonClient
268
284
  self.proxy_url = attributes[:'proxy_url']
269
285
  end
270
286
 
271
- if attributes.key?(:'pulp_labels')
272
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
273
- self.pulp_labels = value
274
- end
275
- end
276
-
277
- if attributes.key?(:'download_concurrency')
278
- self.download_concurrency = attributes[:'download_concurrency']
279
- end
280
-
281
287
  if attributes.key?(:'max_retries')
282
288
  self.max_retries = attributes[:'max_retries']
283
289
  end
284
290
 
285
- if attributes.key?(:'policy')
286
- self.policy = attributes[:'policy']
287
- end
288
-
289
291
  if attributes.key?(:'total_timeout')
290
292
  self.total_timeout = attributes[:'total_timeout']
291
293
  end
@@ -308,14 +310,12 @@ module PulpPythonClient
308
310
  end
309
311
  end
310
312
 
311
- if attributes.key?(:'rate_limit')
312
- self.rate_limit = attributes[:'rate_limit']
313
+ if attributes.key?(:'download_concurrency')
314
+ self.download_concurrency = attributes[:'download_concurrency']
313
315
  end
314
316
 
315
- if attributes.key?(:'hidden_fields')
316
- if (value = attributes[:'hidden_fields']).is_a?(Array)
317
- self.hidden_fields = value
318
- end
317
+ if attributes.key?(:'rate_limit')
318
+ self.rate_limit = attributes[:'rate_limit']
319
319
  end
320
320
 
321
321
  if attributes.key?(:'includes')
@@ -455,21 +455,21 @@ module PulpPythonClient
455
455
  pulp_last_updated == o.pulp_last_updated &&
456
456
  name == o.name &&
457
457
  url == o.url &&
458
+ pulp_labels == o.pulp_labels &&
459
+ policy == o.policy &&
460
+ hidden_fields == o.hidden_fields &&
458
461
  ca_cert == o.ca_cert &&
459
462
  client_cert == o.client_cert &&
460
463
  tls_validation == o.tls_validation &&
461
464
  proxy_url == o.proxy_url &&
462
- pulp_labels == o.pulp_labels &&
463
- download_concurrency == o.download_concurrency &&
464
465
  max_retries == o.max_retries &&
465
- policy == o.policy &&
466
466
  total_timeout == o.total_timeout &&
467
467
  connect_timeout == o.connect_timeout &&
468
468
  sock_connect_timeout == o.sock_connect_timeout &&
469
469
  sock_read_timeout == o.sock_read_timeout &&
470
470
  headers == o.headers &&
471
+ download_concurrency == o.download_concurrency &&
471
472
  rate_limit == o.rate_limit &&
472
- hidden_fields == o.hidden_fields &&
473
473
  includes == o.includes &&
474
474
  excludes == o.excludes &&
475
475
  prereleases == o.prereleases &&
@@ -488,7 +488,7 @@ module PulpPythonClient
488
488
  # Calculates hash code according to all attributes.
489
489
  # @return [Integer] Hash code
490
490
  def hash
491
- [pulp_href, prn, pulp_created, pulp_last_updated, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, hidden_fields, includes, excludes, prereleases, package_types, keep_latest_packages, exclude_platforms, provenance].hash
491
+ [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, includes, excludes, prereleases, package_types, keep_latest_packages, exclude_platforms, provenance].hash
492
492
  end
493
493
 
494
494
  # Builds the object from hash