pulp_maven_client 0.6.0 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +15 -5
  3. data/docs/ContentArtifactApi.md +3 -1
  4. data/docs/DistributionsMavenApi.md +126 -4
  5. data/docs/MavenMavenArtifact.md +3 -1
  6. data/docs/MavenMavenDistribution.md +2 -0
  7. data/docs/MavenMavenDistributionResponse.md +2 -0
  8. data/docs/PatchedmavenMavenDistribution.md +2 -0
  9. data/docs/PulpMavenApi.md +1 -1
  10. data/docs/RemotesMavenApi.md +123 -1
  11. data/docs/RepositoriesMavenApi.md +124 -2
  12. data/docs/RepositoriesMavenVersionsApi.md +3 -1
  13. data/docs/SetLabel.md +19 -0
  14. data/docs/SetLabelResponse.md +19 -0
  15. data/docs/UnsetLabel.md +17 -0
  16. data/docs/UnsetLabelResponse.md +19 -0
  17. data/lib/pulp_maven_client/api/content_artifact_api.rb +3 -0
  18. data/lib/pulp_maven_client/api/distributions_maven_api.rb +158 -3
  19. data/lib/pulp_maven_client/api/remotes_maven_api.rb +155 -0
  20. data/lib/pulp_maven_client/api/repositories_maven_api.rb +155 -0
  21. data/lib/pulp_maven_client/api/repositories_maven_versions_api.rb +3 -0
  22. data/lib/pulp_maven_client/configuration.rb +2 -2
  23. data/lib/pulp_maven_client/models/maven_maven_artifact.rb +11 -1
  24. data/lib/pulp_maven_client/models/maven_maven_distribution.rb +13 -1
  25. data/lib/pulp_maven_client/models/maven_maven_distribution_response.rb +13 -1
  26. data/lib/pulp_maven_client/models/patchedmaven_maven_distribution.rb +13 -1
  27. data/lib/pulp_maven_client/models/set_label.rb +252 -0
  28. data/lib/pulp_maven_client/models/set_label_response.rb +243 -0
  29. data/lib/pulp_maven_client/models/unset_label.rb +242 -0
  30. data/lib/pulp_maven_client/models/unset_label_response.rb +242 -0
  31. data/lib/pulp_maven_client/version.rb +1 -1
  32. data/lib/pulp_maven_client.rb +4 -0
  33. data/spec/api/content_artifact_api_spec.rb +1 -0
  34. data/spec/api/distributions_maven_api_spec.rb +32 -1
  35. data/spec/api/remotes_maven_api_spec.rb +31 -0
  36. data/spec/api/repositories_maven_api_spec.rb +31 -0
  37. data/spec/api/repositories_maven_versions_api_spec.rb +1 -0
  38. data/spec/configuration_spec.rb +3 -3
  39. data/spec/models/maven_maven_artifact_spec.rb +6 -0
  40. data/spec/models/maven_maven_distribution_response_spec.rb +6 -0
  41. data/spec/models/maven_maven_distribution_spec.rb +6 -0
  42. data/spec/models/patchedmaven_maven_distribution_spec.rb +6 -0
  43. data/spec/models/set_label_response_spec.rb +47 -0
  44. data/spec/models/set_label_spec.rb +47 -0
  45. data/spec/models/unset_label_response_spec.rb +47 -0
  46. data/spec/models/unset_label_spec.rb +41 -0
  47. metadata +34 -18
@@ -152,7 +152,11 @@ module PulpMavenClient
152
152
  # @option opts [String] :name Filter results where name matches value
153
153
  # @option opts [String] :name__contains Filter results where name contains value
154
154
  # @option opts [String] :name__icontains Filter results where name contains value
155
+ # @option opts [String] :name__iexact Filter results where name matches value
155
156
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
157
+ # @option opts [String] :name__iregex Filter results where name matches regex value
158
+ # @option opts [String] :name__istartswith Filter results where name starts with value
159
+ # @option opts [String] :name__regex Filter results where name matches regex value
156
160
  # @option opts [String] :name__startswith Filter results where name starts with value
157
161
  # @option opts [Integer] :offset The initial index from which to return the results.
