pulp_rpm_client 3.3.2 → 3.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (131) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +21 -16
  3. data/docs/ContentAdvisoriesApi.md +5 -5
  4. data/docs/ContentDistributionTreesApi.md +3 -3
  5. data/docs/ContentModulemdDefaultsApi.md +5 -5
  6. data/docs/ContentModulemdsApi.md +5 -5
  7. data/docs/ContentPackagecategoriesApi.md +3 -3
  8. data/docs/ContentPackageenvironmentsApi.md +3 -3
  9. data/docs/ContentPackagegroupsApi.md +3 -3
  10. data/docs/ContentPackagelangpacksApi.md +3 -3
  11. data/docs/ContentPackagesApi.md +5 -5
  12. data/docs/ContentRepoMetadataFilesApi.md +3 -3
  13. data/docs/DistributionsRpmApi.md +3 -3
  14. data/docs/InlineResponse200.md +1 -1
  15. data/docs/InlineResponse2001.md +1 -1
  16. data/docs/InlineResponse20010.md +1 -1
  17. data/docs/InlineResponse20011.md +1 -1
  18. data/docs/InlineResponse20012.md +1 -1
  19. data/docs/InlineResponse20013.md +1 -1
  20. data/docs/InlineResponse20014.md +1 -1
  21. data/docs/InlineResponse2002.md +1 -1
  22. data/docs/InlineResponse2003.md +1 -1
  23. data/docs/InlineResponse2004.md +1 -1
  24. data/docs/InlineResponse2005.md +1 -1
  25. data/docs/InlineResponse2006.md +1 -1
  26. data/docs/InlineResponse2007.md +1 -1
  27. data/docs/InlineResponse2008.md +1 -1
  28. data/docs/InlineResponse2009.md +1 -1
  29. data/docs/PublicationsRpmApi.md +3 -3
  30. data/docs/RemotesRpmApi.md +5 -5
  31. data/docs/RepositoriesRpmApi.md +10 -10
  32. data/docs/RepositoriesRpmVersionsApi.md +3 -3
  33. data/docs/RepositoryVersionRead.md +25 -0
  34. data/docs/RpmCopyApi.md +1 -1
  35. data/docs/{RpmDistributionTree.md → RpmDistributionTreeRead.md} +2 -2
  36. data/docs/{RpmModulemdDefaults.md → RpmModulemdDefaultsRead.md} +2 -2
  37. data/docs/{RpmModulemd.md → RpmModulemdRead.md} +2 -2
  38. data/docs/{RpmPackageCategory.md → RpmPackageCategoryRead.md} +2 -2
  39. data/docs/{RpmPackageEnvironment.md → RpmPackageEnvironmentRead.md} +2 -2
  40. data/docs/{RpmPackageGroup.md → RpmPackageGroupRead.md} +2 -2
  41. data/docs/{RpmPackageLangpacks.md → RpmPackageLangpacksRead.md} +2 -2
  42. data/docs/{RpmPackage.md → RpmPackageRead.md} +2 -2
  43. data/docs/{RpmRepoMetadataFile.md → RpmRepoMetadataFileRead.md} +2 -2
  44. data/docs/RpmRpmDistributionRead.md +29 -0
  45. data/docs/RpmRpmPublicationRead.md +27 -0
  46. data/docs/RpmRpmRemote.md +7 -3
  47. data/docs/RpmRpmRemoteRead.md +43 -0
  48. data/docs/RpmRpmRepositoryRead.md +29 -0
  49. data/docs/{RpmUpdateRecord.md → RpmUpdateRecordRead.md} +2 -2
  50. data/lib/pulp_rpm_client/api/content_advisories_api.rb +5 -5
  51. data/lib/pulp_rpm_client/api/content_distribution_trees_api.rb +3 -3
  52. data/lib/pulp_rpm_client/api/content_modulemd_defaults_api.rb +5 -5
  53. data/lib/pulp_rpm_client/api/content_modulemds_api.rb +5 -5
  54. data/lib/pulp_rpm_client/api/content_packagecategories_api.rb +3 -3
  55. data/lib/pulp_rpm_client/api/content_packageenvironments_api.rb +3 -3
  56. data/lib/pulp_rpm_client/api/content_packagegroups_api.rb +3 -3
  57. data/lib/pulp_rpm_client/api/content_packagelangpacks_api.rb +3 -3
  58. data/lib/pulp_rpm_client/api/content_packages_api.rb +5 -5
  59. data/lib/pulp_rpm_client/api/content_repo_metadata_files_api.rb +3 -3
  60. data/lib/pulp_rpm_client/api/distributions_rpm_api.rb +3 -3
  61. data/lib/pulp_rpm_client/api/publications_rpm_api.rb +3 -3
  62. data/lib/pulp_rpm_client/api/remotes_rpm_api.rb +6 -6
  63. data/lib/pulp_rpm_client/api/repositories_rpm_api.rb +15 -15
  64. data/lib/pulp_rpm_client/api/repositories_rpm_versions_api.rb +3 -3
  65. data/lib/pulp_rpm_client/configuration.rb +2 -2
  66. data/lib/pulp_rpm_client/models/inline_response200.rb +1 -1
  67. data/lib/pulp_rpm_client/models/inline_response2001.rb +1 -1
  68. data/lib/pulp_rpm_client/models/inline_response20010.rb +1 -1
  69. data/lib/pulp_rpm_client/models/inline_response20011.rb +1 -1
  70. data/lib/pulp_rpm_client/models/inline_response20012.rb +1 -1
  71. data/lib/pulp_rpm_client/models/inline_response20013.rb +1 -1
  72. data/lib/pulp_rpm_client/models/inline_response20014.rb +1 -1
  73. data/lib/pulp_rpm_client/models/inline_response2002.rb +1 -1
  74. data/lib/pulp_rpm_client/models/inline_response2003.rb +1 -1
  75. data/lib/pulp_rpm_client/models/inline_response2004.rb +1 -1
  76. data/lib/pulp_rpm_client/models/inline_response2005.rb +1 -1
  77. data/lib/pulp_rpm_client/models/inline_response2006.rb +1 -1
  78. data/lib/pulp_rpm_client/models/inline_response2007.rb +1 -1
  79. data/lib/pulp_rpm_client/models/inline_response2008.rb +1 -1
  80. data/lib/pulp_rpm_client/models/inline_response2009.rb +1 -1
  81. data/lib/pulp_rpm_client/models/repository_version_read.rb +244 -0
  82. data/lib/pulp_rpm_client/models/{rpm_distribution_tree.rb → rpm_distribution_tree_read.rb} +3 -3
  83. data/lib/pulp_rpm_client/models/{rpm_modulemd_defaults.rb → rpm_modulemd_defaults_read.rb} +3 -3
  84. data/lib/pulp_rpm_client/models/{rpm_modulemd.rb → rpm_modulemd_read.rb} +3 -3
  85. data/lib/pulp_rpm_client/models/{rpm_package_category.rb → rpm_package_category_read.rb} +3 -3
  86. data/lib/pulp_rpm_client/models/{rpm_package_environment.rb → rpm_package_environment_read.rb} +3 -3
  87. data/lib/pulp_rpm_client/models/{rpm_package_group.rb → rpm_package_group_read.rb} +3 -3
  88. data/lib/pulp_rpm_client/models/{rpm_package_langpacks.rb → rpm_package_langpacks_read.rb} +3 -3
  89. data/lib/pulp_rpm_client/models/{rpm_package.rb → rpm_package_read.rb} +3 -3
  90. data/lib/pulp_rpm_client/models/{rpm_repo_metadata_file.rb → rpm_repo_metadata_file_read.rb} +3 -3
  91. data/lib/pulp_rpm_client/models/rpm_rpm_distribution_read.rb +331 -0
  92. data/lib/pulp_rpm_client/models/rpm_rpm_publication_read.rb +305 -0
  93. data/lib/pulp_rpm_client/models/rpm_rpm_remote.rb +56 -4
  94. data/lib/pulp_rpm_client/models/rpm_rpm_remote_read.rb +531 -0
  95. data/lib/pulp_rpm_client/models/rpm_rpm_repository_read.rb +305 -0
  96. data/lib/pulp_rpm_client/models/{rpm_update_record.rb → rpm_update_record_read.rb} +3 -3
  97. data/lib/pulp_rpm_client/version.rb +1 -1
  98. data/lib/pulp_rpm_client.rb +15 -10
  99. data/spec/api/content_advisories_api_spec.rb +2 -2
  100. data/spec/api/content_distribution_trees_api_spec.rb +1 -1
  101. data/spec/api/content_modulemd_defaults_api_spec.rb +2 -2
  102. data/spec/api/content_modulemds_api_spec.rb +2 -2
  103. data/spec/api/content_packagecategories_api_spec.rb +1 -1
  104. data/spec/api/content_packageenvironments_api_spec.rb +1 -1
  105. data/spec/api/content_packagegroups_api_spec.rb +1 -1
  106. data/spec/api/content_packagelangpacks_api_spec.rb +1 -1
  107. data/spec/api/content_packages_api_spec.rb +2 -2
  108. data/spec/api/content_repo_metadata_files_api_spec.rb +1 -1
  109. data/spec/api/distributions_rpm_api_spec.rb +1 -1
  110. data/spec/api/publications_rpm_api_spec.rb +1 -1
  111. data/spec/api/remotes_rpm_api_spec.rb +2 -2
  112. data/spec/api/repositories_rpm_api_spec.rb +6 -6
  113. data/spec/api/repositories_rpm_versions_api_spec.rb +1 -1
  114. data/spec/configuration_spec.rb +3 -3
  115. data/spec/models/repository_version_read_spec.rb +65 -0
  116. data/spec/models/{rpm_distribution_tree_spec.rb → rpm_distribution_tree_read_spec.rb} +6 -6
  117. data/spec/models/{rpm_modulemd_defaults_spec.rb → rpm_modulemd_defaults_read_spec.rb} +6 -6
  118. data/spec/models/{rpm_modulemd_spec.rb → rpm_modulemd_read_spec.rb} +6 -6
  119. data/spec/models/{rpm_package_category_spec.rb → rpm_package_category_read_spec.rb} +6 -6
  120. data/spec/models/{rpm_package_environment_spec.rb → rpm_package_environment_read_spec.rb} +6 -6
  121. data/spec/models/{rpm_package_group_spec.rb → rpm_package_group_read_spec.rb} +6 -6
  122. data/spec/models/{rpm_package_langpacks_spec.rb → rpm_package_langpacks_read_spec.rb} +6 -6
  123. data/spec/models/{rpm_package_spec.rb → rpm_package_read_spec.rb} +6 -6
  124. data/spec/models/{rpm_repo_metadata_file_spec.rb → rpm_repo_metadata_file_read_spec.rb} +6 -6
  125. data/spec/models/rpm_rpm_distribution_read_spec.rb +77 -0
  126. data/spec/models/rpm_rpm_publication_read_spec.rb +79 -0
  127. data/spec/models/rpm_rpm_remote_read_spec.rb +123 -0
  128. data/spec/models/rpm_rpm_remote_spec.rb +12 -0
  129. data/spec/models/rpm_rpm_repository_read_spec.rb +77 -0
  130. data/spec/models/{rpm_update_record_spec.rb → rpm_update_record_read_spec.rb} +6 -6
  131. metadata +62 -42
