pulpcore_client 3.9.1 → 3.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (94) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +37 -16
  3. data/docs/AccessPoliciesApi.md +12 -0
  4. data/docs/AccessPolicy.md +1 -3
  5. data/docs/AccessPolicyResponse.md +4 -2
  6. data/docs/ContentApi.md +78 -0
  7. data/docs/ContentGuardResponse.md +23 -0
  8. data/docs/ContentGuardsApi.md +82 -0
  9. data/docs/EvaluationResponse.md +21 -0
  10. data/docs/ExportersCoreExportsApi.md +15 -15
  11. data/docs/ExportersPulpApi.md +6 -0
  12. data/docs/GroupsApi.md +14 -0
  13. data/docs/GroupsModelPermissionsApi.md +118 -5
  14. data/docs/GroupsObjectPermissionsApi.md +15 -15
  15. data/docs/GroupsUsersApi.md +10 -10
  16. data/docs/ImportersCoreImportCheckApi.md +62 -0
  17. data/docs/ImportersCoreImportsApi.md +15 -15
  18. data/docs/ImportersPulpApi.md +6 -0
  19. data/docs/MultipleArtifactContentResponse.md +21 -0
  20. data/docs/PaginatedContentGuardResponseList.md +23 -0
  21. data/docs/PaginatedMultipleArtifactContentResponseList.md +23 -0
  22. data/docs/PaginatedRepositoryResponseList.md +23 -0
  23. data/docs/PatchedAccessPolicy.md +1 -3
  24. data/docs/PermissionResponse.md +1 -1
  25. data/docs/PulpImportCheck.md +21 -0
  26. data/docs/PulpImportCheckResponse.md +21 -0
  27. data/docs/RepositoriesApi.md +84 -0
  28. data/docs/RepositoryResponse.md +31 -0
  29. data/docs/SigningServiceResponse.md +4 -0
  30. data/docs/UsersApi.md +44 -0
  31. data/docs/WorkerResponse.md +3 -3
  32. data/docs/WorkersApi.md +6 -0
  33. data/lib/pulpcore_client/api/access_policies_api.rb +18 -0
  34. data/lib/pulpcore_client/api/content_api.rb +102 -0
  35. data/lib/pulpcore_client/api/content_guards_api.rb +108 -0
  36. data/lib/pulpcore_client/api/exporters_core_exports_api.rb +27 -27
  37. data/lib/pulpcore_client/api/exporters_pulp_api.rb +9 -0
  38. data/lib/pulpcore_client/api/groups_api.rb +21 -0
  39. data/lib/pulpcore_client/api/groups_model_permissions_api.rb +137 -9
  40. data/lib/pulpcore_client/api/groups_object_permissions_api.rb +27 -27
  41. data/lib/pulpcore_client/api/groups_users_api.rb +18 -18
  42. data/lib/pulpcore_client/api/importers_core_import_check_api.rb +86 -0
  43. data/lib/pulpcore_client/api/importers_core_imports_api.rb +27 -27
  44. data/lib/pulpcore_client/api/importers_pulp_api.rb +9 -0
  45. data/lib/pulpcore_client/api/repositories_api.rb +111 -0
  46. data/lib/pulpcore_client/api/users_api.rb +66 -0
  47. data/lib/pulpcore_client/api/workers_api.rb +9 -0
  48. data/lib/pulpcore_client/models/access_policy.rb +4 -19
  49. data/lib/pulpcore_client/models/access_policy_response.rb +14 -9
  50. data/lib/pulpcore_client/models/content_guard_response.rb +243 -0
  51. data/lib/pulpcore_client/models/evaluation_response.rb +245 -0
  52. data/lib/pulpcore_client/models/multiple_artifact_content_response.rb +232 -0
  53. data/lib/pulpcore_client/models/paginated_content_guard_response_list.rb +237 -0
  54. data/lib/pulpcore_client/models/paginated_multiple_artifact_content_response_list.rb +237 -0
  55. data/lib/pulpcore_client/models/paginated_repository_response_list.rb +237 -0
  56. data/lib/pulpcore_client/models/patched_access_policy.rb +4 -14
  57. data/lib/pulpcore_client/models/permission_response.rb +1 -1
  58. data/lib/pulpcore_client/models/pulp_import_check.rb +228 -0
  59. data/lib/pulpcore_client/models/pulp_import_check_response.rb +228 -0
  60. data/lib/pulpcore_client/models/repository_response.rb +280 -0
  61. data/lib/pulpcore_client/models/signing_service_response.rb +31 -1
  62. data/lib/pulpcore_client/models/worker_response.rb +10 -10
  63. data/lib/pulpcore_client/version.rb +1 -1
  64. data/lib/pulpcore_client.rb +13 -0
  65. data/spec/api/access_policies_api_spec.rb +6 -0
  66. data/spec/api/content_api_spec.rb +54 -0
  67. data/spec/api/content_guards_api_spec.rb +56 -0
  68. data/spec/api/exporters_core_exports_api_spec.rb +3 -3
  69. data/spec/api/exporters_pulp_api_spec.rb +3 -0
  70. data/spec/api/groups_api_spec.rb +7 -0
  71. data/spec/api/groups_model_permissions_api_spec.rb +27 -1
  72. data/spec/api/groups_object_permissions_api_spec.rb +3 -3
  73. data/spec/api/groups_users_api_spec.rb +2 -2
  74. data/spec/api/importers_core_import_check_api_spec.rb +47 -0
  75. data/spec/api/importers_core_imports_api_spec.rb +3 -3
  76. data/spec/api/importers_pulp_api_spec.rb +3 -0
  77. data/spec/api/repositories_api_spec.rb +57 -0
  78. data/spec/api/users_api_spec.rb +22 -0
  79. data/spec/api/workers_api_spec.rb +3 -0
  80. data/spec/models/access_policy_response_spec.rb +6 -0
  81. data/spec/models/access_policy_spec.rb +0 -6
  82. data/spec/models/content_guard_response_spec.rb +59 -0
  83. data/spec/models/evaluation_response_spec.rb +53 -0
  84. data/spec/models/multiple_artifact_content_response_spec.rb +53 -0
  85. data/spec/models/paginated_content_guard_response_list_spec.rb +59 -0
  86. data/spec/models/paginated_multiple_artifact_content_response_list_spec.rb +59 -0
  87. data/spec/models/paginated_repository_response_list_spec.rb +59 -0
  88. data/spec/models/patched_access_policy_spec.rb +0 -6
  89. data/spec/models/pulp_import_check_response_spec.rb +53 -0
  90. data/spec/models/pulp_import_check_spec.rb +53 -0
  91. data/spec/models/repository_response_spec.rb +83 -0
  92. data/spec/models/signing_service_response_spec.rb +12 -0
  93. data/spec/models/worker_response_spec.rb +2 -2
  94. metadata +112 -60
