pulp_file_client 0.3.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +23 -17
- data/docs/ContentFilesApi.md +5 -5
- data/docs/DistributionsFileApi.md +3 -3
- data/docs/{Export.md → ExportRead.md} +4 -4
- data/docs/ExportersFileExportsApi.md +16 -16
- data/docs/ExportersFilesystemApi.md +52 -52
- data/docs/{FileFileContent.md → FileFileContentRead.md} +2 -2
- data/docs/FileFileDistributionRead.md +29 -0
- data/docs/{FileFileFileSystemExporter.md → FileFileFilesystemExporter.md} +2 -2
- data/docs/FileFileFilesystemExporterRead.md +23 -0
- data/docs/FileFilePublicationRead.md +27 -0
- data/docs/FileFileRemote.md +7 -3
- data/docs/FileFileRemoteRead.md +43 -0
- data/docs/FileFileRepositoryRead.md +27 -0
- data/docs/InlineResponse200.md +1 -1
- data/docs/InlineResponse2001.md +1 -1
- data/docs/InlineResponse2002.md +1 -1
- data/docs/InlineResponse2003.md +1 -1
- data/docs/InlineResponse2004.md +1 -1
- data/docs/InlineResponse2005.md +1 -1
- data/docs/InlineResponse2006.md +1 -1
- data/docs/InlineResponse2007.md +1 -1
- data/docs/PublicationsFileApi.md +3 -3
- data/docs/RemotesFileApi.md +5 -5
- data/docs/RepositoriesFileApi.md +10 -10
- data/docs/RepositoriesFileVersionsApi.md +3 -3
- data/docs/RepositoryVersionRead.md +25 -0
- data/lib/pulp_file_client/api/content_files_api.rb +5 -5
- data/lib/pulp_file_client/api/distributions_file_api.rb +3 -3
- data/lib/pulp_file_client/api/exporters_file_exports_api.rb +27 -27
- data/lib/pulp_file_client/api/exporters_filesystem_api.rb +78 -78
- data/lib/pulp_file_client/api/publications_file_api.rb +3 -3
- data/lib/pulp_file_client/api/remotes_file_api.rb +6 -6
- data/lib/pulp_file_client/api/repositories_file_api.rb +15 -15
- data/lib/pulp_file_client/api/repositories_file_versions_api.rb +3 -3
- data/lib/pulp_file_client/configuration.rb +2 -2
- data/lib/pulp_file_client/models/{export.rb → export_read.rb} +4 -13
- data/lib/pulp_file_client/models/{file_file_content.rb → file_file_content_read.rb} +3 -3
- data/lib/pulp_file_client/models/file_file_distribution_read.rb +331 -0
- data/lib/pulp_file_client/models/{file_file_file_system_exporter.rb → file_file_filesystem_exporter.rb} +3 -3
- data/lib/pulp_file_client/models/file_file_filesystem_exporter_read.rb +284 -0
- data/lib/pulp_file_client/models/file_file_publication_read.rb +274 -0
- data/lib/pulp_file_client/models/file_file_remote.rb +56 -4
- data/lib/pulp_file_client/models/file_file_remote_read.rb +531 -0
- data/lib/pulp_file_client/models/file_file_repository_read.rb +294 -0
- data/lib/pulp_file_client/models/inline_response200.rb +1 -1
- data/lib/pulp_file_client/models/inline_response2001.rb +1 -1
- data/lib/pulp_file_client/models/inline_response2002.rb +1 -1
- data/lib/pulp_file_client/models/inline_response2003.rb +1 -1
- data/lib/pulp_file_client/models/inline_response2004.rb +1 -1
- data/lib/pulp_file_client/models/inline_response2005.rb +1 -1
- data/lib/pulp_file_client/models/inline_response2006.rb +1 -1
- data/lib/pulp_file_client/models/inline_response2007.rb +1 -1
- data/lib/pulp_file_client/models/repository_version_read.rb +244 -0
- data/lib/pulp_file_client/version.rb +1 -1
- data/lib/pulp_file_client.rb +9 -3
- data/spec/api/content_files_api_spec.rb +2 -2
- data/spec/api/distributions_file_api_spec.rb +1 -1
- data/spec/api/exporters_file_exports_api_spec.rb +6 -6
- data/spec/api/exporters_filesystem_api_spec.rb +20 -20
- data/spec/api/publications_file_api_spec.rb +1 -1
- data/spec/api/remotes_file_api_spec.rb +2 -2
- data/spec/api/repositories_file_api_spec.rb +6 -6
- data/spec/api/repositories_file_versions_api_spec.rb +1 -1
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/{export_spec.rb → export_read_spec.rb} +6 -6
- data/spec/models/{file_file_content_spec.rb → file_file_content_read_spec.rb} +6 -6
- data/spec/models/file_file_distribution_read_spec.rb +77 -0
- data/spec/models/file_file_filesystem_exporter_read_spec.rb +59 -0
- data/spec/models/{file_file_file_system_exporter_spec.rb → file_file_filesystem_exporter_spec.rb} +6 -6
- data/spec/models/file_file_publication_read_spec.rb +71 -0
- data/spec/models/file_file_remote_read_spec.rb +123 -0
- data/spec/models/file_file_remote_spec.rb +12 -0
- data/spec/models/file_file_repository_read_spec.rb +71 -0
- data/spec/models/repository_version_read_spec.rb +65 -0
- metadata +38 -14
@@ -21,35 +21,35 @@ module PulpFileClient
|
|
21
21
|
end
|
22
22
|
# Create an export
|
23
23
|
# Trigger an asynchronous task to export a file publication.
|
24
|
-
# @param
|
24
|
+
# @param file_filesystem_exporter_href [String] URI of File Filesystem Exporter. e.g.: /pulp/api/v3/exporters/file/filesystem/1/
|
25
25
|
# @param data [PublicationExport]
|
26
26
|
# @param [Hash] opts the optional parameters
|
27
27
|
# @return [AsyncOperationResponse]
|
28
|
-
def create(
|
29
|
-
data, _status_code, _headers = create_with_http_info(
|
28
|
+
def create(file_filesystem_exporter_href, data, opts = {})
|
29
|
+
data, _status_code, _headers = create_with_http_info(file_filesystem_exporter_href, data, opts)
|
30
30
|
data
|
31
31
|
end
|
32
32
|
|
33
33
|
# Create an export
|
34
34
|
# Trigger an asynchronous task to export a file publication.
|
35
|
-
# @param
|
35
|
+
# @param file_filesystem_exporter_href [String] URI of File Filesystem Exporter. e.g.: /pulp/api/v3/exporters/file/filesystem/1/
|
36
36
|
# @param data [PublicationExport]
|
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 create_with_http_info(
|
39
|
+
def create_with_http_info(file_filesystem_exporter_href, data, opts = {})
|
40
40
|
if @api_client.config.debugging
|
41
41
|
@api_client.config.logger.debug 'Calling API: ExportersFileExportsApi.create ...'
|
42
42
|
end
|
43
|
-
# verify the required parameter '
|
44
|
-
if @api_client.config.client_side_validation &&
|
45
|
-
fail ArgumentError, "Missing the required parameter '
|
43
|
+
# verify the required parameter 'file_filesystem_exporter_href' is set
|
44
|
+
if @api_client.config.client_side_validation && file_filesystem_exporter_href.nil?
|
45
|
+
fail ArgumentError, "Missing the required parameter 'file_filesystem_exporter_href' when calling ExportersFileExportsApi.create"
|
46
46
|
end
|
47
47
|
# verify the required parameter 'data' is set
|
48
48
|
if @api_client.config.client_side_validation && data.nil?
|
49
49
|
fail ArgumentError, "Missing the required parameter 'data' when calling ExportersFileExportsApi.create"
|
50
50
|
end
|
51
51
|
# resource path
|
52
|
-
local_var_path = '
|
52
|
+
local_var_path = '{file_filesystem_exporter_href}exports/'.sub('{' + 'file_filesystem_exporter_href' + '}', CGI.escape(file_filesystem_exporter_href.to_s).gsub('%2F', '/'))
|
53
53
|
|
54
54
|
# query parameters
|
55
55
|
query_params = opts[:query_params] || {}
|
@@ -90,7 +90,7 @@ module PulpFileClient
|
|
90
90
|
end
|
91
91
|
|
92
92
|
# Delete an export
|
93
|
-
#
|
93
|
+
# FilesystemExports provide a history of previous exports.
|
94
94
|
# @param export_href [String] URI of Export. e.g.: /pulp/api/v3/exporters/file/filesystem/1/exports/1/
|
95
95
|
# @param [Hash] opts the optional parameters
|
96
96
|
# @return [nil]
|
@@ -100,7 +100,7 @@ module PulpFileClient
|
|
100
100
|
end
|
101
101
|
|
102
102
|
# Delete an export
|
103
|
-
#
|
103
|
+
# FilesystemExports provide a history of previous exports.
|
104
104
|
# @param export_href [String] URI of Export. e.g.: /pulp/api/v3/exporters/file/filesystem/1/exports/1/
|
105
105
|
# @param [Hash] opts the optional parameters
|
106
106
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
@@ -150,8 +150,8 @@ module PulpFileClient
|
|
150
150
|
end
|
151
151
|
|
152
152
|
# List exports
|
153
|
-
#
|
154
|
-
# @param
|
153
|
+
# FilesystemExports provide a history of previous exports.
|
154
|
+
# @param file_filesystem_exporter_href [String] URI of File Filesystem Exporter. e.g.: /pulp/api/v3/exporters/file/filesystem/1/
|
155
155
|
# @param [Hash] opts the optional parameters
|
156
156
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
157
157
|
# @option opts [Integer] :limit Number of results to return per page.
|
@@ -159,14 +159,14 @@ module PulpFileClient
|
|
159
159
|
# @option opts [String] :fields A list of fields to include in the response.
|
160
160
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
161
161
|
# @return [InlineResponse2003]
|
162
|
-
def list(
|
163
|
-
data, _status_code, _headers = list_with_http_info(
|
162
|
+
def list(file_filesystem_exporter_href, opts = {})
|
163
|
+
data, _status_code, _headers = list_with_http_info(file_filesystem_exporter_href, opts)
|
164
164
|
data
|
165
165
|
end
|
166
166
|
|
167
167
|
# List exports
|
168
|
-
#
|
169
|
-
# @param
|
168
|
+
# FilesystemExports provide a history of previous exports.
|
169
|
+
# @param file_filesystem_exporter_href [String] URI of File Filesystem Exporter. e.g.: /pulp/api/v3/exporters/file/filesystem/1/
|
170
170
|
# @param [Hash] opts the optional parameters
|
171
171
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
172
172
|
# @option opts [Integer] :limit Number of results to return per page.
|
@@ -174,16 +174,16 @@ module PulpFileClient
|
|
174
174
|
# @option opts [String] :fields A list of fields to include in the response.
|
175
175
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
176
176
|
# @return [Array<(InlineResponse2003, Integer, Hash)>] InlineResponse2003 data, response status code and response headers
|
177
|
-
def list_with_http_info(
|
177
|
+
def list_with_http_info(file_filesystem_exporter_href, opts = {})
|
178
178
|
if @api_client.config.debugging
|
179
179
|
@api_client.config.logger.debug 'Calling API: ExportersFileExportsApi.list ...'
|
180
180
|
end
|
181
|
-
# verify the required parameter '
|
182
|
-
if @api_client.config.client_side_validation &&
|
183
|
-
fail ArgumentError, "Missing the required parameter '
|
181
|
+
# verify the required parameter 'file_filesystem_exporter_href' is set
|
182
|
+
if @api_client.config.client_side_validation && file_filesystem_exporter_href.nil?
|
183
|
+
fail ArgumentError, "Missing the required parameter 'file_filesystem_exporter_href' when calling ExportersFileExportsApi.list"
|
184
184
|
end
|
185
185
|
# resource path
|
186
|
-
local_var_path = '
|
186
|
+
local_var_path = '{file_filesystem_exporter_href}exports/'.sub('{' + 'file_filesystem_exporter_href' + '}', CGI.escape(file_filesystem_exporter_href.to_s).gsub('%2F', '/'))
|
187
187
|
|
188
188
|
# query parameters
|
189
189
|
query_params = opts[:query_params] || {}
|
@@ -227,24 +227,24 @@ module PulpFileClient
|
|
227
227
|
end
|
228
228
|
|
229
229
|
# Inspect an export
|
230
|
-
#
|
230
|
+
# FilesystemExports provide a history of previous exports.
|
231
231
|
# @param export_href [String] URI of Export. e.g.: /pulp/api/v3/exporters/file/filesystem/1/exports/1/
|
232
232
|
# @param [Hash] opts the optional parameters
|
233
233
|
# @option opts [String] :fields A list of fields to include in the response.
|
234
234
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
235
|
-
# @return [
|
235
|
+
# @return [ExportRead]
|
236
236
|
def read(export_href, opts = {})
|
237
237
|
data, _status_code, _headers = read_with_http_info(export_href, opts)
|
238
238
|
data
|
239
239
|
end
|
240
240
|
|
241
241
|
# Inspect an export
|
242
|
-
#
|
242
|
+
# FilesystemExports provide a history of previous exports.
|
243
243
|
# @param export_href [String] URI of Export. e.g.: /pulp/api/v3/exporters/file/filesystem/1/exports/1/
|
244
244
|
# @param [Hash] opts the optional parameters
|
245
245
|
# @option opts [String] :fields A list of fields to include in the response.
|
246
246
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
247
|
-
# @return [Array<(
|
247
|
+
# @return [Array<(ExportRead, Integer, Hash)>] ExportRead data, response status code and response headers
|
248
248
|
def read_with_http_info(export_href, opts = {})
|
249
249
|
if @api_client.config.debugging
|
250
250
|
@api_client.config.logger.debug 'Calling API: ExportersFileExportsApi.read ...'
|
@@ -273,7 +273,7 @@ module PulpFileClient
|
|
273
273
|
post_body = opts[:body]
|
274
274
|
|
275
275
|
# return_type
|
276
|
-
return_type = opts[:return_type] || '
|
276
|
+
return_type = opts[:return_type] || 'ExportRead'
|
277
277
|
|
278
278
|
# auth_names
|
279
279
|
auth_names = opts[:auth_names] || ['Basic']
|
@@ -19,21 +19,21 @@ module PulpFileClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
# Create a file
|
23
|
-
#
|
24
|
-
# @param data [
|
22
|
+
# Create a file filesystem exporter
|
23
|
+
# FilesystemExporters export content from a publication to a path on the file system.
|
24
|
+
# @param data [FileFileFilesystemExporter]
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
|
-
# @return [
|
26
|
+
# @return [FileFileFilesystemExporterRead]
|
27
27
|
def create(data, opts = {})
|
28
28
|
data, _status_code, _headers = create_with_http_info(data, opts)
|
29
29
|
data
|
30
30
|
end
|
31
31
|
|
32
|
-
# Create a file
|
33
|
-
#
|
34
|
-
# @param data [
|
32
|
+
# Create a file filesystem exporter
|
33
|
+
# FilesystemExporters export content from a publication to a path on the file system.
|
34
|
+
# @param data [FileFileFilesystemExporter]
|
35
35
|
# @param [Hash] opts the optional parameters
|
36
|
-
# @return [Array<(
|
36
|
+
# @return [Array<(FileFileFilesystemExporterRead, Integer, Hash)>] FileFileFilesystemExporterRead data, response status code and response headers
|
37
37
|
def create_with_http_info(data, opts = {})
|
38
38
|
if @api_client.config.debugging
|
39
39
|
@api_client.config.logger.debug 'Calling API: ExportersFilesystemApi.create ...'
|
@@ -62,7 +62,7 @@ module PulpFileClient
|
|
62
62
|
post_body = opts[:body] || @api_client.object_to_http_body(data)
|
63
63
|
|
64
64
|
# return_type
|
65
|
-
return_type = opts[:return_type] || '
|
65
|
+
return_type = opts[:return_type] || 'FileFileFilesystemExporterRead'
|
66
66
|
|
67
67
|
# auth_names
|
68
68
|
auth_names = opts[:auth_names] || ['Basic']
|
@@ -83,31 +83,31 @@ module PulpFileClient
|
|
83
83
|
return data, status_code, headers
|
84
84
|
end
|
85
85
|
|
86
|
-
# Delete a file
|
87
|
-
#
|
88
|
-
# @param
|
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/
|
89
89
|
# @param [Hash] opts the optional parameters
|
90
90
|
# @return [nil]
|
91
|
-
def delete(
|
92
|
-
delete_with_http_info(
|
91
|
+
def delete(file_filesystem_exporter_href, opts = {})
|
92
|
+
delete_with_http_info(file_filesystem_exporter_href, opts)
|
93
93
|
nil
|
94
94
|
end
|
95
95
|
|
96
|
-
# Delete a file
|
97
|
-
#
|
98
|
-
# @param
|
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/
|
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(
|
101
|
+
def delete_with_http_info(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 '
|
106
|
-
if @api_client.config.client_side_validation &&
|
107
|
-
fail ArgumentError, "Missing the required parameter '
|
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"
|
108
108
|
end
|
109
109
|
# resource path
|
110
|
-
local_var_path = '{
|
110
|
+
local_var_path = '{file_filesystem_exporter_href}'.sub('{' + 'file_filesystem_exporter_href' + '}', CGI.escape(file_filesystem_exporter_href.to_s).gsub('%2F', '/'))
|
111
111
|
|
112
112
|
# query parameters
|
113
113
|
query_params = opts[:query_params] || {}
|
@@ -143,8 +143,8 @@ module PulpFileClient
|
|
143
143
|
return data, status_code, headers
|
144
144
|
end
|
145
145
|
|
146
|
-
# List file
|
147
|
-
#
|
146
|
+
# List file filesystem exporters
|
147
|
+
# FilesystemExporters export content from a publication to a path on the file system.
|
148
148
|
# @param [Hash] opts the optional parameters
|
149
149
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
150
150
|
# @option opts [String] :name
|
@@ -159,8 +159,8 @@ module PulpFileClient
|
|
159
159
|
data
|
160
160
|
end
|
161
161
|
|
162
|
-
# List file
|
163
|
-
#
|
162
|
+
# List file filesystem exporters
|
163
|
+
# FilesystemExporters export content from a publication to a path on the file system.
|
164
164
|
# @param [Hash] opts the optional parameters
|
165
165
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
166
166
|
# @option opts [String] :name
|
@@ -220,37 +220,37 @@ module PulpFileClient
|
|
220
220
|
return data, status_code, headers
|
221
221
|
end
|
222
222
|
|
223
|
-
# Partially update a file
|
224
|
-
#
|
225
|
-
# @param
|
226
|
-
# @param data [
|
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]
|
227
227
|
# @param [Hash] opts the optional parameters
|
228
|
-
# @return [
|
229
|
-
def partial_update(
|
230
|
-
data, _status_code, _headers = partial_update_with_http_info(
|
228
|
+
# @return [FileFileFilesystemExporterRead]
|
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)
|
231
231
|
data
|
232
232
|
end
|
233
233
|
|
234
|
-
# Partially update a file
|
235
|
-
#
|
236
|
-
# @param
|
237
|
-
# @param data [
|
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]
|
238
238
|
# @param [Hash] opts the optional parameters
|
239
|
-
# @return [Array<(
|
240
|
-
def partial_update_with_http_info(
|
239
|
+
# @return [Array<(FileFileFilesystemExporterRead, Integer, Hash)>] FileFileFilesystemExporterRead data, response status code and response headers
|
240
|
+
def partial_update_with_http_info(file_filesystem_exporter_href, data, 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 '
|
245
|
-
if @api_client.config.client_side_validation &&
|
246
|
-
fail ArgumentError, "Missing the required parameter '
|
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"
|
247
247
|
end
|
248
248
|
# verify the required parameter 'data' is set
|
249
249
|
if @api_client.config.client_side_validation && data.nil?
|
250
250
|
fail ArgumentError, "Missing the required parameter 'data' when calling ExportersFilesystemApi.partial_update"
|
251
251
|
end
|
252
252
|
# resource path
|
253
|
-
local_var_path = '{
|
253
|
+
local_var_path = '{file_filesystem_exporter_href}'.sub('{' + 'file_filesystem_exporter_href' + '}', CGI.escape(file_filesystem_exporter_href.to_s).gsub('%2F', '/'))
|
254
254
|
|
255
255
|
# query parameters
|
256
256
|
query_params = opts[:query_params] || {}
|
@@ -269,7 +269,7 @@ module PulpFileClient
|
|
269
269
|
post_body = opts[:body] || @api_client.object_to_http_body(data)
|
270
270
|
|
271
271
|
# return_type
|
272
|
-
return_type = opts[:return_type] || '
|
272
|
+
return_type = opts[:return_type] || 'FileFileFilesystemExporterRead'
|
273
273
|
|
274
274
|
# auth_names
|
275
275
|
auth_names = opts[:auth_names] || ['Basic']
|
@@ -290,35 +290,35 @@ module PulpFileClient
|
|
290
290
|
return data, status_code, headers
|
291
291
|
end
|
292
292
|
|
293
|
-
# Inspect a file
|
294
|
-
#
|
295
|
-
# @param
|
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/
|
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 [
|
300
|
-
def read(
|
301
|
-
data, _status_code, _headers = read_with_http_info(
|
299
|
+
# @return [FileFileFilesystemExporterRead]
|
300
|
+
def read(file_filesystem_exporter_href, opts = {})
|
301
|
+
data, _status_code, _headers = read_with_http_info(file_filesystem_exporter_href, opts)
|
302
302
|
data
|
303
303
|
end
|
304
304
|
|
305
|
-
# Inspect a file
|
306
|
-
#
|
307
|
-
# @param
|
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/
|
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<(
|
312
|
-
def read_with_http_info(
|
311
|
+
# @return [Array<(FileFileFilesystemExporterRead, Integer, Hash)>] FileFileFilesystemExporterRead data, response status code and response headers
|
312
|
+
def read_with_http_info(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 '
|
317
|
-
if @api_client.config.client_side_validation &&
|
318
|
-
fail ArgumentError, "Missing the required parameter '
|
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"
|
319
319
|
end
|
320
320
|
# resource path
|
321
|
-
local_var_path = '{
|
321
|
+
local_var_path = '{file_filesystem_exporter_href}'.sub('{' + 'file_filesystem_exporter_href' + '}', CGI.escape(file_filesystem_exporter_href.to_s).gsub('%2F', '/'))
|
322
322
|
|
323
323
|
# query parameters
|
324
324
|
query_params = opts[:query_params] || {}
|
@@ -337,7 +337,7 @@ module PulpFileClient
|
|
337
337
|
post_body = opts[:body]
|
338
338
|
|
339
339
|
# return_type
|
340
|
-
return_type = opts[:return_type] || '
|
340
|
+
return_type = opts[:return_type] || 'FileFileFilesystemExporterRead'
|
341
341
|
|
342
342
|
# auth_names
|
343
343
|
auth_names = opts[:auth_names] || ['Basic']
|
@@ -358,37 +358,37 @@ module PulpFileClient
|
|
358
358
|
return data, status_code, headers
|
359
359
|
end
|
360
360
|
|
361
|
-
# Update a file
|
362
|
-
#
|
363
|
-
# @param
|
364
|
-
# @param data [
|
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]
|
365
365
|
# @param [Hash] opts the optional parameters
|
366
|
-
# @return [
|
367
|
-
def update(
|
368
|
-
data, _status_code, _headers = update_with_http_info(
|
366
|
+
# @return [FileFileFilesystemExporterRead]
|
367
|
+
def update(file_filesystem_exporter_href, data, opts = {})
|
368
|
+
data, _status_code, _headers = update_with_http_info(file_filesystem_exporter_href, data, opts)
|
369
369
|
data
|
370
370
|
end
|
371
371
|
|
372
|
-
# Update a file
|
373
|
-
#
|
374
|
-
# @param
|
375
|
-
# @param data [
|
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]
|
376
376
|
# @param [Hash] opts the optional parameters
|
377
|
-
# @return [Array<(
|
378
|
-
def update_with_http_info(
|
377
|
+
# @return [Array<(FileFileFilesystemExporterRead, Integer, Hash)>] FileFileFilesystemExporterRead data, response status code and response headers
|
378
|
+
def update_with_http_info(file_filesystem_exporter_href, data, 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 '
|
383
|
-
if @api_client.config.client_side_validation &&
|
384
|
-
fail ArgumentError, "Missing the required parameter '
|
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"
|
385
385
|
end
|
386
386
|
# verify the required parameter 'data' is set
|
387
387
|
if @api_client.config.client_side_validation && data.nil?
|
388
388
|
fail ArgumentError, "Missing the required parameter 'data' when calling ExportersFilesystemApi.update"
|
389
389
|
end
|
390
390
|
# resource path
|
391
|
-
local_var_path = '{
|
391
|
+
local_var_path = '{file_filesystem_exporter_href}'.sub('{' + 'file_filesystem_exporter_href' + '}', CGI.escape(file_filesystem_exporter_href.to_s).gsub('%2F', '/'))
|
392
392
|
|
393
393
|
# query parameters
|
394
394
|
query_params = opts[:query_params] || {}
|
@@ -407,7 +407,7 @@ module PulpFileClient
|
|
407
407
|
post_body = opts[:body] || @api_client.object_to_http_body(data)
|
408
408
|
|
409
409
|
# return_type
|
410
|
-
return_type = opts[:return_type] || '
|
410
|
+
return_type = opts[:return_type] || 'FileFileFilesystemExporterRead'
|
411
411
|
|
412
412
|
# auth_names
|
413
413
|
auth_names = opts[:auth_names] || ['Basic']
|
@@ -241,7 +241,7 @@ module PulpFileClient
|
|
241
241
|
# @param [Hash] opts the optional parameters
|
242
242
|
# @option opts [String] :fields A list of fields to include in the response.
|
243
243
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
244
|
-
# @return [
|
244
|
+
# @return [FileFilePublicationRead]
|
245
245
|
def read(file_publication_href, opts = {})
|
246
246
|
data, _status_code, _headers = read_with_http_info(file_publication_href, opts)
|
247
247
|
data
|
@@ -253,7 +253,7 @@ module PulpFileClient
|
|
253
253
|
# @param [Hash] opts the optional parameters
|
254
254
|
# @option opts [String] :fields A list of fields to include in the response.
|
255
255
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
256
|
-
# @return [Array<(
|
256
|
+
# @return [Array<(FileFilePublicationRead, Integer, Hash)>] FileFilePublicationRead data, response status code and response headers
|
257
257
|
def read_with_http_info(file_publication_href, opts = {})
|
258
258
|
if @api_client.config.debugging
|
259
259
|
@api_client.config.logger.debug 'Calling API: PublicationsFileApi.read ...'
|
@@ -282,7 +282,7 @@ module PulpFileClient
|
|
282
282
|
post_body = opts[:body]
|
283
283
|
|
284
284
|
# return_type
|
285
|
-
return_type = opts[:return_type] || '
|
285
|
+
return_type = opts[:return_type] || 'FileFilePublicationRead'
|
286
286
|
|
287
287
|
# auth_names
|
288
288
|
auth_names = opts[:auth_names] || ['Basic']
|
@@ -23,7 +23,7 @@ module PulpFileClient
|
|
23
23
|
# FileRemote represents an external source of File Content. The target url of a FileRemote must contain a file manifest, which contains the metadata for all files at the source.
|
24
24
|
# @param data [FileFileRemote]
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
|
-
# @return [
|
26
|
+
# @return [FileFileRemoteRead]
|
27
27
|
def create(data, opts = {})
|
28
28
|
data, _status_code, _headers = create_with_http_info(data, opts)
|
29
29
|
data
|
@@ -33,7 +33,7 @@ module PulpFileClient
|
|
33
33
|
# FileRemote represents an external source of File Content. The target url of a FileRemote must contain a file manifest, which contains the metadata for all files at the source.
|
34
34
|
# @param data [FileFileRemote]
|
35
35
|
# @param [Hash] opts the optional parameters
|
36
|
-
# @return [Array<(
|
36
|
+
# @return [Array<(FileFileRemoteRead, Integer, Hash)>] FileFileRemoteRead data, response status code and response headers
|
37
37
|
def create_with_http_info(data, opts = {})
|
38
38
|
if @api_client.config.debugging
|
39
39
|
@api_client.config.logger.debug 'Calling API: RemotesFileApi.create ...'
|
@@ -62,7 +62,7 @@ module PulpFileClient
|
|
62
62
|
post_body = opts[:body] || @api_client.object_to_http_body(data)
|
63
63
|
|
64
64
|
# return_type
|
65
|
-
return_type = opts[:return_type] || '
|
65
|
+
return_type = opts[:return_type] || 'FileFileRemoteRead'
|
66
66
|
|
67
67
|
# auth_names
|
68
68
|
auth_names = opts[:auth_names] || ['Basic']
|
@@ -316,7 +316,7 @@ module PulpFileClient
|
|
316
316
|
# @param [Hash] opts the optional parameters
|
317
317
|
# @option opts [String] :fields A list of fields to include in the response.
|
318
318
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
319
|
-
# @return [
|
319
|
+
# @return [FileFileRemoteRead]
|
320
320
|
def read(file_remote_href, opts = {})
|
321
321
|
data, _status_code, _headers = read_with_http_info(file_remote_href, opts)
|
322
322
|
data
|
@@ -328,7 +328,7 @@ module PulpFileClient
|
|
328
328
|
# @param [Hash] opts the optional parameters
|
329
329
|
# @option opts [String] :fields A list of fields to include in the response.
|
330
330
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
331
|
-
# @return [Array<(
|
331
|
+
# @return [Array<(FileFileRemoteRead, Integer, Hash)>] FileFileRemoteRead data, response status code and response headers
|
332
332
|
def read_with_http_info(file_remote_href, opts = {})
|
333
333
|
if @api_client.config.debugging
|
334
334
|
@api_client.config.logger.debug 'Calling API: RemotesFileApi.read ...'
|
@@ -357,7 +357,7 @@ module PulpFileClient
|
|
357
357
|
post_body = opts[:body]
|
358
358
|
|
359
359
|
# return_type
|
360
|
-
return_type = opts[:return_type] || '
|
360
|
+
return_type = opts[:return_type] || 'FileFileRemoteRead'
|
361
361
|
|
362
362
|
# auth_names
|
363
363
|
auth_names = opts[:auth_names] || ['Basic']
|