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