pulp_maven_client 0.12.0 → 0.14.0

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 (51) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +6 -4
  3. data/docs/ContentArtifactApi.md +6 -6
  4. data/docs/DistributionsMavenApi.md +4 -4
  5. data/docs/MavenMavenArtifact.md +2 -0
  6. data/docs/MavenMavenDistribution.md +2 -0
  7. data/docs/MavenMavenDistributionResponse.md +4 -0
  8. data/docs/MavenMavenRemote.md +6 -6
  9. data/docs/MavenMavenRemoteResponse.md +9 -9
  10. data/docs/MavenMavenRepository.md +2 -0
  11. data/docs/MavenMavenRepositoryResponse.md +2 -0
  12. data/docs/PatchedmavenMavenDistribution.md +2 -0
  13. data/docs/PatchedmavenMavenRemote.md +6 -6
  14. data/docs/PatchedmavenMavenRepository.md +2 -0
  15. data/docs/RepositoriesMavenApi.md +97 -4
  16. data/docs/RepositoryAddRemoveContent.md +24 -0
  17. data/lib/pulp_maven_client/api/content_artifact_api.rb +6 -6
  18. data/lib/pulp_maven_client/api/distributions_maven_api.rb +4 -4
  19. data/lib/pulp_maven_client/api/repositories_maven_api.rb +106 -5
  20. data/lib/pulp_maven_client/models/maven_maven_artifact.rb +11 -1
  21. data/lib/pulp_maven_client/models/maven_maven_distribution.rb +12 -1
  22. data/lib/pulp_maven_client/models/maven_maven_distribution_response.rb +22 -1
  23. data/lib/pulp_maven_client/models/maven_maven_remote.rb +48 -33
  24. data/lib/pulp_maven_client/models/maven_maven_remote_response.rb +64 -49
  25. data/lib/pulp_maven_client/models/maven_maven_repository.rb +42 -1
  26. data/lib/pulp_maven_client/models/maven_maven_repository_response.rb +42 -1
  27. data/lib/pulp_maven_client/models/patchedmaven_maven_distribution.rb +12 -1
  28. data/lib/pulp_maven_client/models/patchedmaven_maven_remote.rb +48 -33
  29. data/lib/pulp_maven_client/models/patchedmaven_maven_repository.rb +42 -1
  30. data/lib/pulp_maven_client/models/repository_add_remove_content.rb +252 -0
  31. data/lib/pulp_maven_client/models/set_label.rb +0 -11
  32. data/lib/pulp_maven_client/models/set_label_response.rb +0 -21
  33. data/lib/pulp_maven_client/models/unset_label.rb +0 -11
  34. data/lib/pulp_maven_client/models/unset_label_response.rb +0 -21
  35. data/lib/pulp_maven_client/version.rb +1 -1
  36. data/lib/pulp_maven_client.rb +1 -0
  37. data/spec/api/content_artifact_api_spec.rb +3 -3
  38. data/spec/api/distributions_maven_api_spec.rb +2 -2
  39. data/spec/api/repositories_maven_api_spec.rb +24 -2
  40. data/spec/models/maven_maven_artifact_spec.rb +6 -0
  41. data/spec/models/maven_maven_distribution_response_spec.rb +12 -0
  42. data/spec/models/maven_maven_distribution_spec.rb +6 -0
  43. data/spec/models/maven_maven_remote_response_spec.rb +10 -10
  44. data/spec/models/maven_maven_remote_spec.rb +17 -17
  45. data/spec/models/maven_maven_repository_response_spec.rb +6 -0
  46. data/spec/models/maven_maven_repository_spec.rb +6 -0
  47. data/spec/models/patchedmaven_maven_distribution_spec.rb +6 -0
  48. data/spec/models/patchedmaven_maven_remote_spec.rb +17 -17
  49. data/spec/models/patchedmaven_maven_repository_spec.rb +6 -0
  50. data/spec/models/repository_add_remove_content_spec.rb +54 -0
  51. metadata +28 -24
