swaggy_jenkins 3.0.1 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +23 -21
- data/README.md +6 -6
- data/bin/bundle +1 -1
- data/bin/byebug +1 -1
- data/bin/coderay +1 -1
- data/bin/htmldiff +1 -1
- data/bin/ldiff +1 -1
- data/bin/pry +1 -1
- data/bin/racc +1 -1
- data/bin/rake +1 -1
- data/bin/rspec +1 -1
- data/bin/rubocop +1 -1
- data/bin/ruby-parse +1 -1
- data/bin/ruby-rewrite +1 -1
- data/lib/swaggy_jenkins/api/base_api.rb +3 -3
- data/lib/swaggy_jenkins/api/blue_ocean_api.rb +38 -38
- data/lib/swaggy_jenkins/api/remote_access_api.rb +15 -15
- data/lib/swaggy_jenkins/api_client.rb +11 -12
- data/lib/swaggy_jenkins/api_error.rb +2 -2
- data/lib/swaggy_jenkins/configuration.rb +13 -3
- data/lib/swaggy_jenkins/models/all_view.rb +11 -5
- data/lib/swaggy_jenkins/models/branch_impl.rb +11 -5
- data/lib/swaggy_jenkins/models/branch_impllinks.rb +11 -5
- data/lib/swaggy_jenkins/models/branch_implpermissions.rb +11 -5
- data/lib/swaggy_jenkins/models/cause_action.rb +11 -5
- data/lib/swaggy_jenkins/models/cause_user_id_cause.rb +11 -5
- data/lib/swaggy_jenkins/models/classes_by_class.rb +11 -5
- data/lib/swaggy_jenkins/models/clock_difference.rb +11 -5
- data/lib/swaggy_jenkins/models/computer_set.rb +11 -5
- data/lib/swaggy_jenkins/models/default_crumb_issuer.rb +11 -5
- data/lib/swaggy_jenkins/models/disk_space_monitor_descriptor_disk_space.rb +11 -5
- data/lib/swaggy_jenkins/models/empty_change_log_set.rb +11 -5
- data/lib/swaggy_jenkins/models/extension_class_container_impl1.rb +11 -5
- data/lib/swaggy_jenkins/models/extension_class_container_impl1links.rb +11 -5
- data/lib/swaggy_jenkins/models/extension_class_container_impl1map.rb +11 -5
- data/lib/swaggy_jenkins/models/extension_class_impl.rb +11 -5
- data/lib/swaggy_jenkins/models/extension_class_impllinks.rb +11 -5
- data/lib/swaggy_jenkins/models/favorite_impl.rb +11 -5
- data/lib/swaggy_jenkins/models/favorite_impllinks.rb +11 -5
- data/lib/swaggy_jenkins/models/free_style_build.rb +11 -5
- data/lib/swaggy_jenkins/models/free_style_project.rb +11 -5
- data/lib/swaggy_jenkins/models/free_style_projectactions.rb +11 -5
- data/lib/swaggy_jenkins/models/free_style_projecthealth_report.rb +11 -5
- data/lib/swaggy_jenkins/models/generic_resource.rb +11 -5
- data/lib/swaggy_jenkins/models/github_content.rb +11 -5
- data/lib/swaggy_jenkins/models/github_file.rb +11 -5
- data/lib/swaggy_jenkins/models/github_organization.rb +11 -5
- data/lib/swaggy_jenkins/models/github_organizationlinks.rb +11 -5
- data/lib/swaggy_jenkins/models/github_repositories.rb +11 -5
- data/lib/swaggy_jenkins/models/github_repositorieslinks.rb +11 -5
- data/lib/swaggy_jenkins/models/github_repository.rb +11 -5
- data/lib/swaggy_jenkins/models/github_repositorylinks.rb +11 -5
- data/lib/swaggy_jenkins/models/github_repositorypermissions.rb +11 -5
- data/lib/swaggy_jenkins/models/github_respository_container.rb +11 -5
- data/lib/swaggy_jenkins/models/github_respository_containerlinks.rb +11 -5
- data/lib/swaggy_jenkins/models/github_scm.rb +11 -5
- data/lib/swaggy_jenkins/models/github_scmlinks.rb +11 -5
- data/lib/swaggy_jenkins/models/hudson.rb +11 -5
- data/lib/swaggy_jenkins/models/hudson_master_computer.rb +11 -5
- data/lib/swaggy_jenkins/models/hudson_master_computerexecutors.rb +11 -5
- data/lib/swaggy_jenkins/models/hudson_master_computermonitor_data.rb +11 -5
- data/lib/swaggy_jenkins/models/hudsonassigned_labels.rb +11 -5
- data/lib/swaggy_jenkins/models/input_step_impl.rb +11 -5
- data/lib/swaggy_jenkins/models/input_step_impllinks.rb +11 -5
- data/lib/swaggy_jenkins/models/label1.rb +11 -5
- data/lib/swaggy_jenkins/models/link.rb +11 -5
- data/lib/swaggy_jenkins/models/list_view.rb +11 -5
- data/lib/swaggy_jenkins/models/multibranch_pipeline.rb +11 -5
- data/lib/swaggy_jenkins/models/null_scm.rb +11 -5
- data/lib/swaggy_jenkins/models/organisation.rb +11 -5
- data/lib/swaggy_jenkins/models/pipeline.rb +11 -5
- data/lib/swaggy_jenkins/models/pipeline_activity.rb +11 -5
- data/lib/swaggy_jenkins/models/pipeline_activityartifacts.rb +11 -5
- data/lib/swaggy_jenkins/models/pipeline_branchesitem.rb +11 -5
- data/lib/swaggy_jenkins/models/pipeline_branchesitemlatest_run.rb +11 -5
- data/lib/swaggy_jenkins/models/pipeline_branchesitempull_request.rb +11 -5
- data/lib/swaggy_jenkins/models/pipeline_branchesitempull_requestlinks.rb +11 -5
- data/lib/swaggy_jenkins/models/pipeline_folder_impl.rb +11 -5
- data/lib/swaggy_jenkins/models/pipeline_impl.rb +11 -5
- data/lib/swaggy_jenkins/models/pipeline_impllinks.rb +11 -5
- data/lib/swaggy_jenkins/models/pipeline_run.rb +11 -5
- data/lib/swaggy_jenkins/models/pipeline_run_impl.rb +11 -5
- data/lib/swaggy_jenkins/models/pipeline_run_impllinks.rb +11 -5
- data/lib/swaggy_jenkins/models/pipeline_run_node.rb +11 -5
- data/lib/swaggy_jenkins/models/pipeline_run_nodeedges.rb +11 -5
- data/lib/swaggy_jenkins/models/pipeline_runartifacts.rb +11 -5
- data/lib/swaggy_jenkins/models/pipeline_step_impl.rb +11 -5
- data/lib/swaggy_jenkins/models/pipeline_step_impllinks.rb +11 -5
- data/lib/swaggy_jenkins/models/pipelinelatest_run.rb +11 -5
- data/lib/swaggy_jenkins/models/pipelinelatest_runartifacts.rb +11 -5
- data/lib/swaggy_jenkins/models/queue.rb +11 -5
- data/lib/swaggy_jenkins/models/queue_blocked_item.rb +11 -5
- data/lib/swaggy_jenkins/models/queue_item_impl.rb +11 -5
- data/lib/swaggy_jenkins/models/queue_left_item.rb +11 -5
- data/lib/swaggy_jenkins/models/response_time_monitor_data.rb +11 -5
- data/lib/swaggy_jenkins/models/string_parameter_definition.rb +11 -5
- data/lib/swaggy_jenkins/models/string_parameter_value.rb +11 -5
- data/lib/swaggy_jenkins/models/swap_space_monitor_memory_usage2.rb +11 -5
- data/lib/swaggy_jenkins/models/unlabeled_load_statistics.rb +11 -5
- data/lib/swaggy_jenkins/models/user.rb +11 -5
- data/lib/swaggy_jenkins/version.rb +3 -3
- data/lib/swaggy_jenkins.rb +2 -2
- data/spec/api/base_api_spec.rb +2 -2
- data/spec/api/blue_ocean_api_spec.rb +2 -2
- data/spec/api/remote_access_api_spec.rb +2 -2
- data/spec/models/all_view_spec.rb +2 -2
- data/spec/models/branch_impl_spec.rb +2 -2
- data/spec/models/branch_impllinks_spec.rb +2 -2
- data/spec/models/branch_implpermissions_spec.rb +2 -2
- data/spec/models/cause_action_spec.rb +2 -2
- data/spec/models/cause_user_id_cause_spec.rb +2 -2
- data/spec/models/classes_by_class_spec.rb +2 -2
- data/spec/models/clock_difference_spec.rb +2 -2
- data/spec/models/computer_set_spec.rb +2 -2
- data/spec/models/default_crumb_issuer_spec.rb +2 -2
- data/spec/models/disk_space_monitor_descriptor_disk_space_spec.rb +2 -2
- data/spec/models/empty_change_log_set_spec.rb +2 -2
- data/spec/models/extension_class_container_impl1_spec.rb +2 -2
- data/spec/models/extension_class_container_impl1links_spec.rb +2 -2
- data/spec/models/extension_class_container_impl1map_spec.rb +2 -2
- data/spec/models/extension_class_impl_spec.rb +2 -2
- data/spec/models/extension_class_impllinks_spec.rb +2 -2
- data/spec/models/favorite_impl_spec.rb +2 -2
- data/spec/models/favorite_impllinks_spec.rb +2 -2
- data/spec/models/free_style_build_spec.rb +2 -2
- data/spec/models/free_style_project_spec.rb +2 -2
- data/spec/models/free_style_projectactions_spec.rb +2 -2
- data/spec/models/free_style_projecthealth_report_spec.rb +2 -2
- data/spec/models/generic_resource_spec.rb +2 -2
- data/spec/models/github_content_spec.rb +2 -2
- data/spec/models/github_file_spec.rb +2 -2
- data/spec/models/github_organization_spec.rb +2 -2
- data/spec/models/github_organizationlinks_spec.rb +2 -2
- data/spec/models/github_repositories_spec.rb +2 -2
- data/spec/models/github_repositorieslinks_spec.rb +2 -2
- data/spec/models/github_repository_spec.rb +2 -2
- data/spec/models/github_repositorylinks_spec.rb +2 -2
- data/spec/models/github_repositorypermissions_spec.rb +2 -2
- data/spec/models/github_respository_container_spec.rb +2 -2
- data/spec/models/github_respository_containerlinks_spec.rb +2 -2
- data/spec/models/github_scm_spec.rb +2 -2
- data/spec/models/github_scmlinks_spec.rb +2 -2
- data/spec/models/hudson_master_computer_spec.rb +2 -2
- data/spec/models/hudson_master_computerexecutors_spec.rb +2 -2
- data/spec/models/hudson_master_computermonitor_data_spec.rb +2 -2
- data/spec/models/hudson_spec.rb +2 -2
- data/spec/models/hudsonassigned_labels_spec.rb +2 -2
- data/spec/models/input_step_impl_spec.rb +2 -2
- data/spec/models/input_step_impllinks_spec.rb +2 -2
- data/spec/models/label1_spec.rb +2 -2
- data/spec/models/link_spec.rb +2 -2
- data/spec/models/list_view_spec.rb +2 -2
- data/spec/models/multibranch_pipeline_spec.rb +2 -2
- data/spec/models/null_scm_spec.rb +2 -2
- data/spec/models/organisation_spec.rb +2 -2
- data/spec/models/pipeline_activity_spec.rb +2 -2
- data/spec/models/pipeline_activityartifacts_spec.rb +2 -2
- data/spec/models/pipeline_branchesitem_spec.rb +2 -2
- data/spec/models/pipeline_branchesitemlatest_run_spec.rb +2 -2
- data/spec/models/pipeline_branchesitempull_request_spec.rb +2 -2
- data/spec/models/pipeline_branchesitempull_requestlinks_spec.rb +2 -2
- data/spec/models/pipeline_folder_impl_spec.rb +2 -2
- data/spec/models/pipeline_impl_spec.rb +2 -2
- data/spec/models/pipeline_impllinks_spec.rb +2 -2
- data/spec/models/pipeline_run_impl_spec.rb +2 -2
- data/spec/models/pipeline_run_impllinks_spec.rb +2 -2
- data/spec/models/pipeline_run_node_spec.rb +2 -2
- data/spec/models/pipeline_run_nodeedges_spec.rb +2 -2
- data/spec/models/pipeline_run_spec.rb +2 -2
- data/spec/models/pipeline_runartifacts_spec.rb +2 -2
- data/spec/models/pipeline_spec.rb +2 -2
- data/spec/models/pipeline_step_impl_spec.rb +2 -2
- data/spec/models/pipeline_step_impllinks_spec.rb +2 -2
- data/spec/models/pipelinelatest_run_spec.rb +2 -2
- data/spec/models/pipelinelatest_runartifacts_spec.rb +2 -2
- data/spec/models/queue_blocked_item_spec.rb +2 -2
- data/spec/models/queue_item_impl_spec.rb +2 -2
- data/spec/models/queue_left_item_spec.rb +2 -2
- data/spec/models/queue_spec.rb +2 -2
- data/spec/models/response_time_monitor_data_spec.rb +2 -2
- data/spec/models/string_parameter_definition_spec.rb +2 -2
- data/spec/models/string_parameter_value_spec.rb +2 -2
- data/spec/models/swap_space_monitor_memory_usage2_spec.rb +2 -2
- data/spec/models/unlabeled_load_statistics_spec.rb +2 -2
- data/spec/models/user_spec.rb +2 -2
- data/spec/spec_helper.rb +2 -2
- data/swaggy_jenkins.gemspec +2 -2
- metadata +72 -72
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#Jenkins API clients generated from Swagger / Open API specification
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 3.0
|
6
|
+
The version of the OpenAPI document: 3.1.0
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.12.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -50,7 +50,7 @@ module SwaggyJenkinsClient
|
|
50
50
|
# header parameters
|
51
51
|
header_params = opts[:header_params] || {}
|
52
52
|
# HTTP header 'Accept' (if needed)
|
53
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
53
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
54
54
|
|
55
55
|
# form parameters
|
56
56
|
form_params = opts[:form_params] || {}
|
@@ -105,7 +105,7 @@ module SwaggyJenkinsClient
|
|
105
105
|
# header parameters
|
106
106
|
header_params = opts[:header_params] || {}
|
107
107
|
# HTTP header 'Accept' (if needed)
|
108
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
108
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
109
109
|
|
110
110
|
# form parameters
|
111
111
|
form_params = opts[:form_params] || {}
|
@@ -166,7 +166,7 @@ module SwaggyJenkinsClient
|
|
166
166
|
# header parameters
|
167
167
|
header_params = opts[:header_params] || {}
|
168
168
|
# HTTP header 'Accept' (if needed)
|
169
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
169
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
170
170
|
|
171
171
|
# form parameters
|
172
172
|
form_params = opts[:form_params] || {}
|
@@ -227,7 +227,7 @@ module SwaggyJenkinsClient
|
|
227
227
|
# header parameters
|
228
228
|
header_params = opts[:header_params] || {}
|
229
229
|
# HTTP header 'Accept' (if needed)
|
230
|
-
header_params['Accept'] = @api_client.select_header_accept(['text/xml'])
|
230
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/xml']) unless header_params['Accept']
|
231
231
|
|
232
232
|
# form parameters
|
233
233
|
form_params = opts[:form_params] || {}
|
@@ -288,7 +288,7 @@ module SwaggyJenkinsClient
|
|
288
288
|
# header parameters
|
289
289
|
header_params = opts[:header_params] || {}
|
290
290
|
# HTTP header 'Accept' (if needed)
|
291
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
291
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
292
292
|
|
293
293
|
# form parameters
|
294
294
|
form_params = opts[:form_params] || {}
|
@@ -415,7 +415,7 @@ module SwaggyJenkinsClient
|
|
415
415
|
# header parameters
|
416
416
|
header_params = opts[:header_params] || {}
|
417
417
|
# HTTP header 'Accept' (if needed)
|
418
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
418
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
419
419
|
|
420
420
|
# form parameters
|
421
421
|
form_params = opts[:form_params] || {}
|
@@ -476,7 +476,7 @@ module SwaggyJenkinsClient
|
|
476
476
|
# header parameters
|
477
477
|
header_params = opts[:header_params] || {}
|
478
478
|
# HTTP header 'Accept' (if needed)
|
479
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
479
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
480
480
|
|
481
481
|
# form parameters
|
482
482
|
form_params = opts[:form_params] || {}
|
@@ -537,7 +537,7 @@ module SwaggyJenkinsClient
|
|
537
537
|
# header parameters
|
538
538
|
header_params = opts[:header_params] || {}
|
539
539
|
# HTTP header 'Accept' (if needed)
|
540
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
540
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
541
541
|
|
542
542
|
# form parameters
|
543
543
|
form_params = opts[:form_params] || {}
|
@@ -598,7 +598,7 @@ module SwaggyJenkinsClient
|
|
598
598
|
# header parameters
|
599
599
|
header_params = opts[:header_params] || {}
|
600
600
|
# HTTP header 'Accept' (if needed)
|
601
|
-
header_params['Accept'] = @api_client.select_header_accept(['text/xml'])
|
601
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/xml']) unless header_params['Accept']
|
602
602
|
|
603
603
|
# form parameters
|
604
604
|
form_params = opts[:form_params] || {}
|
@@ -725,7 +725,7 @@ module SwaggyJenkinsClient
|
|
725
725
|
# header parameters
|
726
726
|
header_params = opts[:header_params] || {}
|
727
727
|
# HTTP header 'Accept' (if needed)
|
728
|
-
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
728
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*']) unless header_params['Accept']
|
729
729
|
# HTTP header 'Content-Type'
|
730
730
|
content_type = @api_client.select_header_content_type(['application/json'])
|
731
731
|
if !content_type.nil?
|
@@ -800,7 +800,7 @@ module SwaggyJenkinsClient
|
|
800
800
|
# header parameters
|
801
801
|
header_params = opts[:header_params] || {}
|
802
802
|
# HTTP header 'Accept' (if needed)
|
803
|
-
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
803
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*']) unless header_params['Accept']
|
804
804
|
# HTTP header 'Content-Type'
|
805
805
|
content_type = @api_client.select_header_content_type(['application/json'])
|
806
806
|
if !content_type.nil?
|
@@ -948,7 +948,7 @@ module SwaggyJenkinsClient
|
|
948
948
|
# header parameters
|
949
949
|
header_params = opts[:header_params] || {}
|
950
950
|
# HTTP header 'Accept' (if needed)
|
951
|
-
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
951
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*']) unless header_params['Accept']
|
952
952
|
# HTTP header 'Content-Type'
|
953
953
|
content_type = @api_client.select_header_content_type(['application/json'])
|
954
954
|
if !content_type.nil?
|
@@ -1271,7 +1271,7 @@ module SwaggyJenkinsClient
|
|
1271
1271
|
# header parameters
|
1272
1272
|
header_params = opts[:header_params] || {}
|
1273
1273
|
# HTTP header 'Accept' (if needed)
|
1274
|
-
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
1274
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*']) unless header_params['Accept']
|
1275
1275
|
# HTTP header 'Content-Type'
|
1276
1276
|
content_type = @api_client.select_header_content_type(['application/json'])
|
1277
1277
|
if !content_type.nil?
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#Jenkins API clients generated from Swagger / Open API specification
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 3.0
|
6
|
+
The version of the OpenAPI document: 3.1.0
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.12.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -49,7 +49,8 @@ module SwaggyJenkinsClient
|
|
49
49
|
# the data deserialized from response body (may be a Tempfile or nil), response status code and response headers.
|
50
50
|
def call_api(http_method, path, opts = {})
|
51
51
|
request = build_request(http_method, path, opts)
|
52
|
-
tempfile =
|
52
|
+
tempfile = nil
|
53
|
+
(download_file(request) { tempfile = _1 }) if opts[:return_type] == 'File'
|
53
54
|
response = request.run
|
54
55
|
|
55
56
|
if @config.debugging
|
@@ -188,19 +189,17 @@ module SwaggyJenkinsClient
|
|
188
189
|
chunk.force_encoding(encoding)
|
189
190
|
tempfile.write(chunk)
|
190
191
|
end
|
191
|
-
|
192
|
-
|
193
|
-
|
192
|
+
request.on_complete do
|
193
|
+
if !tempfile
|
194
|
+
fail ApiError.new("Failed to create the tempfile based on the HTTP response from the server: #{request.inspect}")
|
195
|
+
end
|
194
196
|
tempfile.close
|
195
197
|
@config.logger.info "Temp file written to #{tempfile.path}, please copy the file to a proper folder "\
|
196
198
|
"with e.g. `FileUtils.cp(tempfile.path, '/new/file/path')` otherwise the temp file "\
|
197
199
|
"will be deleted automatically with GC. It's also recommended to delete the temp file "\
|
198
200
|
"explicitly with `tempfile.delete`"
|
199
|
-
|
200
|
-
fail ApiError.new("Failed to create the tempfile based on the HTTP response from the server: #{request.inspect}")
|
201
|
+
yield tempfile if block_given?
|
201
202
|
end
|
202
|
-
|
203
|
-
tempfile
|
204
203
|
end
|
205
204
|
|
206
205
|
# Check if the given MIME is a JSON MIME.
|
@@ -212,7 +211,7 @@ module SwaggyJenkinsClient
|
|
212
211
|
# @param [String] mime MIME
|
213
212
|
# @return [Boolean] True if the MIME is application/json
|
214
213
|
def json_mime?(mime)
|
215
|
-
(mime == '*/*') || !(mime =~
|
214
|
+
(mime == '*/*') || !(mime =~ /^Application\/.*json(?!p)(;.*)?/i).nil?
|
216
215
|
end
|
217
216
|
|
218
217
|
# Deserialize the response to the given return type.
|
@@ -291,7 +290,7 @@ module SwaggyJenkinsClient
|
|
291
290
|
# @param [String] filename the filename to be sanitized
|
292
291
|
# @return [String] the sanitized filename
|
293
292
|
def sanitize_filename(filename)
|
294
|
-
filename.
|
293
|
+
filename.split(/[\/\\]/).last
|
295
294
|
end
|
296
295
|
|
297
296
|
def build_request_url(path, opts = {})
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#Jenkins API clients generated from Swagger / Open API specification
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 3.0
|
6
|
+
The version of the OpenAPI document: 3.1.0
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.12.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#Jenkins API clients generated from Swagger / Open API specification
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 3.0
|
6
|
+
The version of the OpenAPI document: 3.1.0
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.12.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -79,6 +79,14 @@ module SwaggyJenkinsClient
|
|
79
79
|
# @return [true, false]
|
80
80
|
attr_accessor :debugging
|
81
81
|
|
82
|
+
# Set this to ignore operation servers for the API client. This is useful when you need to
|
83
|
+
# send requests to a different server than the one specified in the OpenAPI document.
|
84
|
+
# Will default to the base url defined in the spec but can be overridden by setting
|
85
|
+
# `scheme`, `host`, `base_path` directly.
|
86
|
+
# Default to false.
|
87
|
+
# @return [true, false]
|
88
|
+
attr_accessor :ignore_operation_servers
|
89
|
+
|
82
90
|
# Defines the logger used for debugging.
|
83
91
|
# Default to `Rails.logger` (when in Rails) or logging to STDOUT.
|
84
92
|
#
|
@@ -166,6 +174,7 @@ module SwaggyJenkinsClient
|
|
166
174
|
@timeout = 0
|
167
175
|
@params_encoding = nil
|
168
176
|
@debugging = false
|
177
|
+
@ignore_operation_servers = false
|
169
178
|
@inject_format = false
|
170
179
|
@force_ending_format = false
|
171
180
|
@logger = defined?(Rails) ? Rails.logger : Logger.new(STDOUT)
|
@@ -200,6 +209,7 @@ module SwaggyJenkinsClient
|
|
200
209
|
|
201
210
|
# Returns base URL for specified operation based on server settings
|
202
211
|
def base_url(operation = nil)
|
212
|
+
return "#{scheme}://#{[host, base_path].join('/').gsub(/\/+/, '/')}".sub(/\/+\z/, '') if ignore_operation_servers
|
203
213
|
if operation_server_settings.key?(operation) then
|
204
214
|
index = server_operation_index.fetch(operation, server_index)
|
205
215
|
server_url(index.nil? ? 0 : index, server_operation_variables.fetch(operation, server_variables), operation_server_settings[operation])
|
@@ -246,7 +256,7 @@ module SwaggyJenkinsClient
|
|
246
256
|
type: 'api_key',
|
247
257
|
in: 'header',
|
248
258
|
key: 'Authorization',
|
249
|
-
value: api_key_with_prefix('
|
259
|
+
value: api_key_with_prefix('Authorization')
|
250
260
|
},
|
251
261
|
}
|
252
262
|
end
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#Jenkins API clients generated from Swagger / Open API specification
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 3.0
|
6
|
+
The version of the OpenAPI document: 3.1.0
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.12.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -30,9 +30,14 @@ module SwaggyJenkinsClient
|
|
30
30
|
}
|
31
31
|
end
|
32
32
|
|
33
|
+
# Returns attribute mapping this model knows about
|
34
|
+
def self.acceptable_attribute_map
|
35
|
+
attribute_map
|
36
|
+
end
|
37
|
+
|
33
38
|
# Returns all the JSON keys this model knows about
|
34
39
|
def self.acceptable_attributes
|
35
|
-
|
40
|
+
acceptable_attribute_map.values
|
36
41
|
end
|
37
42
|
|
38
43
|
# Attribute type mapping.
|
@@ -58,9 +63,10 @@ module SwaggyJenkinsClient
|
|
58
63
|
end
|
59
64
|
|
60
65
|
# check to see if the attribute exists and convert string to symbol for hash key
|
66
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
61
67
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
62
|
-
if (!
|
63
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `SwaggyJenkinsClient::AllView`. Please check the name to make sure it's valid. List of attributes: " +
|
68
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
69
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SwaggyJenkinsClient::AllView`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
64
70
|
end
|
65
71
|
h[k.to_sym] = v
|
66
72
|
}
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#Jenkins API clients generated from Swagger / Open API specification
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 3.0
|
6
|
+
The version of the OpenAPI document: 3.1.0
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.12.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -60,9 +60,14 @@ module SwaggyJenkinsClient
|
|
60
60
|
}
|
61
61
|
end
|
62
62
|
|
63
|
+
# Returns attribute mapping this model knows about
|
64
|
+
def self.acceptable_attribute_map
|
65
|
+
attribute_map
|
66
|
+
end
|
67
|
+
|
63
68
|
# Returns all the JSON keys this model knows about
|
64
69
|
def self.acceptable_attributes
|
65
|
-
|
70
|
+
acceptable_attribute_map.values
|
66
71
|
end
|
67
72
|
|
68
73
|
# Attribute type mapping.
|
@@ -98,9 +103,10 @@ module SwaggyJenkinsClient
|
|
98
103
|
end
|
99
104
|
|
100
105
|
# check to see if the attribute exists and convert string to symbol for hash key
|
106
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
101
107
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
102
|
-
if (!
|
103
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `SwaggyJenkinsClient::BranchImpl`. Please check the name to make sure it's valid. List of attributes: " +
|
108
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
109
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SwaggyJenkinsClient::BranchImpl`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
104
110
|
end
|
105
111
|
h[k.to_sym] = v
|
106
112
|
}
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#Jenkins API clients generated from Swagger / Open API specification
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 3.0
|
6
|
+
The version of the OpenAPI document: 3.1.0
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.12.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -36,9 +36,14 @@ module SwaggyJenkinsClient
|
|
36
36
|
}
|
37
37
|
end
|
38
38
|
|
39
|
+
# Returns attribute mapping this model knows about
|
40
|
+
def self.acceptable_attribute_map
|
41
|
+
attribute_map
|
42
|
+
end
|
43
|
+
|
39
44
|
# Returns all the JSON keys this model knows about
|
40
45
|
def self.acceptable_attributes
|
41
|
-
|
46
|
+
acceptable_attribute_map.values
|
42
47
|
end
|
43
48
|
|
44
49
|
# Attribute type mapping.
|
@@ -66,9 +71,10 @@ module SwaggyJenkinsClient
|
|
66
71
|
end
|
67
72
|
|
68
73
|
# check to see if the attribute exists and convert string to symbol for hash key
|
74
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
69
75
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
70
|
-
if (!
|
71
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `SwaggyJenkinsClient::BranchImpllinks`. Please check the name to make sure it's valid. List of attributes: " +
|
76
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
77
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SwaggyJenkinsClient::BranchImpllinks`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
72
78
|
end
|
73
79
|
h[k.to_sym] = v
|
74
80
|
}
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#Jenkins API clients generated from Swagger / Open API specification
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 3.0
|
6
|
+
The version of the OpenAPI document: 3.1.0
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.12.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -36,9 +36,14 @@ module SwaggyJenkinsClient
|
|
36
36
|
}
|
37
37
|
end
|
38
38
|
|
39
|
+
# Returns attribute mapping this model knows about
|
40
|
+
def self.acceptable_attribute_map
|
41
|
+
attribute_map
|
42
|
+
end
|
43
|
+
|
39
44
|
# Returns all the JSON keys this model knows about
|
40
45
|
def self.acceptable_attributes
|
41
|
-
|
46
|
+
acceptable_attribute_map.values
|
42
47
|
end
|
43
48
|
|
44
49
|
# Attribute type mapping.
|
@@ -66,9 +71,10 @@ module SwaggyJenkinsClient
|
|
66
71
|
end
|
67
72
|
|
68
73
|
# check to see if the attribute exists and convert string to symbol for hash key
|
74
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
69
75
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
70
|
-
if (!
|
71
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `SwaggyJenkinsClient::BranchImplpermissions`. Please check the name to make sure it's valid. List of attributes: " +
|
76
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
77
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SwaggyJenkinsClient::BranchImplpermissions`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
72
78
|
end
|
73
79
|
h[k.to_sym] = v
|
74
80
|
}
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#Jenkins API clients generated from Swagger / Open API specification
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 3.0
|
6
|
+
The version of the OpenAPI document: 3.1.0
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.12.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -27,9 +27,14 @@ module SwaggyJenkinsClient
|
|
27
27
|
}
|
28
28
|
end
|
29
29
|
|
30
|
+
# Returns attribute mapping this model knows about
|
31
|
+
def self.acceptable_attribute_map
|
32
|
+
attribute_map
|
33
|
+
end
|
34
|
+
|
30
35
|
# Returns all the JSON keys this model knows about
|
31
36
|
def self.acceptable_attributes
|
32
|
-
|
37
|
+
acceptable_attribute_map.values
|
33
38
|
end
|
34
39
|
|
35
40
|
# Attribute type mapping.
|
@@ -54,9 +59,10 @@ module SwaggyJenkinsClient
|
|
54
59
|
end
|
55
60
|
|
56
61
|
# check to see if the attribute exists and convert string to symbol for hash key
|
62
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
57
63
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
58
|
-
if (!
|
59
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `SwaggyJenkinsClient::CauseAction`. Please check the name to make sure it's valid. List of attributes: " +
|
64
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
65
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SwaggyJenkinsClient::CauseAction`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
60
66
|
end
|
61
67
|
h[k.to_sym] = v
|
62
68
|
}
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#Jenkins API clients generated from Swagger / Open API specification
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 3.0
|
6
|
+
The version of the OpenAPI document: 3.1.0
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.12.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -33,9 +33,14 @@ module SwaggyJenkinsClient
|
|
33
33
|
}
|
34
34
|
end
|
35
35
|
|
36
|
+
# Returns attribute mapping this model knows about
|
37
|
+
def self.acceptable_attribute_map
|
38
|
+
attribute_map
|
39
|
+
end
|
40
|
+
|
36
41
|
# Returns all the JSON keys this model knows about
|
37
42
|
def self.acceptable_attributes
|
38
|
-
|
43
|
+
acceptable_attribute_map.values
|
39
44
|
end
|
40
45
|
|
41
46
|
# Attribute type mapping.
|
@@ -62,9 +67,10 @@ module SwaggyJenkinsClient
|
|
62
67
|
end
|
63
68
|
|
64
69
|
# check to see if the attribute exists and convert string to symbol for hash key
|
70
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
65
71
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
66
|
-
if (!
|
67
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `SwaggyJenkinsClient::CauseUserIdCause`. Please check the name to make sure it's valid. List of attributes: " +
|
72
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
73
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SwaggyJenkinsClient::CauseUserIdCause`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
68
74
|
end
|
69
75
|
h[k.to_sym] = v
|
70
76
|
}
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#Jenkins API clients generated from Swagger / Open API specification
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 3.0
|
6
|
+
The version of the OpenAPI document: 3.1.0
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.12.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -27,9 +27,14 @@ module SwaggyJenkinsClient
|
|
27
27
|
}
|
28
28
|
end
|
29
29
|
|
30
|
+
# Returns attribute mapping this model knows about
|
31
|
+
def self.acceptable_attribute_map
|
32
|
+
attribute_map
|
33
|
+
end
|
34
|
+
|
30
35
|
# Returns all the JSON keys this model knows about
|
31
36
|
def self.acceptable_attributes
|
32
|
-
|
37
|
+
acceptable_attribute_map.values
|
33
38
|
end
|
34
39
|
|
35
40
|
# Attribute type mapping.
|
@@ -54,9 +59,10 @@ module SwaggyJenkinsClient
|
|
54
59
|
end
|
55
60
|
|
56
61
|
# check to see if the attribute exists and convert string to symbol for hash key
|
62
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
57
63
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
58
|
-
if (!
|
59
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `SwaggyJenkinsClient::ClassesByClass`. Please check the name to make sure it's valid. List of attributes: " +
|
64
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
65
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SwaggyJenkinsClient::ClassesByClass`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
60
66
|
end
|
61
67
|
h[k.to_sym] = v
|
62
68
|
}
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#Jenkins API clients generated from Swagger / Open API specification
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 3.0
|
6
|
+
The version of the OpenAPI document: 3.1.0
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.12.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -27,9 +27,14 @@ module SwaggyJenkinsClient
|
|
27
27
|
}
|
28
28
|
end
|
29
29
|
|
30
|
+
# Returns attribute mapping this model knows about
|
31
|
+
def self.acceptable_attribute_map
|
32
|
+
attribute_map
|
33
|
+
end
|
34
|
+
|
30
35
|
# Returns all the JSON keys this model knows about
|
31
36
|
def self.acceptable_attributes
|
32
|
-
|
37
|
+
acceptable_attribute_map.values
|
33
38
|
end
|
34
39
|
|
35
40
|
# Attribute type mapping.
|
@@ -54,9 +59,10 @@ module SwaggyJenkinsClient
|
|
54
59
|
end
|
55
60
|
|
56
61
|
# check to see if the attribute exists and convert string to symbol for hash key
|
62
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
57
63
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
58
|
-
if (!
|
59
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `SwaggyJenkinsClient::ClockDifference`. Please check the name to make sure it's valid. List of attributes: " +
|
64
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
65
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SwaggyJenkinsClient::ClockDifference`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
60
66
|
end
|
61
67
|
h[k.to_sym] = v
|
62
68
|
}
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#Jenkins API clients generated from Swagger / Open API specification
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 3.0
|
6
|
+
The version of the OpenAPI document: 3.1.0
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.12.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -36,9 +36,14 @@ module SwaggyJenkinsClient
|
|
36
36
|
}
|
37
37
|
end
|
38
38
|
|
39
|
+
# Returns attribute mapping this model knows about
|
40
|
+
def self.acceptable_attribute_map
|
41
|
+
attribute_map
|
42
|
+
end
|
43
|
+
|
39
44
|
# Returns all the JSON keys this model knows about
|
40
45
|
def self.acceptable_attributes
|
41
|
-
|
46
|
+
acceptable_attribute_map.values
|
42
47
|
end
|
43
48
|
|
44
49
|
# Attribute type mapping.
|
@@ -66,9 +71,10 @@ module SwaggyJenkinsClient
|
|
66
71
|
end
|
67
72
|
|
68
73
|
# check to see if the attribute exists and convert string to symbol for hash key
|
74
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
69
75
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
70
|
-
if (!
|
71
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `SwaggyJenkinsClient::ComputerSet`. Please check the name to make sure it's valid. List of attributes: " +
|
76
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
77
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SwaggyJenkinsClient::ComputerSet`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
72
78
|
end
|
73
79
|
h[k.to_sym] = v
|
74
80
|
}
|