pulp_file_client 1.1.0 → 1.2.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 (136) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +51 -37
  3. data/docs/ContentFilesApi.md +24 -24
  4. data/docs/ContentSummary.md +3 -3
  5. data/docs/ContentSummaryResponse.md +21 -0
  6. data/docs/DistributionsFileApi.md +108 -60
  7. data/docs/{Export.md → ExportResponse.md} +2 -2
  8. data/docs/ExportersFileExportsApi.md +34 -34
  9. data/docs/ExportersFilesystemApi.md +61 -61
  10. data/docs/FileFileContent.md +5 -17
  11. data/docs/FileFileContentResponse.md +35 -0
  12. data/docs/FileFileDistribution.md +1 -7
  13. data/docs/FileFileDistributionResponse.md +29 -0
  14. data/docs/FileFileFilesystemExporter.md +1 -5
  15. data/docs/FileFileFilesystemExporterResponse.md +23 -0
  16. data/docs/FileFilePublication.md +1 -7
  17. data/docs/FileFilePublicationResponse.md +27 -0
  18. data/docs/FileFileRemote.md +4 -10
  19. data/docs/FileFileRemoteResponse.md +43 -0
  20. data/docs/FileFileRepository.md +4 -10
  21. data/docs/FileFileRepositoryResponse.md +29 -0
  22. data/docs/InlineResponse200.md +3 -3
  23. data/docs/InlineResponse2001.md +3 -3
  24. data/docs/InlineResponse2002.md +3 -3
  25. data/docs/InlineResponse2003.md +3 -3
  26. data/docs/InlineResponse2004.md +3 -3
  27. data/docs/InlineResponse2005.md +3 -3
  28. data/docs/InlineResponse2006.md +3 -3
  29. data/docs/InlineResponse2007.md +3 -3
  30. data/docs/PatchedfileFileDistribution.md +23 -0
  31. data/docs/PatchedfileFileFilesystemExporter.md +19 -0
  32. data/docs/PatchedfileFileRemote.md +37 -0
  33. data/docs/PatchedfileFileRepository.md +21 -0
  34. data/docs/PolicyEnum.md +16 -0
  35. data/docs/PublicationsFileApi.md +40 -40
  36. data/docs/RemotesFileApi.md +125 -65
  37. data/docs/RepositoriesFileApi.md +97 -73
  38. data/docs/RepositoriesFileVersionsApi.md +94 -62
  39. data/docs/RepositoryAddRemoveContent.md +2 -2
  40. data/docs/RepositorySyncURL.md +1 -1
  41. data/docs/RepositoryVersion.md +1 -9
  42. data/docs/RepositoryVersionResponse.md +25 -0
  43. data/lib/pulp_file_client/api/content_files_api.rb +32 -36
  44. data/lib/pulp_file_client/api/distributions_file_api.rb +153 -90
  45. data/lib/pulp_file_client/api/exporters_file_exports_api.rb +55 -55
  46. data/lib/pulp_file_client/api/exporters_filesystem_api.rb +102 -102
  47. data/lib/pulp_file_client/api/publications_file_api.rb +59 -59
  48. data/lib/pulp_file_client/api/remotes_file_api.rb +181 -100
  49. data/lib/pulp_file_client/api/repositories_file_api.rb +145 -118
  50. data/lib/pulp_file_client/api/repositories_file_versions_api.rb +137 -92
  51. data/lib/pulp_file_client/api_client.rb +2 -2
  52. data/lib/pulp_file_client/api_error.rb +2 -2
  53. data/lib/pulp_file_client/configuration.rb +3 -3
  54. data/lib/pulp_file_client/models/async_operation_response.rb +3 -2
  55. data/lib/pulp_file_client/models/content_summary.rb +9 -15
  56. data/lib/pulp_file_client/models/content_summary_response.rb +240 -0
  57. data/lib/pulp_file_client/models/{export.rb → export_response.rb} +6 -5
  58. data/lib/pulp_file_client/models/file_file_content.rb +18 -185
  59. data/lib/pulp_file_client/models/file_file_content_response.rb +302 -0
  60. data/lib/pulp_file_client/models/file_file_distribution.rb +4 -85
  61. data/lib/pulp_file_client/models/file_file_distribution_response.rb +279 -0
  62. data/lib/pulp_file_client/models/file_file_filesystem_exporter.rb +4 -60
  63. data/lib/pulp_file_client/models/file_file_filesystem_exporter_response.rb +247 -0
  64. data/lib/pulp_file_client/models/file_file_publication.rb +4 -49
  65. data/lib/pulp_file_client/models/file_file_publication_response.rb +260 -0
  66. data/lib/pulp_file_client/models/file_file_remote.rb +7 -199
  67. data/lib/pulp_file_client/models/file_file_remote_response.rb +368 -0
  68. data/lib/pulp_file_client/models/file_file_repository.rb +18 -78
  69. data/lib/pulp_file_client/models/file_file_repository_response.rb +271 -0
  70. data/lib/pulp_file_client/models/inline_response200.rb +3 -13
  71. data/lib/pulp_file_client/models/inline_response2001.rb +3 -13
  72. data/lib/pulp_file_client/models/inline_response2002.rb +3 -13
  73. data/lib/pulp_file_client/models/inline_response2003.rb +3 -13
  74. data/lib/pulp_file_client/models/inline_response2004.rb +3 -13
  75. data/lib/pulp_file_client/models/inline_response2005.rb +3 -13
  76. data/lib/pulp_file_client/models/inline_response2006.rb +3 -13
  77. data/lib/pulp_file_client/models/inline_response2007.rb +3 -13
  78. data/lib/pulp_file_client/models/patchedfile_file_distribution.rb +240 -0
  79. data/lib/pulp_file_client/models/patchedfile_file_filesystem_exporter.rb +218 -0
  80. data/lib/pulp_file_client/models/patchedfile_file_remote.rb +329 -0
  81. data/lib/pulp_file_client/models/patchedfile_file_repository.rb +229 -0
  82. data/lib/pulp_file_client/models/policy_enum.rb +37 -0
  83. data/lib/pulp_file_client/models/publication_export.rb +3 -2
  84. data/lib/pulp_file_client/models/repository_add_remove_content.rb +5 -4
  85. data/lib/pulp_file_client/models/repository_sync_url.rb +3 -8
  86. data/lib/pulp_file_client/models/repository_version.rb +7 -43
  87. data/lib/pulp_file_client/models/repository_version_response.rb +246 -0
  88. data/lib/pulp_file_client/version.rb +3 -3
  89. data/lib/pulp_file_client.rb +16 -3
  90. data/pulp_file_client.gemspec +4 -4
  91. data/spec/api/content_files_api_spec.rb +10 -10
  92. data/spec/api/distributions_file_api_spec.rb +39 -18
  93. data/spec/api/exporters_file_exports_api_spec.rb +9 -9
  94. data/spec/api/exporters_filesystem_api_spec.rb +23 -23
  95. data/spec/api/publications_file_api_spec.rb +14 -14
  96. data/spec/api/remotes_file_api_spec.rb +48 -21
  97. data/spec/api/repositories_file_api_spec.rb +28 -19
  98. data/spec/api/repositories_file_versions_api_spec.rb +38 -23
  99. data/spec/api_client_spec.rb +2 -2
  100. data/spec/configuration_spec.rb +2 -2
  101. data/spec/models/async_operation_response_spec.rb +2 -2
  102. data/spec/models/content_summary_response_spec.rb +53 -0
  103. data/spec/models/content_summary_spec.rb +2 -2
  104. data/spec/models/{export_spec.rb → export_response_spec.rb} +8 -8
  105. data/spec/models/file_file_content_response_spec.rb +95 -0
  106. data/spec/models/file_file_content_spec.rb +4 -40
  107. data/spec/models/file_file_distribution_response_spec.rb +77 -0
  108. data/spec/models/file_file_distribution_spec.rb +2 -20
  109. data/spec/models/file_file_filesystem_exporter_response_spec.rb +59 -0
  110. data/spec/models/file_file_filesystem_exporter_spec.rb +2 -14
  111. data/spec/models/file_file_publication_response_spec.rb +71 -0
  112. data/spec/models/file_file_publication_spec.rb +2 -20
  113. data/spec/models/file_file_remote_response_spec.rb +119 -0
  114. data/spec/models/file_file_remote_spec.rb +2 -24
  115. data/spec/models/file_file_repository_response_spec.rb +77 -0
  116. data/spec/models/file_file_repository_spec.rb +5 -23
  117. data/spec/models/inline_response2001_spec.rb +2 -2
  118. data/spec/models/inline_response2002_spec.rb +2 -2
  119. data/spec/models/inline_response2003_spec.rb +2 -2
  120. data/spec/models/inline_response2004_spec.rb +2 -2
  121. data/spec/models/inline_response2005_spec.rb +2 -2
  122. data/spec/models/inline_response2006_spec.rb +2 -2
  123. data/spec/models/inline_response2007_spec.rb +2 -2
  124. data/spec/models/inline_response200_spec.rb +2 -2
  125. data/spec/models/patchedfile_file_distribution_spec.rb +59 -0
  126. data/spec/models/patchedfile_file_filesystem_exporter_spec.rb +47 -0
  127. data/spec/models/patchedfile_file_remote_spec.rb +101 -0
  128. data/spec/models/patchedfile_file_repository_spec.rb +53 -0
  129. data/spec/models/policy_enum_spec.rb +35 -0
  130. data/spec/models/publication_export_spec.rb +2 -2
  131. data/spec/models/repository_add_remove_content_spec.rb +2 -2
  132. data/spec/models/repository_sync_url_spec.rb +2 -2
  133. data/spec/models/repository_version_response_spec.rb +65 -0
  134. data/spec/models/repository_version_spec.rb +2 -26
  135. data/spec/spec_helper.rb +2 -2
  136. metadata +76 -24