@@ -249,13 +249,21 @@ module PulpMavenClient
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 PulpMavenClient
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 PulpMavenClient
312
328
  if @api_client.config.debugging
313
329
  @api_client.config.logger.debug 'Calling API: RepositoriesMavenApi.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 PulpMavenClient
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?
@@ -387,6 +411,83 @@ module PulpMavenClient
387
411
  return data, status_code, headers
388
412
  end
389
413
 
414
+ # Modify Repository Content
415
+ # Trigger an asynchronous task to create a new repository version.
416
+ # @param maven_maven_repository_href [String]
417
+ # @param repository_add_remove_content [RepositoryAddRemoveContent]
418
+ # @param [Hash] opts the optional parameters
419
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
420
+ # @return [AsyncOperationResponse]
421
+ def modify(maven_maven_repository_href, repository_add_remove_content, opts = {})
422
+ data, _status_code, _headers = modify_with_http_info(maven_maven_repository_href, repository_add_remove_content, opts)
423
+ data
424
+ end
425
+
426
+ # Modify Repository Content
427
+ # Trigger an asynchronous task to create a new repository version.
428
+ # @param maven_maven_repository_href [String]
429
+ # @param repository_add_remove_content [RepositoryAddRemoveContent]
430
+ # @param [Hash] opts the optional parameters
431
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
432
+ # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
433
+ def modify_with_http_info(maven_maven_repository_href, repository_add_remove_content, opts = {})
434
+ if @api_client.config.debugging
435
+ @api_client.config.logger.debug 'Calling API: RepositoriesMavenApi.modify ...'
436
+ end
437
+ # verify the required parameter 'maven_maven_repository_href' is set
438
+ if @api_client.config.client_side_validation && maven_maven_repository_href.nil?
439
+ fail ArgumentError, "Missing the required parameter 'maven_maven_repository_href' when calling RepositoriesMavenApi.modify"
440
+ end
441
+ # verify the required parameter 'repository_add_remove_content' is set
442
+ if @api_client.config.client_side_validation && repository_add_remove_content.nil?
443
+ fail ArgumentError, "Missing the required parameter 'repository_add_remove_content' when calling RepositoriesMavenApi.modify"
444
+ end
445
+ # resource path
446
+ local_var_path = '{maven_maven_repository_href}modify/'.sub('{' + 'maven_maven_repository_href' + '}', CGI.escape(maven_maven_repository_href.to_s).gsub('%2F', '/'))
447
+
448
+ # query parameters
449
+ query_params = opts[:query_params] || {}
450
+
451
+ # header parameters
452
+ header_params = opts[:header_params] || {}
453
+ # HTTP header 'Accept' (if needed)
454
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
455
+ # HTTP header 'Content-Type'
456
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
457
+ if !content_type.nil?
458
+ header_params['Content-Type'] = content_type
459
+ end
460
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
461
+
462
+ # form parameters
463
+ form_params = opts[:form_params] || {}
464
+
465
+ # http body (model)
466
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(repository_add_remove_content)
467
+
468
+ # return_type
469
+ return_type = opts[:debug_return_type] || 'AsyncOperationResponse'
470
+
471
+ # auth_names
472
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
473
+
474
+ new_options = opts.merge(
475
+ :operation => :"RepositoriesMavenApi.modify",
476
+ :header_params => header_params,
477
+ :query_params => query_params,
478
+ :form_params => form_params,
479
+ :body => post_body,
480
+ :auth_names => auth_names,
481
+ :return_type => return_type
482
+ )
483
+
484
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
485
+ if @api_client.config.debugging
486
+ @api_client.config.logger.debug "API called: RepositoriesMavenApi#modify\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
487
+ end
488
+ return data, status_code, headers
489
+ end
490
+
390
491
  # Update a maven repository
391
492
  # Update the entity partially and trigger an asynchronous task if necessary
392
493
  # @param maven_maven_repository_href [String]
@@ -19,6 +19,9 @@ module PulpMavenClient
19
19
  # A URI of a repository the new content unit should be associated with.
