pulp_gem_client 0.2.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +35 -5
  3. data/docs/ContentGemApi.md +3 -1
  4. data/docs/DistributionsGemApi.md +355 -1
  5. data/docs/MyPermissionsResponse.md +17 -0
  6. data/docs/NestedRole.md +21 -0
  7. data/docs/NestedRoleResponse.md +21 -0
  8. data/docs/ObjectRolesResponse.md +17 -0
  9. data/docs/PublicationsGemApi.md +235 -1
  10. data/docs/RemotesGemApi.md +355 -1
  11. data/docs/RepositoriesGemApi.md +355 -1
  12. data/docs/RepositoriesGemVersionsApi.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_gem_client/api/content_gem_api.rb +3 -0
  18. data/lib/pulp_gem_client/api/distributions_gem_api.rb +431 -0
  19. data/lib/pulp_gem_client/api/publications_gem_api.rb +279 -0
  20. data/lib/pulp_gem_client/api/remotes_gem_api.rb +431 -0
  21. data/lib/pulp_gem_client/api/repositories_gem_api.rb +431 -0
  22. data/lib/pulp_gem_client/api/repositories_gem_versions_api.rb +3 -0
  23. data/lib/pulp_gem_client/configuration.rb +2 -2
  24. data/lib/pulp_gem_client/models/my_permissions_response.rb +213 -0
  25. data/lib/pulp_gem_client/models/nested_role.rb +253 -0
  26. data/lib/pulp_gem_client/models/nested_role_response.rb +234 -0
  27. data/lib/pulp_gem_client/models/object_roles_response.rb +213 -0
  28. data/lib/pulp_gem_client/models/set_label.rb +252 -0
  29. data/lib/pulp_gem_client/models/set_label_response.rb +243 -0
  30. data/lib/pulp_gem_client/models/unset_label.rb +242 -0
  31. data/lib/pulp_gem_client/models/unset_label_response.rb +242 -0
  32. data/lib/pulp_gem_client/version.rb +1 -1
  33. data/lib/pulp_gem_client.rb +8 -0
  34. data/spec/api/content_gem_api_spec.rb +1 -0
  35. data/spec/api/distributions_gem_api_spec.rb +85 -0
  36. data/spec/api/publications_gem_api_spec.rb +55 -0
  37. data/spec/api/remotes_gem_api_spec.rb +85 -0
  38. data/spec/api/repositories_gem_api_spec.rb +85 -0
  39. data/spec/api/repositories_gem_versions_api_spec.rb +1 -0
  40. data/spec/configuration_spec.rb +3 -3
  41. data/spec/models/my_permissions_response_spec.rb +41 -0
  42. data/spec/models/nested_role_response_spec.rb +53 -0
  43. data/spec/models/nested_role_spec.rb +53 -0
  44. data/spec/models/object_roles_response_spec.rb +41 -0
  45. data/spec/models/set_label_response_spec.rb +47 -0
  46. data/spec/models/set_label_spec.rb +47 -0
  47. data/spec/models/unset_label_response_spec.rb +47 -0
  48. data/spec/models/unset_label_spec.rb +41 -0
  49. metadata +57 -25
