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
@@ -23,7 +23,6 @@ module PulpPythonClient
23
23
  # Trigger an asynchronous task to create content,optionally create new repository version.
24
24
  # @param relative_path [String] Path where the artifact is located relative to distributions base_path
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
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
28
27
  # @option opts [String] :artifact Artifact file representing the physical content
29
28
  # @option opts [File] :file An uploaded file that may be turned into the content unit.
@@ -42,14 +41,14 @@ module PulpPythonClient
42
41
  # @option opts [String] :license Text indicating the license covering the distribution
43
42
  # @option opts [String] :requires_python The Python version(s) that the distribution is guaranteed to be compatible with.
44
43
  # @option opts [String] :project_url A browsable URL for the project and a label for it, separated by a comma.
45
- # @option opts [Object] :project_urls A dictionary of labels and URLs for the project.
44
+ # @option opts [AnyType] :project_urls A dictionary of labels and URLs for the project.
46
45
  # @option opts [String] :platform A comma-separated list of platform specifications, summarizing the operating systems supported by the package.
47
46
  # @option opts [String] :supported_platform Field to specify the OS and CPU for which the binary package was compiled.
48
- # @option opts [Object] :requires_dist A JSON list containing names of some other distutils project required by this distribution.
49
- # @option opts [Object] :provides_dist A JSON list containing names of a Distutils project which is contained within this distribution.
50
- # @option opts [Object] :obsoletes_dist A JSON list containing names of a distutils project&#39;s distribution which this distribution renders obsolete, meaning that the two projects should not be installed at the same time.
51
- # @option opts [Object] :requires_external A JSON list containing some dependency in the system that the distribution is to be used.
52
- # @option opts [Object] :classifiers A JSON list containing classification values for a Python package.
47
+ # @option opts [AnyType] :requires_dist A JSON list containing names of some other distutils project required by this distribution.
48
+ # @option opts [AnyType] :provides_dist A JSON list containing names of a Distutils project which is contained within this distribution.
49
+ # @option opts [AnyType] :obsoletes_dist A JSON list containing names of a distutils project&#39;s distribution which this distribution renders obsolete, meaning that the two projects should not be installed at the same time.
50
+ # @option opts [AnyType] :requires_external A JSON list containing some dependency in the system that the distribution is to be used.
51
+ # @option opts [AnyType] :classifiers A JSON list containing classification values for a Python package.
53
52
  # @return [AsyncOperationResponse]
54
53
  def create(relative_path, opts = {})
55
54
  data, _status_code, _headers = create_with_http_info(relative_path, opts)
@@ -60,7 +59,6 @@ module PulpPythonClient
60
59
  # Trigger an asynchronous task to create content,optionally create new repository version.
61
60
  # @param relative_path [String] Path where the artifact is located relative to distributions base_path
62
61
  # @param [Hash] opts the optional parameters
63
- # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
64
62
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
65
63
  # @option opts [String] :artifact Artifact file representing the physical content
66
64
  # @option opts [File] :file An uploaded file that may be turned into the content unit.
@@ -79,14 +77,14 @@ module PulpPythonClient
79
77
  # @option opts [String] :license Text indicating the license covering the distribution
80
78
  # @option opts [String] :requires_python The Python version(s) that the distribution is guaranteed to be compatible with.
81
79
  # @option opts [String] :project_url A browsable URL for the project and a label for it, separated by a comma.
82
- # @option opts [Object] :project_urls A dictionary of labels and URLs for the project.
80
+ # @option opts [AnyType] :project_urls A dictionary of labels and URLs for the project.
83
81
  # @option opts [String] :platform A comma-separated list of platform specifications, summarizing the operating systems supported by the package.
84
82
  # @option opts [String] :supported_platform Field to specify the OS and CPU for which the binary package was compiled.