@@ -21,35 +21,35 @@ module PulpcoreClient
21
21
  end
22
22
  # Create a pulp export
23
23
  # Trigger an asynchronous task to export a set of repositories
24
- # @param core_pulp_pulp_export_href [String]
24
+ # @param pulp_exporter_href [String]
25
25
  # @param pulp_export [PulpExport]
26
26
  # @param [Hash] opts the optional parameters
27
27
  # @return [AsyncOperationResponse]
28
- def create(core_pulp_pulp_export_href, pulp_export, opts = {})
29
- data, _status_code, _headers = create_with_http_info(core_pulp_pulp_export_href, pulp_export, opts)
28
+ def create(pulp_exporter_href, pulp_export, opts = {})
29
+ data, _status_code, _headers = create_with_http_info(pulp_exporter_href, pulp_export, opts)
30
30
  data
31
31
  end
32
32
 
33
33
  # Create a pulp export
34
34
  # Trigger an asynchronous task to export a set of repositories
35
- # @param core_pulp_pulp_export_href [String]
35
+ # @param pulp_exporter_href [String]
36
36
  # @param pulp_export [PulpExport]
37
37
  # @param [Hash] opts the optional parameters
38
38
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
39
- def create_with_http_info(core_pulp_pulp_export_href, pulp_export, opts = {})
39
+ def create_with_http_info(pulp_exporter_href, pulp_export, opts = {})
40
40
  if @api_client.config.debugging
41
41
  @api_client.config.logger.debug 'Calling API: ExportersCoreExportsApi.create ...'
42
42
  end
43
- # verify the required parameter 'core_pulp_pulp_export_href' is set
44
- if @api_client.config.client_side_validation && core_pulp_pulp_export_href.nil?
45
- fail ArgumentError, "Missing the required parameter 'core_pulp_pulp_export_href' when calling ExportersCoreExportsApi.create"
43
+ # verify the required parameter 'pulp_exporter_href' is set
44
+ if @api_client.config.client_side_validation && pulp_exporter_href.nil?
45
+ fail ArgumentError, "Missing the required parameter 'pulp_exporter_href' when calling ExportersCoreExportsApi.create"
46
46
  end
47
47
  # verify the required parameter 'pulp_export' is set
48
48
  if @api_client.config.client_side_validation && pulp_export.nil?
49
49
  fail ArgumentError, "Missing the required parameter 'pulp_export' when calling ExportersCoreExportsApi.create"
50
50
  end
51
51
  # resource path
52
- local_var_path = '{core_pulp_pulp_export_href}exports/'.sub('{' + 'core_pulp_pulp_export_href' + '}', CGI.escape(core_pulp_pulp_export_href.to_s).gsub('%2F', '/'))
52
+ local_var_path = '{pulp_exporter_href}exports/'.sub('{' + 'pulp_exporter_href' + '}', CGI.escape(pulp_exporter_href.to_s).gsub('%2F', '/'))
53
53
 
54
54
  # query parameters
55
55
  query_params = opts[:query_params] || {}
@@ -91,29 +91,29 @@ module PulpcoreClient
91
91
 
92
92
  # Delete a pulp export
93
93
  # ViewSet for viewing exports from a PulpExporter.
94
- # @param core_pulp_pulp_export_href [String]
94
+ # @param pulp_pulp_export_href [String]
95
95
  # @param [Hash] opts the optional parameters
96
96
  # @return [nil]