@@ -19,6 +19,76 @@ module PulpGemClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
+ # Add a role
23
+ # Add a role for this object to users/groups.
24
+ # @param gem_gem_repository_href [String]
25
+ # @param nested_role [NestedRole]
26
+ # @param [Hash] opts the optional parameters
27
+ # @return [NestedRoleResponse]
28
+ def add_role(gem_gem_repository_href, nested_role, opts = {})
29
+ data, _status_code, _headers = add_role_with_http_info(gem_gem_repository_href, nested_role, opts)
30
+ data
31
+ end
32
+
33
+ # Add a role
34
+ # Add a role for this object to users/groups.
35
+ # @param gem_gem_repository_href [String]
36
+ # @param nested_role [NestedRole]
37
+ # @param [Hash] opts the optional parameters
38
+ # @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
39
+ def add_role_with_http_info(gem_gem_repository_href, nested_role, opts = {})
40
+ if @api_client.config.debugging
41
+ @api_client.config.logger.debug 'Calling API: RepositoriesGemApi.add_role ...'
42
+ end
43
+ # verify the required parameter 'gem_gem_repository_href' is set
44
+ if @api_client.config.client_side_validation && gem_gem_repository_href.nil?
45
+ fail ArgumentError, "Missing the required parameter 'gem_gem_repository_href' when calling RepositoriesGemApi.add_role"
46
+ end
47
+ # verify the required parameter 'nested_role' is set
48
+ if @api_client.config.client_side_validation && nested_role.nil?
49
+ fail ArgumentError, "Missing the required parameter 'nested_role' when calling RepositoriesGemApi.add_role"
50
+ end
51
+ # resource path
52
+ local_var_path = '{gem_gem_repository_href}add_role/'.sub('{' + 'gem_gem_repository_href' + '}', CGI.escape(gem_gem_repository_href.to_s).gsub('%2F', '/'))
53
+
54
+ # query parameters
55
+ query_params = opts[:query_params] || {}
56
+
57
+ # header parameters
58
+ header_params = opts[:header_params] || {}
59
+ # HTTP header 'Accept' (if needed)
60
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
61
+ # HTTP header 'Content-Type'
62
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
63
+
64
+ # form parameters
65
+ form_params = opts[:form_params] || {}
66
+
67
+ # http body (model)
68
+ post_body = opts[:body] || @api_client.object_to_http_body(nested_role)
69
+
70
+ # return_type
71
+ return_type = opts[:return_type] || 'NestedRoleResponse'
72
+
73
+ # auth_names
74
+ auth_names = opts[:auth_names] || ['basicAuth']
75
+
76
+ new_options = opts.merge(
77
+ :header_params => header_params,
78
+ :query_params => query_params,
79
+ :form_params => form_params,
80
+ :body => post_body,
81
+ :auth_names => auth_names,
82
+ :return_type => return_type
83
+ )
84
+
85
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
86
+ if @api_client.config.debugging
87
+ @api_client.config.logger.debug "API called: RepositoriesGemApi#add_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
88
+ end
89
+ return data, status_code, headers
90
+ end
91
+
22
92
  # Create a gem repository
23
93
  # A ViewSet for GemRepository.
24
94
  # @param gem_gem_repository [GemGemRepository]
@@ -153,13 +223,18 @@ module PulpGemClient
153
223
  # @option opts [String] :name Filter results where name matches value
154
224
  # @option opts [String] :name__contains Filter results where name contains value
155
225
  # @option opts [String] :name__icontains Filter results where name contains value
226
+ # @option opts [String] :name__iexact Filter results where name matches value
156
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
157
231
  # @option opts [String] :name__startswith Filter results where name starts with value
158
232
  # @option opts [Integer] :offset The initial index from which to return the results.
159
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)
160
234
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
161
235
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
162
236
  # @option opts [String] :pulp_label_select Filter labels by search string
237
+ # @option opts [String] :q
163
238
  # @option opts [String] :remote Foreign Key referenced by HREF
164
239
  # @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
165
240
  # @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
@@ -186,13 +261,18 @@ module PulpGemClient
186
261
  # @option opts [String] :name Filter results where name matches value
187
262
  # @option opts [String] :name__contains Filter results where name contains value
188
263
  # @option opts [String] :name__icontains Filter results where name contains value
264
+ # @option opts [String] :name__iexact Filter results where name matches value
189
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
190
269
  # @option opts [String] :name__startswith Filter results where name starts with value
191
270
  # @option opts [Integer] :offset The initial index from which to return the results.
192
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)
193
272
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
194
273
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
195
274
  # @option opts [String] :pulp_label_select Filter labels by search string
275
+ # @option opts [String] :q
196
276
  # @option opts [String] :remote Foreign Key referenced by HREF
197
277
  # @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
198
278
  # @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
@@ -224,13 +304,18 @@ module PulpGemClient
224
304
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
225
305
  query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
