pulp_python_client 3.32.1 → 3.33.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 +13 -4
- data/docs/ContentPackagesApi.md +2 -0
- data/docs/ContentYanksApi.md +341 -0
- data/docs/PaginatedpythonPackageYankResponseList.md +24 -0
- data/docs/PypiLegacyApi.md +2 -2
- data/docs/PypiSimpleApi.md +2 -2
- data/docs/PypiUnyankApi.md +84 -0
- data/docs/PypiYankApi.md +84 -0
- data/docs/PythonPackageYankResponse.md +34 -0
- data/docs/Yank.md +22 -0
- data/lib/pulp_python_client/api/content_packages_api.rb +3 -0
- data/lib/pulp_python_client/api/content_yanks_api.rb +354 -0
- data/lib/pulp_python_client/api/pypi_legacy_api.rb +2 -2
- data/lib/pulp_python_client/api/pypi_simple_api.rb +2 -2
- data/lib/pulp_python_client/api/pypi_unyank_api.rb +99 -0
- data/lib/pulp_python_client/api/pypi_yank_api.rb +99 -0
- data/lib/pulp_python_client/models/metadata_version_enum.rb +2 -1
- data/lib/pulp_python_client/models/paginatedpython_package_yank_response_list.rb +257 -0
- data/lib/pulp_python_client/models/python_package_yank_response.rb +293 -0
- data/lib/pulp_python_client/models/yank.rb +290 -0
- data/lib/pulp_python_client/version.rb +1 -1
- data/lib/pulp_python_client.rb +6 -0
- data/spec/api/content_packages_api_spec.rb +1 -0
- data/spec/api/content_yanks_api_spec.rb +104 -0
- data/spec/api/pypi_legacy_api_spec.rb +1 -1
- data/spec/api/pypi_simple_api_spec.rb +1 -1
- data/spec/api/pypi_unyank_api_spec.rb +49 -0
- data/spec/api/pypi_yank_api_spec.rb +49 -0
- data/spec/models/paginatedpython_package_yank_response_list_spec.rb +54 -0
- data/spec/models/python_package_yank_response_spec.rb +84 -0
- data/spec/models/yank_spec.rb +48 -0
- metadata +26 -2
|
@@ -0,0 +1,290 @@
|
|
|
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 PulpPythonClient
|
|
17
|
+
# A Serializer for yank/unyank requests (PEP 592).
|
|
18
|
+
class Yank
|
|
19
|
+
# The name of the package to yank or unyank.
|
|
20
|
+
attr_accessor :name
|
|
21
|
+
|
|
22
|
+
# The version of the package to yank or unyank.
|
|
23
|
+
attr_accessor :version
|
|
24
|
+
|
|
25
|
+
# The reason for yanking the package version.
|
|
26
|
+
attr_accessor :yanked_reason
|
|
27
|
+
|
|
28
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
29
|
+
def self.attribute_map
|
|
30
|
+
{
|
|
31
|
+
:'name' => :'name',
|
|
32
|
+
:'version' => :'version',
|
|
33
|
+
:'yanked_reason' => :'yanked_reason'
|
|
34
|
+
}
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# Returns all the JSON keys this model knows about
|
|
38
|
+
def self.acceptable_attributes
|
|
39
|
+
attribute_map.values
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# Attribute type mapping.
|
|
43
|
+
def self.openapi_types
|
|
44
|
+
{
|
|
45
|
+
:'name' => :'String',
|
|
46
|
+
:'version' => :'String',
|
|
47
|
+
:'yanked_reason' => :'String'
|
|
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 `PulpPythonClient::Yank` 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 `PulpPythonClient::Yank`. 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?(:'name')
|
|
73
|
+
self.name = attributes[:'name']
|
|
74
|
+
else
|
|
75
|
+
self.name = nil
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
if attributes.key?(:'version')
|
|
79
|
+
self.version = attributes[:'version']
|
|
80
|
+
else
|
|
81
|
+
self.version = nil
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
if attributes.key?(:'yanked_reason')
|
|
85
|
+
self.yanked_reason = attributes[:'yanked_reason']
|
|
86
|
+
else
|
|
87
|
+
self.yanked_reason = ''
|
|
88
|
+
end
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
92
|
+
# @return Array for valid properties with the reasons
|
|
93
|
+
def list_invalid_properties
|
|
94
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
95
|
+
invalid_properties = Array.new
|
|
96
|
+
if @name.nil?
|
|
97
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
if @name.to_s.length < 1
|
|
101
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
if @version.nil?
|
|
105
|
+
invalid_properties.push('invalid value for "version", version cannot be nil.')
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
if @version.to_s.length < 1
|
|
109
|
+
invalid_properties.push('invalid value for "version", the character length must be great than or equal to 1.')
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
invalid_properties
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
# Check to see if the all the properties in the model are valid
|
|
116
|
+
# @return true if the model is valid
|
|
117
|
+
def valid?
|
|
118
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
119
|
+
return false if @name.nil?
|
|
120
|
+
return false if @name.to_s.length < 1
|
|
121
|
+
return false if @version.nil?
|
|
122
|
+
return false if @version.to_s.length < 1
|
|
123
|
+
true
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
# Custom attribute writer method with validation
|
|
127
|
+
# @param [Object] name Value to be assigned
|
|
128
|
+
def name=(name)
|
|
129
|
+
if name.nil?
|
|
130
|
+
fail ArgumentError, 'name cannot be nil'
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
if name.to_s.length < 1
|
|
134
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
@name = name
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
# Custom attribute writer method with validation
|
|
141
|
+
# @param [Object] version Value to be assigned
|
|
142
|
+
def version=(version)
|
|
143
|
+
if version.nil?
|
|
144
|
+
fail ArgumentError, 'version cannot be nil'
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
if version.to_s.length < 1
|
|
148
|
+
fail ArgumentError, 'invalid value for "version", the character length must be great than or equal to 1.'
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
@version = version
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
# Checks equality by comparing each attribute.
|
|
155
|
+
# @param [Object] Object to be compared
|
|
156
|
+
def ==(o)
|
|
157
|
+
return true if self.equal?(o)
|
|
158
|
+
self.class == o.class &&
|
|
159
|
+
name == o.name &&
|
|
160
|
+
version == o.version &&
|
|
161
|
+
yanked_reason == o.yanked_reason
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
# @see the `==` method
|
|
165
|
+
# @param [Object] Object to be compared
|
|
166
|
+
def eql?(o)
|
|
167
|
+
self == o
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
# Calculates hash code according to all attributes.
|
|
171
|
+
# @return [Integer] Hash code
|
|
172
|
+
def hash
|
|
173
|
+
[name, version, yanked_reason].hash
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
# Builds the object from hash
|
|
177
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
178
|
+
# @return [Object] Returns the model itself
|
|
179
|
+
def self.build_from_hash(attributes)
|
|
180
|
+
return nil unless attributes.is_a?(Hash)
|
|
181
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
182
|
+
transformed_hash = {}
|
|
183
|
+
openapi_types.each_pair do |key, type|
|
|
184
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
185
|
+
transformed_hash["#{key}"] = nil
|
|
186
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
187
|
+
# check to ensure the input is an array given that the attribute
|
|
188
|
+
# is documented as an array but the input is not
|
|
189
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
190
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
191
|
+
end
|
|
192
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
193
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
194
|
+
end
|
|
195
|
+
end
|
|
196
|
+
new(transformed_hash)
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
# Deserializes the data based on type
|
|
200
|
+
# @param string type Data type
|
|
201
|
+
# @param string value Value to be deserialized
|
|
202
|
+
# @return [Object] Deserialized data
|
|
203
|
+
def self._deserialize(type, value)
|
|
204
|
+
case type.to_sym
|
|
205
|
+
when :Time
|
|
206
|
+
Time.parse(value)
|
|
207
|
+
when :Date
|
|
208
|
+
Date.parse(value)
|
|
209
|
+
when :String
|
|
210
|
+
value.to_s
|
|
211
|
+
when :Integer
|
|
212
|
+
value.to_i
|
|
213
|
+
when :Float
|
|
214
|
+
value.to_f
|
|
215
|
+
when :Boolean
|
|
216
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
217
|
+
true
|
|
218
|
+
else
|
|
219
|
+
false
|
|
220
|
+
end
|
|
221
|
+
when :Object
|
|
222
|
+
# generic object (usually a Hash), return directly
|
|
223
|
+
value
|
|
224
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
225
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
226
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
227
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
228
|
+
k_type = Regexp.last_match[:k_type]
|
|
229
|
+
v_type = Regexp.last_match[:v_type]
|
|
230
|
+
{}.tap do |hash|
|
|
231
|
+
value.each do |k, v|
|
|
232
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
233
|
+
end
|
|
234
|
+
end
|
|
235
|
+
else # model
|
|
236
|
+
# models (e.g. Pet) or oneOf
|
|
237
|
+
klass = PulpPythonClient.const_get(type)
|
|
238
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
239
|
+
end
|
|
240
|
+
end
|
|
241
|
+
|
|
242
|
+
# Returns the string representation of the object
|
|
243
|
+
# @return [String] String presentation of the object
|
|
244
|
+
def to_s
|
|
245
|
+
to_hash.to_s
|
|
246
|
+
end
|
|
247
|
+
|
|
248
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
249
|
+
# @return [Hash] Returns the object in the form of hash
|
|
250
|
+
def to_body
|
|
251
|
+
to_hash
|
|
252
|
+
end
|
|
253
|
+
|
|
254
|
+
# Returns the object in the form of hash
|
|
255
|
+
# @return [Hash] Returns the object in the form of hash
|
|
256
|
+
def to_hash
|
|
257
|
+
hash = {}
|
|
258
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
259
|
+
value = self.send(attr)
|
|
260
|
+
if value.nil?
|
|
261
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
262
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
263
|
+
end
|
|
264
|
+
|
|
265
|
+
hash[param] = _to_hash(value)
|
|
266
|
+
end
|
|
267
|
+
hash
|
|
268
|
+
end
|
|
269
|
+
|
|
270
|
+
# Outputs non-array value in the form of hash
|
|
271
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
272
|
+
# @param [Object] value Any valid value
|
|
273
|
+
# @return [Hash] Returns the value in the form of hash
|
|
274
|
+
def _to_hash(value)
|
|
275
|
+
if value.is_a?(Array)
|
|
276
|
+
value.compact.map { |v| _to_hash(v) }
|
|
277
|
+
elsif value.is_a?(Hash)
|
|
278
|
+
{}.tap do |hash|
|
|
279
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
280
|
+
end
|
|
281
|
+
elsif value.respond_to? :to_hash
|
|
282
|
+
value.to_hash
|
|
283
|
+
else
|
|
284
|
+
value
|
|
285
|
+
end
|
|
286
|
+
end
|
|
287
|
+
|
|
288
|
+
end
|
|
289
|
+
|
|
290
|
+
end
|
data/lib/pulp_python_client.rb
CHANGED
|
@@ -31,6 +31,7 @@ require 'pulp_python_client/models/package_types_enum'
|
|
|
31
31
|
require 'pulp_python_client/models/package_upload_task_response'
|
|
32
32
|
require 'pulp_python_client/models/paginated_repository_version_response_list'
|
|
33
33
|
require 'pulp_python_client/models/paginatedpython_package_provenance_response_list'
|
|
34
|
+
require 'pulp_python_client/models/paginatedpython_package_yank_response_list'
|
|
34
35
|
require 'pulp_python_client/models/paginatedpython_python_blocklist_entry_response_list'
|
|
35
36
|
require 'pulp_python_client/models/paginatedpython_python_distribution_response_list'
|
|
36
37
|
require 'pulp_python_client/models/paginatedpython_python_package_content_response_list'
|
|
@@ -43,6 +44,7 @@ require 'pulp_python_client/models/patchedpython_python_repository'
|
|
|
43
44
|
require 'pulp_python_client/models/policy_enum'
|
|
44
45
|
require 'pulp_python_client/models/protocol_version_enum'
|
|
45
46
|
require 'pulp_python_client/models/python_package_provenance_response'
|
|
47
|
+
require 'pulp_python_client/models/python_package_yank_response'
|
|
46
48
|
require 'pulp_python_client/models/python_python_blocklist_entry'
|
|
47
49
|
require 'pulp_python_client/models/python_python_blocklist_entry_response'
|
|
48
50
|
require 'pulp_python_client/models/python_python_distribution'
|
|
@@ -66,10 +68,12 @@ require 'pulp_python_client/models/set_label_response'
|
|
|
66
68
|
require 'pulp_python_client/models/summary_response'
|
|
67
69
|
require 'pulp_python_client/models/unset_label'
|
|
68
70
|
require 'pulp_python_client/models/unset_label_response'
|
|
71
|
+
require 'pulp_python_client/models/yank'
|
|
69
72
|
|
|
70
73
|
# APIs
|
|
71
74
|
require 'pulp_python_client/api/content_packages_api'
|
|
72
75
|
require 'pulp_python_client/api/content_provenance_api'
|
|
76
|
+
require 'pulp_python_client/api/content_yanks_api'
|
|
73
77
|
require 'pulp_python_client/api/distributions_pypi_api'
|
|
74
78
|
require 'pulp_python_client/api/publications_pypi_api'
|
|
75
79
|
require 'pulp_python_client/api/pypi_api'
|
|
@@ -77,6 +81,8 @@ require 'pulp_python_client/api/pypi_legacy_api'
|
|
|
77
81
|
require 'pulp_python_client/api/pypi_metadata_api'
|
|
78
82
|
require 'pulp_python_client/api/pypi_provenance_api'
|
|
79
83
|
require 'pulp_python_client/api/pypi_simple_api'
|
|
84
|
+
require 'pulp_python_client/api/pypi_unyank_api'
|
|
85
|
+
require 'pulp_python_client/api/pypi_yank_api'
|
|
80
86
|
require 'pulp_python_client/api/remotes_python_api'
|
|
81
87
|
require 'pulp_python_client/api/repositories_python_api'
|
|
82
88
|
require 'pulp_python_client/api/repositories_python_blocklist_entries_api'
|
|
@@ -121,6 +121,7 @@ describe 'ContentPackagesApi' do
|
|
|
121
121
|
# @option opts [String] :version__gte Filter results where version is greater than or equal to value
|
|
122
122
|
# @option opts [String] :version__lt Filter results where version is less than value
|
|
123
123
|
# @option opts [String] :version__lte Filter results where version is less than or equal to value
|
|
124
|
+
# @option opts [String] :version_specifier Filter by PEP 440 version specifier (e.g., >=2.4,<3.0 or ~=1.26)
|
|
124
125
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
125
126
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
126
127
|
# @return [PaginatedpythonPythonPackageContentResponseList]
|
|
@@ -0,0 +1,104 @@
|
|
|
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 PulpPythonClient::ContentYanksApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'ContentYanksApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = PulpPythonClient::ContentYanksApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of ContentYanksApi' do
|
|
30
|
+
it 'should create an instance of ContentYanksApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(PulpPythonClient::ContentYanksApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for list
|
|
36
|
+
# List package yanks
|
|
37
|
+
# Read-only viewset for PackageYank content units (PEP 592). PackageYank markers indicate that a package version has been yanked in a repository. Use the /yank/ and /unyank/ PyPI endpoints to create or remove these markers.
|
|
38
|
+
# @param [Hash] opts the optional parameters
|
|
39
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
40
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
41
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
42
|
+
# @option opts [Array<String>] :ordering Ordering * `pk` - Pk * `-pk` - Pk (descending)
|
|
43
|
+
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
|
44
|
+
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
|
45
|
+
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
|
46
|
+
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
47
|
+
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
48
|
+
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
|
49
|
+
# @option opts [String] :repository_version
|
|
50
|
+
# @option opts [String] :repository_version_added
|
|
51
|
+
# @option opts [String] :repository_version_removed
|
|
52
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
53
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
54
|
+
# @return [PaginatedpythonPackageYankResponseList]
|
|
55
|
+
describe 'list 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 read
|
|
62
|
+
# Inspect a package yank
|
|
63
|
+
# Read-only viewset for PackageYank content units (PEP 592). PackageYank markers indicate that a package version has been yanked in a repository. Use the /yank/ and /unyank/ PyPI endpoints to create or remove these markers.
|
|
64
|
+
# @param python_package_yank_href
|
|
65
|
+
# @param [Hash] opts the optional parameters
|
|
66
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
67
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
68
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
69
|
+
# @return [PythonPackageYankResponse]
|
|
70
|
+
describe 'read test' do
|
|
71
|
+
it 'should work' do
|
|
72
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# unit tests for set_label
|
|
77
|
+
# Set a label
|
|
78
|
+
# Set a single pulp_label on the object to a specific value or null.
|
|
79
|
+
# @param python_package_yank_href
|
|
80
|
+
# @param set_label
|
|
81
|
+
# @param [Hash] opts the optional parameters
|
|
82
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
83
|
+
# @return [SetLabelResponse]
|
|
84
|
+
describe 'set_label test' do
|
|
85
|
+
it 'should work' do
|
|
86
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
87
|
+
end
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# unit tests for unset_label
|
|
91
|
+
# Unset a label
|
|
92
|
+
# Unset a single pulp_label on the object.
|
|
93
|
+
# @param python_package_yank_href
|
|
94
|
+
# @param unset_label
|
|
95
|
+
# @param [Hash] opts the optional parameters
|
|
96
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
97
|
+
# @return [UnsetLabelResponse]
|
|
98
|
+
describe 'unset_label test' do
|
|
99
|
+
it 'should work' do
|
|
100
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
101
|
+
end
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
end
|
|
@@ -43,7 +43,7 @@ describe 'PypiLegacyApi' do
|
|
|
43
43
|
# @option opts [String] :action Defaults to `file_upload`, don't change it or request will fail!
|
|
44
44
|
# @option opts [ProtocolVersionEnum] :protocol_version Protocol version to use for the upload. Only version 1 is supported. * `1` - 1
|
|
45
45
|
# @option opts [FiletypeEnum] :filetype Type of artifact to upload. * `bdist_wheel` - bdist_wheel * `sdist` - sdist
|
|
46
|
-
# @option opts [MetadataVersionEnum] :metadata_version Metadata version of the uploaded package. * `1.0` - 1.0 * `1.1` - 1.1 * `1.2` - 1.2 * `2.0` - 2.0 * `2.1` - 2.1 * `2.2` - 2.2 * `2.3` - 2.3 * `2.4` - 2.4
|
|
46
|
+
# @option opts [MetadataVersionEnum] :metadata_version Metadata version of the uploaded package. * `1.0` - 1.0 * `1.1` - 1.1 * `1.2` - 1.2 * `2.0` - 2.0 * `2.1` - 2.1 * `2.2` - 2.2 * `2.3` - 2.3 * `2.4` - 2.4 * `2.5` - 2.5
|
|
47
47
|
# @option opts [Object] :attestations
|
|
48
48
|
# @return [PackageUploadTaskResponse]
|
|
49
49
|
describe 'create test' do
|
|
@@ -43,7 +43,7 @@ describe 'PypiSimpleApi' do
|
|
|
43
43
|
# @option opts [String] :action Defaults to `file_upload`, don't change it or request will fail!
|
|
44
44
|
# @option opts [ProtocolVersionEnum] :protocol_version Protocol version to use for the upload. Only version 1 is supported. * `1` - 1
|
|
45
45
|
# @option opts [FiletypeEnum] :filetype Type of artifact to upload. * `bdist_wheel` - bdist_wheel * `sdist` - sdist
|
|
46
|
-
# @option opts [MetadataVersionEnum] :metadata_version Metadata version of the uploaded package. * `1.0` - 1.0 * `1.1` - 1.1 * `1.2` - 1.2 * `2.0` - 2.0 * `2.1` - 2.1 * `2.2` - 2.2 * `2.3` - 2.3 * `2.4` - 2.4
|
|
46
|
+
# @option opts [MetadataVersionEnum] :metadata_version Metadata version of the uploaded package. * `1.0` - 1.0 * `1.1` - 1.1 * `1.2` - 1.2 * `2.0` - 2.0 * `2.1` - 2.1 * `2.2` - 2.2 * `2.3` - 2.3 * `2.4` - 2.4 * `2.5` - 2.5
|
|
47
47
|
# @option opts [Object] :attestations
|
|
48
48
|
# @return [PackageUploadTaskResponse]
|
|
49
49
|
describe 'create test' do
|
|
@@ -0,0 +1,49 @@
|
|
|
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 PulpPythonClient::PypiUnyankApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'PypiUnyankApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = PulpPythonClient::PypiUnyankApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of PypiUnyankApi' do
|
|
30
|
+
it 'should create an instance of PypiUnyankApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(PulpPythonClient::PypiUnyankApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for unyank
|
|
36
|
+
# Unyank a package version
|
|
37
|
+
# Unyank a package version, unmarking all its files with data-yanked.
|
|
38
|
+
# @param path
|
|
39
|
+
# @param yank
|
|
40
|
+
# @param [Hash] opts the optional parameters
|
|
41
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
42
|
+
# @return [AsyncOperationResponse]
|
|
43
|
+
describe 'unyank test' do
|
|
44
|
+
it 'should work' do
|
|
45
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
end
|
|
@@ -0,0 +1,49 @@
|
|
|
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 PulpPythonClient::PypiYankApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'PypiYankApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = PulpPythonClient::PypiYankApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of PypiYankApi' do
|
|
30
|
+
it 'should create an instance of PypiYankApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(PulpPythonClient::PypiYankApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for yank
|
|
36
|
+
# Yank a package version
|
|
37
|
+
# Yank a package version, marking all its files with data-yanked.
|
|
38
|
+
# @param path
|
|
39
|
+
# @param yank
|
|
40
|
+
# @param [Hash] opts the optional parameters
|
|
41
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
42
|
+
# @return [AsyncOperationResponse]
|
|
43
|
+
describe 'yank test' do
|
|
44
|
+
it 'should work' do
|
|
45
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
end
|
|
@@ -0,0 +1,54 @@
|
|
|
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 PulpPythonClient::PaginatedpythonPackageYankResponseList
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe PulpPythonClient::PaginatedpythonPackageYankResponseList do
|
|
21
|
+
let(:instance) { PulpPythonClient::PaginatedpythonPackageYankResponseList.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of PaginatedpythonPackageYankResponseList' do
|
|
24
|
+
it 'should create an instance of PaginatedpythonPackageYankResponseList' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(PulpPythonClient::PaginatedpythonPackageYankResponseList)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "count"' 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 "_next"' 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 "previous"' 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 "results"' 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
|
+
end
|