pulp_gem_client 0.7.5 → 0.7.6

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 (50) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -4
  3. data/docs/ContentGemApi.md +8 -6
  4. data/docs/DistributionsGemApi.md +4 -4
  5. data/docs/GemGemDistribution.md +2 -0
  6. data/docs/GemGemDistributionResponse.md +4 -0
  7. data/docs/GemGemRemote.md +6 -6
  8. data/docs/GemGemRemoteResponse.md +8 -8
  9. data/docs/GemGemRepository.md +2 -0
  10. data/docs/GemGemRepositoryResponse.md +2 -0
  11. data/docs/PatchedgemGemDistribution.md +2 -0
  12. data/docs/PatchedgemGemRemote.md +6 -6
  13. data/docs/PatchedgemGemRepository.md +2 -0
  14. data/docs/PublicationsGemApi.md +2 -2
  15. data/docs/RepositoriesGemApi.md +20 -4
  16. data/docs/RepositoryAddRemoveContent.md +3 -1
  17. data/lib/pulp_gem_client/api/content_gem_api.rb +9 -6
  18. data/lib/pulp_gem_client/api/distributions_gem_api.rb +4 -4
  19. data/lib/pulp_gem_client/api/publications_gem_api.rb +2 -2
  20. data/lib/pulp_gem_client/api/repositories_gem_api.rb +29 -5
  21. data/lib/pulp_gem_client/models/gem_gem_distribution.rb +12 -1
  22. data/lib/pulp_gem_client/models/gem_gem_distribution_response.rb +22 -1
  23. data/lib/pulp_gem_client/models/gem_gem_remote.rb +48 -33
  24. data/lib/pulp_gem_client/models/gem_gem_remote_response.rb +60 -45
  25. data/lib/pulp_gem_client/models/gem_gem_repository.rb +42 -1
  26. data/lib/pulp_gem_client/models/gem_gem_repository_response.rb +42 -1
  27. data/lib/pulp_gem_client/models/patchedgem_gem_distribution.rb +12 -1
  28. data/lib/pulp_gem_client/models/patchedgem_gem_remote.rb +48 -33
  29. data/lib/pulp_gem_client/models/patchedgem_gem_repository.rb +42 -1
  30. data/lib/pulp_gem_client/models/repository_add_remove_content.rb +16 -4
  31. data/lib/pulp_gem_client/models/set_label.rb +0 -11
  32. data/lib/pulp_gem_client/models/set_label_response.rb +0 -21
  33. data/lib/pulp_gem_client/models/unset_label.rb +0 -11
  34. data/lib/pulp_gem_client/models/unset_label_response.rb +0 -21
  35. data/lib/pulp_gem_client/version.rb +1 -1
  36. data/spec/api/content_gem_api_spec.rb +4 -3
  37. data/spec/api/distributions_gem_api_spec.rb +2 -2
  38. data/spec/api/publications_gem_api_spec.rb +1 -1
  39. data/spec/api/repositories_gem_api_spec.rb +10 -2
  40. data/spec/models/gem_gem_distribution_response_spec.rb +12 -0
  41. data/spec/models/gem_gem_distribution_spec.rb +6 -0
  42. data/spec/models/gem_gem_remote_response_spec.rb +10 -10
  43. data/spec/models/gem_gem_remote_spec.rb +17 -17
  44. data/spec/models/gem_gem_repository_response_spec.rb +6 -0
  45. data/spec/models/gem_gem_repository_spec.rb +6 -0
  46. data/spec/models/patchedgem_gem_distribution_spec.rb +6 -0
  47. data/spec/models/patchedgem_gem_remote_spec.rb +17 -17
  48. data/spec/models/patchedgem_gem_repository_spec.rb +6 -0
  49. data/spec/models/repository_add_remove_content_spec.rb +6 -0
  50. metadata +32 -32
@@ -249,13 +249,21 @@ module PulpGemClient
249
249
  # @option opts [String] :name__regex Filter results where name matches regex value
250
250
  # @option opts [String] :name__startswith Filter results where name starts with value
251
251
  # @option opts [Integer] :offset The initial index from which to return the results.
