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 upload [Upload]
|
|
25
25
|
# @param [Hash] opts the optional parameters
|
|
26
26
|
# @return [NestedRoleResponse]
|
|
27
|
-
def
|
|
28
|
-
data, _status_code, _headers =
|
|
27
|
+
def add_role(upload_href, upload, opts = {})
|
|
28
|
+
data, _status_code, _headers = add_role_with_http_info(upload_href, upload, opts)
|
|
29
29
|
data
|
|
30
30
|
end
|
|
31
31
|
|
|
@@ -34,17 +34,17 @@ module PulpcoreClient
|
|
|
34
34
|
# @param upload [Upload]
|
|
35
35
|
# @param [Hash] opts the optional parameters
|
|
36
36
|
# @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
|
|
37
|
-
def
|
|
37
|
+
def add_role_with_http_info(upload_href, upload, opts = {})
|
|
38
38
|
if @api_client.config.debugging
|
|
39
|
-
@api_client.config.logger.debug 'Calling API: UploadsApi.
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: UploadsApi.add_role ...'
|
|
40
40
|
end
|
|
41
41
|
# verify the required parameter 'upload_href' is set
|
|
42
42
|
if @api_client.config.client_side_validation && upload_href.nil?
|
|
43
|
-
fail ArgumentError, "Missing the required parameter 'upload_href' when calling UploadsApi.
|
|
43
|
+
fail ArgumentError, "Missing the required parameter 'upload_href' when calling UploadsApi.add_role"
|
|
44
44
|
end
|
|
45
45
|
# verify the required parameter 'upload' is set
|
|
46
46
|
if @api_client.config.client_side_validation && upload.nil?
|
|
47
|
-
fail ArgumentError, "Missing the required parameter 'upload' when calling UploadsApi.
|
|
47
|
+
fail ArgumentError, "Missing the required parameter 'upload' when calling UploadsApi.add_role"
|
|
48
48
|
end
|
|
49
49
|
# resource path
|
|
50
50
|
local_var_path = '{upload_href}add_role/'.sub('{' + 'upload_href' + '}', CGI.escape(upload_href.to_s).gsub('%2F', '/'))
|
|
@@ -82,7 +82,7 @@ module PulpcoreClient
|
|
|
82
82
|
|
|
83
83
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
84
84
|
if @api_client.config.debugging
|
|
85
|
-
@api_client.config.logger.debug "API called: UploadsApi#
|
|
85
|
+
@api_client.config.logger.debug "API called: UploadsApi#add_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
86
86
|
end
|
|
87
87
|
return data, status_code, headers
|
|
88
88
|
end
|
|
@@ -93,8 +93,8 @@ module PulpcoreClient
|
|
|
93
93
|
# @param upload_commit [UploadCommit]
|
|
94
94
|
# @param [Hash] opts the optional parameters
|
|
95
95
|
# @return [AsyncOperationResponse]
|
|
96
|
-
def
|
|
97
|
-
data, _status_code, _headers =
|
|
96
|
+
def commit(upload_href, upload_commit, opts = {})
|
|
97
|
+
data, _status_code, _headers = commit_with_http_info(upload_href, upload_commit, opts)
|
|
98
98
|
data
|
|
99
99
|
end
|
|
100
100
|
|
|
@@ -104,17 +104,17 @@ module PulpcoreClient
|
|
|
104
104
|
# @param upload_commit [UploadCommit]
|
|
105
105
|
# @param [Hash] opts the optional parameters
|
|
106
106
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
|
107
|
-
def
|
|
107
|
+
def commit_with_http_info(upload_href, upload_commit, opts = {})
|
|
108
108
|
if @api_client.config.debugging
|
|
109
|
-
@api_client.config.logger.debug 'Calling API: UploadsApi.
|
|
109
|
+
@api_client.config.logger.debug 'Calling API: UploadsApi.commit ...'
|
|
110
110
|
end
|
|
111
111
|
# verify the required parameter 'upload_href' is set
|
|
112
112
|
if @api_client.config.client_side_validation && upload_href.nil?
|
|
113
|
-
fail ArgumentError, "Missing the required parameter 'upload_href' when calling UploadsApi.
|
|
113
|
+
fail ArgumentError, "Missing the required parameter 'upload_href' when calling UploadsApi.commit"
|
|
114
114
|
end
|
|
115
115
|
# verify the required parameter 'upload_commit' is set
|
|
116
116
|
if @api_client.config.client_side_validation && upload_commit.nil?
|
|
117
|
-
fail ArgumentError, "Missing the required parameter 'upload_commit' when calling UploadsApi.
|
|
117
|
+
fail ArgumentError, "Missing the required parameter 'upload_commit' when calling UploadsApi.commit"
|
|
118
118
|
end
|
|
119
119
|
# resource path
|
|
120
120
|
local_var_path = '{upload_href}commit/'.sub('{' + 'upload_href' + '}', CGI.escape(upload_href.to_s).gsub('%2F', '/'))
|
|
@@ -152,7 +152,7 @@ module PulpcoreClient
|
|
|
152
152
|
|
|
153
153
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
154
154
|
if @api_client.config.debugging
|
|
155
|
-
@api_client.config.logger.debug "API called: UploadsApi#
|
|
155
|
+
@api_client.config.logger.debug "API called: UploadsApi#commit\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
156
156
|
end
|
|
157
157
|
return data, status_code, headers
|
|
158
158
|
end
|
|
@@ -162,8 +162,8 @@ module PulpcoreClient
|
|
|
162
162
|
# @param upload [Upload]
|
|
163
163
|
# @param [Hash] opts the optional parameters
|
|
164
164
|
# @return [UploadResponse]
|
|
165
|
-
def
|
|
166
|
-
data, _status_code, _headers =
|
|
165
|
+
def create(upload, opts = {})
|
|
166
|
+
data, _status_code, _headers = create_with_http_info(upload, opts)
|
|
167
167
|
data
|
|
168
168
|
end
|
|
169
169
|
|
|
@@ -172,13 +172,13 @@ module PulpcoreClient
|
|
|
172
172
|
# @param upload [Upload]
|
|
173
173
|
# @param [Hash] opts the optional parameters
|
|
174
174
|
# @return [Array<(UploadResponse, Integer, Hash)>] UploadResponse data, response status code and response headers
|
|
175
|
-
def
|
|
175
|
+
def create_with_http_info(upload, opts = {})
|
|
176
176
|
if @api_client.config.debugging
|
|
177
|
-
@api_client.config.logger.debug 'Calling API: UploadsApi.
|
|
177
|
+
@api_client.config.logger.debug 'Calling API: UploadsApi.create ...'
|
|
178
178
|
end
|
|
179
179
|
# verify the required parameter 'upload' is set
|
|
180
180
|
if @api_client.config.client_side_validation && upload.nil?
|
|
181
|
-
fail ArgumentError, "Missing the required parameter 'upload' when calling UploadsApi.
|
|
181
|
+
fail ArgumentError, "Missing the required parameter 'upload' when calling UploadsApi.create"
|
|
182
182
|
end
|
|
183
183
|
# resource path
|
|
184
184
|
local_var_path = '/pulp/api/v3/uploads/'
|
|
@@ -216,7 +216,7 @@ module PulpcoreClient
|
|
|
216
216
|
|
|
217
217
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
218
218
|
if @api_client.config.debugging
|
|
219
|
-
@api_client.config.logger.debug "API called: UploadsApi#
|
|
219
|
+
@api_client.config.logger.debug "API called: UploadsApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
220
220
|
end
|
|
221
221
|
return data, status_code, headers
|
|
222
222
|
end
|
|
@@ -226,8 +226,8 @@ module PulpcoreClient
|
|
|
226
226
|
# @param upload_href [String]
|
|
227
227
|
# @param [Hash] opts the optional parameters
|
|
228
228
|
# @return [nil]
|
|
229
|
-
def
|
|
230
|
-
|
|
229
|
+
def delete(upload_href, opts = {})
|
|
230
|
+
delete_with_http_info(upload_href, opts)
|
|
231
231
|
nil
|
|
232
232
|
end
|
|
233
233
|
|
|
@@ -236,13 +236,13 @@ module PulpcoreClient
|
|
|
236
236
|
# @param upload_href [String]
|
|
237
237
|
# @param [Hash] opts the optional parameters
|
|
238
238
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
239
|
-
def
|
|
239
|
+
def delete_with_http_info(upload_href, opts = {})
|
|
240
240
|
if @api_client.config.debugging
|
|
241
|
-
@api_client.config.logger.debug 'Calling API: UploadsApi.
|
|
241
|
+
@api_client.config.logger.debug 'Calling API: UploadsApi.delete ...'
|
|
242
242
|
end
|
|
243
243
|
# verify the required parameter 'upload_href' is set
|
|
244
244
|
if @api_client.config.client_side_validation && upload_href.nil?
|
|
245
|
-
fail ArgumentError, "Missing the required parameter 'upload_href' when calling UploadsApi.
|
|
245
|
+
fail ArgumentError, "Missing the required parameter 'upload_href' when calling UploadsApi.delete"
|
|
246
246
|
end
|
|
247
247
|
# resource path
|
|
248
248
|
local_var_path = '{upload_href}'.sub('{' + 'upload_href' + '}', CGI.escape(upload_href.to_s).gsub('%2F', '/'))
|
|
@@ -276,7 +276,7 @@ module PulpcoreClient
|
|
|
276
276
|
|
|
277
277
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
278
278
|
if @api_client.config.debugging
|
|
279
|
-
@api_client.config.logger.debug "API called: UploadsApi#
|
|
279
|
+
@api_client.config.logger.debug "API called: UploadsApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
280
280
|
end
|
|
281
281
|
return data, status_code, headers
|
|
282
282
|
end
|
|
@@ -286,11 +286,16 @@ module PulpcoreClient
|
|
|
286
286
|
# @param [Hash] opts the optional parameters
|
|
287
287
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
288
288
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
289
|
+
# @option opts [Array<String>] :ordering Ordering
|
|
290
|
+
# @option opts [Integer] :size Filter results where size matches value
|
|
291
|
+
# @option opts [Integer] :size__gt Filter results where size is greater than value
|
|
292
|
+
# @option opts [Integer] :size__lt Filter results where size is less than value
|
|
293
|
+
# @option opts [Array<Integer>] :size__range Filter results where size is between two comma separated values
|
|
289
294
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
290
295
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
291
296
|
# @return [PaginatedUploadResponseList]
|
|
292
|
-
def
|
|
293
|
-
data, _status_code, _headers =
|
|
297
|
+
def list(opts = {})
|
|
298
|
+
data, _status_code, _headers = list_with_http_info(opts)
|
|
294
299
|
data
|
|
295
300
|
end
|
|
296
301
|
|
|
@@ -299,12 +304,21 @@ module PulpcoreClient
|
|
|
299
304
|
# @param [Hash] opts the optional parameters
|
|
300
305
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
301
306
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
307
|
+
# @option opts [Array<String>] :ordering Ordering
|
|
308
|
+
# @option opts [Integer] :size Filter results where size matches value
|
|
309
|
+
# @option opts [Integer] :size__gt Filter results where size is greater than value
|
|
310
|
+
# @option opts [Integer] :size__lt Filter results where size is less than value
|
|
311
|
+
# @option opts [Array<Integer>] :size__range Filter results where size is between two comma separated values
|
|
302
312
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
303
313
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
304
314
|
# @return [Array<(PaginatedUploadResponseList, Integer, Hash)>] PaginatedUploadResponseList data, response status code and response headers
|
|
305
|
-
def
|
|
315
|
+
def list_with_http_info(opts = {})
|
|
306
316
|
if @api_client.config.debugging
|
|
307
|
-
@api_client.config.logger.debug 'Calling API: UploadsApi.
|
|
317
|
+
@api_client.config.logger.debug 'Calling API: UploadsApi.list ...'
|
|
318
|
+
end
|
|
319
|
+
allowable_values = ["-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-size", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "size"]
|
|
320
|
+
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
|
321
|
+
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
|
308
322
|
end
|
|
309
323
|
# resource path
|
|
310
324
|
local_var_path = '/pulp/api/v3/uploads/'
|
|
@@ -313,6 +327,11 @@ module PulpcoreClient
|
|
|
313
327
|
query_params = opts[:query_params] || {}
|
|
314
328
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
315
329
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
330
|
+
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
|
331
|
+
query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
|
|
332
|
+
query_params[:'size__gt'] = opts[:'size__gt'] if !opts[:'size__gt'].nil?
|
|
333
|
+
query_params[:'size__lt'] = opts[:'size__lt'] if !opts[:'size__lt'].nil?
|
|
334
|
+
query_params[:'size__range'] = @api_client.build_collection_param(opts[:'size__range'], :csv) if !opts[:'size__range'].nil?
|
|
316
335
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
|
317
336
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
|
318
337
|
|
|
@@ -344,7 +363,7 @@ module PulpcoreClient
|
|
|
344
363
|
|
|
345
364
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
346
365
|
if @api_client.config.debugging
|
|
347
|
-
@api_client.config.logger.debug "API called: UploadsApi#
|
|
366
|
+
@api_client.config.logger.debug "API called: UploadsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
348
367
|
end
|
|
349
368
|
return data, status_code, headers
|
|
350
369
|
end
|
|
@@ -355,8 +374,8 @@ module PulpcoreClient
|
|
|
355
374
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
356
375
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
357
376
|
# @return [ObjectRolesResponse]
|
|
358
|
-
def
|
|
359
|
-
data, _status_code, _headers =
|
|
377
|
+
def list_roles(upload_href, opts = {})
|
|
378
|
+
data, _status_code, _headers = list_roles_with_http_info(upload_href, opts)
|
|
360
379
|
data
|
|
361
380
|
end
|
|
362
381
|
|
|
@@ -366,13 +385,13 @@ module PulpcoreClient
|
|
|
366
385
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
367
386
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
368
387
|
# @return [Array<(ObjectRolesResponse, Integer, Hash)>] ObjectRolesResponse data, response status code and response headers
|
|
369
|
-
def
|
|
388
|
+
def list_roles_with_http_info(upload_href, opts = {})
|
|
370
389
|
if @api_client.config.debugging
|
|
371
|
-
@api_client.config.logger.debug 'Calling API: UploadsApi.
|
|
390
|
+
@api_client.config.logger.debug 'Calling API: UploadsApi.list_roles ...'
|
|
372
391
|
end
|
|
373
392
|
# verify the required parameter 'upload_href' is set
|
|
374
393
|
if @api_client.config.client_side_validation && upload_href.nil?
|
|
375
|
-
fail ArgumentError, "Missing the required parameter 'upload_href' when calling UploadsApi.
|
|
394
|
+
fail ArgumentError, "Missing the required parameter 'upload_href' when calling UploadsApi.list_roles"
|
|
376
395
|
end
|
|
377
396
|
# resource path
|
|
378
397
|
local_var_path = '{upload_href}list_roles/'.sub('{' + 'upload_href' + '}', CGI.escape(upload_href.to_s).gsub('%2F', '/'))
|
|
@@ -410,7 +429,7 @@ module PulpcoreClient
|
|
|
410
429
|
|
|
411
430
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
412
431
|
if @api_client.config.debugging
|
|
413
|
-
@api_client.config.logger.debug "API called: UploadsApi#
|
|
432
|
+
@api_client.config.logger.debug "API called: UploadsApi#list_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
414
433
|
end
|
|
415
434
|
return data, status_code, headers
|
|
416
435
|
end
|
|
@@ -421,8 +440,8 @@ module PulpcoreClient
|
|
|
421
440
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
422
441
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
423
442
|
# @return [MyPermissionsResponse]
|
|
424
|
-
def
|
|
425
|
-
data, _status_code, _headers =
|
|
443
|
+
def my_permissions(upload_href, opts = {})
|
|
444
|
+
data, _status_code, _headers = my_permissions_with_http_info(upload_href, opts)
|
|
426
445
|
data
|
|
427
446
|
end
|
|
428
447
|
|
|
@@ -432,13 +451,13 @@ module PulpcoreClient
|
|
|
432
451
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
433
452
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
434
453
|
# @return [Array<(MyPermissionsResponse, Integer, Hash)>] MyPermissionsResponse data, response status code and response headers
|
|
435
|
-
def
|
|
454
|
+
def my_permissions_with_http_info(upload_href, opts = {})
|
|
436
455
|
if @api_client.config.debugging
|
|
437
|
-
@api_client.config.logger.debug 'Calling API: UploadsApi.
|
|
456
|
+
@api_client.config.logger.debug 'Calling API: UploadsApi.my_permissions ...'
|
|
438
457
|
end
|
|
439
458
|
# verify the required parameter 'upload_href' is set
|
|
440
459
|
if @api_client.config.client_side_validation && upload_href.nil?
|
|
441
|
-
fail ArgumentError, "Missing the required parameter 'upload_href' when calling UploadsApi.
|
|
460
|
+
fail ArgumentError, "Missing the required parameter 'upload_href' when calling UploadsApi.my_permissions"
|
|
442
461
|
end
|
|
443
462
|
# resource path
|
|
444
463
|
local_var_path = '{upload_href}my_permissions/'.sub('{' + 'upload_href' + '}', CGI.escape(upload_href.to_s).gsub('%2F', '/'))
|
|
@@ -476,7 +495,7 @@ module PulpcoreClient
|
|
|
476
495
|
|
|
477
496
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
478
497
|
if @api_client.config.debugging
|
|
479
|
-
@api_client.config.logger.debug "API called: UploadsApi#
|
|
498
|
+
@api_client.config.logger.debug "API called: UploadsApi#my_permissions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
480
499
|
end
|
|
481
500
|
return data, status_code, headers
|
|
482
501
|
end
|
|
@@ -488,8 +507,8 @@ module PulpcoreClient
|
|
|
488
507
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
489
508
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
490
509
|
# @return [UploadDetailResponse]
|
|
491
|
-
def
|
|
492
|
-
data, _status_code, _headers =
|
|
510
|
+
def read(upload_href, opts = {})
|
|
511
|
+
data, _status_code, _headers = read_with_http_info(upload_href, opts)
|
|
493
512
|
data
|
|
494
513
|
end
|
|
495
514
|
|
|
@@ -500,13 +519,13 @@ module PulpcoreClient
|
|
|
500
519
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
501
520
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
502
521
|
# @return [Array<(UploadDetailResponse, Integer, Hash)>] UploadDetailResponse data, response status code and response headers
|
|
503
|
-
def
|
|
522
|
+
def read_with_http_info(upload_href, opts = {})
|
|
504
523
|
if @api_client.config.debugging
|
|
505
|
-
@api_client.config.logger.debug 'Calling API: UploadsApi.
|
|
524
|
+
@api_client.config.logger.debug 'Calling API: UploadsApi.read ...'
|
|
506
525
|
end
|
|
507
526
|
# verify the required parameter 'upload_href' is set
|
|
508
527
|
if @api_client.config.client_side_validation && upload_href.nil?
|
|
509
|
-
fail ArgumentError, "Missing the required parameter 'upload_href' when calling UploadsApi.
|
|
528
|
+
fail ArgumentError, "Missing the required parameter 'upload_href' when calling UploadsApi.read"
|
|
510
529
|
end
|
|
511
530
|
# resource path
|
|
512
531
|
local_var_path = '{upload_href}'.sub('{' + 'upload_href' + '}', CGI.escape(upload_href.to_s).gsub('%2F', '/'))
|
|
@@ -544,7 +563,7 @@ module PulpcoreClient
|
|
|
544
563
|
|
|
545
564
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
546
565
|
if @api_client.config.debugging
|
|
547
|
-
@api_client.config.logger.debug "API called: UploadsApi#
|
|
566
|
+
@api_client.config.logger.debug "API called: UploadsApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
548
567
|
end
|
|
549
568
|
return data, status_code, headers
|
|
550
569
|
end
|
|
@@ -554,8 +573,8 @@ module PulpcoreClient
|
|
|
554
573
|
# @param upload [Upload]
|
|
555
574
|
# @param [Hash] opts the optional parameters
|
|
556
575
|
# @return [NestedRoleResponse]
|
|
557
|
-
def
|
|
558
|
-
data, _status_code, _headers =
|
|
576
|
+
def remove_role(upload_href, upload, opts = {})
|
|
577
|
+
data, _status_code, _headers = remove_role_with_http_info(upload_href, upload, opts)
|
|
559
578
|
data
|
|
560
579
|
end
|
|
561
580
|
|
|
@@ -564,17 +583,17 @@ module PulpcoreClient
|
|
|
564
583
|
# @param upload [Upload]
|
|
565
584
|
# @param [Hash] opts the optional parameters
|
|
566
585
|
# @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
|
|
567
|
-
def
|
|
586
|
+
def remove_role_with_http_info(upload_href, upload, opts = {})
|
|
568
587
|
if @api_client.config.debugging
|
|
569
|
-
@api_client.config.logger.debug 'Calling API: UploadsApi.
|
|
588
|
+
@api_client.config.logger.debug 'Calling API: UploadsApi.remove_role ...'
|
|
570
589
|
end
|
|
571
590
|
# verify the required parameter 'upload_href' is set
|
|
572
591
|
if @api_client.config.client_side_validation && upload_href.nil?
|
|
573
|
-
fail ArgumentError, "Missing the required parameter 'upload_href' when calling UploadsApi.
|
|
592
|
+
fail ArgumentError, "Missing the required parameter 'upload_href' when calling UploadsApi.remove_role"
|
|
574
593
|
end
|
|
575
594
|
# verify the required parameter 'upload' is set
|
|
576
595
|
if @api_client.config.client_side_validation && upload.nil?
|
|
577
|
-
fail ArgumentError, "Missing the required parameter 'upload' when calling UploadsApi.
|
|
596
|
+
fail ArgumentError, "Missing the required parameter 'upload' when calling UploadsApi.remove_role"
|
|
578
597
|
end
|
|
579
598
|
# resource path
|
|
580
599
|
local_var_path = '{upload_href}remove_role/'.sub('{' + 'upload_href' + '}', CGI.escape(upload_href.to_s).gsub('%2F', '/'))
|
|
@@ -612,7 +631,7 @@ module PulpcoreClient
|
|
|
612
631
|
|
|
613
632
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
614
633
|
if @api_client.config.debugging
|
|
615
|
-
@api_client.config.logger.debug "API called: UploadsApi#
|
|
634
|
+
@api_client.config.logger.debug "API called: UploadsApi#remove_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
616
635
|
end
|
|
617
636
|
return data, status_code, headers
|
|
618
637
|
end
|
|
@@ -625,8 +644,8 @@ module PulpcoreClient
|
|
|
625
644
|
# @param [Hash] opts the optional parameters
|
|
626
645
|
# @option opts [String] :sha256 The SHA-256 checksum of the chunk if available.
|
|
627
646
|
# @return [UploadResponse]
|
|
628
|
-
def
|
|
629
|
-
data, _status_code, _headers =
|
|
647
|
+
def update(content_range, upload_href, file, opts = {})
|
|
648
|
+
data, _status_code, _headers = update_with_http_info(content_range, upload_href, file, opts)
|
|
630
649
|
data
|
|
631
650
|
end
|
|
632
651
|
|
|
@@ -638,24 +657,24 @@ module PulpcoreClient
|
|
|
638
657
|
# @param [Hash] opts the optional parameters
|
|
639
658
|
# @option opts [String] :sha256 The SHA-256 checksum of the chunk if available.
|
|
640
659
|
# @return [Array<(UploadResponse, Integer, Hash)>] UploadResponse data, response status code and response headers
|
|
641
|
-
def
|
|
660
|
+
def update_with_http_info(content_range, upload_href, file, opts = {})
|
|
642
661
|
if @api_client.config.debugging
|
|
643
|
-
@api_client.config.logger.debug 'Calling API: UploadsApi.
|
|
662
|
+
@api_client.config.logger.debug 'Calling API: UploadsApi.update ...'
|
|
644
663
|
end
|
|
645
664
|
# verify the required parameter 'content_range' is set
|
|
646
665
|
if @api_client.config.client_side_validation && content_range.nil?
|
|
647
|
-
fail ArgumentError, "Missing the required parameter 'content_range' when calling UploadsApi.
|
|
666
|
+
fail ArgumentError, "Missing the required parameter 'content_range' when calling UploadsApi.update"
|
|
648
667
|
end
|
|
649
668
|
# verify the required parameter 'upload_href' is set
|
|
650
669
|
if @api_client.config.client_side_validation && upload_href.nil?
|
|
651
|
-
fail ArgumentError, "Missing the required parameter 'upload_href' when calling UploadsApi.
|
|
670
|
+
fail ArgumentError, "Missing the required parameter 'upload_href' when calling UploadsApi.update"
|
|
652
671
|
end
|
|
653
672
|
# verify the required parameter 'file' is set
|
|
654
673
|
if @api_client.config.client_side_validation && file.nil?
|
|
655
|
-
fail ArgumentError, "Missing the required parameter 'file' when calling UploadsApi.
|
|
674
|
+
fail ArgumentError, "Missing the required parameter 'file' when calling UploadsApi.update"
|
|
656
675
|
end
|
|
657
676
|
if @api_client.config.client_side_validation && !opts[:'sha256'].nil? && opts[:'sha256'].to_s.length < 1
|
|
658
|
-
fail ArgumentError, 'invalid value for "opts[:"sha256"]" when calling UploadsApi.
|
|
677
|
+
fail ArgumentError, 'invalid value for "opts[:"sha256"]" when calling UploadsApi.update, the character length must be great than or equal to 1.'
|
|
659
678
|
end
|
|
660
679
|
|
|
661
680
|
# resource path
|
|
@@ -697,7 +716,7 @@ module PulpcoreClient
|
|
|
697
716
|
|
|
698
717
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
699
718
|
if @api_client.config.debugging
|
|
700
|
-
@api_client.config.logger.debug "API called: UploadsApi#
|
|
719
|
+
@api_client.config.logger.debug "API called: UploadsApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
701
720
|
end
|
|
702
721
|
return data, status_code, headers
|
|
703
722
|
end
|
|
@@ -24,8 +24,8 @@ module PulpcoreClient
|
|
|
24
24
|
# @param user [User]
|
|
25
25
|
# @param [Hash] opts the optional parameters
|
|
26
26
|
# @return [UserResponse]
|
|
27
|
-
def
|
|
28
|
-
data, _status_code, _headers =
|
|
27
|
+
def create(user, opts = {})
|
|
28
|
+
data, _status_code, _headers = create_with_http_info(user, opts)
|
|
29
29
|
data
|
|
30
30
|
end
|
|
31
31
|
|
|
@@ -34,13 +34,13 @@ module PulpcoreClient
|
|
|
34
34
|
# @param user [User]
|
|
35
35
|
# @param [Hash] opts the optional parameters
|
|
36
36
|
# @return [Array<(UserResponse, Integer, Hash)>] UserResponse data, response status code and response headers
|
|
37
|
-
def
|
|
37
|
+
def create_with_http_info(user, opts = {})
|
|
38
38
|
if @api_client.config.debugging
|
|
39
|
-
@api_client.config.logger.debug 'Calling API: UsersApi.
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: UsersApi.create ...'
|
|
40
40
|
end
|
|
41
41
|
# verify the required parameter 'user' is set
|
|
42
42
|
if @api_client.config.client_side_validation && user.nil?
|
|
43
|
-
fail ArgumentError, "Missing the required parameter 'user' when calling UsersApi.
|
|
43
|
+
fail ArgumentError, "Missing the required parameter 'user' when calling UsersApi.create"
|
|
44
44
|
end
|
|
45
45
|
# resource path
|
|
46
46
|
local_var_path = '/pulp/api/v3/users/'
|
|
@@ -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: UsersApi#
|
|
81
|
+
@api_client.config.logger.debug "API called: UsersApi#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 auth_user_href [String]
|
|
89
89
|
# @param [Hash] opts the optional parameters
|
|
90
90
|
# @return [nil]
|
|
91
|
-
def
|
|
92
|
-
|
|
91
|
+
def delete(auth_user_href, opts = {})
|
|
92
|
+
delete_with_http_info(auth_user_href, opts)
|
|
93
93
|
nil
|
|
94
94
|
end
|
|
95
95
|
|
|
@@ -98,13 +98,13 @@ module PulpcoreClient
|
|
|
98
98
|
# @param auth_user_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(auth_user_href, opts = {})
|
|
102
102
|
if @api_client.config.debugging
|
|
103
|
-
@api_client.config.logger.debug 'Calling API: UsersApi.
|
|
103
|
+
@api_client.config.logger.debug 'Calling API: UsersApi.delete ...'
|
|
104
104
|
end
|
|
105
105
|
# verify the required parameter 'auth_user_href' is set
|
|
106
106
|
if @api_client.config.client_side_validation && auth_user_href.nil?
|
|
107
|
-
fail ArgumentError, "Missing the required parameter 'auth_user_href' when calling UsersApi.
|
|
107
|
+
fail ArgumentError, "Missing the required parameter 'auth_user_href' when calling UsersApi.delete"
|
|
108
108
|
end
|
|
109
109
|
# resource path
|
|
110
110
|
local_var_path = '{auth_user_href}'.sub('{' + 'auth_user_href' + '}', CGI.escape(auth_user_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: UsersApi#
|
|
141
|
+
@api_client.config.logger.debug "API called: UsersApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
142
142
|
end
|
|
143
143
|
return data, status_code, headers
|
|
144
144
|
end
|
|
@@ -174,8 +174,8 @@ module PulpcoreClient
|
|
|
174
174
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
175
175
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
176
176
|
# @return [PaginatedUserResponseList]
|
|
177
|
-
def
|
|
178
|
-
data, _status_code, _headers =
|
|
177
|
+
def list(opts = {})
|
|
178
|
+
data, _status_code, _headers = list_with_http_info(opts)
|
|
179
179
|
data
|
|
180
180
|
end
|
|
181
181
|
|
|
@@ -210,11 +210,11 @@ module PulpcoreClient
|
|
|
210
210
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
211
211
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
212
212
|
# @return [Array<(PaginatedUserResponseList, Integer, Hash)>] PaginatedUserResponseList data, response status code and response headers
|
|
213
|
-
def
|
|
213
|
+
def list_with_http_info(opts = {})
|
|
214
214
|
if @api_client.config.debugging
|
|
215
|
-
@api_client.config.logger.debug 'Calling API: UsersApi.
|
|
215
|
+
@api_client.config.logger.debug 'Calling API: UsersApi.list ...'
|
|
216
216
|
end
|
|
217
|
-
allowable_values = ["-date_joined", "-email", "-first_name", "-
|
|
217
|
+
allowable_values = ["-date_joined", "-email", "-first_name", "-id", "-is_active", "-is_staff", "-is_superuser", "-last_login", "-last_name", "-password", "-pk", "-username", "date_joined", "email", "first_name", "id", "is_active", "is_staff", "is_superuser", "last_login", "last_name", "password", "pk", "username"]
|
|
218
218
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
|
219
219
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
|
220
220
|
end
|
|
@@ -279,7 +279,7 @@ module PulpcoreClient
|
|
|
279
279
|
|
|
280
280
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
281
281
|
if @api_client.config.debugging
|
|
282
|
-
@api_client.config.logger.debug "API called: UsersApi#
|
|
282
|
+
@api_client.config.logger.debug "API called: UsersApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
283
283
|
end
|
|
284
284
|
return data, status_code, headers
|
|
285
285
|
end
|
|
@@ -290,8 +290,8 @@ module PulpcoreClient
|
|
|
290
290
|
# @param patched_user [PatchedUser]
|
|
291
291
|
# @param [Hash] opts the optional parameters
|
|
292
292
|
# @return [UserResponse]
|
|
293
|
-
def
|
|
294
|
-
data, _status_code, _headers =
|
|
293
|
+
def partial_update(auth_user_href, patched_user, opts = {})
|
|
294
|
+
data, _status_code, _headers = partial_update_with_http_info(auth_user_href, patched_user, opts)
|
|
295
295
|
data
|
|
296
296
|
end
|
|
297
297
|
|
|
@@ -301,17 +301,17 @@ module PulpcoreClient
|
|
|
301
301
|
# @param patched_user [PatchedUser]
|
|
302
302
|
# @param [Hash] opts the optional parameters
|
|
303
303
|
# @return [Array<(UserResponse, Integer, Hash)>] UserResponse data, response status code and response headers
|
|
304
|
-
def
|
|
304
|
+
def partial_update_with_http_info(auth_user_href, patched_user, opts = {})
|
|
305
305
|
if @api_client.config.debugging
|
|
306
|
-
@api_client.config.logger.debug 'Calling API: UsersApi.
|
|
306
|
+
@api_client.config.logger.debug 'Calling API: UsersApi.partial_update ...'
|
|
307
307
|
end
|
|
308
308
|
# verify the required parameter 'auth_user_href' is set
|
|
309
309
|
if @api_client.config.client_side_validation && auth_user_href.nil?
|
|
310
|
-
fail ArgumentError, "Missing the required parameter 'auth_user_href' when calling UsersApi.
|
|
310
|
+
fail ArgumentError, "Missing the required parameter 'auth_user_href' when calling UsersApi.partial_update"
|
|
311
311
|
end
|
|
312
312
|
# verify the required parameter 'patched_user' is set
|
|
313
313
|
if @api_client.config.client_side_validation && patched_user.nil?
|
|
314
|
-
fail ArgumentError, "Missing the required parameter 'patched_user' when calling UsersApi.
|
|
314
|
+
fail ArgumentError, "Missing the required parameter 'patched_user' when calling UsersApi.partial_update"
|
|
315
315
|
end
|
|
316
316
|
# resource path
|
|
317
317
|
local_var_path = '{auth_user_href}'.sub('{' + 'auth_user_href' + '}', CGI.escape(auth_user_href.to_s).gsub('%2F', '/'))
|
|
@@ -349,7 +349,7 @@ module PulpcoreClient
|
|
|
349
349
|
|
|
350
350
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
351
351
|
if @api_client.config.debugging
|
|
352
|
-
@api_client.config.logger.debug "API called: UsersApi#
|
|
352
|
+
@api_client.config.logger.debug "API called: UsersApi#partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
353
353
|
end
|
|
354
354
|
return data, status_code, headers
|
|
355
355
|
end
|
|
@@ -361,8 +361,8 @@ module PulpcoreClient
|
|
|
361
361
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
362
362
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
363
363
|
# @return [UserResponse]
|
|
364
|
-
def
|
|
365
|
-
data, _status_code, _headers =
|
|
364
|
+
def read(auth_user_href, opts = {})
|
|
365
|
+
data, _status_code, _headers = read_with_http_info(auth_user_href, opts)
|
|
366
366
|
data
|
|
367
367
|
end
|
|
368
368
|
|
|
@@ -373,13 +373,13 @@ module PulpcoreClient
|
|
|
373
373
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
374
374
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
375
375
|
# @return [Array<(UserResponse, Integer, Hash)>] UserResponse data, response status code and response headers
|
|
376
|
-
def
|
|
376
|
+
def read_with_http_info(auth_user_href, opts = {})
|
|
377
377
|
if @api_client.config.debugging
|
|
378
|
-
@api_client.config.logger.debug 'Calling API: UsersApi.
|
|
378
|
+
@api_client.config.logger.debug 'Calling API: UsersApi.read ...'
|
|
379
379
|
end
|
|
380
380
|
# verify the required parameter 'auth_user_href' is set
|
|
381
381
|
if @api_client.config.client_side_validation && auth_user_href.nil?
|
|
382
|
-
fail ArgumentError, "Missing the required parameter 'auth_user_href' when calling UsersApi.
|
|
382
|
+
fail ArgumentError, "Missing the required parameter 'auth_user_href' when calling UsersApi.read"
|
|
383
383
|
end
|
|
384
384
|
# resource path
|
|
385
385
|
local_var_path = '{auth_user_href}'.sub('{' + 'auth_user_href' + '}', CGI.escape(auth_user_href.to_s).gsub('%2F', '/'))
|
|
@@ -417,7 +417,7 @@ module PulpcoreClient
|
|
|
417
417
|
|
|
418
418
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
419
419
|
if @api_client.config.debugging
|
|
420
|
-
@api_client.config.logger.debug "API called: UsersApi#
|
|
420
|
+
@api_client.config.logger.debug "API called: UsersApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
421
421
|
end
|
|
422
422
|
return data, status_code, headers
|
|
423
423
|
end
|
|
@@ -428,8 +428,8 @@ module PulpcoreClient
|
|
|
428
428
|
# @param user [User]
|
|
429
429
|
# @param [Hash] opts the optional parameters
|
|
430
430
|
# @return [UserResponse]
|
|
431
|
-
def
|
|
432
|
-
data, _status_code, _headers =
|
|
431
|
+
def update(auth_user_href, user, opts = {})
|
|
432
|
+
data, _status_code, _headers = update_with_http_info(auth_user_href, user, opts)
|
|
433
433
|
data
|
|
434
434
|
end
|
|
435
435
|
|
|
@@ -439,17 +439,17 @@ module PulpcoreClient
|
|
|
439
439
|
# @param user [User]
|
|
440
440
|
# @param [Hash] opts the optional parameters
|
|
441
441
|
# @return [Array<(UserResponse, Integer, Hash)>] UserResponse data, response status code and response headers
|
|
442
|
-
def
|
|
442
|
+
def update_with_http_info(auth_user_href, user, opts = {})
|
|
443
443
|
if @api_client.config.debugging
|
|
444
|
-
@api_client.config.logger.debug 'Calling API: UsersApi.
|
|
444
|
+
@api_client.config.logger.debug 'Calling API: UsersApi.update ...'
|
|
445
445
|
end
|
|
446
446
|
# verify the required parameter 'auth_user_href' is set
|
|
447
447
|
if @api_client.config.client_side_validation && auth_user_href.nil?
|
|
448
|
-
fail ArgumentError, "Missing the required parameter 'auth_user_href' when calling UsersApi.
|
|
448
|
+
fail ArgumentError, "Missing the required parameter 'auth_user_href' when calling UsersApi.update"
|
|
449
449
|
end
|
|
450
450
|
# verify the required parameter 'user' is set
|
|
451
451
|
if @api_client.config.client_side_validation && user.nil?
|
|
452
|
-
fail ArgumentError, "Missing the required parameter 'user' when calling UsersApi.
|
|
452
|
+
fail ArgumentError, "Missing the required parameter 'user' when calling UsersApi.update"
|
|
453
453
|
end
|
|
454
454
|
# resource path
|
|
455
455
|
local_var_path = '{auth_user_href}'.sub('{' + 'auth_user_href' + '}', CGI.escape(auth_user_href.to_s).gsub('%2F', '/'))
|
|
@@ -487,7 +487,7 @@ module PulpcoreClient
|
|
|
487
487
|
|
|
488
488
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
489
489
|
if @api_client.config.debugging
|
|
490
|
-
@api_client.config.logger.debug "API called: UsersApi#
|
|
490
|
+
@api_client.config.logger.debug "API called: UsersApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
491
491
|
end
|
|
492
492
|
return data, status_code, headers
|
|
493
493
|
end
|