pulp_rpm_client 3.8.0 → 3.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/DistributionsRpmApi.md +8 -0
  4. data/docs/PatchedrpmRpmDistribution.md +2 -0
  5. data/docs/PatchedrpmRpmRemote.md +12 -0
  6. data/docs/PatchedrpmRpmRepository.md +3 -1
  7. data/docs/RemotesRpmApi.md +8 -0
  8. data/docs/RepositoriesRpmApi.md +8 -0
  9. data/docs/RepositoriesRpmVersionsApi.md +2 -2
  10. data/docs/RpmModulemdDefaultsResponse.md +13 -3
  11. data/docs/RpmModulemdResponse.md +13 -3
  12. data/docs/RpmPackageResponse.md +12 -2
  13. data/docs/RpmRepoMetadataFileResponse.md +13 -3
  14. data/docs/RpmRpmDistribution.md +2 -0
  15. data/docs/RpmRpmDistributionResponse.md +2 -0
  16. data/docs/RpmRpmPublication.md +3 -1
  17. data/docs/RpmRpmPublicationResponse.md +3 -1
  18. data/docs/RpmRpmRemote.md +12 -0
  19. data/docs/RpmRpmRemoteResponse.md +12 -0
  20. data/docs/RpmRpmRepository.md +3 -1
  21. data/docs/RpmRpmRepositoryResponse.md +2 -0
  22. data/lib/pulp_rpm_client/api/distributions_rpm_api.rb +12 -0
  23. data/lib/pulp_rpm_client/api/remotes_rpm_api.rb +12 -0
  24. data/lib/pulp_rpm_client/api/repositories_rpm_api.rb +12 -0
  25. data/lib/pulp_rpm_client/api/repositories_rpm_versions_api.rb +4 -4
  26. data/lib/pulp_rpm_client/models/image_response.rb +1 -5
  27. data/lib/pulp_rpm_client/models/patchedrpm_rpm_distribution.rb +10 -1
  28. data/lib/pulp_rpm_client/models/patchedrpm_rpm_remote.rb +125 -1
  29. data/lib/pulp_rpm_client/models/patchedrpm_rpm_repository.rb +10 -1
  30. data/lib/pulp_rpm_client/models/rpm_modulemd_defaults_response.rb +64 -14
  31. data/lib/pulp_rpm_client/models/rpm_modulemd_response.rb +64 -14
  32. data/lib/pulp_rpm_client/models/rpm_package_response.rb +61 -11
  33. data/lib/pulp_rpm_client/models/rpm_repo_metadata_file_response.rb +64 -14
  34. data/lib/pulp_rpm_client/models/rpm_rpm_distribution.rb +10 -1
  35. data/lib/pulp_rpm_client/models/rpm_rpm_distribution_response.rb +10 -1
  36. data/lib/pulp_rpm_client/models/rpm_rpm_publication.rb +16 -4
  37. data/lib/pulp_rpm_client/models/rpm_rpm_publication_response.rb +16 -4
  38. data/lib/pulp_rpm_client/models/rpm_rpm_remote.rb +125 -1
  39. data/lib/pulp_rpm_client/models/rpm_rpm_remote_response.rb +125 -1
  40. data/lib/pulp_rpm_client/models/rpm_rpm_repository.rb +10 -1
  41. data/lib/pulp_rpm_client/models/rpm_rpm_repository_response.rb +10 -1
  42. data/lib/pulp_rpm_client/version.rb +1 -1
  43. data/spec/api/distributions_rpm_api_spec.rb +4 -0
  44. data/spec/api/remotes_rpm_api_spec.rb +4 -0
  45. data/spec/api/repositories_rpm_api_spec.rb +4 -0
  46. data/spec/api/repositories_rpm_versions_api_spec.rb +2 -2
  47. data/spec/models/patchedrpm_rpm_distribution_spec.rb +6 -0
  48. data/spec/models/patchedrpm_rpm_remote_spec.rb +36 -0
  49. data/spec/models/patchedrpm_rpm_repository_spec.rb +6 -0
  50. data/spec/models/rpm_modulemd_defaults_response_spec.rb +35 -5
  51. data/spec/models/rpm_modulemd_response_spec.rb +36 -6
  52. data/spec/models/rpm_package_response_spec.rb +36 -6
  53. data/spec/models/rpm_repo_metadata_file_response_spec.rb +36 -6
  54. data/spec/models/rpm_rpm_distribution_response_spec.rb +6 -0
  55. data/spec/models/rpm_rpm_distribution_spec.rb +6 -0
  56. data/spec/models/rpm_rpm_publication_response_spec.rb +6 -0
  57. data/spec/models/rpm_rpm_publication_spec.rb +6 -0
  58. data/spec/models/rpm_rpm_remote_response_spec.rb +36 -0
  59. data/spec/models/rpm_rpm_remote_spec.rb +36 -0
  60. data/spec/models/rpm_rpm_repository_response_spec.rb +6 -0
  61. data/spec/models/rpm_rpm_repository_spec.rb +6 -0
  62. metadata +58 -58
