pulp_deb_client 2.9.1 → 2.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/ContentGenericContentsApi.md +10 -10
  4. data/docs/ContentInstallerFileIndicesApi.md +14 -14
  5. data/docs/ContentInstallerPackagesApi.md +40 -40
  6. data/docs/ContentPackageIndicesApi.md +14 -14
  7. data/docs/ContentPackageReleaseComponentsApi.md +10 -10
  8. data/docs/ContentPackagesApi.md +42 -42
  9. data/docs/ContentReleaseArchitecturesApi.md +10 -10
  10. data/docs/ContentReleaseComponentsApi.md +10 -10
  11. data/docs/ContentReleaseFilesApi.md +14 -14
  12. data/docs/ContentReleasesApi.md +12 -12
  13. data/docs/ContentSummary.md +3 -3
  14. data/docs/ContentSummaryResponse.md +3 -3
  15. data/docs/DebAptDistribution.md +4 -0
  16. data/docs/DebAptDistributionResponse.md +4 -0
  17. data/docs/DebAptRemote.md +11 -1
  18. data/docs/DebAptRemoteResponse.md +7 -7
  19. data/docs/DebAptRepository.md +5 -1
  20. data/docs/DebAptRepositoryResponse.md +4 -0
  21. data/docs/DistributionsAptApi.md +20 -12
  22. data/docs/PatcheddebAptDistribution.md +4 -0
  23. data/docs/PatcheddebAptRemote.md +11 -1
  24. data/docs/PatcheddebAptRepository.md +5 -1
  25. data/docs/PublicationsAptApi.md +18 -14
  26. data/docs/PublicationsVerbatimApi.md +18 -14
  27. data/docs/RemotesAptApi.md +24 -16
  28. data/docs/RepositoriesAptApi.md +12 -4
  29. data/docs/RepositoriesDebVersionsApi.md +28 -28
  30. data/docs/RepositoryVersionResponse.md +2 -0
  31. data/lib/pulp_deb_client/api/content_generic_contents_api.rb +10 -10
  32. data/lib/pulp_deb_client/api/content_installer_file_indices_api.rb +14 -14
  33. data/lib/pulp_deb_client/api/content_installer_packages_api.rb +43 -43
  34. data/lib/pulp_deb_client/api/content_package_indices_api.rb +14 -14
  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 +45 -45
  37. data/lib/pulp_deb_client/api/content_release_architectures_api.rb +10 -10
  38. data/lib/pulp_deb_client/api/content_release_components_api.rb +10 -10
  39. data/lib/pulp_deb_client/api/content_release_files_api.rb +14 -14
  40. data/lib/pulp_deb_client/api/content_releases_api.rb +12 -12
  41. data/lib/pulp_deb_client/api/distributions_apt_api.rb +26 -14
  42. data/lib/pulp_deb_client/api/publications_apt_api.rb +21 -15
  43. data/lib/pulp_deb_client/api/publications_verbatim_api.rb +21 -15
  44. data/lib/pulp_deb_client/api/remotes_apt_api.rb +30 -18
  45. data/lib/pulp_deb_client/api/repositories_apt_api.rb +17 -5
  46. data/lib/pulp_deb_client/api/repositories_deb_versions_api.rb +30 -30
  47. data/lib/pulp_deb_client/models/content_summary.rb +12 -6
  48. data/lib/pulp_deb_client/models/content_summary_response.rb +12 -6
  49. data/lib/pulp_deb_client/models/deb_apt_distribution.rb +21 -1
  50. data/lib/pulp_deb_client/models/deb_apt_distribution_response.rb +21 -1
  51. data/lib/pulp_deb_client/models/deb_apt_remote.rb +56 -2
  52. data/lib/pulp_deb_client/models/deb_apt_remote_response.rb +31 -32
  53. data/lib/pulp_deb_client/models/deb_apt_repository.rb +36 -1
  54. data/lib/pulp_deb_client/models/deb_apt_repository_response.rb +36 -1
  55. data/lib/pulp_deb_client/models/patcheddeb_apt_distribution.rb +21 -1
  56. data/lib/pulp_deb_client/models/patcheddeb_apt_remote.rb +56 -2
  57. data/lib/pulp_deb_client/models/patcheddeb_apt_repository.rb +36 -1
  58. data/lib/pulp_deb_client/models/repository_version_response.rb +10 -1
  59. data/lib/pulp_deb_client/version.rb +1 -1
  60. data/spec/api/content_generic_contents_api_spec.rb +5 -5
  61. data/spec/api/content_installer_file_indices_api_spec.rb +7 -7
  62. data/spec/api/content_installer_packages_api_spec.rb +20 -20
  63. data/spec/api/content_package_indices_api_spec.rb +7 -7
  64. data/spec/api/content_package_release_components_api_spec.rb +5 -5
  65. data/spec/api/content_packages_api_spec.rb +21 -21
  66. data/spec/api/content_release_architectures_api_spec.rb +5 -5
  67. data/spec/api/content_release_components_api_spec.rb +5 -5
  68. data/spec/api/content_release_files_api_spec.rb +7 -7
  69. data/spec/api/content_releases_api_spec.rb +6 -6
  70. data/spec/api/distributions_apt_api_spec.rb +10 -6
  71. data/spec/api/publications_apt_api_spec.rb +9 -7
  72. data/spec/api/publications_verbatim_api_spec.rb +9 -7
  73. data/spec/api/remotes_apt_api_spec.rb +12 -8
  74. data/spec/api/repositories_apt_api_spec.rb +6 -2
  75. data/spec/api/repositories_deb_versions_api_spec.rb +14 -14
  76. data/spec/models/deb_apt_distribution_response_spec.rb +12 -0
  77. data/spec/models/deb_apt_distribution_spec.rb +12 -0
  78. data/spec/models/deb_apt_remote_response_spec.rb +12 -12
  79. data/spec/models/deb_apt_remote_spec.rb +30 -0
  80. data/spec/models/deb_apt_repository_response_spec.rb +12 -0
  81. data/spec/models/deb_apt_repository_spec.rb +12 -0
  82. data/spec/models/patcheddeb_apt_distribution_spec.rb +12 -0
  83. data/spec/models/patcheddeb_apt_remote_spec.rb +30 -0
  84. data/spec/models/patcheddeb_apt_repository_spec.rb +12 -0
  85. data/spec/models/repository_version_response_spec.rb +6 -0
  86. metadata +56 -56
