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_remote_href [String]
25
+ # @param nested_role [NestedRole]
26
+ # @param [Hash] opts the optional parameters
27
+ # @return [NestedRoleResponse]
28
+ def add_role(python_python_remote_href, nested_role, opts = {})
29
+ data, _status_code, _headers = add_role_with_http_info(python_python_remote_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_remote_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_remote_href, nested_role, opts = {})
40
+ if @api_client.config.debugging
41
+ @api_client.config.logger.debug 'Calling API: RemotesPythonApi.add_role ...'
42
+ end
43
+ # verify the required parameter 'python_python_remote_href' is set
44
+ if @api_client.config.client_side_validation && python_python_remote_href.nil?
45
+ fail ArgumentError, "Missing the required parameter 'python_python_remote_href' when calling RemotesPythonApi.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 RemotesPythonApi.add_role"
50
+ end
51
+ # resource path
52
+ local_var_path = '{python_python_remote_href}add_role/'.sub('{' + 'python_python_remote_href' + '}', CGI.escape(python_python_remote_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: RemotesPythonApi#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 remote
23
93
  # Python Remotes are representations of an external repository of Python content, eg. PyPI. Fields include upstream repository config. Python Remotes are also used to `sync` from upstream repositories, and contains sync settings.
24
94
  # @param python_python_remote [PythonPythonRemote]
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 [PythonPythonRemoteResponse]
28
97
  def create(python_python_remote, opts = {})
29
98
  data, _status_code, _headers = create_with_http_info(python_python_remote, opts)
@@ -34,7 +103,6 @@ module PulpPythonClient
34
103
  # Python Remotes are representations of an external repository of Python content, eg. PyPI. Fields include upstream repository config. Python Remotes are also used to &#x60;sync&#x60; from upstream repositories, and contains sync settings.
35
104
  # @param python_python_remote [PythonPythonRemote]
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<(PythonPythonRemoteResponse, Integer, Hash)>] PythonPythonRemoteResponse data, response status code and response headers
39
107
  def create_with_http_info(python_python_remote, 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_remote_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_remote_href, opts = {})
96
162
  data, _status_code, _headers = delete_with_http_info(python_python_remote_href, opts)
@@ -101,7 +167,6 @@ module PulpPythonClient
101
167
  # Trigger an asynchronous delete task
102
168
  # @param python_python_remote_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_remote_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] || {}
@@ -156,7 +220,6 @@ module PulpPythonClient
156
220
  # @param config [File] A Bandersnatch config that may be used to construct a Python Remote.
157
221
  # @param name [String] A unique name for this remote
158
222
  # @param [Hash] opts the optional parameters
159
- # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
160
223
  # @option opts [PolicyEnum] :policy The policy to use when downloading content. The possible values include: &#39;immediate&#39;, &#39;on_demand&#39;, and &#39;streamed&#39;. &#39;on_demand&#39; is the default. * &#x60;immediate&#x60; - When syncing, download all metadata and content now. * &#x60;on_demand&#x60; - When syncing, download metadata, but do not download content now. Instead, download content as clients request it, and save it in Pulp to be served for future client requests. * &#x60;streamed&#x60; - When syncing, download metadata, but do not download content now. Instead,download content as clients request it, but never save it in Pulp. This causes future requests for that same content to have to be downloaded again.
161
224
  # @return [PythonPythonRemoteResponse]
162
225
  def from_bandersnatch(config, name, opts = {})
@@ -169,7 +232,6 @@ module PulpPythonClient
169
232
  # @param config [File] A Bandersnatch config that may be used to construct a Python Remote.
170
233
  # @param name [String] A unique name for this remote
171
234
  # @param [Hash] opts the optional parameters
172
- # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
173
235
  # @option opts [PolicyEnum] :policy The policy to use when downloading content. The possible values include: &#39;immediate&#39;, &#39;on_demand&#39;, and &#39;streamed&#39;. &#39;on_demand&#39; is the default. * &#x60;immediate&#x60; - When syncing, download all metadata and content now. * &#x60;on_demand&#x60; - When syncing, download metadata, but do not download content now. Instead, download content as clients request it, and save it in Pulp to be served for future client requests. * &#x60;streamed&#x60; - When syncing, download metadata, but do not download content now. Instead,download content as clients request it, but never save it in Pulp. This causes future requests for that same content to have to be downloaded again.
174
236
  # @return [Array<(PythonPythonRemoteResponse, Integer, Hash)>] PythonPythonRemoteResponse data, response status code and response headers
175
237
  def from_bandersnatch_with_http_info(config, name, opts = {})
@@ -200,7 +262,6 @@ module PulpPythonClient
200
262
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
201
263
  # HTTP header 'Content-Type'
202
264
  header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/x-www-form-urlencoded'])
203
- header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
204
265
 
205
266
  # form parameters
206
267
  form_params = opts[:form_params] || {}
@@ -236,7 +297,6 @@ module PulpPythonClient
236
297
  # List python remotes
237
298
  # Python Remotes are representations of an external repository of Python content, eg. PyPI. Fields include upstream repository config. Python Remotes are also used to `sync` from upstream repositories, and contains sync settings.
238
299
  # @param [Hash] opts the optional parameters
239
- # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
240
300
  # @option opts [Integer] :limit Number of results to return per page.
241
301
  # @option opts [String] :name Filter results where name matches value
242
302
  # @option opts [String] :name__contains Filter results where name contains value
@@ -270,7 +330,6 @@ module PulpPythonClient
270
330
  # List python remotes
271
331
  # Python Remotes are representations of an external repository of Python content, eg. PyPI. Fields include upstream repository config. Python Remotes are also used to &#x60;sync&#x60; from upstream repositories, and contains sync settings.
272
332
  # @param [Hash] opts the optional parameters
273
- # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
274
333
  # @option opts [Integer] :limit Number of results to return per page.
275
334
  # @option opts [String] :name Filter results where name matches value
276
335
  # @option opts [String] :name__contains Filter results where name contains value
@@ -338,7 +397,6 @@ module PulpPythonClient
338
397
  header_params = opts[:header_params] || {}
339
398
  # HTTP header 'Accept' (if needed)
340
399
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
341
- header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
342
400
 
343
401
  # form parameters
344
402
  form_params = opts[:form_params] || {}
@@ -368,12 +426,147 @@ module PulpPythonClient
368
426
  return data, status_code, headers
369
427
  end
370
428
 
429
+ # List roles
430
+ # List roles assigned to this object.
431
+ # @param python_python_remote_href [String]
432
+ # @param [Hash] opts the optional parameters
433
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
434
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
435
+ # @return [ObjectRolesResponse]
436
+ def list_roles(python_python_remote_href, opts = {})
437
+ data, _status_code, _headers = list_roles_with_http_info(python_python_remote_href, opts)
438
+ data
439
+ end
440
+
441
+ # List roles
442
+ # List roles assigned to this object.
443
+ # @param python_python_remote_href [String]
444
+ # @param [Hash] opts the optional parameters
445
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
446
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
447
+ # @return [Array<(ObjectRolesResponse, Integer, Hash)>] ObjectRolesResponse data, response status code and response headers
448
+ def list_roles_with_http_info(python_python_remote_href, opts = {})
449
+ if @api_client.config.debugging
450
+ @api_client.config.logger.debug 'Calling API: RemotesPythonApi.list_roles ...'
451
+ end
452
+ # verify the required parameter 'python_python_remote_href' is set
453
+ if @api_client.config.client_side_validation && python_python_remote_href.nil?
454
+ fail ArgumentError, "Missing the required parameter 'python_python_remote_href' when calling RemotesPythonApi.list_roles"
455
+ end
456
+ # resource path
457
+ local_var_path = '{python_python_remote_href}list_roles/'.sub('{' + 'python_python_remote_href' + '}', CGI.escape(python_python_remote_href.to_s).gsub('%2F', '/'))
458
+
459
+ # query parameters
460
+ query_params = opts[:query_params] || {}
461
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
462
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
463
+
464
+ # header parameters
465
+ header_params = opts[:header_params] || {}
466
+ # HTTP header 'Accept' (if needed)
467
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
468
+
469
+ # form parameters
470
+ form_params = opts[:form_params] || {}
471
+
472
+ # http body (model)
473
+ post_body = opts[:body]
474
+
475
+ # return_type
476
+ return_type = opts[:return_type] || 'ObjectRolesResponse'
477
+
478
+ # auth_names
479
+ auth_names = opts[:auth_names] || ['basicAuth']
480
+
481
+ new_options = opts.merge(
482
+ :header_params => header_params,
483
+ :query_params => query_params,
484
+ :form_params => form_params,
485
+ :body => post_body,
486
+ :auth_names => auth_names,
487
+ :return_type => return_type
488
+ )
489
+
490
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
491
+ if @api_client.config.debugging
492
+ @api_client.config.logger.debug "API called: RemotesPythonApi#list_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
493
+ end
494
+ return data, status_code, headers
495
+ end
496
+
497
+ # List user permissions
498
+ # List permissions available to the current user on this object.
499
+ # @param python_python_remote_href [String]
500
+ # @param [Hash] opts the optional parameters
501
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
502
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
503
+ # @return [MyPermissionsResponse]
504
+ def my_permissions(python_python_remote_href, opts = {})
505
+ data, _status_code, _headers = my_permissions_with_http_info(python_python_remote_href, opts)
506
+ data
507
+ end
508
+
509
+ # List user permissions
510
+ # List permissions available to the current user on this object.
511
+ # @param python_python_remote_href [String]
512
+ # @param [Hash] opts the optional parameters
513
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
514
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
515
+ # @return [Array<(MyPermissionsResponse, Integer, Hash)>] MyPermissionsResponse data, response status code and response headers
516
+ def my_permissions_with_http_info(python_python_remote_href, opts = {})
517
+ if @api_client.config.debugging
518
+ @api_client.config.logger.debug 'Calling API: RemotesPythonApi.my_permissions ...'
519
+ end
520
+ # verify the required parameter 'python_python_remote_href' is set
521
+ if @api_client.config.client_side_validation && python_python_remote_href.nil?
522
+ fail ArgumentError, "Missing the required parameter 'python_python_remote_href' when calling RemotesPythonApi.my_permissions"
523
+ end
524
+ # resource path
525
+ local_var_path = '{python_python_remote_href}my_permissions/'.sub('{' + 'python_python_remote_href' + '}', CGI.escape(python_python_remote_href.to_s).gsub('%2F', '/'))
526
+
527
+ # query parameters
528
+ query_params = opts[:query_params] || {}
529
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
530
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
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
+
537
+ # form parameters
538
+ form_params = opts[:form_params] || {}
539
+
540
+ # http body (model)
541
+ post_body = opts[:body]
542
+
543
+ # return_type
544
+ return_type = opts[:return_type] || 'MyPermissionsResponse'
545
+
546
+ # auth_names
547
+ auth_names = opts[:auth_names] || ['basicAuth']
548
+
549
+ new_options = opts.merge(
550
+ :header_params => header_params,
551
+ :query_params => query_params,
552
+ :form_params => form_params,
553
+ :body => post_body,
554
+ :auth_names => auth_names,
555
+ :return_type => return_type
556
+ )
557
+
558
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
559
+ if @api_client.config.debugging
560
+ @api_client.config.logger.debug "API called: RemotesPythonApi#my_permissions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
561
+ end
562
+ return data, status_code, headers
563
+ end
564
+
371
565
  # Update a python remote
372
566
  # Trigger an asynchronous partial update task
373
567
  # @param python_python_remote_href [String]
374
568
  # @param patchedpython_python_remote [PatchedpythonPythonRemote]
375
569
  # @param [Hash] opts the optional parameters
376
- # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
377
570
  # @return [AsyncOperationResponse]
378
571
  def partial_update(python_python_remote_href, patchedpython_python_remote, opts = {})
379
572
  data, _status_code, _headers = partial_update_with_http_info(python_python_remote_href, patchedpython_python_remote, opts)
@@ -385,7 +578,6 @@ module PulpPythonClient
385
578
  # @param python_python_remote_href [String]
386
579
  # @param patchedpython_python_remote [PatchedpythonPythonRemote]
387
580
  # @param [Hash] opts the optional parameters
388
- # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
389
581
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
390
582
  def partial_update_with_http_info(python_python_remote_href, patchedpython_python_remote, opts = {})
391
583
  if @api_client.config.debugging
@@ -411,7 +603,6 @@ module PulpPythonClient
411
603
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
412
604
  # HTTP header 'Content-Type'
413
605
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
414
- header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
415
606
 
416
607
  # form parameters
417
608
  form_params = opts[:form_params] || {}
@@ -445,7 +636,6 @@ module PulpPythonClient
445
636
  # Python Remotes are representations of an external repository of Python content, eg. PyPI. Fields include upstream repository config. Python Remotes are also used to `sync` from upstream repositories, and contains sync settings.
446
637
  # @param python_python_remote_href [String]
447
638
  # @param [Hash] opts the optional parameters
448
- # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
449
639
  # @option opts [Array<String>] :fields A list of fields to include in the response.
450
640
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
451
641
  # @return [PythonPythonRemoteResponse]
@@ -458,7 +648,6 @@ module PulpPythonClient
458
648
  # Python Remotes are representations of an external repository of Python content, eg. PyPI. Fields include upstream repository config. Python Remotes are also used to &#x60;sync&#x60; from upstream repositories, and contains sync settings.
459
649
  # @param python_python_remote_href [String]
460
650
  # @param [Hash] opts the optional parameters
461
- # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
462
651
  # @option opts [Array<String>] :fields A list of fields to include in the response.
463
652
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
464
653
  # @return [Array<(PythonPythonRemoteResponse, Integer, Hash)>] PythonPythonRemoteResponse data, response status code and response headers
@@ -482,7 +671,6 @@ module PulpPythonClient
482
671
  header_params = opts[:header_params] || {}
483
672
  # HTTP header 'Accept' (if needed)
484
673
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
485
- header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
486
674
 
487
675
  # form parameters
488
676
  form_params = opts[:form_params] || {}
@@ -512,12 +700,81 @@ module PulpPythonClient
512
700
  return data, status_code, headers
513
701
  end
514
702
 
703
+ # Remove a role
704
+ # Remove a role for this object from users/groups.
705
+ # @param python_python_remote_href [String]
706
+ # @param nested_role [NestedRole]
707
+ # @param [Hash] opts the optional parameters
708
+ # @return [NestedRoleResponse]
709
+ def remove_role(python_python_remote_href, nested_role, opts = {})
710
+ data, _status_code, _headers = remove_role_with_http_info(python_python_remote_href, nested_role, opts)
711
+ data
712
+ end
713
+
714
+ # Remove a role
715
+ # Remove a role for this object from users/groups.
716
+ # @param python_python_remote_href [String]
717
+ # @param nested_role [NestedRole]
718
+ # @param [Hash] opts the optional parameters
719
+ # @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
720
+ def remove_role_with_http_info(python_python_remote_href, nested_role, opts = {})
721
+ if @api_client.config.debugging
722
+ @api_client.config.logger.debug 'Calling API: RemotesPythonApi.remove_role ...'
723
+ end
724
+ # verify the required parameter 'python_python_remote_href' is set
725
+ if @api_client.config.client_side_validation && python_python_remote_href.nil?
726
+ fail ArgumentError, "Missing the required parameter 'python_python_remote_href' when calling RemotesPythonApi.remove_role"
727
+ end
728
+ # verify the required parameter 'nested_role' is set
729
+ if @api_client.config.client_side_validation && nested_role.nil?
730
+ fail ArgumentError, "Missing the required parameter 'nested_role' when calling RemotesPythonApi.remove_role"
731
+ end
732
+ # resource path
733
+ local_var_path = '{python_python_remote_href}remove_role/'.sub('{' + 'python_python_remote_href' + '}', CGI.escape(python_python_remote_href.to_s).gsub('%2F', '/'))
734
+
735
+ # query parameters
736
+ query_params = opts[:query_params] || {}
737
+
738
+ # header parameters
739
+ header_params = opts[:header_params] || {}
740
+ # HTTP header 'Accept' (if needed)
741
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
742
+ # HTTP header 'Content-Type'
743
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
744
+
745
+ # form parameters
746
+ form_params = opts[:form_params] || {}
747
+
748
+ # http body (model)
749
+ post_body = opts[:body] || @api_client.object_to_http_body(nested_role)
750
+
751
+ # return_type
752
+ return_type = opts[:return_type] || 'NestedRoleResponse'
753
+
754
+ # auth_names
755
+ auth_names = opts[:auth_names] || ['basicAuth']
756
+
757
+ new_options = opts.merge(
758
+ :header_params => header_params,
759
+ :query_params => query_params,
760
+ :form_params => form_params,
761
+ :body => post_body,
762
+ :auth_names => auth_names,
763
+ :return_type => return_type
764
+ )
765
+
766
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
767
+ if @api_client.config.debugging
768
+ @api_client.config.logger.debug "API called: RemotesPythonApi#remove_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
769
+ end
770
+ return data, status_code, headers
771
+ end
772
+
515
773
  # Set a label
516
774
  # Set a single pulp_label on the object to a specific value or null.
517
775
  # @param python_python_remote_href [String]
518
776
  # @param set_label [SetLabel]
519
777
  # @param [Hash] opts the optional parameters
520
- # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
521
778
  # @return [SetLabelResponse]
522
779
  def set_label(python_python_remote_href, set_label, opts = {})
523
780
  data, _status_code, _headers = set_label_with_http_info(python_python_remote_href, set_label, opts)
@@ -529,7 +786,6 @@ module PulpPythonClient
529
786
  # @param python_python_remote_href [String]
530
787
  # @param set_label [SetLabel]
531
788
  # @param [Hash] opts the optional parameters
532
- # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
533
789
  # @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
534
790
  def set_label_with_http_info(python_python_remote_href, set_label, opts = {})
535
791
  if @api_client.config.debugging
@@ -555,7 +811,6 @@ module PulpPythonClient
555
811
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
556
812
  # HTTP header 'Content-Type'
557
813
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
558
- header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
559
814
 
560
815
  # form parameters
561
816
  form_params = opts[:form_params] || {}
@@ -590,7 +845,6 @@ module PulpPythonClient
590
845
  # @param python_python_remote_href [String]
591
846
  # @param unset_label [UnsetLabel]
592
847
  # @param [Hash] opts the optional parameters
593
- # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
594
848
  # @return [UnsetLabelResponse]
595
849
  def unset_label(python_python_remote_href, unset_label, opts = {})
596
850
  data, _status_code, _headers = unset_label_with_http_info(python_python_remote_href, unset_label, opts)
@@ -602,7 +856,6 @@ module PulpPythonClient
602
856
  # @param python_python_remote_href [String]
603
857
  # @param unset_label [UnsetLabel]
604
858
  # @param [Hash] opts the optional parameters
605
- # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
606
859
  # @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
607
860
  def unset_label_with_http_info(python_python_remote_href, unset_label, opts = {})
608
861
  if @api_client.config.debugging
@@ -628,7 +881,6 @@ module PulpPythonClient
628
881
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
629
882
  # HTTP header 'Content-Type'
630
883
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
631
- header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
632
884
 
633
885
  # form parameters
634
886
  form_params = opts[:form_params] || {}
@@ -663,7 +915,6 @@ module PulpPythonClient
663
915
  # @param python_python_remote_href [String]
664
916
  # @param python_python_remote [PythonPythonRemote]
665
917
  # @param [Hash] opts the optional parameters
666
- # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
667
918
  # @return [AsyncOperationResponse]
668
919
  def update(python_python_remote_href, python_python_remote, opts = {})
669
920
  data, _status_code, _headers = update_with_http_info(python_python_remote_href, python_python_remote, opts)
@@ -675,7 +926,6 @@ module PulpPythonClient
675
926
  # @param python_python_remote_href [String]
676
927
  # @param python_python_remote [PythonPythonRemote]
677
928
  # @param [Hash] opts the optional parameters
678
- # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
679
929
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
680
930
  def update_with_http_info(python_python_remote_href, python_python_remote, opts = {})
681
931
  if @api_client.config.debugging
@@ -701,7 +951,6 @@ module PulpPythonClient
701
951
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
702
952
  # HTTP header 'Content-Type'
703
953
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
704
- header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
705
954
 
706
955
  # form parameters
707
956
  form_params = opts[:form_params] || {}