pulpcore_client 3.5.0 → 3.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (239) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +88 -44
  3. data/docs/AccessPoliciesApi.md +244 -0
  4. data/docs/AccessPolicy.md +21 -0
  5. data/docs/AccessPolicyResponse.md +25 -0
  6. data/docs/Artifact.md +2 -6
  7. data/docs/ArtifactResponse.md +35 -0
  8. data/docs/ArtifactsApi.md +40 -34
  9. data/docs/{ContentAppStatus.md → ContentAppStatusResponse.md} +2 -2
  10. data/docs/{DatabaseConnection.md → DatabaseConnectionResponse.md} +2 -2
  11. data/docs/ExportersCoreExportsApi.md +33 -33
  12. data/docs/ExportersPulpApi.md +51 -51
  13. data/docs/Group.md +17 -0
  14. data/docs/{GroupProgressReport.md → GroupProgressReportResponse.md} +2 -2
  15. data/docs/GroupResponse.md +21 -0
  16. data/docs/GroupUser.md +17 -0
  17. data/docs/GroupUserResponse.md +19 -0
  18. data/docs/GroupsApi.md +351 -0
  19. data/docs/GroupsModelPermissionsApi.md +128 -0
  20. data/docs/GroupsObjectPermissionsApi.md +247 -0
  21. data/docs/GroupsUsersApi.md +183 -0
  22. data/docs/{Import.md → ImportResponse.md} +2 -2
  23. data/docs/ImportersCoreImportsApi.md +33 -33
  24. data/docs/ImportersPulpApi.md +51 -51
  25. data/docs/InlineResponse200.md +3 -3
  26. data/docs/InlineResponse2001.md +3 -3
  27. data/docs/InlineResponse20010.md +23 -0
  28. data/docs/InlineResponse20011.md +23 -0
  29. data/docs/InlineResponse20012.md +23 -0
  30. data/docs/InlineResponse20013.md +23 -0
  31. data/docs/InlineResponse20014.md +23 -0
  32. data/docs/InlineResponse2002.md +3 -3
  33. data/docs/InlineResponse2003.md +3 -3
  34. data/docs/InlineResponse2004.md +3 -3
  35. data/docs/InlineResponse2005.md +3 -3
  36. data/docs/InlineResponse2006.md +3 -3
  37. data/docs/InlineResponse2007.md +3 -3
  38. data/docs/InlineResponse2008.md +3 -3
  39. data/docs/InlineResponse2009.md +3 -3
  40. data/docs/OrphansApi.md +2 -2
  41. data/docs/PatchedAccessPolicy.md +21 -0
  42. data/docs/PatchedGroup.md +17 -0
  43. data/docs/PatchedPulpExporter.md +23 -0
  44. data/docs/PatchedPulpImporter.md +19 -0
  45. data/docs/{TaskCancel.md → PatchedTaskCancel.md} +3 -3
  46. data/docs/PermissionResponse.md +23 -0
  47. data/docs/{ProgressReport.md → ProgressReportResponse.md} +2 -2
  48. data/docs/PulpExport.md +11 -11
  49. data/docs/PulpExportResponse.md +27 -0
  50. data/docs/PulpExporter.md +1 -5
  51. data/docs/PulpExporterResponse.md +27 -0
  52. data/docs/PulpImport.md +4 -2
  53. data/docs/PulpImporter.md +2 -6
  54. data/docs/PulpImporterResponse.md +23 -0
  55. data/docs/{RedisConnection.md → RedisConnectionResponse.md} +2 -2
  56. data/docs/{SigningService.md → SigningServiceResponse.md} +2 -2
  57. data/docs/SigningServicesApi.md +14 -14
  58. data/docs/StatusApi.md +8 -22
  59. data/docs/StatusResponse.md +27 -0
  60. data/docs/{Storage.md → StorageResponse.md} +2 -2
  61. data/docs/{TaskGroup.md → TaskGroupResponse.md} +3 -3
  62. data/docs/TaskGroupsApi.md +16 -12
  63. data/docs/{Task.md → TaskResponse.md} +5 -7
  64. data/docs/TasksApi.md +144 -88
  65. data/docs/Upload.md +1 -7
  66. data/docs/UploadChunk.md +2 -6
  67. data/docs/UploadChunkResponse.md +19 -0
  68. data/docs/{UploadDetail.md → UploadDetailResponse.md} +3 -3
  69. data/docs/UploadResponse.md +23 -0
  70. data/docs/UploadsApi.md +42 -40
  71. data/docs/UserGroupResponse.md +19 -0
  72. data/docs/UserResponse.md +35 -0
  73. data/docs/UsersApi.md +191 -0
  74. data/docs/{Version.md → VersionResponse.md} +2 -2
  75. data/docs/{Worker.md → WorkerResponse.md} +2 -2
  76. data/docs/WorkersApi.md +36 -32
  77. data/lib/pulpcore_client/api/access_policies_api.rb +301 -0
  78. data/lib/pulpcore_client/api/artifacts_api.rb +47 -65
  79. data/lib/pulpcore_client/api/exporters_core_exports_api.rb +51 -51
  80. data/lib/pulpcore_client/api/exporters_pulp_api.rb +71 -71
  81. data/lib/pulpcore_client/api/groups_api.rb +425 -0
  82. data/lib/pulpcore_client/api/groups_model_permissions_api.rb +161 -0
  83. data/lib/pulpcore_client/api/groups_object_permissions_api.rb +295 -0
  84. data/lib/pulpcore_client/api/groups_users_api.rb +229 -0
  85. data/lib/pulpcore_client/api/importers_core_imports_api.rb +51 -51
  86. data/lib/pulpcore_client/api/importers_pulp_api.rb +71 -71
  87. data/lib/pulpcore_client/api/orphans_api.rb +3 -3
  88. data/lib/pulpcore_client/api/signing_services_api.rb +18 -18
  89. data/lib/pulpcore_client/api/status_api.rb +11 -17
  90. data/lib/pulpcore_client/api/task_groups_api.rb +19 -15
  91. data/lib/pulpcore_client/api/tasks_api.rb +203 -125
  92. data/lib/pulpcore_client/api/uploads_api.rb +60 -66
  93. data/lib/pulpcore_client/api/users_api.rb +227 -0
  94. data/lib/pulpcore_client/api/workers_api.rb +46 -42
  95. data/lib/pulpcore_client/api_client.rb +2 -2
  96. data/lib/pulpcore_client/api_error.rb +2 -2
  97. data/lib/pulpcore_client/configuration.rb +3 -3
  98. data/lib/pulpcore_client/models/access_policy.rb +247 -0
  99. data/lib/pulpcore_client/models/access_policy_response.rb +266 -0
  100. data/lib/pulpcore_client/models/artifact.rb +8 -111
  101. data/lib/pulpcore_client/models/artifact_response.rb +308 -0
  102. data/lib/pulpcore_client/models/async_operation_response.rb +3 -2
  103. data/lib/pulpcore_client/models/{content_app_status.rb → content_app_status_response.rb} +6 -21
  104. data/lib/pulpcore_client/models/{database_connection.rb → database_connection_response.rb} +6 -6
  105. data/lib/pulpcore_client/models/group.rb +232 -0
  106. data/lib/pulpcore_client/models/{group_progress_report.rb → group_progress_report_response.rb} +6 -50
  107. data/lib/pulpcore_client/models/group_response.rb +250 -0
  108. data/lib/pulpcore_client/models/group_user.rb +232 -0
  109. data/lib/pulpcore_client/models/group_user_response.rb +241 -0
  110. data/lib/pulpcore_client/models/{import.rb → import_response.rb} +6 -5
  111. data/lib/pulpcore_client/models/inline_response200.rb +3 -13
  112. data/lib/pulpcore_client/models/inline_response2001.rb +3 -13
  113. data/lib/pulpcore_client/models/inline_response20010.rb +237 -0
  114. data/lib/pulpcore_client/models/inline_response20011.rb +237 -0
  115. data/lib/pulpcore_client/models/inline_response20012.rb +237 -0
  116. data/lib/pulpcore_client/models/inline_response20013.rb +237 -0
  117. data/lib/pulpcore_client/models/inline_response20014.rb +237 -0
  118. data/lib/pulpcore_client/models/inline_response2002.rb +3 -13
  119. data/lib/pulpcore_client/models/inline_response2003.rb +3 -13
  120. data/lib/pulpcore_client/models/inline_response2004.rb +3 -13
  121. data/lib/pulpcore_client/models/inline_response2005.rb +3 -13
  122. data/lib/pulpcore_client/models/inline_response2006.rb +3 -13
  123. data/lib/pulpcore_client/models/inline_response2007.rb +3 -13
  124. data/lib/pulpcore_client/models/inline_response2008.rb +3 -13
  125. data/lib/pulpcore_client/models/inline_response2009.rb +3 -13
  126. data/lib/pulpcore_client/models/patched_access_policy.rb +232 -0
  127. data/lib/pulpcore_client/models/patched_group.rb +223 -0
  128. data/lib/pulpcore_client/models/patched_pulp_exporter.rb +240 -0
  129. data/lib/pulpcore_client/models/patched_pulp_importer.rb +218 -0
  130. data/lib/pulpcore_client/models/{task_cancel.rb → patched_task_cancel.rb} +6 -29
  131. data/lib/pulpcore_client/models/permission_response.rb +235 -0
  132. data/lib/pulpcore_client/models/{progress_report.rb → progress_report_response.rb} +6 -65
  133. data/lib/pulpcore_client/models/pulp_export.rb +50 -42
  134. data/lib/pulpcore_client/models/pulp_export_response.rb +260 -0
  135. data/lib/pulpcore_client/models/pulp_exporter.rb +4 -60
  136. data/lib/pulpcore_client/models/pulp_exporter_response.rb +274 -0
  137. data/lib/pulpcore_client/models/pulp_import.rb +17 -30
  138. data/lib/pulpcore_client/models/pulp_importer.rb +6 -45
  139. data/lib/pulpcore_client/models/pulp_importer_response.rb +242 -0
  140. data/lib/pulpcore_client/models/{redis_connection.rb → redis_connection_response.rb} +6 -6
  141. data/lib/pulpcore_client/models/{signing_service.rb → signing_service_response.rb} +6 -43
  142. data/lib/pulpcore_client/models/{status.rb → status_response.rb} +15 -11
  143. data/lib/pulpcore_client/models/{storage.rb → storage_response.rb} +6 -6
  144. data/lib/pulpcore_client/models/{task_group.rb → task_group_response.rb} +7 -25
  145. data/lib/pulpcore_client/models/{task.rb → task_response.rb} +13 -59
  146. data/lib/pulpcore_client/models/upload.rb +7 -35
  147. data/lib/pulpcore_client/models/upload_chunk.rb +11 -39
  148. data/lib/pulpcore_client/models/upload_chunk_response.rb +215 -0
  149. data/lib/pulpcore_client/models/upload_commit.rb +2 -21
  150. data/lib/pulpcore_client/models/{upload_detail.rb → upload_detail_response.rb} +7 -6
  151. data/lib/pulpcore_client/models/upload_response.rb +242 -0
  152. data/lib/pulpcore_client/models/user_group_response.rb +241 -0
  153. data/lib/pulpcore_client/models/user_response.rb +378 -0
  154. data/lib/pulpcore_client/models/{version.rb → version_response.rb} +6 -44
  155. data/lib/pulpcore_client/models/{worker.rb → worker_response.rb} +6 -21
  156. data/lib/pulpcore_client/version.rb +3 -3
  157. data/lib/pulpcore_client.rb +47 -17
  158. data/pulpcore_client.gemspec +4 -4
  159. data/spec/api/access_policies_api_spec.rb +91 -0
  160. data/spec/api/artifacts_api_spec.rb +18 -15
  161. data/spec/api/exporters_core_exports_api_spec.rb +10 -10
  162. data/spec/api/exporters_pulp_api_spec.rb +18 -18
  163. data/spec/api/groups_api_spec.rb +115 -0
  164. data/spec/api/groups_model_permissions_api_spec.rb +64 -0
  165. data/spec/api/groups_object_permissions_api_spec.rb +92 -0
  166. data/spec/api/groups_users_api_spec.rb +77 -0
  167. data/spec/api/importers_core_imports_api_spec.rb +10 -10
  168. data/spec/api/importers_pulp_api_spec.rb +18 -18
  169. data/spec/api/orphans_api_spec.rb +2 -2
  170. data/spec/api/signing_services_api_spec.rb +7 -7
  171. data/spec/api/status_api_spec.rb +5 -7
  172. data/spec/api/task_groups_api_spec.rb +8 -6
  173. data/spec/api/tasks_api_spec.rb +69 -42
  174. data/spec/api/uploads_api_spec.rb +14 -13
  175. data/spec/api/users_api_spec.rb +78 -0
  176. data/spec/api/workers_api_spec.rb +18 -16
  177. data/spec/api_client_spec.rb +2 -2
  178. data/spec/configuration_spec.rb +2 -2
  179. data/spec/models/access_policy_response_spec.rb +65 -0
  180. data/spec/models/access_policy_spec.rb +53 -0
  181. data/spec/models/artifact_response_spec.rb +95 -0
  182. data/spec/models/artifact_spec.rb +2 -14
  183. data/spec/models/async_operation_response_spec.rb +2 -2
  184. data/spec/models/{content_app_status_spec.rb → content_app_status_response_spec.rb} +8 -8
  185. data/spec/models/{database_connection_spec.rb → database_connection_response_spec.rb} +8 -8
  186. data/spec/models/{group_progress_report_spec.rb → group_progress_report_response_spec.rb} +8 -8
  187. data/spec/models/group_response_spec.rb +53 -0
  188. data/spec/models/group_spec.rb +41 -0
  189. data/spec/models/group_user_response_spec.rb +47 -0
  190. data/spec/models/group_user_spec.rb +41 -0
  191. data/spec/models/{import_spec.rb → import_response_spec.rb} +8 -8
  192. data/spec/models/inline_response20010_spec.rb +59 -0
  193. data/spec/models/inline_response20011_spec.rb +59 -0
  194. data/spec/models/inline_response20012_spec.rb +59 -0
  195. data/spec/models/inline_response20013_spec.rb +59 -0
  196. data/spec/models/inline_response20014_spec.rb +59 -0
  197. data/spec/models/inline_response2001_spec.rb +2 -2
  198. data/spec/models/inline_response2002_spec.rb +2 -2
  199. data/spec/models/inline_response2003_spec.rb +2 -2
  200. data/spec/models/inline_response2004_spec.rb +2 -2
  201. data/spec/models/inline_response2005_spec.rb +2 -2
  202. data/spec/models/inline_response2006_spec.rb +2 -2
  203. data/spec/models/inline_response2007_spec.rb +2 -2
  204. data/spec/models/inline_response2008_spec.rb +2 -2
  205. data/spec/models/inline_response2009_spec.rb +2 -2
  206. data/spec/models/inline_response200_spec.rb +2 -2
  207. data/spec/models/patched_access_policy_spec.rb +53 -0
  208. data/spec/models/patched_group_spec.rb +41 -0
  209. data/spec/models/patched_pulp_exporter_spec.rb +59 -0
  210. data/spec/models/patched_pulp_importer_spec.rb +47 -0
  211. data/spec/models/{task_cancel_spec.rb → patched_task_cancel_spec.rb} +8 -8
  212. data/spec/models/permission_response_spec.rb +59 -0
  213. data/spec/models/{progress_report_spec.rb → progress_report_response_spec.rb} +8 -8
  214. data/spec/models/pulp_export_response_spec.rb +71 -0
  215. data/spec/models/pulp_export_spec.rb +8 -8
  216. data/spec/models/pulp_exporter_response_spec.rb +71 -0
  217. data/spec/models/pulp_exporter_spec.rb +2 -14
  218. data/spec/models/pulp_import_spec.rb +8 -2
  219. data/spec/models/pulp_importer_response_spec.rb +59 -0
  220. data/spec/models/pulp_importer_spec.rb +2 -14
  221. data/spec/models/{redis_connection_spec.rb → redis_connection_response_spec.rb} +8 -8
  222. data/spec/models/{signing_service_spec.rb → signing_service_response_spec.rb} +8 -8
  223. data/spec/models/{status_spec.rb → status_response_spec.rb} +8 -8
  224. data/spec/models/{storage_spec.rb → storage_response_spec.rb} +8 -8
  225. data/spec/models/{task_group_spec.rb → task_group_response_spec.rb} +8 -8
  226. data/spec/models/{task_spec.rb → task_response_spec.rb} +8 -14
  227. data/spec/models/upload_chunk_response_spec.rb +47 -0
  228. data/spec/models/upload_chunk_spec.rb +2 -14
  229. data/spec/models/upload_commit_spec.rb +2 -2
  230. data/spec/models/{upload_detail_spec.rb → upload_detail_response_spec.rb} +8 -8
  231. data/spec/models/upload_response_spec.rb +59 -0
  232. data/spec/models/upload_spec.rb +2 -20
  233. data/spec/models/user_group_response_spec.rb +47 -0
  234. data/spec/models/user_response_spec.rb +95 -0
  235. data/spec/models/{version_spec.rb → version_response_spec.rb} +8 -8
  236. data/spec/models/{worker_spec.rb → worker_response_spec.rb} +8 -8
  237. data/spec/spec_helper.rb +2 -2
  238. metadata +204 -84
  239. data/docs/Status.md +0 -27
