pulp_rpm_client 3.16.2 → 3.17.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 +23 -12
- data/docs/AcsRpmApi.md +417 -0
- data/docs/CompsXml.md +21 -0
- data/docs/PaginatedrpmRpmAlternateContentSourceResponseList.md +23 -0
- data/docs/PatchedrpmRpmAlternateContentSource.md +23 -0
- data/docs/RpmCompsApi.md +68 -0
- data/docs/RpmRpmAlternateContentSource.md +23 -0
- data/docs/RpmRpmAlternateContentSourceResponse.md +27 -0
- data/docs/TaskGroupOperationResponse.md +17 -0
- data/lib/pulp_rpm_client/api/acs_rpm_api.rb +510 -0
- data/lib/pulp_rpm_client/api/rpm_comps_api.rb +93 -0
- data/lib/pulp_rpm_client/models/comps_xml.rb +233 -0
- data/lib/pulp_rpm_client/models/paginatedrpm_rpm_alternate_content_source_response_list.rb +237 -0
- data/lib/pulp_rpm_client/models/patchedrpm_rpm_alternate_content_source.rb +256 -0
- data/lib/pulp_rpm_client/models/rpm_rpm_alternate_content_source.rb +270 -0
- data/lib/pulp_rpm_client/models/rpm_rpm_alternate_content_source_response.rb +270 -0
- data/lib/pulp_rpm_client/models/task_group_operation_response.rb +213 -0
- data/lib/pulp_rpm_client/version.rb +1 -1
- data/lib/pulp_rpm_client.rb +8 -0
- data/pulp_rpm_client.gemspec +1 -1
- data/spec/api/acs_rpm_api_spec.rb +132 -0
- data/spec/api/rpm_comps_api_spec.rb +49 -0
- data/spec/models/comps_xml_spec.rb +53 -0
- data/spec/models/paginatedrpm_rpm_alternate_content_source_response_list_spec.rb +59 -0
- data/spec/models/patchedrpm_rpm_alternate_content_source_spec.rb +59 -0
- data/spec/models/rpm_rpm_alternate_content_source_response_spec.rb +71 -0
- data/spec/models/rpm_rpm_alternate_content_source_spec.rb +59 -0
- data/spec/models/task_group_operation_response_spec.rb +41 -0
- metadata +107 -69
@@ -0,0 +1,270 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
Contact: pulp-list@redhat.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module PulpRpmClient
|
16
|
+
# Serializer for RPM alternate content source.
|
17
|
+
class RpmRpmAlternateContentSourceResponse
|
18
|
+
attr_accessor :pulp_href
|
19
|
+
|
20
|
+
# Timestamp of creation.
|
21
|
+
attr_accessor :pulp_created
|
22
|
+
|
23
|
+
# Name of Alternate Content Source.
|
24
|
+
attr_accessor :name
|
25
|
+
|
26
|
+
# Date of last refresh of AlternateContentSource.
|
27
|
+
attr_accessor :last_refreshed
|
28
|
+
|
29
|
+
# List of paths that will be appended to the Remote url when searching for content.
|
30
|
+
attr_accessor :paths
|
31
|
+
|
32
|
+
# The remote to provide alternate content source.
|
33
|
+
attr_accessor :remote
|
34
|
+
|
35
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
36
|
+
def self.attribute_map
|
37
|
+
{
|
38
|
+
:'pulp_href' => :'pulp_href',
|
39
|
+
:'pulp_created' => :'pulp_created',
|
40
|
+
:'name' => :'name',
|
41
|
+
:'last_refreshed' => :'last_refreshed',
|
42
|
+
:'paths' => :'paths',
|
43
|
+
:'remote' => :'remote'
|
44
|
+
}
|
45
|
+
end
|
46
|
+
|
47
|
+
# Attribute type mapping.
|
48
|
+
def self.openapi_types
|
49
|
+
{
|
50
|
+
:'pulp_href' => :'String',
|
51
|
+
:'pulp_created' => :'DateTime',
|
52
|
+
:'name' => :'String',
|
53
|
+
:'last_refreshed' => :'DateTime',
|
54
|
+
:'paths' => :'Array<String>',
|
55
|
+
:'remote' => :'String'
|
56
|
+
}
|
57
|
+
end
|
58
|
+
|
59
|
+
# List of attributes with nullable: true
|
60
|
+
def self.openapi_nullable
|
61
|
+
Set.new([
|
62
|
+
:'last_refreshed',
|
63
|
+
])
|
64
|
+
end
|
65
|
+
|
66
|
+
# Initializes the object
|
67
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
68
|
+
def initialize(attributes = {})
|
69
|
+
if (!attributes.is_a?(Hash))
|
70
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpRpmClient::RpmRpmAlternateContentSourceResponse` initialize method"
|
71
|
+
end
|
72
|
+
|
73
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
74
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
75
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
76
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpRpmClient::RpmRpmAlternateContentSourceResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
77
|
+
end
|
78
|
+
h[k.to_sym] = v
|
79
|
+
}
|
80
|
+
|
81
|
+
if attributes.key?(:'pulp_href')
|
82
|
+
self.pulp_href = attributes[:'pulp_href']
|
83
|
+
end
|
84
|
+
|
85
|
+
if attributes.key?(:'pulp_created')
|
86
|
+
self.pulp_created = attributes[:'pulp_created']
|
87
|
+
end
|
88
|
+
|
89
|
+
if attributes.key?(:'name')
|
90
|
+
self.name = attributes[:'name']
|
91
|
+
end
|
92
|
+
|
93
|
+
if attributes.key?(:'last_refreshed')
|
94
|
+
self.last_refreshed = attributes[:'last_refreshed']
|
95
|
+
end
|
96
|
+
|
97
|
+
if attributes.key?(:'paths')
|
98
|
+
if (value = attributes[:'paths']).is_a?(Array)
|
99
|
+
self.paths = value
|
100
|
+
end
|
101
|
+
end
|
102
|
+
|
103
|
+
if attributes.key?(:'remote')
|
104
|
+
self.remote = attributes[:'remote']
|
105
|
+
end
|
106
|
+
end
|
107
|
+
|
108
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
109
|
+
# @return Array for valid properties with the reasons
|
110
|
+
def list_invalid_properties
|
111
|
+
invalid_properties = Array.new
|
112
|
+
if @name.nil?
|
113
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
114
|
+
end
|
115
|
+
|
116
|
+
if @remote.nil?
|
117
|
+
invalid_properties.push('invalid value for "remote", remote cannot be nil.')
|
118
|
+
end
|
119
|
+
|
120
|
+
invalid_properties
|
121
|
+
end
|
122
|
+
|
123
|
+
# Check to see if the all the properties in the model are valid
|
124
|
+
# @return true if the model is valid
|
125
|
+
def valid?
|
126
|
+
return false if @name.nil?
|
127
|
+
return false if @remote.nil?
|
128
|
+
true
|
129
|
+
end
|
130
|
+
|
131
|
+
# Checks equality by comparing each attribute.
|
132
|
+
# @param [Object] Object to be compared
|
133
|
+
def ==(o)
|
134
|
+
return true if self.equal?(o)
|
135
|
+
self.class == o.class &&
|
136
|
+
pulp_href == o.pulp_href &&
|
137
|
+
pulp_created == o.pulp_created &&
|
138
|
+
name == o.name &&
|
139
|
+
last_refreshed == o.last_refreshed &&
|
140
|
+
paths == o.paths &&
|
141
|
+
remote == o.remote
|
142
|
+
end
|
143
|
+
|
144
|
+
# @see the `==` method
|
145
|
+
# @param [Object] Object to be compared
|
146
|
+
def eql?(o)
|
147
|
+
self == o
|
148
|
+
end
|
149
|
+
|
150
|
+
# Calculates hash code according to all attributes.
|
151
|
+
# @return [Integer] Hash code
|
152
|
+
def hash
|
153
|
+
[pulp_href, pulp_created, name, last_refreshed, paths, remote].hash
|
154
|
+
end
|
155
|
+
|
156
|
+
# Builds the object from hash
|
157
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
158
|
+
# @return [Object] Returns the model itself
|
159
|
+
def self.build_from_hash(attributes)
|
160
|
+
new.build_from_hash(attributes)
|
161
|
+
end
|
162
|
+
|
163
|
+
# Builds the object from hash
|
164
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
165
|
+
# @return [Object] Returns the model itself
|
166
|
+
def build_from_hash(attributes)
|
167
|
+
return nil unless attributes.is_a?(Hash)
|
168
|
+
self.class.openapi_types.each_pair do |key, type|
|
169
|
+
if type =~ /\AArray<(.*)>/i
|
170
|
+
# check to ensure the input is an array given that the attribute
|
171
|
+
# is documented as an array but the input is not
|
172
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
173
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
174
|
+
end
|
175
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
176
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
177
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
178
|
+
end
|
179
|
+
|
180
|
+
self
|
181
|
+
end
|
182
|
+
|
183
|
+
# Deserializes the data based on type
|
184
|
+
# @param string type Data type
|
185
|
+
# @param string value Value to be deserialized
|
186
|
+
# @return [Object] Deserialized data
|
187
|
+
def _deserialize(type, value)
|
188
|
+
case type.to_sym
|
189
|
+
when :DateTime
|
190
|
+
DateTime.parse(value)
|
191
|
+
when :Date
|
192
|
+
Date.parse(value)
|
193
|
+
when :String
|
194
|
+
value.to_s
|
195
|
+
when :Integer
|
196
|
+
value.to_i
|
197
|
+
when :Float
|
198
|
+
value.to_f
|
199
|
+
when :Boolean
|
200
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
201
|
+
true
|
202
|
+
else
|
203
|
+
false
|
204
|
+
end
|
205
|
+
when :Object
|
206
|
+
# generic object (usually a Hash), return directly
|
207
|
+
value
|
208
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
209
|
+
inner_type = Regexp.last_match[:inner_type]
|
210
|
+
value.map { |v| _deserialize(inner_type, v) }
|
211
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
212
|
+
k_type = Regexp.last_match[:k_type]
|
213
|
+
v_type = Regexp.last_match[:v_type]
|
214
|
+
{}.tap do |hash|
|
215
|
+
value.each do |k, v|
|
216
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
217
|
+
end
|
218
|
+
end
|
219
|
+
else # model
|
220
|
+
PulpRpmClient.const_get(type).build_from_hash(value)
|
221
|
+
end
|
222
|
+
end
|
223
|
+
|
224
|
+
# Returns the string representation of the object
|
225
|
+
# @return [String] String presentation of the object
|
226
|
+
def to_s
|
227
|
+
to_hash.to_s
|
228
|
+
end
|
229
|
+
|
230
|
+
# to_body is an alias to to_hash (backward compatibility)
|
231
|
+
# @return [Hash] Returns the object in the form of hash
|
232
|
+
def to_body
|
233
|
+
to_hash
|
234
|
+
end
|
235
|
+
|
236
|
+
# Returns the object in the form of hash
|
237
|
+
# @return [Hash] Returns the object in the form of hash
|
238
|
+
def to_hash
|
239
|
+
hash = {}
|
240
|
+
self.class.attribute_map.each_pair do |attr, param|
|
241
|
+
value = self.send(attr)
|
242
|
+
if value.nil?
|
243
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
244
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
245
|
+
end
|
246
|
+
|
247
|
+
hash[param] = _to_hash(value)
|
248
|
+
end
|
249
|
+
hash
|
250
|
+
end
|
251
|
+
|
252
|
+
# Outputs non-array value in the form of hash
|
253
|
+
# For object, use to_hash. Otherwise, just return the value
|
254
|
+
# @param [Object] value Any valid value
|
255
|
+
# @return [Hash] Returns the value in the form of hash
|
256
|
+
def _to_hash(value)
|
257
|
+
if value.is_a?(Array)
|
258
|
+
value.compact.map { |v| _to_hash(v) }
|
259
|
+
elsif value.is_a?(Hash)
|
260
|
+
{}.tap do |hash|
|
261
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
262
|
+
end
|
263
|
+
elsif value.respond_to? :to_hash
|
264
|
+
value.to_hash
|
265
|
+
else
|
266
|
+
value
|
267
|
+
end
|
268
|
+
end
|
269
|
+
end
|
270
|
+
end
|
@@ -0,0 +1,213 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
Contact: pulp-list@redhat.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module PulpRpmClient
|
16
|
+
# Serializer for asynchronous operations that return a task group.
|
17
|
+
class TaskGroupOperationResponse
|
18
|
+
# The href of the task group.
|
19
|
+
attr_accessor :task_group
|
20
|
+
|
21
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
22
|
+
def self.attribute_map
|
23
|
+
{
|
24
|
+
:'task_group' => :'task_group'
|
25
|
+
}
|
26
|
+
end
|
27
|
+
|
28
|
+
# Attribute type mapping.
|
29
|
+
def self.openapi_types
|
30
|
+
{
|
31
|
+
:'task_group' => :'String'
|
32
|
+
}
|
33
|
+
end
|
34
|
+
|
35
|
+
# List of attributes with nullable: true
|
36
|
+
def self.openapi_nullable
|
37
|
+
Set.new([
|
38
|
+
])
|
39
|
+
end
|
40
|
+
|
41
|
+
# Initializes the object
|
42
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
43
|
+
def initialize(attributes = {})
|
44
|
+
if (!attributes.is_a?(Hash))
|
45
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpRpmClient::TaskGroupOperationResponse` initialize method"
|
46
|
+
end
|
47
|
+
|
48
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
49
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
50
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
51
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpRpmClient::TaskGroupOperationResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
52
|
+
end
|
53
|
+
h[k.to_sym] = v
|
54
|
+
}
|
55
|
+
|
56
|
+
if attributes.key?(:'task_group')
|
57
|
+
self.task_group = attributes[:'task_group']
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
61
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
62
|
+
# @return Array for valid properties with the reasons
|
63
|
+
def list_invalid_properties
|
64
|
+
invalid_properties = Array.new
|
65
|
+
if @task_group.nil?
|
66
|
+
invalid_properties.push('invalid value for "task_group", task_group cannot be nil.')
|
67
|
+
end
|
68
|
+
|
69
|
+
invalid_properties
|
70
|
+
end
|
71
|
+
|
72
|
+
# Check to see if the all the properties in the model are valid
|
73
|
+
# @return true if the model is valid
|
74
|
+
def valid?
|
75
|
+
return false if @task_group.nil?
|
76
|
+
true
|
77
|
+
end
|
78
|
+
|
79
|
+
# Checks equality by comparing each attribute.
|
80
|
+
# @param [Object] Object to be compared
|
81
|
+
def ==(o)
|
82
|
+
return true if self.equal?(o)
|
83
|
+
self.class == o.class &&
|
84
|
+
task_group == o.task_group
|
85
|
+
end
|
86
|
+
|
87
|
+
# @see the `==` method
|
88
|
+
# @param [Object] Object to be compared
|
89
|
+
def eql?(o)
|
90
|
+
self == o
|
91
|
+
end
|
92
|
+
|
93
|
+
# Calculates hash code according to all attributes.
|
94
|
+
# @return [Integer] Hash code
|
95
|
+
def hash
|
96
|
+
[task_group].hash
|
97
|
+
end
|
98
|
+
|
99
|
+
# Builds the object from hash
|
100
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
101
|
+
# @return [Object] Returns the model itself
|
102
|
+
def self.build_from_hash(attributes)
|
103
|
+
new.build_from_hash(attributes)
|
104
|
+
end
|
105
|
+
|
106
|
+
# Builds the object from hash
|
107
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
108
|
+
# @return [Object] Returns the model itself
|
109
|
+
def build_from_hash(attributes)
|
110
|
+
return nil unless attributes.is_a?(Hash)
|
111
|
+
self.class.openapi_types.each_pair do |key, type|
|
112
|
+
if type =~ /\AArray<(.*)>/i
|
113
|
+
# check to ensure the input is an array given that the attribute
|
114
|
+
# is documented as an array but the input is not
|
115
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
116
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
117
|
+
end
|
118
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
119
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
120
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
121
|
+
end
|
122
|
+
|
123
|
+
self
|
124
|
+
end
|
125
|
+
|
126
|
+
# Deserializes the data based on type
|
127
|
+
# @param string type Data type
|
128
|
+
# @param string value Value to be deserialized
|
129
|
+
# @return [Object] Deserialized data
|
130
|
+
def _deserialize(type, value)
|
131
|
+
case type.to_sym
|
132
|
+
when :DateTime
|
133
|
+
DateTime.parse(value)
|
134
|
+
when :Date
|
135
|
+
Date.parse(value)
|
136
|
+
when :String
|
137
|
+
value.to_s
|
138
|
+
when :Integer
|
139
|
+
value.to_i
|
140
|
+
when :Float
|
141
|
+
value.to_f
|
142
|
+
when :Boolean
|
143
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
144
|
+
true
|
145
|
+
else
|
146
|
+
false
|
147
|
+
end
|
148
|
+
when :Object
|
149
|
+
# generic object (usually a Hash), return directly
|
150
|
+
value
|
151
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
152
|
+
inner_type = Regexp.last_match[:inner_type]
|
153
|
+
value.map { |v| _deserialize(inner_type, v) }
|
154
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
155
|
+
k_type = Regexp.last_match[:k_type]
|
156
|
+
v_type = Regexp.last_match[:v_type]
|
157
|
+
{}.tap do |hash|
|
158
|
+
value.each do |k, v|
|
159
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
160
|
+
end
|
161
|
+
end
|
162
|
+
else # model
|
163
|
+
PulpRpmClient.const_get(type).build_from_hash(value)
|
164
|
+
end
|
165
|
+
end
|
166
|
+
|
167
|
+
# Returns the string representation of the object
|
168
|
+
# @return [String] String presentation of the object
|
169
|
+
def to_s
|
170
|
+
to_hash.to_s
|
171
|
+
end
|
172
|
+
|
173
|
+
# to_body is an alias to to_hash (backward compatibility)
|
174
|
+
# @return [Hash] Returns the object in the form of hash
|
175
|
+
def to_body
|
176
|
+
to_hash
|
177
|
+
end
|
178
|
+
|
179
|
+
# Returns the object in the form of hash
|
180
|
+
# @return [Hash] Returns the object in the form of hash
|
181
|
+
def to_hash
|
182
|
+
hash = {}
|
183
|
+
self.class.attribute_map.each_pair do |attr, param|
|
184
|
+
value = self.send(attr)
|
185
|
+
if value.nil?
|
186
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
187
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
188
|
+
end
|
189
|
+
|
190
|
+
hash[param] = _to_hash(value)
|
191
|
+
end
|
192
|
+
hash
|
193
|
+
end
|
194
|
+
|
195
|
+
# Outputs non-array value in the form of hash
|
196
|
+
# For object, use to_hash. Otherwise, just return the value
|
197
|
+
# @param [Object] value Any valid value
|
198
|
+
# @return [Hash] Returns the value in the form of hash
|
199
|
+
def _to_hash(value)
|
200
|
+
if value.is_a?(Array)
|
201
|
+
value.compact.map { |v| _to_hash(v) }
|
202
|
+
elsif value.is_a?(Hash)
|
203
|
+
{}.tap do |hash|
|
204
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
205
|
+
end
|
206
|
+
elsif value.respond_to? :to_hash
|
207
|
+
value.to_hash
|
208
|
+
else
|
209
|
+
value
|
210
|
+
end
|
211
|
+
end
|
212
|
+
end
|
213
|
+
end
|
data/lib/pulp_rpm_client.rb
CHANGED
@@ -21,6 +21,7 @@ require 'pulp_rpm_client/models/addon_response'
|
|
21
21
|
require 'pulp_rpm_client/models/artifact_response'
|
22
22
|
require 'pulp_rpm_client/models/async_operation_response'
|
23
23
|
require 'pulp_rpm_client/models/checksum_response'
|
24
|
+
require 'pulp_rpm_client/models/comps_xml'
|
24
25
|
require 'pulp_rpm_client/models/content_summary'
|
25
26
|
require 'pulp_rpm_client/models/content_summary_response'
|
26
27
|
require 'pulp_rpm_client/models/copy'
|
@@ -37,12 +38,14 @@ require 'pulp_rpm_client/models/paginatedrpm_package_group_response_list'
|
|
37
38
|
require 'pulp_rpm_client/models/paginatedrpm_package_langpacks_response_list'
|
38
39
|
require 'pulp_rpm_client/models/paginatedrpm_package_response_list'
|
39
40
|
require 'pulp_rpm_client/models/paginatedrpm_repo_metadata_file_response_list'
|
41
|
+
require 'pulp_rpm_client/models/paginatedrpm_rpm_alternate_content_source_response_list'
|
40
42
|
require 'pulp_rpm_client/models/paginatedrpm_rpm_distribution_response_list'
|
41
43
|
require 'pulp_rpm_client/models/paginatedrpm_rpm_publication_response_list'
|
42
44
|
require 'pulp_rpm_client/models/paginatedrpm_rpm_remote_response_list'
|
43
45
|
require 'pulp_rpm_client/models/paginatedrpm_rpm_repository_response_list'
|
44
46
|
require 'pulp_rpm_client/models/paginatedrpm_uln_remote_response_list'
|
45
47
|
require 'pulp_rpm_client/models/paginatedrpm_update_record_response_list'
|
48
|
+
require 'pulp_rpm_client/models/patchedrpm_rpm_alternate_content_source'
|
46
49
|
require 'pulp_rpm_client/models/patchedrpm_rpm_distribution'
|
47
50
|
require 'pulp_rpm_client/models/patchedrpm_rpm_remote'
|
48
51
|
require 'pulp_rpm_client/models/patchedrpm_rpm_repository'
|
@@ -64,6 +67,8 @@ require 'pulp_rpm_client/models/rpm_package_langpacks_response'
|
|
64
67
|
require 'pulp_rpm_client/models/rpm_package_response'
|
65
68
|
require 'pulp_rpm_client/models/rpm_repo_metadata_file_response'
|
66
69
|
require 'pulp_rpm_client/models/rpm_repository_sync_url'
|
70
|
+
require 'pulp_rpm_client/models/rpm_rpm_alternate_content_source'
|
71
|
+
require 'pulp_rpm_client/models/rpm_rpm_alternate_content_source_response'
|
67
72
|
require 'pulp_rpm_client/models/rpm_rpm_distribution'
|
68
73
|
require 'pulp_rpm_client/models/rpm_rpm_distribution_response'
|
69
74
|
require 'pulp_rpm_client/models/rpm_rpm_publication'
|
@@ -80,9 +85,11 @@ require 'pulp_rpm_client/models/rpm_update_record'
|
|
80
85
|
require 'pulp_rpm_client/models/rpm_update_record_response'
|
81
86
|
require 'pulp_rpm_client/models/skip_types_enum'
|
82
87
|
require 'pulp_rpm_client/models/sync_policy_enum'
|
88
|
+
require 'pulp_rpm_client/models/task_group_operation_response'
|
83
89
|
require 'pulp_rpm_client/models/variant_response'
|
84
90
|
|
85
91
|
# APIs
|
92
|
+
require 'pulp_rpm_client/api/acs_rpm_api'
|
86
93
|
require 'pulp_rpm_client/api/content_advisories_api'
|
87
94
|
require 'pulp_rpm_client/api/content_distribution_trees_api'
|
88
95
|
require 'pulp_rpm_client/api/content_modulemd_defaults_api'
|
@@ -99,6 +106,7 @@ require 'pulp_rpm_client/api/remotes_rpm_api'
|
|
99
106
|
require 'pulp_rpm_client/api/remotes_uln_api'
|
100
107
|
require 'pulp_rpm_client/api/repositories_rpm_api'
|
101
108
|
require 'pulp_rpm_client/api/repositories_rpm_versions_api'
|
109
|
+
require 'pulp_rpm_client/api/rpm_comps_api'
|
102
110
|
require 'pulp_rpm_client/api/rpm_copy_api'
|
103
111
|
|
104
112
|
module PulpRpmClient
|
data/pulp_rpm_client.gemspec
CHANGED
@@ -27,7 +27,7 @@ Gem::Specification.new do |s|
|
|
27
27
|
s.license = 'GPL-2.0+'
|
28
28
|
s.required_ruby_version = ">= 1.9"
|
29
29
|
|
30
|
-
s.add_runtime_dependency 'faraday', '
|
30
|
+
s.add_runtime_dependency 'faraday', '~> 1.0', '< 1.9.0'
|
31
31
|
s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
|
32
32
|
|
33
33
|
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
|
@@ -0,0 +1,132 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
Contact: pulp-list@redhat.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for PulpRpmClient::AcsRpmApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'AcsRpmApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = PulpRpmClient::AcsRpmApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of AcsRpmApi' do
|
30
|
+
it 'should create an instance of AcsRpmApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(PulpRpmClient::AcsRpmApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for create
|
36
|
+
# Create a rpm alternate content source
|
37
|
+
# ViewSet for ACS.
|
38
|
+
# @param rpm_rpm_alternate_content_source
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @return [RpmRpmAlternateContentSourceResponse]
|
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 rpm alternate content source
|
49
|
+
# Trigger an asynchronous delete ACS task
|
50
|
+
# @param rpm_rpm_alternate_content_source_href
|
51
|
+
# @param [Hash] opts the optional parameters
|
52
|
+
# @return [AsyncOperationResponse]
|
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 list
|
60
|
+
# List rpm alternate content sources
|
61
|
+
# ViewSet for ACS.
|
62
|
+
# @param [Hash] opts the optional parameters
|
63
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
64
|
+
# @option opts [String] :name
|
65
|
+
# @option opts [String] :name__contains Filter results where name contains value
|
66
|
+
# @option opts [String] :name__icontains Filter results where name contains value
|
67
|
+
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
68
|
+
# @option opts [String] :name__startswith Filter results where name starts with value
|
69
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
70
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
71
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
72
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
73
|
+
# @return [PaginatedrpmRpmAlternateContentSourceResponseList]
|
74
|
+
describe 'list test' do
|
75
|
+
it 'should work' do
|
76
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
80
|
+
# unit tests for partial_update
|
81
|
+
# Update a rpm alternate content source
|
82
|
+
# Trigger an asynchronous partial update task
|
83
|
+
# @param rpm_rpm_alternate_content_source_href
|
84
|
+
# @param patchedrpm_rpm_alternate_content_source
|
85
|
+
# @param [Hash] opts the optional parameters
|
86
|
+
# @return [AsyncOperationResponse]
|
87
|
+
describe 'partial_update test' do
|
88
|
+
it 'should work' do
|
89
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
90
|
+
end
|
91
|
+
end
|
92
|
+
|
93
|
+
# unit tests for read
|
94
|
+
# Inspect a rpm alternate content source
|
95
|
+
# ViewSet for ACS.
|
96
|
+
# @param rpm_rpm_alternate_content_source_href
|
97
|
+
# @param [Hash] opts the optional parameters
|
98
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
99
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
100
|
+
# @return [RpmRpmAlternateContentSourceResponse]
|
101
|
+
describe 'read test' do
|
102
|
+
it 'should work' do
|
103
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
104
|
+
end
|
105
|
+
end
|
106
|
+
|
107
|
+
# unit tests for refresh
|
108
|
+
# Trigger an asynchronous task to create Alternate Content Source content.
|
109
|
+
# @param rpm_rpm_alternate_content_source_href
|
110
|
+
# @param rpm_rpm_alternate_content_source
|
111
|
+
# @param [Hash] opts the optional parameters
|
112
|
+
# @return [TaskGroupOperationResponse]
|
113
|
+
describe 'refresh test' do
|
114
|
+
it 'should work' do
|
115
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
116
|
+
end
|
117
|
+
end
|
118
|
+
|
119
|
+
# unit tests for update
|
120
|
+
# Update a rpm alternate content source
|
121
|
+
# Trigger an asynchronous update task
|
122
|
+
# @param rpm_rpm_alternate_content_source_href
|
123
|
+
# @param rpm_rpm_alternate_content_source
|
124
|
+
# @param [Hash] opts the optional parameters
|
125
|
+
# @return [AsyncOperationResponse]
|
126
|
+
describe 'update test' do
|
127
|
+
it 'should work' do
|
128
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
129
|
+
end
|
130
|
+
end
|
131
|
+
|
132
|
+
end
|