pulp_gem_client 0.1.1 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +17 -7
  3. data/docs/ContentGemApi.md +8 -6
  4. data/docs/DistributionsGemApi.md +120 -2
  5. data/docs/GemGemContent.md +4 -4
  6. data/docs/GemGemContentResponse.md +2 -0
  7. data/docs/PublicationsGemApi.md +3 -1
  8. data/docs/RemotesGemApi.md +119 -1
  9. data/docs/RepositoriesGemApi.md +120 -2
  10. data/docs/RepositoriesGemVersionsApi.md +3 -1
  11. data/docs/SetLabel.md +19 -0
  12. data/docs/SetLabelResponse.md +19 -0
  13. data/docs/UnsetLabel.md +17 -0
  14. data/docs/UnsetLabelResponse.md +19 -0
  15. data/lib/pulp_gem_client/api/content_gem_api.rb +9 -6
  16. data/lib/pulp_gem_client/api/distributions_gem_api.rb +149 -0
  17. data/lib/pulp_gem_client/api/publications_gem_api.rb +3 -0
  18. data/lib/pulp_gem_client/api/remotes_gem_api.rb +149 -0
  19. data/lib/pulp_gem_client/api/repositories_gem_api.rb +149 -0
  20. data/lib/pulp_gem_client/api/repositories_gem_versions_api.rb +3 -0
  21. data/lib/pulp_gem_client/configuration.rb +2 -2
  22. data/lib/pulp_gem_client/models/gem_gem_content.rb +14 -14
  23. data/lib/pulp_gem_client/models/gem_gem_content_response.rb +11 -1
  24. data/lib/pulp_gem_client/models/set_label.rb +252 -0
  25. data/lib/pulp_gem_client/models/set_label_response.rb +243 -0
  26. data/lib/pulp_gem_client/models/unset_label.rb +242 -0
  27. data/lib/pulp_gem_client/models/unset_label_response.rb +242 -0
  28. data/lib/pulp_gem_client/version.rb +1 -1
  29. data/lib/pulp_gem_client.rb +4 -0
  30. data/spec/api/content_gem_api_spec.rb +3 -2
  31. data/spec/api/distributions_gem_api_spec.rb +29 -0
  32. data/spec/api/publications_gem_api_spec.rb +1 -0
  33. data/spec/api/remotes_gem_api_spec.rb +29 -0
  34. data/spec/api/repositories_gem_api_spec.rb +29 -0
  35. data/spec/api/repositories_gem_versions_api_spec.rb +1 -0
  36. data/spec/configuration_spec.rb +3 -3
  37. data/spec/models/gem_gem_content_response_spec.rb +6 -0
  38. data/spec/models/gem_gem_content_spec.rb +3 -3
  39. data/spec/models/set_label_response_spec.rb +47 -0
  40. data/spec/models/set_label_spec.rb +47 -0
  41. data/spec/models/unset_label_response_spec.rb +47 -0
  42. data/spec/models/unset_label_spec.rb +41 -0
  43. metadata +39 -23
@@ -152,7 +152,9 @@ module PulpGemClient
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__istartswith Filter results where name starts with value
156
158
  # @option opts [String] :name__startswith Filter results where name starts with value
157
159
  # @option opts [Integer] :offset The initial index from which to return the results.
158
160
  # @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 +167,7 @@ module PulpGemClient
165
167
  # @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
166
168
  # @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
167
169
  # @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
170
+ # @option opts [String] :q
168
171
  # @option opts [Array<String>] :fields A list of fields to include in the response.
169
172
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
170
173
  # @return [PaginatedgemGemRemoteResponseList]
@@ -180,7 +183,9 @@ module PulpGemClient
180
183
  # @option opts [String] :name Filter results where name matches value
181
184
  # @option opts [String] :name__contains Filter results where name contains value
182
185
  # @option opts [String] :name__icontains Filter results where name contains value
186
+ # @option opts [String] :name__iexact Filter results where name matches value
183
187
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
188
+ # @option opts [String] :name__istartswith Filter results where name starts with value
184
189
  # @option opts [String] :name__startswith Filter results where name starts with value
185
190
  # @option opts [Integer] :offset The initial index from which to return the results.
186
191
  # @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 +198,7 @@ module PulpGemClient
193
198
  # @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
194
199
  # @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
195
200
  # @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
201
+ # @option opts [String] :q
196
202
  # @option opts [Array<String>] :fields A list of fields to include in the response.
