pulpcore_client 3.16.24 → 3.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (136) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +70 -22
  3. data/docs/AccessPoliciesApi.md +53 -0
  4. data/docs/AccessPolicy.md +3 -1
  5. data/docs/AccessPolicyResponse.md +3 -1
  6. data/docs/ContentguardsRbacApi.md +138 -22
  7. data/docs/GroupRole.md +19 -0
  8. data/docs/GroupRoleResponse.md +23 -0
  9. data/docs/GroupsApi.md +248 -20
  10. data/docs/GroupsModelPermissionsApi.md +20 -20
  11. data/docs/GroupsObjectPermissionsApi.md +20 -20
  12. data/docs/GroupsRolesApi.md +255 -0
  13. data/docs/GroupsUsersApi.md +15 -15
  14. data/docs/MyPermissionsResponse.md +17 -0
  15. data/docs/NestedRole.md +21 -0
  16. data/docs/NestedRoleResponse.md +21 -0
  17. data/docs/ObjectRolesResponse.md +17 -0
  18. data/docs/PaginatedGroupRoleResponseList.md +23 -0
  19. data/docs/PaginatedRoleResponseList.md +23 -0
  20. data/docs/PaginatedUserRoleResponseList.md +23 -0
  21. data/docs/PatchedAccessPolicy.md +3 -1
  22. data/docs/PatchedRole.md +21 -0
  23. data/docs/PatchedUser.md +29 -0
  24. data/docs/PermissionResponse.md +1 -1
  25. data/docs/Purge.md +19 -0
  26. data/docs/Role.md +21 -0
  27. data/docs/RoleResponse.md +27 -0
  28. data/docs/RolesApi.md +363 -0
  29. data/docs/StatesEnum.md +16 -0
  30. data/docs/TasksApi.md +282 -0
  31. data/docs/User.md +29 -0
  32. data/docs/UserGroup.md +17 -0
  33. data/docs/UserResponse.md +3 -3
  34. data/docs/UserRole.md +19 -0
  35. data/docs/UserRoleResponse.md +23 -0
  36. data/docs/UsersApi.md +219 -0
  37. data/docs/UsersRolesApi.md +255 -0
  38. data/docs/WorkerResponse.md +3 -3
  39. data/git_push.sh +58 -0
  40. data/lib/pulpcore_client/api/access_policies_api.rb +60 -0
  41. data/lib/pulpcore_client/api/artifacts_api.rb +24 -0
  42. data/lib/pulpcore_client/api/contentguards_rbac_api.rb +168 -40
  43. data/lib/pulpcore_client/api/groups_api.rb +304 -36
  44. data/lib/pulpcore_client/api/groups_model_permissions_api.rb +36 -36
  45. data/lib/pulpcore_client/api/groups_object_permissions_api.rb +36 -36
  46. data/lib/pulpcore_client/api/groups_roles_api.rb +315 -0
  47. data/lib/pulpcore_client/api/groups_users_api.rb +27 -27
  48. data/lib/pulpcore_client/api/roles_api.rb +443 -0
  49. data/lib/pulpcore_client/api/tasks_api.rb +332 -0
  50. data/lib/pulpcore_client/api/uploads_api.rb +4 -0
  51. data/lib/pulpcore_client/api/users_api.rb +264 -0
  52. data/lib/pulpcore_client/api/users_roles_api.rb +315 -0
  53. data/lib/pulpcore_client/api_client.rb +5 -2
  54. data/lib/pulpcore_client/configuration.rb +0 -1
  55. data/lib/pulpcore_client/models/access_policy.rb +19 -2
  56. data/lib/pulpcore_client/models/access_policy_response.rb +19 -2
  57. data/lib/pulpcore_client/models/artifact.rb +90 -0
  58. data/lib/pulpcore_client/models/filesystem_exporter.rb +38 -0
  59. data/lib/pulpcore_client/models/group.rb +9 -0
  60. data/lib/pulpcore_client/models/group_role.rb +238 -0
  61. data/lib/pulpcore_client/models/group_role_response.rb +242 -0
  62. data/lib/pulpcore_client/models/group_user.rb +9 -0
  63. data/lib/pulpcore_client/models/{rbac_content_guard_permission.rb → my_permissions_response.rb} +16 -22
  64. data/lib/pulpcore_client/models/nested_role.rb +234 -0
  65. data/lib/pulpcore_client/models/nested_role_response.rb +234 -0
  66. data/lib/pulpcore_client/models/object_roles_response.rb +213 -0
  67. data/lib/pulpcore_client/models/paginated_group_role_response_list.rb +237 -0
  68. data/lib/pulpcore_client/models/paginated_role_response_list.rb +237 -0
  69. data/lib/pulpcore_client/models/paginated_user_role_response_list.rb +237 -0
  70. data/lib/pulpcore_client/models/patched_access_policy.rb +14 -2
  71. data/lib/pulpcore_client/models/patched_filesystem_exporter.rb +30 -0
  72. data/lib/pulpcore_client/models/patched_group.rb +9 -0
  73. data/lib/pulpcore_client/models/patched_pulp_exporter.rb +30 -0
  74. data/lib/pulpcore_client/models/patched_pulp_importer.rb +15 -0
  75. data/lib/pulpcore_client/models/patched_rbac_content_guard.rb +30 -0
  76. data/lib/pulpcore_client/models/patched_role.rb +261 -0
  77. data/lib/pulpcore_client/models/patched_task_cancel.rb +15 -0
  78. data/lib/pulpcore_client/models/patched_user.rb +342 -0
  79. data/lib/pulpcore_client/models/permission_response.rb +1 -1
  80. data/lib/pulpcore_client/models/pulp_export.rb +15 -0
  81. data/lib/pulpcore_client/models/pulp_exporter.rb +38 -0
  82. data/lib/pulpcore_client/models/pulp_import.rb +30 -0
  83. data/lib/pulpcore_client/models/pulp_import_check.rb +45 -0
  84. data/lib/pulpcore_client/models/pulp_importer.rb +19 -0
  85. data/lib/pulpcore_client/models/purge.rb +219 -0
  86. data/lib/pulpcore_client/models/rbac_content_guard.rb +34 -0
  87. data/lib/pulpcore_client/models/role.rb +275 -0
  88. data/lib/pulpcore_client/models/role_response.rb +270 -0
  89. data/lib/pulpcore_client/models/states_enum.rb +38 -0
  90. data/lib/pulpcore_client/models/upload_chunk.rb +15 -0
  91. data/lib/pulpcore_client/models/upload_commit.rb +19 -0
  92. data/lib/pulpcore_client/models/user.rb +351 -0
  93. data/lib/pulpcore_client/models/user_group.rb +241 -0
  94. data/lib/pulpcore_client/models/user_response.rb +6 -29
  95. data/lib/pulpcore_client/models/user_role.rb +238 -0
  96. data/lib/pulpcore_client/models/user_role_response.rb +242 -0
  97. data/lib/pulpcore_client/models/worker_response.rb +10 -10
  98. data/lib/pulpcore_client/version.rb +1 -1
  99. data/lib/pulpcore_client.rb +22 -1
  100. data/pulpcore_client.gemspec +3 -3
  101. data/spec/api/access_policies_api_spec.rb +11 -0
  102. data/spec/api/contentguards_rbac_api_spec.rb +36 -12
  103. data/spec/api/groups_api_spec.rb +54 -4
  104. data/spec/api/groups_model_permissions_api_spec.rb +4 -4
  105. data/spec/api/groups_object_permissions_api_spec.rb +4 -4
  106. data/spec/api/groups_roles_api_spec.rb +97 -0
  107. data/spec/api/groups_users_api_spec.rb +3 -3
  108. data/spec/api/roles_api_spec.rb +121 -0
  109. data/spec/api/tasks_api_spec.rb +62 -0
  110. data/spec/api/users_api_spec.rb +50 -0
  111. data/spec/api/users_roles_api_spec.rb +97 -0
  112. data/spec/models/access_policy_response_spec.rb +6 -0
  113. data/spec/models/access_policy_spec.rb +6 -0
  114. data/spec/models/group_role_response_spec.rb +59 -0
  115. data/spec/models/{rbac_content_guard_permission_spec.rb → group_role_spec.rb} +8 -8
  116. data/spec/models/my_permissions_response_spec.rb +41 -0
  117. data/spec/models/nested_role_response_spec.rb +53 -0
  118. data/spec/models/nested_role_spec.rb +53 -0
  119. data/spec/models/object_roles_response_spec.rb +41 -0
  120. data/spec/models/paginated_group_role_response_list_spec.rb +59 -0
  121. data/spec/models/paginated_role_response_list_spec.rb +59 -0
  122. data/spec/models/paginated_user_role_response_list_spec.rb +59 -0
  123. data/spec/models/patched_access_policy_spec.rb +6 -0
  124. data/spec/models/patched_role_spec.rb +53 -0
  125. data/spec/models/patched_user_spec.rb +77 -0
  126. data/spec/models/purge_spec.rb +47 -0
  127. data/spec/models/role_response_spec.rb +71 -0
  128. data/spec/models/role_spec.rb +53 -0
  129. data/spec/models/states_enum_spec.rb +35 -0
  130. data/spec/models/user_group_spec.rb +41 -0
  131. data/spec/models/user_role_response_spec.rb +59 -0
  132. data/spec/models/user_role_spec.rb +47 -0
  133. data/spec/models/user_spec.rb +77 -0
  134. data/spec/models/worker_response_spec.rb +2 -2
  135. metadata +190 -111
  136. data/docs/RBACContentGuardPermission.md +0 -19
