pulp_file_client 0.1.0b4 → 0.1.0rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +35 -9
- data/docs/ContentFilesApi.md +2 -2
- data/docs/ContentSummary.md +21 -0
- data/docs/DistributionsFileApi.md +8 -8
- data/docs/FileExportersFileApi.md +408 -0
- data/docs/{FileContent.md → FileFileContent.md} +2 -6
- data/docs/{FileDistribution.md → FileFileDistribution.md} +2 -2
- data/docs/FileFileFileSystemExporter.md +23 -0
- data/docs/{FilePublication.md → FileFilePublication.md} +2 -2
- data/docs/{FileRemote.md → FileFileRemote.md} +10 -14
- data/docs/FileFileRepository.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 +23 -0
- data/docs/InlineResponse2005.md +23 -0
- data/docs/InlineResponse2006.md +23 -0
- data/docs/PublicationExport.md +17 -0
- data/docs/PublicationsFileApi.md +9 -9
- data/docs/RemotesFileApi.md +12 -67
- data/docs/RepositoriesFileApi.md +464 -0
- data/docs/RepositoriesFileVersionsApi.md +214 -0
- data/docs/RepositoryAddRemoveContent.md +21 -0
- data/docs/RepositorySyncURL.md +2 -2
- data/docs/RepositoryVersion.md +25 -0
- data/lib/pulp_file_client/api/content_files_api.rb +4 -4
- data/lib/pulp_file_client/api/distributions_file_api.rb +10 -10
- data/lib/pulp_file_client/api/file_exporters_file_api.rb +496 -0
- data/lib/pulp_file_client/api/publications_file_api.rb +15 -15
- data/lib/pulp_file_client/api/remotes_file_api.rb +16 -84
- data/lib/pulp_file_client/api/repositories_file_api.rb +566 -0
- data/lib/pulp_file_client/api/repositories_file_versions_api.rb +268 -0
- data/lib/pulp_file_client/api_client.rb +1 -1
- data/lib/pulp_file_client/api_error.rb +1 -1
- data/lib/pulp_file_client/configuration.rb +1 -1
- data/lib/pulp_file_client/models/async_operation_response.rb +12 -2
- data/lib/pulp_file_client/models/content_summary.rb +246 -0
- data/lib/pulp_file_client/models/{file_content.rb → file_file_content.rb} +16 -26
- data/lib/pulp_file_client/models/{file_distribution.rb → file_file_distribution.rb} +17 -23
- data/lib/pulp_file_client/models/file_file_file_system_exporter.rb +284 -0
- data/lib/pulp_file_client/models/{file_publication.rb → file_file_publication.rb} +16 -5
- data/lib/pulp_file_client/models/{file_remote.rb → file_file_remote.rb} +69 -105
- data/lib/pulp_file_client/models/file_file_repository.rb +294 -0
- data/lib/pulp_file_client/models/inline_response200.rb +15 -3
- data/lib/pulp_file_client/models/inline_response2001.rb +15 -3
- data/lib/pulp_file_client/models/inline_response2002.rb +15 -3
- data/lib/pulp_file_client/models/inline_response2003.rb +15 -3
- data/lib/pulp_file_client/models/inline_response2004.rb +247 -0
- data/lib/pulp_file_client/models/inline_response2005.rb +247 -0
- data/lib/pulp_file_client/models/inline_response2006.rb +247 -0
- data/lib/pulp_file_client/models/publication_export.rb +212 -0
- data/lib/pulp_file_client/models/repository_add_remove_content.rb +231 -0
- data/lib/pulp_file_client/models/repository_sync_url.rb +22 -12
- data/lib/pulp_file_client/models/repository_version.rb +244 -0
- data/lib/pulp_file_client/version.rb +2 -2
- data/lib/pulp_file_client.rb +17 -5
- data/pulp_file_client.gemspec +1 -1
- data/spec/api/content_files_api_spec.rb +2 -2
- data/spec/api/distributions_file_api_spec.rb +2 -2
- data/spec/api/file_exporters_file_api_spec.rb +128 -0
- data/spec/api/publications_file_api_spec.rb +6 -6
- data/spec/api/remotes_file_api_spec.rb +4 -16
- data/spec/api/repositories_file_api_spec.rb +140 -0
- data/spec/api/repositories_file_versions_api_spec.rb +91 -0
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/async_operation_response_spec.rb +1 -1
- data/spec/models/content_summary_spec.rb +53 -0
- data/spec/models/{file_content_spec.rb → file_file_content_spec.rb} +7 -19
- data/spec/models/{file_distribution_spec.rb → file_file_distribution_spec.rb} +7 -7
- data/spec/models/file_file_file_system_exporter_spec.rb +59 -0
- data/spec/models/{file_publication_spec.rb → file_file_publication_spec.rb} +7 -7
- data/spec/models/{file_remote_spec.rb → file_file_remote_spec.rb} +11 -23
- data/spec/models/file_file_repository_spec.rb +71 -0
- data/spec/models/inline_response2001_spec.rb +1 -1
- data/spec/models/inline_response2002_spec.rb +1 -1
- data/spec/models/inline_response2003_spec.rb +1 -1
- data/spec/models/inline_response2004_spec.rb +59 -0
- data/spec/models/inline_response2005_spec.rb +59 -0
- data/spec/models/inline_response2006_spec.rb +59 -0
- data/spec/models/inline_response200_spec.rb +1 -1
- data/spec/models/publication_export_spec.rb +41 -0
- data/spec/models/repository_add_remove_content_spec.rb +53 -0
- data/spec/models/repository_sync_url_spec.rb +2 -2
- data/spec/models/repository_version_spec.rb +65 -0
- data/spec/spec_helper.rb +1 -1
- metadata +66 -18
data/docs/RepositorySyncURL.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**
|
7
|
+
**remote** | **String** | A URI of the repository to be synchronized. |
|
8
8
|
**mirror** | **Boolean** | If ``True``, synchronization will remove all content that is not present in the remote repository. If ``False``, sync will be additive only. | [optional] [default to false]
|
9
9
|
|
10
10
|
## Code Sample
|
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
|
|
12
12
|
```ruby
|
13
13
|
require 'PulpFileClient'
|
14
14
|
|
15
|
-
instance = PulpFileClient::RepositorySyncURL.new(
|
15
|
+
instance = PulpFileClient::RepositorySyncURL.new(remote: null,
|
16
16
|
mirror: null)
|
17
17
|
```
|
18
18
|
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# PulpFileClient::RepositoryVersion
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**pulp_href** | **String** | | [optional] [readonly]
|
8
|
+
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
9
|
+
**number** | **Integer** | | [optional] [readonly]
|
10
|
+
**base_version** | **String** | A repository version whose content was used as the initial set of content for this repository version | [optional]
|
11
|
+
**content_summary** | [**ContentSummary**](ContentSummary.md) | | [optional]
|
12
|
+
|
13
|
+
## Code Sample
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
require 'PulpFileClient'
|
17
|
+
|
18
|
+
instance = PulpFileClient::RepositoryVersion.new(pulp_href: null,
|
19
|
+
pulp_created: null,
|
20
|
+
number: null,
|
21
|
+
base_version: null,
|
22
|
+
content_summary: null)
|
23
|
+
```
|
24
|
+
|
25
|
+
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.2.
|
9
|
+
OpenAPI Generator version: 4.2.2-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -186,7 +186,7 @@ module PulpFileClient
|
|
186
186
|
# @param [Hash] opts the optional parameters
|
187
187
|
# @option opts [String] :fields A list of fields to include in the response.
|
188
188
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
189
|
-
# @return [
|
189
|
+
# @return [FileFileContent]
|
190
190
|
def read(file_content_href, opts = {})
|
191
191
|
data, _status_code, _headers = read_with_http_info(file_content_href, opts)
|
192
192
|
data
|
@@ -198,7 +198,7 @@ module PulpFileClient
|
|
198
198
|
# @param [Hash] opts the optional parameters
|
199
199
|
# @option opts [String] :fields A list of fields to include in the response.
|
200
200
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
201
|
-
# @return [Array<(
|
201
|
+
# @return [Array<(FileFileContent, Integer, Hash)>] FileFileContent data, response status code and response headers
|
202
202
|
def read_with_http_info(file_content_href, opts = {})
|
203
203
|
if @api_client.config.debugging
|
204
204
|
@api_client.config.logger.debug 'Calling API: ContentFilesApi.read ...'
|
@@ -227,7 +227,7 @@ module PulpFileClient
|
|
227
227
|
post_body = opts[:body]
|
228
228
|
|
229
229
|
# return_type
|
230
|
-
return_type = opts[:return_type] || '
|
230
|
+
return_type = opts[:return_type] || 'FileFileContent'
|
231
231
|
|
232
232
|
# auth_names
|
233
233
|
auth_names = opts[:auth_names] || ['Basic']
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.2.
|
9
|
+
OpenAPI Generator version: 4.2.2-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -21,7 +21,7 @@ module PulpFileClient
|
|
21
21
|
end
|
22
22
|
# Create a file distribution
|
23
23
|
# Trigger an asynchronous create task
|
24
|
-
# @param data [
|
24
|
+
# @param data [FileFileDistribution]
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
26
|
# @return [AsyncOperationResponse]
|
27
27
|
def create(data, opts = {})
|
@@ -31,7 +31,7 @@ module PulpFileClient
|
|
31
31
|
|
32
32
|
# Create a file distribution
|
33
33
|
# Trigger an asynchronous create task
|
34
|
-
# @param data [
|
34
|
+
# @param data [FileFileDistribution]
|
35
35
|
# @param [Hash] opts the optional parameters
|
36
36
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
37
37
|
def create_with_http_info(data, opts = {})
|
@@ -234,7 +234,7 @@ module PulpFileClient
|
|
234
234
|
# Partially update a file distribution
|
235
235
|
# Trigger an asynchronous partial update task
|
236
236
|
# @param file_distribution_href [String] URI of File Distribution. e.g.: /pulp/api/v3/distributions/file/file/1/
|
237
|
-
# @param data [
|
237
|
+
# @param data [FileFileDistribution]
|
238
238
|
# @param [Hash] opts the optional parameters
|
239
239
|
# @return [AsyncOperationResponse]
|
240
240
|
def partial_update(file_distribution_href, data, opts = {})
|
@@ -245,7 +245,7 @@ module PulpFileClient
|
|
245
245
|
# Partially update a file distribution
|
246
246
|
# Trigger an asynchronous partial update task
|
247
247
|
# @param file_distribution_href [String] URI of File Distribution. e.g.: /pulp/api/v3/distributions/file/file/1/
|
248
|
-
# @param data [
|
248
|
+
# @param data [FileFileDistribution]
|
249
249
|
# @param [Hash] opts the optional parameters
|
250
250
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
251
251
|
def partial_update_with_http_info(file_distribution_href, data, opts = {})
|
@@ -307,7 +307,7 @@ module PulpFileClient
|
|
307
307
|
# @param [Hash] opts the optional parameters
|
308
308
|
# @option opts [String] :fields A list of fields to include in the response.
|
309
309
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
310
|
-
# @return [
|
310
|
+
# @return [FileFileDistribution]
|
311
311
|
def read(file_distribution_href, opts = {})
|
312
312
|
data, _status_code, _headers = read_with_http_info(file_distribution_href, opts)
|
313
313
|
data
|
@@ -319,7 +319,7 @@ module PulpFileClient
|
|
319
319
|
# @param [Hash] opts the optional parameters
|
320
320
|
# @option opts [String] :fields A list of fields to include in the response.
|
321
321
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
322
|
-
# @return [Array<(
|
322
|
+
# @return [Array<(FileFileDistribution, Integer, Hash)>] FileFileDistribution data, response status code and response headers
|
323
323
|
def read_with_http_info(file_distribution_href, opts = {})
|
324
324
|
if @api_client.config.debugging
|
325
325
|
@api_client.config.logger.debug 'Calling API: DistributionsFileApi.read ...'
|
@@ -348,7 +348,7 @@ module PulpFileClient
|
|
348
348
|
post_body = opts[:body]
|
349
349
|
|
350
350
|
# return_type
|
351
|
-
return_type = opts[:return_type] || '
|
351
|
+
return_type = opts[:return_type] || 'FileFileDistribution'
|
352
352
|
|
353
353
|
# auth_names
|
354
354
|
auth_names = opts[:auth_names] || ['Basic']
|
@@ -372,7 +372,7 @@ module PulpFileClient
|
|
372
372
|
# Update a file distribution
|
373
373
|
# Trigger an asynchronous update task
|
374
374
|
# @param file_distribution_href [String] URI of File Distribution. e.g.: /pulp/api/v3/distributions/file/file/1/
|
375
|
-
# @param data [
|
375
|
+
# @param data [FileFileDistribution]
|
376
376
|
# @param [Hash] opts the optional parameters
|
377
377
|
# @return [AsyncOperationResponse]
|
378
378
|
def update(file_distribution_href, data, opts = {})
|
@@ -383,7 +383,7 @@ module PulpFileClient
|
|
383
383
|
# Update a file distribution
|
384
384
|
# Trigger an asynchronous update task
|
385
385
|
# @param file_distribution_href [String] URI of File Distribution. e.g.: /pulp/api/v3/distributions/file/file/1/
|
386
|
-
# @param data [
|
386
|
+
# @param data [FileFileDistribution]
|
387
387
|
# @param [Hash] opts the optional parameters
|
388
388
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
389
389
|
def update_with_http_info(file_distribution_href, data, opts = {})
|
@@ -0,0 +1,496 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.2.2-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module PulpFileClient
|
16
|
+
class FileExportersFileApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Create a file file system exporter
|
23
|
+
# FileSystemExporters export content from a publication to a path on the file system.
|
24
|
+
# @param data [FileFileFileSystemExporter]
|
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)
|
29
|
+
data
|
30
|
+
end
|
31
|
+
|
32
|
+
# Create a file file system exporter
|
33
|
+
# FileSystemExporters export content from a publication to a path on the file system.
|
34
|
+
# @param data [FileFileFileSystemExporter]
|
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 = {})
|
38
|
+
if @api_client.config.debugging
|
39
|
+
@api_client.config.logger.debug 'Calling API: FileExportersFileApi.create ...'
|
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 FileExportersFileApi.create"
|
44
|
+
end
|
45
|
+
# resource path
|
46
|
+
local_var_path = '/pulp/api/v3/file_exporters/file/file/'
|
47
|
+
|
48
|
+
# query parameters
|
49
|
+
query_params = opts[:query_params] || {}
|
50
|
+
|
51
|
+
# header parameters
|
52
|
+
header_params = opts[:header_params] || {}
|
53
|
+
# HTTP header 'Accept' (if needed)
|
54
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
55
|
+
# HTTP header 'Content-Type'
|
56
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
57
|
+
|
58
|
+
# form parameters
|
59
|
+
form_params = opts[:form_params] || {}
|
60
|
+
|
61
|
+
# http body (model)
|
62
|
+
post_body = opts[:body] || @api_client.object_to_http_body(data)
|
63
|
+
|
64
|
+
# return_type
|
65
|
+
return_type = opts[:return_type] || 'FileFileFileSystemExporter'
|
66
|
+
|
67
|
+
# auth_names
|
68
|
+
auth_names = opts[:auth_names] || ['Basic']
|
69
|
+
|
70
|
+
new_options = opts.merge(
|
71
|
+
:header_params => header_params,
|
72
|
+
:query_params => query_params,
|
73
|
+
:form_params => form_params,
|
74
|
+
:body => post_body,
|
75
|
+
:auth_names => auth_names,
|
76
|
+
:return_type => return_type
|
77
|
+
)
|
78
|
+
|
79
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
80
|
+
if @api_client.config.debugging
|
81
|
+
@api_client.config.logger.debug "API called: FileExportersFileApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
82
|
+
end
|
83
|
+
return data, status_code, headers
|
84
|
+
end
|
85
|
+
|
86
|
+
# Delete a file file system exporter
|
87
|
+
# FileSystemExporters export content from a publication to a path on the file system.
|
88
|
+
# @param file_file_system_exporter_href [String] URI of File File System Exporter. e.g.: /pulp/api/v3/file_exporters/file/file/1/
|
89
|
+
# @param [Hash] opts the optional parameters
|
90
|
+
# @return [nil]
|
91
|
+
def delete(file_file_system_exporter_href, opts = {})
|
92
|
+
delete_with_http_info(file_file_system_exporter_href, opts)
|
93
|
+
nil
|
94
|
+
end
|
95
|
+
|
96
|
+
# Delete a file file system exporter
|
97
|
+
# FileSystemExporters export content from a publication to a path on the file system.
|
98
|
+
# @param file_file_system_exporter_href [String] URI of File File System Exporter. e.g.: /pulp/api/v3/file_exporters/file/file/1/
|
99
|
+
# @param [Hash] opts the optional parameters
|
100
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
101
|
+
def delete_with_http_info(file_file_system_exporter_href, opts = {})
|
102
|
+
if @api_client.config.debugging
|
103
|
+
@api_client.config.logger.debug 'Calling API: FileExportersFileApi.delete ...'
|
104
|
+
end
|
105
|
+
# verify the required parameter 'file_file_system_exporter_href' is set
|
106
|
+
if @api_client.config.client_side_validation && file_file_system_exporter_href.nil?
|
107
|
+
fail ArgumentError, "Missing the required parameter 'file_file_system_exporter_href' when calling FileExportersFileApi.delete"
|
108
|
+
end
|
109
|
+
# resource path
|
110
|
+
local_var_path = '{file_file_system_exporter_href}'.sub('{' + 'file_file_system_exporter_href' + '}', CGI.escape(file_file_system_exporter_href.to_s).gsub('%2F', '/'))
|
111
|
+
|
112
|
+
# query parameters
|
113
|
+
query_params = opts[:query_params] || {}
|
114
|
+
|
115
|
+
# header parameters
|
116
|
+
header_params = opts[:header_params] || {}
|
117
|
+
|
118
|
+
# form parameters
|
119
|
+
form_params = opts[:form_params] || {}
|
120
|
+
|
121
|
+
# http body (model)
|
122
|
+
post_body = opts[:body]
|
123
|
+
|
124
|
+
# return_type
|
125
|
+
return_type = opts[:return_type]
|
126
|
+
|
127
|
+
# auth_names
|
128
|
+
auth_names = opts[:auth_names] || ['Basic']
|
129
|
+
|
130
|
+
new_options = opts.merge(
|
131
|
+
:header_params => header_params,
|
132
|
+
:query_params => query_params,
|
133
|
+
:form_params => form_params,
|
134
|
+
:body => post_body,
|
135
|
+
:auth_names => auth_names,
|
136
|
+
:return_type => return_type
|
137
|
+
)
|
138
|
+
|
139
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
140
|
+
if @api_client.config.debugging
|
141
|
+
@api_client.config.logger.debug "API called: FileExportersFileApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
142
|
+
end
|
143
|
+
return data, status_code, headers
|
144
|
+
end
|
145
|
+
|
146
|
+
# Trigger an asynchronous task to export a file publication.
|
147
|
+
# @param file_file_system_exporter_href [String] URI of File File System Exporter. e.g.: /pulp/api/v3/file_exporters/file/file/1/
|
148
|
+
# @param data [PublicationExport]
|
149
|
+
# @param [Hash] opts the optional parameters
|
150
|
+
# @return [AsyncOperationResponse]
|
151
|
+
def export(file_file_system_exporter_href, data, opts = {})
|
152
|
+
data, _status_code, _headers = export_with_http_info(file_file_system_exporter_href, data, opts)
|
153
|
+
data
|
154
|
+
end
|
155
|
+
|
156
|
+
# Trigger an asynchronous task to export a file publication.
|
157
|
+
# @param file_file_system_exporter_href [String] URI of File File System Exporter. e.g.: /pulp/api/v3/file_exporters/file/file/1/
|
158
|
+
# @param data [PublicationExport]
|
159
|
+
# @param [Hash] opts the optional parameters
|
160
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
161
|
+
def export_with_http_info(file_file_system_exporter_href, data, opts = {})
|
162
|
+
if @api_client.config.debugging
|
163
|
+
@api_client.config.logger.debug 'Calling API: FileExportersFileApi.export ...'
|
164
|
+
end
|
165
|
+
# verify the required parameter 'file_file_system_exporter_href' is set
|
166
|
+
if @api_client.config.client_side_validation && file_file_system_exporter_href.nil?
|
167
|
+
fail ArgumentError, "Missing the required parameter 'file_file_system_exporter_href' when calling FileExportersFileApi.export"
|
168
|
+
end
|
169
|
+
# verify the required parameter 'data' is set
|
170
|
+
if @api_client.config.client_side_validation && data.nil?
|
171
|
+
fail ArgumentError, "Missing the required parameter 'data' when calling FileExportersFileApi.export"
|
172
|
+
end
|
173
|
+
# resource path
|
174
|
+
local_var_path = '{file_file_system_exporter_href}export/'.sub('{' + 'file_file_system_exporter_href' + '}', CGI.escape(file_file_system_exporter_href.to_s).gsub('%2F', '/'))
|
175
|
+
|
176
|
+
# query parameters
|
177
|
+
query_params = opts[:query_params] || {}
|
178
|
+
|
179
|
+
# header parameters
|
180
|
+
header_params = opts[:header_params] || {}
|
181
|
+
# HTTP header 'Accept' (if needed)
|
182
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
183
|
+
# HTTP header 'Content-Type'
|
184
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
185
|
+
|
186
|
+
# form parameters
|
187
|
+
form_params = opts[:form_params] || {}
|
188
|
+
|
189
|
+
# http body (model)
|
190
|
+
post_body = opts[:body] || @api_client.object_to_http_body(data)
|
191
|
+
|
192
|
+
# return_type
|
193
|
+
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
194
|
+
|
195
|
+
# auth_names
|
196
|
+
auth_names = opts[:auth_names] || ['Basic']
|
197
|
+
|
198
|
+
new_options = opts.merge(
|
199
|
+
:header_params => header_params,
|
200
|
+
:query_params => query_params,
|
201
|
+
:form_params => form_params,
|
202
|
+
:body => post_body,
|
203
|
+
:auth_names => auth_names,
|
204
|
+
:return_type => return_type
|
205
|
+
)
|
206
|
+
|
207
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
208
|
+
if @api_client.config.debugging
|
209
|
+
@api_client.config.logger.debug "API called: FileExportersFileApi#export\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
210
|
+
end
|
211
|
+
return data, status_code, headers
|
212
|
+
end
|
213
|
+
|
214
|
+
# List file file system exporters
|
215
|
+
# FileSystemExporters export content from a publication to a path on the file system.
|
216
|
+
# @param [Hash] opts the optional parameters
|
217
|
+
# @option opts [String] :name
|
218
|
+
# @option opts [String] :name__in Filter results where name is in a comma-separated list of values
|
219
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
220
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
221
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
222
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
223
|
+
# @return [InlineResponse2002]
|
224
|
+
def list(opts = {})
|
225
|
+
data, _status_code, _headers = list_with_http_info(opts)
|
226
|
+
data
|
227
|
+
end
|
228
|
+
|
229
|
+
# List file file system exporters
|
230
|
+
# FileSystemExporters export content from a publication to a path on the file system.
|
231
|
+
# @param [Hash] opts the optional parameters
|
232
|
+
# @option opts [String] :name
|
233
|
+
# @option opts [String] :name__in Filter results where name is in a comma-separated list of values
|
234
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
235
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
236
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
237
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
238
|
+
# @return [Array<(InlineResponse2002, Integer, Hash)>] InlineResponse2002 data, response status code and response headers
|
239
|
+
def list_with_http_info(opts = {})
|
240
|
+
if @api_client.config.debugging
|
241
|
+
@api_client.config.logger.debug 'Calling API: FileExportersFileApi.list ...'
|
242
|
+
end
|
243
|
+
# resource path
|
244
|
+
local_var_path = '/pulp/api/v3/file_exporters/file/file/'
|
245
|
+
|
246
|
+
# query parameters
|
247
|
+
query_params = opts[:query_params] || {}
|
248
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
249
|
+
query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
|
250
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
251
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
252
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
253
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
254
|
+
|
255
|
+
# header parameters
|
256
|
+
header_params = opts[:header_params] || {}
|
257
|
+
# HTTP header 'Accept' (if needed)
|
258
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
259
|
+
|
260
|
+
# form parameters
|
261
|
+
form_params = opts[:form_params] || {}
|
262
|
+
|
263
|
+
# http body (model)
|
264
|
+
post_body = opts[:body]
|
265
|
+
|
266
|
+
# return_type
|
267
|
+
return_type = opts[:return_type] || 'InlineResponse2002'
|
268
|
+
|
269
|
+
# auth_names
|
270
|
+
auth_names = opts[:auth_names] || ['Basic']
|
271
|
+
|
272
|
+
new_options = opts.merge(
|
273
|
+
:header_params => header_params,
|
274
|
+
:query_params => query_params,
|
275
|
+
:form_params => form_params,
|
276
|
+
:body => post_body,
|
277
|
+
:auth_names => auth_names,
|
278
|
+
:return_type => return_type
|
279
|
+
)
|
280
|
+
|
281
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
282
|
+
if @api_client.config.debugging
|
283
|
+
@api_client.config.logger.debug "API called: FileExportersFileApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
284
|
+
end
|
285
|
+
return data, status_code, headers
|
286
|
+
end
|
287
|
+
|
288
|
+
# Partially update a file file system exporter
|
289
|
+
# FileSystemExporters export content from a publication to a path on the file system.
|
290
|
+
# @param file_file_system_exporter_href [String] URI of File File System Exporter. e.g.: /pulp/api/v3/file_exporters/file/file/1/
|
291
|
+
# @param data [FileFileFileSystemExporter]
|
292
|
+
# @param [Hash] opts the optional parameters
|
293
|
+
# @return [FileFileFileSystemExporter]
|
294
|
+
def partial_update(file_file_system_exporter_href, data, opts = {})
|
295
|
+
data, _status_code, _headers = partial_update_with_http_info(file_file_system_exporter_href, data, opts)
|
296
|
+
data
|
297
|
+
end
|
298
|
+
|
299
|
+
# Partially update a file file system exporter
|
300
|
+
# FileSystemExporters export content from a publication to a path on the file system.
|
301
|
+
# @param file_file_system_exporter_href [String] URI of File File System Exporter. e.g.: /pulp/api/v3/file_exporters/file/file/1/
|
302
|
+
# @param data [FileFileFileSystemExporter]
|
303
|
+
# @param [Hash] opts the optional parameters
|
304
|
+
# @return [Array<(FileFileFileSystemExporter, Integer, Hash)>] FileFileFileSystemExporter data, response status code and response headers
|
305
|
+
def partial_update_with_http_info(file_file_system_exporter_href, data, opts = {})
|
306
|
+
if @api_client.config.debugging
|
307
|
+
@api_client.config.logger.debug 'Calling API: FileExportersFileApi.partial_update ...'
|
308
|
+
end
|
309
|
+
# verify the required parameter 'file_file_system_exporter_href' is set
|
310
|
+
if @api_client.config.client_side_validation && file_file_system_exporter_href.nil?
|
311
|
+
fail ArgumentError, "Missing the required parameter 'file_file_system_exporter_href' when calling FileExportersFileApi.partial_update"
|
312
|
+
end
|
313
|
+
# verify the required parameter 'data' is set
|
314
|
+
if @api_client.config.client_side_validation && data.nil?
|
315
|
+
fail ArgumentError, "Missing the required parameter 'data' when calling FileExportersFileApi.partial_update"
|
316
|
+
end
|
317
|
+
# resource path
|
318
|
+
local_var_path = '{file_file_system_exporter_href}'.sub('{' + 'file_file_system_exporter_href' + '}', CGI.escape(file_file_system_exporter_href.to_s).gsub('%2F', '/'))
|
319
|
+
|
320
|
+
# query parameters
|
321
|
+
query_params = opts[:query_params] || {}
|
322
|
+
|
323
|
+
# header parameters
|
324
|
+
header_params = opts[:header_params] || {}
|
325
|
+
# HTTP header 'Accept' (if needed)
|
326
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
327
|
+
# HTTP header 'Content-Type'
|
328
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
329
|
+
|
330
|
+
# form parameters
|
331
|
+
form_params = opts[:form_params] || {}
|
332
|
+
|
333
|
+
# http body (model)
|
334
|
+
post_body = opts[:body] || @api_client.object_to_http_body(data)
|
335
|
+
|
336
|
+
# return_type
|
337
|
+
return_type = opts[:return_type] || 'FileFileFileSystemExporter'
|
338
|
+
|
339
|
+
# auth_names
|
340
|
+
auth_names = opts[:auth_names] || ['Basic']
|
341
|
+
|
342
|
+
new_options = opts.merge(
|
343
|
+
:header_params => header_params,
|
344
|
+
:query_params => query_params,
|
345
|
+
:form_params => form_params,
|
346
|
+
:body => post_body,
|
347
|
+
:auth_names => auth_names,
|
348
|
+
:return_type => return_type
|
349
|
+
)
|
350
|
+
|
351
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
352
|
+
if @api_client.config.debugging
|
353
|
+
@api_client.config.logger.debug "API called: FileExportersFileApi#partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
354
|
+
end
|
355
|
+
return data, status_code, headers
|
356
|
+
end
|
357
|
+
|
358
|
+
# Inspect a file file system exporter
|
359
|
+
# FileSystemExporters export content from a publication to a path on the file system.
|
360
|
+
# @param file_file_system_exporter_href [String] URI of File File System Exporter. e.g.: /pulp/api/v3/file_exporters/file/file/1/
|
361
|
+
# @param [Hash] opts the optional parameters
|
362
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
363
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
364
|
+
# @return [FileFileFileSystemExporter]
|
365
|
+
def read(file_file_system_exporter_href, opts = {})
|
366
|
+
data, _status_code, _headers = read_with_http_info(file_file_system_exporter_href, opts)
|
367
|
+
data
|
368
|
+
end
|
369
|
+
|
370
|
+
# Inspect a file file system exporter
|
371
|
+
# FileSystemExporters export content from a publication to a path on the file system.
|
372
|
+
# @param file_file_system_exporter_href [String] URI of File File System Exporter. e.g.: /pulp/api/v3/file_exporters/file/file/1/
|
373
|
+
# @param [Hash] opts the optional parameters
|
374
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
375
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
376
|
+
# @return [Array<(FileFileFileSystemExporter, Integer, Hash)>] FileFileFileSystemExporter data, response status code and response headers
|
377
|
+
def read_with_http_info(file_file_system_exporter_href, opts = {})
|
378
|
+
if @api_client.config.debugging
|
379
|
+
@api_client.config.logger.debug 'Calling API: FileExportersFileApi.read ...'
|
380
|
+
end
|
381
|
+
# verify the required parameter 'file_file_system_exporter_href' is set
|
382
|
+
if @api_client.config.client_side_validation && file_file_system_exporter_href.nil?
|
383
|
+
fail ArgumentError, "Missing the required parameter 'file_file_system_exporter_href' when calling FileExportersFileApi.read"
|
384
|
+
end
|
385
|
+
# resource path
|
386
|
+
local_var_path = '{file_file_system_exporter_href}'.sub('{' + 'file_file_system_exporter_href' + '}', CGI.escape(file_file_system_exporter_href.to_s).gsub('%2F', '/'))
|
387
|
+
|
388
|
+
# query parameters
|
389
|
+
query_params = opts[:query_params] || {}
|
390
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
391
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
392
|
+
|
393
|
+
# header parameters
|
394
|
+
header_params = opts[:header_params] || {}
|
395
|
+
# HTTP header 'Accept' (if needed)
|
396
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
397
|
+
|
398
|
+
# form parameters
|
399
|
+
form_params = opts[:form_params] || {}
|
400
|
+
|
401
|
+
# http body (model)
|
402
|
+
post_body = opts[:body]
|
403
|
+
|
404
|
+
# return_type
|
405
|
+
return_type = opts[:return_type] || 'FileFileFileSystemExporter'
|
406
|
+
|
407
|
+
# auth_names
|
408
|
+
auth_names = opts[:auth_names] || ['Basic']
|
409
|
+
|
410
|
+
new_options = opts.merge(
|
411
|
+
:header_params => header_params,
|
412
|
+
:query_params => query_params,
|
413
|
+
:form_params => form_params,
|
414
|
+
:body => post_body,
|
415
|
+
:auth_names => auth_names,
|
416
|
+
:return_type => return_type
|
417
|
+
)
|
418
|
+
|
419
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
420
|
+
if @api_client.config.debugging
|
421
|
+
@api_client.config.logger.debug "API called: FileExportersFileApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
422
|
+
end
|
423
|
+
return data, status_code, headers
|
424
|
+
end
|
425
|
+
|
426
|
+
# Update a file file system exporter
|
427
|
+
# FileSystemExporters export content from a publication to a path on the file system.
|
428
|
+
# @param file_file_system_exporter_href [String] URI of File File System Exporter. e.g.: /pulp/api/v3/file_exporters/file/file/1/
|
429
|
+
# @param data [FileFileFileSystemExporter]
|
430
|
+
# @param [Hash] opts the optional parameters
|
431
|
+
# @return [FileFileFileSystemExporter]
|
432
|
+
def update(file_file_system_exporter_href, data, opts = {})
|
433
|
+
data, _status_code, _headers = update_with_http_info(file_file_system_exporter_href, data, opts)
|
434
|
+
data
|
435
|
+
end
|
436
|
+
|
437
|
+
# Update a file file system exporter
|
438
|
+
# FileSystemExporters export content from a publication to a path on the file system.
|
439
|
+
# @param file_file_system_exporter_href [String] URI of File File System Exporter. e.g.: /pulp/api/v3/file_exporters/file/file/1/
|
440
|
+
# @param data [FileFileFileSystemExporter]
|
441
|
+
# @param [Hash] opts the optional parameters
|
442
|
+
# @return [Array<(FileFileFileSystemExporter, Integer, Hash)>] FileFileFileSystemExporter data, response status code and response headers
|
443
|
+
def update_with_http_info(file_file_system_exporter_href, data, opts = {})
|
444
|
+
if @api_client.config.debugging
|
445
|
+
@api_client.config.logger.debug 'Calling API: FileExportersFileApi.update ...'
|
446
|
+
end
|
447
|
+
# verify the required parameter 'file_file_system_exporter_href' is set
|
448
|
+
if @api_client.config.client_side_validation && file_file_system_exporter_href.nil?
|
449
|
+
fail ArgumentError, "Missing the required parameter 'file_file_system_exporter_href' when calling FileExportersFileApi.update"
|
450
|
+
end
|
451
|
+
# verify the required parameter 'data' is set
|
452
|
+
if @api_client.config.client_side_validation && data.nil?
|
453
|
+
fail ArgumentError, "Missing the required parameter 'data' when calling FileExportersFileApi.update"
|
454
|
+
end
|
455
|
+
# resource path
|
456
|
+
local_var_path = '{file_file_system_exporter_href}'.sub('{' + 'file_file_system_exporter_href' + '}', CGI.escape(file_file_system_exporter_href.to_s).gsub('%2F', '/'))
|
457
|
+
|
458
|
+
# query parameters
|
459
|
+
query_params = opts[:query_params] || {}
|
460
|
+
|
461
|
+
# header parameters
|
462
|
+
header_params = opts[:header_params] || {}
|
463
|
+
# HTTP header 'Accept' (if needed)
|
464
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
465
|
+
# HTTP header 'Content-Type'
|
466
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
467
|
+
|
468
|
+
# form parameters
|
469
|
+
form_params = opts[:form_params] || {}
|
470
|
+
|
471
|
+
# http body (model)
|
472
|
+
post_body = opts[:body] || @api_client.object_to_http_body(data)
|
473
|
+
|
474
|
+
# return_type
|
475
|
+
return_type = opts[:return_type] || 'FileFileFileSystemExporter'
|
476
|
+
|
477
|
+
# auth_names
|
478
|
+
auth_names = opts[:auth_names] || ['Basic']
|
479
|
+
|
480
|
+
new_options = opts.merge(
|
481
|
+
:header_params => header_params,
|
482
|
+
:query_params => query_params,
|
483
|
+
:form_params => form_params,
|
484
|
+
:body => post_body,
|
485
|
+
:auth_names => auth_names,
|
486
|
+
:return_type => return_type
|
487
|
+
)
|
488
|
+
|
489
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
490
|
+
if @api_client.config.debugging
|
491
|
+
@api_client.config.logger.debug "API called: FileExportersFileApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
492
|
+
end
|
493
|
+
return data, status_code, headers
|
494
|
+
end
|
495
|
+
end
|
496
|
+
end
|