pulp_rpm_client 3.11.1 → 3.11.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (218) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/README.md +19 -20
  4. data/docs/ContentAdvisoriesApi.md +30 -30
  5. data/docs/ContentDistributionTreesApi.md +8 -8
  6. data/docs/ContentModulemdDefaultsApi.md +18 -18
  7. data/docs/ContentModulemdsApi.md +18 -18
  8. data/docs/ContentPackagecategoriesApi.md +8 -8
  9. data/docs/ContentPackageenvironmentsApi.md +8 -8
  10. data/docs/ContentPackagegroupsApi.md +8 -8
  11. data/docs/ContentPackagelangpacksApi.md +8 -8
  12. data/docs/ContentPackagesApi.md +50 -50
  13. data/docs/ContentRepoMetadataFilesApi.md +8 -8
  14. data/docs/ContentSummary.md +3 -3
  15. data/docs/ContentSummaryResponse.md +3 -3
  16. data/docs/DistributionsRpmApi.md +14 -22
  17. data/docs/{PaginatedrpmUpdateRecordResponseList.md → InlineResponse200.md} +4 -4
  18. data/docs/{PaginatedrpmDistributionTreeResponseList.md → InlineResponse2001.md} +4 -4
  19. data/docs/{PaginatedrpmRpmDistributionResponseList.md → InlineResponse20010.md} +4 -4
  20. data/docs/{PaginatedrpmRpmPublicationResponseList.md → InlineResponse20011.md} +4 -4
  21. data/docs/{PaginatedrpmRpmRemoteResponseList.md → InlineResponse20012.md} +4 -4
  22. data/docs/{PaginatedrpmRpmRepositoryResponseList.md → InlineResponse20013.md} +4 -4
  23. data/docs/{PaginatedRepositoryVersionResponseList.md → InlineResponse20014.md} +4 -4
  24. data/docs/{PaginatedrpmModulemdDefaultsResponseList.md → InlineResponse2002.md} +4 -4
  25. data/docs/{PaginatedrpmModulemdResponseList.md → InlineResponse2003.md} +4 -4
  26. data/docs/{PaginatedrpmPackageCategoryResponseList.md → InlineResponse2004.md} +4 -4
  27. data/docs/{PaginatedrpmPackageEnvironmentResponseList.md → InlineResponse2005.md} +4 -4
  28. data/docs/{PaginatedrpmPackageGroupResponseList.md → InlineResponse2006.md} +4 -4
  29. data/docs/{PaginatedrpmPackageLangpacksResponseList.md → InlineResponse2007.md} +4 -4
  30. data/docs/{PaginatedrpmPackageResponseList.md → InlineResponse2008.md} +4 -4
  31. data/docs/{PaginatedrpmRepoMetadataFileResponseList.md → InlineResponse2009.md} +4 -4
  32. data/docs/PatchedrpmRpmDistribution.md +0 -2
  33. data/docs/PatchedrpmRpmRemote.md +1 -19
  34. data/docs/PatchedrpmRpmRepository.md +1 -3
  35. data/docs/PublicationsRpmApi.md +16 -16
  36. data/docs/RemotesRpmApi.md +18 -26
  37. data/docs/RepositoriesRpmApi.md +6 -14
  38. data/docs/RepositoriesRpmVersionsApi.md +32 -32
  39. data/docs/RepositoryAddRemoveContent.md +2 -2
  40. data/docs/RpmRepositorySyncURL.md +1 -1
  41. data/docs/RpmRpmDistribution.md +0 -2
  42. data/docs/RpmRpmDistributionResponse.md +0 -2
  43. data/docs/RpmRpmRemote.md +1 -19
  44. data/docs/RpmRpmRemoteResponse.md +7 -15
  45. data/docs/RpmRpmRepository.md +1 -3
  46. data/docs/RpmRpmRepositoryResponse.md +0 -2
  47. data/lib/pulp_rpm_client/api/content_advisories_api.rb +36 -36
  48. data/lib/pulp_rpm_client/api/content_distribution_trees_api.rb +10 -10
  49. data/lib/pulp_rpm_client/api/content_modulemd_defaults_api.rb +22 -22
  50. data/lib/pulp_rpm_client/api/content_modulemds_api.rb +22 -22
  51. data/lib/pulp_rpm_client/api/content_packagecategories_api.rb +10 -10
  52. data/lib/pulp_rpm_client/api/content_packageenvironments_api.rb +10 -10
  53. data/lib/pulp_rpm_client/api/content_packagegroups_api.rb +10 -10
  54. data/lib/pulp_rpm_client/api/content_packagelangpacks_api.rb +10 -10
  55. data/lib/pulp_rpm_client/api/content_packages_api.rb +60 -60
  56. data/lib/pulp_rpm_client/api/content_repo_metadata_files_api.rb +10 -10
  57. data/lib/pulp_rpm_client/api/distributions_rpm_api.rb +18 -30
  58. data/lib/pulp_rpm_client/api/publications_rpm_api.rb +19 -19
  59. data/lib/pulp_rpm_client/api/remotes_rpm_api.rb +22 -34
  60. data/lib/pulp_rpm_client/api/repositories_rpm_api.rb +9 -21
  61. data/lib/pulp_rpm_client/api/repositories_rpm_versions_api.rb +38 -38
  62. data/lib/pulp_rpm_client/api/rpm_copy_api.rb +1 -1
  63. data/lib/pulp_rpm_client/api_client.rb +12 -8
  64. data/lib/pulp_rpm_client/api_error.rb +1 -1
  65. data/lib/pulp_rpm_client/configuration.rb +8 -1
  66. data/lib/pulp_rpm_client/models/addon_response.rb +1 -1
  67. data/lib/pulp_rpm_client/models/artifact_response.rb +1 -1
  68. data/lib/pulp_rpm_client/models/async_operation_response.rb +1 -1
  69. data/lib/pulp_rpm_client/models/checksum_response.rb +1 -1
  70. data/lib/pulp_rpm_client/models/content_summary.rb +7 -13
  71. data/lib/pulp_rpm_client/models/content_summary_response.rb +7 -13
  72. data/lib/pulp_rpm_client/models/copy.rb +1 -1
  73. data/lib/pulp_rpm_client/models/image_response.rb +1 -1
  74. data/lib/pulp_rpm_client/models/{paginatedrpm_update_record_response_list.rb → inline_response200.rb} +4 -4
  75. data/lib/pulp_rpm_client/models/{paginatedrpm_distribution_tree_response_list.rb → inline_response2001.rb} +4 -4
  76. data/lib/pulp_rpm_client/models/{paginatedrpm_rpm_distribution_response_list.rb → inline_response20010.rb} +4 -4
  77. data/lib/pulp_rpm_client/models/{paginatedrpm_rpm_publication_response_list.rb → inline_response20011.rb} +4 -4
  78. data/lib/pulp_rpm_client/models/{paginatedrpm_rpm_remote_response_list.rb → inline_response20012.rb} +4 -4
  79. data/lib/pulp_rpm_client/models/{paginatedrpm_rpm_repository_response_list.rb → inline_response20013.rb} +4 -4
  80. data/lib/pulp_rpm_client/models/{paginated_repository_version_response_list.rb → inline_response20014.rb} +4 -4
  81. data/lib/pulp_rpm_client/models/{paginatedrpm_modulemd_defaults_response_list.rb → inline_response2002.rb} +4 -4
  82. data/lib/pulp_rpm_client/models/{paginatedrpm_modulemd_response_list.rb → inline_response2003.rb} +4 -4
  83. data/lib/pulp_rpm_client/models/{paginatedrpm_package_category_response_list.rb → inline_response2004.rb} +4 -4
  84. data/lib/pulp_rpm_client/models/{paginatedrpm_package_environment_response_list.rb → inline_response2005.rb} +4 -4
  85. data/lib/pulp_rpm_client/models/{paginatedrpm_package_group_response_list.rb → inline_response2006.rb} +4 -4
  86. data/lib/pulp_rpm_client/models/{paginatedrpm_package_langpacks_response_list.rb → inline_response2007.rb} +4 -4
  87. data/lib/pulp_rpm_client/models/{paginatedrpm_package_response_list.rb → inline_response2008.rb} +4 -4
  88. data/lib/pulp_rpm_client/models/{paginatedrpm_repo_metadata_file_response_list.rb → inline_response2009.rb} +4 -4
  89. data/lib/pulp_rpm_client/models/metadata_checksum_type_enum.rb +1 -1
  90. data/lib/pulp_rpm_client/models/package_checksum_type_enum.rb +1 -1
  91. data/lib/pulp_rpm_client/models/patchedrpm_rpm_distribution.rb +2 -11
  92. data/lib/pulp_rpm_client/models/patchedrpm_rpm_remote.rb +3 -161
  93. data/lib/pulp_rpm_client/models/patchedrpm_rpm_repository.rb +2 -11
  94. data/lib/pulp_rpm_client/models/policy_enum.rb +1 -1
  95. data/lib/pulp_rpm_client/models/repository_add_remove_content.rb +3 -3
  96. data/lib/pulp_rpm_client/models/repository_version.rb +1 -1
  97. data/lib/pulp_rpm_client/models/repository_version_response.rb +1 -1
  98. data/lib/pulp_rpm_client/models/rpm_distribution_tree_response.rb +1 -1
  99. data/lib/pulp_rpm_client/models/rpm_modulemd.rb +1 -1
  100. data/lib/pulp_rpm_client/models/rpm_modulemd_defaults.rb +1 -1
  101. data/lib/pulp_rpm_client/models/rpm_modulemd_defaults_response.rb +1 -1
  102. data/lib/pulp_rpm_client/models/rpm_modulemd_response.rb +1 -1
  103. data/lib/pulp_rpm_client/models/rpm_package.rb +1 -1
  104. data/lib/pulp_rpm_client/models/rpm_package_category_response.rb +1 -1
  105. data/lib/pulp_rpm_client/models/rpm_package_environment_response.rb +1 -1
  106. data/lib/pulp_rpm_client/models/rpm_package_group_response.rb +1 -1
  107. data/lib/pulp_rpm_client/models/rpm_package_langpacks_response.rb +1 -1
  108. data/lib/pulp_rpm_client/models/rpm_package_response.rb +1 -1
  109. data/lib/pulp_rpm_client/models/rpm_repo_metadata_file_response.rb +1 -1
  110. data/lib/pulp_rpm_client/models/rpm_repository_sync_url.rb +2 -2
  111. data/lib/pulp_rpm_client/models/rpm_rpm_distribution.rb +2 -11
  112. data/lib/pulp_rpm_client/models/rpm_rpm_distribution_response.rb +2 -11
  113. data/lib/pulp_rpm_client/models/rpm_rpm_publication.rb +1 -1
  114. data/lib/pulp_rpm_client/models/rpm_rpm_publication_response.rb +1 -1
  115. data/lib/pulp_rpm_client/models/rpm_rpm_remote.rb +3 -161
  116. data/lib/pulp_rpm_client/models/rpm_rpm_remote_response.rb +33 -136
  117. data/lib/pulp_rpm_client/models/rpm_rpm_repository.rb +2 -11
  118. data/lib/pulp_rpm_client/models/rpm_rpm_repository_response.rb +2 -11
  119. data/lib/pulp_rpm_client/models/rpm_update_collection.rb +1 -1
  120. data/lib/pulp_rpm_client/models/rpm_update_collection_response.rb +1 -1
  121. data/lib/pulp_rpm_client/models/rpm_update_record.rb +1 -1
  122. data/lib/pulp_rpm_client/models/rpm_update_record_response.rb +1 -1
  123. data/lib/pulp_rpm_client/models/variant_response.rb +1 -1
  124. data/lib/pulp_rpm_client/version.rb +2 -2
  125. data/lib/pulp_rpm_client.rb +16 -17
  126. data/pulp_rpm_client.gemspec +1 -1
  127. data/spec/api/content_advisories_api_spec.rb +16 -16
  128. data/spec/api/content_distribution_trees_api_spec.rb +5 -5
  129. data/spec/api/content_modulemd_defaults_api_spec.rb +10 -10
  130. data/spec/api/content_modulemds_api_spec.rb +10 -10
  131. data/spec/api/content_packagecategories_api_spec.rb +5 -5
  132. data/spec/api/content_packageenvironments_api_spec.rb +5 -5
  133. data/spec/api/content_packagegroups_api_spec.rb +5 -5
  134. data/spec/api/content_packagelangpacks_api_spec.rb +5 -5
  135. data/spec/api/content_packages_api_spec.rb +26 -26
  136. data/spec/api/content_repo_metadata_files_api_spec.rb +5 -5
  137. data/spec/api/distributions_rpm_api_spec.rb +8 -12
  138. data/spec/api/publications_rpm_api_spec.rb +9 -9
  139. data/spec/api/remotes_rpm_api_spec.rb +10 -14
  140. data/spec/api/repositories_rpm_api_spec.rb +4 -8
  141. data/spec/api/repositories_rpm_versions_api_spec.rb +18 -18
  142. data/spec/api/rpm_copy_api_spec.rb +1 -1
  143. data/spec/api_client_spec.rb +2 -2
  144. data/spec/configuration_spec.rb +1 -1
  145. data/spec/models/addon_response_spec.rb +1 -1
  146. data/spec/models/artifact_response_spec.rb +1 -1
  147. data/spec/models/async_operation_response_spec.rb +1 -1
  148. data/spec/models/checksum_response_spec.rb +1 -1
  149. data/spec/models/content_summary_response_spec.rb +1 -1
  150. data/spec/models/content_summary_spec.rb +1 -1
  151. data/spec/models/copy_spec.rb +1 -1
  152. data/spec/models/image_response_spec.rb +1 -1
  153. data/spec/models/{paginatedrpm_package_response_list_spec.rb → inline_response20010_spec.rb} +7 -7
  154. data/spec/models/{paginatedrpm_modulemd_response_list_spec.rb → inline_response20011_spec.rb} +7 -7
  155. data/spec/models/{paginatedrpm_rpm_remote_response_list_spec.rb → inline_response20012_spec.rb} +7 -7
  156. data/spec/models/{paginatedrpm_package_group_response_list_spec.rb → inline_response20013_spec.rb} +7 -7
  157. data/spec/models/inline_response20014_spec.rb +59 -0
  158. data/spec/models/inline_response2001_spec.rb +59 -0
  159. data/spec/models/inline_response2002_spec.rb +59 -0
  160. data/spec/models/inline_response2003_spec.rb +59 -0
  161. data/spec/models/inline_response2004_spec.rb +59 -0
  162. data/spec/models/inline_response2005_spec.rb +59 -0
  163. data/spec/models/inline_response2006_spec.rb +59 -0
  164. data/spec/models/inline_response2007_spec.rb +59 -0
  165. data/spec/models/inline_response2008_spec.rb +59 -0
  166. data/spec/models/inline_response2009_spec.rb +59 -0
  167. data/spec/models/inline_response200_spec.rb +59 -0
  168. data/spec/models/metadata_checksum_type_enum_spec.rb +1 -1
  169. data/spec/models/package_checksum_type_enum_spec.rb +1 -1
  170. data/spec/models/patchedrpm_rpm_distribution_spec.rb +1 -7
  171. data/spec/models/patchedrpm_rpm_remote_spec.rb +1 -55
  172. data/spec/models/patchedrpm_rpm_repository_spec.rb +1 -7
  173. data/spec/models/policy_enum_spec.rb +1 -1
  174. data/spec/models/repository_add_remove_content_spec.rb +1 -1
  175. data/spec/models/repository_version_response_spec.rb +1 -1
  176. data/spec/models/repository_version_spec.rb +1 -1
  177. data/spec/models/rpm_distribution_tree_response_spec.rb +1 -1
  178. data/spec/models/rpm_modulemd_defaults_response_spec.rb +1 -1
  179. data/spec/models/rpm_modulemd_defaults_spec.rb +1 -1
  180. data/spec/models/rpm_modulemd_response_spec.rb +1 -1
  181. data/spec/models/rpm_modulemd_spec.rb +1 -1
  182. data/spec/models/rpm_package_category_response_spec.rb +1 -1
  183. data/spec/models/rpm_package_environment_response_spec.rb +1 -1
  184. data/spec/models/rpm_package_group_response_spec.rb +1 -1
  185. data/spec/models/rpm_package_langpacks_response_spec.rb +1 -1
  186. data/spec/models/rpm_package_response_spec.rb +1 -1
  187. data/spec/models/rpm_package_spec.rb +1 -1
  188. data/spec/models/rpm_repo_metadata_file_response_spec.rb +1 -1
  189. data/spec/models/rpm_repository_sync_url_spec.rb +1 -1
  190. data/spec/models/rpm_rpm_distribution_response_spec.rb +1 -7
  191. data/spec/models/rpm_rpm_distribution_spec.rb +1 -7
  192. data/spec/models/rpm_rpm_publication_response_spec.rb +1 -1
  193. data/spec/models/rpm_rpm_publication_spec.rb +1 -1
  194. data/spec/models/rpm_rpm_remote_response_spec.rb +9 -33
  195. data/spec/models/rpm_rpm_remote_spec.rb +1 -55
  196. data/spec/models/rpm_rpm_repository_response_spec.rb +1 -7
  197. data/spec/models/rpm_rpm_repository_spec.rb +1 -7
  198. data/spec/models/rpm_update_collection_response_spec.rb +1 -1
  199. data/spec/models/rpm_update_collection_spec.rb +1 -1
  200. data/spec/models/rpm_update_record_response_spec.rb +1 -1
  201. data/spec/models/rpm_update_record_spec.rb +1 -1
  202. data/spec/models/variant_response_spec.rb +1 -1
  203. data/spec/spec_helper.rb +1 -1
  204. metadata +104 -108
  205. data/docs/SkipTypesEnum.md +0 -16
  206. data/lib/pulp_rpm_client/models/skip_types_enum.rb +0 -35
  207. data/spec/models/paginated_repository_version_response_list_spec.rb +0 -59
  208. data/spec/models/paginatedrpm_distribution_tree_response_list_spec.rb +0 -59
  209. data/spec/models/paginatedrpm_modulemd_defaults_response_list_spec.rb +0 -59
  210. data/spec/models/paginatedrpm_package_category_response_list_spec.rb +0 -59
  211. data/spec/models/paginatedrpm_package_environment_response_list_spec.rb +0 -59
  212. data/spec/models/paginatedrpm_package_langpacks_response_list_spec.rb +0 -59
  213. data/spec/models/paginatedrpm_repo_metadata_file_response_list_spec.rb +0 -59
  214. data/spec/models/paginatedrpm_rpm_distribution_response_list_spec.rb +0 -59
  215. data/spec/models/paginatedrpm_rpm_publication_response_list_spec.rb +0 -59
  216. data/spec/models/paginatedrpm_rpm_repository_response_list_spec.rb +0 -59
  217. data/spec/models/paginatedrpm_update_record_response_list_spec.rb +0 -59
  218. data/spec/models/skip_types_enum_spec.rb +0 -35
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -149,16 +149,16 @@ module PulpRpmClient
149
149
  # @option opts [Integer] :limit Number of results to return per page.