@@ -0,0 +1,305 @@
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
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.2.3
13
13
  require 'date'
14
14
 
15
15
  module PulpRpmClient
16
- class RpmUpdateRecord
16
+ class RpmUpdateRecordRead
17
17
  attr_accessor :pulp_href
18
18
 
19
19
  # Timestamp of creation.
@@ -140,13 +140,13 @@ module PulpRpmClient
140
140
  # @param [Hash] attributes Model attributes in the form of hash
141
141
  def initialize(attributes = {})
142
142
  if (!attributes.is_a?(Hash))
143
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpRpmClient::RpmUpdateRecord` initialize method"
143
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpRpmClient::RpmUpdateRecordRead` initialize method"
144
144
  end
145
145
 
146
146
  # check to see if the attribute exists and convert string to symbol for hash key
147
147
  attributes = attributes.each_with_object({}) { |(k, v), h|
148
148
  if (!self.class.attribute_map.key?(k.to_sym))
149
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpRpmClient::RpmUpdateRecord`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
149
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpRpmClient::RpmUpdateRecordRead`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
150
150
  end
151
151
  h[k.to_sym] = v
152
152
  }
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.2.3
11
11
  =end
12
12
 
13
13
  module PulpRpmClient
14
- VERSION = '3.3.2'
14
+ VERSION = '3.4.0'
15
15
  end