@@ -42,12 +42,29 @@ module PulpRpmClient
42
42
  # The password to be used for authentication when syncing.
43
43
  attr_accessor :password
44
44
 
45
+ attr_accessor :pulp_labels
46
+
45
47
  # Total number of simultaneous connections.
46
48
  attr_accessor :download_concurrency
47
49
 
48
50
  # The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'immediate' is the default.
49
51
  attr_accessor :policy
50
52
 
53
+ # aiohttp.ClientTimeout.total (q.v.) for download-connections.
54
+ attr_accessor :total_timeout
55
+
56
+ # aiohttp.ClientTimeout.connect (q.v.) for download-connections.
57
+ attr_accessor :connect_timeout
58
+
59
+ # aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections.
60
+ attr_accessor :sock_connect_timeout
61
+
62
+ # aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
63
+ attr_accessor :sock_read_timeout
64
+
65
+ # Limits total download rate in requests per second
66
+ attr_accessor :rate_limit
67
+
51
68
  # Authentication token for SLES repositories.
52
69
  attr_accessor :sles_auth_token
53
70
 
@@ -63,8 +80,14 @@ module PulpRpmClient
63
80
  :'proxy_url' => :'proxy_url',
64
81
  :'username' => :'username',
65
82
  :'password' => :'password',
83
+ :'pulp_labels' => :'pulp_labels',
66
84
  :'download_concurrency' => :'download_concurrency',
67
85
  :'policy' => :'policy',
86
+ :'total_timeout' => :'total_timeout',
87
+ :'connect_timeout' => :'connect_timeout',
88
+ :'sock_connect_timeout' => :'sock_connect_timeout',
89
+ :'sock_read_timeout' => :'sock_read_timeout',
90
+ :'rate_limit' => :'rate_limit',
68
91
  :'sles_auth_token' => :'sles_auth_token'
69
92
  }
70
93
  end
@@ -81,8 +104,14 @@ module PulpRpmClient
81
104
  :'proxy_url' => :'String',
82
105
  :'username' => :'String',
83
106
  :'password' => :'String',
107
+ :'pulp_labels' => :'Object',
84
108
  :'download_concurrency' => :'Integer',
85
109
  :'policy' => :'PolicyEnum',
110
+ :'total_timeout' => :'Float',
111
+ :'connect_timeout' => :'Float',
112
+ :'sock_connect_timeout' => :'Float',
113
+ :'sock_read_timeout' => :'Float',
114
+ :'rate_limit' => :'Integer',
86
115
  :'sles_auth_token' => :'String'
87
116
  }
88
117
  end
@@ -96,6 +125,11 @@ module PulpRpmClient
96
125
  :'proxy_url',
97
126
  :'username',
98
127
  :'password',
128
+ :'total_timeout',
129
+ :'connect_timeout',
130
+ :'sock_connect_timeout',
131
+ :'sock_read_timeout',
132
+ :'rate_limit',
99
133
  :'sles_auth_token'
100
134
  ])
101
135
  end