252
- # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;next_version&#x60; - Next version * &#x60;-next_version&#x60; - Next version (descending) * &#x60;retain_repo_versions&#x60; - Retain repo versions * &#x60;-retain_repo_versions&#x60; - Retain repo versions (descending) * &#x60;user_hidden&#x60; - User hidden * &#x60;-user_hidden&#x60; - User hidden (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
252
+ # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;next_version&#x60; - Next version * &#x60;-next_version&#x60; - Next version (descending) * &#x60;retain_repo_versions&#x60; - Retain repo versions * &#x60;-retain_repo_versions&#x60; - Retain repo versions (descending) * &#x60;retain_checkpoints&#x60; - Retain checkpoints * &#x60;-retain_checkpoints&#x60; - Retain checkpoints (descending) * &#x60;user_hidden&#x60; - User hidden * &#x60;-user_hidden&#x60; - User hidden (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
253
253
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
254
254
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
255
255
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
256
256
  # @option opts [String] :pulp_label_select Filter labels by search string
257
257
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
258
- # @option opts [String] :remote Foreign Key referenced by HREF
258
+ # @option opts [String] :remote
259
+ # @option opts [Integer] :retain_checkpoints Filter results where retain_checkpoints matches value
260
+ # @option opts [Integer] :retain_checkpoints__gt Filter results where retain_checkpoints is greater than value
261
+ # @option opts [Integer] :retain_checkpoints__gte Filter results where retain_checkpoints is greater than or equal to value
262
+ # @option opts [Boolean] :retain_checkpoints__isnull Filter results where retain_checkpoints has a null value
263
+ # @option opts [Integer] :retain_checkpoints__lt Filter results where retain_checkpoints is less than value
264
+ # @option opts [Integer] :retain_checkpoints__lte Filter results where retain_checkpoints is less than or equal to value
265
+ # @option opts [Integer] :retain_checkpoints__ne Filter results where retain_checkpoints not equal to value
266
+ # @option opts [Array<Integer>] :retain_checkpoints__range Filter results where retain_checkpoints is between two comma separated values
259
267
  # @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
260
268
  # @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
261
269
  # @option opts [Integer] :retain_repo_versions__gte Filter results where retain_repo_versions is greater than or equal to value
@@ -289,13 +297,21 @@ module PulpGemClient
289
297
  # @option opts [String] :name__regex Filter results where name matches regex value
290
298
  # @option opts [String] :name__startswith Filter results where name starts with value
291
299
  # @option opts [Integer] :offset The initial index from which to return the results.
292
- # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;next_version&#x60; - Next version * &#x60;-next_version&#x60; - Next version (descending) * &#x60;retain_repo_versions&#x60; - Retain repo versions * &#x60;-retain_repo_versions&#x60; - Retain repo versions (descending) * &#x60;user_hidden&#x60; - User hidden * &#x60;-user_hidden&#x60; - User hidden (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
300
+ # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;next_version&#x60; - Next version * &#x60;-next_version&#x60; - Next version (descending) * &#x60;retain_repo_versions&#x60; - Retain repo versions * &#x60;-retain_repo_versions&#x60; - Retain repo versions (descending) * &#x60;retain_checkpoints&#x60; - Retain checkpoints * &#x60;-retain_checkpoints&#x60; - Retain checkpoints (descending) * &#x60;user_hidden&#x60; - User hidden * &#x60;-user_hidden&#x60; - User hidden (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
293
301
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
294
302
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
295
303
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
296
304
  # @option opts [String] :pulp_label_select Filter labels by search string
297
305
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
298
- # @option opts [String] :remote Foreign Key referenced by HREF
306
+ # @option opts [String] :remote
307
+ # @option opts [Integer] :retain_checkpoints Filter results where retain_checkpoints matches value
308
+ # @option opts [Integer] :retain_checkpoints__gt Filter results where retain_checkpoints is greater than value
309
+ # @option opts [Integer] :retain_checkpoints__gte Filter results where retain_checkpoints is greater than or equal to value
310
+ # @option opts [Boolean] :retain_checkpoints__isnull Filter results where retain_checkpoints has a null value
311
+ # @option opts [Integer] :retain_checkpoints__lt Filter results where retain_checkpoints is less than value
312
+ # @option opts [Integer] :retain_checkpoints__lte Filter results where retain_checkpoints is less than or equal to value
313
+ # @option opts [Integer] :retain_checkpoints__ne Filter results where retain_checkpoints not equal to value
314
+ # @option opts [Array<Integer>] :retain_checkpoints__range Filter results where retain_checkpoints is between two comma separated values
299
315
  # @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
300
316
  # @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