226
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?
227
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?
228
312
  query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
229
313
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
230
314
  query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
231
315
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
232
316
  query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
233
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?
234
319
  query_params[:'remote'] = opts[:'remote'] if !opts[:'remote'].nil?
235
320
  query_params[:'retain_repo_versions'] = opts[:'retain_repo_versions'] if !opts[:'retain_repo_versions'].nil?
236
321
  query_params[:'retain_repo_versions__gt'] = opts[:'retain_repo_versions__gt'] if !opts[:'retain_repo_versions__gt'].nil?
@@ -277,6 +362,74 @@ module PulpGemClient
277
362
  return data, status_code, headers
278
363
  end
279
364
 
365
+ # List roles
366
+ # List roles assigned to this object.
367
+ # @param gem_gem_repository_href [String]
368
+ # @param [Hash] opts the optional parameters
369
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
370
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
371
+ # @return [ObjectRolesResponse]
372
+ def list_roles(gem_gem_repository_href, opts = {})
373
+ data, _status_code, _headers = list_roles_with_http_info(gem_gem_repository_href, opts)
374
+ data
375
+ end
376
+
377
+ # List roles
378
+ # List roles assigned to this object.
379
+ # @param gem_gem_repository_href [String]
380
+ # @param [Hash] opts the optional parameters
381
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
382
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
383
+ # @return [Array<(ObjectRolesResponse, Integer, Hash)>] ObjectRolesResponse data, response status code and response headers
384
+ def list_roles_with_http_info(gem_gem_repository_href, opts = {})
385
+ if @api_client.config.debugging
386
+ @api_client.config.logger.debug 'Calling API: RepositoriesGemApi.list_roles ...'
387
+ end
388
+ # verify the required parameter 'gem_gem_repository_href' is set
389
+ if @api_client.config.client_side_validation && gem_gem_repository_href.nil?
390
+ fail ArgumentError, "Missing the required parameter 'gem_gem_repository_href' when calling RepositoriesGemApi.list_roles"
391
+ end
392
+ # resource path
393
+ local_var_path = '{gem_gem_repository_href}list_roles/'.sub('{' + 'gem_gem_repository_href' + '}', CGI.escape(gem_gem_repository_href.to_s).gsub('%2F', '/'))
394
+
395
+ # query parameters
396
+ query_params = opts[:query_params] || {}
397
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
398
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
399
+
400
+ # header parameters
401
+ header_params = opts[:header_params] || {}
402
+ # HTTP header 'Accept' (if needed)
403
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
404
+
405
+ # form parameters
406
+ form_params = opts[:form_params] || {}
407
+
408
+ # http body (model)
409
+ post_body = opts[:body]
410
+
411
+ # return_type
412
+ return_type = opts[:return_type] || 'ObjectRolesResponse'
413
+
414
+ # auth_names
415
+ auth_names = opts[:auth_names] || ['basicAuth']
416
+
417
+ new_options = opts.merge(
418
+ :header_params => header_params,
419
+ :query_params => query_params,
420
+ :form_params => form_params,
421
+ :body => post_body,
422
+ :auth_names => auth_names,
423
+ :return_type => return_type
424
+ )
425
+
426
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
427
+ if @api_client.config.debugging
428
+ @api_client.config.logger.debug "API called: RepositoriesGemApi#list_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
429
+ end
430
+ return data, status_code, headers
431
+ end
432
+
280
433
  # Modify Repository Content
281
434
  # Trigger an asynchronous task to create a new repository version.
282
435
  # @param gem_gem_repository_href [String]
@@ -347,6 +500,74 @@ module PulpGemClient
347
500
  return data, status_code, headers
348
501
  end
349
502
 