@@ -151,6 +185,10 @@ module PulpRpmClient
151
185
  self.password = attributes[:'password']
152
186
  end
153
187
 
188
+ if attributes.key?(:'pulp_labels')
189
+ self.pulp_labels = attributes[:'pulp_labels']
190
+ end
191
+
154
192
  if attributes.key?(:'download_concurrency')
155
193
  self.download_concurrency = attributes[:'download_concurrency']
156
194
  end
@@ -159,6 +197,26 @@ module PulpRpmClient
159
197
  self.policy = attributes[:'policy']
160
198
  end
161
199
 
200
+ if attributes.key?(:'total_timeout')
201
+ self.total_timeout = attributes[:'total_timeout']
202
+ end
203
+
204
+ if attributes.key?(:'connect_timeout')
205
+ self.connect_timeout = attributes[:'connect_timeout']
206
+ end
207
+
208
+ if attributes.key?(:'sock_connect_timeout')
209
+ self.sock_connect_timeout = attributes[:'sock_connect_timeout']
210
+ end
211
+
212
+ if attributes.key?(:'sock_read_timeout')
213
+ self.sock_read_timeout = attributes[:'sock_read_timeout']
214
+ end
215
+
216
+ if attributes.key?(:'rate_limit')
217
+ self.rate_limit = attributes[:'rate_limit']
218
+ end
219
+
162
220
  if attributes.key?(:'sles_auth_token')
163
221
  self.sles_auth_token = attributes[:'sles_auth_token']
164
222
  end
@@ -180,6 +238,22 @@ module PulpRpmClient
180
238
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
181
239
  end
182
240
 
241
+ if !@total_timeout.nil? && @total_timeout < 0.0
242
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
243
+ end
244
+
245
+ if !@connect_timeout.nil? && @connect_timeout < 0.0
246
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
247
+ end
248
+
249
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
250
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
251
+ end
252
+
253
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
254
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
255
+ end
256
+
183
257
  invalid_properties
184
258
  end
185
259
 
@@ -189,6 +263,10 @@ module PulpRpmClient
189
263
  return false if @name.nil?
190
264
  return false if @url.nil?
191
265
  return false if !@download_concurrency.nil? && @download_concurrency < 1
266
+ return false if !@total_timeout.nil? && @total_timeout < 0.0
267
+ return false if !@connect_timeout.nil? && @connect_timeout < 0.0
268
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
269
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
192
270
  true
193
271
  end
194
272
 
@@ -202,6 +280,46 @@ module PulpRpmClient
202
280
  @download_concurrency = download_concurrency
203
281
  end
204
282
 
283
+ # Custom attribute writer method with validation
284
+ # @param [Object] total_timeout Value to be assigned
285
+ def total_timeout=(total_timeout)
286
+ if !total_timeout.nil? && total_timeout < 0.0
287
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
288
+ end
289
+
290
+ @total_timeout = total_timeout
291
+ end
292
+
293
+ # Custom attribute writer method with validation
294
+ # @param [Object] connect_timeout Value to be assigned
295
+ def connect_timeout=(connect_timeout)
296
+ if !connect_timeout.nil? && connect_timeout < 0.0
297
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
298
+ end
299
+
300
+ @connect_timeout = connect_timeout
301
+ end
302
+
303
+ # Custom attribute writer method with validation
304
+ # @param [Object] sock_connect_timeout Value to be assigned
305
+ def sock_connect_timeout=(sock_connect_timeout)
306
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
307
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
308
+ end
309
+
310
+ @sock_connect_timeout = sock_connect_timeout
311
+ end
312
+
313
+ # Custom attribute writer method with validation
314
+ # @param [Object] sock_read_timeout Value to be assigned
315
+ def sock_read_timeout=(sock_read_timeout)
316
+ if !sock_read_timeout.nil? && sock_read_timeout < 0.0
317
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
318
+ end
319
+
320
+ @sock_read_timeout = sock_read_timeout
321
+ end
322
+
205
323
  # Checks equality by comparing each attribute.
206
324
  # @param [Object] Object to be compared
207
325
  def ==(o)