301
317
  # @option opts [Integer] :retain_repo_versions__gte Filter results where retain_repo_versions is greater than or equal to value
@@ -312,7 +328,7 @@ module PulpGemClient
312
328
  if @api_client.config.debugging
313
329
  @api_client.config.logger.debug 'Calling API: RepositoriesGemApi.list ...'
314
330
  end
315
- allowable_values = ["-description", "-name", "-next_version", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-retain_repo_versions", "-user_hidden", "description", "name", "next_version", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "retain_repo_versions", "user_hidden"]
331
+ allowable_values = ["-description", "-name", "-next_version", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-retain_checkpoints", "-retain_repo_versions", "-user_hidden", "description", "name", "next_version", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "retain_checkpoints", "retain_repo_versions", "user_hidden"]
316
332
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
317
333
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
318
334
  end
@@ -340,6 +356,14 @@ module PulpGemClient
340
356
  query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
341
357
  query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
342
358
  query_params[:'remote'] = opts[:'remote'] if !opts[:'remote'].nil?
359
+ query_params[:'retain_checkpoints'] = opts[:'retain_checkpoints'] if !opts[:'retain_checkpoints'].nil?
360
+ query_params[:'retain_checkpoints__gt'] = opts[:'retain_checkpoints__gt'] if !opts[:'retain_checkpoints__gt'].nil?
361
+ query_params[:'retain_checkpoints__gte'] = opts[:'retain_checkpoints__gte'] if !opts[:'retain_checkpoints__gte'].nil?
362
+ query_params[:'retain_checkpoints__isnull'] = opts[:'retain_checkpoints__isnull'] if !opts[:'retain_checkpoints__isnull'].nil?
363
+ query_params[:'retain_checkpoints__lt'] = opts[:'retain_checkpoints__lt'] if !opts[:'retain_checkpoints__lt'].nil?
364
+ query_params[:'retain_checkpoints__lte'] = opts[:'retain_checkpoints__lte'] if !opts[:'retain_checkpoints__lte'].nil?
365
+ query_params[:'retain_checkpoints__ne'] = opts[:'retain_checkpoints__ne'] if !opts[:'retain_checkpoints__ne'].nil?
366
+ query_params[:'retain_checkpoints__range'] = @api_client.build_collection_param(opts[:'retain_checkpoints__range'], :csv) if !opts[:'retain_checkpoints__range'].nil?
343
367
  query_params[:'retain_repo_versions'] = opts[:'retain_repo_versions'] if !opts[:'retain_repo_versions'].nil?
344
368
  query_params[:'retain_repo_versions__gt'] = opts[:'retain_repo_versions__gt'] if !opts[:'retain_repo_versions__gt'].nil?
345
369
  query_params[:'retain_repo_versions__gte'] = opts[:'retain_repo_versions__gte'] if !opts[:'retain_repo_versions__gte'].nil?
@@ -33,6 +33,9 @@ module PulpGemClient
33
33
  # The latest RepositoryVersion for this Repository will be served.
34
34
  attr_accessor :repository
35
35
 
36
+ # RepositoryVersion to be served
37
+ attr_accessor :repository_version
38
+
36
39
  # Publication to be served
37
40
  attr_accessor :publication
38
41
 
@@ -48,6 +51,7 @@ module PulpGemClient
48
51
  :'pulp_labels' => :'pulp_labels',
49
52
  :'name' => :'name',
50
53
  :'repository' => :'repository',
54
+ :'repository_version' => :'repository_version',
51
55
  :'publication' => :'publication',
52
56
  :'remote' => :'remote'
53
57
  }
@@ -67,6 +71,7 @@ module PulpGemClient
67
71
  :'pulp_labels' => :'Hash<String, String>',
68
72
  :'name' => :'String',
69
73
  :'repository' => :'String',
74
+ :'repository_version' => :'String',
70
75
  :'publication' => :'String',
71
76
  :'remote' => :'String'
72
77
  }
@@ -77,6 +82,7 @@ module PulpGemClient
77
82
  Set.new([
78
83
  :'content_guard',
79
84
  :'repository',
85
+ :'repository_version',
80
86
  :'publication',
81
87
  :'remote'
82
88
  ])
@@ -129,6 +135,10 @@ module PulpGemClient
129
135
  self.repository = attributes[:'repository']
130
136
  end
131
137
 
138
+ if attributes.key?(:'repository_version')
139
+ self.repository_version = attributes[:'repository_version']
140
+ end
141
+
132
142
  if attributes.key?(:'publication')