97
- def delete(core_pulp_pulp_export_href, opts = {})
98
- delete_with_http_info(core_pulp_pulp_export_href, opts)
97
+ def delete(pulp_pulp_export_href, opts = {})
98
+ delete_with_http_info(pulp_pulp_export_href, opts)
99
99
  nil
100
100
  end
101
101
 
102
102
  # Delete a pulp export
103
103
  # ViewSet for viewing exports from a PulpExporter.
104
- # @param core_pulp_pulp_export_href [String]
104
+ # @param pulp_pulp_export_href [String]
105
105
  # @param [Hash] opts the optional parameters
106
106
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
107
- def delete_with_http_info(core_pulp_pulp_export_href, opts = {})
107
+ def delete_with_http_info(pulp_pulp_export_href, opts = {})
108
108
  if @api_client.config.debugging
109
109
  @api_client.config.logger.debug 'Calling API: ExportersCoreExportsApi.delete ...'
110
110
  end
111
- # verify the required parameter 'core_pulp_pulp_export_href' is set
112
- if @api_client.config.client_side_validation && core_pulp_pulp_export_href.nil?
113
- fail ArgumentError, "Missing the required parameter 'core_pulp_pulp_export_href' when calling ExportersCoreExportsApi.delete"
111
+ # verify the required parameter 'pulp_pulp_export_href' is set
112
+ if @api_client.config.client_side_validation && pulp_pulp_export_href.nil?
113
+ fail ArgumentError, "Missing the required parameter 'pulp_pulp_export_href' when calling ExportersCoreExportsApi.delete"
114
114
  end
115
115
  # resource path
116
- local_var_path = '{core_pulp_pulp_export_href}'.sub('{' + 'core_pulp_pulp_export_href' + '}', CGI.escape(core_pulp_pulp_export_href.to_s).gsub('%2F', '/'))
116
+ local_var_path = '{pulp_pulp_export_href}'.sub('{' + 'pulp_pulp_export_href' + '}', CGI.escape(pulp_pulp_export_href.to_s).gsub('%2F', '/'))
117
117
 
118
118
  # query parameters
119
119
  query_params = opts[:query_params] || {}
@@ -228,33 +228,33 @@ module PulpcoreClient
228
228
 
229
229
  # Inspect a pulp export
230
230
  # ViewSet for viewing exports from a PulpExporter.
231
- # @param core_pulp_pulp_export_href [String]
231
+ # @param pulp_pulp_export_href [String]
232
232
  # @param [Hash] opts the optional parameters
233
233
  # @option opts [String] :fields A list of fields to include in the response.
234
234
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
235
235
  # @return [PulpExportResponse]
236
- def read(core_pulp_pulp_export_href, opts = {})
237
- data, _status_code, _headers = read_with_http_info(core_pulp_pulp_export_href, opts)
236
+ def read(pulp_pulp_export_href, opts = {})
237
+ data, _status_code, _headers = read_with_http_info(pulp_pulp_export_href, opts)
238
238
  data
239
239
  end
240
240
 
241
241
  # Inspect a pulp export
242
242
  # ViewSet for viewing exports from a PulpExporter.
243
- # @param core_pulp_pulp_export_href [String]
243
+ # @param pulp_pulp_export_href [String]
244
244
  # @param [Hash] opts the optional parameters
245
245
  # @option opts [String] :fields A list of fields to include in the response.
246
246
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
247
247
  # @return [Array<(PulpExportResponse, Integer, Hash)>] PulpExportResponse data, response status code and response headers
248
- def read_with_http_info(core_pulp_pulp_export_href, opts = {})
248
+ def read_with_http_info(pulp_pulp_export_href, opts = {})
249
249
  if @api_client.config.debugging
250
250
  @api_client.config.logger.debug 'Calling API: ExportersCoreExportsApi.read ...'
251
251
  end
252
- # verify the required parameter 'core_pulp_pulp_export_href' is set
253
- if @api_client.config.client_side_validation && core_pulp_pulp_export_href.nil?
254
- fail ArgumentError, "Missing the required parameter 'core_pulp_pulp_export_href' when calling ExportersCoreExportsApi.read"
252
+ # verify the required parameter 'pulp_pulp_export_href' is set
253
+ if @api_client.config.client_side_validation && pulp_pulp_export_href.nil?
254
+ fail ArgumentError, "Missing the required parameter 'pulp_pulp_export_href' when calling ExportersCoreExportsApi.read"
255
255
  end
256
256
  # resource path
257
- local_var_path = '{core_pulp_pulp_export_href}'.sub('{' + 'core_pulp_pulp_export_href' + '}', CGI.escape(core_pulp_pulp_export_href.to_s).gsub('%2F', '/'))
257
+ local_var_path = '{pulp_pulp_export_href}'.sub('{' + 'pulp_pulp_export_href' + '}', CGI.escape(pulp_pulp_export_href.to_s).gsub('%2F', '/'))
258
258
 
259
259
  # query parameters
260
260
  query_params = opts[:query_params] || {}
@@ -148,7 +148,10 @@ module PulpcoreClient
148
148
  # @param [Hash] opts the optional parameters
149
149
  # @option opts [Integer] :limit Number of results to return per page.
150
150
  # @option opts [String] :name name
