pulp_maven_client 0.19.0 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +11 -4
- data/docs/MavenMavenDistribution.md +3 -1
- data/docs/MavenMavenDistributionResponse.md +3 -1
- data/docs/MavenMavenPublication.md +20 -0
- data/docs/MavenMavenPublicationResponse.md +28 -0
- data/docs/MavenMavenRepository.md +3 -1
- data/docs/MavenMavenRepositoryResponse.md +3 -1
- data/docs/PaginatedmavenMavenPublicationResponseList.md +24 -0
- data/docs/PatchedmavenMavenDistribution.md +3 -1
- data/docs/PatchedmavenMavenRepository.md +3 -1
- data/docs/PublicationsMavenApi.md +350 -0
- data/lib/pulp_maven_client/api/publications_maven_api.rb +356 -0
- data/lib/pulp_maven_client/models/maven_maven_distribution.rb +16 -5
- data/lib/pulp_maven_client/models/maven_maven_distribution_response.rb +16 -5
- data/lib/pulp_maven_client/models/maven_maven_publication.rb +225 -0
- data/lib/pulp_maven_client/models/maven_maven_publication_response.rb +264 -0
- data/lib/pulp_maven_client/models/maven_maven_repository.rb +17 -5
- data/lib/pulp_maven_client/models/maven_maven_repository_response.rb +17 -5
- data/lib/pulp_maven_client/models/paginatedmaven_maven_publication_response_list.rb +257 -0
- data/lib/pulp_maven_client/models/patchedmaven_maven_distribution.rb +16 -5
- data/lib/pulp_maven_client/models/patchedmaven_maven_repository.rb +17 -5
- data/lib/pulp_maven_client/version.rb +1 -1
- data/lib/pulp_maven_client.rb +4 -0
- data/spec/api/publications_maven_api_spec.rb +109 -0
- data/spec/models/maven_maven_distribution_response_spec.rb +6 -0
- data/spec/models/maven_maven_distribution_spec.rb +6 -0
- data/spec/models/maven_maven_publication_response_spec.rb +66 -0
- data/spec/models/maven_maven_publication_spec.rb +42 -0
- data/spec/models/maven_maven_repository_response_spec.rb +6 -0
- data/spec/models/maven_maven_repository_spec.rb +6 -0
- data/spec/models/paginatedmaven_maven_publication_response_list_spec.rb +54 -0
- data/spec/models/patchedmaven_maven_distribution_spec.rb +6 -0
- data/spec/models/patchedmaven_maven_repository_spec.rb +6 -0
- metadata +18 -2
|
@@ -0,0 +1,257 @@
|
|
|
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
|
+
Generator version: 7.10.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module PulpMavenClient
|
|
17
|
+
class PaginatedmavenMavenPublicationResponseList
|
|
18
|
+
attr_accessor :count
|
|
19
|
+
|
|
20
|
+
attr_accessor :_next
|
|
21
|
+
|
|
22
|
+
attr_accessor :previous
|
|
23
|
+
|
|
24
|
+
attr_accessor :results
|
|
25
|
+
|
|
26
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
27
|
+
def self.attribute_map
|
|
28
|
+
{
|
|
29
|
+
:'count' => :'count',
|
|
30
|
+
:'_next' => :'next',
|
|
31
|
+
:'previous' => :'previous',
|
|
32
|
+
:'results' => :'results'
|
|
33
|
+
}
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# Returns all the JSON keys this model knows about
|
|
37
|
+
def self.acceptable_attributes
|
|
38
|
+
attribute_map.values
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# Attribute type mapping.
|
|
42
|
+
def self.openapi_types
|
|
43
|
+
{
|
|
44
|
+
:'count' => :'Integer',
|
|
45
|
+
:'_next' => :'String',
|
|
46
|
+
:'previous' => :'String',
|
|
47
|
+
:'results' => :'Array<MavenMavenPublicationResponse>'
|
|
48
|
+
}
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# List of attributes with nullable: true
|
|
52
|
+
def self.openapi_nullable
|
|
53
|
+
Set.new([
|
|
54
|
+
])
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# Initializes the object
|
|
58
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
59
|
+
def initialize(attributes = {})
|
|
60
|
+
if (!attributes.is_a?(Hash))
|
|
61
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpMavenClient::PaginatedmavenMavenPublicationResponseList` initialize method"
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
65
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
66
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
67
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpMavenClient::PaginatedmavenMavenPublicationResponseList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
68
|
+
end
|
|
69
|
+
h[k.to_sym] = v
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
if attributes.key?(:'count')
|
|
73
|
+
self.count = attributes[:'count']
|
|
74
|
+
else
|
|
75
|
+
self.count = nil
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
if attributes.key?(:'_next')
|
|
79
|
+
self._next = attributes[:'_next']
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
if attributes.key?(:'previous')
|
|
83
|
+
self.previous = attributes[:'previous']
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
if attributes.key?(:'results')
|
|
87
|
+
if (value = attributes[:'results']).is_a?(Array)
|
|
88
|
+
self.results = value
|
|
89
|
+
end
|
|
90
|
+
else
|
|
91
|
+
self.results = nil
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
96
|
+
# @return Array for valid properties with the reasons
|
|
97
|
+
def list_invalid_properties
|
|
98
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
99
|
+
invalid_properties = Array.new
|
|
100
|
+
if @count.nil?
|
|
101
|
+
invalid_properties.push('invalid value for "count", count cannot be nil.')
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
if @results.nil?
|
|
105
|
+
invalid_properties.push('invalid value for "results", results cannot be nil.')
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
invalid_properties
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
# Check to see if the all the properties in the model are valid
|
|
112
|
+
# @return true if the model is valid
|
|
113
|
+
def valid?
|
|
114
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
115
|
+
return false if @count.nil?
|
|
116
|
+
return false if @results.nil?
|
|
117
|
+
true
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
# Checks equality by comparing each attribute.
|
|
121
|
+
# @param [Object] Object to be compared
|
|
122
|
+
def ==(o)
|
|
123
|
+
return true if self.equal?(o)
|
|
124
|
+
self.class == o.class &&
|
|
125
|
+
count == o.count &&
|
|
126
|
+
_next == o._next &&
|
|
127
|
+
previous == o.previous &&
|
|
128
|
+
results == o.results
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
# @see the `==` method
|
|
132
|
+
# @param [Object] Object to be compared
|
|
133
|
+
def eql?(o)
|
|
134
|
+
self == o
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
# Calculates hash code according to all attributes.
|
|
138
|
+
# @return [Integer] Hash code
|
|
139
|
+
def hash
|
|
140
|
+
[count, _next, previous, results].hash
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
# Builds the object from hash
|
|
144
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
145
|
+
# @return [Object] Returns the model itself
|
|
146
|
+
def self.build_from_hash(attributes)
|
|
147
|
+
return nil unless attributes.is_a?(Hash)
|
|
148
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
149
|
+
transformed_hash = {}
|
|
150
|
+
openapi_types.each_pair do |key, type|
|
|
151
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
152
|
+
transformed_hash["#{key}"] = nil
|
|
153
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
154
|
+
# check to ensure the input is an array given that the attribute
|
|
155
|
+
# is documented as an array but the input is not
|
|
156
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
157
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
158
|
+
end
|
|
159
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
160
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
161
|
+
end
|
|
162
|
+
end
|
|
163
|
+
new(transformed_hash)
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
# Deserializes the data based on type
|
|
167
|
+
# @param string type Data type
|
|
168
|
+
# @param string value Value to be deserialized
|
|
169
|
+
# @return [Object] Deserialized data
|
|
170
|
+
def self._deserialize(type, value)
|
|
171
|
+
case type.to_sym
|
|
172
|
+
when :Time
|
|
173
|
+
Time.parse(value)
|
|
174
|
+
when :Date
|
|
175
|
+
Date.parse(value)
|
|
176
|
+
when :String
|
|
177
|
+
value.to_s
|
|
178
|
+
when :Integer
|
|
179
|
+
value.to_i
|
|
180
|
+
when :Float
|
|
181
|
+
value.to_f
|
|
182
|
+
when :Boolean
|
|
183
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
184
|
+
true
|
|
185
|
+
else
|
|
186
|
+
false
|
|
187
|
+
end
|
|
188
|
+
when :Object
|
|
189
|
+
# generic object (usually a Hash), return directly
|
|
190
|
+
value
|
|
191
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
192
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
193
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
194
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
195
|
+
k_type = Regexp.last_match[:k_type]
|
|
196
|
+
v_type = Regexp.last_match[:v_type]
|
|
197
|
+
{}.tap do |hash|
|
|
198
|
+
value.each do |k, v|
|
|
199
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
200
|
+
end
|
|
201
|
+
end
|
|
202
|
+
else # model
|
|
203
|
+
# models (e.g. Pet) or oneOf
|
|
204
|
+
klass = PulpMavenClient.const_get(type)
|
|
205
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
206
|
+
end
|
|
207
|
+
end
|
|
208
|
+
|
|
209
|
+
# Returns the string representation of the object
|
|
210
|
+
# @return [String] String presentation of the object
|
|
211
|
+
def to_s
|
|
212
|
+
to_hash.to_s
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
216
|
+
# @return [Hash] Returns the object in the form of hash
|
|
217
|
+
def to_body
|
|
218
|
+
to_hash
|
|
219
|
+
end
|
|
220
|
+
|
|
221
|
+
# Returns the object in the form of hash
|
|
222
|
+
# @return [Hash] Returns the object in the form of hash
|
|
223
|
+
def to_hash
|
|
224
|
+
hash = {}
|
|
225
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
226
|
+
value = self.send(attr)
|
|
227
|
+
if value.nil?
|
|
228
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
229
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
230
|
+
end
|
|
231
|
+
|
|
232
|
+
hash[param] = _to_hash(value)
|
|
233
|
+
end
|
|
234
|
+
hash
|
|
235
|
+
end
|
|
236
|
+
|
|
237
|
+
# Outputs non-array value in the form of hash
|
|
238
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
239
|
+
# @param [Object] value Any valid value
|
|
240
|
+
# @return [Hash] Returns the value in the form of hash
|
|
241
|
+
def _to_hash(value)
|
|
242
|
+
if value.is_a?(Array)
|
|
243
|
+
value.compact.map { |v| _to_hash(v) }
|
|
244
|
+
elsif value.is_a?(Hash)
|
|
245
|
+
{}.tap do |hash|
|
|
246
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
247
|
+
end
|
|
248
|
+
elsif value.respond_to? :to_hash
|
|
249
|
+
value.to_hash
|
|
250
|
+
else
|
|
251
|
+
value
|
|
252
|
+
end
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
end
|
|
256
|
+
|
|
257
|
+
end
|
|
@@ -39,6 +39,9 @@ module PulpMavenClient
|
|
|
39
39
|
# Remote that can be used to fetch content when using pull-through caching.
|
|
40
40
|
attr_accessor :remote
|
|
41
41
|
|
|
42
|
+
# Publication to be served
|
|
43
|
+
attr_accessor :publication
|
|
44
|
+
|
|
42
45
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
43
46
|
def self.attribute_map
|
|
44
47
|
{
|
|
@@ -49,7 +52,8 @@ module PulpMavenClient
|
|
|
49
52
|
:'name' => :'name',
|
|
50
53
|
:'repository' => :'repository',
|
|
51
54
|
:'repository_version' => :'repository_version',
|
|
52
|
-
:'remote' => :'remote'
|
|
55
|
+
:'remote' => :'remote',
|
|
56
|
+
:'publication' => :'publication'
|
|
53
57
|
}
|
|
54
58
|
end
|
|
55
59
|
|
|
@@ -68,7 +72,8 @@ module PulpMavenClient
|
|
|
68
72
|
:'name' => :'String',
|
|
69
73
|
:'repository' => :'String',
|
|
70
74
|
:'repository_version' => :'String',
|
|
71
|
-
:'remote' => :'String'
|
|
75
|
+
:'remote' => :'String',
|
|
76
|
+
:'publication' => :'String'
|
|
72
77
|
}
|
|
73
78
|
end
|
|
74
79
|
|
|
@@ -78,7 +83,8 @@ module PulpMavenClient
|
|
|
78
83
|
:'content_guard',
|
|
79
84
|
:'repository',
|
|
80
85
|
:'repository_version',
|
|
81
|
-
:'remote'
|
|
86
|
+
:'remote',
|
|
87
|
+
:'publication'
|
|
82
88
|
])
|
|
83
89
|
end
|
|
84
90
|
|
|
@@ -132,6 +138,10 @@ module PulpMavenClient
|
|
|
132
138
|
if attributes.key?(:'remote')
|
|
133
139
|
self.remote = attributes[:'remote']
|
|
134
140
|
end
|
|
141
|
+
|
|
142
|
+
if attributes.key?(:'publication')
|
|
143
|
+
self.publication = attributes[:'publication']
|
|
144
|
+
end
|
|
135
145
|
end
|
|
136
146
|
|
|
137
147
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -199,7 +209,8 @@ module PulpMavenClient
|
|
|
199
209
|
name == o.name &&
|
|
200
210
|
repository == o.repository &&
|
|
201
211
|
repository_version == o.repository_version &&
|
|
202
|
-
remote == o.remote
|
|
212
|
+
remote == o.remote &&
|
|
213
|
+
publication == o.publication
|
|
203
214
|
end
|
|
204
215
|
|
|
205
216
|
# @see the `==` method
|
|
@@ -211,7 +222,7 @@ module PulpMavenClient
|
|
|
211
222
|
# Calculates hash code according to all attributes.
|
|
212
223
|
# @return [Integer] Hash code
|
|
213
224
|
def hash
|
|
214
|
-
[base_path, content_guard, hidden, pulp_labels, name, repository, repository_version, remote].hash
|
|
225
|
+
[base_path, content_guard, hidden, pulp_labels, name, repository, repository_version, remote, publication].hash
|
|
215
226
|
end
|
|
216
227
|
|
|
217
228
|
# Builds the object from hash
|
|
@@ -33,6 +33,9 @@ module PulpMavenClient
|
|
|
33
33
|
# An optional remote to use by default when syncing.
|
|
34
34
|
attr_accessor :remote
|
|
35
35
|
|
|
36
|
+
# Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository.
|
|
37
|
+
attr_accessor :autopublish
|
|
38
|
+
|
|
36
39
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
37
40
|
def self.attribute_map
|
|
38
41
|
{
|
|
@@ -41,7 +44,8 @@ module PulpMavenClient
|
|
|
41
44
|
:'description' => :'description',
|
|
42
45
|
:'retain_repo_versions' => :'retain_repo_versions',
|
|
43
46
|
:'retain_checkpoints' => :'retain_checkpoints',
|
|
44
|
-
:'remote' => :'remote'
|
|
47
|
+
:'remote' => :'remote',
|
|
48
|
+
:'autopublish' => :'autopublish'
|
|
45
49
|
}
|
|
46
50
|
end
|
|
47
51
|
|
|
@@ -58,7 +62,8 @@ module PulpMavenClient
|
|
|
58
62
|
:'description' => :'String',
|
|
59
63
|
:'retain_repo_versions' => :'Integer',
|
|
60
64
|
:'retain_checkpoints' => :'Integer',
|
|
61
|
-
:'remote' => :'String'
|
|
65
|
+
:'remote' => :'String',
|
|
66
|
+
:'autopublish' => :'Boolean'
|
|
62
67
|
}
|
|
63
68
|
end
|
|
64
69
|
|
|
@@ -68,7 +73,7 @@ module PulpMavenClient
|
|
|
68
73
|
:'description',
|
|
69
74
|
:'retain_repo_versions',
|
|
70
75
|
:'retain_checkpoints',
|
|
71
|
-
:'remote'
|
|
76
|
+
:'remote',
|
|
72
77
|
])
|
|
73
78
|
end
|
|
74
79
|
|
|
@@ -112,6 +117,12 @@ module PulpMavenClient
|
|
|
112
117
|
if attributes.key?(:'remote')
|
|
113
118
|
self.remote = attributes[:'remote']
|
|
114
119
|
end
|
|
120
|
+
|
|
121
|
+
if attributes.key?(:'autopublish')
|
|
122
|
+
self.autopublish = attributes[:'autopublish']
|
|
123
|
+
else
|
|
124
|
+
self.autopublish = false
|
|
125
|
+
end
|
|
115
126
|
end
|
|
116
127
|
|
|
117
128
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -203,7 +214,8 @@ module PulpMavenClient
|
|
|
203
214
|
description == o.description &&
|
|
204
215
|
retain_repo_versions == o.retain_repo_versions &&
|
|
205
216
|
retain_checkpoints == o.retain_checkpoints &&
|
|
206
|
-
remote == o.remote
|
|
217
|
+
remote == o.remote &&
|
|
218
|
+
autopublish == o.autopublish
|
|
207
219
|
end
|
|
208
220
|
|
|
209
221
|
# @see the `==` method
|
|
@@ -215,7 +227,7 @@ module PulpMavenClient
|
|
|
215
227
|
# Calculates hash code according to all attributes.
|
|
216
228
|
# @return [Integer] Hash code
|
|
217
229
|
def hash
|
|
218
|
-
[pulp_labels, name, description, retain_repo_versions, retain_checkpoints, remote].hash
|
|
230
|
+
[pulp_labels, name, description, retain_repo_versions, retain_checkpoints, remote, autopublish].hash
|
|
219
231
|
end
|
|
220
232
|
|
|
221
233
|
# Builds the object from hash
|
data/lib/pulp_maven_client.rb
CHANGED
|
@@ -23,6 +23,8 @@ require 'pulp_maven_client/models/maven_maven_artifact_response'
|
|
|
23
23
|
require 'pulp_maven_client/models/maven_maven_distribution'
|
|
24
24
|
require 'pulp_maven_client/models/maven_maven_distribution_response'
|
|
25
25
|
require 'pulp_maven_client/models/maven_maven_metadata_response'
|
|
26
|
+
require 'pulp_maven_client/models/maven_maven_publication'
|
|
27
|
+
require 'pulp_maven_client/models/maven_maven_publication_response'
|
|
26
28
|
require 'pulp_maven_client/models/maven_maven_remote'
|
|
27
29
|
require 'pulp_maven_client/models/maven_maven_remote_response'
|
|
28
30
|
require 'pulp_maven_client/models/maven_maven_remote_response_hidden_fields_inner'
|
|
@@ -32,6 +34,7 @@ require 'pulp_maven_client/models/paginated_repository_version_response_list'
|
|
|
32
34
|
require 'pulp_maven_client/models/paginatedmaven_maven_artifact_response_list'
|
|
33
35
|
require 'pulp_maven_client/models/paginatedmaven_maven_distribution_response_list'
|
|
34
36
|
require 'pulp_maven_client/models/paginatedmaven_maven_metadata_response_list'
|
|
37
|
+
require 'pulp_maven_client/models/paginatedmaven_maven_publication_response_list'
|
|
35
38
|
require 'pulp_maven_client/models/paginatedmaven_maven_remote_response_list'
|
|
36
39
|
require 'pulp_maven_client/models/paginatedmaven_maven_repository_response_list'
|
|
37
40
|
require 'pulp_maven_client/models/patchedmaven_maven_distribution'
|
|
@@ -53,6 +56,7 @@ require 'pulp_maven_client/models/unset_label_response'
|
|
|
53
56
|
require 'pulp_maven_client/api/content_artifact_api'
|
|
54
57
|
require 'pulp_maven_client/api/content_metadata_api'
|
|
55
58
|
require 'pulp_maven_client/api/distributions_maven_api'
|
|
59
|
+
require 'pulp_maven_client/api/publications_maven_api'
|
|
56
60
|
require 'pulp_maven_client/api/pulp_maven_api'
|
|
57
61
|
require 'pulp_maven_client/api/remotes_maven_api'
|
|
58
62
|
require 'pulp_maven_client/api/repositories_maven_api'
|
|
@@ -0,0 +1,109 @@
|
|
|
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
|
+
Generator version: 7.10.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for PulpMavenClient::PublicationsMavenApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'PublicationsMavenApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = PulpMavenClient::PublicationsMavenApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of PublicationsMavenApi' do
|
|
30
|
+
it 'should create an instance of PublicationsMavenApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(PulpMavenClient::PublicationsMavenApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for create
|
|
36
|
+
# Create a maven publication
|
|
37
|
+
# Trigger an asynchronous task to publish Maven content.
|
|
38
|
+
# @param maven_maven_publication
|
|
39
|
+
# @param [Hash] opts the optional parameters
|
|
40
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
41
|
+
# @return [AsyncOperationResponse]
|
|
42
|
+
describe 'create test' do
|
|
43
|
+
it 'should work' do
|
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# unit tests for delete
|
|
49
|
+
# Delete a maven publication
|
|
50
|
+
# A ViewSet for MavenPublication.
|
|
51
|
+
# @param maven_maven_publication_href
|
|
52
|
+
# @param [Hash] opts the optional parameters
|
|
53
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
54
|
+
# @return [nil]
|
|
55
|
+
describe 'delete test' do
|
|
56
|
+
it 'should work' do
|
|
57
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# unit tests for list
|
|
62
|
+
# List maven publications
|
|
63
|
+
# A ViewSet for MavenPublication.
|
|
64
|
+
# @param [Hash] opts the optional parameters
|
|
65
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
66
|
+
# @option opts [Boolean] :checkpoint Filter results where checkpoint matches value
|
|
67
|
+
# @option opts [String] :content Content Unit referenced by HREF/PRN
|
|
68
|
+
# @option opts [Array<String>] :content__in Multiple values may be separated by commas.
|
|
69
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
70
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
71
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `complete` - Complete * `-complete` - Complete (descending) * `pass_through` - Pass through * `-pass_through` - Pass through (descending) * `checkpoint` - Checkpoint * `-checkpoint` - Checkpoint (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
72
|
+
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
|
73
|
+
# @option opts [Time] :pulp_created Filter results where pulp_created matches value
|
|
74
|
+
# @option opts [Time] :pulp_created__gt Filter results where pulp_created is greater than value
|
|
75
|
+
# @option opts [Time] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
|
76
|
+
# @option opts [Boolean] :pulp_created__isnull Filter results where pulp_created has a null value
|
|
77
|
+
# @option opts [Time] :pulp_created__lt Filter results where pulp_created is less than value
|
|
78
|
+
# @option opts [Time] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
|
79
|
+
# @option opts [Array<Time>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
|
80
|
+
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
|
81
|
+
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
82
|
+
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
|
83
|
+
# @option opts [String] :repository Repository referenced by HREF/PRN
|
|
84
|
+
# @option opts [String] :repository_version
|
|
85
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
86
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
87
|
+
# @return [PaginatedmavenMavenPublicationResponseList]
|
|
88
|
+
describe 'list test' do
|
|
89
|
+
it 'should work' do
|
|
90
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
# unit tests for read
|
|
95
|
+
# Inspect a maven publication
|
|
96
|
+
# A ViewSet for MavenPublication.
|
|
97
|
+
# @param maven_maven_publication_href
|
|
98
|
+
# @param [Hash] opts the optional parameters
|
|
99
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
100
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
101
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
102
|
+
# @return [MavenMavenPublicationResponse]
|
|
103
|
+
describe 'read test' do
|
|
104
|
+
it 'should work' do
|
|
105
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
106
|
+
end
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
end
|
|
@@ -117,4 +117,10 @@ describe PulpMavenClient::MavenMavenDistributionResponse do
|
|
|
117
117
|
end
|
|
118
118
|
end
|
|
119
119
|
|
|
120
|
+
describe 'test attribute "publication"' do
|
|
121
|
+
it 'should work' do
|
|
122
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
123
|
+
end
|
|
124
|
+
end
|
|
125
|
+
|
|
120
126
|
end
|
|
@@ -75,4 +75,10 @@ describe PulpMavenClient::MavenMavenDistribution do
|
|
|
75
75
|
end
|
|
76
76
|
end
|
|
77
77
|
|
|
78
|
+
describe 'test attribute "publication"' do
|
|
79
|
+
it 'should work' do
|
|
80
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
|
|
78
84
|
end
|
|
@@ -0,0 +1,66 @@
|
|
|
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
|
+
Generator version: 7.10.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for PulpMavenClient::MavenMavenPublicationResponse
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe PulpMavenClient::MavenMavenPublicationResponse do
|
|
21
|
+
let(:instance) { PulpMavenClient::MavenMavenPublicationResponse.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of MavenMavenPublicationResponse' do
|
|
24
|
+
it 'should create an instance of MavenMavenPublicationResponse' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(PulpMavenClient::MavenMavenPublicationResponse)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "pulp_href"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
describe 'test attribute "prn"' do
|
|
37
|
+
it 'should work' do
|
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
describe 'test attribute "pulp_created"' do
|
|
43
|
+
it 'should work' do
|
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
describe 'test attribute "pulp_last_updated"' do
|
|
49
|
+
it 'should work' do
|
|
50
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
describe 'test attribute "repository_version"' do
|
|
55
|
+
it 'should work' do
|
|
56
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
describe 'test attribute "repository"' do
|
|
61
|
+
it 'should work' do
|
|
62
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
end
|
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
Generator version: 7.10.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for PulpMavenClient::MavenMavenPublication
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe PulpMavenClient::MavenMavenPublication do
|
|
21
|
+
let(:instance) { PulpMavenClient::MavenMavenPublication.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of MavenMavenPublication' do
|
|
24
|
+
it 'should create an instance of MavenMavenPublication' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(PulpMavenClient::MavenMavenPublication)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "repository_version"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
describe 'test attribute "repository"' do
|
|
37
|
+
it 'should work' do
|
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
end
|
|
@@ -99,4 +99,10 @@ describe PulpMavenClient::MavenMavenRepositoryResponse do
|
|
|
99
99
|
end
|
|
100
100
|
end
|
|
101
101
|
|
|
102
|
+
describe 'test attribute "autopublish"' do
|
|
103
|
+
it 'should work' do
|
|
104
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
105
|
+
end
|
|
106
|
+
end
|
|
107
|
+
|
|
102
108
|
end
|