85
- # @option opts [Object] :requires_dist A JSON list containing names of some other distutils project required by this distribution.
86
- # @option opts [Object] :provides_dist A JSON list containing names of a Distutils project which is contained within this distribution.
87
- # @option opts [Object] :obsoletes_dist A JSON list containing names of a distutils project&#39;s distribution which this distribution renders obsolete, meaning that the two projects should not be installed at the same time.
88
- # @option opts [Object] :requires_external A JSON list containing some dependency in the system that the distribution is to be used.
89
- # @option opts [Object] :classifiers A JSON list containing classification values for a Python package.
83
+ # @option opts [AnyType] :requires_dist A JSON list containing names of some other distutils project required by this distribution.
84
+ # @option opts [AnyType] :provides_dist A JSON list containing names of a Distutils project which is contained within this distribution.
85
+ # @option opts [AnyType] :obsoletes_dist A JSON list containing names of a distutils project&#39;s distribution which this distribution renders obsolete, meaning that the two projects should not be installed at the same time.
86
+ # @option opts [AnyType] :requires_external A JSON list containing some dependency in the system that the distribution is to be used.
87
+ # @option opts [AnyType] :classifiers A JSON list containing classification values for a Python package.
90
88
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
91
89
  def create_with_http_info(relative_path, opts = {})
92
90
  if @api_client.config.debugging
@@ -116,7 +114,6 @@ module PulpPythonClient
116
114
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
117
115
  # HTTP header 'Content-Type'
118
116
  header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/x-www-form-urlencoded'])
119
- header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
120
117
 
121
118
  # form parameters
122
119
  form_params = opts[:form_params] || {}
@@ -176,7 +173,6 @@ module PulpPythonClient
176
173
  # List python package contents
177
174
  # PythonPackageContent represents each individually installable Python package. In the Python ecosystem, this is called a Python Distribution, sometimes (ambiguously) refered to as a package. In Pulp Python, we refer to it as PythonPackageContent. Each PythonPackageContent corresponds to a single filename, for example `pulpcore-3.0.0rc1-py3-none-any.whl` or `pulpcore-3.0.0rc1.tar.gz`.
178
175
  # @param [Hash] opts the optional parameters
179
- # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
180
176
  # @option opts [String] :author Filter results where author matches value
181
177
  # @option opts [Array<String>] :author__in Filter results where author is in a comma-separated list of values
182
178
  # @option opts [String] :filename Filter results where filename matches value
@@ -219,7 +215,6 @@ module PulpPythonClient
219
215
  # List python package contents
220
216
  # PythonPackageContent represents each individually installable Python package. In the Python ecosystem, this is called a Python Distribution, sometimes (ambiguously) refered to as a package. In Pulp Python, we refer to it as PythonPackageContent. Each PythonPackageContent corresponds to a single filename, for example &#x60;pulpcore-3.0.0rc1-py3-none-any.whl&#x60; or &#x60;pulpcore-3.0.0rc1.tar.gz&#x60;.
221
217
  # @param [Hash] opts the optional parameters
222
- # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
223
218
  # @option opts [String] :author Filter results where author matches value
224
219
  # @option opts [Array<String>] :author__in Filter results where author is in a comma-separated list of values
225
220
  # @option opts [String] :filename Filter results where filename matches value
@@ -309,7 +304,6 @@ module PulpPythonClient
309
304
  header_params = opts[:header_params] || {}
310
305
  # HTTP header 'Accept' (if needed)
311
306
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
312
- header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
313
307
 
314
308
  # form parameters
315
309
  form_params = opts[:form_params] || {}
@@ -343,7 +337,6 @@ module PulpPythonClient
343
337
  # PythonPackageContent represents each individually installable Python package. In the Python ecosystem, this is called a Python Distribution, sometimes (ambiguously) refered to as a package. In Pulp Python, we refer to it as PythonPackageContent. Each PythonPackageContent corresponds to a single filename, for example `pulpcore-3.0.0rc1-py3-none-any.whl` or `pulpcore-3.0.0rc1.tar.gz`.
344
338
  # @param python_python_package_content_href [String]
345
339
  # @param [Hash] opts the optional parameters