@@ -81,6 +81,17 @@ describe 'AccessPoliciesApi' do
81
81
  end
82
82
  end
83
83
 
84
+ # unit tests for reset
85
+ # Reset the access policy to its uncustomized default value.
86
+ # @param access_policy_href
87
+ # @param [Hash] opts the optional parameters
88
+ # @return [AccessPolicyResponse]
89
+ describe 'reset test' do
90
+ it 'should work' do
91
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
92
+ end
93
+ end
94
+
84
95
  # unit tests for update
85
96
  # Update an access policy
86
97
  # ViewSet for AccessPolicy. NOTE: This API endpoint is in \"tech preview\" and subject to change
@@ -32,14 +32,13 @@ describe 'ContentguardsRbacApi' do
32
32
  end
33
33
  end
34
34
 
35
- # unit tests for assign_permission
36
- # Add download permission
37
- # Give users and groups the `download` permission
35
+ # unit tests for add_role
36
+ # Add a role for this object to users/groups.
38
37
  # @param r_b_a_c_content_guard_href
39
- # @param rbac_content_guard_permission
38
+ # @param nested_role
40
39
  # @param [Hash] opts the optional parameters
41
- # @return [RBACContentGuardResponse]
42
- describe 'assign_permission test' do
40
+ # @return [NestedRoleResponse]
41
+ describe 'add_role test' do
43
42
  it 'should work' do