151
+ # @option opts [String] :name__contains name__contains
152
+ # @option opts [String] :name__icontains name__icontains
151
153
  # @option opts [String] :name__in name__in
154
+ # @option opts [String] :name__startswith name__startswith
152
155
  # @option opts [Integer] :offset The initial index from which to return the results.
153
156
  # @option opts [String] :ordering Which field to use when ordering the results.
154
157
  # @option opts [String] :fields A list of fields to include in the response.
@@ -164,7 +167,10 @@ module PulpcoreClient
164
167
  # @param [Hash] opts the optional parameters
165
168
  # @option opts [Integer] :limit Number of results to return per page.
166
169
  # @option opts [String] :name name
170
+ # @option opts [String] :name__contains name__contains
171
+ # @option opts [String] :name__icontains name__icontains
167
172
  # @option opts [String] :name__in name__in
173
+ # @option opts [String] :name__startswith name__startswith
168
174
  # @option opts [Integer] :offset The initial index from which to return the results.
169
175
  # @option opts [String] :ordering Which field to use when ordering the results.
170
176
  # @option opts [String] :fields A list of fields to include in the response.
@@ -181,7 +187,10 @@ module PulpcoreClient
181
187
  query_params = opts[:query_params] || {}
182
188
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
183
189
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
190
+ query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
191
+ query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
184
192
  query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
193
+ query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
185
194
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
186
195
  query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
187
196
  query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
@@ -146,7 +146,14 @@ module PulpcoreClient
146
146
  # List groups
147
147
  # ViewSet for Group. NOTE: This API endpoint is in \"tech preview\" and subject to change
148
148
  # @param [Hash] opts the optional parameters
149
+ # @option opts [String] :id id
150
+ # @option opts [String] :id__in id__in
149
151
  # @option opts [Integer] :limit Number of results to return per page.
152
+ # @option opts [String] :name name
153
+ # @option opts [String] :name__contains name__contains
154
+ # @option opts [String] :name__icontains name__icontains
155
+ # @option opts [String] :name__iexact name__iexact
156
+ # @option opts [String] :name__in name__in
150
157
  # @option opts [Integer] :offset The initial index from which to return the results.
151
158
  # @option opts [String] :ordering Which field to use when ordering the results.
152
159
  # @option opts [String] :fields A list of fields to include in the response.
@@ -160,7 +167,14 @@ module PulpcoreClient
160
167
  # List groups
161
168
  # ViewSet for Group. NOTE: This API endpoint is in \&quot;tech preview\&quot; and subject to change
162
169
  # @param [Hash] opts the optional parameters
170
+ # @option opts [String] :id id
171
+ # @option opts [String] :id__in id__in
163
172
  # @option opts [Integer] :limit Number of results to return per page.
173
+ # @option opts [String] :name name
174
+ # @option opts [String] :name__contains name__contains
175
+ # @option opts [String] :name__icontains name__icontains
176
+ # @option opts [String] :name__iexact name__iexact
177
+ # @option opts [String] :name__in name__in
164
178
  # @option opts [Integer] :offset The initial index from which to return the results.
165
179
  # @option opts [String] :ordering Which field to use when ordering the results.
166
180
  # @option opts [String] :fields A list of fields to include in the response.
@@ -175,7 +189,14 @@ module PulpcoreClient
175
189
 
176
190
  # query parameters
177
191
  query_params = opts[:query_params] || {}
192
+ query_params[:'id'] = opts[:'id'] if !opts[:'id'].nil?
193
+ query_params[:'id__in'] = opts[:'id__in'] if !opts[:'id__in'].nil?
178
194
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
195
+ query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
196
+ query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
197
+ query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
198
+ query_params[:'name__iexact'] = opts[:'name__iexact'] if !opts[:'name__iexact'].nil?
199
+ query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
179
200
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
180
201
  query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
181
202
  query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
@@ -21,35 +21,35 @@ module PulpcoreClient
21
21
  end
22
22
  # Create a permission
23
23
  # Add a model permission to a group.
24
- # @param auth_auth_groups_permission_href [String]
24
+ # @param auth_group_href [String]
25
25
  # @param body [Object]
26
26
  # @param [Hash] opts the optional parameters
27
27
  # @return [PermissionResponse]
28
- def create(auth_auth_groups_permission_href, body, opts = {})
29
- data, _status_code, _headers = create_with_http_info(auth_auth_groups_permission_href, body, opts)
28
+ def create(auth_group_href, body, opts = {})
29
+ data, _status_code, _headers = create_with_http_info(auth_group_href, body, opts)
30
30
  data
31
31
  end
32
32
 
33
33
  # Create a permission
34
34
  # Add a model permission to a group.
35
- # @param auth_auth_groups_permission_href [String]
35
+ # @param auth_group_href [String]
36
36
  # @param body [Object]
37
37
  # @param [Hash] opts the optional parameters
38
38
  # @return [Array<(PermissionResponse, Integer, Hash)>] PermissionResponse data, response status code and response headers
39
- def create_with_http_info(auth_auth_groups_permission_href, body, opts = {})
39
+ def create_with_http_info(auth_group_href, body, opts = {})
40
40
  if @api_client.config.debugging