503
+ # List user permissions
504
+ # List permissions available to the current user on this object.
505
+ # @param gem_gem_repository_href [String]
506
+ # @param [Hash] opts the optional parameters
507
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
508
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
509
+ # @return [MyPermissionsResponse]
510
+ def my_permissions(gem_gem_repository_href, opts = {})
511
+ data, _status_code, _headers = my_permissions_with_http_info(gem_gem_repository_href, opts)
512
+ data
513
+ end
514
+
515
+ # List user permissions
516
+ # List permissions available to the current user on this object.
517
+ # @param gem_gem_repository_href [String]
518
+ # @param [Hash] opts the optional parameters
519
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
520
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
521
+ # @return [Array<(MyPermissionsResponse, Integer, Hash)>] MyPermissionsResponse data, response status code and response headers
522
+ def my_permissions_with_http_info(gem_gem_repository_href, opts = {})
523
+ if @api_client.config.debugging
524
+ @api_client.config.logger.debug 'Calling API: RepositoriesGemApi.my_permissions ...'
525
+ end
526
+ # verify the required parameter 'gem_gem_repository_href' is set
527
+ if @api_client.config.client_side_validation && gem_gem_repository_href.nil?
528
+ fail ArgumentError, "Missing the required parameter 'gem_gem_repository_href' when calling RepositoriesGemApi.my_permissions"
529
+ end
530
+ # resource path
531
+ local_var_path = '{gem_gem_repository_href}my_permissions/'.sub('{' + 'gem_gem_repository_href' + '}', CGI.escape(gem_gem_repository_href.to_s).gsub('%2F', '/'))
532
+
533
+ # query parameters
534
+ query_params = opts[:query_params] || {}
535
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
536
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
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
+
543
+ # form parameters
544
+ form_params = opts[:form_params] || {}
545
+
546
+ # http body (model)
547
+ post_body = opts[:body]
548
+
549
+ # return_type
550
+ return_type = opts[:return_type] || 'MyPermissionsResponse'
551
+
552
+ # auth_names
553
+ auth_names = opts[:auth_names] || ['basicAuth']
554
+
555
+ new_options = opts.merge(
556
+ :header_params => header_params,
557
+ :query_params => query_params,
558
+ :form_params => form_params,
559
+ :body => post_body,
560
+ :auth_names => auth_names,
561
+ :return_type => return_type
562
+ )
563
+
564
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
565
+ if @api_client.config.debugging
566
+ @api_client.config.logger.debug "API called: RepositoriesGemApi#my_permissions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
567
+ end
568
+ return data, status_code, headers
569
+ end
570
+
350
571
  # Update a gem repository
351
572
  # Trigger an asynchronous partial update task
352
573
  # @param gem_gem_repository_href [String]
@@ -485,6 +706,146 @@ module PulpGemClient
485
706
  return data, status_code, headers
486
707
  end
487
708
 