158
162
  # @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;url&#x60; - Url * &#x60;-url&#x60; - Url (descending) * &#x60;ca_cert&#x60; - Ca cert * &#x60;-ca_cert&#x60; - Ca cert (descending) * &#x60;client_cert&#x60; - Client cert * &#x60;-client_cert&#x60; - Client cert (descending) * &#x60;client_key&#x60; - Client key * &#x60;-client_key&#x60; - Client key (descending) * &#x60;tls_validation&#x60; - Tls validation * &#x60;-tls_validation&#x60; - Tls validation (descending) * &#x60;username&#x60; - Username * &#x60;-username&#x60; - Username (descending) * &#x60;password&#x60; - Password * &#x60;-password&#x60; - Password (descending) * &#x60;proxy_url&#x60; - Proxy url * &#x60;-proxy_url&#x60; - Proxy url (descending) * &#x60;proxy_username&#x60; - Proxy username * &#x60;-proxy_username&#x60; - Proxy username (descending) * &#x60;proxy_password&#x60; - Proxy password * &#x60;-proxy_password&#x60; - Proxy password (descending) * &#x60;download_concurrency&#x60; - Download concurrency * &#x60;-download_concurrency&#x60; - Download concurrency (descending) * &#x60;max_retries&#x60; - Max retries * &#x60;-max_retries&#x60; - Max retries (descending) * &#x60;policy&#x60; - Policy * &#x60;-policy&#x60; - Policy (descending) * &#x60;total_timeout&#x60; - Total timeout * &#x60;-total_timeout&#x60; - Total timeout (descending) * &#x60;connect_timeout&#x60; - Connect timeout * &#x60;-connect_timeout&#x60; - Connect timeout (descending) * &#x60;sock_connect_timeout&#x60; - Sock connect timeout * &#x60;-sock_connect_timeout&#x60; - Sock connect timeout (descending) * &#x60;sock_read_timeout&#x60; - Sock read timeout * &#x60;-sock_read_timeout&#x60; - Sock read timeout (descending) * &#x60;headers&#x60; - Headers * &#x60;-headers&#x60; - Headers (descending) * &#x60;rate_limit&#x60; - Rate limit * &#x60;-rate_limit&#x60; - Rate limit (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
@@ -165,6 +169,7 @@ module PulpMavenClient
165
169
  # @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
166
170
  # @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
167
171
  # @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
172
+ # @option opts [String] :q
168
173
  # @option opts [Array<String>] :fields A list of fields to include in the response.
169
174
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
170
175
  # @return [PaginatedmavenMavenRemoteResponseList]
@@ -180,7 +185,11 @@ module PulpMavenClient
180
185
  # @option opts [String] :name Filter results where name matches value
181
186
  # @option opts [String] :name__contains Filter results where name contains value
182
187
  # @option opts [String] :name__icontains Filter results where name contains value
188
+ # @option opts [String] :name__iexact Filter results where name matches value
183
189
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
190
+ # @option opts [String] :name__iregex Filter results where name matches regex value
191
+ # @option opts [String] :name__istartswith Filter results where name starts with value
192
+ # @option opts [String] :name__regex Filter results where name matches regex value
184
193
  # @option opts [String] :name__startswith Filter results where name starts with value
185
194
  # @option opts [Integer] :offset The initial index from which to return the results.
186
195
  # @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;url&#x60; - Url * &#x60;-url&#x60; - Url (descending) * &#x60;ca_cert&#x60; - Ca cert * &#x60;-ca_cert&#x60; - Ca cert (descending) * &#x60;client_cert&#x60; - Client cert * &#x60;-client_cert&#x60; - Client cert (descending) * &#x60;client_key&#x60; - Client key * &#x60;-client_key&#x60; - Client key (descending) * &#x60;tls_validation&#x60; - Tls validation * &#x60;-tls_validation&#x60; - Tls validation (descending) * &#x60;username&#x60; - Username * &#x60;-username&#x60; - Username (descending) * &#x60;password&#x60; - Password * &#x60;-password&#x60; - Password (descending) * &#x60;proxy_url&#x60; - Proxy url * &#x60;-proxy_url&#x60; - Proxy url (descending) * &#x60;proxy_username&#x60; - Proxy username * &#x60;-proxy_username&#x60; - Proxy username (descending) * &#x60;proxy_password&#x60; - Proxy password * &#x60;-proxy_password&#x60; - Proxy password (descending) * &#x60;download_concurrency&#x60; - Download concurrency * &#x60;-download_concurrency&#x60; - Download concurrency (descending) * &#x60;max_retries&#x60; - Max retries * &#x60;-max_retries&#x60; - Max retries (descending) * &#x60;policy&#x60; - Policy * &#x60;-policy&#x60; - Policy (descending) * &#x60;total_timeout&#x60; - Total timeout * &#x60;-total_timeout&#x60; - Total timeout (descending) * &#x60;connect_timeout&#x60; - Connect timeout * &#x60;-connect_timeout&#x60; - Connect timeout (descending) * &#x60;sock_connect_timeout&#x60; - Sock connect timeout * &#x60;-sock_connect_timeout&#x60; - Sock connect timeout (descending) * &#x60;sock_read_timeout&#x60; - Sock read timeout * &#x60;-sock_read_timeout&#x60; - Sock read timeout (descending) * &#x60;headers&#x60; - Headers * &#x60;-headers&#x60; - Headers (descending) * &#x60;rate_limit&#x60; - Rate limit * &#x60;-rate_limit&#x60; - Rate limit (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
