pulp_maven_client 0.5.0 → 0.7.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 (53) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +15 -5
  3. data/docs/ContentArtifactApi.md +9 -3
  4. data/docs/DistributionsMavenApi.md +130 -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/MavenMavenRemote.md +1 -1
  9. data/docs/MavenMavenRemoteResponse.md +1 -1
  10. data/docs/PatchedmavenMavenDistribution.md +2 -0
  11. data/docs/PatchedmavenMavenRemote.md +1 -1
  12. data/docs/PulpMavenApi.md +1 -1
  13. data/docs/RemotesMavenApi.md +129 -3
  14. data/docs/RepositoriesMavenApi.md +134 -4
  15. data/docs/RepositoriesMavenVersionsApi.md +7 -3
  16. data/docs/SetLabel.md +19 -0
  17. data/docs/SetLabelResponse.md +19 -0
  18. data/docs/UnsetLabel.md +17 -0
  19. data/docs/UnsetLabelResponse.md +19 -0
  20. data/lib/pulp_maven_client/api/content_artifact_api.rb +11 -2
  21. data/lib/pulp_maven_client/api/distributions_maven_api.rb +164 -3
  22. data/lib/pulp_maven_client/api/remotes_maven_api.rb +163 -2
  23. data/lib/pulp_maven_client/api/repositories_maven_api.rb +169 -2
  24. data/lib/pulp_maven_client/api/repositories_maven_versions_api.rb +8 -2
  25. data/lib/pulp_maven_client/configuration.rb +2 -2
  26. data/lib/pulp_maven_client/models/maven_maven_artifact.rb +11 -1
  27. data/lib/pulp_maven_client/models/maven_maven_distribution.rb +13 -1
  28. data/lib/pulp_maven_client/models/maven_maven_distribution_response.rb +13 -1
  29. data/lib/pulp_maven_client/models/maven_maven_remote.rb +1 -1
  30. data/lib/pulp_maven_client/models/maven_maven_remote_response.rb +1 -1
  31. data/lib/pulp_maven_client/models/patchedmaven_maven_distribution.rb +13 -1
  32. data/lib/pulp_maven_client/models/patchedmaven_maven_remote.rb +1 -1
  33. data/lib/pulp_maven_client/models/set_label.rb +252 -0
  34. data/lib/pulp_maven_client/models/set_label_response.rb +243 -0
  35. data/lib/pulp_maven_client/models/unset_label.rb +242 -0
  36. data/lib/pulp_maven_client/models/unset_label_response.rb +242 -0
  37. data/lib/pulp_maven_client/version.rb +1 -1
  38. data/lib/pulp_maven_client.rb +4 -0
  39. data/spec/api/content_artifact_api_spec.rb +4 -1
  40. data/spec/api/distributions_maven_api_spec.rb +34 -1
  41. data/spec/api/remotes_maven_api_spec.rb +34 -1
  42. data/spec/api/repositories_maven_api_spec.rb +36 -1
  43. data/spec/api/repositories_maven_versions_api_spec.rb +3 -1
  44. data/spec/configuration_spec.rb +3 -3
  45. data/spec/models/maven_maven_artifact_spec.rb +6 -0
  46. data/spec/models/maven_maven_distribution_response_spec.rb +6 -0
  47. data/spec/models/maven_maven_distribution_spec.rb +6 -0
  48. data/spec/models/patchedmaven_maven_distribution_spec.rb +6 -0
  49. data/spec/models/set_label_response_spec.rb +47 -0
  50. data/spec/models/set_label_spec.rb +47 -0
  51. data/spec/models/unset_label_response_spec.rb +47 -0
  52. data/spec/models/unset_label_spec.rb +41 -0
  53. metadata +37 -21
@@ -152,10 +152,16 @@ 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
- # @option opts [Array<String>] :ordering Ordering
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)
163
+ # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
164
+ # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
159
165
  # @option opts [String] :pulp_label_select Filter labels by search string
160
166
  # @option opts [DateTime] :pulp_last_updated Filter results where pulp_last_updated matches value
161
167
  # @option opts [DateTime] :pulp_last_updated__gt Filter results where pulp_last_updated is greater than value
@@ -163,6 +169,7 @@ module PulpMavenClient
163
169
  # @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
164
170
  # @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
165
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
166
173
  # @option opts [Array<String>] :fields A list of fields to include in the response.
167
174
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
168
175
  # @return [PaginatedmavenMavenRemoteResponseList]
@@ -178,10 +185,16 @@ module PulpMavenClient
178
185
  # @option opts [String] :name Filter results where name matches value
179
186
  # @option opts [String] :name__contains Filter results where name contains value
180
187
  # @option opts [String] :name__icontains Filter results where name contains value
188
+ # @option opts [String] :name__iexact Filter results where name matches value
181
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
182
193
  # @option opts [String] :name__startswith Filter results where name starts with value
183
194
  # @option opts [Integer] :offset The initial index from which to return the results.
184
- # @option opts [Array<String>] :ordering Ordering
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)
196
+ # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
197
+ # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
185
198
  # @option opts [String] :pulp_label_select Filter labels by search string