41
41
  @api_client.config.logger.debug 'Calling API: GroupsModelPermissionsApi.create ...'
42
42
  end
43
- # verify the required parameter 'auth_auth_groups_permission_href' is set
44
- if @api_client.config.client_side_validation && auth_auth_groups_permission_href.nil?
45
- fail ArgumentError, "Missing the required parameter 'auth_auth_groups_permission_href' when calling GroupsModelPermissionsApi.create"
43
+ # verify the required parameter 'auth_group_href' is set
44
+ if @api_client.config.client_side_validation && auth_group_href.nil?
45
+ fail ArgumentError, "Missing the required parameter 'auth_group_href' when calling GroupsModelPermissionsApi.create"
46
46
  end
47
47
  # verify the required parameter 'body' is set
48
48
  if @api_client.config.client_side_validation && body.nil?
49
49
  fail ArgumentError, "Missing the required parameter 'body' when calling GroupsModelPermissionsApi.create"
50
50
  end
51
51
  # resource path
52
- local_var_path = '{auth_auth_groups_permission_href}model_permissions/'.sub('{' + 'auth_auth_groups_permission_href' + '}', CGI.escape(auth_auth_groups_permission_href.to_s).gsub('%2F', '/'))
52
+ local_var_path = '{auth_group_href}model_permissions/'.sub('{' + 'auth_group_href' + '}', CGI.escape(auth_group_href.to_s).gsub('%2F', '/'))
53
53
 
54
54
  # query parameters
55
55
  query_params = opts[:query_params] || {}
@@ -89,6 +89,66 @@ module PulpcoreClient
89
89
  return data, status_code, headers
90
90
  end
91
91
 
92
+ # Delete a permission
93
+ # Remove a model permission from a group.
94
+ # @param auth_groups_model_permission_href [String]
95
+ # @param [Hash] opts the optional parameters
96
+ # @return [nil]
97
+ def delete(auth_groups_model_permission_href, opts = {})
98
+ delete_with_http_info(auth_groups_model_permission_href, opts)
99
+ nil
100
+ end
101
+
102
+ # Delete a permission
103
+ # Remove a model permission from a group.
104
+ # @param auth_groups_model_permission_href [String]
105
+ # @param [Hash] opts the optional parameters
106
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
107
+ def delete_with_http_info(auth_groups_model_permission_href, opts = {})
108
+ if @api_client.config.debugging
109
+ @api_client.config.logger.debug 'Calling API: GroupsModelPermissionsApi.delete ...'
110
+ end
111
+ # verify the required parameter 'auth_groups_model_permission_href' is set
112
+ if @api_client.config.client_side_validation && auth_groups_model_permission_href.nil?
113
+ fail ArgumentError, "Missing the required parameter 'auth_groups_model_permission_href' when calling GroupsModelPermissionsApi.delete"
114
+ end
115
+ # resource path
116
+ local_var_path = '{auth_groups_model_permission_href}'.sub('{' + 'auth_groups_model_permission_href' + '}', CGI.escape(auth_groups_model_permission_href.to_s).gsub('%2F', '/'))
117
+
118
+ # query parameters
119
+ query_params = opts[:query_params] || {}
120
+
121
+ # header parameters
122
+ header_params = opts[:header_params] || {}
123
+
124
+ # form parameters
125
+ form_params = opts[:form_params] || {}
126
+
127
+ # http body (model)
128
+ post_body = opts[:body]
129
+
130
+ # return_type
131
+ return_type = opts[:return_type]
132
+
133
+ # auth_names
134
+ auth_names = opts[:auth_names] || ['basicAuth']
135
+
136
+ new_options = opts.merge(
137
+ :header_params => header_params,
138
+ :query_params => query_params,
139
+ :form_params => form_params,
140
+ :body => post_body,
141
+ :auth_names => auth_names,
142
+ :return_type => return_type
143
+ )
144
+
145
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
146
+ if @api_client.config.debugging
147
+ @api_client.config.logger.debug "API called: GroupsModelPermissionsApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
148
+ end
149
+ return data, status_code, headers
150
+ end
151
+
92
152
  # List permissions
93
153
  # List group permissions.
94
154
  # @param auth_group_href [String]
@@ -165,5 +225,73 @@ module PulpcoreClient
165
225
  end
166
226
  return data, status_code, headers
167
227
  end