@@ -1,10 +1,10 @@
1
1
  =begin
2
2
  #Pulp 3 API
3
3
 
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
5
 
6
6
  The version of the OpenAPI document: v3
7
-
7
+ Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.2.3
10
10
 
@@ -21,22 +21,22 @@ module PulpcoreClient
21
21
  end
22
22
  # Finish an Upload
23
23
  # Queues a Task that creates an Artifact, and the Upload gets deleted and cannot be re-used.
24
- # @param upload_href [String] URI of Upload. e.g.: /pulp/api/v3/uploads/1/
25
- # @param data [UploadCommit]
24
+ # @param upload_href [String]
25
+ # @param upload_commit [UploadCommit]
26
26
  # @param [Hash] opts the optional parameters
27
27
  # @return [AsyncOperationResponse]
28
- def commit(upload_href, data, opts = {})
29
- data, _status_code, _headers = commit_with_http_info(upload_href, data, opts)
28
+ def commit(upload_href, upload_commit, opts = {})
29
+ data, _status_code, _headers = commit_with_http_info(upload_href, upload_commit, opts)
30
30
  data
31
31
  end
32
32
 
33
33
  # Finish an Upload
34
34
  # Queues a Task that creates an Artifact, and the Upload gets deleted and cannot be re-used.
35
- # @param upload_href [String] URI of Upload. e.g.: /pulp/api/v3/uploads/1/
36
- # @param data [UploadCommit]
35
+ # @param upload_href [String]
36
+ # @param upload_commit [UploadCommit]
37
37
  # @param [Hash] opts the optional parameters
