pulp_python_client 3.11.8 → 3.12.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 (56) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +31 -12
  3. data/docs/ContentPackagesApi.md +13 -19
  4. data/docs/DistributionsPypiApi.md +245 -41
  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/PackageMetadataResponse.md +3 -3
  10. data/docs/PublicationsPypiApi.md +237 -17
  11. data/docs/PypiApi.md +8 -4
  12. data/docs/PypiLegacyApi.md +1 -3
  13. data/docs/PypiMetadataApi.md +8 -4
  14. data/docs/PypiSimpleApi.md +1 -7
  15. data/docs/PythonPythonPackageContent.md +6 -6
  16. data/docs/PythonPythonPackageContentResponse.md +6 -6
  17. data/docs/RemotesPythonApi.md +245 -43
  18. data/docs/RepositoriesPythonApi.md +249 -53
  19. data/docs/RepositoriesPythonVersionsApi.md +5 -17
  20. data/lib/pulp_python_client/api/content_packages_api.rb +12 -21
  21. data/lib/pulp_python_client/api/distributions_pypi_api.rb +276 -24
  22. data/lib/pulp_python_client/api/publications_pypi_api.rb +276 -12
  23. data/lib/pulp_python_client/api/pypi_api.rb +1 -4
  24. data/lib/pulp_python_client/api/pypi_legacy_api.rb +0 -3
  25. data/lib/pulp_python_client/api/pypi_metadata_api.rb +1 -4
  26. data/lib/pulp_python_client/api/pypi_simple_api.rb +0 -9
  27. data/lib/pulp_python_client/api/remotes_python_api.rb +276 -27
  28. data/lib/pulp_python_client/api/repositories_python_api.rb +276 -30
  29. data/lib/pulp_python_client/api/repositories_python_versions_api.rb +0 -12
  30. data/lib/pulp_python_client/configuration.rb +2 -2
  31. data/lib/pulp_python_client/models/my_permissions_response.rb +213 -0
  32. data/lib/pulp_python_client/models/nested_role.rb +253 -0
  33. data/lib/pulp_python_client/models/nested_role_response.rb +234 -0
  34. data/lib/pulp_python_client/models/object_roles_response.rb +213 -0
  35. data/lib/pulp_python_client/models/package_metadata_response.rb +3 -3
  36. data/lib/pulp_python_client/models/package_upload_task_response.rb +2 -10
  37. data/lib/pulp_python_client/models/python_python_package_content.rb +6 -6
  38. data/lib/pulp_python_client/models/python_python_package_content_response.rb +6 -6
  39. data/lib/pulp_python_client/version.rb +1 -1
  40. data/lib/pulp_python_client.rb +4 -0
  41. data/spec/api/content_packages_api_spec.rb +6 -9
  42. data/spec/api/distributions_pypi_api_spec.rb +54 -8
  43. data/spec/api/publications_pypi_api_spec.rb +54 -4
  44. data/spec/api/pypi_api_spec.rb +0 -1
  45. data/spec/api/pypi_legacy_api_spec.rb +0 -1
  46. data/spec/api/pypi_metadata_api_spec.rb +0 -1
  47. data/spec/api/pypi_simple_api_spec.rb +0 -3
  48. data/spec/api/remotes_python_api_spec.rb +54 -9
  49. data/spec/api/repositories_python_api_spec.rb +54 -10
  50. data/spec/api/repositories_python_versions_api_spec.rb +0 -4
  51. data/spec/configuration_spec.rb +3 -3
  52. data/spec/models/my_permissions_response_spec.rb +41 -0
  53. data/spec/models/nested_role_response_spec.rb +53 -0
  54. data/spec/models/nested_role_spec.rb +53 -0
  55. data/spec/models/object_roles_response_spec.rb +41 -0
  56. metadata +68 -52