228
+
229
+ # Inspect a permission
230
+ # Retrieve a model permission from a group.
231
+ # @param auth_groups_model_permission_href [String]
232
+ # @param [Hash] opts the optional parameters
233
+ # @option opts [String] :fields A list of fields to include in the response.
234
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
235
+ # @return [PermissionResponse]
236
+ def read(auth_groups_model_permission_href, opts = {})
237
+ data, _status_code, _headers = read_with_http_info(auth_groups_model_permission_href, opts)
238
+ data
239
+ end
240
+
241
+ # Inspect a permission
242
+ # Retrieve a model permission from a group.
243
+ # @param auth_groups_model_permission_href [String]
244
+ # @param [Hash] opts the optional parameters
245
+ # @option opts [String] :fields A list of fields to include in the response.
246
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
247
+ # @return [Array<(PermissionResponse, Integer, Hash)>] PermissionResponse data, response status code and response headers
248
+ def read_with_http_info(auth_groups_model_permission_href, opts = {})
249
+ if @api_client.config.debugging
250
+ @api_client.config.logger.debug 'Calling API: GroupsModelPermissionsApi.read ...'
251
+ end
252
+ # verify the required parameter 'auth_groups_model_permission_href' is set
253
+ if @api_client.config.client_side_validation && auth_groups_model_permission_href.nil?
254
+ fail ArgumentError, "Missing the required parameter 'auth_groups_model_permission_href' when calling GroupsModelPermissionsApi.read"
255
+ end
256
+ # resource path
257
+ local_var_path = '{auth_groups_model_permission_href}'.sub('{' + 'auth_groups_model_permission_href' + '}', CGI.escape(auth_groups_model_permission_href.to_s).gsub('%2F', '/'))
258
+
259
+ # query parameters
260
+ query_params = opts[:query_params] || {}
261
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
262
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
263
+
264
+ # header parameters
265
+ header_params = opts[:header_params] || {}
266
+ # HTTP header 'Accept' (if needed)
267
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
268
+
269
+ # form parameters
270
+ form_params = opts[:form_params] || {}
271
+
272
+ # http body (model)
273
+ post_body = opts[:body]
274
+
275
+ # return_type
276
+ return_type = opts[:return_type] || 'PermissionResponse'
277
+
278
+ # auth_names
279
+ auth_names = opts[:auth_names] || ['basicAuth']
280
+
281
+ new_options = opts.merge(
282
+ :header_params => header_params,
283
+ :query_params => query_params,
284
+ :form_params => form_params,
285
+ :body => post_body,
286
+ :auth_names => auth_names,
287
+ :return_type => return_type
288
+ )
289
+
290
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
291
+ if @api_client.config.debugging
292
+ @api_client.config.logger.debug "API called: GroupsModelPermissionsApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
293
+ end
294
+ return data, status_code, headers
295
+ end
168
296
  end
169
297
  end
@@ -21,35 +21,35 @@ module PulpcoreClient
21
21
  end
22
22
  # Create a permission
23
23
  # Add an object permission to a group.
24
- # @param auth_auth_groups_permission_href [String]
24
+ # @param auth_group_href [String]
25
25
  # @param body [Object]
26
26
  # @param [Hash] opts the optional parameters
27
27
  # @return [PermissionResponse]
28
- def create(auth_auth_groups_permission_href, body, opts = {})
29
- data, _status_code, _headers = create_with_http_info(auth_auth_groups_permission_href, body, opts)
28
+ def create(auth_group_href, body, opts = {})
29
+ data, _status_code, _headers = create_with_http_info(auth_group_href, body, opts)
30
30
  data
31
31
  end
32
32
 
33
33
  # Create a permission
34
34
  # Add an object permission to a group.
35
- # @param auth_auth_groups_permission_href [String]
35
+ # @param auth_group_href [String]
36
36
  # @param body [Object]
37
37
  # @param [Hash] opts the optional parameters
38
38
  # @return [Array<(PermissionResponse, Integer, Hash)>] PermissionResponse data, response status code and response headers
39
- def create_with_http_info(auth_auth_groups_permission_href, body, opts = {})
39
+ def create_with_http_info(auth_group_href, body, opts = {})
40
40
  if @api_client.config.debugging
41
41
  @api_client.config.logger.debug 'Calling API: GroupsObjectPermissionsApi.create ...'
42
42
  end
43
- # verify the required parameter 'auth_auth_groups_permission_href' is set
44
- if @api_client.config.client_side_validation && auth_auth_groups_permission_href.nil?
45
- fail ArgumentError, "Missing the required parameter 'auth_auth_groups_permission_href' when calling GroupsObjectPermissionsApi.create"
43
+ # verify the required parameter 'auth_group_href' is set
44
+ if @api_client.config.client_side_validation && auth_group_href.nil?
45
+ fail ArgumentError, "Missing the required parameter 'auth_group_href' when calling GroupsObjectPermissionsApi.create"
46
46
  end
47
47
  # verify the required parameter 'body' is set
48
48
  if @api_client.config.client_side_validation && body.nil?
49
49
  fail ArgumentError, "Missing the required parameter 'body' when calling GroupsObjectPermissionsApi.create"
50
50
  end
51
51
  # resource path
52
- local_var_path = '{auth_auth_groups_permission_href}object_permissions/'.sub('{' + 'auth_auth_groups_permission_href' + '}', CGI.escape(auth_auth_groups_permission_href.to_s).gsub('%2F', '/'))
52
+ local_var_path = '{auth_group_href}object_permissions/'.sub('{' + 'auth_group_href' + '}', CGI.escape(auth_group_href.to_s).gsub('%2F', '/'))
53
53
 
54
54
  # query parameters
55
55
  query_params = opts[:query_params] || {}
@@ -91,29 +91,29 @@ module PulpcoreClient
91
91
 
92
92
  # Delete a permission
93
93
  # Remove an object permission from a group.