197
203
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
198
204
  # @return [Array<(PaginatedgemGemRemoteResponseList, Integer, Hash)>] PaginatedgemGemRemoteResponseList data, response status code and response headers
@@ -213,7 +219,9 @@ module PulpGemClient
213
219
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
214
220
  query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
215
221
  query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
222
+ query_params[:'name__iexact'] = opts[:'name__iexact'] if !opts[:'name__iexact'].nil?
216
223
  query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
224
+ query_params[:'name__istartswith'] = opts[:'name__istartswith'] if !opts[:'name__istartswith'].nil?
217
225
  query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
218
226
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
219
227
  query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
@@ -226,6 +234,7 @@ module PulpGemClient
226
234
  query_params[:'pulp_last_updated__lt'] = opts[:'pulp_last_updated__lt'] if !opts[:'pulp_last_updated__lt'].nil?
227
235
  query_params[:'pulp_last_updated__lte'] = opts[:'pulp_last_updated__lte'] if !opts[:'pulp_last_updated__lte'].nil?
228
236
  query_params[:'pulp_last_updated__range'] = @api_client.build_collection_param(opts[:'pulp_last_updated__range'], :csv) if !opts[:'pulp_last_updated__range'].nil?
237
+ query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
229
238
  query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
230
239
  query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
231
240
 
@@ -400,6 +409,146 @@ module PulpGemClient
400
409
  return data, status_code, headers
401
410
  end
402
411
 