@@ -193,6 +202,7 @@ module PulpMavenClient
193
202
  # @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
194
203
  # @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
195
204
  # @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
205
+ # @option opts [String] :q
196
206
  # @option opts [Array<String>] :fields A list of fields to include in the response.
197
207
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
198
208
  # @return [Array<(PaginatedmavenMavenRemoteResponseList, Integer, Hash)>] PaginatedmavenMavenRemoteResponseList data, response status code and response headers
@@ -213,7 +223,11 @@ module PulpMavenClient
213
223
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
214
224
  query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
215
225
  query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
226
+ query_params[:'name__iexact'] = opts[:'name__iexact'] if !opts[:'name__iexact'].nil?
216
227
  query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
228
+ query_params[:'name__iregex'] = opts[:'name__iregex'] if !opts[:'name__iregex'].nil?
229
+ query_params[:'name__istartswith'] = opts[:'name__istartswith'] if !opts[:'name__istartswith'].nil?
230
+ query_params[:'name__regex'] = opts[:'name__regex'] if !opts[:'name__regex'].nil?
217
231
  query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
218
232
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
219
233
  query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
@@ -226,6 +240,7 @@ module PulpMavenClient
226
240
  query_params[:'pulp_last_updated__lt'] = opts[:'pulp_last_updated__lt'] if !opts[:'pulp_last_updated__lt'].nil?
227
241
  query_params[:'pulp_last_updated__lte'] = opts[:'pulp_last_updated__lte'] if !opts[:'pulp_last_updated__lte'].nil?
228
242
  query_params[:'pulp_last_updated__range'] = @api_client.build_collection_param(opts[:'pulp_last_updated__range'], :csv) if !opts[:'pulp_last_updated__range'].nil?
243
+ query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
229
244
  query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
230
245
  query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
231
246
 
@@ -400,6 +415,146 @@ module PulpMavenClient
400
415
  return data, status_code, headers
401
416
  end
402
417
 