@@ -29,9 +29,14 @@ module PulpDebClient
29
29
  # An optional content-guard.
30
30
  attr_accessor :content_guard
31
31
 
32
+ attr_accessor :pulp_labels
33
+
32
34
  # A unique name. Ex, `rawhide` and `stable`.
33
35
  attr_accessor :name
34
36
 
37
+ # The latest RepositoryVersion for this Repository will be served.
38
+ attr_accessor :repository
39
+
35
40
  # Publication to be served
36
41
  attr_accessor :publication
37
42
 
@@ -43,7 +48,9 @@ module PulpDebClient
43
48
  :'base_path' => :'base_path',
44
49
  :'base_url' => :'base_url',
45
50
  :'content_guard' => :'content_guard',
51
+ :'pulp_labels' => :'pulp_labels',
46
52
  :'name' => :'name',
53
+ :'repository' => :'repository',
47
54
  :'publication' => :'publication'
48
55
  }
49
56
  end
@@ -56,7 +63,9 @@ module PulpDebClient
56
63
  :'base_path' => :'String',
57
64
  :'base_url' => :'String',
58
65
  :'content_guard' => :'String',
66
+ :'pulp_labels' => :'Object',
59
67
  :'name' => :'String',
68
+ :'repository' => :'String',
60
69
  :'publication' => :'String'
61
70
  }