150
150
  # @option opts [Integer] :offset The initial index from which to return the results.
151
151
  # @option opts [String] :ordering Which field to use when ordering the results.
152
- # @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
153
- # @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
154
- # @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
155
- # @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
156
- # @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
157
- # @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
158
- # @option opts [String] :repository_version Repository Version referenced by HREF
152
+ # @option opts [String] :pulp_created pulp_created
153
+ # @option opts [String] :pulp_created__gt pulp_created__gt
154
+ # @option opts [String] :pulp_created__gte pulp_created__gte
155
+ # @option opts [String] :pulp_created__lt pulp_created__lt
156
+ # @option opts [String] :pulp_created__lte pulp_created__lte
157
+ # @option opts [String] :pulp_created__range pulp_created__range
158
+ # @option opts [String] :repository_version repository_version
159
159
  # @option opts [String] :fields A list of fields to include in the response.
160
160
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
161
- # @return [PaginatedrpmRpmPublicationResponseList]
161
+ # @return [InlineResponse20011]
162
162
  def list(opts = {})
163
163
  data, _status_code, _headers = list_with_http_info(opts)
164
164
  data
@@ -170,16 +170,16 @@ module PulpRpmClient
170
170
  # @option opts [Integer] :limit Number of results to return per page.
171
171
  # @option opts [Integer] :offset The initial index from which to return the results.