@@ -216,8 +334,14 @@ module PulpRpmClient
216
334
  proxy_url == o.proxy_url &&
217
335
  username == o.username &&
218
336
  password == o.password &&
337
+ pulp_labels == o.pulp_labels &&
219
338
  download_concurrency == o.download_concurrency &&
220
339
  policy == o.policy &&
340
+ total_timeout == o.total_timeout &&
341
+ connect_timeout == o.connect_timeout &&
342
+ sock_connect_timeout == o.sock_connect_timeout &&
343
+ sock_read_timeout == o.sock_read_timeout &&
344
+ rate_limit == o.rate_limit &&
221
345
  sles_auth_token == o.sles_auth_token
222
346
  end
223
347
 
@@ -230,7 +354,7 @@ module PulpRpmClient
230
354
  # Calculates hash code according to all attributes.
231
355
  # @return [Integer] Hash code
232
356
  def hash
233
- [name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, download_concurrency, policy, sles_auth_token].hash
357
+ [name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, pulp_labels, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, rate_limit, sles_auth_token].hash
234
358
  end
235
359
 
236
360
  # Builds the object from hash
@@ -47,6 +47,8 @@ module PulpRpmClient
47
47
  # The password to be used for authentication when syncing.
48
48
  attr_accessor :password
49
49
 
50
+ attr_accessor :pulp_labels
51
+
50
52
  # Timestamp of the most recent update of the remote.
51
53
  attr_accessor :pulp_last_updated
52
54
 
@@ -56,6 +58,21 @@ module PulpRpmClient
56
58
  # The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'immediate' is the default.
57
59
  attr_accessor :policy
58
60
 
61
+ # aiohttp.ClientTimeout.total (q.v.) for download-connections.
62
+ attr_accessor :total_timeout
63
+
64
+ # aiohttp.ClientTimeout.connect (q.v.) for download-connections.
65
+ attr_accessor :connect_timeout
66
+
67
+ # aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections.
68
+ attr_accessor :sock_connect_timeout
69
+
70
+ # aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
71
+ attr_accessor :sock_read_timeout
72
+
73
+ # Limits total download rate in requests per second
74
+ attr_accessor :rate_limit
75
+
59
76
  # Authentication token for SLES repositories.
60
77
  attr_accessor :sles_auth_token
61
78
 
@@ -73,9 +90,15 @@ module PulpRpmClient
73
90
  :'proxy_url' => :'proxy_url',
74
91
  :'username' => :'username',
75
92
  :'password' => :'password',
93
+ :'pulp_labels' => :'pulp_labels',
76
94
  :'pulp_last_updated' => :'pulp_last_updated',
77
95
  :'download_concurrency' => :'download_concurrency',
78
96
  :'policy' => :'policy',
97
+ :'total_timeout' => :'total_timeout',
98
+ :'connect_timeout' => :'connect_timeout',
99
+ :'sock_connect_timeout' => :'sock_connect_timeout',
100
+ :'sock_read_timeout' => :'sock_read_timeout',
101
+ :'rate_limit' => :'rate_limit',
79
102
  :'sles_auth_token' => :'sles_auth_token'
80
103
  }
81
104
  end
@@ -94,9 +117,15 @@ module PulpRpmClient
94
117
  :'proxy_url' => :'String',
95
118
  :'username' => :'String',
96
119
  :'password' => :'String',
120
+ :'pulp_labels' => :'Object',
97
121
  :'pulp_last_updated' => :'DateTime',
98
122
  :'download_concurrency' => :'Integer',
99
123
  :'policy' => :'PolicyEnum',
124
+ :'total_timeout' => :'Float',
125
+ :'connect_timeout' => :'Float',
126
+ :'sock_connect_timeout' => :'Float',
127
+ :'sock_read_timeout' => :'Float',
128
+ :'rate_limit' => :'Integer',
100
129
  :'sles_auth_token' => :'String'
101
130
  }
102
131
  end
@@ -110,6 +139,11 @@ module PulpRpmClient
110
139
  :'proxy_url',
111
140
  :'username',