412
+ # Set a label
413
+ # Set a single pulp_label on the object to a specific value or null.
414
+ # @param gem_gem_remote_href [String]
415
+ # @param set_label [SetLabel]
416
+ # @param [Hash] opts the optional parameters
417
+ # @return [SetLabelResponse]
418
+ def set_label(gem_gem_remote_href, set_label, opts = {})
419
+ data, _status_code, _headers = set_label_with_http_info(gem_gem_remote_href, set_label, opts)
420
+ data
421
+ end
422
+
423
+ # Set a label
424
+ # Set a single pulp_label on the object to a specific value or null.
425
+ # @param gem_gem_remote_href [String]
426
+ # @param set_label [SetLabel]
427
+ # @param [Hash] opts the optional parameters
428
+ # @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
429
+ def set_label_with_http_info(gem_gem_remote_href, set_label, opts = {})
430
+ if @api_client.config.debugging
431
+ @api_client.config.logger.debug 'Calling API: RemotesGemApi.set_label ...'
432
+ end
433
+ # verify the required parameter 'gem_gem_remote_href' is set
434
+ if @api_client.config.client_side_validation && gem_gem_remote_href.nil?
435
+ fail ArgumentError, "Missing the required parameter 'gem_gem_remote_href' when calling RemotesGemApi.set_label"
436
+ end
437
+ # verify the required parameter 'set_label' is set
438
+ if @api_client.config.client_side_validation && set_label.nil?
439
+ fail ArgumentError, "Missing the required parameter 'set_label' when calling RemotesGemApi.set_label"
440
+ end
441
+ # resource path
442
+ local_var_path = '{gem_gem_remote_href}set_label/'.sub('{' + 'gem_gem_remote_href' + '}', CGI.escape(gem_gem_remote_href.to_s).gsub('%2F', '/'))
443
+
444
+ # query parameters
445
+ query_params = opts[:query_params] || {}
446
+
447
+ # header parameters
448
+ header_params = opts[:header_params] || {}
449
+ # HTTP header 'Accept' (if needed)
450
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
451
+ # HTTP header 'Content-Type'
452
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
453
+
454
+ # form parameters
455
+ form_params = opts[:form_params] || {}
456
+
457
+ # http body (model)
458
+ post_body = opts[:body] || @api_client.object_to_http_body(set_label)
459
+
460
+ # return_type
461
+ return_type = opts[:return_type] || 'SetLabelResponse'
462
+
463
+ # auth_names
464
+ auth_names = opts[:auth_names] || ['basicAuth']
465
+
466
+ new_options = opts.merge(
467
+ :header_params => header_params,
468
+ :query_params => query_params,
469
+ :form_params => form_params,
470
+ :body => post_body,
471
+ :auth_names => auth_names,
472
+ :return_type => return_type
473
+ )
474
+
475
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
476
+ if @api_client.config.debugging
477
+ @api_client.config.logger.debug "API called: RemotesGemApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
478
+ end
479
+ return data, status_code, headers
480
+ end
481
+
482
+ # Unset a label
483
+ # Unset a single pulp_label on the object.
484
+ # @param gem_gem_remote_href [String]
485
+ # @param unset_label [UnsetLabel]
486
+ # @param [Hash] opts the optional parameters
487
+ # @return [UnsetLabelResponse]
488
+ def unset_label(gem_gem_remote_href, unset_label, opts = {})
489
+ data, _status_code, _headers = unset_label_with_http_info(gem_gem_remote_href, unset_label, opts)
490
+ data
491
+ end
492
+
493
+ # Unset a label
494
+ # Unset a single pulp_label on the object.
495
+ # @param gem_gem_remote_href [String]
496
+ # @param unset_label [UnsetLabel]
497
+ # @param [Hash] opts the optional parameters
498
+ # @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
499
+ def unset_label_with_http_info(gem_gem_remote_href, unset_label, opts = {})
500
+ if @api_client.config.debugging
501
+ @api_client.config.logger.debug 'Calling API: RemotesGemApi.unset_label ...'
502
+ end
503
+ # verify the required parameter 'gem_gem_remote_href' is set
504
+ if @api_client.config.client_side_validation && gem_gem_remote_href.nil?
505
+ fail ArgumentError, "Missing the required parameter 'gem_gem_remote_href' when calling RemotesGemApi.unset_label"
506
+ end
507
+ # verify the required parameter 'unset_label' is set
508
+ if @api_client.config.client_side_validation && unset_label.nil?
509
+ fail ArgumentError, "Missing the required parameter 'unset_label' when calling RemotesGemApi.unset_label"
510
+ end
511
+ # resource path
512
+ local_var_path = '{gem_gem_remote_href}unset_label/'.sub('{' + 'gem_gem_remote_href' + '}', CGI.escape(gem_gem_remote_href.to_s).gsub('%2F', '/'))
513
+
514
+ # query parameters
515
+ query_params = opts[:query_params] || {}
516
+
517
+ # header parameters
518
+ header_params = opts[:header_params] || {}
519
+ # HTTP header 'Accept' (if needed)
520
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
521
+ # HTTP header 'Content-Type'
522
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
523
+
524
+ # form parameters
525
+ form_params = opts[:form_params] || {}
526
+
527
+ # http body (model)
528
+ post_body = opts[:body] || @api_client.object_to_http_body(unset_label)
529
+
530
+ # return_type
531
+ return_type = opts[:return_type] || 'UnsetLabelResponse'
532
+
533
+ # auth_names
534
+ auth_names = opts[:auth_names] || ['basicAuth']
535
+
536
+ new_options = opts.merge(
537
+ :header_params => header_params,
538
+ :query_params => query_params,
539
+ :form_params => form_params,
540
+ :body => post_body,
541
+ :auth_names => auth_names,
542
+ :return_type => return_type
543
+ )
544
+
545
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
546
+ if @api_client.config.debugging
547
+ @api_client.config.logger.debug "API called: RemotesGemApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
548
+ end
549
+ return data, status_code, headers
550
+ end
551
+
403
552
  # Update a gem remote
404
553
  # Trigger an asynchronous update task
405
554
  # @param gem_gem_remote_href [String]
@@ -153,13 +153,16 @@ module PulpGemClient
153
153
  # @option opts [String] :name Filter results where name matches value
154
154
  # @option opts [String] :name__contains Filter results where name contains value
155
155
  # @option opts [String] :name__icontains Filter results where name contains value
156
+ # @option opts [String] :name__iexact Filter results where name matches value
156
157
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
158
+ # @option opts [String] :name__istartswith Filter results where name starts with value
157
159
  # @option opts [String] :name__startswith Filter results where name starts with value
158
160
  # @option opts [Integer] :offset The initial index from which to return the results.
159
161
  # @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)
160
162
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
161
163
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
162
164
  # @option opts [String] :pulp_label_select Filter labels by search string
165
+ # @option opts [String] :q
163
166
  # @option opts [String] :remote Foreign Key referenced by HREF
164
167
  # @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
165
168
  # @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
@@ -186,13 +189,16 @@ module PulpGemClient
186
189
  # @option opts [String] :name Filter results where name matches value
187
190
  # @option opts [String] :name__contains Filter results where name contains value
188
191
  # @option opts [String] :name__icontains Filter results where name contains value
