pulp_rpm_client 3.13.3 → 3.15.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -6
  3. data/docs/ContentAdvisoriesApi.md +1 -1
  4. data/docs/ContentDistributionTreesApi.md +1 -1
  5. data/docs/ContentModulemdDefaultsApi.md +1 -1
  6. data/docs/ContentModulemdsApi.md +1 -1
  7. data/docs/ContentPackagecategoriesApi.md +1 -1
  8. data/docs/ContentPackageenvironmentsApi.md +1 -1
  9. data/docs/ContentPackagegroupsApi.md +1 -1
  10. data/docs/ContentPackagelangpacksApi.md +1 -1
  11. data/docs/ContentPackagesApi.md +1 -1
  12. data/docs/ContentRepoMetadataFilesApi.md +1 -1
  13. data/docs/DistributionsRpmApi.md +1 -1
  14. data/docs/PatchedrpmRpmRemote.md +7 -5
  15. data/docs/PatchedrpmRpmRepository.md +5 -5
  16. data/docs/PatchedrpmUlnRemote.md +7 -5
  17. data/docs/PublicationsRpmApi.md +1 -1
  18. data/docs/RemotesRpmApi.md +1 -1
  19. data/docs/RemotesUlnApi.md +1 -1
  20. data/docs/RepositoriesRpmApi.md +1 -1
  21. data/docs/RepositoriesRpmVersionsApi.md +1 -1
  22. data/docs/RpmCopyApi.md +1 -1
  23. data/docs/RpmRpmRemote.md +7 -5
  24. data/docs/RpmRpmRemoteResponse.md +7 -5
  25. data/docs/RpmRpmRepository.md +5 -5
  26. data/docs/RpmRpmRepositoryResponse.md +5 -5
  27. data/docs/RpmUlnRemote.md +7 -5
  28. data/docs/RpmUlnRemoteResponse.md +7 -5
  29. data/lib/pulp_rpm_client/configuration.rb +2 -2
  30. data/lib/pulp_rpm_client/models/patchedrpm_rpm_remote.rb +18 -6
  31. data/lib/pulp_rpm_client/models/patchedrpm_rpm_repository.rb +19 -18
  32. data/lib/pulp_rpm_client/models/patchedrpm_uln_remote.rb +18 -6
  33. data/lib/pulp_rpm_client/models/rpm_rpm_remote.rb +18 -6
  34. data/lib/pulp_rpm_client/models/rpm_rpm_remote_response.rb +18 -6
  35. data/lib/pulp_rpm_client/models/rpm_rpm_repository.rb +19 -18
  36. data/lib/pulp_rpm_client/models/rpm_rpm_repository_response.rb +19 -18
  37. data/lib/pulp_rpm_client/models/rpm_uln_remote.rb +18 -6
  38. data/lib/pulp_rpm_client/models/rpm_uln_remote_response.rb +18 -6
  39. data/lib/pulp_rpm_client/version.rb +1 -1
  40. data/lib/pulp_rpm_client.rb +0 -1
  41. data/spec/configuration_spec.rb +3 -3
  42. data/spec/models/patchedrpm_rpm_remote_spec.rb +6 -0
  43. data/spec/models/patchedrpm_rpm_repository_spec.rb +1 -1
  44. data/spec/models/patchedrpm_uln_remote_spec.rb +6 -0
  45. data/spec/models/rpm_rpm_remote_response_spec.rb +6 -0
  46. data/spec/models/rpm_rpm_remote_spec.rb +6 -0
  47. data/spec/models/rpm_rpm_repository_response_spec.rb +1 -1
  48. data/spec/models/rpm_rpm_repository_spec.rb +1 -1
  49. data/spec/models/rpm_uln_remote_response_spec.rb +6 -0
  50. data/spec/models/rpm_uln_remote_spec.rb +6 -0
  51. metadata +65 -69
  52. data/docs/NullEnum.md +0 -16
  53. data/lib/pulp_rpm_client/models/null_enum.rb +0 -35
  54. data/spec/models/null_enum_spec.rb +0 -35