@@ -19,11 +19,80 @@ module PulpPythonClient
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 python_python_repository_href [String]
25
+ # @param nested_role [NestedRole]
26
+ # @param [Hash] opts the optional parameters
27
+ # @return [NestedRoleResponse]
28
+ def add_role(python_python_repository_href, nested_role, opts = {})
29
+ data, _status_code, _headers = add_role_with_http_info(python_python_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 python_python_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(python_python_repository_href, nested_role, opts = {})
40
+ if @api_client.config.debugging
41
+ @api_client.config.logger.debug 'Calling API: RepositoriesPythonApi.add_role ...'
42
+ end
43
+ # verify the required parameter 'python_python_repository_href' is set
44
+ if @api_client.config.client_side_validation && python_python_repository_href.nil?
45
+ fail ArgumentError, "Missing the required parameter 'python_python_repository_href' when calling RepositoriesPythonApi.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 RepositoriesPythonApi.add_role"
50
+ end
51
+ # resource path
52
+ local_var_path = '{python_python_repository_href}add_role/'.sub('{' + 'python_python_repository_href' + '}', CGI.escape(python_python_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: RepositoriesPythonApi#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 python repository
23
93
  # PythonRepository represents a single Python repository, to which content can be synced, added, or removed.
24
94
  # @param python_python_repository [PythonPythonRepository]
25
95
  # @param [Hash] opts the optional parameters
26
- # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
27
96
  # @return [PythonPythonRepositoryResponse]
28
97
  def create(python_python_repository, opts = {})
29
98
  data, _status_code, _headers = create_with_http_info(python_python_repository, opts)
@@ -34,7 +103,6 @@ module PulpPythonClient
34
103
  # PythonRepository represents a single Python repository, to which content can be synced, added, or removed.
35
104
  # @param python_python_repository [PythonPythonRepository]
36
105
  # @param [Hash] opts the optional parameters
37
- # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
38
106
  # @return [Array<(PythonPythonRepositoryResponse, Integer, Hash)>] PythonPythonRepositoryResponse data, response status code and response headers
39
107
  def create_with_http_info(python_python_repository, opts = {})
40
108
  if @api_client.config.debugging
@@ -56,7 +124,6 @@ module PulpPythonClient
56
124
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
57
125
  # HTTP header 'Content-Type'
58
126
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
59
- header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
60
127
 
61
128
  # form parameters
62
129
  form_params = opts[:form_params] || {}
@@ -90,7 +157,6 @@ module PulpPythonClient
90
157
  # Trigger an asynchronous delete task
91
158
  # @param python_python_repository_href [String]
92
159
  # @param [Hash] opts the optional parameters
93
- # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
94
160
  # @return [AsyncOperationResponse]
95
161
  def delete(python_python_repository_href, opts = {})
96
162
  data, _status_code, _headers = delete_with_http_info(python_python_repository_href, opts)
@@ -101,7 +167,6 @@ module PulpPythonClient
101
167
  # Trigger an asynchronous delete task
102
168
  # @param python_python_repository_href [String]
103
169
  # @param [Hash] opts the optional parameters
104
- # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
105
170
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
106
171
  def delete_with_http_info(python_python_repository_href, opts = {})
107
172
  if @api_client.config.debugging
@@ -121,7 +186,6 @@ module PulpPythonClient
121
186
  header_params = opts[:header_params] || {}
122
187
  # HTTP header 'Accept' (if needed)
123
188
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
124
- header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
125
189
 
126
190
  # form parameters
127
191
  form_params = opts[:form_params] || {}
@@ -154,7 +218,6 @@ module PulpPythonClient
154
218
  # List python repositorys
155
219
  # PythonRepository represents a single Python repository, to which content can be synced, added, or removed.
156
220
  # @param [Hash] opts the optional parameters
157
- # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
158
221
  # @option opts [String] :latest_with_content Content Unit referenced by HREF
159
222
  # @option opts [Integer] :limit Number of results to return per page.
160
223
  # @option opts [String] :name Filter results where name matches value
@@ -193,7 +256,6 @@ module PulpPythonClient
193
256
  # List python repositorys
194
257
  # PythonRepository represents a single Python repository, to which content can be synced, added, or removed.
195
258
  # @param [Hash] opts the optional parameters
196
- # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
197
259
  # @option opts [String] :latest_with_content Content Unit referenced by HREF
198
260
  # @option opts [Integer] :limit Number of results to return per page.
199
261
  # @option opts [String] :name Filter results where name matches value
@@ -271,7 +333,6 @@ module PulpPythonClient
271
333
  header_params = opts[:header_params] || {}
272
334
  # HTTP header 'Accept' (if needed)
273
335
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
274
- header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
275
336
 
276
337
  # form parameters
277
338
  form_params = opts[:form_params] || {}
@@ -301,12 +362,79 @@ module PulpPythonClient
301
362
  return data, status_code, headers
302
363
  end
303
364
 
365
+ # List roles
366
+ # List roles assigned to this object.
367
+ # @param python_python_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(python_python_repository_href, opts = {})
373
+ data, _status_code, _headers = list_roles_with_http_info(python_python_repository_href, opts)
374
+ data
375
+ end
376
+
377
+ # List roles
378
+ # List roles assigned to this object.
379
+ # @param python_python_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(python_python_repository_href, opts = {})
385
+ if @api_client.config.debugging
386
+ @api_client.config.logger.debug 'Calling API: RepositoriesPythonApi.list_roles ...'
387
+ end
388
+ # verify the required parameter 'python_python_repository_href' is set
389
+ if @api_client.config.client_side_validation && python_python_repository_href.nil?
390
+ fail ArgumentError, "Missing the required parameter 'python_python_repository_href' when calling RepositoriesPythonApi.list_roles"
391
+ end
392
+ # resource path
393
+ local_var_path = '{python_python_repository_href}list_roles/'.sub('{' + 'python_python_repository_href' + '}', CGI.escape(python_python_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: RepositoriesPythonApi#list_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
429
+ end
430
+ return data, status_code, headers
431
+ end
432
+
304
433
  # Modify Repository Content
305
434
  # Trigger an asynchronous task to create a new repository version.
306
435
  # @param python_python_repository_href [String]
307
436
  # @param repository_add_remove_content [RepositoryAddRemoveContent]
308
437
  # @param [Hash] opts the optional parameters
309
- # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
310
438
  # @return [AsyncOperationResponse]
311
439
  def modify(python_python_repository_href, repository_add_remove_content, opts = {})
312
440
  data, _status_code, _headers = modify_with_http_info(python_python_repository_href, repository_add_remove_content, opts)
@@ -318,7 +446,6 @@ module PulpPythonClient
318
446
  # @param python_python_repository_href [String]
319
447
  # @param repository_add_remove_content [RepositoryAddRemoveContent]
320
448
  # @param [Hash] opts the optional parameters
321
- # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
322
449
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
323
450
  def modify_with_http_info(python_python_repository_href, repository_add_remove_content, opts = {})
324
451
  if @api_client.config.debugging
@@ -344,7 +471,6 @@ module PulpPythonClient
344
471
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
345
472
  # HTTP header 'Content-Type'
346
473
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
347
- header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
348
474
 
349
475
  # form parameters
350
476
  form_params = opts[:form_params] || {}
@@ -374,12 +500,79 @@ module PulpPythonClient
374
500
  return data, status_code, headers
375
501
  end
376
502
 
503
+ # List user permissions
504
+ # List permissions available to the current user on this object.
505
+ # @param python_python_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(python_python_repository_href, opts = {})
511
+ data, _status_code, _headers = my_permissions_with_http_info(python_python_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 python_python_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(python_python_repository_href, opts = {})
523
+ if @api_client.config.debugging
524
+ @api_client.config.logger.debug 'Calling API: RepositoriesPythonApi.my_permissions ...'
525
+ end
526
+ # verify the required parameter 'python_python_repository_href' is set
527
+ if @api_client.config.client_side_validation && python_python_repository_href.nil?
528
+ fail ArgumentError, "Missing the required parameter 'python_python_repository_href' when calling RepositoriesPythonApi.my_permissions"
529
+ end
530
+ # resource path
531
+ local_var_path = '{python_python_repository_href}my_permissions/'.sub('{' + 'python_python_repository_href' + '}', CGI.escape(python_python_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: RepositoriesPythonApi#my_permissions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
567
+ end
568
+ return data, status_code, headers
569
+ end
570
+
377
571
  # Update a python repository
378
572
  # Trigger an asynchronous partial update task
379
573
  # @param python_python_repository_href [String]
380
574
  # @param patchedpython_python_repository [PatchedpythonPythonRepository]
381
575
  # @param [Hash] opts the optional parameters
382
- # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
383
576
  # @return [AsyncOperationResponse]
384
577
  def partial_update(python_python_repository_href, patchedpython_python_repository, opts = {})
385
578
  data, _status_code, _headers = partial_update_with_http_info(python_python_repository_href, patchedpython_python_repository, opts)
@@ -391,7 +584,6 @@ module PulpPythonClient
391
584
  # @param python_python_repository_href [String]
392
585
  # @param patchedpython_python_repository [PatchedpythonPythonRepository]
393
586
  # @param [Hash] opts the optional parameters
394
- # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
395
587
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
396
588
  def partial_update_with_http_info(python_python_repository_href, patchedpython_python_repository, opts = {})
397
589
  if @api_client.config.debugging
@@ -417,7 +609,6 @@ module PulpPythonClient
417
609
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
418
610
  # HTTP header 'Content-Type'
419
611
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
420
- header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
421
612
 
422
613
  # form parameters
423
614
  form_params = opts[:form_params] || {}
@@ -451,7 +642,6 @@ module PulpPythonClient
451
642
  # PythonRepository represents a single Python repository, to which content can be synced, added, or removed.
452
643
  # @param python_python_repository_href [String]
453
644
  # @param [Hash] opts the optional parameters
454
- # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
455
645
  # @option opts [Array<String>] :fields A list of fields to include in the response.
456
646
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
457
647
  # @return [PythonPythonRepositoryResponse]
@@ -464,7 +654,6 @@ module PulpPythonClient
464
654
  # PythonRepository represents a single Python repository, to which content can be synced, added, or removed.
465
655
  # @param python_python_repository_href [String]
466
656
  # @param [Hash] opts the optional parameters
467
- # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
468
657
  # @option opts [Array<String>] :fields A list of fields to include in the response.
469
658
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
470
659
  # @return [Array<(PythonPythonRepositoryResponse, Integer, Hash)>] PythonPythonRepositoryResponse data, response status code and response headers
@@ -488,7 +677,6 @@ module PulpPythonClient
488
677
  header_params = opts[:header_params] || {}
489
678
  # HTTP header 'Accept' (if needed)
490
679
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
491
- header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
492
680
 
493
681
  # form parameters
494
682
  form_params = opts[:form_params] || {}
@@ -518,12 +706,81 @@ module PulpPythonClient
518
706
  return data, status_code, headers
519
707
  end
520
708
 
709
+ # Remove a role
710
+ # Remove a role for this object from users/groups.
711
+ # @param python_python_repository_href [String]
712
+ # @param nested_role [NestedRole]
713
+ # @param [Hash] opts the optional parameters
714
+ # @return [NestedRoleResponse]
715
+ def remove_role(python_python_repository_href, nested_role, opts = {})
716
+ data, _status_code, _headers = remove_role_with_http_info(python_python_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 python_python_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(python_python_repository_href, nested_role, opts = {})
727
+ if @api_client.config.debugging
728
+ @api_client.config.logger.debug 'Calling API: RepositoriesPythonApi.remove_role ...'
729
+ end
730
+ # verify the required parameter 'python_python_repository_href' is set
731
+ if @api_client.config.client_side_validation && python_python_repository_href.nil?
732
+ fail ArgumentError, "Missing the required parameter 'python_python_repository_href' when calling RepositoriesPythonApi.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 RepositoriesPythonApi.remove_role"
737
+ end
738
+ # resource path
739
+ local_var_path = '{python_python_repository_href}remove_role/'.sub('{' + 'python_python_repository_href' + '}', CGI.escape(python_python_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: RepositoriesPythonApi#remove_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
775
+ end
776
+ return data, status_code, headers
777
+ end
778
+
521
779
  # Set a label
522
780
  # Set a single pulp_label on the object to a specific value or null.
523
781
  # @param python_python_repository_href [String]
524
782
  # @param set_label [SetLabel]
525
783
  # @param [Hash] opts the optional parameters
526
- # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
527
784
  # @return [SetLabelResponse]
528
785
  def set_label(python_python_repository_href, set_label, opts = {})
529
786
  data, _status_code, _headers = set_label_with_http_info(python_python_repository_href, set_label, opts)
@@ -535,7 +792,6 @@ module PulpPythonClient
535
792
  # @param python_python_repository_href [String]
536
793
  # @param set_label [SetLabel]
537
794
  # @param [Hash] opts the optional parameters
538
- # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
539
795
  # @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
540
796
  def set_label_with_http_info(python_python_repository_href, set_label, opts = {})
541
797
  if @api_client.config.debugging
@@ -561,7 +817,6 @@ module PulpPythonClient
561
817
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
562
818
  # HTTP header 'Content-Type'
563
819
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
564
- header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
565
820
 
566
821
  # form parameters
567
822
  form_params = opts[:form_params] || {}
@@ -596,7 +851,6 @@ module PulpPythonClient
596
851
  # @param python_python_repository_href [String]
597
852
  # @param repository_sync_url [RepositorySyncURL]
598
853
  # @param [Hash] opts the optional parameters
599
- # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
600
854
  # @return [AsyncOperationResponse]
601
855
  def sync(python_python_repository_href, repository_sync_url, opts = {})
602
856
  data, _status_code, _headers = sync_with_http_info(python_python_repository_href, repository_sync_url, opts)
@@ -608,7 +862,6 @@ module PulpPythonClient
608
862
  # @param python_python_repository_href [String]
609
863
  # @param repository_sync_url [RepositorySyncURL]
610
864
  # @param [Hash] opts the optional parameters
611
- # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
612
865
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
613
866
  def sync_with_http_info(python_python_repository_href, repository_sync_url, opts = {})
614
867
  if @api_client.config.debugging
@@ -634,7 +887,6 @@ module PulpPythonClient
634
887
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
635
888
  # HTTP header 'Content-Type'
636
889
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
637
- header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
638
890
 
639
891
  # form parameters
640
892
  form_params = opts[:form_params] || {}
@@ -669,7 +921,6 @@ module PulpPythonClient
669
921
  # @param python_python_repository_href [String]
670
922
  # @param unset_label [UnsetLabel]
671
923
  # @param [Hash] opts the optional parameters
672
- # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
673
924
  # @return [UnsetLabelResponse]
674
925
  def unset_label(python_python_repository_href, unset_label, opts = {})
675
926
  data, _status_code, _headers = unset_label_with_http_info(python_python_repository_href, unset_label, opts)
@@ -681,7 +932,6 @@ module PulpPythonClient
681
932
  # @param python_python_repository_href [String]
682
933
  # @param unset_label [UnsetLabel]
683
934
  # @param [Hash] opts the optional parameters
684
- # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
685
935
  # @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
686
936
  def unset_label_with_http_info(python_python_repository_href, unset_label, opts = {})
687
937
  if @api_client.config.debugging
@@ -707,7 +957,6 @@ module PulpPythonClient
707
957
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
708
958
  # HTTP header 'Content-Type'
709
959
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
710
- header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
711
960
 
712
961
  # form parameters
713
962
  form_params = opts[:form_params] || {}
@@ -742,7 +991,6 @@ module PulpPythonClient
742
991
  # @param python_python_repository_href [String]
743
992
  # @param python_python_repository [PythonPythonRepository]
744
993
  # @param [Hash] opts the optional parameters
745
- # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
746
994
  # @return [AsyncOperationResponse]
747
995
  def update(python_python_repository_href, python_python_repository, opts = {})
748
996
  data, _status_code, _headers = update_with_http_info(python_python_repository_href, python_python_repository, opts)
@@ -754,7 +1002,6 @@ module PulpPythonClient
754
1002
  # @param python_python_repository_href [String]
755
1003
  # @param python_python_repository [PythonPythonRepository]
756
1004
  # @param [Hash] opts the optional parameters
757
- # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
758
1005
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
759
1006
  def update_with_http_info(python_python_repository_href, python_python_repository, opts = {})
760
1007
  if @api_client.config.debugging
@@ -780,7 +1027,6 @@ module PulpPythonClient
780
1027
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
781
1028
  # HTTP header 'Content-Type'
782
1029
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
783
- header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
784
1030
 
785
1031
  # form parameters
786
1032
  form_params = opts[:form_params] || {}
@@ -23,7 +23,6 @@ module PulpPythonClient
23
23
  # Trigger an asynchronous task to delete a repository version.
24
24
  # @param python_python_repository_version_href [String]
25
25
  # @param [Hash] opts the optional parameters
26
- # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
27
26
  # @return [AsyncOperationResponse]
28
27
  def delete(python_python_repository_version_href, opts = {})
29
28
  data, _status_code, _headers = delete_with_http_info(python_python_repository_version_href, opts)
@@ -34,7 +33,6 @@ module PulpPythonClient
34
33
  # Trigger an asynchronous task to delete a repository version.
35
34
  # @param python_python_repository_version_href [String]
36
35
  # @param [Hash] opts the optional parameters
37
- # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
38
36
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
39
37
  def delete_with_http_info(python_python_repository_version_href, opts = {})
40
38
  if @api_client.config.debugging
@@ -54,7 +52,6 @@ module PulpPythonClient
54
52
  header_params = opts[:header_params] || {}
55
53
  # HTTP header 'Accept' (if needed)
56
54
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
57
- header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
58
55
 
59
56
  # form parameters
60
57
  form_params = opts[:form_params] || {}
@@ -88,7 +85,6 @@ module PulpPythonClient
88
85
  # PythonRepositoryVersion represents a single Python repository version.
89
86
  # @param python_python_repository_href [String]
90
87
  # @param [Hash] opts the optional parameters
91
- # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
92
88
  # @option opts [String] :content Content Unit referenced by HREF
93
89
  # @option opts [String] :content__in Content Unit referenced by HREF
94
90
  # @option opts [Integer] :limit Number of results to return per page.
@@ -120,7 +116,6 @@ module PulpPythonClient
120
116
  # PythonRepositoryVersion represents a single Python repository version.
121
117
  # @param python_python_repository_href [String]
122
118
  # @param [Hash] opts the optional parameters
123
- # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
124
119
  # @option opts [String] :content Content Unit referenced by HREF
125
120
  # @option opts [String] :content__in Content Unit referenced by HREF
126
121
  # @option opts [Integer] :limit Number of results to return per page.
@@ -186,7 +181,6 @@ module PulpPythonClient
186
181
  header_params = opts[:header_params] || {}
187
182
  # HTTP header 'Accept' (if needed)
188
183
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
189
- header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
190
184
 
191
185
  # form parameters
192
186
  form_params = opts[:form_params] || {}
@@ -220,7 +214,6 @@ module PulpPythonClient
220
214
  # PythonRepositoryVersion represents a single Python repository version.
221
215
  # @param python_python_repository_version_href [String]
222
216
  # @param [Hash] opts the optional parameters
223
- # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
224
217
  # @option opts [Array<String>] :fields A list of fields to include in the response.
225
218
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
226
219
  # @return [RepositoryVersionResponse]
@@ -233,7 +226,6 @@ module PulpPythonClient
233
226
  # PythonRepositoryVersion represents a single Python repository version.
234
227
  # @param python_python_repository_version_href [String]
235
228
  # @param [Hash] opts the optional parameters
236
- # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
237
229
  # @option opts [Array<String>] :fields A list of fields to include in the response.
238
230
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
239
231
  # @return [Array<(RepositoryVersionResponse, Integer, Hash)>] RepositoryVersionResponse data, response status code and response headers
@@ -257,7 +249,6 @@ module PulpPythonClient
257
249
  header_params = opts[:header_params] || {}
258
250
  # HTTP header 'Accept' (if needed)
259
251
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
260
- header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
261
252
 
262
253
  # form parameters
263
254
  form_params = opts[:form_params] || {}
@@ -291,7 +282,6 @@ module PulpPythonClient
291
282
  # @param python_python_repository_version_href [String]
292
283
  # @param repair [Repair]
293
284
  # @param [Hash] opts the optional parameters
294
- # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
295
285
  # @return [AsyncOperationResponse]
296
286
  def repair(python_python_repository_version_href, repair, opts = {})
297
287
  data, _status_code, _headers = repair_with_http_info(python_python_repository_version_href, repair, opts)
@@ -302,7 +292,6 @@ module PulpPythonClient
302
292
  # @param python_python_repository_version_href [String]
303
293
  # @param repair [Repair]
304
294
  # @param [Hash] opts the optional parameters
305
- # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
306
295
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
307
296
  def repair_with_http_info(python_python_repository_version_href, repair, opts = {})
308
297
  if @api_client.config.debugging
@@ -328,7 +317,6 @@ module PulpPythonClient
328
317
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
329
318
  # HTTP header 'Content-Type'
330
319
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
331
- header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
332
320
 
333
321
  # form parameters
334
322
  form_params = opts[:form_params] || {}
@@ -128,7 +128,7 @@ module PulpPythonClient
128
128
 
129
129
  def initialize
130
130
  @scheme = 'http'
131
- @host = 'localhost'
131
+ @host = 'pulp'
132
132
  @base_path = ''
133
133
  @api_key = {}
134
134
  @api_key_prefix = {}
@@ -210,7 +210,7 @@ module PulpPythonClient
210
210
  def server_settings
211
211
  [
212
212
  {
213
- url: "http://localhost:24817/",
213
+ url: "http://pulp/",
214
214
  description: "No description provided",
215
215
  }
216
216
  ]