pulp_maven_client 0.3.3 → 0.4.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 +7 -4
- data/docs/ContentArtifactApi.md +8 -8
- data/docs/DistributionsMavenApi.md +18 -12
- data/docs/MavenMavenDistribution.md +1 -1
- data/docs/MavenMavenDistributionResponse.md +1 -1
- data/docs/MavenMavenRemote.md +1 -1
- data/docs/MavenMavenRemoteResponse.md +4 -2
- data/docs/MavenMavenRemoteResponseHiddenFields.md +19 -0
- data/docs/MavenMavenRepository.md +2 -2
- data/docs/MavenMavenRepositoryResponse.md +2 -2
- data/docs/PatchedmavenMavenDistribution.md +1 -1
- data/docs/PatchedmavenMavenRemote.md +1 -1
- data/docs/PatchedmavenMavenRepository.md +2 -2
- data/docs/PulpMavenApi.md +110 -0
- data/docs/RemotesMavenApi.md +12 -12
- data/docs/RepositoriesMavenApi.md +28 -10
- data/docs/RepositoriesMavenVersionsApi.md +12 -12
- data/lib/pulp_maven_client/api/content_artifact_api.rb +13 -13
- data/lib/pulp_maven_client/api/distributions_maven_api.rb +26 -17
- data/lib/pulp_maven_client/api/pulp_maven_api.rb +176 -0
- data/lib/pulp_maven_client/api/remotes_maven_api.rb +17 -17
- data/lib/pulp_maven_client/api/repositories_maven_api.rb +42 -15
- data/lib/pulp_maven_client/api/repositories_maven_versions_api.rb +17 -17
- data/lib/pulp_maven_client/api_client.rb +1 -1
- data/lib/pulp_maven_client/models/maven_maven_distribution.rb +4 -2
- data/lib/pulp_maven_client/models/maven_maven_distribution_response.rb +4 -2
- data/lib/pulp_maven_client/models/maven_maven_remote.rb +4 -2
- data/lib/pulp_maven_client/models/maven_maven_remote_response.rb +21 -7
- data/lib/pulp_maven_client/models/maven_maven_remote_response_hidden_fields.rb +215 -0
- data/lib/pulp_maven_client/models/maven_maven_repository.rb +5 -3
- data/lib/pulp_maven_client/models/maven_maven_repository_response.rb +5 -3
- data/lib/pulp_maven_client/models/patchedmaven_maven_distribution.rb +4 -2
- data/lib/pulp_maven_client/models/patchedmaven_maven_remote.rb +4 -2
- data/lib/pulp_maven_client/models/patchedmaven_maven_repository.rb +5 -3
- data/lib/pulp_maven_client/version.rb +1 -1
- data/lib/pulp_maven_client.rb +2 -0
- data/pulp_maven_client.gemspec +3 -3
- data/spec/api/content_artifact_api_spec.rb +4 -4
- data/spec/api/distributions_maven_api_spec.rb +9 -6
- data/spec/api/pulp_maven_api_spec.rb +61 -0
- data/spec/api/remotes_maven_api_spec.rb +6 -6
- data/spec/api/repositories_maven_api_spec.rb +14 -5
- data/spec/api/repositories_maven_versions_api_spec.rb +6 -6
- data/spec/models/maven_maven_remote_response_hidden_fields_spec.rb +47 -0
- data/spec/models/maven_maven_remote_response_spec.rb +6 -0
- metadata +34 -27
- data/git_push.sh +0 -58
@@ -149,7 +149,7 @@ module PulpMavenClient
|
|
149
149
|
# A ViewSet for MavenRemote.
|
150
150
|
# @param [Hash] opts the optional parameters
|
151
151
|
# @option opts [Integer] :limit Number of results to return per page.
|
152
|
-
# @option opts [String] :name
|
152
|
+
# @option opts [String] :name Filter results where name matches value
|
153
153
|
# @option opts [String] :name__contains Filter results where name contains value
|
154
154
|
# @option opts [String] :name__icontains Filter results where name contains value
|
155
155
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
@@ -157,8 +157,17 @@ module PulpMavenClient
|
|
157
157
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
158
158
|
# @option opts [Array<String>] :ordering Ordering
|
159
159
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
160
|
-
# @option opts [String] :
|
161
|
-
# @option opts [
|
160
|
+
# @option opts [String] :remote Foreign Key referenced by HREF
|
161
|
+
# @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
|
162
|
+
# @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
|
163
|
+
# @option opts [Integer] :retain_repo_versions__gte Filter results where retain_repo_versions is greater than or equal to value
|
164
|
+
# @option opts [Boolean] :retain_repo_versions__isnull Filter results where retain_repo_versions has a null value
|
165
|
+
# @option opts [Integer] :retain_repo_versions__lt Filter results where retain_repo_versions is less than value
|
166
|
+
# @option opts [Integer] :retain_repo_versions__lte Filter results where retain_repo_versions is less than or equal to value
|
167
|
+
# @option opts [Integer] :retain_repo_versions__ne Filter results where retain_repo_versions not equal to value
|
168
|
+
# @option opts [Array<Integer>] :retain_repo_versions__range Filter results where retain_repo_versions is between two comma separated values
|
169
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
170
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
162
171
|
# @return [PaginatedmavenMavenRepositoryResponseList]
|
163
172
|
def list(opts = {})
|
164
173
|
data, _status_code, _headers = list_with_http_info(opts)
|
@@ -169,7 +178,7 @@ module PulpMavenClient
|
|
169
178
|
# A ViewSet for MavenRemote.
|
170
179
|
# @param [Hash] opts the optional parameters
|
171
180
|
# @option opts [Integer] :limit Number of results to return per page.
|
172
|
-
# @option opts [String] :name
|
181
|
+
# @option opts [String] :name Filter results where name matches value
|
173
182
|
# @option opts [String] :name__contains Filter results where name contains value
|
174
183
|
# @option opts [String] :name__icontains Filter results where name contains value
|
175
184
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
@@ -177,14 +186,23 @@ module PulpMavenClient
|
|
177
186
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
178
187
|
# @option opts [Array<String>] :ordering Ordering
|
179
188
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
180
|
-
# @option opts [String] :
|
181
|
-
# @option opts [
|
189
|
+
# @option opts [String] :remote Foreign Key referenced by HREF
|
190
|
+
# @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
|
191
|
+
# @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
|
192
|
+
# @option opts [Integer] :retain_repo_versions__gte Filter results where retain_repo_versions is greater than or equal to value
|
193
|
+
# @option opts [Boolean] :retain_repo_versions__isnull Filter results where retain_repo_versions has a null value
|
194
|
+
# @option opts [Integer] :retain_repo_versions__lt Filter results where retain_repo_versions is less than value
|
195
|
+
# @option opts [Integer] :retain_repo_versions__lte Filter results where retain_repo_versions is less than or equal to value
|
196
|
+
# @option opts [Integer] :retain_repo_versions__ne Filter results where retain_repo_versions not equal to value
|
197
|
+
# @option opts [Array<Integer>] :retain_repo_versions__range Filter results where retain_repo_versions is between two comma separated values
|
198
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
199
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
182
200
|
# @return [Array<(PaginatedmavenMavenRepositoryResponseList, Integer, Hash)>] PaginatedmavenMavenRepositoryResponseList data, response status code and response headers
|
183
201
|
def list_with_http_info(opts = {})
|
184
202
|
if @api_client.config.debugging
|
185
203
|
@api_client.config.logger.debug 'Calling API: RepositoriesMavenApi.list ...'
|
186
204
|
end
|
187
|
-
allowable_values = ["-
|
205
|
+
allowable_values = ["-description", "-name", "-next_version", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-retain_repo_versions", "-user_hidden", "description", "name", "next_version", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "retain_repo_versions", "user_hidden"]
|
188
206
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
189
207
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
190
208
|
end
|
@@ -202,8 +220,17 @@ module PulpMavenClient
|
|
202
220
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
203
221
|
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
204
222
|
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
205
|
-
query_params[:'
|
206
|
-
query_params[:'
|
223
|
+
query_params[:'remote'] = opts[:'remote'] if !opts[:'remote'].nil?
|
224
|
+
query_params[:'retain_repo_versions'] = opts[:'retain_repo_versions'] if !opts[:'retain_repo_versions'].nil?
|
225
|
+
query_params[:'retain_repo_versions__gt'] = opts[:'retain_repo_versions__gt'] if !opts[:'retain_repo_versions__gt'].nil?
|
226
|
+
query_params[:'retain_repo_versions__gte'] = opts[:'retain_repo_versions__gte'] if !opts[:'retain_repo_versions__gte'].nil?
|
227
|
+
query_params[:'retain_repo_versions__isnull'] = opts[:'retain_repo_versions__isnull'] if !opts[:'retain_repo_versions__isnull'].nil?
|
228
|
+
query_params[:'retain_repo_versions__lt'] = opts[:'retain_repo_versions__lt'] if !opts[:'retain_repo_versions__lt'].nil?
|
229
|
+
query_params[:'retain_repo_versions__lte'] = opts[:'retain_repo_versions__lte'] if !opts[:'retain_repo_versions__lte'].nil?
|
230
|
+
query_params[:'retain_repo_versions__ne'] = opts[:'retain_repo_versions__ne'] if !opts[:'retain_repo_versions__ne'].nil?
|
231
|
+
query_params[:'retain_repo_versions__range'] = @api_client.build_collection_param(opts[:'retain_repo_versions__range'], :csv) if !opts[:'retain_repo_versions__range'].nil?
|
232
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
233
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
207
234
|
|
208
235
|
# header parameters
|
209
236
|
header_params = opts[:header_params] || {}
|
@@ -312,8 +339,8 @@ module PulpMavenClient
|
|
312
339
|
# A ViewSet for MavenRemote.
|
313
340
|
# @param maven_maven_repository_href [String]
|
314
341
|
# @param [Hash] opts the optional parameters
|
315
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
316
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
342
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
343
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
317
344
|
# @return [MavenMavenRepositoryResponse]
|
318
345
|
def read(maven_maven_repository_href, opts = {})
|
319
346
|
data, _status_code, _headers = read_with_http_info(maven_maven_repository_href, opts)
|
@@ -324,8 +351,8 @@ module PulpMavenClient
|
|
324
351
|
# A ViewSet for MavenRemote.
|
325
352
|
# @param maven_maven_repository_href [String]
|
326
353
|
# @param [Hash] opts the optional parameters
|
327
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
328
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
354
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
355
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
329
356
|
# @return [Array<(MavenMavenRepositoryResponse, Integer, Hash)>] MavenMavenRepositoryResponse data, response status code and response headers
|
330
357
|
def read_with_http_info(maven_maven_repository_href, opts = {})
|
331
358
|
if @api_client.config.debugging
|
@@ -340,8 +367,8 @@ module PulpMavenClient
|
|
340
367
|
|
341
368
|
# query parameters
|
342
369
|
query_params = opts[:query_params] || {}
|
343
|
-
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
344
|
-
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
370
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
371
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
345
372
|
|
346
373
|
# header parameters
|
347
374
|
header_params = opts[:header_params] || {}
|
@@ -88,7 +88,7 @@ module PulpMavenClient
|
|
88
88
|
# @option opts [String] :content Content Unit referenced by HREF
|
89
89
|
# @option opts [String] :content__in Content Unit referenced by HREF
|
90
90
|
# @option opts [Integer] :limit Number of results to return per page.
|
91
|
-
# @option opts [Integer] :number
|
91
|
+
# @option opts [Integer] :number Filter results where number matches value
|
92
92
|
# @option opts [Integer] :number__gt Filter results where number is greater than value
|
93
93
|
# @option opts [Integer] :number__gte Filter results where number is greater than or equal to value
|
94
94
|
# @option opts [Integer] :number__lt Filter results where number is less than value
|
@@ -96,14 +96,14 @@ module PulpMavenClient
|
|
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
98
|
# @option opts [Array<String>] :ordering Ordering
|
99
|
-
# @option opts [DateTime] :pulp_created
|
99
|
+
# @option opts [DateTime] :pulp_created Filter results where pulp_created matches value
|
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
|
102
102
|
# @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
|
103
103
|
# @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
104
104
|
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
105
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
106
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
105
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
106
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
107
107
|
# @return [PaginatedRepositoryVersionResponseList]
|
108
108
|
def list(maven_maven_repository_href, opts = {})
|
109
109
|
data, _status_code, _headers = list_with_http_info(maven_maven_repository_href, opts)
|
@@ -117,7 +117,7 @@ module PulpMavenClient
|
|
117
117
|
# @option opts [String] :content Content Unit referenced by HREF
|
118
118
|
# @option opts [String] :content__in Content Unit referenced by HREF
|
119
119
|
# @option opts [Integer] :limit Number of results to return per page.
|
120
|
-
# @option opts [Integer] :number
|
120
|
+
# @option opts [Integer] :number Filter results where number matches value
|
121
121
|
# @option opts [Integer] :number__gt Filter results where number is greater than value
|
122
122
|
# @option opts [Integer] :number__gte Filter results where number is greater than or equal to value
|
123
123
|
# @option opts [Integer] :number__lt Filter results where number is less than value
|
@@ -125,14 +125,14 @@ module PulpMavenClient
|
|
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
127
|
# @option opts [Array<String>] :ordering Ordering
|
128
|
-
# @option opts [DateTime] :pulp_created
|
128
|
+
# @option opts [DateTime] :pulp_created Filter results where pulp_created matches value
|
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
|
131
131
|
# @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
|
132
132
|
# @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
133
133
|
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
134
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
135
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
134
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
135
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
136
136
|
# @return [Array<(PaginatedRepositoryVersionResponseList, Integer, Hash)>] PaginatedRepositoryVersionResponseList data, response status code and response headers
|
137
137
|
def list_with_http_info(maven_maven_repository_href, opts = {})
|
138
138
|
if @api_client.config.debugging
|
@@ -142,7 +142,7 @@ 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 = ["-
|
145
|
+
allowable_values = ["-complete", "-info", "-number", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "complete", "info", "number", "pk", "pulp_created", "pulp_id", "pulp_last_updated"]
|
146
146
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
147
147
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
148
148
|
end
|
@@ -168,8 +168,8 @@ module PulpMavenClient
|
|
168
168
|
query_params[:'pulp_created__lt'] = opts[:'pulp_created__lt'] if !opts[:'pulp_created__lt'].nil?
|
169
169
|
query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
|
170
170
|
query_params[:'pulp_created__range'] = @api_client.build_collection_param(opts[:'pulp_created__range'], :csv) if !opts[:'pulp_created__range'].nil?
|
171
|
-
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
172
|
-
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
171
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
172
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
173
173
|
|
174
174
|
# header parameters
|
175
175
|
header_params = opts[:header_params] || {}
|
@@ -208,8 +208,8 @@ module PulpMavenClient
|
|
208
208
|
# MavenRepositoryVersion represents a single Maven repository version.
|
209
209
|
# @param maven_maven_repository_version_href [String]
|
210
210
|
# @param [Hash] opts the optional parameters
|
211
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
212
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
211
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
212
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
213
213
|
# @return [RepositoryVersionResponse]
|
214
214
|
def read(maven_maven_repository_version_href, opts = {})
|
215
215
|
data, _status_code, _headers = read_with_http_info(maven_maven_repository_version_href, opts)
|
@@ -220,8 +220,8 @@ module PulpMavenClient
|
|
220
220
|
# MavenRepositoryVersion represents a single Maven repository version.
|
221
221
|
# @param maven_maven_repository_version_href [String]
|
222
222
|
# @param [Hash] opts the optional parameters
|
223
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
224
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
223
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
224
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
225
225
|
# @return [Array<(RepositoryVersionResponse, Integer, Hash)>] RepositoryVersionResponse data, response status code and response headers
|
226
226
|
def read_with_http_info(maven_maven_repository_version_href, opts = {})
|
227
227
|
if @api_client.config.debugging
|
@@ -236,8 +236,8 @@ module PulpMavenClient
|
|
236
236
|
|
237
237
|
# query parameters
|
238
238
|
query_params = opts[:query_params] || {}
|
239
|
-
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
240
|
-
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
239
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
240
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
241
241
|
|
242
242
|
# header parameters
|
243
243
|
header_params = opts[:header_params] || {}
|
@@ -154,7 +154,7 @@ module PulpMavenClient
|
|
154
154
|
case value
|
155
155
|
when ::File, ::Tempfile
|
156
156
|
# TODO hardcode to application/octet-stream, need better way to detect content type
|
157
|
-
data[key] = Faraday::
|
157
|
+
data[key] = Faraday::FilePart.new(value.path, 'application/octet-stream', value.path)
|
158
158
|
when ::Array, nil
|
159
159
|
# let Faraday handle Array and nil parameters
|
160
160
|
data[key] = value
|
@@ -49,7 +49,7 @@ module PulpMavenClient
|
|
49
49
|
{
|
50
50
|
:'base_path' => :'String',
|
51
51
|
:'content_guard' => :'String',
|
52
|
-
:'pulp_labels' => :'
|
52
|
+
:'pulp_labels' => :'Hash<String, String>',
|
53
53
|
:'name' => :'String',
|
54
54
|
:'repository' => :'String',
|
55
55
|
:'remote' => :'String'
|
@@ -89,7 +89,9 @@ module PulpMavenClient
|
|
89
89
|
end
|
90
90
|
|
91
91
|
if attributes.key?(:'pulp_labels')
|
92
|
-
|
92
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
93
|
+
self.pulp_labels = value
|
94
|
+
end
|
93
95
|
end
|
94
96
|
|
95
97
|
if attributes.key?(:'name')
|
@@ -63,7 +63,7 @@ module PulpMavenClient
|
|
63
63
|
:'base_path' => :'String',
|
64
64
|
:'base_url' => :'String',
|
65
65
|
:'content_guard' => :'String',
|
66
|
-
:'pulp_labels' => :'
|
66
|
+
:'pulp_labels' => :'Hash<String, String>',
|
67
67
|
:'name' => :'String',
|
68
68
|
:'repository' => :'String',
|
69
69
|
:'remote' => :'String'
|
@@ -115,7 +115,9 @@ module PulpMavenClient
|
|
115
115
|
end
|
116
116
|
|
117
117
|
if attributes.key?(:'pulp_labels')
|
118
|
-
|
118
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
119
|
+
self.pulp_labels = value
|
120
|
+
end
|
119
121
|
end
|
120
122
|
|
121
123
|
if attributes.key?(:'name')
|
@@ -118,7 +118,7 @@ module PulpMavenClient
|
|
118
118
|
:'proxy_password' => :'String',
|
119
119
|
:'username' => :'String',
|
120
120
|
:'password' => :'String',
|
121
|
-
:'pulp_labels' => :'
|
121
|
+
:'pulp_labels' => :'Hash<String, String>',
|
122
122
|
:'download_concurrency' => :'Integer',
|
123
123
|
:'max_retries' => :'Integer',
|
124
124
|
:'policy' => :'PolicyEnum',
|
@@ -212,7 +212,9 @@ module PulpMavenClient
|
|
212
212
|
end
|
213
213
|
|
214
214
|
if attributes.key?(:'pulp_labels')
|
215
|
-
|
215
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
216
|
+
self.pulp_labels = value
|
217
|
+
end
|
216
218
|
end
|
217
219
|
|
218
220
|
if attributes.key?(:'download_concurrency')
|
@@ -70,6 +70,9 @@ module PulpMavenClient
|
|
70
70
|
# Limits requests per second for each concurrent downloader
|
71
71
|
attr_accessor :rate_limit
|
72
72
|
|
73
|
+
# List of hidden (write only) fields
|
74
|
+
attr_accessor :hidden_fields
|
75
|
+
|
73
76
|
# Attribute mapping from ruby-style variable name to JSON key.
|
74
77
|
def self.attribute_map
|
75
78
|
{
|
@@ -91,7 +94,8 @@ module PulpMavenClient
|
|
91
94
|
:'sock_connect_timeout' => :'sock_connect_timeout',
|
92
95
|
:'sock_read_timeout' => :'sock_read_timeout',
|
93
96
|
:'headers' => :'headers',
|
94
|
-
:'rate_limit' => :'rate_limit'
|
97
|
+
:'rate_limit' => :'rate_limit',
|
98
|
+
:'hidden_fields' => :'hidden_fields'
|
95
99
|
}
|
96
100
|
end
|
97
101
|
|
@@ -106,7 +110,7 @@ module PulpMavenClient
|
|
106
110
|
:'client_cert' => :'String',
|
107
111
|
:'tls_validation' => :'Boolean',
|
108
112
|
:'proxy_url' => :'String',
|
109
|
-
:'pulp_labels' => :'
|
113
|
+
:'pulp_labels' => :'Hash<String, String>',
|
110
114
|
:'pulp_last_updated' => :'DateTime',
|
111
115
|
:'download_concurrency' => :'Integer',
|
112
116
|
:'max_retries' => :'Integer',
|
@@ -116,7 +120,8 @@ module PulpMavenClient
|
|
116
120
|
:'sock_connect_timeout' => :'Float',
|
117
121
|
:'sock_read_timeout' => :'Float',
|
118
122
|
:'headers' => :'Array<Object>',
|
119
|
-
:'rate_limit' => :'Integer'
|
123
|
+
:'rate_limit' => :'Integer',
|
124
|
+
:'hidden_fields' => :'Array<MavenMavenRemoteResponseHiddenFields>'
|
120
125
|
}
|
121
126
|
end
|
122
127
|
|
@@ -132,7 +137,7 @@ module PulpMavenClient
|
|
132
137
|
:'connect_timeout',
|
133
138
|
:'sock_connect_timeout',
|
134
139
|
:'sock_read_timeout',
|
135
|
-
:'rate_limit'
|
140
|
+
:'rate_limit',
|
136
141
|
])
|
137
142
|
end
|
138
143
|
|
@@ -184,7 +189,9 @@ module PulpMavenClient
|
|
184
189
|
end
|
185
190
|
|
186
191
|
if attributes.key?(:'pulp_labels')
|
187
|
-
|
192
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
193
|
+
self.pulp_labels = value
|
194
|
+
end
|
188
195
|
end
|
189
196
|
|
190
197
|
if attributes.key?(:'pulp_last_updated')
|
@@ -228,6 +235,12 @@ module PulpMavenClient
|
|
228
235
|
if attributes.key?(:'rate_limit')
|
229
236
|
self.rate_limit = attributes[:'rate_limit']
|
230
237
|
end
|
238
|
+
|
239
|
+
if attributes.key?(:'hidden_fields')
|
240
|
+
if (value = attributes[:'hidden_fields']).is_a?(Array)
|
241
|
+
self.hidden_fields = value
|
242
|
+
end
|
243
|
+
end
|
231
244
|
end
|
232
245
|
|
233
246
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -351,7 +364,8 @@ module PulpMavenClient
|
|
351
364
|
sock_connect_timeout == o.sock_connect_timeout &&
|
352
365
|
sock_read_timeout == o.sock_read_timeout &&
|
353
366
|
headers == o.headers &&
|
354
|
-
rate_limit == o.rate_limit
|
367
|
+
rate_limit == o.rate_limit &&
|
368
|
+
hidden_fields == o.hidden_fields
|
355
369
|
end
|
356
370
|
|
357
371
|
# @see the `==` method
|
@@ -363,7 +377,7 @@ module PulpMavenClient
|
|
363
377
|
# Calculates hash code according to all attributes.
|
364
378
|
# @return [Integer] Hash code
|
365
379
|
def hash
|
366
|
-
[pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, pulp_last_updated, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit].hash
|
380
|
+
[pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, pulp_last_updated, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, hidden_fields].hash
|
367
381
|
end
|
368
382
|
|
369
383
|
# Builds the object from hash
|
@@ -0,0 +1,215 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
Contact: pulp-list@redhat.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module PulpMavenClient
|
16
|
+
class MavenMavenRemoteResponseHiddenFields
|
17
|
+
attr_accessor :name
|
18
|
+
|
19
|
+
attr_accessor :is_set
|
20
|
+
|
21
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
22
|
+
def self.attribute_map
|
23
|
+
{
|
24
|
+
:'name' => :'name',
|
25
|
+
:'is_set' => :'is_set'
|
26
|
+
}
|
27
|
+
end
|
28
|
+
|
29
|
+
# Attribute type mapping.
|
30
|
+
def self.openapi_types
|
31
|
+
{
|
32
|
+
:'name' => :'String',
|
33
|
+
:'is_set' => :'Boolean'
|
34
|
+
}
|
35
|
+
end
|
36
|
+
|
37
|
+
# List of attributes with nullable: true
|
38
|
+
def self.openapi_nullable
|
39
|
+
Set.new([
|
40
|
+
])
|
41
|
+
end
|
42
|
+
|
43
|
+
# Initializes the object
|
44
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
45
|
+
def initialize(attributes = {})
|
46
|
+
if (!attributes.is_a?(Hash))
|
47
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpMavenClient::MavenMavenRemoteResponseHiddenFields` initialize method"
|
48
|
+
end
|
49
|
+
|
50
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
51
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
52
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
53
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpMavenClient::MavenMavenRemoteResponseHiddenFields`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
54
|
+
end
|
55
|
+
h[k.to_sym] = v
|
56
|
+
}
|
57
|
+
|
58
|
+
if attributes.key?(:'name')
|
59
|
+
self.name = attributes[:'name']
|
60
|
+
end
|
61
|
+
|
62
|
+
if attributes.key?(:'is_set')
|
63
|
+
self.is_set = attributes[:'is_set']
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
67
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
68
|
+
# @return Array for valid properties with the reasons
|
69
|
+
def list_invalid_properties
|
70
|
+
invalid_properties = Array.new
|
71
|
+
invalid_properties
|
72
|
+
end
|
73
|
+
|
74
|
+
# Check to see if the all the properties in the model are valid
|
75
|
+
# @return true if the model is valid
|
76
|
+
def valid?
|
77
|
+
true
|
78
|
+
end
|
79
|
+
|
80
|
+
# Checks equality by comparing each attribute.
|
81
|
+
# @param [Object] Object to be compared
|
82
|
+
def ==(o)
|
83
|
+
return true if self.equal?(o)
|
84
|
+
self.class == o.class &&
|
85
|
+
name == o.name &&
|
86
|
+
is_set == o.is_set
|
87
|
+
end
|
88
|
+
|
89
|
+
# @see the `==` method
|
90
|
+
# @param [Object] Object to be compared
|
91
|
+
def eql?(o)
|
92
|
+
self == o
|
93
|
+
end
|
94
|
+
|
95
|
+
# Calculates hash code according to all attributes.
|
96
|
+
# @return [Integer] Hash code
|
97
|
+
def hash
|
98
|
+
[name, is_set].hash
|
99
|
+
end
|
100
|
+
|
101
|
+
# Builds the object from hash
|
102
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
103
|
+
# @return [Object] Returns the model itself
|
104
|
+
def self.build_from_hash(attributes)
|
105
|
+
new.build_from_hash(attributes)
|
106
|
+
end
|
107
|
+
|
108
|
+
# Builds the object from hash
|
109
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
110
|
+
# @return [Object] Returns the model itself
|
111
|
+
def build_from_hash(attributes)
|
112
|
+
return nil unless attributes.is_a?(Hash)
|
113
|
+
self.class.openapi_types.each_pair do |key, type|
|
114
|
+
if type =~ /\AArray<(.*)>/i
|
115
|
+
# check to ensure the input is an array given that the attribute
|
116
|
+
# is documented as an array but the input is not
|
117
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
118
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
119
|
+
end
|
120
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
121
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
122
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
123
|
+
end
|
124
|
+
|
125
|
+
self
|
126
|
+
end
|
127
|
+
|
128
|
+
# Deserializes the data based on type
|
129
|
+
# @param string type Data type
|
130
|
+
# @param string value Value to be deserialized
|
131
|
+
# @return [Object] Deserialized data
|
132
|
+
def _deserialize(type, value)
|
133
|
+
case type.to_sym
|
134
|
+
when :DateTime
|
135
|
+
DateTime.parse(value)
|
136
|
+
when :Date
|
137
|
+
Date.parse(value)
|
138
|
+
when :String
|
139
|
+
value.to_s
|
140
|
+
when :Integer
|
141
|
+
value.to_i
|
142
|
+
when :Float
|
143
|
+
value.to_f
|
144
|
+
when :Boolean
|
145
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
146
|
+
true
|
147
|
+
else
|
148
|
+
false
|
149
|
+
end
|
150
|
+
when :Object
|
151
|
+
# generic object (usually a Hash), return directly
|
152
|
+
value
|
153
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
154
|
+
inner_type = Regexp.last_match[:inner_type]
|
155
|
+
value.map { |v| _deserialize(inner_type, v) }
|
156
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
157
|
+
k_type = Regexp.last_match[:k_type]
|
158
|
+
v_type = Regexp.last_match[:v_type]
|
159
|
+
{}.tap do |hash|
|
160
|
+
value.each do |k, v|
|
161
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
162
|
+
end
|
163
|
+
end
|
164
|
+
else # model
|
165
|
+
PulpMavenClient.const_get(type).build_from_hash(value)
|
166
|
+
end
|
167
|
+
end
|
168
|
+
|
169
|
+
# Returns the string representation of the object
|
170
|
+
# @return [String] String presentation of the object
|
171
|
+
def to_s
|
172
|
+
to_hash.to_s
|
173
|
+
end
|
174
|
+
|
175
|
+
# to_body is an alias to to_hash (backward compatibility)
|
176
|
+
# @return [Hash] Returns the object in the form of hash
|
177
|
+
def to_body
|
178
|
+
to_hash
|
179
|
+
end
|
180
|
+
|
181
|
+
# Returns the object in the form of hash
|
182
|
+
# @return [Hash] Returns the object in the form of hash
|
183
|
+
def to_hash
|
184
|
+
hash = {}
|
185
|
+
self.class.attribute_map.each_pair do |attr, param|
|
186
|
+
value = self.send(attr)
|
187
|
+
if value.nil?
|
188
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
189
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
190
|
+
end
|
191
|
+
|
192
|
+
hash[param] = _to_hash(value)
|
193
|
+
end
|
194
|
+
hash
|
195
|
+
end
|
196
|
+
|
197
|
+
# Outputs non-array value in the form of hash
|
198
|
+
# For object, use to_hash. Otherwise, just return the value
|
199
|
+
# @param [Object] value Any valid value
|
200
|
+
# @return [Hash] Returns the value in the form of hash
|
201
|
+
def _to_hash(value)
|
202
|
+
if value.is_a?(Array)
|
203
|
+
value.compact.map { |v| _to_hash(v) }
|
204
|
+
elsif value.is_a?(Hash)
|
205
|
+
{}.tap do |hash|
|
206
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
207
|
+
end
|
208
|
+
elsif value.respond_to? :to_hash
|
209
|
+
value.to_hash
|
210
|
+
else
|
211
|
+
value
|
212
|
+
end
|
213
|
+
end
|
214
|
+
end
|
215
|
+
end
|
@@ -23,7 +23,7 @@ module PulpMavenClient
|
|
23
23
|
# An optional description.
|
24
24
|
attr_accessor :description
|
25
25
|
|
26
|
-
# Retain X versions of the repository. Default is null which retains all versions.
|
26
|
+
# Retain X versions of the repository. Default is null which retains all versions.
|
27
27
|
attr_accessor :retain_repo_versions
|
28
28
|
|
29
29
|
# An optional remote to use by default when syncing.
|
@@ -43,7 +43,7 @@ module PulpMavenClient
|
|
43
43
|
# Attribute type mapping.
|
44
44
|
def self.openapi_types
|
45
45
|
{
|
46
|
-
:'pulp_labels' => :'
|
46
|
+
:'pulp_labels' => :'Hash<String, String>',
|
47
47
|
:'name' => :'String',
|
48
48
|
:'description' => :'String',
|
49
49
|
:'retain_repo_versions' => :'Integer',
|
@@ -76,7 +76,9 @@ module PulpMavenClient
|
|
76
76
|
}
|
77
77
|
|
78
78
|
if attributes.key?(:'pulp_labels')
|
79
|
-
|
79
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
80
|
+
self.pulp_labels = value
|
81
|
+
end
|
80
82
|
end
|
81
83
|
|
82
84
|
if attributes.key?(:'name')
|