44
43
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
45
44
  end
@@ -90,6 +89,32 @@ describe 'ContentguardsRbacApi' do
90
89
  end
91
90
  end
92
91
 
92
+ # unit tests for list_roles
93
+ # List roles assigned to this object.
94
+ # @param r_b_a_c_content_guard_href
95
+ # @param [Hash] opts the optional parameters
96
+ # @option opts [String] :fields A list of fields to include in the response.
97
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
98
+ # @return [ObjectRolesResponse]
99
+ describe 'list_roles test' do
100
+ it 'should work' do
101
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
102
+ end
103
+ end
104
+
105
+ # unit tests for my_permissions
106
+ # List permissions available to the current user on this object.
107
+ # @param r_b_a_c_content_guard_href
108
+ # @param [Hash] opts the optional parameters
109
+ # @option opts [String] :fields A list of fields to include in the response.
110
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
111
+ # @return [MyPermissionsResponse]
112
+ describe 'my_permissions test' do
113
+ it 'should work' do
114
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
115
+ end
116
+ end
117
+
93
118
  # unit tests for partial_update
94
119
  # Update a rbac content guard
95
120
  # Viewset for creating contentguards that use RBAC to protect content. Has add and remove actions for managing permission for users and groups to download content protected by this guard.
@@ -117,14 +142,13 @@ describe 'ContentguardsRbacApi' do
117
142
  end
118
143
  end
119
144
 
120
- # unit tests for remove_permission
121
- # Remove download permission
122
- # Remove `download` permission from users and groups
145
+ # unit tests for remove_role
146
+ # Remove a role for this object from users/groups.
123
147
  # @param r_b_a_c_content_guard_href