@@ -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
 
@@ -20,27 +20,27 @@ module PulpFileClient
20
20
  @api_client = api_client
21
21
  end
22
22
  # Create a file filesystem exporter
23
- # FilesystemExporters export content from a publication to a path on the file system.
24
- # @param data [FileFileFilesystemExporter]
23
+ # FilesystemExporters export content from a publication to a path on the file system. WARNING: This feature is provided as a tech preview and may change in the future. Backwards compatibility is not guaranteed.
24
+ # @param file_file_filesystem_exporter [FileFileFilesystemExporter]
25
25
  # @param [Hash] opts the optional parameters
26
- # @return [FileFileFilesystemExporter]
27
- def create(data, opts = {})
28
- data, _status_code, _headers = create_with_http_info(data, opts)
26
+ # @return [FileFileFilesystemExporterResponse]
27
+ def create(file_file_filesystem_exporter, opts = {})
28
+ data, _status_code, _headers = create_with_http_info(file_file_filesystem_exporter, opts)
29
29
  data
30
30
  end
31
31
 
32
32
  # Create a file filesystem exporter
33
- # FilesystemExporters export content from a publication to a path on the file system.
34
- # @param data [FileFileFilesystemExporter]
33
+ # FilesystemExporters export content from a publication to a path on the file system. WARNING: This feature is provided as a tech preview and may change in the future. Backwards compatibility is not guaranteed.
34
+ # @param file_file_filesystem_exporter [FileFileFilesystemExporter]
35
35
  # @param [Hash] opts the optional parameters