@@ -41,22 +41,27 @@ require 'pulp_rpm_client/models/inline_response2008'
41
41
  require 'pulp_rpm_client/models/inline_response2009'
42
42
  require 'pulp_rpm_client/models/repository_add_remove_content'
43
43
  require 'pulp_rpm_client/models/repository_version'
44
- require 'pulp_rpm_client/models/rpm_distribution_tree'
45
- require 'pulp_rpm_client/models/rpm_modulemd'
46
- require 'pulp_rpm_client/models/rpm_modulemd_defaults'
47
- require 'pulp_rpm_client/models/rpm_package'
48
- require 'pulp_rpm_client/models/rpm_package_category'
49
- require 'pulp_rpm_client/models/rpm_package_environment'
50
- require 'pulp_rpm_client/models/rpm_package_group'
51
- require 'pulp_rpm_client/models/rpm_package_langpacks'
52
- require 'pulp_rpm_client/models/rpm_repo_metadata_file'
44
+ require 'pulp_rpm_client/models/repository_version_read'
45
+ require 'pulp_rpm_client/models/rpm_distribution_tree_read'
46
+ require 'pulp_rpm_client/models/rpm_modulemd_defaults_read'
47
+ require 'pulp_rpm_client/models/rpm_modulemd_read'
48
+ require 'pulp_rpm_client/models/rpm_package_category_read'
49
+ require 'pulp_rpm_client/models/rpm_package_environment_read'
50
+ require 'pulp_rpm_client/models/rpm_package_group_read'
51
+ require 'pulp_rpm_client/models/rpm_package_langpacks_read'
52
+ require 'pulp_rpm_client/models/rpm_package_read'
53
+ require 'pulp_rpm_client/models/rpm_repo_metadata_file_read'
53
54
  require 'pulp_rpm_client/models/rpm_repository_sync_url'