62
71
  end
@@ -65,6 +74,7 @@ module PulpDebClient
65
74
  def self.openapi_nullable
66
75
  Set.new([
67
76
  :'content_guard',
77
+ :'repository',
68
78
  :'publication'
69
79
  ])
70
80
  end
@@ -104,10 +114,18 @@ module PulpDebClient
104
114
  self.content_guard = attributes[:'content_guard']
105
115
  end
106
116
 
117
+ if attributes.key?(:'pulp_labels')
118
+ self.pulp_labels = attributes[:'pulp_labels']
119
+ end
120
+
107
121
  if attributes.key?(:'name')
108
122
  self.name = attributes[:'name']
109
123
  end
110
124
 
125
+ if attributes.key?(:'repository')
126
+ self.repository = attributes[:'repository']
127
+ end
128
+
111
129
  if attributes.key?(:'publication')
112
130
  self.publication = attributes[:'publication']
113
131
  end
@@ -146,7 +164,9 @@ module PulpDebClient
146
164
  base_path == o.base_path &&
147
165
  base_url == o.base_url &&
148
166
  content_guard == o.content_guard &&
167
+ pulp_labels == o.pulp_labels &&
149
168
  name == o.name &&
169
+ repository == o.repository &&
150
170
  publication == o.publication
151
171
  end
152
172
 
@@ -159,7 +179,7 @@ module PulpDebClient
159
179
  # Calculates hash code according to all attributes.
160
180
  # @return [Integer] Hash code
161
181
  def hash
162
- [pulp_href, pulp_created, base_path, base_url, content_guard, name, publication].hash
182
+ [pulp_href, pulp_created, base_path, base_url, content_guard, pulp_labels, name, repository, publication].hash
163
183
  end
164
184
 
165
185
  # Builds the object from hash
@@ -33,15 +33,23 @@ module PulpDebClient
33
33
  # If True, TLS peer validation must be performed.
34
34
  attr_accessor :tls_validation
35
35
 
36
- # The proxy URL. Format: scheme://user:password@host:port
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
 
42
48
  # The password to be used for authentication when syncing.
43
49
  attr_accessor :password
44
50
 
51
+ attr_accessor :pulp_labels
52
+
45
53
  # Total number of simultaneous connections.
46
54
  attr_accessor :download_concurrency
47
55
 
@@ -60,6 +68,12 @@ module PulpDebClient
60
68
  # aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
61
69
  attr_accessor :sock_read_timeout
62
70
 
71
+ # Headers for aiohttp.Clientsession
72
+ attr_accessor :headers
73
+
74
+ # Limits total download rate in requests per second
75
+ attr_accessor :rate_limit
76
+
63
77
  # 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.
64
78
  attr_accessor :distributions
65
79
 
@@ -94,14 +108,19 @@ module PulpDebClient
94
108
  :'client_key' => :'client_key',
95
109
  :'tls_validation' => :'tls_validation',
96
110
  :'proxy_url' => :'proxy_url',
111
+ :'proxy_username' => :'proxy_username',
112
+ :'proxy_password' => :'proxy_password',
97
113
  :'username' => :'username',
98
114
  :'password' => :'password',
115
+ :'pulp_labels' => :'pulp_labels',
99
116
  :'download_concurrency' => :'download_concurrency',
100
117
  :'policy' => :'policy',
101
118
  :'total_timeout' => :'total_timeout',
102
119
  :'connect_timeout' => :'connect_timeout',
103
120
  :'sock_connect_timeout' => :'sock_connect_timeout',
104
121
  :'sock_read_timeout' => :'sock_read_timeout',
122
+ :'headers' => :'headers',
123
+ :'rate_limit' => :'rate_limit',
105
124
  :'distributions' => :'distributions',
106
125
  :'components' => :'components',
107
126
  :'architectures' => :'architectures',
@@ -123,14 +142,19 @@ module PulpDebClient
123
142
  :'client_key' => :'String',
