pulp_python_client 3.11.0 → 3.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +30 -10
  3. data/docs/ContentPackagesApi.md +14 -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/PaginatedRepositoryVersionResponseList.md +2 -2
  11. data/docs/PaginatedpythonPythonDistributionResponseList.md +2 -2
  12. data/docs/PaginatedpythonPythonPackageContentResponseList.md +2 -2
  13. data/docs/PaginatedpythonPythonPublicationResponseList.md +2 -2
  14. data/docs/PaginatedpythonPythonRemoteResponseList.md +2 -2
  15. data/docs/PaginatedpythonPythonRepositoryResponseList.md +2 -2
  16. data/docs/PublicationsPypiApi.md +232 -0
  17. data/docs/PypiApi.md +7 -1
  18. data/docs/PypiMetadataApi.md +7 -1
  19. data/docs/PythonPythonDistributionResponse.md +2 -0
  20. data/docs/PythonPythonPackageContent.md +6 -6
  21. data/docs/PythonPythonPackageContentResponse.md +8 -6
  22. data/docs/PythonPythonPublicationResponse.md +2 -0
  23. data/docs/PythonPythonRemoteResponse.md +2 -2
  24. data/docs/PythonPythonRemoteResponseHiddenFields.md +2 -2
  25. data/docs/PythonPythonRepositoryResponse.md +2 -0
  26. data/docs/RemotesPythonApi.md +232 -0
  27. data/docs/RepositoriesPythonApi.md +232 -0
  28. data/docs/RepositoryVersionResponse.md +2 -0
  29. data/lib/pulp_python_client/api/content_packages_api.rb +15 -12
  30. data/lib/pulp_python_client/api/distributions_pypi_api.rb +276 -0
  31. data/lib/pulp_python_client/api/publications_pypi_api.rb +276 -0
  32. data/lib/pulp_python_client/api/pypi_api.rb +1 -1
  33. data/lib/pulp_python_client/api/pypi_metadata_api.rb +1 -1
  34. data/lib/pulp_python_client/api/remotes_python_api.rb +276 -0
  35. data/lib/pulp_python_client/api/repositories_python_api.rb +276 -0
  36. data/lib/pulp_python_client/models/my_permissions_response.rb +213 -0
  37. data/lib/pulp_python_client/models/nested_role.rb +253 -0
  38. data/lib/pulp_python_client/models/nested_role_response.rb +234 -0
  39. data/lib/pulp_python_client/models/object_roles_response.rb +213 -0
  40. data/lib/pulp_python_client/models/package_metadata_response.rb +3 -3
  41. data/lib/pulp_python_client/models/package_upload_task_response.rb +2 -10
  42. data/lib/pulp_python_client/models/paginated_repository_version_response_list.rb +10 -0
  43. data/lib/pulp_python_client/models/paginatedpython_python_distribution_response_list.rb +10 -0
  44. data/lib/pulp_python_client/models/paginatedpython_python_package_content_response_list.rb +10 -0
  45. data/lib/pulp_python_client/models/paginatedpython_python_publication_response_list.rb +10 -0
  46. data/lib/pulp_python_client/models/paginatedpython_python_remote_response_list.rb +10 -0
  47. data/lib/pulp_python_client/models/paginatedpython_python_repository_response_list.rb +10 -0
  48. data/lib/pulp_python_client/models/python_python_distribution_response.rb +11 -1
  49. data/lib/pulp_python_client/models/python_python_package_content.rb +6 -6
  50. data/lib/pulp_python_client/models/python_python_package_content_response.rb +17 -7
  51. data/lib/pulp_python_client/models/python_python_publication_response.rb +11 -1
  52. data/lib/pulp_python_client/models/python_python_remote_response.rb +11 -11
  53. data/lib/pulp_python_client/models/python_python_remote_response_hidden_fields.rb +10 -0
  54. data/lib/pulp_python_client/models/python_python_repository_response.rb +11 -1
  55. data/lib/pulp_python_client/models/repository_version_response.rb +11 -1
  56. data/lib/pulp_python_client/version.rb +1 -1
  57. data/lib/pulp_python_client.rb +4 -0
  58. data/spec/api/content_packages_api_spec.rb +7 -6
  59. data/spec/api/distributions_pypi_api_spec.rb +54 -0
  60. data/spec/api/publications_pypi_api_spec.rb +54 -0
  61. data/spec/api/remotes_python_api_spec.rb +54 -0
  62. data/spec/api/repositories_python_api_spec.rb +54 -0
  63. data/spec/models/my_permissions_response_spec.rb +41 -0
  64. data/spec/models/nested_role_response_spec.rb +53 -0
  65. data/spec/models/nested_role_spec.rb +53 -0
  66. data/spec/models/object_roles_response_spec.rb +41 -0
  67. data/spec/models/python_python_distribution_response_spec.rb +6 -0
  68. data/spec/models/python_python_package_content_response_spec.rb +6 -0
  69. data/spec/models/python_python_publication_response_spec.rb +6 -0
  70. data/spec/models/python_python_remote_response_spec.rb +6 -6
  71. data/spec/models/python_python_repository_response_spec.rb +6 -0
  72. data/spec/models/repository_version_response_spec.rb +6 -0
  73. metadata +52 -36