192
+ # @option opts [String] :name__iexact Filter results where name matches value
189
193
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
194
+ # @option opts [String] :name__istartswith Filter results where name starts with value
190
195
  # @option opts [String] :name__startswith Filter results where name starts with value
191
196
  # @option opts [Integer] :offset The initial index from which to return the results.
192
197
  # @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)
193
198
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
194
199
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
195
200
  # @option opts [String] :pulp_label_select Filter labels by search string
201
+ # @option opts [String] :q
196
202
  # @option opts [String] :remote Foreign Key referenced by HREF
197
203
  # @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
198
204
  # @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
@@ -224,13 +230,16 @@ module PulpGemClient
224
230
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
225
231
  query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
226
232
  query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
233
+ query_params[:'name__iexact'] = opts[:'name__iexact'] if !opts[:'name__iexact'].nil?
227
234
  query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
235
+ query_params[:'name__istartswith'] = opts[:'name__istartswith'] if !opts[:'name__istartswith'].nil?
228
236
  query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
229
237
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
230
238
  query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
231
239
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
232
240
  query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
233
241
  query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
242
+ query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
234
243
  query_params[:'remote'] = opts[:'remote'] if !opts[:'remote'].nil?
235
244
  query_params[:'retain_repo_versions'] = opts[:'retain_repo_versions'] if !opts[:'retain_repo_versions'].nil?
236
245
  query_params[:'retain_repo_versions__gt'] = opts[:'retain_repo_versions__gt'] if !opts[:'retain_repo_versions__gt'].nil?
@@ -485,6 +494,76 @@ module PulpGemClient
485
494
  return data, status_code, headers
486
495
  end
487
496
 
497
+ # Set a label
498
+ # Set a single pulp_label on the object to a specific value or null.
499
+ # @param gem_gem_repository_href [String]
500
+ # @param set_label [SetLabel]
501
+ # @param [Hash] opts the optional parameters
502
+ # @return [SetLabelResponse]
503
+ def set_label(gem_gem_repository_href, set_label, opts = {})
504
+ data, _status_code, _headers = set_label_with_http_info(gem_gem_repository_href, set_label, opts)
505
+ data
506
+ end
507
+
508
+ # Set a label
509
+ # Set a single pulp_label on the object to a specific value or null.
510
+ # @param gem_gem_repository_href [String]
511
+ # @param set_label [SetLabel]
512
+ # @param [Hash] opts the optional parameters
513
+ # @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
514
+ def set_label_with_http_info(gem_gem_repository_href, set_label, opts = {})
515
+ if @api_client.config.debugging
516
+ @api_client.config.logger.debug 'Calling API: RepositoriesGemApi.set_label ...'
517
+ end
518
+ # verify the required parameter 'gem_gem_repository_href' is set
519
+ if @api_client.config.client_side_validation && gem_gem_repository_href.nil?
520
+ fail ArgumentError, "Missing the required parameter 'gem_gem_repository_href' when calling RepositoriesGemApi.set_label"
521
+ end
522
+ # verify the required parameter 'set_label' is set
523
+ if @api_client.config.client_side_validation && set_label.nil?
524
+ fail ArgumentError, "Missing the required parameter 'set_label' when calling RepositoriesGemApi.set_label"
525
+ end
526
+ # resource path
527
+ local_var_path = '{gem_gem_repository_href}set_label/'.sub('{' + 'gem_gem_repository_href' + '}', CGI.escape(gem_gem_repository_href.to_s).gsub('%2F', '/'))
528
+
529
+ # query parameters
530
+ query_params = opts[:query_params] || {}
531
+
532
+ # header parameters
533
+ header_params = opts[:header_params] || {}
534
+ # HTTP header 'Accept' (if needed)
535
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
536
+ # HTTP header 'Content-Type'
537
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
538
+
539
+ # form parameters
540
+ form_params = opts[:form_params] || {}
541
+
542
+ # http body (model)
543
+ post_body = opts[:body] || @api_client.object_to_http_body(set_label)
544
+
545
+ # return_type
546
+ return_type = opts[:return_type] || 'SetLabelResponse'
547
+
548
+ # auth_names
549
+ auth_names = opts[:auth_names] || ['basicAuth']
550
+
551
+ new_options = opts.merge(
552
+ :header_params => header_params,
553
+ :query_params => query_params,
554
+ :form_params => form_params,
555
+ :body => post_body,
556
+ :auth_names => auth_names,
557
+ :return_type => return_type
558
+ )
559
+
560
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
561
+ if @api_client.config.debugging
562
+ @api_client.config.logger.debug "API called: RepositoriesGemApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
563
+ end
564
+ return data, status_code, headers
565
+ end
566
+
488
567
  # Sync from a remote