172
172
  # @option opts [String] :ordering Which field to use when ordering the results.
173
- # @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
174
- # @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
175
- # @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
176
- # @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
177
- # @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
178
- # @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
179
- # @option opts [String] :repository_version Repository Version referenced by HREF
173
+ # @option opts [String] :pulp_created pulp_created
174
+ # @option opts [String] :pulp_created__gt pulp_created__gt
175
+ # @option opts [String] :pulp_created__gte pulp_created__gte
176
+ # @option opts [String] :pulp_created__lt pulp_created__lt
177
+ # @option opts [String] :pulp_created__lte pulp_created__lte
178
+ # @option opts [String] :pulp_created__range pulp_created__range
179
+ # @option opts [String] :repository_version repository_version
180
180
  # @option opts [String] :fields A list of fields to include in the response.
181
181
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
182
- # @return [Array<(PaginatedrpmRpmPublicationResponseList, Integer, Hash)>] PaginatedrpmRpmPublicationResponseList data, response status code and response headers
182
+ # @return [Array<(InlineResponse20011, Integer, Hash)>] InlineResponse20011 data, response status code and response headers
183
183
  def list_with_http_info(opts = {})
184
184
  if @api_client.config.debugging
185
185
  @api_client.config.logger.debug 'Calling API: PublicationsRpmApi.list ...'