186
199
  # @option opts [DateTime] :pulp_last_updated Filter results where pulp_last_updated matches value
187
200
  # @option opts [DateTime] :pulp_last_updated__gt Filter results where pulp_last_updated is greater than value
@@ -189,6 +202,7 @@ module PulpMavenClient
189
202
  # @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
190
203
  # @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
191
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
192
206
  # @option opts [Array<String>] :fields A list of fields to include in the response.
193
207
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
194
208
  # @return [Array<(PaginatedmavenMavenRemoteResponseList, Integer, Hash)>] PaginatedmavenMavenRemoteResponseList data, response status code and response headers
@@ -209,10 +223,16 @@ module PulpMavenClient
209
223
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
210
224
  query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
211
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?
212
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?
213
231
  query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
214
232
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
215
233
  query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
234
+ query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
235
+ query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
216
236
  query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
217
237
  query_params[:'pulp_last_updated'] = opts[:'pulp_last_updated'] if !opts[:'pulp_last_updated'].nil?
218
238
  query_params[:'pulp_last_updated__gt'] = opts[:'pulp_last_updated__gt'] if !opts[:'pulp_last_updated__gt'].nil?
@@ -220,6 +240,7 @@ module PulpMavenClient
220
240
  query_params[:'pulp_last_updated__lt'] = opts[:'pulp_last_updated__lt'] if !opts[:'pulp_last_updated__lt'].nil?
221
241
  query_params[:'pulp_last_updated__lte'] = opts[:'pulp_last_updated__lte'] if !opts[:'pulp_last_updated__lte'].nil?
222
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?
223
244
  query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
224
245
  query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
225
246
 
@@ -394,6 +415,146 @@ module PulpMavenClient
394
415
  return data, status_code, headers
395
416
  end
396
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
+
397
558
  # Update a maven remote
398
559
  # Trigger an asynchronous update task
399
560
  # @param maven_maven_remote_href [String]
@@ -218,15 +218,23 @@ module PulpMavenClient
218
218
  # List maven repositorys
219
219
  # A ViewSet for MavenRemote.
220
220
  # @param [Hash] opts the optional parameters
221
+ # @option opts [String] :latest_with_content Content Unit referenced by HREF
221
222
  # @option opts [Integer] :limit Number of results to return per page.
222
223
  # @option opts [String] :name Filter results where name matches value
223
224
  # @option opts [String] :name__contains Filter results where name contains value
224
225
  # @option opts [String] :name__icontains Filter results where name contains value
226
+ # @option opts [String] :name__iexact Filter results where name matches value
225
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
226
231
  # @option opts [String] :name__startswith Filter results where name starts with value
227
232
  # @option opts [Integer] :offset The initial index from which to return the results.
228
- # @option opts [Array<String>] :ordering Ordering
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)
234
+ # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
235
+ # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
229
236
  # @option opts [String] :pulp_label_select Filter labels by search string
237
+ # @option opts [String] :q
230
238
  # @option opts [String] :remote Foreign Key referenced by HREF
231
239
  # @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
232
240
  # @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
@@ -236,6 +244,7 @@ module PulpMavenClient
236
244
  # @option opts [Integer] :retain_repo_versions__lte Filter results where retain_repo_versions is less than or equal to value
237
245
  # @option opts [Integer] :retain_repo_versions__ne Filter results where retain_repo_versions not equal to value
238
246
  # @option opts [Array<Integer>] :retain_repo_versions__range Filter results where retain_repo_versions is between two comma separated values
247
+ # @option opts [String] :with_content Content Unit referenced by HREF
239
248
  # @option opts [Array<String>] :fields A list of fields to include in the response.
240
249
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
241
250
  # @return [PaginatedmavenMavenRepositoryResponseList]
@@ -247,15 +256,23 @@ module PulpMavenClient
247
256
  # List maven repositorys
248
257
  # A ViewSet for MavenRemote.
249
258
  # @param [Hash] opts the optional parameters
259
+ # @option opts [String] :latest_with_content Content Unit referenced by HREF
250
260
  # @option opts [Integer] :limit Number of results to return per page.
251
261
  # @option opts [String] :name Filter results where name matches value
252
262
  # @option opts [String] :name__contains Filter results where name contains value
253
263
  # @option opts [String] :name__icontains Filter results where name contains value
264
+ # @option opts [String] :name__iexact Filter results where name matches value
254
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
255
269
  # @option opts [String] :name__startswith Filter results where name starts with value
256
270
  # @option opts [Integer] :offset The initial index from which to return the results.
257
- # @option opts [Array<String>] :ordering Ordering
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)
272
+ # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
273
+ # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
258
274
  # @option opts [String] :pulp_label_select Filter labels by search string
275
+ # @option opts [String] :q
259
276
  # @option opts [String] :remote Foreign Key referenced by HREF
260
277
  # @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
261
278
  # @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
@@ -265,6 +282,7 @@ module PulpMavenClient
265
282
  # @option opts [Integer] :retain_repo_versions__lte Filter results where retain_repo_versions is less than or equal to value