418
+ # Set a label
419
+ # Set a single pulp_label on the object to a specific value or null.
420
+ # @param maven_maven_remote_href [String]
421
+ # @param set_label [SetLabel]
422
+ # @param [Hash] opts the optional parameters
423
+ # @return [SetLabelResponse]
424
+ def set_label(maven_maven_remote_href, set_label, opts = {})
425
+ data, _status_code, _headers = set_label_with_http_info(maven_maven_remote_href, set_label, opts)
426
+ data
427
+ end
428
+
429
+ # Set a label
430
+ # Set a single pulp_label on the object to a specific value or null.
431
+ # @param maven_maven_remote_href [String]
432
+ # @param set_label [SetLabel]
433
+ # @param [Hash] opts the optional parameters
434
+ # @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
435
+ def set_label_with_http_info(maven_maven_remote_href, set_label, opts = {})
436
+ if @api_client.config.debugging
437
+ @api_client.config.logger.debug 'Calling API: RemotesMavenApi.set_label ...'
438
+ end
439
+ # verify the required parameter 'maven_maven_remote_href' is set
440
+ if @api_client.config.client_side_validation && maven_maven_remote_href.nil?
441
+ fail ArgumentError, "Missing the required parameter 'maven_maven_remote_href' when calling RemotesMavenApi.set_label"
442
+ end
443
+ # verify the required parameter 'set_label' is set
444
+ if @api_client.config.client_side_validation && set_label.nil?
445
+ fail ArgumentError, "Missing the required parameter 'set_label' when calling RemotesMavenApi.set_label"
446
+ end
447
+ # resource path
448
+ local_var_path = '{maven_maven_remote_href}set_label/'.sub('{' + 'maven_maven_remote_href' + '}', CGI.escape(maven_maven_remote_href.to_s).gsub('%2F', '/'))
449
+
450
+ # query parameters
451
+ query_params = opts[:query_params] || {}
452
+
453
+ # header parameters
454
+ header_params = opts[:header_params] || {}
455
+ # HTTP header 'Accept' (if needed)
456
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
457
+ # HTTP header 'Content-Type'
458
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
459
+
460
+ # form parameters
461
+ form_params = opts[:form_params] || {}
462
+
463
+ # http body (model)
464
+ post_body = opts[:body] || @api_client.object_to_http_body(set_label)
465
+
466
+ # return_type
467
+ return_type = opts[:return_type] || 'SetLabelResponse'
468
+
469
+ # auth_names
470
+ auth_names = opts[:auth_names] || ['basicAuth']
471
+
472
+ new_options = opts.merge(
473
+ :header_params => header_params,
474
+ :query_params => query_params,
475
+ :form_params => form_params,
476
+ :body => post_body,
477
+ :auth_names => auth_names,
478
+ :return_type => return_type
479
+ )
480
+
481
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
482
+ if @api_client.config.debugging
483
+ @api_client.config.logger.debug "API called: RemotesMavenApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
484
+ end
485
+ return data, status_code, headers
486
+ end
487
+
488
+ # Unset a label
489
+ # Unset a single pulp_label on the object.
490
+ # @param maven_maven_remote_href [String]
491
+ # @param unset_label [UnsetLabel]
492
+ # @param [Hash] opts the optional parameters
493
+ # @return [UnsetLabelResponse]
494
+ def unset_label(maven_maven_remote_href, unset_label, opts = {})
495
+ data, _status_code, _headers = unset_label_with_http_info(maven_maven_remote_href, unset_label, opts)
496
+ data
497
+ end
498
+
499
+ # Unset a label
500
+ # Unset a single pulp_label on the object.
501
+ # @param maven_maven_remote_href [String]
502
+ # @param unset_label [UnsetLabel]
503
+ # @param [Hash] opts the optional parameters
504
+ # @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
505
+ def unset_label_with_http_info(maven_maven_remote_href, unset_label, opts = {})
506
+ if @api_client.config.debugging
507
+ @api_client.config.logger.debug 'Calling API: RemotesMavenApi.unset_label ...'
508
+ end
509
+ # verify the required parameter 'maven_maven_remote_href' is set
510
+ if @api_client.config.client_side_validation && maven_maven_remote_href.nil?
511
+ fail ArgumentError, "Missing the required parameter 'maven_maven_remote_href' when calling RemotesMavenApi.unset_label"
512
+ end
513
+ # verify the required parameter 'unset_label' is set
514
+ if @api_client.config.client_side_validation && unset_label.nil?
515
+ fail ArgumentError, "Missing the required parameter 'unset_label' when calling RemotesMavenApi.unset_label"
516
+ end
517
+ # resource path
518
+ local_var_path = '{maven_maven_remote_href}unset_label/'.sub('{' + 'maven_maven_remote_href' + '}', CGI.escape(maven_maven_remote_href.to_s).gsub('%2F', '/'))
519
+
520
+ # query parameters
521
+ query_params = opts[:query_params] || {}
522
+
523
+ # header parameters
524
+ header_params = opts[:header_params] || {}
525
+ # HTTP header 'Accept' (if needed)
526
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
527
+ # HTTP header 'Content-Type'
528
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
529
+
530
+ # form parameters
531
+ form_params = opts[:form_params] || {}
532
+
533
+ # http body (model)
534
+ post_body = opts[:body] || @api_client.object_to_http_body(unset_label)
535
+
536
+ # return_type
537
+ return_type = opts[:return_type] || 'UnsetLabelResponse'
538
+
539
+ # auth_names
540
+ auth_names = opts[:auth_names] || ['basicAuth']
541
+
542
+ new_options = opts.merge(
543
+ :header_params => header_params,
544
+ :query_params => query_params,
545
+ :form_params => form_params,
546
+ :body => post_body,
547
+ :auth_names => auth_names,
548
+ :return_type => return_type
549
+ )
550
+
551
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
552
+ if @api_client.config.debugging
553
+ @api_client.config.logger.debug "API called: RemotesMavenApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
554
+ end
555
+ return data, status_code, headers
556
+ end
557
+
403
558
  # Update a maven remote
404
559
  # Trigger an asynchronous update task
405
560
  # @param maven_maven_remote_href [String]
@@ -223,13 +223,18 @@ module PulpMavenClient
223
223
  # @option opts [String] :name Filter results where name matches value
224
224
  # @option opts [String] :name__contains Filter results where name contains value
225
225
  # @option opts [String] :name__icontains Filter results where name contains value
