pulpcore_client 3.3.1 → 3.4.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 +20 -14
- data/docs/{Artifact.md → ArtifactRead.md} +2 -2
- data/docs/ArtifactsApi.md +5 -5
- data/docs/ExportersCoreExportsApi.md +13 -13
- data/docs/ExportersPulpApi.md +9 -9
- data/docs/{Import.md → ImportRead.md} +2 -2
- data/docs/ImportersCoreImportsApi.md +13 -13
- data/docs/ImportersPulpApi.md +9 -9
- data/docs/InlineResponse200.md +1 -1
- data/docs/InlineResponse2001.md +1 -1
- data/docs/InlineResponse2002.md +1 -1
- data/docs/InlineResponse2003.md +1 -1
- data/docs/InlineResponse2004.md +1 -1
- data/docs/InlineResponse2005.md +1 -1
- data/docs/InlineResponse2006.md +1 -1
- data/docs/InlineResponse2007.md +1 -1
- data/docs/InlineResponse2008.md +1 -1
- data/docs/InlineResponse2009.md +1 -1
- data/docs/OrphansApi.md +1 -1
- data/docs/PulpExport.md +12 -6
- data/docs/PulpExportRead.md +27 -0
- data/docs/PulpExporterRead.md +27 -0
- data/docs/PulpImporterRead.md +23 -0
- data/docs/{SigningService.md → SigningServiceRead.md} +2 -2
- data/docs/SigningServicesApi.md +3 -3
- data/docs/StatusApi.md +1 -1
- data/docs/{TaskGroup.md → TaskGroupRead.md} +4 -2
- data/docs/TaskGroupsApi.md +3 -3
- data/docs/TaskRead.md +43 -0
- data/docs/TasksApi.md +3 -3
- data/docs/{UploadDetail.md → UploadDetailRead.md} +2 -2
- data/docs/UploadRead.md +23 -0
- data/docs/UploadsApi.md +5 -5
- data/docs/Worker.md +3 -3
- data/docs/WorkerRead.md +23 -0
- data/docs/WorkersApi.md +3 -3
- data/lib/pulpcore_client/api/artifacts_api.rb +6 -6
- data/lib/pulpcore_client/api/exporters_core_exports_api.rb +21 -21
- data/lib/pulpcore_client/api/exporters_pulp_api.rb +12 -12
- data/lib/pulpcore_client/api/importers_core_imports_api.rb +21 -21
- data/lib/pulpcore_client/api/importers_pulp_api.rb +12 -12
- data/lib/pulpcore_client/api/signing_services_api.rb +3 -3
- data/lib/pulpcore_client/api/task_groups_api.rb +3 -3
- data/lib/pulpcore_client/api/tasks_api.rb +3 -3
- data/lib/pulpcore_client/api/uploads_api.rb +6 -6
- data/lib/pulpcore_client/api/workers_api.rb +3 -3
- data/lib/pulpcore_client/configuration.rb +2 -2
- data/lib/pulpcore_client/models/{artifact.rb → artifact_read.rb} +3 -3
- data/lib/pulpcore_client/models/{import.rb → import_read.rb} +3 -3
- 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/inline_response2006.rb +1 -1
- data/lib/pulpcore_client/models/inline_response2007.rb +1 -1
- data/lib/pulpcore_client/models/inline_response2008.rb +1 -1
- data/lib/pulpcore_client/models/inline_response2009.rb +1 -1
- data/lib/pulpcore_client/models/pulp_export.rb +59 -49
- data/lib/pulpcore_client/models/pulp_export_read.rb +259 -0
- data/lib/pulpcore_client/models/pulp_exporter.rb +1 -0
- data/lib/pulpcore_client/models/pulp_exporter_read.rb +311 -0
- data/lib/pulpcore_client/models/pulp_importer_read.rb +262 -0
- data/lib/pulpcore_client/models/{signing_service.rb → signing_service_read.rb} +3 -3
- data/lib/pulpcore_client/models/{task_group.rb → task_group_read.rb} +19 -4
- data/lib/pulpcore_client/models/task_read.rb +383 -0
- data/lib/pulpcore_client/models/{upload_detail.rb → upload_detail_read.rb} +3 -3
- data/lib/pulpcore_client/models/upload_read.rb +241 -0
- data/lib/pulpcore_client/models/worker.rb +10 -10
- data/lib/pulpcore_client/models/worker_read.rb +251 -0
- data/lib/pulpcore_client/version.rb +1 -1
- data/lib/pulpcore_client.rb +11 -5
- data/spec/api/artifacts_api_spec.rb +2 -2
- data/spec/api/exporters_core_exports_api_spec.rb +3 -3
- data/spec/api/exporters_pulp_api_spec.rb +4 -4
- data/spec/api/importers_core_imports_api_spec.rb +3 -3
- data/spec/api/importers_pulp_api_spec.rb +4 -4
- data/spec/api/signing_services_api_spec.rb +1 -1
- data/spec/api/task_groups_api_spec.rb +1 -1
- data/spec/api/tasks_api_spec.rb +1 -1
- data/spec/api/uploads_api_spec.rb +2 -2
- data/spec/api/workers_api_spec.rb +1 -1
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/{artifact_spec.rb → artifact_read_spec.rb} +6 -6
- data/spec/models/{import_spec.rb → import_read_spec.rb} +6 -6
- data/spec/models/pulp_export_read_spec.rb +71 -0
- data/spec/models/pulp_export_spec.rb +20 -2
- data/spec/models/pulp_exporter_read_spec.rb +71 -0
- data/spec/models/pulp_importer_read_spec.rb +59 -0
- data/spec/models/{signing_service_spec.rb → signing_service_read_spec.rb} +6 -6
- data/spec/models/{task_group_spec.rb → task_group_read_spec.rb} +12 -6
- data/spec/models/task_read_spec.rb +119 -0
- data/spec/models/{upload_detail_spec.rb → upload_detail_read_spec.rb} +6 -6
- data/spec/models/upload_read_spec.rb +59 -0
- data/spec/models/worker_read_spec.rb +59 -0
- data/spec/models/worker_spec.rb +2 -2
- metadata +46 -22
@@ -15,11 +15,11 @@ require 'date'
|
|
15
15
|
module PulpcoreClient
|
16
16
|
# List of online workers known to the application. An online worker is actively heartbeating and can respond to new work
|
17
17
|
class Worker
|
18
|
-
attr_accessor :pulp_href
|
19
|
-
|
20
18
|
# Timestamp of creation.
|
21
19
|
attr_accessor :pulp_created
|
22
20
|
|
21
|
+
attr_accessor :pulp_href
|
22
|
+
|
23
23
|
# The name of the worker.
|
24
24
|
attr_accessor :name
|
25
25
|
|
@@ -29,8 +29,8 @@ module PulpcoreClient
|
|
29
29
|
# Attribute mapping from ruby-style variable name to JSON key.
|
30
30
|
def self.attribute_map
|
31
31
|
{
|
32
|
-
:'pulp_href' => :'pulp_href',
|
33
32
|
:'pulp_created' => :'pulp_created',
|
33
|
+
:'pulp_href' => :'pulp_href',
|
34
34
|
:'name' => :'name',
|
35
35
|
:'last_heartbeat' => :'last_heartbeat'
|
36
36
|
}
|
@@ -39,8 +39,8 @@ module PulpcoreClient
|
|
39
39
|
# Attribute type mapping.
|
40
40
|
def self.openapi_types
|
41
41
|
{
|
42
|
-
:'pulp_href' => :'String',
|
43
42
|
:'pulp_created' => :'DateTime',
|
43
|
+
:'pulp_href' => :'String',
|
44
44
|
:'name' => :'String',
|
45
45
|
:'last_heartbeat' => :'DateTime'
|
46
46
|
}
|
@@ -67,14 +67,14 @@ module PulpcoreClient
|
|
67
67
|
h[k.to_sym] = v
|
68
68
|
}
|
69
69
|
|
70
|
-
if attributes.key?(:'pulp_href')
|
71
|
-
self.pulp_href = attributes[:'pulp_href']
|
72
|
-
end
|
73
|
-
|
74
70
|
if attributes.key?(:'pulp_created')
|
75
71
|
self.pulp_created = attributes[:'pulp_created']
|
76
72
|
end
|
77
73
|
|
74
|
+
if attributes.key?(:'pulp_href')
|
75
|
+
self.pulp_href = attributes[:'pulp_href']
|
76
|
+
end
|
77
|
+
|
78
78
|
if attributes.key?(:'name')
|
79
79
|
self.name = attributes[:'name']
|
80
80
|
end
|
@@ -117,8 +117,8 @@ module PulpcoreClient
|
|
117
117
|
def ==(o)
|
118
118
|
return true if self.equal?(o)
|
119
119
|
self.class == o.class &&
|
120
|
-
pulp_href == o.pulp_href &&
|
121
120
|
pulp_created == o.pulp_created &&
|
121
|
+
pulp_href == o.pulp_href &&
|
122
122
|
name == o.name &&
|
123
123
|
last_heartbeat == o.last_heartbeat
|
124
124
|
end
|
@@ -132,7 +132,7 @@ module PulpcoreClient
|
|
132
132
|
# Calculates hash code according to all attributes.
|
133
133
|
# @return [Integer] Hash code
|
134
134
|
def hash
|
135
|
-
[
|
135
|
+
[pulp_created, pulp_href, name, last_heartbeat].hash
|
136
136
|
end
|
137
137
|
|
138
138
|
# Builds the object from hash
|
@@ -0,0 +1,251 @@
|
|
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 PulpcoreClient
|
16
|
+
class WorkerRead
|
17
|
+
# Timestamp of creation.
|
18
|
+
attr_accessor :pulp_created
|
19
|
+
|
20
|
+
attr_accessor :pulp_href
|
21
|
+
|
22
|
+
# The name of the worker.
|
23
|
+
attr_accessor :name
|
24
|
+
|
25
|
+
# Timestamp of the last time the worker talked to the service.
|
26
|
+
attr_accessor :last_heartbeat
|
27
|
+
|
28
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
29
|
+
def self.attribute_map
|
30
|
+
{
|
31
|
+
:'pulp_created' => :'pulp_created',
|
32
|
+
:'pulp_href' => :'pulp_href',
|
33
|
+
:'name' => :'name',
|
34
|
+
:'last_heartbeat' => :'last_heartbeat'
|
35
|
+
}
|
36
|
+
end
|
37
|
+
|
38
|
+
# Attribute type mapping.
|
39
|
+
def self.openapi_types
|
40
|
+
{
|
41
|
+
:'pulp_created' => :'DateTime',
|
42
|
+
:'pulp_href' => :'String',
|
43
|
+
:'name' => :'String',
|
44
|
+
:'last_heartbeat' => :'DateTime'
|
45
|
+
}
|
46
|
+
end
|
47
|
+
|
48
|
+
# List of attributes with nullable: true
|
49
|
+
def self.openapi_nullable
|
50
|
+
Set.new([
|
51
|
+
])
|
52
|
+
end
|
53
|
+
|
54
|
+
# Initializes the object
|
55
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
56
|
+
def initialize(attributes = {})
|
57
|
+
if (!attributes.is_a?(Hash))
|
58
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpcoreClient::WorkerRead` initialize method"
|
59
|
+
end
|
60
|
+
|
61
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
62
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
63
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
64
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpcoreClient::WorkerRead`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
65
|
+
end
|
66
|
+
h[k.to_sym] = v
|
67
|
+
}
|
68
|
+
|
69
|
+
if attributes.key?(:'pulp_created')
|
70
|
+
self.pulp_created = attributes[:'pulp_created']
|
71
|
+
end
|
72
|
+
|
73
|
+
if attributes.key?(:'pulp_href')
|
74
|
+
self.pulp_href = attributes[:'pulp_href']
|
75
|
+
end
|
76
|
+
|
77
|
+
if attributes.key?(:'name')
|
78
|
+
self.name = attributes[:'name']
|
79
|
+
end
|
80
|
+
|
81
|
+
if attributes.key?(:'last_heartbeat')
|
82
|
+
self.last_heartbeat = attributes[:'last_heartbeat']
|
83
|
+
end
|
84
|
+
end
|
85
|
+
|
86
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
87
|
+
# @return Array for valid properties with the reasons
|
88
|
+
def list_invalid_properties
|
89
|
+
invalid_properties = Array.new
|
90
|
+
if !@name.nil? && @name.to_s.length < 1
|
91
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
92
|
+
end
|
93
|
+
|
94
|
+
invalid_properties
|
95
|
+
end
|
96
|
+
|
97
|
+
# Check to see if the all the properties in the model are valid
|
98
|
+
# @return true if the model is valid
|
99
|
+
def valid?
|
100
|
+
return false if !@name.nil? && @name.to_s.length < 1
|
101
|
+
true
|
102
|
+
end
|
103
|
+
|
104
|
+
# Custom attribute writer method with validation
|
105
|
+
# @param [Object] name Value to be assigned
|
106
|
+
def name=(name)
|
107
|
+
if !name.nil? && name.to_s.length < 1
|
108
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
109
|
+
end
|
110
|
+
|
111
|
+
@name = name
|
112
|
+
end
|
113
|
+
|
114
|
+
# Checks equality by comparing each attribute.
|
115
|
+
# @param [Object] Object to be compared
|
116
|
+
def ==(o)
|
117
|
+
return true if self.equal?(o)
|
118
|
+
self.class == o.class &&
|
119
|
+
pulp_created == o.pulp_created &&
|
120
|
+
pulp_href == o.pulp_href &&
|
121
|
+
name == o.name &&
|
122
|
+
last_heartbeat == o.last_heartbeat
|
123
|
+
end
|
124
|
+
|
125
|
+
# @see the `==` method
|
126
|
+
# @param [Object] Object to be compared
|
127
|
+
def eql?(o)
|
128
|
+
self == o
|
129
|
+
end
|
130
|
+
|
131
|
+
# Calculates hash code according to all attributes.
|
132
|
+
# @return [Integer] Hash code
|
133
|
+
def hash
|
134
|
+
[pulp_created, pulp_href, name, last_heartbeat].hash
|
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 self.build_from_hash(attributes)
|
141
|
+
new.build_from_hash(attributes)
|
142
|
+
end
|
143
|
+
|
144
|
+
# Builds the object from hash
|
145
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
146
|
+
# @return [Object] Returns the model itself
|
147
|
+
def build_from_hash(attributes)
|
148
|
+
return nil unless attributes.is_a?(Hash)
|
149
|
+
self.class.openapi_types.each_pair do |key, type|
|
150
|
+
if type =~ /\AArray<(.*)>/i
|
151
|
+
# check to ensure the input is an array given that the attribute
|
152
|
+
# is documented as an array but the input is not
|
153
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
154
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
155
|
+
end
|
156
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
157
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
158
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
159
|
+
end
|
160
|
+
|
161
|
+
self
|
162
|
+
end
|
163
|
+
|
164
|
+
# Deserializes the data based on type
|
165
|
+
# @param string type Data type
|
166
|
+
# @param string value Value to be deserialized
|
167
|
+
# @return [Object] Deserialized data
|
168
|
+
def _deserialize(type, value)
|
169
|
+
case type.to_sym
|
170
|
+
when :DateTime
|
171
|
+
DateTime.parse(value)
|
172
|
+
when :Date
|
173
|
+
Date.parse(value)
|
174
|
+
when :String
|
175
|
+
value.to_s
|
176
|
+
when :Integer
|
177
|
+
value.to_i
|
178
|
+
when :Float
|
179
|
+
value.to_f
|
180
|
+
when :Boolean
|
181
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
182
|
+
true
|
183
|
+
else
|
184
|
+
false
|
185
|
+
end
|
186
|
+
when :Object
|
187
|
+
# generic object (usually a Hash), return directly
|
188
|
+
value
|
189
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
190
|
+
inner_type = Regexp.last_match[:inner_type]
|
191
|
+
value.map { |v| _deserialize(inner_type, v) }
|
192
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
193
|
+
k_type = Regexp.last_match[:k_type]
|
194
|
+
v_type = Regexp.last_match[:v_type]
|
195
|
+
{}.tap do |hash|
|
196
|
+
value.each do |k, v|
|
197
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
198
|
+
end
|
199
|
+
end
|
200
|
+
else # model
|
201
|
+
PulpcoreClient.const_get(type).build_from_hash(value)
|
202
|
+
end
|
203
|
+
end
|
204
|
+
|
205
|
+
# Returns the string representation of the object
|
206
|
+
# @return [String] String presentation of the object
|
207
|
+
def to_s
|
208
|
+
to_hash.to_s
|
209
|
+
end
|
210
|
+
|
211
|
+
# to_body is an alias to to_hash (backward compatibility)
|
212
|
+
# @return [Hash] Returns the object in the form of hash
|
213
|
+
def to_body
|
214
|
+
to_hash
|
215
|
+
end
|
216
|
+
|
217
|
+
# Returns the object in the form of hash
|
218
|
+
# @return [Hash] Returns the object in the form of hash
|
219
|
+
def to_hash
|
220
|
+
hash = {}
|
221
|
+
self.class.attribute_map.each_pair do |attr, param|
|
222
|
+
value = self.send(attr)
|
223
|
+
if value.nil?
|
224
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
225
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
226
|
+
end
|
227
|
+
|
228
|
+
hash[param] = _to_hash(value)
|
229
|
+
end
|
230
|
+
hash
|
231
|
+
end
|
232
|
+
|
233
|
+
# Outputs non-array value in the form of hash
|
234
|
+
# For object, use to_hash. Otherwise, just return the value
|
235
|
+
# @param [Object] value Any valid value
|
236
|
+
# @return [Hash] Returns the value in the form of hash
|
237
|
+
def _to_hash(value)
|
238
|
+
if value.is_a?(Array)
|
239
|
+
value.compact.map { |v| _to_hash(v) }
|
240
|
+
elsif value.is_a?(Hash)
|
241
|
+
{}.tap do |hash|
|
242
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
243
|
+
end
|
244
|
+
elsif value.respond_to? :to_hash
|
245
|
+
value.to_hash
|
246
|
+
else
|
247
|
+
value
|
248
|
+
end
|
249
|
+
end
|
250
|
+
end
|
251
|
+
end
|
data/lib/pulpcore_client.rb
CHANGED
@@ -17,11 +17,11 @@ require 'pulpcore_client/version'
|
|
17
17
|
require 'pulpcore_client/configuration'
|
18
18
|
|
19
19
|
# Models
|
20
|
-
require 'pulpcore_client/models/
|
20
|
+
require 'pulpcore_client/models/artifact_read'
|
21
21
|
require 'pulpcore_client/models/async_operation_response'
|
22
22
|
require 'pulpcore_client/models/content_app_status'
|
23
23
|
require 'pulpcore_client/models/database_connection'
|
24
|
-
require 'pulpcore_client/models/
|
24
|
+
require 'pulpcore_client/models/import_read'
|
25
25
|
require 'pulpcore_client/models/inline_response200'
|
26
26
|
require 'pulpcore_client/models/inline_response2001'
|
27
27
|
require 'pulpcore_client/models/inline_response2002'
|
@@ -34,22 +34,28 @@ require 'pulpcore_client/models/inline_response2008'
|
|
34
34
|
require 'pulpcore_client/models/inline_response2009'
|
35
35
|
require 'pulpcore_client/models/progress_report'
|
36
36
|
require 'pulpcore_client/models/pulp_export'
|
37
|
+
require 'pulpcore_client/models/pulp_export_read'
|
37
38
|
require 'pulpcore_client/models/pulp_exporter'
|
39
|
+
require 'pulpcore_client/models/pulp_exporter_read'
|
38
40
|
require 'pulpcore_client/models/pulp_import'
|
39
41
|
require 'pulpcore_client/models/pulp_importer'
|
42
|
+
require 'pulpcore_client/models/pulp_importer_read'
|
40
43
|
require 'pulpcore_client/models/redis_connection'
|
41
|
-
require 'pulpcore_client/models/
|
44
|
+
require 'pulpcore_client/models/signing_service_read'
|
42
45
|
require 'pulpcore_client/models/status'
|
43
46
|
require 'pulpcore_client/models/storage'
|
44
47
|
require 'pulpcore_client/models/task'
|
45
48
|
require 'pulpcore_client/models/task_cancel'
|
46
|
-
require 'pulpcore_client/models/
|
49
|
+
require 'pulpcore_client/models/task_group_read'
|
50
|
+
require 'pulpcore_client/models/task_read'
|
47
51
|
require 'pulpcore_client/models/upload'
|
48
52
|
require 'pulpcore_client/models/upload_chunk'
|
49
53
|
require 'pulpcore_client/models/upload_commit'
|
50
|
-
require 'pulpcore_client/models/
|
54
|
+
require 'pulpcore_client/models/upload_detail_read'
|
55
|
+
require 'pulpcore_client/models/upload_read'
|
51
56
|
require 'pulpcore_client/models/version'
|
52
57
|
require 'pulpcore_client/models/worker'
|
58
|
+
require 'pulpcore_client/models/worker_read'
|
53
59
|
|
54
60
|
# APIs
|
55
61
|
require 'pulpcore_client/api/artifacts_api'
|
@@ -43,7 +43,7 @@ describe 'ArtifactsApi' do
|
|
43
43
|
# @option opts [String] :sha256 The SHA-256 checksum of the file if available.
|
44
44
|
# @option opts [String] :sha384 The SHA-384 checksum of the file if available.
|
45
45
|
# @option opts [String] :sha512 The SHA-512 checksum of the file if available.
|
46
|
-
# @return [
|
46
|
+
# @return [ArtifactRead]
|
47
47
|
describe 'create test' do
|
48
48
|
it 'should work' do
|
49
49
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -90,7 +90,7 @@ describe 'ArtifactsApi' do
|
|
90
90
|
# @param [Hash] opts the optional parameters
|
91
91
|
# @option opts [String] :fields A list of fields to include in the response.
|
92
92
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
93
|
-
# @return [
|
93
|
+
# @return [ArtifactRead]
|
94
94
|
describe 'read test' do
|
95
95
|
it 'should work' do
|
96
96
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -35,7 +35,7 @@ describe 'ExportersCoreExportsApi' do
|
|
35
35
|
# unit tests for create
|
36
36
|
# Create a pulp export
|
37
37
|
# Trigger an asynchronous task to export a set of repositories
|
38
|
-
# @param
|
38
|
+
# @param pulp_exporter_href URI of Pulp Exporter. e.g.: /pulp/api/v3/exporters/core/pulp/1/
|
39
39
|
# @param data
|
40
40
|
# @param [Hash] opts the optional parameters
|
41
41
|
# @return [AsyncOperationResponse]
|
@@ -60,7 +60,7 @@ describe 'ExportersCoreExportsApi' do
|
|
60
60
|
# unit tests for list
|
61
61
|
# List pulp exports
|
62
62
|
# ViewSet for viewing exports from a PulpExporter.
|
63
|
-
# @param
|
63
|
+
# @param pulp_exporter_href URI of Pulp Exporter. e.g.: /pulp/api/v3/exporters/core/pulp/1/
|
64
64
|
# @param [Hash] opts the optional parameters
|
65
65
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
66
66
|
# @option opts [Integer] :limit Number of results to return per page.
|
@@ -81,7 +81,7 @@ describe 'ExportersCoreExportsApi' do
|
|
81
81
|
# @param [Hash] opts the optional parameters
|
82
82
|
# @option opts [String] :fields A list of fields to include in the response.
|
83
83
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
84
|
-
# @return [
|
84
|
+
# @return [PulpExportRead]
|
85
85
|
describe 'read test' do
|
86
86
|
it 'should work' do
|
87
87
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -37,7 +37,7 @@ describe 'ExportersPulpApi' do
|
|
37
37
|
# ViewSet for viewing PulpExporters.
|
38
38
|
# @param data
|
39
39
|
# @param [Hash] opts the optional parameters
|
40
|
-
# @return [
|
40
|
+
# @return [PulpExporterRead]
|
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
|
@@ -80,7 +80,7 @@ describe 'ExportersPulpApi' do
|
|
80
80
|
# @param pulp_exporter_href URI of Pulp Exporter. e.g.: /pulp/api/v3/exporters/core/pulp/1/
|
81
81
|
# @param data
|
82
82
|
# @param [Hash] opts the optional parameters
|
83
|
-
# @return [
|
83
|
+
# @return [PulpExporterRead]
|
84
84
|
describe 'partial_update test' do
|
85
85
|
it 'should work' do
|
86
86
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -94,7 +94,7 @@ describe 'ExportersPulpApi' do
|
|
94
94
|
# @param [Hash] opts the optional parameters
|
95
95
|
# @option opts [String] :fields A list of fields to include in the response.
|
96
96
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
97
|
-
# @return [
|
97
|
+
# @return [PulpExporterRead]
|
98
98
|
describe 'read test' do
|
99
99
|
it 'should work' do
|
100
100
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -107,7 +107,7 @@ describe 'ExportersPulpApi' do
|
|
107
107
|
# @param pulp_exporter_href URI of Pulp Exporter. e.g.: /pulp/api/v3/exporters/core/pulp/1/
|
108
108
|
# @param data
|
109
109
|
# @param [Hash] opts the optional parameters
|
110
|
-
# @return [
|
110
|
+
# @return [PulpExporterRead]
|
111
111
|
describe 'update test' do
|
112
112
|
it 'should work' do
|
113
113
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -35,7 +35,7 @@ describe 'ImportersCoreImportsApi' do
|
|
35
35
|
# unit tests for create
|
36
36
|
# Create a pulp import
|
37
37
|
# Trigger an asynchronous task to import a Pulp export.
|
38
|
-
# @param
|
38
|
+
# @param pulp_importer_href URI of Pulp Importer. e.g.: /pulp/api/v3/importers/core/pulp/1/
|
39
39
|
# @param data
|
40
40
|
# @param [Hash] opts the optional parameters
|
41
41
|
# @return [AsyncOperationResponse]
|
@@ -60,7 +60,7 @@ describe 'ImportersCoreImportsApi' do
|
|
60
60
|
# unit tests for list
|
61
61
|
# List pulp imports
|
62
62
|
# ViewSet for PulpImports.
|
63
|
-
# @param
|
63
|
+
# @param pulp_importer_href URI of Pulp Importer. e.g.: /pulp/api/v3/importers/core/pulp/1/
|
64
64
|
# @param [Hash] opts the optional parameters
|
65
65
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
66
66
|
# @option opts [Integer] :limit Number of results to return per page.
|
@@ -81,7 +81,7 @@ describe 'ImportersCoreImportsApi' do
|
|
81
81
|
# @param [Hash] opts the optional parameters
|
82
82
|
# @option opts [String] :fields A list of fields to include in the response.
|
83
83
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
84
|
-
# @return [
|
84
|
+
# @return [ImportRead]
|
85
85
|
describe 'read test' do
|
86
86
|
it 'should work' do
|
87
87
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -37,7 +37,7 @@ describe 'ImportersPulpApi' do
|
|
37
37
|
# ViewSet for PulpImporters.
|
38
38
|
# @param data
|
39
39
|
# @param [Hash] opts the optional parameters
|
40
|
-
# @return [
|
40
|
+
# @return [PulpImporterRead]
|
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
|
@@ -80,7 +80,7 @@ describe 'ImportersPulpApi' do
|
|
80
80
|
# @param pulp_importer_href URI of Pulp Importer. e.g.: /pulp/api/v3/importers/core/pulp/1/
|
81
81
|
# @param data
|
82
82
|
# @param [Hash] opts the optional parameters
|
83
|
-
# @return [
|
83
|
+
# @return [PulpImporterRead]
|
84
84
|
describe 'partial_update test' do
|
85
85
|
it 'should work' do
|
86
86
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -94,7 +94,7 @@ describe 'ImportersPulpApi' do
|
|
94
94
|
# @param [Hash] opts the optional parameters
|
95
95
|
# @option opts [String] :fields A list of fields to include in the response.
|
96
96
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
97
|
-
# @return [
|
97
|
+
# @return [PulpImporterRead]
|
98
98
|
describe 'read test' do
|
99
99
|
it 'should work' do
|
100
100
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -107,7 +107,7 @@ describe 'ImportersPulpApi' do
|
|
107
107
|
# @param pulp_importer_href URI of Pulp Importer. e.g.: /pulp/api/v3/importers/core/pulp/1/
|
108
108
|
# @param data
|
109
109
|
# @param [Hash] opts the optional parameters
|
110
|
-
# @return [
|
110
|
+
# @return [PulpImporterRead]
|
111
111
|
describe 'update test' do
|
112
112
|
it 'should work' do
|
113
113
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -56,7 +56,7 @@ describe 'SigningServicesApi' do
|
|
56
56
|
# @param [Hash] opts the optional parameters
|
57
57
|
# @option opts [String] :fields A list of fields to include in the response.
|
58
58
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
59
|
-
# @return [
|
59
|
+
# @return [SigningServiceRead]
|
60
60
|
describe 'read test' do
|
61
61
|
it 'should work' do
|
62
62
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -53,7 +53,7 @@ describe 'TaskGroupsApi' do
|
|
53
53
|
# @param [Hash] opts the optional parameters
|
54
54
|
# @option opts [String] :fields A list of fields to include in the response.
|
55
55
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
56
|
-
# @return [
|
56
|
+
# @return [TaskGroupRead]
|
57
57
|
describe 'read test' do
|
58
58
|
it 'should work' do
|
59
59
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
data/spec/api/tasks_api_spec.rb
CHANGED
@@ -87,7 +87,7 @@ describe 'TasksApi' do
|
|
87
87
|
# @param [Hash] opts the optional parameters
|
88
88
|
# @option opts [String] :fields A list of fields to include in the response.
|
89
89
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
90
|
-
# @return [
|
90
|
+
# @return [TaskRead]
|
91
91
|
describe 'read test' do
|
92
92
|
it 'should work' do
|
93
93
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -50,7 +50,7 @@ describe 'UploadsApi' do
|
|
50
50
|
# View for chunked uploads.
|
51
51
|
# @param data
|
52
52
|
# @param [Hash] opts the optional parameters
|
53
|
-
# @return [
|
53
|
+
# @return [UploadRead]
|
54
54
|
describe 'create test' do
|
55
55
|
it 'should work' do
|
56
56
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -93,7 +93,7 @@ describe 'UploadsApi' do
|
|
93
93
|
# @param [Hash] opts the optional parameters
|
94
94
|
# @option opts [String] :fields A list of fields to include in the response.
|
95
95
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
96
|
-
# @return [
|
96
|
+
# @return [UploadDetailRead]
|
97
97
|
describe 'read test' do
|
98
98
|
it 'should work' do
|
99
99
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -63,7 +63,7 @@ describe 'WorkersApi' do
|
|
63
63
|
# @param [Hash] opts the optional parameters
|
64
64
|
# @option opts [String] :fields A list of fields to include in the response.
|
65
65
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
66
|
-
# @return [
|
66
|
+
# @return [WorkerRead]
|
67
67
|
describe 'read test' do
|
68
68
|
it 'should work' do
|
69
69
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
data/spec/configuration_spec.rb
CHANGED
@@ -18,7 +18,7 @@ describe PulpcoreClient::Configuration do
|
|
18
18
|
before(:each) do
|
19
19
|
# uncomment below to setup host and base_path
|
20
20
|
# require 'URI'
|
21
|
-
# uri = URI.parse("http://
|
21
|
+
# uri = URI.parse("http://pulp")
|
22
22
|
# PulpcoreClient.configure do |c|
|
23
23
|
# c.host = uri.host
|
24
24
|
# c.base_path = uri.path
|
@@ -28,14 +28,14 @@ describe PulpcoreClient::Configuration do
|
|
28
28
|
describe '#base_url' do
|
29
29
|
it 'should have the default value' do
|
30
30
|
# uncomment below to test default value of the base path
|
31
|
-
# expect(config.base_url).to eq("http://
|
31
|
+
# expect(config.base_url).to eq("http://pulp")
|
32
32
|
end
|
33
33
|
|
34
34
|
it 'should remove trailing slashes' do
|
35
35
|
[nil, '', '/', '//'].each do |base_path|
|
36
36
|
config.base_path = base_path
|
37
37
|
# uncomment below to test trailing slashes
|
38
|
-
# expect(config.base_url).to eq("http://
|
38
|
+
# expect(config.base_url).to eq("http://pulp")
|
39
39
|
end
|
40
40
|
end
|
41
41
|
end
|
@@ -14,22 +14,22 @@ require 'spec_helper'
|
|
14
14
|
require 'json'
|
15
15
|
require 'date'
|
16
16
|
|
17
|
-
# Unit tests for PulpcoreClient::
|
17
|
+
# Unit tests for PulpcoreClient::ArtifactRead
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
19
|
# Please update as you see appropriate
|
20
|
-
describe '
|
20
|
+
describe 'ArtifactRead' do
|
21
21
|
before do
|
22
22
|
# run before each test
|
23
|
-
@instance = PulpcoreClient::
|
23
|
+
@instance = PulpcoreClient::ArtifactRead.new
|
24
24
|
end
|
25
25
|
|
26
26
|
after do
|
27
27
|
# run after each test
|
28
28
|
end
|
29
29
|
|
30
|
-
describe 'test an instance of
|
31
|
-
it 'should create an instance of
|
32
|
-
expect(@instance).to be_instance_of(PulpcoreClient::
|
30
|
+
describe 'test an instance of ArtifactRead' do
|
31
|
+
it 'should create an instance of ArtifactRead' do
|
32
|
+
expect(@instance).to be_instance_of(PulpcoreClient::ArtifactRead)
|
33
33
|
end
|
34
34
|
end
|
35
35
|
describe 'test attribute "pulp_href"' do
|
@@ -14,22 +14,22 @@ require 'spec_helper'
|
|
14
14
|
require 'json'
|
15
15
|
require 'date'
|
16
16
|
|
17
|
-
# Unit tests for PulpcoreClient::
|
17
|
+
# Unit tests for PulpcoreClient::ImportRead
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
19
|
# Please update as you see appropriate
|
20
|
-
describe '
|
20
|
+
describe 'ImportRead' do
|
21
21
|
before do
|
22
22
|
# run before each test
|
23
|
-
@instance = PulpcoreClient::
|
23
|
+
@instance = PulpcoreClient::ImportRead.new
|
24
24
|
end
|
25
25
|
|
26
26
|
after do
|
27
27
|
# run after each test
|
28
28
|
end
|
29
29
|
|
30
|
-
describe 'test an instance of
|
31
|
-
it 'should create an instance of
|
32
|
-
expect(@instance).to be_instance_of(PulpcoreClient::
|
30
|
+
describe 'test an instance of ImportRead' do
|
31
|
+
it 'should create an instance of ImportRead' do
|
32
|
+
expect(@instance).to be_instance_of(PulpcoreClient::ImportRead)
|
33
33
|
end
|
34
34
|
end
|
35
35
|
describe 'test attribute "pulp_href"' do
|