124
143
  :'tls_validation' => :'Boolean',
125
144
  :'proxy_url' => :'String',
145
+ :'proxy_username' => :'String',
146
+ :'proxy_password' => :'String',
126
147
  :'username' => :'String',
127
148
  :'password' => :'String',
149
+ :'pulp_labels' => :'Object',
128
150
  :'download_concurrency' => :'Integer',
129
151
  :'policy' => :'PolicyEnum',
130
152
  :'total_timeout' => :'Float',
131
153
  :'connect_timeout' => :'Float',
132
154
  :'sock_connect_timeout' => :'Float',
133
155
  :'sock_read_timeout' => :'Float',
156
+ :'headers' => :'Array<Object>',
157
+ :'rate_limit' => :'Integer',
134
158
  :'distributions' => :'String',
135
159
  :'components' => :'String',
136
160
  :'architectures' => :'String',
@@ -149,12 +173,15 @@ module PulpDebClient
149
173
  :'client_cert',
150
174
  :'client_key',
151
175
  :'proxy_url',
176
+ :'proxy_username',
177
+ :'proxy_password',
152
178
  :'username',
153
179
  :'password',
154
180
  :'total_timeout',
155
181
  :'connect_timeout',
156
182
  :'sock_connect_timeout',
157
183
  :'sock_read_timeout',
184
+ :'rate_limit',
158
185
  :'components',
159
186
  :'architectures',
160
187
  :'gpgkey',
@@ -204,6 +231,14 @@ module PulpDebClient
204
231
  self.proxy_url = attributes[:'proxy_url']
205
232
  end
206
233
 
234
+ if attributes.key?(:'proxy_username')
235
+ self.proxy_username = attributes[:'proxy_username']
236
+ end
237
+
238
+ if attributes.key?(:'proxy_password')
239
+ self.proxy_password = attributes[:'proxy_password']
240
+ end
241
+
207
242
  if attributes.key?(:'username')
208
243
  self.username = attributes[:'username']
209
244
  end
@@ -212,6 +247,10 @@ module PulpDebClient
212
247
  self.password = attributes[:'password']
213
248
  end
214
249
 
250
+ if attributes.key?(:'pulp_labels')
251
+ self.pulp_labels = attributes[:'pulp_labels']
252
+ end
253
+
215
254
  if attributes.key?(:'download_concurrency')
216
255
  self.download_concurrency = attributes[:'download_concurrency']
217
256
  end
@@ -236,6 +275,16 @@ module PulpDebClient
236
275
  self.sock_read_timeout = attributes[:'sock_read_timeout']
237
276
  end
238
277
 
278
+ if attributes.key?(:'headers')
279
+ if (value = attributes[:'headers']).is_a?(Array)
280
+ self.headers = value
281
+ end
282
+ end
283
+
284
+ if attributes.key?(:'rate_limit')
285
+ self.rate_limit = attributes[:'rate_limit']
286
+ end
287
+
239
288
  if attributes.key?(:'distributions')
240
289
  self.distributions = attributes[:'distributions']
241
290
  end
@@ -384,14 +433,19 @@ module PulpDebClient
384
433
  client_key == o.client_key &&
385
434
  tls_validation == o.tls_validation &&
386
435
  proxy_url == o.proxy_url &&
436
+ proxy_username == o.proxy_username &&
437
+ proxy_password == o.proxy_password &&
387
438
  username == o.username &&
388
439
  password == o.password &&
440
+ pulp_labels == o.pulp_labels &&
389
441
  download_concurrency == o.download_concurrency &&
390
442
  policy == o.policy &&
391
443
  total_timeout == o.total_timeout &&
392
444
  connect_timeout == o.connect_timeout &&
393
445
  sock_connect_timeout == o.sock_connect_timeout &&
394
446
  sock_read_timeout == o.sock_read_timeout &&