226
+ # @option opts [String] :name__iexact Filter results where name matches value
226
227
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
228
+ # @option opts [String] :name__iregex Filter results where name matches regex value
229
+ # @option opts [String] :name__istartswith Filter results where name starts with value
230
+ # @option opts [String] :name__regex Filter results where name matches regex value
227
231
  # @option opts [String] :name__startswith Filter results where name starts with value
228
232
  # @option opts [Integer] :offset The initial index from which to return the results.
229
233
  # @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)
230
234
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
231
235
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
232
236
  # @option opts [String] :pulp_label_select Filter labels by search string
237
+ # @option opts [String] :q
233
238
  # @option opts [String] :remote Foreign Key referenced by HREF
234
239
  # @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
235
240
  # @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
@@ -256,13 +261,18 @@ module PulpMavenClient
256
261
  # @option opts [String] :name Filter results where name matches value
257
262
  # @option opts [String] :name__contains Filter results where name contains value
258
263
  # @option opts [String] :name__icontains Filter results where name contains value
264
+ # @option opts [String] :name__iexact Filter results where name matches value
259
265
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
266
+ # @option opts [String] :name__iregex Filter results where name matches regex value
267
+ # @option opts [String] :name__istartswith Filter results where name starts with value
268
+ # @option opts [String] :name__regex Filter results where name matches regex value
260
269
  # @option opts [String] :name__startswith Filter results where name starts with value
261
270
  # @option opts [Integer] :offset The initial index from which to return the results.
262
271
  # @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)
263
272
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
264
273
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
265
274
  # @option opts [String] :pulp_label_select Filter labels by search string
275
+ # @option opts [String] :q
266
276
  # @option opts [String] :remote Foreign Key referenced by HREF
267
277
  # @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
268
278
  # @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
@@ -294,13 +304,18 @@ module PulpMavenClient
294
304
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
295
305
  query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
296
306
  query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
307
+ query_params[:'name__iexact'] = opts[:'name__iexact'] if !opts[:'name__iexact'].nil?
297
308
  query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
309
+ query_params[:'name__iregex'] = opts[:'name__iregex'] if !opts[:'name__iregex'].nil?
310
+ query_params[:'name__istartswith'] = opts[:'name__istartswith'] if !opts[:'name__istartswith'].nil?
311
+ query_params[:'name__regex'] = opts[:'name__regex'] if !opts[:'name__regex'].nil?
298
312
  query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
299
313
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
300
314
  query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
301
315
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
302
316
  query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
303
317
  query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
318
+ query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
304
319
  query_params[:'remote'] = opts[:'remote'] if !opts[:'remote'].nil?
305
320
  query_params[:'retain_repo_versions'] = opts[:'retain_repo_versions'] if !opts[:'retain_repo_versions'].nil?
306
321
  query_params[:'retain_repo_versions__gt'] = opts[:'retain_repo_versions__gt'] if !opts[:'retain_repo_versions__gt'].nil?
@@ -485,6 +500,146 @@ module PulpMavenClient
485
500
  return data, status_code, headers
486
501
  end
487
502
 