54
55
  require 'pulp_rpm_client/models/rpm_rpm_distribution'
56
+ require 'pulp_rpm_client/models/rpm_rpm_distribution_read'
55
57
  require 'pulp_rpm_client/models/rpm_rpm_publication'
58
+ require 'pulp_rpm_client/models/rpm_rpm_publication_read'
56
59
  require 'pulp_rpm_client/models/rpm_rpm_remote'
60
+ require 'pulp_rpm_client/models/rpm_rpm_remote_read'
57
61
  require 'pulp_rpm_client/models/rpm_rpm_repository'
62
+ require 'pulp_rpm_client/models/rpm_rpm_repository_read'
58
63
  require 'pulp_rpm_client/models/rpm_update_collection'
59
- require 'pulp_rpm_client/models/rpm_update_record'
64
+ require 'pulp_rpm_client/models/rpm_update_record_read'
60
65
  require 'pulp_rpm_client/models/variant'
61
66
 
62
67
  # APIs
@@ -38,7 +38,7 @@ describe 'ContentAdvisoriesApi' do
38
38
  # @param relative_path Path where the artifact is located relative to distributions base_path
39
39
  # @param [Hash] opts the optional parameters
40
40
  # @option opts [String] :artifact Artifact file representing the physical content
41
- # @option opts [File] :file An uploaded file that should be turned into the artifact of the content unit.
41
+ # @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
42
42
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
43
43
  # @return [AsyncOperationResponse]
