pulp_file_client 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +17 -11
- data/docs/ContentFilesApi.md +2 -0
- data/docs/DistributionsFileApi.md +2 -0
- data/docs/Export.md +25 -0
- data/docs/ExportersFileExportsApi.md +243 -0
- data/docs/{FileExportersFileApi.md → ExportersFilesystemApi.md} +29 -82
- data/docs/FileFileFileSystemExporter.md +3 -3
- 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 +23 -0
- data/docs/PublicationsFileApi.md +2 -2
- data/docs/RemotesFileApi.md +4 -2
- data/docs/RepositoriesFileApi.md +4 -2
- data/docs/RepositoriesFileVersionsApi.md +57 -2
- data/lib/pulp_file_client/api/content_files_api.rb +4 -1
- data/lib/pulp_file_client/api/distributions_file_api.rb +4 -1
- data/lib/pulp_file_client/api/exporters_file_exports_api.rb +297 -0
- data/lib/pulp_file_client/api/{file_exporters_file_api.rb → exporters_filesystem_api.rb} +34 -99
- data/lib/pulp_file_client/api/publications_file_api.rb +4 -4
- data/lib/pulp_file_client/api/remotes_file_api.rb +7 -4
- data/lib/pulp_file_client/api/repositories_file_api.rb +7 -4
- data/lib/pulp_file_client/api/repositories_file_versions_api.rb +72 -4
- 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 +1 -1
- data/lib/pulp_file_client/models/content_summary.rb +1 -1
- data/lib/pulp_file_client/models/export.rb +258 -0
- data/lib/pulp_file_client/models/file_file_content.rb +1 -1
- data/lib/pulp_file_client/models/file_file_distribution.rb +1 -1
- data/lib/pulp_file_client/models/file_file_file_system_exporter.rb +39 -39
- data/lib/pulp_file_client/models/file_file_publication.rb +1 -1
- data/lib/pulp_file_client/models/file_file_remote.rb +1 -1
- data/lib/pulp_file_client/models/file_file_repository.rb +1 -1
- 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 +2 -2
- data/lib/pulp_file_client/models/inline_response2004.rb +2 -2
- data/lib/pulp_file_client/models/inline_response2005.rb +2 -2
- data/lib/pulp_file_client/models/inline_response2006.rb +2 -2
- data/lib/pulp_file_client/models/inline_response2007.rb +247 -0
- data/lib/pulp_file_client/models/publication_export.rb +1 -1
- data/lib/pulp_file_client/models/repository_add_remove_content.rb +1 -1
- data/lib/pulp_file_client/models/repository_sync_url.rb +1 -1
- data/lib/pulp_file_client/models/repository_version.rb +1 -1
- data/lib/pulp_file_client/version.rb +2 -2
- data/lib/pulp_file_client.rb +5 -2
- data/pulp_file_client.gemspec +1 -1
- data/spec/api/content_files_api_spec.rb +2 -1
- data/spec/api/distributions_file_api_spec.rb +2 -1
- data/spec/api/exporters_file_exports_api_spec.rb +91 -0
- data/spec/api/{file_exporters_file_api_spec.rb → exporters_filesystem_api_spec.rb} +12 -23
- data/spec/api/publications_file_api_spec.rb +2 -2
- data/spec/api/remotes_file_api_spec.rb +3 -2
- data/spec/api/repositories_file_api_spec.rb +3 -2
- data/spec/api/repositories_file_versions_api_spec.rb +14 -2
- 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 +1 -1
- data/spec/models/export_spec.rb +65 -0
- data/spec/models/file_file_content_spec.rb +1 -1
- data/spec/models/file_file_distribution_spec.rb +1 -1
- data/spec/models/file_file_file_system_exporter_spec.rb +3 -3
- data/spec/models/file_file_publication_spec.rb +1 -1
- data/spec/models/file_file_remote_spec.rb +1 -1
- data/spec/models/file_file_repository_spec.rb +1 -1
- 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 +1 -1
- data/spec/models/inline_response2005_spec.rb +1 -1
- data/spec/models/inline_response2006_spec.rb +1 -1
- data/spec/models/inline_response2007_spec.rb +59 -0
- data/spec/models/inline_response200_spec.rb +1 -1
- data/spec/models/publication_export_spec.rb +1 -1
- data/spec/models/repository_add_remove_content_spec.rb +1 -1
- data/spec/models/repository_sync_url_spec.rb +1 -1
- data/spec/models/repository_version_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +18 -6
@@ -0,0 +1,247 @@
|
|
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.3
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module PulpFileClient
|
16
|
+
class InlineResponse2007
|
17
|
+
attr_accessor :count
|
18
|
+
|
19
|
+
attr_accessor :_next
|
20
|
+
|
21
|
+
attr_accessor :previous
|
22
|
+
|
23
|
+
attr_accessor :results
|
24
|
+
|
25
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
26
|
+
def self.attribute_map
|
27
|
+
{
|
28
|
+
:'count' => :'count',
|
29
|
+
:'_next' => :'next',
|
30
|
+
:'previous' => :'previous',
|
31
|
+
:'results' => :'results'
|
32
|
+
}
|
33
|
+
end
|
34
|
+
|
35
|
+
# Attribute type mapping.
|
36
|
+
def self.openapi_types
|
37
|
+
{
|
38
|
+
:'count' => :'Integer',
|
39
|
+
:'_next' => :'String',
|
40
|
+
:'previous' => :'String',
|
41
|
+
:'results' => :'Array<RepositoryVersion>'
|
42
|
+
}
|
43
|
+
end
|
44
|
+
|
45
|
+
# List of attributes with nullable: true
|
46
|
+
def self.openapi_nullable
|
47
|
+
Set.new([
|
48
|
+
:'_next',
|
49
|
+
:'previous',
|
50
|
+
])
|
51
|
+
end
|
52
|
+
|
53
|
+
# Initializes the object
|
54
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
55
|
+
def initialize(attributes = {})
|
56
|
+
if (!attributes.is_a?(Hash))
|
57
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpFileClient::InlineResponse2007` initialize method"
|
58
|
+
end
|
59
|
+
|
60
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
61
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
62
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
63
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpFileClient::InlineResponse2007`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
64
|
+
end
|
65
|
+
h[k.to_sym] = v
|
66
|
+
}
|
67
|
+
|
68
|
+
if attributes.key?(:'count')
|
69
|
+
self.count = attributes[:'count']
|
70
|
+
end
|
71
|
+
|
72
|
+
if attributes.key?(:'_next')
|
73
|
+
self._next = attributes[:'_next']
|
74
|
+
end
|
75
|
+
|
76
|
+
if attributes.key?(:'previous')
|
77
|
+
self.previous = attributes[:'previous']
|
78
|
+
end
|
79
|
+
|
80
|
+
if attributes.key?(:'results')
|
81
|
+
if (value = attributes[:'results']).is_a?(Array)
|
82
|
+
self.results = value
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
88
|
+
# @return Array for valid properties with the reasons
|
89
|
+
def list_invalid_properties
|
90
|
+
invalid_properties = Array.new
|
91
|
+
if @count.nil?
|
92
|
+
invalid_properties.push('invalid value for "count", count cannot be nil.')
|
93
|
+
end
|
94
|
+
|
95
|
+
if @results.nil?
|
96
|
+
invalid_properties.push('invalid value for "results", results cannot be nil.')
|
97
|
+
end
|
98
|
+
|
99
|
+
invalid_properties
|
100
|
+
end
|
101
|
+
|
102
|
+
# Check to see if the all the properties in the model are valid
|
103
|
+
# @return true if the model is valid
|
104
|
+
def valid?
|
105
|
+
return false if @count.nil?
|
106
|
+
return false if @results.nil?
|
107
|
+
true
|
108
|
+
end
|
109
|
+
|
110
|
+
# Checks equality by comparing each attribute.
|
111
|
+
# @param [Object] Object to be compared
|
112
|
+
def ==(o)
|
113
|
+
return true if self.equal?(o)
|
114
|
+
self.class == o.class &&
|
115
|
+
count == o.count &&
|
116
|
+
_next == o._next &&
|
117
|
+
previous == o.previous &&
|
118
|
+
results == o.results
|
119
|
+
end
|
120
|
+
|
121
|
+
# @see the `==` method
|
122
|
+
# @param [Object] Object to be compared
|
123
|
+
def eql?(o)
|
124
|
+
self == o
|
125
|
+
end
|
126
|
+
|
127
|
+
# Calculates hash code according to all attributes.
|
128
|
+
# @return [Integer] Hash code
|
129
|
+
def hash
|
130
|
+
[count, _next, previous, results].hash
|
131
|
+
end
|
132
|
+
|
133
|
+
# Builds the object from hash
|
134
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
135
|
+
# @return [Object] Returns the model itself
|
136
|
+
def self.build_from_hash(attributes)
|
137
|
+
new.build_from_hash(attributes)
|
138
|
+
end
|
139
|
+
|
140
|
+
# Builds the object from hash
|
141
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
142
|
+
# @return [Object] Returns the model itself
|
143
|
+
def build_from_hash(attributes)
|
144
|
+
return nil unless attributes.is_a?(Hash)
|
145
|
+
self.class.openapi_types.each_pair do |key, type|
|
146
|
+
if type =~ /\AArray<(.*)>/i
|
147
|
+
# check to ensure the input is an array given that the attribute
|
148
|
+
# is documented as an array but the input is not
|
149
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
150
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
151
|
+
end
|
152
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
153
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
154
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
155
|
+
end
|
156
|
+
|
157
|
+
self
|
158
|
+
end
|
159
|
+
|
160
|
+
# Deserializes the data based on type
|
161
|
+
# @param string type Data type
|
162
|
+
# @param string value Value to be deserialized
|
163
|
+
# @return [Object] Deserialized data
|
164
|
+
def _deserialize(type, value)
|
165
|
+
case type.to_sym
|
166
|
+
when :DateTime
|
167
|
+
DateTime.parse(value)
|
168
|
+
when :Date
|
169
|
+
Date.parse(value)
|
170
|
+
when :String
|
171
|
+
value.to_s
|
172
|
+
when :Integer
|
173
|
+
value.to_i
|
174
|
+
when :Float
|
175
|
+
value.to_f
|
176
|
+
when :Boolean
|
177
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
178
|
+
true
|
179
|
+
else
|
180
|
+
false
|
181
|
+
end
|
182
|
+
when :Object
|
183
|
+
# generic object (usually a Hash), return directly
|
184
|
+
value
|
185
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
186
|
+
inner_type = Regexp.last_match[:inner_type]
|
187
|
+
value.map { |v| _deserialize(inner_type, v) }
|
188
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
189
|
+
k_type = Regexp.last_match[:k_type]
|
190
|
+
v_type = Regexp.last_match[:v_type]
|
191
|
+
{}.tap do |hash|
|
192
|
+
value.each do |k, v|
|
193
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
194
|
+
end
|
195
|
+
end
|
196
|
+
else # model
|
197
|
+
PulpFileClient.const_get(type).build_from_hash(value)
|
198
|
+
end
|
199
|
+
end
|
200
|
+
|
201
|
+
# Returns the string representation of the object
|
202
|
+
# @return [String] String presentation of the object
|
203
|
+
def to_s
|
204
|
+
to_hash.to_s
|
205
|
+
end
|
206
|
+
|
207
|
+
# to_body is an alias to to_hash (backward compatibility)
|
208
|
+
# @return [Hash] Returns the object in the form of hash
|
209
|
+
def to_body
|
210
|
+
to_hash
|
211
|
+
end
|
212
|
+
|
213
|
+
# Returns the object in the form of hash
|
214
|
+
# @return [Hash] Returns the object in the form of hash
|
215
|
+
def to_hash
|
216
|
+
hash = {}
|
217
|
+
self.class.attribute_map.each_pair do |attr, param|
|
218
|
+
value = self.send(attr)
|
219
|
+
if value.nil?
|
220
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
221
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
222
|
+
end
|
223
|
+
|
224
|
+
hash[param] = _to_hash(value)
|
225
|
+
end
|
226
|
+
hash
|
227
|
+
end
|
228
|
+
|
229
|
+
# Outputs non-array value in the form of hash
|
230
|
+
# For object, use to_hash. Otherwise, just return the value
|
231
|
+
# @param [Object] value Any valid value
|
232
|
+
# @return [Hash] Returns the value in the form of hash
|
233
|
+
def _to_hash(value)
|
234
|
+
if value.is_a?(Array)
|
235
|
+
value.compact.map { |v| _to_hash(v) }
|
236
|
+
elsif value.is_a?(Hash)
|
237
|
+
{}.tap do |hash|
|
238
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
239
|
+
end
|
240
|
+
elsif value.respond_to? :to_hash
|
241
|
+
value.to_hash
|
242
|
+
else
|
243
|
+
value
|
244
|
+
end
|
245
|
+
end
|
246
|
+
end
|
247
|
+
end
|
data/lib/pulp_file_client.rb
CHANGED
@@ -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.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -19,6 +19,7 @@ require 'pulp_file_client/configuration'
|
|
19
19
|
# Models
|
20
20
|
require 'pulp_file_client/models/async_operation_response'
|
21
21
|
require 'pulp_file_client/models/content_summary'
|
22
|
+
require 'pulp_file_client/models/export'
|
22
23
|
require 'pulp_file_client/models/file_file_content'
|
23
24
|
require 'pulp_file_client/models/file_file_distribution'
|
24
25
|
require 'pulp_file_client/models/file_file_file_system_exporter'
|
@@ -32,6 +33,7 @@ require 'pulp_file_client/models/inline_response2003'
|
|
32
33
|
require 'pulp_file_client/models/inline_response2004'
|
33
34
|
require 'pulp_file_client/models/inline_response2005'
|
34
35
|
require 'pulp_file_client/models/inline_response2006'
|
36
|
+
require 'pulp_file_client/models/inline_response2007'
|
35
37
|
require 'pulp_file_client/models/publication_export'
|
36
38
|
require 'pulp_file_client/models/repository_add_remove_content'
|
37
39
|
require 'pulp_file_client/models/repository_sync_url'
|
@@ -40,7 +42,8 @@ require 'pulp_file_client/models/repository_version'
|
|
40
42
|
# APIs
|
41
43
|
require 'pulp_file_client/api/content_files_api'
|
42
44
|
require 'pulp_file_client/api/distributions_file_api'
|
43
|
-
require 'pulp_file_client/api/
|
45
|
+
require 'pulp_file_client/api/exporters_file_exports_api'
|
46
|
+
require 'pulp_file_client/api/exporters_filesystem_api'
|
44
47
|
require 'pulp_file_client/api/publications_file_api'
|
45
48
|
require 'pulp_file_client/api/remotes_file_api'
|
46
49
|
require 'pulp_file_client/api/repositories_file_api'
|
data/pulp_file_client.gemspec
CHANGED
@@ -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.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -51,6 +51,7 @@ describe 'ContentFilesApi' do
|
|
51
51
|
# List file contents
|
52
52
|
# FileContent represents a single file and its metadata, which can be added and removed from repositories.
|
53
53
|
# @param [Hash] opts the optional parameters
|
54
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
54
55
|
# @option opts [String] :relative_path Filter results where relative_path matches value
|
55
56
|
# @option opts [String] :sha256
|
56
57
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
@@ -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.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -60,6 +60,7 @@ describe 'DistributionsFileApi' do
|
|
60
60
|
# List file distributions
|
61
61
|
# FileDistributions host File Publications which makes the metadata and the referenced File Content available to HTTP clients. Additionally, a FileDistribution with an associated FilePublication can be the target url of a File Remote , allowing another instance of Pulp to sync the content.
|
62
62
|
# @param [Hash] opts the optional parameters
|
63
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
63
64
|
# @option opts [String] :name
|
64
65
|
# @option opts [String] :name__in Filter results where name is in a comma-separated list of values
|
65
66
|
# @option opts [String] :base_path
|
@@ -0,0 +1,91 @@
|
|
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.3
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for PulpFileClient::ExportersFileExportsApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'ExportersFileExportsApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = PulpFileClient::ExportersFileExportsApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of ExportersFileExportsApi' do
|
30
|
+
it 'should create an instance of ExportersFileExportsApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(PulpFileClient::ExportersFileExportsApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for create
|
36
|
+
# Create an export
|
37
|
+
# Trigger an asynchronous task to export a file publication.
|
38
|
+
# @param exporter_pk
|
39
|
+
# @param data
|
40
|
+
# @param [Hash] opts the optional parameters
|
41
|
+
# @return [AsyncOperationResponse]
|
42
|
+
describe 'create test' do
|
43
|
+
it 'should work' do
|
44
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
# unit tests for delete
|
49
|
+
# Delete an export
|
50
|
+
# FileSystemExports provide a history of previous exports.
|
51
|
+
# @param export_href URI of Export. e.g.: /pulp/api/v3/exporters/file/filesystem/1/exports/1/
|
52
|
+
# @param [Hash] opts the optional parameters
|
53
|
+
# @return [nil]
|
54
|
+
describe 'delete test' do
|
55
|
+
it 'should work' do
|
56
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
# unit tests for list
|
61
|
+
# List exports
|
62
|
+
# FileSystemExports provide a history of previous exports.
|
63
|
+
# @param exporter_pk
|
64
|
+
# @param [Hash] opts the optional parameters
|
65
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
66
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
67
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
68
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
69
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
70
|
+
# @return [InlineResponse2003]
|
71
|
+
describe 'list test' do
|
72
|
+
it 'should work' do
|
73
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
# unit tests for read
|
78
|
+
# Inspect an export
|
79
|
+
# FileSystemExports provide a history of previous exports.
|
80
|
+
# @param export_href URI of Export. e.g.: /pulp/api/v3/exporters/file/filesystem/1/exports/1/
|
81
|
+
# @param [Hash] opts the optional parameters
|
82
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
83
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
84
|
+
# @return [Export]
|
85
|
+
describe 'read test' do
|
86
|
+
it 'should work' do
|
87
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
88
|
+
end
|
89
|
+
end
|
90
|
+
|
91
|
+
end
|
@@ -6,29 +6,29 @@
|
|
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.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'spec_helper'
|
14
14
|
require 'json'
|
15
15
|
|
16
|
-
# Unit tests for PulpFileClient::
|
16
|
+
# Unit tests for PulpFileClient::ExportersFilesystemApi
|
17
17
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
18
|
# Please update as you see appropriate
|
19
|
-
describe '
|
19
|
+
describe 'ExportersFilesystemApi' do
|
20
20
|
before do
|
21
21
|
# run before each test
|
22
|
-
@api_instance = PulpFileClient::
|
22
|
+
@api_instance = PulpFileClient::ExportersFilesystemApi.new
|
23
23
|
end
|
24
24
|
|
25
25
|
after do
|
26
26
|
# run after each test
|
27
27
|
end
|
28
28
|
|
29
|
-
describe 'test an instance of
|
30
|
-
it 'should create an instance of
|
31
|
-
expect(@api_instance).to be_instance_of(PulpFileClient::
|
29
|
+
describe 'test an instance of ExportersFilesystemApi' do
|
30
|
+
it 'should create an instance of ExportersFilesystemApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(PulpFileClient::ExportersFilesystemApi)
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
@@ -47,7 +47,7 @@ describe 'FileExportersFileApi' do
|
|
47
47
|
# unit tests for delete
|
48
48
|
# Delete a file file system exporter
|
49
49
|
# FileSystemExporters export content from a publication to a path on the file system.
|
50
|
-
# @param file_file_system_exporter_href URI of File File System Exporter. e.g.: /pulp/api/v3/
|
50
|
+
# @param file_file_system_exporter_href URI of File File System Exporter. e.g.: /pulp/api/v3/exporters/file/filesystem/1/
|
51
51
|
# @param [Hash] opts the optional parameters
|
52
52
|
# @return [nil]
|
53
53
|
describe 'delete test' do
|
@@ -56,22 +56,11 @@ describe 'FileExportersFileApi' do
|
|
56
56
|
end
|
57
57
|
end
|
58
58
|
|
59
|
-
# unit tests for export
|
60
|
-
# Trigger an asynchronous task to export a file publication.
|
61
|
-
# @param file_file_system_exporter_href URI of File File System Exporter. e.g.: /pulp/api/v3/file_exporters/file/file/1/
|
62
|
-
# @param data
|
63
|
-
# @param [Hash] opts the optional parameters
|
64
|
-
# @return [AsyncOperationResponse]
|
65
|
-
describe 'export test' do
|
66
|
-
it 'should work' do
|
67
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
68
|
-
end
|
69
|
-
end
|
70
|
-
|
71
59
|
# unit tests for list
|
72
60
|
# List file file system exporters
|
73
61
|
# FileSystemExporters export content from a publication to a path on the file system.
|
74
62
|
# @param [Hash] opts the optional parameters
|
63
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
75
64
|
# @option opts [String] :name
|
76
65
|
# @option opts [String] :name__in Filter results where name is in a comma-separated list of values
|
77
66
|
# @option opts [Integer] :limit Number of results to return per page.
|
@@ -88,7 +77,7 @@ describe 'FileExportersFileApi' do
|
|
88
77
|
# unit tests for partial_update
|
89
78
|
# Partially update a file file system exporter
|
90
79
|
# FileSystemExporters export content from a publication to a path on the file system.
|
91
|
-
# @param file_file_system_exporter_href URI of File File System Exporter. e.g.: /pulp/api/v3/
|
80
|
+
# @param file_file_system_exporter_href URI of File File System Exporter. e.g.: /pulp/api/v3/exporters/file/filesystem/1/
|
92
81
|
# @param data
|
93
82
|
# @param [Hash] opts the optional parameters
|
94
83
|
# @return [FileFileFileSystemExporter]
|
@@ -101,7 +90,7 @@ describe 'FileExportersFileApi' do
|
|
101
90
|
# unit tests for read
|
102
91
|
# Inspect a file file system exporter
|
103
92
|
# FileSystemExporters export content from a publication to a path on the file system.
|
104
|
-
# @param file_file_system_exporter_href URI of File File System Exporter. e.g.: /pulp/api/v3/
|
93
|
+
# @param file_file_system_exporter_href URI of File File System Exporter. e.g.: /pulp/api/v3/exporters/file/filesystem/1/
|
105
94
|
# @param [Hash] opts the optional parameters
|
106
95
|
# @option opts [String] :fields A list of fields to include in the response.
|
107
96
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
@@ -115,7 +104,7 @@ describe 'FileExportersFileApi' do
|
|
115
104
|
# unit tests for update
|
116
105
|
# Update a file file system exporter
|
117
106
|
# FileSystemExporters export content from a publication to a path on the file system.
|
118
|
-
# @param file_file_system_exporter_href URI of File File System Exporter. e.g.: /pulp/api/v3/
|
107
|
+
# @param file_file_system_exporter_href URI of File File System Exporter. e.g.: /pulp/api/v3/exporters/file/filesystem/1/
|
119
108
|
# @param data
|
120
109
|
# @param [Hash] opts the optional parameters
|
121
110
|
# @return [FileFileFileSystemExporter]
|
@@ -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.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -72,7 +72,7 @@ describe 'PublicationsFileApi' do
|
|
72
72
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
73
73
|
# @option opts [String] :fields A list of fields to include in the response.
|
74
74
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
75
|
-
# @return [
|
75
|
+
# @return [InlineResponse2004]
|
76
76
|
describe 'list test' do
|
77
77
|
it 'should work' do
|
78
78
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -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.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -60,6 +60,7 @@ describe 'RemotesFileApi' do
|
|
60
60
|
# List file remotes
|
61
61
|
# 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.
|
62
62
|
# @param [Hash] opts the optional parameters
|
63
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
63
64
|
# @option opts [String] :name
|
64
65
|
# @option opts [String] :name__in Filter results where name is in a comma-separated list of values
|
65
66
|
# @option opts [String] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
@@ -72,7 +73,7 @@ describe 'RemotesFileApi' do
|
|
72
73
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
73
74
|
# @option opts [String] :fields A list of fields to include in the response.
|
74
75
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
75
|
-
# @return [
|
76
|
+
# @return [InlineResponse2005]
|
76
77
|
describe 'list test' do
|
77
78
|
it 'should work' do
|
78
79
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -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.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -60,13 +60,14 @@ describe 'RepositoriesFileApi' do
|
|
60
60
|
# List file repositorys
|
61
61
|
# FileRepository represents a single file repository, to which content can be synced, added, or removed.
|
62
62
|
# @param [Hash] opts the optional parameters
|
63
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
63
64
|
# @option opts [String] :name
|
64
65
|
# @option opts [String] :name__in Filter results where name is in a comma-separated list of values
|
65
66
|
# @option opts [Integer] :limit Number of results to return per page.
|
66
67
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
67
68
|
# @option opts [String] :fields A list of fields to include in the response.
|
68
69
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
69
|
-
# @return [
|
70
|
+
# @return [InlineResponse2006]
|
70
71
|
describe 'list test' do
|
71
72
|
it 'should work' do
|
72
73
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -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.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -67,7 +67,7 @@ describe 'RepositoriesFileVersionsApi' do
|
|
67
67
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
68
68
|
# @option opts [String] :fields A list of fields to include in the response.
|
69
69
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
70
|
-
# @return [
|
70
|
+
# @return [InlineResponse2007]
|
71
71
|
describe 'list test' do
|
72
72
|
it 'should work' do
|
73
73
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -88,4 +88,16 @@ describe 'RepositoriesFileVersionsApi' do
|
|
88
88
|
end
|
89
89
|
end
|
90
90
|
|
91
|
+
# unit tests for repair
|
92
|
+
# Trigger an asynchronous task to repair a repositroy version.
|
93
|
+
# @param file_repository_version_href URI of Repository Version. e.g.: /pulp/api/v3/repositories/file/file/1/versions/1/
|
94
|
+
# @param data
|
95
|
+
# @param [Hash] opts the optional parameters
|
96
|
+
# @return [AsyncOperationResponse]
|
97
|
+
describe 'repair test' do
|
98
|
+
it 'should work' do
|
99
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
100
|
+
end
|
101
|
+
end
|
102
|
+
|
91
103
|
end
|