709
+ # Remove a role
710
+ # Remove a role for this object from users/groups.
711
+ # @param gem_gem_repository_href [String]
712
+ # @param nested_role [NestedRole]
713
+ # @param [Hash] opts the optional parameters
714
+ # @return [NestedRoleResponse]
715
+ def remove_role(gem_gem_repository_href, nested_role, opts = {})
716
+ data, _status_code, _headers = remove_role_with_http_info(gem_gem_repository_href, nested_role, opts)
717
+ data
718
+ end
719
+
720
+ # Remove a role
721
+ # Remove a role for this object from users/groups.
722
+ # @param gem_gem_repository_href [String]
723
+ # @param nested_role [NestedRole]
724
+ # @param [Hash] opts the optional parameters
725
+ # @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
726
+ def remove_role_with_http_info(gem_gem_repository_href, nested_role, opts = {})
727
+ if @api_client.config.debugging
728
+ @api_client.config.logger.debug 'Calling API: RepositoriesGemApi.remove_role ...'
729
+ end
730
+ # verify the required parameter 'gem_gem_repository_href' is set
731
+ if @api_client.config.client_side_validation && gem_gem_repository_href.nil?
732
+ fail ArgumentError, "Missing the required parameter 'gem_gem_repository_href' when calling RepositoriesGemApi.remove_role"
733
+ end
734
+ # verify the required parameter 'nested_role' is set
735
+ if @api_client.config.client_side_validation && nested_role.nil?
736
+ fail ArgumentError, "Missing the required parameter 'nested_role' when calling RepositoriesGemApi.remove_role"
737
+ end
738
+ # resource path
739
+ local_var_path = '{gem_gem_repository_href}remove_role/'.sub('{' + 'gem_gem_repository_href' + '}', CGI.escape(gem_gem_repository_href.to_s).gsub('%2F', '/'))
740
+
741
+ # query parameters
742
+ query_params = opts[:query_params] || {}
743
+
744
+ # header parameters
745
+ header_params = opts[:header_params] || {}
746
+ # HTTP header 'Accept' (if needed)
747
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
748
+ # HTTP header 'Content-Type'
749
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
750
+
751
+ # form parameters
752
+ form_params = opts[:form_params] || {}
753
+
754
+ # http body (model)
755
+ post_body = opts[:body] || @api_client.object_to_http_body(nested_role)
756
+
757
+ # return_type
758
+ return_type = opts[:return_type] || 'NestedRoleResponse'
759
+
760
+ # auth_names
761
+ auth_names = opts[:auth_names] || ['basicAuth']
762
+
763
+ new_options = opts.merge(
764
+ :header_params => header_params,
765
+ :query_params => query_params,
766
+ :form_params => form_params,
767
+ :body => post_body,
768
+ :auth_names => auth_names,
769
+ :return_type => return_type
770
+ )
771
+
772
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
773
+ if @api_client.config.debugging
774
+ @api_client.config.logger.debug "API called: RepositoriesGemApi#remove_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
775
+ end
776
+ return data, status_code, headers
777
+ end
778
+
779
+ # Set a label
780
+ # Set a single pulp_label on the object to a specific value or null.
781
+ # @param gem_gem_repository_href [String]
782
+ # @param set_label [SetLabel]
783
+ # @param [Hash] opts the optional parameters
784
+ # @return [SetLabelResponse]
785
+ def set_label(gem_gem_repository_href, set_label, opts = {})
786
+ data, _status_code, _headers = set_label_with_http_info(gem_gem_repository_href, set_label, opts)
787
+ data
788
+ end
789
+
790
+ # Set a label
791
+ # Set a single pulp_label on the object to a specific value or null.
792
+ # @param gem_gem_repository_href [String]
793
+ # @param set_label [SetLabel]
794
+ # @param [Hash] opts the optional parameters
795
+ # @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
796
+ def set_label_with_http_info(gem_gem_repository_href, set_label, opts = {})
797
+ if @api_client.config.debugging
798
+ @api_client.config.logger.debug 'Calling API: RepositoriesGemApi.set_label ...'
799
+ end
800
+ # verify the required parameter 'gem_gem_repository_href' is set
801
+ if @api_client.config.client_side_validation && gem_gem_repository_href.nil?
802
+ fail ArgumentError, "Missing the required parameter 'gem_gem_repository_href' when calling RepositoriesGemApi.set_label"
803
+ end
804
+ # verify the required parameter 'set_label' is set
805
+ if @api_client.config.client_side_validation && set_label.nil?
806
+ fail ArgumentError, "Missing the required parameter 'set_label' when calling RepositoriesGemApi.set_label"
807
+ end
808
+ # resource path
809
+ local_var_path = '{gem_gem_repository_href}set_label/'.sub('{' + 'gem_gem_repository_href' + '}', CGI.escape(gem_gem_repository_href.to_s).gsub('%2F', '/'))
810
+
811
+ # query parameters
812
+ query_params = opts[:query_params] || {}
813
+
814
+ # header parameters
815
+ header_params = opts[:header_params] || {}
816
+ # HTTP header 'Accept' (if needed)
817
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
818
+ # HTTP header 'Content-Type'
819
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
820
+
821
+ # form parameters
822
+ form_params = opts[:form_params] || {}
823
+
824
+ # http body (model)
825
+ post_body = opts[:body] || @api_client.object_to_http_body(set_label)
826
+
827
+ # return_type
828
+ return_type = opts[:return_type] || 'SetLabelResponse'
829
+
830
+ # auth_names
831
+ auth_names = opts[:auth_names] || ['basicAuth']
832
+
833
+ new_options = opts.merge(
834
+ :header_params => header_params,
835
+ :query_params => query_params,
836
+ :form_params => form_params,
837
+ :body => post_body,
838
+ :auth_names => auth_names,
839
+ :return_type => return_type
840
+ )
841
+
842
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
843
+ if @api_client.config.debugging
844
+ @api_client.config.logger.debug "API called: RepositoriesGemApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
845
+ end
846
+ return data, status_code, headers
847
+ end
848
+
488
849
  # Sync from a remote
