pulp_deb_client 3.8.1 → 3.8.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.
Files changed (93) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +6 -4
  3. data/docs/ContentGenericContentsApi.md +9 -7
  4. data/docs/ContentInstallerFileIndicesApi.md +6 -6
  5. data/docs/ContentInstallerPackagesApi.md +9 -7
  6. data/docs/ContentPackageIndicesApi.md +6 -6
  7. data/docs/ContentPackageReleaseComponentsApi.md +10 -10
  8. data/docs/ContentPackagesApi.md +8 -6
  9. data/docs/ContentReleaseArchitecturesApi.md +6 -6
  10. data/docs/ContentReleaseComponentsApi.md +6 -6
  11. data/docs/ContentReleaseFilesApi.md +6 -6
  12. data/docs/ContentReleasesApi.md +6 -6
  13. data/docs/ContentSourceIndicesApi.md +6 -6
  14. data/docs/ContentSourcePackagesApi.md +6 -6
  15. data/docs/ContentSourceReleaseComponentsApi.md +10 -10
  16. data/docs/DebAptDistribution.md +2 -0
  17. data/docs/DebAptDistributionResponse.md +4 -0
  18. data/docs/DebAptRemote.md +6 -6
  19. data/docs/DebAptRemoteResponse.md +8 -8
  20. data/docs/DebAptRepository.md +2 -0
  21. data/docs/DebAptRepositoryResponse.md +2 -0
  22. data/docs/DistributionsAptApi.md +4 -4
  23. data/docs/PatcheddebAptDistribution.md +2 -0
  24. data/docs/PatcheddebAptRemote.md +6 -6
  25. data/docs/PatcheddebAptRepository.md +2 -0
  26. data/docs/PublicationsAptApi.md +2 -2
  27. data/docs/PublicationsVerbatimApi.md +2 -2
  28. data/docs/RemoteNetworkConfig.md +50 -0
  29. data/docs/RemoteNetworkConfigResponse.md +40 -0
  30. data/docs/RepositoriesAptApi.md +20 -4
  31. data/lib/pulp_deb_client/api/content_generic_contents_api.rb +9 -6
  32. data/lib/pulp_deb_client/api/content_installer_file_indices_api.rb +6 -6
  33. data/lib/pulp_deb_client/api/content_installer_packages_api.rb +9 -6
  34. data/lib/pulp_deb_client/api/content_package_indices_api.rb +6 -6
  35. data/lib/pulp_deb_client/api/content_package_release_components_api.rb +10 -10
  36. data/lib/pulp_deb_client/api/content_packages_api.rb +9 -6
  37. data/lib/pulp_deb_client/api/content_release_architectures_api.rb +6 -6
  38. data/lib/pulp_deb_client/api/content_release_components_api.rb +6 -6
  39. data/lib/pulp_deb_client/api/content_release_files_api.rb +6 -6
  40. data/lib/pulp_deb_client/api/content_releases_api.rb +6 -6
  41. data/lib/pulp_deb_client/api/content_source_indices_api.rb +6 -6
  42. data/lib/pulp_deb_client/api/content_source_packages_api.rb +6 -6
  43. data/lib/pulp_deb_client/api/content_source_release_components_api.rb +10 -10
  44. data/lib/pulp_deb_client/api/distributions_apt_api.rb +4 -4
  45. data/lib/pulp_deb_client/api/publications_apt_api.rb +2 -2
  46. data/lib/pulp_deb_client/api/publications_verbatim_api.rb +2 -2
  47. data/lib/pulp_deb_client/api/repositories_apt_api.rb +29 -5
  48. data/lib/pulp_deb_client/models/deb_apt_distribution.rb +12 -1
  49. data/lib/pulp_deb_client/models/deb_apt_distribution_response.rb +22 -1
  50. data/lib/pulp_deb_client/models/deb_apt_remote.rb +48 -33
  51. data/lib/pulp_deb_client/models/deb_apt_remote_response.rb +60 -45
  52. data/lib/pulp_deb_client/models/deb_apt_repository.rb +42 -1
  53. data/lib/pulp_deb_client/models/deb_apt_repository_response.rb +42 -1
  54. data/lib/pulp_deb_client/models/patcheddeb_apt_distribution.rb +12 -1
  55. data/lib/pulp_deb_client/models/patcheddeb_apt_remote.rb +48 -33
  56. data/lib/pulp_deb_client/models/patcheddeb_apt_repository.rb +42 -1
  57. data/lib/pulp_deb_client/models/remote_network_config.rb +588 -0
  58. data/lib/pulp_deb_client/models/remote_network_config_response.rb +413 -0
  59. data/lib/pulp_deb_client/models/set_label.rb +0 -11
  60. data/lib/pulp_deb_client/models/set_label_response.rb +0 -21
  61. data/lib/pulp_deb_client/models/unset_label.rb +0 -11
  62. data/lib/pulp_deb_client/models/unset_label_response.rb +0 -21
  63. data/lib/pulp_deb_client/version.rb +1 -1
  64. data/lib/pulp_deb_client.rb +2 -0
  65. data/spec/api/content_generic_contents_api_spec.rb +4 -3
  66. data/spec/api/content_installer_file_indices_api_spec.rb +3 -3
  67. data/spec/api/content_installer_packages_api_spec.rb +4 -3
  68. data/spec/api/content_package_indices_api_spec.rb +3 -3
  69. data/spec/api/content_package_release_components_api_spec.rb +5 -5
  70. data/spec/api/content_packages_api_spec.rb +4 -3
  71. data/spec/api/content_release_architectures_api_spec.rb +3 -3
  72. data/spec/api/content_release_components_api_spec.rb +3 -3
  73. data/spec/api/content_release_files_api_spec.rb +3 -3
  74. data/spec/api/content_releases_api_spec.rb +3 -3
  75. data/spec/api/content_source_indices_api_spec.rb +3 -3
  76. data/spec/api/content_source_packages_api_spec.rb +3 -3
  77. data/spec/api/content_source_release_components_api_spec.rb +5 -5
  78. data/spec/api/distributions_apt_api_spec.rb +2 -2
  79. data/spec/api/publications_apt_api_spec.rb +1 -1
  80. data/spec/api/publications_verbatim_api_spec.rb +1 -1
  81. data/spec/api/repositories_apt_api_spec.rb +10 -2
  82. data/spec/models/deb_apt_distribution_response_spec.rb +12 -0
  83. data/spec/models/deb_apt_distribution_spec.rb +6 -0
  84. data/spec/models/deb_apt_remote_response_spec.rb +10 -10
  85. data/spec/models/deb_apt_remote_spec.rb +17 -17
  86. data/spec/models/deb_apt_repository_response_spec.rb +6 -0
  87. data/spec/models/deb_apt_repository_spec.rb +6 -0
  88. data/spec/models/patcheddeb_apt_distribution_spec.rb +6 -0
  89. data/spec/models/patcheddeb_apt_remote_spec.rb +17 -17
  90. data/spec/models/patcheddeb_apt_repository_spec.rb +6 -0
  91. data/spec/models/remote_network_config_response_spec.rb +102 -0
  92. data/spec/models/remote_network_config_spec.rb +132 -0
  93. metadata +88 -80