503
+ # Set a label
504
+ # Set a single pulp_label on the object to a specific value or null.
505
+ # @param maven_maven_repository_href [String]
506
+ # @param set_label [SetLabel]
507
+ # @param [Hash] opts the optional parameters
508
+ # @return [SetLabelResponse]
509
+ def set_label(maven_maven_repository_href, set_label, opts = {})
510
+ data, _status_code, _headers = set_label_with_http_info(maven_maven_repository_href, set_label, opts)
511
+ data
512
+ end
513
+
514
+ # Set a label
515
+ # Set a single pulp_label on the object to a specific value or null.
516
+ # @param maven_maven_repository_href [String]
517
+ # @param set_label [SetLabel]
518
+ # @param [Hash] opts the optional parameters
519
+ # @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
520
+ def set_label_with_http_info(maven_maven_repository_href, set_label, opts = {})
521
+ if @api_client.config.debugging
522
+ @api_client.config.logger.debug 'Calling API: RepositoriesMavenApi.set_label ...'
523
+ end
524
+ # verify the required parameter 'maven_maven_repository_href' is set
525
+ if @api_client.config.client_side_validation && maven_maven_repository_href.nil?
526
+ fail ArgumentError, "Missing the required parameter 'maven_maven_repository_href' when calling RepositoriesMavenApi.set_label"
527
+ end
528
+ # verify the required parameter 'set_label' is set
529
+ if @api_client.config.client_side_validation && set_label.nil?
530
+ fail ArgumentError, "Missing the required parameter 'set_label' when calling RepositoriesMavenApi.set_label"
531
+ end
532
+ # resource path
533
+ local_var_path = '{maven_maven_repository_href}set_label/'.sub('{' + 'maven_maven_repository_href' + '}', CGI.escape(maven_maven_repository_href.to_s).gsub('%2F', '/'))
534
+
535
+ # query parameters
536
+ query_params = opts[:query_params] || {}
537
+
538
+ # header parameters
539
+ header_params = opts[:header_params] || {}
540
+ # HTTP header 'Accept' (if needed)
541
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
542
+ # HTTP header 'Content-Type'
543
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
544
+
545
+ # form parameters
546
+ form_params = opts[:form_params] || {}
547
+
548
+ # http body (model)
549
+ post_body = opts[:body] || @api_client.object_to_http_body(set_label)
550
+
551
+ # return_type
552
+ return_type = opts[:return_type] || 'SetLabelResponse'
553
+
554
+ # auth_names
555
+ auth_names = opts[:auth_names] || ['basicAuth']
556
+
557
+ new_options = opts.merge(
558
+ :header_params => header_params,
559
+ :query_params => query_params,
560
+ :form_params => form_params,
561
+ :body => post_body,
562
+ :auth_names => auth_names,
563
+ :return_type => return_type
564
+ )
565
+
566
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
567
+ if @api_client.config.debugging
568
+ @api_client.config.logger.debug "API called: RepositoriesMavenApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
569
+ end
570
+ return data, status_code, headers
571
+ end
572
+
573
+ # Unset a label
574
+ # Unset a single pulp_label on the object.
575
+ # @param maven_maven_repository_href [String]
576
+ # @param unset_label [UnsetLabel]
577
+ # @param [Hash] opts the optional parameters
578
+ # @return [UnsetLabelResponse]
579
+ def unset_label(maven_maven_repository_href, unset_label, opts = {})
580
+ data, _status_code, _headers = unset_label_with_http_info(maven_maven_repository_href, unset_label, opts)
581
+ data
582
+ end
583
+
584
+ # Unset a label
585
+ # Unset a single pulp_label on the object.
586
+ # @param maven_maven_repository_href [String]
587
+ # @param unset_label [UnsetLabel]
588
+ # @param [Hash] opts the optional parameters
589
+ # @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
590
+ def unset_label_with_http_info(maven_maven_repository_href, unset_label, opts = {})
591
+ if @api_client.config.debugging
592
+ @api_client.config.logger.debug 'Calling API: RepositoriesMavenApi.unset_label ...'
593
+ end
594
+ # verify the required parameter 'maven_maven_repository_href' is set
595
+ if @api_client.config.client_side_validation && maven_maven_repository_href.nil?
596
+ fail ArgumentError, "Missing the required parameter 'maven_maven_repository_href' when calling RepositoriesMavenApi.unset_label"
597
+ end
598
+ # verify the required parameter 'unset_label' is set
599
+ if @api_client.config.client_side_validation && unset_label.nil?
600
+ fail ArgumentError, "Missing the required parameter 'unset_label' when calling RepositoriesMavenApi.unset_label"
601
+ end
602
+ # resource path
603
+ local_var_path = '{maven_maven_repository_href}unset_label/'.sub('{' + 'maven_maven_repository_href' + '}', CGI.escape(maven_maven_repository_href.to_s).gsub('%2F', '/'))
604
+
605
+ # query parameters
606
+ query_params = opts[:query_params] || {}
607
+
608
+ # header parameters
609
+ header_params = opts[:header_params] || {}
610
+ # HTTP header 'Accept' (if needed)
611
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
612
+ # HTTP header 'Content-Type'
613
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
614
+
615
+ # form parameters
616
+ form_params = opts[:form_params] || {}
617
+
618
+ # http body (model)
619
+ post_body = opts[:body] || @api_client.object_to_http_body(unset_label)
620
+
621
+ # return_type
622
+ return_type = opts[:return_type] || 'UnsetLabelResponse'
623
+
624
+ # auth_names
625
+ auth_names = opts[:auth_names] || ['basicAuth']
626
+
627
+ new_options = opts.merge(
628
+ :header_params => header_params,
629
+ :query_params => query_params,
630
+ :form_params => form_params,
631
+ :body => post_body,
632
+ :auth_names => auth_names,
633
+ :return_type => return_type
634
+ )
635
+
636
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
637
+ if @api_client.config.debugging
638
+ @api_client.config.logger.debug "API called: RepositoriesMavenApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
639
+ end
640
+ return data, status_code, headers
641
+ end
642
+
488
643
  # Update a maven repository
