pulp_maven_client 0.3.0 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (194) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/README.md +6 -7
  4. data/docs/ContentArtifactApi.md +3 -3
  5. data/docs/DistributionsMavenApi.md +3 -3
  6. data/docs/MavenMavenRemote.md +10 -8
  7. data/docs/MavenMavenRemoteResponse.md +8 -6
  8. data/docs/MavenMavenRepository.md +3 -1
  9. data/docs/MavenMavenRepositoryResponse.md +3 -1
  10. data/docs/PatchedmavenMavenRemote.md +10 -8
  11. data/docs/PatchedmavenMavenRepository.md +3 -1
  12. data/docs/RemotesMavenApi.md +3 -3
  13. data/docs/Repair.md +17 -0
  14. data/docs/RepositoriesMavenApi.md +3 -3
  15. data/docs/RepositoriesMavenVersionsApi.md +7 -7
  16. data/docs/RepositoryVersionResponse.md +2 -0
  17. data/lib/pulp_maven_client/api/content_artifact_api.rb +8 -4
  18. data/lib/pulp_maven_client/api/distributions_maven_api.rb +8 -4
  19. data/lib/pulp_maven_client/api/remotes_maven_api.rb +8 -4
  20. data/lib/pulp_maven_client/api/repositories_maven_api.rb +8 -4
  21. data/lib/pulp_maven_client/api/repositories_maven_versions_api.rb +17 -13
  22. data/lib/pulp_maven_client/api_client.rb +13 -12
  23. data/lib/pulp_maven_client/api_error.rb +1 -1
  24. data/lib/pulp_maven_client/configuration.rb +11 -3
  25. data/lib/pulp_maven_client/models/async_operation_response.rb +1 -1
  26. data/lib/pulp_maven_client/models/content_summary_response.rb +1 -1
  27. data/lib/pulp_maven_client/models/maven_maven_artifact.rb +20 -1
  28. data/lib/pulp_maven_client/models/maven_maven_artifact_response.rb +1 -1
  29. data/lib/pulp_maven_client/models/maven_maven_distribution.rb +39 -1
  30. data/lib/pulp_maven_client/models/maven_maven_distribution_response.rb +1 -1
  31. data/lib/pulp_maven_client/models/maven_maven_remote.rb +180 -10
  32. data/lib/pulp_maven_client/models/maven_maven_remote_response.rb +20 -8
  33. data/lib/pulp_maven_client/models/maven_maven_repository.rb +63 -2
  34. data/lib/pulp_maven_client/models/maven_maven_repository_response.rb +29 -2
  35. data/lib/pulp_maven_client/models/paginated_repository_version_response_list.rb +1 -1
  36. data/lib/pulp_maven_client/models/paginatedmaven_maven_artifact_response_list.rb +1 -1
  37. data/lib/pulp_maven_client/models/paginatedmaven_maven_distribution_response_list.rb +1 -1
  38. data/lib/pulp_maven_client/models/paginatedmaven_maven_remote_response_list.rb +1 -1
  39. data/lib/pulp_maven_client/models/paginatedmaven_maven_repository_response_list.rb +1 -1
  40. data/lib/pulp_maven_client/models/patchedmaven_maven_distribution.rb +31 -1
  41. data/lib/pulp_maven_client/models/patchedmaven_maven_remote.rb +172 -10
  42. data/lib/pulp_maven_client/models/patchedmaven_maven_repository.rb +59 -2
  43. data/lib/pulp_maven_client/models/policy_enum.rb +1 -1
  44. data/lib/pulp_maven_client/models/{repository_version.rb → repair.rb} +14 -13
  45. data/lib/pulp_maven_client/models/repository_version_response.rb +11 -2
  46. data/lib/pulp_maven_client/version.rb +2 -2
  47. data/lib/pulp_maven_client.rb +2 -3
  48. data/pulp_maven_client.gemspec +2 -2
  49. data/spec/api/content_artifact_api_spec.rb +2 -2
  50. data/spec/api/distributions_maven_api_spec.rb +2 -2
  51. data/spec/api/remotes_maven_api_spec.rb +2 -2
  52. data/spec/api/repositories_maven_api_spec.rb +2 -2
  53. data/spec/api/repositories_maven_versions_api_spec.rb +3 -3
  54. data/spec/api_client_spec.rb +2 -2
  55. data/spec/configuration_spec.rb +4 -4
  56. data/spec/models/async_operation_response_spec.rb +1 -1
  57. data/spec/models/content_summary_response_spec.rb +1 -1
  58. data/spec/models/maven_maven_artifact_response_spec.rb +1 -1
  59. data/spec/models/maven_maven_artifact_spec.rb +1 -1
  60. data/spec/models/maven_maven_distribution_response_spec.rb +1 -1
  61. data/spec/models/maven_maven_distribution_spec.rb +1 -1
  62. data/spec/models/maven_maven_remote_response_spec.rb +7 -1
  63. data/spec/models/maven_maven_remote_spec.rb +7 -1
  64. data/spec/models/maven_maven_repository_response_spec.rb +7 -1
  65. data/spec/models/maven_maven_repository_spec.rb +7 -1
  66. data/spec/models/paginated_repository_version_response_list_spec.rb +1 -1
  67. data/spec/models/paginatedmaven_maven_artifact_response_list_spec.rb +1 -1
  68. data/spec/models/paginatedmaven_maven_distribution_response_list_spec.rb +1 -1
  69. data/spec/models/paginatedmaven_maven_remote_response_list_spec.rb +1 -1
  70. data/spec/models/paginatedmaven_maven_repository_response_list_spec.rb +1 -1
  71. data/spec/models/patchedmaven_maven_distribution_spec.rb +1 -1
  72. data/spec/models/patchedmaven_maven_remote_spec.rb +7 -1
  73. data/spec/models/patchedmaven_maven_repository_spec.rb +7 -1
  74. data/spec/models/policy_enum_spec.rb +1 -1
  75. data/spec/models/{repository_version_spec.rb → repair_spec.rb} +8 -8
  76. data/spec/models/repository_version_response_spec.rb +7 -1
  77. data/spec/spec_helper.rb +1 -1
  78. metadata +31 -141
  79. data/build/lib/pulpcore/__init__.py +0 -2
  80. data/build/lib/pulpcore/client/__init__.py +0 -2
  81. data/build/lib/pulpcore/client/pulp_maven/__init__.py +0 -58
  82. data/build/lib/pulpcore/client/pulp_maven/api/__init__.py +0 -10
  83. data/build/lib/pulpcore/client/pulp_maven/api/content_artifact_api.py +0 -445
  84. data/build/lib/pulpcore/client/pulp_maven/api/distributions_maven_api.py +0 -830
  85. data/build/lib/pulpcore/client/pulp_maven/api/remotes_maven_api.py +0 -840
  86. data/build/lib/pulpcore/client/pulp_maven/api/repositories_maven_api.py +0 -809
  87. data/build/lib/pulpcore/client/pulp_maven/api/repositories_maven_versions_api.py +0 -614
  88. data/build/lib/pulpcore/client/pulp_maven/api_client.py +0 -667
  89. data/build/lib/pulpcore/client/pulp_maven/configuration.py +0 -427
  90. data/build/lib/pulpcore/client/pulp_maven/exceptions.py +0 -121
  91. data/build/lib/pulpcore/client/pulp_maven/models/__init__.py +0 -39
  92. data/build/lib/pulpcore/client/pulp_maven/models/async_operation_response.py +0 -124
  93. data/build/lib/pulpcore/client/pulp_maven/models/content_summary.py +0 -176
  94. data/build/lib/pulpcore/client/pulp_maven/models/content_summary_response.py +0 -176
  95. data/build/lib/pulpcore/client/pulp_maven/models/maven_maven_artifact.py +0 -153
  96. data/build/lib/pulpcore/client/pulp_maven/models/maven_maven_artifact_response.py +0 -290
  97. data/build/lib/pulpcore/client/pulp_maven/models/maven_maven_distribution.py +0 -260
  98. data/build/lib/pulpcore/client/pulp_maven/models/maven_maven_distribution_response.py +0 -342
  99. data/build/lib/pulpcore/client/pulp_maven/models/maven_maven_remote.py +0 -657
  100. data/build/lib/pulpcore/client/pulp_maven/models/maven_maven_remote_response.py +0 -604
  101. data/build/lib/pulpcore/client/pulp_maven/models/maven_maven_repository.py +0 -202
  102. data/build/lib/pulpcore/client/pulp_maven/models/maven_maven_repository_response.py +0 -308
  103. data/build/lib/pulpcore/client/pulp_maven/models/paginated_repository_version_response_list.py +0 -197
  104. data/build/lib/pulpcore/client/pulp_maven/models/paginatedmaven_maven_artifact_response_list.py +0 -197
  105. data/build/lib/pulpcore/client/pulp_maven/models/paginatedmaven_maven_distribution_response_list.py +0 -197
  106. data/build/lib/pulpcore/client/pulp_maven/models/paginatedmaven_maven_remote_response_list.py +0 -197
  107. data/build/lib/pulpcore/client/pulp_maven/models/paginatedmaven_maven_repository_response_list.py +0 -197
  108. data/build/lib/pulpcore/client/pulp_maven/models/patchedmaven_maven_distribution.py +0 -258
  109. data/build/lib/pulpcore/client/pulp_maven/models/patchedmaven_maven_remote.py +0 -655
  110. data/build/lib/pulpcore/client/pulp_maven/models/patchedmaven_maven_repository.py +0 -201
  111. data/build/lib/pulpcore/client/pulp_maven/models/policy_enum.py +0 -101
  112. data/build/lib/pulpcore/client/pulp_maven/models/repository_version.py +0 -123
  113. data/build/lib/pulpcore/client/pulp_maven/models/repository_version_response.py +0 -231
  114. data/build/lib/pulpcore/client/pulp_maven/rest.py +0 -292
  115. data/dist/pulp_maven-client-0.3.0.tar.gz +0 -0
  116. data/dist/pulp_maven_client-0.3.0-py3-none-any.whl +0 -0
  117. data/docs/ContentSummary.md +0 -21
  118. data/docs/RepositoryVersion.md +0 -17
  119. data/lib/pulp_maven_client/models/content_summary.rb +0 -246
  120. data/pulp_maven_client.egg-info/PKG-INFO +0 -15
  121. data/pulp_maven_client.egg-info/SOURCES.txt +0 -71
  122. data/pulp_maven_client.egg-info/dependency_links.txt +0 -1
  123. data/pulp_maven_client.egg-info/requires.txt +0 -4
  124. data/pulp_maven_client.egg-info/top_level.txt +0 -1
  125. data/pulpcore/__init__.py +0 -2
  126. data/pulpcore/client/__init__.py +0 -2
  127. data/pulpcore/client/pulp_maven/__init__.py +0 -58
  128. data/pulpcore/client/pulp_maven/api/__init__.py +0 -10
  129. data/pulpcore/client/pulp_maven/api/content_artifact_api.py +0 -445
  130. data/pulpcore/client/pulp_maven/api/distributions_maven_api.py +0 -830
  131. data/pulpcore/client/pulp_maven/api/remotes_maven_api.py +0 -840
  132. data/pulpcore/client/pulp_maven/api/repositories_maven_api.py +0 -809
  133. data/pulpcore/client/pulp_maven/api/repositories_maven_versions_api.py +0 -614
  134. data/pulpcore/client/pulp_maven/api_client.py +0 -667
  135. data/pulpcore/client/pulp_maven/configuration.py +0 -427
  136. data/pulpcore/client/pulp_maven/exceptions.py +0 -121
  137. data/pulpcore/client/pulp_maven/models/__init__.py +0 -39
  138. data/pulpcore/client/pulp_maven/models/async_operation_response.py +0 -124
  139. data/pulpcore/client/pulp_maven/models/content_summary.py +0 -176
  140. data/pulpcore/client/pulp_maven/models/content_summary_response.py +0 -176
  141. data/pulpcore/client/pulp_maven/models/maven_maven_artifact.py +0 -153
  142. data/pulpcore/client/pulp_maven/models/maven_maven_artifact_response.py +0 -290
  143. data/pulpcore/client/pulp_maven/models/maven_maven_distribution.py +0 -260
  144. data/pulpcore/client/pulp_maven/models/maven_maven_distribution_response.py +0 -342
  145. data/pulpcore/client/pulp_maven/models/maven_maven_remote.py +0 -657
  146. data/pulpcore/client/pulp_maven/models/maven_maven_remote_response.py +0 -604
  147. data/pulpcore/client/pulp_maven/models/maven_maven_repository.py +0 -202
  148. data/pulpcore/client/pulp_maven/models/maven_maven_repository_response.py +0 -308
  149. data/pulpcore/client/pulp_maven/models/paginated_repository_version_response_list.py +0 -197
  150. data/pulpcore/client/pulp_maven/models/paginatedmaven_maven_artifact_response_list.py +0 -197
  151. data/pulpcore/client/pulp_maven/models/paginatedmaven_maven_distribution_response_list.py +0 -197
  152. data/pulpcore/client/pulp_maven/models/paginatedmaven_maven_remote_response_list.py +0 -197
  153. data/pulpcore/client/pulp_maven/models/paginatedmaven_maven_repository_response_list.py +0 -197
  154. data/pulpcore/client/pulp_maven/models/patchedmaven_maven_distribution.py +0 -258
  155. data/pulpcore/client/pulp_maven/models/patchedmaven_maven_remote.py +0 -655
  156. data/pulpcore/client/pulp_maven/models/patchedmaven_maven_repository.py +0 -201
  157. data/pulpcore/client/pulp_maven/models/policy_enum.py +0 -101
  158. data/pulpcore/client/pulp_maven/models/repository_version.py +0 -123
  159. data/pulpcore/client/pulp_maven/models/repository_version_response.py +0 -231
  160. data/pulpcore/client/pulp_maven/rest.py +0 -292
  161. data/requirements.txt +0 -6
  162. data/setup.cfg +0 -2
  163. data/setup.py +0 -42
  164. data/spec/models/content_summary_spec.rb +0 -53
  165. data/test/__init__.py +0 -0
  166. data/test/test_async_operation_response.py +0 -54
  167. data/test/test_content_artifact_api.py +0 -55
  168. data/test/test_content_summary.py +0 -70
  169. data/test/test_content_summary_response.py +0 -70
  170. data/test/test_distributions_maven_api.py +0 -76
  171. data/test/test_maven_maven_artifact.py +0 -56
  172. data/test/test_maven_maven_artifact_response.py +0 -60
  173. data/test/test_maven_maven_distribution.py +0 -60
  174. data/test/test_maven_maven_distribution_response.py +0 -63
  175. data/test/test_maven_maven_remote.py +0 -76
  176. data/test/test_maven_maven_remote_response.py +0 -74
  177. data/test/test_maven_maven_repository.py +0 -57
  178. data/test/test_maven_maven_repository_response.py +0 -61
  179. data/test/test_paginated_repository_version_response_list.py +0 -63
  180. data/test/test_paginatedmaven_maven_artifact_response_list.py +0 -65
  181. data/test/test_paginatedmaven_maven_distribution_response_list.py +0 -67
  182. data/test/test_paginatedmaven_maven_remote_response_list.py +0 -78
  183. data/test/test_paginatedmaven_maven_repository_response_list.py +0 -66
  184. data/test/test_patchedmaven_maven_distribution.py +0 -58
  185. data/test/test_patchedmaven_maven_remote.py +0 -74
  186. data/test/test_patchedmaven_maven_repository.py +0 -56
  187. data/test/test_policy_enum.py +0 -52
  188. data/test/test_remotes_maven_api.py +0 -76
  189. data/test/test_repositories_maven_api.py +0 -76
  190. data/test/test_repositories_maven_versions_api.py +0 -61
  191. data/test/test_repository_version.py +0 -53
  192. data/test/test_repository_version_response.py +0 -57
  193. data/test-requirements.txt +0 -3
  194. data/tox.ini +0 -9