133
143
  self.publication = attributes[:'publication']
134
144
  end
@@ -212,6 +222,7 @@ module PulpGemClient
212
222
  pulp_labels == o.pulp_labels &&
213
223
  name == o.name &&
214
224
  repository == o.repository &&
225
+ repository_version == o.repository_version &&
215
226
  publication == o.publication &&
216
227
  remote == o.remote
217
228
  end
@@ -225,7 +236,7 @@ module PulpGemClient
225
236
  # Calculates hash code according to all attributes.
226
237
  # @return [Integer] Hash code
227
238
  def hash
228
- [base_path, content_guard, hidden, pulp_labels, name, repository, publication, remote].hash
239
+ [base_path, content_guard, hidden, pulp_labels, name, repository, repository_version, publication, remote].hash
229
240
  end
230
241
 
231
242
  # Builds the object from hash
@@ -36,6 +36,9 @@ module PulpGemClient
36
36
  # An optional content-guard.
37
37
  attr_accessor :content_guard
38
38
 
39
+ # The Pulp Resource Name (PRN) of the associated optional content guard.
40
+ attr_accessor :content_guard_prn
41
+
39
42
  # Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
40
43
  attr_accessor :no_content_change_since
41
44
 
@@ -50,6 +53,9 @@ module PulpGemClient
50
53
  # The latest RepositoryVersion for this Repository will be served.
51
54
  attr_accessor :repository
52
55
 
56
+ # RepositoryVersion to be served
57
+ attr_accessor :repository_version
58
+
53
59
  # Publication to be served
54
60
  attr_accessor :publication
55
61
 
@@ -66,11 +72,13 @@ module PulpGemClient
66
72
  :'base_path' => :'base_path',
67
73
  :'base_url' => :'base_url',
68
74
  :'content_guard' => :'content_guard',
75
+ :'content_guard_prn' => :'content_guard_prn',
69
76
  :'no_content_change_since' => :'no_content_change_since',
70
77
  :'hidden' => :'hidden',
71
78
  :'pulp_labels' => :'pulp_labels',
72
79
  :'name' => :'name',
73
80
  :'repository' => :'repository',
81
+ :'repository_version' => :'repository_version',
74
82
  :'publication' => :'publication',
75
83
  :'remote' => :'remote'
76
84
  }
@@ -91,11 +99,13 @@ module PulpGemClient
91
99
  :'base_path' => :'String',
92
100
  :'base_url' => :'String',
93
101
  :'content_guard' => :'String',
102
+ :'content_guard_prn' => :'String',
94
103
  :'no_content_change_since' => :'String',
95
104
  :'hidden' => :'Boolean',
96
105
  :'pulp_labels' => :'Hash<String, String>',
97
106
  :'name' => :'String',
98
107
  :'repository' => :'String',
108
+ :'repository_version' => :'String',
99
109
  :'publication' => :'String',
100
110
  :'remote' => :'String'
101
111
  }
@@ -106,6 +116,7 @@ module PulpGemClient
106
116
  Set.new([
107
117
  :'content_guard',
108
118
  :'repository',
119
+ :'repository_version',
109
120
  :'publication',
110
121
  :'remote'
111
122
  ])
@@ -156,6 +167,10 @@ module PulpGemClient
156
167
  self.content_guard = attributes[:'content_guard']
157
168
  end
158
169
 
170
+ if attributes.key?(:'content_guard_prn')
171
+ self.content_guard_prn = attributes[:'content_guard_prn']
172
+ end
173
+
159
174
  if attributes.key?(:'no_content_change_since')
160
175
  self.no_content_change_since = attributes[:'no_content_change_since']
161
176
  end
@@ -182,6 +197,10 @@ module PulpGemClient
182
197
  self.repository = attributes[:'repository']
183
198
  end
184
199
 
200
+ if attributes.key?(:'repository_version')
201
+ self.repository_version = attributes[:'repository_version']
202
+ end
203
+
185
204
  if attributes.key?(:'publication')
186
205
  self.publication = attributes[:'publication']
187
206
  end
@@ -228,11 +247,13 @@ module PulpGemClient
228
247
  base_path == o.base_path &&
229
248
  base_url == o.base_url &&
230
249
  content_guard == o.content_guard &&
250
+ content_guard_prn == o.content_guard_prn &&
231
251
  no_content_change_since == o.no_content_change_since &&