447
+ headers == o.headers &&
448
+ rate_limit == o.rate_limit &&
395
449
  distributions == o.distributions &&
396
450
  components == o.components &&
397
451
  architectures == o.architectures &&
@@ -411,7 +465,7 @@ module PulpDebClient
411
465
  # Calculates hash code according to all attributes.
412
466
  # @return [Integer] Hash code
413
467
  def hash
414
- [name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, distributions, components, architectures, sync_sources, sync_udebs, sync_installer, gpgkey, ignore_missing_package_indices].hash
468
+ [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, distributions, components, architectures, sync_sources, sync_udebs, sync_installer, gpgkey, ignore_missing_package_indices].hash
415
469
  end
416
470
 
417
471
  # Builds the object from hash
@@ -32,20 +32,13 @@ module PulpDebClient
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://user:password@host:port
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
41
+ attr_accessor :pulp_labels
49
42
 
50
43
  # Timestamp of the most recent update of the remote.
51
44
  attr_accessor :pulp_last_updated
@@ -68,6 +61,12 @@ module PulpDebClient
68
61
  # aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
69
62
  attr_accessor :sock_read_timeout
70
63
 
64
+ # Headers for aiohttp.Clientsession
65
+ attr_accessor :headers
66
+
67
+ # Limits total download rate in requests per second
68
+ attr_accessor :rate_limit
69
+
71
70
  # 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.
72
71
  attr_accessor :distributions
73
72
 
@@ -101,11 +100,9 @@ module PulpDebClient
101
100
  :'url' => :'url',
102
101
  :'ca_cert' => :'ca_cert',
103
102
  :'client_cert' => :'client_cert',
104
- :'client_key' => :'client_key',
105
103
  :'tls_validation' => :'tls_validation',
106
104
  :'proxy_url' => :'proxy_url',
107
- :'username' => :'username',
108
- :'password' => :'password',
105
+ :'pulp_labels' => :'pulp_labels',
109
106
  :'pulp_last_updated' => :'pulp_last_updated',
110
107
  :'download_concurrency' => :'download_concurrency',
111
108
  :'policy' => :'policy',
@@ -113,6 +110,8 @@ module PulpDebClient
113
110
  :'connect_timeout' => :'connect_timeout',
114
111
  :'sock_connect_timeout' => :'sock_connect_timeout',
115
112
  :'sock_read_timeout' => :'sock_read_timeout',
113
+ :'headers' => :'headers',
114
+ :'rate_limit' => :'rate_limit',
116
115
  :'distributions' => :'distributions',
117
116
  :'components' => :'components',
118
117
  :'architectures' => :'architectures',
@@ -133,11 +132,9 @@ module PulpDebClient
133
132
  :'url' => :'String',
134
133
  :'ca_cert' => :'String',
135
134
  :'client_cert' => :'String',
136
- :'client_key' => :'String',
137
135
  :'tls_validation' => :'Boolean',
138
136
  :'proxy_url' => :'String',
139
- :'username' => :'String',
140
- :'password' => :'String',
137
+ :'pulp_labels' => :'Object',
141
138
  :'pulp_last_updated' => :'DateTime',
142
139
  :'download_concurrency' => :'Integer',
143
140
  :'policy' => :'PolicyEnum',
@@ -145,6 +142,8 @@ module PulpDebClient
145
142
  :'connect_timeout' => :'Float',
146
143
  :'sock_connect_timeout' => :'Float',
147
144
  :'sock_read_timeout' => :'Float',
145
+ :'headers' => :'Array<Object>',
146
+ :'rate_limit' => :'Integer',
148
147
  :'distributions' => :'String',
149
148
  :'components' => :'String',
150
149
  :'architectures' => :'String',