266
283
  # @option opts [Integer] :retain_repo_versions__ne Filter results where retain_repo_versions not equal to value
267
284
  # @option opts [Array<Integer>] :retain_repo_versions__range Filter results where retain_repo_versions is between two comma separated values
285
+ # @option opts [String] :with_content Content Unit referenced by HREF
268
286
  # @option opts [Array<String>] :fields A list of fields to include in the response.
269
287
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
270
288
  # @return [Array<(PaginatedmavenMavenRepositoryResponseList, Integer, Hash)>] PaginatedmavenMavenRepositoryResponseList data, response status code and response headers
@@ -281,15 +299,23 @@ module PulpMavenClient
281
299
 
282
300
  # query parameters
283
301
  query_params = opts[:query_params] || {}
302
+ query_params[:'latest_with_content'] = opts[:'latest_with_content'] if !opts[:'latest_with_content'].nil?
284
303
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
285
304
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
286
305
  query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
287
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?
288
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?
289
312
  query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
290
313
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
291
314
  query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
315
+ query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
316
+ query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
292
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?
293
319
  query_params[:'remote'] = opts[:'remote'] if !opts[:'remote'].nil?
294
320
  query_params[:'retain_repo_versions'] = opts[:'retain_repo_versions'] if !opts[:'retain_repo_versions'].nil?
295
321
  query_params[:'retain_repo_versions__gt'] = opts[:'retain_repo_versions__gt'] if !opts[:'retain_repo_versions__gt'].nil?
@@ -299,6 +325,7 @@ module PulpMavenClient
299
325
  query_params[:'retain_repo_versions__lte'] = opts[:'retain_repo_versions__lte'] if !opts[:'retain_repo_versions__lte'].nil?
300
326
  query_params[:'retain_repo_versions__ne'] = opts[:'retain_repo_versions__ne'] if !opts[:'retain_repo_versions__ne'].nil?
301
327
  query_params[:'retain_repo_versions__range'] = @api_client.build_collection_param(opts[:'retain_repo_versions__range'], :csv) if !opts[:'retain_repo_versions__range'].nil?
328
+ query_params[:'with_content'] = opts[:'with_content'] if !opts[:'with_content'].nil?
302
329
  query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
303
330
  query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
304
331
 
@@ -473,6 +500,146 @@ module PulpMavenClient
473
500
  return data, status_code, headers
474
501
  end
475
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
+
476
643
  # Update a maven repository
477
644
  # Trigger an asynchronous update task
478
645
  # @param maven_maven_repository_href [String]
@@ -95,13 +95,15 @@ module PulpMavenClient
95
95
  # @option opts [Integer] :number__lte Filter results where number is less than or equal to value
96
96
  # @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
97
97
  # @option opts [Integer] :offset The initial index from which to return the results.
98
- # @option opts [Array<String>] :ordering Ordering
98
+ # @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;number&#x60; - Number * &#x60;-number&#x60; - Number (descending) * &#x60;complete&#x60; - Complete * &#x60;-complete&#x60; - Complete (descending) * &#x60;info&#x60; - Info * &#x60;-info&#x60; - Info (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
99
99
  # @option opts [DateTime] :pulp_created Filter results where pulp_created matches value
100
100
  # @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
101
101
  # @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
102
102
  # @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
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
+ # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
106
+ # @option opts [String] :q
105
107
  # @option opts [Array<String>] :fields A list of fields to include in the response.
106
108
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
107
109
  # @return [PaginatedRepositoryVersionResponseList]
@@ -124,13 +126,15 @@ module PulpMavenClient
124
126
  # @option opts [Integer] :number__lte Filter results where number is less than or equal to value
125
127
  # @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
126
128
  # @option opts [Integer] :offset The initial index from which to return the results.
127
- # @option opts [Array<String>] :ordering Ordering
129
+ # @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;number&#x60; - Number * &#x60;-number&#x60; - Number (descending) * &#x60;complete&#x60; - Complete * &#x60;-complete&#x60; - Complete (descending) * &#x60;info&#x60; - Info * &#x60;-info&#x60; - Info (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
128
130
  # @option opts [DateTime] :pulp_created Filter results where pulp_created matches value
129
131
  # @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
130
132
  # @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
131
133
  # @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
132
134
  # @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
133
135
  # @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
136
+ # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
137
+ # @option opts [String] :q
134
138
  # @option opts [Array<String>] :fields A list of fields to include in the response.
135
139
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
136
140
  # @return [Array<(PaginatedRepositoryVersionResponseList, Integer, Hash)>] PaginatedRepositoryVersionResponseList data, response status code and response headers
@@ -168,6 +172,8 @@ module PulpMavenClient
168
172
  query_params[:'pulp_created__lt'] = opts[:'pulp_created__lt'] if !opts[:'pulp_created__lt'].nil?
169
173
  query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
170
174
  query_params[:'pulp_created__range'] = @api_client.build_collection_param(opts[:'pulp_created__range'], :csv) if !opts[:'pulp_created__range'].nil?
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?
171
177
  query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
172
178
  query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
173
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