@@ -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]
@@ -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_repository_href [String]
25
+ # @param nested_role [NestedRole]
26
+ # @param [Hash] opts the optional parameters
27
+ # @return [NestedRoleResponse]
28
+ def add_role(python_python_repository_href, nested_role, opts = {})
29
+ data, _status_code, _headers = add_role_with_http_info(python_python_repository_href, nested_role, opts)
30
+ data
31
+ end
32
+
33
+ # Add a role
34
+ # Add a role for this object to users/groups.
35
+ # @param python_python_repository_href [String]
36
+ # @param nested_role [NestedRole]
37
+ # @param [Hash] opts the optional parameters
38
+ # @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
39
+ def add_role_with_http_info(python_python_repository_href, nested_role, opts = {})
40
+ if @api_client.config.debugging
41
+ @api_client.config.logger.debug 'Calling API: RepositoriesPythonApi.add_role ...'
42
+ end
43
+ # verify the required parameter 'python_python_repository_href' is set
44
+ if @api_client.config.client_side_validation && python_python_repository_href.nil?
45
+ fail ArgumentError, "Missing the required parameter 'python_python_repository_href' when calling RepositoriesPythonApi.add_role"
46
+ end
47
+ # verify the required parameter 'nested_role' is set
48
+ if @api_client.config.client_side_validation && nested_role.nil?
49
+ fail ArgumentError, "Missing the required parameter 'nested_role' when calling RepositoriesPythonApi.add_role"
50
+ end
51
+ # resource path
52
+ local_var_path = '{python_python_repository_href}add_role/'.sub('{' + 'python_python_repository_href' + '}', CGI.escape(python_python_repository_href.to_s).gsub('%2F', '/'))
53
+
54
+ # query parameters
55
+ query_params = opts[:query_params] || {}
56
+
57
+ # header parameters
58
+ header_params = opts[:header_params] || {}
59
+ # HTTP header 'Accept' (if needed)
60
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
61
+ # HTTP header 'Content-Type'
62
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
63
+
64
+ # form parameters
65
+ form_params = opts[:form_params] || {}
66
+
67
+ # http body (model)
68
+ post_body = opts[:body] || @api_client.object_to_http_body(nested_role)
69
+
70
+ # return_type
71
+ return_type = opts[:return_type] || 'NestedRoleResponse'
72
+
73
+ # auth_names
74
+ auth_names = opts[:auth_names] || ['basicAuth']
75
+
76
+ new_options = opts.merge(
77
+ :header_params => header_params,
78
+ :query_params => query_params,
79
+ :form_params => form_params,
80
+ :body => post_body,
81
+ :auth_names => auth_names,
82
+ :return_type => return_type
83
+ )
84
+
85
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
86
+ if @api_client.config.debugging
87
+ @api_client.config.logger.debug "API called: RepositoriesPythonApi#add_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
88
+ end
89
+ return data, status_code, headers
90
+ end
91
+
22
92
  # Create a python repository
23
93
  # PythonRepository represents a single Python repository, to which content can be synced, added, or removed.
24
94
  # @param python_python_repository [PythonPythonRepository]
@@ -292,6 +362,74 @@ module PulpPythonClient
292
362
  return data, status_code, headers
293
363
  end
294
364
 