44
44
  describe 'create test' do
@@ -84,7 +84,7 @@ describe 'ContentAdvisoriesApi' do
84
84
  # @param [Hash] opts the optional parameters
85
85
  # @option opts [String] :fields A list of fields to include in the response.
86
86
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
87
- # @return [RpmUpdateRecord]
87
+ # @return [RpmUpdateRecordRead]
88
88
  describe 'read test' do
89
89
  it 'should work' do
90
90
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -70,7 +70,7 @@ describe 'ContentDistributionTreesApi' do
70
70
  # @param [Hash] opts the optional parameters
71
71
  # @option opts [String] :fields A list of fields to include in the response.
72
72
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
73
- # @return [RpmDistributionTree]
73
+ # @return [RpmDistributionTreeRead]
74
74
  describe 'read test' do
75
75
  it 'should work' do
76
76
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -41,7 +41,7 @@ describe 'ContentModulemdDefaultsApi' do
41
41
  # @param profiles Default profiles for modulemd streams.
42
42
  # @param [Hash] opts the optional parameters
43
43
  # @option opts [String] :artifact Artifact file representing the physical content
44
- # @option opts [File] :file An uploaded file that should be turned into the artifact of the content unit.
44
+ # @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
45
45
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
46
46
  # @return [AsyncOperationResponse]
47
47
  describe 'create test' do
@@ -81,7 +81,7 @@ describe 'ContentModulemdDefaultsApi' do
81
81
  # @param [Hash] opts the optional parameters
82
82
  # @option opts [String] :fields A list of fields to include in the response.
83
83
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
84
- # @return [RpmModulemdDefaults]
84
+ # @return [RpmModulemdDefaultsRead]
85
85
  describe 'read test' do
86
86
  it 'should work' do
87
87
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -45,7 +45,7 @@ describe 'ContentModulemdsApi' do
45
45
  # @param dependencies Modulemd dependencies.
46
46
  # @param [Hash] opts the optional parameters
47
47
  # @option opts [String] :artifact Artifact file representing the physical content
48
- # @option opts [File] :file An uploaded file that should be turned into the artifact of the content unit.
48
+ # @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
49
49
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
50
50
  # @option opts [Array<String>] :packages Modulemd artifacts&#39; packages.
51
51
  # @return [AsyncOperationResponse]
@@ -86,7 +86,7 @@ describe 'ContentModulemdsApi' do
86
86
  # @param [Hash] opts the optional parameters
87
87
  # @option opts [String] :fields A list of fields to include in the response.
88
88
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
89
- # @return [RpmModulemd]
89
+ # @return [RpmModulemdRead]
90
90
  describe 'read test' do
91
91
  it 'should work' do
92
92
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -70,7 +70,7 @@ describe 'ContentPackagecategoriesApi' do
70
70
  # @param [Hash] opts the optional parameters
71
71
  # @option opts [String] :fields A list of fields to include in the response.
72
72
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
73
- # @return [RpmPackageCategory]
73
+ # @return [RpmPackageCategoryRead]
74
74
  describe 'read test' do
75
75
  it 'should work' do
76
76
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -70,7 +70,7 @@ describe 'ContentPackageenvironmentsApi' do
70
70
  # @param [Hash] opts the optional parameters
71
71
  # @option opts [String] :fields A list of fields to include in the response.
72
72
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
73
- # @return [RpmPackageEnvironment]
73
+ # @return [RpmPackageEnvironmentRead]
74
74
  describe 'read test' do
