pulp_deb_client 3.6.0 → 3.8.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 +27 -16
- data/docs/AcsDebApi.md +886 -0
- data/docs/ContentInstallerPackagesApi.md +2 -2
- data/docs/ContentPackagesApi.md +2 -2
- data/docs/Copy.md +1 -1
- data/docs/DebAptAlternateContentSource.md +24 -0
- data/docs/DebAptAlternateContentSourceResponse.md +32 -0
- data/docs/DebAptRemoteResponse.md +1 -1
- data/docs/DebAptRepository.md +2 -0
- data/docs/DebAptRepositoryResponse.md +2 -0
- data/docs/DebGenericContentResponse.md +2 -0
- data/docs/DebInstallerFileIndexResponse.md +2 -0
- data/docs/DebInstallerPackageResponse.md +2 -0
- data/docs/DebPackageIndexResponse.md +2 -0
- data/docs/DebPackageReleaseComponentResponse.md +2 -0
- data/docs/DebPackageResponse.md +2 -0
- data/docs/DebReleaseArchitectureResponse.md +2 -0
- data/docs/DebReleaseComponentResponse.md +2 -0
- data/docs/DebReleaseFileResponse.md +2 -0
- data/docs/DebReleaseResponse.md +2 -0
- data/docs/DebSourceIndexResponse.md +2 -0
- data/docs/DebSourcePackageReleaseComponentResponse.md +2 -0
- data/docs/DebSourcePackageResponse.md +2 -0
- data/docs/DistributionsAptApi.md +10 -10
- data/docs/PaginateddebAptAlternateContentSourceResponseList.md +24 -0
- data/docs/PatcheddebAptAlternateContentSource.md +24 -0
- data/docs/PatcheddebAptRepository.md +2 -0
- data/docs/RemotesAptApi.md +10 -10
- data/docs/RepositoriesAptApi.md +10 -10
- data/docs/RepositoryVersionResponse.md +3 -1
- data/docs/TaskGroupOperationResponse.md +18 -0
- data/lib/pulp_deb_client/api/acs_deb_api.rb +865 -0
- data/lib/pulp_deb_client/api/content_installer_packages_api.rb +8 -0
- data/lib/pulp_deb_client/api/content_packages_api.rb +8 -0
- data/lib/pulp_deb_client/api/distributions_apt_api.rb +10 -10
- data/lib/pulp_deb_client/api/remotes_apt_api.rb +10 -10
- data/lib/pulp_deb_client/api/repositories_apt_api.rb +10 -10
- data/lib/pulp_deb_client/models/copy.rb +0 -1
- data/lib/pulp_deb_client/models/deb_apt_alternate_content_source.rb +282 -0
- data/lib/pulp_deb_client/models/deb_apt_alternate_content_source_response.rb +302 -0
- data/lib/pulp_deb_client/models/deb_apt_remote.rb +0 -15
- data/lib/pulp_deb_client/models/deb_apt_remote_response.rb +0 -15
- data/lib/pulp_deb_client/models/deb_apt_repository.rb +13 -16
- data/lib/pulp_deb_client/models/deb_apt_repository_response.rb +13 -16
- data/lib/pulp_deb_client/models/deb_generic_content_response.rb +10 -1
- data/lib/pulp_deb_client/models/deb_installer_file_index_response.rb +10 -1
- data/lib/pulp_deb_client/models/deb_installer_package_response.rb +10 -1
- data/lib/pulp_deb_client/models/deb_package_index_response.rb +10 -1
- data/lib/pulp_deb_client/models/deb_package_release_component_response.rb +10 -1
- data/lib/pulp_deb_client/models/deb_package_response.rb +10 -1
- data/lib/pulp_deb_client/models/deb_release_architecture_response.rb +10 -1
- data/lib/pulp_deb_client/models/deb_release_component_response.rb +10 -1
- data/lib/pulp_deb_client/models/deb_release_file_response.rb +10 -1
- data/lib/pulp_deb_client/models/deb_release_response.rb +10 -1
- data/lib/pulp_deb_client/models/deb_source_index_response.rb +10 -1
- data/lib/pulp_deb_client/models/deb_source_package_release_component_response.rb +10 -1
- data/lib/pulp_deb_client/models/deb_source_package_response.rb +10 -1
- data/lib/pulp_deb_client/models/paginated_repository_version_response_list.rb +0 -2
- data/lib/pulp_deb_client/models/paginateddeb_apt_alternate_content_source_response_list.rb +257 -0
- data/lib/pulp_deb_client/models/paginateddeb_apt_distribution_response_list.rb +0 -2
- data/lib/pulp_deb_client/models/paginateddeb_apt_publication_response_list.rb +0 -2
- data/lib/pulp_deb_client/models/paginateddeb_apt_remote_response_list.rb +0 -2
- data/lib/pulp_deb_client/models/paginateddeb_apt_repository_response_list.rb +0 -2
- data/lib/pulp_deb_client/models/paginateddeb_generic_content_response_list.rb +0 -2
- data/lib/pulp_deb_client/models/paginateddeb_installer_file_index_response_list.rb +0 -2
- data/lib/pulp_deb_client/models/paginateddeb_installer_package_response_list.rb +0 -2
- data/lib/pulp_deb_client/models/paginateddeb_package_index_response_list.rb +0 -2
- data/lib/pulp_deb_client/models/paginateddeb_package_release_component_response_list.rb +0 -2
- data/lib/pulp_deb_client/models/paginateddeb_package_response_list.rb +0 -2
- data/lib/pulp_deb_client/models/paginateddeb_release_architecture_response_list.rb +0 -2
- data/lib/pulp_deb_client/models/paginateddeb_release_component_response_list.rb +0 -2
- data/lib/pulp_deb_client/models/paginateddeb_release_file_response_list.rb +0 -2
- data/lib/pulp_deb_client/models/paginateddeb_release_response_list.rb +0 -2
- data/lib/pulp_deb_client/models/paginateddeb_source_index_response_list.rb +0 -2
- data/lib/pulp_deb_client/models/paginateddeb_source_package_release_component_response_list.rb +0 -2
- data/lib/pulp_deb_client/models/paginateddeb_source_package_response_list.rb +0 -2
- data/lib/pulp_deb_client/models/paginateddeb_verbatim_publication_response_list.rb +0 -2
- data/lib/pulp_deb_client/models/patcheddeb_apt_alternate_content_source.rb +268 -0
- data/lib/pulp_deb_client/models/patcheddeb_apt_remote.rb +0 -15
- data/lib/pulp_deb_client/models/patcheddeb_apt_repository.rb +13 -16
- data/lib/pulp_deb_client/models/repository_version_response.rb +13 -4
- data/lib/pulp_deb_client/models/task_group_operation_response.rb +223 -0
- data/lib/pulp_deb_client/version.rb +1 -1
- data/lib/pulp_deb_client.rb +6 -0
- data/spec/api/acs_deb_api_spec.rb +204 -0
- data/spec/api/distributions_apt_api_spec.rb +4 -4
- data/spec/api/remotes_apt_api_spec.rb +4 -4
- data/spec/api/repositories_apt_api_spec.rb +4 -4
- data/spec/models/deb_apt_alternate_content_source_response_spec.rb +78 -0
- data/spec/models/deb_apt_alternate_content_source_spec.rb +54 -0
- data/spec/models/deb_apt_repository_response_spec.rb +6 -0
- data/spec/models/deb_apt_repository_spec.rb +6 -0
- data/spec/models/deb_generic_content_response_spec.rb +6 -0
- data/spec/models/deb_installer_file_index_response_spec.rb +6 -0
- data/spec/models/deb_installer_package_response_spec.rb +6 -0
- data/spec/models/deb_package_index_response_spec.rb +6 -0
- data/spec/models/deb_package_release_component_response_spec.rb +6 -0
- data/spec/models/deb_package_response_spec.rb +6 -0
- data/spec/models/deb_release_architecture_response_spec.rb +6 -0
- data/spec/models/deb_release_component_response_spec.rb +6 -0
- data/spec/models/deb_release_file_response_spec.rb +6 -0
- data/spec/models/deb_release_response_spec.rb +6 -0
- data/spec/models/deb_source_index_response_spec.rb +6 -0
- data/spec/models/deb_source_package_release_component_response_spec.rb +6 -0
- data/spec/models/deb_source_package_response_spec.rb +6 -0
- data/spec/models/paginateddeb_apt_alternate_content_source_response_list_spec.rb +54 -0
- data/spec/models/patcheddeb_apt_alternate_content_source_spec.rb +54 -0
- data/spec/models/patcheddeb_apt_repository_spec.rb +6 -0
- data/spec/models/repository_version_response_spec.rb +6 -0
- data/spec/models/task_group_operation_response_spec.rb +36 -0
- metadata +99 -75
|
@@ -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 PulpDebClient
|
|
17
|
+
# Serializer for APT alternate content source.
|
|
18
|
+
class DebAptAlternateContentSourceResponse
|
|
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
|
+
# Name of Alternate Content Source.
|
|
31
|
+
attr_accessor :name
|
|
32
|
+
|
|
33
|
+
# Date of last refresh of AlternateContentSource.
|
|
34
|
+
attr_accessor :last_refreshed
|
|
35
|
+
|
|
36
|
+
# List of paths that will be appended to the Remote url when searching for content.
|
|
37
|
+
attr_accessor :paths
|
|
38
|
+
|
|
39
|
+
# The remote to provide alternate content source.
|
|
40
|
+
attr_accessor :remote
|
|
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
|
+
:'name' => :'name',
|
|
50
|
+
:'last_refreshed' => :'last_refreshed',
|
|
51
|
+
:'paths' => :'paths',
|
|
52
|
+
:'remote' => :'remote'
|
|
53
|
+
}
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# Returns all the JSON keys this model knows about
|
|
57
|
+
def self.acceptable_attributes
|
|
58
|
+
attribute_map.values
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# Attribute type mapping.
|
|
62
|
+
def self.openapi_types
|
|
63
|
+
{
|
|
64
|
+
:'pulp_href' => :'String',
|
|
65
|
+
:'prn' => :'String',
|
|
66
|
+
:'pulp_created' => :'Time',
|
|
67
|
+
:'pulp_last_updated' => :'Time',
|
|
68
|
+
:'name' => :'String',
|
|
69
|
+
:'last_refreshed' => :'Time',
|
|
70
|
+
:'paths' => :'Array<String>',
|
|
71
|
+
:'remote' => :'String'
|
|
72
|
+
}
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
# List of attributes with nullable: true
|
|
76
|
+
def self.openapi_nullable
|
|
77
|
+
Set.new([
|
|
78
|
+
:'last_refreshed',
|
|
79
|
+
])
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
# Initializes the object
|
|
83
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
84
|
+
def initialize(attributes = {})
|
|
85
|
+
if (!attributes.is_a?(Hash))
|
|
86
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpDebClient::DebAptAlternateContentSourceResponse` initialize method"
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
90
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
91
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
92
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpDebClient::DebAptAlternateContentSourceResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
93
|
+
end
|
|
94
|
+
h[k.to_sym] = v
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
if attributes.key?(:'pulp_href')
|
|
98
|
+
self.pulp_href = attributes[:'pulp_href']
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
if attributes.key?(:'prn')
|
|
102
|
+
self.prn = attributes[:'prn']
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
if attributes.key?(:'pulp_created')
|
|
106
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
if attributes.key?(:'pulp_last_updated')
|
|
110
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
if attributes.key?(:'name')
|
|
114
|
+
self.name = attributes[:'name']
|
|
115
|
+
else
|
|
116
|
+
self.name = nil
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
if attributes.key?(:'last_refreshed')
|
|
120
|
+
self.last_refreshed = attributes[:'last_refreshed']
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
if attributes.key?(:'paths')
|
|
124
|
+
if (value = attributes[:'paths']).is_a?(Array)
|
|
125
|
+
self.paths = value
|
|
126
|
+
end
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
if attributes.key?(:'remote')
|
|
130
|
+
self.remote = attributes[:'remote']
|
|
131
|
+
else
|
|
132
|
+
self.remote = nil
|
|
133
|
+
end
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
137
|
+
# @return Array for valid properties with the reasons
|
|
138
|
+
def list_invalid_properties
|
|
139
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
140
|
+
invalid_properties = Array.new
|
|
141
|
+
if @name.nil?
|
|
142
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
if @remote.nil?
|
|
146
|
+
invalid_properties.push('invalid value for "remote", remote 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 @name.nil?
|
|
157
|
+
return false if @remote.nil?
|
|
158
|
+
true
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
# Checks equality by comparing each attribute.
|
|
162
|
+
# @param [Object] Object to be compared
|
|
163
|
+
def ==(o)
|
|
164
|
+
return true if self.equal?(o)
|
|
165
|
+
self.class == o.class &&
|
|
166
|
+
pulp_href == o.pulp_href &&
|
|
167
|
+
prn == o.prn &&
|
|
168
|
+
pulp_created == o.pulp_created &&
|
|
169
|
+
pulp_last_updated == o.pulp_last_updated &&
|
|
170
|
+
name == o.name &&
|
|
171
|
+
last_refreshed == o.last_refreshed &&
|
|
172
|
+
paths == o.paths &&
|
|
173
|
+
remote == o.remote
|
|
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, name, last_refreshed, paths, remote].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 = PulpDebClient.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
|
|
@@ -418,10 +418,6 @@ module PulpDebClient
|
|
|
418
418
|
invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
|
|
419
419
|
end
|
|
420
420
|
|
|
421
|
-
if !@download_concurrency.nil? && @download_concurrency < 1
|
|
422
|
-
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
|
423
|
-
end
|
|
424
|
-
|
|
425
421
|
if !@total_timeout.nil? && @total_timeout < 0.0
|
|
426
422
|
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
|
427
423
|
end
|
|
@@ -477,7 +473,6 @@ module PulpDebClient
|
|
|
477
473
|
return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
|
|
478
474
|
return false if !@username.nil? && @username.to_s.length < 1
|
|
479
475
|
return false if !@password.nil? && @password.to_s.length < 1
|
|
480
|
-
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
|
481
476
|
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
|
482
477
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
483
478
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
@@ -598,16 +593,6 @@ module PulpDebClient
|
|
|
598
593
|
@password = password
|
|
599
594
|
end
|
|
600
595
|
|
|
601
|
-
# Custom attribute writer method with validation
|
|
602
|
-
# @param [Object] download_concurrency Value to be assigned
|
|
603
|
-
def download_concurrency=(download_concurrency)
|
|
604
|
-
if !download_concurrency.nil? && download_concurrency < 1
|
|
605
|
-
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
|
606
|
-
end
|
|
607
|
-
|
|
608
|
-
@download_concurrency = download_concurrency
|
|
609
|
-
end
|
|
610
|
-
|
|
611
596
|
# Custom attribute writer method with validation
|
|
612
597
|
# @param [Object] total_timeout Value to be assigned
|
|
613
598
|
def total_timeout=(total_timeout)
|
|
@@ -374,10 +374,6 @@ module PulpDebClient
|
|
|
374
374
|
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
|
375
375
|
end
|
|
376
376
|
|
|
377
|
-
if !@download_concurrency.nil? && @download_concurrency < 1
|
|
378
|
-
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
|
379
|
-
end
|
|
380
|
-
|
|
381
377
|
if !@total_timeout.nil? && @total_timeout < 0.0
|
|
382
378
|
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
|
383
379
|
end
|
|
@@ -407,7 +403,6 @@ module PulpDebClient
|
|
|
407
403
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
408
404
|
return false if @name.nil?
|
|
409
405
|
return false if @url.nil?
|
|
410
|
-
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
|
411
406
|
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
|
412
407
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
413
408
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
@@ -416,16 +411,6 @@ module PulpDebClient
|
|
|
416
411
|
true
|
|
417
412
|
end
|
|
418
413
|
|
|
419
|
-
# Custom attribute writer method with validation
|
|
420
|
-
# @param [Object] download_concurrency Value to be assigned
|
|
421
|
-
def download_concurrency=(download_concurrency)
|
|
422
|
-
if !download_concurrency.nil? && download_concurrency < 1
|
|
423
|
-
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
|
424
|
-
end
|
|
425
|
-
|
|
426
|
-
@download_concurrency = download_concurrency
|
|
427
|
-
end
|
|
428
|
-
|
|
429
414
|
# Custom attribute writer method with validation
|
|
430
415
|
# @param [Object] total_timeout Value to be assigned
|
|
431
416
|
def total_timeout=(total_timeout)
|
|
@@ -30,6 +30,9 @@ module PulpDebClient
|
|
|
30
30
|
# An optional remote to use by default when syncing.
|
|
31
31
|
attr_accessor :remote
|
|
32
32
|
|
|
33
|
+
# Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository. Will create a standard structured APT publication.
|
|
34
|
+
attr_accessor :autopublish
|
|
35
|
+
|
|
33
36
|
# Previously, pulp_deb only synced the Release file fields codename and suite, now version, origin, label, and description are also synced. Setting this setting to False will make Pulp revert to the old behaviour of using it's own internal values for the new fields during publish. This is primarily intended to avoid a sudden change in behaviour for existing Pulp repositories, since many Release file field changes need to be accepted by hosts consuming the published repository. The default for new repositories is True.
|
|
34
37
|
attr_accessor :publish_upstream_release_fields
|
|
35
38
|
|
|
@@ -47,6 +50,7 @@ module PulpDebClient
|
|
|
47
50
|
:'description' => :'description',
|
|
48
51
|
:'retain_repo_versions' => :'retain_repo_versions',
|
|
49
52
|
:'remote' => :'remote',
|
|
53
|
+
:'autopublish' => :'autopublish',
|
|
50
54
|
:'publish_upstream_release_fields' => :'publish_upstream_release_fields',
|
|
51
55
|
:'signing_service' => :'signing_service',
|
|
52
56
|
:'signing_service_release_overrides' => :'signing_service_release_overrides'
|
|
@@ -66,6 +70,7 @@ module PulpDebClient
|
|
|
66
70
|
:'description' => :'String',
|
|
67
71
|
:'retain_repo_versions' => :'Integer',
|
|
68
72
|
:'remote' => :'String',
|
|
73
|
+
:'autopublish' => :'Boolean',
|
|
69
74
|
:'publish_upstream_release_fields' => :'Boolean',
|
|
70
75
|
:'signing_service' => :'String',
|
|
71
76
|
:'signing_service_release_overrides' => :'Hash<String, String>'
|
|
@@ -121,6 +126,12 @@ module PulpDebClient
|
|
|
121
126
|
self.remote = attributes[:'remote']
|
|
122
127
|
end
|
|
123
128
|
|
|
129
|
+
if attributes.key?(:'autopublish')
|
|
130
|
+
self.autopublish = attributes[:'autopublish']
|
|
131
|
+
else
|
|
132
|
+
self.autopublish = false
|
|
133
|
+
end
|
|
134
|
+
|
|
124
135
|
if attributes.key?(:'publish_upstream_release_fields')
|
|
125
136
|
self.publish_upstream_release_fields = attributes[:'publish_upstream_release_fields']
|
|
126
137
|
end
|
|
@@ -153,10 +164,6 @@ module PulpDebClient
|
|
|
153
164
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
154
165
|
end
|
|
155
166
|
|
|
156
|
-
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
157
|
-
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
158
|
-
end
|
|
159
|
-
|
|
160
167
|
invalid_properties
|
|
161
168
|
end
|
|
162
169
|
|
|
@@ -167,7 +174,6 @@ module PulpDebClient
|
|
|
167
174
|
return false if @name.nil?
|
|
168
175
|
return false if @name.to_s.length < 1
|
|
169
176
|
return false if !@description.nil? && @description.to_s.length < 1
|
|
170
|
-
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
171
177
|
true
|
|
172
178
|
end
|
|
173
179
|
|
|
@@ -195,16 +201,6 @@ module PulpDebClient
|
|
|
195
201
|
@description = description
|
|
196
202
|
end
|
|
197
203
|
|
|
198
|
-
# Custom attribute writer method with validation
|
|
199
|
-
# @param [Object] retain_repo_versions Value to be assigned
|
|
200
|
-
def retain_repo_versions=(retain_repo_versions)
|
|
201
|
-
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
|
202
|
-
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
|
203
|
-
end
|
|
204
|
-
|
|
205
|
-
@retain_repo_versions = retain_repo_versions
|
|
206
|
-
end
|
|
207
|
-
|
|
208
204
|
# Checks equality by comparing each attribute.
|
|
209
205
|
# @param [Object] Object to be compared
|
|
210
206
|
def ==(o)
|
|
@@ -215,6 +211,7 @@ module PulpDebClient
|
|
|
215
211
|
description == o.description &&
|
|
216
212
|
retain_repo_versions == o.retain_repo_versions &&
|
|
217
213
|
remote == o.remote &&
|
|
214
|
+
autopublish == o.autopublish &&
|
|
218
215
|
publish_upstream_release_fields == o.publish_upstream_release_fields &&
|
|
219
216
|
signing_service == o.signing_service &&
|
|
220
217
|
signing_service_release_overrides == o.signing_service_release_overrides
|
|
@@ -229,7 +226,7 @@ module PulpDebClient
|
|
|
229
226
|
# Calculates hash code according to all attributes.
|
|
230
227
|
# @return [Integer] Hash code
|
|
231
228
|
def hash
|
|
232
|
-
[pulp_labels, name, description, retain_repo_versions, remote, publish_upstream_release_fields, signing_service, signing_service_release_overrides].hash
|
|
229
|
+
[pulp_labels, name, description, retain_repo_versions, remote, autopublish, publish_upstream_release_fields, signing_service, signing_service_release_overrides].hash
|
|
233
230
|
end
|
|
234
231
|
|
|
235
232
|
# Builds the object from hash
|
|
@@ -45,6 +45,9 @@ module PulpDebClient
|
|
|
45
45
|
# An optional remote to use by default when syncing.
|
|
46
46
|
attr_accessor :remote
|
|
47
47
|
|
|
48
|
+
# Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository. Will create a standard structured APT publication.
|
|
49
|
+
attr_accessor :autopublish
|
|
50
|
+
|
|
48
51
|
# Previously, pulp_deb only synced the Release file fields codename and suite, now version, origin, label, and description are also synced. Setting this setting to False will make Pulp revert to the old behaviour of using it's own internal values for the new fields during publish. This is primarily intended to avoid a sudden change in behaviour for existing Pulp repositories, since many Release file field changes need to be accepted by hosts consuming the published repository. The default for new repositories is True.
|
|
49
52
|
attr_accessor :publish_upstream_release_fields
|
|
50
53
|
|
|
@@ -68,6 +71,7 @@ module PulpDebClient
|
|
|
68
71
|
:'description' => :'description',
|
|
69
72
|
:'retain_repo_versions' => :'retain_repo_versions',
|
|
70
73
|
:'remote' => :'remote',
|
|
74
|
+
:'autopublish' => :'autopublish',
|
|
71
75
|
:'publish_upstream_release_fields' => :'publish_upstream_release_fields',
|
|
72
76
|
:'signing_service' => :'signing_service',
|
|
73
77
|
:'signing_service_release_overrides' => :'signing_service_release_overrides'
|
|
@@ -93,6 +97,7 @@ module PulpDebClient
|
|
|
93
97
|
:'description' => :'String',
|
|
94
98
|
:'retain_repo_versions' => :'Integer',
|
|
95
99
|
:'remote' => :'String',
|
|
100
|
+
:'autopublish' => :'Boolean',
|
|
96
101
|
:'publish_upstream_release_fields' => :'Boolean',
|
|
97
102
|
:'signing_service' => :'String',
|
|
98
103
|
:'signing_service_release_overrides' => :'Hash<String, String>'
|
|
@@ -172,6 +177,12 @@ module PulpDebClient
|
|
|
172
177
|
self.remote = attributes[:'remote']
|
|
173
178
|
end
|
|
174
179
|
|
|
180
|
+
if attributes.key?(:'autopublish')
|
|
181
|
+
self.autopublish = attributes[:'autopublish']
|
|
182
|
+
else
|
|
183
|
+
self.autopublish = false
|
|
184
|
+
end
|
|
185
|
+
|
|
175
186
|
if attributes.key?(:'publish_upstream_release_fields')
|
|
176
187
|
self.publish_upstream_release_fields = attributes[:'publish_upstream_release_fields']
|
|
177
188
|
end
|
|
@@ -196,10 +207,6 @@ module PulpDebClient
|
|
|
196
207
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
197
208
|
end
|
|
198
209
|
|
|
199
|
-
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
200
|
-
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
201
|
-
end
|
|
202
|
-
|
|
203
210
|
invalid_properties
|
|
204
211
|
end
|
|
205
212
|
|
|
@@ -208,20 +215,9 @@ module PulpDebClient
|
|
|
208
215
|
def valid?
|
|
209
216
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
210
217
|
return false if @name.nil?
|
|
211
|
-
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
212
218
|
true
|
|
213
219
|
end
|
|
214
220
|
|
|
215
|
-
# Custom attribute writer method with validation
|
|
216
|
-
# @param [Object] retain_repo_versions Value to be assigned
|
|
217
|
-
def retain_repo_versions=(retain_repo_versions)
|
|
218
|
-
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
|
219
|
-
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
|
220
|
-
end
|
|
221
|
-
|
|
222
|
-
@retain_repo_versions = retain_repo_versions
|
|
223
|
-
end
|
|
224
|
-
|
|
225
221
|
# Checks equality by comparing each attribute.
|
|
226
222
|
# @param [Object] Object to be compared
|
|
227
223
|
def ==(o)
|
|
@@ -238,6 +234,7 @@ module PulpDebClient
|
|
|
238
234
|
description == o.description &&
|
|
239
235
|
retain_repo_versions == o.retain_repo_versions &&
|
|
240
236
|
remote == o.remote &&
|
|
237
|
+
autopublish == o.autopublish &&
|
|
241
238
|
publish_upstream_release_fields == o.publish_upstream_release_fields &&
|
|
242
239
|
signing_service == o.signing_service &&
|
|
243
240
|
signing_service_release_overrides == o.signing_service_release_overrides
|
|
@@ -252,7 +249,7 @@ module PulpDebClient
|
|
|
252
249
|
# Calculates hash code according to all attributes.
|
|
253
250
|
# @return [Integer] Hash code
|
|
254
251
|
def hash
|
|
255
|
-
[pulp_href, prn, pulp_created, pulp_last_updated, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, remote, publish_upstream_release_fields, signing_service, signing_service_release_overrides].hash
|
|
252
|
+
[pulp_href, prn, pulp_created, pulp_last_updated, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, remote, autopublish, publish_upstream_release_fields, signing_service, signing_service_release_overrides].hash
|
|
256
253
|
end
|
|
257
254
|
|
|
258
255
|
# Builds the object from hash
|
|
@@ -30,6 +30,8 @@ module PulpDebClient
|
|
|
30
30
|
# A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
31
31
|
attr_accessor :pulp_labels
|
|
32
32
|
|
|
33
|
+
attr_accessor :vuln_report
|
|
34
|
+
|
|
33
35
|
# Artifact file representing the physical content
|
|
34
36
|
attr_accessor :artifact
|
|
35
37
|
|
|
@@ -62,6 +64,7 @@ module PulpDebClient
|
|
|
62
64
|
:'pulp_created' => :'pulp_created',
|
|
63
65
|
:'pulp_last_updated' => :'pulp_last_updated',
|
|
64
66
|
:'pulp_labels' => :'pulp_labels',
|
|
67
|
+
:'vuln_report' => :'vuln_report',
|
|
65
68
|
:'artifact' => :'artifact',
|
|
66
69
|
:'relative_path' => :'relative_path',
|
|
67
70
|
:'md5' => :'md5',
|
|
@@ -86,6 +89,7 @@ module PulpDebClient
|
|
|
86
89
|
:'pulp_created' => :'Time',
|
|
87
90
|
:'pulp_last_updated' => :'Time',
|
|
88
91
|
:'pulp_labels' => :'Hash<String, String>',
|
|
92
|
+
:'vuln_report' => :'String',
|
|
89
93
|
:'artifact' => :'String',
|
|
90
94
|
:'relative_path' => :'String',
|
|
91
95
|
:'md5' => :'String',
|
|
@@ -140,6 +144,10 @@ module PulpDebClient
|
|
|
140
144
|
end
|
|
141
145
|
end
|
|
142
146
|
|
|
147
|
+
if attributes.key?(:'vuln_report')
|
|
148
|
+
self.vuln_report = attributes[:'vuln_report']
|
|
149
|
+
end
|
|
150
|
+
|
|
143
151
|
if attributes.key?(:'artifact')
|
|
144
152
|
self.artifact = attributes[:'artifact']
|
|
145
153
|
end
|
|
@@ -205,6 +213,7 @@ module PulpDebClient
|
|
|
205
213
|
pulp_created == o.pulp_created &&
|
|
206
214
|
pulp_last_updated == o.pulp_last_updated &&
|
|
207
215
|
pulp_labels == o.pulp_labels &&
|
|
216
|
+
vuln_report == o.vuln_report &&
|
|
208
217
|
artifact == o.artifact &&
|
|
209
218
|
relative_path == o.relative_path &&
|
|
210
219
|
md5 == o.md5 &&
|
|
@@ -224,7 +233,7 @@ module PulpDebClient
|
|
|
224
233
|
# Calculates hash code according to all attributes.
|
|
225
234
|
# @return [Integer] Hash code
|
|
226
235
|
def hash
|
|
227
|
-
[pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, artifact, relative_path, md5, sha1, sha224, sha256, sha384, sha512].hash
|
|
236
|
+
[pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, vuln_report, artifact, relative_path, md5, sha1, sha224, sha256, sha384, sha512].hash
|
|
228
237
|
end
|
|
229
238
|
|
|
230
239
|
# Builds the object from hash
|
|
@@ -30,6 +30,8 @@ module PulpDebClient
|
|
|
30
30
|
# A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
31
31
|
attr_accessor :pulp_labels
|
|
32
32
|
|
|
33
|
+
attr_accessor :vuln_report
|
|
34
|
+
|
|
33
35
|
# A dict mapping relative paths inside the Content to the correspondingArtifact URLs. E.g.: {'relative/path': '/artifacts/1/'
|
|
34
36
|
attr_accessor :artifacts
|
|
35
37
|
|
|
@@ -50,6 +52,7 @@ module PulpDebClient
|
|
|
50
52
|
:'pulp_created' => :'pulp_created',
|
|
51
53
|
:'pulp_last_updated' => :'pulp_last_updated',
|
|
52
54
|
:'pulp_labels' => :'pulp_labels',
|
|
55
|
+
:'vuln_report' => :'vuln_report',
|
|
53
56
|
:'artifacts' => :'artifacts',
|
|
54
57
|
:'component' => :'component',
|
|
55
58
|
:'architecture' => :'architecture',
|
|
@@ -70,6 +73,7 @@ module PulpDebClient
|
|
|
70
73
|
:'pulp_created' => :'Time',
|
|
71
74
|
:'pulp_last_updated' => :'Time',
|
|
72
75
|
:'pulp_labels' => :'Hash<String, String>',
|
|
76
|
+
:'vuln_report' => :'String',
|
|
73
77
|
:'artifacts' => :'Object',
|
|
74
78
|
:'component' => :'String',
|
|
75
79
|
:'architecture' => :'String',
|
|
@@ -120,6 +124,10 @@ module PulpDebClient
|
|
|
120
124
|
end
|
|
121
125
|
end
|
|
122
126
|
|
|
127
|
+
if attributes.key?(:'vuln_report')
|
|
128
|
+
self.vuln_report = attributes[:'vuln_report']
|
|
129
|
+
end
|
|
130
|
+
|
|
123
131
|
if attributes.key?(:'artifacts')
|
|
124
132
|
self.artifacts = attributes[:'artifacts']
|
|
125
133
|
else
|
|
@@ -183,6 +191,7 @@ module PulpDebClient
|
|
|
183
191
|
pulp_created == o.pulp_created &&
|
|
184
192
|
pulp_last_updated == o.pulp_last_updated &&
|
|
185
193
|
pulp_labels == o.pulp_labels &&
|
|
194
|
+
vuln_report == o.vuln_report &&
|
|
186
195
|
artifacts == o.artifacts &&
|
|
187
196
|
component == o.component &&
|
|
188
197
|
architecture == o.architecture &&
|
|
@@ -198,7 +207,7 @@ module PulpDebClient
|
|
|
198
207
|
# Calculates hash code according to all attributes.
|
|
199
208
|
# @return [Integer] Hash code
|
|
200
209
|
def hash
|
|
201
|
-
[pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, artifacts, component, architecture, relative_path].hash
|
|
210
|
+
[pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, vuln_report, artifacts, component, architecture, relative_path].hash
|
|
202
211
|
end
|
|
203
212
|
|
|
204
213
|
# Builds the object from hash
|