swaggy_jenkins 0.0.1 → 1.3.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 +5 -5
- data/Gemfile +3 -1
- data/Gemfile.lock +51 -50
- data/README.md +25 -33
- data/Rakefile +2 -0
- data/bin/bundle +114 -0
- data/bin/byebug +29 -0
- data/bin/coderay +29 -0
- data/bin/htmldiff +29 -0
- data/bin/ldiff +29 -0
- data/bin/pry +29 -0
- data/bin/rake +29 -0
- data/bin/rspec +29 -0
- data/bin/rubocop +29 -0
- data/bin/ruby-parse +29 -0
- data/bin/ruby-rewrite +29 -0
- data/docs/AllView.md +17 -5
- data/docs/BaseApi.md +75 -0
- data/docs/BlueOceanApi.md +1347 -631
- data/docs/BranchImpl.md +37 -15
- data/docs/BranchImpllinks.md +21 -7
- data/docs/BranchImplpermissions.md +21 -7
- data/docs/CauseAction.md +15 -4
- data/docs/CauseUserIdCause.md +19 -6
- data/docs/ClassesByClass.md +15 -4
- data/docs/ClockDifference.md +15 -4
- data/docs/ComputerSet.md +21 -7
- data/docs/DefaultCrumbIssuer.md +17 -5
- data/docs/DiskSpaceMonitorDescriptorDiskSpace.md +19 -6
- data/docs/EmptyChangeLogSet.md +15 -4
- data/docs/ExtensionClassContainerImpl1.md +17 -5
- data/docs/ExtensionClassContainerImpl1links.md +15 -4
- data/docs/ExtensionClassContainerImpl1map.md +17 -5
- data/docs/ExtensionClassImpl.md +17 -5
- data/docs/ExtensionClassImpllinks.md +15 -4
- data/docs/FavoriteImpl.md +17 -5
- data/docs/FavoriteImpllinks.md +15 -4
- data/docs/FreeStyleBuild.md +47 -20
- data/docs/FreeStyleProject.md +65 -29
- data/docs/FreeStyleProjectactions.md +13 -3
- data/docs/FreeStyleProjecthealthReport.md +21 -7
- data/docs/GenericResource.md +23 -8
- data/docs/GithubContent.md +27 -10
- data/docs/GithubFile.md +15 -4
- data/docs/GithubOrganization.md +19 -6
- data/docs/GithubOrganizationlinks.md +17 -5
- data/docs/GithubRepositories.md +23 -8
- data/docs/GithubRepositorieslinks.md +15 -4
- data/docs/GithubRepository.md +27 -10
- data/docs/GithubRepositorylinks.md +15 -4
- data/docs/GithubRepositorypermissions.md +19 -6
- data/docs/GithubRespositoryContainer.md +17 -5
- data/docs/GithubRespositoryContainerlinks.md +15 -4
- data/docs/GithubScm.md +21 -7
- data/docs/GithubScmlinks.md +15 -4
- data/docs/Hudson.md +41 -17
- data/docs/HudsonMasterComputer.md +43 -18
- data/docs/HudsonMasterComputerexecutors.md +23 -8
- data/docs/HudsonMasterComputermonitorData.md +25 -9
- data/docs/HudsonassignedLabels.md +13 -3
- data/docs/InputStepImpl.md +25 -9
- data/docs/InputStepImpllinks.md +15 -4
- data/docs/Label1.md +13 -3
- data/docs/Link.md +15 -4
- data/docs/ListView.md +21 -7
- data/docs/MultibranchPipeline.md +39 -16
- data/docs/NullSCM.md +13 -3
- data/docs/Organisation.md +15 -4
- data/docs/Pipeline.md +27 -10
- data/docs/PipelineActivity.md +41 -17
- data/docs/PipelineActivityartifacts.md +19 -6
- data/docs/PipelineBranchesitem.md +29 -11
- data/docs/PipelineBranchesitemlatestRun.md +39 -16
- data/docs/PipelineBranchesitempullRequest.md +23 -8
- data/docs/PipelineBranchesitempullRequestlinks.md +15 -4
- data/docs/PipelineFolderImpl.md +25 -9
- data/docs/PipelineImpl.md +29 -11
- data/docs/PipelineImpllinks.md +21 -7
- data/docs/PipelineRun.md +41 -17
- data/docs/PipelineRunImpl.md +41 -17
- data/docs/PipelineRunImpllinks.md +23 -8
- data/docs/PipelineRunNode.md +27 -10
- data/docs/PipelineRunNodeedges.md +15 -4
- data/docs/PipelineRunartifacts.md +19 -6
- data/docs/PipelineStepImpl.md +29 -11
- data/docs/PipelineStepImpllinks.md +17 -5
- data/docs/PipelinelatestRun.md +41 -17
- data/docs/PipelinelatestRunartifacts.md +19 -6
- data/docs/Queue.md +15 -4
- data/docs/QueueBlockedItem.md +35 -14
- data/docs/QueueItemImpl.md +21 -7
- data/docs/QueueLeftItem.md +37 -15
- data/docs/RemoteAccessApi.md +666 -350
- data/docs/ResponseTimeMonitorData.md +17 -5
- data/docs/StringParameterDefinition.md +21 -7
- data/docs/StringParameterValue.md +17 -5
- data/docs/SwapSpaceMonitorMemoryUsage2.md +21 -7
- data/docs/UnlabeledLoadStatistics.md +13 -3
- data/docs/User.md +21 -7
- data/git_push.sh +12 -10
- data/lib/swaggy_jenkins/api/base_api.rb +77 -0
- data/lib/swaggy_jenkins/api/blue_ocean_api.rb +1048 -643
- data/lib/swaggy_jenkins/api/remote_access_api.rb +506 -361
- data/lib/swaggy_jenkins/api_client.rb +95 -94
- data/lib/swaggy_jenkins/api_error.rb +22 -3
- data/lib/swaggy_jenkins/configuration.rb +91 -15
- data/lib/swaggy_jenkins/models/all_view.rb +59 -29
- data/lib/swaggy_jenkins/models/branch_impl.rb +76 -46
- data/lib/swaggy_jenkins/models/branch_impllinks.rb +62 -32
- data/lib/swaggy_jenkins/models/branch_implpermissions.rb +65 -35
- data/lib/swaggy_jenkins/models/cause_action.rb +58 -28
- data/lib/swaggy_jenkins/models/cause_user_id_cause.rb +63 -33
- data/lib/swaggy_jenkins/models/classes_by_class.rb +58 -28
- data/lib/swaggy_jenkins/models/clock_difference.rb +58 -28
- data/lib/swaggy_jenkins/models/computer_set.rb +64 -34
- data/lib/swaggy_jenkins/models/default_crumb_issuer.rb +60 -30
- data/lib/swaggy_jenkins/models/disk_space_monitor_descriptor_disk_space.rb +60 -30
- data/lib/swaggy_jenkins/models/empty_change_log_set.rb +58 -28
- data/lib/swaggy_jenkins/models/extension_class_container_impl1.rb +59 -29
- data/lib/swaggy_jenkins/models/extension_class_container_impl1links.rb +59 -29
- data/lib/swaggy_jenkins/models/extension_class_container_impl1map.rb +61 -31
- data/lib/swaggy_jenkins/models/extension_class_impl.rb +59 -29
- data/lib/swaggy_jenkins/models/extension_class_impllinks.rb +59 -29
- data/lib/swaggy_jenkins/models/favorite_impl.rb +59 -29
- data/lib/swaggy_jenkins/models/favorite_impllinks.rb +59 -29
- data/lib/swaggy_jenkins/models/free_style_build.rb +83 -53
- data/lib/swaggy_jenkins/models/free_style_project.rb +105 -75
- data/lib/swaggy_jenkins/models/free_style_projectactions.rb +57 -27
- data/lib/swaggy_jenkins/models/free_style_projecthealth_report.rb +63 -33
- data/lib/swaggy_jenkins/models/generic_resource.rb +65 -35
- data/lib/swaggy_jenkins/models/github_content.rb +65 -35
- data/lib/swaggy_jenkins/models/github_file.rb +58 -28
- data/lib/swaggy_jenkins/models/github_organization.rb +62 -32
- data/lib/swaggy_jenkins/models/github_organizationlinks.rb +60 -30
- data/lib/swaggy_jenkins/models/github_repositories.rb +65 -35
- data/lib/swaggy_jenkins/models/github_repositorieslinks.rb +59 -29
- data/lib/swaggy_jenkins/models/github_repository.rb +67 -37
- data/lib/swaggy_jenkins/models/github_repositorylinks.rb +59 -29
- data/lib/swaggy_jenkins/models/github_repositorypermissions.rb +63 -33
- data/lib/swaggy_jenkins/models/github_respository_container.rb +59 -29
- data/lib/swaggy_jenkins/models/github_respository_containerlinks.rb +59 -29
- data/lib/swaggy_jenkins/models/github_scm.rb +62 -32
- data/lib/swaggy_jenkins/models/github_scmlinks.rb +59 -29
- data/lib/swaggy_jenkins/models/hudson.rb +84 -54
- data/lib/swaggy_jenkins/models/hudson_master_computer.rb +89 -59
- data/lib/swaggy_jenkins/models/hudson_master_computerexecutors.rb +66 -36
- data/lib/swaggy_jenkins/models/hudson_master_computermonitor_data.rb +69 -39
- data/lib/swaggy_jenkins/models/hudsonassigned_labels.rb +57 -27
- data/lib/swaggy_jenkins/models/input_step_impl.rb +63 -33
- data/lib/swaggy_jenkins/models/input_step_impllinks.rb +59 -29
- data/lib/swaggy_jenkins/models/label1.rb +57 -27
- data/lib/swaggy_jenkins/models/link.rb +58 -28
- data/lib/swaggy_jenkins/models/list_view.rb +61 -31
- data/lib/swaggy_jenkins/models/multibranch_pipeline.rb +81 -51
- data/lib/swaggy_jenkins/models/null_scm.rb +57 -27
- data/lib/swaggy_jenkins/models/organisation.rb +58 -28
- data/lib/swaggy_jenkins/models/pipeline.rb +69 -39
- data/lib/swaggy_jenkins/models/pipeline_activity.rb +78 -48
- data/lib/swaggy_jenkins/models/pipeline_activityartifacts.rb +60 -30
- data/lib/swaggy_jenkins/models/pipeline_branchesitem.rb +71 -41
- data/lib/swaggy_jenkins/models/pipeline_branchesitemlatest_run.rb +77 -47
- data/lib/swaggy_jenkins/models/pipeline_branchesitempull_request.rb +62 -32
- data/lib/swaggy_jenkins/models/pipeline_branchesitempull_requestlinks.rb +59 -29
- data/lib/swaggy_jenkins/models/pipeline_folder_impl.rb +67 -37
- data/lib/swaggy_jenkins/models/pipeline_impl.rb +70 -40
- data/lib/swaggy_jenkins/models/pipeline_impllinks.rb +62 -32
- data/lib/swaggy_jenkins/models/pipeline_run.rb +78 -48
- data/lib/swaggy_jenkins/models/pipeline_run_impl.rb +78 -48
- data/lib/swaggy_jenkins/models/pipeline_run_impllinks.rb +63 -33
- data/lib/swaggy_jenkins/models/pipeline_run_node.rb +67 -37
- data/lib/swaggy_jenkins/models/pipeline_run_nodeedges.rb +58 -28
- data/lib/swaggy_jenkins/models/pipeline_runartifacts.rb +60 -30
- data/lib/swaggy_jenkins/models/pipeline_step_impl.rb +68 -38
- data/lib/swaggy_jenkins/models/pipeline_step_impllinks.rb +60 -30
- data/lib/swaggy_jenkins/models/pipelinelatest_run.rb +78 -48
- data/lib/swaggy_jenkins/models/pipelinelatest_runartifacts.rb +60 -30
- data/lib/swaggy_jenkins/models/queue.rb +58 -28
- data/lib/swaggy_jenkins/models/queue_blocked_item.rb +73 -43
- data/lib/swaggy_jenkins/models/queue_item_impl.rb +63 -33
- data/lib/swaggy_jenkins/models/queue_left_item.rb +74 -44
- data/lib/swaggy_jenkins/models/response_time_monitor_data.rb +59 -29
- data/lib/swaggy_jenkins/models/string_parameter_definition.rb +62 -32
- data/lib/swaggy_jenkins/models/string_parameter_value.rb +59 -29
- data/lib/swaggy_jenkins/models/swap_space_monitor_memory_usage2.rb +65 -35
- data/lib/swaggy_jenkins/models/unlabeled_load_statistics.rb +57 -27
- data/lib/swaggy_jenkins/models/user.rb +62 -32
- data/lib/swaggy_jenkins/version.rb +4 -4
- data/lib/swaggy_jenkins.rb +4 -16
- data/spec/api/base_api_spec.rb +45 -0
- data/spec/api/blue_ocean_api_spec.rb +76 -88
- data/spec/api/remote_access_api_spec.rb +28 -59
- data/spec/api_client_spec.rb +40 -40
- data/spec/configuration_spec.rb +11 -11
- data/spec/models/all_view_spec.rb +10 -18
- data/spec/models/branch_impl_spec.rb +20 -28
- data/spec/models/branch_impllinks_spec.rb +12 -20
- data/spec/models/branch_implpermissions_spec.rb +12 -20
- data/spec/models/cause_action_spec.rb +9 -17
- data/spec/models/cause_user_id_cause_spec.rb +11 -19
- data/spec/models/classes_by_class_spec.rb +9 -17
- data/spec/models/clock_difference_spec.rb +9 -17
- data/spec/models/computer_set_spec.rb +12 -20
- data/spec/models/default_crumb_issuer_spec.rb +10 -18
- data/spec/models/disk_space_monitor_descriptor_disk_space_spec.rb +11 -19
- data/spec/models/empty_change_log_set_spec.rb +9 -17
- data/spec/models/extension_class_container_impl1_spec.rb +10 -18
- data/spec/models/extension_class_container_impl1links_spec.rb +9 -17
- data/spec/models/extension_class_container_impl1map_spec.rb +10 -18
- data/spec/models/extension_class_impl_spec.rb +10 -18
- data/spec/models/extension_class_impllinks_spec.rb +9 -17
- data/spec/models/favorite_impl_spec.rb +10 -18
- data/spec/models/favorite_impllinks_spec.rb +9 -17
- data/spec/models/free_style_build_spec.rb +25 -33
- data/spec/models/free_style_project_spec.rb +34 -42
- data/spec/models/free_style_projectactions_spec.rb +8 -16
- data/spec/models/free_style_projecthealth_report_spec.rb +12 -20
- data/spec/models/generic_resource_spec.rb +13 -21
- data/spec/models/github_content_spec.rb +15 -23
- data/spec/models/github_file_spec.rb +9 -17
- data/spec/models/github_organization_spec.rb +11 -19
- data/spec/models/github_organizationlinks_spec.rb +10 -18
- data/spec/models/github_repositories_spec.rb +13 -21
- data/spec/models/github_repositorieslinks_spec.rb +9 -17
- data/spec/models/github_repository_spec.rb +15 -23
- data/spec/models/github_repositorylinks_spec.rb +9 -17
- data/spec/models/github_repositorypermissions_spec.rb +11 -19
- data/spec/models/github_respository_container_spec.rb +10 -18
- data/spec/models/github_respository_containerlinks_spec.rb +9 -17
- data/spec/models/github_scm_spec.rb +12 -20
- data/spec/models/github_scmlinks_spec.rb +9 -17
- data/spec/models/hudson_master_computer_spec.rb +23 -31
- data/spec/models/hudson_master_computerexecutors_spec.rb +13 -21
- data/spec/models/hudson_master_computermonitor_data_spec.rb +14 -22
- data/spec/models/hudson_spec.rb +22 -30
- data/spec/models/hudsonassigned_labels_spec.rb +8 -16
- data/spec/models/input_step_impl_spec.rb +14 -22
- data/spec/models/input_step_impllinks_spec.rb +9 -17
- data/spec/models/label1_spec.rb +8 -16
- data/spec/models/link_spec.rb +9 -17
- data/spec/models/list_view_spec.rb +12 -20
- data/spec/models/multibranch_pipeline_spec.rb +21 -29
- data/spec/models/null_scm_spec.rb +8 -16
- data/spec/models/organisation_spec.rb +9 -17
- data/spec/models/pipeline_activity_spec.rb +22 -30
- data/spec/models/pipeline_activityartifacts_spec.rb +11 -19
- data/spec/models/pipeline_branchesitem_spec.rb +16 -24
- data/spec/models/pipeline_branchesitemlatest_run_spec.rb +21 -29
- data/spec/models/pipeline_branchesitempull_request_spec.rb +13 -21
- data/spec/models/pipeline_branchesitempull_requestlinks_spec.rb +9 -17
- data/spec/models/pipeline_folder_impl_spec.rb +14 -22
- data/spec/models/pipeline_impl_spec.rb +16 -24
- data/spec/models/pipeline_impllinks_spec.rb +12 -20
- data/spec/models/pipeline_run_impl_spec.rb +22 -30
- data/spec/models/pipeline_run_impllinks_spec.rb +13 -21
- data/spec/models/pipeline_run_node_spec.rb +15 -23
- data/spec/models/pipeline_run_nodeedges_spec.rb +9 -17
- data/spec/models/pipeline_run_spec.rb +22 -30
- data/spec/models/pipeline_runartifacts_spec.rb +11 -19
- data/spec/models/pipeline_spec.rb +15 -23
- data/spec/models/pipeline_step_impl_spec.rb +16 -24
- data/spec/models/pipeline_step_impllinks_spec.rb +10 -18
- data/spec/models/pipelinelatest_run_spec.rb +22 -30
- data/spec/models/pipelinelatest_runartifacts_spec.rb +11 -19
- data/spec/models/queue_blocked_item_spec.rb +19 -27
- data/spec/models/queue_item_impl_spec.rb +12 -20
- data/spec/models/queue_left_item_spec.rb +20 -28
- data/spec/models/queue_spec.rb +9 -17
- data/spec/models/response_time_monitor_data_spec.rb +10 -18
- data/spec/models/string_parameter_definition_spec.rb +12 -20
- data/spec/models/string_parameter_value_spec.rb +10 -18
- data/spec/models/swap_space_monitor_memory_usage2_spec.rb +12 -20
- data/spec/models/unlabeled_load_statistics_spec.rb +8 -16
- data/spec/models/user_spec.rb +12 -20
- data/spec/spec_helper.rb +3 -3
- data/swaggy_jenkins.gemspec +6 -13
- metadata +97 -275
- data/docs/Body.md +0 -8
- data/docs/Organisations.md +0 -7
- data/docs/PipelineActivities.md +0 -7
- data/docs/PipelineBranches.md +0 -7
- data/docs/PipelineQueue.md +0 -7
- data/docs/PipelineRunNodeSteps.md +0 -7
- data/docs/PipelineRunNodes.md +0 -7
- data/docs/PipelineRunSteps.md +0 -7
- data/docs/PipelineRuns.md +0 -7
- data/docs/Pipelines.md +0 -7
- data/docs/ScmOrganisations.md +0 -7
- data/docs/UserFavorites.md +0 -7
- data/docs/Users.md +0 -7
- data/lib/swaggy_jenkins/models/body.rb +0 -193
- data/lib/swaggy_jenkins/models/organisations.rb +0 -179
- data/lib/swaggy_jenkins/models/pipeline_activities.rb +0 -179
- data/lib/swaggy_jenkins/models/pipeline_branches.rb +0 -179
- data/lib/swaggy_jenkins/models/pipeline_queue.rb +0 -179
- data/lib/swaggy_jenkins/models/pipeline_run_node_steps.rb +0 -179
- data/lib/swaggy_jenkins/models/pipeline_run_nodes.rb +0 -179
- data/lib/swaggy_jenkins/models/pipeline_run_steps.rb +0 -179
- data/lib/swaggy_jenkins/models/pipeline_runs.rb +0 -179
- data/lib/swaggy_jenkins/models/pipelines.rb +0 -179
- data/lib/swaggy_jenkins/models/scm_organisations.rb +0 -179
- data/lib/swaggy_jenkins/models/user_favorites.rb +0 -179
- data/lib/swaggy_jenkins/models/users.rb +0 -179
- data/spec/models/body_spec.rb +0 -42
- data/spec/models/organisations_spec.rb +0 -36
- data/spec/models/pipeline_activities_spec.rb +0 -36
- data/spec/models/pipeline_branches_spec.rb +0 -36
- data/spec/models/pipeline_queue_spec.rb +0 -36
- data/spec/models/pipeline_run_node_steps_spec.rb +0 -36
- data/spec/models/pipeline_run_nodes_spec.rb +0 -36
- data/spec/models/pipeline_run_steps_spec.rb +0 -36
- data/spec/models/pipeline_runs_spec.rb +0 -36
- data/spec/models/pipelines_spec.rb +0 -36
- data/spec/models/scm_organisations_spec.rb +0 -36
- data/spec/models/user_favorites_spec.rb +0 -36
- data/spec/models/users_spec.rb +0 -36
@@ -3,14 +3,14 @@
|
|
3
3
|
|
4
4
|
#Jenkins API clients generated from Swagger / Open API specification
|
5
5
|
|
6
|
-
OpenAPI
|
6
|
+
The version of the OpenAPI document: 1.3.0
|
7
7
|
Contact: blah@cliffano.com
|
8
|
-
Generated by: https://
|
9
|
-
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.4.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
|
-
require
|
13
|
+
require 'cgi'
|
14
14
|
|
15
15
|
module SwaggyJenkinsClient
|
16
16
|
class RemoteAccessApi
|
@@ -19,336 +19,326 @@ module SwaggyJenkinsClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
|
23
|
-
#
|
24
22
|
# Retrieve computer details
|
25
|
-
# @param depth Recursion depth in response model
|
23
|
+
# @param depth [Integer] Recursion depth in response model
|
26
24
|
# @param [Hash] opts the optional parameters
|
27
25
|
# @return [ComputerSet]
|
28
26
|
def get_computer(depth, opts = {})
|
29
27
|
data, _status_code, _headers = get_computer_with_http_info(depth, opts)
|
30
|
-
|
28
|
+
data
|
31
29
|
end
|
32
30
|
|
33
|
-
#
|
34
31
|
# Retrieve computer details
|
35
|
-
# @param depth Recursion depth in response model
|
32
|
+
# @param depth [Integer] Recursion depth in response model
|
36
33
|
# @param [Hash] opts the optional parameters
|
37
|
-
# @return [Array<(ComputerSet,
|
34
|
+
# @return [Array<(ComputerSet, Integer, Hash)>] ComputerSet data, response status code and response headers
|
38
35
|
def get_computer_with_http_info(depth, opts = {})
|
39
36
|
if @api_client.config.debugging
|
40
|
-
@api_client.config.logger.debug
|
37
|
+
@api_client.config.logger.debug 'Calling API: RemoteAccessApi.get_computer ...'
|
41
38
|
end
|
42
39
|
# verify the required parameter 'depth' is set
|
43
40
|
if @api_client.config.client_side_validation && depth.nil?
|
44
41
|
fail ArgumentError, "Missing the required parameter 'depth' when calling RemoteAccessApi.get_computer"
|
45
42
|
end
|
46
43
|
# resource path
|
47
|
-
local_var_path =
|
44
|
+
local_var_path = '/computer/api/json'
|
48
45
|
|
49
46
|
# query parameters
|
50
|
-
query_params = {}
|
47
|
+
query_params = opts[:query_params] || {}
|
51
48
|
query_params[:'depth'] = depth
|
52
49
|
|
53
50
|
# header parameters
|
54
|
-
header_params = {}
|
51
|
+
header_params = opts[:header_params] || {}
|
55
52
|
# HTTP header 'Accept' (if needed)
|
56
53
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
57
54
|
|
58
55
|
# form parameters
|
59
|
-
form_params = {}
|
56
|
+
form_params = opts[:form_params] || {}
|
60
57
|
|
61
58
|
# http body (model)
|
62
|
-
post_body =
|
63
|
-
auth_names = ['jenkins_auth']
|
64
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
65
|
-
:header_params => header_params,
|
66
|
-
:query_params => query_params,
|
67
|
-
:form_params => form_params,
|
68
|
-
:body => post_body,
|
69
|
-
:auth_names => auth_names,
|
70
|
-
:return_type => 'ComputerSet')
|
71
|
-
if @api_client.config.debugging
|
72
|
-
@api_client.config.logger.debug "API called: RemoteAccessApi#get_computer\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
73
|
-
end
|
74
|
-
return data, status_code, headers
|
75
|
-
end
|
59
|
+
post_body = opts[:debug_body]
|
76
60
|
|
77
|
-
|
78
|
-
|
79
|
-
# @param [Hash] opts the optional parameters
|
80
|
-
# @return [DefaultCrumbIssuer]
|
81
|
-
def get_crumb(opts = {})
|
82
|
-
data, _status_code, _headers = get_crumb_with_http_info(opts)
|
83
|
-
return data
|
84
|
-
end
|
61
|
+
# return_type
|
62
|
+
return_type = opts[:debug_return_type] || 'ComputerSet'
|
85
63
|
|
86
|
-
|
87
|
-
|
88
|
-
# @param [Hash] opts the optional parameters
|
89
|
-
# @return [Array<(DefaultCrumbIssuer, Fixnum, Hash)>] DefaultCrumbIssuer data, response status code and response headers
|
90
|
-
def get_crumb_with_http_info(opts = {})
|
91
|
-
if @api_client.config.debugging
|
92
|
-
@api_client.config.logger.debug "Calling API: RemoteAccessApi.get_crumb ..."
|
93
|
-
end
|
94
|
-
# resource path
|
95
|
-
local_var_path = "/crumbIssuer/api/json"
|
64
|
+
# auth_names
|
65
|
+
auth_names = opts[:debug_auth_names] || ['jenkins_auth']
|
96
66
|
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
# header parameters
|
101
|
-
header_params = {}
|
102
|
-
# HTTP header 'Accept' (if needed)
|
103
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
104
|
-
|
105
|
-
# form parameters
|
106
|
-
form_params = {}
|
107
|
-
|
108
|
-
# http body (model)
|
109
|
-
post_body = nil
|
110
|
-
auth_names = ['jenkins_auth']
|
111
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
67
|
+
new_options = opts.merge(
|
68
|
+
:operation => :"RemoteAccessApi.get_computer",
|
112
69
|
:header_params => header_params,
|
113
70
|
:query_params => query_params,
|
114
71
|
:form_params => form_params,
|
115
72
|
:body => post_body,
|
116
73
|
:auth_names => auth_names,
|
117
|
-
:return_type =>
|
74
|
+
:return_type => return_type
|
75
|
+
)
|
76
|
+
|
77
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
118
78
|
if @api_client.config.debugging
|
119
|
-
@api_client.config.logger.debug "API called: RemoteAccessApi#
|
79
|
+
@api_client.config.logger.debug "API called: RemoteAccessApi#get_computer\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
120
80
|
end
|
121
81
|
return data, status_code, headers
|
122
82
|
end
|
123
83
|
|
124
|
-
#
|
125
84
|
# Retrieve Jenkins details
|
126
85
|
# @param [Hash] opts the optional parameters
|
127
86
|
# @return [Hudson]
|
128
87
|
def get_jenkins(opts = {})
|
129
88
|
data, _status_code, _headers = get_jenkins_with_http_info(opts)
|
130
|
-
|
89
|
+
data
|
131
90
|
end
|
132
91
|
|
133
|
-
#
|
134
92
|
# Retrieve Jenkins details
|
135
93
|
# @param [Hash] opts the optional parameters
|
136
|
-
# @return [Array<(Hudson,
|
94
|
+
# @return [Array<(Hudson, Integer, Hash)>] Hudson data, response status code and response headers
|
137
95
|
def get_jenkins_with_http_info(opts = {})
|
138
96
|
if @api_client.config.debugging
|
139
|
-
@api_client.config.logger.debug
|
97
|
+
@api_client.config.logger.debug 'Calling API: RemoteAccessApi.get_jenkins ...'
|
140
98
|
end
|
141
99
|
# resource path
|
142
|
-
local_var_path =
|
100
|
+
local_var_path = '/api/json'
|
143
101
|
|
144
102
|
# query parameters
|
145
|
-
query_params = {}
|
103
|
+
query_params = opts[:query_params] || {}
|
146
104
|
|
147
105
|
# header parameters
|
148
|
-
header_params = {}
|
106
|
+
header_params = opts[:header_params] || {}
|
149
107
|
# HTTP header 'Accept' (if needed)
|
150
108
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
151
109
|
|
152
110
|
# form parameters
|
153
|
-
form_params = {}
|
111
|
+
form_params = opts[:form_params] || {}
|
154
112
|
|
155
113
|
# http body (model)
|
156
|
-
post_body =
|
157
|
-
|
158
|
-
|
114
|
+
post_body = opts[:debug_body]
|
115
|
+
|
116
|
+
# return_type
|
117
|
+
return_type = opts[:debug_return_type] || 'Hudson'
|
118
|
+
|
119
|
+
# auth_names
|
120
|
+
auth_names = opts[:debug_auth_names] || ['jenkins_auth']
|
121
|
+
|
122
|
+
new_options = opts.merge(
|
123
|
+
:operation => :"RemoteAccessApi.get_jenkins",
|
159
124
|
:header_params => header_params,
|
160
125
|
:query_params => query_params,
|
161
126
|
:form_params => form_params,
|
162
127
|
:body => post_body,
|
163
128
|
:auth_names => auth_names,
|
164
|
-
:return_type =>
|
129
|
+
:return_type => return_type
|
130
|
+
)
|
131
|
+
|
132
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
165
133
|
if @api_client.config.debugging
|
166
134
|
@api_client.config.logger.debug "API called: RemoteAccessApi#get_jenkins\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
167
135
|
end
|
168
136
|
return data, status_code, headers
|
169
137
|
end
|
170
138
|
|
171
|
-
#
|
172
139
|
# Retrieve job details
|
173
|
-
# @param name Name of the job
|
140
|
+
# @param name [String] Name of the job
|
174
141
|
# @param [Hash] opts the optional parameters
|
175
142
|
# @return [FreeStyleProject]
|
176
143
|
def get_job(name, opts = {})
|
177
144
|
data, _status_code, _headers = get_job_with_http_info(name, opts)
|
178
|
-
|
145
|
+
data
|
179
146
|
end
|
180
147
|
|
181
|
-
#
|
182
148
|
# Retrieve job details
|
183
|
-
# @param name Name of the job
|
149
|
+
# @param name [String] Name of the job
|
184
150
|
# @param [Hash] opts the optional parameters
|
185
|
-
# @return [Array<(FreeStyleProject,
|
151
|
+
# @return [Array<(FreeStyleProject, Integer, Hash)>] FreeStyleProject data, response status code and response headers
|
186
152
|
def get_job_with_http_info(name, opts = {})
|
187
153
|
if @api_client.config.debugging
|
188
|
-
@api_client.config.logger.debug
|
154
|
+
@api_client.config.logger.debug 'Calling API: RemoteAccessApi.get_job ...'
|
189
155
|
end
|
190
156
|
# verify the required parameter 'name' is set
|
191
157
|
if @api_client.config.client_side_validation && name.nil?
|
192
158
|
fail ArgumentError, "Missing the required parameter 'name' when calling RemoteAccessApi.get_job"
|
193
159
|
end
|
194
160
|
# resource path
|
195
|
-
local_var_path =
|
161
|
+
local_var_path = '/job/{name}/api/json'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
|
196
162
|
|
197
163
|
# query parameters
|
198
|
-
query_params = {}
|
164
|
+
query_params = opts[:query_params] || {}
|
199
165
|
|
200
166
|
# header parameters
|
201
|
-
header_params = {}
|
167
|
+
header_params = opts[:header_params] || {}
|
202
168
|
# HTTP header 'Accept' (if needed)
|
203
169
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
204
170
|
|
205
171
|
# form parameters
|
206
|
-
form_params = {}
|
172
|
+
form_params = opts[:form_params] || {}
|
207
173
|
|
208
174
|
# http body (model)
|
209
|
-
post_body =
|
210
|
-
|
211
|
-
|
175
|
+
post_body = opts[:debug_body]
|
176
|
+
|
177
|
+
# return_type
|
178
|
+
return_type = opts[:debug_return_type] || 'FreeStyleProject'
|
179
|
+
|
180
|
+
# auth_names
|
181
|
+
auth_names = opts[:debug_auth_names] || ['jenkins_auth']
|
182
|
+
|
183
|
+
new_options = opts.merge(
|
184
|
+
:operation => :"RemoteAccessApi.get_job",
|
212
185
|
:header_params => header_params,
|
213
186
|
:query_params => query_params,
|
214
187
|
:form_params => form_params,
|
215
188
|
:body => post_body,
|
216
189
|
:auth_names => auth_names,
|
217
|
-
:return_type =>
|
190
|
+
:return_type => return_type
|
191
|
+
)
|
192
|
+
|
193
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
218
194
|
if @api_client.config.debugging
|
219
195
|
@api_client.config.logger.debug "API called: RemoteAccessApi#get_job\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
220
196
|
end
|
221
197
|
return data, status_code, headers
|
222
198
|
end
|
223
199
|
|
224
|
-
#
|
225
200
|
# Retrieve job configuration
|
226
|
-
# @param name Name of the job
|
201
|
+
# @param name [String] Name of the job
|
227
202
|
# @param [Hash] opts the optional parameters
|
228
203
|
# @return [String]
|
229
204
|
def get_job_config(name, opts = {})
|
230
205
|
data, _status_code, _headers = get_job_config_with_http_info(name, opts)
|
231
|
-
|
206
|
+
data
|
232
207
|
end
|
233
208
|
|
234
|
-
#
|
235
209
|
# Retrieve job configuration
|
236
|
-
# @param name Name of the job
|
210
|
+
# @param name [String] Name of the job
|
237
211
|
# @param [Hash] opts the optional parameters
|
238
|
-
# @return [Array<(String,
|
212
|
+
# @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
|
239
213
|
def get_job_config_with_http_info(name, opts = {})
|
240
214
|
if @api_client.config.debugging
|
241
|
-
@api_client.config.logger.debug
|
215
|
+
@api_client.config.logger.debug 'Calling API: RemoteAccessApi.get_job_config ...'
|
242
216
|
end
|
243
217
|
# verify the required parameter 'name' is set
|
244
218
|
if @api_client.config.client_side_validation && name.nil?
|
245
219
|
fail ArgumentError, "Missing the required parameter 'name' when calling RemoteAccessApi.get_job_config"
|
246
220
|
end
|
247
221
|
# resource path
|
248
|
-
local_var_path =
|
222
|
+
local_var_path = '/job/{name}/config.xml'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
|
249
223
|
|
250
224
|
# query parameters
|
251
|
-
query_params = {}
|
225
|
+
query_params = opts[:query_params] || {}
|
252
226
|
|
253
227
|
# header parameters
|
254
|
-
header_params = {}
|
228
|
+
header_params = opts[:header_params] || {}
|
255
229
|
# HTTP header 'Accept' (if needed)
|
256
230
|
header_params['Accept'] = @api_client.select_header_accept(['text/xml'])
|
257
231
|
|
258
232
|
# form parameters
|
259
|
-
form_params = {}
|
233
|
+
form_params = opts[:form_params] || {}
|
260
234
|
|
261
235
|
# http body (model)
|
262
|
-
post_body =
|
263
|
-
|
264
|
-
|
236
|
+
post_body = opts[:debug_body]
|
237
|
+
|
238
|
+
# return_type
|
239
|
+
return_type = opts[:debug_return_type] || 'String'
|
240
|
+
|
241
|
+
# auth_names
|
242
|
+
auth_names = opts[:debug_auth_names] || ['jenkins_auth']
|
243
|
+
|
244
|
+
new_options = opts.merge(
|
245
|
+
:operation => :"RemoteAccessApi.get_job_config",
|
265
246
|
:header_params => header_params,
|
266
247
|
:query_params => query_params,
|
267
248
|
:form_params => form_params,
|
268
249
|
:body => post_body,
|
269
250
|
:auth_names => auth_names,
|
270
|
-
:return_type =>
|
251
|
+
:return_type => return_type
|
252
|
+
)
|
253
|
+
|
254
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
271
255
|
if @api_client.config.debugging
|
272
256
|
@api_client.config.logger.debug "API called: RemoteAccessApi#get_job_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
273
257
|
end
|
274
258
|
return data, status_code, headers
|
275
259
|
end
|
276
260
|
|
277
|
-
#
|
278
261
|
# Retrieve job's last build details
|
279
|
-
# @param name Name of the job
|
262
|
+
# @param name [String] Name of the job
|
280
263
|
# @param [Hash] opts the optional parameters
|
281
264
|
# @return [FreeStyleBuild]
|
282
265
|
def get_job_last_build(name, opts = {})
|
283
266
|
data, _status_code, _headers = get_job_last_build_with_http_info(name, opts)
|
284
|
-
|
267
|
+
data
|
285
268
|
end
|
286
269
|
|
287
|
-
#
|
288
270
|
# Retrieve job's last build details
|
289
|
-
# @param name Name of the job
|
271
|
+
# @param name [String] Name of the job
|
290
272
|
# @param [Hash] opts the optional parameters
|
291
|
-
# @return [Array<(FreeStyleBuild,
|
273
|
+
# @return [Array<(FreeStyleBuild, Integer, Hash)>] FreeStyleBuild data, response status code and response headers
|
292
274
|
def get_job_last_build_with_http_info(name, opts = {})
|
293
275
|
if @api_client.config.debugging
|
294
|
-
@api_client.config.logger.debug
|
276
|
+
@api_client.config.logger.debug 'Calling API: RemoteAccessApi.get_job_last_build ...'
|
295
277
|
end
|
296
278
|
# verify the required parameter 'name' is set
|
297
279
|
if @api_client.config.client_side_validation && name.nil?
|
298
280
|
fail ArgumentError, "Missing the required parameter 'name' when calling RemoteAccessApi.get_job_last_build"
|
299
281
|
end
|
300
282
|
# resource path
|
301
|
-
local_var_path =
|
283
|
+
local_var_path = '/job/{name}/lastBuild/api/json'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
|
302
284
|
|
303
285
|
# query parameters
|
304
|
-
query_params = {}
|
286
|
+
query_params = opts[:query_params] || {}
|
305
287
|
|
306
288
|
# header parameters
|
307
|
-
header_params = {}
|
289
|
+
header_params = opts[:header_params] || {}
|
308
290
|
# HTTP header 'Accept' (if needed)
|
309
291
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
310
292
|
|
311
293
|
# form parameters
|
312
|
-
form_params = {}
|
294
|
+
form_params = opts[:form_params] || {}
|
313
295
|
|
314
296
|
# http body (model)
|
315
|
-
post_body =
|
316
|
-
|
317
|
-
|
297
|
+
post_body = opts[:debug_body]
|
298
|
+
|
299
|
+
# return_type
|
300
|
+
return_type = opts[:debug_return_type] || 'FreeStyleBuild'
|
301
|
+
|
302
|
+
# auth_names
|
303
|
+
auth_names = opts[:debug_auth_names] || ['jenkins_auth']
|
304
|
+
|
305
|
+
new_options = opts.merge(
|
306
|
+
:operation => :"RemoteAccessApi.get_job_last_build",
|
318
307
|
:header_params => header_params,
|
319
308
|
:query_params => query_params,
|
320
309
|
:form_params => form_params,
|
321
310
|
:body => post_body,
|
322
311
|
:auth_names => auth_names,
|
323
|
-
:return_type =>
|
312
|
+
:return_type => return_type
|
313
|
+
)
|
314
|
+
|
315
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
324
316
|
if @api_client.config.debugging
|
325
317
|
@api_client.config.logger.debug "API called: RemoteAccessApi#get_job_last_build\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
326
318
|
end
|
327
319
|
return data, status_code, headers
|
328
320
|
end
|
329
321
|
|
330
|
-
#
|
331
322
|
# Retrieve job's build progressive text output
|
332
|
-
# @param name Name of the job
|
333
|
-
# @param number Build number
|
334
|
-
# @param start Starting point of progressive text output
|
323
|
+
# @param name [String] Name of the job
|
324
|
+
# @param number [String] Build number
|
325
|
+
# @param start [String] Starting point of progressive text output
|
335
326
|
# @param [Hash] opts the optional parameters
|
336
327
|
# @return [nil]
|
337
328
|
def get_job_progressive_text(name, number, start, opts = {})
|
338
329
|
get_job_progressive_text_with_http_info(name, number, start, opts)
|
339
|
-
|
330
|
+
nil
|
340
331
|
end
|
341
332
|
|
342
|
-
#
|
343
333
|
# Retrieve job's build progressive text output
|
344
|
-
# @param name Name of the job
|
345
|
-
# @param number Build number
|
346
|
-
# @param start Starting point of progressive text output
|
334
|
+
# @param name [String] Name of the job
|
335
|
+
# @param number [String] Build number
|
336
|
+
# @param start [String] Starting point of progressive text output
|
347
337
|
# @param [Hash] opts the optional parameters
|
348
|
-
# @return [Array<(nil,
|
338
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
349
339
|
def get_job_progressive_text_with_http_info(name, number, start, opts = {})
|
350
340
|
if @api_client.config.debugging
|
351
|
-
@api_client.config.logger.debug
|
341
|
+
@api_client.config.logger.debug 'Calling API: RemoteAccessApi.get_job_progressive_text ...'
|
352
342
|
end
|
353
343
|
# verify the required parameter 'name' is set
|
354
344
|
if @api_client.config.client_side_validation && name.nil?
|
@@ -363,435 +353,513 @@ module SwaggyJenkinsClient
|
|
363
353
|
fail ArgumentError, "Missing the required parameter 'start' when calling RemoteAccessApi.get_job_progressive_text"
|
364
354
|
end
|
365
355
|
# resource path
|
366
|
-
local_var_path =
|
356
|
+
local_var_path = '/job/{name}/{number}/logText/progressiveText'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'number' + '}', CGI.escape(number.to_s))
|
367
357
|
|
368
358
|
# query parameters
|
369
|
-
query_params = {}
|
359
|
+
query_params = opts[:query_params] || {}
|
370
360
|
query_params[:'start'] = start
|
371
361
|
|
372
362
|
# header parameters
|
373
|
-
header_params = {}
|
363
|
+
header_params = opts[:header_params] || {}
|
374
364
|
|
375
365
|
# form parameters
|
376
|
-
form_params = {}
|
366
|
+
form_params = opts[:form_params] || {}
|
377
367
|
|
378
368
|
# http body (model)
|
379
|
-
post_body =
|
380
|
-
|
381
|
-
|
369
|
+
post_body = opts[:debug_body]
|
370
|
+
|
371
|
+
# return_type
|
372
|
+
return_type = opts[:debug_return_type]
|
373
|
+
|
374
|
+
# auth_names
|
375
|
+
auth_names = opts[:debug_auth_names] || ['jenkins_auth']
|
376
|
+
|
377
|
+
new_options = opts.merge(
|
378
|
+
:operation => :"RemoteAccessApi.get_job_progressive_text",
|
382
379
|
:header_params => header_params,
|
383
380
|
:query_params => query_params,
|
384
381
|
:form_params => form_params,
|
385
382
|
:body => post_body,
|
386
|
-
:auth_names => auth_names
|
383
|
+
:auth_names => auth_names,
|
384
|
+
:return_type => return_type
|
385
|
+
)
|
386
|
+
|
387
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
387
388
|
if @api_client.config.debugging
|
388
389
|
@api_client.config.logger.debug "API called: RemoteAccessApi#get_job_progressive_text\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
389
390
|
end
|
390
391
|
return data, status_code, headers
|
391
392
|
end
|
392
393
|
|
393
|
-
#
|
394
394
|
# Retrieve queue details
|
395
395
|
# @param [Hash] opts the optional parameters
|
396
396
|
# @return [Queue]
|
397
397
|
def get_queue(opts = {})
|
398
398
|
data, _status_code, _headers = get_queue_with_http_info(opts)
|
399
|
-
|
399
|
+
data
|
400
400
|
end
|
401
401
|
|
402
|
-
#
|
403
402
|
# Retrieve queue details
|
404
403
|
# @param [Hash] opts the optional parameters
|
405
|
-
# @return [Array<(Queue,
|
404
|
+
# @return [Array<(Queue, Integer, Hash)>] Queue data, response status code and response headers
|
406
405
|
def get_queue_with_http_info(opts = {})
|
407
406
|
if @api_client.config.debugging
|
408
|
-
@api_client.config.logger.debug
|
407
|
+
@api_client.config.logger.debug 'Calling API: RemoteAccessApi.get_queue ...'
|
409
408
|
end
|
410
409
|
# resource path
|
411
|
-
local_var_path =
|
410
|
+
local_var_path = '/queue/api/json'
|
412
411
|
|
413
412
|
# query parameters
|
414
|
-
query_params = {}
|
413
|
+
query_params = opts[:query_params] || {}
|
415
414
|
|
416
415
|
# header parameters
|
417
|
-
header_params = {}
|
416
|
+
header_params = opts[:header_params] || {}
|
418
417
|
# HTTP header 'Accept' (if needed)
|
419
418
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
420
419
|
|
421
420
|
# form parameters
|
422
|
-
form_params = {}
|
421
|
+
form_params = opts[:form_params] || {}
|
423
422
|
|
424
423
|
# http body (model)
|
425
|
-
post_body =
|
426
|
-
|
427
|
-
|
424
|
+
post_body = opts[:debug_body]
|
425
|
+
|
426
|
+
# return_type
|
427
|
+
return_type = opts[:debug_return_type] || 'Queue'
|
428
|
+
|
429
|
+
# auth_names
|
430
|
+
auth_names = opts[:debug_auth_names] || ['jenkins_auth']
|
431
|
+
|
432
|
+
new_options = opts.merge(
|
433
|
+
:operation => :"RemoteAccessApi.get_queue",
|
428
434
|
:header_params => header_params,
|
429
435
|
:query_params => query_params,
|
430
436
|
:form_params => form_params,
|
431
437
|
:body => post_body,
|
432
438
|
:auth_names => auth_names,
|
433
|
-
:return_type =>
|
439
|
+
:return_type => return_type
|
440
|
+
)
|
441
|
+
|
442
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
434
443
|
if @api_client.config.debugging
|
435
444
|
@api_client.config.logger.debug "API called: RemoteAccessApi#get_queue\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
436
445
|
end
|
437
446
|
return data, status_code, headers
|
438
447
|
end
|
439
448
|
|
440
|
-
#
|
441
449
|
# Retrieve queued item details
|
442
|
-
# @param number Queue number
|
450
|
+
# @param number [String] Queue number
|
443
451
|
# @param [Hash] opts the optional parameters
|
444
452
|
# @return [Queue]
|
445
453
|
def get_queue_item(number, opts = {})
|
446
454
|
data, _status_code, _headers = get_queue_item_with_http_info(number, opts)
|
447
|
-
|
455
|
+
data
|
448
456
|
end
|
449
457
|
|
450
|
-
#
|
451
458
|
# Retrieve queued item details
|
452
|
-
# @param number Queue number
|
459
|
+
# @param number [String] Queue number
|
453
460
|
# @param [Hash] opts the optional parameters
|
454
|
-
# @return [Array<(Queue,
|
461
|
+
# @return [Array<(Queue, Integer, Hash)>] Queue data, response status code and response headers
|
455
462
|
def get_queue_item_with_http_info(number, opts = {})
|
456
463
|
if @api_client.config.debugging
|
457
|
-
@api_client.config.logger.debug
|
464
|
+
@api_client.config.logger.debug 'Calling API: RemoteAccessApi.get_queue_item ...'
|
458
465
|
end
|
459
466
|
# verify the required parameter 'number' is set
|
460
467
|
if @api_client.config.client_side_validation && number.nil?
|
461
468
|
fail ArgumentError, "Missing the required parameter 'number' when calling RemoteAccessApi.get_queue_item"
|
462
469
|
end
|
463
470
|
# resource path
|
464
|
-
local_var_path =
|
471
|
+
local_var_path = '/queue/item/{number}/api/json'.sub('{' + 'number' + '}', CGI.escape(number.to_s))
|
465
472
|
|
466
473
|
# query parameters
|
467
|
-
query_params = {}
|
474
|
+
query_params = opts[:query_params] || {}
|
468
475
|
|
469
476
|
# header parameters
|
470
|
-
header_params = {}
|
477
|
+
header_params = opts[:header_params] || {}
|
471
478
|
# HTTP header 'Accept' (if needed)
|
472
479
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
473
480
|
|
474
481
|
# form parameters
|
475
|
-
form_params = {}
|
482
|
+
form_params = opts[:form_params] || {}
|
476
483
|
|
477
484
|
# http body (model)
|
478
|
-
post_body =
|
479
|
-
|
480
|
-
|
485
|
+
post_body = opts[:debug_body]
|
486
|
+
|
487
|
+
# return_type
|
488
|
+
return_type = opts[:debug_return_type] || 'Queue'
|
489
|
+
|
490
|
+
# auth_names
|
491
|
+
auth_names = opts[:debug_auth_names] || ['jenkins_auth']
|
492
|
+
|
493
|
+
new_options = opts.merge(
|
494
|
+
:operation => :"RemoteAccessApi.get_queue_item",
|
481
495
|
:header_params => header_params,
|
482
496
|
:query_params => query_params,
|
483
497
|
:form_params => form_params,
|
484
498
|
:body => post_body,
|
485
499
|
:auth_names => auth_names,
|
486
|
-
:return_type =>
|
500
|
+
:return_type => return_type
|
501
|
+
)
|
502
|
+
|
503
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
487
504
|
if @api_client.config.debugging
|
488
505
|
@api_client.config.logger.debug "API called: RemoteAccessApi#get_queue_item\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
489
506
|
end
|
490
507
|
return data, status_code, headers
|
491
508
|
end
|
492
509
|
|
493
|
-
#
|
494
510
|
# Retrieve view details
|
495
|
-
# @param name Name of the view
|
511
|
+
# @param name [String] Name of the view
|
496
512
|
# @param [Hash] opts the optional parameters
|
497
513
|
# @return [ListView]
|
498
514
|
def get_view(name, opts = {})
|
499
515
|
data, _status_code, _headers = get_view_with_http_info(name, opts)
|
500
|
-
|
516
|
+
data
|
501
517
|
end
|
502
518
|
|
503
|
-
#
|
504
519
|
# Retrieve view details
|
505
|
-
# @param name Name of the view
|
520
|
+
# @param name [String] Name of the view
|
506
521
|
# @param [Hash] opts the optional parameters
|
507
|
-
# @return [Array<(ListView,
|
522
|
+
# @return [Array<(ListView, Integer, Hash)>] ListView data, response status code and response headers
|
508
523
|
def get_view_with_http_info(name, opts = {})
|
509
524
|
if @api_client.config.debugging
|
510
|
-
@api_client.config.logger.debug
|
525
|
+
@api_client.config.logger.debug 'Calling API: RemoteAccessApi.get_view ...'
|
511
526
|
end
|
512
527
|
# verify the required parameter 'name' is set
|
513
528
|
if @api_client.config.client_side_validation && name.nil?
|
514
529
|
fail ArgumentError, "Missing the required parameter 'name' when calling RemoteAccessApi.get_view"
|
515
530
|
end
|
516
531
|
# resource path
|
517
|
-
local_var_path =
|
532
|
+
local_var_path = '/view/{name}/api/json'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
|
518
533
|
|
519
534
|
# query parameters
|
520
|
-
query_params = {}
|
535
|
+
query_params = opts[:query_params] || {}
|
521
536
|
|
522
537
|
# header parameters
|
523
|
-
header_params = {}
|
538
|
+
header_params = opts[:header_params] || {}
|
524
539
|
# HTTP header 'Accept' (if needed)
|
525
540
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
526
541
|
|
527
542
|
# form parameters
|
528
|
-
form_params = {}
|
543
|
+
form_params = opts[:form_params] || {}
|
529
544
|
|
530
545
|
# http body (model)
|
531
|
-
post_body =
|
532
|
-
|
533
|
-
|
546
|
+
post_body = opts[:debug_body]
|
547
|
+
|
548
|
+
# return_type
|
549
|
+
return_type = opts[:debug_return_type] || 'ListView'
|
550
|
+
|
551
|
+
# auth_names
|
552
|
+
auth_names = opts[:debug_auth_names] || ['jenkins_auth']
|
553
|
+
|
554
|
+
new_options = opts.merge(
|
555
|
+
:operation => :"RemoteAccessApi.get_view",
|
534
556
|
:header_params => header_params,
|
535
557
|
:query_params => query_params,
|
536
558
|
:form_params => form_params,
|
537
559
|
:body => post_body,
|
538
560
|
:auth_names => auth_names,
|
539
|
-
:return_type =>
|
561
|
+
:return_type => return_type
|
562
|
+
)
|
563
|
+
|
564
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
540
565
|
if @api_client.config.debugging
|
541
566
|
@api_client.config.logger.debug "API called: RemoteAccessApi#get_view\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
542
567
|
end
|
543
568
|
return data, status_code, headers
|
544
569
|
end
|
545
570
|
|
546
|
-
#
|
547
571
|
# Retrieve view configuration
|
548
|
-
# @param name Name of the view
|
572
|
+
# @param name [String] Name of the view
|
549
573
|
# @param [Hash] opts the optional parameters
|
550
574
|
# @return [String]
|
551
575
|
def get_view_config(name, opts = {})
|
552
576
|
data, _status_code, _headers = get_view_config_with_http_info(name, opts)
|
553
|
-
|
577
|
+
data
|
554
578
|
end
|
555
579
|
|
556
|
-
#
|
557
580
|
# Retrieve view configuration
|
558
|
-
# @param name Name of the view
|
581
|
+
# @param name [String] Name of the view
|
559
582
|
# @param [Hash] opts the optional parameters
|
560
|
-
# @return [Array<(String,
|
583
|
+
# @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
|
561
584
|
def get_view_config_with_http_info(name, opts = {})
|
562
585
|
if @api_client.config.debugging
|
563
|
-
@api_client.config.logger.debug
|
586
|
+
@api_client.config.logger.debug 'Calling API: RemoteAccessApi.get_view_config ...'
|
564
587
|
end
|
565
588
|
# verify the required parameter 'name' is set
|
566
589
|
if @api_client.config.client_side_validation && name.nil?
|
567
590
|
fail ArgumentError, "Missing the required parameter 'name' when calling RemoteAccessApi.get_view_config"
|
568
591
|
end
|
569
592
|
# resource path
|
570
|
-
local_var_path =
|
593
|
+
local_var_path = '/view/{name}/config.xml'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
|
571
594
|
|
572
595
|
# query parameters
|
573
|
-
query_params = {}
|
596
|
+
query_params = opts[:query_params] || {}
|
574
597
|
|
575
598
|
# header parameters
|
576
|
-
header_params = {}
|
599
|
+
header_params = opts[:header_params] || {}
|
577
600
|
# HTTP header 'Accept' (if needed)
|
578
601
|
header_params['Accept'] = @api_client.select_header_accept(['text/xml'])
|
579
602
|
|
580
603
|
# form parameters
|
581
|
-
form_params = {}
|
604
|
+
form_params = opts[:form_params] || {}
|
582
605
|
|
583
606
|
# http body (model)
|
584
|
-
post_body =
|
585
|
-
|
586
|
-
|
607
|
+
post_body = opts[:debug_body]
|
608
|
+
|
609
|
+
# return_type
|
610
|
+
return_type = opts[:debug_return_type] || 'String'
|
611
|
+
|
612
|
+
# auth_names
|
613
|
+
auth_names = opts[:debug_auth_names] || ['jenkins_auth']
|
614
|
+
|
615
|
+
new_options = opts.merge(
|
616
|
+
:operation => :"RemoteAccessApi.get_view_config",
|
587
617
|
:header_params => header_params,
|
588
618
|
:query_params => query_params,
|
589
619
|
:form_params => form_params,
|
590
620
|
:body => post_body,
|
591
621
|
:auth_names => auth_names,
|
592
|
-
:return_type =>
|
622
|
+
:return_type => return_type
|
623
|
+
)
|
624
|
+
|
625
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
593
626
|
if @api_client.config.debugging
|
594
627
|
@api_client.config.logger.debug "API called: RemoteAccessApi#get_view_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
595
628
|
end
|
596
629
|
return data, status_code, headers
|
597
630
|
end
|
598
631
|
|
599
|
-
#
|
600
632
|
# Retrieve Jenkins headers
|
601
633
|
# @param [Hash] opts the optional parameters
|
602
634
|
# @return [nil]
|
603
635
|
def head_jenkins(opts = {})
|
604
636
|
head_jenkins_with_http_info(opts)
|
605
|
-
|
637
|
+
nil
|
606
638
|
end
|
607
639
|
|
608
|
-
#
|
609
640
|
# Retrieve Jenkins headers
|
610
641
|
# @param [Hash] opts the optional parameters
|
611
|
-
# @return [Array<(nil,
|
642
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
612
643
|
def head_jenkins_with_http_info(opts = {})
|
613
644
|
if @api_client.config.debugging
|
614
|
-
@api_client.config.logger.debug
|
645
|
+
@api_client.config.logger.debug 'Calling API: RemoteAccessApi.head_jenkins ...'
|
615
646
|
end
|
616
647
|
# resource path
|
617
|
-
local_var_path =
|
648
|
+
local_var_path = '/api/json'
|
618
649
|
|
619
650
|
# query parameters
|
620
|
-
query_params = {}
|
651
|
+
query_params = opts[:query_params] || {}
|
621
652
|
|
622
653
|
# header parameters
|
623
|
-
header_params = {}
|
654
|
+
header_params = opts[:header_params] || {}
|
624
655
|
|
625
656
|
# form parameters
|
626
|
-
form_params = {}
|
657
|
+
form_params = opts[:form_params] || {}
|
627
658
|
|
628
659
|
# http body (model)
|
629
|
-
post_body =
|
630
|
-
|
631
|
-
|
660
|
+
post_body = opts[:debug_body]
|
661
|
+
|
662
|
+
# return_type
|
663
|
+
return_type = opts[:debug_return_type]
|
664
|
+
|
665
|
+
# auth_names
|
666
|
+
auth_names = opts[:debug_auth_names] || ['jenkins_auth']
|
667
|
+
|
668
|
+
new_options = opts.merge(
|
669
|
+
:operation => :"RemoteAccessApi.head_jenkins",
|
632
670
|
:header_params => header_params,
|
633
671
|
:query_params => query_params,
|
634
672
|
:form_params => form_params,
|
635
673
|
:body => post_body,
|
636
|
-
:auth_names => auth_names
|
674
|
+
:auth_names => auth_names,
|
675
|
+
:return_type => return_type
|
676
|
+
)
|
677
|
+
|
678
|
+
data, status_code, headers = @api_client.call_api(:HEAD, local_var_path, new_options)
|
637
679
|
if @api_client.config.debugging
|
638
680
|
@api_client.config.logger.debug "API called: RemoteAccessApi#head_jenkins\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
639
681
|
end
|
640
682
|
return data, status_code, headers
|
641
683
|
end
|
642
684
|
|
643
|
-
#
|
644
685
|
# Create a new job using job configuration, or copied from an existing job
|
645
|
-
# @param name Name of the new job
|
686
|
+
# @param name [String] Name of the new job
|
646
687
|
# @param [Hash] opts the optional parameters
|
647
688
|
# @option opts [String] :from Existing job to copy from
|
648
689
|
# @option opts [String] :mode Set to 'copy' for copying an existing job
|
649
|
-
# @option opts [String] :body Job configuration in config.xml format
|
650
690
|
# @option opts [String] :jenkins_crumb CSRF protection token
|
651
691
|
# @option opts [String] :content_type Content type header application/xml
|
692
|
+
# @option opts [String] :body Job configuration in config.xml format
|
652
693
|
# @return [nil]
|
653
694
|
def post_create_item(name, opts = {})
|
654
695
|
post_create_item_with_http_info(name, opts)
|
655
|
-
|
696
|
+
nil
|
656
697
|
end
|
657
698
|
|
658
|
-
#
|
659
699
|
# Create a new job using job configuration, or copied from an existing job
|
660
|
-
# @param name Name of the new job
|
700
|
+
# @param name [String] Name of the new job
|
661
701
|
# @param [Hash] opts the optional parameters
|
662
702
|
# @option opts [String] :from Existing job to copy from
|
663
703
|
# @option opts [String] :mode Set to 'copy' for copying an existing job
|
664
|
-
# @option opts [String] :body Job configuration in config.xml format
|
665
704
|
# @option opts [String] :jenkins_crumb CSRF protection token
|
666
705
|
# @option opts [String] :content_type Content type header application/xml
|
667
|
-
# @
|
706
|
+
# @option opts [String] :body Job configuration in config.xml format
|
707
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
668
708
|
def post_create_item_with_http_info(name, opts = {})
|
669
709
|
if @api_client.config.debugging
|
670
|
-
@api_client.config.logger.debug
|
710
|
+
@api_client.config.logger.debug 'Calling API: RemoteAccessApi.post_create_item ...'
|
671
711
|
end
|
672
712
|
# verify the required parameter 'name' is set
|
673
713
|
if @api_client.config.client_side_validation && name.nil?
|
674
714
|
fail ArgumentError, "Missing the required parameter 'name' when calling RemoteAccessApi.post_create_item"
|
675
715
|
end
|
676
716
|
# resource path
|
677
|
-
local_var_path =
|
717
|
+
local_var_path = '/createItem'
|
678
718
|
|
679
719
|
# query parameters
|
680
|
-
query_params = {}
|
720
|
+
query_params = opts[:query_params] || {}
|
681
721
|
query_params[:'name'] = name
|
682
722
|
query_params[:'from'] = opts[:'from'] if !opts[:'from'].nil?
|
683
723
|
query_params[:'mode'] = opts[:'mode'] if !opts[:'mode'].nil?
|
684
724
|
|
685
725
|
# header parameters
|
686
|
-
header_params = {}
|
726
|
+
header_params = opts[:header_params] || {}
|
687
727
|
# HTTP header 'Accept' (if needed)
|
688
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
728
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
729
|
+
# HTTP header 'Content-Type'
|
730
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
731
|
+
if !content_type.nil?
|
732
|
+
header_params['Content-Type'] = content_type
|
733
|
+
end
|
689
734
|
header_params[:'Jenkins-Crumb'] = opts[:'jenkins_crumb'] if !opts[:'jenkins_crumb'].nil?
|
690
735
|
header_params[:'Content-Type'] = opts[:'content_type'] if !opts[:'content_type'].nil?
|
691
736
|
|
692
737
|
# form parameters
|
693
|
-
form_params = {}
|
738
|
+
form_params = opts[:form_params] || {}
|
694
739
|
|
695
740
|
# http body (model)
|
696
|
-
post_body = @api_client.object_to_http_body(opts[:'body'])
|
697
|
-
|
698
|
-
|
741
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body'])
|
742
|
+
|
743
|
+
# return_type
|
744
|
+
return_type = opts[:debug_return_type]
|
745
|
+
|
746
|
+
# auth_names
|
747
|
+
auth_names = opts[:debug_auth_names] || ['jenkins_auth']
|
748
|
+
|
749
|
+
new_options = opts.merge(
|
750
|
+
:operation => :"RemoteAccessApi.post_create_item",
|
699
751
|
:header_params => header_params,
|
700
752
|
:query_params => query_params,
|
701
753
|
:form_params => form_params,
|
702
754
|
:body => post_body,
|
703
|
-
:auth_names => auth_names
|
755
|
+
:auth_names => auth_names,
|
756
|
+
:return_type => return_type
|
757
|
+
)
|
758
|
+
|
759
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
704
760
|
if @api_client.config.debugging
|
705
761
|
@api_client.config.logger.debug "API called: RemoteAccessApi#post_create_item\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
706
762
|
end
|
707
763
|
return data, status_code, headers
|
708
764
|
end
|
709
765
|
|
710
|
-
#
|
711
766
|
# Create a new view using view configuration
|
712
|
-
# @param name Name of the new view
|
767
|
+
# @param name [String] Name of the new view
|
713
768
|
# @param [Hash] opts the optional parameters
|
714
|
-
# @option opts [String] :body View configuration in config.xml format
|
715
769
|
# @option opts [String] :jenkins_crumb CSRF protection token
|
716
770
|
# @option opts [String] :content_type Content type header application/xml
|
771
|
+
# @option opts [String] :body View configuration in config.xml format
|
717
772
|
# @return [nil]
|
718
773
|
def post_create_view(name, opts = {})
|
719
774
|
post_create_view_with_http_info(name, opts)
|
720
|
-
|
775
|
+
nil
|
721
776
|
end
|
722
777
|
|
723
|
-
#
|
724
778
|
# Create a new view using view configuration
|
725
|
-
# @param name Name of the new view
|
779
|
+
# @param name [String] Name of the new view
|
726
780
|
# @param [Hash] opts the optional parameters
|
727
|
-
# @option opts [String] :body View configuration in config.xml format
|
728
781
|
# @option opts [String] :jenkins_crumb CSRF protection token
|
729
782
|
# @option opts [String] :content_type Content type header application/xml
|
730
|
-
# @
|
783
|
+
# @option opts [String] :body View configuration in config.xml format
|
784
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
731
785
|
def post_create_view_with_http_info(name, opts = {})
|
732
786
|
if @api_client.config.debugging
|
733
|
-
@api_client.config.logger.debug
|
787
|
+
@api_client.config.logger.debug 'Calling API: RemoteAccessApi.post_create_view ...'
|
734
788
|
end
|
735
789
|
# verify the required parameter 'name' is set
|
736
790
|
if @api_client.config.client_side_validation && name.nil?
|
737
791
|
fail ArgumentError, "Missing the required parameter 'name' when calling RemoteAccessApi.post_create_view"
|
738
792
|
end
|
739
793
|
# resource path
|
740
|
-
local_var_path =
|
794
|
+
local_var_path = '/createView'
|
741
795
|
|
742
796
|
# query parameters
|
743
|
-
query_params = {}
|
797
|
+
query_params = opts[:query_params] || {}
|
744
798
|
query_params[:'name'] = name
|
745
799
|
|
746
800
|
# header parameters
|
747
|
-
header_params = {}
|
801
|
+
header_params = opts[:header_params] || {}
|
748
802
|
# HTTP header 'Accept' (if needed)
|
749
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
803
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
804
|
+
# HTTP header 'Content-Type'
|
805
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
806
|
+
if !content_type.nil?
|
807
|
+
header_params['Content-Type'] = content_type
|
808
|
+
end
|
750
809
|
header_params[:'Jenkins-Crumb'] = opts[:'jenkins_crumb'] if !opts[:'jenkins_crumb'].nil?
|
751
810
|
header_params[:'Content-Type'] = opts[:'content_type'] if !opts[:'content_type'].nil?
|
752
811
|
|
753
812
|
# form parameters
|
754
|
-
form_params = {}
|
813
|
+
form_params = opts[:form_params] || {}
|
755
814
|
|
756
815
|
# http body (model)
|
757
|
-
post_body = @api_client.object_to_http_body(opts[:'body'])
|
758
|
-
|
759
|
-
|
816
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body'])
|
817
|
+
|
818
|
+
# return_type
|
819
|
+
return_type = opts[:debug_return_type]
|
820
|
+
|
821
|
+
# auth_names
|
822
|
+
auth_names = opts[:debug_auth_names] || ['jenkins_auth']
|
823
|
+
|
824
|
+
new_options = opts.merge(
|
825
|
+
:operation => :"RemoteAccessApi.post_create_view",
|
760
826
|
:header_params => header_params,
|
761
827
|
:query_params => query_params,
|
762
828
|
:form_params => form_params,
|
763
829
|
:body => post_body,
|
764
|
-
:auth_names => auth_names
|
830
|
+
:auth_names => auth_names,
|
831
|
+
:return_type => return_type
|
832
|
+
)
|
833
|
+
|
834
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
765
835
|
if @api_client.config.debugging
|
766
836
|
@api_client.config.logger.debug "API called: RemoteAccessApi#post_create_view\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
767
837
|
end
|
768
838
|
return data, status_code, headers
|
769
839
|
end
|
770
840
|
|
771
|
-
#
|
772
841
|
# Build a job
|
773
|
-
# @param name Name of the job
|
774
|
-
# @param json
|
842
|
+
# @param name [String] Name of the job
|
843
|
+
# @param json [String]
|
775
844
|
# @param [Hash] opts the optional parameters
|
776
845
|
# @option opts [String] :token
|
777
846
|
# @option opts [String] :jenkins_crumb CSRF protection token
|
778
847
|
# @return [nil]
|
779
848
|
def post_job_build(name, json, opts = {})
|
780
849
|
post_job_build_with_http_info(name, json, opts)
|
781
|
-
|
850
|
+
nil
|
782
851
|
end
|
783
852
|
|
784
|
-
#
|
785
853
|
# Build a job
|
786
|
-
# @param name Name of the job
|
787
|
-
# @param json
|
854
|
+
# @param name [String] Name of the job
|
855
|
+
# @param json [String]
|
788
856
|
# @param [Hash] opts the optional parameters
|
789
857
|
# @option opts [String] :token
|
790
858
|
# @option opts [String] :jenkins_crumb CSRF protection token
|
791
|
-
# @return [Array<(nil,
|
859
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
792
860
|
def post_job_build_with_http_info(name, json, opts = {})
|
793
861
|
if @api_client.config.debugging
|
794
|
-
@api_client.config.logger.debug
|
862
|
+
@api_client.config.logger.debug 'Calling API: RemoteAccessApi.post_job_build ...'
|
795
863
|
end
|
796
864
|
# verify the required parameter 'name' is set
|
797
865
|
if @api_client.config.client_side_validation && name.nil?
|
@@ -802,57 +870,66 @@ module SwaggyJenkinsClient
|
|
802
870
|
fail ArgumentError, "Missing the required parameter 'json' when calling RemoteAccessApi.post_job_build"
|
803
871
|
end
|
804
872
|
# resource path
|
805
|
-
local_var_path =
|
873
|
+
local_var_path = '/job/{name}/build'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
|
806
874
|
|
807
875
|
# query parameters
|
808
|
-
query_params = {}
|
876
|
+
query_params = opts[:query_params] || {}
|
809
877
|
query_params[:'json'] = json
|
810
878
|
query_params[:'token'] = opts[:'token'] if !opts[:'token'].nil?
|
811
879
|
|
812
880
|
# header parameters
|
813
|
-
header_params = {}
|
881
|
+
header_params = opts[:header_params] || {}
|
814
882
|
header_params[:'Jenkins-Crumb'] = opts[:'jenkins_crumb'] if !opts[:'jenkins_crumb'].nil?
|
815
883
|
|
816
884
|
# form parameters
|
817
|
-
form_params = {}
|
885
|
+
form_params = opts[:form_params] || {}
|
818
886
|
|
819
887
|
# http body (model)
|
820
|
-
post_body =
|
821
|
-
|
822
|
-
|
888
|
+
post_body = opts[:debug_body]
|
889
|
+
|
890
|
+
# return_type
|
891
|
+
return_type = opts[:debug_return_type]
|
892
|
+
|
893
|
+
# auth_names
|
894
|
+
auth_names = opts[:debug_auth_names] || ['jenkins_auth']
|
895
|
+
|
896
|
+
new_options = opts.merge(
|
897
|
+
:operation => :"RemoteAccessApi.post_job_build",
|
823
898
|
:header_params => header_params,
|
824
899
|
:query_params => query_params,
|
825
900
|
:form_params => form_params,
|
826
901
|
:body => post_body,
|
827
|
-
:auth_names => auth_names
|
902
|
+
:auth_names => auth_names,
|
903
|
+
:return_type => return_type
|
904
|
+
)
|
905
|
+
|
906
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
828
907
|
if @api_client.config.debugging
|
829
908
|
@api_client.config.logger.debug "API called: RemoteAccessApi#post_job_build\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
830
909
|
end
|
831
910
|
return data, status_code, headers
|
832
911
|
end
|
833
912
|
|
834
|
-
#
|
835
913
|
# Update job configuration
|
836
|
-
# @param name Name of the job
|
837
|
-
# @param body Job configuration in config.xml format
|
914
|
+
# @param name [String] Name of the job
|
915
|
+
# @param body [String] Job configuration in config.xml format
|
838
916
|
# @param [Hash] opts the optional parameters
|
839
917
|
# @option opts [String] :jenkins_crumb CSRF protection token
|
840
918
|
# @return [nil]
|
841
919
|
def post_job_config(name, body, opts = {})
|
842
920
|
post_job_config_with_http_info(name, body, opts)
|
843
|
-
|
921
|
+
nil
|
844
922
|
end
|
845
923
|
|
846
|
-
#
|
847
924
|
# Update job configuration
|
848
|
-
# @param name Name of the job
|
849
|
-
# @param body Job configuration in config.xml format
|
925
|
+
# @param name [String] Name of the job
|
926
|
+
# @param body [String] Job configuration in config.xml format
|
850
927
|
# @param [Hash] opts the optional parameters
|
851
928
|
# @option opts [String] :jenkins_crumb CSRF protection token
|
852
|
-
# @return [Array<(nil,
|
929
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
853
930
|
def post_job_config_with_http_info(name, body, opts = {})
|
854
931
|
if @api_client.config.debugging
|
855
|
-
@api_client.config.logger.debug
|
932
|
+
@api_client.config.logger.debug 'Calling API: RemoteAccessApi.post_job_config ...'
|
856
933
|
end
|
857
934
|
# verify the required parameter 'name' is set
|
858
935
|
if @api_client.config.client_side_validation && name.nil?
|
@@ -863,269 +940,319 @@ module SwaggyJenkinsClient
|
|
863
940
|
fail ArgumentError, "Missing the required parameter 'body' when calling RemoteAccessApi.post_job_config"
|
864
941
|
end
|
865
942
|
# resource path
|
866
|
-
local_var_path =
|
943
|
+
local_var_path = '/job/{name}/config.xml'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
|
867
944
|
|
868
945
|
# query parameters
|
869
|
-
query_params = {}
|
946
|
+
query_params = opts[:query_params] || {}
|
870
947
|
|
871
948
|
# header parameters
|
872
|
-
header_params = {}
|
949
|
+
header_params = opts[:header_params] || {}
|
873
950
|
# HTTP header 'Accept' (if needed)
|
874
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
951
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
952
|
+
# HTTP header 'Content-Type'
|
953
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
954
|
+
if !content_type.nil?
|
955
|
+
header_params['Content-Type'] = content_type
|
956
|
+
end
|
875
957
|
header_params[:'Jenkins-Crumb'] = opts[:'jenkins_crumb'] if !opts[:'jenkins_crumb'].nil?
|
876
958
|
|
877
959
|
# form parameters
|
878
|
-
form_params = {}
|
960
|
+
form_params = opts[:form_params] || {}
|
879
961
|
|
880
962
|
# http body (model)
|
881
|
-
post_body = @api_client.object_to_http_body(body)
|
882
|
-
|
883
|
-
|
963
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
964
|
+
|
965
|
+
# return_type
|
966
|
+
return_type = opts[:debug_return_type]
|
967
|
+
|
968
|
+
# auth_names
|
969
|
+
auth_names = opts[:debug_auth_names] || ['jenkins_auth']
|
970
|
+
|
971
|
+
new_options = opts.merge(
|
972
|
+
:operation => :"RemoteAccessApi.post_job_config",
|
884
973
|
:header_params => header_params,
|
885
974
|
:query_params => query_params,
|
886
975
|
:form_params => form_params,
|
887
976
|
:body => post_body,
|
888
|
-
:auth_names => auth_names
|
977
|
+
:auth_names => auth_names,
|
978
|
+
:return_type => return_type
|
979
|
+
)
|
980
|
+
|
981
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
889
982
|
if @api_client.config.debugging
|
890
983
|
@api_client.config.logger.debug "API called: RemoteAccessApi#post_job_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
891
984
|
end
|
892
985
|
return data, status_code, headers
|
893
986
|
end
|
894
987
|
|
895
|
-
#
|
896
988
|
# Delete a job
|
897
|
-
# @param name Name of the job
|
989
|
+
# @param name [String] Name of the job
|
898
990
|
# @param [Hash] opts the optional parameters
|
899
991
|
# @option opts [String] :jenkins_crumb CSRF protection token
|
900
992
|
# @return [nil]
|
901
993
|
def post_job_delete(name, opts = {})
|
902
994
|
post_job_delete_with_http_info(name, opts)
|
903
|
-
|
995
|
+
nil
|
904
996
|
end
|
905
997
|
|
906
|
-
#
|
907
998
|
# Delete a job
|
908
|
-
# @param name Name of the job
|
999
|
+
# @param name [String] Name of the job
|
909
1000
|
# @param [Hash] opts the optional parameters
|
910
1001
|
# @option opts [String] :jenkins_crumb CSRF protection token
|
911
|
-
# @return [Array<(nil,
|
1002
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
912
1003
|
def post_job_delete_with_http_info(name, opts = {})
|
913
1004
|
if @api_client.config.debugging
|
914
|
-
@api_client.config.logger.debug
|
1005
|
+
@api_client.config.logger.debug 'Calling API: RemoteAccessApi.post_job_delete ...'
|
915
1006
|
end
|
916
1007
|
# verify the required parameter 'name' is set
|
917
1008
|
if @api_client.config.client_side_validation && name.nil?
|
918
1009
|
fail ArgumentError, "Missing the required parameter 'name' when calling RemoteAccessApi.post_job_delete"
|
919
1010
|
end
|
920
1011
|
# resource path
|
921
|
-
local_var_path =
|
1012
|
+
local_var_path = '/job/{name}/doDelete'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
|
922
1013
|
|
923
1014
|
# query parameters
|
924
|
-
query_params = {}
|
1015
|
+
query_params = opts[:query_params] || {}
|
925
1016
|
|
926
1017
|
# header parameters
|
927
|
-
header_params = {}
|
1018
|
+
header_params = opts[:header_params] || {}
|
928
1019
|
header_params[:'Jenkins-Crumb'] = opts[:'jenkins_crumb'] if !opts[:'jenkins_crumb'].nil?
|
929
1020
|
|
930
1021
|
# form parameters
|
931
|
-
form_params = {}
|
1022
|
+
form_params = opts[:form_params] || {}
|
932
1023
|
|
933
1024
|
# http body (model)
|
934
|
-
post_body =
|
935
|
-
|
936
|
-
|
1025
|
+
post_body = opts[:debug_body]
|
1026
|
+
|
1027
|
+
# return_type
|
1028
|
+
return_type = opts[:debug_return_type]
|
1029
|
+
|
1030
|
+
# auth_names
|
1031
|
+
auth_names = opts[:debug_auth_names] || ['jenkins_auth']
|
1032
|
+
|
1033
|
+
new_options = opts.merge(
|
1034
|
+
:operation => :"RemoteAccessApi.post_job_delete",
|
937
1035
|
:header_params => header_params,
|
938
1036
|
:query_params => query_params,
|
939
1037
|
:form_params => form_params,
|
940
1038
|
:body => post_body,
|
941
|
-
:auth_names => auth_names
|
1039
|
+
:auth_names => auth_names,
|
1040
|
+
:return_type => return_type
|
1041
|
+
)
|
1042
|
+
|
1043
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
942
1044
|
if @api_client.config.debugging
|
943
1045
|
@api_client.config.logger.debug "API called: RemoteAccessApi#post_job_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
944
1046
|
end
|
945
1047
|
return data, status_code, headers
|
946
1048
|
end
|
947
1049
|
|
948
|
-
#
|
949
1050
|
# Disable a job
|
950
|
-
# @param name Name of the job
|
1051
|
+
# @param name [String] Name of the job
|
951
1052
|
# @param [Hash] opts the optional parameters
|
952
1053
|
# @option opts [String] :jenkins_crumb CSRF protection token
|
953
1054
|
# @return [nil]
|
954
1055
|
def post_job_disable(name, opts = {})
|
955
1056
|
post_job_disable_with_http_info(name, opts)
|
956
|
-
|
1057
|
+
nil
|
957
1058
|
end
|
958
1059
|
|
959
|
-
#
|
960
1060
|
# Disable a job
|
961
|
-
# @param name Name of the job
|
1061
|
+
# @param name [String] Name of the job
|
962
1062
|
# @param [Hash] opts the optional parameters
|
963
1063
|
# @option opts [String] :jenkins_crumb CSRF protection token
|
964
|
-
# @return [Array<(nil,
|
1064
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
965
1065
|
def post_job_disable_with_http_info(name, opts = {})
|
966
1066
|
if @api_client.config.debugging
|
967
|
-
@api_client.config.logger.debug
|
1067
|
+
@api_client.config.logger.debug 'Calling API: RemoteAccessApi.post_job_disable ...'
|
968
1068
|
end
|
969
1069
|
# verify the required parameter 'name' is set
|
970
1070
|
if @api_client.config.client_side_validation && name.nil?
|
971
1071
|
fail ArgumentError, "Missing the required parameter 'name' when calling RemoteAccessApi.post_job_disable"
|
972
1072
|
end
|
973
1073
|
# resource path
|
974
|
-
local_var_path =
|
1074
|
+
local_var_path = '/job/{name}/disable'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
|
975
1075
|
|
976
1076
|
# query parameters
|
977
|
-
query_params = {}
|
1077
|
+
query_params = opts[:query_params] || {}
|
978
1078
|
|
979
1079
|
# header parameters
|
980
|
-
header_params = {}
|
1080
|
+
header_params = opts[:header_params] || {}
|
981
1081
|
header_params[:'Jenkins-Crumb'] = opts[:'jenkins_crumb'] if !opts[:'jenkins_crumb'].nil?
|
982
1082
|
|
983
1083
|
# form parameters
|
984
|
-
form_params = {}
|
1084
|
+
form_params = opts[:form_params] || {}
|
985
1085
|
|
986
1086
|
# http body (model)
|
987
|
-
post_body =
|
988
|
-
|
989
|
-
|
1087
|
+
post_body = opts[:debug_body]
|
1088
|
+
|
1089
|
+
# return_type
|
1090
|
+
return_type = opts[:debug_return_type]
|
1091
|
+
|
1092
|
+
# auth_names
|
1093
|
+
auth_names = opts[:debug_auth_names] || ['jenkins_auth']
|
1094
|
+
|
1095
|
+
new_options = opts.merge(
|
1096
|
+
:operation => :"RemoteAccessApi.post_job_disable",
|
990
1097
|
:header_params => header_params,
|
991
1098
|
:query_params => query_params,
|
992
1099
|
:form_params => form_params,
|
993
1100
|
:body => post_body,
|
994
|
-
:auth_names => auth_names
|
1101
|
+
:auth_names => auth_names,
|
1102
|
+
:return_type => return_type
|
1103
|
+
)
|
1104
|
+
|
1105
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
995
1106
|
if @api_client.config.debugging
|
996
1107
|
@api_client.config.logger.debug "API called: RemoteAccessApi#post_job_disable\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
997
1108
|
end
|
998
1109
|
return data, status_code, headers
|
999
1110
|
end
|
1000
1111
|
|
1001
|
-
#
|
1002
1112
|
# Enable a job
|
1003
|
-
# @param name Name of the job
|
1113
|
+
# @param name [String] Name of the job
|
1004
1114
|
# @param [Hash] opts the optional parameters
|
1005
1115
|
# @option opts [String] :jenkins_crumb CSRF protection token
|
1006
1116
|
# @return [nil]
|
1007
1117
|
def post_job_enable(name, opts = {})
|
1008
1118
|
post_job_enable_with_http_info(name, opts)
|
1009
|
-
|
1119
|
+
nil
|
1010
1120
|
end
|
1011
1121
|
|
1012
|
-
#
|
1013
1122
|
# Enable a job
|
1014
|
-
# @param name Name of the job
|
1123
|
+
# @param name [String] Name of the job
|
1015
1124
|
# @param [Hash] opts the optional parameters
|
1016
1125
|
# @option opts [String] :jenkins_crumb CSRF protection token
|
1017
|
-
# @return [Array<(nil,
|
1126
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
1018
1127
|
def post_job_enable_with_http_info(name, opts = {})
|
1019
1128
|
if @api_client.config.debugging
|
1020
|
-
@api_client.config.logger.debug
|
1129
|
+
@api_client.config.logger.debug 'Calling API: RemoteAccessApi.post_job_enable ...'
|
1021
1130
|
end
|
1022
1131
|
# verify the required parameter 'name' is set
|
1023
1132
|
if @api_client.config.client_side_validation && name.nil?
|
1024
1133
|
fail ArgumentError, "Missing the required parameter 'name' when calling RemoteAccessApi.post_job_enable"
|
1025
1134
|
end
|
1026
1135
|
# resource path
|
1027
|
-
local_var_path =
|
1136
|
+
local_var_path = '/job/{name}/enable'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
|
1028
1137
|
|
1029
1138
|
# query parameters
|
1030
|
-
query_params = {}
|
1139
|
+
query_params = opts[:query_params] || {}
|
1031
1140
|
|
1032
1141
|
# header parameters
|
1033
|
-
header_params = {}
|
1142
|
+
header_params = opts[:header_params] || {}
|
1034
1143
|
header_params[:'Jenkins-Crumb'] = opts[:'jenkins_crumb'] if !opts[:'jenkins_crumb'].nil?
|
1035
1144
|
|
1036
1145
|
# form parameters
|
1037
|
-
form_params = {}
|
1146
|
+
form_params = opts[:form_params] || {}
|
1038
1147
|
|
1039
1148
|
# http body (model)
|
1040
|
-
post_body =
|
1041
|
-
|
1042
|
-
|
1149
|
+
post_body = opts[:debug_body]
|
1150
|
+
|
1151
|
+
# return_type
|
1152
|
+
return_type = opts[:debug_return_type]
|
1153
|
+
|
1154
|
+
# auth_names
|
1155
|
+
auth_names = opts[:debug_auth_names] || ['jenkins_auth']
|
1156
|
+
|
1157
|
+
new_options = opts.merge(
|
1158
|
+
:operation => :"RemoteAccessApi.post_job_enable",
|
1043
1159
|
:header_params => header_params,
|
1044
1160
|
:query_params => query_params,
|
1045
1161
|
:form_params => form_params,
|
1046
1162
|
:body => post_body,
|
1047
|
-
:auth_names => auth_names
|
1163
|
+
:auth_names => auth_names,
|
1164
|
+
:return_type => return_type
|
1165
|
+
)
|
1166
|
+
|
1167
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
1048
1168
|
if @api_client.config.debugging
|
1049
1169
|
@api_client.config.logger.debug "API called: RemoteAccessApi#post_job_enable\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1050
1170
|
end
|
1051
1171
|
return data, status_code, headers
|
1052
1172
|
end
|
1053
1173
|
|
1054
|
-
#
|
1055
1174
|
# Stop a job
|
1056
|
-
# @param name Name of the job
|
1175
|
+
# @param name [String] Name of the job
|
1057
1176
|
# @param [Hash] opts the optional parameters
|
1058
1177
|
# @option opts [String] :jenkins_crumb CSRF protection token
|
1059
1178
|
# @return [nil]
|
1060
1179
|
def post_job_last_build_stop(name, opts = {})
|
1061
1180
|
post_job_last_build_stop_with_http_info(name, opts)
|
1062
|
-
|
1181
|
+
nil
|
1063
1182
|
end
|
1064
1183
|
|
1065
|
-
#
|
1066
1184
|
# Stop a job
|
1067
|
-
# @param name Name of the job
|
1185
|
+
# @param name [String] Name of the job
|
1068
1186
|
# @param [Hash] opts the optional parameters
|
1069
1187
|
# @option opts [String] :jenkins_crumb CSRF protection token
|
1070
|
-
# @return [Array<(nil,
|
1188
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
1071
1189
|
def post_job_last_build_stop_with_http_info(name, opts = {})
|
1072
1190
|
if @api_client.config.debugging
|
1073
|
-
@api_client.config.logger.debug
|
1191
|
+
@api_client.config.logger.debug 'Calling API: RemoteAccessApi.post_job_last_build_stop ...'
|
1074
1192
|
end
|
1075
1193
|
# verify the required parameter 'name' is set
|
1076
1194
|
if @api_client.config.client_side_validation && name.nil?
|
1077
1195
|
fail ArgumentError, "Missing the required parameter 'name' when calling RemoteAccessApi.post_job_last_build_stop"
|
1078
1196
|
end
|
1079
1197
|
# resource path
|
1080
|
-
local_var_path =
|
1198
|
+
local_var_path = '/job/{name}/lastBuild/stop'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
|
1081
1199
|
|
1082
1200
|
# query parameters
|
1083
|
-
query_params = {}
|
1201
|
+
query_params = opts[:query_params] || {}
|
1084
1202
|
|
1085
1203
|
# header parameters
|
1086
|
-
header_params = {}
|
1204
|
+
header_params = opts[:header_params] || {}
|
1087
1205
|
header_params[:'Jenkins-Crumb'] = opts[:'jenkins_crumb'] if !opts[:'jenkins_crumb'].nil?
|
1088
1206
|
|
1089
1207
|
# form parameters
|
1090
|
-
form_params = {}
|
1208
|
+
form_params = opts[:form_params] || {}
|
1091
1209
|
|
1092
1210
|
# http body (model)
|
1093
|
-
post_body =
|
1094
|
-
|
1095
|
-
|
1211
|
+
post_body = opts[:debug_body]
|
1212
|
+
|
1213
|
+
# return_type
|
1214
|
+
return_type = opts[:debug_return_type]
|
1215
|
+
|
1216
|
+
# auth_names
|
1217
|
+
auth_names = opts[:debug_auth_names] || ['jenkins_auth']
|
1218
|
+
|
1219
|
+
new_options = opts.merge(
|
1220
|
+
:operation => :"RemoteAccessApi.post_job_last_build_stop",
|
1096
1221
|
:header_params => header_params,
|
1097
1222
|
:query_params => query_params,
|
1098
1223
|
:form_params => form_params,
|
1099
1224
|
:body => post_body,
|
1100
|
-
:auth_names => auth_names
|
1225
|
+
:auth_names => auth_names,
|
1226
|
+
:return_type => return_type
|
1227
|
+
)
|
1228
|
+
|
1229
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
1101
1230
|
if @api_client.config.debugging
|
1102
1231
|
@api_client.config.logger.debug "API called: RemoteAccessApi#post_job_last_build_stop\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1103
1232
|
end
|
1104
1233
|
return data, status_code, headers
|
1105
1234
|
end
|
1106
1235
|
|
1107
|
-
#
|
1108
1236
|
# Update view configuration
|
1109
|
-
# @param name Name of the view
|
1110
|
-
# @param body View configuration in config.xml format
|
1237
|
+
# @param name [String] Name of the view
|
1238
|
+
# @param body [String] View configuration in config.xml format
|
1111
1239
|
# @param [Hash] opts the optional parameters
|
1112
1240
|
# @option opts [String] :jenkins_crumb CSRF protection token
|
1113
1241
|
# @return [nil]
|
1114
1242
|
def post_view_config(name, body, opts = {})
|
1115
1243
|
post_view_config_with_http_info(name, body, opts)
|
1116
|
-
|
1244
|
+
nil
|
1117
1245
|
end
|
1118
1246
|
|
1119
|
-
#
|
1120
1247
|
# Update view configuration
|
1121
|
-
# @param name Name of the view
|
1122
|
-
# @param body View configuration in config.xml format
|
1248
|
+
# @param name [String] Name of the view
|
1249
|
+
# @param body [String] View configuration in config.xml format
|
1123
1250
|
# @param [Hash] opts the optional parameters
|
1124
1251
|
# @option opts [String] :jenkins_crumb CSRF protection token
|
1125
|
-
# @return [Array<(nil,
|
1252
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
1126
1253
|
def post_view_config_with_http_info(name, body, opts = {})
|
1127
1254
|
if @api_client.config.debugging
|
1128
|
-
@api_client.config.logger.debug
|
1255
|
+
@api_client.config.logger.debug 'Calling API: RemoteAccessApi.post_view_config ...'
|
1129
1256
|
end
|
1130
1257
|
# verify the required parameter 'name' is set
|
1131
1258
|
if @api_client.config.client_side_validation && name.nil?
|
@@ -1136,27 +1263,45 @@ module SwaggyJenkinsClient
|
|
1136
1263
|
fail ArgumentError, "Missing the required parameter 'body' when calling RemoteAccessApi.post_view_config"
|
1137
1264
|
end
|
1138
1265
|
# resource path
|
1139
|
-
local_var_path =
|
1266
|
+
local_var_path = '/view/{name}/config.xml'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
|
1140
1267
|
|
1141
1268
|
# query parameters
|
1142
|
-
query_params = {}
|
1269
|
+
query_params = opts[:query_params] || {}
|
1143
1270
|
|
1144
1271
|
# header parameters
|
1145
|
-
header_params = {}
|
1272
|
+
header_params = opts[:header_params] || {}
|
1273
|
+
# HTTP header 'Accept' (if needed)
|
1274
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
1275
|
+
# HTTP header 'Content-Type'
|
1276
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
1277
|
+
if !content_type.nil?
|
1278
|
+
header_params['Content-Type'] = content_type
|
1279
|
+
end
|
1146
1280
|
header_params[:'Jenkins-Crumb'] = opts[:'jenkins_crumb'] if !opts[:'jenkins_crumb'].nil?
|
1147
1281
|
|
1148
1282
|
# form parameters
|
1149
|
-
form_params = {}
|
1283
|
+
form_params = opts[:form_params] || {}
|
1150
1284
|
|
1151
1285
|
# http body (model)
|
1152
|
-
post_body = @api_client.object_to_http_body(body)
|
1153
|
-
|
1154
|
-
|
1286
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
1287
|
+
|
1288
|
+
# return_type
|
1289
|
+
return_type = opts[:debug_return_type]
|
1290
|
+
|
1291
|
+
# auth_names
|
1292
|
+
auth_names = opts[:debug_auth_names] || ['jenkins_auth']
|
1293
|
+
|
1294
|
+
new_options = opts.merge(
|
1295
|
+
:operation => :"RemoteAccessApi.post_view_config",
|
1155
1296
|
:header_params => header_params,
|
1156
1297
|
:query_params => query_params,
|
1157
1298
|
:form_params => form_params,
|
1158
1299
|
:body => post_body,
|
1159
|
-
:auth_names => auth_names
|
1300
|
+
:auth_names => auth_names,
|
1301
|
+
:return_type => return_type
|
1302
|
+
)
|
1303
|
+
|
1304
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
1160
1305
|
if @api_client.config.debugging
|
1161
1306
|
@api_client.config.logger.debug "API called: RemoteAccessApi#post_view_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1162
1307
|
end
|