112
141
  :'password',
142
+ :'total_timeout',
143
+ :'connect_timeout',
144
+ :'sock_connect_timeout',
145
+ :'sock_read_timeout',
146
+ :'rate_limit',
113
147
  :'sles_auth_token'
114
148
  ])
115
149
  end
@@ -173,6 +207,10 @@ module PulpRpmClient
173
207
  self.password = attributes[:'password']
174
208
  end
175
209
 
210
+ if attributes.key?(:'pulp_labels')
211
+ self.pulp_labels = attributes[:'pulp_labels']
212
+ end
213
+
176
214
  if attributes.key?(:'pulp_last_updated')
177
215
  self.pulp_last_updated = attributes[:'pulp_last_updated']
178
216
  end
@@ -185,6 +223,26 @@ module PulpRpmClient
185
223
  self.policy = attributes[:'policy']
186
224
  end
187
225
 
226
+ if attributes.key?(:'total_timeout')
227
+ self.total_timeout = attributes[:'total_timeout']
228
+ end
229
+
230
+ if attributes.key?(:'connect_timeout')
231
+ self.connect_timeout = attributes[:'connect_timeout']
232
+ end
233
+
234
+ if attributes.key?(:'sock_connect_timeout')
235
+ self.sock_connect_timeout = attributes[:'sock_connect_timeout']
236
+ end
237
+
238
+ if attributes.key?(:'sock_read_timeout')
239
+ self.sock_read_timeout = attributes[:'sock_read_timeout']
240
+ end
241
+
242
+ if attributes.key?(:'rate_limit')
243
+ self.rate_limit = attributes[:'rate_limit']
244
+ end
245
+
188
246
  if attributes.key?(:'sles_auth_token')
189
247
  self.sles_auth_token = attributes[:'sles_auth_token']
190
248
  end
@@ -206,6 +264,22 @@ module PulpRpmClient
206
264
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
207
265
  end
208
266
 
267
+ if !@total_timeout.nil? && @total_timeout < 0.0
268
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
269
+ end
270
+
271
+ if !@connect_timeout.nil? && @connect_timeout < 0.0
272
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
273
+ end
274
+
275
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
276
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
277
+ end
278
+
279
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
280
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
281
+ end
282
+
209
283
  invalid_properties
210
284
  end
211
285
 
@@ -215,6 +289,10 @@ module PulpRpmClient
215
289
  return false if @name.nil?
216
290
  return false if @url.nil?
217
291
  return false if !@download_concurrency.nil? && @download_concurrency < 1
292
+ return false if !@total_timeout.nil? && @total_timeout < 0.0
293
+ return false if !@connect_timeout.nil? && @connect_timeout < 0.0
294
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
295
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
218
296
  true
219
297
  end
220
298
 
@@ -228,6 +306,46 @@ module PulpRpmClient
228
306
  @download_concurrency = download_concurrency
229
307
  end
230
308
 
309
+ # Custom attribute writer method with validation
310
+ # @param [Object] total_timeout Value to be assigned
311
+ def total_timeout=(total_timeout)
312
+ if !total_timeout.nil? && total_timeout < 0.0
313
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
314
+ end
315
+
316
+ @total_timeout = total_timeout
317
+ end
318
+
319
+ # Custom attribute writer method with validation
320
+ # @param [Object] connect_timeout Value to be assigned
321
+ def connect_timeout=(connect_timeout)
322
+ if !connect_timeout.nil? && connect_timeout < 0.0
323
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
324
+ end
325
+
326
+ @connect_timeout = connect_timeout
327
+ end
328
+
329
+ # Custom attribute writer method with validation
330
+ # @param [Object] sock_connect_timeout Value to be assigned
331
+ def sock_connect_timeout=(sock_connect_timeout)
332
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
333
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
334
+ end
335
+
336
+ @sock_connect_timeout = sock_connect_timeout
337
+ end
338
+
339
+ # Custom attribute writer method with validation
340
+ # @param [Object] sock_read_timeout Value to be assigned
341
+ def sock_read_timeout=(sock_read_timeout)
342
+ if !sock_read_timeout.nil? && sock_read_timeout < 0.0
343
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
344
+ end
345
+
346
+ @sock_read_timeout = sock_read_timeout
347
+ end
348
+
231
349
  # Checks equality by comparing each attribute.