20
20
  attr_accessor :repository
21
21
 
22
+ # When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when 'repository' is specified. Defaults to true.
23
+ attr_accessor :overwrite
24
+
22
25
  # A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
23
26
  attr_accessor :pulp_labels
24
27
 
@@ -32,6 +35,7 @@ module PulpMavenClient
32
35
  def self.attribute_map
33
36
  {
34
37
  :'repository' => :'repository',
38
+ :'overwrite' => :'overwrite',
35
39
  :'pulp_labels' => :'pulp_labels',
36
40
  :'artifact' => :'artifact',
37
41
  :'relative_path' => :'relative_path'
@@ -47,6 +51,7 @@ module PulpMavenClient
47
51
  def self.openapi_types
48
52
  {
49
53
  :'repository' => :'String',
54
+ :'overwrite' => :'Boolean',
50
55
  :'pulp_labels' => :'Hash<String, String>',
51
56
  :'artifact' => :'String',
52
57
  :'relative_path' => :'String'
@@ -78,6 +83,10 @@ module PulpMavenClient
78
83
  self.repository = attributes[:'repository']
79
84
  end
80
85
 
86
+ if attributes.key?(:'overwrite')
87
+ self.overwrite = attributes[:'overwrite']
88
+ end
89
+
81
90
  if attributes.key?(:'pulp_labels')
82
91
  if (value = attributes[:'pulp_labels']).is_a?(Hash)
83
92
  self.pulp_labels = value
@@ -147,6 +156,7 @@ module PulpMavenClient
147
156
  return true if self.equal?(o)
148
157
  self.class == o.class &&
149
158
  repository == o.repository &&
159
+ overwrite == o.overwrite &&
150
160
  pulp_labels == o.pulp_labels &&
151
161
  artifact == o.artifact &&
152
162
  relative_path == o.relative_path
@@ -161,7 +171,7 @@ module PulpMavenClient
161
171
  # Calculates hash code according to all attributes.
162
172
  # @return [Integer] Hash code
163
173
  def hash
164
- [repository, pulp_labels, artifact, relative_path].hash
174
+ [repository, overwrite, pulp_labels, artifact, relative_path].hash
165
175
  end
166
176
 
167
177
  # Builds the object from hash
@@ -33,6 +33,9 @@ module PulpMavenClient
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
  # Remote that can be used to fetch content when using pull-through caching.
37
40
  attr_accessor :remote
38
41
 
@@ -45,6 +48,7 @@ module PulpMavenClient
45
48
  :'pulp_labels' => :'pulp_labels',
46
49
  :'name' => :'name',
47
50
  :'repository' => :'repository',
51
+ :'repository_version' => :'repository_version',
48
52
  :'remote' => :'remote'
49
53
  }
50
54
  end
@@ -63,6 +67,7 @@ module PulpMavenClient
63
67
  :'pulp_labels' => :'Hash<String, String>',
64
68
  :'name' => :'String',
65
69
  :'repository' => :'String',
70
+ :'repository_version' => :'String',
66
71
  :'remote' => :'String'
67
72
  }
68
73
  end
@@ -72,6 +77,7 @@ module PulpMavenClient
72
77
  Set.new([
73
78
  :'content_guard',
74
79
  :'repository',
80
+ :'repository_version',
75
81
  :'remote'
76
82
  ])
77
83
  end
@@ -123,6 +129,10 @@ module PulpMavenClient
123
129
  self.repository = attributes[:'repository']
124
130
  end
125
131
 
132
+ if attributes.key?(:'repository_version')
133
+ self.repository_version = attributes[:'repository_version']
134
+ end
135
+
126
136
  if attributes.key?(:'remote')
127
137
  self.remote = attributes[:'remote']
128
138
  end
@@ -202,6 +212,7 @@ module PulpMavenClient
202
212
  pulp_labels == o.pulp_labels &&
203
213
  name == o.name &&
204
214
  repository == o.repository &&