232
252
  hidden == o.hidden &&
233
253
  pulp_labels == o.pulp_labels &&
234
254
  name == o.name &&
235
255
  repository == o.repository &&
256
+ repository_version == o.repository_version &&
236
257
  publication == o.publication &&
237
258
  remote == o.remote
238
259
  end
@@ -246,7 +267,7 @@ module PulpGemClient
246
267
  # Calculates hash code according to all attributes.
247
268
  # @return [Integer] Hash code
248
269
  def hash
249
- [pulp_href, prn, pulp_created, pulp_last_updated, base_path, base_url, content_guard, no_content_change_since, hidden, pulp_labels, name, repository, publication, remote].hash
270
+ [pulp_href, prn, pulp_created, pulp_last_updated, base_path, base_url, content_guard, content_guard_prn, no_content_change_since, hidden, pulp_labels, name, repository, repository_version, publication, remote].hash
250
271
  end
251
272
 
252
273
  # Builds the object from hash
@@ -22,6 +22,11 @@ module PulpGemClient
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 PulpGemClient
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 PulpGemClient
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
 
@@ -111,6 +111,8 @@ module PulpGemClient
111
111
  {
112
112
  :'name' => :'name',
113
113
  :'url' => :'url',
114
+ :'pulp_labels' => :'pulp_labels',
115
+ :'policy' => :'policy',
114
116
  :'ca_cert' => :'ca_cert',
115
117
  :'client_cert' => :'client_cert',
116
118
  :'client_key' => :'client_key',
@@ -120,15 +122,13 @@ module PulpGemClient
120
122
  :'proxy_password' => :'proxy_password',
121
123
  :'username' => :'username',
122
124
  :'password' => :'password',
123
- :'pulp_labels' => :'pulp_labels',
124
- :'download_concurrency' => :'download_concurrency',
125
125
  :'max_retries' => :'max_retries',
126
- :'policy' => :'policy',
127
126
  :'total_timeout' => :'total_timeout',
128
127
  :'connect_timeout' => :'connect_timeout',
129
128
  :'sock_connect_timeout' => :'sock_connect_timeout',
130
129
  :'sock_read_timeout' => :'sock_read_timeout',
131
130
  :'headers' => :'headers',
131
+ :'download_concurrency' => :'download_concurrency',
132
132
  :'rate_limit' => :'rate_limit',
133
133
  :'prereleases' => :'prereleases',
134
134
  :'includes' => :'includes',
@@ -146,6 +146,8 @@ module PulpGemClient
146
146
  {
147
147
  :'name' => :'String',
148
148
  :'url' => :'String',
149
+ :'pulp_labels' => :'Hash<String, String>',
150
+ :'policy' => :'PolicyEnum',
149
151
  :'ca_cert' => :'String',
150
152
  :'client_cert' => :'String',
151
153
  :'client_key' => :'String',
@@ -155,15 +157,13 @@ module PulpGemClient
155
157
  :'proxy_password' => :'String',
156
158
  :'username' => :'String',
157
159
  :'password' => :'String',
158
- :'pulp_labels' => :'Hash<String, String>',
159
- :'download_concurrency' => :'Integer',
160
160
  :'max_retries' => :'Integer',
161
- :'policy' => :'PolicyEnum',
162
161
  :'total_timeout' => :'Float',
163
162
  :'connect_timeout' => :'Float',
164
163
  :'sock_connect_timeout' => :'Float',
165
164
  :'sock_read_timeout' => :'Float',
166
165
  :'headers' => :'Array<Object>',
166
+ :'download_concurrency' => :'Integer',
167
167
  :'rate_limit' => :'Integer',
168
168
  :'prereleases' => :'Boolean',
169
169
  :'includes' => :'Hash<String, String>',
@@ -182,12 +182,12 @@ module PulpGemClient
182
182
  :'proxy_password',
183
183
  :'username',
184
184
  :'password',
185
- :'download_concurrency',
186
185
  :'max_retries',
187
186
  :'total_timeout',
188
187
  :'connect_timeout',
189
188
  :'sock_connect_timeout',
190
189
  :'sock_read_timeout',
190
+ :'download_concurrency',
191
191
  :'rate_limit',
192
192
  ])
193
193
  end
@@ -219,6 +219,16 @@ module PulpGemClient
219
219
  self.url = nil
220
220
  end
221
221
 
