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
|
@@ -19,8 +19,134 @@ module PulpcoreClient
|
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
|
+
# Create a repository
|
|
23
|
+
# An immutable repository ViewSet that does not allow the usage of the methods PATCH and PUT.
|
|
24
|
+
# @param repository [Repository]
|
|
25
|
+
# @param [Hash] opts the optional parameters
|
|
26
|
+
# @return [RepositoryResponse]
|
|
27
|
+
def create(repository, opts = {})
|
|
28
|
+
data, _status_code, _headers = create_with_http_info(repository, opts)
|
|
29
|
+
data
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Create a repository
|
|
33
|
+
# An immutable repository ViewSet that does not allow the usage of the methods PATCH and PUT.
|
|
34
|
+
# @param repository [Repository]
|
|
35
|
+
# @param [Hash] opts the optional parameters
|
|
36
|
+
# @return [Array<(RepositoryResponse, Integer, Hash)>] RepositoryResponse data, response status code and response headers
|
|
37
|
+
def create_with_http_info(repository, opts = {})
|
|
38
|
+
if @api_client.config.debugging
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesApi.create ...'
|
|
40
|
+
end
|
|
41
|
+
# verify the required parameter 'repository' is set
|
|
42
|
+
if @api_client.config.client_side_validation && repository.nil?
|
|
43
|
+
fail ArgumentError, "Missing the required parameter 'repository' when calling RepositoriesApi.create"
|
|
44
|
+
end
|
|
45
|
+
# resource path
|
|
46
|
+
local_var_path = '/pulp/api/v3/repositories/'
|
|
47
|
+
|
|
48
|
+
# query parameters
|
|
49
|
+
query_params = opts[:query_params] || {}
|
|
50
|
+
|
|
51
|
+
# header parameters
|
|
52
|
+
header_params = opts[:header_params] || {}
|
|
53
|
+
# HTTP header 'Accept' (if needed)
|
|
54
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
55
|
+
# HTTP header 'Content-Type'
|
|
56
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
|
57
|
+
|
|
58
|
+
# form parameters
|
|
59
|
+
form_params = opts[:form_params] || {}
|
|
60
|
+
|
|
61
|
+
# http body (model)
|
|
62
|
+
post_body = opts[:body] || @api_client.object_to_http_body(repository)
|
|
63
|
+
|
|
64
|
+
# return_type
|
|
65
|
+
return_type = opts[:return_type] || 'RepositoryResponse'
|
|
66
|
+
|
|
67
|
+
# auth_names
|
|
68
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
69
|
+
|
|
70
|
+
new_options = opts.merge(
|
|
71
|
+
:header_params => header_params,
|
|
72
|
+
:query_params => query_params,
|
|
73
|
+
:form_params => form_params,
|
|
74
|
+
:body => post_body,
|
|
75
|
+
:auth_names => auth_names,
|
|
76
|
+
:return_type => return_type
|
|
77
|
+
)
|
|
78
|
+
|
|
79
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
80
|
+
if @api_client.config.debugging
|
|
81
|
+
@api_client.config.logger.debug "API called: RepositoriesApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
82
|
+
end
|
|
83
|
+
return data, status_code, headers
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Delete a repository
|
|
87
|
+
# Trigger an asynchronous delete task
|
|
88
|
+
# @param repository_href [String]
|
|
89
|
+
# @param [Hash] opts the optional parameters
|
|
90
|
+
# @return [AsyncOperationResponse]
|
|
91
|
+
def delete(repository_href, opts = {})
|
|
92
|
+
data, _status_code, _headers = delete_with_http_info(repository_href, opts)
|
|
93
|
+
data
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# Delete a repository
|
|
97
|
+
# Trigger an asynchronous delete task
|
|
98
|
+
# @param repository_href [String]
|
|
99
|
+
# @param [Hash] opts the optional parameters
|
|
100
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
|
101
|
+
def delete_with_http_info(repository_href, opts = {})
|
|
102
|
+
if @api_client.config.debugging
|
|
103
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesApi.delete ...'
|
|
104
|
+
end
|
|
105
|
+
# verify the required parameter 'repository_href' is set
|
|
106
|
+
if @api_client.config.client_side_validation && repository_href.nil?
|
|
107
|
+
fail ArgumentError, "Missing the required parameter 'repository_href' when calling RepositoriesApi.delete"
|
|
108
|
+
end
|
|
109
|
+
# resource path
|
|
110
|
+
local_var_path = '{repository_href}'.sub('{' + 'repository_href' + '}', CGI.escape(repository_href.to_s).gsub('%2F', '/'))
|
|
111
|
+
|
|
112
|
+
# query parameters
|
|
113
|
+
query_params = opts[:query_params] || {}
|
|
114
|
+
|
|
115
|
+
# header parameters
|
|
116
|
+
header_params = opts[:header_params] || {}
|
|
117
|
+
# HTTP header 'Accept' (if needed)
|
|
118
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
119
|
+
|
|
120
|
+
# form parameters
|
|
121
|
+
form_params = opts[:form_params] || {}
|
|
122
|
+
|
|
123
|
+
# http body (model)
|
|
124
|
+
post_body = opts[:body]
|
|
125
|
+
|
|
126
|
+
# return_type
|
|
127
|
+
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
|
128
|
+
|
|
129
|
+
# auth_names
|
|
130
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
131
|
+
|
|
132
|
+
new_options = opts.merge(
|
|
133
|
+
:header_params => header_params,
|
|
134
|
+
:query_params => query_params,
|
|
135
|
+
:form_params => form_params,
|
|
136
|
+
:body => post_body,
|
|
137
|
+
:auth_names => auth_names,
|
|
138
|
+
:return_type => return_type
|
|
139
|
+
)
|
|
140
|
+
|
|
141
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
142
|
+
if @api_client.config.debugging
|
|
143
|
+
@api_client.config.logger.debug "API called: RepositoriesApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
144
|
+
end
|
|
145
|
+
return data, status_code, headers
|
|
146
|
+
end
|
|
147
|
+
|
|
22
148
|
# List repositories
|
|
23
|
-
#
|
|
149
|
+
# An immutable repository ViewSet that does not allow the usage of the methods PATCH and PUT.
|
|
24
150
|
# @param [Hash] opts the optional parameters
|
|
25
151
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
26
152
|
# @option opts [String] :name
|
|
@@ -29,7 +155,7 @@ module PulpcoreClient
|
|
|
29
155
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
|
30
156
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
|
31
157
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
32
|
-
# @option opts [String] :ordering
|
|
158
|
+
# @option opts [Array<String>] :ordering Ordering
|
|
33
159
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
34
160
|
# @option opts [String] :fields A list of fields to include in the response.
|
|
35
161
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
@@ -40,7 +166,7 @@ module PulpcoreClient
|
|
|
40
166
|
end
|
|
41
167
|
|
|
42
168
|
# List repositories
|
|
43
|
-
#
|
|
169
|
+
# An immutable repository ViewSet that does not allow the usage of the methods PATCH and PUT.
|
|
44
170
|
# @param [Hash] opts the optional parameters
|
|
45
171
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
46
172
|
# @option opts [String] :name
|
|
@@ -49,7 +175,7 @@ module PulpcoreClient
|
|
|
49
175
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
|
50
176
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
|
51
177
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
52
|
-
# @option opts [String] :ordering
|
|
178
|
+
# @option opts [Array<String>] :ordering Ordering
|
|
53
179
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
54
180
|
# @option opts [String] :fields A list of fields to include in the response.
|
|
55
181
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
@@ -58,6 +184,10 @@ module PulpcoreClient
|
|
|
58
184
|
if @api_client.config.debugging
|
|
59
185
|
@api_client.config.logger.debug 'Calling API: RepositoriesApi.list ...'
|
|
60
186
|
end
|
|
187
|
+
allowable_values = ["-alternatecontentsourcepath", "-content", "-core_pulp_exporter", "-description", "-distributions", "-file_filerepository", "-group_roles", "-name", "-next_version", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-pulpimporterrepository", "-remote", "-repositorycontent", "-retain_repo_versions", "-user_hidden", "-user_roles", "-versions", "alternatecontentsourcepath", "content", "core_pulp_exporter", "description", "distributions", "file_filerepository", "group_roles", "name", "next_version", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "pulpimporterrepository", "remote", "repositorycontent", "retain_repo_versions", "user_hidden", "user_roles", "versions"]
|
|
188
|
+
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
|
189
|
+
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
|
190
|
+
end
|
|
61
191
|
# resource path
|
|
62
192
|
local_var_path = '/pulp/api/v3/repositories/'
|
|
63
193
|
|
|
@@ -70,7 +200,7 @@ module PulpcoreClient
|
|
|
70
200
|
query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
|
|
71
201
|
query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
|
|
72
202
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
73
|
-
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
|
203
|
+
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
|
74
204
|
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
|
75
205
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
|
76
206
|
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
|
@@ -107,5 +237,213 @@ module PulpcoreClient
|
|
|
107
237
|
end
|
|
108
238
|
return data, status_code, headers
|
|
109
239
|
end
|
|
240
|
+
|
|
241
|
+
# Update a repository
|
|
242
|
+
# Trigger an asynchronous partial update task
|
|
243
|
+
# @param repository_href [String]
|
|
244
|
+
# @param patched_repository [PatchedRepository]
|
|
245
|
+
# @param [Hash] opts the optional parameters
|
|
246
|
+
# @return [AsyncOperationResponse]
|
|
247
|
+
def partial_update(repository_href, patched_repository, opts = {})
|
|
248
|
+
data, _status_code, _headers = partial_update_with_http_info(repository_href, patched_repository, opts)
|
|
249
|
+
data
|
|
250
|
+
end
|
|
251
|
+
|
|
252
|
+
# Update a repository
|
|
253
|
+
# Trigger an asynchronous partial update task
|
|
254
|
+
# @param repository_href [String]
|
|
255
|
+
# @param patched_repository [PatchedRepository]
|
|
256
|
+
# @param [Hash] opts the optional parameters
|
|
257
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
|
258
|
+
def partial_update_with_http_info(repository_href, patched_repository, opts = {})
|
|
259
|
+
if @api_client.config.debugging
|
|
260
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesApi.partial_update ...'
|
|
261
|
+
end
|
|
262
|
+
# verify the required parameter 'repository_href' is set
|
|
263
|
+
if @api_client.config.client_side_validation && repository_href.nil?
|
|
264
|
+
fail ArgumentError, "Missing the required parameter 'repository_href' when calling RepositoriesApi.partial_update"
|
|
265
|
+
end
|
|
266
|
+
# verify the required parameter 'patched_repository' is set
|
|
267
|
+
if @api_client.config.client_side_validation && patched_repository.nil?
|
|
268
|
+
fail ArgumentError, "Missing the required parameter 'patched_repository' when calling RepositoriesApi.partial_update"
|
|
269
|
+
end
|
|
270
|
+
# resource path
|
|
271
|
+
local_var_path = '{repository_href}'.sub('{' + 'repository_href' + '}', CGI.escape(repository_href.to_s).gsub('%2F', '/'))
|
|
272
|
+
|
|
273
|
+
# query parameters
|
|
274
|
+
query_params = opts[:query_params] || {}
|
|
275
|
+
|
|
276
|
+
# header parameters
|
|
277
|
+
header_params = opts[:header_params] || {}
|
|
278
|
+
# HTTP header 'Accept' (if needed)
|
|
279
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
280
|
+
# HTTP header 'Content-Type'
|
|
281
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
|
282
|
+
|
|
283
|
+
# form parameters
|
|
284
|
+
form_params = opts[:form_params] || {}
|
|
285
|
+
|
|
286
|
+
# http body (model)
|
|
287
|
+
post_body = opts[:body] || @api_client.object_to_http_body(patched_repository)
|
|
288
|
+
|
|
289
|
+
# return_type
|
|
290
|
+
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
|
291
|
+
|
|
292
|
+
# auth_names
|
|
293
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
294
|
+
|
|
295
|
+
new_options = opts.merge(
|
|
296
|
+
:header_params => header_params,
|
|
297
|
+
:query_params => query_params,
|
|
298
|
+
:form_params => form_params,
|
|
299
|
+
:body => post_body,
|
|
300
|
+
:auth_names => auth_names,
|
|
301
|
+
:return_type => return_type
|
|
302
|
+
)
|
|
303
|
+
|
|
304
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
305
|
+
if @api_client.config.debugging
|
|
306
|
+
@api_client.config.logger.debug "API called: RepositoriesApi#partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
307
|
+
end
|
|
308
|
+
return data, status_code, headers
|
|
309
|
+
end
|
|
310
|
+
|
|
311
|
+
# Inspect a repository
|
|
312
|
+
# An immutable repository ViewSet that does not allow the usage of the methods PATCH and PUT.
|
|
313
|
+
# @param repository_href [String]
|
|
314
|
+
# @param [Hash] opts the optional parameters
|
|
315
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
|
316
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
317
|
+
# @return [RepositoryResponse]
|
|
318
|
+
def read(repository_href, opts = {})
|
|
319
|
+
data, _status_code, _headers = read_with_http_info(repository_href, opts)
|
|
320
|
+
data
|
|
321
|
+
end
|
|
322
|
+
|
|
323
|
+
# Inspect a repository
|
|
324
|
+
# An immutable repository ViewSet that does not allow the usage of the methods PATCH and PUT.
|
|
325
|
+
# @param repository_href [String]
|
|
326
|
+
# @param [Hash] opts the optional parameters
|
|
327
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
|
328
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
329
|
+
# @return [Array<(RepositoryResponse, Integer, Hash)>] RepositoryResponse data, response status code and response headers
|
|
330
|
+
def read_with_http_info(repository_href, opts = {})
|
|
331
|
+
if @api_client.config.debugging
|
|
332
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesApi.read ...'
|
|
333
|
+
end
|
|
334
|
+
# verify the required parameter 'repository_href' is set
|
|
335
|
+
if @api_client.config.client_side_validation && repository_href.nil?
|
|
336
|
+
fail ArgumentError, "Missing the required parameter 'repository_href' when calling RepositoriesApi.read"
|
|
337
|
+
end
|
|
338
|
+
# resource path
|
|
339
|
+
local_var_path = '{repository_href}'.sub('{' + 'repository_href' + '}', CGI.escape(repository_href.to_s).gsub('%2F', '/'))
|
|
340
|
+
|
|
341
|
+
# query parameters
|
|
342
|
+
query_params = opts[:query_params] || {}
|
|
343
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
|
344
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
|
345
|
+
|
|
346
|
+
# header parameters
|
|
347
|
+
header_params = opts[:header_params] || {}
|
|
348
|
+
# HTTP header 'Accept' (if needed)
|
|
349
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
350
|
+
|
|
351
|
+
# form parameters
|
|
352
|
+
form_params = opts[:form_params] || {}
|
|
353
|
+
|
|
354
|
+
# http body (model)
|
|
355
|
+
post_body = opts[:body]
|
|
356
|
+
|
|
357
|
+
# return_type
|
|
358
|
+
return_type = opts[:return_type] || 'RepositoryResponse'
|
|
359
|
+
|
|
360
|
+
# auth_names
|
|
361
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
362
|
+
|
|
363
|
+
new_options = opts.merge(
|
|
364
|
+
:header_params => header_params,
|
|
365
|
+
:query_params => query_params,
|
|
366
|
+
:form_params => form_params,
|
|
367
|
+
:body => post_body,
|
|
368
|
+
:auth_names => auth_names,
|
|
369
|
+
:return_type => return_type
|
|
370
|
+
)
|
|
371
|
+
|
|
372
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
373
|
+
if @api_client.config.debugging
|
|
374
|
+
@api_client.config.logger.debug "API called: RepositoriesApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
375
|
+
end
|
|
376
|
+
return data, status_code, headers
|
|
377
|
+
end
|
|
378
|
+
|
|
379
|
+
# Update a repository
|
|
380
|
+
# Trigger an asynchronous update task
|
|
381
|
+
# @param repository_href [String]
|
|
382
|
+
# @param repository [Repository]
|
|
383
|
+
# @param [Hash] opts the optional parameters
|
|
384
|
+
# @return [AsyncOperationResponse]
|
|
385
|
+
def update(repository_href, repository, opts = {})
|
|
386
|
+
data, _status_code, _headers = update_with_http_info(repository_href, repository, opts)
|
|
387
|
+
data
|
|
388
|
+
end
|
|
389
|
+
|
|
390
|
+
# Update a repository
|
|
391
|
+
# Trigger an asynchronous update task
|
|
392
|
+
# @param repository_href [String]
|
|
393
|
+
# @param repository [Repository]
|
|
394
|
+
# @param [Hash] opts the optional parameters
|
|
395
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
|
396
|
+
def update_with_http_info(repository_href, repository, opts = {})
|
|
397
|
+
if @api_client.config.debugging
|
|
398
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesApi.update ...'
|
|
399
|
+
end
|
|
400
|
+
# verify the required parameter 'repository_href' is set
|
|
401
|
+
if @api_client.config.client_side_validation && repository_href.nil?
|
|
402
|
+
fail ArgumentError, "Missing the required parameter 'repository_href' when calling RepositoriesApi.update"
|
|
403
|
+
end
|
|
404
|
+
# verify the required parameter 'repository' is set
|
|
405
|
+
if @api_client.config.client_side_validation && repository.nil?
|
|
406
|
+
fail ArgumentError, "Missing the required parameter 'repository' when calling RepositoriesApi.update"
|
|
407
|
+
end
|
|
408
|
+
# resource path
|
|
409
|
+
local_var_path = '{repository_href}'.sub('{' + 'repository_href' + '}', CGI.escape(repository_href.to_s).gsub('%2F', '/'))
|
|
410
|
+
|
|
411
|
+
# query parameters
|
|
412
|
+
query_params = opts[:query_params] || {}
|
|
413
|
+
|
|
414
|
+
# header parameters
|
|
415
|
+
header_params = opts[:header_params] || {}
|
|
416
|
+
# HTTP header 'Accept' (if needed)
|
|
417
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
418
|
+
# HTTP header 'Content-Type'
|
|
419
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
|
420
|
+
|
|
421
|
+
# form parameters
|
|
422
|
+
form_params = opts[:form_params] || {}
|
|
423
|
+
|
|
424
|
+
# http body (model)
|
|
425
|
+
post_body = opts[:body] || @api_client.object_to_http_body(repository)
|
|
426
|
+
|
|
427
|
+
# return_type
|
|
428
|
+
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
|
429
|
+
|
|
430
|
+
# auth_names
|
|
431
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
432
|
+
|
|
433
|
+
new_options = opts.merge(
|
|
434
|
+
:header_params => header_params,
|
|
435
|
+
:query_params => query_params,
|
|
436
|
+
:form_params => form_params,
|
|
437
|
+
:body => post_body,
|
|
438
|
+
:auth_names => auth_names,
|
|
439
|
+
:return_type => return_type
|
|
440
|
+
)
|
|
441
|
+
|
|
442
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
443
|
+
if @api_client.config.debugging
|
|
444
|
+
@api_client.config.logger.debug "API called: RepositoriesApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
445
|
+
end
|
|
446
|
+
return data, status_code, headers
|
|
447
|
+
end
|
|
110
448
|
end
|
|
111
449
|
end
|