489
644
  # Trigger an asynchronous update task
490
645
  # @param maven_maven_repository_href [String]
@@ -103,6 +103,7 @@ module PulpMavenClient
103
103
  # @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
104
104
  # @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
105
105
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
106
+ # @option opts [String] :q
106
107
  # @option opts [Array<String>] :fields A list of fields to include in the response.
107
108
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
108
109
  # @return [PaginatedRepositoryVersionResponseList]
@@ -133,6 +134,7 @@ module PulpMavenClient
133
134
  # @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
134
135
  # @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
135
136
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
137
+ # @option opts [String] :q
136
138
  # @option opts [Array<String>] :fields A list of fields to include in the response.
137
139
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
138
140
  # @return [Array<(PaginatedRepositoryVersionResponseList, Integer, Hash)>] PaginatedRepositoryVersionResponseList data, response status code and response headers
@@ -171,6 +173,7 @@ module PulpMavenClient
171
173
  query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
172
174
  query_params[:'pulp_created__range'] = @api_client.build_collection_param(opts[:'pulp_created__range'], :csv) if !opts[:'pulp_created__range'].nil?
173
175
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
176
+ query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
174
177
  query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
175
178
  query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
176
179
 
@@ -127,7 +127,7 @@ module PulpMavenClient
127
127
  attr_accessor :force_ending_format
128
128
 
129
129
  def initialize
130
- @scheme = 'https'
130
+ @scheme = 'http'
131
131
  @host = 'pulp'
132
132
  @base_path = ''
133
133
  @api_key = {}
@@ -210,7 +210,7 @@ module PulpMavenClient
210
210
  def server_settings
211
211
  [
212
212
  {
213
- url: "https://pulp/",
213
+ url: "http://pulp/",
214
214
  description: "No description provided",
215
215
  }
216
216
  ]
@@ -15,6 +15,9 @@ require 'date'
15
15
  module PulpMavenClient
16
16
  # A Serializer for MavenArtifact.
17
17
  class MavenMavenArtifact
18
+ # A URI of a repository the new content unit should be associated with.
19
+ attr_accessor :repository
20
+
18
21
  # Artifact file representing the physical content
19
22
  attr_accessor :artifact
20
23
 
@@ -24,6 +27,7 @@ module PulpMavenClient
24
27
  # Attribute mapping from ruby-style variable name to JSON key.
25
28
  def self.attribute_map
26
29
  {
30
+ :'repository' => :'repository',
27
31
  :'artifact' => :'artifact',
28
32
  :'relative_path' => :'relative_path'
29
33
  }
@@ -32,6 +36,7 @@ module PulpMavenClient
32
36
  # Attribute type mapping.
33
37
  def self.openapi_types
34
38
  {
39
+ :'repository' => :'String',
35
40
  :'artifact' => :'String',
36
41
  :'relative_path' => :'String'
37
42
  }
@@ -58,6 +63,10 @@ module PulpMavenClient
58
63
  h[k.to_sym] = v
59
64
  }
60
65
 
66
+ if attributes.key?(:'repository')
67
+ self.repository = attributes[:'repository']
68
+ end
69
+
61
70
  if attributes.key?(:'artifact')
62
71
  self.artifact = attributes[:'artifact']
63
72
  end
@@ -114,6 +123,7 @@ module PulpMavenClient
114
123
  def ==(o)
115
124
  return true if self.equal?(o)
116
125
  self.class == o.class &&
126
+ repository == o.repository &&
117
127
  artifact == o.artifact &&
118
128
  relative_path == o.relative_path
119
129
  end
@@ -127,7 +137,7 @@ module PulpMavenClient
127
137
  # Calculates hash code according to all attributes.
128
138
  # @return [Integer] Hash code
129
139
  def hash
130
- [artifact, relative_path].hash
140
+ [repository, artifact, relative_path].hash
131
141
  end
132
142
 
133
143
  # Builds the object from hash
@@ -21,6 +21,9 @@ module PulpMavenClient
21
21
  # An optional content-guard.
22
22
  attr_accessor :content_guard
23
23
 
24
+ # Whether this distribution should be shown in the content app.
25
+ attr_accessor :hidden
26
+
24
27
  attr_accessor :pulp_labels
25
28
 
26
29
  # A unique name. Ex, `rawhide` and `stable`.