@@ -127,7 +127,7 @@ module PulpRpmClient
127
127
  attr_accessor :force_ending_format
128
128
 
129
129
  def initialize
130
- @scheme = 'http'
130
+ @scheme = 'https'
131
131
  @host = 'pulp'
132
132
  @base_path = ''
133
133
  @api_key = {}
@@ -209,7 +209,7 @@ module PulpRpmClient
209
209
  def server_settings
210
210
  [
211
211
  {
212
- url: "http://pulp/",
212
+ url: "https://pulp/",
213
213
  description: "No description provided",
214
214
  }
215
215
  ]
@@ -50,22 +50,25 @@ module PulpRpmClient
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
@@ -93,6 +96,7 @@ module PulpRpmClient
93
96
  :'password' => :'password',
94
97
  :'pulp_labels' => :'pulp_labels',
95
98
  :'download_concurrency' => :'download_concurrency',
99
+ :'max_retries' => :'max_retries',
96
100
  :'policy' => :'policy',
97
101
  :'total_timeout' => :'total_timeout',
98
102
  :'connect_timeout' => :'connect_timeout',
@@ -120,6 +124,7 @@ module PulpRpmClient
120
124
  :'password' => :'String',
121
125
  :'pulp_labels' => :'Object',
122
126
  :'download_concurrency' => :'Integer',
127
+ :'max_retries' => :'Integer',
123
128
  :'policy' => :'PolicyEnum',
124
129
  :'total_timeout' => :'Float',
125
130
  :'connect_timeout' => :'Float',
@@ -142,6 +147,8 @@ module PulpRpmClient
142
147
  :'proxy_password',
143
148
  :'username',
144
149
  :'password',
150
+ :'download_concurrency',
151
+ :'max_retries',
145
152
  :'total_timeout',
146
153
  :'connect_timeout',
147
154
  :'sock_connect_timeout',
@@ -218,6 +225,10 @@ module PulpRpmClient
218
225
  self.download_concurrency = attributes[:'download_concurrency']
219
226
  end
220
227
 
228
+ if attributes.key?(:'max_retries')
229
+ self.max_retries = attributes[:'max_retries']
230
+ end
231
+
221
232
  if attributes.key?(:'policy')
222
233
  self.policy = attributes[:'policy']
223
234
  end
@@ -359,6 +370,7 @@ module PulpRpmClient
359
370
  password == o.password &&
360
371
  pulp_labels == o.pulp_labels &&
361
372
  download_concurrency == o.download_concurrency &&
373
+ max_retries == o.max_retries &&
362
374
  policy == o.policy &&
363
375
  total_timeout == o.total_timeout &&
364
376
  connect_timeout == o.connect_timeout &&
@@ -378,7 +390,7 @@ module PulpRpmClient
378
390
  # Calculates hash code according to all attributes.
379
391
  # @return [Integer] Hash code
380
392
  def hash
381
- [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, sles_auth_token].hash
393
+ [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, sles_auth_token].hash
382
394
  end
383
395
 
384
396
  # Builds the object from hash
@@ -24,8 +24,9 @@ module PulpRpmClient
24
24
  attr_accessor :description
25
25
 
26
26
  # Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
27
- attr_accessor :retained_versions
27
+ attr_accessor :retain_repo_versions
28
28
 
29
+ # An optional remote to use by default when syncing.
29
30
  attr_accessor :remote
30
31
 
31
32
  # Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository.
@@ -58,7 +59,7 @@ module PulpRpmClient
58
59
  :'pulp_labels' => :'pulp_labels',
59
60
  :'name' => :'name',
60
61
  :'description' => :'description',
61
- :'retained_versions' => :'retained_versions',
62
+ :'retain_repo_versions' => :'retain_repo_versions',
62
63
  :'remote' => :'remote',
63
64
  :'autopublish' => :'autopublish',
64
65
  :'metadata_signing_service' => :'metadata_signing_service',
@@ -77,13 +78,13 @@ module PulpRpmClient
77
78
  :'pulp_labels' => :'Object',
78
79
  :'name' => :'String',
79
80
  :'description' => :'String',
