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.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/README.md +6 -7
- data/docs/ContentArtifactApi.md +3 -3
- data/docs/DistributionsMavenApi.md +3 -3
- data/docs/MavenMavenRemote.md +10 -8
- data/docs/MavenMavenRemoteResponse.md +8 -6
- data/docs/MavenMavenRepository.md +3 -1
- data/docs/MavenMavenRepositoryResponse.md +3 -1
- data/docs/PatchedmavenMavenRemote.md +10 -8
- data/docs/PatchedmavenMavenRepository.md +3 -1
- data/docs/RemotesMavenApi.md +3 -3
- data/docs/Repair.md +17 -0
- data/docs/RepositoriesMavenApi.md +3 -3
- data/docs/RepositoriesMavenVersionsApi.md +7 -7
- data/docs/RepositoryVersionResponse.md +2 -0
- data/lib/pulp_maven_client/api/content_artifact_api.rb +8 -4
- data/lib/pulp_maven_client/api/distributions_maven_api.rb +8 -4
- data/lib/pulp_maven_client/api/remotes_maven_api.rb +8 -4
- data/lib/pulp_maven_client/api/repositories_maven_api.rb +8 -4
- data/lib/pulp_maven_client/api/repositories_maven_versions_api.rb +17 -13
- data/lib/pulp_maven_client/api_client.rb +13 -12
- data/lib/pulp_maven_client/api_error.rb +1 -1
- data/lib/pulp_maven_client/configuration.rb +11 -3
- data/lib/pulp_maven_client/models/async_operation_response.rb +1 -1
- data/lib/pulp_maven_client/models/content_summary_response.rb +1 -1
- data/lib/pulp_maven_client/models/maven_maven_artifact.rb +20 -1
- data/lib/pulp_maven_client/models/maven_maven_artifact_response.rb +1 -1
- data/lib/pulp_maven_client/models/maven_maven_distribution.rb +39 -1
- data/lib/pulp_maven_client/models/maven_maven_distribution_response.rb +1 -1
- data/lib/pulp_maven_client/models/maven_maven_remote.rb +180 -10
- data/lib/pulp_maven_client/models/maven_maven_remote_response.rb +20 -8
- data/lib/pulp_maven_client/models/maven_maven_repository.rb +63 -2
- data/lib/pulp_maven_client/models/maven_maven_repository_response.rb +29 -2
- data/lib/pulp_maven_client/models/paginated_repository_version_response_list.rb +1 -1
- data/lib/pulp_maven_client/models/paginatedmaven_maven_artifact_response_list.rb +1 -1
- data/lib/pulp_maven_client/models/paginatedmaven_maven_distribution_response_list.rb +1 -1
- data/lib/pulp_maven_client/models/paginatedmaven_maven_remote_response_list.rb +1 -1
- data/lib/pulp_maven_client/models/paginatedmaven_maven_repository_response_list.rb +1 -1
- data/lib/pulp_maven_client/models/patchedmaven_maven_distribution.rb +31 -1
- data/lib/pulp_maven_client/models/patchedmaven_maven_remote.rb +172 -10
- data/lib/pulp_maven_client/models/patchedmaven_maven_repository.rb +59 -2
- data/lib/pulp_maven_client/models/policy_enum.rb +1 -1
- data/lib/pulp_maven_client/models/{repository_version.rb → repair.rb} +14 -13
- data/lib/pulp_maven_client/models/repository_version_response.rb +11 -2
- data/lib/pulp_maven_client/version.rb +2 -2
- data/lib/pulp_maven_client.rb +2 -3
- data/pulp_maven_client.gemspec +2 -2
- data/spec/api/content_artifact_api_spec.rb +2 -2
- data/spec/api/distributions_maven_api_spec.rb +2 -2
- data/spec/api/remotes_maven_api_spec.rb +2 -2
- data/spec/api/repositories_maven_api_spec.rb +2 -2
- data/spec/api/repositories_maven_versions_api_spec.rb +3 -3
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +4 -4
- data/spec/models/async_operation_response_spec.rb +1 -1
- data/spec/models/content_summary_response_spec.rb +1 -1
- data/spec/models/maven_maven_artifact_response_spec.rb +1 -1
- data/spec/models/maven_maven_artifact_spec.rb +1 -1
- data/spec/models/maven_maven_distribution_response_spec.rb +1 -1
- data/spec/models/maven_maven_distribution_spec.rb +1 -1
- data/spec/models/maven_maven_remote_response_spec.rb +7 -1
- data/spec/models/maven_maven_remote_spec.rb +7 -1
- data/spec/models/maven_maven_repository_response_spec.rb +7 -1
- data/spec/models/maven_maven_repository_spec.rb +7 -1
- data/spec/models/paginated_repository_version_response_list_spec.rb +1 -1
- data/spec/models/paginatedmaven_maven_artifact_response_list_spec.rb +1 -1
- data/spec/models/paginatedmaven_maven_distribution_response_list_spec.rb +1 -1
- data/spec/models/paginatedmaven_maven_remote_response_list_spec.rb +1 -1
- data/spec/models/paginatedmaven_maven_repository_response_list_spec.rb +1 -1
- data/spec/models/patchedmaven_maven_distribution_spec.rb +1 -1
- data/spec/models/patchedmaven_maven_remote_spec.rb +7 -1
- data/spec/models/patchedmaven_maven_repository_spec.rb +7 -1
- data/spec/models/policy_enum_spec.rb +1 -1
- data/spec/models/{repository_version_spec.rb → repair_spec.rb} +8 -8
- data/spec/models/repository_version_response_spec.rb +7 -1
- data/spec/spec_helper.rb +1 -1
- metadata +31 -141
- data/build/lib/pulpcore/__init__.py +0 -2
- data/build/lib/pulpcore/client/__init__.py +0 -2
- data/build/lib/pulpcore/client/pulp_maven/__init__.py +0 -58
- data/build/lib/pulpcore/client/pulp_maven/api/__init__.py +0 -10
- data/build/lib/pulpcore/client/pulp_maven/api/content_artifact_api.py +0 -445
- data/build/lib/pulpcore/client/pulp_maven/api/distributions_maven_api.py +0 -830
- data/build/lib/pulpcore/client/pulp_maven/api/remotes_maven_api.py +0 -840
- data/build/lib/pulpcore/client/pulp_maven/api/repositories_maven_api.py +0 -809
- data/build/lib/pulpcore/client/pulp_maven/api/repositories_maven_versions_api.py +0 -614
- data/build/lib/pulpcore/client/pulp_maven/api_client.py +0 -667
- data/build/lib/pulpcore/client/pulp_maven/configuration.py +0 -427
- data/build/lib/pulpcore/client/pulp_maven/exceptions.py +0 -121
- data/build/lib/pulpcore/client/pulp_maven/models/__init__.py +0 -39
- data/build/lib/pulpcore/client/pulp_maven/models/async_operation_response.py +0 -124
- data/build/lib/pulpcore/client/pulp_maven/models/content_summary.py +0 -176
- data/build/lib/pulpcore/client/pulp_maven/models/content_summary_response.py +0 -176
- data/build/lib/pulpcore/client/pulp_maven/models/maven_maven_artifact.py +0 -153
- data/build/lib/pulpcore/client/pulp_maven/models/maven_maven_artifact_response.py +0 -290
- data/build/lib/pulpcore/client/pulp_maven/models/maven_maven_distribution.py +0 -260
- data/build/lib/pulpcore/client/pulp_maven/models/maven_maven_distribution_response.py +0 -342
- data/build/lib/pulpcore/client/pulp_maven/models/maven_maven_remote.py +0 -657
- data/build/lib/pulpcore/client/pulp_maven/models/maven_maven_remote_response.py +0 -604
- data/build/lib/pulpcore/client/pulp_maven/models/maven_maven_repository.py +0 -202
- data/build/lib/pulpcore/client/pulp_maven/models/maven_maven_repository_response.py +0 -308
- data/build/lib/pulpcore/client/pulp_maven/models/paginated_repository_version_response_list.py +0 -197
- data/build/lib/pulpcore/client/pulp_maven/models/paginatedmaven_maven_artifact_response_list.py +0 -197
- data/build/lib/pulpcore/client/pulp_maven/models/paginatedmaven_maven_distribution_response_list.py +0 -197
- data/build/lib/pulpcore/client/pulp_maven/models/paginatedmaven_maven_remote_response_list.py +0 -197
- data/build/lib/pulpcore/client/pulp_maven/models/paginatedmaven_maven_repository_response_list.py +0 -197
- data/build/lib/pulpcore/client/pulp_maven/models/patchedmaven_maven_distribution.py +0 -258
- data/build/lib/pulpcore/client/pulp_maven/models/patchedmaven_maven_remote.py +0 -655
- data/build/lib/pulpcore/client/pulp_maven/models/patchedmaven_maven_repository.py +0 -201
- data/build/lib/pulpcore/client/pulp_maven/models/policy_enum.py +0 -101
- data/build/lib/pulpcore/client/pulp_maven/models/repository_version.py +0 -123
- data/build/lib/pulpcore/client/pulp_maven/models/repository_version_response.py +0 -231
- data/build/lib/pulpcore/client/pulp_maven/rest.py +0 -292
- data/dist/pulp_maven-client-0.3.0.tar.gz +0 -0
- data/dist/pulp_maven_client-0.3.0-py3-none-any.whl +0 -0
- data/docs/ContentSummary.md +0 -21
- data/docs/RepositoryVersion.md +0 -17
- data/lib/pulp_maven_client/models/content_summary.rb +0 -246
- data/pulp_maven_client.egg-info/PKG-INFO +0 -15
- data/pulp_maven_client.egg-info/SOURCES.txt +0 -71
- data/pulp_maven_client.egg-info/dependency_links.txt +0 -1
- data/pulp_maven_client.egg-info/requires.txt +0 -4
- data/pulp_maven_client.egg-info/top_level.txt +0 -1
- data/pulpcore/__init__.py +0 -2
- data/pulpcore/client/__init__.py +0 -2
- data/pulpcore/client/pulp_maven/__init__.py +0 -58
- data/pulpcore/client/pulp_maven/api/__init__.py +0 -10
- data/pulpcore/client/pulp_maven/api/content_artifact_api.py +0 -445
- data/pulpcore/client/pulp_maven/api/distributions_maven_api.py +0 -830
- data/pulpcore/client/pulp_maven/api/remotes_maven_api.py +0 -840
- data/pulpcore/client/pulp_maven/api/repositories_maven_api.py +0 -809
- data/pulpcore/client/pulp_maven/api/repositories_maven_versions_api.py +0 -614
- data/pulpcore/client/pulp_maven/api_client.py +0 -667
- data/pulpcore/client/pulp_maven/configuration.py +0 -427
- data/pulpcore/client/pulp_maven/exceptions.py +0 -121
- data/pulpcore/client/pulp_maven/models/__init__.py +0 -39
- data/pulpcore/client/pulp_maven/models/async_operation_response.py +0 -124
- data/pulpcore/client/pulp_maven/models/content_summary.py +0 -176
- data/pulpcore/client/pulp_maven/models/content_summary_response.py +0 -176
- data/pulpcore/client/pulp_maven/models/maven_maven_artifact.py +0 -153
- data/pulpcore/client/pulp_maven/models/maven_maven_artifact_response.py +0 -290
- data/pulpcore/client/pulp_maven/models/maven_maven_distribution.py +0 -260
- data/pulpcore/client/pulp_maven/models/maven_maven_distribution_response.py +0 -342
- data/pulpcore/client/pulp_maven/models/maven_maven_remote.py +0 -657
- data/pulpcore/client/pulp_maven/models/maven_maven_remote_response.py +0 -604
- data/pulpcore/client/pulp_maven/models/maven_maven_repository.py +0 -202
- data/pulpcore/client/pulp_maven/models/maven_maven_repository_response.py +0 -308
- data/pulpcore/client/pulp_maven/models/paginated_repository_version_response_list.py +0 -197
- data/pulpcore/client/pulp_maven/models/paginatedmaven_maven_artifact_response_list.py +0 -197
- data/pulpcore/client/pulp_maven/models/paginatedmaven_maven_distribution_response_list.py +0 -197
- data/pulpcore/client/pulp_maven/models/paginatedmaven_maven_remote_response_list.py +0 -197
- data/pulpcore/client/pulp_maven/models/paginatedmaven_maven_repository_response_list.py +0 -197
- data/pulpcore/client/pulp_maven/models/patchedmaven_maven_distribution.py +0 -258
- data/pulpcore/client/pulp_maven/models/patchedmaven_maven_remote.py +0 -655
- data/pulpcore/client/pulp_maven/models/patchedmaven_maven_repository.py +0 -201
- data/pulpcore/client/pulp_maven/models/policy_enum.py +0 -101
- data/pulpcore/client/pulp_maven/models/repository_version.py +0 -123
- data/pulpcore/client/pulp_maven/models/repository_version_response.py +0 -231
- data/pulpcore/client/pulp_maven/rest.py +0 -292
- data/requirements.txt +0 -6
- data/setup.cfg +0 -2
- data/setup.py +0 -42
- data/spec/models/content_summary_spec.rb +0 -53
- data/test/__init__.py +0 -0
- data/test/test_async_operation_response.py +0 -54
- data/test/test_content_artifact_api.py +0 -55
- data/test/test_content_summary.py +0 -70
- data/test/test_content_summary_response.py +0 -70
- data/test/test_distributions_maven_api.py +0 -76
- data/test/test_maven_maven_artifact.py +0 -56
- data/test/test_maven_maven_artifact_response.py +0 -60
- data/test/test_maven_maven_distribution.py +0 -60
- data/test/test_maven_maven_distribution_response.py +0 -63
- data/test/test_maven_maven_remote.py +0 -76
- data/test/test_maven_maven_remote_response.py +0 -74
- data/test/test_maven_maven_repository.py +0 -57
- data/test/test_maven_maven_repository_response.py +0 -61
- data/test/test_paginated_repository_version_response_list.py +0 -63
- data/test/test_paginatedmaven_maven_artifact_response_list.py +0 -65
- data/test/test_paginatedmaven_maven_distribution_response_list.py +0 -67
- data/test/test_paginatedmaven_maven_remote_response_list.py +0 -78
- data/test/test_paginatedmaven_maven_repository_response_list.py +0 -66
- data/test/test_patchedmaven_maven_distribution.py +0 -58
- data/test/test_patchedmaven_maven_remote.py +0 -74
- data/test/test_patchedmaven_maven_repository.py +0 -56
- data/test/test_policy_enum.py +0 -52
- data/test/test_remotes_maven_api.py +0 -76
- data/test/test_repositories_maven_api.py +0 -76
- data/test/test_repositories_maven_versions_api.py +0 -61
- data/test/test_repository_version.py +0 -53
- data/test/test_repository_version_response.py +0 -57
- data/test-requirements.txt +0 -3
- 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.
|
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
|
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
|
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.
|
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
|
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
|
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
|
277
|
+
# @param repair [Repair]
|
274
278
|
# @param [Hash] opts the optional parameters
|
275
279
|
# @return [AsyncOperationResponse]
|
276
|
-
def repair(maven_maven_repository_version_href,
|
277
|
-
data, _status_code, _headers = repair_with_http_info(maven_maven_repository_version_href,
|
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
|
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,
|
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 '
|
295
|
-
if @api_client.config.client_side_validation &&
|
296
|
-
fail ArgumentError, "Missing the required parameter '
|
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(
|
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.
|
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
|
-
|
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
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
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.
|
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 = '
|
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: "
|
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.
|
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.
|
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)
|