pulp_python_client 3.20.1 → 3.22.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 +18 -5
- data/docs/ContentPackagesApi.md +8 -4
- data/docs/ContentProvenanceApi.md +428 -0
- data/docs/FiletypeEnum.md +15 -0
- data/docs/MetadataVersionEnum.md +15 -0
- data/docs/PaginatedpythonPackageProvenanceResponseList.md +24 -0
- data/docs/PatchedpythonPythonDistribution.md +2 -0
- data/docs/PatchedpythonPythonRemote.md +3 -1
- data/docs/ProtocolVersionEnum.md +15 -0
- data/docs/PypiLegacyApi.md +9 -1
- data/docs/PypiProvenanceApi.md +91 -0
- data/docs/PypiSimpleApi.md +9 -1
- data/docs/PythonPackageProvenanceResponse.md +34 -0
- data/docs/PythonPythonDistribution.md +2 -0
- data/docs/PythonPythonDistributionResponse.md +2 -0
- data/docs/PythonPythonPackageContentResponse.md +5 -1
- data/docs/PythonPythonRemote.md +3 -1
- data/docs/PythonPythonRemoteResponse.md +3 -1
- data/docs/RepositoriesPythonVersionsApi.md +75 -0
- data/lib/pulp_python_client/api/content_packages_api.rb +9 -3
- data/lib/pulp_python_client/api/content_provenance_api.rb +448 -0
- data/lib/pulp_python_client/api/pypi_legacy_api.rb +12 -0
- data/lib/pulp_python_client/api/pypi_provenance_api.rb +110 -0
- data/lib/pulp_python_client/api/pypi_simple_api.rb +12 -0
- data/lib/pulp_python_client/api/repositories_python_versions_api.rb +66 -0
- data/lib/pulp_python_client/models/filetype_enum.rb +40 -0
- data/lib/pulp_python_client/models/metadata_version_enum.rb +46 -0
- data/lib/pulp_python_client/models/paginatedpython_package_provenance_response_list.rb +257 -0
- data/lib/pulp_python_client/models/patchedpython_python_distribution.rb +12 -1
- data/lib/pulp_python_client/models/patchedpython_python_remote.rb +16 -4
- data/lib/pulp_python_client/models/protocol_version_enum.rb +39 -0
- data/lib/pulp_python_client/models/python_package_provenance_response.rb +302 -0
- data/lib/pulp_python_client/models/python_python_distribution.rb +12 -1
- data/lib/pulp_python_client/models/python_python_distribution_response.rb +12 -1
- data/lib/pulp_python_client/models/python_python_package_content_response.rb +25 -5
- data/lib/pulp_python_client/models/python_python_remote.rb +16 -4
- data/lib/pulp_python_client/models/python_python_remote_response.rb +16 -4
- data/lib/pulp_python_client/version.rb +1 -1
- data/lib/pulp_python_client.rb +7 -0
- data/spec/api/content_packages_api_spec.rb +3 -1
- data/spec/api/content_provenance_api_spec.rb +123 -0
- data/spec/api/pypi_legacy_api_spec.rb +4 -0
- data/spec/api/pypi_provenance_api_spec.rb +53 -0
- data/spec/api/pypi_simple_api_spec.rb +4 -0
- data/spec/api/repositories_python_versions_api_spec.rb +13 -0
- data/spec/models/filetype_enum_spec.rb +30 -0
- data/spec/models/metadata_version_enum_spec.rb +30 -0
- data/spec/models/paginatedpython_package_provenance_response_list_spec.rb +54 -0
- data/spec/models/patchedpython_python_distribution_spec.rb +6 -0
- data/spec/models/patchedpython_python_remote_spec.rb +6 -0
- data/spec/models/protocol_version_enum_spec.rb +30 -0
- data/spec/models/python_package_provenance_response_spec.rb +84 -0
- data/spec/models/python_python_distribution_response_spec.rb +6 -0
- data/spec/models/python_python_distribution_spec.rb +6 -0
- data/spec/models/python_python_package_content_response_spec.rb +12 -0
- data/spec/models/python_python_remote_response_spec.rb +6 -0
- data/spec/models/python_python_remote_spec.rb +6 -0
- metadata +30 -2
|
@@ -0,0 +1,302 @@
|
|
|
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 PackageProvenance.
|
|
18
|
+
class PythonPackageProvenanceResponse
|
|
19
|
+
attr_accessor :pulp_href
|
|
20
|
+
|
|
21
|
+
# The Pulp Resource Name (PRN).
|
|
22
|
+
attr_accessor :prn
|
|
23
|
+
|
|
24
|
+
# Timestamp of creation.
|
|
25
|
+
attr_accessor :pulp_created
|
|
26
|
+
|
|
27
|
+
# Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
|
|
28
|
+
attr_accessor :pulp_last_updated
|
|
29
|
+
|
|
30
|
+
# A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
31
|
+
attr_accessor :pulp_labels
|
|
32
|
+
|
|
33
|
+
attr_accessor :vuln_report
|
|
34
|
+
|
|
35
|
+
# The package that the provenance is for.
|
|
36
|
+
attr_accessor :package
|
|
37
|
+
|
|
38
|
+
attr_accessor :provenance
|
|
39
|
+
|
|
40
|
+
attr_accessor :sha256
|
|
41
|
+
|
|
42
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
43
|
+
def self.attribute_map
|
|
44
|
+
{
|
|
45
|
+
:'pulp_href' => :'pulp_href',
|
|
46
|
+
:'prn' => :'prn',
|
|
47
|
+
:'pulp_created' => :'pulp_created',
|
|
48
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
|
49
|
+
:'pulp_labels' => :'pulp_labels',
|
|
50
|
+
:'vuln_report' => :'vuln_report',
|
|
51
|
+
:'package' => :'package',
|
|
52
|
+
:'provenance' => :'provenance',
|
|
53
|
+
:'sha256' => :'sha256'
|
|
54
|
+
}
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# Returns all the JSON keys this model knows about
|
|
58
|
+
def self.acceptable_attributes
|
|
59
|
+
attribute_map.values
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# Attribute type mapping.
|
|
63
|
+
def self.openapi_types
|
|
64
|
+
{
|
|
65
|
+
:'pulp_href' => :'String',
|
|
66
|
+
:'prn' => :'String',
|
|
67
|
+
:'pulp_created' => :'Time',
|
|
68
|
+
:'pulp_last_updated' => :'Time',
|
|
69
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
70
|
+
:'vuln_report' => :'String',
|
|
71
|
+
:'package' => :'String',
|
|
72
|
+
:'provenance' => :'Object',
|
|
73
|
+
:'sha256' => :'String'
|
|
74
|
+
}
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# List of attributes with nullable: true
|
|
78
|
+
def self.openapi_nullable
|
|
79
|
+
Set.new([
|
|
80
|
+
:'provenance',
|
|
81
|
+
])
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
# Initializes the object
|
|
85
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
86
|
+
def initialize(attributes = {})
|
|
87
|
+
if (!attributes.is_a?(Hash))
|
|
88
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpPythonClient::PythonPackageProvenanceResponse` initialize method"
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
92
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
93
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
94
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpPythonClient::PythonPackageProvenanceResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
95
|
+
end
|
|
96
|
+
h[k.to_sym] = v
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
if attributes.key?(:'pulp_href')
|
|
100
|
+
self.pulp_href = attributes[:'pulp_href']
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
if attributes.key?(:'prn')
|
|
104
|
+
self.prn = attributes[:'prn']
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
if attributes.key?(:'pulp_created')
|
|
108
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
if attributes.key?(:'pulp_last_updated')
|
|
112
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
if attributes.key?(:'pulp_labels')
|
|
116
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
117
|
+
self.pulp_labels = value
|
|
118
|
+
end
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
if attributes.key?(:'vuln_report')
|
|
122
|
+
self.vuln_report = attributes[:'vuln_report']
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
if attributes.key?(:'package')
|
|
126
|
+
self.package = attributes[:'package']
|
|
127
|
+
else
|
|
128
|
+
self.package = nil
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
if attributes.key?(:'provenance')
|
|
132
|
+
self.provenance = attributes[:'provenance']
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
if attributes.key?(:'sha256')
|
|
136
|
+
self.sha256 = attributes[:'sha256']
|
|
137
|
+
end
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
141
|
+
# @return Array for valid properties with the reasons
|
|
142
|
+
def list_invalid_properties
|
|
143
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
144
|
+
invalid_properties = Array.new
|
|
145
|
+
if @package.nil?
|
|
146
|
+
invalid_properties.push('invalid value for "package", package cannot be nil.')
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
invalid_properties
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
# Check to see if the all the properties in the model are valid
|
|
153
|
+
# @return true if the model is valid
|
|
154
|
+
def valid?
|
|
155
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
156
|
+
return false if @package.nil?
|
|
157
|
+
true
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
# Checks equality by comparing each attribute.
|
|
161
|
+
# @param [Object] Object to be compared
|
|
162
|
+
def ==(o)
|
|
163
|
+
return true if self.equal?(o)
|
|
164
|
+
self.class == o.class &&
|
|
165
|
+
pulp_href == o.pulp_href &&
|
|
166
|
+
prn == o.prn &&
|
|
167
|
+
pulp_created == o.pulp_created &&
|
|
168
|
+
pulp_last_updated == o.pulp_last_updated &&
|
|
169
|
+
pulp_labels == o.pulp_labels &&
|
|
170
|
+
vuln_report == o.vuln_report &&
|
|
171
|
+
package == o.package &&
|
|
172
|
+
provenance == o.provenance &&
|
|
173
|
+
sha256 == o.sha256
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
# @see the `==` method
|
|
177
|
+
# @param [Object] Object to be compared
|
|
178
|
+
def eql?(o)
|
|
179
|
+
self == o
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
# Calculates hash code according to all attributes.
|
|
183
|
+
# @return [Integer] Hash code
|
|
184
|
+
def hash
|
|
185
|
+
[pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, vuln_report, package, provenance, sha256].hash
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
# Builds the object from hash
|
|
189
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
190
|
+
# @return [Object] Returns the model itself
|
|
191
|
+
def self.build_from_hash(attributes)
|
|
192
|
+
return nil unless attributes.is_a?(Hash)
|
|
193
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
194
|
+
transformed_hash = {}
|
|
195
|
+
openapi_types.each_pair do |key, type|
|
|
196
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
197
|
+
transformed_hash["#{key}"] = nil
|
|
198
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
199
|
+
# check to ensure the input is an array given that the attribute
|
|
200
|
+
# is documented as an array but the input is not
|
|
201
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
202
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
203
|
+
end
|
|
204
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
205
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
206
|
+
end
|
|
207
|
+
end
|
|
208
|
+
new(transformed_hash)
|
|
209
|
+
end
|
|
210
|
+
|
|
211
|
+
# Deserializes the data based on type
|
|
212
|
+
# @param string type Data type
|
|
213
|
+
# @param string value Value to be deserialized
|
|
214
|
+
# @return [Object] Deserialized data
|
|
215
|
+
def self._deserialize(type, value)
|
|
216
|
+
case type.to_sym
|
|
217
|
+
when :Time
|
|
218
|
+
Time.parse(value)
|
|
219
|
+
when :Date
|
|
220
|
+
Date.parse(value)
|
|
221
|
+
when :String
|
|
222
|
+
value.to_s
|
|
223
|
+
when :Integer
|
|
224
|
+
value.to_i
|
|
225
|
+
when :Float
|
|
226
|
+
value.to_f
|
|
227
|
+
when :Boolean
|
|
228
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
229
|
+
true
|
|
230
|
+
else
|
|
231
|
+
false
|
|
232
|
+
end
|
|
233
|
+
when :Object
|
|
234
|
+
# generic object (usually a Hash), return directly
|
|
235
|
+
value
|
|
236
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
237
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
238
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
239
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
240
|
+
k_type = Regexp.last_match[:k_type]
|
|
241
|
+
v_type = Regexp.last_match[:v_type]
|
|
242
|
+
{}.tap do |hash|
|
|
243
|
+
value.each do |k, v|
|
|
244
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
245
|
+
end
|
|
246
|
+
end
|
|
247
|
+
else # model
|
|
248
|
+
# models (e.g. Pet) or oneOf
|
|
249
|
+
klass = PulpPythonClient.const_get(type)
|
|
250
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
251
|
+
end
|
|
252
|
+
end
|
|
253
|
+
|
|
254
|
+
# Returns the string representation of the object
|
|
255
|
+
# @return [String] String presentation of the object
|
|
256
|
+
def to_s
|
|
257
|
+
to_hash.to_s
|
|
258
|
+
end
|
|
259
|
+
|
|
260
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
261
|
+
# @return [Hash] Returns the object in the form of hash
|
|
262
|
+
def to_body
|
|
263
|
+
to_hash
|
|
264
|
+
end
|
|
265
|
+
|
|
266
|
+
# Returns the object in the form of hash
|
|
267
|
+
# @return [Hash] Returns the object in the form of hash
|
|
268
|
+
def to_hash
|
|
269
|
+
hash = {}
|
|
270
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
271
|
+
value = self.send(attr)
|
|
272
|
+
if value.nil?
|
|
273
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
274
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
275
|
+
end
|
|
276
|
+
|
|
277
|
+
hash[param] = _to_hash(value)
|
|
278
|
+
end
|
|
279
|
+
hash
|
|
280
|
+
end
|
|
281
|
+
|
|
282
|
+
# Outputs non-array value in the form of hash
|
|
283
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
284
|
+
# @param [Object] value Any valid value
|
|
285
|
+
# @return [Hash] Returns the value in the form of hash
|
|
286
|
+
def _to_hash(value)
|
|
287
|
+
if value.is_a?(Array)
|
|
288
|
+
value.compact.map { |v| _to_hash(v) }
|
|
289
|
+
elsif value.is_a?(Hash)
|
|
290
|
+
{}.tap do |hash|
|
|
291
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
292
|
+
end
|
|
293
|
+
elsif value.respond_to? :to_hash
|
|
294
|
+
value.to_hash
|
|
295
|
+
else
|
|
296
|
+
value
|
|
297
|
+
end
|
|
298
|
+
end
|
|
299
|
+
|
|
300
|
+
end
|
|
301
|
+
|
|
302
|
+
end
|
|
@@ -36,6 +36,9 @@ module PulpPythonClient
|
|
|
36
36
|
# Publication to be served
|
|
37
37
|
attr_accessor :publication
|
|
38
38
|
|
|
39
|
+
# RepositoryVersion to be served.
|
|
40
|
+
attr_accessor :repository_version
|
|
41
|
+
|
|
39
42
|
# Allow packages to be uploaded to this index.
|
|
40
43
|
attr_accessor :allow_uploads
|
|
41
44
|
|
|
@@ -52,6 +55,7 @@ module PulpPythonClient
|
|
|
52
55
|
:'name' => :'name',
|
|
53
56
|
:'repository' => :'repository',
|
|
54
57
|
:'publication' => :'publication',
|
|
58
|
+
:'repository_version' => :'repository_version',
|
|
55
59
|
:'allow_uploads' => :'allow_uploads',
|
|
56
60
|
:'remote' => :'remote'
|
|
57
61
|
}
|
|
@@ -72,6 +76,7 @@ module PulpPythonClient
|
|
|
72
76
|
:'name' => :'String',
|
|
73
77
|
:'repository' => :'String',
|
|
74
78
|
:'publication' => :'String',
|
|
79
|
+
:'repository_version' => :'String',
|
|
75
80
|
:'allow_uploads' => :'Boolean',
|
|
76
81
|
:'remote' => :'String'
|
|
77
82
|
}
|
|
@@ -83,6 +88,7 @@ module PulpPythonClient
|
|
|
83
88
|
:'content_guard',
|
|
84
89
|
:'repository',
|
|
85
90
|
:'publication',
|
|
91
|
+
:'repository_version',
|
|
86
92
|
:'remote'
|
|
87
93
|
])
|
|
88
94
|
end
|
|
@@ -138,6 +144,10 @@ module PulpPythonClient
|
|
|
138
144
|
self.publication = attributes[:'publication']
|
|
139
145
|
end
|
|
140
146
|
|
|
147
|
+
if attributes.key?(:'repository_version')
|
|
148
|
+
self.repository_version = attributes[:'repository_version']
|
|
149
|
+
end
|
|
150
|
+
|
|
141
151
|
if attributes.key?(:'allow_uploads')
|
|
142
152
|
self.allow_uploads = attributes[:'allow_uploads']
|
|
143
153
|
else
|
|
@@ -224,6 +234,7 @@ module PulpPythonClient
|
|
|
224
234
|
name == o.name &&
|
|
225
235
|
repository == o.repository &&
|
|
226
236
|
publication == o.publication &&
|
|
237
|
+
repository_version == o.repository_version &&
|
|
227
238
|
allow_uploads == o.allow_uploads &&
|
|
228
239
|
remote == o.remote
|
|
229
240
|
end
|
|
@@ -237,7 +248,7 @@ module PulpPythonClient
|
|
|
237
248
|
# Calculates hash code according to all attributes.
|
|
238
249
|
# @return [Integer] Hash code
|
|
239
250
|
def hash
|
|
240
|
-
[base_path, content_guard, hidden, pulp_labels, name, repository, publication, allow_uploads, remote].hash
|
|
251
|
+
[base_path, content_guard, hidden, pulp_labels, name, repository, publication, repository_version, allow_uploads, remote].hash
|
|
241
252
|
end
|
|
242
253
|
|
|
243
254
|
# Builds the object from hash
|
|
@@ -52,6 +52,9 @@ module PulpPythonClient
|
|
|
52
52
|
# Publication to be served
|
|
53
53
|
attr_accessor :publication
|
|
54
54
|
|
|
55
|
+
# RepositoryVersion to be served.
|
|
56
|
+
attr_accessor :repository_version
|
|
57
|
+
|
|
55
58
|
# Allow packages to be uploaded to this index.
|
|
56
59
|
attr_accessor :allow_uploads
|
|
57
60
|
|
|
@@ -74,6 +77,7 @@ module PulpPythonClient
|
|
|
74
77
|
:'name' => :'name',
|
|
75
78
|
:'repository' => :'repository',
|
|
76
79
|
:'publication' => :'publication',
|
|
80
|
+
:'repository_version' => :'repository_version',
|
|
77
81
|
:'allow_uploads' => :'allow_uploads',
|
|
78
82
|
:'remote' => :'remote'
|
|
79
83
|
}
|
|
@@ -100,6 +104,7 @@ module PulpPythonClient
|
|
|
100
104
|
:'name' => :'String',
|
|
101
105
|
:'repository' => :'String',
|
|
102
106
|
:'publication' => :'String',
|
|
107
|
+
:'repository_version' => :'String',
|
|
103
108
|
:'allow_uploads' => :'Boolean',
|
|
104
109
|
:'remote' => :'String'
|
|
105
110
|
}
|
|
@@ -111,6 +116,7 @@ module PulpPythonClient
|
|
|
111
116
|
:'content_guard',
|
|
112
117
|
:'repository',
|
|
113
118
|
:'publication',
|
|
119
|
+
:'repository_version',
|
|
114
120
|
:'remote'
|
|
115
121
|
])
|
|
116
122
|
end
|
|
@@ -190,6 +196,10 @@ module PulpPythonClient
|
|
|
190
196
|
self.publication = attributes[:'publication']
|
|
191
197
|
end
|
|
192
198
|
|
|
199
|
+
if attributes.key?(:'repository_version')
|
|
200
|
+
self.repository_version = attributes[:'repository_version']
|
|
201
|
+
end
|
|
202
|
+
|
|
193
203
|
if attributes.key?(:'allow_uploads')
|
|
194
204
|
self.allow_uploads = attributes[:'allow_uploads']
|
|
195
205
|
else
|
|
@@ -244,6 +254,7 @@ module PulpPythonClient
|
|
|
244
254
|
name == o.name &&
|
|
245
255
|
repository == o.repository &&
|
|
246
256
|
publication == o.publication &&
|
|
257
|
+
repository_version == o.repository_version &&
|
|
247
258
|
allow_uploads == o.allow_uploads &&
|
|
248
259
|
remote == o.remote
|
|
249
260
|
end
|
|
@@ -257,7 +268,7 @@ module PulpPythonClient
|
|
|
257
268
|
# Calculates hash code according to all attributes.
|
|
258
269
|
# @return [Integer] Hash code
|
|
259
270
|
def hash
|
|
260
|
-
[pulp_href, prn, pulp_created, pulp_last_updated, base_path, base_url, content_guard, no_content_change_since, hidden, pulp_labels, name, repository, publication, allow_uploads, remote].hash
|
|
271
|
+
[pulp_href, prn, pulp_created, pulp_last_updated, base_path, base_url, content_guard, no_content_change_since, hidden, pulp_labels, name, repository, publication, repository_version, allow_uploads, remote].hash
|
|
261
272
|
end
|
|
262
273
|
|
|
263
274
|
# Builds the object from hash
|
|
@@ -119,12 +119,18 @@ module PulpPythonClient
|
|
|
119
119
|
# The tag that indicates which Python implementation or version the package requires.
|
|
120
120
|
attr_accessor :python_version
|
|
121
121
|
|
|
122
|
+
# The size of the package in bytes.
|
|
123
|
+
attr_accessor :size
|
|
124
|
+
|
|
122
125
|
# The SHA256 digest of this package.
|
|
123
126
|
attr_accessor :sha256
|
|
124
127
|
|
|
125
128
|
# The SHA256 digest of the package's METADATA file.
|
|
126
129
|
attr_accessor :metadata_sha256
|
|
127
130
|
|
|
131
|
+
# The created provenance object on upload.
|
|
132
|
+
attr_accessor :provenance
|
|
133
|
+
|
|
128
134
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
129
135
|
def self.attribute_map
|
|
130
136
|
{
|
|
@@ -166,8 +172,10 @@ module PulpPythonClient
|
|
|
166
172
|
:'filename' => :'filename',
|
|
167
173
|
:'packagetype' => :'packagetype',
|
|
168
174
|
:'python_version' => :'python_version',
|
|
175
|
+
:'size' => :'size',
|
|
169
176
|
:'sha256' => :'sha256',
|
|
170
|
-
:'metadata_sha256' => :'metadata_sha256'
|
|
177
|
+
:'metadata_sha256' => :'metadata_sha256',
|
|
178
|
+
:'provenance' => :'provenance'
|
|
171
179
|
}
|
|
172
180
|
end
|
|
173
181
|
|
|
@@ -217,8 +225,10 @@ module PulpPythonClient
|
|
|
217
225
|
:'filename' => :'String',
|
|
218
226
|
:'packagetype' => :'String',
|
|
219
227
|
:'python_version' => :'String',
|
|
228
|
+
:'size' => :'Integer',
|
|
220
229
|
:'sha256' => :'String',
|
|
221
|
-
:'metadata_sha256' => :'String'
|
|
230
|
+
:'metadata_sha256' => :'String',
|
|
231
|
+
:'provenance' => :'String'
|
|
222
232
|
}
|
|
223
233
|
end
|
|
224
234
|
|
|
@@ -234,7 +244,7 @@ module PulpPythonClient
|
|
|
234
244
|
:'provides_extras',
|
|
235
245
|
:'dynamic',
|
|
236
246
|
:'license_file',
|
|
237
|
-
:'metadata_sha256'
|
|
247
|
+
:'metadata_sha256',
|
|
238
248
|
])
|
|
239
249
|
end
|
|
240
250
|
|
|
@@ -407,6 +417,10 @@ module PulpPythonClient
|
|
|
407
417
|
self.python_version = attributes[:'python_version']
|
|
408
418
|
end
|
|
409
419
|
|
|
420
|
+
if attributes.key?(:'size')
|
|
421
|
+
self.size = attributes[:'size']
|
|
422
|
+
end
|
|
423
|
+
|
|
410
424
|
if attributes.key?(:'sha256')
|
|
411
425
|
self.sha256 = attributes[:'sha256']
|
|
412
426
|
else
|
|
@@ -416,6 +430,10 @@ module PulpPythonClient
|
|
|
416
430
|
if attributes.key?(:'metadata_sha256')
|
|
417
431
|
self.metadata_sha256 = attributes[:'metadata_sha256']
|
|
418
432
|
end
|
|
433
|
+
|
|
434
|
+
if attributes.key?(:'provenance')
|
|
435
|
+
self.provenance = attributes[:'provenance']
|
|
436
|
+
end
|
|
419
437
|
end
|
|
420
438
|
|
|
421
439
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -476,8 +494,10 @@ module PulpPythonClient
|
|
|
476
494
|
filename == o.filename &&
|
|
477
495
|
packagetype == o.packagetype &&
|
|
478
496
|
python_version == o.python_version &&
|
|
497
|
+
size == o.size &&
|
|
479
498
|
sha256 == o.sha256 &&
|
|
480
|
-
metadata_sha256 == o.metadata_sha256
|
|
499
|
+
metadata_sha256 == o.metadata_sha256 &&
|
|
500
|
+
provenance == o.provenance
|
|
481
501
|
end
|
|
482
502
|
|
|
483
503
|
# @see the `==` method
|
|
@@ -489,7 +509,7 @@ module PulpPythonClient
|
|
|
489
509
|
# Calculates hash code according to all attributes.
|
|
490
510
|
# @return [Integer] Hash code
|
|
491
511
|
def hash
|
|
492
|
-
[pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, vuln_report, artifact, author, author_email, description, home_page, keywords, license, metadata_version, name, platform, summary, version, classifiers, download_url, supported_platform, maintainer, maintainer_email, obsoletes_dist, project_url, project_urls, provides_dist, requires_external, requires_dist, requires_python, description_content_type, provides_extras, dynamic, license_expression, license_file, filename, packagetype, python_version, sha256, metadata_sha256].hash
|
|
512
|
+
[pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, vuln_report, artifact, author, author_email, description, home_page, keywords, license, metadata_version, name, platform, summary, version, classifiers, download_url, supported_platform, maintainer, maintainer_email, obsoletes_dist, project_url, project_urls, provides_dist, requires_external, requires_dist, requires_python, description_content_type, provides_extras, dynamic, license_expression, license_file, filename, packagetype, python_version, size, sha256, metadata_sha256, provenance].hash
|
|
493
513
|
end
|
|
494
514
|
|
|
495
515
|
# Builds the object from hash
|
|
@@ -96,6 +96,9 @@ module PulpPythonClient
|
|
|
96
96
|
# List of platforms to exclude syncing Python packages for. Possible valuesinclude: windows, macos, freebsd, and linux.
|
|
97
97
|
attr_accessor :exclude_platforms
|
|
98
98
|
|
|
99
|
+
# Whether to sync available provenances for Python packages.
|
|
100
|
+
attr_accessor :provenance
|
|
101
|
+
|
|
99
102
|
class EnumAttributeValidator
|
|
100
103
|
attr_reader :datatype
|
|
101
104
|
attr_reader :allowable_values
|
|
@@ -147,7 +150,8 @@ module PulpPythonClient
|
|
|
147
150
|
:'prereleases' => :'prereleases',
|
|
148
151
|
:'package_types' => :'package_types',
|
|
149
152
|
:'keep_latest_packages' => :'keep_latest_packages',
|
|
150
|
-
:'exclude_platforms' => :'exclude_platforms'
|
|
153
|
+
:'exclude_platforms' => :'exclude_platforms',
|
|
154
|
+
:'provenance' => :'provenance'
|
|
151
155
|
}
|
|
152
156
|
end
|
|
153
157
|
|
|
@@ -185,7 +189,8 @@ module PulpPythonClient
|
|
|
185
189
|
:'prereleases' => :'Boolean',
|
|
186
190
|
:'package_types' => :'Array<PackageTypesEnum>',
|
|
187
191
|
:'keep_latest_packages' => :'Integer',
|
|
188
|
-
:'exclude_platforms' => :'Array<ExcludePlatformsEnum>'
|
|
192
|
+
:'exclude_platforms' => :'Array<ExcludePlatformsEnum>',
|
|
193
|
+
:'provenance' => :'Boolean'
|
|
189
194
|
}
|
|
190
195
|
end
|
|
191
196
|
|
|
@@ -350,6 +355,12 @@ module PulpPythonClient
|
|
|
350
355
|
self.exclude_platforms = value
|
|
351
356
|
end
|
|
352
357
|
end
|
|
358
|
+
|
|
359
|
+
if attributes.key?(:'provenance')
|
|
360
|
+
self.provenance = attributes[:'provenance']
|
|
361
|
+
else
|
|
362
|
+
self.provenance = false
|
|
363
|
+
end
|
|
353
364
|
end
|
|
354
365
|
|
|
355
366
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -626,7 +637,8 @@ module PulpPythonClient
|
|
|
626
637
|
prereleases == o.prereleases &&
|
|
627
638
|
package_types == o.package_types &&
|
|
628
639
|
keep_latest_packages == o.keep_latest_packages &&
|
|
629
|
-
exclude_platforms == o.exclude_platforms
|
|
640
|
+
exclude_platforms == o.exclude_platforms &&
|
|
641
|
+
provenance == o.provenance
|
|
630
642
|
end
|
|
631
643
|
|
|
632
644
|
# @see the `==` method
|
|
@@ -638,7 +650,7 @@ module PulpPythonClient
|
|
|
638
650
|
# Calculates hash code according to all attributes.
|
|
639
651
|
# @return [Integer] Hash code
|
|
640
652
|
def hash
|
|
641
|
-
[name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, pulp_labels, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, includes, excludes, prereleases, package_types, keep_latest_packages, exclude_platforms].hash
|
|
653
|
+
[name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, pulp_labels, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, includes, excludes, prereleases, package_types, keep_latest_packages, exclude_platforms, provenance].hash
|
|
642
654
|
end
|
|
643
655
|
|
|
644
656
|
# Builds the object from hash
|
|
@@ -95,6 +95,9 @@ module PulpPythonClient
|
|
|
95
95
|
# List of platforms to exclude syncing Python packages for. Possible valuesinclude: windows, macos, freebsd, and linux.
|
|
96
96
|
attr_accessor :exclude_platforms
|
|
97
97
|
|
|
98
|
+
# Whether to sync available provenances for Python packages.
|
|
99
|
+
attr_accessor :provenance
|
|
100
|
+
|
|
98
101
|
class EnumAttributeValidator
|
|
99
102
|
attr_reader :datatype
|
|
100
103
|
attr_reader :allowable_values
|
|
@@ -146,7 +149,8 @@ module PulpPythonClient
|
|
|
146
149
|
:'prereleases' => :'prereleases',
|
|
147
150
|
:'package_types' => :'package_types',
|
|
148
151
|
:'keep_latest_packages' => :'keep_latest_packages',
|
|
149
|
-
:'exclude_platforms' => :'exclude_platforms'
|
|
152
|
+
:'exclude_platforms' => :'exclude_platforms',
|
|
153
|
+
:'provenance' => :'provenance'
|
|
150
154
|
}
|
|
151
155
|
end
|
|
152
156
|
|
|
@@ -184,7 +188,8 @@ module PulpPythonClient
|
|
|
184
188
|
:'prereleases' => :'Boolean',
|
|
185
189
|
:'package_types' => :'Array<PackageTypesEnum>',
|
|
186
190
|
:'keep_latest_packages' => :'Integer',
|
|
187
|
-
:'exclude_platforms' => :'Array<ExcludePlatformsEnum>'
|
|
191
|
+
:'exclude_platforms' => :'Array<ExcludePlatformsEnum>',
|
|
192
|
+
:'provenance' => :'Boolean'
|
|
188
193
|
}
|
|
189
194
|
end
|
|
190
195
|
|
|
@@ -346,6 +351,12 @@ module PulpPythonClient
|
|
|
346
351
|
self.exclude_platforms = value
|
|
347
352
|
end
|
|
348
353
|
end
|
|
354
|
+
|
|
355
|
+
if attributes.key?(:'provenance')
|
|
356
|
+
self.provenance = attributes[:'provenance']
|
|
357
|
+
else
|
|
358
|
+
self.provenance = false
|
|
359
|
+
end
|
|
349
360
|
end
|
|
350
361
|
|
|
351
362
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -464,7 +475,8 @@ module PulpPythonClient
|
|
|
464
475
|
prereleases == o.prereleases &&
|
|
465
476
|
package_types == o.package_types &&
|
|
466
477
|
keep_latest_packages == o.keep_latest_packages &&
|
|
467
|
-
exclude_platforms == o.exclude_platforms
|
|
478
|
+
exclude_platforms == o.exclude_platforms &&
|
|
479
|
+
provenance == o.provenance
|
|
468
480
|
end
|
|
469
481
|
|
|
470
482
|
# @see the `==` method
|
|
@@ -476,7 +488,7 @@ module PulpPythonClient
|
|
|
476
488
|
# Calculates hash code according to all attributes.
|
|
477
489
|
# @return [Integer] Hash code
|
|
478
490
|
def hash
|
|
479
|
-
[pulp_href, prn, pulp_created, pulp_last_updated, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, hidden_fields, includes, excludes, prereleases, package_types, keep_latest_packages, exclude_platforms].hash
|
|
491
|
+
[pulp_href, prn, pulp_created, pulp_last_updated, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, hidden_fields, includes, excludes, prereleases, package_types, keep_latest_packages, exclude_platforms, provenance].hash
|
|
480
492
|
end
|
|
481
493
|
|
|
482
494
|
# Builds the object from hash
|
data/lib/pulp_python_client.rb
CHANGED
|
@@ -20,6 +20,8 @@ require 'pulp_python_client/configuration'
|
|
|
20
20
|
require 'pulp_python_client/models/async_operation_response'
|
|
21
21
|
require 'pulp_python_client/models/content_summary_response'
|
|
22
22
|
require 'pulp_python_client/models/exclude_platforms_enum'
|
|
23
|
+
require 'pulp_python_client/models/filetype_enum'
|
|
24
|
+
require 'pulp_python_client/models/metadata_version_enum'
|
|
23
25
|
require 'pulp_python_client/models/my_permissions_response'
|
|
24
26
|
require 'pulp_python_client/models/nested_role'
|
|
25
27
|
require 'pulp_python_client/models/nested_role_response'
|
|
@@ -28,6 +30,7 @@ require 'pulp_python_client/models/package_metadata_response'
|
|
|
28
30
|
require 'pulp_python_client/models/package_types_enum'
|
|
29
31
|
require 'pulp_python_client/models/package_upload_task_response'
|
|
30
32
|
require 'pulp_python_client/models/paginated_repository_version_response_list'
|
|
33
|
+
require 'pulp_python_client/models/paginatedpython_package_provenance_response_list'
|
|
31
34
|
require 'pulp_python_client/models/paginatedpython_python_distribution_response_list'
|
|
32
35
|
require 'pulp_python_client/models/paginatedpython_python_package_content_response_list'
|
|
33
36
|
require 'pulp_python_client/models/paginatedpython_python_publication_response_list'
|
|
@@ -37,6 +40,8 @@ require 'pulp_python_client/models/patchedpython_python_distribution'
|
|
|
37
40
|
require 'pulp_python_client/models/patchedpython_python_remote'
|
|
38
41
|
require 'pulp_python_client/models/patchedpython_python_repository'
|
|
39
42
|
require 'pulp_python_client/models/policy_enum'
|
|
43
|
+
require 'pulp_python_client/models/protocol_version_enum'
|
|
44
|
+
require 'pulp_python_client/models/python_package_provenance_response'
|
|
40
45
|
require 'pulp_python_client/models/python_python_distribution'
|
|
41
46
|
require 'pulp_python_client/models/python_python_distribution_response'
|
|
42
47
|
require 'pulp_python_client/models/python_python_package_content_response'
|
|
@@ -59,11 +64,13 @@ require 'pulp_python_client/models/unset_label_response'
|
|
|
59
64
|
|
|
60
65
|
# APIs
|
|
61
66
|
require 'pulp_python_client/api/content_packages_api'
|
|
67
|
+
require 'pulp_python_client/api/content_provenance_api'
|
|
62
68
|
require 'pulp_python_client/api/distributions_pypi_api'
|
|
63
69
|
require 'pulp_python_client/api/publications_pypi_api'
|
|
64
70
|
require 'pulp_python_client/api/pypi_api'
|
|
65
71
|
require 'pulp_python_client/api/pypi_legacy_api'
|
|
66
72
|
require 'pulp_python_client/api/pypi_metadata_api'
|
|
73
|
+
require 'pulp_python_client/api/pypi_provenance_api'
|
|
67
74
|
require 'pulp_python_client/api/pypi_simple_api'
|
|
68
75
|
require 'pulp_python_client/api/remotes_python_api'
|
|
69
76
|
require 'pulp_python_client/api/repositories_python_api'
|