pulpcore_client 3.0.0rc2 → 3.0.0rc3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +43 -37
- data/docs/ArtifactsApi.md +20 -20
- data/docs/ContentAppStatus.md +19 -0
- data/docs/DatabaseConnection.md +17 -0
- data/docs/OrphansApi.md +5 -5
- data/docs/ProgressReport.md +1 -3
- data/docs/RedisConnection.md +17 -0
- data/docs/RepositoriesApi.md +30 -278
- data/docs/RepositoriesVersionsApi.md +256 -0
- data/docs/RepositoryVersionCreate.md +2 -2
- data/docs/Status.md +27 -0
- data/docs/StatusApi.md +8 -7
- data/docs/TaskCancel.md +17 -0
- data/docs/TasksApi.md +71 -71
- data/docs/Upload.md +6 -8
- data/docs/UploadCommit.md +17 -0
- data/docs/UploadsApi.md +66 -106
- data/docs/Version.md +19 -0
- data/docs/WorkersApi.md +10 -10
- data/lib/pulpcore_client/api/artifacts_api.rb +47 -23
- data/lib/pulpcore_client/api/orphans_api.rb +6 -6
- data/lib/pulpcore_client/api/repositories_api.rb +38 -338
- data/lib/pulpcore_client/api/repositories_versions_api.rb +322 -0
- data/lib/pulpcore_client/api/status_api.rb +12 -10
- data/lib/pulpcore_client/api/tasks_api.rb +88 -88
- data/lib/pulpcore_client/api/uploads_api.rb +105 -154
- data/lib/pulpcore_client/api/workers_api.rb +12 -12
- data/lib/pulpcore_client/api_client.rb +1 -1
- data/lib/pulpcore_client/api_error.rb +1 -1
- data/lib/pulpcore_client/configuration.rb +1 -1
- data/lib/pulpcore_client/models/artifact.rb +91 -1
- data/lib/pulpcore_client/models/async_operation_response.rb +1 -1
- data/lib/pulpcore_client/models/content_app_status.rb +223 -0
- data/lib/pulpcore_client/models/database_connection.rb +203 -0
- data/lib/pulpcore_client/models/inline_response200.rb +1 -1
- data/lib/pulpcore_client/models/inline_response2001.rb +1 -1
- data/lib/pulpcore_client/models/inline_response2002.rb +1 -1
- data/lib/pulpcore_client/models/inline_response2003.rb +1 -1
- data/lib/pulpcore_client/models/inline_response2004.rb +1 -1
- data/lib/pulpcore_client/models/inline_response2005.rb +1 -1
- data/lib/pulpcore_client/models/progress_report.rb +20 -15
- data/lib/pulpcore_client/models/redis_connection.rb +203 -0
- data/lib/pulpcore_client/models/repository.rb +16 -1
- data/lib/pulpcore_client/models/repository_version.rb +1 -1
- data/lib/pulpcore_client/models/repository_version_create.rb +3 -13
- data/lib/pulpcore_client/models/status.rb +283 -0
- data/lib/pulpcore_client/models/task.rb +1 -1
- data/lib/pulpcore_client/models/task_cancel.rb +221 -0
- data/lib/pulpcore_client/models/upload.rb +26 -52
- data/lib/pulpcore_client/models/upload_commit.rb +221 -0
- data/lib/pulpcore_client/models/version.rb +256 -0
- data/lib/pulpcore_client/models/worker.rb +2 -1
- data/lib/pulpcore_client/version.rb +2 -2
- data/lib/pulpcore_client.rb +9 -1
- data/pulpcore_client.gemspec +1 -1
- data/spec/api/artifacts_api_spec.rb +9 -9
- data/spec/api/orphans_api_spec.rb +3 -3
- data/spec/api/repositories_api_spec.rb +13 -76
- data/spec/api/repositories_versions_api_spec.rb +98 -0
- data/spec/api/status_api_spec.rb +4 -4
- data/spec/api/tasks_api_spec.rb +20 -20
- data/spec/api/uploads_api_spec.rb +32 -37
- data/spec/api/workers_api_spec.rb +5 -5
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/artifact_spec.rb +1 -1
- data/spec/models/async_operation_response_spec.rb +1 -1
- data/spec/models/content_app_status_spec.rb +47 -0
- data/spec/models/database_connection_spec.rb +41 -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 +1 -1
- data/spec/models/inline_response2005_spec.rb +1 -1
- data/spec/models/inline_response200_spec.rb +1 -1
- data/spec/models/progress_report_spec.rb +1 -7
- data/spec/models/redis_connection_spec.rb +41 -0
- data/spec/models/repository_spec.rb +1 -1
- data/spec/models/repository_version_create_spec.rb +1 -1
- data/spec/models/repository_version_spec.rb +1 -1
- data/spec/models/status_spec.rb +71 -0
- data/spec/models/task_cancel_spec.rb +41 -0
- data/spec/models/task_spec.rb +1 -1
- data/spec/models/upload_commit_spec.rb +41 -0
- data/spec/models/upload_spec.rb +4 -10
- data/spec/models/version_spec.rb +47 -0
- data/spec/models/worker_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +34 -2
@@ -0,0 +1,256 @@
|
|
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.0.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module PulpcoreClient
|
16
|
+
# Version information of Pulp components
|
17
|
+
class Version
|
18
|
+
# Name of a versioned component of Pulp
|
19
|
+
attr_accessor :component
|
20
|
+
|
21
|
+
# Version of the component (e.g. 3.0.0)
|
22
|
+
attr_accessor :version
|
23
|
+
|
24
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
25
|
+
def self.attribute_map
|
26
|
+
{
|
27
|
+
:'component' => :'component',
|
28
|
+
:'version' => :'version'
|
29
|
+
}
|
30
|
+
end
|
31
|
+
|
32
|
+
# Attribute type mapping.
|
33
|
+
def self.openapi_types
|
34
|
+
{
|
35
|
+
:'component' => :'String',
|
36
|
+
:'version' => :'String'
|
37
|
+
}
|
38
|
+
end
|
39
|
+
|
40
|
+
# Initializes the object
|
41
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
42
|
+
def initialize(attributes = {})
|
43
|
+
if (!attributes.is_a?(Hash))
|
44
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpcoreClient::Version` initialize method"
|
45
|
+
end
|
46
|
+
|
47
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
48
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
49
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
50
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpcoreClient::Version`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
51
|
+
end
|
52
|
+
h[k.to_sym] = v
|
53
|
+
}
|
54
|
+
|
55
|
+
if attributes.key?(:'component')
|
56
|
+
self.component = attributes[:'component']
|
57
|
+
end
|
58
|
+
|
59
|
+
if attributes.key?(:'version')
|
60
|
+
self.version = attributes[:'version']
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
65
|
+
# @return Array for valid properties with the reasons
|
66
|
+
def list_invalid_properties
|
67
|
+
invalid_properties = Array.new
|
68
|
+
if @component.nil?
|
69
|
+
invalid_properties.push('invalid value for "component", component cannot be nil.')
|
70
|
+
end
|
71
|
+
|
72
|
+
if @component.to_s.length < 1
|
73
|
+
invalid_properties.push('invalid value for "component", the character length must be great than or equal to 1.')
|
74
|
+
end
|
75
|
+
|
76
|
+
if @version.nil?
|
77
|
+
invalid_properties.push('invalid value for "version", version cannot be nil.')
|
78
|
+
end
|
79
|
+
|
80
|
+
if @version.to_s.length < 1
|
81
|
+
invalid_properties.push('invalid value for "version", the character length must be great than or equal to 1.')
|
82
|
+
end
|
83
|
+
|
84
|
+
invalid_properties
|
85
|
+
end
|
86
|
+
|
87
|
+
# Check to see if the all the properties in the model are valid
|
88
|
+
# @return true if the model is valid
|
89
|
+
def valid?
|
90
|
+
return false if @component.nil?
|
91
|
+
return false if @component.to_s.length < 1
|
92
|
+
return false if @version.nil?
|
93
|
+
return false if @version.to_s.length < 1
|
94
|
+
true
|
95
|
+
end
|
96
|
+
|
97
|
+
# Custom attribute writer method with validation
|
98
|
+
# @param [Object] component Value to be assigned
|
99
|
+
def component=(component)
|
100
|
+
if component.nil?
|
101
|
+
fail ArgumentError, 'component cannot be nil'
|
102
|
+
end
|
103
|
+
|
104
|
+
if component.to_s.length < 1
|
105
|
+
fail ArgumentError, 'invalid value for "component", the character length must be great than or equal to 1.'
|
106
|
+
end
|
107
|
+
|
108
|
+
@component = component
|
109
|
+
end
|
110
|
+
|
111
|
+
# Custom attribute writer method with validation
|
112
|
+
# @param [Object] version Value to be assigned
|
113
|
+
def version=(version)
|
114
|
+
if version.nil?
|
115
|
+
fail ArgumentError, 'version cannot be nil'
|
116
|
+
end
|
117
|
+
|
118
|
+
if version.to_s.length < 1
|
119
|
+
fail ArgumentError, 'invalid value for "version", the character length must be great than or equal to 1.'
|
120
|
+
end
|
121
|
+
|
122
|
+
@version = version
|
123
|
+
end
|
124
|
+
|
125
|
+
# Checks equality by comparing each attribute.
|
126
|
+
# @param [Object] Object to be compared
|
127
|
+
def ==(o)
|
128
|
+
return true if self.equal?(o)
|
129
|
+
self.class == o.class &&
|
130
|
+
component == o.component &&
|
131
|
+
version == o.version
|
132
|
+
end
|
133
|
+
|
134
|
+
# @see the `==` method
|
135
|
+
# @param [Object] Object to be compared
|
136
|
+
def eql?(o)
|
137
|
+
self == o
|
138
|
+
end
|
139
|
+
|
140
|
+
# Calculates hash code according to all attributes.
|
141
|
+
# @return [Integer] Hash code
|
142
|
+
def hash
|
143
|
+
[component, version].hash
|
144
|
+
end
|
145
|
+
|
146
|
+
# Builds the object from hash
|
147
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
148
|
+
# @return [Object] Returns the model itself
|
149
|
+
def self.build_from_hash(attributes)
|
150
|
+
new.build_from_hash(attributes)
|
151
|
+
end
|
152
|
+
|
153
|
+
# Builds the object from hash
|
154
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
155
|
+
# @return [Object] Returns the model itself
|
156
|
+
def build_from_hash(attributes)
|
157
|
+
return nil unless attributes.is_a?(Hash)
|
158
|
+
self.class.openapi_types.each_pair do |key, type|
|
159
|
+
if type =~ /\AArray<(.*)>/i
|
160
|
+
# check to ensure the input is an array given that the attribute
|
161
|
+
# is documented as an array but the input is not
|
162
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
163
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
164
|
+
end
|
165
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
166
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
167
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
168
|
+
end
|
169
|
+
|
170
|
+
self
|
171
|
+
end
|
172
|
+
|
173
|
+
# Deserializes the data based on type
|
174
|
+
# @param string type Data type
|
175
|
+
# @param string value Value to be deserialized
|
176
|
+
# @return [Object] Deserialized data
|
177
|
+
def _deserialize(type, value)
|
178
|
+
case type.to_sym
|
179
|
+
when :DateTime
|
180
|
+
DateTime.parse(value)
|
181
|
+
when :Date
|
182
|
+
Date.parse(value)
|
183
|
+
when :String
|
184
|
+
value.to_s
|
185
|
+
when :Integer
|
186
|
+
value.to_i
|
187
|
+
when :Float
|
188
|
+
value.to_f
|
189
|
+
when :Boolean
|
190
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
191
|
+
true
|
192
|
+
else
|
193
|
+
false
|
194
|
+
end
|
195
|
+
when :Object
|
196
|
+
# generic object (usually a Hash), return directly
|
197
|
+
value
|
198
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
199
|
+
inner_type = Regexp.last_match[:inner_type]
|
200
|
+
value.map { |v| _deserialize(inner_type, v) }
|
201
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
202
|
+
k_type = Regexp.last_match[:k_type]
|
203
|
+
v_type = Regexp.last_match[:v_type]
|
204
|
+
{}.tap do |hash|
|
205
|
+
value.each do |k, v|
|
206
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
207
|
+
end
|
208
|
+
end
|
209
|
+
else # model
|
210
|
+
PulpcoreClient.const_get(type).build_from_hash(value)
|
211
|
+
end
|
212
|
+
end
|
213
|
+
|
214
|
+
# Returns the string representation of the object
|
215
|
+
# @return [String] String presentation of the object
|
216
|
+
def to_s
|
217
|
+
to_hash.to_s
|
218
|
+
end
|
219
|
+
|
220
|
+
# to_body is an alias to to_hash (backward compatibility)
|
221
|
+
# @return [Hash] Returns the object in the form of hash
|
222
|
+
def to_body
|
223
|
+
to_hash
|
224
|
+
end
|
225
|
+
|
226
|
+
# Returns the object in the form of hash
|
227
|
+
# @return [Hash] Returns the object in the form of hash
|
228
|
+
def to_hash
|
229
|
+
hash = {}
|
230
|
+
self.class.attribute_map.each_pair do |attr, param|
|
231
|
+
value = self.send(attr)
|
232
|
+
next if value.nil?
|
233
|
+
hash[param] = _to_hash(value)
|
234
|
+
end
|
235
|
+
hash
|
236
|
+
end
|
237
|
+
|
238
|
+
# Outputs non-array value in the form of hash
|
239
|
+
# For object, use to_hash. Otherwise, just return the value
|
240
|
+
# @param [Object] value Any valid value
|
241
|
+
# @return [Hash] Returns the value in the form of hash
|
242
|
+
def _to_hash(value)
|
243
|
+
if value.is_a?(Array)
|
244
|
+
value.compact.map { |v| _to_hash(v) }
|
245
|
+
elsif value.is_a?(Hash)
|
246
|
+
{}.tap do |hash|
|
247
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
248
|
+
end
|
249
|
+
elsif value.respond_to? :to_hash
|
250
|
+
value.to_hash
|
251
|
+
else
|
252
|
+
value
|
253
|
+
end
|
254
|
+
end
|
255
|
+
end
|
256
|
+
end
|
@@ -6,13 +6,14 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.0.
|
9
|
+
OpenAPI Generator version: 4.0.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module PulpcoreClient
|
16
|
+
# List of online workers known to the application. An online worker is actively heartbeating and can respond to new work
|
16
17
|
class Worker
|
17
18
|
attr_accessor :_href
|
18
19
|
|
@@ -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.0.
|
9
|
+
OpenAPI Generator version: 4.0.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
module PulpcoreClient
|
14
|
-
VERSION = '3.0.
|
14
|
+
VERSION = '3.0.0rc3'
|
15
15
|
end
|
data/lib/pulpcore_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.0.
|
9
|
+
OpenAPI Generator version: 4.0.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -19,6 +19,8 @@ require 'pulpcore_client/configuration'
|
|
19
19
|
# Models
|
20
20
|
require 'pulpcore_client/models/artifact'
|
21
21
|
require 'pulpcore_client/models/async_operation_response'
|
22
|
+
require 'pulpcore_client/models/content_app_status'
|
23
|
+
require 'pulpcore_client/models/database_connection'
|
22
24
|
require 'pulpcore_client/models/inline_response200'
|
23
25
|
require 'pulpcore_client/models/inline_response2001'
|
24
26
|
require 'pulpcore_client/models/inline_response2002'
|
@@ -26,17 +28,23 @@ require 'pulpcore_client/models/inline_response2003'
|
|
26
28
|
require 'pulpcore_client/models/inline_response2004'
|
27
29
|
require 'pulpcore_client/models/inline_response2005'
|
28
30
|
require 'pulpcore_client/models/progress_report'
|
31
|
+
require 'pulpcore_client/models/redis_connection'
|
29
32
|
require 'pulpcore_client/models/repository'
|
30
33
|
require 'pulpcore_client/models/repository_version'
|
31
34
|
require 'pulpcore_client/models/repository_version_create'
|
35
|
+
require 'pulpcore_client/models/status'
|
32
36
|
require 'pulpcore_client/models/task'
|
37
|
+
require 'pulpcore_client/models/task_cancel'
|
33
38
|
require 'pulpcore_client/models/upload'
|
39
|
+
require 'pulpcore_client/models/upload_commit'
|
40
|
+
require 'pulpcore_client/models/version'
|
34
41
|
require 'pulpcore_client/models/worker'
|
35
42
|
|
36
43
|
# APIs
|
37
44
|
require 'pulpcore_client/api/artifacts_api'
|
38
45
|
require 'pulpcore_client/api/orphans_api'
|
39
46
|
require 'pulpcore_client/api/repositories_api'
|
47
|
+
require 'pulpcore_client/api/repositories_versions_api'
|
40
48
|
require 'pulpcore_client/api/status_api'
|
41
49
|
require 'pulpcore_client/api/tasks_api'
|
42
50
|
require 'pulpcore_client/api/uploads_api'
|
data/pulpcore_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.0.
|
9
|
+
OpenAPI Generator version: 4.0.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -32,7 +32,7 @@ describe 'ArtifactsApi' do
|
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
-
# unit tests for
|
35
|
+
# unit tests for create
|
36
36
|
# Create an artifact
|
37
37
|
# @param [Hash] opts the optional parameters
|
38
38
|
# @option opts [File] :file The stored file.
|
@@ -45,25 +45,25 @@ describe 'ArtifactsApi' do
|
|
45
45
|
# @option opts [String] :sha512 The SHA-512 checksum of the file if available.
|
46
46
|
# @option opts [String] :upload An href for an Upload.
|
47
47
|
# @return [Artifact]
|
48
|
-
describe '
|
48
|
+
describe 'create test' do
|
49
49
|
it 'should work' do
|
50
50
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
51
51
|
end
|
52
52
|
end
|
53
53
|
|
54
|
-
# unit tests for
|
54
|
+
# unit tests for delete
|
55
55
|
# Delete an artifact
|
56
56
|
# Remove Artifact only if it is not associated with any Content.
|
57
57
|
# @param artifact_href URI of Artifact. e.g.: /pulp/api/v3/artifacts/1/
|
58
58
|
# @param [Hash] opts the optional parameters
|
59
59
|
# @return [nil]
|
60
|
-
describe '
|
60
|
+
describe 'delete test' do
|
61
61
|
it 'should work' do
|
62
62
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
63
63
|
end
|
64
64
|
end
|
65
65
|
|
66
|
-
# unit tests for
|
66
|
+
# unit tests for list
|
67
67
|
# List artifacts
|
68
68
|
# @param [Hash] opts the optional parameters
|
69
69
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
@@ -76,18 +76,18 @@ describe 'ArtifactsApi' do
|
|
76
76
|
# @option opts [Integer] :page A page number within the paginated result set.
|
77
77
|
# @option opts [Integer] :page_size Number of results to return per page.
|
78
78
|
# @return [InlineResponse200]
|
79
|
-
describe '
|
79
|
+
describe 'list test' do
|
80
80
|
it 'should work' do
|
81
81
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
82
82
|
end
|
83
83
|
end
|
84
84
|
|
85
|
-
# unit tests for
|
85
|
+
# unit tests for read
|
86
86
|
# Inspect an artifact
|
87
87
|
# @param artifact_href URI of Artifact. e.g.: /pulp/api/v3/artifacts/1/
|
88
88
|
# @param [Hash] opts the optional parameters
|
89
89
|
# @return [Artifact]
|
90
|
-
describe '
|
90
|
+
describe 'read test' do
|
91
91
|
it 'should work' do
|
92
92
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
93
93
|
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.0.
|
9
|
+
OpenAPI Generator version: 4.0.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -32,12 +32,12 @@ describe 'OrphansApi' do
|
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
-
# unit tests for
|
35
|
+
# unit tests for delete
|
36
36
|
# Delete orphans
|
37
37
|
# Trigger an asynchronous task that deletes allorphaned content and artifacts.
|
38
38
|
# @param [Hash] opts the optional parameters
|
39
39
|
# @return [AsyncOperationResponse]
|
40
|
-
describe '
|
40
|
+
describe 'delete test' do
|
41
41
|
it 'should work' do
|
42
42
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
43
43
|
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.0.
|
9
|
+
OpenAPI Generator version: 4.0.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -32,30 +32,30 @@ describe 'RepositoriesApi' do
|
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
-
# unit tests for
|
35
|
+
# unit tests for create
|
36
36
|
# Create a repository
|
37
37
|
# @param data
|
38
38
|
# @param [Hash] opts the optional parameters
|
39
39
|
# @return [Repository]
|
40
|
-
describe '
|
40
|
+
describe 'create test' do
|
41
41
|
it 'should work' do
|
42
42
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
43
43
|
end
|
44
44
|
end
|
45
45
|
|
46
|
-
# unit tests for
|
46
|
+
# unit tests for delete
|
47
47
|
# Delete a repository
|
48
48
|
# Trigger an asynchronous task to delete a repository.
|
49
49
|
# @param repository_href URI of Repository. e.g.: /pulp/api/v3/repositories/1/
|
50
50
|
# @param [Hash] opts the optional parameters
|
51
51
|
# @return [AsyncOperationResponse]
|
52
|
-
describe '
|
52
|
+
describe 'delete test' do
|
53
53
|
it 'should work' do
|
54
54
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
55
55
|
end
|
56
56
|
end
|
57
57
|
|
58
|
-
# unit tests for
|
58
|
+
# unit tests for list
|
59
59
|
# List repositories
|
60
60
|
# @param [Hash] opts the optional parameters
|
61
61
|
# @option opts [String] :name
|
@@ -63,106 +63,43 @@ describe 'RepositoriesApi' do
|
|
63
63
|
# @option opts [Integer] :page A page number within the paginated result set.
|
64
64
|
# @option opts [Integer] :page_size Number of results to return per page.
|
65
65
|
# @return [InlineResponse2001]
|
66
|
-
describe '
|
66
|
+
describe 'list test' do
|
67
67
|
it 'should work' do
|
68
68
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
69
69
|
end
|
70
70
|
end
|
71
71
|
|
72
|
-
# unit tests for
|
72
|
+
# unit tests for partial_update
|
73
73
|
# Partially update a repository
|
74
74
|
# @param repository_href URI of Repository. e.g.: /pulp/api/v3/repositories/1/
|
75
75
|
# @param data
|
76
76
|
# @param [Hash] opts the optional parameters
|
77
77
|
# @return [Repository]
|
78
|
-
describe '
|
78
|
+
describe 'partial_update test' do
|
79
79
|
it 'should work' do
|
80
80
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
81
81
|
end
|
82
82
|
end
|
83
83
|
|
84
|
-
# unit tests for
|
84
|
+
# unit tests for read
|
85
85
|
# Inspect a repository
|
86
86
|
# @param repository_href URI of Repository. e.g.: /pulp/api/v3/repositories/1/
|
87
87
|
# @param [Hash] opts the optional parameters
|
88
88
|
# @return [Repository]
|
89
|
-
describe '
|
89
|
+
describe 'read test' do
|
90
90
|
it 'should work' do
|
91
91
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
92
92
|
end
|
93
93
|
end
|
94
94
|
|
95
|
-
# unit tests for
|
95
|
+
# unit tests for update
|
96
96
|
# Update a repository
|
97
97
|
# Trigger an asynchronous task to updatea repository.
|
98
98
|
# @param repository_href URI of Repository. e.g.: /pulp/api/v3/repositories/1/
|
99
99
|
# @param data
|
100
100
|
# @param [Hash] opts the optional parameters
|
101
101
|
# @return [AsyncOperationResponse]
|
102
|
-
describe '
|
103
|
-
it 'should work' do
|
104
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
105
|
-
end
|
106
|
-
end
|
107
|
-
|
108
|
-
# unit tests for repositories_versions_create
|
109
|
-
# Create a repository version
|
110
|
-
# Trigger an asynchronous task to create a new repository version.
|
111
|
-
# @param repository_href URI of Repository. e.g.: /pulp/api/v3/repositories/1/
|
112
|
-
# @param data
|
113
|
-
# @param [Hash] opts the optional parameters
|
114
|
-
# @return [AsyncOperationResponse]
|
115
|
-
describe 'repositories_versions_create 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
|
-
# unit tests for repositories_versions_delete
|
122
|
-
# Delete a repository version
|
123
|
-
# Trigger an asynchronous task to delete a repositroy version.
|
124
|
-
# @param repository_version_href URI of Repository Version. e.g.: /pulp/api/v3/repositories/1/versions/1/
|
125
|
-
# @param [Hash] opts the optional parameters
|
126
|
-
# @return [AsyncOperationResponse]
|
127
|
-
describe 'repositories_versions_delete test' do
|
128
|
-
it 'should work' do
|
129
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
130
|
-
end
|
131
|
-
end
|
132
|
-
|
133
|
-
# unit tests for repositories_versions_list
|
134
|
-
# List repository versions
|
135
|
-
# @param repository_href URI of Repository. e.g.: /pulp/api/v3/repositories/1/
|
136
|
-
# @param [Hash] opts the optional parameters
|
137
|
-
# @option opts [String] :ordering Which field to use when ordering the results.
|
138
|
-
# @option opts [Float] :number
|
139
|
-
# @option opts [Float] :number__lt Filter results where number is less than value
|
140
|
-
# @option opts [Float] :number__lte Filter results where number is less than or equal to value
|
141
|
-
# @option opts [Float] :number__gt Filter results where number is greater than value
|
142
|
-
# @option opts [Float] :number__gte Filter results where number is greater than or equal to value
|
143
|
-
# @option opts [Float] :number__range Filter results where number is between two comma separated values
|
144
|
-
# @option opts [String] :_created__lt Filter results where _created is less than value
|
145
|
-
# @option opts [String] :_created__lte Filter results where _created is less than or equal to value
|
146
|
-
# @option opts [String] :_created__gt Filter results where _created is greater than value
|
147
|
-
# @option opts [String] :_created__gte Filter results where _created is greater than or equal to value
|
148
|
-
# @option opts [String] :_created__range Filter results where _created is between two comma separated values
|
149
|
-
# @option opts [String] :content Content Unit referenced by HREF
|
150
|
-
# @option opts [String] :_created ISO 8601 formatted dates are supported
|
151
|
-
# @option opts [Integer] :page A page number within the paginated result set.
|
152
|
-
# @option opts [Integer] :page_size Number of results to return per page.
|
153
|
-
# @return [InlineResponse2002]
|
154
|
-
describe 'repositories_versions_list test' do
|
155
|
-
it 'should work' do
|
156
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
157
|
-
end
|
158
|
-
end
|
159
|
-
|
160
|
-
# unit tests for repositories_versions_read
|
161
|
-
# Inspect a repository version
|
162
|
-
# @param repository_version_href URI of Repository Version. e.g.: /pulp/api/v3/repositories/1/versions/1/
|
163
|
-
# @param [Hash] opts the optional parameters
|
164
|
-
# @return [RepositoryVersion]
|
165
|
-
describe 'repositories_versions_read test' do
|
102
|
+
describe 'update test' do
|
166
103
|
it 'should work' do
|
167
104
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
168
105
|
end
|
@@ -0,0 +1,98 @@
|
|
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.0.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for PulpcoreClient::RepositoriesVersionsApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'RepositoriesVersionsApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = PulpcoreClient::RepositoriesVersionsApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of RepositoriesVersionsApi' do
|
30
|
+
it 'should create an instance of RepositoriesVersionsApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(PulpcoreClient::RepositoriesVersionsApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for create
|
36
|
+
# Create a repository version
|
37
|
+
# Trigger an asynchronous task to create a new repository version.
|
38
|
+
# @param repository_href URI of Repository. e.g.: /pulp/api/v3/repositories/1/
|
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 a repository version
|
50
|
+
# Trigger an asynchronous task to delete a repositroy version.
|
51
|
+
# @param repository_version_href URI of Repository Version. e.g.: /pulp/api/v3/repositories/1/versions/1/
|
52
|
+
# @param [Hash] opts the optional parameters
|
53
|
+
# @return [AsyncOperationResponse]
|
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 repository versions
|
62
|
+
# @param repository_href URI of Repository. e.g.: /pulp/api/v3/repositories/1/
|
63
|
+
# @param [Hash] opts the optional parameters
|
64
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
65
|
+
# @option opts [Float] :number
|
66
|
+
# @option opts [Float] :number__lt Filter results where number is less than value
|
67
|
+
# @option opts [Float] :number__lte Filter results where number is less than or equal to value
|
68
|
+
# @option opts [Float] :number__gt Filter results where number is greater than value
|
69
|
+
# @option opts [Float] :number__gte Filter results where number is greater than or equal to value
|
70
|
+
# @option opts [Float] :number__range Filter results where number is between two comma separated values
|
71
|
+
# @option opts [String] :_created__lt Filter results where _created is less than value
|
72
|
+
# @option opts [String] :_created__lte Filter results where _created is less than or equal to value
|
73
|
+
# @option opts [String] :_created__gt Filter results where _created is greater than value
|
74
|
+
# @option opts [String] :_created__gte Filter results where _created is greater than or equal to value
|
75
|
+
# @option opts [String] :_created__range Filter results where _created is between two comma separated values
|
76
|
+
# @option opts [String] :content Content Unit referenced by HREF
|
77
|
+
# @option opts [String] :_created ISO 8601 formatted dates are supported
|
78
|
+
# @option opts [Integer] :page A page number within the paginated result set.
|
79
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
80
|
+
# @return [InlineResponse2002]
|
81
|
+
describe 'list test' do
|
82
|
+
it 'should work' do
|
83
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
# unit tests for read
|
88
|
+
# Inspect a repository version
|
89
|
+
# @param repository_version_href URI of Repository Version. e.g.: /pulp/api/v3/repositories/1/versions/1/
|
90
|
+
# @param [Hash] opts the optional parameters
|
91
|
+
# @return [RepositoryVersion]
|
92
|
+
describe 'read test' do
|
93
|
+
it 'should work' do
|
94
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
98
|
+
end
|