38
38
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
39
- def commit_with_http_info(upload_href, data, opts = {})
39
+ def commit_with_http_info(upload_href, upload_commit, opts = {})
40
40
  if @api_client.config.debugging
41
41
  @api_client.config.logger.debug 'Calling API: UploadsApi.commit ...'
42
42
  end
@@ -44,9 +44,9 @@ module PulpcoreClient
44
44
  if @api_client.config.client_side_validation && upload_href.nil?
45
45
  fail ArgumentError, "Missing the required parameter 'upload_href' when calling UploadsApi.commit"
46
46
  end
47
- # verify the required parameter 'data' is set
48
- if @api_client.config.client_side_validation && data.nil?
49
- fail ArgumentError, "Missing the required parameter 'data' when calling UploadsApi.commit"
47
+ # verify the required parameter 'upload_commit' is set
48
+ if @api_client.config.client_side_validation && upload_commit.nil?
49
+ fail ArgumentError, "Missing the required parameter 'upload_commit' when calling UploadsApi.commit"
50
50
  end
51
51
  # resource path
52
52
  local_var_path = '{upload_href}commit/'.sub('{' + 'upload_href' + '}', CGI.escape(upload_href.to_s).gsub('%2F', '/'))
@@ -59,19 +59,19 @@ module PulpcoreClient
59
59
  # HTTP header 'Accept' (if needed)