232
350
  # @param [Object] Object to be compared
233
351
  def ==(o)
@@ -244,9 +362,15 @@ module PulpRpmClient
244
362
  proxy_url == o.proxy_url &&
245
363
  username == o.username &&
246
364
  password == o.password &&
365
+ pulp_labels == o.pulp_labels &&
247
366
  pulp_last_updated == o.pulp_last_updated &&
248
367
  download_concurrency == o.download_concurrency &&
249
368
  policy == o.policy &&
369
+ total_timeout == o.total_timeout &&
370
+ connect_timeout == o.connect_timeout &&
371
+ sock_connect_timeout == o.sock_connect_timeout &&
372
+ sock_read_timeout == o.sock_read_timeout &&
373
+ rate_limit == o.rate_limit &&
250
374
  sles_auth_token == o.sles_auth_token
251
375
  end
252
376
 
@@ -259,7 +383,7 @@ module PulpRpmClient
259
383
  # Calculates hash code according to all attributes.
260
384
  # @return [Integer] Hash code
261
385
  def hash
262
- [pulp_href, pulp_created, name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, pulp_last_updated, download_concurrency, policy, sles_auth_token].hash
386
+ [pulp_href, pulp_created, name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, pulp_labels, pulp_last_updated, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, rate_limit, sles_auth_token].hash
263
387
  end
264
388
 
265
389
  # Builds the object from hash
@@ -15,6 +15,8 @@ require 'date'
15
15
  module PulpRpmClient
16
16
  # Serializer for Rpm Repositories.
17
17
  class RpmRpmRepository
18
+ attr_accessor :pulp_labels
19
+
18
20
  # A unique name for this repository.
19
21
  attr_accessor :name
20
22
 
@@ -32,6 +34,7 @@ module PulpRpmClient
32
34
  # Attribute mapping from ruby-style variable name to JSON key.
33
35
  def self.attribute_map
