pulpcore_client 3.22.28 → 3.22.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +144 -142
- data/docs/AccessPoliciesApi.md +26 -26
- data/docs/ArtifactDistributionResponse.md +8 -8
- data/docs/ArtifactsApi.md +21 -21
- data/docs/ContentApi.md +6 -6
- data/docs/ContentguardsApi.md +6 -6
- data/docs/ContentguardsContentRedirectApi.md +51 -51
- data/docs/ContentguardsRbacApi.md +51 -51
- data/docs/DistributionsApi.md +6 -6
- data/docs/DistributionsArtifactsApi.md +11 -11
- data/docs/DocsApiJsonApi.md +61 -0
- data/docs/DocsApiYamlApi.md +61 -0
- data/docs/ExportersFilesystemApi.md +31 -31
- data/docs/ExportersFilesystemExportsApi.md +21 -21
- data/docs/ExportersPulpApi.md +31 -31
- data/docs/ExportersPulpExportsApi.md +21 -21
- data/docs/GroupsApi.md +51 -51
- data/docs/GroupsRolesApi.md +21 -21
- data/docs/GroupsUsersApi.md +16 -16
- data/docs/ImportersPulpApi.md +31 -31
- data/docs/ImportersPulpImportCheckApi.md +1 -1
- data/docs/ImportersPulpImportsApi.md +21 -21
- data/docs/OrphansApi.md +6 -6
- data/docs/OrphansCleanupApi.md +6 -6
- data/docs/PublicationsApi.md +6 -6
- data/docs/RemoteResponseHiddenFields.md +2 -2
- data/docs/RemotesApi.md +6 -6
- data/docs/RepairApi.md +6 -6
- data/docs/RepositoriesApi.md +6 -6
- data/docs/RepositoriesReclaimSpaceApi.md +6 -6
- data/docs/RepositoryVersionsApi.md +6 -6
- data/docs/RolesApi.md +31 -31
- data/docs/SigningServicesApi.md +11 -11
- data/docs/StatusApi.md +1 -1
- data/docs/TaskGroupsApi.md +11 -11
- data/docs/TaskSchedulesApi.md +31 -31
- data/docs/TasksApi.md +96 -96
- data/docs/UploadsApi.md +51 -51
- data/docs/UsersApi.md +31 -31
- data/docs/UsersRolesApi.md +21 -21
- data/docs/WorkersApi.md +11 -11
- data/lib/pulpcore_client/api/access_policies_api.rb +31 -31
- data/lib/pulpcore_client/api/artifacts_api.rb +29 -29
- data/lib/pulpcore_client/api/content_api.rb +5 -5
- data/lib/pulpcore_client/api/contentguards_api.rb +5 -5
- data/lib/pulpcore_client/api/contentguards_content_redirect_api.rb +63 -63
- data/lib/pulpcore_client/api/contentguards_rbac_api.rb +63 -63
- data/lib/pulpcore_client/api/distributions_api.rb +5 -5
- data/lib/pulpcore_client/api/distributions_artifacts_api.rb +11 -11
- data/lib/pulpcore_client/api/docs_api_json_api.rb +89 -0
- data/lib/pulpcore_client/api/docs_api_yaml_api.rb +89 -0
- data/lib/pulpcore_client/api/exporters_filesystem_api.rb +37 -37
- data/lib/pulpcore_client/api/exporters_filesystem_exports_api.rb +25 -25
- data/lib/pulpcore_client/api/exporters_pulp_api.rb +37 -37
- data/lib/pulpcore_client/api/exporters_pulp_exports_api.rb +25 -25
- data/lib/pulpcore_client/api/groups_api.rb +63 -63
- data/lib/pulpcore_client/api/groups_roles_api.rb +25 -25
- data/lib/pulpcore_client/api/groups_users_api.rb +19 -19
- data/lib/pulpcore_client/api/importers_pulp_api.rb +37 -37
- data/lib/pulpcore_client/api/importers_pulp_imports_api.rb +25 -25
- data/lib/pulpcore_client/api/orphans_api.rb +5 -5
- data/lib/pulpcore_client/api/orphans_cleanup_api.rb +6 -6
- data/lib/pulpcore_client/api/publications_api.rb +5 -5
- data/lib/pulpcore_client/api/remotes_api.rb +5 -5
- data/lib/pulpcore_client/api/repair_api.rb +6 -6
- data/lib/pulpcore_client/api/repositories_api.rb +5 -5
- data/lib/pulpcore_client/api/repositories_reclaim_space_api.rb +6 -6
- data/lib/pulpcore_client/api/repository_versions_api.rb +5 -5
- data/lib/pulpcore_client/api/roles_api.rb +37 -37
- data/lib/pulpcore_client/api/signing_services_api.rb +11 -11
- data/lib/pulpcore_client/api/task_groups_api.rb +11 -11
- data/lib/pulpcore_client/api/task_schedules_api.rb +37 -37
- data/lib/pulpcore_client/api/tasks_api.rb +119 -119
- data/lib/pulpcore_client/api/uploads_api.rb +65 -65
- data/lib/pulpcore_client/api/users_api.rb +37 -37
- data/lib/pulpcore_client/api/users_roles_api.rb +25 -25
- data/lib/pulpcore_client/api/workers_api.rb +11 -11
- data/lib/pulpcore_client/configuration.rb +3 -3
- data/lib/pulpcore_client/models/artifact_distribution_response.rb +37 -37
- data/lib/pulpcore_client/models/remote_response.rb +20 -20
- data/lib/pulpcore_client/models/remote_response_hidden_fields.rb +10 -0
- data/lib/pulpcore_client/version.rb +1 -1
- data/lib/pulpcore_client.rb +2 -0
- data/spec/api/access_policies_api_spec.rb +10 -10
- data/spec/api/artifacts_api_spec.rb +8 -8
- data/spec/api/content_api_spec.rb +2 -2
- data/spec/api/contentguards_api_spec.rb +2 -2
- data/spec/api/contentguards_content_redirect_api_spec.rb +20 -20
- data/spec/api/contentguards_rbac_api_spec.rb +20 -20
- data/spec/api/distributions_api_spec.rb +2 -2
- data/spec/api/distributions_artifacts_api_spec.rb +4 -4
- data/spec/api/docs_api_json_api_spec.rb +48 -0
- data/spec/api/docs_api_yaml_api_spec.rb +48 -0
- data/spec/api/exporters_filesystem_api_spec.rb +12 -12
- data/spec/api/exporters_filesystem_exports_api_spec.rb +8 -8
- data/spec/api/exporters_pulp_api_spec.rb +12 -12
- data/spec/api/exporters_pulp_exports_api_spec.rb +8 -8
- data/spec/api/groups_api_spec.rb +20 -20
- data/spec/api/groups_roles_api_spec.rb +8 -8
- data/spec/api/groups_users_api_spec.rb +6 -6
- data/spec/api/importers_pulp_api_spec.rb +12 -12
- data/spec/api/importers_pulp_imports_api_spec.rb +8 -8
- data/spec/api/orphans_api_spec.rb +2 -2
- data/spec/api/orphans_cleanup_api_spec.rb +2 -2
- data/spec/api/publications_api_spec.rb +2 -2
- data/spec/api/remotes_api_spec.rb +2 -2
- data/spec/api/repair_api_spec.rb +2 -2
- data/spec/api/repositories_api_spec.rb +2 -2
- data/spec/api/repositories_reclaim_space_api_spec.rb +2 -2
- data/spec/api/repository_versions_api_spec.rb +2 -2
- data/spec/api/roles_api_spec.rb +12 -12
- data/spec/api/signing_services_api_spec.rb +4 -4
- data/spec/api/task_groups_api_spec.rb +4 -4
- data/spec/api/task_schedules_api_spec.rb +12 -12
- data/spec/api/tasks_api_spec.rb +29 -29
- data/spec/api/uploads_api_spec.rb +20 -20
- data/spec/api/users_api_spec.rb +12 -12
- data/spec/api/users_roles_api_spec.rb +8 -8
- data/spec/api/workers_api_spec.rb +4 -4
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/artifact_distribution_response_spec.rb +5 -5
- metadata +152 -144
|
@@ -24,8 +24,8 @@ module PulpcoreClient
|
|
|
24
24
|
# @param nested_role [NestedRole]
|
|
25
25
|
# @param [Hash] opts the optional parameters
|
|
26
26
|
# @return [NestedRoleResponse]
|
|
27
|
-
def
|
|
28
|
-
data, _status_code, _headers =
|
|
27
|
+
def contentguards_core_rbac_add_role(r_b_a_c_content_guard_href, nested_role, opts = {})
|
|
28
|
+
data, _status_code, _headers = contentguards_core_rbac_add_role_with_http_info(r_b_a_c_content_guard_href, nested_role, opts)
|
|
29
29
|
data
|
|
30
30
|
end
|
|
31
31
|
|
|
@@ -34,17 +34,17 @@ module PulpcoreClient
|
|
|
34
34
|
# @param nested_role [NestedRole]
|
|
35
35
|
# @param [Hash] opts the optional parameters
|
|
36
36
|
# @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
|
|
37
|
-
def
|
|
37
|
+
def contentguards_core_rbac_add_role_with_http_info(r_b_a_c_content_guard_href, nested_role, opts = {})
|
|
38
38
|
if @api_client.config.debugging
|
|
39
|
-
@api_client.config.logger.debug 'Calling API: ContentguardsRbacApi.
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: ContentguardsRbacApi.contentguards_core_rbac_add_role ...'
|
|
40
40
|
end
|
|
41
41
|
# verify the required parameter 'r_b_a_c_content_guard_href' is set
|
|
42
42
|
if @api_client.config.client_side_validation && r_b_a_c_content_guard_href.nil?
|
|
43
|
-
fail ArgumentError, "Missing the required parameter 'r_b_a_c_content_guard_href' when calling ContentguardsRbacApi.
|
|
43
|
+
fail ArgumentError, "Missing the required parameter 'r_b_a_c_content_guard_href' when calling ContentguardsRbacApi.contentguards_core_rbac_add_role"
|
|
44
44
|
end
|
|
45
45
|
# verify the required parameter 'nested_role' is set
|
|
46
46
|
if @api_client.config.client_side_validation && nested_role.nil?
|
|
47
|
-
fail ArgumentError, "Missing the required parameter 'nested_role' when calling ContentguardsRbacApi.
|
|
47
|
+
fail ArgumentError, "Missing the required parameter 'nested_role' when calling ContentguardsRbacApi.contentguards_core_rbac_add_role"
|
|
48
48
|
end
|
|
49
49
|
# resource path
|
|
50
50
|
local_var_path = '{r_b_a_c_content_guard_href}add_role/'.sub('{' + 'r_b_a_c_content_guard_href' + '}', CGI.escape(r_b_a_c_content_guard_href.to_s).gsub('%2F', '/'))
|
|
@@ -82,7 +82,7 @@ module PulpcoreClient
|
|
|
82
82
|
|
|
83
83
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
84
84
|
if @api_client.config.debugging
|
|
85
|
-
@api_client.config.logger.debug "API called: ContentguardsRbacApi#
|
|
85
|
+
@api_client.config.logger.debug "API called: ContentguardsRbacApi#contentguards_core_rbac_add_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
86
86
|
end
|
|
87
87
|
return data, status_code, headers
|
|
88
88
|
end
|
|
@@ -92,8 +92,8 @@ module PulpcoreClient
|
|
|
92
92
|
# @param rbac_content_guard [RBACContentGuard]
|
|
93
93
|
# @param [Hash] opts the optional parameters
|
|
94
94
|
# @return [RBACContentGuardResponse]
|
|
95
|
-
def
|
|
96
|
-
data, _status_code, _headers =
|
|
95
|
+
def contentguards_core_rbac_create(rbac_content_guard, opts = {})
|
|
96
|
+
data, _status_code, _headers = contentguards_core_rbac_create_with_http_info(rbac_content_guard, opts)
|
|
97
97
|
data
|
|
98
98
|
end
|
|
99
99
|
|
|
@@ -102,13 +102,13 @@ module PulpcoreClient
|
|
|
102
102
|
# @param rbac_content_guard [RBACContentGuard]
|
|
103
103
|
# @param [Hash] opts the optional parameters
|
|
104
104
|
# @return [Array<(RBACContentGuardResponse, Integer, Hash)>] RBACContentGuardResponse data, response status code and response headers
|
|
105
|
-
def
|
|
105
|
+
def contentguards_core_rbac_create_with_http_info(rbac_content_guard, opts = {})
|
|
106
106
|
if @api_client.config.debugging
|
|
107
|
-
@api_client.config.logger.debug 'Calling API: ContentguardsRbacApi.
|
|
107
|
+
@api_client.config.logger.debug 'Calling API: ContentguardsRbacApi.contentguards_core_rbac_create ...'
|
|
108
108
|
end
|
|
109
109
|
# verify the required parameter 'rbac_content_guard' is set
|
|
110
110
|
if @api_client.config.client_side_validation && rbac_content_guard.nil?
|
|
111
|
-
fail ArgumentError, "Missing the required parameter 'rbac_content_guard' when calling ContentguardsRbacApi.
|
|
111
|
+
fail ArgumentError, "Missing the required parameter 'rbac_content_guard' when calling ContentguardsRbacApi.contentguards_core_rbac_create"
|
|
112
112
|
end
|
|
113
113
|
# resource path
|
|
114
114
|
local_var_path = '/pulp/api/v3/contentguards/core/rbac/'
|
|
@@ -146,7 +146,7 @@ module PulpcoreClient
|
|
|
146
146
|
|
|
147
147
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
148
148
|
if @api_client.config.debugging
|
|
149
|
-
@api_client.config.logger.debug "API called: ContentguardsRbacApi#
|
|
149
|
+
@api_client.config.logger.debug "API called: ContentguardsRbacApi#contentguards_core_rbac_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
150
150
|
end
|
|
151
151
|
return data, status_code, headers
|
|
152
152
|
end
|
|
@@ -156,8 +156,8 @@ module PulpcoreClient
|
|
|
156
156
|
# @param r_b_a_c_content_guard_href [String]
|
|
157
157
|
# @param [Hash] opts the optional parameters
|
|
158
158
|
# @return [nil]
|
|
159
|
-
def
|
|
160
|
-
|
|
159
|
+
def contentguards_core_rbac_delete(r_b_a_c_content_guard_href, opts = {})
|
|
160
|
+
contentguards_core_rbac_delete_with_http_info(r_b_a_c_content_guard_href, opts)
|
|
161
161
|
nil
|
|
162
162
|
end
|
|
163
163
|
|
|
@@ -166,13 +166,13 @@ module PulpcoreClient
|
|
|
166
166
|
# @param r_b_a_c_content_guard_href [String]
|
|
167
167
|
# @param [Hash] opts the optional parameters
|
|
168
168
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
169
|
-
def
|
|
169
|
+
def contentguards_core_rbac_delete_with_http_info(r_b_a_c_content_guard_href, opts = {})
|
|
170
170
|
if @api_client.config.debugging
|
|
171
|
-
@api_client.config.logger.debug 'Calling API: ContentguardsRbacApi.
|
|
171
|
+
@api_client.config.logger.debug 'Calling API: ContentguardsRbacApi.contentguards_core_rbac_delete ...'
|
|
172
172
|
end
|
|
173
173
|
# verify the required parameter 'r_b_a_c_content_guard_href' is set
|
|
174
174
|
if @api_client.config.client_side_validation && r_b_a_c_content_guard_href.nil?
|
|
175
|
-
fail ArgumentError, "Missing the required parameter 'r_b_a_c_content_guard_href' when calling ContentguardsRbacApi.
|
|
175
|
+
fail ArgumentError, "Missing the required parameter 'r_b_a_c_content_guard_href' when calling ContentguardsRbacApi.contentguards_core_rbac_delete"
|
|
176
176
|
end
|
|
177
177
|
# resource path
|
|
178
178
|
local_var_path = '{r_b_a_c_content_guard_href}'.sub('{' + 'r_b_a_c_content_guard_href' + '}', CGI.escape(r_b_a_c_content_guard_href.to_s).gsub('%2F', '/'))
|
|
@@ -206,7 +206,7 @@ module PulpcoreClient
|
|
|
206
206
|
|
|
207
207
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
208
208
|
if @api_client.config.debugging
|
|
209
|
-
@api_client.config.logger.debug "API called: ContentguardsRbacApi#
|
|
209
|
+
@api_client.config.logger.debug "API called: ContentguardsRbacApi#contentguards_core_rbac_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
210
210
|
end
|
|
211
211
|
return data, status_code, headers
|
|
212
212
|
end
|
|
@@ -225,8 +225,8 @@ module PulpcoreClient
|
|
|
225
225
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
226
226
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
227
227
|
# @return [PaginatedRBACContentGuardResponseList]
|
|
228
|
-
def
|
|
229
|
-
data, _status_code, _headers =
|
|
228
|
+
def contentguards_core_rbac_list(opts = {})
|
|
229
|
+
data, _status_code, _headers = contentguards_core_rbac_list_with_http_info(opts)
|
|
230
230
|
data
|
|
231
231
|
end
|
|
232
232
|
|
|
@@ -244,9 +244,9 @@ module PulpcoreClient
|
|
|
244
244
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
245
245
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
246
246
|
# @return [Array<(PaginatedRBACContentGuardResponseList, Integer, Hash)>] PaginatedRBACContentGuardResponseList data, response status code and response headers
|
|
247
|
-
def
|
|
247
|
+
def contentguards_core_rbac_list_with_http_info(opts = {})
|
|
248
248
|
if @api_client.config.debugging
|
|
249
|
-
@api_client.config.logger.debug 'Calling API: ContentguardsRbacApi.
|
|
249
|
+
@api_client.config.logger.debug 'Calling API: ContentguardsRbacApi.contentguards_core_rbac_list ...'
|
|
250
250
|
end
|
|
251
251
|
allowable_values = ["-description", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "description", "name", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type"]
|
|
252
252
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
|
@@ -296,7 +296,7 @@ module PulpcoreClient
|
|
|
296
296
|
|
|
297
297
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
298
298
|
if @api_client.config.debugging
|
|
299
|
-
@api_client.config.logger.debug "API called: ContentguardsRbacApi#
|
|
299
|
+
@api_client.config.logger.debug "API called: ContentguardsRbacApi#contentguards_core_rbac_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
300
300
|
end
|
|
301
301
|
return data, status_code, headers
|
|
302
302
|
end
|
|
@@ -307,8 +307,8 @@ module PulpcoreClient
|
|
|
307
307
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
308
308
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
309
309
|
# @return [ObjectRolesResponse]
|
|
310
|
-
def
|
|
311
|
-
data, _status_code, _headers =
|
|
310
|
+
def contentguards_core_rbac_list_roles(r_b_a_c_content_guard_href, opts = {})
|
|
311
|
+
data, _status_code, _headers = contentguards_core_rbac_list_roles_with_http_info(r_b_a_c_content_guard_href, opts)
|
|
312
312
|
data
|
|
313
313
|
end
|
|
314
314
|
|
|
@@ -318,13 +318,13 @@ module PulpcoreClient
|
|
|
318
318
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
319
319
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
320
320
|
# @return [Array<(ObjectRolesResponse, Integer, Hash)>] ObjectRolesResponse data, response status code and response headers
|
|
321
|
-
def
|
|
321
|
+
def contentguards_core_rbac_list_roles_with_http_info(r_b_a_c_content_guard_href, opts = {})
|
|
322
322
|
if @api_client.config.debugging
|
|
323
|
-
@api_client.config.logger.debug 'Calling API: ContentguardsRbacApi.
|
|
323
|
+
@api_client.config.logger.debug 'Calling API: ContentguardsRbacApi.contentguards_core_rbac_list_roles ...'
|
|
324
324
|
end
|
|
325
325
|
# verify the required parameter 'r_b_a_c_content_guard_href' is set
|
|
326
326
|
if @api_client.config.client_side_validation && r_b_a_c_content_guard_href.nil?
|
|
327
|
-
fail ArgumentError, "Missing the required parameter 'r_b_a_c_content_guard_href' when calling ContentguardsRbacApi.
|
|
327
|
+
fail ArgumentError, "Missing the required parameter 'r_b_a_c_content_guard_href' when calling ContentguardsRbacApi.contentguards_core_rbac_list_roles"
|
|
328
328
|
end
|
|
329
329
|
# resource path
|
|
330
330
|
local_var_path = '{r_b_a_c_content_guard_href}list_roles/'.sub('{' + 'r_b_a_c_content_guard_href' + '}', CGI.escape(r_b_a_c_content_guard_href.to_s).gsub('%2F', '/'))
|
|
@@ -362,7 +362,7 @@ module PulpcoreClient
|
|
|
362
362
|
|
|
363
363
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
364
364
|
if @api_client.config.debugging
|
|
365
|
-
@api_client.config.logger.debug "API called: ContentguardsRbacApi#
|
|
365
|
+
@api_client.config.logger.debug "API called: ContentguardsRbacApi#contentguards_core_rbac_list_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
366
366
|
end
|
|
367
367
|
return data, status_code, headers
|
|
368
368
|
end
|
|
@@ -373,8 +373,8 @@ module PulpcoreClient
|
|
|
373
373
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
374
374
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
375
375
|
# @return [MyPermissionsResponse]
|
|
376
|
-
def
|
|
377
|
-
data, _status_code, _headers =
|
|
376
|
+
def contentguards_core_rbac_my_permissions(r_b_a_c_content_guard_href, opts = {})
|
|
377
|
+
data, _status_code, _headers = contentguards_core_rbac_my_permissions_with_http_info(r_b_a_c_content_guard_href, opts)
|
|
378
378
|
data
|
|
379
379
|
end
|
|
380
380
|
|
|
@@ -384,13 +384,13 @@ module PulpcoreClient
|
|
|
384
384
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
385
385
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
386
386
|
# @return [Array<(MyPermissionsResponse, Integer, Hash)>] MyPermissionsResponse data, response status code and response headers
|
|
387
|
-
def
|
|
387
|
+
def contentguards_core_rbac_my_permissions_with_http_info(r_b_a_c_content_guard_href, opts = {})
|
|
388
388
|
if @api_client.config.debugging
|
|
389
|
-
@api_client.config.logger.debug 'Calling API: ContentguardsRbacApi.
|
|
389
|
+
@api_client.config.logger.debug 'Calling API: ContentguardsRbacApi.contentguards_core_rbac_my_permissions ...'
|
|
390
390
|
end
|
|
391
391
|
# verify the required parameter 'r_b_a_c_content_guard_href' is set
|
|
392
392
|
if @api_client.config.client_side_validation && r_b_a_c_content_guard_href.nil?
|
|
393
|
-
fail ArgumentError, "Missing the required parameter 'r_b_a_c_content_guard_href' when calling ContentguardsRbacApi.
|
|
393
|
+
fail ArgumentError, "Missing the required parameter 'r_b_a_c_content_guard_href' when calling ContentguardsRbacApi.contentguards_core_rbac_my_permissions"
|
|
394
394
|
end
|
|
395
395
|
# resource path
|
|
396
396
|
local_var_path = '{r_b_a_c_content_guard_href}my_permissions/'.sub('{' + 'r_b_a_c_content_guard_href' + '}', CGI.escape(r_b_a_c_content_guard_href.to_s).gsub('%2F', '/'))
|
|
@@ -428,7 +428,7 @@ module PulpcoreClient
|
|
|
428
428
|
|
|
429
429
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
430
430
|
if @api_client.config.debugging
|
|
431
|
-
@api_client.config.logger.debug "API called: ContentguardsRbacApi#
|
|
431
|
+
@api_client.config.logger.debug "API called: ContentguardsRbacApi#contentguards_core_rbac_my_permissions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
432
432
|
end
|
|
433
433
|
return data, status_code, headers
|
|
434
434
|
end
|
|
@@ -439,8 +439,8 @@ module PulpcoreClient
|
|
|
439
439
|
# @param patched_rbac_content_guard [PatchedRBACContentGuard]
|
|
440
440
|
# @param [Hash] opts the optional parameters
|
|
441
441
|
# @return [RBACContentGuardResponse]
|
|
442
|
-
def
|
|
443
|
-
data, _status_code, _headers =
|
|
442
|
+
def contentguards_core_rbac_partial_update(r_b_a_c_content_guard_href, patched_rbac_content_guard, opts = {})
|
|
443
|
+
data, _status_code, _headers = contentguards_core_rbac_partial_update_with_http_info(r_b_a_c_content_guard_href, patched_rbac_content_guard, opts)
|
|
444
444
|
data
|
|
445
445
|
end
|
|
446
446
|
|
|
@@ -450,17 +450,17 @@ module PulpcoreClient
|
|
|
450
450
|
# @param patched_rbac_content_guard [PatchedRBACContentGuard]
|
|
451
451
|
# @param [Hash] opts the optional parameters
|
|
452
452
|
# @return [Array<(RBACContentGuardResponse, Integer, Hash)>] RBACContentGuardResponse data, response status code and response headers
|
|
453
|
-
def
|
|
453
|
+
def contentguards_core_rbac_partial_update_with_http_info(r_b_a_c_content_guard_href, patched_rbac_content_guard, opts = {})
|
|
454
454
|
if @api_client.config.debugging
|
|
455
|
-
@api_client.config.logger.debug 'Calling API: ContentguardsRbacApi.
|
|
455
|
+
@api_client.config.logger.debug 'Calling API: ContentguardsRbacApi.contentguards_core_rbac_partial_update ...'
|
|
456
456
|
end
|
|
457
457
|
# verify the required parameter 'r_b_a_c_content_guard_href' is set
|
|
458
458
|
if @api_client.config.client_side_validation && r_b_a_c_content_guard_href.nil?
|
|
459
|
-
fail ArgumentError, "Missing the required parameter 'r_b_a_c_content_guard_href' when calling ContentguardsRbacApi.
|
|
459
|
+
fail ArgumentError, "Missing the required parameter 'r_b_a_c_content_guard_href' when calling ContentguardsRbacApi.contentguards_core_rbac_partial_update"
|
|
460
460
|
end
|
|
461
461
|
# verify the required parameter 'patched_rbac_content_guard' is set
|
|
462
462
|
if @api_client.config.client_side_validation && patched_rbac_content_guard.nil?
|
|
463
|
-
fail ArgumentError, "Missing the required parameter 'patched_rbac_content_guard' when calling ContentguardsRbacApi.
|
|
463
|
+
fail ArgumentError, "Missing the required parameter 'patched_rbac_content_guard' when calling ContentguardsRbacApi.contentguards_core_rbac_partial_update"
|
|
464
464
|
end
|
|
465
465
|
# resource path
|
|
466
466
|
local_var_path = '{r_b_a_c_content_guard_href}'.sub('{' + 'r_b_a_c_content_guard_href' + '}', CGI.escape(r_b_a_c_content_guard_href.to_s).gsub('%2F', '/'))
|
|
@@ -498,7 +498,7 @@ module PulpcoreClient
|
|
|
498
498
|
|
|
499
499
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
500
500
|
if @api_client.config.debugging
|
|
501
|
-
@api_client.config.logger.debug "API called: ContentguardsRbacApi#
|
|
501
|
+
@api_client.config.logger.debug "API called: ContentguardsRbacApi#contentguards_core_rbac_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
502
502
|
end
|
|
503
503
|
return data, status_code, headers
|
|
504
504
|
end
|
|
@@ -510,8 +510,8 @@ module PulpcoreClient
|
|
|
510
510
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
511
511
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
512
512
|
# @return [RBACContentGuardResponse]
|
|
513
|
-
def
|
|
514
|
-
data, _status_code, _headers =
|
|
513
|
+
def contentguards_core_rbac_read(r_b_a_c_content_guard_href, opts = {})
|
|
514
|
+
data, _status_code, _headers = contentguards_core_rbac_read_with_http_info(r_b_a_c_content_guard_href, opts)
|
|
515
515
|
data
|
|
516
516
|
end
|
|
517
517
|
|
|
@@ -522,13 +522,13 @@ module PulpcoreClient
|
|
|
522
522
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
523
523
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
524
524
|
# @return [Array<(RBACContentGuardResponse, Integer, Hash)>] RBACContentGuardResponse data, response status code and response headers
|
|
525
|
-
def
|
|
525
|
+
def contentguards_core_rbac_read_with_http_info(r_b_a_c_content_guard_href, opts = {})
|
|
526
526
|
if @api_client.config.debugging
|
|
527
|
-
@api_client.config.logger.debug 'Calling API: ContentguardsRbacApi.
|
|
527
|
+
@api_client.config.logger.debug 'Calling API: ContentguardsRbacApi.contentguards_core_rbac_read ...'
|
|
528
528
|
end
|
|
529
529
|
# verify the required parameter 'r_b_a_c_content_guard_href' is set
|
|
530
530
|
if @api_client.config.client_side_validation && r_b_a_c_content_guard_href.nil?
|
|
531
|
-
fail ArgumentError, "Missing the required parameter 'r_b_a_c_content_guard_href' when calling ContentguardsRbacApi.
|
|
531
|
+
fail ArgumentError, "Missing the required parameter 'r_b_a_c_content_guard_href' when calling ContentguardsRbacApi.contentguards_core_rbac_read"
|
|
532
532
|
end
|
|
533
533
|
# resource path
|
|
534
534
|
local_var_path = '{r_b_a_c_content_guard_href}'.sub('{' + 'r_b_a_c_content_guard_href' + '}', CGI.escape(r_b_a_c_content_guard_href.to_s).gsub('%2F', '/'))
|
|
@@ -566,7 +566,7 @@ module PulpcoreClient
|
|
|
566
566
|
|
|
567
567
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
568
568
|
if @api_client.config.debugging
|
|
569
|
-
@api_client.config.logger.debug "API called: ContentguardsRbacApi#
|
|
569
|
+
@api_client.config.logger.debug "API called: ContentguardsRbacApi#contentguards_core_rbac_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
570
570
|
end
|
|
571
571
|
return data, status_code, headers
|
|
572
572
|
end
|
|
@@ -576,8 +576,8 @@ module PulpcoreClient
|
|
|
576
576
|
# @param nested_role [NestedRole]
|
|
577
577
|
# @param [Hash] opts the optional parameters
|
|
578
578
|
# @return [NestedRoleResponse]
|
|
579
|
-
def
|
|
580
|
-
data, _status_code, _headers =
|
|
579
|
+
def contentguards_core_rbac_remove_role(r_b_a_c_content_guard_href, nested_role, opts = {})
|
|
580
|
+
data, _status_code, _headers = contentguards_core_rbac_remove_role_with_http_info(r_b_a_c_content_guard_href, nested_role, opts)
|
|
581
581
|
data
|
|
582
582
|
end
|
|
583
583
|
|
|
@@ -586,17 +586,17 @@ module PulpcoreClient
|
|
|
586
586
|
# @param nested_role [NestedRole]
|
|
587
587
|
# @param [Hash] opts the optional parameters
|
|
588
588
|
# @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
|
|
589
|
-
def
|
|
589
|
+
def contentguards_core_rbac_remove_role_with_http_info(r_b_a_c_content_guard_href, nested_role, opts = {})
|
|
590
590
|
if @api_client.config.debugging
|
|
591
|
-
@api_client.config.logger.debug 'Calling API: ContentguardsRbacApi.
|
|
591
|
+
@api_client.config.logger.debug 'Calling API: ContentguardsRbacApi.contentguards_core_rbac_remove_role ...'
|
|
592
592
|
end
|
|
593
593
|
# verify the required parameter 'r_b_a_c_content_guard_href' is set
|
|
594
594
|
if @api_client.config.client_side_validation && r_b_a_c_content_guard_href.nil?
|
|
595
|
-
fail ArgumentError, "Missing the required parameter 'r_b_a_c_content_guard_href' when calling ContentguardsRbacApi.
|
|
595
|
+
fail ArgumentError, "Missing the required parameter 'r_b_a_c_content_guard_href' when calling ContentguardsRbacApi.contentguards_core_rbac_remove_role"
|
|
596
596
|
end
|
|
597
597
|
# verify the required parameter 'nested_role' is set
|
|
598
598
|
if @api_client.config.client_side_validation && nested_role.nil?
|
|
599
|
-
fail ArgumentError, "Missing the required parameter 'nested_role' when calling ContentguardsRbacApi.
|
|
599
|
+
fail ArgumentError, "Missing the required parameter 'nested_role' when calling ContentguardsRbacApi.contentguards_core_rbac_remove_role"
|
|
600
600
|
end
|
|
601
601
|
# resource path
|
|
602
602
|
local_var_path = '{r_b_a_c_content_guard_href}remove_role/'.sub('{' + 'r_b_a_c_content_guard_href' + '}', CGI.escape(r_b_a_c_content_guard_href.to_s).gsub('%2F', '/'))
|
|
@@ -634,7 +634,7 @@ module PulpcoreClient
|
|
|
634
634
|
|
|
635
635
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
636
636
|
if @api_client.config.debugging
|
|
637
|
-
@api_client.config.logger.debug "API called: ContentguardsRbacApi#
|
|
637
|
+
@api_client.config.logger.debug "API called: ContentguardsRbacApi#contentguards_core_rbac_remove_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
638
638
|
end
|
|
639
639
|
return data, status_code, headers
|
|
640
640
|
end
|
|
@@ -645,8 +645,8 @@ module PulpcoreClient
|
|
|
645
645
|
# @param rbac_content_guard [RBACContentGuard]
|
|
646
646
|
# @param [Hash] opts the optional parameters
|
|
647
647
|
# @return [RBACContentGuardResponse]
|
|
648
|
-
def
|
|
649
|
-
data, _status_code, _headers =
|
|
648
|
+
def contentguards_core_rbac_update(r_b_a_c_content_guard_href, rbac_content_guard, opts = {})
|
|
649
|
+
data, _status_code, _headers = contentguards_core_rbac_update_with_http_info(r_b_a_c_content_guard_href, rbac_content_guard, opts)
|
|
650
650
|
data
|
|
651
651
|
end
|
|
652
652
|
|
|
@@ -656,17 +656,17 @@ module PulpcoreClient
|
|
|
656
656
|
# @param rbac_content_guard [RBACContentGuard]
|
|
657
657
|
# @param [Hash] opts the optional parameters
|
|
658
658
|
# @return [Array<(RBACContentGuardResponse, Integer, Hash)>] RBACContentGuardResponse data, response status code and response headers
|
|
659
|
-
def
|
|
659
|
+
def contentguards_core_rbac_update_with_http_info(r_b_a_c_content_guard_href, rbac_content_guard, opts = {})
|
|
660
660
|
if @api_client.config.debugging
|
|
661
|
-
@api_client.config.logger.debug 'Calling API: ContentguardsRbacApi.
|
|
661
|
+
@api_client.config.logger.debug 'Calling API: ContentguardsRbacApi.contentguards_core_rbac_update ...'
|
|
662
662
|
end
|
|
663
663
|
# verify the required parameter 'r_b_a_c_content_guard_href' is set
|
|
664
664
|
if @api_client.config.client_side_validation && r_b_a_c_content_guard_href.nil?
|
|
665
|
-
fail ArgumentError, "Missing the required parameter 'r_b_a_c_content_guard_href' when calling ContentguardsRbacApi.
|
|
665
|
+
fail ArgumentError, "Missing the required parameter 'r_b_a_c_content_guard_href' when calling ContentguardsRbacApi.contentguards_core_rbac_update"
|
|
666
666
|
end
|
|
667
667
|
# verify the required parameter 'rbac_content_guard' is set
|
|
668
668
|
if @api_client.config.client_side_validation && rbac_content_guard.nil?
|
|
669
|
-
fail ArgumentError, "Missing the required parameter 'rbac_content_guard' when calling ContentguardsRbacApi.
|
|
669
|
+
fail ArgumentError, "Missing the required parameter 'rbac_content_guard' when calling ContentguardsRbacApi.contentguards_core_rbac_update"
|
|
670
670
|
end
|
|
671
671
|
# resource path
|
|
672
672
|
local_var_path = '{r_b_a_c_content_guard_href}'.sub('{' + 'r_b_a_c_content_guard_href' + '}', CGI.escape(r_b_a_c_content_guard_href.to_s).gsub('%2F', '/'))
|
|
@@ -704,7 +704,7 @@ module PulpcoreClient
|
|
|
704
704
|
|
|
705
705
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
706
706
|
if @api_client.config.debugging
|
|
707
|
-
@api_client.config.logger.debug "API called: ContentguardsRbacApi#
|
|
707
|
+
@api_client.config.logger.debug "API called: ContentguardsRbacApi#contentguards_core_rbac_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
708
708
|
end
|
|
709
709
|
return data, status_code, headers
|
|
710
710
|
end
|
|
@@ -39,8 +39,8 @@ module PulpcoreClient
|
|
|
39
39
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
40
40
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
41
41
|
# @return [PaginatedDistributionResponseList]
|
|
42
|
-
def
|
|
43
|
-
data, _status_code, _headers =
|
|
42
|
+
def distributions_list(opts = {})
|
|
43
|
+
data, _status_code, _headers = distributions_list_with_http_info(opts)
|
|
44
44
|
data
|
|
45
45
|
end
|
|
46
46
|
|
|
@@ -64,9 +64,9 @@ module PulpcoreClient
|
|
|
64
64
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
65
65
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
66
66
|
# @return [Array<(PaginatedDistributionResponseList, Integer, Hash)>] PaginatedDistributionResponseList data, response status code and response headers
|
|
67
|
-
def
|
|
67
|
+
def distributions_list_with_http_info(opts = {})
|
|
68
68
|
if @api_client.config.debugging
|
|
69
|
-
@api_client.config.logger.debug 'Calling API: DistributionsApi.
|
|
69
|
+
@api_client.config.logger.debug 'Calling API: DistributionsApi.distributions_list ...'
|
|
70
70
|
end
|
|
71
71
|
allowable_values = ["-base_path", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "base_path", "name", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type"]
|
|
72
72
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
|
@@ -122,7 +122,7 @@ module PulpcoreClient
|
|
|
122
122
|
|
|
123
123
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
124
124
|
if @api_client.config.debugging
|
|
125
|
-
@api_client.config.logger.debug "API called: DistributionsApi#
|
|
125
|
+
@api_client.config.logger.debug "API called: DistributionsApi#distributions_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
126
126
|
end
|
|
127
127
|
return data, status_code, headers
|
|
128
128
|
end
|
|
@@ -39,8 +39,8 @@ module PulpcoreClient
|
|
|
39
39
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
40
40
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
41
41
|
# @return [PaginatedArtifactDistributionResponseList]
|
|
42
|
-
def
|
|
43
|
-
data, _status_code, _headers =
|
|
42
|
+
def distributions_core_artifacts_list(opts = {})
|
|
43
|
+
data, _status_code, _headers = distributions_core_artifacts_list_with_http_info(opts)
|
|
44
44
|
data
|
|
45
45
|
end
|
|
46
46
|
|
|
@@ -64,9 +64,9 @@ module PulpcoreClient
|
|
|
64
64
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
65
65
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
66
66
|
# @return [Array<(PaginatedArtifactDistributionResponseList, Integer, Hash)>] PaginatedArtifactDistributionResponseList data, response status code and response headers
|
|
67
|
-
def
|
|
67
|
+
def distributions_core_artifacts_list_with_http_info(opts = {})
|
|
68
68
|
if @api_client.config.debugging
|
|
69
|
-
@api_client.config.logger.debug 'Calling API: DistributionsArtifactsApi.
|
|
69
|
+
@api_client.config.logger.debug 'Calling API: DistributionsArtifactsApi.distributions_core_artifacts_list ...'
|
|
70
70
|
end
|
|
71
71
|
allowable_values = ["-base_path", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "base_path", "name", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type"]
|
|
72
72
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
|
@@ -122,7 +122,7 @@ module PulpcoreClient
|
|
|
122
122
|
|
|
123
123
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
124
124
|
if @api_client.config.debugging
|
|
125
|
-
@api_client.config.logger.debug "API called: DistributionsArtifactsApi#
|
|
125
|
+
@api_client.config.logger.debug "API called: DistributionsArtifactsApi#distributions_core_artifacts_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
126
126
|
end
|
|
127
127
|
return data, status_code, headers
|
|
128
128
|
end
|
|
@@ -134,8 +134,8 @@ module PulpcoreClient
|
|
|
134
134
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
135
135
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
136
136
|
# @return [ArtifactDistributionResponse]
|
|
137
|
-
def
|
|
138
|
-
data, _status_code, _headers =
|
|
137
|
+
def distributions_core_artifacts_read(artifact_distribution_href, opts = {})
|
|
138
|
+
data, _status_code, _headers = distributions_core_artifacts_read_with_http_info(artifact_distribution_href, opts)
|
|
139
139
|
data
|
|
140
140
|
end
|
|
141
141
|
|
|
@@ -146,13 +146,13 @@ module PulpcoreClient
|
|
|
146
146
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
147
147
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
148
148
|
# @return [Array<(ArtifactDistributionResponse, Integer, Hash)>] ArtifactDistributionResponse data, response status code and response headers
|
|
149
|
-
def
|
|
149
|
+
def distributions_core_artifacts_read_with_http_info(artifact_distribution_href, opts = {})
|
|
150
150
|
if @api_client.config.debugging
|
|
151
|
-
@api_client.config.logger.debug 'Calling API: DistributionsArtifactsApi.
|
|
151
|
+
@api_client.config.logger.debug 'Calling API: DistributionsArtifactsApi.distributions_core_artifacts_read ...'
|
|
152
152
|
end
|
|
153
153
|
# verify the required parameter 'artifact_distribution_href' is set
|
|
154
154
|
if @api_client.config.client_side_validation && artifact_distribution_href.nil?
|
|
155
|
-
fail ArgumentError, "Missing the required parameter 'artifact_distribution_href' when calling DistributionsArtifactsApi.
|
|
155
|
+
fail ArgumentError, "Missing the required parameter 'artifact_distribution_href' when calling DistributionsArtifactsApi.distributions_core_artifacts_read"
|
|
156
156
|
end
|
|
157
157
|
# resource path
|
|
158
158
|
local_var_path = '{artifact_distribution_href}'.sub('{' + 'artifact_distribution_href' + '}', CGI.escape(artifact_distribution_href.to_s).gsub('%2F', '/'))
|
|
@@ -190,7 +190,7 @@ module PulpcoreClient
|
|
|
190
190
|
|
|
191
191
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
192
192
|
if @api_client.config.debugging
|
|
193
|
-
@api_client.config.logger.debug "API called: DistributionsArtifactsApi#
|
|
193
|
+
@api_client.config.logger.debug "API called: DistributionsArtifactsApi#distributions_core_artifacts_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
194
194
|
end
|
|
195
195
|
return data, status_code, headers
|
|
196
196
|
end
|
|
@@ -0,0 +1,89 @@
|
|
|
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 'cgi'
|
|
14
|
+
|
|
15
|
+
module PulpcoreClient
|
|
16
|
+
class DocsApiJsonApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# OpenApi3 schema for this API. Format can be selected via content negotiation. - YAML: application/vnd.oai.openapi - JSON: application/vnd.oai.openapi+json
|
|
23
|
+
# @param [Hash] opts the optional parameters
|
|
24
|
+
# @option opts [String] :lang
|
|
25
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
26
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
27
|
+
# @return [Object]
|
|
28
|
+
def docs_api_json_get(opts = {})
|
|
29
|
+
data, _status_code, _headers = docs_api_json_get_with_http_info(opts)
|
|
30
|
+
data
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# OpenApi3 schema for this API. Format can be selected via content negotiation. - YAML: application/vnd.oai.openapi - JSON: application/vnd.oai.openapi+json
|
|
34
|
+
# @param [Hash] opts the optional parameters
|
|
35
|
+
# @option opts [String] :lang
|
|
36
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
37
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
38
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
39
|
+
def docs_api_json_get_with_http_info(opts = {})
|
|
40
|
+
if @api_client.config.debugging
|
|
41
|
+
@api_client.config.logger.debug 'Calling API: DocsApiJsonApi.docs_api_json_get ...'
|
|
42
|
+
end
|
|
43
|
+
allowable_values = ["af", "ar", "ar-dz", "ast", "az", "be", "bg", "bn", "br", "bs", "ca", "cs", "cy", "da", "de", "dsb", "el", "en", "en-au", "en-gb", "eo", "es", "es-ar", "es-co", "es-mx", "es-ni", "es-ve", "et", "eu", "fa", "fi", "fr", "fy", "ga", "gd", "gl", "he", "hi", "hr", "hsb", "hu", "hy", "ia", "id", "ig", "io", "is", "it", "ja", "ka", "kab", "kk", "km", "kn", "ko", "ky", "lb", "lt", "lv", "mk", "ml", "mn", "mr", "my", "nb", "ne", "nl", "nn", "os", "pa", "pl", "pt", "pt-br", "ro", "ru", "sk", "sl", "sq", "sr", "sr-latn", "sv", "sw", "ta", "te", "tg", "th", "tk", "tr", "tt", "udm", "uk", "ur", "uz", "vi", "zh-hans", "zh-hant"]
|
|
44
|
+
if @api_client.config.client_side_validation && opts[:'lang'] && !allowable_values.include?(opts[:'lang'])
|
|
45
|
+
fail ArgumentError, "invalid value for \"lang\", must be one of #{allowable_values}"
|
|
46
|
+
end
|
|
47
|
+
# resource path
|
|
48
|
+
local_var_path = '/pulp/api/v3/docs/api.json'
|
|
49
|
+
|
|
50
|
+
# query parameters
|
|
51
|
+
query_params = opts[:query_params] || {}
|
|
52
|
+
query_params[:'lang'] = opts[:'lang'] if !opts[:'lang'].nil?
|
|
53
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
|
54
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
|
55
|
+
|
|
56
|
+
# header parameters
|
|
57
|
+
header_params = opts[:header_params] || {}
|
|
58
|
+
# HTTP header 'Accept' (if needed)
|
|
59
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.oai.openapi+json', 'application/json'])
|
|
60
|
+
|
|
61
|
+
# form parameters
|
|
62
|
+
form_params = opts[:form_params] || {}
|
|
63
|
+
|
|
64
|
+
# http body (model)
|
|
65
|
+
post_body = opts[:body]
|
|
66
|
+
|
|
67
|
+
# return_type
|
|
68
|
+
return_type = opts[:return_type] || 'Object'
|
|
69
|
+
|
|
70
|
+
# auth_names
|
|
71
|
+
auth_names = opts[:auth_names] || []
|
|
72
|
+
|
|
73
|
+
new_options = opts.merge(
|
|
74
|
+
:header_params => header_params,
|
|
75
|
+
:query_params => query_params,
|
|
76
|
+
:form_params => form_params,
|
|
77
|
+
:body => post_body,
|
|
78
|
+
:auth_names => auth_names,
|
|
79
|
+
:return_type => return_type
|
|
80
|
+
)
|
|
81
|
+
|
|
82
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
83
|
+
if @api_client.config.debugging
|
|
84
|
+
@api_client.config.logger.debug "API called: DocsApiJsonApi#docs_api_json_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
85
|
+
end
|
|
86
|
+
return data, status_code, headers
|
|
87
|
+
end
|
|
88
|
+
end
|
|
89
|
+
end
|