75
75
  it 'should work' do
76
76
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -70,7 +70,7 @@ describe 'ContentPackagegroupsApi' do
70
70
  # @param [Hash] opts the optional parameters
71
71
  # @option opts [String] :fields A list of fields to include in the response.
72
72
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
73
- # @return [RpmPackageGroup]
73
+ # @return [RpmPackageGroupRead]
74
74
  describe 'read test' do
75
75
  it 'should work' do
76
76
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -70,7 +70,7 @@ describe 'ContentPackagelangpacksApi' do
70
70
  # @param [Hash] opts the optional parameters
71
71
  # @option opts [String] :fields A list of fields to include in the response.
72
72
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
73
- # @return [RpmPackageLangpacks]
73
+ # @return [RpmPackageLangpacksRead]
74
74
  describe 'read test' do
75
75
  it 'should work' do
76
76
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -38,7 +38,7 @@ describe 'ContentPackagesApi' do
38
38
  # @param relative_path Path where the artifact is located relative to distributions base_path
39
39
  # @param [Hash] opts the optional parameters
40
40
  # @option opts [String] :artifact Artifact file representing the physical content
41
- # @option opts [File] :file An uploaded file that should be turned into the artifact of the content unit.
41
+ # @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
42
42
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
43
43
  # @return [AsyncOperationResponse]
44
44
  describe 'create test' do
@@ -94,7 +94,7 @@ describe 'ContentPackagesApi' do
94
94
  # @param [Hash] opts the optional parameters
95
95
  # @option opts [String] :fields A list of fields to include in the response.
96
96
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
97
- # @return [RpmPackage]
97
+ # @return [RpmPackageRead]
98
98
  describe 'read test' do
99
99
  it 'should work' do
100
100
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -70,7 +70,7 @@ describe 'ContentRepoMetadataFilesApi' do
70
70
  # @param [Hash] opts the optional parameters
71
71
  # @option opts [String] :fields A list of fields to include in the response.
72
72
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
73
- # @return [RpmRepoMetadataFile]
73
+ # @return [RpmRepoMetadataFileRead]
74
74
  describe 'read test' do
75
75
  it 'should work' do
76
76
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -98,7 +98,7 @@ describe 'DistributionsRpmApi' do
98
98
  # @param [Hash] opts the optional parameters
99
99
  # @option opts [String] :fields A list of fields to include in the response.
100
100
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
101
- # @return [RpmRpmDistribution]
101
+ # @return [RpmRpmDistributionRead]
102
102
  describe 'read test' do
103
103
  it 'should work' do
104
104
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -86,7 +86,7 @@ describe 'PublicationsRpmApi' do
86
86
  # @param [Hash] opts the optional parameters
87
87
  # @option opts [String] :fields A list of fields to include in the response.
88
88
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
89
- # @return [RpmRpmPublication]
89
+ # @return [RpmRpmPublicationRead]
90
90
  describe 'read test' do
91
91
  it 'should work' do
92
92
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -37,7 +37,7 @@ describe 'RemotesRpmApi' do
37
37
  # A ViewSet for RpmRemote.
38
38
  # @param data
39
39
  # @param [Hash] opts the optional parameters
40
- # @return [RpmRpmRemote]
40
+ # @return [RpmRpmRemoteRead]
41
41
  describe 'create test' do
42
42
  it 'should work' do
43
43
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -100,7 +100,7 @@ describe 'RemotesRpmApi' do
100
100
  # @param [Hash] opts the optional parameters
101
101
  # @option opts [String] :fields A list of fields to include in the response.
102
102
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
103
- # @return [RpmRpmRemote]
103
+ # @return [RpmRpmRemoteRead]
104
104
  describe 'read test' do
105
105
  it 'should work' do
106
106
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -37,7 +37,7 @@ describe 'RepositoriesRpmApi' do
37
37
  # A ViewSet for RpmRepository.
38
38
  # @param data