36
- # @return [Array<(FileFileFilesystemExporter, Integer, Hash)>] FileFileFilesystemExporter data, response status code and response headers
37
- def create_with_http_info(data, opts = {})
36
+ # @return [Array<(FileFileFilesystemExporterResponse, Integer, Hash)>] FileFileFilesystemExporterResponse data, response status code and response headers
37
+ def create_with_http_info(file_file_filesystem_exporter, opts = {})
38
38
  if @api_client.config.debugging
39
39
  @api_client.config.logger.debug 'Calling API: ExportersFilesystemApi.create ...'
40
40
  end
41
- # verify the required parameter 'data' is set
42
- if @api_client.config.client_side_validation && data.nil?
43
- fail ArgumentError, "Missing the required parameter 'data' when calling ExportersFilesystemApi.create"
41
+ # verify the required parameter 'file_file_filesystem_exporter' is set
42
+ if @api_client.config.client_side_validation && file_file_filesystem_exporter.nil?
43
+ fail ArgumentError, "Missing the required parameter 'file_file_filesystem_exporter' when calling ExportersFilesystemApi.create"
44
44
  end
45
45
  # resource path
46
46
  local_var_path = '/pulp/api/v3/exporters/file/filesystem/'
@@ -53,19 +53,19 @@ module PulpFileClient
53
53
  # HTTP header 'Accept' (if needed)
54
54
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
55
55
  # HTTP header 'Content-Type'
56
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
56
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
57
57
 
58
58
  # form parameters
59
59
  form_params = opts[:form_params] || {}
60
60
 
61
61
  # http body (model)
62
- post_body = opts[:body] || @api_client.object_to_http_body(data)
62
+ post_body = opts[:body] || @api_client.object_to_http_body(file_file_filesystem_exporter)
63
63
 
64
64
  # return_type