@@ -37,6 +40,7 @@ module PulpMavenClient
37
40
  {
38
41
  :'base_path' => :'base_path',
39
42
  :'content_guard' => :'content_guard',
43
+ :'hidden' => :'hidden',
40
44
  :'pulp_labels' => :'pulp_labels',
41
45
  :'name' => :'name',
42
46
  :'repository' => :'repository',
@@ -49,6 +53,7 @@ module PulpMavenClient
49
53
  {
50
54
  :'base_path' => :'String',
51
55
  :'content_guard' => :'String',
56
+ :'hidden' => :'Boolean',
52
57
  :'pulp_labels' => :'Hash<String, String>',
53
58
  :'name' => :'String',
54
59
  :'repository' => :'String',
@@ -88,6 +93,12 @@ module PulpMavenClient
88
93
  self.content_guard = attributes[:'content_guard']
89
94
  end
90
95
 
96
+ if attributes.key?(:'hidden')
97
+ self.hidden = attributes[:'hidden']
98
+ else
99
+ self.hidden = false
100
+ end
101
+
91
102
  if attributes.key?(:'pulp_labels')
92
103
  if (value = attributes[:'pulp_labels']).is_a?(Hash)
93
104
  self.pulp_labels = value
@@ -175,6 +186,7 @@ module PulpMavenClient
175
186
  self.class == o.class &&
176
187
  base_path == o.base_path &&
177
188
  content_guard == o.content_guard &&
189
+ hidden == o.hidden &&
178
190
  pulp_labels == o.pulp_labels &&
179
191
  name == o.name &&
180
192
  repository == o.repository &&
@@ -190,7 +202,7 @@ module PulpMavenClient
190
202
  # Calculates hash code according to all attributes.
191
203
  # @return [Integer] Hash code
192
204
  def hash
193
- [base_path, content_guard, pulp_labels, name, repository, remote].hash
205
+ [base_path, content_guard, hidden, pulp_labels, name, repository, remote].hash
194
206
  end
195
207
 
196
208
  # Builds the object from hash
@@ -29,6 +29,9 @@ module PulpMavenClient
29
29
  # An optional content-guard.
30
30
  attr_accessor :content_guard
31
31
 
32
+ # Whether this distribution should be shown in the content app.
33
+ attr_accessor :hidden
34
+
32
35
  attr_accessor :pulp_labels
33
36
 
34
37
  # A unique name. Ex, `rawhide` and `stable`.
@@ -48,6 +51,7 @@ module PulpMavenClient
48
51
  :'base_path' => :'base_path',
49
52
  :'base_url' => :'base_url',
50
53
  :'content_guard' => :'content_guard',
54
+ :'hidden' => :'hidden',
51
55
  :'pulp_labels' => :'pulp_labels',
52
56
  :'name' => :'name',
53
57
  :'repository' => :'repository',
@@ -63,6 +67,7 @@ module PulpMavenClient
63
67
  :'base_path' => :'String',
64
68
  :'base_url' => :'String',
65
69
  :'content_guard' => :'String',
70
+ :'hidden' => :'Boolean',
66
71
  :'pulp_labels' => :'Hash<String, String>',
67
72
  :'name' => :'String',
68
73
  :'repository' => :'String',
@@ -114,6 +119,12 @@ module PulpMavenClient
114
119
  self.content_guard = attributes[:'content_guard']
115
120
  end
116
121
 
122
+ if attributes.key?(:'hidden')
123
+ self.hidden = attributes[:'hidden']
124
+ else
125
+ self.hidden = false
126
+ end
127
+
117
128
  if attributes.key?(:'pulp_labels')
118
129
  if (value = attributes[:'pulp_labels']).is_a?(Hash)
119
130
  self.pulp_labels = value
@@ -166,6 +177,7 @@ module PulpMavenClient
166
177
  base_path == o.base_path &&
167
178
  base_url == o.base_url &&
168
179
  content_guard == o.content_guard &&
180
+ hidden == o.hidden &&
169
181
  pulp_labels == o.pulp_labels &&
170
182
  name == o.name &&
171
183
  repository == o.repository &&
@@ -181,7 +193,7 @@ module PulpMavenClient
181
193
  # Calculates hash code according to all attributes.
182
194
  # @return [Integer] Hash code
183
195
  def hash
184
- [pulp_href, pulp_created, base_path, base_url, content_guard, pulp_labels, name, repository, remote].hash
196
+ [pulp_href, pulp_created, base_path, base_url, content_guard, hidden, pulp_labels, name, repository, remote].hash
185
197
  end
186
198
 
187
199
  # Builds the object from hash