pulp_maven_client 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +43 -31
- data/docs/ContentArtifactApi.md +37 -35
- data/docs/ContentSummary.md +3 -3
- data/docs/ContentSummaryResponse.md +21 -0
- data/docs/DistributionsMavenApi.md +63 -61
- data/docs/MavenMavenArtifact.md +3 -13
- data/docs/MavenMavenArtifactResponse.md +29 -0
- data/docs/MavenMavenDistribution.md +1 -7
- data/docs/MavenMavenDistributionResponse.md +29 -0
- data/docs/MavenMavenRemote.md +18 -12
- data/docs/MavenMavenRemoteResponse.md +51 -0
- data/docs/MavenMavenRepository.md +4 -10
- data/docs/MavenMavenRepositoryResponse.md +29 -0
- data/docs/PaginatedRepositoryVersionResponseList.md +23 -0
- data/docs/PaginatedmavenMavenArtifactResponseList.md +23 -0
- data/docs/PaginatedmavenMavenDistributionResponseList.md +23 -0
- data/docs/PaginatedmavenMavenRemoteResponseList.md +23 -0
- data/docs/PaginatedmavenMavenRepositoryResponseList.md +23 -0
- data/docs/PatchedmavenMavenDistribution.md +23 -0
- data/docs/PatchedmavenMavenRemote.md +45 -0
- data/docs/PatchedmavenMavenRepository.md +21 -0
- data/docs/PolicyEnum.md +16 -0
- data/docs/RemotesMavenApi.md +68 -66
- data/docs/RepositoriesMavenApi.md +60 -58
- data/docs/RepositoriesMavenVersionsApi.md +110 -53
- data/docs/RepositoryVersion.md +1 -9
- data/docs/RepositoryVersionResponse.md +25 -0
- data/lib/pulp_maven_client/api/content_artifact_api.rb +55 -52
- data/lib/pulp_maven_client/api/distributions_maven_api.rb +94 -91
- data/lib/pulp_maven_client/api/remotes_maven_api.rb +104 -101
- data/lib/pulp_maven_client/api/repositories_maven_api.rb +97 -94
- data/lib/pulp_maven_client/api/repositories_maven_versions_api.rb +149 -78
- data/lib/pulp_maven_client/api_client.rb +3 -3
- data/lib/pulp_maven_client/api_error.rb +3 -3
- data/lib/pulp_maven_client/configuration.rb +6 -6
- data/lib/pulp_maven_client/models/async_operation_response.rb +4 -3
- data/lib/pulp_maven_client/models/content_summary.rb +10 -16
- data/lib/pulp_maven_client/models/content_summary_response.rb +240 -0
- data/lib/pulp_maven_client/models/maven_maven_artifact.rb +15 -118
- data/lib/pulp_maven_client/models/maven_maven_artifact_response.rb +272 -0
- data/lib/pulp_maven_client/models/maven_maven_distribution.rb +5 -86
- data/lib/pulp_maven_client/models/maven_maven_distribution_response.rb +279 -0
- data/lib/pulp_maven_client/models/maven_maven_remote.rb +111 -147
- data/lib/pulp_maven_client/models/maven_maven_remote_response.rb +472 -0
- data/lib/pulp_maven_client/models/maven_maven_repository.rb +19 -79
- data/lib/pulp_maven_client/models/maven_maven_repository_response.rb +271 -0
- data/lib/pulp_maven_client/models/{inline_response200.rb → paginated_repository_version_response_list.rb} +7 -17
- data/lib/pulp_maven_client/models/{inline_response2002.rb → paginatedmaven_maven_artifact_response_list.rb} +7 -17
- data/lib/pulp_maven_client/models/{inline_response2004.rb → paginatedmaven_maven_distribution_response_list.rb} +7 -17
- data/lib/pulp_maven_client/models/{inline_response2003.rb → paginatedmaven_maven_remote_response_list.rb} +7 -17
- data/lib/pulp_maven_client/models/paginatedmaven_maven_repository_response_list.rb +237 -0
- data/lib/pulp_maven_client/models/{inline_response2001.rb → patchedmaven_maven_distribution.rb} +38 -45
- data/lib/pulp_maven_client/models/patchedmaven_maven_remote.rb +433 -0
- data/lib/pulp_maven_client/models/patchedmaven_maven_repository.rb +229 -0
- data/lib/pulp_maven_client/models/policy_enum.rb +36 -0
- data/lib/pulp_maven_client/models/repository_version.rb +8 -44
- data/lib/pulp_maven_client/models/repository_version_response.rb +246 -0
- data/lib/pulp_maven_client/version.rb +4 -4
- data/lib/pulp_maven_client.rb +18 -8
- data/pulp_maven_client.gemspec +5 -5
- data/spec/api/content_artifact_api_spec.rb +16 -15
- data/spec/api/distributions_maven_api_spec.rb +20 -19
- data/spec/api/remotes_maven_api_spec.rb +23 -22
- data/spec/api/repositories_maven_api_spec.rb +21 -20
- data/spec/api/repositories_maven_versions_api_spec.rb +36 -23
- data/spec/api_client_spec.rb +3 -3
- data/spec/configuration_spec.rb +6 -6
- data/spec/models/async_operation_response_spec.rb +3 -3
- data/spec/models/content_summary_response_spec.rb +53 -0
- data/spec/models/content_summary_spec.rb +3 -3
- data/spec/models/maven_maven_artifact_response_spec.rb +77 -0
- data/spec/models/maven_maven_artifact_spec.rb +4 -34
- data/spec/models/maven_maven_distribution_response_spec.rb +77 -0
- data/spec/models/maven_maven_distribution_spec.rb +3 -21
- data/spec/models/maven_maven_remote_response_spec.rb +143 -0
- data/spec/models/maven_maven_remote_spec.rb +33 -19
- data/spec/models/maven_maven_repository_response_spec.rb +77 -0
- data/spec/models/maven_maven_repository_spec.rb +6 -24
- data/spec/models/{inline_response2002_spec.rb → paginated_repository_version_response_list_spec.rb} +9 -9
- data/spec/models/{inline_response2003_spec.rb → paginatedmaven_maven_artifact_response_list_spec.rb} +9 -9
- data/spec/models/paginatedmaven_maven_distribution_response_list_spec.rb +59 -0
- data/spec/models/{inline_response2001_spec.rb → paginatedmaven_maven_remote_response_list_spec.rb} +9 -9
- data/spec/models/{inline_response2004_spec.rb → paginatedmaven_maven_repository_response_list_spec.rb} +9 -9
- data/spec/models/patchedmaven_maven_distribution_spec.rb +59 -0
- data/spec/models/patchedmaven_maven_remote_spec.rb +125 -0
- data/spec/models/{inline_response200_spec.rb → patchedmaven_maven_repository_spec.rb} +12 -18
- data/spec/models/policy_enum_spec.rb +35 -0
- data/spec/models/repository_version_response_spec.rb +65 -0
- data/spec/models/repository_version_spec.rb +3 -27
- data/spec/spec_helper.rb +3 -3
- metadata +70 -30
- data/docs/InlineResponse200.md +0 -23
- data/docs/InlineResponse2001.md +0 -23
- data/docs/InlineResponse2002.md +0 -23
- data/docs/InlineResponse2003.md +0 -23
- data/docs/InlineResponse2004.md +0 -23
@@ -1,12 +1,12 @@
|
|
1
1
|
=begin
|
2
2
|
#Pulp 3 API
|
3
3
|
|
4
|
-
#
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
5
|
|
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.
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -20,30 +20,30 @@ module PulpMavenClient
|
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
22
|
# Delete a repository version
|
23
|
-
# Trigger an asynchronous task to delete a
|
24
|
-
# @param
|
23
|
+
# Trigger an asynchronous task to delete a repository version.
|
24
|
+
# @param maven_maven_repository_version_href [String]
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
26
|
# @return [AsyncOperationResponse]
|
27
|
-
def delete(
|
28
|
-
data, _status_code, _headers = delete_with_http_info(
|
27
|
+
def delete(maven_maven_repository_version_href, opts = {})
|
28
|
+
data, _status_code, _headers = delete_with_http_info(maven_maven_repository_version_href, opts)
|
29
29
|
data
|
30
30
|
end
|
31
31
|
|
32
32
|
# Delete a repository version
|
33
|
-
# Trigger an asynchronous task to delete a
|
34
|
-
# @param
|
33
|
+
# Trigger an asynchronous task to delete a repository version.
|
34
|
+
# @param maven_maven_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
|
37
|
-
def delete_with_http_info(
|
37
|
+
def delete_with_http_info(maven_maven_repository_version_href, opts = {})
|
38
38
|
if @api_client.config.debugging
|
39
39
|
@api_client.config.logger.debug 'Calling API: RepositoriesMavenVersionsApi.delete ...'
|
40
40
|
end
|
41
|
-
# verify the required parameter '
|
42
|
-
if @api_client.config.client_side_validation &&
|
43
|
-
fail ArgumentError, "Missing the required parameter '
|
41
|
+
# verify the required parameter 'maven_maven_repository_version_href' is set
|
42
|
+
if @api_client.config.client_side_validation && maven_maven_repository_version_href.nil?
|
43
|
+
fail ArgumentError, "Missing the required parameter 'maven_maven_repository_version_href' when calling RepositoriesMavenVersionsApi.delete"
|
44
44
|
end
|
45
45
|
# resource path
|
46
|
-
local_var_path = '{
|
46
|
+
local_var_path = '{maven_maven_repository_version_href}'.sub('{' + 'maven_maven_repository_version_href' + '}', CGI.escape(maven_maven_repository_version_href.to_s).gsub('%2F', '/'))
|
47
47
|
|
48
48
|
# query parameters
|
49
49
|
query_params = opts[:query_params] || {}
|
@@ -63,7 +63,7 @@ module PulpMavenClient
|
|
63
63
|
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
64
64
|
|
65
65
|
# auth_names
|
66
|
-
auth_names = opts[:auth_names] || ['
|
66
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
67
67
|
|
68
68
|
new_options = opts.merge(
|
69
69
|
:header_params => header_params,
|
@@ -83,84 +83,87 @@ module PulpMavenClient
|
|
83
83
|
|
84
84
|
# List repository versions
|
85
85
|
# MavenRepositoryVersion represents a single Maven repository version.
|
86
|
-
# @param
|
86
|
+
# @param maven_maven_repository_href [String]
|
87
87
|
# @param [Hash] opts the optional parameters
|
88
|
-
# @option opts [String] :
|
89
|
-
# @option opts [
|
90
|
-
# @option opts [Float] :number__lt Filter results where number is less than value
|
91
|
-
# @option opts [Float] :number__lte Filter results where number is less than or equal to value
|
92
|
-
# @option opts [Float] :number__gt Filter results where number is greater than value
|
93
|
-
# @option opts [Float] :number__gte Filter results where number is greater than or equal to value
|
94
|
-
# @option opts [Float] :number__range Filter results where number is between two comma separated values
|
95
|
-
# @option opts [String] :pulp_created__lt Filter results where pulp_created is less than value
|
96
|
-
# @option opts [String] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
97
|
-
# @option opts [String] :pulp_created__gt Filter results where pulp_created is greater than value
|
98
|
-
# @option opts [String] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
99
|
-
# @option opts [String] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
100
|
-
# @option opts [String] :content Content Unit referenced by HREF
|
101
|
-
# @option opts [String] :pulp_created ISO 8601 formatted dates are supported
|
88
|
+
# @option opts [String] :content content
|
89
|
+
# @option opts [String] :content__in content__in
|
102
90
|
# @option opts [Integer] :limit Number of results to return per page.
|
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
|
103
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.
|
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
|
104
105
|
# @option opts [String] :fields A list of fields to include in the response.
|
105
106
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
106
|
-
# @return [
|
107
|
-
def list(
|
108
|
-
data, _status_code, _headers = list_with_http_info(
|
107
|
+
# @return [PaginatedRepositoryVersionResponseList]
|
108
|
+
def list(maven_maven_repository_href, opts = {})
|
109
|
+
data, _status_code, _headers = list_with_http_info(maven_maven_repository_href, opts)
|
109
110
|
data
|
110
111
|
end
|
111
112
|
|
112
113
|
# List repository versions
|
113
114
|
# MavenRepositoryVersion represents a single Maven repository version.
|
114
|
-
# @param
|
115
|
+
# @param maven_maven_repository_href [String]
|
115
116
|
# @param [Hash] opts the optional parameters
|
116
|
-
# @option opts [String] :
|
117
|
-
# @option opts [
|
118
|
-
# @option opts [Float] :number__lt Filter results where number is less than value
|
119
|
-
# @option opts [Float] :number__lte Filter results where number is less than or equal to value
|
120
|
-
# @option opts [Float] :number__gt Filter results where number is greater than value
|
121
|
-
# @option opts [Float] :number__gte Filter results where number is greater than or equal to value
|
122
|
-
# @option opts [Float] :number__range Filter results where number is between two comma separated values
|
123
|
-
# @option opts [String] :pulp_created__lt Filter results where pulp_created is less than value
|
124
|
-
# @option opts [String] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
125
|
-
# @option opts [String] :pulp_created__gt Filter results where pulp_created is greater than value
|
126
|
-
# @option opts [String] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
127
|
-
# @option opts [String] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
128
|
-
# @option opts [String] :content Content Unit referenced by HREF
|
129
|
-
# @option opts [String] :pulp_created ISO 8601 formatted dates are supported
|
117
|
+
# @option opts [String] :content content
|
118
|
+
# @option opts [String] :content__in content__in
|
130
119
|
# @option opts [Integer] :limit Number of results to return per page.
|
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
|
131
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.
|
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
|
132
134
|
# @option opts [String] :fields A list of fields to include in the response.
|
133
135
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
134
|
-
# @return [Array<(
|
135
|
-
def list_with_http_info(
|
136
|
+
# @return [Array<(PaginatedRepositoryVersionResponseList, Integer, Hash)>] PaginatedRepositoryVersionResponseList data, response status code and response headers
|
137
|
+
def list_with_http_info(maven_maven_repository_href, opts = {})
|
136
138
|
if @api_client.config.debugging
|
137
139
|
@api_client.config.logger.debug 'Calling API: RepositoriesMavenVersionsApi.list ...'
|
138
140
|
end
|
139
|
-
# verify the required parameter '
|
140
|
-
if @api_client.config.client_side_validation &&
|
141
|
-
fail ArgumentError, "Missing the required parameter '
|
141
|
+
# verify the required parameter 'maven_maven_repository_href' is set
|
142
|
+
if @api_client.config.client_side_validation && maven_maven_repository_href.nil?
|
143
|
+
fail ArgumentError, "Missing the required parameter 'maven_maven_repository_href' when calling RepositoriesMavenVersionsApi.list"
|
142
144
|
end
|
143
145
|
# resource path
|
144
|
-
local_var_path = '{
|
146
|
+
local_var_path = '{maven_maven_repository_href}versions/'.sub('{' + 'maven_maven_repository_href' + '}', CGI.escape(maven_maven_repository_href.to_s).gsub('%2F', '/'))
|
145
147
|
|
146
148
|
# query parameters
|
147
149
|
query_params = opts[:query_params] || {}
|
148
|
-
query_params[:'
|
150
|
+
query_params[:'content'] = opts[:'content'] if !opts[:'content'].nil?
|
151
|
+
query_params[:'content__in'] = opts[:'content__in'] if !opts[:'content__in'].nil?
|
152
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
149
153
|
query_params[:'number'] = opts[:'number'] if !opts[:'number'].nil?
|
150
|
-
query_params[:'number__lt'] = opts[:'number__lt'] if !opts[:'number__lt'].nil?
|
151
|
-
query_params[:'number__lte'] = opts[:'number__lte'] if !opts[:'number__lte'].nil?
|
152
154
|
query_params[:'number__gt'] = opts[:'number__gt'] if !opts[:'number__gt'].nil?
|
153
155
|
query_params[:'number__gte'] = opts[:'number__gte'] if !opts[:'number__gte'].nil?
|
156
|
+
query_params[:'number__lt'] = opts[:'number__lt'] if !opts[:'number__lt'].nil?
|
157
|
+
query_params[:'number__lte'] = opts[:'number__lte'] if !opts[:'number__lte'].nil?
|
154
158
|
query_params[:'number__range'] = opts[:'number__range'] if !opts[:'number__range'].nil?
|
155
|
-
query_params[:'
|
156
|
-
query_params[:'
|
159
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
160
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
161
|
+
query_params[:'pulp_created'] = opts[:'pulp_created'] if !opts[:'pulp_created'].nil?
|
157
162
|
query_params[:'pulp_created__gt'] = opts[:'pulp_created__gt'] if !opts[:'pulp_created__gt'].nil?
|
158
163
|
query_params[:'pulp_created__gte'] = opts[:'pulp_created__gte'] if !opts[:'pulp_created__gte'].nil?
|
164
|
+
query_params[:'pulp_created__lt'] = opts[:'pulp_created__lt'] if !opts[:'pulp_created__lt'].nil?
|
165
|
+
query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
|
159
166
|
query_params[:'pulp_created__range'] = opts[:'pulp_created__range'] if !opts[:'pulp_created__range'].nil?
|
160
|
-
query_params[:'content'] = opts[:'content'] if !opts[:'content'].nil?
|
161
|
-
query_params[:'pulp_created'] = opts[:'pulp_created'] if !opts[:'pulp_created'].nil?
|
162
|
-
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
163
|
-
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
164
167
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
165
168
|
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
166
169
|
|
@@ -176,10 +179,10 @@ module PulpMavenClient
|
|
176
179
|
post_body = opts[:body]
|
177
180
|
|
178
181
|
# return_type
|
179
|
-
return_type = opts[:return_type] || '
|
182
|
+
return_type = opts[:return_type] || 'PaginatedRepositoryVersionResponseList'
|
180
183
|
|
181
184
|
# auth_names
|
182
|
-
auth_names = opts[:auth_names] || ['
|
185
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
183
186
|
|
184
187
|
new_options = opts.merge(
|
185
188
|
:header_params => header_params,
|
@@ -199,33 +202,33 @@ module PulpMavenClient
|
|
199
202
|
|
200
203
|
# Inspect a repository version
|
201
204
|
# MavenRepositoryVersion represents a single Maven repository version.
|
202
|
-
# @param
|
205
|
+
# @param maven_maven_repository_version_href [String]
|
203
206
|
# @param [Hash] opts the optional parameters
|
204
207
|
# @option opts [String] :fields A list of fields to include in the response.
|
205
208
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
206
|
-
# @return [
|
207
|
-
def read(
|
208
|
-
data, _status_code, _headers = read_with_http_info(
|
209
|
+
# @return [RepositoryVersionResponse]
|
210
|
+
def read(maven_maven_repository_version_href, opts = {})
|
211
|
+
data, _status_code, _headers = read_with_http_info(maven_maven_repository_version_href, opts)
|
209
212
|
data
|
210
213
|
end
|
211
214
|
|
212
215
|
# Inspect a repository version
|
213
216
|
# MavenRepositoryVersion represents a single Maven repository version.
|
214
|
-
# @param
|
217
|
+
# @param maven_maven_repository_version_href [String]
|
215
218
|
# @param [Hash] opts the optional parameters
|
216
219
|
# @option opts [String] :fields A list of fields to include in the response.
|
217
220
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
218
|
-
# @return [Array<(
|
219
|
-
def read_with_http_info(
|
221
|
+
# @return [Array<(RepositoryVersionResponse, Integer, Hash)>] RepositoryVersionResponse data, response status code and response headers
|
222
|
+
def read_with_http_info(maven_maven_repository_version_href, opts = {})
|
220
223
|
if @api_client.config.debugging
|
221
224
|
@api_client.config.logger.debug 'Calling API: RepositoriesMavenVersionsApi.read ...'
|
222
225
|
end
|
223
|
-
# verify the required parameter '
|
224
|
-
if @api_client.config.client_side_validation &&
|
225
|
-
fail ArgumentError, "Missing the required parameter '
|
226
|
+
# verify the required parameter 'maven_maven_repository_version_href' is set
|
227
|
+
if @api_client.config.client_side_validation && maven_maven_repository_version_href.nil?
|
228
|
+
fail ArgumentError, "Missing the required parameter 'maven_maven_repository_version_href' when calling RepositoriesMavenVersionsApi.read"
|
226
229
|
end
|
227
230
|
# resource path
|
228
|
-
local_var_path = '{
|
231
|
+
local_var_path = '{maven_maven_repository_version_href}'.sub('{' + 'maven_maven_repository_version_href' + '}', CGI.escape(maven_maven_repository_version_href.to_s).gsub('%2F', '/'))
|
229
232
|
|
230
233
|
# query parameters
|
231
234
|
query_params = opts[:query_params] || {}
|
@@ -244,10 +247,10 @@ module PulpMavenClient
|
|
244
247
|
post_body = opts[:body]
|
245
248
|
|
246
249
|
# return_type
|
247
|
-
return_type = opts[:return_type] || '
|
250
|
+
return_type = opts[:return_type] || 'RepositoryVersionResponse'
|
248
251
|
|
249
252
|
# auth_names
|
250
|
-
auth_names = opts[:auth_names] || ['
|
253
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
251
254
|
|
252
255
|
new_options = opts.merge(
|
253
256
|
:header_params => header_params,
|
@@ -264,5 +267,73 @@ module PulpMavenClient
|
|
264
267
|
end
|
265
268
|
return data, status_code, headers
|
266
269
|
end
|
270
|
+
|
271
|
+
# Trigger an asynchronous task to repair a repository version.
|
272
|
+
# @param maven_maven_repository_version_href [String]
|
273
|
+
# @param repository_version [RepositoryVersion]
|
274
|
+
# @param [Hash] opts the optional parameters
|
275
|
+
# @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)
|
278
|
+
data
|
279
|
+
end
|
280
|
+
|
281
|
+
# Trigger an asynchronous task to repair a repository version.
|
282
|
+
# @param maven_maven_repository_version_href [String]
|
283
|
+
# @param repository_version [RepositoryVersion]
|
284
|
+
# @param [Hash] opts the optional parameters
|
285
|
+
# @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 = {})
|
287
|
+
if @api_client.config.debugging
|
288
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesMavenVersionsApi.repair ...'
|
289
|
+
end
|
290
|
+
# verify the required parameter 'maven_maven_repository_version_href' is set
|
291
|
+
if @api_client.config.client_side_validation && maven_maven_repository_version_href.nil?
|
292
|
+
fail ArgumentError, "Missing the required parameter 'maven_maven_repository_version_href' when calling RepositoriesMavenVersionsApi.repair"
|
293
|
+
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"
|
297
|
+
end
|
298
|
+
# resource path
|
299
|
+
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', '/'))
|
300
|
+
|
301
|
+
# query parameters
|
302
|
+
query_params = opts[:query_params] || {}
|
303
|
+
|
304
|
+
# header parameters
|
305
|
+
header_params = opts[:header_params] || {}
|
306
|
+
# HTTP header 'Accept' (if needed)
|
307
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
308
|
+
# HTTP header 'Content-Type'
|
309
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
310
|
+
|
311
|
+
# form parameters
|
312
|
+
form_params = opts[:form_params] || {}
|
313
|
+
|
314
|
+
# http body (model)
|
315
|
+
post_body = opts[:body] || @api_client.object_to_http_body(repository_version)
|
316
|
+
|
317
|
+
# return_type
|
318
|
+
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
319
|
+
|
320
|
+
# auth_names
|
321
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
322
|
+
|
323
|
+
new_options = opts.merge(
|
324
|
+
:header_params => header_params,
|
325
|
+
:query_params => query_params,
|
326
|
+
:form_params => form_params,
|
327
|
+
:body => post_body,
|
328
|
+
:auth_names => auth_names,
|
329
|
+
:return_type => return_type
|
330
|
+
)
|
331
|
+
|
332
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
333
|
+
if @api_client.config.debugging
|
334
|
+
@api_client.config.logger.debug "API called: RepositoriesMavenVersionsApi#repair\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
335
|
+
end
|
336
|
+
return data, status_code, headers
|
337
|
+
end
|
267
338
|
end
|
268
339
|
end
|
@@ -1,12 +1,12 @@
|
|
1
1
|
=begin
|
2
2
|
#Pulp 3 API
|
3
3
|
|
4
|
-
#
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
5
|
|
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.
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -1,12 +1,12 @@
|
|
1
1
|
=begin
|
2
2
|
#Pulp 3 API
|
3
3
|
|
4
|
-
#
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
5
|
|
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.
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -1,12 +1,12 @@
|
|
1
1
|
=begin
|
2
2
|
#Pulp 3 API
|
3
3
|
|
4
|
-
#
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
5
|
|
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.
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -122,7 +122,7 @@ module PulpMavenClient
|
|
122
122
|
|
123
123
|
def initialize
|
124
124
|
@scheme = 'http'
|
125
|
-
@host = '
|
125
|
+
@host = 'pulp'
|
126
126
|
@base_path = ''
|
127
127
|
@api_key = {}
|
128
128
|
@api_key_prefix = {}
|
@@ -188,7 +188,7 @@ module PulpMavenClient
|
|
188
188
|
# Returns Auth Settings hash for api client.
|
189
189
|
def auth_settings
|
190
190
|
{
|
191
|
-
'
|
191
|
+
'basicAuth' =>
|
192
192
|
{
|
193
193
|
type: 'basic',
|
194
194
|
in: 'header',
|
@@ -202,7 +202,7 @@ module PulpMavenClient
|
|
202
202
|
def server_settings
|
203
203
|
[
|
204
204
|
{
|
205
|
-
url: "http://
|
205
|
+
url: "http://pulp/",
|
206
206
|
description: "No description provided",
|
207
207
|
}
|
208
208
|
]
|
@@ -1,18 +1,19 @@
|
|
1
1
|
=begin
|
2
2
|
#Pulp 3 API
|
3
3
|
|
4
|
-
#
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
5
|
|
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.
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module PulpMavenClient
|
16
|
+
# Serializer for asynchronous operations.
|
16
17
|
class AsyncOperationResponse
|
17
18
|
# The href of the task.
|
18
19
|
attr_accessor :task
|
@@ -1,19 +1,19 @@
|
|
1
1
|
=begin
|
2
2
|
#Pulp 3 API
|
3
3
|
|
4
|
-
#
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
5
|
|
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.
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module PulpMavenClient
|
16
|
-
#
|
16
|
+
# Serializer for the RepositoryVersion content summary
|
17
17
|
class ContentSummary
|
18
18
|
attr_accessor :added
|
19
19
|
|
@@ -33,9 +33,9 @@ module PulpMavenClient
|
|
33
33
|
# Attribute type mapping.
|
34
34
|
def self.openapi_types
|
35
35
|
{
|
36
|
-
:'added' => :'
|
37
|
-
:'removed' => :'
|
38
|
-
:'present' => :'
|
36
|
+
:'added' => :'Object',
|
37
|
+
:'removed' => :'Object',
|
38
|
+
:'present' => :'Object'
|
39
39
|
}
|
40
40
|
end
|
41
41
|
|
@@ -61,21 +61,15 @@ module PulpMavenClient
|
|
61
61
|
}
|
62
62
|
|
63
63
|
if attributes.key?(:'added')
|
64
|
-
|
65
|
-
self.added = value
|
66
|
-
end
|
64
|
+
self.added = attributes[:'added']
|
67
65
|
end
|
68
66
|
|
69
67
|
if attributes.key?(:'removed')
|
70
|
-
|
71
|
-
self.removed = value
|
72
|
-
end
|
68
|
+
self.removed = attributes[:'removed']
|
73
69
|
end
|
74
70
|
|
75
71
|
if attributes.key?(:'present')
|
76
|
-
|
77
|
-
self.present = value
|
78
|
-
end
|
72
|
+
self.present = attributes[:'present']
|
79
73
|
end
|
80
74
|
end
|
81
75
|
|