365
+ # List roles
366
+ # List roles assigned to this object.
367
+ # @param python_python_repository_href [String]
368
+ # @param [Hash] opts the optional parameters
369
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
370
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
371
+ # @return [ObjectRolesResponse]
372
+ def list_roles(python_python_repository_href, opts = {})
373
+ data, _status_code, _headers = list_roles_with_http_info(python_python_repository_href, opts)
374
+ data
375
+ end
376
+
377
+ # List roles
378
+ # List roles assigned to this object.
379
+ # @param python_python_repository_href [String]
380
+ # @param [Hash] opts the optional parameters
381
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
382
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
383
+ # @return [Array<(ObjectRolesResponse, Integer, Hash)>] ObjectRolesResponse data, response status code and response headers
384
+ def list_roles_with_http_info(python_python_repository_href, opts = {})
385
+ if @api_client.config.debugging
386
+ @api_client.config.logger.debug 'Calling API: RepositoriesPythonApi.list_roles ...'
387
+ end
388
+ # verify the required parameter 'python_python_repository_href' is set
389
+ if @api_client.config.client_side_validation && python_python_repository_href.nil?
390
+ fail ArgumentError, "Missing the required parameter 'python_python_repository_href' when calling RepositoriesPythonApi.list_roles"
391
+ end
392
+ # resource path
393
+ local_var_path = '{python_python_repository_href}list_roles/'.sub('{' + 'python_python_repository_href' + '}', CGI.escape(python_python_repository_href.to_s).gsub('%2F', '/'))
394
+
395
+ # query parameters
396
+ query_params = opts[:query_params] || {}
397
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
398
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
399
+
400
+ # header parameters
401
+ header_params = opts[:header_params] || {}
402
+ # HTTP header 'Accept' (if needed)
403
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
404
+
405
+ # form parameters
406
+ form_params = opts[:form_params] || {}
407
+
408
+ # http body (model)
409
+ post_body = opts[:body]
410
+
411
+ # return_type
412
+ return_type = opts[:return_type] || 'ObjectRolesResponse'
413
+
414
+ # auth_names
415
+ auth_names = opts[:auth_names] || ['basicAuth']
416
+
417
+ new_options = opts.merge(
418
+ :header_params => header_params,
419
+ :query_params => query_params,
420
+ :form_params => form_params,
421
+ :body => post_body,
422
+ :auth_names => auth_names,
423
+ :return_type => return_type
424
+ )
425
+
426
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
427
+ if @api_client.config.debugging
428
+ @api_client.config.logger.debug "API called: RepositoriesPythonApi#list_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
429
+ end
430
+ return data, status_code, headers
431
+ end
432
+
295
433
  # Modify Repository Content
296
434
  # Trigger an asynchronous task to create a new repository version.
297
435
  # @param python_python_repository_href [String]
@@ -362,6 +500,74 @@ module PulpPythonClient
362
500
  return data, status_code, headers
363
501
  end
364
502
 
503
+ # List user permissions
504
+ # List permissions available to the current user on this object.
505
+ # @param python_python_repository_href [String]
506
+ # @param [Hash] opts the optional parameters
507
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
508
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
509
+ # @return [MyPermissionsResponse]
510
+ def my_permissions(python_python_repository_href, opts = {})
511
+ data, _status_code, _headers = my_permissions_with_http_info(python_python_repository_href, opts)
512
+ data
513
+ end
514
+
515
+ # List user permissions
516
+ # List permissions available to the current user on this object.
517
+ # @param python_python_repository_href [String]
518
+ # @param [Hash] opts the optional parameters
519
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
520
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
521
+ # @return [Array<(MyPermissionsResponse, Integer, Hash)>] MyPermissionsResponse data, response status code and response headers
522
+ def my_permissions_with_http_info(python_python_repository_href, opts = {})
523
+ if @api_client.config.debugging
524
+ @api_client.config.logger.debug 'Calling API: RepositoriesPythonApi.my_permissions ...'
525
+ end
526
+ # verify the required parameter 'python_python_repository_href' is set
527
+ if @api_client.config.client_side_validation && python_python_repository_href.nil?
528
+ fail ArgumentError, "Missing the required parameter 'python_python_repository_href' when calling RepositoriesPythonApi.my_permissions"
529
+ end
530
+ # resource path
531
+ local_var_path = '{python_python_repository_href}my_permissions/'.sub('{' + 'python_python_repository_href' + '}', CGI.escape(python_python_repository_href.to_s).gsub('%2F', '/'))
532
+
533
+ # query parameters
534
+ query_params = opts[:query_params] || {}
535
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
536
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
537
+
538
+ # header parameters
539
+ header_params = opts[:header_params] || {}
540
+ # HTTP header 'Accept' (if needed)
541
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
542
+
543
+ # form parameters
544
+ form_params = opts[:form_params] || {}
545
+
546
+ # http body (model)
547
+ post_body = opts[:body]
548
+
549
+ # return_type
550
+ return_type = opts[:return_type] || 'MyPermissionsResponse'
551
+
552
+ # auth_names
553
+ auth_names = opts[:auth_names] || ['basicAuth']
554
+
555
+ new_options = opts.merge(
556
+ :header_params => header_params,
557
+ :query_params => query_params,
558
+ :form_params => form_params,
559
+ :body => post_body,
560
+ :auth_names => auth_names,
561
+ :return_type => return_type
562
+ )
563
+
564
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
565
+ if @api_client.config.debugging
566
+ @api_client.config.logger.debug "API called: RepositoriesPythonApi#my_permissions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
567
+ end
568
+ return data, status_code, headers
569
+ end
570
+
365
571
  # Update a python repository
