pulpcore_client 3.19.1 → 3.20.0

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