@@ -197,7 +197,7 @@ module PulpRpmClient
197
197
  query_params[:'pulp_created__gte'] = opts[:'pulp_created__gte'] if !opts[:'pulp_created__gte'].nil?
198
198
  query_params[:'pulp_created__lt'] = opts[:'pulp_created__lt'] if !opts[:'pulp_created__lt'].nil?
199
199
  query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
200
- query_params[:'pulp_created__range'] = @api_client.build_collection_param(opts[:'pulp_created__range'], :csv) if !opts[:'pulp_created__range'].nil?
200
+ query_params[:'pulp_created__range'] = opts[:'pulp_created__range'] if !opts[:'pulp_created__range'].nil?
201
201
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
202
202
  query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
203
203
  query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
@@ -214,7 +214,7 @@ module PulpRpmClient
214
214
  post_body = opts[:body]
215
215
 
216
216
  # return_type
217
- return_type = opts[:return_type] || 'PaginatedrpmRpmPublicationResponseList'
217
+ return_type = opts[:return_type] || 'InlineResponse20011'
218
218
 
219
219
  # auth_names
220
220
  auth_names = opts[:auth_names] || ['basicAuth']
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -149,23 +149,19 @@ module PulpRpmClient
149
149
  # A ViewSet for RpmRemote.