124
- # @param rbac_content_guard_permission
148
+ # @param nested_role
125
149
  # @param [Hash] opts the optional parameters
126
- # @return [RBACContentGuardResponse]
127
- describe 'remove_permission test' do
150
+ # @return [NestedRoleResponse]
151
+ describe 'remove_role test' do
128
152
  it 'should work' do
129
153
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
130
154
  end
@@ -32,6 +32,18 @@ describe 'GroupsApi' do
32
32
  end
33
33
  end
34
34
 
35
+ # unit tests for add_role
36
+ # Add a role for this object to users/groups.
37
+ # @param group_href
38
+ # @param nested_role
39
+ # @param [Hash] opts the optional parameters
40
+ # @return [NestedRoleResponse]
41
+ describe 'add_role test' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
35
47
  # unit tests for create
36
48
  # Create a group
37
49
  # ViewSet for Group. NOTE: This API endpoint is in \"tech preview\" and subject to change
@@ -47,7 +59,7 @@ describe 'GroupsApi' do
47
59
  # unit tests for delete
48
60
  # Delete a group
49
61
  # ViewSet for Group. NOTE: This API endpoint is in \"tech preview\" and subject to change
50
- # @param auth_group_href
62
+ # @param group_href
51
63
  # @param [Hash] opts the optional parameters
52
64
  # @return [nil]
53
65
  describe 'delete test' do
@@ -79,10 +91,36 @@ describe 'GroupsApi' do
79
91
  end
80
92
  end
81
93
 
94
+ # unit tests for list_roles
95
+ # List roles assigned to this object.
96
+ # @param group_href
97
+ # @param [Hash] opts the optional parameters
98
+ # @option opts [String] :fields A list of fields to include in the response.
99
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
100
+ # @return [ObjectRolesResponse]
101
+ describe 'list_roles test' do
102
+ it 'should work' do
103
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
104
+ end
105
+ end
106
+
107
+ # unit tests for my_permissions
108
+ # List permissions available to the current user on this object.
109
+ # @param group_href
110
+ # @param [Hash] opts the optional parameters
111
+ # @option opts [String] :fields A list of fields to include in the response.
112
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
113
+ # @return [MyPermissionsResponse]
114
+ describe 'my_permissions test' do
115
+ it 'should work' do
116
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
117
+ end
118
+ end
119
+
82
120
  # unit tests for partial_update
83
121
  # Update a group
84
122
  # ViewSet for Group. NOTE: This API endpoint is in \"tech preview\" and subject to change
85
- # @param auth_group_href
123
+ # @param group_href
86
124
  # @param patched_group
87
125
  # @param [Hash] opts the optional parameters
88
126
  # @return [GroupResponse]
@@ -95,7 +133,7 @@ describe 'GroupsApi' do
95
133
  # unit tests for read
96
134
  # Inspect a group
97
135
  # ViewSet for Group. NOTE: This API endpoint is in \"tech preview\" and subject to change
98
- # @param auth_group_href
136
+ # @param group_href
99
137
  # @param [Hash] opts the optional parameters
100
138
  # @option opts [String] :fields A list of fields to include in the response.
101
139
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
@@ -106,10 +144,22 @@ describe 'GroupsApi' do
106
144
  end
107
145
  end
108
146
 
147
+ # unit tests for remove_role
148
+ # Remove a role for this object from users/groups.
149
+ # @param group_href
150
+ # @param nested_role
151
+ # @param [Hash] opts the optional parameters
152
+ # @return [NestedRoleResponse]
153
+ describe 'remove_role test' do
154
+ it 'should work' do
155
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
156
+ end
157
+ end
158
+
109
159
  # unit tests for update
110
160
  # Update a group
111
161
  # ViewSet for Group. NOTE: This API endpoint is in \"tech preview\" and subject to change
112
- # @param auth_group_href
162
+ # @param group_href
113
163
  # @param group
114
164
  # @param [Hash] opts the optional parameters
115
165
  # @return [GroupResponse]
@@ -35,7 +35,7 @@ describe 'GroupsModelPermissionsApi' do
35
35
  # unit tests for create
36
36
  # Create a permission
37
37
  # Add a model permission to a group.
38
- # @param auth_group_href
38
+ # @param group_href
39
39
  # @param body