@@ -161,14 +160,12 @@ module PulpDebClient
161
160
  Set.new([
162
161
  :'ca_cert',
163
162
  :'client_cert',
164
- :'client_key',
165
163
  :'proxy_url',
166
- :'username',
167
- :'password',
168
164
  :'total_timeout',
169
165
  :'connect_timeout',
170
166
  :'sock_connect_timeout',
171
167
  :'sock_read_timeout',
168
+ :'rate_limit',
172
169
  :'components',
173
170
  :'architectures',
174
171
  :'gpgkey',
@@ -214,10 +211,6 @@ module PulpDebClient
214
211
  self.client_cert = attributes[:'client_cert']
215
212
  end
216
213
 
217
- if attributes.key?(:'client_key')
218
- self.client_key = attributes[:'client_key']
219
- end
220
-
221
214
  if attributes.key?(:'tls_validation')
222
215
  self.tls_validation = attributes[:'tls_validation']
223
216
  end
@@ -226,12 +219,8 @@ module PulpDebClient
226
219
  self.proxy_url = attributes[:'proxy_url']
227
220
  end
228
221
 
229
- if attributes.key?(:'username')
230
- self.username = attributes[:'username']
231
- end
232
-
233
- if attributes.key?(:'password')
234
- self.password = attributes[:'password']
222
+ if attributes.key?(:'pulp_labels')
223
+ self.pulp_labels = attributes[:'pulp_labels']
235
224
  end
236
225
 
237
226
  if attributes.key?(:'pulp_last_updated')
@@ -262,6 +251,16 @@ module PulpDebClient
262
251
  self.sock_read_timeout = attributes[:'sock_read_timeout']
263
252
  end
264
253
 
254
+ if attributes.key?(:'headers')
255
+ if (value = attributes[:'headers']).is_a?(Array)
256
+ self.headers = value
257
+ end
258
+ end
259
+
260
+ if attributes.key?(:'rate_limit')
261
+ self.rate_limit = attributes[:'rate_limit']
262
+ end
263
+
265
264
  if attributes.key?(:'distributions')
266
265
  self.distributions = attributes[:'distributions']
267
266
  end
@@ -409,11 +408,9 @@ module PulpDebClient
409
408
  url == o.url &&
410
409
  ca_cert == o.ca_cert &&
411
410
  client_cert == o.client_cert &&
412
- client_key == o.client_key &&
413
411
  tls_validation == o.tls_validation &&
414
412
  proxy_url == o.proxy_url &&
415
- username == o.username &&
416
- password == o.password &&
413
+ pulp_labels == o.pulp_labels &&
417
414
  pulp_last_updated == o.pulp_last_updated &&
418
415
  download_concurrency == o.download_concurrency &&
419
416
  policy == o.policy &&
@@ -421,6 +418,8 @@ module PulpDebClient
421
418
  connect_timeout == o.connect_timeout &&
422
419
  sock_connect_timeout == o.sock_connect_timeout &&
423
420
  sock_read_timeout == o.sock_read_timeout &&
421
+ headers == o.headers &&
422
+ rate_limit == o.rate_limit &&
424
423
  distributions == o.distributions &&
425
424
  components == o.components &&
426
425
  architectures == o.architectures &&
@@ -440,7 +439,7 @@ module PulpDebClient
440
439
  # Calculates hash code according to all attributes.
441
440
  # @return [Integer] Hash code
442
441
  def hash
443
- [pulp_href, pulp_created, name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, pulp_last_updated, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, distributions, components, architectures, sync_sources, sync_udebs, sync_installer, gpgkey, ignore_missing_package_indices].hash
442
+ [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, distributions, components, architectures, sync_sources, sync_udebs, sync_installer, gpgkey, ignore_missing_package_indices].hash
444
443
  end
445
444
 
446
445
  # Builds the object from hash
@@ -15,19 +15,26 @@ require 'date'
15
15
  module PulpDebClient
16
16
  # A Serializer for AptRepository.
17
17
  class DebAptRepository
18
+ attr_accessor :pulp_labels
19
+
18
20
  # A unique name for this repository.
19
21
  attr_accessor :name
20
22
 
21
23
  # An optional description.
22
24
  attr_accessor :description
23
25
 
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
28
+
24
29
  attr_accessor :remote
25
30
 
26
31
  # Attribute mapping from ruby-style variable name to JSON key.
27
32
  def self.attribute_map
28
33
  {
34
+ :'pulp_labels' => :'pulp_labels',
29
35
  :'name' => :'name',
30
36
  :'description' => :'description',
37
+ :'retained_versions' => :'retained_versions',
31
38
  :'remote' => :'remote'
32
39
  }
33
40
  end
@@ -35,8 +42,10 @@ module PulpDebClient
35
42
  # Attribute type mapping.
36
43
  def self.openapi_types
37
44
  {
45
+ :'pulp_labels' => :'Object',
38
46
  :'name' => :'String',
39
47
  :'description' => :'String',
48
+ :'retained_versions' => :'Integer',
40
49
  :'remote' => :'String'
41
50
  }
42
51
  end
@@ -45,6 +54,7 @@ module PulpDebClient
45
54
  def self.openapi_nullable
46
55
  Set.new([
47
56
  :'description',
57
+ :'retained_versions',
48
58
  :'remote'
49
59
  ])
50
60
  end
@@ -64,6 +74,10 @@ module PulpDebClient
64
74
  h[k.to_sym] = v
65
75
  }
66
76
 
77
+ if attributes.key?(:'pulp_labels')
78
+ self.pulp_labels = attributes[:'pulp_labels']
79
+ end
80
+
67
81
  if attributes.key?(:'name')
68
82
  self.name = attributes[:'name']
69
83
  end
@@ -72,6 +86,10 @@ module PulpDebClient
72
86
  self.description = attributes[:'description']
73
87
  end
74
88
 
89
+ if attributes.key?(:'retained_versions')
90
+ self.retained_versions = attributes[:'retained_versions']
91
+ end
92
+
75
93
  if attributes.key?(:'remote')
76
94
  self.remote = attributes[:'remote']
77
95
  end
@@ -85,6 +103,10 @@ module PulpDebClient
85
103
  invalid_properties.push('invalid value for "name", name cannot be nil.')
86
104
  end
87
105
 
106
+ if !@retained_versions.nil? && @retained_versions < 1
107
+ invalid_properties.push('invalid value for "retained_versions", must be greater than or equal to 1.')
108
+ end
109
+
88
110
  invalid_properties
89
111
  end
90
112
 
@@ -92,16 +114,29 @@ module PulpDebClient
92
114
  # @return true if the model is valid
93
115
  def valid?
94
116
  return false if @name.nil?
117
+ return false if !@retained_versions.nil? && @retained_versions < 1
95
118
  true
96
119
  end
97
120
 
121
+ # Custom attribute writer method with validation
122
+ # @param [Object] retained_versions Value to be assigned
123
+ def retained_versions=(retained_versions)
124
+ if !retained_versions.nil? && retained_versions < 1
125
+ fail ArgumentError, 'invalid value for "retained_versions", must be greater than or equal to 1.'
126
+ end
127
+
128
+ @retained_versions = retained_versions
129
+ end
130
+
98
131
  # Checks equality by comparing each attribute.
99
132
  # @param [Object] Object to be compared
100
133
  def ==(o)
101
134
  return true if self.equal?(o)
102
135
  self.class == o.class &&
136
+ pulp_labels == o.pulp_labels &&
103
137
  name == o.name &&
104
138
  description == o.description &&
139
+ retained_versions == o.retained_versions &&
105
140
  remote == o.remote
106
141
  end
107
142
 
@@ -114,7 +149,7 @@ module PulpDebClient
114
149
  # Calculates hash code according to all attributes.
115
150
  # @return [Integer] Hash code
116
151
  def hash
117
- [name, description, remote].hash
152
+ [pulp_labels, name, description, retained_versions, remote].hash
118
153
  end
119
154
 
120
155
  # Builds the object from hash