pulpcore_client 3.21.32 → 3.22.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 +147 -143
- data/docs/AccessPoliciesApi.md +28 -28
- data/docs/ArtifactDistributionResponse.md +29 -0
- data/docs/ArtifactsApi.md +21 -21
- data/docs/ContentApi.md +6 -6
- data/docs/ContentSettingsResponse.md +19 -0
- data/docs/ContentguardsApi.md +8 -8
- data/docs/ContentguardsContentRedirectApi.md +53 -53
- data/docs/ContentguardsRbacApi.md +53 -53
- data/docs/DistributionResponse.md +1 -1
- data/docs/DistributionsApi.md +11 -11
- data/docs/DistributionsArtifactsApi.md +154 -0
- data/docs/ExportersFilesystemApi.md +33 -33
- data/docs/ExportersFilesystemExportsApi.md +21 -21
- data/docs/ExportersPulpApi.md +33 -33
- data/docs/ExportersPulpExportsApi.md +21 -21
- data/docs/FilesystemExport.md +1 -3
- data/docs/GroupsApi.md +51 -51
- data/docs/GroupsRolesApi.md +21 -21
- data/docs/GroupsUsersApi.md +16 -16
- data/docs/ImportersPulpApi.md +33 -33
- data/docs/ImportersPulpImportCheckApi.md +1 -1
- data/docs/ImportersPulpImportsApi.md +21 -21
- data/docs/OrphansApi.md +6 -6
- data/docs/OrphansCleanupApi.md +6 -6
- data/docs/PaginatedArtifactDistributionResponseList.md +23 -0
- data/docs/PublicationsApi.md +8 -8
- data/docs/RemoteResponse.md +4 -2
- data/docs/RemoteResponseHiddenFields.md +19 -0
- data/docs/RemotesApi.md +10 -10
- data/docs/RepairApi.md +6 -6
- data/docs/RepositoriesApi.md +9 -9
- data/docs/RepositoriesReclaimSpaceApi.md +6 -6
- data/docs/RepositoryResponse.md +1 -1
- data/docs/RepositoryVersionsApi.md +10 -10
- data/docs/RolesApi.md +31 -31
- data/docs/SigningServicesApi.md +15 -13
- data/docs/StatusApi.md +1 -1
- data/docs/StatusResponse.md +3 -1
- data/docs/TaskGroupsApi.md +11 -13
- data/docs/TaskSchedulesApi.md +35 -35
- data/docs/TasksApi.md +128 -114
- data/docs/UploadsApi.md +61 -51
- data/docs/UserResponse.md +3 -1
- data/docs/UsersApi.md +31 -31
- data/docs/UsersRolesApi.md +21 -21
- data/docs/WorkersApi.md +15 -15
- data/lib/pulpcore_client/api/access_policies_api.rb +34 -34
- data/lib/pulpcore_client/api/artifacts_api.rb +30 -30
- data/lib/pulpcore_client/api/content_api.rb +5 -5
- data/lib/pulpcore_client/api/contentguards_api.rb +8 -8
- data/lib/pulpcore_client/api/contentguards_content_redirect_api.rb +66 -66
- data/lib/pulpcore_client/api/contentguards_rbac_api.rb +66 -66
- data/lib/pulpcore_client/api/distributions_api.rb +12 -12
- data/lib/pulpcore_client/api/distributions_artifacts_api.rb +198 -0
- data/lib/pulpcore_client/api/exporters_filesystem_api.rb +40 -40
- data/lib/pulpcore_client/api/exporters_filesystem_exports_api.rb +25 -25
- data/lib/pulpcore_client/api/exporters_pulp_api.rb +40 -40
- data/lib/pulpcore_client/api/exporters_pulp_exports_api.rb +25 -25
- data/lib/pulpcore_client/api/groups_api.rb +64 -64
- data/lib/pulpcore_client/api/groups_roles_api.rb +25 -25
- data/lib/pulpcore_client/api/groups_users_api.rb +19 -19
- data/lib/pulpcore_client/api/importers_pulp_api.rb +40 -40
- data/lib/pulpcore_client/api/importers_pulp_imports_api.rb +25 -25
- data/lib/pulpcore_client/api/orphans_api.rb +5 -5
- data/lib/pulpcore_client/api/orphans_cleanup_api.rb +6 -6
- data/lib/pulpcore_client/api/publications_api.rb +8 -8
- data/lib/pulpcore_client/api/remotes_api.rb +10 -10
- data/lib/pulpcore_client/api/repair_api.rb +6 -6
- data/lib/pulpcore_client/api/repositories_api.rb +8 -8
- data/lib/pulpcore_client/api/repositories_reclaim_space_api.rb +6 -6
- data/lib/pulpcore_client/api/repository_versions_api.rb +10 -10
- data/lib/pulpcore_client/api/roles_api.rb +38 -38
- data/lib/pulpcore_client/api/signing_services_api.rb +20 -13
- data/lib/pulpcore_client/api/task_groups_api.rb +11 -18
- data/lib/pulpcore_client/api/task_schedules_api.rb +42 -42
- data/lib/pulpcore_client/api/tasks_api.rb +159 -138
- data/lib/pulpcore_client/api/uploads_api.rb +84 -65
- data/lib/pulpcore_client/api/users_api.rb +38 -38
- data/lib/pulpcore_client/api/users_roles_api.rb +25 -25
- data/lib/pulpcore_client/api/workers_api.rb +16 -16
- data/lib/pulpcore_client/configuration.rb +3 -3
- data/lib/pulpcore_client/models/artifact_distribution_response.rb +279 -0
- data/lib/pulpcore_client/models/content_settings_response.rb +228 -0
- data/lib/pulpcore_client/models/distribution_response.rb +4 -2
- data/lib/pulpcore_client/models/filesystem_export.rb +4 -14
- data/lib/pulpcore_client/models/group_role.rb +19 -0
- data/lib/pulpcore_client/models/paginated_artifact_distribution_response_list.rb +237 -0
- data/lib/pulpcore_client/models/remote_response.rb +41 -27
- data/lib/pulpcore_client/models/remote_response_hidden_fields.rb +215 -0
- data/lib/pulpcore_client/models/repository_response.rb +4 -2
- data/lib/pulpcore_client/models/status_response.rb +19 -4
- data/lib/pulpcore_client/models/user_response.rb +16 -4
- data/lib/pulpcore_client/models/user_role.rb +19 -0
- data/lib/pulpcore_client/version.rb +1 -1
- data/lib/pulpcore_client.rb +5 -2
- data/spec/api/access_policies_api_spec.rb +11 -11
- data/spec/api/artifacts_api_spec.rb +8 -8
- data/spec/api/content_api_spec.rb +2 -2
- data/spec/api/contentguards_api_spec.rb +3 -3
- data/spec/api/contentguards_content_redirect_api_spec.rb +21 -21
- data/spec/api/contentguards_rbac_api_spec.rb +21 -21
- data/spec/api/distributions_api_spec.rb +5 -5
- data/spec/api/distributions_artifacts_api_spec.rb +76 -0
- data/spec/api/exporters_filesystem_api_spec.rb +13 -13
- data/spec/api/exporters_filesystem_exports_api_spec.rb +8 -8
- data/spec/api/exporters_pulp_api_spec.rb +13 -13
- data/spec/api/exporters_pulp_exports_api_spec.rb +8 -8
- data/spec/api/groups_api_spec.rb +20 -20
- data/spec/api/groups_roles_api_spec.rb +8 -8
- data/spec/api/groups_users_api_spec.rb +6 -6
- data/spec/api/importers_pulp_api_spec.rb +13 -13
- data/spec/api/importers_pulp_imports_api_spec.rb +8 -8
- data/spec/api/orphans_api_spec.rb +2 -2
- data/spec/api/orphans_cleanup_api_spec.rb +2 -2
- data/spec/api/publications_api_spec.rb +3 -3
- data/spec/api/remotes_api_spec.rb +4 -4
- data/spec/api/repair_api_spec.rb +2 -2
- data/spec/api/repositories_api_spec.rb +3 -3
- data/spec/api/repositories_reclaim_space_api_spec.rb +2 -2
- data/spec/api/repository_versions_api_spec.rb +4 -4
- data/spec/api/roles_api_spec.rb +12 -12
- data/spec/api/signing_services_api_spec.rb +6 -5
- data/spec/api/task_groups_api_spec.rb +4 -5
- data/spec/api/task_schedules_api_spec.rb +14 -14
- data/spec/api/tasks_api_spec.rb +45 -38
- data/spec/api/uploads_api_spec.rb +25 -20
- data/spec/api/users_api_spec.rb +12 -12
- data/spec/api/users_roles_api_spec.rb +8 -8
- data/spec/api/workers_api_spec.rb +6 -6
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/artifact_distribution_response_spec.rb +77 -0
- data/spec/models/content_settings_response_spec.rb +47 -0
- data/spec/models/filesystem_export_spec.rb +0 -6
- data/spec/models/paginated_artifact_distribution_response_list_spec.rb +59 -0
- data/spec/models/remote_response_hidden_fields_spec.rb +47 -0
- data/spec/models/remote_response_spec.rb +6 -0
- data/spec/models/status_response_spec.rb +6 -0
- data/spec/models/user_response_spec.rb +6 -0
- metadata +162 -150
- data/docs/DocsApiJsonApi.md +0 -61
- data/docs/DocsApiYamlApi.md +0 -61
- data/lib/pulpcore_client/api/docs_api_json_api.rb +0 -89
- data/lib/pulpcore_client/api/docs_api_yaml_api.rb +0 -89
- data/spec/api/docs_api_json_api_spec.rb +0 -48
- data/spec/api/docs_api_yaml_api_spec.rb +0 -48
|
@@ -24,8 +24,8 @@ module PulpcoreClient
|
|
|
24
24
|
# @param pulp_importer [PulpImporter]
|
|
25
25
|
# @param [Hash] opts the optional parameters
|
|
26
26
|
# @return [PulpImporterResponse]
|
|
27
|
-
def
|
|
28
|
-
data, _status_code, _headers =
|
|
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
|
|
|
@@ -34,13 +34,13 @@ module PulpcoreClient
|
|
|
34
34
|
# @param pulp_importer [PulpImporter]
|
|
35
35
|
# @param [Hash] opts the optional parameters
|
|
36
36
|
# @return [Array<(PulpImporterResponse, Integer, Hash)>] PulpImporterResponse data, response status code and response headers
|
|
37
|
-
def
|
|
37
|
+
def create_with_http_info(pulp_importer, opts = {})
|
|
38
38
|
if @api_client.config.debugging
|
|
39
|
-
@api_client.config.logger.debug 'Calling API: ImportersPulpApi.
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: ImportersPulpApi.create ...'
|
|
40
40
|
end
|
|
41
41
|
# verify the required parameter 'pulp_importer' is set
|
|
42
42
|
if @api_client.config.client_side_validation && pulp_importer.nil?
|
|
43
|
-
fail ArgumentError, "Missing the required parameter 'pulp_importer' when calling ImportersPulpApi.
|
|
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/'
|
|
@@ -78,7 +78,7 @@ module PulpcoreClient
|
|
|
78
78
|
|
|
79
79
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
80
80
|
if @api_client.config.debugging
|
|
81
|
-
@api_client.config.logger.debug "API called: ImportersPulpApi#
|
|
81
|
+
@api_client.config.logger.debug "API called: ImportersPulpApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
82
82
|
end
|
|
83
83
|
return data, status_code, headers
|
|
84
84
|
end
|
|
@@ -88,8 +88,8 @@ module PulpcoreClient
|
|
|
88
88
|
# @param pulp_importer_href [String]
|
|
89
89
|
# @param [Hash] opts the optional parameters
|
|
90
90
|
# @return [nil]
|
|
91
|
-
def
|
|
92
|
-
|
|
91
|
+
def delete(pulp_importer_href, opts = {})
|
|
92
|
+
delete_with_http_info(pulp_importer_href, opts)
|
|
93
93
|
nil
|
|
94
94
|
end
|
|
95
95
|
|
|
@@ -98,13 +98,13 @@ module PulpcoreClient
|
|
|
98
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
|
-
def
|
|
101
|
+
def delete_with_http_info(pulp_importer_href, opts = {})
|
|
102
102
|
if @api_client.config.debugging
|
|
103
|
-
@api_client.config.logger.debug 'Calling API: ImportersPulpApi.
|
|
103
|
+
@api_client.config.logger.debug 'Calling API: ImportersPulpApi.delete ...'
|
|
104
104
|
end
|
|
105
105
|
# verify the required parameter 'pulp_importer_href' is set
|
|
106
106
|
if @api_client.config.client_side_validation && pulp_importer_href.nil?
|
|
107
|
-
fail ArgumentError, "Missing the required parameter 'pulp_importer_href' when calling ImportersPulpApi.
|
|
107
|
+
fail ArgumentError, "Missing the required parameter 'pulp_importer_href' when calling ImportersPulpApi.delete"
|
|
108
108
|
end
|
|
109
109
|
# resource path
|
|
110
110
|
local_var_path = '{pulp_importer_href}'.sub('{' + 'pulp_importer_href' + '}', CGI.escape(pulp_importer_href.to_s).gsub('%2F', '/'))
|
|
@@ -138,7 +138,7 @@ module PulpcoreClient
|
|
|
138
138
|
|
|
139
139
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
140
140
|
if @api_client.config.debugging
|
|
141
|
-
@api_client.config.logger.debug "API called: ImportersPulpApi#
|
|
141
|
+
@api_client.config.logger.debug "API called: ImportersPulpApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
142
142
|
end
|
|
143
143
|
return data, status_code, headers
|
|
144
144
|
end
|
|
@@ -147,7 +147,7 @@ module PulpcoreClient
|
|
|
147
147
|
# ViewSet for PulpImporters.
|
|
148
148
|
# @param [Hash] opts the optional parameters
|
|
149
149
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
150
|
-
# @option opts [String] :name
|
|
150
|
+
# @option opts [String] :name Filter results where name matches value
|
|
151
151
|
# @option opts [String] :name__contains Filter results where name contains value
|
|
152
152
|
# @option opts [String] :name__icontains Filter results where name contains value
|
|
153
153
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
|
@@ -157,8 +157,8 @@ module PulpcoreClient
|
|
|
157
157
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
158
158
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
159
159
|
# @return [PaginatedPulpImporterResponseList]
|
|
160
|
-
def
|
|
161
|
-
data, _status_code, _headers =
|
|
160
|
+
def list(opts = {})
|
|
161
|
+
data, _status_code, _headers = list_with_http_info(opts)
|
|
162
162
|
data
|
|
163
163
|
end
|
|
164
164
|
|
|
@@ -166,7 +166,7 @@ module PulpcoreClient
|
|
|
166
166
|
# ViewSet for PulpImporters.
|
|
167
167
|
# @param [Hash] opts the optional parameters
|
|
168
168
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
169
|
-
# @option opts [String] :name
|
|
169
|
+
# @option opts [String] :name Filter results where name matches value
|
|
170
170
|
# @option opts [String] :name__contains Filter results where name contains value
|
|
171
171
|
# @option opts [String] :name__icontains Filter results where name contains value
|
|
172
172
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
|
@@ -176,11 +176,11 @@ module PulpcoreClient
|
|
|
176
176
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
177
177
|
# @option opts [Array<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
|
|
179
|
-
def
|
|
179
|
+
def list_with_http_info(opts = {})
|
|
180
180
|
if @api_client.config.debugging
|
|
181
|
-
@api_client.config.logger.debug 'Calling API: ImportersPulpApi.
|
|
181
|
+
@api_client.config.logger.debug 'Calling API: ImportersPulpApi.list ...'
|
|
182
182
|
end
|
|
183
|
-
allowable_values = ["-
|
|
183
|
+
allowable_values = ["-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "name", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type"]
|
|
184
184
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
|
185
185
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
|
186
186
|
end
|
|
@@ -228,7 +228,7 @@ module PulpcoreClient
|
|
|
228
228
|
|
|
229
229
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
230
230
|
if @api_client.config.debugging
|
|
231
|
-
@api_client.config.logger.debug "API called: ImportersPulpApi#
|
|
231
|
+
@api_client.config.logger.debug "API called: ImportersPulpApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
232
232
|
end
|
|
233
233
|
return data, status_code, headers
|
|
234
234
|
end
|
|
@@ -239,8 +239,8 @@ module PulpcoreClient
|
|
|
239
239
|
# @param patched_pulp_importer [PatchedPulpImporter]
|
|
240
240
|
# @param [Hash] opts the optional parameters
|
|
241
241
|
# @return [PulpImporterResponse]
|
|
242
|
-
def
|
|
243
|
-
data, _status_code, _headers =
|
|
242
|
+
def partial_update(pulp_importer_href, patched_pulp_importer, opts = {})
|
|
243
|
+
data, _status_code, _headers = partial_update_with_http_info(pulp_importer_href, patched_pulp_importer, opts)
|
|
244
244
|
data
|
|
245
245
|
end
|
|
246
246
|
|
|
@@ -250,17 +250,17 @@ module PulpcoreClient
|
|
|
250
250
|
# @param patched_pulp_importer [PatchedPulpImporter]
|
|
251
251
|
# @param [Hash] opts the optional parameters
|
|
252
252
|
# @return [Array<(PulpImporterResponse, Integer, Hash)>] PulpImporterResponse data, response status code and response headers
|
|
253
|
-
def
|
|
253
|
+
def partial_update_with_http_info(pulp_importer_href, patched_pulp_importer, opts = {})
|
|
254
254
|
if @api_client.config.debugging
|
|
255
|
-
@api_client.config.logger.debug 'Calling API: ImportersPulpApi.
|
|
255
|
+
@api_client.config.logger.debug 'Calling API: ImportersPulpApi.partial_update ...'
|
|
256
256
|
end
|
|
257
257
|
# verify the required parameter 'pulp_importer_href' is set
|
|
258
258
|
if @api_client.config.client_side_validation && pulp_importer_href.nil?
|
|
259
|
-
fail ArgumentError, "Missing the required parameter 'pulp_importer_href' when calling ImportersPulpApi.
|
|
259
|
+
fail ArgumentError, "Missing the required parameter 'pulp_importer_href' when calling ImportersPulpApi.partial_update"
|
|
260
260
|
end
|
|
261
261
|
# verify the required parameter 'patched_pulp_importer' is set
|
|
262
262
|
if @api_client.config.client_side_validation && patched_pulp_importer.nil?
|
|
263
|
-
fail ArgumentError, "Missing the required parameter 'patched_pulp_importer' when calling ImportersPulpApi.
|
|
263
|
+
fail ArgumentError, "Missing the required parameter 'patched_pulp_importer' when calling ImportersPulpApi.partial_update"
|
|
264
264
|
end
|
|
265
265
|
# resource path
|
|
266
266
|
local_var_path = '{pulp_importer_href}'.sub('{' + 'pulp_importer_href' + '}', CGI.escape(pulp_importer_href.to_s).gsub('%2F', '/'))
|
|
@@ -298,7 +298,7 @@ module PulpcoreClient
|
|
|
298
298
|
|
|
299
299
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
300
300
|
if @api_client.config.debugging
|
|
301
|
-
@api_client.config.logger.debug "API called: ImportersPulpApi#
|
|
301
|
+
@api_client.config.logger.debug "API called: ImportersPulpApi#partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
302
302
|
end
|
|
303
303
|
return data, status_code, headers
|
|
304
304
|
end
|
|
@@ -310,8 +310,8 @@ module PulpcoreClient
|
|
|
310
310
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
311
311
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
312
312
|
# @return [PulpImporterResponse]
|
|
313
|
-
def
|
|
314
|
-
data, _status_code, _headers =
|
|
313
|
+
def read(pulp_importer_href, opts = {})
|
|
314
|
+
data, _status_code, _headers = read_with_http_info(pulp_importer_href, opts)
|
|
315
315
|
data
|
|
316
316
|
end
|
|
317
317
|
|
|
@@ -322,13 +322,13 @@ module PulpcoreClient
|
|
|
322
322
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
323
323
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
324
324
|
# @return [Array<(PulpImporterResponse, Integer, Hash)>] PulpImporterResponse data, response status code and response headers
|
|
325
|
-
def
|
|
325
|
+
def read_with_http_info(pulp_importer_href, opts = {})
|
|
326
326
|
if @api_client.config.debugging
|
|
327
|
-
@api_client.config.logger.debug 'Calling API: ImportersPulpApi.
|
|
327
|
+
@api_client.config.logger.debug 'Calling API: ImportersPulpApi.read ...'
|
|
328
328
|
end
|
|
329
329
|
# verify the required parameter 'pulp_importer_href' is set
|
|
330
330
|
if @api_client.config.client_side_validation && pulp_importer_href.nil?
|
|
331
|
-
fail ArgumentError, "Missing the required parameter 'pulp_importer_href' when calling ImportersPulpApi.
|
|
331
|
+
fail ArgumentError, "Missing the required parameter 'pulp_importer_href' when calling ImportersPulpApi.read"
|
|
332
332
|
end
|
|
333
333
|
# resource path
|
|
334
334
|
local_var_path = '{pulp_importer_href}'.sub('{' + 'pulp_importer_href' + '}', CGI.escape(pulp_importer_href.to_s).gsub('%2F', '/'))
|
|
@@ -366,7 +366,7 @@ module PulpcoreClient
|
|
|
366
366
|
|
|
367
367
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
368
368
|
if @api_client.config.debugging
|
|
369
|
-
@api_client.config.logger.debug "API called: ImportersPulpApi#
|
|
369
|
+
@api_client.config.logger.debug "API called: ImportersPulpApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
370
370
|
end
|
|
371
371
|
return data, status_code, headers
|
|
372
372
|
end
|
|
@@ -377,8 +377,8 @@ module PulpcoreClient
|
|
|
377
377
|
# @param pulp_importer [PulpImporter]
|
|
378
378
|
# @param [Hash] opts the optional parameters
|
|
379
379
|
# @return [PulpImporterResponse]
|
|
380
|
-
def
|
|
381
|
-
data, _status_code, _headers =
|
|
380
|
+
def update(pulp_importer_href, pulp_importer, opts = {})
|
|
381
|
+
data, _status_code, _headers = update_with_http_info(pulp_importer_href, pulp_importer, opts)
|
|
382
382
|
data
|
|
383
383
|
end
|
|
384
384
|
|
|
@@ -388,17 +388,17 @@ module PulpcoreClient
|
|
|
388
388
|
# @param pulp_importer [PulpImporter]
|
|
389
389
|
# @param [Hash] opts the optional parameters
|
|
390
390
|
# @return [Array<(PulpImporterResponse, Integer, Hash)>] PulpImporterResponse data, response status code and response headers
|
|
391
|
-
def
|
|
391
|
+
def update_with_http_info(pulp_importer_href, pulp_importer, opts = {})
|
|
392
392
|
if @api_client.config.debugging
|
|
393
|
-
@api_client.config.logger.debug 'Calling API: ImportersPulpApi.
|
|
393
|
+
@api_client.config.logger.debug 'Calling API: ImportersPulpApi.update ...'
|
|
394
394
|
end
|
|
395
395
|
# verify the required parameter 'pulp_importer_href' is set
|
|
396
396
|
if @api_client.config.client_side_validation && pulp_importer_href.nil?
|
|
397
|
-
fail ArgumentError, "Missing the required parameter 'pulp_importer_href' when calling ImportersPulpApi.
|
|
397
|
+
fail ArgumentError, "Missing the required parameter 'pulp_importer_href' when calling ImportersPulpApi.update"
|
|
398
398
|
end
|
|
399
399
|
# verify the required parameter 'pulp_importer' is set
|
|
400
400
|
if @api_client.config.client_side_validation && pulp_importer.nil?
|
|
401
|
-
fail ArgumentError, "Missing the required parameter 'pulp_importer' when calling ImportersPulpApi.
|
|
401
|
+
fail ArgumentError, "Missing the required parameter 'pulp_importer' when calling ImportersPulpApi.update"
|
|
402
402
|
end
|
|
403
403
|
# resource path
|
|
404
404
|
local_var_path = '{pulp_importer_href}'.sub('{' + 'pulp_importer_href' + '}', CGI.escape(pulp_importer_href.to_s).gsub('%2F', '/'))
|
|
@@ -436,7 +436,7 @@ module PulpcoreClient
|
|
|
436
436
|
|
|
437
437
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
438
438
|
if @api_client.config.debugging
|
|
439
|
-
@api_client.config.logger.debug "API called: ImportersPulpApi#
|
|
439
|
+
@api_client.config.logger.debug "API called: ImportersPulpApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
440
440
|
end
|
|
441
441
|
return data, status_code, headers
|
|
442
442
|
end
|
|
@@ -25,8 +25,8 @@ module PulpcoreClient
|
|
|
25
25
|
# @param pulp_import [PulpImport]
|
|
26
26
|
# @param [Hash] opts the optional parameters
|
|
27
27
|
# @return [TaskGroupOperationResponse]
|
|
28
|
-
def
|
|
29
|
-
data, _status_code, _headers =
|
|
28
|
+
def create(pulp_importer_href, pulp_import, opts = {})
|
|
29
|
+
data, _status_code, _headers = create_with_http_info(pulp_importer_href, pulp_import, opts)
|
|
30
30
|
data
|
|
31
31
|
end
|
|
32
32
|
|
|
@@ -36,17 +36,17 @@ module PulpcoreClient
|
|
|
36
36
|
# @param pulp_import [PulpImport]
|
|
37
37
|
# @param [Hash] opts the optional parameters
|
|
38
38
|
# @return [Array<(TaskGroupOperationResponse, Integer, Hash)>] TaskGroupOperationResponse data, response status code and response headers
|
|
39
|
-
def
|
|
39
|
+
def create_with_http_info(pulp_importer_href, pulp_import, opts = {})
|
|
40
40
|
if @api_client.config.debugging
|
|
41
|
-
@api_client.config.logger.debug 'Calling API: ImportersPulpImportsApi.
|
|
41
|
+
@api_client.config.logger.debug 'Calling API: ImportersPulpImportsApi.create ...'
|
|
42
42
|
end
|
|
43
43
|
# verify the required parameter 'pulp_importer_href' is set
|
|
44
44
|
if @api_client.config.client_side_validation && pulp_importer_href.nil?
|
|
45
|
-
fail ArgumentError, "Missing the required parameter 'pulp_importer_href' when calling ImportersPulpImportsApi.
|
|
45
|
+
fail ArgumentError, "Missing the required parameter 'pulp_importer_href' when calling ImportersPulpImportsApi.create"
|
|
46
46
|
end
|
|
47
47
|
# verify the required parameter 'pulp_import' is set
|
|
48
48
|
if @api_client.config.client_side_validation && pulp_import.nil?
|
|
49
|
-
fail ArgumentError, "Missing the required parameter 'pulp_import' when calling ImportersPulpImportsApi.
|
|
49
|
+
fail ArgumentError, "Missing the required parameter 'pulp_import' when calling ImportersPulpImportsApi.create"
|
|
50
50
|
end
|
|
51
51
|
# resource path
|
|
52
52
|
local_var_path = '{pulp_importer_href}imports/'.sub('{' + 'pulp_importer_href' + '}', CGI.escape(pulp_importer_href.to_s).gsub('%2F', '/'))
|
|
@@ -84,7 +84,7 @@ 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: ImportersPulpImportsApi#
|
|
87
|
+
@api_client.config.logger.debug "API called: ImportersPulpImportsApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
88
88
|
end
|
|
89
89
|
return data, status_code, headers
|
|
90
90
|
end
|
|
@@ -94,8 +94,8 @@ module PulpcoreClient
|
|
|
94
94
|
# @param pulp_pulp_import_href [String]
|
|
95
95
|
# @param [Hash] opts the optional parameters
|
|
96
96
|
# @return [nil]
|
|
97
|
-
def
|
|
98
|
-
|
|
97
|
+
def delete(pulp_pulp_import_href, opts = {})
|
|
98
|
+
delete_with_http_info(pulp_pulp_import_href, opts)
|
|
99
99
|
nil
|
|
100
100
|
end
|
|
101
101
|
|
|
@@ -104,13 +104,13 @@ module PulpcoreClient
|
|
|
104
104
|
# @param 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
|
|
107
|
+
def delete_with_http_info(pulp_pulp_import_href, opts = {})
|
|
108
108
|
if @api_client.config.debugging
|
|
109
|
-
@api_client.config.logger.debug 'Calling API: ImportersPulpImportsApi.
|
|
109
|
+
@api_client.config.logger.debug 'Calling API: ImportersPulpImportsApi.delete ...'
|
|
110
110
|
end
|
|
111
111
|
# verify the required parameter 'pulp_pulp_import_href' is set
|
|
112
112
|
if @api_client.config.client_side_validation && pulp_pulp_import_href.nil?
|
|
113
|
-
fail ArgumentError, "Missing the required parameter 'pulp_pulp_import_href' when calling ImportersPulpImportsApi.
|
|
113
|
+
fail ArgumentError, "Missing the required parameter 'pulp_pulp_import_href' when calling ImportersPulpImportsApi.delete"
|
|
114
114
|
end
|
|
115
115
|
# resource path
|
|
116
116
|
local_var_path = '{pulp_pulp_import_href}'.sub('{' + 'pulp_pulp_import_href' + '}', CGI.escape(pulp_pulp_import_href.to_s).gsub('%2F', '/'))
|
|
@@ -144,7 +144,7 @@ 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: ImportersPulpImportsApi#
|
|
147
|
+
@api_client.config.logger.debug "API called: ImportersPulpImportsApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
148
148
|
end
|
|
149
149
|
return data, status_code, headers
|
|
150
150
|
end
|
|
@@ -158,8 +158,8 @@ module PulpcoreClient
|
|
|
158
158
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
159
159
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
160
160
|
# @return [PaginatedImportResponseList]
|
|
161
|
-
def
|
|
162
|
-
data, _status_code, _headers =
|
|
161
|
+
def list(pulp_importer_href, opts = {})
|
|
162
|
+
data, _status_code, _headers = list_with_http_info(pulp_importer_href, opts)
|
|
163
163
|
data
|
|
164
164
|
end
|
|
165
165
|
|
|
@@ -172,13 +172,13 @@ module PulpcoreClient
|
|
|
172
172
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
173
173
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
174
174
|
# @return [Array<(PaginatedImportResponseList, Integer, Hash)>] PaginatedImportResponseList data, response status code and response headers
|
|
175
|
-
def
|
|
175
|
+
def list_with_http_info(pulp_importer_href, opts = {})
|
|
176
176
|
if @api_client.config.debugging
|
|
177
|
-
@api_client.config.logger.debug 'Calling API: ImportersPulpImportsApi.
|
|
177
|
+
@api_client.config.logger.debug 'Calling API: ImportersPulpImportsApi.list ...'
|
|
178
178
|
end
|
|
179
179
|
# verify the required parameter 'pulp_importer_href' is set
|
|
180
180
|
if @api_client.config.client_side_validation && pulp_importer_href.nil?
|
|
181
|
-
fail ArgumentError, "Missing the required parameter 'pulp_importer_href' when calling ImportersPulpImportsApi.
|
|
181
|
+
fail ArgumentError, "Missing the required parameter 'pulp_importer_href' when calling ImportersPulpImportsApi.list"
|
|
182
182
|
end
|
|
183
183
|
# resource path
|
|
184
184
|
local_var_path = '{pulp_importer_href}imports/'.sub('{' + 'pulp_importer_href' + '}', CGI.escape(pulp_importer_href.to_s).gsub('%2F', '/'))
|
|
@@ -218,7 +218,7 @@ module PulpcoreClient
|
|
|
218
218
|
|
|
219
219
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
220
220
|
if @api_client.config.debugging
|
|
221
|
-
@api_client.config.logger.debug "API called: ImportersPulpImportsApi#
|
|
221
|
+
@api_client.config.logger.debug "API called: ImportersPulpImportsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
222
222
|
end
|
|
223
223
|
return data, status_code, headers
|
|
224
224
|
end
|
|
@@ -230,8 +230,8 @@ module PulpcoreClient
|
|
|
230
230
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
231
231
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
232
232
|
# @return [ImportResponse]
|
|
233
|
-
def
|
|
234
|
-
data, _status_code, _headers =
|
|
233
|
+
def read(pulp_pulp_import_href, opts = {})
|
|
234
|
+
data, _status_code, _headers = read_with_http_info(pulp_pulp_import_href, opts)
|
|
235
235
|
data
|
|
236
236
|
end
|
|
237
237
|
|
|
@@ -242,13 +242,13 @@ module PulpcoreClient
|
|
|
242
242
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
243
243
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
244
244
|
# @return [Array<(ImportResponse, Integer, Hash)>] ImportResponse data, response status code and response headers
|
|
245
|
-
def
|
|
245
|
+
def read_with_http_info(pulp_pulp_import_href, opts = {})
|
|
246
246
|
if @api_client.config.debugging
|
|
247
|
-
@api_client.config.logger.debug 'Calling API: ImportersPulpImportsApi.
|
|
247
|
+
@api_client.config.logger.debug 'Calling API: ImportersPulpImportsApi.read ...'
|
|
248
248
|
end
|
|
249
249
|
# verify the required parameter 'pulp_pulp_import_href' is set
|
|
250
250
|
if @api_client.config.client_side_validation && pulp_pulp_import_href.nil?
|
|
251
|
-
fail ArgumentError, "Missing the required parameter 'pulp_pulp_import_href' when calling ImportersPulpImportsApi.
|
|
251
|
+
fail ArgumentError, "Missing the required parameter 'pulp_pulp_import_href' when calling ImportersPulpImportsApi.read"
|
|
252
252
|
end
|
|
253
253
|
# resource path
|
|
254
254
|
local_var_path = '{pulp_pulp_import_href}'.sub('{' + 'pulp_pulp_import_href' + '}', CGI.escape(pulp_pulp_import_href.to_s).gsub('%2F', '/'))
|
|
@@ -286,7 +286,7 @@ module PulpcoreClient
|
|
|
286
286
|
|
|
287
287
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
288
288
|
if @api_client.config.debugging
|
|
289
|
-
@api_client.config.logger.debug "API called: ImportersPulpImportsApi#
|
|
289
|
+
@api_client.config.logger.debug "API called: ImportersPulpImportsApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
290
290
|
end
|
|
291
291
|
return data, status_code, headers
|
|
292
292
|
end
|
|
@@ -23,8 +23,8 @@ module PulpcoreClient
|
|
|
23
23
|
# DEPRECATED! Trigger an asynchronous task that deletes all orphaned content and artifacts. Use the `POST /pulp/api/v3/orphans/cleanup/` call instead.
|
|
24
24
|
# @param [Hash] opts the optional parameters
|
|
25
25
|
# @return [AsyncOperationResponse]
|
|
26
|
-
def
|
|
27
|
-
data, _status_code, _headers =
|
|
26
|
+
def delete(opts = {})
|
|
27
|
+
data, _status_code, _headers = delete_with_http_info(opts)
|
|
28
28
|
data
|
|
29
29
|
end
|
|
30
30
|
|
|
@@ -32,9 +32,9 @@ module PulpcoreClient
|
|
|
32
32
|
# DEPRECATED! Trigger an asynchronous task that deletes all orphaned content and artifacts. Use the `POST /pulp/api/v3/orphans/cleanup/` call instead.
|
|
33
33
|
# @param [Hash] opts the optional parameters
|
|
34
34
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
|
35
|
-
def
|
|
35
|
+
def delete_with_http_info(opts = {})
|
|
36
36
|
if @api_client.config.debugging
|
|
37
|
-
@api_client.config.logger.debug 'Calling API: OrphansApi.
|
|
37
|
+
@api_client.config.logger.debug 'Calling API: OrphansApi.delete ...'
|
|
38
38
|
end
|
|
39
39
|
# resource path
|
|
40
40
|
local_var_path = '/pulp/api/v3/orphans/'
|
|
@@ -70,7 +70,7 @@ module PulpcoreClient
|
|
|
70
70
|
|
|
71
71
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
72
72
|
if @api_client.config.debugging
|
|
73
|
-
@api_client.config.logger.debug "API called: OrphansApi#
|
|
73
|
+
@api_client.config.logger.debug "API called: OrphansApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
74
74
|
end
|
|
75
75
|
return data, status_code, headers
|
|
76
76
|
end
|
|
@@ -23,8 +23,8 @@ module PulpcoreClient
|
|
|
23
23
|
# @param orphans_cleanup [OrphansCleanup]
|
|
24
24
|
# @param [Hash] opts the optional parameters
|
|
25
25
|
# @return [AsyncOperationResponse]
|
|
26
|
-
def
|
|
27
|
-
data, _status_code, _headers =
|
|
26
|
+
def cleanup(orphans_cleanup, opts = {})
|
|
27
|
+
data, _status_code, _headers = cleanup_with_http_info(orphans_cleanup, opts)
|
|
28
28
|
data
|
|
29
29
|
end
|
|
30
30
|
|
|
@@ -32,13 +32,13 @@ module PulpcoreClient
|
|
|
32
32
|
# @param orphans_cleanup [OrphansCleanup]
|
|
33
33
|
# @param [Hash] opts the optional parameters
|
|
34
34
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
|
35
|
-
def
|
|
35
|
+
def cleanup_with_http_info(orphans_cleanup, opts = {})
|
|
36
36
|
if @api_client.config.debugging
|
|
37
|
-
@api_client.config.logger.debug 'Calling API: OrphansCleanupApi.
|
|
37
|
+
@api_client.config.logger.debug 'Calling API: OrphansCleanupApi.cleanup ...'
|
|
38
38
|
end
|
|
39
39
|
# verify the required parameter 'orphans_cleanup' is set
|
|
40
40
|
if @api_client.config.client_side_validation && orphans_cleanup.nil?
|
|
41
|
-
fail ArgumentError, "Missing the required parameter 'orphans_cleanup' when calling OrphansCleanupApi.
|
|
41
|
+
fail ArgumentError, "Missing the required parameter 'orphans_cleanup' when calling OrphansCleanupApi.cleanup"
|
|
42
42
|
end
|
|
43
43
|
# resource path
|
|
44
44
|
local_var_path = '/pulp/api/v3/orphans/cleanup/'
|
|
@@ -76,7 +76,7 @@ module PulpcoreClient
|
|
|
76
76
|
|
|
77
77
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
78
78
|
if @api_client.config.debugging
|
|
79
|
-
@api_client.config.logger.debug "API called: OrphansCleanupApi#
|
|
79
|
+
@api_client.config.logger.debug "API called: OrphansCleanupApi#cleanup\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
80
80
|
end
|
|
81
81
|
return data, status_code, headers
|
|
82
82
|
end
|
|
@@ -27,7 +27,7 @@ module PulpcoreClient
|
|
|
27
27
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
28
28
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
29
29
|
# @option opts [Array<String>] :ordering Ordering
|
|
30
|
-
# @option opts [DateTime] :pulp_created
|
|
30
|
+
# @option opts [DateTime] :pulp_created Filter results where pulp_created matches value
|
|
31
31
|
# @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
|
|
32
32
|
# @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
|
33
33
|
# @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
|
|
@@ -38,8 +38,8 @@ module PulpcoreClient
|
|
|
38
38
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
39
39
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
40
40
|
# @return [PaginatedPublicationResponseList]
|
|
41
|
-
def
|
|
42
|
-
data, _status_code, _headers =
|
|
41
|
+
def list(opts = {})
|
|
42
|
+
data, _status_code, _headers = list_with_http_info(opts)
|
|
43
43
|
data
|
|
44
44
|
end
|
|
45
45
|
|
|
@@ -51,7 +51,7 @@ module PulpcoreClient
|
|
|
51
51
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
52
52
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
53
53
|
# @option opts [Array<String>] :ordering Ordering
|
|
54
|
-
# @option opts [DateTime] :pulp_created
|
|
54
|
+
# @option opts [DateTime] :pulp_created Filter results where pulp_created matches value
|
|
55
55
|
# @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
|
|
56
56
|
# @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
|
57
57
|
# @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
|
|
@@ -62,11 +62,11 @@ module PulpcoreClient
|
|
|
62
62
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
63
63
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
64
64
|
# @return [Array<(PaginatedPublicationResponseList, Integer, Hash)>] PaginatedPublicationResponseList data, response status code and response headers
|
|
65
|
-
def
|
|
65
|
+
def list_with_http_info(opts = {})
|
|
66
66
|
if @api_client.config.debugging
|
|
67
|
-
@api_client.config.logger.debug 'Calling API: PublicationsApi.
|
|
67
|
+
@api_client.config.logger.debug 'Calling API: PublicationsApi.list ...'
|
|
68
68
|
end
|
|
69
|
-
allowable_values = ["-complete", "-
|
|
69
|
+
allowable_values = ["-complete", "-pass_through", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "complete", "pass_through", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type"]
|
|
70
70
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
|
71
71
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
|
72
72
|
end
|
|
@@ -119,7 +119,7 @@ module PulpcoreClient
|
|
|
119
119
|
|
|
120
120
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
121
121
|
if @api_client.config.debugging
|
|
122
|
-
@api_client.config.logger.debug "API called: PublicationsApi#
|
|
122
|
+
@api_client.config.logger.debug "API called: PublicationsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
123
123
|
end
|
|
124
124
|
return data, status_code, headers
|
|
125
125
|
end
|
|
@@ -23,7 +23,7 @@ module PulpcoreClient
|
|
|
23
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
24
|
# @param [Hash] opts the optional parameters
|
|
25
25
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
26
|
-
# @option opts [String] :name
|
|
26
|
+
# @option opts [String] :name Filter results where name matches value
|
|
27
27
|
# @option opts [String] :name__contains Filter results where name contains value
|
|
28
28
|
# @option opts [String] :name__icontains Filter results where name contains value
|
|
29
29
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
|
@@ -31,7 +31,7 @@ module PulpcoreClient
|
|
|
31
31
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
32
32
|
# @option opts [Array<String>] :ordering Ordering
|
|
33
33
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
34
|
-
# @option opts [DateTime] :pulp_last_updated
|
|
34
|
+
# @option opts [DateTime] :pulp_last_updated Filter results where pulp_last_updated matches value
|
|
35
35
|
# @option opts [DateTime] :pulp_last_updated__gt Filter results where pulp_last_updated is greater than value
|
|
36
36
|
# @option opts [DateTime] :pulp_last_updated__gte Filter results where pulp_last_updated is greater than or equal to value
|
|
37
37
|
# @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
|
@@ -40,8 +40,8 @@ module PulpcoreClient
|
|
|
40
40
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
41
41
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
42
42
|
# @return [PaginatedRemoteResponseList]
|
|
43
|
-
def
|
|
44
|
-
data, _status_code, _headers =
|
|
43
|
+
def list(opts = {})
|
|
44
|
+
data, _status_code, _headers = list_with_http_info(opts)
|
|
45
45
|
data
|
|
46
46
|
end
|
|
47
47
|
|
|
@@ -49,7 +49,7 @@ module PulpcoreClient
|
|
|
49
49
|
# 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.
|
|
50
50
|
# @param [Hash] opts the optional parameters
|
|
51
51
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
52
|
-
# @option opts [String] :name
|
|
52
|
+
# @option opts [String] :name Filter results where name matches value
|
|
53
53
|
# @option opts [String] :name__contains Filter results where name contains value
|
|
54
54
|
# @option opts [String] :name__icontains Filter results where name contains value
|
|
55
55
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
|
@@ -57,7 +57,7 @@ module PulpcoreClient
|
|
|
57
57
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
58
58
|
# @option opts [Array<String>] :ordering Ordering
|
|
59
59
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
60
|
-
# @option opts [DateTime] :pulp_last_updated
|
|
60
|
+
# @option opts [DateTime] :pulp_last_updated Filter results where pulp_last_updated matches value
|
|
61
61
|
# @option opts [DateTime] :pulp_last_updated__gt Filter results where pulp_last_updated is greater than value
|
|
62
62
|
# @option opts [DateTime] :pulp_last_updated__gte Filter results where pulp_last_updated is greater than or equal to value
|
|
63
63
|
# @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
|
@@ -66,11 +66,11 @@ module PulpcoreClient
|
|
|
66
66
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
67
67
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
68
68
|
# @return [Array<(PaginatedRemoteResponseList, Integer, Hash)>] PaginatedRemoteResponseList data, response status code and response headers
|
|
69
|
-
def
|
|
69
|
+
def list_with_http_info(opts = {})
|
|
70
70
|
if @api_client.config.debugging
|
|
71
|
-
@api_client.config.logger.debug 'Calling API: RemotesApi.
|
|
71
|
+
@api_client.config.logger.debug 'Calling API: RemotesApi.list ...'
|
|
72
72
|
end
|
|
73
|
-
allowable_values = ["-
|
|
73
|
+
allowable_values = ["-ca_cert", "-client_cert", "-client_key", "-connect_timeout", "-download_concurrency", "-headers", "-max_retries", "-name", "-password", "-pk", "-policy", "-proxy_password", "-proxy_url", "-proxy_username", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-rate_limit", "-sock_connect_timeout", "-sock_read_timeout", "-tls_validation", "-total_timeout", "-url", "-username", "ca_cert", "client_cert", "client_key", "connect_timeout", "download_concurrency", "headers", "max_retries", "name", "password", "pk", "policy", "proxy_password", "proxy_url", "proxy_username", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "rate_limit", "sock_connect_timeout", "sock_read_timeout", "tls_validation", "total_timeout", "url", "username"]
|
|
74
74
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
|
75
75
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
|
76
76
|
end
|
|
@@ -125,7 +125,7 @@ module PulpcoreClient
|
|
|
125
125
|
|
|
126
126
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
127
127
|
if @api_client.config.debugging
|
|
128
|
-
@api_client.config.logger.debug "API called: RemotesApi#
|
|
128
|
+
@api_client.config.logger.debug "API called: RemotesApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
129
129
|
end
|
|
130
130
|
return data, status_code, headers
|
|
131
131
|
end
|