94
- # @param auth_auth_groups_permission_href [String]
94
+ # @param auth_groups_object_permission_href [String]
95
95
  # @param [Hash] opts the optional parameters
96
96
  # @return [nil]
97
- def delete(auth_auth_groups_permission_href, opts = {})
98
- delete_with_http_info(auth_auth_groups_permission_href, opts)
97
+ def delete(auth_groups_object_permission_href, opts = {})
98
+ delete_with_http_info(auth_groups_object_permission_href, opts)
99
99
  nil
100
100
  end
101
101
 
102
102
  # Delete a permission
103
103
  # Remove an object permission from a group.
104
- # @param auth_auth_groups_permission_href [String]
104
+ # @param auth_groups_object_permission_href [String]
105
105
  # @param [Hash] opts the optional parameters
106
106
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
107
- def delete_with_http_info(auth_auth_groups_permission_href, opts = {})
107
+ def delete_with_http_info(auth_groups_object_permission_href, opts = {})
108
108
  if @api_client.config.debugging
109
109
  @api_client.config.logger.debug 'Calling API: GroupsObjectPermissionsApi.delete ...'
110
110
  end
111
- # verify the required parameter 'auth_auth_groups_permission_href' is set
112
- if @api_client.config.client_side_validation && auth_auth_groups_permission_href.nil?
113
- fail ArgumentError, "Missing the required parameter 'auth_auth_groups_permission_href' when calling GroupsObjectPermissionsApi.delete"
111
+ # verify the required parameter 'auth_groups_object_permission_href' is set
112
+ if @api_client.config.client_side_validation && auth_groups_object_permission_href.nil?
113
+ fail ArgumentError, "Missing the required parameter 'auth_groups_object_permission_href' when calling GroupsObjectPermissionsApi.delete"
114
114
  end
115
115
  # resource path
116
- local_var_path = '{auth_auth_groups_permission_href}'.sub('{' + 'auth_auth_groups_permission_href' + '}', CGI.escape(auth_auth_groups_permission_href.to_s).gsub('%2F', '/'))
116
+ local_var_path = '{auth_groups_object_permission_href}'.sub('{' + 'auth_groups_object_permission_href' + '}', CGI.escape(auth_groups_object_permission_href.to_s).gsub('%2F', '/'))
117
117
 
118
118
  # query parameters
119
119
  query_params = opts[:query_params] || {}
@@ -228,33 +228,33 @@ module PulpcoreClient
228
228
 
229
229
  # Inspect a permission
230
230
  # Retrieve a model permission from a group.
231
- # @param auth_auth_groups_permission_href [String]
231
+ # @param auth_groups_object_permission_href [String]
232
232
  # @param [Hash] opts the optional parameters
233
233
  # @option opts [String] :fields A list of fields to include in the response.
234
234
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
235
235
  # @return [PermissionResponse]
236
- def read(auth_auth_groups_permission_href, opts = {})
237
- data, _status_code, _headers = read_with_http_info(auth_auth_groups_permission_href, opts)
236
+ def read(auth_groups_object_permission_href, opts = {})
237
+ data, _status_code, _headers = read_with_http_info(auth_groups_object_permission_href, opts)
238
238
  data
239
239
  end
240
240
 
241
241
  # Inspect a permission
242
242
  # Retrieve a model permission from a group.
243
- # @param auth_auth_groups_permission_href [String]
243
+ # @param auth_groups_object_permission_href [String]
244
244
  # @param [Hash] opts the optional parameters
245
245
  # @option opts [String] :fields A list of fields to include in the response.
246
246
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
247
247
  # @return [Array<(PermissionResponse, Integer, Hash)>] PermissionResponse data, response status code and response headers
248
- def read_with_http_info(auth_auth_groups_permission_href, opts = {})
248
+ def read_with_http_info(auth_groups_object_permission_href, opts = {})
249
249
  if @api_client.config.debugging
250
250
  @api_client.config.logger.debug 'Calling API: GroupsObjectPermissionsApi.read ...'
251
251
  end
252
- # verify the required parameter 'auth_auth_groups_permission_href' is set
253
- if @api_client.config.client_side_validation && auth_auth_groups_permission_href.nil?
254
- fail ArgumentError, "Missing the required parameter 'auth_auth_groups_permission_href' when calling GroupsObjectPermissionsApi.read"
252
+ # verify the required parameter 'auth_groups_object_permission_href' is set
253
+ if @api_client.config.client_side_validation && auth_groups_object_permission_href.nil?
254
+ fail ArgumentError, "Missing the required parameter 'auth_groups_object_permission_href' when calling GroupsObjectPermissionsApi.read"
255
255
  end
256
256
  # resource path
257
- local_var_path = '{auth_auth_groups_permission_href}'.sub('{' + 'auth_auth_groups_permission_href' + '}', CGI.escape(auth_auth_groups_permission_href.to_s).gsub('%2F', '/'))
257
+ local_var_path = '{auth_groups_object_permission_href}'.sub('{' + 'auth_groups_object_permission_href' + '}', CGI.escape(auth_groups_object_permission_href.to_s).gsub('%2F', '/'))
258
258
 
259
259
  # query parameters
260
260
  query_params = opts[:query_params] || {}