215
+ repository_version == o.repository_version &&
205
216
  remote == o.remote
206
217
  end
207
218
 
@@ -214,7 +225,7 @@ module PulpMavenClient
214
225
  # Calculates hash code according to all attributes.
215
226
  # @return [Integer] Hash code
216
227
  def hash
217
- [base_path, content_guard, hidden, pulp_labels, name, repository, remote].hash
228
+ [base_path, content_guard, hidden, pulp_labels, name, repository, repository_version, remote].hash
218
229
  end
219
230
 
220
231
  # Builds the object from hash
@@ -36,6 +36,9 @@ module PulpMavenClient
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 PulpMavenClient
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
  # Remote that can be used to fetch content when using pull-through caching.
54
60
  attr_accessor :remote
55
61
 
@@ -63,11 +69,13 @@ module PulpMavenClient
63
69
  :'base_path' => :'base_path',
64
70
  :'base_url' => :'base_url',
65
71
  :'content_guard' => :'content_guard',
72
+ :'content_guard_prn' => :'content_guard_prn',
66
73
  :'no_content_change_since' => :'no_content_change_since',
67
74
  :'hidden' => :'hidden',
68
75
  :'pulp_labels' => :'pulp_labels',
69
76
  :'name' => :'name',
70
77
  :'repository' => :'repository',
78
+ :'repository_version' => :'repository_version',
71
79
  :'remote' => :'remote'
72
80
  }
73
81
  end
@@ -87,11 +95,13 @@ module PulpMavenClient
87
95
  :'base_path' => :'String',
88
96
  :'base_url' => :'String',
89
97
  :'content_guard' => :'String',
98
+ :'content_guard_prn' => :'String',
90
99
  :'no_content_change_since' => :'String',
91
100
  :'hidden' => :'Boolean',
92
101
  :'pulp_labels' => :'Hash<String, String>',
93
102
  :'name' => :'String',
94
103
  :'repository' => :'String',
104
+ :'repository_version' => :'String',
95
105
  :'remote' => :'String'
96
106
  }
97
107
  end
@@ -101,6 +111,7 @@ module PulpMavenClient
101
111
  Set.new([
102
112
  :'content_guard',
103
113
  :'repository',
114
+ :'repository_version',
104
115
  :'remote'
105
116
  ])
106
117
  end
@@ -150,6 +161,10 @@ module PulpMavenClient
150
161
  self.content_guard = attributes[:'content_guard']
151
162
  end
152
163
 
164
+ if attributes.key?(:'content_guard_prn')
165
+ self.content_guard_prn = attributes[:'content_guard_prn']
166
+ end
167
+
153
168
  if attributes.key?(:'no_content_change_since')
154
169
  self.no_content_change_since = attributes[:'no_content_change_since']
155
170
  end
@@ -176,6 +191,10 @@ module PulpMavenClient
176
191
  self.repository = attributes[:'repository']
177
192
  end
178
193
 
194
+ if attributes.key?(:'repository_version')
195
+ self.repository_version = attributes[:'repository_version']
196
+ end
197
+
179
198
  if attributes.key?(:'remote')
180
199
  self.remote = attributes[:'remote']
181
200
  end
@@ -218,11 +237,13 @@ module PulpMavenClient
218
237
  base_path == o.base_path &&
219
238
  base_url == o.base_url &&
220
239
  content_guard == o.content_guard &&
240
+ content_guard_prn == o.content_guard_prn &&
221
241
  no_content_change_since == o.no_content_change_since &&
222
242
  hidden == o.hidden &&
223
243
  pulp_labels == o.pulp_labels &&
224
244
  name == o.name &&
225
245
  repository == o.repository &&
246
+ repository_version == o.repository_version &&
226
247
  remote == o.remote
227
248
  end
228
249
 
@@ -235,7 +256,7 @@ module PulpMavenClient
235
256
  # Calculates hash code according to all attributes.
236
257
  # @return [Integer] Hash code
237
258
  def hash