65
- return_type = opts[:return_type] || 'FileFileFilesystemExporter'
65
+ return_type = opts[:return_type] || 'FileFileFilesystemExporterResponse'
66
66
 
67
67
  # auth_names
68
- auth_names = opts[:auth_names] || ['Basic']
68
+ auth_names = opts[:auth_names] || ['basicAuth']
69
69
 
70
70
  new_options = opts.merge(
71
71
  :header_params => header_params,
@@ -84,30 +84,30 @@ module PulpFileClient
84
84
  end
85
85
 
86
86
  # Delete a file filesystem exporter
87
- # FilesystemExporters export content from a publication to a path on the file system.
88
- # @param file_filesystem_exporter_href [String] URI of File Filesystem Exporter. e.g.: /pulp/api/v3/exporters/file/filesystem/1/
87
+ # FilesystemExporters export content from a publication to a path on the file system. WARNING: This feature is provided as a tech preview and may change in the future. Backwards compatibility is not guaranteed.
88
+ # @param file_file_filesystem_exporter_href [String]
89
89
  # @param [Hash] opts the optional parameters
90
90
  # @return [nil]
91
- def delete(file_filesystem_exporter_href, opts = {})
92
- delete_with_http_info(file_filesystem_exporter_href, opts)
91
+ def delete(file_file_filesystem_exporter_href, opts = {})
92
+ delete_with_http_info(file_file_filesystem_exporter_href, opts)
93
93
  nil
94
94
  end
95
95
 
96
96
  # Delete a file filesystem exporter
97
- # FilesystemExporters export content from a publication to a path on the file system.
98
- # @param file_filesystem_exporter_href [String] URI of File Filesystem Exporter. e.g.: /pulp/api/v3/exporters/file/filesystem/1/
97
+ # FilesystemExporters export content from a publication to a path on the file system. WARNING: This feature is provided as a tech preview and may change in the future. Backwards compatibility is not guaranteed.
98
+ # @param file_file_filesystem_exporter_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 delete_with_http_info(file_filesystem_exporter_href, opts = {})
101
+ def delete_with_http_info(file_file_filesystem_exporter_href, opts = {})
102
102
  if @api_client.config.debugging
103
103
  @api_client.config.logger.debug 'Calling API: ExportersFilesystemApi.delete ...'
104
104
  end
105
- # verify the required parameter 'file_filesystem_exporter_href' is set
106
- if @api_client.config.client_side_validation && file_filesystem_exporter_href.nil?
107
- fail ArgumentError, "Missing the required parameter 'file_filesystem_exporter_href' when calling ExportersFilesystemApi.delete"
105
+ # verify the required parameter 'file_file_filesystem_exporter_href' is set
106
+ if @api_client.config.client_side_validation && file_file_filesystem_exporter_href.nil?
107
+ fail ArgumentError, "Missing the required parameter 'file_file_filesystem_exporter_href' when calling ExportersFilesystemApi.delete"
108
108
  end
109
109
  # resource path
110
- local_var_path = '{file_filesystem_exporter_href}'.sub('{' + 'file_filesystem_exporter_href' + '}', CGI.escape(file_filesystem_exporter_href.to_s).gsub('%2F', '/'))
110
+ local_var_path = '{file_file_filesystem_exporter_href}'.sub('{' + 'file_file_filesystem_exporter_href' + '}', CGI.escape(file_file_filesystem_exporter_href.to_s).gsub('%2F', '/'))
111
111
 
112
112
  # query parameters
113
113
  query_params = opts[:query_params] || {}
@@ -125,7 +125,7 @@ module PulpFileClient
125
125
  return_type = opts[:return_type]
126
126
 
127
127
  # auth_names
128
- auth_names = opts[:auth_names] || ['Basic']
128
+ auth_names = opts[:auth_names] || ['basicAuth']
129
129
 
130
130
  new_options = opts.merge(
131
131
  :header_params => header_params,
@@ -144,13 +144,13 @@ module PulpFileClient
144
144
  end
145
145
 
146
146
  # List file filesystem exporters
147
- # FilesystemExporters export content from a publication to a path on the file system.
147
+ # FilesystemExporters export content from a publication to a path on the file system. WARNING: This feature is provided as a tech preview and may change in the future. Backwards compatibility is not guaranteed.
148
148
  # @param [Hash] opts the optional parameters
149
- # @option opts [String] :ordering Which field to use when ordering the results.
150
- # @option opts [String] :name
151
- # @option opts [String] :name__in Filter results where name is in a comma-separated list of values
152
149
  # @option opts [Integer] :limit Number of results to return per page.
150
+ # @option opts [String] :name name
151
+ # @option opts [String] :name__in name__in
153
152
  # @option opts [Integer] :offset The initial index from which to return the results.
153
+ # @option opts [String] :ordering Which field to use when ordering the results.
154
154
  # @option opts [String] :fields A list of fields to include in the response.
155
155
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
156
156
  # @return [InlineResponse2002]
@@ -160,13 +160,13 @@ module PulpFileClient
160
160
  end
161
161
 
162
162
  # List file filesystem exporters
163
- # FilesystemExporters export content from a publication to a path on the file system.
163
+ # FilesystemExporters export content from a publication to a path on the file system. WARNING: This feature is provided as a tech preview and may change in the future. Backwards compatibility is not guaranteed.
164
164
  # @param [Hash] opts the optional parameters
165
- # @option opts [String] :ordering Which field to use when ordering the results.
166
- # @option opts [String] :name
167
- # @option opts [String] :name__in Filter results where name is in a comma-separated list of values
168
165
  # @option opts [Integer] :limit Number of results to return per page.
166
+ # @option opts [String] :name name
167
+ # @option opts [String] :name__in name__in
169
168
  # @option opts [Integer] :offset The initial index from which to return the results.
169
+ # @option opts [String] :ordering Which field to use when ordering the results.
170
170
  # @option opts [String] :fields A list of fields to include in the response.
171
171
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
172
172
  # @return [Array<(InlineResponse2002, Integer, Hash)>] InlineResponse2002 data, response status code and response headers
@@ -179,11 +179,11 @@ module PulpFileClient
179
179
 
180
180
  # query parameters
181
181
  query_params = opts[:query_params] || {}
182
- query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
182
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
183
183
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
184
184
  query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
185
- query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
186
185
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
186
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
187
187
  query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
188
188
  query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
189
189
 
@@ -202,7 +202,7 @@ module PulpFileClient
202
202
  return_type = opts[:return_type] || 'InlineResponse2002'
203
203
 
204
204
  # auth_names
205
- auth_names = opts[:auth_names] || ['Basic']
205
+ auth_names = opts[:auth_names] || ['basicAuth']
206
206
 
207
207
  new_options = opts.merge(
208
208
  :header_params => header_params,
@@ -220,37 +220,37 @@ module PulpFileClient
220
220
  return data, status_code, headers
221
221
  end
222
222
 
223
- # Partially update a file filesystem exporter
224
- # FilesystemExporters export content from a publication to a path on the file system.
225
- # @param file_filesystem_exporter_href [String] URI of File Filesystem Exporter. e.g.: /pulp/api/v3/exporters/file/filesystem/1/
226
- # @param data [FileFileFilesystemExporter]
223
+ # Update a file filesystem exporter
224
+ # FilesystemExporters export content from a publication to a path on the file system. WARNING: This feature is provided as a tech preview and may change in the future. Backwards compatibility is not guaranteed.
225
+ # @param file_file_filesystem_exporter_href [String]
226
+ # @param patchedfile_file_filesystem_exporter [PatchedfileFileFilesystemExporter]
227
227
  # @param [Hash] opts the optional parameters
228
- # @return [FileFileFilesystemExporter]
229
- def partial_update(file_filesystem_exporter_href, data, opts = {})
230
- data, _status_code, _headers = partial_update_with_http_info(file_filesystem_exporter_href, data, opts)
228
+ # @return [FileFileFilesystemExporterResponse]
229
+ def partial_update(file_file_filesystem_exporter_href, patchedfile_file_filesystem_exporter, opts = {})
230
+ data, _status_code, _headers = partial_update_with_http_info(file_file_filesystem_exporter_href, patchedfile_file_filesystem_exporter, opts)
231
231
  data
232
232
  end
233
233
 
234
- # Partially update a file filesystem exporter
235
- # FilesystemExporters export content from a publication to a path on the file system.
236
- # @param file_filesystem_exporter_href [String] URI of File Filesystem Exporter. e.g.: /pulp/api/v3/exporters/file/filesystem/1/
237
- # @param data [FileFileFilesystemExporter]
234
+ # Update a file filesystem exporter
235
+ # FilesystemExporters export content from a publication to a path on the file system. WARNING: This feature is provided as a tech preview and may change in the future. Backwards compatibility is not guaranteed.
236
+ # @param file_file_filesystem_exporter_href [String]
237
+ # @param patchedfile_file_filesystem_exporter [PatchedfileFileFilesystemExporter]
238
238
  # @param [Hash] opts the optional parameters
239
- # @return [Array<(FileFileFilesystemExporter, Integer, Hash)>] FileFileFilesystemExporter data, response status code and response headers
240
- def partial_update_with_http_info(file_filesystem_exporter_href, data, opts = {})
239
+ # @return [Array<(FileFileFilesystemExporterResponse, Integer, Hash)>] FileFileFilesystemExporterResponse data, response status code and response headers
240
+ def partial_update_with_http_info(file_file_filesystem_exporter_href, patchedfile_file_filesystem_exporter, opts = {})
241
241
  if @api_client.config.debugging
242
242
  @api_client.config.logger.debug 'Calling API: ExportersFilesystemApi.partial_update ...'
243
243
  end
244
- # verify the required parameter 'file_filesystem_exporter_href' is set
245
- if @api_client.config.client_side_validation && file_filesystem_exporter_href.nil?
246
- fail ArgumentError, "Missing the required parameter 'file_filesystem_exporter_href' when calling ExportersFilesystemApi.partial_update"
244
+ # verify the required parameter 'file_file_filesystem_exporter_href' is set
245
+ if @api_client.config.client_side_validation && file_file_filesystem_exporter_href.nil?
246
+ fail ArgumentError, "Missing the required parameter 'file_file_filesystem_exporter_href' when calling ExportersFilesystemApi.partial_update"
247
247
  end
248
- # verify the required parameter 'data' is set
249
- if @api_client.config.client_side_validation && data.nil?
250
- fail ArgumentError, "Missing the required parameter 'data' when calling ExportersFilesystemApi.partial_update"
248
+ # verify the required parameter 'patchedfile_file_filesystem_exporter' is set
249
+ if @api_client.config.client_side_validation && patchedfile_file_filesystem_exporter.nil?
250
+ fail ArgumentError, "Missing the required parameter 'patchedfile_file_filesystem_exporter' when calling ExportersFilesystemApi.partial_update"
251
251
  end
252
252
  # resource path
253
- local_var_path = '{file_filesystem_exporter_href}'.sub('{' + 'file_filesystem_exporter_href' + '}', CGI.escape(file_filesystem_exporter_href.to_s).gsub('%2F', '/'))
253
+ local_var_path = '{file_file_filesystem_exporter_href}'.sub('{' + 'file_file_filesystem_exporter_href' + '}', CGI.escape(file_file_filesystem_exporter_href.to_s).gsub('%2F', '/'))
254
254
 
255
255
  # query parameters
256
256
  query_params = opts[:query_params] || {}
@@ -260,19 +260,19 @@ module PulpFileClient
260
260
  # HTTP header 'Accept' (if needed)
261
261
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
262
262
  # HTTP header 'Content-Type'
263
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
263
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
264
264
 
265
265
  # form parameters
266
266
  form_params = opts[:form_params] || {}
267
267
 
268
268
  # http body (model)
269
- post_body = opts[:body] || @api_client.object_to_http_body(data)
269
+ post_body = opts[:body] || @api_client.object_to_http_body(patchedfile_file_filesystem_exporter)
270
270
 
271
271
  # return_type
272
- return_type = opts[:return_type] || 'FileFileFilesystemExporter'
272
+ return_type = opts[:return_type] || 'FileFileFilesystemExporterResponse'
273
273
 
274
274
  # auth_names
275
- auth_names = opts[:auth_names] || ['Basic']
275
+ auth_names = opts[:auth_names] || ['basicAuth']
276
276
 
277
277
  new_options = opts.merge(
278
278
  :header_params => header_params,
@@ -291,34 +291,34 @@ module PulpFileClient
291
291
  end
292
292
 
293
293
  # Inspect a file filesystem exporter
294
- # FilesystemExporters export content from a publication to a path on the file system.
295
- # @param file_filesystem_exporter_href [String] URI of File Filesystem Exporter. e.g.: /pulp/api/v3/exporters/file/filesystem/1/
294
+ # FilesystemExporters export content from a publication to a path on the file system. WARNING: This feature is provided as a tech preview and may change in the future. Backwards compatibility is not guaranteed.
295
+ # @param file_file_filesystem_exporter_href [String]
296
296
  # @param [Hash] opts the optional parameters
297
297
  # @option opts [String] :fields A list of fields to include in the response.
298
298
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
299
- # @return [FileFileFilesystemExporter]
300
- def read(file_filesystem_exporter_href, opts = {})
301
- data, _status_code, _headers = read_with_http_info(file_filesystem_exporter_href, opts)
299
+ # @return [FileFileFilesystemExporterResponse]
300
+ def read(file_file_filesystem_exporter_href, opts = {})
301
+ data, _status_code, _headers = read_with_http_info(file_file_filesystem_exporter_href, opts)
302
302
  data
303
303
  end
304
304
 
305
305
  # Inspect a file filesystem exporter
306
- # FilesystemExporters export content from a publication to a path on the file system.
307
- # @param file_filesystem_exporter_href [String] URI of File Filesystem Exporter. e.g.: /pulp/api/v3/exporters/file/filesystem/1/
306
+ # FilesystemExporters export content from a publication to a path on the file system. WARNING: This feature is provided as a tech preview and may change in the future. Backwards compatibility is not guaranteed.
307
+ # @param file_file_filesystem_exporter_href [String]
308
308
  # @param [Hash] opts the optional parameters
309
309
  # @option opts [String] :fields A list of fields to include in the response.
310
310
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
311
- # @return [Array<(FileFileFilesystemExporter, Integer, Hash)>] FileFileFilesystemExporter data, response status code and response headers
312
- def read_with_http_info(file_filesystem_exporter_href, opts = {})
311
+ # @return [Array<(FileFileFilesystemExporterResponse, Integer, Hash)>] FileFileFilesystemExporterResponse data, response status code and response headers
312
+ def read_with_http_info(file_file_filesystem_exporter_href, opts = {})
313
313
  if @api_client.config.debugging
314
314
  @api_client.config.logger.debug 'Calling API: ExportersFilesystemApi.read ...'
315
315
  end
316
- # verify the required parameter 'file_filesystem_exporter_href' is set
317
- if @api_client.config.client_side_validation && file_filesystem_exporter_href.nil?
318
- fail ArgumentError, "Missing the required parameter 'file_filesystem_exporter_href' when calling ExportersFilesystemApi.read"
316
+ # verify the required parameter 'file_file_filesystem_exporter_href' is set
317
+ if @api_client.config.client_side_validation && file_file_filesystem_exporter_href.nil?
318
+ fail ArgumentError, "Missing the required parameter 'file_file_filesystem_exporter_href' when calling ExportersFilesystemApi.read"
319
319
  end
320
320
  # resource path
321
- local_var_path = '{file_filesystem_exporter_href}'.sub('{' + 'file_filesystem_exporter_href' + '}', CGI.escape(file_filesystem_exporter_href.to_s).gsub('%2F', '/'))
321
+ local_var_path = '{file_file_filesystem_exporter_href}'.sub('{' + 'file_file_filesystem_exporter_href' + '}', CGI.escape(file_file_filesystem_exporter_href.to_s).gsub('%2F', '/'))
322
322
 
323
323
  # query parameters
324
324
  query_params = opts[:query_params] || {}
@@ -337,10 +337,10 @@ module PulpFileClient
337
337
  post_body = opts[:body]
338
338
 
339
339
  # return_type
340
- return_type = opts[:return_type] || 'FileFileFilesystemExporter'
340
+ return_type = opts[:return_type] || 'FileFileFilesystemExporterResponse'
341
341
 
342
342
  # auth_names
343
- auth_names = opts[:auth_names] || ['Basic']
343
+ auth_names = opts[:auth_names] || ['basicAuth']
344
344
 
345
345
  new_options = opts.merge(
346
346
  :header_params => header_params,
@@ -359,36 +359,36 @@ module PulpFileClient
359
359
  end
360
360
 
361
361
  # Update a file filesystem exporter
362
- # FilesystemExporters export content from a publication to a path on the file system.
363
- # @param file_filesystem_exporter_href [String] URI of File Filesystem Exporter. e.g.: /pulp/api/v3/exporters/file/filesystem/1/
364
- # @param data [FileFileFilesystemExporter]
362
+ # FilesystemExporters export content from a publication to a path on the file system. WARNING: This feature is provided as a tech preview and may change in the future. Backwards compatibility is not guaranteed.
363
+ # @param file_file_filesystem_exporter_href [String]
364
+ # @param file_file_filesystem_exporter [FileFileFilesystemExporter]
365
365
  # @param [Hash] opts the optional parameters
366
- # @return [FileFileFilesystemExporter]
367
- def update(file_filesystem_exporter_href, data, opts = {})
368
- data, _status_code, _headers = update_with_http_info(file_filesystem_exporter_href, data, opts)
366
+ # @return [FileFileFilesystemExporterResponse]
367
+ def update(file_file_filesystem_exporter_href, file_file_filesystem_exporter, opts = {})
368
+ data, _status_code, _headers = update_with_http_info(file_file_filesystem_exporter_href, file_file_filesystem_exporter, opts)
369
369
  data
370
370
  end
371
371
 
372
372
  # Update a file filesystem exporter
373
- # FilesystemExporters export content from a publication to a path on the file system.
374
- # @param file_filesystem_exporter_href [String] URI of File Filesystem Exporter. e.g.: /pulp/api/v3/exporters/file/filesystem/1/
375
- # @param data [FileFileFilesystemExporter]
373
+ # FilesystemExporters export content from a publication to a path on the file system. WARNING: This feature is provided as a tech preview and may change in the future. Backwards compatibility is not guaranteed.
374
+ # @param file_file_filesystem_exporter_href [String]
375
+ # @param file_file_filesystem_exporter [FileFileFilesystemExporter]
376
376
  # @param [Hash] opts the optional parameters
377
- # @return [Array<(FileFileFilesystemExporter, Integer, Hash)>] FileFileFilesystemExporter data, response status code and response headers
378
- def update_with_http_info(file_filesystem_exporter_href, data, opts = {})
377
+ # @return [Array<(FileFileFilesystemExporterResponse, Integer, Hash)>] FileFileFilesystemExporterResponse data, response status code and response headers
378
+ def update_with_http_info(file_file_filesystem_exporter_href, file_file_filesystem_exporter, opts = {})
379
379
  if @api_client.config.debugging
380
380
  @api_client.config.logger.debug 'Calling API: ExportersFilesystemApi.update ...'
381
381
  end
382
- # verify the required parameter 'file_filesystem_exporter_href' is set
383
- if @api_client.config.client_side_validation && file_filesystem_exporter_href.nil?
384
- fail ArgumentError, "Missing the required parameter 'file_filesystem_exporter_href' when calling ExportersFilesystemApi.update"
382
+ # verify the required parameter 'file_file_filesystem_exporter_href' is set
383
+ if @api_client.config.client_side_validation && file_file_filesystem_exporter_href.nil?
384
+ fail ArgumentError, "Missing the required parameter 'file_file_filesystem_exporter_href' when calling ExportersFilesystemApi.update"
385
385
  end
386
- # verify the required parameter 'data' is set
387
- if @api_client.config.client_side_validation && data.nil?
388
- fail ArgumentError, "Missing the required parameter 'data' when calling ExportersFilesystemApi.update"
386
+ # verify the required parameter 'file_file_filesystem_exporter' is set
387
+ if @api_client.config.client_side_validation && file_file_filesystem_exporter.nil?
388
+ fail ArgumentError, "Missing the required parameter 'file_file_filesystem_exporter' when calling ExportersFilesystemApi.update"
389
389
  end
390
390
  # resource path
391
- local_var_path = '{file_filesystem_exporter_href}'.sub('{' + 'file_filesystem_exporter_href' + '}', CGI.escape(file_filesystem_exporter_href.to_s).gsub('%2F', '/'))
391
+ local_var_path = '{file_file_filesystem_exporter_href}'.sub('{' + 'file_file_filesystem_exporter_href' + '}', CGI.escape(file_file_filesystem_exporter_href.to_s).gsub('%2F', '/'))
392
392
 
393
393
  # query parameters
394
394
  query_params = opts[:query_params] || {}
@@ -398,19 +398,19 @@ module PulpFileClient
398
398
  # HTTP header 'Accept' (if needed)
399
399
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
400
400
  # HTTP header 'Content-Type'
401
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
401
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
402
402
 
403
403
  # form parameters
404
404
  form_params = opts[:form_params] || {}
405
405
 
406
406
  # http body (model)
407
- post_body = opts[:body] || @api_client.object_to_http_body(data)
407
+ post_body = opts[:body] || @api_client.object_to_http_body(file_file_filesystem_exporter)
408
408
 
409
409
  # return_type
410
- return_type = opts[:return_type] || 'FileFileFilesystemExporter'
410
+ return_type = opts[:return_type] || 'FileFileFilesystemExporterResponse'
411
411
 
412
412
  # auth_names
413
- auth_names = opts[:auth_names] || ['Basic']
413
+ auth_names = opts[:auth_names] || ['basicAuth']
414
414
 
415
415
  new_options = opts.merge(
416
416
  :header_params => header_params,