pulpcore_client 3.19.1 → 3.20.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 +93 -16
- data/docs/AccessPoliciesApi.md +2 -2
- data/docs/AccessPolicy.md +3 -1
- data/docs/AccessPolicyResponse.md +3 -1
- data/docs/AcsApi.md +417 -0
- data/docs/AlternateContentSource.md +23 -0
- data/docs/AlternateContentSourceResponse.md +27 -0
- data/docs/ArtifactsApi.md +2 -2
- data/docs/ContentApi.md +117 -3
- data/docs/ContentGuard.md +19 -0
- data/docs/ContentguardsApi.md +282 -3
- data/docs/ContentguardsContentRedirectApi.md +230 -2
- data/docs/ContentguardsRbacApi.md +2 -2
- data/docs/Distribution.md +25 -0
- data/docs/DistributionsApi.md +283 -3
- data/docs/Export.md +17 -0
- data/docs/ExportResponse.md +25 -0
- data/docs/Exporter.md +17 -0
- data/docs/ExporterResponse.md +21 -0
- data/docs/ExportersApi.md +362 -0
- data/docs/{GroupsModelPermissionsApi.md → ExportersExportsApi.md} +46 -48
- data/docs/ExportersFilesystemApi.md +2 -2
- data/docs/ExportersFilesystemExportsApi.md +0 -2
- data/docs/ExportersPulpApi.md +2 -2
- data/docs/ExportersPulpExportsApi.md +0 -2
- data/docs/GroupRole.md +1 -1
- data/docs/GroupRoleResponse.md +6 -2
- data/docs/GroupsApi.md +2 -2
- data/docs/GroupsRolesApi.md +2 -2
- data/docs/GroupsUsersApi.md +0 -2
- data/docs/Import.md +19 -0
- data/docs/Importer.md +17 -0
- data/docs/ImporterResponse.md +21 -0
- data/docs/ImportersApi.md +361 -0
- data/docs/{GroupsObjectPermissionsApi.md → ImportersImportsApi.md} +46 -48
- data/docs/ImportersPulpApi.md +2 -2
- data/docs/ImportersPulpImportsApi.md +0 -2
- data/docs/MultipleArtifactContent.md +17 -0
- data/docs/OrphansCleanup.md +1 -1
- data/docs/PaginatedAlternateContentSourceResponseList.md +23 -0
- data/docs/{PaginatedPermissionResponseList.md → PaginatedExportResponseList.md} +3 -3
- data/docs/PaginatedExporterResponseList.md +23 -0
- data/docs/PaginatedImporterResponseList.md +23 -0
- data/docs/PaginatedRemoteResponseList.md +23 -0
- data/docs/PatchedAccessPolicy.md +3 -1
- data/docs/PatchedAlternateContentSource.md +23 -0
- data/docs/PatchedContentGuard.md +19 -0
- data/docs/PatchedDistribution.md +25 -0
- data/docs/PatchedExporter.md +17 -0
- data/docs/PatchedImporter.md +17 -0
- data/docs/PatchedRemote.md +57 -0
- data/docs/PatchedRepository.md +25 -0
- data/docs/PolicyEnum.md +16 -0
- data/docs/PublicationsApi.md +117 -2
- data/docs/Remote.md +57 -0
- data/docs/RemoteResponse.md +53 -0
- data/docs/RemotesApi.md +376 -0
- data/docs/RepositoriesApi.md +283 -3
- data/docs/RepositoriesVersionsApi.md +271 -0
- data/docs/Repository.md +25 -0
- data/docs/RepositoryVersionsApi.md +2 -0
- data/docs/RolesApi.md +6 -2
- data/docs/SigningServicesApi.md +0 -2
- data/docs/TaskGroupsApi.md +2 -2
- data/docs/TaskSchedulesApi.md +2 -2
- data/docs/TasksApi.md +2 -2
- data/docs/UploadsApi.md +0 -2
- data/docs/UserRole.md +1 -1
- data/docs/UserRoleResponse.md +6 -2
- data/docs/UsersApi.md +2 -61
- data/docs/UsersRolesApi.md +2 -2
- data/docs/VersionResponse.md +3 -1
- data/docs/WorkersApi.md +2 -2
- data/lib/pulpcore_client/api/access_policies_api.rb +7 -3
- data/lib/pulpcore_client/api/acs_api.rb +514 -0
- data/lib/pulpcore_client/api/artifacts_api.rb +7 -3
- data/lib/pulpcore_client/api/content_api.rb +141 -5
- data/lib/pulpcore_client/api/contentguards_api.rb +341 -5
- data/lib/pulpcore_client/api/contentguards_content_redirect_api.rb +275 -3
- data/lib/pulpcore_client/api/contentguards_rbac_api.rb +7 -3
- data/lib/pulpcore_client/api/distributions_api.rb +343 -5
- data/lib/pulpcore_client/api/exporters_api.rb +446 -0
- data/lib/pulpcore_client/api/{groups_model_permissions_api.rb → exporters_exports_api.rb} +76 -79
- data/lib/pulpcore_client/api/exporters_filesystem_api.rb +7 -3
- data/lib/pulpcore_client/api/exporters_filesystem_exports_api.rb +0 -3
- data/lib/pulpcore_client/api/exporters_pulp_api.rb +7 -3
- data/lib/pulpcore_client/api/exporters_pulp_exports_api.rb +0 -3
- data/lib/pulpcore_client/api/groups_api.rb +7 -3
- data/lib/pulpcore_client/api/groups_roles_api.rb +7 -3
- data/lib/pulpcore_client/api/groups_users_api.rb +0 -3
- data/lib/pulpcore_client/api/importers_api.rb +444 -0
- data/lib/pulpcore_client/api/{groups_object_permissions_api.rb → importers_imports_api.rb} +76 -79
- data/lib/pulpcore_client/api/importers_pulp_api.rb +7 -3
- data/lib/pulpcore_client/api/importers_pulp_imports_api.rb +0 -3
- data/lib/pulpcore_client/api/publications_api.rb +138 -3
- data/lib/pulpcore_client/api/remotes_api.rb +467 -0
- data/lib/pulpcore_client/api/repositories_api.rb +343 -5
- data/lib/pulpcore_client/api/repositories_versions_api.rb +343 -0
- data/lib/pulpcore_client/api/repository_versions_api.rb +7 -0
- data/lib/pulpcore_client/api/roles_api.rb +13 -3
- data/lib/pulpcore_client/api/signing_services_api.rb +0 -3
- data/lib/pulpcore_client/api/task_groups_api.rb +7 -3
- data/lib/pulpcore_client/api/task_schedules_api.rb +7 -3
- data/lib/pulpcore_client/api/tasks_api.rb +7 -3
- data/lib/pulpcore_client/api/uploads_api.rb +0 -3
- data/lib/pulpcore_client/api/users_api.rb +7 -69
- data/lib/pulpcore_client/api/users_roles_api.rb +7 -3
- data/lib/pulpcore_client/api/workers_api.rb +7 -3
- data/lib/pulpcore_client/models/access_policy.rb +14 -4
- data/lib/pulpcore_client/models/access_policy_response.rb +14 -4
- data/lib/pulpcore_client/models/alternate_content_source.rb +270 -0
- data/lib/pulpcore_client/models/alternate_content_source_response.rb +270 -0
- data/lib/pulpcore_client/models/content_guard.rb +258 -0
- data/lib/pulpcore_client/models/distribution.rb +297 -0
- data/lib/pulpcore_client/models/export.rb +209 -0
- data/lib/pulpcore_client/models/export_response.rb +250 -0
- data/lib/pulpcore_client/models/exporter.rb +232 -0
- data/lib/pulpcore_client/models/{permission_response.rb → exporter_response.rb} +24 -27
- data/lib/pulpcore_client/models/group_role.rb +1 -1
- data/lib/pulpcore_client/models/group_role_response.rb +26 -6
- data/lib/pulpcore_client/models/import.rb +228 -0
- data/lib/pulpcore_client/models/importer.rb +232 -0
- data/lib/pulpcore_client/models/importer_response.rb +232 -0
- data/lib/pulpcore_client/models/multiple_artifact_content.rb +213 -0
- data/lib/pulpcore_client/models/orphans_cleanup.rb +0 -2
- data/lib/pulpcore_client/models/paginated_alternate_content_source_response_list.rb +237 -0
- data/lib/pulpcore_client/models/{paginated_permission_response_list.rb → paginated_export_response_list.rb} +4 -4
- data/lib/pulpcore_client/models/paginated_exporter_response_list.rb +237 -0
- data/lib/pulpcore_client/models/paginated_importer_response_list.rb +237 -0
- data/lib/pulpcore_client/models/paginated_remote_response_list.rb +237 -0
- data/lib/pulpcore_client/models/patched_access_policy.rb +14 -4
- data/lib/pulpcore_client/models/patched_alternate_content_source.rb +256 -0
- data/lib/pulpcore_client/models/patched_content_guard.rb +249 -0
- data/lib/pulpcore_client/models/patched_distribution.rb +279 -0
- data/lib/pulpcore_client/models/patched_exporter.rb +223 -0
- data/lib/pulpcore_client/models/patched_importer.rb +223 -0
- data/lib/pulpcore_client/models/patched_remote.rb +649 -0
- data/lib/pulpcore_client/models/patched_repository.rb +295 -0
- data/lib/pulpcore_client/models/policy_enum.rb +36 -0
- data/lib/pulpcore_client/models/remote.rb +667 -0
- data/lib/pulpcore_client/models/remote_response.rb +483 -0
- data/lib/pulpcore_client/models/repository.rb +304 -0
- data/lib/pulpcore_client/models/user_role.rb +1 -1
- data/lib/pulpcore_client/models/user_role_response.rb +26 -6
- data/lib/pulpcore_client/models/version_response.rb +19 -4
- data/lib/pulpcore_client/version.rb +1 -1
- data/lib/pulpcore_client.rb +35 -4
- data/spec/api/access_policies_api_spec.rb +1 -1
- data/spec/api/acs_api_spec.rb +132 -0
- data/spec/api/artifacts_api_spec.rb +1 -1
- data/spec/api/content_api_spec.rb +28 -2
- data/spec/api/contentguards_api_spec.rb +66 -2
- data/spec/api/contentguards_content_redirect_api_spec.rb +51 -1
- data/spec/api/contentguards_rbac_api_spec.rb +1 -1
- data/spec/api/distributions_api_spec.rb +66 -2
- data/spec/api/exporters_api_spec.rb +120 -0
- data/spec/api/{groups_model_permissions_api_spec.rb → exporters_exports_api_spec.rb} +22 -23
- data/spec/api/exporters_filesystem_api_spec.rb +1 -1
- data/spec/api/exporters_filesystem_exports_api_spec.rb +0 -1
- data/spec/api/exporters_pulp_api_spec.rb +1 -1
- data/spec/api/exporters_pulp_exports_api_spec.rb +0 -1
- data/spec/api/groups_api_spec.rb +1 -1
- data/spec/api/groups_roles_api_spec.rb +1 -1
- data/spec/api/groups_users_api_spec.rb +0 -1
- data/spec/api/importers_api_spec.rb +120 -0
- data/spec/api/{groups_object_permissions_api_spec.rb → importers_imports_api_spec.rb} +22 -23
- data/spec/api/importers_pulp_api_spec.rb +1 -1
- data/spec/api/importers_pulp_imports_api_spec.rb +0 -1
- data/spec/api/publications_api_spec.rb +28 -1
- data/spec/api/remotes_api_spec.rb +127 -0
- data/spec/api/repositories_api_spec.rb +66 -2
- data/spec/api/repositories_versions_api_spec.rb +104 -0
- data/spec/api/repository_versions_api_spec.rb +1 -0
- data/spec/api/roles_api_spec.rb +3 -1
- data/spec/api/signing_services_api_spec.rb +0 -1
- data/spec/api/task_groups_api_spec.rb +1 -1
- data/spec/api/task_schedules_api_spec.rb +1 -1
- data/spec/api/tasks_api_spec.rb +1 -1
- data/spec/api/uploads_api_spec.rb +0 -1
- data/spec/api/users_api_spec.rb +1 -14
- data/spec/api/users_roles_api_spec.rb +1 -1
- data/spec/api/workers_api_spec.rb +1 -1
- data/spec/models/access_policy_response_spec.rb +6 -0
- data/spec/models/access_policy_spec.rb +6 -0
- data/spec/models/alternate_content_source_response_spec.rb +71 -0
- data/spec/models/{permission_response_spec.rb → alternate_content_source_spec.rb} +10 -10
- data/spec/models/content_guard_spec.rb +47 -0
- data/spec/models/distribution_spec.rb +65 -0
- data/spec/models/export_response_spec.rb +65 -0
- data/spec/models/export_spec.rb +41 -0
- data/spec/models/exporter_response_spec.rb +53 -0
- data/spec/models/exporter_spec.rb +41 -0
- data/spec/models/group_role_response_spec.rb +12 -0
- data/spec/models/import_spec.rb +47 -0
- data/spec/models/importer_response_spec.rb +53 -0
- data/spec/models/importer_spec.rb +41 -0
- data/spec/models/multiple_artifact_content_spec.rb +41 -0
- data/spec/models/paginated_alternate_content_source_response_list_spec.rb +59 -0
- data/spec/models/{paginated_permission_response_list_spec.rb → paginated_export_response_list_spec.rb} +6 -6
- data/spec/models/paginated_exporter_response_list_spec.rb +59 -0
- data/spec/models/paginated_importer_response_list_spec.rb +59 -0
- data/spec/models/paginated_remote_response_list_spec.rb +59 -0
- data/spec/models/patched_access_policy_spec.rb +6 -0
- data/spec/models/patched_alternate_content_source_spec.rb +59 -0
- data/spec/models/patched_content_guard_spec.rb +47 -0
- data/spec/models/patched_distribution_spec.rb +65 -0
- data/spec/models/patched_exporter_spec.rb +41 -0
- data/spec/models/patched_importer_spec.rb +41 -0
- data/spec/models/patched_remote_spec.rb +161 -0
- data/spec/models/patched_repository_spec.rb +65 -0
- data/spec/models/policy_enum_spec.rb +35 -0
- data/spec/models/remote_response_spec.rb +149 -0
- data/spec/models/remote_spec.rb +161 -0
- data/spec/models/repository_spec.rb +65 -0
- data/spec/models/user_role_response_spec.rb +12 -0
- data/spec/models/version_response_spec.rb +6 -0
- metadata +263 -139
- data/docs/PermissionResponse.md +0 -23
|
@@ -13,43 +13,43 @@ OpenAPI Generator version: 4.3.1
|
|
|
13
13
|
require 'cgi'
|
|
14
14
|
|
|
15
15
|
module PulpcoreClient
|
|
16
|
-
class
|
|
16
|
+
class ImportersImportsApi
|
|
17
17
|
attr_accessor :api_client
|
|
18
18
|
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
|
-
# Create
|
|
23
|
-
#
|
|
24
|
-
# @param
|
|
25
|
-
# @param
|
|
22
|
+
# Create an import
|
|
23
|
+
# ViewSet for viewing imports from an Importer.
|
|
24
|
+
# @param importer_href [String]
|
|
25
|
+
# @param import [Import]
|
|
26
26
|
# @param [Hash] opts the optional parameters
|
|
27
|
-
# @return [
|
|
28
|
-
def create(
|
|
29
|
-
data, _status_code, _headers = create_with_http_info(
|
|
27
|
+
# @return [ImportResponse]
|
|
28
|
+
def create(importer_href, import, opts = {})
|
|
29
|
+
data, _status_code, _headers = create_with_http_info(importer_href, import, opts)
|
|
30
30
|
data
|
|
31
31
|
end
|
|
32
32
|
|
|
33
|
-
# Create
|
|
34
|
-
#
|
|
35
|
-
# @param
|
|
36
|
-
# @param
|
|
33
|
+
# Create an import
|
|
34
|
+
# ViewSet for viewing imports from an Importer.
|
|
35
|
+
# @param importer_href [String]
|
|
36
|
+
# @param import [Import]
|
|
37
37
|
# @param [Hash] opts the optional parameters
|
|
38
|
-
# @return [Array<(
|
|
39
|
-
def create_with_http_info(
|
|
38
|
+
# @return [Array<(ImportResponse, Integer, Hash)>] ImportResponse data, response status code and response headers
|
|
39
|
+
def create_with_http_info(importer_href, import, opts = {})
|
|
40
40
|
if @api_client.config.debugging
|
|
41
|
-
@api_client.config.logger.debug 'Calling API:
|
|
41
|
+
@api_client.config.logger.debug 'Calling API: ImportersImportsApi.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 'importer_href' is set
|
|
44
|
+
if @api_client.config.client_side_validation && importer_href.nil?
|
|
45
|
+
fail ArgumentError, "Missing the required parameter 'importer_href' when calling ImportersImportsApi.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 'import' is set
|
|
48
|
+
if @api_client.config.client_side_validation && import.nil?
|
|
49
|
+
fail ArgumentError, "Missing the required parameter 'import' when calling ImportersImportsApi.create"
|
|
50
50
|
end
|
|
51
51
|
# resource path
|
|
52
|
-
local_var_path = '{
|
|
52
|
+
local_var_path = '{importer_href}imports/'.sub('{' + 'importer_href' + '}', CGI.escape(importer_href.to_s).gsub('%2F', '/'))
|
|
53
53
|
|
|
54
54
|
# query parameters
|
|
55
55
|
query_params = opts[:query_params] || {}
|
|
@@ -65,10 +65,10 @@ module PulpcoreClient
|
|
|
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(import)
|
|
69
69
|
|
|
70
70
|
# return_type
|
|
71
|
-
return_type = opts[:return_type] || '
|
|
71
|
+
return_type = opts[:return_type] || 'ImportResponse'
|
|
72
72
|
|
|
73
73
|
# auth_names
|
|
74
74
|
auth_names = opts[:auth_names] || ['basicAuth']
|
|
@@ -84,36 +84,36 @@ module PulpcoreClient
|
|
|
84
84
|
|
|
85
85
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
86
86
|
if @api_client.config.debugging
|
|
87
|
-
@api_client.config.logger.debug "API called:
|
|
87
|
+
@api_client.config.logger.debug "API called: ImportersImportsApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
88
88
|
end
|
|
89
89
|
return data, status_code, headers
|
|
90
90
|
end
|
|
91
91
|
|
|
92
|
-
# Delete
|
|
93
|
-
#
|
|
94
|
-
# @param
|
|
92
|
+
# Delete an import
|
|
93
|
+
# ViewSet for viewing imports from an Importer.
|
|
94
|
+
# @param importers_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(importers_import_href, opts = {})
|
|
98
|
+
delete_with_http_info(importers_import_href, opts)
|
|
99
99
|
nil
|
|
100
100
|
end
|
|
101
101
|
|
|
102
|
-
# Delete
|
|
103
|
-
#
|
|
104
|
-
# @param
|
|
102
|
+
# Delete an import
|
|
103
|
+
# ViewSet for viewing imports from an Importer.
|
|
104
|
+
# @param importers_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(importers_import_href, opts = {})
|
|
108
108
|
if @api_client.config.debugging
|
|
109
|
-
@api_client.config.logger.debug 'Calling API:
|
|
109
|
+
@api_client.config.logger.debug 'Calling API: ImportersImportsApi.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 'importers_import_href' is set
|
|
112
|
+
if @api_client.config.client_side_validation && importers_import_href.nil?
|
|
113
|
+
fail ArgumentError, "Missing the required parameter 'importers_import_href' when calling ImportersImportsApi.delete"
|
|
114
114
|
end
|
|
115
115
|
# resource path
|
|
116
|
-
local_var_path = '{
|
|
116
|
+
local_var_path = '{importers_import_href}'.sub('{' + 'importers_import_href' + '}', CGI.escape(importers_import_href.to_s).gsub('%2F', '/'))
|
|
117
117
|
|
|
118
118
|
# query parameters
|
|
119
119
|
query_params = opts[:query_params] || {}
|
|
@@ -144,52 +144,49 @@ module PulpcoreClient
|
|
|
144
144
|
|
|
145
145
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
146
146
|
if @api_client.config.debugging
|
|
147
|
-
@api_client.config.logger.debug "API called:
|
|
147
|
+
@api_client.config.logger.debug "API called: ImportersImportsApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
148
148
|
end
|
|
149
149
|
return data, status_code, headers
|
|
150
150
|
end
|
|
151
151
|
|
|
152
|
-
# List
|
|
153
|
-
#
|
|
154
|
-
# @param
|
|
152
|
+
# List imports
|
|
153
|
+
# ViewSet for viewing imports from an Importer.
|
|
154
|
+
# @param importer_href [String]
|
|
155
155
|
# @param [Hash] opts the optional parameters
|
|
156
156
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
157
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
158
|
# @option opts [String] :fields A list of fields to include in the response.
|
|
160
159
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
161
|
-
# @return [
|
|
162
|
-
def list(
|
|
163
|
-
data, _status_code, _headers = list_with_http_info(
|
|
160
|
+
# @return [PaginatedImportResponseList]
|
|
161
|
+
def list(importer_href, opts = {})
|
|
162
|
+
data, _status_code, _headers = list_with_http_info(importer_href, opts)
|
|
164
163
|
data
|
|
165
164
|
end
|
|
166
165
|
|
|
167
|
-
# List
|
|
168
|
-
#
|
|
169
|
-
# @param
|
|
166
|
+
# List imports
|
|
167
|
+
# ViewSet for viewing imports from an Importer.
|
|
168
|
+
# @param importer_href [String]
|
|
170
169
|
# @param [Hash] opts the optional parameters
|
|
171
170
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
172
171
|
# @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
172
|
# @option opts [String] :fields A list of fields to include in the response.
|
|
175
173
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
176
|
-
# @return [Array<(
|
|
177
|
-
def list_with_http_info(
|
|
174
|
+
# @return [Array<(PaginatedImportResponseList, Integer, Hash)>] PaginatedImportResponseList data, response status code and response headers
|
|
175
|
+
def list_with_http_info(importer_href, opts = {})
|
|
178
176
|
if @api_client.config.debugging
|
|
179
|
-
@api_client.config.logger.debug 'Calling API:
|
|
177
|
+
@api_client.config.logger.debug 'Calling API: ImportersImportsApi.list ...'
|
|
180
178
|
end
|
|
181
|
-
# verify the required parameter '
|
|
182
|
-
if @api_client.config.client_side_validation &&
|
|
183
|
-
fail ArgumentError, "Missing the required parameter '
|
|
179
|
+
# verify the required parameter 'importer_href' is set
|
|
180
|
+
if @api_client.config.client_side_validation && importer_href.nil?
|
|
181
|
+
fail ArgumentError, "Missing the required parameter 'importer_href' when calling ImportersImportsApi.list"
|
|
184
182
|
end
|
|
185
183
|
# resource path
|
|
186
|
-
local_var_path = '{
|
|
184
|
+
local_var_path = '{importer_href}imports/'.sub('{' + 'importer_href' + '}', CGI.escape(importer_href.to_s).gsub('%2F', '/'))
|
|
187
185
|
|
|
188
186
|
# query parameters
|
|
189
187
|
query_params = opts[:query_params] || {}
|
|
190
188
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
191
189
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
192
|
-
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
|
193
190
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
|
194
191
|
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
|
195
192
|
|
|
@@ -205,7 +202,7 @@ module PulpcoreClient
|
|
|
205
202
|
post_body = opts[:body]
|
|
206
203
|
|
|
207
204
|
# return_type
|
|
208
|
-
return_type = opts[:return_type] || '
|
|
205
|
+
return_type = opts[:return_type] || 'PaginatedImportResponseList'
|
|
209
206
|
|
|
210
207
|
# auth_names
|
|
211
208
|
auth_names = opts[:auth_names] || ['basicAuth']
|
|
@@ -221,40 +218,40 @@ module PulpcoreClient
|
|
|
221
218
|
|
|
222
219
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
223
220
|
if @api_client.config.debugging
|
|
224
|
-
@api_client.config.logger.debug "API called:
|
|
221
|
+
@api_client.config.logger.debug "API called: ImportersImportsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
225
222
|
end
|
|
226
223
|
return data, status_code, headers
|
|
227
224
|
end
|
|
228
225
|
|
|
229
|
-
# Inspect
|
|
230
|
-
#
|
|
231
|
-
# @param
|
|
226
|
+
# Inspect an import
|
|
227
|
+
# ViewSet for viewing imports from an Importer.
|
|
228
|
+
# @param importers_import_href [String]
|
|
232
229
|
# @param [Hash] opts the optional parameters
|
|
233
230
|
# @option opts [String] :fields A list of fields to include in the response.
|
|
234
231
|
# @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(
|
|
232
|
+
# @return [ImportResponse]
|
|
233
|
+
def read(importers_import_href, opts = {})
|
|
234
|
+
data, _status_code, _headers = read_with_http_info(importers_import_href, opts)
|
|
238
235
|
data
|
|
239
236
|
end
|
|
240
237
|
|
|
241
|
-
# Inspect
|
|
242
|
-
#
|
|
243
|
-
# @param
|
|
238
|
+
# Inspect an import
|
|
239
|
+
# ViewSet for viewing imports from an Importer.
|
|
240
|
+
# @param importers_import_href [String]
|
|
244
241
|
# @param [Hash] opts the optional parameters
|
|
245
242
|
# @option opts [String] :fields A list of fields to include in the response.
|
|
246
243
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
247
|
-
# @return [Array<(
|
|
248
|
-
def read_with_http_info(
|
|
244
|
+
# @return [Array<(ImportResponse, Integer, Hash)>] ImportResponse data, response status code and response headers
|
|
245
|
+
def read_with_http_info(importers_import_href, opts = {})
|
|
249
246
|
if @api_client.config.debugging
|
|
250
|
-
@api_client.config.logger.debug 'Calling API:
|
|
247
|
+
@api_client.config.logger.debug 'Calling API: ImportersImportsApi.read ...'
|
|
251
248
|
end
|
|
252
|
-
# verify the required parameter '
|
|
253
|
-
if @api_client.config.client_side_validation &&
|
|
254
|
-
fail ArgumentError, "Missing the required parameter '
|
|
249
|
+
# verify the required parameter 'importers_import_href' is set
|
|
250
|
+
if @api_client.config.client_side_validation && importers_import_href.nil?
|
|
251
|
+
fail ArgumentError, "Missing the required parameter 'importers_import_href' when calling ImportersImportsApi.read"
|
|
255
252
|
end
|
|
256
253
|
# resource path
|
|
257
|
-
local_var_path = '{
|
|
254
|
+
local_var_path = '{importers_import_href}'.sub('{' + 'importers_import_href' + '}', CGI.escape(importers_import_href.to_s).gsub('%2F', '/'))
|
|
258
255
|
|
|
259
256
|
# query parameters
|
|
260
257
|
query_params = opts[:query_params] || {}
|
|
@@ -273,7 +270,7 @@ module PulpcoreClient
|
|
|
273
270
|
post_body = opts[:body]
|
|
274
271
|
|
|
275
272
|
# return_type
|
|
276
|
-
return_type = opts[:return_type] || '
|
|
273
|
+
return_type = opts[:return_type] || 'ImportResponse'
|
|
277
274
|
|
|
278
275
|
# auth_names
|
|
279
276
|
auth_names = opts[:auth_names] || ['basicAuth']
|
|
@@ -289,7 +286,7 @@ module PulpcoreClient
|
|
|
289
286
|
|
|
290
287
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
291
288
|
if @api_client.config.debugging
|
|
292
|
-
@api_client.config.logger.debug "API called:
|
|
289
|
+
@api_client.config.logger.debug "API called: ImportersImportsApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
293
290
|
end
|
|
294
291
|
return data, status_code, headers
|
|
295
292
|
end
|
|
@@ -153,7 +153,7 @@ module PulpcoreClient
|
|
|
153
153
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
|
154
154
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
|
155
155
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
156
|
-
# @option opts [String] :ordering
|
|
156
|
+
# @option opts [Array<String>] :ordering Ordering
|
|
157
157
|
# @option opts [String] :fields A list of fields to include in the response.
|
|
158
158
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
159
159
|
# @return [PaginatedPulpImporterResponseList]
|
|
@@ -172,7 +172,7 @@ module PulpcoreClient
|
|
|
172
172
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
|
173
173
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
|
174
174
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
175
|
-
# @option opts [String] :ordering
|
|
175
|
+
# @option opts [Array<String>] :ordering Ordering
|
|
176
176
|
# @option opts [String] :fields A list of fields to include in the response.
|
|
177
177
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
178
178
|
# @return [Array<(PaginatedPulpImporterResponseList, Integer, Hash)>] PaginatedPulpImporterResponseList data, response status code and response headers
|
|
@@ -180,6 +180,10 @@ module PulpcoreClient
|
|
|
180
180
|
if @api_client.config.debugging
|
|
181
181
|
@api_client.config.logger.debug 'Calling API: ImportersPulpApi.list ...'
|
|
182
182
|
end
|
|
183
|
+
allowable_values = ["-core_pulp_importer", "-group_roles", "-import", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-user_roles", "core_pulp_importer", "group_roles", "import", "name", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "user_roles"]
|
|
184
|
+
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
|
185
|
+
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
|
186
|
+
end
|
|
183
187
|
# resource path
|
|
184
188
|
local_var_path = '/pulp/api/v3/importers/core/pulp/'
|
|
185
189
|
|
|
@@ -192,7 +196,7 @@ module PulpcoreClient
|
|
|
192
196
|
query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
|
|
193
197
|
query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
|
|
194
198
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
195
|
-
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
|
199
|
+
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
|
196
200
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
|
197
201
|
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
|
198
202
|
|
|
@@ -155,7 +155,6 @@ module PulpcoreClient
|
|
|
155
155
|
# @param [Hash] opts the optional parameters
|
|
156
156
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
157
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
158
|
# @option opts [String] :fields A list of fields to include in the response.
|
|
160
159
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
161
160
|
# @return [PaginatedImportResponseList]
|
|
@@ -170,7 +169,6 @@ module PulpcoreClient
|
|
|
170
169
|
# @param [Hash] opts the optional parameters
|
|
171
170
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
172
171
|
# @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
172
|
# @option opts [String] :fields A list of fields to include in the response.
|
|
175
173
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
176
174
|
# @return [Array<(PaginatedImportResponseList, Integer, Hash)>] PaginatedImportResponseList data, response status code and response headers
|
|
@@ -189,7 +187,6 @@ module PulpcoreClient
|
|
|
189
187
|
query_params = opts[:query_params] || {}
|
|
190
188
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
191
189
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
192
|
-
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
|
193
190
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
|
194
191
|
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
|
195
192
|
|
|
@@ -19,6 +19,66 @@ module PulpcoreClient
|
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
|
+
# Delete a publication
|
|
23
|
+
# A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \"Normal\" Django Models and Master/Detail models are supported by the ``register_with`` method. Attributes: lookup_field (str): The name of the field by which an object should be looked up, in addition to any parent lookups if this ViewSet is nested. Defaults to 'pk' endpoint_name (str): The name of the final path segment that should identify the ViewSet's collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \"parent_prefix\" of a router with rest_framework_nested.NestedMixin. None indicates this ViewSet should not be nested. parent_lookup_kwargs (dict): Optional mapping of key names that would appear in self.kwargs to django model filter expressions that can be used with the corresponding value from self.kwargs, used only by a nested ViewSet to filter based on the parent object's identity. schema (DefaultSchema): The schema class to use by default in a viewset.
|
|
24
|
+
# @param publication_href [String]
|
|
25
|
+
# @param [Hash] opts the optional parameters
|
|
26
|
+
# @return [nil]
|
|
27
|
+
def delete(publication_href, opts = {})
|
|
28
|
+
delete_with_http_info(publication_href, opts)
|
|
29
|
+
nil
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Delete a publication
|
|
33
|
+
# A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \"Normal\" Django Models and Master/Detail models are supported by the ``register_with`` method. Attributes: lookup_field (str): The name of the field by which an object should be looked up, in addition to any parent lookups if this ViewSet is nested. Defaults to 'pk' endpoint_name (str): The name of the final path segment that should identify the ViewSet's collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \"parent_prefix\" of a router with rest_framework_nested.NestedMixin. None indicates this ViewSet should not be nested. parent_lookup_kwargs (dict): Optional mapping of key names that would appear in self.kwargs to django model filter expressions that can be used with the corresponding value from self.kwargs, used only by a nested ViewSet to filter based on the parent object's identity. schema (DefaultSchema): The schema class to use by default in a viewset.
|
|
34
|
+
# @param publication_href [String]
|
|
35
|
+
# @param [Hash] opts the optional parameters
|
|
36
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
37
|
+
def delete_with_http_info(publication_href, opts = {})
|
|
38
|
+
if @api_client.config.debugging
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: PublicationsApi.delete ...'
|
|
40
|
+
end
|
|
41
|
+
# verify the required parameter 'publication_href' is set
|
|
42
|
+
if @api_client.config.client_side_validation && publication_href.nil?
|
|
43
|
+
fail ArgumentError, "Missing the required parameter 'publication_href' when calling PublicationsApi.delete"
|
|
44
|
+
end
|
|
45
|
+
# resource path
|
|
46
|
+
local_var_path = '{publication_href}'.sub('{' + 'publication_href' + '}', CGI.escape(publication_href.to_s).gsub('%2F', '/'))
|
|
47
|
+
|
|
48
|
+
# query parameters
|
|
49
|
+
query_params = opts[:query_params] || {}
|
|
50
|
+
|
|
51
|
+
# header parameters
|
|
52
|
+
header_params = opts[:header_params] || {}
|
|
53
|
+
|
|
54
|
+
# form parameters
|
|
55
|
+
form_params = opts[:form_params] || {}
|
|
56
|
+
|
|
57
|
+
# http body (model)
|
|
58
|
+
post_body = opts[:body]
|
|
59
|
+
|
|
60
|
+
# return_type
|
|
61
|
+
return_type = opts[:return_type]
|
|
62
|
+
|
|
63
|
+
# auth_names
|
|
64
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
65
|
+
|
|
66
|
+
new_options = opts.merge(
|
|
67
|
+
:header_params => header_params,
|
|
68
|
+
:query_params => query_params,
|
|
69
|
+
:form_params => form_params,
|
|
70
|
+
:body => post_body,
|
|
71
|
+
:auth_names => auth_names,
|
|
72
|
+
:return_type => return_type
|
|
73
|
+
)
|
|
74
|
+
|
|
75
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
76
|
+
if @api_client.config.debugging
|
|
77
|
+
@api_client.config.logger.debug "API called: PublicationsApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
78
|
+
end
|
|
79
|
+
return data, status_code, headers
|
|
80
|
+
end
|
|
81
|
+
|
|
22
82
|
# List publications
|
|
23
83
|
# A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \"Normal\" Django Models and Master/Detail models are supported by the ``register_with`` method. Attributes: lookup_field (str): The name of the field by which an object should be looked up, in addition to any parent lookups if this ViewSet is nested. Defaults to 'pk' endpoint_name (str): The name of the final path segment that should identify the ViewSet's collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \"parent_prefix\" of a router with rest_framework_nested.NestedMixin. None indicates this ViewSet should not be nested. parent_lookup_kwargs (dict): Optional mapping of key names that would appear in self.kwargs to django model filter expressions that can be used with the corresponding value from self.kwargs, used only by a nested ViewSet to filter based on the parent object's identity. schema (DefaultSchema): The schema class to use by default in a viewset.
|
|
24
84
|
# @param [Hash] opts the optional parameters
|
|
@@ -26,13 +86,14 @@ module PulpcoreClient
|
|
|
26
86
|
# @option opts [String] :content__in Content Unit referenced by HREF
|
|
27
87
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
28
88
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
29
|
-
# @option opts [String] :ordering
|
|
89
|
+
# @option opts [Array<String>] :ordering Ordering
|
|
30
90
|
# @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
|
|
31
91
|
# @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
|
|
32
92
|
# @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
|
33
93
|
# @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
|
|
34
94
|
# @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
|
35
95
|
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
|
96
|
+
# @option opts [String] :repository Repository referenced by HREF
|
|
36
97
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
|
37
98
|
# @option opts [String] :fields A list of fields to include in the response.
|
|
38
99
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
@@ -49,13 +110,14 @@ module PulpcoreClient
|
|
|
49
110
|
# @option opts [String] :content__in Content Unit referenced by HREF
|
|
50
111
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
51
112
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
52
|
-
# @option opts [String] :ordering
|
|
113
|
+
# @option opts [Array<String>] :ordering Ordering
|
|
53
114
|
# @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
|
|
54
115
|
# @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
|
|
55
116
|
# @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
|
56
117
|
# @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
|
|
57
118
|
# @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
|
58
119
|
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
|
120
|
+
# @option opts [String] :repository Repository referenced by HREF
|
|
59
121
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
|
60
122
|
# @option opts [String] :fields A list of fields to include in the response.
|
|
61
123
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
@@ -64,6 +126,10 @@ module PulpcoreClient
|
|
|
64
126
|
if @api_client.config.debugging
|
|
65
127
|
@api_client.config.logger.debug 'Calling API: PublicationsApi.list ...'
|
|
66
128
|
end
|
|
129
|
+
allowable_values = ["-complete", "-distribution", "-file_filepublication", "-group_roles", "-pass_through", "-pk", "-published_artifact", "-published_metadata", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-repository_version", "-user_roles", "complete", "distribution", "file_filepublication", "group_roles", "pass_through", "pk", "published_artifact", "published_metadata", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "repository_version", "user_roles"]
|
|
130
|
+
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
|
131
|
+
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
|
132
|
+
end
|
|
67
133
|
# resource path
|
|
68
134
|
local_var_path = '/pulp/api/v3/publications/'
|
|
69
135
|
|
|
@@ -73,13 +139,14 @@ module PulpcoreClient
|
|
|
73
139
|
query_params[:'content__in'] = opts[:'content__in'] if !opts[:'content__in'].nil?
|
|
74
140
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
75
141
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
76
|
-
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
|
142
|
+
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
|
77
143
|
query_params[:'pulp_created'] = opts[:'pulp_created'] if !opts[:'pulp_created'].nil?
|
|
78
144
|
query_params[:'pulp_created__gt'] = opts[:'pulp_created__gt'] if !opts[:'pulp_created__gt'].nil?
|
|
79
145
|
query_params[:'pulp_created__gte'] = opts[:'pulp_created__gte'] if !opts[:'pulp_created__gte'].nil?
|
|
80
146
|
query_params[:'pulp_created__lt'] = opts[:'pulp_created__lt'] if !opts[:'pulp_created__lt'].nil?
|
|
81
147
|
query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
|
|
82
148
|
query_params[:'pulp_created__range'] = @api_client.build_collection_param(opts[:'pulp_created__range'], :csv) if !opts[:'pulp_created__range'].nil?
|
|
149
|
+
query_params[:'repository'] = opts[:'repository'] if !opts[:'repository'].nil?
|
|
83
150
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
|
84
151
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
|
85
152
|
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
|
@@ -116,5 +183,73 @@ module PulpcoreClient
|
|
|
116
183
|
end
|
|
117
184
|
return data, status_code, headers
|
|
118
185
|
end
|
|
186
|
+
|
|
187
|
+
# Inspect a publication
|
|
188
|
+
# A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \"Normal\" Django Models and Master/Detail models are supported by the ``register_with`` method. Attributes: lookup_field (str): The name of the field by which an object should be looked up, in addition to any parent lookups if this ViewSet is nested. Defaults to 'pk' endpoint_name (str): The name of the final path segment that should identify the ViewSet's collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \"parent_prefix\" of a router with rest_framework_nested.NestedMixin. None indicates this ViewSet should not be nested. parent_lookup_kwargs (dict): Optional mapping of key names that would appear in self.kwargs to django model filter expressions that can be used with the corresponding value from self.kwargs, used only by a nested ViewSet to filter based on the parent object's identity. schema (DefaultSchema): The schema class to use by default in a viewset.
|
|
189
|
+
# @param publication_href [String]
|
|
190
|
+
# @param [Hash] opts the optional parameters
|
|
191
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
|
192
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
193
|
+
# @return [PublicationResponse]
|
|
194
|
+
def read(publication_href, opts = {})
|
|
195
|
+
data, _status_code, _headers = read_with_http_info(publication_href, opts)
|
|
196
|
+
data
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
# Inspect a publication
|
|
200
|
+
# A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \"Normal\" Django Models and Master/Detail models are supported by the ``register_with`` method. Attributes: lookup_field (str): The name of the field by which an object should be looked up, in addition to any parent lookups if this ViewSet is nested. Defaults to 'pk' endpoint_name (str): The name of the final path segment that should identify the ViewSet's collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \"parent_prefix\" of a router with rest_framework_nested.NestedMixin. None indicates this ViewSet should not be nested. parent_lookup_kwargs (dict): Optional mapping of key names that would appear in self.kwargs to django model filter expressions that can be used with the corresponding value from self.kwargs, used only by a nested ViewSet to filter based on the parent object's identity. schema (DefaultSchema): The schema class to use by default in a viewset.
|
|
201
|
+
# @param publication_href [String]
|
|
202
|
+
# @param [Hash] opts the optional parameters
|
|
203
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
|
204
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
205
|
+
# @return [Array<(PublicationResponse, Integer, Hash)>] PublicationResponse data, response status code and response headers
|
|
206
|
+
def read_with_http_info(publication_href, opts = {})
|
|
207
|
+
if @api_client.config.debugging
|
|
208
|
+
@api_client.config.logger.debug 'Calling API: PublicationsApi.read ...'
|
|
209
|
+
end
|
|
210
|
+
# verify the required parameter 'publication_href' is set
|
|
211
|
+
if @api_client.config.client_side_validation && publication_href.nil?
|
|
212
|
+
fail ArgumentError, "Missing the required parameter 'publication_href' when calling PublicationsApi.read"
|
|
213
|
+
end
|
|
214
|
+
# resource path
|
|
215
|
+
local_var_path = '{publication_href}'.sub('{' + 'publication_href' + '}', CGI.escape(publication_href.to_s).gsub('%2F', '/'))
|
|
216
|
+
|
|
217
|
+
# query parameters
|
|
218
|
+
query_params = opts[:query_params] || {}
|
|
219
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
|
220
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
|
221
|
+
|
|
222
|
+
# header parameters
|
|
223
|
+
header_params = opts[:header_params] || {}
|
|
224
|
+
# HTTP header 'Accept' (if needed)
|
|
225
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
226
|
+
|
|
227
|
+
# form parameters
|
|
228
|
+
form_params = opts[:form_params] || {}
|
|
229
|
+
|
|
230
|
+
# http body (model)
|
|
231
|
+
post_body = opts[:body]
|
|
232
|
+
|
|
233
|
+
# return_type
|
|
234
|
+
return_type = opts[:return_type] || 'PublicationResponse'
|
|
235
|
+
|
|
236
|
+
# auth_names
|
|
237
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
238
|
+
|
|
239
|
+
new_options = opts.merge(
|
|
240
|
+
:header_params => header_params,
|
|
241
|
+
:query_params => query_params,
|
|
242
|
+
:form_params => form_params,
|
|
243
|
+
:body => post_body,
|
|
244
|
+
:auth_names => auth_names,
|
|
245
|
+
:return_type => return_type
|
|
246
|
+
)
|
|
247
|
+
|
|
248
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
249
|
+
if @api_client.config.debugging
|
|
250
|
+
@api_client.config.logger.debug "API called: PublicationsApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
251
|
+
end
|
|
252
|
+
return data, status_code, headers
|
|
253
|
+
end
|
|
119
254
|
end
|
|
120
255
|
end
|