80
- :'retained_versions' => :'Integer',
81
+ :'retain_repo_versions' => :'Integer',
81
82
  :'remote' => :'String',
82
83
  :'autopublish' => :'Boolean',
83
84
  :'metadata_signing_service' => :'String',
84
85
  :'retain_package_versions' => :'Integer',
85
- :'metadata_checksum_type' => :'OneOfMetadataChecksumTypeEnumNullEnum',
86
- :'package_checksum_type' => :'OneOfPackageChecksumTypeEnumNullEnum',
86
+ :'metadata_checksum_type' => :'MetadataChecksumTypeEnum',
87
+ :'package_checksum_type' => :'PackageChecksumTypeEnum',
87
88
  :'gpgcheck' => :'Integer',
88
89
  :'repo_gpgcheck' => :'Integer',
89
90
  :'sqlite_metadata' => :'Boolean'
@@ -94,7 +95,7 @@ module PulpRpmClient
94
95
  def self.openapi_nullable
95
96
  Set.new([
96
97
  :'description',
97
- :'retained_versions',
98
+ :'retain_repo_versions',
98
99
  :'remote',
99
100
  :'metadata_signing_service',
100
101
  :'metadata_checksum_type',
@@ -129,8 +130,8 @@ module PulpRpmClient
129
130
  self.description = attributes[:'description']
130
131
  end
131
132
 
132
- if attributes.key?(:'retained_versions')
133
- self.retained_versions = attributes[:'retained_versions']
133
+ if attributes.key?(:'retain_repo_versions')
134
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
134
135
  end
135
136
 
136
137
  if attributes.key?(:'remote')
@@ -182,8 +183,8 @@ module PulpRpmClient
182
183
  # @return Array for valid properties with the reasons
183
184
  def list_invalid_properties
184
185
  invalid_properties = Array.new
185
- if !@retained_versions.nil? && @retained_versions < 1
186
- invalid_properties.push('invalid value for "retained_versions", must be greater than or equal to 1.')
186
+ if !@retain_repo_versions.nil? && @retain_repo_versions < 1
187
+ invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
187
188
  end
188
189
 
189
190
  if !@retain_package_versions.nil? && @retain_package_versions < 0
@@ -212,7 +213,7 @@ module PulpRpmClient
212
213
  # Check to see if the all the properties in the model are valid
213
214
  # @return true if the model is valid
214
215
  def valid?
215
- return false if !@retained_versions.nil? && @retained_versions < 1
216
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
216
217
  return false if !@retain_package_versions.nil? && @retain_package_versions < 0
217
218
  return false if !@gpgcheck.nil? && @gpgcheck > 1
218
219
  return false if !@gpgcheck.nil? && @gpgcheck < 0
@@ -222,13 +223,13 @@ module PulpRpmClient
222
223
  end
223
224
 
224
225
  # Custom attribute writer method with validation
225
- # @param [Object] retained_versions Value to be assigned
226
- def retained_versions=(retained_versions)
227
- if !retained_versions.nil? && retained_versions < 1
228
- fail ArgumentError, 'invalid value for "retained_versions", must be greater than or equal to 1.'
226
+ # @param [Object] retain_repo_versions Value to be assigned
227
+ def retain_repo_versions=(retain_repo_versions)
228
+ if !retain_repo_versions.nil? && retain_repo_versions < 1
229
+ fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
229
230
  end
230
231
 
231
- @retained_versions = retained_versions
232
+ @retain_repo_versions = retain_repo_versions
232
233
  end
233
234
 
234
235
  # Custom attribute writer method with validation
@@ -277,7 +278,7 @@ module PulpRpmClient
277
278
  pulp_labels == o.pulp_labels &&
278
279
  name == o.name &&
279
280
  description == o.description &&
280
- retained_versions == o.retained_versions &&
281
+ retain_repo_versions == o.retain_repo_versions &&
281
282
  remote == o.remote &&
282
283
  autopublish == o.autopublish &&
283
284
  metadata_signing_service == o.metadata_signing_service &&
@@ -298,7 +299,7 @@ module PulpRpmClient
298
299
  # Calculates hash code according to all attributes.
299
300
  # @return [Integer] Hash code
300
301
  def hash
301
- [pulp_labels, name, description, retained_versions, remote, autopublish, metadata_signing_service, retain_package_versions, metadata_checksum_type, package_checksum_type, gpgcheck, repo_gpgcheck, sqlite_metadata].hash
302
+ [pulp_labels, name, description, retain_repo_versions, remote, autopublish, metadata_signing_service, retain_package_versions, metadata_checksum_type, package_checksum_type, gpgcheck, repo_gpgcheck, sqlite_metadata].hash
302
303
  end
303
304
 
304
305
  # Builds the object from hash
@@ -50,22 +50,25 @@ module PulpRpmClient
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
@@ -93,6 +96,7 @@ module PulpRpmClient
93
96
  :'password' => :'password',
94
97
  :'pulp_labels' => :'pulp_labels',
95
98
  :'download_concurrency' => :'download_concurrency',
99
+ :'max_retries' => :'max_retries',
96
100
  :'policy' => :'policy',
97
101
  :'total_timeout' => :'total_timeout',
98
102
  :'connect_timeout' => :'connect_timeout',
@@ -120,6 +124,7 @@ module PulpRpmClient
120
124
  :'password' => :'String',
121
125
  :'pulp_labels' => :'Object',
122
126
  :'download_concurrency' => :'Integer',
127
+ :'max_retries' => :'Integer',
123
128
  :'policy' => :'PolicyEnum',
124
129
  :'total_timeout' => :'Float',
125
130
  :'connect_timeout' => :'Float',
@@ -140,6 +145,8 @@ module PulpRpmClient
140
145
  :'proxy_url',
141
146
  :'proxy_username',
142
147
  :'proxy_password',
148
+ :'download_concurrency',
149
+ :'max_retries',
143
150
  :'total_timeout',
144
151
  :'connect_timeout',
145
152
  :'sock_connect_timeout',
@@ -216,6 +223,10 @@ module PulpRpmClient
216
223
  self.download_concurrency = attributes[:'download_concurrency']
217
224
  end
218
225
 
226
+ if attributes.key?(:'max_retries')
227
+ self.max_retries = attributes[:'max_retries']
228
+ end
229
+
219
230
  if attributes.key?(:'policy')
220
231
  self.policy = attributes[:'policy']
221
232
  end
@@ -357,6 +368,7 @@ module PulpRpmClient
357
368
  password == o.password &&
358
369
  pulp_labels == o.pulp_labels &&
359
370
  download_concurrency == o.download_concurrency &&
371
+ max_retries == o.max_retries &&
360
372
  policy == o.policy &&
361
373
  total_timeout == o.total_timeout &&
362
374
  connect_timeout == o.connect_timeout &&
@@ -376,7 +388,7 @@ module PulpRpmClient
376
388
  # Calculates hash code according to all attributes.
377
389
  # @return [Integer] Hash code
378
390
  def hash
379
- [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, uln_server_base_url].hash
391
+ [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, uln_server_base_url].hash
380
392
  end
381
393
 
382
394
  # Builds the object from hash
@@ -50,22 +50,25 @@ module PulpRpmClient
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
@@ -93,6 +96,7 @@ module PulpRpmClient
93
96
  :'password' => :'password',
94
97
  :'pulp_labels' => :'pulp_labels',
95
98
  :'download_concurrency' => :'download_concurrency',
99
+ :'max_retries' => :'max_retries',
96
100
  :'policy' => :'policy',
97
101
  :'total_timeout' => :'total_timeout',
98
102
  :'connect_timeout' => :'connect_timeout',
@@ -120,6 +124,7 @@ module PulpRpmClient
120
124
  :'password' => :'String',
121
125
  :'pulp_labels' => :'Object',
122
126
  :'download_concurrency' => :'Integer',
127
+ :'max_retries' => :'Integer',
123
128
  :'policy' => :'PolicyEnum',
124
129
  :'total_timeout' => :'Float',
125
130
  :'connect_timeout' => :'Float',
@@ -142,6 +147,8 @@ module PulpRpmClient
142
147
  :'proxy_password',
143
148
  :'username',
144
149
  :'password',
150
+ :'download_concurrency',
151
+ :'max_retries',
145
152
  :'total_timeout',
146
153
  :'connect_timeout',
147
154
  :'sock_connect_timeout',
@@ -218,6 +225,10 @@ module PulpRpmClient
218
225
  self.download_concurrency = attributes[:'download_concurrency']
219
226
  end
220
227
 
228
+ if attributes.key?(:'max_retries')
229
+ self.max_retries = attributes[:'max_retries']
230
+ end
231
+
221
232
  if attributes.key?(:'policy')
222
233
  self.policy = attributes[:'policy']
223
234
  end
@@ -369,6 +380,7 @@ module PulpRpmClient
369
380
  password == o.password &&
370
381
  pulp_labels == o.pulp_labels &&
371
382
  download_concurrency == o.download_concurrency &&
383
+ max_retries == o.max_retries &&
372
384
  policy == o.policy &&
373
385
  total_timeout == o.total_timeout &&
374
386
  connect_timeout == o.connect_timeout &&
@@ -388,7 +400,7 @@ module PulpRpmClient
388
400
  # Calculates hash code according to all attributes.
389
401
  # @return [Integer] Hash code
390
402
  def hash
391
- [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, sles_auth_token].hash
403
+ [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, sles_auth_token].hash
392
404
  end
393
405
 
394
406
  # Builds the object from hash
@@ -43,22 +43,25 @@ module PulpRpmClient
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
@@ -84,6 +87,7 @@ module PulpRpmClient
84
87
  :'pulp_labels' => :'pulp_labels',
85
88
  :'pulp_last_updated' => :'pulp_last_updated',
86
89
  :'download_concurrency' => :'download_concurrency',
90
+ :'max_retries' => :'max_retries',
87
91
  :'policy' => :'policy',
88
92
  :'total_timeout' => :'total_timeout',
89
93
  :'connect_timeout' => :'connect_timeout',
@@ -109,6 +113,7 @@ module PulpRpmClient
109
113
  :'pulp_labels' => :'Object',
110
114
  :'pulp_last_updated' => :'DateTime',
111
115
  :'download_concurrency' => :'Integer',
116
+ :'max_retries' => :'Integer',
112
117
  :'policy' => :'PolicyEnum',
113
118
  :'total_timeout' => :'Float',
114
119
  :'connect_timeout' => :'Float',
@@ -126,6 +131,8 @@ module PulpRpmClient
126
131
  :'ca_cert',
127
132
  :'client_cert',
128
133
  :'proxy_url',
134
+ :'download_concurrency',
135
+ :'max_retries',
129
136
  :'total_timeout',
130
137
  :'connect_timeout',
131
138
  :'sock_connect_timeout',
@@ -194,6 +201,10 @@ module PulpRpmClient
194
201
  self.download_concurrency = attributes[:'download_concurrency']
195
202
  end
196
203
 
204
+ if attributes.key?(:'max_retries')
205
+ self.max_retries = attributes[:'max_retries']
206
+ end
207
+
197
208
  if attributes.key?(:'policy')
198
209
  self.policy = attributes[:'policy']
199
210
  end
@@ -343,6 +354,7 @@ module PulpRpmClient
343
354
  pulp_labels == o.pulp_labels &&
344
355
  pulp_last_updated == o.pulp_last_updated &&
345
356
  download_concurrency == o.download_concurrency &&
357
+ max_retries == o.max_retries &&
346
358
  policy == o.policy &&
347
359
  total_timeout == o.total_timeout &&
348
360
  connect_timeout == o.connect_timeout &&
@@ -362,7 +374,7 @@ module PulpRpmClient
362
374
  # Calculates hash code according to all attributes.
363
375
  # @return [Integer] Hash code
364
376
  def hash
365
- [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, sles_auth_token].hash
377
+ [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, sles_auth_token].hash
366
378
  end
367
379
 
368
380
  # Builds the object from hash