222
+ if attributes.key?(:'pulp_labels')
223
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
224
+ self.pulp_labels = value
225
+ end
226
+ end
227
+
228
+ if attributes.key?(:'policy')
229
+ self.policy = attributes[:'policy']
230
+ end
231
+
222
232
  if attributes.key?(:'ca_cert')
223
233
  self.ca_cert = attributes[:'ca_cert']
224
234
  end
@@ -255,24 +265,10 @@ module PulpGemClient
255
265
  self.password = attributes[:'password']
256
266
  end
257
267
 
258
- if attributes.key?(:'pulp_labels')
259
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
260
- self.pulp_labels = value
261
- end
262
- end
263
-
264
- if attributes.key?(:'download_concurrency')
265
- self.download_concurrency = attributes[:'download_concurrency']
266
- end
267
-
268
268
  if attributes.key?(:'max_retries')
269
269
  self.max_retries = attributes[:'max_retries']
270
270
  end
271
271
 
272
- if attributes.key?(:'policy')
273
- self.policy = attributes[:'policy']
274
- end
275
-
276
272
  if attributes.key?(:'total_timeout')
277
273
  self.total_timeout = attributes[:'total_timeout']
278
274
  end
@@ -295,6 +291,10 @@ module PulpGemClient
295
291
  end
296
292
  end
297
293
 
294
+ if attributes.key?(:'download_concurrency')
295
+ self.download_concurrency = attributes[:'download_concurrency']
296
+ end
297
+
298
298
  if attributes.key?(:'rate_limit')
299
299
  self.rate_limit = attributes[:'rate_limit']
300
300
  end
@@ -387,6 +387,10 @@ module PulpGemClient
387
387
  invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
388
388
  end
389
389
 
390
+ if !@download_concurrency.nil? && @download_concurrency < 1
391
+ invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
392
+ end
393
+
390
394
  invalid_properties
391
395
  end
392
396
 
@@ -410,6 +414,7 @@ module PulpGemClient
410
414
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
411
415
  return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
412
416
  return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
417
+ return false if !@download_concurrency.nil? && @download_concurrency < 1
413
418
  true
414
419
  end
415
420
 
@@ -561,6 +566,16 @@ module PulpGemClient
561
566
  @sock_read_timeout = sock_read_timeout
562
567
  end
563
568
 
569
+ # Custom attribute writer method with validation
570
+ # @param [Object] download_concurrency Value to be assigned
571
+ def download_concurrency=(download_concurrency)
572
+ if !download_concurrency.nil? && download_concurrency < 1
573
+ fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
574
+ end
575
+
576
+ @download_concurrency = download_concurrency
577
+ end
578
+
564
579
  # Checks equality by comparing each attribute.
565
580
  # @param [Object] Object to be compared
566
581
  def ==(o)
@@ -568,6 +583,8 @@ module PulpGemClient
568
583
  self.class == o.class &&
569
584
  name == o.name &&
570
585
  url == o.url &&
586
+ pulp_labels == o.pulp_labels &&
587
+ policy == o.policy &&
571
588
  ca_cert == o.ca_cert &&
572
589
  client_cert == o.client_cert &&
573
590
  client_key == o.client_key &&
@@ -577,15 +594,13 @@ module PulpGemClient
577
594
  proxy_password == o.proxy_password &&
578
595
  username == o.username &&
579
596
  password == o.password &&
580
- pulp_labels == o.pulp_labels &&
581
- download_concurrency == o.download_concurrency &&
582
597
  max_retries == o.max_retries &&
583
- policy == o.policy &&
584
598
  total_timeout == o.total_timeout &&
585
599
  connect_timeout == o.connect_timeout &&
586
600
  sock_connect_timeout == o.sock_connect_timeout &&
587
601
  sock_read_timeout == o.sock_read_timeout &&
588
602
  headers == o.headers &&
603
+ download_concurrency == o.download_concurrency &&
589
604
  rate_limit == o.rate_limit &&
590
605
  prereleases == o.prereleases &&
591
606
  includes == o.includes &&
@@ -601,7 +616,7 @@ module PulpGemClient
601
616
  # Calculates hash code according to all attributes.
602
617
  # @return [Integer] Hash code
603
618
  def hash
604
- [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, prereleases, includes, excludes].hash
619
+ [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, prereleases, includes, excludes].hash
605
620
  end
606
621
 
607
622
  # Builds the object from hash