@@ -22,6 +22,11 @@ module PulpDebClient
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'. 'immediate' 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 PulpDebClient
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'. 'immediate' 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 PulpDebClient
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
 
@@ -129,6 +129,8 @@ module PulpDebClient
129
129
  {
130
130
  :'name' => :'name',
131
131
  :'url' => :'url',
132
+ :'pulp_labels' => :'pulp_labels',
133
+ :'policy' => :'policy',
132
134
  :'ca_cert' => :'ca_cert',
133
135
  :'client_cert' => :'client_cert',
134
136
  :'client_key' => :'client_key',
@@ -138,15 +140,13 @@ module PulpDebClient
138
140
  :'proxy_password' => :'proxy_password',
139
141
  :'username' => :'username',
140
142
  :'password' => :'password',
141
- :'pulp_labels' => :'pulp_labels',
142
- :'download_concurrency' => :'download_concurrency',
143
143
  :'max_retries' => :'max_retries',
144
- :'policy' => :'policy',
145
144
  :'total_timeout' => :'total_timeout',
146
145
  :'connect_timeout' => :'connect_timeout',
147
146
  :'sock_connect_timeout' => :'sock_connect_timeout',
148
147
  :'sock_read_timeout' => :'sock_read_timeout',
149
148
  :'headers' => :'headers',
149
+ :'download_concurrency' => :'download_concurrency',
150
150
  :'rate_limit' => :'rate_limit',
151
151
  :'distributions' => :'distributions',
152
152
  :'components' => :'components',
@@ -169,6 +169,8 @@ module PulpDebClient
169
169
  {
170
170
  :'name' => :'String',
171
171
  :'url' => :'String',
172
+ :'pulp_labels' => :'Hash<String, String>',
173
+ :'policy' => :'PolicyEnum',
172
174
  :'ca_cert' => :'String',
173
175
  :'client_cert' => :'String',
174
176
  :'client_key' => :'String',
@@ -178,15 +180,13 @@ module PulpDebClient
178
180
  :'proxy_password' => :'String',
179
181
  :'username' => :'String',
180
182
  :'password' => :'String',
181
- :'pulp_labels' => :'Hash<String, String>',
182
- :'download_concurrency' => :'Integer',
183
183
  :'max_retries' => :'Integer',
184
- :'policy' => :'PolicyEnum',
185
184
  :'total_timeout' => :'Float',
186
185
  :'connect_timeout' => :'Float',
187
186
  :'sock_connect_timeout' => :'Float',
188
187
  :'sock_read_timeout' => :'Float',
189
188
  :'headers' => :'Array<Object>',
189
+ :'download_concurrency' => :'Integer',
190
190
  :'rate_limit' => :'Integer',
191
191
  :'distributions' => :'String',
192
192
  :'components' => :'String',
@@ -210,12 +210,12 @@ module PulpDebClient
210
210
  :'proxy_password',
211
211
  :'username',
212
212
  :'password',
213
- :'download_concurrency',
214
213
  :'max_retries',
215
214
  :'total_timeout',
216
215
  :'connect_timeout',
217
216
  :'sock_connect_timeout',
218
217
  :'sock_read_timeout',
218
+ :'download_concurrency',
219
219
  :'rate_limit',
220
220
  :'components',
221
221
  :'architectures',
@@ -250,6 +250,16 @@ module PulpDebClient
250
250
  self.url = nil
251
251
  end
252
252
 
253
+ if attributes.key?(:'pulp_labels')
254
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
255
+ self.pulp_labels = value
256
+ end
257
+ end
258
+
259
+ if attributes.key?(:'policy')
260
+ self.policy = attributes[:'policy']
261
+ end
262
+
253
263
  if attributes.key?(:'ca_cert')
254
264
  self.ca_cert = attributes[:'ca_cert']
255
265
  end
@@ -286,24 +296,10 @@ module PulpDebClient
286
296
  self.password = attributes[:'password']
287
297
  end
288
298
 
289
- if attributes.key?(:'pulp_labels')
290
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
291
- self.pulp_labels = value
292
- end
293
- end
294
-
295
- if attributes.key?(:'download_concurrency')
296
- self.download_concurrency = attributes[:'download_concurrency']
297
- end
298
-
299
299
  if attributes.key?(:'max_retries')
300
300
  self.max_retries = attributes[:'max_retries']
301
301
  end
302
302
 
303
- if attributes.key?(:'policy')
304
- self.policy = attributes[:'policy']
305
- end
306
-
307
303
  if attributes.key?(:'total_timeout')
308
304
  self.total_timeout = attributes[:'total_timeout']
309
305
  end
@@ -326,6 +322,10 @@ module PulpDebClient
326
322
  end
327
323
  end
328
324
 
325
+ if attributes.key?(:'download_concurrency')
326
+ self.download_concurrency = attributes[:'download_concurrency']
327
+ end
328
+
329
329
  if attributes.key?(:'rate_limit')
330
330
  self.rate_limit = attributes[:'rate_limit']
331
331
  end
@@ -434,6 +434,10 @@ module PulpDebClient
434
434
  invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
435
435
  end
436
436
 
437
+ if !@download_concurrency.nil? && @download_concurrency < 1
438
+ invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
439
+ end
440
+
437
441
  if @distributions.nil?
438
442
  invalid_properties.push('invalid value for "distributions", distributions cannot be nil.')
439
443
  end
@@ -477,6 +481,7 @@ module PulpDebClient
477
481
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
478
482
  return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
479
483
  return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
484
+ return false if !@download_concurrency.nil? && @download_concurrency < 1
480
485
  return false if @distributions.nil?
481
486
  return false if @distributions.to_s.length < 1
482
487
  return false if !@components.nil? && @components.to_s.length < 1
@@ -633,6 +638,16 @@ module PulpDebClient
633
638
  @sock_read_timeout = sock_read_timeout
634
639
  end
635
640
 
641
+ # Custom attribute writer method with validation
642
+ # @param [Object] download_concurrency Value to be assigned
643
+ def download_concurrency=(download_concurrency)
644
+ if !download_concurrency.nil? && download_concurrency < 1
645
+ fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
646
+ end
647
+
648
+ @download_concurrency = download_concurrency
649
+ end
650
+
636
651
  # Custom attribute writer method with validation
637
652
  # @param [Object] distributions Value to be assigned
638
653
  def distributions=(distributions)
@@ -684,6 +699,8 @@ module PulpDebClient
684
699
  self.class == o.class &&
685
700
  name == o.name &&
686
701
  url == o.url &&
702
+ pulp_labels == o.pulp_labels &&
703
+ policy == o.policy &&
687
704
  ca_cert == o.ca_cert &&
688
705
  client_cert == o.client_cert &&
689
706
  client_key == o.client_key &&
@@ -693,15 +710,13 @@ module PulpDebClient
693
710
  proxy_password == o.proxy_password &&
694
711
  username == o.username &&
695
712
  password == o.password &&
696
- pulp_labels == o.pulp_labels &&
697
- download_concurrency == o.download_concurrency &&
698
713
  max_retries == o.max_retries &&
699
- policy == o.policy &&
700
714
  total_timeout == o.total_timeout &&
701
715
  connect_timeout == o.connect_timeout &&
702
716
  sock_connect_timeout == o.sock_connect_timeout &&
703
717
  sock_read_timeout == o.sock_read_timeout &&
704
718
  headers == o.headers &&
719
+ download_concurrency == o.download_concurrency &&
705
720
  rate_limit == o.rate_limit &&
706
721
  distributions == o.distributions &&
707
722
  components == o.components &&
@@ -722,7 +737,7 @@ module PulpDebClient
722
737
  # Calculates hash code according to all attributes.
723
738
  # @return [Integer] Hash code
724
739
  def hash
725
- [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, distributions, components, architectures, sync_sources, sync_udebs, sync_installer, gpgkey, ignore_missing_package_indices].hash
740
+ [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, distributions, components, architectures, sync_sources, sync_udebs, sync_installer, gpgkey, ignore_missing_package_indices].hash
726
741
  end
727
742
 
728
743
  # Builds the object from hash
@@ -33,6 +33,14 @@ module PulpDebClient
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'. 'immediate' 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 PulpDebClient
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'. 'immediate' 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 PulpDebClient
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
  # Whitespace separated list of distributions to sync. The distribution is the path from the repository root to the \"Release\" file you want to access. This is often, but not always, equal to either the codename or the suite of the release you want to sync. If the repository you are trying to sync uses \"flat repository format\", the distribution must end with a \"/\". Based on \"/etc/apt/sources.list\" syntax.
81
81
  attr_accessor :distributions
82
82
 
@@ -132,21 +132,21 @@ module PulpDebClient
132
132
  :'pulp_last_updated' => :'pulp_last_updated',
133
133
  :'name' => :'name',
134
134
  :'url' => :'url',
135
+ :'pulp_labels' => :'pulp_labels',
136
+ :'policy' => :'policy',
137
+ :'hidden_fields' => :'hidden_fields',
135
138
  :'ca_cert' => :'ca_cert',
136
139
  :'client_cert' => :'client_cert',
137
140
  :'tls_validation' => :'tls_validation',
138
141
  :'proxy_url' => :'proxy_url',
139
- :'pulp_labels' => :'pulp_labels',
140
- :'download_concurrency' => :'download_concurrency',
141
142
  :'max_retries' => :'max_retries',
142
- :'policy' => :'policy',
143
143
  :'total_timeout' => :'total_timeout',
144
144
  :'connect_timeout' => :'connect_timeout',
145
145
  :'sock_connect_timeout' => :'sock_connect_timeout',
146
146
  :'sock_read_timeout' => :'sock_read_timeout',
147
147
  :'headers' => :'headers',
148
+ :'download_concurrency' => :'download_concurrency',
148
149
  :'rate_limit' => :'rate_limit',
149
- :'hidden_fields' => :'hidden_fields',
150
150
  :'distributions' => :'distributions',
151
151
  :'components' => :'components',
152
152
  :'architectures' => :'architectures',
@@ -172,21 +172,21 @@ module PulpDebClient
172
172
  :'pulp_last_updated' => :'Time',
173
173
  :'name' => :'String',
174
174
  :'url' => :'String',
175
+ :'pulp_labels' => :'Hash<String, String>',
176
+ :'policy' => :'PolicyEnum',
177
+ :'hidden_fields' => :'Array<DebAptRemoteResponseHiddenFieldsInner>',
175
178
  :'ca_cert' => :'String',
176
179
  :'client_cert' => :'String',
177
180
  :'tls_validation' => :'Boolean',
178
181
  :'proxy_url' => :'String',
179
- :'pulp_labels' => :'Hash<String, String>',
180
- :'download_concurrency' => :'Integer',
181
182
  :'max_retries' => :'Integer',
182
- :'policy' => :'PolicyEnum',
183
183
  :'total_timeout' => :'Float',
184
184
  :'connect_timeout' => :'Float',
185
185
  :'sock_connect_timeout' => :'Float',
186
186
  :'sock_read_timeout' => :'Float',
187
187
  :'headers' => :'Array<Object>',
188
+ :'download_concurrency' => :'Integer',
188
189
  :'rate_limit' => :'Integer',
189
- :'hidden_fields' => :'Array<DebAptRemoteResponseHiddenFieldsInner>',
190
190
  :'distributions' => :'String',
191
191
  :'components' => :'String',
192
192
  :'architectures' => :'String',
@@ -204,12 +204,12 @@ module PulpDebClient
204
204
  :'ca_cert',
205
205
  :'client_cert',
206
206
  :'proxy_url',
207
- :'download_concurrency',
208
207
  :'max_retries',
209
208
  :'total_timeout',
210
209
  :'connect_timeout',
211
210
  :'sock_connect_timeout',
212
211
  :'sock_read_timeout',
212
+ :'download_concurrency',
213
213
  :'rate_limit',
214
214
  :'components',
215
215
  :'architectures',
@@ -260,6 +260,22 @@ module PulpDebClient
260
260
  self.url = nil
261
261
  end
262
262
 
263
+ if attributes.key?(:'pulp_labels')
264
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
265
+ self.pulp_labels = value
266
+ end
267
+ end
268
+
269
+ if attributes.key?(:'policy')
270
+ self.policy = attributes[:'policy']
271
+ end
272
+
273
+ if attributes.key?(:'hidden_fields')
274
+ if (value = attributes[:'hidden_fields']).is_a?(Array)
275
+ self.hidden_fields = value
276
+ end
277
+ end
278
+
263
279
  if attributes.key?(:'ca_cert')
264
280
  self.ca_cert = attributes[:'ca_cert']
265
281
  end
@@ -276,24 +292,10 @@ module PulpDebClient
276
292
  self.proxy_url = attributes[:'proxy_url']
277
293
  end
278
294
 
279
- if attributes.key?(:'pulp_labels')
280
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
281
- self.pulp_labels = value
282
- end
283
- end
284
-
285
- if attributes.key?(:'download_concurrency')
286
- self.download_concurrency = attributes[:'download_concurrency']
287
- end
288
-
289
295
  if attributes.key?(:'max_retries')
290
296
  self.max_retries = attributes[:'max_retries']
291
297
  end
292
298
 
293
- if attributes.key?(:'policy')
294
- self.policy = attributes[:'policy']
295
- end
296
-
297
299
  if attributes.key?(:'total_timeout')
298
300
  self.total_timeout = attributes[:'total_timeout']
299
301
  end
@@ -316,14 +318,12 @@ module PulpDebClient
316
318
  end
317
319
  end
318
320
 
319
- if attributes.key?(:'rate_limit')
320
- self.rate_limit = attributes[:'rate_limit']
321
+ if attributes.key?(:'download_concurrency')
322
+ self.download_concurrency = attributes[:'download_concurrency']
321
323
  end
322
324
 
323
- if attributes.key?(:'hidden_fields')
324
- if (value = attributes[:'hidden_fields']).is_a?(Array)
325
- self.hidden_fields = value
326
- end
325
+ if attributes.key?(:'rate_limit')
326
+ self.rate_limit = attributes[:'rate_limit']
327
327
  end
328
328
 
329
329
  if attributes.key?(:'distributions')
@@ -390,6 +390,10 @@ module PulpDebClient
390
390
  invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
391
391
  end
392
392
 
393
+ if !@download_concurrency.nil? && @download_concurrency < 1
394
+ invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
395
+ end
396
+
393
397
  if @distributions.nil?
394
398
  invalid_properties.push('invalid value for "distributions", distributions cannot be nil.')
395
399
  end
@@ -407,6 +411,7 @@ module PulpDebClient
407
411
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
408
412
  return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
409
413
  return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
414
+ return false if !@download_concurrency.nil? && @download_concurrency < 1
410
415
  return false if @distributions.nil?
411
416
  true
412
417
  end
@@ -451,6 +456,16 @@ module PulpDebClient
451
456
  @sock_read_timeout = sock_read_timeout
452
457
  end
453
458
 
459
+ # Custom attribute writer method with validation
460
+ # @param [Object] download_concurrency Value to be assigned
461
+ def download_concurrency=(download_concurrency)
462
+ if !download_concurrency.nil? && download_concurrency < 1
463
+ fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
464
+ end
465
+
466
+ @download_concurrency = download_concurrency
467
+ end
468
+
454
469
  # Checks equality by comparing each attribute.
455
470
  # @param [Object] Object to be compared
456
471
  def ==(o)
@@ -462,21 +477,21 @@ module PulpDebClient
462
477
  pulp_last_updated == o.pulp_last_updated &&
463
478
  name == o.name &&
464
479
  url == o.url &&
480
+ pulp_labels == o.pulp_labels &&
481
+ policy == o.policy &&
482
+ hidden_fields == o.hidden_fields &&
465
483
  ca_cert == o.ca_cert &&
466
484
  client_cert == o.client_cert &&
467
485
  tls_validation == o.tls_validation &&
468
486
  proxy_url == o.proxy_url &&
469
- pulp_labels == o.pulp_labels &&
470
- download_concurrency == o.download_concurrency &&
471
487
  max_retries == o.max_retries &&
472
- policy == o.policy &&
473
488
  total_timeout == o.total_timeout &&
474
489
  connect_timeout == o.connect_timeout &&
475
490
  sock_connect_timeout == o.sock_connect_timeout &&
476
491
  sock_read_timeout == o.sock_read_timeout &&
477
492
  headers == o.headers &&
493
+ download_concurrency == o.download_concurrency &&
478
494
  rate_limit == o.rate_limit &&
479
- hidden_fields == o.hidden_fields &&
480
495
  distributions == o.distributions &&
481
496
  components == o.components &&
482
497
  architectures == o.architectures &&
@@ -496,7 +511,7 @@ module PulpDebClient
496
511
  # Calculates hash code according to all attributes.
497
512
  # @return [Integer] Hash code
498
513
  def hash
499
- [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, distributions, components, architectures, sync_sources, sync_udebs, sync_installer, gpgkey, ignore_missing_package_indices].hash
514
+ [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, distributions, components, architectures, sync_sources, sync_udebs, sync_installer, gpgkey, ignore_missing_package_indices].hash
500
515
  end
501
516
 
502
517
  # Builds the object from hash
@@ -27,6 +27,9 @@ module PulpDebClient
27
27
  # Retain X versions of the repository. Default is null which retains all versions.
28
28
  attr_accessor :retain_repo_versions
29
29
 
30
+ # Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
31
+ attr_accessor :retain_checkpoints
32
+
30
33
  # An optional remote to use by default when syncing.
31
34
  attr_accessor :remote
32
35
 
@@ -49,6 +52,7 @@ module PulpDebClient
49
52
  :'name' => :'name',
50
53
  :'description' => :'description',
51
54
  :'retain_repo_versions' => :'retain_repo_versions',
55
+ :'retain_checkpoints' => :'retain_checkpoints',
52
56
  :'remote' => :'remote',
53
57
  :'autopublish' => :'autopublish',
54
58
  :'publish_upstream_release_fields' => :'publish_upstream_release_fields',
@@ -69,6 +73,7 @@ module PulpDebClient
69
73
  :'name' => :'String',
70
74
  :'description' => :'String',
71
75
  :'retain_repo_versions' => :'Integer',
76
+ :'retain_checkpoints' => :'Integer',
72
77
  :'remote' => :'String',
73
78
  :'autopublish' => :'Boolean',
74
79
  :'publish_upstream_release_fields' => :'Boolean',
@@ -82,6 +87,7 @@ module PulpDebClient
82
87
  Set.new([
83
88
  :'description',
84
89
  :'retain_repo_versions',
90
+ :'retain_checkpoints',
85
91
  :'remote',
86
92
  :'signing_service',
87
93
  ])
@@ -122,6 +128,10 @@ module PulpDebClient
122
128
  self.retain_repo_versions = attributes[:'retain_repo_versions']
123
129
  end
124
130
 
131
+ if attributes.key?(:'retain_checkpoints')
132
+ self.retain_checkpoints = attributes[:'retain_checkpoints']
133
+ end
134
+
125
135
  if attributes.key?(:'remote')
126
136
  self.remote = attributes[:'remote']
127
137
  end
@@ -164,6 +174,14 @@ module PulpDebClient
164
174
  invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
165
175
  end
166
176
 
177
+ if !@retain_repo_versions.nil? && @retain_repo_versions < 1
178
+ invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
179
+ end
180
+
181
+ if !@retain_checkpoints.nil? && @retain_checkpoints < 1
182
+ invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
183
+ end
184
+
167
185
  invalid_properties
168
186
  end
169
187
 
@@ -174,6 +192,8 @@ module PulpDebClient
174
192
  return false if @name.nil?
175
193
  return false if @name.to_s.length < 1
176
194
  return false if !@description.nil? && @description.to_s.length < 1
195
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
196
+ return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
177
197
  true
178
198
  end
179
199
 
@@ -201,6 +221,26 @@ module PulpDebClient
201
221
  @description = description
202
222
  end
203
223
 
224
+ # Custom attribute writer method with validation
225
+ # @param [Object] retain_repo_versions Value to be assigned
226
+ def retain_repo_versions=(retain_repo_versions)
227
+ if !retain_repo_versions.nil? && retain_repo_versions < 1
228
+ fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
229
+ end
230
+
231
+ @retain_repo_versions = retain_repo_versions
232
+ end
233
+
234
+ # Custom attribute writer method with validation
235
+ # @param [Object] retain_checkpoints Value to be assigned
236
+ def retain_checkpoints=(retain_checkpoints)
237
+ if !retain_checkpoints.nil? && retain_checkpoints < 1
238
+ fail ArgumentError, 'invalid value for "retain_checkpoints", must be greater than or equal to 1.'
239
+ end
240
+
241
+ @retain_checkpoints = retain_checkpoints
242
+ end
243
+
204
244
  # Checks equality by comparing each attribute.
205
245
  # @param [Object] Object to be compared
206
246
  def ==(o)
@@ -210,6 +250,7 @@ module PulpDebClient
210
250
  name == o.name &&
211
251
  description == o.description &&
212
252
  retain_repo_versions == o.retain_repo_versions &&
253
+ retain_checkpoints == o.retain_checkpoints &&
213
254
  remote == o.remote &&
214
255
  autopublish == o.autopublish &&
215
256
  publish_upstream_release_fields == o.publish_upstream_release_fields &&
@@ -226,7 +267,7 @@ module PulpDebClient
226
267
  # Calculates hash code according to all attributes.
227
268
  # @return [Integer] Hash code
228
269
  def hash
229
- [pulp_labels, name, description, retain_repo_versions, remote, autopublish, publish_upstream_release_fields, signing_service, signing_service_release_overrides].hash
270
+ [pulp_labels, name, description, retain_repo_versions, retain_checkpoints, remote, autopublish, publish_upstream_release_fields, signing_service, signing_service_release_overrides].hash
230
271
  end
231
272
 
232
273
  # Builds the object from hash