pulpcore_client 3.5.0 → 3.6.0
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 +88 -44
- data/docs/AccessPoliciesApi.md +244 -0
- data/docs/AccessPolicy.md +21 -0
- data/docs/AccessPolicyResponse.md +25 -0
- data/docs/Artifact.md +2 -6
- data/docs/ArtifactResponse.md +35 -0
- data/docs/ArtifactsApi.md +40 -34
- data/docs/{ContentAppStatus.md → ContentAppStatusResponse.md} +2 -2
- data/docs/{DatabaseConnection.md → DatabaseConnectionResponse.md} +2 -2
- data/docs/ExportersCoreExportsApi.md +33 -33
- data/docs/ExportersPulpApi.md +51 -51
- data/docs/Group.md +17 -0
- data/docs/{GroupProgressReport.md → GroupProgressReportResponse.md} +2 -2
- data/docs/GroupResponse.md +21 -0
- data/docs/GroupUser.md +17 -0
- data/docs/GroupUserResponse.md +19 -0
- data/docs/GroupsApi.md +351 -0
- data/docs/GroupsModelPermissionsApi.md +128 -0
- data/docs/GroupsObjectPermissionsApi.md +247 -0
- data/docs/GroupsUsersApi.md +183 -0
- data/docs/{Import.md → ImportResponse.md} +2 -2
- data/docs/ImportersCoreImportsApi.md +33 -33
- data/docs/ImportersPulpApi.md +51 -51
- data/docs/InlineResponse200.md +3 -3
- data/docs/InlineResponse2001.md +3 -3
- data/docs/InlineResponse20010.md +23 -0
- data/docs/InlineResponse20011.md +23 -0
- data/docs/InlineResponse20012.md +23 -0
- data/docs/InlineResponse20013.md +23 -0
- data/docs/InlineResponse20014.md +23 -0
- data/docs/InlineResponse2002.md +3 -3
- data/docs/InlineResponse2003.md +3 -3
- data/docs/InlineResponse2004.md +3 -3
- data/docs/InlineResponse2005.md +3 -3
- data/docs/InlineResponse2006.md +3 -3
- data/docs/InlineResponse2007.md +3 -3
- data/docs/InlineResponse2008.md +3 -3
- data/docs/InlineResponse2009.md +3 -3
- data/docs/OrphansApi.md +2 -2
- data/docs/PatchedAccessPolicy.md +21 -0
- data/docs/PatchedGroup.md +17 -0
- data/docs/PatchedPulpExporter.md +23 -0
- data/docs/PatchedPulpImporter.md +19 -0
- data/docs/{TaskCancel.md → PatchedTaskCancel.md} +3 -3
- data/docs/PermissionResponse.md +23 -0
- data/docs/{ProgressReport.md → ProgressReportResponse.md} +2 -2
- data/docs/PulpExport.md +11 -11
- data/docs/PulpExportResponse.md +27 -0
- data/docs/PulpExporter.md +1 -5
- data/docs/PulpExporterResponse.md +27 -0
- data/docs/PulpImport.md +4 -2
- data/docs/PulpImporter.md +2 -6
- data/docs/PulpImporterResponse.md +23 -0
- data/docs/{RedisConnection.md → RedisConnectionResponse.md} +2 -2
- data/docs/{SigningService.md → SigningServiceResponse.md} +2 -2
- data/docs/SigningServicesApi.md +14 -14
- data/docs/StatusApi.md +8 -22
- data/docs/StatusResponse.md +27 -0
- data/docs/{Storage.md → StorageResponse.md} +2 -2
- data/docs/{TaskGroup.md → TaskGroupResponse.md} +3 -3
- data/docs/TaskGroupsApi.md +16 -12
- data/docs/{Task.md → TaskResponse.md} +5 -7
- data/docs/TasksApi.md +144 -88
- data/docs/Upload.md +1 -7
- data/docs/UploadChunk.md +2 -6
- data/docs/UploadChunkResponse.md +19 -0
- data/docs/{UploadDetail.md → UploadDetailResponse.md} +3 -3
- data/docs/UploadResponse.md +23 -0
- data/docs/UploadsApi.md +42 -40
- data/docs/UserGroupResponse.md +19 -0
- data/docs/UserResponse.md +35 -0
- data/docs/UsersApi.md +191 -0
- data/docs/{Version.md → VersionResponse.md} +2 -2
- data/docs/{Worker.md → WorkerResponse.md} +2 -2
- data/docs/WorkersApi.md +36 -32
- data/lib/pulpcore_client/api/access_policies_api.rb +301 -0
- data/lib/pulpcore_client/api/artifacts_api.rb +47 -65
- data/lib/pulpcore_client/api/exporters_core_exports_api.rb +51 -51
- data/lib/pulpcore_client/api/exporters_pulp_api.rb +71 -71
- data/lib/pulpcore_client/api/groups_api.rb +425 -0
- data/lib/pulpcore_client/api/groups_model_permissions_api.rb +161 -0
- data/lib/pulpcore_client/api/groups_object_permissions_api.rb +295 -0
- data/lib/pulpcore_client/api/groups_users_api.rb +229 -0
- data/lib/pulpcore_client/api/importers_core_imports_api.rb +51 -51
- data/lib/pulpcore_client/api/importers_pulp_api.rb +71 -71
- data/lib/pulpcore_client/api/orphans_api.rb +3 -3
- data/lib/pulpcore_client/api/signing_services_api.rb +18 -18
- data/lib/pulpcore_client/api/status_api.rb +11 -17
- data/lib/pulpcore_client/api/task_groups_api.rb +19 -15
- data/lib/pulpcore_client/api/tasks_api.rb +203 -125
- data/lib/pulpcore_client/api/uploads_api.rb +60 -66
- data/lib/pulpcore_client/api/users_api.rb +227 -0
- data/lib/pulpcore_client/api/workers_api.rb +46 -42
- data/lib/pulpcore_client/api_client.rb +2 -2
- data/lib/pulpcore_client/api_error.rb +2 -2
- data/lib/pulpcore_client/configuration.rb +3 -3
- data/lib/pulpcore_client/models/access_policy.rb +247 -0
- data/lib/pulpcore_client/models/access_policy_response.rb +266 -0
- data/lib/pulpcore_client/models/artifact.rb +8 -111
- data/lib/pulpcore_client/models/artifact_response.rb +308 -0
- data/lib/pulpcore_client/models/async_operation_response.rb +3 -2
- data/lib/pulpcore_client/models/{content_app_status.rb → content_app_status_response.rb} +6 -21
- data/lib/pulpcore_client/models/{database_connection.rb → database_connection_response.rb} +6 -6
- data/lib/pulpcore_client/models/group.rb +232 -0
- data/lib/pulpcore_client/models/{group_progress_report.rb → group_progress_report_response.rb} +6 -50
- data/lib/pulpcore_client/models/group_response.rb +250 -0
- data/lib/pulpcore_client/models/group_user.rb +232 -0
- data/lib/pulpcore_client/models/group_user_response.rb +241 -0
- data/lib/pulpcore_client/models/{import.rb → import_response.rb} +6 -5
- data/lib/pulpcore_client/models/inline_response200.rb +3 -13
- data/lib/pulpcore_client/models/inline_response2001.rb +3 -13
- data/lib/pulpcore_client/models/inline_response20010.rb +237 -0
- data/lib/pulpcore_client/models/inline_response20011.rb +237 -0
- data/lib/pulpcore_client/models/inline_response20012.rb +237 -0
- data/lib/pulpcore_client/models/inline_response20013.rb +237 -0
- data/lib/pulpcore_client/models/inline_response20014.rb +237 -0
- data/lib/pulpcore_client/models/inline_response2002.rb +3 -13
- data/lib/pulpcore_client/models/inline_response2003.rb +3 -13
- data/lib/pulpcore_client/models/inline_response2004.rb +3 -13
- data/lib/pulpcore_client/models/inline_response2005.rb +3 -13
- data/lib/pulpcore_client/models/inline_response2006.rb +3 -13
- data/lib/pulpcore_client/models/inline_response2007.rb +3 -13
- data/lib/pulpcore_client/models/inline_response2008.rb +3 -13
- data/lib/pulpcore_client/models/inline_response2009.rb +3 -13
- data/lib/pulpcore_client/models/patched_access_policy.rb +232 -0
- data/lib/pulpcore_client/models/patched_group.rb +223 -0
- data/lib/pulpcore_client/models/patched_pulp_exporter.rb +240 -0
- data/lib/pulpcore_client/models/patched_pulp_importer.rb +218 -0
- data/lib/pulpcore_client/models/{task_cancel.rb → patched_task_cancel.rb} +6 -29
- data/lib/pulpcore_client/models/permission_response.rb +235 -0
- data/lib/pulpcore_client/models/{progress_report.rb → progress_report_response.rb} +6 -65
- data/lib/pulpcore_client/models/pulp_export.rb +50 -42
- data/lib/pulpcore_client/models/pulp_export_response.rb +260 -0
- data/lib/pulpcore_client/models/pulp_exporter.rb +4 -60
- data/lib/pulpcore_client/models/pulp_exporter_response.rb +274 -0
- data/lib/pulpcore_client/models/pulp_import.rb +17 -30
- data/lib/pulpcore_client/models/pulp_importer.rb +6 -45
- data/lib/pulpcore_client/models/pulp_importer_response.rb +242 -0
- data/lib/pulpcore_client/models/{redis_connection.rb → redis_connection_response.rb} +6 -6
- data/lib/pulpcore_client/models/{signing_service.rb → signing_service_response.rb} +6 -43
- data/lib/pulpcore_client/models/{status.rb → status_response.rb} +15 -11
- data/lib/pulpcore_client/models/{storage.rb → storage_response.rb} +6 -6
- data/lib/pulpcore_client/models/{task_group.rb → task_group_response.rb} +7 -25
- data/lib/pulpcore_client/models/{task.rb → task_response.rb} +13 -59
- data/lib/pulpcore_client/models/upload.rb +7 -35
- data/lib/pulpcore_client/models/upload_chunk.rb +11 -39
- data/lib/pulpcore_client/models/upload_chunk_response.rb +215 -0
- data/lib/pulpcore_client/models/upload_commit.rb +2 -21
- data/lib/pulpcore_client/models/{upload_detail.rb → upload_detail_response.rb} +7 -6
- data/lib/pulpcore_client/models/upload_response.rb +242 -0
- data/lib/pulpcore_client/models/user_group_response.rb +241 -0
- data/lib/pulpcore_client/models/user_response.rb +378 -0
- data/lib/pulpcore_client/models/{version.rb → version_response.rb} +6 -44
- data/lib/pulpcore_client/models/{worker.rb → worker_response.rb} +6 -21
- data/lib/pulpcore_client/version.rb +3 -3
- data/lib/pulpcore_client.rb +47 -17
- data/pulpcore_client.gemspec +4 -4
- data/spec/api/access_policies_api_spec.rb +91 -0
- data/spec/api/artifacts_api_spec.rb +18 -15
- data/spec/api/exporters_core_exports_api_spec.rb +10 -10
- data/spec/api/exporters_pulp_api_spec.rb +18 -18
- data/spec/api/groups_api_spec.rb +115 -0
- data/spec/api/groups_model_permissions_api_spec.rb +64 -0
- data/spec/api/groups_object_permissions_api_spec.rb +92 -0
- data/spec/api/groups_users_api_spec.rb +77 -0
- data/spec/api/importers_core_imports_api_spec.rb +10 -10
- data/spec/api/importers_pulp_api_spec.rb +18 -18
- data/spec/api/orphans_api_spec.rb +2 -2
- data/spec/api/signing_services_api_spec.rb +7 -7
- data/spec/api/status_api_spec.rb +5 -7
- data/spec/api/task_groups_api_spec.rb +8 -6
- data/spec/api/tasks_api_spec.rb +69 -42
- data/spec/api/uploads_api_spec.rb +14 -13
- data/spec/api/users_api_spec.rb +78 -0
- data/spec/api/workers_api_spec.rb +18 -16
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +2 -2
- data/spec/models/access_policy_response_spec.rb +65 -0
- data/spec/models/access_policy_spec.rb +53 -0
- data/spec/models/artifact_response_spec.rb +95 -0
- data/spec/models/artifact_spec.rb +2 -14
- data/spec/models/async_operation_response_spec.rb +2 -2
- data/spec/models/{content_app_status_spec.rb → content_app_status_response_spec.rb} +8 -8
- data/spec/models/{database_connection_spec.rb → database_connection_response_spec.rb} +8 -8
- data/spec/models/{group_progress_report_spec.rb → group_progress_report_response_spec.rb} +8 -8
- data/spec/models/group_response_spec.rb +53 -0
- data/spec/models/group_spec.rb +41 -0
- data/spec/models/group_user_response_spec.rb +47 -0
- data/spec/models/group_user_spec.rb +41 -0
- data/spec/models/{import_spec.rb → import_response_spec.rb} +8 -8
- data/spec/models/inline_response20010_spec.rb +59 -0
- data/spec/models/inline_response20011_spec.rb +59 -0
- data/spec/models/inline_response20012_spec.rb +59 -0
- data/spec/models/inline_response20013_spec.rb +59 -0
- data/spec/models/inline_response20014_spec.rb +59 -0
- data/spec/models/inline_response2001_spec.rb +2 -2
- data/spec/models/inline_response2002_spec.rb +2 -2
- data/spec/models/inline_response2003_spec.rb +2 -2
- data/spec/models/inline_response2004_spec.rb +2 -2
- data/spec/models/inline_response2005_spec.rb +2 -2
- data/spec/models/inline_response2006_spec.rb +2 -2
- data/spec/models/inline_response2007_spec.rb +2 -2
- data/spec/models/inline_response2008_spec.rb +2 -2
- data/spec/models/inline_response2009_spec.rb +2 -2
- data/spec/models/inline_response200_spec.rb +2 -2
- data/spec/models/patched_access_policy_spec.rb +53 -0
- data/spec/models/patched_group_spec.rb +41 -0
- data/spec/models/patched_pulp_exporter_spec.rb +59 -0
- data/spec/models/patched_pulp_importer_spec.rb +47 -0
- data/spec/models/{task_cancel_spec.rb → patched_task_cancel_spec.rb} +8 -8
- data/spec/models/permission_response_spec.rb +59 -0
- data/spec/models/{progress_report_spec.rb → progress_report_response_spec.rb} +8 -8
- data/spec/models/pulp_export_response_spec.rb +71 -0
- data/spec/models/pulp_export_spec.rb +8 -8
- data/spec/models/pulp_exporter_response_spec.rb +71 -0
- data/spec/models/pulp_exporter_spec.rb +2 -14
- data/spec/models/pulp_import_spec.rb +8 -2
- data/spec/models/pulp_importer_response_spec.rb +59 -0
- data/spec/models/pulp_importer_spec.rb +2 -14
- data/spec/models/{redis_connection_spec.rb → redis_connection_response_spec.rb} +8 -8
- data/spec/models/{signing_service_spec.rb → signing_service_response_spec.rb} +8 -8
- data/spec/models/{status_spec.rb → status_response_spec.rb} +8 -8
- data/spec/models/{storage_spec.rb → storage_response_spec.rb} +8 -8
- data/spec/models/{task_group_spec.rb → task_group_response_spec.rb} +8 -8
- data/spec/models/{task_spec.rb → task_response_spec.rb} +8 -14
- data/spec/models/upload_chunk_response_spec.rb +47 -0
- data/spec/models/upload_chunk_spec.rb +2 -14
- data/spec/models/upload_commit_spec.rb +2 -2
- data/spec/models/{upload_detail_spec.rb → upload_detail_response_spec.rb} +8 -8
- data/spec/models/upload_response_spec.rb +59 -0
- data/spec/models/upload_spec.rb +2 -20
- data/spec/models/user_group_response_spec.rb +47 -0
- data/spec/models/user_response_spec.rb +95 -0
- data/spec/models/{version_spec.rb → version_response_spec.rb} +8 -8
- data/spec/models/{worker_spec.rb → worker_response_spec.rb} +8 -8
- data/spec/spec_helper.rb +2 -2
- metadata +204 -84
- data/docs/Status.md +0 -27
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Pulp 3 API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: v3
|
|
7
|
-
|
|
7
|
+
Contact: pulp-list@redhat.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 4.2.3
|
|
10
10
|
|
|
@@ -21,35 +21,35 @@ module PulpcoreClient
|
|
|
21
21
|
end
|
|
22
22
|
# Create a pulp import
|
|
23
23
|
# Trigger an asynchronous task to import a Pulp export.
|
|
24
|
-
# @param
|
|
25
|
-
# @param
|
|
24
|
+
# @param core_pulp_pulp_import_href [String]
|
|
25
|
+
# @param pulp_import [PulpImport]
|
|
26
26
|
# @param [Hash] opts the optional parameters
|
|
27
27
|
# @return [AsyncOperationResponse]
|
|
28
|
-
def create(
|
|
29
|
-
data, _status_code, _headers = create_with_http_info(
|
|
28
|
+
def create(core_pulp_pulp_import_href, pulp_import, opts = {})
|
|
29
|
+
data, _status_code, _headers = create_with_http_info(core_pulp_pulp_import_href, pulp_import, opts)
|
|
30
30
|
data
|
|
31
31
|
end
|
|
32
32
|
|
|
33
33
|
# Create a pulp import
|
|
34
34
|
# Trigger an asynchronous task to import a Pulp export.
|
|
35
|
-
# @param
|
|
36
|
-
# @param
|
|
35
|
+
# @param core_pulp_pulp_import_href [String]
|
|
36
|
+
# @param pulp_import [PulpImport]
|
|
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(
|
|
39
|
+
def create_with_http_info(core_pulp_pulp_import_href, pulp_import, opts = {})
|
|
40
40
|
if @api_client.config.debugging
|
|
41
41
|
@api_client.config.logger.debug 'Calling API: ImportersCoreImportsApi.create ...'
|
|
42
42
|
end
|
|
43
|
-
# verify the required parameter '
|
|
44
|
-
if @api_client.config.client_side_validation &&
|
|
45
|
-
fail ArgumentError, "Missing the required parameter '
|
|
43
|
+
# verify the required parameter 'core_pulp_pulp_import_href' is set
|
|
44
|
+
if @api_client.config.client_side_validation && core_pulp_pulp_import_href.nil?
|
|
45
|
+
fail ArgumentError, "Missing the required parameter 'core_pulp_pulp_import_href' when calling ImportersCoreImportsApi.create"
|
|
46
46
|
end
|
|
47
|
-
# verify the required parameter '
|
|
48
|
-
if @api_client.config.client_side_validation &&
|
|
49
|
-
fail ArgumentError, "Missing the required parameter '
|
|
47
|
+
# verify the required parameter 'pulp_import' is set
|
|
48
|
+
if @api_client.config.client_side_validation && pulp_import.nil?
|
|
49
|
+
fail ArgumentError, "Missing the required parameter 'pulp_import' when calling ImportersCoreImportsApi.create"
|
|
50
50
|
end
|
|
51
51
|
# resource path
|
|
52
|
-
local_var_path = '{
|
|
52
|
+
local_var_path = '{core_pulp_pulp_import_href}imports/'.sub('{' + 'core_pulp_pulp_import_href' + '}', CGI.escape(core_pulp_pulp_import_href.to_s).gsub('%2F', '/'))
|
|
53
53
|
|
|
54
54
|
# query parameters
|
|
55
55
|
query_params = opts[:query_params] || {}
|
|
@@ -59,19 +59,19 @@ module PulpcoreClient
|
|
|
59
59
|
# HTTP header 'Accept' (if needed)
|
|
60
60
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
61
61
|
# HTTP header 'Content-Type'
|
|
62
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
62
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
|
63
63
|
|
|
64
64
|
# form parameters
|
|
65
65
|
form_params = opts[:form_params] || {}
|
|
66
66
|
|
|
67
67
|
# http body (model)
|
|
68
|
-
post_body = opts[:body] || @api_client.object_to_http_body(
|
|
68
|
+
post_body = opts[:body] || @api_client.object_to_http_body(pulp_import)
|
|
69
69
|
|
|
70
70
|
# return_type
|
|
71
71
|
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
|
72
72
|
|
|
73
73
|
# auth_names
|
|
74
|
-
auth_names = opts[:auth_names] || ['
|
|
74
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
75
75
|
|
|
76
76
|
new_options = opts.merge(
|
|
77
77
|
:header_params => header_params,
|
|
@@ -91,29 +91,29 @@ module PulpcoreClient
|
|
|
91
91
|
|
|
92
92
|
# Delete a pulp import
|
|
93
93
|
# ViewSet for PulpImports.
|
|
94
|
-
# @param
|
|
94
|
+
# @param core_pulp_pulp_import_href [String]
|
|
95
95
|
# @param [Hash] opts the optional parameters
|
|
96
96
|
# @return [nil]
|
|
97
|
-
def delete(
|
|
98
|
-
delete_with_http_info(
|
|
97
|
+
def delete(core_pulp_pulp_import_href, opts = {})
|
|
98
|
+
delete_with_http_info(core_pulp_pulp_import_href, opts)
|
|
99
99
|
nil
|
|
100
100
|
end
|
|
101
101
|
|
|
102
102
|
# Delete a pulp import
|
|
103
103
|
# ViewSet for PulpImports.
|
|
104
|
-
# @param
|
|
104
|
+
# @param core_pulp_pulp_import_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(
|
|
107
|
+
def delete_with_http_info(core_pulp_pulp_import_href, opts = {})
|
|
108
108
|
if @api_client.config.debugging
|
|
109
109
|
@api_client.config.logger.debug 'Calling API: ImportersCoreImportsApi.delete ...'
|
|
110
110
|
end
|
|
111
|
-
# verify the required parameter '
|
|
112
|
-
if @api_client.config.client_side_validation &&
|
|
113
|
-
fail ArgumentError, "Missing the required parameter '
|
|
111
|
+
# verify the required parameter 'core_pulp_pulp_import_href' is set
|
|
112
|
+
if @api_client.config.client_side_validation && core_pulp_pulp_import_href.nil?
|
|
113
|
+
fail ArgumentError, "Missing the required parameter 'core_pulp_pulp_import_href' when calling ImportersCoreImportsApi.delete"
|
|
114
114
|
end
|
|
115
115
|
# resource path
|
|
116
|
-
local_var_path = '{
|
|
116
|
+
local_var_path = '{core_pulp_pulp_import_href}'.sub('{' + 'core_pulp_pulp_import_href' + '}', CGI.escape(core_pulp_pulp_import_href.to_s).gsub('%2F', '/'))
|
|
117
117
|
|
|
118
118
|
# query parameters
|
|
119
119
|
query_params = opts[:query_params] || {}
|
|
@@ -131,7 +131,7 @@ module PulpcoreClient
|
|
|
131
131
|
return_type = opts[:return_type]
|
|
132
132
|
|
|
133
133
|
# auth_names
|
|
134
|
-
auth_names = opts[:auth_names] || ['
|
|
134
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
135
135
|
|
|
136
136
|
new_options = opts.merge(
|
|
137
137
|
:header_params => header_params,
|
|
@@ -151,14 +151,14 @@ module PulpcoreClient
|
|
|
151
151
|
|
|
152
152
|
# List pulp imports
|
|
153
153
|
# ViewSet for PulpImports.
|
|
154
|
-
# @param pulp_importer_href [String]
|
|
154
|
+
# @param pulp_importer_href [String]
|
|
155
155
|
# @param [Hash] opts the optional parameters
|
|
156
|
-
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
157
156
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
158
157
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
158
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
159
159
|
# @option opts [String] :fields A list of fields to include in the response.
|
|
160
160
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
161
|
-
# @return [
|
|
161
|
+
# @return [InlineResponse2008]
|
|
162
162
|
def list(pulp_importer_href, opts = {})
|
|
163
163
|
data, _status_code, _headers = list_with_http_info(pulp_importer_href, opts)
|
|
164
164
|
data
|
|
@@ -166,14 +166,14 @@ module PulpcoreClient
|
|
|
166
166
|
|
|
167
167
|
# List pulp imports
|
|
168
168
|
# ViewSet for PulpImports.
|
|
169
|
-
# @param pulp_importer_href [String]
|
|
169
|
+
# @param pulp_importer_href [String]
|
|
170
170
|
# @param [Hash] opts the optional parameters
|
|
171
|
-
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
172
171
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
173
172
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
173
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
174
174
|
# @option opts [String] :fields A list of fields to include in the response.
|
|
175
175
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
176
|
-
# @return [Array<(
|
|
176
|
+
# @return [Array<(InlineResponse2008, Integer, Hash)>] InlineResponse2008 data, response status code and response headers
|
|
177
177
|
def list_with_http_info(pulp_importer_href, opts = {})
|
|
178
178
|
if @api_client.config.debugging
|
|
179
179
|
@api_client.config.logger.debug 'Calling API: ImportersCoreImportsApi.list ...'
|
|
@@ -187,9 +187,9 @@ module PulpcoreClient
|
|
|
187
187
|
|
|
188
188
|
# query parameters
|
|
189
189
|
query_params = opts[:query_params] || {}
|
|
190
|
-
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
|
191
190
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
192
191
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
192
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
|
193
193
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
|
194
194
|
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
|
195
195
|
|
|
@@ -205,10 +205,10 @@ module PulpcoreClient
|
|
|
205
205
|
post_body = opts[:body]
|
|
206
206
|
|
|
207
207
|
# return_type
|
|
208
|
-
return_type = opts[:return_type] || '
|
|
208
|
+
return_type = opts[:return_type] || 'InlineResponse2008'
|
|
209
209
|
|
|
210
210
|
# auth_names
|
|
211
|
-
auth_names = opts[:auth_names] || ['
|
|
211
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
212
212
|
|
|
213
213
|
new_options = opts.merge(
|
|
214
214
|
:header_params => header_params,
|
|
@@ -228,33 +228,33 @@ module PulpcoreClient
|
|
|
228
228
|
|
|
229
229
|
# Inspect a pulp import
|
|
230
230
|
# ViewSet for PulpImports.
|
|
231
|
-
# @param
|
|
231
|
+
# @param core_pulp_pulp_import_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
|
-
# @return [
|
|
236
|
-
def read(
|
|
237
|
-
data, _status_code, _headers = read_with_http_info(
|
|
235
|
+
# @return [ImportResponse]
|
|
236
|
+
def read(core_pulp_pulp_import_href, opts = {})
|
|
237
|
+
data, _status_code, _headers = read_with_http_info(core_pulp_pulp_import_href, opts)
|
|
238
238
|
data
|
|
239
239
|
end
|
|
240
240
|
|
|
241
241
|
# Inspect a pulp import
|
|
242
242
|
# ViewSet for PulpImports.
|
|
243
|
-
# @param
|
|
243
|
+
# @param core_pulp_pulp_import_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
|
-
# @return [Array<(
|
|
248
|
-
def read_with_http_info(
|
|
247
|
+
# @return [Array<(ImportResponse, Integer, Hash)>] ImportResponse data, response status code and response headers
|
|
248
|
+
def read_with_http_info(core_pulp_pulp_import_href, opts = {})
|
|
249
249
|
if @api_client.config.debugging
|
|
250
250
|
@api_client.config.logger.debug 'Calling API: ImportersCoreImportsApi.read ...'
|
|
251
251
|
end
|
|
252
|
-
# verify the required parameter '
|
|
253
|
-
if @api_client.config.client_side_validation &&
|
|
254
|
-
fail ArgumentError, "Missing the required parameter '
|
|
252
|
+
# verify the required parameter 'core_pulp_pulp_import_href' is set
|
|
253
|
+
if @api_client.config.client_side_validation && core_pulp_pulp_import_href.nil?
|
|
254
|
+
fail ArgumentError, "Missing the required parameter 'core_pulp_pulp_import_href' when calling ImportersCoreImportsApi.read"
|
|
255
255
|
end
|
|
256
256
|
# resource path
|
|
257
|
-
local_var_path = '{
|
|
257
|
+
local_var_path = '{core_pulp_pulp_import_href}'.sub('{' + 'core_pulp_pulp_import_href' + '}', CGI.escape(core_pulp_pulp_import_href.to_s).gsub('%2F', '/'))
|
|
258
258
|
|
|
259
259
|
# query parameters
|
|
260
260
|
query_params = opts[:query_params] || {}
|
|
@@ -273,10 +273,10 @@ module PulpcoreClient
|
|
|
273
273
|
post_body = opts[:body]
|
|
274
274
|
|
|
275
275
|
# return_type
|
|
276
|
-
return_type = opts[:return_type] || '
|
|
276
|
+
return_type = opts[:return_type] || 'ImportResponse'
|
|
277
277
|
|
|
278
278
|
# auth_names
|
|
279
|
-
auth_names = opts[:auth_names] || ['
|
|
279
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
280
280
|
|
|
281
281
|
new_options = opts.merge(
|
|
282
282
|
:header_params => header_params,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Pulp 3 API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: v3
|
|
7
|
-
|
|
7
|
+
Contact: pulp-list@redhat.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 4.2.3
|
|
10
10
|
|
|
@@ -21,26 +21,26 @@ module PulpcoreClient
|
|
|
21
21
|
end
|
|
22
22
|
# Create a pulp importer
|
|
23
23
|
# ViewSet for PulpImporters.
|
|
24
|
-
# @param
|
|
24
|
+
# @param pulp_importer [PulpImporter]
|
|
25
25
|
# @param [Hash] opts the optional parameters
|
|
26
|
-
# @return [
|
|
27
|
-
def create(
|
|
28
|
-
data, _status_code, _headers = create_with_http_info(
|
|
26
|
+
# @return [PulpImporterResponse]
|
|
27
|
+
def create(pulp_importer, opts = {})
|
|
28
|
+
data, _status_code, _headers = create_with_http_info(pulp_importer, opts)
|
|
29
29
|
data
|
|
30
30
|
end
|
|
31
31
|
|
|
32
32
|
# Create a pulp importer
|
|
33
33
|
# ViewSet for PulpImporters.
|
|
34
|
-
# @param
|
|
34
|
+
# @param pulp_importer [PulpImporter]
|
|
35
35
|
# @param [Hash] opts the optional parameters
|
|
36
|
-
# @return [Array<(
|
|
37
|
-
def create_with_http_info(
|
|
36
|
+
# @return [Array<(PulpImporterResponse, Integer, Hash)>] PulpImporterResponse data, response status code and response headers
|
|
37
|
+
def create_with_http_info(pulp_importer, opts = {})
|
|
38
38
|
if @api_client.config.debugging
|
|
39
39
|
@api_client.config.logger.debug 'Calling API: ImportersPulpApi.create ...'
|
|
40
40
|
end
|
|
41
|
-
# verify the required parameter '
|
|
42
|
-
if @api_client.config.client_side_validation &&
|
|
43
|
-
fail ArgumentError, "Missing the required parameter '
|
|
41
|
+
# verify the required parameter 'pulp_importer' is set
|
|
42
|
+
if @api_client.config.client_side_validation && pulp_importer.nil?
|
|
43
|
+
fail ArgumentError, "Missing the required parameter 'pulp_importer' when calling ImportersPulpApi.create"
|
|
44
44
|
end
|
|
45
45
|
# resource path
|
|
46
46
|
local_var_path = '/pulp/api/v3/importers/core/pulp/'
|
|
@@ -53,19 +53,19 @@ module PulpcoreClient
|
|
|
53
53
|
# HTTP header 'Accept' (if needed)
|
|
54
54
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
55
55
|
# HTTP header 'Content-Type'
|
|
56
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
56
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
|
57
57
|
|
|
58
58
|
# form parameters
|
|
59
59
|
form_params = opts[:form_params] || {}
|
|
60
60
|
|
|
61
61
|
# http body (model)
|
|
62
|
-
post_body = opts[:body] || @api_client.object_to_http_body(
|
|
62
|
+
post_body = opts[:body] || @api_client.object_to_http_body(pulp_importer)
|
|
63
63
|
|
|
64
64
|
# return_type
|
|
65
|
-
return_type = opts[:return_type] || '
|
|
65
|
+
return_type = opts[:return_type] || 'PulpImporterResponse'
|
|
66
66
|
|
|
67
67
|
# auth_names
|
|
68
|
-
auth_names = opts[:auth_names] || ['
|
|
68
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
69
69
|
|
|
70
70
|
new_options = opts.merge(
|
|
71
71
|
:header_params => header_params,
|
|
@@ -85,7 +85,7 @@ module PulpcoreClient
|
|
|
85
85
|
|
|
86
86
|
# Delete a pulp importer
|
|
87
87
|
# ViewSet for PulpImporters.
|
|
88
|
-
# @param pulp_importer_href [String]
|
|
88
|
+
# @param pulp_importer_href [String]
|
|
89
89
|
# @param [Hash] opts the optional parameters
|
|
90
90
|
# @return [nil]
|
|
91
91
|
def delete(pulp_importer_href, opts = {})
|
|
@@ -95,7 +95,7 @@ module PulpcoreClient
|
|
|
95
95
|
|
|
96
96
|
# Delete a pulp importer
|
|
97
97
|
# ViewSet for PulpImporters.
|
|
98
|
-
# @param pulp_importer_href [String]
|
|
98
|
+
# @param pulp_importer_href [String]
|
|
99
99
|
# @param [Hash] opts the optional parameters
|
|
100
100
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
101
101
|
def delete_with_http_info(pulp_importer_href, opts = {})
|
|
@@ -125,7 +125,7 @@ module PulpcoreClient
|
|
|
125
125
|
return_type = opts[:return_type]
|
|
126
126
|
|
|
127
127
|
# auth_names
|
|
128
|
-
auth_names = opts[:auth_names] || ['
|
|
128
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
129
129
|
|
|
130
130
|
new_options = opts.merge(
|
|
131
131
|
:header_params => header_params,
|
|
@@ -146,14 +146,14 @@ module PulpcoreClient
|
|
|
146
146
|
# List pulp importers
|
|
147
147
|
# ViewSet for PulpImporters.
|
|
148
148
|
# @param [Hash] opts the optional parameters
|
|
149
|
-
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
150
|
-
# @option opts [String] :name
|
|
151
|
-
# @option opts [String] :name__in Filter results where name is in a comma-separated list of values
|
|
152
149
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
150
|
+
# @option opts [String] :name name
|
|
151
|
+
# @option opts [String] :name__in name__in
|
|
153
152
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
153
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
154
154
|
# @option opts [String] :fields A list of fields to include in the response.
|
|
155
155
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
156
|
-
# @return [
|
|
156
|
+
# @return [InlineResponse2007]
|
|
157
157
|
def list(opts = {})
|
|
158
158
|
data, _status_code, _headers = list_with_http_info(opts)
|
|
159
159
|
data
|
|
@@ -162,14 +162,14 @@ module PulpcoreClient
|
|
|
162
162
|
# List pulp importers
|
|
163
163
|
# ViewSet for PulpImporters.
|
|
164
164
|
# @param [Hash] opts the optional parameters
|
|
165
|
-
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
166
|
-
# @option opts [String] :name
|
|
167
|
-
# @option opts [String] :name__in Filter results where name is in a comma-separated list of values
|
|
168
165
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
166
|
+
# @option opts [String] :name name
|
|
167
|
+
# @option opts [String] :name__in name__in
|
|
169
168
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
169
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
170
170
|
# @option opts [String] :fields A list of fields to include in the response.
|
|
171
171
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
172
|
-
# @return [Array<(
|
|
172
|
+
# @return [Array<(InlineResponse2007, Integer, Hash)>] InlineResponse2007 data, response status code and response headers
|
|
173
173
|
def list_with_http_info(opts = {})
|
|
174
174
|
if @api_client.config.debugging
|
|
175
175
|
@api_client.config.logger.debug 'Calling API: ImportersPulpApi.list ...'
|
|
@@ -179,11 +179,11 @@ module PulpcoreClient
|
|
|
179
179
|
|
|
180
180
|
# query parameters
|
|
181
181
|
query_params = opts[:query_params] || {}
|
|
182
|
-
query_params[:'
|
|
182
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
183
183
|
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
|
184
184
|
query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
|
|
185
|
-
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
186
185
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
186
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
|
187
187
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
|
188
188
|
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
|
189
189
|
|
|
@@ -199,10 +199,10 @@ module PulpcoreClient
|
|
|
199
199
|
post_body = opts[:body]
|
|
200
200
|
|
|
201
201
|
# return_type
|
|
202
|
-
return_type = opts[:return_type] || '
|
|
202
|
+
return_type = opts[:return_type] || 'InlineResponse2007'
|
|
203
203
|
|
|
204
204
|
# auth_names
|
|
205
|
-
auth_names = opts[:auth_names] || ['
|
|
205
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
206
206
|
|
|
207
207
|
new_options = opts.merge(
|
|
208
208
|
:header_params => header_params,
|
|
@@ -220,24 +220,24 @@ module PulpcoreClient
|
|
|
220
220
|
return data, status_code, headers
|
|
221
221
|
end
|
|
222
222
|
|
|
223
|
-
#
|
|
223
|
+
# Update a pulp importer
|
|
224
224
|
# ViewSet for PulpImporters.
|
|
225
|
-
# @param pulp_importer_href [String]
|
|
226
|
-
# @param
|
|
225
|
+
# @param pulp_importer_href [String]
|
|
226
|
+
# @param patched_pulp_importer [PatchedPulpImporter]
|
|
227
227
|
# @param [Hash] opts the optional parameters
|
|
228
|
-
# @return [
|
|
229
|
-
def partial_update(pulp_importer_href,
|
|
230
|
-
data, _status_code, _headers = partial_update_with_http_info(pulp_importer_href,
|
|
228
|
+
# @return [PulpImporterResponse]
|
|
229
|
+
def partial_update(pulp_importer_href, patched_pulp_importer, opts = {})
|
|
230
|
+
data, _status_code, _headers = partial_update_with_http_info(pulp_importer_href, patched_pulp_importer, opts)
|
|
231
231
|
data
|
|
232
232
|
end
|
|
233
233
|
|
|
234
|
-
#
|
|
234
|
+
# Update a pulp importer
|
|
235
235
|
# ViewSet for PulpImporters.
|
|
236
|
-
# @param pulp_importer_href [String]
|
|
237
|
-
# @param
|
|
236
|
+
# @param pulp_importer_href [String]
|
|
237
|
+
# @param patched_pulp_importer [PatchedPulpImporter]
|
|
238
238
|
# @param [Hash] opts the optional parameters
|
|
239
|
-
# @return [Array<(
|
|
240
|
-
def partial_update_with_http_info(pulp_importer_href,
|
|
239
|
+
# @return [Array<(PulpImporterResponse, Integer, Hash)>] PulpImporterResponse data, response status code and response headers
|
|
240
|
+
def partial_update_with_http_info(pulp_importer_href, patched_pulp_importer, opts = {})
|
|
241
241
|
if @api_client.config.debugging
|
|
242
242
|
@api_client.config.logger.debug 'Calling API: ImportersPulpApi.partial_update ...'
|
|
243
243
|
end
|
|
@@ -245,9 +245,9 @@ module PulpcoreClient
|
|
|
245
245
|
if @api_client.config.client_side_validation && pulp_importer_href.nil?
|
|
246
246
|
fail ArgumentError, "Missing the required parameter 'pulp_importer_href' when calling ImportersPulpApi.partial_update"
|
|
247
247
|
end
|
|
248
|
-
# verify the required parameter '
|
|
249
|
-
if @api_client.config.client_side_validation &&
|
|
250
|
-
fail ArgumentError, "Missing the required parameter '
|
|
248
|
+
# verify the required parameter 'patched_pulp_importer' is set
|
|
249
|
+
if @api_client.config.client_side_validation && patched_pulp_importer.nil?
|
|
250
|
+
fail ArgumentError, "Missing the required parameter 'patched_pulp_importer' when calling ImportersPulpApi.partial_update"
|
|
251
251
|
end
|
|
252
252
|
# resource path
|
|
253
253
|
local_var_path = '{pulp_importer_href}'.sub('{' + 'pulp_importer_href' + '}', CGI.escape(pulp_importer_href.to_s).gsub('%2F', '/'))
|
|
@@ -260,19 +260,19 @@ module PulpcoreClient
|
|
|
260
260
|
# HTTP header 'Accept' (if needed)
|
|
261
261
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
262
262
|
# HTTP header 'Content-Type'
|
|
263
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
263
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
|
264
264
|
|
|
265
265
|
# form parameters
|
|
266
266
|
form_params = opts[:form_params] || {}
|
|
267
267
|
|
|
268
268
|
# http body (model)
|
|
269
|
-
post_body = opts[:body] || @api_client.object_to_http_body(
|
|
269
|
+
post_body = opts[:body] || @api_client.object_to_http_body(patched_pulp_importer)
|
|
270
270
|
|
|
271
271
|
# return_type
|
|
272
|
-
return_type = opts[:return_type] || '
|
|
272
|
+
return_type = opts[:return_type] || 'PulpImporterResponse'
|
|
273
273
|
|
|
274
274
|
# auth_names
|
|
275
|
-
auth_names = opts[:auth_names] || ['
|
|
275
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
276
276
|
|
|
277
277
|
new_options = opts.merge(
|
|
278
278
|
:header_params => header_params,
|
|
@@ -292,11 +292,11 @@ module PulpcoreClient
|
|
|
292
292
|
|
|
293
293
|
# Inspect a pulp importer
|
|
294
294
|
# ViewSet for PulpImporters.
|
|
295
|
-
# @param pulp_importer_href [String]
|
|
295
|
+
# @param pulp_importer_href [String]
|
|
296
296
|
# @param [Hash] opts the optional parameters
|
|
297
297
|
# @option opts [String] :fields A list of fields to include in the response.
|
|
298
298
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
299
|
-
# @return [
|
|
299
|
+
# @return [PulpImporterResponse]
|
|
300
300
|
def read(pulp_importer_href, opts = {})
|
|
301
301
|
data, _status_code, _headers = read_with_http_info(pulp_importer_href, opts)
|
|
302
302
|
data
|
|
@@ -304,11 +304,11 @@ module PulpcoreClient
|
|
|
304
304
|
|
|
305
305
|
# Inspect a pulp importer
|
|
306
306
|
# ViewSet for PulpImporters.
|
|
307
|
-
# @param pulp_importer_href [String]
|
|
307
|
+
# @param pulp_importer_href [String]
|
|
308
308
|
# @param [Hash] opts the optional parameters
|
|
309
309
|
# @option opts [String] :fields A list of fields to include in the response.
|
|
310
310
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
311
|
-
# @return [Array<(
|
|
311
|
+
# @return [Array<(PulpImporterResponse, Integer, Hash)>] PulpImporterResponse data, response status code and response headers
|
|
312
312
|
def read_with_http_info(pulp_importer_href, opts = {})
|
|
313
313
|
if @api_client.config.debugging
|
|
314
314
|
@api_client.config.logger.debug 'Calling API: ImportersPulpApi.read ...'
|
|
@@ -337,10 +337,10 @@ module PulpcoreClient
|
|
|
337
337
|
post_body = opts[:body]
|
|
338
338
|
|
|
339
339
|
# return_type
|
|
340
|
-
return_type = opts[:return_type] || '
|
|
340
|
+
return_type = opts[:return_type] || 'PulpImporterResponse'
|
|
341
341
|
|
|
342
342
|
# auth_names
|
|
343
|
-
auth_names = opts[:auth_names] || ['
|
|
343
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
344
344
|
|
|
345
345
|
new_options = opts.merge(
|
|
346
346
|
:header_params => header_params,
|
|
@@ -360,22 +360,22 @@ module PulpcoreClient
|
|
|
360
360
|
|
|
361
361
|
# Update a pulp importer
|
|
362
362
|
# ViewSet for PulpImporters.
|
|
363
|
-
# @param pulp_importer_href [String]
|
|
364
|
-
# @param
|
|
363
|
+
# @param pulp_importer_href [String]
|
|
364
|
+
# @param pulp_importer [PulpImporter]
|
|
365
365
|
# @param [Hash] opts the optional parameters
|
|
366
|
-
# @return [
|
|
367
|
-
def update(pulp_importer_href,
|
|
368
|
-
data, _status_code, _headers = update_with_http_info(pulp_importer_href,
|
|
366
|
+
# @return [PulpImporterResponse]
|
|
367
|
+
def update(pulp_importer_href, pulp_importer, opts = {})
|
|
368
|
+
data, _status_code, _headers = update_with_http_info(pulp_importer_href, pulp_importer, opts)
|
|
369
369
|
data
|
|
370
370
|
end
|
|
371
371
|
|
|
372
372
|
# Update a pulp importer
|
|
373
373
|
# ViewSet for PulpImporters.
|
|
374
|
-
# @param pulp_importer_href [String]
|
|
375
|
-
# @param
|
|
374
|
+
# @param pulp_importer_href [String]
|
|
375
|
+
# @param pulp_importer [PulpImporter]
|
|
376
376
|
# @param [Hash] opts the optional parameters
|
|
377
|
-
# @return [Array<(
|
|
378
|
-
def update_with_http_info(pulp_importer_href,
|
|
377
|
+
# @return [Array<(PulpImporterResponse, Integer, Hash)>] PulpImporterResponse data, response status code and response headers
|
|
378
|
+
def update_with_http_info(pulp_importer_href, pulp_importer, opts = {})
|
|
379
379
|
if @api_client.config.debugging
|
|
380
380
|
@api_client.config.logger.debug 'Calling API: ImportersPulpApi.update ...'
|
|
381
381
|
end
|
|
@@ -383,9 +383,9 @@ module PulpcoreClient
|
|
|
383
383
|
if @api_client.config.client_side_validation && pulp_importer_href.nil?
|
|
384
384
|
fail ArgumentError, "Missing the required parameter 'pulp_importer_href' when calling ImportersPulpApi.update"
|
|
385
385
|
end
|
|
386
|
-
# verify the required parameter '
|
|
387
|
-
if @api_client.config.client_side_validation &&
|
|
388
|
-
fail ArgumentError, "Missing the required parameter '
|
|
386
|
+
# verify the required parameter 'pulp_importer' is set
|
|
387
|
+
if @api_client.config.client_side_validation && pulp_importer.nil?
|
|
388
|
+
fail ArgumentError, "Missing the required parameter 'pulp_importer' when calling ImportersPulpApi.update"
|
|
389
389
|
end
|
|
390
390
|
# resource path
|
|
391
391
|
local_var_path = '{pulp_importer_href}'.sub('{' + 'pulp_importer_href' + '}', CGI.escape(pulp_importer_href.to_s).gsub('%2F', '/'))
|
|
@@ -398,19 +398,19 @@ module PulpcoreClient
|
|
|
398
398
|
# HTTP header 'Accept' (if needed)
|
|
399
399
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
400
400
|
# HTTP header 'Content-Type'
|
|
401
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
401
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
|
402
402
|
|
|
403
403
|
# form parameters
|
|
404
404
|
form_params = opts[:form_params] || {}
|
|
405
405
|
|
|
406
406
|
# http body (model)
|
|
407
|
-
post_body = opts[:body] || @api_client.object_to_http_body(
|
|
407
|
+
post_body = opts[:body] || @api_client.object_to_http_body(pulp_importer)
|
|
408
408
|
|
|
409
409
|
# return_type
|
|
410
|
-
return_type = opts[:return_type] || '
|
|
410
|
+
return_type = opts[:return_type] || 'PulpImporterResponse'
|
|
411
411
|
|
|
412
412
|
# auth_names
|
|
413
|
-
auth_names = opts[:auth_names] || ['
|
|
413
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
414
414
|
|
|
415
415
|
new_options = opts.merge(
|
|
416
416
|
:header_params => header_params,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Pulp 3 API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: v3
|
|
7
|
-
|
|
7
|
+
Contact: pulp-list@redhat.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 4.2.3
|
|
10
10
|
|
|
@@ -57,7 +57,7 @@ module PulpcoreClient
|
|
|
57
57
|
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
|
58
58
|
|
|
59
59
|
# auth_names
|
|
60
|
-
auth_names = opts[:auth_names] || ['
|
|
60
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
61
61
|
|
|
62
62
|
new_options = opts.merge(
|
|
63
63
|
:header_params => header_params,
|