489
568
  # Trigger an asynchronous task to sync gem content.
490
569
  # @param gem_gem_repository_href [String]
@@ -555,6 +634,76 @@ module PulpGemClient
555
634
  return data, status_code, headers
556
635
  end
557
636
 
637
+ # Unset a label
638
+ # Unset a single pulp_label on the object.
639
+ # @param gem_gem_repository_href [String]
640
+ # @param unset_label [UnsetLabel]
641
+ # @param [Hash] opts the optional parameters
642
+ # @return [UnsetLabelResponse]
643
+ def unset_label(gem_gem_repository_href, unset_label, opts = {})
644
+ data, _status_code, _headers = unset_label_with_http_info(gem_gem_repository_href, unset_label, opts)
645
+ data
646
+ end
647
+
648
+ # Unset a label
649
+ # Unset a single pulp_label on the object.
650
+ # @param gem_gem_repository_href [String]
651
+ # @param unset_label [UnsetLabel]
652
+ # @param [Hash] opts the optional parameters
653
+ # @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
654
+ def unset_label_with_http_info(gem_gem_repository_href, unset_label, opts = {})
655
+ if @api_client.config.debugging
656
+ @api_client.config.logger.debug 'Calling API: RepositoriesGemApi.unset_label ...'
657
+ end
658
+ # verify the required parameter 'gem_gem_repository_href' is set
659
+ if @api_client.config.client_side_validation && gem_gem_repository_href.nil?
660
+ fail ArgumentError, "Missing the required parameter 'gem_gem_repository_href' when calling RepositoriesGemApi.unset_label"
661
+ end
662
+ # verify the required parameter 'unset_label' is set
663
+ if @api_client.config.client_side_validation && unset_label.nil?
664
+ fail ArgumentError, "Missing the required parameter 'unset_label' when calling RepositoriesGemApi.unset_label"
665
+ end
666
+ # resource path
667
+ local_var_path = '{gem_gem_repository_href}unset_label/'.sub('{' + 'gem_gem_repository_href' + '}', CGI.escape(gem_gem_repository_href.to_s).gsub('%2F', '/'))
668
+
669
+ # query parameters
670
+ query_params = opts[:query_params] || {}
671
+
672
+ # header parameters
673
+ header_params = opts[:header_params] || {}
674
+ # HTTP header 'Accept' (if needed)
675
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
676
+ # HTTP header 'Content-Type'
677
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
678
+
679
+ # form parameters
680
+ form_params = opts[:form_params] || {}
681
+
682
+ # http body (model)
683
+ post_body = opts[:body] || @api_client.object_to_http_body(unset_label)
684
+
685
+ # return_type
686
+ return_type = opts[:return_type] || 'UnsetLabelResponse'
687
+
688
+ # auth_names
689
+ auth_names = opts[:auth_names] || ['basicAuth']
690
+
691
+ new_options = opts.merge(
692
+ :header_params => header_params,
693
+ :query_params => query_params,
694
+ :form_params => form_params,
695
+ :body => post_body,
696
+ :auth_names => auth_names,
697
+ :return_type => return_type
698
+ )
699
+
700
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
701
+ if @api_client.config.debugging
702
+ @api_client.config.logger.debug "API called: RepositoriesGemApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
703
+ end
704
+ return data, status_code, headers
705
+ end
706
+
558
707
  # Update a gem repository
559
708
  # Trigger an asynchronous update task
560
709
  # @param gem_gem_repository_href [String]
@@ -103,6 +103,7 @@ module PulpGemClient
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 PulpGemClient
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 PulpGemClient
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 PulpGemClient
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 PulpGemClient
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,30 +15,30 @@ require 'date'
15
15
  module PulpGemClient
16
16
  # A Serializer for GemContent.
17
17
  class GemGemContent
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
 
21
24
  # An uploaded file that should be turned into the artifact of the content unit.
22
25
  attr_accessor :file
23
26
 
24
- # A URI of a repository the new content unit should be associated with.
25
- attr_accessor :repository
26
-
27
27
  # Attribute mapping from ruby-style variable name to JSON key.
28
28
  def self.attribute_map