40
40
  # @param [Hash] opts the optional parameters
41
41
  # @return [PermissionResponse]
@@ -48,7 +48,7 @@ describe 'GroupsModelPermissionsApi' do
48
48
  # unit tests for delete
49
49
  # Delete a permission
50
50
  # Remove a model permission from a group.
51
- # @param auth_groups_model_permission_href
51
+ # @param groups_model_permission_href
52
52
  # @param [Hash] opts the optional parameters
53
53
  # @return [nil]
54
54
  describe 'delete test' do
@@ -60,7 +60,7 @@ describe 'GroupsModelPermissionsApi' do
60
60
  # unit tests for list
61
61
  # List permissions
62
62
  # List group permissions.
63
- # @param auth_group_href
63
+ # @param group_href
64
64
  # @param [Hash] opts the optional parameters
65
65
  # @option opts [Integer] :limit Number of results to return per page.
66
66
  # @option opts [Integer] :offset The initial index from which to return the results.
@@ -77,7 +77,7 @@ describe 'GroupsModelPermissionsApi' do
77
77
  # unit tests for read
78
78
  # Inspect a permission
79
79
  # Retrieve a model permission from a group.
80
- # @param auth_groups_model_permission_href
80
+ # @param groups_model_permission_href
81
81
  # @param [Hash] opts the optional parameters
82
82
  # @option opts [String] :fields A list of fields to include in the response.
83
83
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
@@ -35,7 +35,7 @@ describe 'GroupsObjectPermissionsApi' do
35
35
  # unit tests for create
36
36
  # Create a permission
37
37
  # Add an object permission to a group.
38
- # @param auth_group_href
38
+ # @param group_href
39
39
  # @param body
40
40
  # @param [Hash] opts the optional parameters
41
41
  # @return [PermissionResponse]
@@ -48,7 +48,7 @@ describe 'GroupsObjectPermissionsApi' do
48
48
  # unit tests for delete
49
49
  # Delete a permission
50
50
  # Remove an object permission from a group.
51
- # @param auth_groups_object_permission_href
51
+ # @param groups_object_permission_href
52
52
  # @param [Hash] opts the optional parameters
53
53
  # @return [nil]
54
54
  describe 'delete test' do
@@ -60,7 +60,7 @@ describe 'GroupsObjectPermissionsApi' do
60
60
  # unit tests for list
61
61
  # List permissions
62
62
  # List group object permissions.
63
- # @param auth_group_href
63
+ # @param group_href
64
64
  # @param [Hash] opts the optional parameters
65
65
  # @option opts [Integer] :limit Number of results to return per page.
66
66
  # @option opts [Integer] :offset The initial index from which to return the results.
@@ -77,7 +77,7 @@ describe 'GroupsObjectPermissionsApi' do
77
77
  # unit tests for read
78
78
  # Inspect a permission
79
79
  # Retrieve a model permission from a group.
80
- # @param auth_groups_object_permission_href
80
+ # @param groups_object_permission_href
81
81
  # @param [Hash] opts the optional parameters
82
82
  # @option opts [String] :fields A list of fields to include in the response.
