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
@@ -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
|
|
@@ -15,7 +15,7 @@ require 'date'
|
|
15
15
|
module PulpFileClient
|
16
16
|
class RepositorySyncURL
|
17
17
|
# A URI of the repository to be synchronized.
|
18
|
-
attr_accessor :
|
18
|
+
attr_accessor :remote
|
19
19
|
|
20
20
|
# If ``True``, synchronization will remove all content that is not present in the remote repository. If ``False``, sync will be additive only.
|
21
21
|
attr_accessor :mirror
|
@@ -23,7 +23,7 @@ module PulpFileClient
|
|
23
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
24
24
|
def self.attribute_map
|
25
25
|
{
|
26
|
-
:'
|
26
|
+
:'remote' => :'remote',
|
27
27
|
:'mirror' => :'mirror'
|
28
28
|
}
|
29
29
|
end
|
@@ -31,11 +31,17 @@ module PulpFileClient
|
|
31
31
|
# Attribute type mapping.
|
32
32
|
def self.openapi_types
|
33
33
|
{
|
34
|
-
:'
|
34
|
+
:'remote' => :'String',
|
35
35
|
:'mirror' => :'Boolean'
|
36
36
|
}
|
37
37
|
end
|
38
38
|
|
39
|
+
# List of attributes with nullable: true
|
40
|
+
def self.openapi_nullable
|
41
|
+
Set.new([
|
42
|
+
])
|
43
|
+
end
|
44
|
+
|
39
45
|
# Initializes the object
|
40
46
|
# @param [Hash] attributes Model attributes in the form of hash
|
41
47
|
def initialize(attributes = {})
|
@@ -51,8 +57,8 @@ module PulpFileClient
|
|
51
57
|
h[k.to_sym] = v
|
52
58
|
}
|
53
59
|
|
54
|
-
if attributes.key?(:'
|
55
|
-
self.
|
60
|
+
if attributes.key?(:'remote')
|
61
|
+
self.remote = attributes[:'remote']
|
56
62
|
end
|
57
63
|
|
58
64
|
if attributes.key?(:'mirror')
|
@@ -66,8 +72,8 @@ module PulpFileClient
|
|
66
72
|
# @return Array for valid properties with the reasons
|
67
73
|
def list_invalid_properties
|
68
74
|
invalid_properties = Array.new
|
69
|
-
if @
|
70
|
-
invalid_properties.push('invalid value for "
|
75
|
+
if @remote.nil?
|
76
|
+
invalid_properties.push('invalid value for "remote", remote cannot be nil.')
|
71
77
|
end
|
72
78
|
|
73
79
|
invalid_properties
|
@@ -76,7 +82,7 @@ module PulpFileClient
|
|
76
82
|
# Check to see if the all the properties in the model are valid
|
77
83
|
# @return true if the model is valid
|
78
84
|
def valid?
|
79
|
-
return false if @
|
85
|
+
return false if @remote.nil?
|
80
86
|
true
|
81
87
|
end
|
82
88
|
|
@@ -85,7 +91,7 @@ module PulpFileClient
|
|
85
91
|
def ==(o)
|
86
92
|
return true if self.equal?(o)
|
87
93
|
self.class == o.class &&
|
88
|
-
|
94
|
+
remote == o.remote &&
|
89
95
|
mirror == o.mirror
|
90
96
|
end
|
91
97
|
|
@@ -98,7 +104,7 @@ module PulpFileClient
|
|
98
104
|
# Calculates hash code according to all attributes.
|
99
105
|
# @return [Integer] Hash code
|
100
106
|
def hash
|
101
|
-
[
|
107
|
+
[remote, mirror].hash
|
102
108
|
end
|
103
109
|
|
104
110
|
# Builds the object from hash
|
@@ -187,7 +193,11 @@ module PulpFileClient
|
|
187
193
|
hash = {}
|
188
194
|
self.class.attribute_map.each_pair do |attr, param|
|
189
195
|
value = self.send(attr)
|
190
|
-
|
196
|
+
if value.nil?
|
197
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
198
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
199
|
+
end
|
200
|
+
|
191
201
|
hash[param] = _to_hash(value)
|
192
202
|
end
|
193
203
|
hash
|
@@ -0,0 +1,244 @@
|
|
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 'date'
|
14
|
+
|
15
|
+
module PulpFileClient
|
16
|
+
class RepositoryVersion
|
17
|
+
attr_accessor :pulp_href
|
18
|
+
|
19
|
+
# Timestamp of creation.
|
20
|
+
attr_accessor :pulp_created
|
21
|
+
|
22
|
+
attr_accessor :number
|
23
|
+
|
24
|
+
# A repository version whose content was used as the initial set of content for this repository version
|
25
|
+
attr_accessor :base_version
|
26
|
+
|
27
|
+
attr_accessor :content_summary
|
28
|
+
|
29
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
30
|
+
def self.attribute_map
|
31
|
+
{
|
32
|
+
:'pulp_href' => :'pulp_href',
|
33
|
+
:'pulp_created' => :'pulp_created',
|
34
|
+
:'number' => :'number',
|
35
|
+
:'base_version' => :'base_version',
|
36
|
+
:'content_summary' => :'content_summary'
|
37
|
+
}
|
38
|
+
end
|
39
|
+
|
40
|
+
# Attribute type mapping.
|
41
|
+
def self.openapi_types
|
42
|
+
{
|
43
|
+
:'pulp_href' => :'String',
|
44
|
+
:'pulp_created' => :'DateTime',
|
45
|
+
:'number' => :'Integer',
|
46
|
+
:'base_version' => :'String',
|
47
|
+
:'content_summary' => :'ContentSummary'
|
48
|
+
}
|
49
|
+
end
|
50
|
+
|
51
|
+
# List of attributes with nullable: true
|
52
|
+
def self.openapi_nullable
|
53
|
+
Set.new([
|
54
|
+
])
|
55
|
+
end
|
56
|
+
|
57
|
+
# Initializes the object
|
58
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
59
|
+
def initialize(attributes = {})
|
60
|
+
if (!attributes.is_a?(Hash))
|
61
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpFileClient::RepositoryVersion` initialize method"
|
62
|
+
end
|
63
|
+
|
64
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
65
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
66
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
67
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpFileClient::RepositoryVersion`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
68
|
+
end
|
69
|
+
h[k.to_sym] = v
|
70
|
+
}
|
71
|
+
|
72
|
+
if attributes.key?(:'pulp_href')
|
73
|
+
self.pulp_href = attributes[:'pulp_href']
|
74
|
+
end
|
75
|
+
|
76
|
+
if attributes.key?(:'pulp_created')
|
77
|
+
self.pulp_created = attributes[:'pulp_created']
|
78
|
+
end
|
79
|
+
|
80
|
+
if attributes.key?(:'number')
|
81
|
+
self.number = attributes[:'number']
|
82
|
+
end
|
83
|
+
|
84
|
+
if attributes.key?(:'base_version')
|
85
|
+
self.base_version = attributes[:'base_version']
|
86
|
+
end
|
87
|
+
|
88
|
+
if attributes.key?(:'content_summary')
|
89
|
+
self.content_summary = attributes[:'content_summary']
|
90
|
+
end
|
91
|
+
end
|
92
|
+
|
93
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
94
|
+
# @return Array for valid properties with the reasons
|
95
|
+
def list_invalid_properties
|
96
|
+
invalid_properties = Array.new
|
97
|
+
invalid_properties
|
98
|
+
end
|
99
|
+
|
100
|
+
# Check to see if the all the properties in the model are valid
|
101
|
+
# @return true if the model is valid
|
102
|
+
def valid?
|
103
|
+
true
|
104
|
+
end
|
105
|
+
|
106
|
+
# Checks equality by comparing each attribute.
|
107
|
+
# @param [Object] Object to be compared
|
108
|
+
def ==(o)
|
109
|
+
return true if self.equal?(o)
|
110
|
+
self.class == o.class &&
|
111
|
+
pulp_href == o.pulp_href &&
|
112
|
+
pulp_created == o.pulp_created &&
|
113
|
+
number == o.number &&
|
114
|
+
base_version == o.base_version &&
|
115
|
+
content_summary == o.content_summary
|
116
|
+
end
|
117
|
+
|
118
|
+
# @see the `==` method
|
119
|
+
# @param [Object] Object to be compared
|
120
|
+
def eql?(o)
|
121
|
+
self == o
|
122
|
+
end
|
123
|
+
|
124
|
+
# Calculates hash code according to all attributes.
|
125
|
+
# @return [Integer] Hash code
|
126
|
+
def hash
|
127
|
+
[pulp_href, pulp_created, number, base_version, content_summary].hash
|
128
|
+
end
|
129
|
+
|
130
|
+
# Builds the object from hash
|
131
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
132
|
+
# @return [Object] Returns the model itself
|
133
|
+
def self.build_from_hash(attributes)
|
134
|
+
new.build_from_hash(attributes)
|
135
|
+
end
|
136
|
+
|
137
|
+
# Builds the object from hash
|
138
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
139
|
+
# @return [Object] Returns the model itself
|
140
|
+
def build_from_hash(attributes)
|
141
|
+
return nil unless attributes.is_a?(Hash)
|
142
|
+
self.class.openapi_types.each_pair do |key, type|
|
143
|
+
if type =~ /\AArray<(.*)>/i
|
144
|
+
# check to ensure the input is an array given that the attribute
|
145
|
+
# is documented as an array but the input is not
|
146
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
147
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
148
|
+
end
|
149
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
150
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
151
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
152
|
+
end
|
153
|
+
|
154
|
+
self
|
155
|
+
end
|
156
|
+
|
157
|
+
# Deserializes the data based on type
|
158
|
+
# @param string type Data type
|
159
|
+
# @param string value Value to be deserialized
|
160
|
+
# @return [Object] Deserialized data
|
161
|
+
def _deserialize(type, value)
|
162
|
+
case type.to_sym
|
163
|
+
when :DateTime
|
164
|
+
DateTime.parse(value)
|
165
|
+
when :Date
|
166
|
+
Date.parse(value)
|
167
|
+
when :String
|
168
|
+
value.to_s
|
169
|
+
when :Integer
|
170
|
+
value.to_i
|
171
|
+
when :Float
|
172
|
+
value.to_f
|
173
|
+
when :Boolean
|
174
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
175
|
+
true
|
176
|
+
else
|
177
|
+
false
|
178
|
+
end
|
179
|
+
when :Object
|
180
|
+
# generic object (usually a Hash), return directly
|
181
|
+
value
|
182
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
183
|
+
inner_type = Regexp.last_match[:inner_type]
|
184
|
+
value.map { |v| _deserialize(inner_type, v) }
|
185
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
186
|
+
k_type = Regexp.last_match[:k_type]
|
187
|
+
v_type = Regexp.last_match[:v_type]
|
188
|
+
{}.tap do |hash|
|
189
|
+
value.each do |k, v|
|
190
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
191
|
+
end
|
192
|
+
end
|
193
|
+
else # model
|
194
|
+
PulpFileClient.const_get(type).build_from_hash(value)
|
195
|
+
end
|
196
|
+
end
|
197
|
+
|
198
|
+
# Returns the string representation of the object
|
199
|
+
# @return [String] String presentation of the object
|
200
|
+
def to_s
|
201
|
+
to_hash.to_s
|
202
|
+
end
|
203
|
+
|
204
|
+
# to_body is an alias to to_hash (backward compatibility)
|
205
|
+
# @return [Hash] Returns the object in the form of hash
|
206
|
+
def to_body
|
207
|
+
to_hash
|
208
|
+
end
|
209
|
+
|
210
|
+
# Returns the object in the form of hash
|
211
|
+
# @return [Hash] Returns the object in the form of hash
|
212
|
+
def to_hash
|
213
|
+
hash = {}
|
214
|
+
self.class.attribute_map.each_pair do |attr, param|
|
215
|
+
value = self.send(attr)
|
216
|
+
if value.nil?
|
217
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
218
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
219
|
+
end
|
220
|
+
|
221
|
+
hash[param] = _to_hash(value)
|
222
|
+
end
|
223
|
+
hash
|
224
|
+
end
|
225
|
+
|
226
|
+
# Outputs non-array value in the form of hash
|
227
|
+
# For object, use to_hash. Otherwise, just return the value
|
228
|
+
# @param [Object] value Any valid value
|
229
|
+
# @return [Hash] Returns the value in the form of hash
|
230
|
+
def _to_hash(value)
|
231
|
+
if value.is_a?(Array)
|
232
|
+
value.compact.map { |v| _to_hash(v) }
|
233
|
+
elsif value.is_a?(Hash)
|
234
|
+
{}.tap do |hash|
|
235
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
236
|
+
end
|
237
|
+
elsif value.respond_to? :to_hash
|
238
|
+
value.to_hash
|
239
|
+
else
|
240
|
+
value
|
241
|
+
end
|
242
|
+
end
|
243
|
+
end
|
244
|
+
end
|
@@ -6,10 +6,10 @@
|
|
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
|
|
13
13
|
module PulpFileClient
|
14
|
-
VERSION = '0.1.
|
14
|
+
VERSION = '0.1.0rc1'
|
15
15
|
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.2-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -18,21 +18,33 @@ require 'pulp_file_client/configuration'
|
|
18
18
|
|
19
19
|
# Models
|
20
20
|
require 'pulp_file_client/models/async_operation_response'
|
21
|
-
require 'pulp_file_client/models/
|
22
|
-
require 'pulp_file_client/models/
|
23
|
-
require 'pulp_file_client/models/
|
24
|
-
require 'pulp_file_client/models/
|
21
|
+
require 'pulp_file_client/models/content_summary'
|
22
|
+
require 'pulp_file_client/models/file_file_content'
|
23
|
+
require 'pulp_file_client/models/file_file_distribution'
|
24
|
+
require 'pulp_file_client/models/file_file_file_system_exporter'
|
25
|
+
require 'pulp_file_client/models/file_file_publication'
|
26
|
+
require 'pulp_file_client/models/file_file_remote'
|
27
|
+
require 'pulp_file_client/models/file_file_repository'
|
25
28
|
require 'pulp_file_client/models/inline_response200'
|
26
29
|
require 'pulp_file_client/models/inline_response2001'
|
27
30
|
require 'pulp_file_client/models/inline_response2002'
|
28
31
|
require 'pulp_file_client/models/inline_response2003'
|
32
|
+
require 'pulp_file_client/models/inline_response2004'
|
33
|
+
require 'pulp_file_client/models/inline_response2005'
|
34
|
+
require 'pulp_file_client/models/inline_response2006'
|
35
|
+
require 'pulp_file_client/models/publication_export'
|
36
|
+
require 'pulp_file_client/models/repository_add_remove_content'
|
29
37
|
require 'pulp_file_client/models/repository_sync_url'
|
38
|
+
require 'pulp_file_client/models/repository_version'
|
30
39
|
|
31
40
|
# APIs
|
32
41
|
require 'pulp_file_client/api/content_files_api'
|
33
42
|
require 'pulp_file_client/api/distributions_file_api'
|
43
|
+
require 'pulp_file_client/api/file_exporters_file_api'
|
34
44
|
require 'pulp_file_client/api/publications_file_api'
|
35
45
|
require 'pulp_file_client/api/remotes_file_api'
|
46
|
+
require 'pulp_file_client/api/repositories_file_api'
|
47
|
+
require 'pulp_file_client/api/repositories_file_versions_api'
|
36
48
|
|
37
49
|
module PulpFileClient
|
38
50
|
class << self
|
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.2-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -74,7 +74,7 @@ describe 'ContentFilesApi' do
|
|
74
74
|
# @param [Hash] opts the optional parameters
|
75
75
|
# @option opts [String] :fields A list of fields to include in the response.
|
76
76
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
77
|
-
# @return [
|
77
|
+
# @return [FileFileContent]
|
78
78
|
describe 'read test' do
|
79
79
|
it 'should work' do
|
80
80
|
# 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.2-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -97,7 +97,7 @@ describe 'DistributionsFileApi' do
|
|
97
97
|
# @param [Hash] opts the optional parameters
|
98
98
|
# @option opts [String] :fields A list of fields to include in the response.
|
99
99
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
100
|
-
# @return [
|
100
|
+
# @return [FileFileDistribution]
|
101
101
|
describe 'read test' do
|
102
102
|
it 'should work' do
|
103
103
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -0,0 +1,128 @@
|
|
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 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for PulpFileClient::FileExportersFileApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'FileExportersFileApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = PulpFileClient::FileExportersFileApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of FileExportersFileApi' do
|
30
|
+
it 'should create an instance of FileExportersFileApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(PulpFileClient::FileExportersFileApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for create
|
36
|
+
# Create a file file system exporter
|
37
|
+
# FileSystemExporters export content from a publication to a path on the file system.
|
38
|
+
# @param data
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @return [FileFileFileSystemExporter]
|
41
|
+
describe 'create test' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
# unit tests for delete
|
48
|
+
# Delete a file file system exporter
|
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/file_exporters/file/file/1/
|
51
|
+
# @param [Hash] opts the optional parameters
|
52
|
+
# @return [nil]
|
53
|
+
describe 'delete test' do
|
54
|
+
it 'should work' do
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
+
end
|
57
|
+
end
|
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
|
+
# unit tests for list
|
72
|
+
# List file file system exporters
|
73
|
+
# FileSystemExporters export content from a publication to a path on the file system.
|
74
|
+
# @param [Hash] opts the optional parameters
|
75
|
+
# @option opts [String] :name
|
76
|
+
# @option opts [String] :name__in Filter results where name is in a comma-separated list of values
|
77
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
78
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
79
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
80
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
81
|
+
# @return [InlineResponse2002]
|
82
|
+
describe 'list test' do
|
83
|
+
it 'should work' do
|
84
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
# unit tests for partial_update
|
89
|
+
# Partially update a file file system exporter
|
90
|
+
# 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/file_exporters/file/file/1/
|
92
|
+
# @param data
|
93
|
+
# @param [Hash] opts the optional parameters
|
94
|
+
# @return [FileFileFileSystemExporter]
|
95
|
+
describe 'partial_update test' do
|
96
|
+
it 'should work' do
|
97
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
101
|
+
# unit tests for read
|
102
|
+
# Inspect a file file system exporter
|
103
|
+
# 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/file_exporters/file/file/1/
|
105
|
+
# @param [Hash] opts the optional parameters
|
106
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
107
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
108
|
+
# @return [FileFileFileSystemExporter]
|
109
|
+
describe 'read test' do
|
110
|
+
it 'should work' do
|
111
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
112
|
+
end
|
113
|
+
end
|
114
|
+
|
115
|
+
# unit tests for update
|
116
|
+
# Update a file file system exporter
|
117
|
+
# 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/file_exporters/file/file/1/
|
119
|
+
# @param data
|
120
|
+
# @param [Hash] opts the optional parameters
|
121
|
+
# @return [FileFileFileSystemExporter]
|
122
|
+
describe 'update test' do
|
123
|
+
it 'should work' do
|
124
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
125
|
+
end
|
126
|
+
end
|
127
|
+
|
128
|
+
end
|
@@ -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
|
|
@@ -46,7 +46,7 @@ describe 'PublicationsFileApi' do
|
|
46
46
|
|
47
47
|
# unit tests for delete
|
48
48
|
# Delete a file publication
|
49
|
-
# A FilePublication contains metadata about all the File Content in a particular Repository Version. Once a FilePublication has been created, it can be hosted using the File Distribution API.
|
49
|
+
# A FilePublication contains metadata about all the File Content in a particular File Repository Version. Once a FilePublication has been created, it can be hosted using the File Distribution API.
|
50
50
|
# @param file_publication_href URI of File Publication. e.g.: /pulp/api/v3/publications/file/file/1/
|
51
51
|
# @param [Hash] opts the optional parameters
|
52
52
|
# @return [nil]
|
@@ -58,14 +58,14 @@ describe 'PublicationsFileApi' do
|
|
58
58
|
|
59
59
|
# unit tests for list
|
60
60
|
# List file publications
|
61
|
-
# A FilePublication contains metadata about all the File Content in a particular Repository Version. Once a FilePublication has been created, it can be hosted using the File Distribution API.
|
61
|
+
# A FilePublication contains metadata about all the File Content in a particular File Repository Version. Once a FilePublication has been created, it can be hosted using the File Distribution API.
|
62
62
|
# @param [Hash] opts the optional parameters
|
63
63
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
64
64
|
# @option opts [Integer] :limit Number of results to return per page.
|
65
65
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
66
66
|
# @option opts [String] :fields A list of fields to include in the response.
|
67
67
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
68
|
-
# @return [
|
68
|
+
# @return [InlineResponse2003]
|
69
69
|
describe 'list test' do
|
70
70
|
it 'should work' do
|
71
71
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -74,12 +74,12 @@ describe 'PublicationsFileApi' do
|
|
74
74
|
|
75
75
|
# unit tests for read
|
76
76
|
# Inspect a file publication
|
77
|
-
# A FilePublication contains metadata about all the File Content in a particular Repository Version. Once a FilePublication has been created, it can be hosted using the File Distribution API.
|
77
|
+
# A FilePublication contains metadata about all the File Content in a particular File Repository Version. Once a FilePublication has been created, it can be hosted using the File Distribution API.
|
78
78
|
# @param file_publication_href URI of File Publication. e.g.: /pulp/api/v3/publications/file/file/1/
|
79
79
|
# @param [Hash] opts the optional parameters
|
80
80
|
# @option opts [String] :fields A list of fields to include in the response.
|
81
81
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
82
|
-
# @return [
|
82
|
+
# @return [FileFilePublication]
|
83
83
|
describe 'read test' do
|
84
84
|
it 'should work' do
|
85
85
|
# 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.2-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -37,7 +37,7 @@ describe 'RemotesFileApi' do
|
|
37
37
|
# 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.
|
38
38
|
# @param data
|
39
39
|
# @param [Hash] opts the optional parameters
|
40
|
-
# @return [
|
40
|
+
# @return [FileFileRemote]
|
41
41
|
describe 'create test' do
|
42
42
|
it 'should work' do
|
43
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -72,7 +72,7 @@ describe 'RemotesFileApi' 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
|
@@ -99,25 +99,13 @@ describe 'RemotesFileApi' do
|
|
99
99
|
# @param [Hash] opts the optional parameters
|
100
100
|
# @option opts [String] :fields A list of fields to include in the response.
|
101
101
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
102
|
-
# @return [
|
102
|
+
# @return [FileFileRemote]
|
103
103
|
describe 'read test' do
|
104
104
|
it 'should work' do
|
105
105
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
106
106
|
end
|
107
107
|
end
|
108
108
|
|
109
|
-
# unit tests for sync
|
110
|
-
# Trigger an asynchronous task to sync file content.
|
111
|
-
# @param file_remote_href URI of File Remote. e.g.: /pulp/api/v3/remotes/file/file/1/
|
112
|
-
# @param data
|
113
|
-
# @param [Hash] opts the optional parameters
|
114
|
-
# @return [AsyncOperationResponse]
|
115
|
-
describe 'sync test' do
|
116
|
-
it 'should work' do
|
117
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
118
|
-
end
|
119
|
-
end
|
120
|
-
|
121
109
|
# unit tests for update
|
122
110
|
# Update a file remote
|
123
111
|
# Trigger an asynchronous update task
|