@@ -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
 
@@ -155,7 +155,7 @@ module PulpMavenClient
155
155
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
156
156
  # @option opts [String] :name__startswith Filter results where name starts with value
157
157
  # @option opts [Integer] :offset The initial index from which to return the results.
158
- # @option opts [String] :ordering Which field to use when ordering the results.
158
+ # @option opts [Array<String>] :ordering Ordering
159
159
  # @option opts [String] :pulp_label_select Filter labels by search string
160
160
  # @option opts [String] :fields A list of fields to include in the response.
161
161
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
@@ -175,7 +175,7 @@ module PulpMavenClient
175
175
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
176
176
  # @option opts [String] :name__startswith Filter results where name starts with value
177
177
  # @option opts [Integer] :offset The initial index from which to return the results.
178
- # @option opts [String] :ordering Which field to use when ordering the results.
178
+ # @option opts [Array<String>] :ordering Ordering
179
179
  # @option opts [String] :pulp_label_select Filter labels by search string
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.
@@ -184,6 +184,10 @@ module PulpMavenClient
184
184
  if @api_client.config.debugging
185
185
  @api_client.config.logger.debug 'Calling API: RepositoriesMavenApi.list ...'
186
186
  end
187
+ allowable_values = ["-alternatecontentsourcepath", "-content", "-core_pulp_exporter", "-description", "-distributions", "-group_roles", "-maven_mavenrepository", "-name", "-next_version", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-pulpimporterrepository", "-remote", "-repositorycontent", "-retain_repo_versions", "-user_hidden", "-user_roles", "-versions", "alternatecontentsourcepath", "content", "core_pulp_exporter", "description", "distributions", "group_roles", "maven_mavenrepository", "name", "next_version", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "pulpimporterrepository", "remote", "repositorycontent", "retain_repo_versions", "user_hidden", "user_roles", "versions"]
188
+ if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
189
+ fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
190
+ end
187
191
  # resource path
188
192
  local_var_path = '/pulp/api/v3/repositories/maven/maven/'
189
193
 
@@ -196,7 +200,7 @@ module PulpMavenClient
196
200
  query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
197
201
  query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
198
202
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
199
- query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
203
+ query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
200
204
  query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
201
205
  query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
202
206
  query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
@@ -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
 
@@ -95,7 +95,7 @@ module PulpMavenClient
95
95
  # @option opts [Integer] :number__lte Filter results where number is less than or equal to value
96
96
  # @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
97
97
  # @option opts [Integer] :offset The initial index from which to return the results.
98
- # @option opts [String] :ordering Which field to use when ordering the results.
98
+ # @option opts [Array<String>] :ordering Ordering
99
99
  # @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
100
100
  # @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
101
101
  # @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
@@ -124,7 +124,7 @@ module PulpMavenClient
124
124
  # @option opts [Integer] :number__lte Filter results where number is less than or equal to value
125
125
  # @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
126
126
  # @option opts [Integer] :offset The initial index from which to return the results.
127
- # @option opts [String] :ordering Which field to use when ordering the results.
127
+ # @option opts [Array<String>] :ordering Ordering
128
128
  # @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
129
129
  # @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
130
130
  # @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
@@ -142,6 +142,10 @@ module PulpMavenClient
142
142
  if @api_client.config.client_side_validation && maven_maven_repository_href.nil?
143
143
  fail ArgumentError, "Missing the required parameter 'maven_maven_repository_href' when calling RepositoriesMavenVersionsApi.list"
144
144
  end
145
+ allowable_values = ["-added_memberships", "-base_version", "-complete", "-counts", "-distribution", "-group_roles", "-number", "-pk", "-publication", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-removed_memberships", "-repository", "-user_roles", "-versions", "added_memberships", "base_version", "complete", "counts", "distribution", "group_roles", "number", "pk", "publication", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "removed_memberships", "repository", "user_roles", "versions"]
146
+ if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
147
+ fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
148
+ end
145
149
  # resource path
146
150
  local_var_path = '{maven_maven_repository_href}versions/'.sub('{' + 'maven_maven_repository_href' + '}', CGI.escape(maven_maven_repository_href.to_s).gsub('%2F', '/'))
147
151
 
@@ -157,7 +161,7 @@ module PulpMavenClient
157
161
  query_params[:'number__lte'] = opts[:'number__lte'] if !opts[:'number__lte'].nil?
158
162
  query_params[:'number__range'] = @api_client.build_collection_param(opts[:'number__range'], :csv) if !opts[:'number__range'].nil?
159
163
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
160
- query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
164
+ query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
161
165
  query_params[:'pulp_created'] = opts[:'pulp_created'] if !opts[:'pulp_created'].nil?
162
166
  query_params[:'pulp_created__gt'] = opts[:'pulp_created__gt'] if !opts[:'pulp_created__gt'].nil?
163
167
  query_params[:'pulp_created__gte'] = opts[:'pulp_created__gte'] if !opts[:'pulp_created__gte'].nil?
@@ -270,20 +274,20 @@ module PulpMavenClient
270
274
 
271
275
  # Trigger an asynchronous task to repair a repository version.
272
276
  # @param maven_maven_repository_version_href [String]
273
- # @param repository_version [RepositoryVersion]
277
+ # @param repair [Repair]
274
278
  # @param [Hash] opts the optional parameters
275
279
  # @return [AsyncOperationResponse]
276
- def repair(maven_maven_repository_version_href, repository_version, opts = {})
277
- data, _status_code, _headers = repair_with_http_info(maven_maven_repository_version_href, repository_version, opts)
280
+ def repair(maven_maven_repository_version_href, repair, opts = {})
281
+ data, _status_code, _headers = repair_with_http_info(maven_maven_repository_version_href, repair, opts)
278
282
  data
279
283
  end
280
284
 
281
285
  # Trigger an asynchronous task to repair a repository version.
282
286
  # @param maven_maven_repository_version_href [String]
283
- # @param repository_version [RepositoryVersion]
287
+ # @param repair [Repair]
284
288
  # @param [Hash] opts the optional parameters
285
289
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
286
- def repair_with_http_info(maven_maven_repository_version_href, repository_version, opts = {})
290
+ def repair_with_http_info(maven_maven_repository_version_href, repair, opts = {})
287
291
  if @api_client.config.debugging
288
292
  @api_client.config.logger.debug 'Calling API: RepositoriesMavenVersionsApi.repair ...'
289
293
  end
@@ -291,9 +295,9 @@ module PulpMavenClient
291
295
  if @api_client.config.client_side_validation && maven_maven_repository_version_href.nil?
292
296
  fail ArgumentError, "Missing the required parameter 'maven_maven_repository_version_href' when calling RepositoriesMavenVersionsApi.repair"
293
297
  end
294
- # verify the required parameter 'repository_version' is set
295
- if @api_client.config.client_side_validation && repository_version.nil?
296
- fail ArgumentError, "Missing the required parameter 'repository_version' when calling RepositoriesMavenVersionsApi.repair"
298
+ # verify the required parameter 'repair' is set
299
+ if @api_client.config.client_side_validation && repair.nil?
300
+ fail ArgumentError, "Missing the required parameter 'repair' when calling RepositoriesMavenVersionsApi.repair"
297
301
  end
298
302
  # resource path
299
303
  local_var_path = '{maven_maven_repository_version_href}repair/'.sub('{' + 'maven_maven_repository_version_href' + '}', CGI.escape(maven_maven_repository_version_href.to_s).gsub('%2F', '/'))
@@ -312,7 +316,7 @@ module PulpMavenClient
312
316
  form_params = opts[:form_params] || {}
313
317
 
314
318
  # http body (model)
315
- post_body = opts[:body] || @api_client.object_to_http_body(repository_version)
319
+ post_body = opts[:body] || @api_client.object_to_http_body(repair)
316
320
 
317
321
  # return_type
318
322
  return_type = opts[:return_type] || 'AsyncOperationResponse'
@@ -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 PulpMavenClient
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
@@ -116,9 +118,6 @@ module PulpMavenClient
116
118
  update_params_for_auth! header_params, query_params, opts[:auth_names]
117
119
 
118
120
  req_opts = {
119
- :method => http_method,
120
- :headers => header_params,
121
- :params => query_params,
122
121
  :params_encoding => @config.params_encoding,
123
122
  :timeout => @config.timeout,
124
123
  :verbose => @config.debugging
@@ -126,13 +125,13 @@ module PulpMavenClient
126
125
 
127
126
  if [:post, :patch, :put, :delete].include?(http_method)
128
127
  req_body = build_request_body(header_params, form_params, opts[:body])
129
- req_opts.update :body => req_body
130
128
  if @config.debugging
131
129
  @config.logger.debug "HTTP request body param ~BEGIN~\n#{req_body}\n~END~\n"
132
130
  end
133
131
  end
134
132
  request.headers = header_params
135
133
  request.body = req_body
134
+ request.options = OpenStruct.new(req_opts)
136
135
  request.url url
137
136
  request.params = query_params
138
137
  download_file(request) if opts[:return_type] == 'File'
@@ -285,11 +284,13 @@ module PulpMavenClient
285
284
  tempfile.write(chunk)
286
285
  end
287
286
  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`"
287
+ if tempfile
288
+ tempfile.close
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`"
293
+ end
293
294
  end
294
295
  end
295
296
 
@@ -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
 
@@ -109,6 +109,12 @@ module PulpMavenClient
109
109
  # Client private key file (for client certificate)
110
110
  attr_accessor :ssl_client_key
111
111
 
112
+ # Set this to customize parameters encoder of array parameter.
113
+ # Default to nil. Faraday uses NestedParamsEncoder when nil.
114
+ #
115
+ # @see The params_encoder option of Faraday. Related source code:
116
+ # https://github.com/lostisland/faraday/tree/main/lib/faraday/encoders
117
+ attr_accessor :params_encoder
112
118
  # Set this to customize parameters encoding of array parameter with multi collectionFormat.
113
119
  # Default to nil.
114
120
  #
@@ -121,7 +127,7 @@ module PulpMavenClient
121
127
  attr_accessor :force_ending_format
122
128
 
123
129
  def initialize
124
- @scheme = 'http'
130
+ @scheme = 'https'
125
131
  @host = 'pulp'
126
132
  @base_path = ''
127
133
  @api_key = {}
@@ -133,6 +139,8 @@ module PulpMavenClient
133
139
  @ssl_ca_file = nil
134
140
  @ssl_client_cert = nil
135
141
  @ssl_client_key = nil
142
+ @params_encoder = nil
143
+ @timeout = 60
136
144
  @debugging = false
137
145
  @inject_format = false
138
146
  @force_ending_format = false
@@ -202,7 +210,7 @@ module PulpMavenClient
202
210
  def server_settings
203
211
  [
204
212
  {
205
- url: "http://pulp/",
213
+ url: "https://pulp/",
206
214
  description: "No description provided",
207
215
  }
208
216
  ]
@@ -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
 
@@ -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
 
@@ -79,6 +79,10 @@ module PulpMavenClient
79
79
  invalid_properties.push('invalid value for "relative_path", relative_path cannot be nil.')
80
80
  end
81
81
 
82
+ if @relative_path.to_s.length < 1
83
+ invalid_properties.push('invalid value for "relative_path", the character length must be great than or equal to 1.')
84
+ end
85
+
82
86
  invalid_properties
83
87
  end
84
88
 
@@ -87,9 +91,24 @@ module PulpMavenClient
87
91
  def valid?
88
92
  return false if @artifact.nil?
89
93
  return false if @relative_path.nil?
94
+ return false if @relative_path.to_s.length < 1
90
95
  true
91
96
  end
92
97
 
98
+ # Custom attribute writer method with validation
99
+ # @param [Object] relative_path Value to be assigned
100
+ def relative_path=(relative_path)
101
+ if relative_path.nil?
102
+ fail ArgumentError, 'relative_path cannot be nil'
103
+ end
104
+
105
+ if relative_path.to_s.length < 1
106
+ fail ArgumentError, 'invalid value for "relative_path", the character length must be great than or equal to 1.'
107
+ end
108
+
109
+ @relative_path = relative_path
110
+ end
111
+
93
112
  # Checks equality by comparing each attribute.
94
113
  # @param [Object] Object to be compared
95
114
  def ==(o)
@@ -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
 
@@ -113,10 +113,18 @@ module PulpMavenClient
113
113
  invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
114
114
  end
115
115
 
116
+ if @base_path.to_s.length < 1
117
+ invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
118
+ end
119
+
116
120
  if @name.nil?
117
121
  invalid_properties.push('invalid value for "name", name cannot be nil.')
118
122
  end
119
123
 
124
+ if @name.to_s.length < 1
125
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
126
+ end
127
+
120
128
  invalid_properties
121
129
  end
122
130
 
@@ -124,10 +132,40 @@ module PulpMavenClient
124
132
  # @return true if the model is valid
125
133
  def valid?
126
134
  return false if @base_path.nil?
135
+ return false if @base_path.to_s.length < 1
127
136
  return false if @name.nil?
137
+ return false if @name.to_s.length < 1
128
138
  true
129
139
  end
130
140
 
141
+ # Custom attribute writer method with validation
142
+ # @param [Object] base_path Value to be assigned
143
+ def base_path=(base_path)
144
+ if base_path.nil?
145
+ fail ArgumentError, 'base_path cannot be nil'
146
+ end
147
+
148
+ if base_path.to_s.length < 1
149
+ fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
150
+ end
151
+
152
+ @base_path = base_path
153
+ end
154
+
155
+ # Custom attribute writer method with validation
156
+ # @param [Object] name Value to be assigned
157
+ def name=(name)
158
+ if name.nil?
159
+ fail ArgumentError, 'name cannot be nil'
160
+ end
161
+
162
+ if name.to_s.length < 1
163
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
164
+ end
165
+
166
+ @name = name
167
+ end
168
+
131
169
  # Checks equality by comparing each attribute.
132
170
  # @param [Object] Object to be compared
133
171
  def ==(o)
@@ -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