150
150
  # @param [Hash] opts the optional parameters
151
151
  # @option opts [Integer] :limit Number of results to return per page.
152
- # @option opts [String] :name
153
- # @option opts [String] :name__contains Filter results where name contains value
154
- # @option opts [String] :name__icontains Filter results where name contains value
155
- # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
156
- # @option opts [String] :name__startswith Filter results where name starts with value
152
+ # @option opts [String] :name name
153
+ # @option opts [String] :name__in name__in
157
154
  # @option opts [Integer] :offset The initial index from which to return the results.
158
155
  # @option opts [String] :ordering Which field to use when ordering the results.
159
- # @option opts [String] :pulp_label_select Filter labels by search string
160
- # @option opts [DateTime] :pulp_last_updated ISO 8601 formatted dates are supported
161
- # @option opts [DateTime] :pulp_last_updated__gt Filter results where pulp_last_updated is greater than value
162
- # @option opts [DateTime] :pulp_last_updated__gte Filter results where pulp_last_updated is greater than or equal to value
163
- # @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
164
- # @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
165
- # @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
156
+ # @option opts [String] :pulp_last_updated pulp_last_updated
157
+ # @option opts [String] :pulp_last_updated__gt pulp_last_updated__gt
158
+ # @option opts [String] :pulp_last_updated__gte pulp_last_updated__gte
159
+ # @option opts [String] :pulp_last_updated__lt pulp_last_updated__lt
160
+ # @option opts [String] :pulp_last_updated__lte pulp_last_updated__lte
161
+ # @option opts [String] :pulp_last_updated__range pulp_last_updated__range
166
162
  # @option opts [String] :fields A list of fields to include in the response.
167
163
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
168
- # @return [PaginatedrpmRpmRemoteResponseList]
164
+ # @return [InlineResponse20012]
169
165
  def list(opts = {})
170
166
  data, _status_code, _headers = list_with_http_info(opts)
171
167
  data
@@ -175,23 +171,19 @@ module PulpRpmClient
175
171
  # A ViewSet for RpmRemote.
176
172
  # @param [Hash] opts the optional parameters
177
173
  # @option opts [Integer] :limit Number of results to return per page.
178
- # @option opts [String] :name
179
- # @option opts [String] :name__contains Filter results where name contains value
180
- # @option opts [String] :name__icontains Filter results where name contains value
181
- # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
182
- # @option opts [String] :name__startswith Filter results where name starts with value
174
+ # @option opts [String] :name name
175
+ # @option opts [String] :name__in name__in
183
176
  # @option opts [Integer] :offset The initial index from which to return the results.
184
177
  # @option opts [String] :ordering Which field to use when ordering the results.
185
- # @option opts [String] :pulp_label_select Filter labels by search string
186
- # @option opts [DateTime] :pulp_last_updated ISO 8601 formatted dates are supported
187
- # @option opts [DateTime] :pulp_last_updated__gt Filter results where pulp_last_updated is greater than value
188
- # @option opts [DateTime] :pulp_last_updated__gte Filter results where pulp_last_updated is greater than or equal to value
189
- # @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
190
- # @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
191
- # @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
178
+ # @option opts [String] :pulp_last_updated pulp_last_updated
179
+ # @option opts [String] :pulp_last_updated__gt pulp_last_updated__gt
180
+ # @option opts [String] :pulp_last_updated__gte pulp_last_updated__gte
181
+ # @option opts [String] :pulp_last_updated__lt pulp_last_updated__lt
182
+ # @option opts [String] :pulp_last_updated__lte pulp_last_updated__lte
183
+ # @option opts [String] :pulp_last_updated__range pulp_last_updated__range
192
184
  # @option opts [String] :fields A list of fields to include in the response.