346
- # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
347
340
  # @option opts [Array<String>] :fields A list of fields to include in the response.
348
341
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
349
342
  # @return [PythonPythonPackageContentResponse]
@@ -356,7 +349,6 @@ module PulpPythonClient
356
349
  # PythonPackageContent represents each individually installable Python package. In the Python ecosystem, this is called a Python Distribution, sometimes (ambiguously) refered to as a package. In Pulp Python, we refer to it as PythonPackageContent. Each PythonPackageContent corresponds to a single filename, for example &#x60;pulpcore-3.0.0rc1-py3-none-any.whl&#x60; or &#x60;pulpcore-3.0.0rc1.tar.gz&#x60;.
357
350
  # @param python_python_package_content_href [String]
358
351
  # @param [Hash] opts the optional parameters
359
- # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
360
352
  # @option opts [Array<String>] :fields A list of fields to include in the response.
361
353
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
362
354
  # @return [Array<(PythonPythonPackageContentResponse, Integer, Hash)>] PythonPythonPackageContentResponse data, response status code and response headers
@@ -380,7 +372,6 @@ module PulpPythonClient
380
372
  header_params = opts[:header_params] || {}
381
373
  # HTTP header 'Accept' (if needed)
382
374
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
383
- header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
384
375
 
385
376
  # form parameters
386
377
  form_params = opts[:form_params] || {}