83
83
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
@@ -0,0 +1,97 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
+
6
+ The version of the OpenAPI document: v3
7
+ Contact: pulp-list@redhat.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for PulpcoreClient::GroupsRolesApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'GroupsRolesApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = PulpcoreClient::GroupsRolesApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of GroupsRolesApi' do
30
+ it 'should create an instance of GroupsRolesApi' do
31
+ expect(@api_instance).to be_instance_of(PulpcoreClient::GroupsRolesApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for create
36
+ # Create a group role
37
+ # ViewSet for GroupRole. NOTE: This API endpoint is in \"tech preview\" and subject to change
38
+ # @param group_href
39
+ # @param group_role
40
+ # @param [Hash] opts the optional parameters
41
+ # @return [GroupRoleResponse]
42
+ describe 'create test' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
45
+ end
46
+ end
47
+
48
+ # unit tests for delete
49
+ # Delete a group role
50
+ # ViewSet for GroupRole. NOTE: This API endpoint is in \"tech preview\" and subject to change
51
+ # @param groups_group_role_href
52
+ # @param [Hash] opts the optional parameters
53
+ # @return [nil]
54
+ describe 'delete test' do
55
+ it 'should work' do
56
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
57
+ end
58
+ end
59
+
60
+ # unit tests for list
61
+ # List group roles
62
+ # ViewSet for GroupRole. NOTE: This API endpoint is in \"tech preview\" and subject to change
63
+ # @param group_href
64
+ # @param [Hash] opts the optional parameters
65
+ # @option opts [String] :content_object content_object
66
+ # @option opts [Integer] :limit Number of results to return per page.
67
+ # @option opts [Integer] :offset The initial index from which to return the results.
68
+ # @option opts [String] :ordering Which field to use when ordering the results.
69
+ # @option opts [String] :role
70
+ # @option opts [String] :role__contains
71
+ # @option opts [String] :role__icontains
72
+ # @option opts [Array<String>] :role__in Multiple values may be separated by commas.
73
+ # @option opts [String] :role__startswith
74
+ # @option opts [String] :fields A list of fields to include in the response.
75
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
76
+ # @return [PaginatedGroupRoleResponseList]
77
+ describe 'list test' do
78
+ it 'should work' do
79
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
80
+ end
81
+ end
82
+
83
+ # unit tests for read
84
+ # Inspect a group role
85
+ # ViewSet for GroupRole. NOTE: This API endpoint is in \&quot;tech preview\&quot; and subject to change
86
+ # @param groups_group_role_href
87
+ # @param [Hash] opts the optional parameters
88
+ # @option opts [String] :fields A list of fields to include in the response.
89
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
90
+ # @return [GroupRoleResponse]
91
+ describe 'read test' do
92
+ it 'should work' do
93
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
94
+ end
95
+ end
96
+
97
+ end
@@ -35,7 +35,7 @@ describe 'GroupsUsersApi' do
35
35
  # unit tests for create
36
36
  # Create an user
37
37
  # Add a user to a group.
38
- # @param auth_group_href
38
+ # @param group_href
39
39
  # @param group_user
40
40
  # @param [Hash] opts the optional parameters
41
41
  # @return [GroupUserResponse]
@@ -48,7 +48,7 @@ describe 'GroupsUsersApi' do
48
48
  # unit tests for delete
49
49
  # Delete an user
50
50
  # Remove a user from a group.
51
- # @param auth_groups_user_href
51
+ # @param groups_user_href
52
52
  # @param [Hash] opts the optional parameters
53
53
  # @return [nil]
54
54
  describe 'delete test' do
@@ -60,7 +60,7 @@ describe 'GroupsUsersApi' do
60
60
  # unit tests for list
61
61
  # List users
62
62
  # List group users.
63
- # @param auth_group_href
63
+ # @param group_href
64
64
  # @param [Hash] opts the optional parameters
65
65
  # @option opts [Integer] :limit Number of results to return per page.
66
66
  # @option opts [Integer] :offset The initial index from which to return the results.
@@ -0,0 +1,121 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
+
6
+ The version of the OpenAPI document: v3
7
+ Contact: pulp-list@redhat.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for PulpcoreClient::RolesApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'RolesApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = PulpcoreClient::RolesApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of RolesApi' do
30
+ it 'should create an instance of RolesApi' do
31
+ expect(@api_instance).to be_instance_of(PulpcoreClient::RolesApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for create
36
+ # Create a role
37
+ # ViewSet for Role. NOTE: This API endpoint is in \&quot;tech preview\&quot; and subject to change
38
+ # @param role
39
+ # @param [Hash] opts the optional parameters
40
+ # @return [RoleResponse]
41
+ describe 'create test' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ # unit tests for delete
48
+ # Delete a role
49
+ # ViewSet for Role. NOTE: This API endpoint is in \&quot;tech preview\&quot; and subject to change
50
+ # @param role_href
51
+ # @param [Hash] opts the optional parameters
52
+ # @return [nil]
53
+ describe 'delete test' do
54
+ it 'should work' do
55
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
+ end
57
+ end
58
+
59
+ # unit tests for list
60
+ # List roles
61
+ # ViewSet for Role. NOTE: This API endpoint is in \&quot;tech preview\&quot; and subject to change
62
+ # @param [Hash] opts the optional parameters
63
+ # @option opts [Integer] :limit Number of results to return per page.
64
+ # @option opts [Boolean] :locked Filter results where locked matches value
65
+ # @option opts [String] :name Filter results where name matches value
66
+ # @option opts [String] :name__contains Filter results where name contains value
67
+ # @option opts [String] :name__icontains Filter results where name contains value
68
+ # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
69
+ # @option opts [String] :name__startswith Filter results where name starts with value
70
+ # @option opts [Integer] :offset The initial index from which to return the results.
71
+ # @option opts [String] :ordering Which field to use when ordering the results.
72
+ # @option opts [String] :fields A list of fields to include in the response.
73
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
74
+ # @return [PaginatedRoleResponseList]
75
+ describe 'list test' do
76
+ it 'should work' do
77
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
78
+ end
79
+ end
80
+
81
+ # unit tests for partial_update
82
+ # Update a role
83
+ # ViewSet for Role. NOTE: This API endpoint is in \&quot;tech preview\&quot; and subject to change
84
+ # @param role_href
85
+ # @param patched_role
86
+ # @param [Hash] opts the optional parameters
87
+ # @return [RoleResponse]
88
+ describe 'partial_update test' do
89
+ it 'should work' do
90
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
91
+ end
92
+ end
93
+
94
+ # unit tests for read
95
+ # Inspect a role
96
+ # ViewSet for Role. NOTE: This API endpoint is in \&quot;tech preview\&quot; and subject to change
97
+ # @param role_href
98
+ # @param [Hash] opts the optional parameters
99
+ # @option opts [String] :fields A list of fields to include in the response.
100
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
101
+ # @return [RoleResponse]
102
+ describe 'read test' do
103
+ it 'should work' do
104
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
105
+ end
106
+ end
107
+
108
+ # unit tests for update
109
+ # Update a role
110
+ # ViewSet for Role. NOTE: This API endpoint is in \&quot;tech preview\&quot; and subject to change
111
+ # @param role_href
112
+ # @param role
113
+ # @param [Hash] opts the optional parameters
114
+ # @return [RoleResponse]
115
+ describe 'update test' do
116
+ it 'should work' do
117
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
118
+ end
119
+ end
120
+
121
+ end
@@ -32,6 +32,18 @@ describe 'TasksApi' do
32
32
  end
33
33
  end
34
34
 
35
+ # unit tests for add_role
36
+ # Add a role for this object to users/groups.
37
+ # @param task_href
38
+ # @param nested_role
39
+ # @param [Hash] opts the optional parameters
40
+ # @return [NestedRoleResponse]
41
+ describe 'add_role test' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
35
47
  # unit tests for delete
36
48
  # Delete a task
37
49
  # A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \&quot;Normal\&quot; Django Models and Master/Detail models are supported by the &#x60;&#x60;register_with&#x60;&#x60; method. Attributes: lookup_field (str): The name of the field by which an object should be looked up, in addition to any parent lookups if this ViewSet is nested. Defaults to &#39;pk&#39; endpoint_name (str): The name of the final path segment that should identify the ViewSet&#39;s collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \&quot;parent_prefix\&quot; of a router with rest_framework_nested.NestedMixin. None indicates this ViewSet should not be nested. parent_lookup_kwargs (dict): Optional mapping of key names that would appear in self.kwargs to django model filter expressions that can be used with the corresponding value from self.kwargs, used only by a nested ViewSet to filter based on the parent object&#39;s identity. schema (DefaultSchema): The schema class to use by default in a viewset.
@@ -85,6 +97,44 @@ describe 'TasksApi' do
85
97
  end
86
98
  end
87
99
 
100
+ # unit tests for list_roles
101
+ # List roles assigned to this object.
102
+ # @param task_href
103
+ # @param [Hash] opts the optional parameters
104
+ # @option opts [String] :fields A list of fields to include in the response.
105
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
106
+ # @return [ObjectRolesResponse]
107
+ describe 'list_roles test' do
108
+ it 'should work' do
109
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
110
+ end
111
+ end
112
+
113
+ # unit tests for my_permissions
114
+ # List permissions available to the current user on this object.
115
+ # @param task_href
116
+ # @param [Hash] opts the optional parameters
117
+ # @option opts [String] :fields A list of fields to include in the response.
118
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
119
+ # @return [MyPermissionsResponse]
120
+ describe 'my_permissions test' do
121
+ it 'should work' do
122
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
123
+ end
124
+ end
125
+
126
+ # unit tests for purge
127
+ # Purge Completed Tasks
128
+ # Trigger an asynchronous task that deletes completed tasks that finished prior to a specified timestamp (tech-preview, may change in the future).
129
+ # @param purge
130
+ # @param [Hash] opts the optional parameters
131
+ # @return [AsyncOperationResponse]
132
+ describe 'purge test' do
133
+ it 'should work' do
134
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
135
+ end
136
+ end
137
+
88
138
  # unit tests for read
89
139
  # Inspect a task
90
140
  # A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \&quot;Normal\&quot; Django Models and Master/Detail models are supported by the &#x60;&#x60;register_with&#x60;&#x60; method. Attributes: lookup_field (str): The name of the field by which an object should be looked up, in addition to any parent lookups if this ViewSet is nested. Defaults to &#39;pk&#39; endpoint_name (str): The name of the final path segment that should identify the ViewSet&#39;s collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \&quot;parent_prefix\&quot; of a router with rest_framework_nested.NestedMixin. None indicates this ViewSet should not be nested. parent_lookup_kwargs (dict): Optional mapping of key names that would appear in self.kwargs to django model filter expressions that can be used with the corresponding value from self.kwargs, used only by a nested ViewSet to filter based on the parent object&#39;s identity. schema (DefaultSchema): The schema class to use by default in a viewset.
@@ -99,6 +149,18 @@ describe 'TasksApi' do
99
149
  end
100
150
  end
101
151
 
152
+ # unit tests for remove_role
153
+ # Remove a role for this object from users/groups.
154
+ # @param task_href
155
+ # @param nested_role
156
+ # @param [Hash] opts the optional parameters
157
+ # @return [NestedRoleResponse]
158
+ describe 'remove_role test' do
159
+ it 'should work' do
160
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
161
+ end
162
+ end
163
+
102
164
  # unit tests for tasks_cancel
103
165
  # Cancel a task
104
166
  # This operation cancels a task.
@@ -32,6 +32,30 @@ describe 'UsersApi' do
32
32
  end
33
33
  end
34
34
 
35
+ # unit tests for create
36
+ # Create an user
37
+ # ViewSet for User. NOTE: This API endpoint is in \&quot;tech preview\&quot; and subject to change
38
+ # @param user
39
+ # @param [Hash] opts the optional parameters
40
+ # @return [UserResponse]
41
+ describe 'create test' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ # unit tests for delete
48
+ # Delete an user
49
+ # ViewSet for User. NOTE: This API endpoint is in \&quot;tech preview\&quot; and subject to change
50
+ # @param auth_user_href
51
+ # @param [Hash] opts the optional parameters
52
+ # @return [nil]
53
+ describe 'delete test' do
54
+ it 'should work' do
55
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
+ end
57
+ end
58
+
35
59
  # unit tests for list
36
60
  # List users
37
61
  # ViewSet for User. NOTE: This API endpoint is in \&quot;tech preview\&quot; and subject to change
@@ -70,6 +94,19 @@ describe 'UsersApi' do
70
94
  end
71
95
  end
72
96
 
97
+ # unit tests for partial_update
98
+ # Update an user
99
+ # ViewSet for User. NOTE: This API endpoint is in \&quot;tech preview\&quot; and subject to change
100
+ # @param auth_user_href
101
+ # @param patched_user
102
+ # @param [Hash] opts the optional parameters
103
+ # @return [UserResponse]
104
+ describe 'partial_update test' do
105
+ it 'should work' do
106
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
107
+ end
108
+ end
109
+
73
110
  # unit tests for permissions
74
111
  # List user permissions.
75
112
  # @param auth_user_href
@@ -97,4 +134,17 @@ describe 'UsersApi' do
97
134
  end
98
135
  end
99
136
 
137
+ # unit tests for update
138
+ # Update an user
139
+ # ViewSet for User. NOTE: This API endpoint is in \&quot;tech preview\&quot; and subject to change
140
+ # @param auth_user_href
141
+ # @param user
142
+ # @param [Hash] opts the optional parameters
143
+ # @return [UserResponse]
144
+ describe 'update test' do
145
+ it 'should work' do
146
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
147
+ end
148
+ end
149
+
100
150
  end