193
185
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
194
- # @return [Array<(PaginatedrpmRpmRemoteResponseList, Integer, Hash)>] PaginatedrpmRpmRemoteResponseList data, response status code and response headers
186
+ # @return [Array<(InlineResponse20012, Integer, Hash)>] InlineResponse20012 data, response status code and response headers
195
187
  def list_with_http_info(opts = {})
196
188
  if @api_client.config.debugging
197
189
  @api_client.config.logger.debug 'Calling API: RemotesRpmApi.list ...'
@@ -203,19 +195,15 @@ module PulpRpmClient
203
195
  query_params = opts[:query_params] || {}
204
196
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
205
197
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
206
- query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
207
- query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
208
- query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
209
- query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
198
+ query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
210
199
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
211
200
  query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
212
- query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
213
201
  query_params[:'pulp_last_updated'] = opts[:'pulp_last_updated'] if !opts[:'pulp_last_updated'].nil?
214
202
  query_params[:'pulp_last_updated__gt'] = opts[:'pulp_last_updated__gt'] if !opts[:'pulp_last_updated__gt'].nil?
215
203
  query_params[:'pulp_last_updated__gte'] = opts[:'pulp_last_updated__gte'] if !opts[:'pulp_last_updated__gte'].nil?
216
204
  query_params[:'pulp_last_updated__lt'] = opts[:'pulp_last_updated__lt'] if !opts[:'pulp_last_updated__lt'].nil?
217
205
  query_params[:'pulp_last_updated__lte'] = opts[:'pulp_last_updated__lte'] if !opts[:'pulp_last_updated__lte'].nil?
218
- query_params[:'pulp_last_updated__range'] = @api_client.build_collection_param(opts[:'pulp_last_updated__range'], :csv) if !opts[:'pulp_last_updated__range'].nil?
206
+ query_params[:'pulp_last_updated__range'] = opts[:'pulp_last_updated__range'] if !opts[:'pulp_last_updated__range'].nil?
219
207
  query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
220
208
  query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
221
209
 
@@ -231,7 +219,7 @@ module PulpRpmClient
231
219
  post_body = opts[:body]
232
220
 
233
221
  # return_type
234
- return_type = opts[:return_type] || 'PaginatedrpmRpmRemoteResponseList'
222
+ return_type = opts[:return_type] || 'InlineResponse20012'
235
223
 
236
224
  # auth_names
237
225
  auth_names = opts[:auth_names] || ['basicAuth']
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -149,17 +149,13 @@ module PulpRpmClient
149
149
  # A ViewSet for RpmRepository.
150
150
  # @param [Hash] opts the optional parameters
151
151
  # @option opts [Integer] :limit Number of results to return per page.
152
- # @option opts [String] :name
153
- # @option opts [String] :name__contains Filter results where name contains value
154
- # @option opts [String] :name__icontains Filter results where name contains value
155
- # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
156
- # @option opts [String] :name__startswith Filter results where name starts with value
152
+ # @option opts [String] :name name
153
+ # @option opts [String] :name__in name__in
157
154
  # @option opts [Integer] :offset The initial index from which to return the results.
158
155
  # @option opts [String] :ordering Which field to use when ordering the results.
159
- # @option opts [String] :pulp_label_select Filter labels by search string
160
156
  # @option opts [String] :fields A list of fields to include in the response.
161
157
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
162
- # @return [PaginatedrpmRpmRepositoryResponseList]
158
+ # @return [InlineResponse20013]
163
159
  def list(opts = {})
164
160
  data, _status_code, _headers = list_with_http_info(opts)
165
161
  data
@@ -169,17 +165,13 @@ module PulpRpmClient
169
165
  # A ViewSet for RpmRepository.
170
166
  # @param [Hash] opts the optional parameters
171
167
  # @option opts [Integer] :limit Number of results to return per page.
172
- # @option opts [String] :name
173
- # @option opts [String] :name__contains Filter results where name contains value
174
- # @option opts [String] :name__icontains Filter results where name contains value
175
- # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
176
- # @option opts [String] :name__startswith Filter results where name starts with value
168
+ # @option opts [String] :name name
169
+ # @option opts [String] :name__in name__in
177
170
  # @option opts [Integer] :offset The initial index from which to return the results.
178
171
  # @option opts [String] :ordering Which field to use when ordering the results.
179
- # @option opts [String] :pulp_label_select Filter labels by search string
180
172
  # @option opts [String] :fields A list of fields to include in the response.
181
173
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
182
- # @return [Array<(PaginatedrpmRpmRepositoryResponseList, Integer, Hash)>] PaginatedrpmRpmRepositoryResponseList data, response status code and response headers
174
+ # @return [Array<(InlineResponse20013, Integer, Hash)>] InlineResponse20013 data, response status code and response headers
183
175
  def list_with_http_info(opts = {})
184
176
  if @api_client.config.debugging
185
177
  @api_client.config.logger.debug 'Calling API: RepositoriesRpmApi.list ...'
@@ -191,13 +183,9 @@ module PulpRpmClient
191
183
  query_params = opts[:query_params] || {}
192
184
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
193
185
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
194
- query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
195
- query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
196
- query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
197
- query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
186
+ query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
198
187
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
199
188
  query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
200
- query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
201
189
  query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
202
190
  query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
203
191
 
@@ -213,7 +201,7 @@ module PulpRpmClient
213
201
  post_body = opts[:body]
214
202
 
215
203
  # return_type
216
- return_type = opts[:return_type] || 'PaginatedrpmRpmRepositoryResponseList'
204
+ return_type = opts[:return_type] || 'InlineResponse20013'
217
205
 
218
206
  # auth_names
219
207
  auth_names = opts[:auth_names] || ['basicAuth']
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -20,7 +20,7 @@ module PulpRpmClient
20
20
  @api_client = api_client
21
21
  end
22
22
  # Delete a repository version
23
- # Trigger an asynchronous task to delete a repository version.
23
+ # Trigger an asynchronous task to delete a repositroy version.
24
24
  # @param rpm_rpm_repository_version_href [String]
25
25
  # @param [Hash] opts the optional parameters
26
26
  # @return [AsyncOperationResponse]
@@ -30,7 +30,7 @@ module PulpRpmClient
30
30
  end
31
31
 
32
32
  # Delete a repository version
33
- # Trigger an asynchronous task to delete a repository version.
33
+ # Trigger an asynchronous task to delete a repositroy version.
34
34
  # @param rpm_rpm_repository_version_href [String]
35
35
  # @param [Hash] opts the optional parameters
36
36
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
@@ -85,26 +85,26 @@ module PulpRpmClient
85
85
  # RpmRepositoryVersion represents a single rpm repository version.
86
86
  # @param rpm_rpm_repository_href [String]
87
87
  # @param [Hash] opts the optional parameters
88
- # @option opts [String] :content Content Unit referenced by HREF
89
- # @option opts [String] :content__in Content Unit referenced by HREF
88
+ # @option opts [String] :content content
89
+ # @option opts [String] :content__in content__in
90
90
  # @option opts [Integer] :limit Number of results to return per page.
91
- # @option opts [Integer] :number
92
- # @option opts [Integer] :number__gt Filter results where number is greater than value
93
- # @option opts [Integer] :number__gte Filter results where number is greater than or equal to value
94
- # @option opts [Integer] :number__lt Filter results where number is less than value
95
- # @option opts [Integer] :number__lte Filter results where number is less than or equal to value
96
- # @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
91
+ # @option opts [String] :number number
92
+ # @option opts [String] :number__gt number__gt
93
+ # @option opts [String] :number__gte number__gte
94
+ # @option opts [String] :number__lt number__lt
95
+ # @option opts [String] :number__lte number__lte
96
+ # @option opts [String] :number__range number__range
97
97
  # @option opts [Integer] :offset The initial index from which to return the results.
98
98
  # @option opts [String] :ordering Which field to use when ordering the results.
99
- # @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
100
- # @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
101
- # @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
102
- # @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
103
- # @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
104
- # @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
99
+ # @option opts [String] :pulp_created pulp_created
100
+ # @option opts [String] :pulp_created__gt pulp_created__gt
101
+ # @option opts [String] :pulp_created__gte pulp_created__gte
102
+ # @option opts [String] :pulp_created__lt pulp_created__lt
103
+ # @option opts [String] :pulp_created__lte pulp_created__lte
104
+ # @option opts [String] :pulp_created__range pulp_created__range
105
105
  # @option opts [String] :fields A list of fields to include in the response.
106
106
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
107
- # @return [PaginatedRepositoryVersionResponseList]
107
+ # @return [InlineResponse20014]
108
108
  def list(rpm_rpm_repository_href, opts = {})
109
109
  data, _status_code, _headers = list_with_http_info(rpm_rpm_repository_href, opts)
110
110
  data
@@ -114,26 +114,26 @@ module PulpRpmClient
114
114
  # RpmRepositoryVersion represents a single rpm repository version.
115
115
  # @param rpm_rpm_repository_href [String]
116
116
  # @param [Hash] opts the optional parameters
117
- # @option opts [String] :content Content Unit referenced by HREF
118
- # @option opts [String] :content__in Content Unit referenced by HREF
117
+ # @option opts [String] :content content
118
+ # @option opts [String] :content__in content__in
119
119
  # @option opts [Integer] :limit Number of results to return per page.
120
- # @option opts [Integer] :number
121
- # @option opts [Integer] :number__gt Filter results where number is greater than value
122
- # @option opts [Integer] :number__gte Filter results where number is greater than or equal to value
123
- # @option opts [Integer] :number__lt Filter results where number is less than value
124
- # @option opts [Integer] :number__lte Filter results where number is less than or equal to value
125
- # @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
120
+ # @option opts [String] :number number
121
+ # @option opts [String] :number__gt number__gt
122
+ # @option opts [String] :number__gte number__gte
123
+ # @option opts [String] :number__lt number__lt
124
+ # @option opts [String] :number__lte number__lte
125
+ # @option opts [String] :number__range number__range
126
126
  # @option opts [Integer] :offset The initial index from which to return the results.
127
127
  # @option opts [String] :ordering Which field to use when ordering the results.
128
- # @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
129
- # @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
130
- # @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
131
- # @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
132
- # @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
133
- # @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
128
+ # @option opts [String] :pulp_created pulp_created
129
+ # @option opts [String] :pulp_created__gt pulp_created__gt
130
+ # @option opts [String] :pulp_created__gte pulp_created__gte
131
+ # @option opts [String] :pulp_created__lt pulp_created__lt
132
+ # @option opts [String] :pulp_created__lte pulp_created__lte
133
+ # @option opts [String] :pulp_created__range pulp_created__range
134
134
  # @option opts [String] :fields A list of fields to include in the response.
135
135
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
136
- # @return [Array<(PaginatedRepositoryVersionResponseList, Integer, Hash)>] PaginatedRepositoryVersionResponseList data, response status code and response headers
136
+ # @return [Array<(InlineResponse20014, Integer, Hash)>] InlineResponse20014 data, response status code and response headers
137
137
  def list_with_http_info(rpm_rpm_repository_href, opts = {})
138
138
  if @api_client.config.debugging
139
139
  @api_client.config.logger.debug 'Calling API: RepositoriesRpmVersionsApi.list ...'
@@ -155,7 +155,7 @@ module PulpRpmClient
155
155
  query_params[:'number__gte'] = opts[:'number__gte'] if !opts[:'number__gte'].nil?
156
156
  query_params[:'number__lt'] = opts[:'number__lt'] if !opts[:'number__lt'].nil?
157
157
  query_params[:'number__lte'] = opts[:'number__lte'] if !opts[:'number__lte'].nil?
158
- query_params[:'number__range'] = @api_client.build_collection_param(opts[:'number__range'], :csv) if !opts[:'number__range'].nil?
158
+ query_params[:'number__range'] = opts[:'number__range'] if !opts[:'number__range'].nil?
159
159
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
160
160
  query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
161
161
  query_params[:'pulp_created'] = opts[:'pulp_created'] if !opts[:'pulp_created'].nil?
@@ -163,7 +163,7 @@ module PulpRpmClient
163
163
  query_params[:'pulp_created__gte'] = opts[:'pulp_created__gte'] if !opts[:'pulp_created__gte'].nil?
164
164
  query_params[:'pulp_created__lt'] = opts[:'pulp_created__lt'] if !opts[:'pulp_created__lt'].nil?
165
165
  query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
166
- query_params[:'pulp_created__range'] = @api_client.build_collection_param(opts[:'pulp_created__range'], :csv) if !opts[:'pulp_created__range'].nil?
166
+ query_params[:'pulp_created__range'] = opts[:'pulp_created__range'] if !opts[:'pulp_created__range'].nil?
167
167
  query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
168
168
  query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
169
169
 
@@ -179,7 +179,7 @@ module PulpRpmClient
179
179
  post_body = opts[:body]
180
180
 
181
181
  # return_type
182
- return_type = opts[:return_type] || 'PaginatedRepositoryVersionResponseList'
182
+ return_type = opts[:return_type] || 'InlineResponse20014'
183
183
 
184
184
  # auth_names
185
185
  auth_names = opts[:auth_names] || ['basicAuth']
@@ -268,7 +268,7 @@ module PulpRpmClient
268
268
  return data, status_code, headers
269
269
  end
270
270
 
271
- # Trigger an asynchronous task to repair a repository version.
271
+ # Trigger an asynchronous task to repair a repositroy version.
272
272
  # @param rpm_rpm_repository_version_href [String]
273
273
  # @param repository_version [RepositoryVersion]
274
274
  # @param [Hash] opts the optional parameters
@@ -278,7 +278,7 @@ module PulpRpmClient
278
278
  data
279
279
  end
280
280
 
281
- # Trigger an asynchronous task to repair a repository version.
281
+ # Trigger an asynchronous task to repair a repositroy version.
282
282
  # @param rpm_rpm_repository_version_href [String]
283
283
  # @param repository_version [RepositoryVersion]
284
284
  # @param [Hash] opts the optional parameters
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -53,8 +53,10 @@ module PulpRpmClient
53
53
  :client_cert => @config.ssl_client_cert,
54
54
  :client_key => @config.ssl_client_key
55
55
  }
56
-
57
- connection = Faraday.new(:url => config.base_url, :ssl => ssl_options) do |conn|
56
+ request_options = {
57
+ :params_encoder => @config.params_encoder
58
+ }
59
+ connection = Faraday.new(:url => config.base_url, :ssl => ssl_options, :request => request_options) do |conn|
58
60
  conn.basic_auth(config.username, config.password)
59
61
  if opts[:header_params]["Content-Type"] == "multipart/form-data"
60
62
  conn.request :multipart
@@ -285,11 +287,13 @@ module PulpRpmClient
285
287
  tempfile.write(chunk)
286
288
  end
287
289
  request.on_complete do |response|
288
- tempfile.close if tempfile
289
- @config.logger.info "Temp file written to #{tempfile.path}, please copy the file to a proper folder "\
290
- "with e.g. `FileUtils.cp(tempfile.path, '/new/file/path')` otherwise the temp file "\
291
- "will be deleted automatically with GC. It's also recommended to delete the temp file "\
292
- "explicitly with `tempfile.delete`"
290
+ if tempfile
291
+ tempfile.close
292
+ @config.logger.info "Temp file written to #{tempfile.path}, please copy the file to a proper folder "\
293
+ "with e.g. `FileUtils.cp(tempfile.path, '/new/file/path')` otherwise the temp file "\
294
+ "will be deleted automatically with GC. It's also recommended to delete the temp file "\
295
+ "explicitly with `tempfile.delete`"
296
+ end
293
297
  end
294
298
  end
295
299