@@ -21,35 +21,35 @@ module PulpcoreClient
21
21
  end
22
22
  # Create an user
23
23
  # Add a user to a group.
24
- # @param auth_auth_groups_user_href [String]
24
+ # @param auth_group_href [String]
25
25
  # @param group_user [GroupUser]
26
26
  # @param [Hash] opts the optional parameters
27
27
  # @return [GroupUserResponse]
28
- def create(auth_auth_groups_user_href, group_user, opts = {})
29
- data, _status_code, _headers = create_with_http_info(auth_auth_groups_user_href, group_user, opts)
28
+ def create(auth_group_href, group_user, opts = {})
29
+ data, _status_code, _headers = create_with_http_info(auth_group_href, group_user, opts)
30
30
  data
31
31
  end
32
32
 
33
33
  # Create an user
34
34
  # Add a user to a group.
35
- # @param auth_auth_groups_user_href [String]
35
+ # @param auth_group_href [String]
36
36
  # @param group_user [GroupUser]
37
37
  # @param [Hash] opts the optional parameters
38
38
  # @return [Array<(GroupUserResponse, Integer, Hash)>] GroupUserResponse data, response status code and response headers
39
- def create_with_http_info(auth_auth_groups_user_href, group_user, opts = {})
39
+ def create_with_http_info(auth_group_href, group_user, opts = {})
40
40
  if @api_client.config.debugging
41
41
  @api_client.config.logger.debug 'Calling API: GroupsUsersApi.create ...'
42
42
  end
43
- # verify the required parameter 'auth_auth_groups_user_href' is set
44
- if @api_client.config.client_side_validation && auth_auth_groups_user_href.nil?
45
- fail ArgumentError, "Missing the required parameter 'auth_auth_groups_user_href' when calling GroupsUsersApi.create"
43
+ # verify the required parameter 'auth_group_href' is set
44
+ if @api_client.config.client_side_validation && auth_group_href.nil?
45
+ fail ArgumentError, "Missing the required parameter 'auth_group_href' when calling GroupsUsersApi.create"
46
46
  end
47
47
  # verify the required parameter 'group_user' is set
48
48
  if @api_client.config.client_side_validation && group_user.nil?
49
49
  fail ArgumentError, "Missing the required parameter 'group_user' when calling GroupsUsersApi.create"
50
50
  end
51
51
  # resource path
52
- local_var_path = '{auth_auth_groups_user_href}users/'.sub('{' + 'auth_auth_groups_user_href' + '}', CGI.escape(auth_auth_groups_user_href.to_s).gsub('%2F', '/'))
52
+ local_var_path = '{auth_group_href}users/'.sub('{' + 'auth_group_href' + '}', CGI.escape(auth_group_href.to_s).gsub('%2F', '/'))
53
53
 
54
54
  # query parameters
55
55
  query_params = opts[:query_params] || {}
@@ -91,29 +91,29 @@ module PulpcoreClient
91
91
 
92
92
  # Delete an user
93
93
  # Remove a user from a group.
94
- # @param auth_auth_groups_user_href [String]
94
+ # @param auth_groups_user_href [String]
95
95
  # @param [Hash] opts the optional parameters
96
96
  # @return [nil]
97
- def delete(auth_auth_groups_user_href, opts = {})
98
- delete_with_http_info(auth_auth_groups_user_href, opts)
97
+ def delete(auth_groups_user_href, opts = {})
98
+ delete_with_http_info(auth_groups_user_href, opts)
99
99
  nil
100
100
  end
101
101
 
102
102
  # Delete an user
103
103
  # Remove a user from a group.
104
- # @param auth_auth_groups_user_href [String]
104
+ # @param auth_groups_user_href [String]
105
105
  # @param [Hash] opts the optional parameters
106
106
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
107
- def delete_with_http_info(auth_auth_groups_user_href, opts = {})
107
+ def delete_with_http_info(auth_groups_user_href, opts = {})
108
108
  if @api_client.config.debugging
109
109
  @api_client.config.logger.debug 'Calling API: GroupsUsersApi.delete ...'
110
110
  end
111
- # verify the required parameter 'auth_auth_groups_user_href' is set
112
- if @api_client.config.client_side_validation && auth_auth_groups_user_href.nil?
113
- fail ArgumentError, "Missing the required parameter 'auth_auth_groups_user_href' when calling GroupsUsersApi.delete"
111
+ # verify the required parameter 'auth_groups_user_href' is set
112
+ if @api_client.config.client_side_validation && auth_groups_user_href.nil?
113
+ fail ArgumentError, "Missing the required parameter 'auth_groups_user_href' when calling GroupsUsersApi.delete"
114
114
  end
115
115
  # resource path
116
- local_var_path = '{auth_auth_groups_user_href}'.sub('{' + 'auth_auth_groups_user_href' + '}', CGI.escape(auth_auth_groups_user_href.to_s).gsub('%2F', '/'))
116
+ local_var_path = '{auth_groups_user_href}'.sub('{' + 'auth_groups_user_href' + '}', CGI.escape(auth_groups_user_href.to_s).gsub('%2F', '/'))
117
117
 
118
118
  # query parameters
119
119
  query_params = opts[:query_params] || {}