489
850
  # Trigger an asynchronous task to sync gem content.
490
851
  # @param gem_gem_repository_href [String]
@@ -555,6 +916,76 @@ module PulpGemClient
555
916
  return data, status_code, headers
556
917
  end
557
918
 
919
+ # Unset a label
920
+ # Unset a single pulp_label on the object.
921
+ # @param gem_gem_repository_href [String]
922
+ # @param unset_label [UnsetLabel]
923
+ # @param [Hash] opts the optional parameters
924
+ # @return [UnsetLabelResponse]
925
+ def unset_label(gem_gem_repository_href, unset_label, opts = {})
926
+ data, _status_code, _headers = unset_label_with_http_info(gem_gem_repository_href, unset_label, opts)
927
+ data
928
+ end
929
+
930
+ # Unset a label
931
+ # Unset a single pulp_label on the object.
932
+ # @param gem_gem_repository_href [String]
933
+ # @param unset_label [UnsetLabel]
934
+ # @param [Hash] opts the optional parameters
935
+ # @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
936
+ def unset_label_with_http_info(gem_gem_repository_href, unset_label, opts = {})
937
+ if @api_client.config.debugging
938
+ @api_client.config.logger.debug 'Calling API: RepositoriesGemApi.unset_label ...'
939
+ end
940
+ # verify the required parameter 'gem_gem_repository_href' is set
941
+ if @api_client.config.client_side_validation && gem_gem_repository_href.nil?
942
+ fail ArgumentError, "Missing the required parameter 'gem_gem_repository_href' when calling RepositoriesGemApi.unset_label"
943
+ end
944
+ # verify the required parameter 'unset_label' is set
945
+ if @api_client.config.client_side_validation && unset_label.nil?
946
+ fail ArgumentError, "Missing the required parameter 'unset_label' when calling RepositoriesGemApi.unset_label"
947
+ end
948
+ # resource path
949
+ local_var_path = '{gem_gem_repository_href}unset_label/'.sub('{' + 'gem_gem_repository_href' + '}', CGI.escape(gem_gem_repository_href.to_s).gsub('%2F', '/'))
950
+
951
+ # query parameters
952
+ query_params = opts[:query_params] || {}
953
+
954
+ # header parameters
955
+ header_params = opts[:header_params] || {}
956
+ # HTTP header 'Accept' (if needed)
957
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
958
+ # HTTP header 'Content-Type'
959
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
960
+
961
+ # form parameters
962
+ form_params = opts[:form_params] || {}
963
+
964
+ # http body (model)
965
+ post_body = opts[:body] || @api_client.object_to_http_body(unset_label)
966
+
967
+ # return_type
968
+ return_type = opts[:return_type] || 'UnsetLabelResponse'
969
+
970
+ # auth_names
971
+ auth_names = opts[:auth_names] || ['basicAuth']
972
+
973
+ new_options = opts.merge(
974
+ :header_params => header_params,
975
+ :query_params => query_params,
976
+ :form_params => form_params,
977
+ :body => post_body,
978
+ :auth_names => auth_names,
979
+ :return_type => return_type
980
+ )
981
+
982
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
983
+ if @api_client.config.debugging
984
+ @api_client.config.logger.debug "API called: RepositoriesGemApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
985
+ end
986
+ return data, status_code, headers
987
+ end
988
+
558
989
  # Update a gem repository
559
990
  # Trigger an asynchronous update task
560
991
  # @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
  ]