238
- [pulp_href, prn, pulp_created, pulp_last_updated, base_path, base_url, content_guard, no_content_change_since, hidden, pulp_labels, name, repository, remote].hash
259
+ [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, remote].hash
239
260
  end
240
261
 
241
262
  # Builds the object from hash
@@ -22,6 +22,11 @@ module PulpMavenClient
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. * `immediate` - When syncing, download all metadata and content now.
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 PulpMavenClient
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. * `immediate` - When syncing, download all metadata and content now.
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 PulpMavenClient
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
 
@@ -105,6 +105,8 @@ module PulpMavenClient
105
105
  {
106
106
  :'name' => :'name',
107
107
  :'url' => :'url',
108
+ :'pulp_labels' => :'pulp_labels',
109
+ :'policy' => :'policy',
108
110
  :'ca_cert' => :'ca_cert',
109
111
  :'client_cert' => :'client_cert',
110
112
  :'client_key' => :'client_key',
@@ -114,15 +116,13 @@ module PulpMavenClient
114
116
  :'proxy_password' => :'proxy_password',
115
117
  :'username' => :'username',
116
118
  :'password' => :'password',
117
- :'pulp_labels' => :'pulp_labels',
118
- :'download_concurrency' => :'download_concurrency',
119
119
  :'max_retries' => :'max_retries',
120
- :'policy' => :'policy',
121
120
  :'total_timeout' => :'total_timeout',
122
121
  :'connect_timeout' => :'connect_timeout',
123
122
  :'sock_connect_timeout' => :'sock_connect_timeout',
124
123
  :'sock_read_timeout' => :'sock_read_timeout',
125
124
  :'headers' => :'headers',
125
+ :'download_concurrency' => :'download_concurrency',
126
126
  :'rate_limit' => :'rate_limit'
127
127
  }
128
128
  end
@@ -137,6 +137,8 @@ module PulpMavenClient
137
137
  {
138
138
  :'name' => :'String',
139
139
  :'url' => :'String',
140
+ :'pulp_labels' => :'Hash<String, String>',
141
+ :'policy' => :'PolicyEnum',
140
142
  :'ca_cert' => :'String',
141
143
  :'client_cert' => :'String',
142
144
  :'client_key' => :'String',
@@ -146,15 +148,13 @@ module PulpMavenClient
146
148
  :'proxy_password' => :'String',
147
149
  :'username' => :'String',
148
150
  :'password' => :'String',
149
- :'pulp_labels' => :'Hash<String, String>',
150
- :'download_concurrency' => :'Integer',
151
151
  :'max_retries' => :'Integer',
152
- :'policy' => :'PolicyEnum',
153
152
  :'total_timeout' => :'Float',
154
153
  :'connect_timeout' => :'Float',
155
154
  :'sock_connect_timeout' => :'Float',
156
155
  :'sock_read_timeout' => :'Float',
157
156
  :'headers' => :'Array<Object>',
157
+ :'download_concurrency' => :'Integer',
158
158
  :'rate_limit' => :'Integer'
159
159
  }
160
160
  end
@@ -170,12 +170,12 @@ module PulpMavenClient
170
170
  :'proxy_password',
171
171
  :'username',
172
172
  :'password',
173
- :'download_concurrency',
174
173
  :'max_retries',
175
174
  :'total_timeout',
176
175
  :'connect_timeout',
177
176
  :'sock_connect_timeout',
178
177
  :'sock_read_timeout',
178
+ :'download_concurrency',
179
179
  :'rate_limit'
180
180
  ])
181
181
  end
@@ -207,6 +207,16 @@ module PulpMavenClient
207
207
  self.url = nil
208
208
  end
209
209
 
210
+ if attributes.key?(:'pulp_labels')
211
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
212
+ self.pulp_labels = value
213
+ end
214
+ end
215
+
216
+ if attributes.key?(:'policy')
217
+ self.policy = attributes[:'policy']
218
+ end
219
+
210
220
  if attributes.key?(:'ca_cert')