29
29
  {
30
+ :'repository' => :'repository',
30
31
  :'artifact' => :'artifact',
31
- :'file' => :'file',
32
- :'repository' => :'repository'
32
+ :'file' => :'file'
33
33
  }
34
34
  end
35
35
 
36
36
  # Attribute type mapping.
37
37
  def self.openapi_types
38
38
  {
39
+ :'repository' => :'String',
39
40
  :'artifact' => :'String',
40
- :'file' => :'File',
41
- :'repository' => :'String'
41
+ :'file' => :'File'
42
42
  }
43
43
  end
44
44
 
@@ -63,6 +63,10 @@ module PulpGemClient
63
63
  h[k.to_sym] = v
64
64
  }
65
65
 
66
+ if attributes.key?(:'repository')
67
+ self.repository = attributes[:'repository']
68
+ end
69
+
66
70
  if attributes.key?(:'artifact')
67
71
  self.artifact = attributes[:'artifact']
68
72
  end
@@ -70,10 +74,6 @@ module PulpGemClient
70
74
  if attributes.key?(:'file')
71
75
  self.file = attributes[:'file']
72
76
  end
73
-
74
- if attributes.key?(:'repository')
75
- self.repository = attributes[:'repository']
76
- end
77
77
  end
78
78
 
79
79
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -94,9 +94,9 @@ module PulpGemClient
94
94
  def ==(o)
95
95
  return true if self.equal?(o)
96
96
  self.class == o.class &&
97
+ repository == o.repository &&
97
98
  artifact == o.artifact &&
98
- file == o.file &&
99
- repository == o.repository
99
+ file == o.file
100
100
  end
101
101
 
102
102
  # @see the `==` method
@@ -108,7 +108,7 @@ module PulpGemClient
108
108
  # Calculates hash code according to all attributes.
109
109
  # @return [Integer] Hash code
110
110
  def hash
111
- [artifact, file, repository].hash
111
+ [repository, artifact, file].hash
112
112
  end
113
113
 
114
114
  # Builds the object from hash
@@ -32,6 +32,9 @@ module PulpGemClient
32
32
  # Version of the gem
33
33
  attr_accessor :version
34
34
 
35
+ # Platform of the gem
36
+ attr_accessor :platform
37
+
35
38
  # Whether the gem is a prerelease
36
39
  attr_accessor :prerelease
37
40
 
@@ -52,6 +55,7 @@ module PulpGemClient
52
55
  :'checksum' => :'checksum',
53
56
  :'name' => :'name',
54
57
  :'version' => :'version',
58
+ :'platform' => :'platform',
55
59
  :'prerelease' => :'prerelease',
56
60
  :'dependencies' => :'dependencies',
57
61
  :'required_ruby_version' => :'required_ruby_version',
@@ -68,6 +72,7 @@ module PulpGemClient
68
72
  :'checksum' => :'String',
69
73
  :'name' => :'String',
70
74
  :'version' => :'String',
75
+ :'platform' => :'String',
71
76
  :'prerelease' => :'Boolean',
72
77
  :'dependencies' => :'Hash<String, String>',
73
78
  :'required_ruby_version' => :'String',
@@ -120,6 +125,10 @@ module PulpGemClient
120
125
  self.version = attributes[:'version']
121
126
  end
122
127
 
128
+ if attributes.key?(:'platform')
129
+ self.platform = attributes[:'platform']
130
+ end
131
+
123
132
  if attributes.key?(:'prerelease')
124
133
  self.prerelease = attributes[:'prerelease']
125
134
  end
@@ -168,6 +177,7 @@ module PulpGemClient
168
177
  checksum == o.checksum &&
169
178
  name == o.name &&
170
179
  version == o.version &&
180
+ platform == o.platform &&
171
181
  prerelease == o.prerelease &&
172
182
  dependencies == o.dependencies &&
173
183
  required_ruby_version == o.required_ruby_version &&
@@ -183,7 +193,7 @@ module PulpGemClient
183
193
  # Calculates hash code according to all attributes.
184
194
  # @return [Integer] Hash code
185
195
  def hash
186
- [pulp_href, pulp_created, artifacts, checksum, name, version, prerelease, dependencies, required_ruby_version, required_rubygems_version].hash
196
+ [pulp_href, pulp_created, artifacts, checksum, name, version, platform, prerelease, dependencies, required_ruby_version, required_rubygems_version].hash
187
197
  end
188
198
 
189
199
  # Builds the object from hash