39
39
  # @param [Hash] opts the optional parameters
40
- # @return [RpmRpmRepository]
40
+ # @return [RpmRpmRepositoryRead]
41
41
  describe 'create test' do
42
42
  it 'should work' do
43
43
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -46,7 +46,7 @@ describe 'RepositoriesRpmApi' do
46
46
 
47
47
  # unit tests for delete
48
48
  # Delete a rpm repository
49
- # Trigger an asynchronous task to delete a repository.
49
+ # Trigger an asynchronous delete task
50
50
  # @param rpm_repository_href URI of Rpm Repository. e.g.: /pulp/api/v3/repositories/rpm/rpm/1/
51
51
  # @param [Hash] opts the optional parameters
52
52
  # @return [AsyncOperationResponse]
@@ -89,11 +89,11 @@ describe 'RepositoriesRpmApi' do
89
89
 
90
90
  # unit tests for partial_update
91
91
  # Partially update a rpm repository
92
- # A ViewSet for RpmRepository.
92
+ # Trigger an asynchronous partial update task
93
93
  # @param rpm_repository_href URI of Rpm Repository. e.g.: /pulp/api/v3/repositories/rpm/rpm/1/
94
94
  # @param data
95
95
  # @param [Hash] opts the optional parameters
96
- # @return [RpmRpmRepository]
96
+ # @return [AsyncOperationResponse]
97
97
  describe 'partial_update test' do
98
98
  it 'should work' do
99
99
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -107,7 +107,7 @@ describe 'RepositoriesRpmApi' do
107
107
  # @param [Hash] opts the optional parameters
108
108
  # @option opts [String] :fields A list of fields to include in the response.
109
109
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
110
- # @return [RpmRpmRepository]
110
+ # @return [RpmRpmRepositoryRead]
111
111
  describe 'read test' do
112
112
  it 'should work' do
113
113
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -129,7 +129,7 @@ describe 'RepositoriesRpmApi' do
129
129
 
130
130
  # unit tests for update
131
131
  # Update a rpm repository
132
- # Trigger an asynchronous task to update a repository.
132
+ # Trigger an asynchronous update task
133
133
  # @param rpm_repository_href URI of Rpm Repository. e.g.: /pulp/api/v3/repositories/rpm/rpm/1/
134
134
  # @param data
135
135
  # @param [Hash] opts the optional parameters
@@ -81,7 +81,7 @@ describe 'RepositoriesRpmVersionsApi' do
81
81
  # @param [Hash] opts the optional parameters
82
82
  # @option opts [String] :fields A list of fields to include in the response.
83
83
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
84
- # @return [RepositoryVersion]
84
+ # @return [RepositoryVersionRead]
85
85
  describe 'read test' do
86
86
  it 'should work' do
87
87
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -18,7 +18,7 @@ describe PulpRpmClient::Configuration do
18
18
  before(:each) do
19
19
  # uncomment below to setup host and base_path
20
20
  # require 'URI'
21
- # uri = URI.parse("http://localhost:24817")
21
+ # uri = URI.parse("http://pulp")
22
22
  # PulpRpmClient.configure do |c|
23
23
  # c.host = uri.host
24
24
  # c.base_path = uri.path
@@ -28,14 +28,14 @@ describe PulpRpmClient::Configuration do
28
28
  describe '#base_url' do
29
29
  it 'should have the default value' do
30
30
  # uncomment below to test default value of the base path
31
- # expect(config.base_url).to eq("http://localhost:24817")
31
+ # expect(config.base_url).to eq("http://pulp")
32
32
  end
33
33
 
34
34
  it 'should remove trailing slashes' do
35
35
  [nil, '', '/', '//'].each do |base_path|
36
36
  config.base_path = base_path
37
37
  # uncomment below to test trailing slashes
38
- # expect(config.base_url).to eq("http://localhost:24817")
38
+ # expect(config.base_url).to eq("http://pulp")
39
39
  end
40
40
  end
41
41
  end