211
221
  self.ca_cert = attributes[:'ca_cert']
212
222
  end
@@ -243,24 +253,10 @@ module PulpMavenClient
243
253
  self.password = attributes[:'password']
244
254
  end
245
255
 
246
- if attributes.key?(:'pulp_labels')
247
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
248
- self.pulp_labels = value
249
- end
250
- end
251
-
252
- if attributes.key?(:'download_concurrency')
253
- self.download_concurrency = attributes[:'download_concurrency']
254
- end
255
-
256
256
  if attributes.key?(:'max_retries')
257
257
  self.max_retries = attributes[:'max_retries']
258
258
  end
259
259
 
260
- if attributes.key?(:'policy')
261
- self.policy = attributes[:'policy']
262
- end
263
-
264
260
  if attributes.key?(:'total_timeout')
265
261
  self.total_timeout = attributes[:'total_timeout']
266
262
  end
@@ -283,6 +279,10 @@ module PulpMavenClient
283
279
  end
284
280
  end
285
281
 
282
+ if attributes.key?(:'download_concurrency')
283
+ self.download_concurrency = attributes[:'download_concurrency']
284
+ end
285
+
286
286
  if attributes.key?(:'rate_limit')
287
287
  self.rate_limit = attributes[:'rate_limit']
288
288
  end
@@ -357,6 +357,10 @@ module PulpMavenClient
357
357
  invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
358
358
  end
359
359
 
360
+ if !@download_concurrency.nil? && @download_concurrency < 1
361
+ invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
362
+ end
363
+
360
364
  invalid_properties
361
365
  end
362
366
 
@@ -380,6 +384,7 @@ module PulpMavenClient
380
384
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
381
385
  return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
382
386
  return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
387
+ return false if !@download_concurrency.nil? && @download_concurrency < 1
383
388
  true
384
389
  end
385
390
 
@@ -531,6 +536,16 @@ module PulpMavenClient
531
536
  @sock_read_timeout = sock_read_timeout
532
537
  end
533
538
 
539
+ # Custom attribute writer method with validation
540
+ # @param [Object] download_concurrency Value to be assigned
541
+ def download_concurrency=(download_concurrency)
542
+ if !download_concurrency.nil? && download_concurrency < 1
543
+ fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
544
+ end
545
+
546
+ @download_concurrency = download_concurrency
547
+ end
548
+
534
549
  # Checks equality by comparing each attribute.
535
550
  # @param [Object] Object to be compared
536
551
  def ==(o)
@@ -538,6 +553,8 @@ module PulpMavenClient
538
553
  self.class == o.class &&
539
554
  name == o.name &&
540
555
  url == o.url &&
556
+ pulp_labels == o.pulp_labels &&
557
+ policy == o.policy &&
541
558
  ca_cert == o.ca_cert &&
542
559
  client_cert == o.client_cert &&
543
560
  client_key == o.client_key &&
@@ -547,15 +564,13 @@ module PulpMavenClient
547
564
  proxy_password == o.proxy_password &&
548
565
  username == o.username &&
549
566
  password == o.password &&
550
- pulp_labels == o.pulp_labels &&
551
- download_concurrency == o.download_concurrency &&
552
567
  max_retries == o.max_retries &&
553
- policy == o.policy &&
554
568
  total_timeout == o.total_timeout &&
555
569
  connect_timeout == o.connect_timeout &&
556
570
  sock_connect_timeout == o.sock_connect_timeout &&
557
571
  sock_read_timeout == o.sock_read_timeout &&
558
572
  headers == o.headers &&
573
+ download_concurrency == o.download_concurrency &&
559
574
  rate_limit == o.rate_limit
560
575
  end
561
576
 
@@ -568,7 +583,7 @@ module PulpMavenClient
568
583
  # Calculates hash code according to all attributes.
569
584
  # @return [Integer] Hash code
570
585
  def hash
571
- [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].hash
586
+ [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].hash
572
587
  end
573
588
 
574
589
  # Builds the object from hash