34
36
  {
37
+ :'pulp_labels' => :'pulp_labels',
35
38
  :'name' => :'name',
36
39
  :'description' => :'description',
37
40
  :'remote' => :'remote',
@@ -43,6 +46,7 @@ module PulpRpmClient
43
46
  # Attribute type mapping.
44
47
  def self.openapi_types
45
48
  {
49
+ :'pulp_labels' => :'Object',
46
50
  :'name' => :'String',
47
51
  :'description' => :'String',
48
52
  :'remote' => :'String',
@@ -75,6 +79,10 @@ module PulpRpmClient
75
79
  h[k.to_sym] = v
76
80
  }
77
81
 
82
+ if attributes.key?(:'pulp_labels')
83
+ self.pulp_labels = attributes[:'pulp_labels']
84
+ end
85
+
78
86
  if attributes.key?(:'name')
79
87
  self.name = attributes[:'name']
80
88
  end
@@ -134,6 +142,7 @@ module PulpRpmClient
134
142
  def ==(o)
135
143
  return true if self.equal?(o)
136
144
  self.class == o.class &&
145
+ pulp_labels == o.pulp_labels &&
137
146
  name == o.name &&
138
147
  description == o.description &&
139
148
  remote == o.remote &&
@@ -150,7 +159,7 @@ module PulpRpmClient
150
159
  # Calculates hash code according to all attributes.
151
160
  # @return [Integer] Hash code
152
161
  def hash
153
- [name, description, remote, metadata_signing_service, retain_package_versions].hash
162
+ [pulp_labels, name, description, remote, metadata_signing_service, retain_package_versions].hash
154
163
  end
155
164
 
156
165
  # Builds the object from hash
@@ -22,6 +22,8 @@ module PulpRpmClient
22
22
 
23
23
  attr_accessor :versions_href
24
24
 
25
+ attr_accessor :pulp_labels
26
+
25
27
  attr_accessor :latest_version_href
26
28
 
27
29
  # A unique name for this repository.
@@ -44,6 +46,7 @@ module PulpRpmClient
44
46
  :'pulp_href' => :'pulp_href',
45
47
  :'pulp_created' => :'pulp_created',
46
48
  :'versions_href' => :'versions_href',
49
+ :'pulp_labels' => :'pulp_labels',
47
50
  :'latest_version_href' => :'latest_version_href',
48
51
  :'name' => :'name',
49
52
  :'description' => :'description',
@@ -59,6 +62,7 @@ module PulpRpmClient
59
62
  :'pulp_href' => :'String',
60
63
  :'pulp_created' => :'DateTime',
61
64
  :'versions_href' => :'String',
65
+ :'pulp_labels' => :'Object',
62
66
  :'latest_version_href' => :'String',
63
67
  :'name' => :'String',
64
68
  :'description' => :'String',
@@ -104,6 +108,10 @@ module PulpRpmClient
104
108
  self.versions_href = attributes[:'versions_href']
105
109
  end
106
110
 
111
+ if attributes.key?(:'pulp_labels')
112
+ self.pulp_labels = attributes[:'pulp_labels']
113
+ end
114
+
107
115
  if attributes.key?(:'latest_version_href')
108
116
  self.latest_version_href = attributes[:'latest_version_href']
109
117
  end
@@ -170,6 +178,7 @@ module PulpRpmClient
170
178
  pulp_href == o.pulp_href &&
171
179
  pulp_created == o.pulp_created &&
172
180
  versions_href == o.versions_href &&
181
+ pulp_labels == o.pulp_labels &&
173
182
  latest_version_href == o.latest_version_href &&
174
183
  name == o.name &&
175
184
  description == o.description &&
@@ -187,7 +196,7 @@ module PulpRpmClient
187
196
  # Calculates hash code according to all attributes.
188
197
  # @return [Integer] Hash code
189
198
  def hash
190
- [pulp_href, pulp_created, versions_href, latest_version_href, name, description, remote, metadata_signing_service, retain_package_versions].hash
199
+ [pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description, remote, metadata_signing_service, retain_package_versions].hash
191
200
  end
192
201
 
193
202
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.2.3
11
11
  =end
12
12
 
13
13
  module PulpRpmClient
14
- VERSION = '3.8.0'
14
+ VERSION = '3.9.0'
15
15
  end
@@ -66,9 +66,13 @@ describe 'DistributionsRpmApi' do
66
66
  # @option opts [String] :base_path__in base_path__in
67
67
  # @option opts [Integer] :limit Number of results to return per page.
68
68
  # @option opts [String] :name name
69
+ # @option opts [String] :name__contains name__contains
70
+ # @option opts [String] :name__icontains name__icontains
69
71
  # @option opts [String] :name__in name__in
72
+ # @option opts [String] :name__startswith name__startswith
70
73
  # @option opts [Integer] :offset The initial index from which to return the results.
71
74
  # @option opts [String] :ordering Which field to use when ordering the results.
75
+ # @option opts [String] :pulp_label_select pulp_label_select
72
76
  # @option opts [String] :fields A list of fields to include in the response.
73
77
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
74
78
  # @return [PaginatedrpmRpmDistributionResponseList]
@@ -62,9 +62,13 @@ describe 'RemotesRpmApi' do
62
62
  # @param [Hash] opts the optional parameters
63
63
  # @option opts [Integer] :limit Number of results to return per page.
64
64
  # @option opts [String] :name name
65
+ # @option opts [String] :name__contains name__contains
66
+ # @option opts [String] :name__icontains name__icontains
65
67
  # @option opts [String] :name__in name__in
68
+ # @option opts [String] :name__startswith name__startswith
66
69
  # @option opts [Integer] :offset The initial index from which to return the results.
67
70
  # @option opts [String] :ordering Which field to use when ordering the results.
71
+ # @option opts [String] :pulp_label_select pulp_label_select
68
72
  # @option opts [String] :pulp_last_updated pulp_last_updated
69
73
  # @option opts [String] :pulp_last_updated__gt pulp_last_updated__gt
70
74
  # @option opts [String] :pulp_last_updated__gte pulp_last_updated__gte
@@ -62,9 +62,13 @@ describe 'RepositoriesRpmApi' do
62
62
  # @param [Hash] opts the optional parameters
63
63
  # @option opts [Integer] :limit Number of results to return per page.
64
64
  # @option opts [String] :name name
65
+ # @option opts [String] :name__contains name__contains
66
+ # @option opts [String] :name__icontains name__icontains
65
67
  # @option opts [String] :name__in name__in
68
+ # @option opts [String] :name__startswith name__startswith
66
69
  # @option opts [Integer] :offset The initial index from which to return the results.
67
70
  # @option opts [String] :ordering Which field to use when ordering the results.
71
+ # @option opts [String] :pulp_label_select pulp_label_select
68
72
  # @option opts [String] :fields A list of fields to include in the response.
69
73
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
70
74
  # @return [PaginatedrpmRpmRepositoryResponseList]
@@ -34,7 +34,7 @@ describe 'RepositoriesRpmVersionsApi' do
34
34
 
35
35
  # unit tests for delete
36
36
  # Delete a repository version
37
- # Trigger an asynchronous task to delete a repositroy version.
37
+ # Trigger an asynchronous task to delete a repository version.
38
38
  # @param rpm_rpm_repository_version_href
39
39
  # @param [Hash] opts the optional parameters
40
40
  # @return [AsyncOperationResponse]
@@ -90,7 +90,7 @@ describe 'RepositoriesRpmVersionsApi' do
90
90
  end
91
91
 
92
92
  # unit tests for repair
93
- # Trigger an asynchronous task to repair a repositroy version.
93
+ # Trigger an asynchronous task to repair a repository version.
94
94
  # @param rpm_rpm_repository_version_href
95
95
  # @param repository_version
96
96
  # @param [Hash] opts the optional parameters
@@ -44,6 +44,12 @@ describe 'PatchedrpmRpmDistribution' do
44
44
  end
45
45
  end
46
46
 
47
+ describe 'test attribute "pulp_labels"' do
48
+ it 'should work' do
49
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
+ end
51
+ end
52
+
47
53
  describe 'test attribute "name"' do
48
54
  it 'should work' do
49
55
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -86,6 +86,12 @@ describe 'PatchedrpmRpmRemote' do
86
86
  end
87
87
  end
88
88
 
89
+ describe 'test attribute "pulp_labels"' do
90
+ it 'should work' do
91
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
92
+ end
93
+ end
94
+
89
95
  describe 'test attribute "download_concurrency"' do
90
96
  it 'should work' do
91
97
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -98,6 +104,36 @@ describe 'PatchedrpmRpmRemote' do
98
104
  end
99
105
  end
100
106
 
107
+ describe 'test attribute "total_timeout"' do
108
+ it 'should work' do
109
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
110
+ end
111
+ end
112
+
113
+ describe 'test attribute "connect_timeout"' do
114
+ it 'should work' do
115
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
116
+ end
117
+ end
118
+
119
+ describe 'test attribute "sock_connect_timeout"' do
120
+ it 'should work' do
121
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
122
+ end
123
+ end
124
+
125
+ describe 'test attribute "sock_read_timeout"' do
126
+ it 'should work' do
127
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
128
+ end
129
+ end
130
+
131
+ describe 'test attribute "rate_limit"' do
132
+ it 'should work' do
133
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
134
+ end
135
+ end
136
+
101
137
  describe 'test attribute "sles_auth_token"' do
102
138
  it 'should work' do
103
139
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -32,6 +32,12 @@ describe 'PatchedrpmRpmRepository' do
32
32
  expect(@instance).to be_instance_of(PulpRpmClient::PatchedrpmRpmRepository)
33
33
  end
34
34
  end
35
+ describe 'test attribute "pulp_labels"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
35
41
  describe 'test attribute "name"' do
36
42
  it 'should work' do
37
43
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers