pulp_python_client 3.11.2 → 3.12.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +30 -10
  3. data/docs/ContentPackagesApi.md +12 -12
  4. data/docs/DistributionsPypiApi.md +232 -0
  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 +232 -0
  11. data/docs/PypiApi.md +7 -1
  12. data/docs/PypiMetadataApi.md +7 -1
  13. data/docs/PythonPythonPackageContent.md +6 -6
  14. data/docs/PythonPythonPackageContentResponse.md +6 -6
  15. data/docs/RemotesPythonApi.md +232 -0
  16. data/docs/RepositoriesPythonApi.md +232 -0
  17. data/lib/pulp_python_client/api/content_packages_api.rb +12 -12
  18. data/lib/pulp_python_client/api/distributions_pypi_api.rb +276 -0
  19. data/lib/pulp_python_client/api/publications_pypi_api.rb +276 -0
  20. data/lib/pulp_python_client/api/pypi_api.rb +1 -1
  21. data/lib/pulp_python_client/api/pypi_metadata_api.rb +1 -1
  22. data/lib/pulp_python_client/api/remotes_python_api.rb +276 -0
  23. data/lib/pulp_python_client/api/repositories_python_api.rb +276 -0
  24. data/lib/pulp_python_client/models/my_permissions_response.rb +213 -0
  25. data/lib/pulp_python_client/models/nested_role.rb +253 -0
  26. data/lib/pulp_python_client/models/nested_role_response.rb +234 -0
  27. data/lib/pulp_python_client/models/object_roles_response.rb +213 -0
  28. data/lib/pulp_python_client/models/package_metadata_response.rb +3 -3
  29. data/lib/pulp_python_client/models/package_upload_task_response.rb +2 -10
  30. data/lib/pulp_python_client/models/python_python_package_content.rb +6 -6
  31. data/lib/pulp_python_client/models/python_python_package_content_response.rb +6 -6
  32. data/lib/pulp_python_client/version.rb +1 -1
  33. data/lib/pulp_python_client.rb +4 -0
  34. data/spec/api/content_packages_api_spec.rb +6 -6
  35. data/spec/api/distributions_pypi_api_spec.rb +54 -0
  36. data/spec/api/publications_pypi_api_spec.rb +54 -0
  37. data/spec/api/remotes_python_api_spec.rb +54 -0
  38. data/spec/api/repositories_python_api_spec.rb +54 -0
  39. data/spec/models/my_permissions_response_spec.rb +41 -0
  40. data/spec/models/nested_role_response_spec.rb +53 -0
  41. data/spec/models/nested_role_spec.rb +53 -0
  42. data/spec/models/object_roles_response_spec.rb +41 -0
  43. metadata +17 -1
@@ -19,6 +19,76 @@ 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_publication_href [String]
25
+ # @param nested_role [NestedRole]
26
+ # @param [Hash] opts the optional parameters
27
+ # @return [NestedRoleResponse]
28
+ def add_role(python_python_publication_href, nested_role, opts = {})
29
+ data, _status_code, _headers = add_role_with_http_info(python_python_publication_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_publication_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_publication_href, nested_role, opts = {})
40
+ if @api_client.config.debugging
41
+ @api_client.config.logger.debug 'Calling API: PublicationsPypiApi.add_role ...'
42
+ end
43
+ # verify the required parameter 'python_python_publication_href' is set
44
+ if @api_client.config.client_side_validation && python_python_publication_href.nil?
45
+ fail ArgumentError, "Missing the required parameter 'python_python_publication_href' when calling PublicationsPypiApi.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 PublicationsPypiApi.add_role"
50
+ end
51
+ # resource path
52
+ local_var_path = '{python_python_publication_href}add_role/'.sub('{' + 'python_python_publication_href' + '}', CGI.escape(python_python_publication_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: PublicationsPypiApi#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 publication
23
93
  # Dispatches a publish task, which generates metadata that will be used by pip.
24
94
  # @param python_python_publication [PythonPythonPublication]
@@ -257,6 +327,142 @@ module PulpPythonClient
257
327
  return data, status_code, headers
258
328
  end
259
329
 
330
+ # List roles
331
+ # List roles assigned to this object.
332
+ # @param python_python_publication_href [String]
333
+ # @param [Hash] opts the optional parameters
334
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
335
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
336
+ # @return [ObjectRolesResponse]
337
+ def list_roles(python_python_publication_href, opts = {})
338
+ data, _status_code, _headers = list_roles_with_http_info(python_python_publication_href, opts)
339
+ data
340
+ end
341
+
342
+ # List roles
343
+ # List roles assigned to this object.
344
+ # @param python_python_publication_href [String]
345
+ # @param [Hash] opts the optional parameters
346
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
347
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
348
+ # @return [Array<(ObjectRolesResponse, Integer, Hash)>] ObjectRolesResponse data, response status code and response headers
349
+ def list_roles_with_http_info(python_python_publication_href, opts = {})
350
+ if @api_client.config.debugging
351
+ @api_client.config.logger.debug 'Calling API: PublicationsPypiApi.list_roles ...'
352
+ end
353
+ # verify the required parameter 'python_python_publication_href' is set
354
+ if @api_client.config.client_side_validation && python_python_publication_href.nil?
355
+ fail ArgumentError, "Missing the required parameter 'python_python_publication_href' when calling PublicationsPypiApi.list_roles"
356
+ end
357
+ # resource path
358
+ local_var_path = '{python_python_publication_href}list_roles/'.sub('{' + 'python_python_publication_href' + '}', CGI.escape(python_python_publication_href.to_s).gsub('%2F', '/'))
359
+
360
+ # query parameters
361
+ query_params = opts[:query_params] || {}
362
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
363
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
364
+
365
+ # header parameters
366
+ header_params = opts[:header_params] || {}
367
+ # HTTP header 'Accept' (if needed)
368
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
369
+
370
+ # form parameters
371
+ form_params = opts[:form_params] || {}
372
+
373
+ # http body (model)
374
+ post_body = opts[:body]
375
+
376
+ # return_type
377
+ return_type = opts[:return_type] || 'ObjectRolesResponse'
378
+
379
+ # auth_names
380
+ auth_names = opts[:auth_names] || ['basicAuth']
381
+
382
+ new_options = opts.merge(
383
+ :header_params => header_params,
384
+ :query_params => query_params,
385
+ :form_params => form_params,
386
+ :body => post_body,
387
+ :auth_names => auth_names,
388
+ :return_type => return_type
389
+ )
390
+
391
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
392
+ if @api_client.config.debugging
393
+ @api_client.config.logger.debug "API called: PublicationsPypiApi#list_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
394
+ end
395
+ return data, status_code, headers
396
+ end
397
+
398
+ # List user permissions
399
+ # List permissions available to the current user on this object.
400
+ # @param python_python_publication_href [String]
401
+ # @param [Hash] opts the optional parameters
402
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
403
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
404
+ # @return [MyPermissionsResponse]
405
+ def my_permissions(python_python_publication_href, opts = {})
406
+ data, _status_code, _headers = my_permissions_with_http_info(python_python_publication_href, opts)
407
+ data
408
+ end
409
+
410
+ # List user permissions
411
+ # List permissions available to the current user on this object.
412
+ # @param python_python_publication_href [String]
413
+ # @param [Hash] opts the optional parameters
414
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
415
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
416
+ # @return [Array<(MyPermissionsResponse, Integer, Hash)>] MyPermissionsResponse data, response status code and response headers
417
+ def my_permissions_with_http_info(python_python_publication_href, opts = {})
418
+ if @api_client.config.debugging
419
+ @api_client.config.logger.debug 'Calling API: PublicationsPypiApi.my_permissions ...'
420
+ end
421
+ # verify the required parameter 'python_python_publication_href' is set
422
+ if @api_client.config.client_side_validation && python_python_publication_href.nil?
423
+ fail ArgumentError, "Missing the required parameter 'python_python_publication_href' when calling PublicationsPypiApi.my_permissions"
424
+ end
425
+ # resource path
426
+ local_var_path = '{python_python_publication_href}my_permissions/'.sub('{' + 'python_python_publication_href' + '}', CGI.escape(python_python_publication_href.to_s).gsub('%2F', '/'))
427
+
428
+ # query parameters
429
+ query_params = opts[:query_params] || {}
430
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
431
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
432
+
433
+ # header parameters
434
+ header_params = opts[:header_params] || {}
435
+ # HTTP header 'Accept' (if needed)
436
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
437
+
438
+ # form parameters
439
+ form_params = opts[:form_params] || {}
440
+
441
+ # http body (model)
442
+ post_body = opts[:body]
443
+
444
+ # return_type
445
+ return_type = opts[:return_type] || 'MyPermissionsResponse'
446
+
447
+ # auth_names
448
+ auth_names = opts[:auth_names] || ['basicAuth']
449
+
450
+ new_options = opts.merge(
451
+ :header_params => header_params,
452
+ :query_params => query_params,
453
+ :form_params => form_params,
454
+ :body => post_body,
455
+ :auth_names => auth_names,
456
+ :return_type => return_type
457
+ )
458
+
459
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
460
+ if @api_client.config.debugging
461
+ @api_client.config.logger.debug "API called: PublicationsPypiApi#my_permissions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
462
+ end
463
+ return data, status_code, headers
464
+ end
465
+
260
466
  # Inspect a python publication
261
467
  # Python Publications refer to the Python Package content in a repository version, and include metadata about that content.
262
468
  # @param python_python_publication_href [String]
@@ -324,5 +530,75 @@ module PulpPythonClient
324
530
  end
325
531
  return data, status_code, headers
326
532
  end
533
+
534
+ # Remove a role
535
+ # Remove a role for this object from users/groups.
536
+ # @param python_python_publication_href [String]
537
+ # @param nested_role [NestedRole]
538
+ # @param [Hash] opts the optional parameters
539
+ # @return [NestedRoleResponse]
540
+ def remove_role(python_python_publication_href, nested_role, opts = {})
541
+ data, _status_code, _headers = remove_role_with_http_info(python_python_publication_href, nested_role, opts)
542
+ data
543
+ end
544
+
545
+ # Remove a role
546
+ # Remove a role for this object from users/groups.
547
+ # @param python_python_publication_href [String]
548
+ # @param nested_role [NestedRole]
549
+ # @param [Hash] opts the optional parameters
550
+ # @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
551
+ def remove_role_with_http_info(python_python_publication_href, nested_role, opts = {})
552
+ if @api_client.config.debugging
553
+ @api_client.config.logger.debug 'Calling API: PublicationsPypiApi.remove_role ...'
554
+ end
555
+ # verify the required parameter 'python_python_publication_href' is set
556
+ if @api_client.config.client_side_validation && python_python_publication_href.nil?
557
+ fail ArgumentError, "Missing the required parameter 'python_python_publication_href' when calling PublicationsPypiApi.remove_role"
558
+ end
559
+ # verify the required parameter 'nested_role' is set
560
+ if @api_client.config.client_side_validation && nested_role.nil?
561
+ fail ArgumentError, "Missing the required parameter 'nested_role' when calling PublicationsPypiApi.remove_role"
562
+ end
563
+ # resource path
564
+ local_var_path = '{python_python_publication_href}remove_role/'.sub('{' + 'python_python_publication_href' + '}', CGI.escape(python_python_publication_href.to_s).gsub('%2F', '/'))
565
+
566
+ # query parameters
567
+ query_params = opts[:query_params] || {}
568
+
569
+ # header parameters
570
+ header_params = opts[:header_params] || {}
571
+ # HTTP header 'Accept' (if needed)
572
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
573
+ # HTTP header 'Content-Type'
574
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
575
+
576
+ # form parameters
577
+ form_params = opts[:form_params] || {}
578
+
579
+ # http body (model)
580
+ post_body = opts[:body] || @api_client.object_to_http_body(nested_role)
581
+
582
+ # return_type
583
+ return_type = opts[:return_type] || 'NestedRoleResponse'
584
+
585
+ # auth_names
586
+ auth_names = opts[:auth_names] || ['basicAuth']
587
+
588
+ new_options = opts.merge(
589
+ :header_params => header_params,
590
+ :query_params => query_params,
591
+ :form_params => form_params,
592
+ :body => post_body,
593
+ :auth_names => auth_names,
594
+ :return_type => return_type
595
+ )
596
+
597
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
598
+ if @api_client.config.debugging
599
+ @api_client.config.logger.debug "API called: PublicationsPypiApi#remove_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
600
+ end
601
+ return data, status_code, headers
602
+ end
327
603
  end
328
604
  end
@@ -69,7 +69,7 @@ module PulpPythonClient
69
69
  return_type = opts[:return_type] || 'SummaryResponse'
70
70
 
71
71
  # auth_names
72
- auth_names = opts[:auth_names] || []
72
+ auth_names = opts[:auth_names] || ['basicAuth']
73
73
 
74
74
  new_options = opts.merge(
75
75
  :header_params => header_params,
@@ -75,7 +75,7 @@ module PulpPythonClient
75
75
  return_type = opts[:return_type] || 'PackageMetadataResponse'
76
76
 
77
77
  # auth_names
78
- auth_names = opts[:auth_names] || []
78
+ auth_names = opts[:auth_names] || ['basicAuth']
79
79
 
80
80
  new_options = opts.merge(
81
81
  :header_params => header_params,
@@ -19,6 +19,76 @@ 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]
@@ -356,6 +426,142 @@ module PulpPythonClient
356
426
  return data, status_code, headers
357
427
  end
358
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
+
359
565
  # Update a python remote
360
566
  # Trigger an asynchronous partial update task
361
567
  # @param python_python_remote_href [String]
@@ -494,6 +700,76 @@ module PulpPythonClient
494
700
  return data, status_code, headers
495
701
  end
496
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
+
497
773
  # Set a label
498
774
  # Set a single pulp_label on the object to a specific value or null.
499
775
  # @param python_python_remote_href [String]