366
572
  # Trigger an asynchronous partial update task
367
573
  # @param python_python_repository_href [String]
@@ -500,6 +706,76 @@ module PulpPythonClient
500
706
  return data, status_code, headers
501
707
  end
502
708
 
709
+ # Remove a role
710
+ # Remove a role for this object from users/groups.
711
+ # @param python_python_repository_href [String]
712
+ # @param nested_role [NestedRole]
713
+ # @param [Hash] opts the optional parameters
714
+ # @return [NestedRoleResponse]
715
+ def remove_role(python_python_repository_href, nested_role, opts = {})
716
+ data, _status_code, _headers = remove_role_with_http_info(python_python_repository_href, nested_role, opts)
717
+ data
718
+ end
719
+
720
+ # Remove a role
721
+ # Remove a role for this object from users/groups.
722
+ # @param python_python_repository_href [String]
723
+ # @param nested_role [NestedRole]
724
+ # @param [Hash] opts the optional parameters
725
+ # @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
726
+ def remove_role_with_http_info(python_python_repository_href, nested_role, opts = {})
727
+ if @api_client.config.debugging
728
+ @api_client.config.logger.debug 'Calling API: RepositoriesPythonApi.remove_role ...'
729
+ end
730
+ # verify the required parameter 'python_python_repository_href' is set
731
+ if @api_client.config.client_side_validation && python_python_repository_href.nil?
732
+ fail ArgumentError, "Missing the required parameter 'python_python_repository_href' when calling RepositoriesPythonApi.remove_role"
733
+ end
734
+ # verify the required parameter 'nested_role' is set
735
+ if @api_client.config.client_side_validation && nested_role.nil?
736
+ fail ArgumentError, "Missing the required parameter 'nested_role' when calling RepositoriesPythonApi.remove_role"
737
+ end
738
+ # resource path
739
+ local_var_path = '{python_python_repository_href}remove_role/'.sub('{' + 'python_python_repository_href' + '}', CGI.escape(python_python_repository_href.to_s).gsub('%2F', '/'))
740
+
741
+ # query parameters
742
+ query_params = opts[:query_params] || {}
743
+
744
+ # header parameters
745
+ header_params = opts[:header_params] || {}
746
+ # HTTP header 'Accept' (if needed)
747
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
748
+ # HTTP header 'Content-Type'
749
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
750
+
751
+ # form parameters
752
+ form_params = opts[:form_params] || {}
753
+
754
+ # http body (model)
755
+ post_body = opts[:body] || @api_client.object_to_http_body(nested_role)
756
+
757
+ # return_type
758
+ return_type = opts[:return_type] || 'NestedRoleResponse'
759
+
760
+ # auth_names
761
+ auth_names = opts[:auth_names] || ['basicAuth']
762
+
763
+ new_options = opts.merge(
764
+ :header_params => header_params,
765
+ :query_params => query_params,
766
+ :form_params => form_params,
767
+ :body => post_body,
768
+ :auth_names => auth_names,
769
+ :return_type => return_type
770
+ )
771
+
772
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
773
+ if @api_client.config.debugging
774
+ @api_client.config.logger.debug "API called: RepositoriesPythonApi#remove_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
775
+ end
776
+ return data, status_code, headers
777
+ end
778
+
503
779
  # Set a label
504
780
  # Set a single pulp_label on the object to a specific value or null.
505
781
  # @param python_python_repository_href [String]