@@ -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_distribution_href [String]
25
+ # @param nested_role [NestedRole]
26
+ # @param [Hash] opts the optional parameters
27
+ # @return [NestedRoleResponse]
28
+ def add_role(python_python_distribution_href, nested_role, opts = {})
29
+ data, _status_code, _headers = add_role_with_http_info(python_python_distribution_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_distribution_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_distribution_href, nested_role, opts = {})
40
+ if @api_client.config.debugging
41
+ @api_client.config.logger.debug 'Calling API: DistributionsPypiApi.add_role ...'
42
+ end
43
+ # verify the required parameter 'python_python_distribution_href' is set
44
+ if @api_client.config.client_side_validation && python_python_distribution_href.nil?
45
+ fail ArgumentError, "Missing the required parameter 'python_python_distribution_href' when calling DistributionsPypiApi.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 DistributionsPypiApi.add_role"
50
+ end
51
+ # resource path
52
+ local_var_path = '{python_python_distribution_href}add_role/'.sub('{' + 'python_python_distribution_href' + '}', CGI.escape(python_python_distribution_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: DistributionsPypiApi#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 distribution
23
93
  # Trigger an asynchronous create task
24
94
  # @param python_python_distribution [PythonPythonDistribution]
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 [AsyncOperationResponse]
28
97
  def create(python_python_distribution, opts = {})
29
98
  data, _status_code, _headers = create_with_http_info(python_python_distribution, opts)
@@ -34,7 +103,6 @@ module PulpPythonClient
34
103
  # Trigger an asynchronous create task
35
104
  # @param python_python_distribution [PythonPythonDistribution]
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<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
39
107
  def create_with_http_info(python_python_distribution, 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_distribution_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_distribution_href, opts = {})
96
162
  data, _status_code, _headers = delete_with_http_info(python_python_distribution_href, opts)
@@ -101,7 +167,6 @@ module PulpPythonClient
101
167
  # Trigger an asynchronous delete task
102
168
  # @param python_python_distribution_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_distribution_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 distributions
155
219
  # Pulp Python Distributions are used to distribute Python content from Python Repositories or Python Publications. Pulp Python Distributions should not be confused with \"Python Distribution\" as defined by the Python community. In Pulp usage, Python content is referred to as Python Package Content.
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] :base_path Filter results where base_path matches value
159
222
  # @option opts [String] :base_path__contains Filter results where base_path contains value
160
223
  # @option opts [String] :base_path__icontains Filter results where base_path contains value
@@ -189,7 +252,6 @@ module PulpPythonClient
189
252
  # List python distributions
190
253
  # Pulp Python Distributions are used to distribute Python content from Python Repositories or Python Publications. Pulp Python Distributions should not be confused with \&quot;Python Distribution\&quot; as defined by the Python community. In Pulp usage, Python content is referred to as Python Package Content.
191
254
  # @param [Hash] opts the optional parameters
192
- # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
193
255
  # @option opts [String] :base_path Filter results where base_path matches value
194
256
  # @option opts [String] :base_path__contains Filter results where base_path contains value
195
257
  # @option opts [String] :base_path__icontains Filter results where base_path contains value
@@ -259,7 +321,6 @@ module PulpPythonClient
259
321
  header_params = opts[:header_params] || {}
260
322
  # HTTP header 'Accept' (if needed)
261
323
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
262
- header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
263
324
 
264
325
  # form parameters
265
326
  form_params = opts[:form_params] || {}
@@ -289,12 +350,147 @@ module PulpPythonClient
289
350
  return data, status_code, headers
290
351
  end
291
352
 
353
+ # List roles
354
+ # List roles assigned to this object.
355
+ # @param python_python_distribution_href [String]
356
+ # @param [Hash] opts the optional parameters
357
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
358
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
359
+ # @return [ObjectRolesResponse]
360
+ def list_roles(python_python_distribution_href, opts = {})
361
+ data, _status_code, _headers = list_roles_with_http_info(python_python_distribution_href, opts)
362
+ data
363
+ end
364
+
365
+ # List roles
366
+ # List roles assigned to this object.
367
+ # @param python_python_distribution_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 [Array<(ObjectRolesResponse, Integer, Hash)>] ObjectRolesResponse data, response status code and response headers
372
+ def list_roles_with_http_info(python_python_distribution_href, opts = {})
373
+ if @api_client.config.debugging
374
+ @api_client.config.logger.debug 'Calling API: DistributionsPypiApi.list_roles ...'
375
+ end
376
+ # verify the required parameter 'python_python_distribution_href' is set
377
+ if @api_client.config.client_side_validation && python_python_distribution_href.nil?
378
+ fail ArgumentError, "Missing the required parameter 'python_python_distribution_href' when calling DistributionsPypiApi.list_roles"
379
+ end
380
+ # resource path
381
+ local_var_path = '{python_python_distribution_href}list_roles/'.sub('{' + 'python_python_distribution_href' + '}', CGI.escape(python_python_distribution_href.to_s).gsub('%2F', '/'))
382
+
383
+ # query parameters
384
+ query_params = opts[:query_params] || {}
385
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
386
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
387
+
388
+ # header parameters
389
+ header_params = opts[:header_params] || {}
390
+ # HTTP header 'Accept' (if needed)
391
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
392
+
393
+ # form parameters
394
+ form_params = opts[:form_params] || {}
395
+
396
+ # http body (model)
397
+ post_body = opts[:body]
398
+
399
+ # return_type
400
+ return_type = opts[:return_type] || 'ObjectRolesResponse'
401
+
402
+ # auth_names
403
+ auth_names = opts[:auth_names] || ['basicAuth']
404
+
405
+ new_options = opts.merge(
406
+ :header_params => header_params,
407
+ :query_params => query_params,
408
+ :form_params => form_params,
409
+ :body => post_body,
410
+ :auth_names => auth_names,
411
+ :return_type => return_type
412
+ )
413
+
414
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
415
+ if @api_client.config.debugging
416
+ @api_client.config.logger.debug "API called: DistributionsPypiApi#list_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
417
+ end
418
+ return data, status_code, headers
419
+ end
420
+
421
+ # List user permissions
422
+ # List permissions available to the current user on this object.
423
+ # @param python_python_distribution_href [String]
424
+ # @param [Hash] opts the optional parameters
425
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
426
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
427
+ # @return [MyPermissionsResponse]
428
+ def my_permissions(python_python_distribution_href, opts = {})
429
+ data, _status_code, _headers = my_permissions_with_http_info(python_python_distribution_href, opts)
430
+ data
431
+ end
432
+
433
+ # List user permissions
434
+ # List permissions available to the current user on this object.
435
+ # @param python_python_distribution_href [String]
436
+ # @param [Hash] opts the optional parameters
437
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
438
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
439
+ # @return [Array<(MyPermissionsResponse, Integer, Hash)>] MyPermissionsResponse data, response status code and response headers
440
+ def my_permissions_with_http_info(python_python_distribution_href, opts = {})
441
+ if @api_client.config.debugging
442
+ @api_client.config.logger.debug 'Calling API: DistributionsPypiApi.my_permissions ...'
443
+ end
444
+ # verify the required parameter 'python_python_distribution_href' is set
445
+ if @api_client.config.client_side_validation && python_python_distribution_href.nil?
446
+ fail ArgumentError, "Missing the required parameter 'python_python_distribution_href' when calling DistributionsPypiApi.my_permissions"
447
+ end
448
+ # resource path
449
+ local_var_path = '{python_python_distribution_href}my_permissions/'.sub('{' + 'python_python_distribution_href' + '}', CGI.escape(python_python_distribution_href.to_s).gsub('%2F', '/'))
450
+
451
+ # query parameters
452
+ query_params = opts[:query_params] || {}
453
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
454
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
455
+
456
+ # header parameters
457
+ header_params = opts[:header_params] || {}
458
+ # HTTP header 'Accept' (if needed)
459
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
460
+
461
+ # form parameters
462
+ form_params = opts[:form_params] || {}
463
+
464
+ # http body (model)
465
+ post_body = opts[:body]
466
+
467
+ # return_type
468
+ return_type = opts[:return_type] || 'MyPermissionsResponse'
469
+
470
+ # auth_names
471
+ auth_names = opts[:auth_names] || ['basicAuth']
472
+
473
+ new_options = opts.merge(
474
+ :header_params => header_params,
475
+ :query_params => query_params,
476
+ :form_params => form_params,
477
+ :body => post_body,
478
+ :auth_names => auth_names,
479
+ :return_type => return_type
480
+ )
481
+
482
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
483
+ if @api_client.config.debugging
484
+ @api_client.config.logger.debug "API called: DistributionsPypiApi#my_permissions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
485
+ end
486
+ return data, status_code, headers
487
+ end
488
+
292
489
  # Update a python distribution
293
490
  # Trigger an asynchronous partial update task
294
491
  # @param python_python_distribution_href [String]
295
492
  # @param patchedpython_python_distribution [PatchedpythonPythonDistribution]
296
493
  # @param [Hash] opts the optional parameters
297
- # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
298
494
  # @return [AsyncOperationResponse]
299
495
  def partial_update(python_python_distribution_href, patchedpython_python_distribution, opts = {})
300
496
  data, _status_code, _headers = partial_update_with_http_info(python_python_distribution_href, patchedpython_python_distribution, opts)
@@ -306,7 +502,6 @@ module PulpPythonClient
306
502
  # @param python_python_distribution_href [String]
307
503
  # @param patchedpython_python_distribution [PatchedpythonPythonDistribution]
308
504
  # @param [Hash] opts the optional parameters
309
- # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
310
505
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
311
506
  def partial_update_with_http_info(python_python_distribution_href, patchedpython_python_distribution, opts = {})
312
507
  if @api_client.config.debugging
@@ -332,7 +527,6 @@ module PulpPythonClient
332
527
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
333
528
  # HTTP header 'Content-Type'
334
529
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
335
- header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
336
530
 
337
531
  # form parameters
338
532
  form_params = opts[:form_params] || {}
@@ -366,7 +560,6 @@ module PulpPythonClient
366
560
  # Pulp Python Distributions are used to distribute Python content from Python Repositories or Python Publications. Pulp Python Distributions should not be confused with \"Python Distribution\" as defined by the Python community. In Pulp usage, Python content is referred to as Python Package Content.
367
561
  # @param python_python_distribution_href [String]
368
562
  # @param [Hash] opts the optional parameters
369
- # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
370
563
  # @option opts [Array<String>] :fields A list of fields to include in the response.
371
564
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
372
565
  # @return [PythonPythonDistributionResponse]
@@ -379,7 +572,6 @@ module PulpPythonClient
379
572
  # Pulp Python Distributions are used to distribute Python content from Python Repositories or Python Publications. Pulp Python Distributions should not be confused with \&quot;Python Distribution\&quot; as defined by the Python community. In Pulp usage, Python content is referred to as Python Package Content.
380
573
  # @param python_python_distribution_href [String]
381
574
  # @param [Hash] opts the optional parameters
382
- # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
383
575
  # @option opts [Array<String>] :fields A list of fields to include in the response.
384
576
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
385
577
  # @return [Array<(PythonPythonDistributionResponse, Integer, Hash)>] PythonPythonDistributionResponse data, response status code and response headers
@@ -403,7 +595,6 @@ module PulpPythonClient
403
595
  header_params = opts[:header_params] || {}
404
596
  # HTTP header 'Accept' (if needed)
405
597
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
406
- header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
407
598
 
408
599
  # form parameters
409
600
  form_params = opts[:form_params] || {}
@@ -433,12 +624,81 @@ module PulpPythonClient
433
624
  return data, status_code, headers
434
625
  end
435
626
 
627
+ # Remove a role
628
+ # Remove a role for this object from users/groups.
629
+ # @param python_python_distribution_href [String]
630
+ # @param nested_role [NestedRole]
631
+ # @param [Hash] opts the optional parameters
632
+ # @return [NestedRoleResponse]
633
+ def remove_role(python_python_distribution_href, nested_role, opts = {})
634
+ data, _status_code, _headers = remove_role_with_http_info(python_python_distribution_href, nested_role, opts)
635
+ data
636
+ end
637
+
638
+ # Remove a role
639
+ # Remove a role for this object from users/groups.
640
+ # @param python_python_distribution_href [String]
641
+ # @param nested_role [NestedRole]
642
+ # @param [Hash] opts the optional parameters
643
+ # @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
644
+ def remove_role_with_http_info(python_python_distribution_href, nested_role, opts = {})
645
+ if @api_client.config.debugging
646
+ @api_client.config.logger.debug 'Calling API: DistributionsPypiApi.remove_role ...'
647
+ end
648
+ # verify the required parameter 'python_python_distribution_href' is set
649
+ if @api_client.config.client_side_validation && python_python_distribution_href.nil?
650
+ fail ArgumentError, "Missing the required parameter 'python_python_distribution_href' when calling DistributionsPypiApi.remove_role"
651
+ end
652
+ # verify the required parameter 'nested_role' is set
653
+ if @api_client.config.client_side_validation && nested_role.nil?
654
+ fail ArgumentError, "Missing the required parameter 'nested_role' when calling DistributionsPypiApi.remove_role"
655
+ end
656
+ # resource path
657
+ local_var_path = '{python_python_distribution_href}remove_role/'.sub('{' + 'python_python_distribution_href' + '}', CGI.escape(python_python_distribution_href.to_s).gsub('%2F', '/'))
658
+
659
+ # query parameters
660
+ query_params = opts[:query_params] || {}
661
+
662
+ # header parameters
663
+ header_params = opts[:header_params] || {}
664
+ # HTTP header 'Accept' (if needed)
665
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
666
+ # HTTP header 'Content-Type'
667
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
668
+
669
+ # form parameters
670
+ form_params = opts[:form_params] || {}
671
+
672
+ # http body (model)
673
+ post_body = opts[:body] || @api_client.object_to_http_body(nested_role)
674
+
675
+ # return_type
676
+ return_type = opts[:return_type] || 'NestedRoleResponse'
677
+
678
+ # auth_names
679
+ auth_names = opts[:auth_names] || ['basicAuth']
680
+
681
+ new_options = opts.merge(
682
+ :header_params => header_params,
683
+ :query_params => query_params,
684
+ :form_params => form_params,
685
+ :body => post_body,
686
+ :auth_names => auth_names,
687
+ :return_type => return_type
688
+ )
689
+
690
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
691
+ if @api_client.config.debugging
692
+ @api_client.config.logger.debug "API called: DistributionsPypiApi#remove_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
693
+ end
694
+ return data, status_code, headers
695
+ end
696
+
436
697
  # Set a label
437
698
  # Set a single pulp_label on the object to a specific value or null.
438
699
  # @param python_python_distribution_href [String]
439
700
  # @param set_label [SetLabel]
440
701
  # @param [Hash] opts the optional parameters
441
- # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
442
702
  # @return [SetLabelResponse]
443
703
  def set_label(python_python_distribution_href, set_label, opts = {})
444
704
  data, _status_code, _headers = set_label_with_http_info(python_python_distribution_href, set_label, opts)
@@ -450,7 +710,6 @@ module PulpPythonClient
450
710
  # @param python_python_distribution_href [String]
451
711
  # @param set_label [SetLabel]
452
712
  # @param [Hash] opts the optional parameters
453
- # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
454
713
  # @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
455
714
  def set_label_with_http_info(python_python_distribution_href, set_label, opts = {})
456
715
  if @api_client.config.debugging
@@ -476,7 +735,6 @@ module PulpPythonClient
476
735
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
477
736
  # HTTP header 'Content-Type'
478
737
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
479
- header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
480
738
 
481
739
  # form parameters
482
740
  form_params = opts[:form_params] || {}
@@ -511,7 +769,6 @@ module PulpPythonClient
511
769
  # @param python_python_distribution_href [String]
512
770
  # @param unset_label [UnsetLabel]
513
771
  # @param [Hash] opts the optional parameters
514
- # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
515
772
  # @return [UnsetLabelResponse]
516
773
  def unset_label(python_python_distribution_href, unset_label, opts = {})
517
774
  data, _status_code, _headers = unset_label_with_http_info(python_python_distribution_href, unset_label, opts)
@@ -523,7 +780,6 @@ module PulpPythonClient
523
780
  # @param python_python_distribution_href [String]
524
781
  # @param unset_label [UnsetLabel]
525
782
  # @param [Hash] opts the optional parameters
526
- # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
527
783
  # @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
528
784
  def unset_label_with_http_info(python_python_distribution_href, unset_label, opts = {})
529
785
  if @api_client.config.debugging
@@ -549,7 +805,6 @@ module PulpPythonClient
549
805
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
550
806
  # HTTP header 'Content-Type'
551
807
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
552
- header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
553
808
 
554
809
  # form parameters
555
810
  form_params = opts[:form_params] || {}
@@ -584,7 +839,6 @@ module PulpPythonClient
584
839
  # @param python_python_distribution_href [String]
585
840
  # @param python_python_distribution [PythonPythonDistribution]
586
841
  # @param [Hash] opts the optional parameters
587
- # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
588
842
  # @return [AsyncOperationResponse]
589
843
  def update(python_python_distribution_href, python_python_distribution, opts = {})
590
844
  data, _status_code, _headers = update_with_http_info(python_python_distribution_href, python_python_distribution, opts)
@@ -596,7 +850,6 @@ module PulpPythonClient
596
850
  # @param python_python_distribution_href [String]
597
851
  # @param python_python_distribution [PythonPythonDistribution]
598
852
  # @param [Hash] opts the optional parameters
599
- # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
600
853
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
601
854
  def update_with_http_info(python_python_distribution_href, python_python_distribution, opts = {})
602
855
  if @api_client.config.debugging
@@ -622,7 +875,6 @@ module PulpPythonClient
622
875
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
623
876
  # HTTP header 'Content-Type'
624
877
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
625
- header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
626
878
 
627
879
  # form parameters
628
880
  form_params = opts[:form_params] || {}