60
60
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
61
61
  # HTTP header 'Content-Type'
62
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
62
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
63
63
 
64
64
  # form parameters
65
65
  form_params = opts[:form_params] || {}
66
66
 
67
67
  # http body (model)
68
- post_body = opts[:body] || @api_client.object_to_http_body(data)
68
+ post_body = opts[:body] || @api_client.object_to_http_body(upload_commit)
69
69
 
70
70
  # return_type
71
71
  return_type = opts[:return_type] || 'AsyncOperationResponse'
72
72
 
73
73
  # auth_names
74
- auth_names = opts[:auth_names] || ['Basic']
74
+ auth_names = opts[:auth_names] || ['basicAuth']
75
75
 
76
76
  new_options = opts.merge(
77
77
  :header_params => header_params,
@@ -91,26 +91,26 @@ module PulpcoreClient
91
91
 
92
92
  # Create an upload
93
93
  # View for chunked uploads.
94
- # @param data [Upload]
94
+ # @param upload [Upload]
95
95
  # @param [Hash] opts the optional parameters
96
- # @return [Upload]
97
- def create(data, opts = {})
98
- data, _status_code, _headers = create_with_http_info(data, opts)
96
+ # @return [UploadResponse]
97
+ def create(upload, opts = {})
98
+ data, _status_code, _headers = create_with_http_info(upload, opts)
99
99
  data
100
100
  end
101
101
 
102
102
  # Create an upload
103
103
  # View for chunked uploads.
104
- # @param data [Upload]
104
+ # @param upload [Upload]
105
105
  # @param [Hash] opts the optional parameters
106
- # @return [Array<(Upload, Integer, Hash)>] Upload data, response status code and response headers
107
- def create_with_http_info(data, opts = {})
106
+ # @return [Array<(UploadResponse, Integer, Hash)>] UploadResponse data, response status code and response headers
107
+ def create_with_http_info(upload, opts = {})
108
108
  if @api_client.config.debugging
109
109
  @api_client.config.logger.debug 'Calling API: UploadsApi.create ...'
110
110
  end
111
- # verify the required parameter 'data' is set
112
- if @api_client.config.client_side_validation && data.nil?
113
- fail ArgumentError, "Missing the required parameter 'data' when calling UploadsApi.create"
111
+ # verify the required parameter 'upload' is set
112
+ if @api_client.config.client_side_validation && upload.nil?
113
+ fail ArgumentError, "Missing the required parameter 'upload' when calling UploadsApi.create"
114
114
  end
115
115
  # resource path
116
116
  local_var_path = '/pulp/api/v3/uploads/'
@@ -123,19 +123,19 @@ module PulpcoreClient
123
123
  # HTTP header 'Accept' (if needed)
124
124
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
125
125
  # HTTP header 'Content-Type'
126
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
126
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
127
127
 
128
128
  # form parameters
129
129
  form_params = opts[:form_params] || {}
130
130
 
131
131
  # http body (model)
132
- post_body = opts[:body] || @api_client.object_to_http_body(data)
132
+ post_body = opts[:body] || @api_client.object_to_http_body(upload)
133
133
 
134
134
  # return_type
135
- return_type = opts[:return_type] || 'Upload'
135
+ return_type = opts[:return_type] || 'UploadResponse'
136
136
 
137
137
  # auth_names
138
- auth_names = opts[:auth_names] || ['Basic']
138
+ auth_names = opts[:auth_names] || ['basicAuth']
139
139
 
140
140
  new_options = opts.merge(
141
141
  :header_params => header_params,
@@ -155,7 +155,7 @@ module PulpcoreClient
155
155
 
156
156
  # Delete an upload
157
157
  # View for chunked uploads.
158
- # @param upload_href [String] URI of Upload. e.g.: /pulp/api/v3/uploads/1/
158
+ # @param upload_href [String]
159
159
  # @param [Hash] opts the optional parameters
160
160
  # @return [nil]
161
161
  def delete(upload_href, opts = {})
@@ -165,7 +165,7 @@ module PulpcoreClient
165
165
 
166
166
  # Delete an upload
167
167
  # View for chunked uploads.
168
- # @param upload_href [String] URI of Upload. e.g.: /pulp/api/v3/uploads/1/
168
+ # @param upload_href [String]
169
169
  # @param [Hash] opts the optional parameters
170
170
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
171
171
  def delete_with_http_info(upload_href, opts = {})
@@ -195,7 +195,7 @@ module PulpcoreClient
195
195
  return_type = opts[:return_type]
196
196
 
197
197
  # auth_names
198
- auth_names = opts[:auth_names] || ['Basic']
198
+ auth_names = opts[:auth_names] || ['basicAuth']
199
199
 
200
200
  new_options = opts.merge(
201
201
  :header_params => header_params,
@@ -216,12 +216,12 @@ module PulpcoreClient
216
216
  # List uploads
217
217
  # View for chunked uploads.
218
218
  # @param [Hash] opts the optional parameters
219
- # @option opts [String] :ordering Which field to use when ordering the results.
220
219
  # @option opts [Integer] :limit Number of results to return per page.
221
220
  # @option opts [Integer] :offset The initial index from which to return the results.
221
+ # @option opts [String] :ordering Which field to use when ordering the results.
222
222
  # @option opts [String] :fields A list of fields to include in the response.
223
223
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
224
- # @return [InlineResponse2008]
224
+ # @return [InlineResponse20012]
225
225
  def list(opts = {})
226
226
  data, _status_code, _headers = list_with_http_info(opts)
227
227
  data
@@ -230,12 +230,12 @@ module PulpcoreClient
230
230
  # List uploads
231
231
  # View for chunked uploads.
232
232
  # @param [Hash] opts the optional parameters
233
- # @option opts [String] :ordering Which field to use when ordering the results.
234
233
  # @option opts [Integer] :limit Number of results to return per page.
235
234
  # @option opts [Integer] :offset The initial index from which to return the results.
235
+ # @option opts [String] :ordering Which field to use when ordering the results.
236
236
  # @option opts [String] :fields A list of fields to include in the response.
237
237
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
238
- # @return [Array<(InlineResponse2008, Integer, Hash)>] InlineResponse2008 data, response status code and response headers
238
+ # @return [Array<(InlineResponse20012, Integer, Hash)>] InlineResponse20012 data, response status code and response headers
239
239
  def list_with_http_info(opts = {})
240
240
  if @api_client.config.debugging
241
241
  @api_client.config.logger.debug 'Calling API: UploadsApi.list ...'
@@ -245,9 +245,9 @@ module PulpcoreClient
245
245
 
246
246
  # query parameters
247
247
  query_params = opts[:query_params] || {}
248
- query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
249
248
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
250
249
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
250
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
251
251
  query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
252
252
  query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
253
253
 
@@ -263,10 +263,10 @@ module PulpcoreClient
263
263
  post_body = opts[:body]
264
264
 
265
265
  # return_type
266
- return_type = opts[:return_type] || 'InlineResponse2008'
266
+ return_type = opts[:return_type] || 'InlineResponse20012'
267
267
 
268
268
  # auth_names
269
- auth_names = opts[:auth_names] || ['Basic']
269
+ auth_names = opts[:auth_names] || ['basicAuth']
270
270
 
271
271
  new_options = opts.merge(
272
272
  :header_params => header_params,
@@ -286,11 +286,11 @@ module PulpcoreClient
286
286
 
287
287
  # Inspect an upload
288
288
  # View for chunked uploads.
289
- # @param upload_href [String] URI of Upload. e.g.: /pulp/api/v3/uploads/1/
289
+ # @param upload_href [String]
290
290
  # @param [Hash] opts the optional parameters
291
291
  # @option opts [String] :fields A list of fields to include in the response.
292
292
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
293
- # @return [UploadDetail]
293
+ # @return [UploadDetailResponse]
294
294
  def read(upload_href, opts = {})
295
295
  data, _status_code, _headers = read_with_http_info(upload_href, opts)
296
296
  data
@@ -298,11 +298,11 @@ module PulpcoreClient
298
298
 
299
299
  # Inspect an upload
300
300
  # View for chunked uploads.
301
- # @param upload_href [String] URI of Upload. e.g.: /pulp/api/v3/uploads/1/
301
+ # @param upload_href [String]
302
302
  # @param [Hash] opts the optional parameters
303
303
  # @option opts [String] :fields A list of fields to include in the response.
304
304
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
305
- # @return [Array<(UploadDetail, Integer, Hash)>] UploadDetail data, response status code and response headers
305
+ # @return [Array<(UploadDetailResponse, Integer, Hash)>] UploadDetailResponse data, response status code and response headers
306
306
  def read_with_http_info(upload_href, opts = {})
307
307
  if @api_client.config.debugging
308
308
  @api_client.config.logger.debug 'Calling API: UploadsApi.read ...'
@@ -331,10 +331,10 @@ module PulpcoreClient
331
331
  post_body = opts[:body]
332
332
 
333
333
  # return_type
334
- return_type = opts[:return_type] || 'UploadDetail'
334
+ return_type = opts[:return_type] || 'UploadDetailResponse'
335
335
 
336
336
  # auth_names
337
- auth_names = opts[:auth_names] || ['Basic']
337
+ auth_names = opts[:auth_names] || ['basicAuth']
338
338
 
339
339
  new_options = opts.merge(
340
340
  :header_params => header_params,
@@ -354,55 +354,49 @@ module PulpcoreClient
354
354
 
355
355
  # Upload a file chunk
356
356
  # Upload a chunk for an upload.
357
- # @param upload_href [String] URI of Upload. e.g.: /pulp/api/v3/uploads/1/
358
357
  # @param content_range [String] The Content-Range header specifies the location of the file chunk within the file.
358
+ # @param upload_href [String]
359
359
  # @param file [File] A chunk of the uploaded file.
360
360
  # @param [Hash] opts the optional parameters
361
+ # @option opts [String] :ordering Which field to use when ordering the results.
361
362
  # @option opts [String] :sha256 The SHA-256 checksum of the chunk if available.
362
- # @return [Upload]
363
- def update(upload_href, content_range, file, opts = {})
364
- data, _status_code, _headers = update_with_http_info(upload_href, content_range, file, opts)
363
+ # @return [UploadResponse]
364
+ def update(content_range, upload_href, file, opts = {})
365
+ data, _status_code, _headers = update_with_http_info(content_range, upload_href, file, opts)
365
366
  data
366
367
  end
367
368
 
368
369
  # Upload a file chunk
369
370
  # Upload a chunk for an upload.
370
- # @param upload_href [String] URI of Upload. e.g.: /pulp/api/v3/uploads/1/
371
371
  # @param content_range [String] The Content-Range header specifies the location of the file chunk within the file.
372
+ # @param upload_href [String]
372
373
  # @param file [File] A chunk of the uploaded file.
373
374
  # @param [Hash] opts the optional parameters
375
+ # @option opts [String] :ordering Which field to use when ordering the results.
374
376
  # @option opts [String] :sha256 The SHA-256 checksum of the chunk if available.
375
- # @return [Array<(Upload, Integer, Hash)>] Upload data, response status code and response headers
376
- def update_with_http_info(upload_href, content_range, file, opts = {})
377
+ # @return [Array<(UploadResponse, Integer, Hash)>] UploadResponse data, response status code and response headers
378
+ def update_with_http_info(content_range, upload_href, file, opts = {})
377
379
  if @api_client.config.debugging
378
380
  @api_client.config.logger.debug 'Calling API: UploadsApi.update ...'
379
381
  end
380
- # verify the required parameter 'upload_href' is set
381
- if @api_client.config.client_side_validation && upload_href.nil?
382
- fail ArgumentError, "Missing the required parameter 'upload_href' when calling UploadsApi.update"
383
- end
384
382
  # verify the required parameter 'content_range' is set
385
383
  if @api_client.config.client_side_validation && content_range.nil?
386
384
  fail ArgumentError, "Missing the required parameter 'content_range' when calling UploadsApi.update"
387
385
  end
388
- pattern = Regexp.new(/^bytes (\d+)-(\d+)\/(\d+|[*])$/)
389
- if @api_client.config.client_side_validation && content_range !~ pattern
390
- fail ArgumentError, "invalid value for 'content_range' when calling UploadsApi.update, must conform to the pattern #{pattern}."
386
+ # verify the required parameter 'upload_href' is set
387
+ if @api_client.config.client_side_validation && upload_href.nil?
388
+ fail ArgumentError, "Missing the required parameter 'upload_href' when calling UploadsApi.update"
391
389
  end
392
-
393
390
  # verify the required parameter 'file' is set
394
391
  if @api_client.config.client_side_validation && file.nil?
395
392
  fail ArgumentError, "Missing the required parameter 'file' when calling UploadsApi.update"
396
393
  end
397
- if @api_client.config.client_side_validation && !opts[:'sha256'].nil? && opts[:'sha256'].to_s.length < 1
398
- fail ArgumentError, 'invalid value for "opts[:"sha256"]" when calling UploadsApi.update, the character length must be great than or equal to 1.'
399
- end
400
-
401
394
  # resource path
402
395
  local_var_path = '{upload_href}'.sub('{' + 'upload_href' + '}', CGI.escape(upload_href.to_s).gsub('%2F', '/'))
403
396
 
404
397
  # query parameters
405
398
  query_params = opts[:query_params] || {}
399
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
406
400
 
407
401
  # header parameters
408
402
  header_params = opts[:header_params] || {}
@@ -421,10 +415,10 @@ module PulpcoreClient
421
415
  post_body = opts[:body]
422
416
 
423
417
  # return_type
424
- return_type = opts[:return_type] || 'Upload'
418
+ return_type = opts[:return_type] || 'UploadResponse'
425
419
 
426
420
  # auth_names
427
- auth_names = opts[:auth_names] || ['Basic']
421
+ auth_names = opts[:auth_names] || ['basicAuth']
428
422
 
429
423
  new_options = opts.merge(
430
424
  :header_params => header_params,
@@ -0,0 +1,227 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
+
6
+ The version of the OpenAPI document: v3
7
+ Contact: pulp-list@redhat.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.2.3
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module PulpcoreClient
16
+ class UsersApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # List users
23
+ # ViewSet for User. NOTE: This API endpoint is in \"tech preview\" and subject to change
24
+ # @param [Hash] opts the optional parameters
25
+ # @option opts [Integer] :limit Number of results to return per page.
26
+ # @option opts [Integer] :offset The initial index from which to return the results.
27
+ # @option opts [String] :ordering Which field to use when ordering the results.
28
+ # @option opts [String] :fields A list of fields to include in the response.
29
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
30
+ # @return [InlineResponse20013]
31
+ def list(opts = {})
32
+ data, _status_code, _headers = list_with_http_info(opts)
33
+ data
34
+ end
35
+
36
+ # List users
37
+ # ViewSet for User. NOTE: This API endpoint is in \&quot;tech preview\&quot; and subject to change
38
+ # @param [Hash] opts the optional parameters
39
+ # @option opts [Integer] :limit Number of results to return per page.
40
+ # @option opts [Integer] :offset The initial index from which to return the results.
41
+ # @option opts [String] :ordering Which field to use when ordering the results.
42
+ # @option opts [String] :fields A list of fields to include in the response.
43
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
44
+ # @return [Array<(InlineResponse20013, Integer, Hash)>] InlineResponse20013 data, response status code and response headers
45
+ def list_with_http_info(opts = {})
46
+ if @api_client.config.debugging
47
+ @api_client.config.logger.debug 'Calling API: UsersApi.list ...'
48
+ end
49
+ # resource path
50
+ local_var_path = '/pulp/api/v3/users/'
51
+
52
+ # query parameters
53
+ query_params = opts[:query_params] || {}
54
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
55
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
56
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
57
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
58
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
59
+
60
+ # header parameters
61
+ header_params = opts[:header_params] || {}
62
+ # HTTP header 'Accept' (if needed)
63
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
64
+
65
+ # form parameters
66
+ form_params = opts[:form_params] || {}
67
+
68
+ # http body (model)
69
+ post_body = opts[:body]
70
+
71
+ # return_type
72
+ return_type = opts[:return_type] || 'InlineResponse20013'
73
+
74
+ # auth_names
75
+ auth_names = opts[:auth_names] || ['basicAuth']
76
+
77
+ new_options = opts.merge(
78
+ :header_params => header_params,
79
+ :query_params => query_params,
80
+ :form_params => form_params,
81
+ :body => post_body,
82
+ :auth_names => auth_names,
83
+ :return_type => return_type
84
+ )
85
+
86
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
87
+ if @api_client.config.debugging
88
+ @api_client.config.logger.debug "API called: UsersApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
89
+ end
90
+ return data, status_code, headers
91
+ end
92
+
93
+ # List user permissions.
94
+ # @param auth_user_href [String]
95
+ # @param [Hash] opts the optional parameters
96
+ # @option opts [String] :fields A list of fields to include in the response.
97
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
98
+ # @return [PermissionResponse]
99
+ def permissions(auth_user_href, opts = {})
100
+ data, _status_code, _headers = permissions_with_http_info(auth_user_href, opts)
101
+ data
102
+ end
103
+
104
+ # List user permissions.
105
+ # @param auth_user_href [String]
106
+ # @param [Hash] opts the optional parameters
107
+ # @option opts [String] :fields A list of fields to include in the response.
108
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
109
+ # @return [Array<(PermissionResponse, Integer, Hash)>] PermissionResponse data, response status code and response headers
110
+ def permissions_with_http_info(auth_user_href, opts = {})
111
+ if @api_client.config.debugging
112
+ @api_client.config.logger.debug 'Calling API: UsersApi.permissions ...'
113
+ end
114
+ # verify the required parameter 'auth_user_href' is set
115
+ if @api_client.config.client_side_validation && auth_user_href.nil?
116
+ fail ArgumentError, "Missing the required parameter 'auth_user_href' when calling UsersApi.permissions"
117
+ end
118
+ # resource path
119
+ local_var_path = '{auth_user_href}permissions/'.sub('{' + 'auth_user_href' + '}', CGI.escape(auth_user_href.to_s).gsub('%2F', '/'))
120
+
121
+ # query parameters
122
+ query_params = opts[:query_params] || {}
123
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
124
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
125
+
126
+ # header parameters
127
+ header_params = opts[:header_params] || {}
128
+ # HTTP header 'Accept' (if needed)
129
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
130
+
131
+ # form parameters
132
+ form_params = opts[:form_params] || {}
133
+
134
+ # http body (model)
135
+ post_body = opts[:body]
136
+
137
+ # return_type
138
+ return_type = opts[:return_type] || 'PermissionResponse'
139
+
140
+ # auth_names
141
+ auth_names = opts[:auth_names] || ['basicAuth']
142
+
143
+ new_options = opts.merge(
144
+ :header_params => header_params,
145
+ :query_params => query_params,
146
+ :form_params => form_params,
147
+ :body => post_body,
148
+ :auth_names => auth_names,
149
+ :return_type => return_type
150
+ )
151
+
152
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
153
+ if @api_client.config.debugging
154
+ @api_client.config.logger.debug "API called: UsersApi#permissions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
155
+ end
156
+ return data, status_code, headers
157
+ end
158
+
159
+ # Inspect an user
160
+ # ViewSet for User. NOTE: This API endpoint is in \"tech preview\" and subject to change
161
+ # @param auth_user_href [String]
162
+ # @param [Hash] opts the optional parameters
163
+ # @option opts [String] :fields A list of fields to include in the response.
164
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
165
+ # @return [UserResponse]
166
+ def read(auth_user_href, opts = {})
167
+ data, _status_code, _headers = read_with_http_info(auth_user_href, opts)
168
+ data
169
+ end
170
+
171
+ # Inspect an user
172
+ # ViewSet for User. NOTE: This API endpoint is in \&quot;tech preview\&quot; and subject to change
173
+ # @param auth_user_href [String]
174
+ # @param [Hash] opts the optional parameters
175
+ # @option opts [String] :fields A list of fields to include in the response.
176
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
177
+ # @return [Array<(UserResponse, Integer, Hash)>] UserResponse data, response status code and response headers
178
+ def read_with_http_info(auth_user_href, opts = {})
179
+ if @api_client.config.debugging
180
+ @api_client.config.logger.debug 'Calling API: UsersApi.read ...'
181
+ end
182
+ # verify the required parameter 'auth_user_href' is set
183
+ if @api_client.config.client_side_validation && auth_user_href.nil?
184
+ fail ArgumentError, "Missing the required parameter 'auth_user_href' when calling UsersApi.read"
185
+ end
186
+ # resource path
187
+ local_var_path = '{auth_user_href}'.sub('{' + 'auth_user_href' + '}', CGI.escape(auth_user_href.to_s).gsub('%2F', '/'))
188
+
189
+ # query parameters
190
+ query_params = opts[:query_params] || {}
191
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
192
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
193
+
194
+ # header parameters
195
+ header_params = opts[:header_params] || {}
196
+ # HTTP header 'Accept' (if needed)
197
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
198
+
199
+ # form parameters
200
+ form_params = opts[:form_params] || {}
201
+
202
+ # http body (model)
203
+ post_body = opts[:body]
204
+
205
+ # return_type
206
+ return_type = opts[:return_type] || 'UserResponse'
207
+
208
+ # auth_names
209
+ auth_names = opts[:auth_names] || ['basicAuth']
210
+
211
+ new_options = opts.merge(
212
+ :header_params => header_params,
213
+ :query_params => query_params,
214
+ :form_params => form_params,
215
+ :body => post_body,
216
+ :auth_names => auth_names,
217
+ :return_type => return_type
218
+ )
219
+
220
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
221
+ if @api_client.config.debugging
222
+ @api_client.config.logger.debug "API called: UsersApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
223
+ end
224
+ return data, status_code, headers
225
+ end
226
+ end
227
+ end