pulp_rpm_client 3.4.1 → 3.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +14 -19
- data/docs/ContentAdvisoriesApi.md +2 -2
- data/docs/ContentDistributionTreesApi.md +2 -2
- data/docs/ContentModulemdDefaultsApi.md +2 -2
- data/docs/ContentModulemdsApi.md +2 -2
- data/docs/ContentPackagecategoriesApi.md +2 -2
- data/docs/ContentPackageenvironmentsApi.md +2 -2
- data/docs/ContentPackagegroupsApi.md +2 -2
- data/docs/ContentPackagelangpacksApi.md +2 -2
- data/docs/ContentPackagesApi.md +2 -2
- data/docs/ContentRepoMetadataFilesApi.md +2 -2
- data/docs/DistributionsRpmApi.md +2 -2
- data/docs/InlineResponse200.md +1 -1
- data/docs/InlineResponse2001.md +1 -1
- data/docs/InlineResponse20010.md +1 -1
- data/docs/InlineResponse20011.md +1 -1
- data/docs/InlineResponse20012.md +1 -1
- data/docs/InlineResponse20013.md +1 -1
- data/docs/InlineResponse20014.md +1 -1
- data/docs/InlineResponse2002.md +1 -1
- data/docs/InlineResponse2003.md +1 -1
- data/docs/InlineResponse2004.md +1 -1
- data/docs/InlineResponse2005.md +1 -1
- data/docs/InlineResponse2006.md +1 -1
- data/docs/InlineResponse2007.md +1 -1
- data/docs/InlineResponse2008.md +1 -1
- data/docs/InlineResponse2009.md +1 -1
- data/docs/PublicationsRpmApi.md +2 -2
- data/docs/RemotesRpmApi.md +4 -4
- data/docs/RepositoriesRpmApi.md +4 -4
- data/docs/RepositoriesRpmVersionsApi.md +6 -4
- data/docs/{RpmDistributionTreeRead.md → RpmDistributionTree.md} +2 -2
- data/docs/{RpmModulemdRead.md → RpmModulemd.md} +2 -2
- data/docs/{RpmModulemdDefaultsRead.md → RpmModulemdDefaults.md} +2 -2
- data/docs/{RpmPackageRead.md → RpmPackage.md} +2 -2
- data/docs/{RpmPackageCategoryRead.md → RpmPackageCategory.md} +2 -2
- data/docs/{RpmPackageEnvironmentRead.md → RpmPackageEnvironment.md} +2 -2
- data/docs/{RpmPackageGroupRead.md → RpmPackageGroup.md} +2 -2
- data/docs/{RpmPackageLangpacksRead.md → RpmPackageLangpacks.md} +2 -2
- data/docs/{RpmRepoMetadataFileRead.md → RpmRepoMetadataFile.md} +2 -2
- data/docs/{RpmUpdateRecordRead.md → RpmUpdateRecord.md} +2 -2
- data/lib/pulp_rpm_client.rb +10 -15
- data/lib/pulp_rpm_client/api/content_advisories_api.rb +3 -3
- data/lib/pulp_rpm_client/api/content_distribution_trees_api.rb +3 -3
- data/lib/pulp_rpm_client/api/content_modulemd_defaults_api.rb +3 -3
- data/lib/pulp_rpm_client/api/content_modulemds_api.rb +3 -3
- data/lib/pulp_rpm_client/api/content_packagecategories_api.rb +3 -3
- data/lib/pulp_rpm_client/api/content_packageenvironments_api.rb +3 -3
- data/lib/pulp_rpm_client/api/content_packagegroups_api.rb +3 -3
- data/lib/pulp_rpm_client/api/content_packagelangpacks_api.rb +3 -3
- data/lib/pulp_rpm_client/api/content_packages_api.rb +3 -3
- data/lib/pulp_rpm_client/api/content_repo_metadata_files_api.rb +3 -3
- data/lib/pulp_rpm_client/api/distributions_rpm_api.rb +3 -3
- data/lib/pulp_rpm_client/api/publications_rpm_api.rb +3 -3
- data/lib/pulp_rpm_client/api/remotes_rpm_api.rb +6 -6
- data/lib/pulp_rpm_client/api/repositories_rpm_api.rb +6 -6
- data/lib/pulp_rpm_client/api/repositories_rpm_versions_api.rb +9 -6
- data/lib/pulp_rpm_client/models/inline_response200.rb +1 -1
- data/lib/pulp_rpm_client/models/inline_response2001.rb +1 -1
- data/lib/pulp_rpm_client/models/inline_response20010.rb +1 -1
- data/lib/pulp_rpm_client/models/inline_response20011.rb +1 -1
- data/lib/pulp_rpm_client/models/inline_response20012.rb +1 -1
- data/lib/pulp_rpm_client/models/inline_response20013.rb +1 -1
- data/lib/pulp_rpm_client/models/inline_response20014.rb +1 -1
- data/lib/pulp_rpm_client/models/inline_response2002.rb +1 -1
- data/lib/pulp_rpm_client/models/inline_response2003.rb +1 -1
- data/lib/pulp_rpm_client/models/inline_response2004.rb +1 -1
- data/lib/pulp_rpm_client/models/inline_response2005.rb +1 -1
- data/lib/pulp_rpm_client/models/inline_response2006.rb +1 -1
- data/lib/pulp_rpm_client/models/inline_response2007.rb +1 -1
- data/lib/pulp_rpm_client/models/inline_response2008.rb +1 -1
- data/lib/pulp_rpm_client/models/inline_response2009.rb +1 -1
- data/lib/pulp_rpm_client/models/{rpm_distribution_tree_read.rb → rpm_distribution_tree.rb} +3 -3
- data/lib/pulp_rpm_client/models/{rpm_modulemd_read.rb → rpm_modulemd.rb} +3 -3
- data/lib/pulp_rpm_client/models/{rpm_modulemd_defaults_read.rb → rpm_modulemd_defaults.rb} +3 -3
- data/lib/pulp_rpm_client/models/{rpm_package_read.rb → rpm_package.rb} +3 -3
- data/lib/pulp_rpm_client/models/{rpm_package_category_read.rb → rpm_package_category.rb} +3 -3
- data/lib/pulp_rpm_client/models/{rpm_package_environment_read.rb → rpm_package_environment.rb} +3 -3
- data/lib/pulp_rpm_client/models/{rpm_package_group_read.rb → rpm_package_group.rb} +3 -3
- data/lib/pulp_rpm_client/models/{rpm_package_langpacks_read.rb → rpm_package_langpacks.rb} +3 -3
- data/lib/pulp_rpm_client/models/{rpm_repo_metadata_file_read.rb → rpm_repo_metadata_file.rb} +3 -3
- data/lib/pulp_rpm_client/models/{rpm_update_record_read.rb → rpm_update_record.rb} +3 -3
- data/lib/pulp_rpm_client/version.rb +1 -1
- data/spec/api/content_advisories_api_spec.rb +1 -1
- data/spec/api/content_distribution_trees_api_spec.rb +1 -1
- data/spec/api/content_modulemd_defaults_api_spec.rb +1 -1
- data/spec/api/content_modulemds_api_spec.rb +1 -1
- data/spec/api/content_packagecategories_api_spec.rb +1 -1
- data/spec/api/content_packageenvironments_api_spec.rb +1 -1
- data/spec/api/content_packagegroups_api_spec.rb +1 -1
- data/spec/api/content_packagelangpacks_api_spec.rb +1 -1
- data/spec/api/content_packages_api_spec.rb +1 -1
- data/spec/api/content_repo_metadata_files_api_spec.rb +1 -1
- data/spec/api/distributions_rpm_api_spec.rb +1 -1
- data/spec/api/publications_rpm_api_spec.rb +1 -1
- data/spec/api/remotes_rpm_api_spec.rb +2 -2
- data/spec/api/repositories_rpm_api_spec.rb +2 -2
- data/spec/api/repositories_rpm_versions_api_spec.rb +3 -2
- data/spec/models/{rpm_distribution_tree_read_spec.rb → rpm_distribution_tree_spec.rb} +6 -6
- data/spec/models/{rpm_modulemd_defaults_read_spec.rb → rpm_modulemd_defaults_spec.rb} +6 -6
- data/spec/models/{rpm_modulemd_read_spec.rb → rpm_modulemd_spec.rb} +6 -6
- data/spec/models/{rpm_package_category_read_spec.rb → rpm_package_category_spec.rb} +6 -6
- data/spec/models/{rpm_package_environment_read_spec.rb → rpm_package_environment_spec.rb} +6 -6
- data/spec/models/{rpm_package_group_read_spec.rb → rpm_package_group_spec.rb} +6 -6
- data/spec/models/{rpm_package_langpacks_read_spec.rb → rpm_package_langpacks_spec.rb} +6 -6
- data/spec/models/{rpm_package_read_spec.rb → rpm_package_spec.rb} +6 -6
- data/spec/models/{rpm_repo_metadata_file_read_spec.rb → rpm_repo_metadata_file_spec.rb} +6 -6
- data/spec/models/{rpm_update_record_read_spec.rb → rpm_update_record_spec.rb} +6 -6
- metadata +42 -62
- data/docs/RepositoryVersionRead.md +0 -25
- data/docs/RpmRpmDistributionRead.md +0 -29
- data/docs/RpmRpmPublicationRead.md +0 -27
- data/docs/RpmRpmRemoteRead.md +0 -43
- data/docs/RpmRpmRepositoryRead.md +0 -29
- data/lib/pulp_rpm_client/models/repository_version_read.rb +0 -244
- data/lib/pulp_rpm_client/models/rpm_rpm_distribution_read.rb +0 -331
- data/lib/pulp_rpm_client/models/rpm_rpm_publication_read.rb +0 -305
- data/lib/pulp_rpm_client/models/rpm_rpm_remote_read.rb +0 -531
- data/lib/pulp_rpm_client/models/rpm_rpm_repository_read.rb +0 -305
- data/spec/models/repository_version_read_spec.rb +0 -65
- data/spec/models/rpm_rpm_distribution_read_spec.rb +0 -77
- data/spec/models/rpm_rpm_publication_read_spec.rb +0 -79
- data/spec/models/rpm_rpm_remote_read_spec.rb +0 -123
- data/spec/models/rpm_rpm_repository_read_spec.rb +0 -77
@@ -1,305 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Pulp 3 API
|
3
|
-
|
4
|
-
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
-
|
6
|
-
The version of the OpenAPI document: v3
|
7
|
-
|
8
|
-
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.2.3
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'date'
|
14
|
-
|
15
|
-
module PulpRpmClient
|
16
|
-
class RpmRpmRepositoryRead
|
17
|
-
attr_accessor :pulp_href
|
18
|
-
|
19
|
-
# Timestamp of creation.
|
20
|
-
attr_accessor :pulp_created
|
21
|
-
|
22
|
-
attr_accessor :versions_href
|
23
|
-
|
24
|
-
attr_accessor :latest_version_href
|
25
|
-
|
26
|
-
# A unique name for this repository.
|
27
|
-
attr_accessor :name
|
28
|
-
|
29
|
-
# An optional description.
|
30
|
-
attr_accessor :description
|
31
|
-
|
32
|
-
# A reference to an associated signing service.
|
33
|
-
attr_accessor :metadata_signing_service
|
34
|
-
|
35
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
36
|
-
def self.attribute_map
|
37
|
-
{
|
38
|
-
:'pulp_href' => :'pulp_href',
|
39
|
-
:'pulp_created' => :'pulp_created',
|
40
|
-
:'versions_href' => :'versions_href',
|
41
|
-
:'latest_version_href' => :'latest_version_href',
|
42
|
-
:'name' => :'name',
|
43
|
-
:'description' => :'description',
|
44
|
-
:'metadata_signing_service' => :'metadata_signing_service'
|
45
|
-
}
|
46
|
-
end
|
47
|
-
|
48
|
-
# Attribute type mapping.
|
49
|
-
def self.openapi_types
|
50
|
-
{
|
51
|
-
:'pulp_href' => :'String',
|
52
|
-
:'pulp_created' => :'DateTime',
|
53
|
-
:'versions_href' => :'String',
|
54
|
-
:'latest_version_href' => :'String',
|
55
|
-
:'name' => :'String',
|
56
|
-
:'description' => :'String',
|
57
|
-
:'metadata_signing_service' => :'String'
|
58
|
-
}
|
59
|
-
end
|
60
|
-
|
61
|
-
# List of attributes with nullable: true
|
62
|
-
def self.openapi_nullable
|
63
|
-
Set.new([
|
64
|
-
:'description',
|
65
|
-
:'metadata_signing_service'
|
66
|
-
])
|
67
|
-
end
|
68
|
-
|
69
|
-
# Initializes the object
|
70
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
71
|
-
def initialize(attributes = {})
|
72
|
-
if (!attributes.is_a?(Hash))
|
73
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpRpmClient::RpmRpmRepositoryRead` initialize method"
|
74
|
-
end
|
75
|
-
|
76
|
-
# check to see if the attribute exists and convert string to symbol for hash key
|
77
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
78
|
-
if (!self.class.attribute_map.key?(k.to_sym))
|
79
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpRpmClient::RpmRpmRepositoryRead`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
80
|
-
end
|
81
|
-
h[k.to_sym] = v
|
82
|
-
}
|
83
|
-
|
84
|
-
if attributes.key?(:'pulp_href')
|
85
|
-
self.pulp_href = attributes[:'pulp_href']
|
86
|
-
end
|
87
|
-
|
88
|
-
if attributes.key?(:'pulp_created')
|
89
|
-
self.pulp_created = attributes[:'pulp_created']
|
90
|
-
end
|
91
|
-
|
92
|
-
if attributes.key?(:'versions_href')
|
93
|
-
self.versions_href = attributes[:'versions_href']
|
94
|
-
end
|
95
|
-
|
96
|
-
if attributes.key?(:'latest_version_href')
|
97
|
-
self.latest_version_href = attributes[:'latest_version_href']
|
98
|
-
end
|
99
|
-
|
100
|
-
if attributes.key?(:'name')
|
101
|
-
self.name = attributes[:'name']
|
102
|
-
end
|
103
|
-
|
104
|
-
if attributes.key?(:'description')
|
105
|
-
self.description = attributes[:'description']
|
106
|
-
end
|
107
|
-
|
108
|
-
if attributes.key?(:'metadata_signing_service')
|
109
|
-
self.metadata_signing_service = attributes[:'metadata_signing_service']
|
110
|
-
end
|
111
|
-
end
|
112
|
-
|
113
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
114
|
-
# @return Array for valid properties with the reasons
|
115
|
-
def list_invalid_properties
|
116
|
-
invalid_properties = Array.new
|
117
|
-
if @name.nil?
|
118
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
119
|
-
end
|
120
|
-
|
121
|
-
if @name.to_s.length < 1
|
122
|
-
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
123
|
-
end
|
124
|
-
|
125
|
-
if !@description.nil? && @description.to_s.length < 1
|
126
|
-
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
127
|
-
end
|
128
|
-
|
129
|
-
invalid_properties
|
130
|
-
end
|
131
|
-
|
132
|
-
# Check to see if the all the properties in the model are valid
|
133
|
-
# @return true if the model is valid
|
134
|
-
def valid?
|
135
|
-
return false if @name.nil?
|
136
|
-
return false if @name.to_s.length < 1
|
137
|
-
return false if !@description.nil? && @description.to_s.length < 1
|
138
|
-
true
|
139
|
-
end
|
140
|
-
|
141
|
-
# Custom attribute writer method with validation
|
142
|
-
# @param [Object] name Value to be assigned
|
143
|
-
def name=(name)
|
144
|
-
if name.nil?
|
145
|
-
fail ArgumentError, 'name cannot be nil'
|
146
|
-
end
|
147
|
-
|
148
|
-
if name.to_s.length < 1
|
149
|
-
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
150
|
-
end
|
151
|
-
|
152
|
-
@name = name
|
153
|
-
end
|
154
|
-
|
155
|
-
# Custom attribute writer method with validation
|
156
|
-
# @param [Object] description Value to be assigned
|
157
|
-
def description=(description)
|
158
|
-
if !description.nil? && description.to_s.length < 1
|
159
|
-
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
160
|
-
end
|
161
|
-
|
162
|
-
@description = description
|
163
|
-
end
|
164
|
-
|
165
|
-
# Checks equality by comparing each attribute.
|
166
|
-
# @param [Object] Object to be compared
|
167
|
-
def ==(o)
|
168
|
-
return true if self.equal?(o)
|
169
|
-
self.class == o.class &&
|
170
|
-
pulp_href == o.pulp_href &&
|
171
|
-
pulp_created == o.pulp_created &&
|
172
|
-
versions_href == o.versions_href &&
|
173
|
-
latest_version_href == o.latest_version_href &&
|
174
|
-
name == o.name &&
|
175
|
-
description == o.description &&
|
176
|
-
metadata_signing_service == o.metadata_signing_service
|
177
|
-
end
|
178
|
-
|
179
|
-
# @see the `==` method
|
180
|
-
# @param [Object] Object to be compared
|
181
|
-
def eql?(o)
|
182
|
-
self == o
|
183
|
-
end
|
184
|
-
|
185
|
-
# Calculates hash code according to all attributes.
|
186
|
-
# @return [Integer] Hash code
|
187
|
-
def hash
|
188
|
-
[pulp_href, pulp_created, versions_href, latest_version_href, name, description, metadata_signing_service].hash
|
189
|
-
end
|
190
|
-
|
191
|
-
# Builds the object from hash
|
192
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
193
|
-
# @return [Object] Returns the model itself
|
194
|
-
def self.build_from_hash(attributes)
|
195
|
-
new.build_from_hash(attributes)
|
196
|
-
end
|
197
|
-
|
198
|
-
# Builds the object from hash
|
199
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
200
|
-
# @return [Object] Returns the model itself
|
201
|
-
def build_from_hash(attributes)
|
202
|
-
return nil unless attributes.is_a?(Hash)
|
203
|
-
self.class.openapi_types.each_pair do |key, type|
|
204
|
-
if type =~ /\AArray<(.*)>/i
|
205
|
-
# check to ensure the input is an array given that the attribute
|
206
|
-
# is documented as an array but the input is not
|
207
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
208
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
209
|
-
end
|
210
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
211
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
212
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
213
|
-
end
|
214
|
-
|
215
|
-
self
|
216
|
-
end
|
217
|
-
|
218
|
-
# Deserializes the data based on type
|
219
|
-
# @param string type Data type
|
220
|
-
# @param string value Value to be deserialized
|
221
|
-
# @return [Object] Deserialized data
|
222
|
-
def _deserialize(type, value)
|
223
|
-
case type.to_sym
|
224
|
-
when :DateTime
|
225
|
-
DateTime.parse(value)
|
226
|
-
when :Date
|
227
|
-
Date.parse(value)
|
228
|
-
when :String
|
229
|
-
value.to_s
|
230
|
-
when :Integer
|
231
|
-
value.to_i
|
232
|
-
when :Float
|
233
|
-
value.to_f
|
234
|
-
when :Boolean
|
235
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
236
|
-
true
|
237
|
-
else
|
238
|
-
false
|
239
|
-
end
|
240
|
-
when :Object
|
241
|
-
# generic object (usually a Hash), return directly
|
242
|
-
value
|
243
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
244
|
-
inner_type = Regexp.last_match[:inner_type]
|
245
|
-
value.map { |v| _deserialize(inner_type, v) }
|
246
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
247
|
-
k_type = Regexp.last_match[:k_type]
|
248
|
-
v_type = Regexp.last_match[:v_type]
|
249
|
-
{}.tap do |hash|
|
250
|
-
value.each do |k, v|
|
251
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
252
|
-
end
|
253
|
-
end
|
254
|
-
else # model
|
255
|
-
PulpRpmClient.const_get(type).build_from_hash(value)
|
256
|
-
end
|
257
|
-
end
|
258
|
-
|
259
|
-
# Returns the string representation of the object
|
260
|
-
# @return [String] String presentation of the object
|
261
|
-
def to_s
|
262
|
-
to_hash.to_s
|
263
|
-
end
|
264
|
-
|
265
|
-
# to_body is an alias to to_hash (backward compatibility)
|
266
|
-
# @return [Hash] Returns the object in the form of hash
|
267
|
-
def to_body
|
268
|
-
to_hash
|
269
|
-
end
|
270
|
-
|
271
|
-
# Returns the object in the form of hash
|
272
|
-
# @return [Hash] Returns the object in the form of hash
|
273
|
-
def to_hash
|
274
|
-
hash = {}
|
275
|
-
self.class.attribute_map.each_pair do |attr, param|
|
276
|
-
value = self.send(attr)
|
277
|
-
if value.nil?
|
278
|
-
is_nullable = self.class.openapi_nullable.include?(attr)
|
279
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
280
|
-
end
|
281
|
-
|
282
|
-
hash[param] = _to_hash(value)
|
283
|
-
end
|
284
|
-
hash
|
285
|
-
end
|
286
|
-
|
287
|
-
# Outputs non-array value in the form of hash
|
288
|
-
# For object, use to_hash. Otherwise, just return the value
|
289
|
-
# @param [Object] value Any valid value
|
290
|
-
# @return [Hash] Returns the value in the form of hash
|
291
|
-
def _to_hash(value)
|
292
|
-
if value.is_a?(Array)
|
293
|
-
value.compact.map { |v| _to_hash(v) }
|
294
|
-
elsif value.is_a?(Hash)
|
295
|
-
{}.tap do |hash|
|
296
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
297
|
-
end
|
298
|
-
elsif value.respond_to? :to_hash
|
299
|
-
value.to_hash
|
300
|
-
else
|
301
|
-
value
|
302
|
-
end
|
303
|
-
end
|
304
|
-
end
|
305
|
-
end
|
@@ -1,65 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Pulp 3 API
|
3
|
-
|
4
|
-
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
-
|
6
|
-
The version of the OpenAPI document: v3
|
7
|
-
|
8
|
-
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.2.3
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'spec_helper'
|
14
|
-
require 'json'
|
15
|
-
require 'date'
|
16
|
-
|
17
|
-
# Unit tests for PulpRpmClient::RepositoryVersionRead
|
18
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
-
# Please update as you see appropriate
|
20
|
-
describe 'RepositoryVersionRead' do
|
21
|
-
before do
|
22
|
-
# run before each test
|
23
|
-
@instance = PulpRpmClient::RepositoryVersionRead.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
29
|
-
|
30
|
-
describe 'test an instance of RepositoryVersionRead' do
|
31
|
-
it 'should create an instance of RepositoryVersionRead' do
|
32
|
-
expect(@instance).to be_instance_of(PulpRpmClient::RepositoryVersionRead)
|
33
|
-
end
|
34
|
-
end
|
35
|
-
describe 'test attribute "pulp_href"' do
|
36
|
-
it 'should work' do
|
37
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
-
end
|
39
|
-
end
|
40
|
-
|
41
|
-
describe 'test attribute "pulp_created"' do
|
42
|
-
it 'should work' do
|
43
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
-
end
|
45
|
-
end
|
46
|
-
|
47
|
-
describe 'test attribute "number"' do
|
48
|
-
it 'should work' do
|
49
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
-
end
|
51
|
-
end
|
52
|
-
|
53
|
-
describe 'test attribute "base_version"' do
|
54
|
-
it 'should work' do
|
55
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
-
end
|
57
|
-
end
|
58
|
-
|
59
|
-
describe 'test attribute "content_summary"' do
|
60
|
-
it 'should work' do
|
61
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
|
-
end
|
63
|
-
end
|
64
|
-
|
65
|
-
end
|
@@ -1,77 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Pulp 3 API
|
3
|
-
|
4
|
-
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
-
|
6
|
-
The version of the OpenAPI document: v3
|
7
|
-
|
8
|
-
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.2.3
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'spec_helper'
|
14
|
-
require 'json'
|
15
|
-
require 'date'
|
16
|
-
|
17
|
-
# Unit tests for PulpRpmClient::RpmRpmDistributionRead
|
18
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
-
# Please update as you see appropriate
|
20
|
-
describe 'RpmRpmDistributionRead' do
|
21
|
-
before do
|
22
|
-
# run before each test
|
23
|
-
@instance = PulpRpmClient::RpmRpmDistributionRead.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
29
|
-
|
30
|
-
describe 'test an instance of RpmRpmDistributionRead' do
|
31
|
-
it 'should create an instance of RpmRpmDistributionRead' do
|
32
|
-
expect(@instance).to be_instance_of(PulpRpmClient::RpmRpmDistributionRead)
|
33
|
-
end
|
34
|
-
end
|
35
|
-
describe 'test attribute "pulp_href"' do
|
36
|
-
it 'should work' do
|
37
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
-
end
|
39
|
-
end
|
40
|
-
|
41
|
-
describe 'test attribute "pulp_created"' do
|
42
|
-
it 'should work' do
|
43
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
-
end
|
45
|
-
end
|
46
|
-
|
47
|
-
describe 'test attribute "base_path"' do
|
48
|
-
it 'should work' do
|
49
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
-
end
|
51
|
-
end
|
52
|
-
|
53
|
-
describe 'test attribute "base_url"' do
|
54
|
-
it 'should work' do
|
55
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
-
end
|
57
|
-
end
|
58
|
-
|
59
|
-
describe 'test attribute "content_guard"' do
|
60
|
-
it 'should work' do
|
61
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
|
-
end
|
63
|
-
end
|
64
|
-
|
65
|
-
describe 'test attribute "name"' do
|
66
|
-
it 'should work' do
|
67
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
68
|
-
end
|
69
|
-
end
|
70
|
-
|
71
|
-
describe 'test attribute "publication"' do
|
72
|
-
it 'should work' do
|
73
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
74
|
-
end
|
75
|
-
end
|
76
|
-
|
77
|
-
end
|
@@ -1,79 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Pulp 3 API
|
3
|
-
|
4
|
-
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
-
|
6
|
-
The version of the OpenAPI document: v3
|
7
|
-
|
8
|
-
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.2.3
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'spec_helper'
|
14
|
-
require 'json'
|
15
|
-
require 'date'
|
16
|
-
|
17
|
-
# Unit tests for PulpRpmClient::RpmRpmPublicationRead
|
18
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
-
# Please update as you see appropriate
|
20
|
-
describe 'RpmRpmPublicationRead' do
|
21
|
-
before do
|
22
|
-
# run before each test
|
23
|
-
@instance = PulpRpmClient::RpmRpmPublicationRead.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
29
|
-
|
30
|
-
describe 'test an instance of RpmRpmPublicationRead' do
|
31
|
-
it 'should create an instance of RpmRpmPublicationRead' do
|
32
|
-
expect(@instance).to be_instance_of(PulpRpmClient::RpmRpmPublicationRead)
|
33
|
-
end
|
34
|
-
end
|
35
|
-
describe 'test attribute "pulp_href"' do
|
36
|
-
it 'should work' do
|
37
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
-
end
|
39
|
-
end
|
40
|
-
|
41
|
-
describe 'test attribute "pulp_created"' do
|
42
|
-
it 'should work' do
|
43
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
-
end
|
45
|
-
end
|
46
|
-
|
47
|
-
describe 'test attribute "repository_version"' do
|
48
|
-
it 'should work' do
|
49
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
-
end
|
51
|
-
end
|
52
|
-
|
53
|
-
describe 'test attribute "repository"' do
|
54
|
-
it 'should work' do
|
55
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
-
end
|
57
|
-
end
|
58
|
-
|
59
|
-
describe 'test attribute "metadata_checksum_type"' do
|
60
|
-
it 'should work' do
|
61
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["unknown", "md5", "sha1", "sha224", "sha256", "sha384", "sha512"])
|
63
|
-
# validator.allowable_values.each do |value|
|
64
|
-
# expect { @instance.metadata_checksum_type = value }.not_to raise_error
|
65
|
-
# end
|
66
|
-
end
|
67
|
-
end
|
68
|
-
|
69
|
-
describe 'test attribute "package_checksum_type"' do
|
70
|
-
it 'should work' do
|
71
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
72
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["unknown", "md5", "sha1", "sha224", "sha256", "sha384", "sha512"])
|
73
|
-
# validator.allowable_values.each do |value|
|
74
|
-
# expect { @instance.package_checksum_type = value }.not_to raise_error
|
75
|
-
# end
|
76
|
-
end
|
77
|
-
end
|
78
|
-
|
79
|
-
end
|