swaggy_jenkins 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- 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,10 @@
|
|
1
|
+
# SwaggyJenkinsClient::ResponseTimeMonitorData
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**_class** | **String** | | [optional]
|
7
|
+
**timestamp** | **Integer** | | [optional]
|
8
|
+
**average** | **Integer** | | [optional]
|
9
|
+
|
10
|
+
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# SwaggyJenkinsClient::StringParameterDefinition
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**_class** | **String** | | [optional]
|
7
|
+
**default_parameter_value** | [**StringParameterValue**](StringParameterValue.md) | | [optional]
|
8
|
+
**description** | **String** | | [optional]
|
9
|
+
**name** | **String** | | [optional]
|
10
|
+
**type** | **String** | | [optional]
|
11
|
+
|
12
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# SwaggyJenkinsClient::StringParameterValue
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**_class** | **String** | | [optional]
|
7
|
+
**name** | **String** | | [optional]
|
8
|
+
**value** | **String** | | [optional]
|
9
|
+
|
10
|
+
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# SwaggyJenkinsClient::SwapSpaceMonitorMemoryUsage2
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**_class** | **String** | | [optional]
|
7
|
+
**available_physical_memory** | **Integer** | | [optional]
|
8
|
+
**available_swap_space** | **Integer** | | [optional]
|
9
|
+
**total_physical_memory** | **Integer** | | [optional]
|
10
|
+
**total_swap_space** | **Integer** | | [optional]
|
11
|
+
|
12
|
+
|
data/docs/User.md
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
# SwaggyJenkinsClient::User
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**_class** | **String** | | [optional]
|
7
|
+
**id** | **String** | | [optional]
|
8
|
+
**full_name** | **String** | | [optional]
|
9
|
+
**email** | **String** | | [optional]
|
10
|
+
**name** | **String** | | [optional]
|
11
|
+
|
12
|
+
|
data/docs/Users.md
ADDED
data/git_push.sh
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
#
|
3
|
+
# Generated by: https://github.com/swagger-api/swagger-codegen.git
|
4
|
+
#
|
5
|
+
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
6
|
+
#
|
7
|
+
# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update"
|
8
|
+
|
9
|
+
git_user_id=$1
|
10
|
+
git_repo_id=$2
|
11
|
+
release_note=$3
|
12
|
+
|
13
|
+
if [ "$git_user_id" = "" ]; then
|
14
|
+
git_user_id="GIT_USER_ID"
|
15
|
+
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
16
|
+
fi
|
17
|
+
|
18
|
+
if [ "$git_repo_id" = "" ]; then
|
19
|
+
git_repo_id="GIT_REPO_ID"
|
20
|
+
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
21
|
+
fi
|
22
|
+
|
23
|
+
if [ "$release_note" = "" ]; then
|
24
|
+
release_note="Minor update"
|
25
|
+
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
26
|
+
fi
|
27
|
+
|
28
|
+
# Initialize the local directory as a Git repository
|
29
|
+
git init
|
30
|
+
|
31
|
+
# Adds the files in the local repository and stages them for commit.
|
32
|
+
git add .
|
33
|
+
|
34
|
+
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
35
|
+
git commit -m "$release_note"
|
36
|
+
|
37
|
+
# Sets the new remote
|
38
|
+
git_remote=`git remote`
|
39
|
+
if [ "$git_remote" = "" ]; then # git remote not defined
|
40
|
+
|
41
|
+
if [ "$GIT_TOKEN" = "" ]; then
|
42
|
+
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git crediential in your environment."
|
43
|
+
git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
|
44
|
+
else
|
45
|
+
git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
|
46
|
+
fi
|
47
|
+
|
48
|
+
fi
|
49
|
+
|
50
|
+
git pull origin master
|
51
|
+
|
52
|
+
# Pushes (Forces) the changes in the local repository up to the remote repository
|
53
|
+
echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git"
|
54
|
+
git push origin master 2>&1 | grep -v 'To https'
|
55
|
+
|
@@ -0,0 +1,134 @@
|
|
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
|
+
# Common files
|
14
|
+
require 'swaggy_jenkins/api_client'
|
15
|
+
require 'swaggy_jenkins/api_error'
|
16
|
+
require 'swaggy_jenkins/version'
|
17
|
+
require 'swaggy_jenkins/configuration'
|
18
|
+
|
19
|
+
# Models
|
20
|
+
require 'swaggy_jenkins/models/all_view'
|
21
|
+
require 'swaggy_jenkins/models/body'
|
22
|
+
require 'swaggy_jenkins/models/branch_impl'
|
23
|
+
require 'swaggy_jenkins/models/branch_impllinks'
|
24
|
+
require 'swaggy_jenkins/models/branch_implpermissions'
|
25
|
+
require 'swaggy_jenkins/models/cause_action'
|
26
|
+
require 'swaggy_jenkins/models/cause_user_id_cause'
|
27
|
+
require 'swaggy_jenkins/models/classes_by_class'
|
28
|
+
require 'swaggy_jenkins/models/clock_difference'
|
29
|
+
require 'swaggy_jenkins/models/computer_set'
|
30
|
+
require 'swaggy_jenkins/models/default_crumb_issuer'
|
31
|
+
require 'swaggy_jenkins/models/disk_space_monitor_descriptor_disk_space'
|
32
|
+
require 'swaggy_jenkins/models/empty_change_log_set'
|
33
|
+
require 'swaggy_jenkins/models/extension_class_container_impl1'
|
34
|
+
require 'swaggy_jenkins/models/extension_class_container_impl1links'
|
35
|
+
require 'swaggy_jenkins/models/extension_class_container_impl1map'
|
36
|
+
require 'swaggy_jenkins/models/extension_class_impl'
|
37
|
+
require 'swaggy_jenkins/models/extension_class_impllinks'
|
38
|
+
require 'swaggy_jenkins/models/favorite_impl'
|
39
|
+
require 'swaggy_jenkins/models/favorite_impllinks'
|
40
|
+
require 'swaggy_jenkins/models/free_style_build'
|
41
|
+
require 'swaggy_jenkins/models/free_style_project'
|
42
|
+
require 'swaggy_jenkins/models/free_style_projectactions'
|
43
|
+
require 'swaggy_jenkins/models/free_style_projecthealth_report'
|
44
|
+
require 'swaggy_jenkins/models/generic_resource'
|
45
|
+
require 'swaggy_jenkins/models/github_content'
|
46
|
+
require 'swaggy_jenkins/models/github_file'
|
47
|
+
require 'swaggy_jenkins/models/github_organization'
|
48
|
+
require 'swaggy_jenkins/models/github_organizationlinks'
|
49
|
+
require 'swaggy_jenkins/models/github_repositories'
|
50
|
+
require 'swaggy_jenkins/models/github_repositorieslinks'
|
51
|
+
require 'swaggy_jenkins/models/github_repository'
|
52
|
+
require 'swaggy_jenkins/models/github_repositorylinks'
|
53
|
+
require 'swaggy_jenkins/models/github_repositorypermissions'
|
54
|
+
require 'swaggy_jenkins/models/github_respository_container'
|
55
|
+
require 'swaggy_jenkins/models/github_respository_containerlinks'
|
56
|
+
require 'swaggy_jenkins/models/github_scm'
|
57
|
+
require 'swaggy_jenkins/models/github_scmlinks'
|
58
|
+
require 'swaggy_jenkins/models/hudson'
|
59
|
+
require 'swaggy_jenkins/models/hudson_master_computer'
|
60
|
+
require 'swaggy_jenkins/models/hudson_master_computerexecutors'
|
61
|
+
require 'swaggy_jenkins/models/hudson_master_computermonitor_data'
|
62
|
+
require 'swaggy_jenkins/models/hudsonassigned_labels'
|
63
|
+
require 'swaggy_jenkins/models/input_step_impl'
|
64
|
+
require 'swaggy_jenkins/models/input_step_impllinks'
|
65
|
+
require 'swaggy_jenkins/models/label1'
|
66
|
+
require 'swaggy_jenkins/models/link'
|
67
|
+
require 'swaggy_jenkins/models/list_view'
|
68
|
+
require 'swaggy_jenkins/models/multibranch_pipeline'
|
69
|
+
require 'swaggy_jenkins/models/null_scm'
|
70
|
+
require 'swaggy_jenkins/models/organisation'
|
71
|
+
require 'swaggy_jenkins/models/organisations'
|
72
|
+
require 'swaggy_jenkins/models/pipeline'
|
73
|
+
require 'swaggy_jenkins/models/pipeline_activities'
|
74
|
+
require 'swaggy_jenkins/models/pipeline_activity'
|
75
|
+
require 'swaggy_jenkins/models/pipeline_activityartifacts'
|
76
|
+
require 'swaggy_jenkins/models/pipeline_branches'
|
77
|
+
require 'swaggy_jenkins/models/pipeline_branchesitem'
|
78
|
+
require 'swaggy_jenkins/models/pipeline_branchesitemlatest_run'
|
79
|
+
require 'swaggy_jenkins/models/pipeline_branchesitempull_request'
|
80
|
+
require 'swaggy_jenkins/models/pipeline_branchesitempull_requestlinks'
|
81
|
+
require 'swaggy_jenkins/models/pipeline_folder_impl'
|
82
|
+
require 'swaggy_jenkins/models/pipeline_impl'
|
83
|
+
require 'swaggy_jenkins/models/pipeline_impllinks'
|
84
|
+
require 'swaggy_jenkins/models/pipeline_queue'
|
85
|
+
require 'swaggy_jenkins/models/pipeline_run'
|
86
|
+
require 'swaggy_jenkins/models/pipeline_run_impl'
|
87
|
+
require 'swaggy_jenkins/models/pipeline_run_impllinks'
|
88
|
+
require 'swaggy_jenkins/models/pipeline_run_node'
|
89
|
+
require 'swaggy_jenkins/models/pipeline_run_node_steps'
|
90
|
+
require 'swaggy_jenkins/models/pipeline_run_nodeedges'
|
91
|
+
require 'swaggy_jenkins/models/pipeline_run_nodes'
|
92
|
+
require 'swaggy_jenkins/models/pipeline_run_steps'
|
93
|
+
require 'swaggy_jenkins/models/pipeline_runartifacts'
|
94
|
+
require 'swaggy_jenkins/models/pipeline_runs'
|
95
|
+
require 'swaggy_jenkins/models/pipeline_step_impl'
|
96
|
+
require 'swaggy_jenkins/models/pipeline_step_impllinks'
|
97
|
+
require 'swaggy_jenkins/models/pipelinelatest_run'
|
98
|
+
require 'swaggy_jenkins/models/pipelinelatest_runartifacts'
|
99
|
+
require 'swaggy_jenkins/models/pipelines'
|
100
|
+
require 'swaggy_jenkins/models/queue'
|
101
|
+
require 'swaggy_jenkins/models/queue_blocked_item'
|
102
|
+
require 'swaggy_jenkins/models/queue_item_impl'
|
103
|
+
require 'swaggy_jenkins/models/queue_left_item'
|
104
|
+
require 'swaggy_jenkins/models/response_time_monitor_data'
|
105
|
+
require 'swaggy_jenkins/models/scm_organisations'
|
106
|
+
require 'swaggy_jenkins/models/string_parameter_definition'
|
107
|
+
require 'swaggy_jenkins/models/string_parameter_value'
|
108
|
+
require 'swaggy_jenkins/models/swap_space_monitor_memory_usage2'
|
109
|
+
require 'swaggy_jenkins/models/unlabeled_load_statistics'
|
110
|
+
require 'swaggy_jenkins/models/user'
|
111
|
+
require 'swaggy_jenkins/models/user_favorites'
|
112
|
+
require 'swaggy_jenkins/models/users'
|
113
|
+
|
114
|
+
# APIs
|
115
|
+
require 'swaggy_jenkins/api/blue_ocean_api'
|
116
|
+
require 'swaggy_jenkins/api/remote_access_api'
|
117
|
+
|
118
|
+
module SwaggyJenkinsClient
|
119
|
+
class << self
|
120
|
+
# Customize default settings for the SDK using block.
|
121
|
+
# SwaggyJenkinsClient.configure do |config|
|
122
|
+
# config.username = "xxx"
|
123
|
+
# config.password = "xxx"
|
124
|
+
# end
|
125
|
+
# If no block given, return the default Configuration object.
|
126
|
+
def configure
|
127
|
+
if block_given?
|
128
|
+
yield(Configuration.default)
|
129
|
+
else
|
130
|
+
Configuration.default
|
131
|
+
end
|
132
|
+
end
|
133
|
+
end
|
134
|
+
end
|
@@ -0,0 +1,2200 @@
|
|
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 BlueOceanApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
|
23
|
+
#
|
24
|
+
# Delete queue item from an organization pipeline queue
|
25
|
+
# @param organization Name of the organization
|
26
|
+
# @param pipeline Name of the pipeline
|
27
|
+
# @param queue Name of the queue item
|
28
|
+
# @param [Hash] opts the optional parameters
|
29
|
+
# @return [nil]
|
30
|
+
def delete_pipeline_queue_item(organization, pipeline, queue, opts = {})
|
31
|
+
delete_pipeline_queue_item_with_http_info(organization, pipeline, queue, opts)
|
32
|
+
return nil
|
33
|
+
end
|
34
|
+
|
35
|
+
#
|
36
|
+
# Delete queue item from an organization pipeline queue
|
37
|
+
# @param organization Name of the organization
|
38
|
+
# @param pipeline Name of the pipeline
|
39
|
+
# @param queue Name of the queue item
|
40
|
+
# @param [Hash] opts the optional parameters
|
41
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
42
|
+
def delete_pipeline_queue_item_with_http_info(organization, pipeline, queue, opts = {})
|
43
|
+
if @api_client.config.debugging
|
44
|
+
@api_client.config.logger.debug "Calling API: BlueOceanApi.delete_pipeline_queue_item ..."
|
45
|
+
end
|
46
|
+
# verify the required parameter 'organization' is set
|
47
|
+
if @api_client.config.client_side_validation && organization.nil?
|
48
|
+
fail ArgumentError, "Missing the required parameter 'organization' when calling BlueOceanApi.delete_pipeline_queue_item"
|
49
|
+
end
|
50
|
+
# verify the required parameter 'pipeline' is set
|
51
|
+
if @api_client.config.client_side_validation && pipeline.nil?
|
52
|
+
fail ArgumentError, "Missing the required parameter 'pipeline' when calling BlueOceanApi.delete_pipeline_queue_item"
|
53
|
+
end
|
54
|
+
# verify the required parameter 'queue' is set
|
55
|
+
if @api_client.config.client_side_validation && queue.nil?
|
56
|
+
fail ArgumentError, "Missing the required parameter 'queue' when calling BlueOceanApi.delete_pipeline_queue_item"
|
57
|
+
end
|
58
|
+
# resource path
|
59
|
+
local_var_path = "/blue/rest/organizations/{organization}/pipelines/{pipeline}/queue/{queue}".sub('{' + 'organization' + '}', organization.to_s).sub('{' + 'pipeline' + '}', pipeline.to_s).sub('{' + 'queue' + '}', queue.to_s)
|
60
|
+
|
61
|
+
# query parameters
|
62
|
+
query_params = {}
|
63
|
+
|
64
|
+
# header parameters
|
65
|
+
header_params = {}
|
66
|
+
# HTTP header 'Accept' (if needed)
|
67
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
68
|
+
|
69
|
+
# form parameters
|
70
|
+
form_params = {}
|
71
|
+
|
72
|
+
# http body (model)
|
73
|
+
post_body = nil
|
74
|
+
auth_names = ['jenkins_auth']
|
75
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
76
|
+
:header_params => header_params,
|
77
|
+
:query_params => query_params,
|
78
|
+
:form_params => form_params,
|
79
|
+
:body => post_body,
|
80
|
+
:auth_names => auth_names)
|
81
|
+
if @api_client.config.debugging
|
82
|
+
@api_client.config.logger.debug "API called: BlueOceanApi#delete_pipeline_queue_item\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
83
|
+
end
|
84
|
+
return data, status_code, headers
|
85
|
+
end
|
86
|
+
|
87
|
+
#
|
88
|
+
# Retrieve authenticated user details for an organization
|
89
|
+
# @param organization Name of the organization
|
90
|
+
# @param [Hash] opts the optional parameters
|
91
|
+
# @return [User]
|
92
|
+
def get_authenticated_user(organization, opts = {})
|
93
|
+
data, _status_code, _headers = get_authenticated_user_with_http_info(organization, opts)
|
94
|
+
return data
|
95
|
+
end
|
96
|
+
|
97
|
+
#
|
98
|
+
# Retrieve authenticated user details for an organization
|
99
|
+
# @param organization Name of the organization
|
100
|
+
# @param [Hash] opts the optional parameters
|
101
|
+
# @return [Array<(User, Fixnum, Hash)>] User data, response status code and response headers
|
102
|
+
def get_authenticated_user_with_http_info(organization, opts = {})
|
103
|
+
if @api_client.config.debugging
|
104
|
+
@api_client.config.logger.debug "Calling API: BlueOceanApi.get_authenticated_user ..."
|
105
|
+
end
|
106
|
+
# verify the required parameter 'organization' is set
|
107
|
+
if @api_client.config.client_side_validation && organization.nil?
|
108
|
+
fail ArgumentError, "Missing the required parameter 'organization' when calling BlueOceanApi.get_authenticated_user"
|
109
|
+
end
|
110
|
+
# resource path
|
111
|
+
local_var_path = "/blue/rest/organizations/{organization}/user/".sub('{' + 'organization' + '}', organization.to_s)
|
112
|
+
|
113
|
+
# query parameters
|
114
|
+
query_params = {}
|
115
|
+
|
116
|
+
# header parameters
|
117
|
+
header_params = {}
|
118
|
+
# HTTP header 'Accept' (if needed)
|
119
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
120
|
+
|
121
|
+
# form parameters
|
122
|
+
form_params = {}
|
123
|
+
|
124
|
+
# http body (model)
|
125
|
+
post_body = nil
|
126
|
+
auth_names = ['jenkins_auth']
|
127
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
128
|
+
:header_params => header_params,
|
129
|
+
:query_params => query_params,
|
130
|
+
:form_params => form_params,
|
131
|
+
:body => post_body,
|
132
|
+
:auth_names => auth_names,
|
133
|
+
:return_type => 'User')
|
134
|
+
if @api_client.config.debugging
|
135
|
+
@api_client.config.logger.debug "API called: BlueOceanApi#get_authenticated_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
136
|
+
end
|
137
|
+
return data, status_code, headers
|
138
|
+
end
|
139
|
+
|
140
|
+
#
|
141
|
+
# Get a list of class names supported by a given class
|
142
|
+
# @param _class Name of the class
|
143
|
+
# @param [Hash] opts the optional parameters
|
144
|
+
# @return [String]
|
145
|
+
def get_classes(_class, opts = {})
|
146
|
+
data, _status_code, _headers = get_classes_with_http_info(_class, opts)
|
147
|
+
return data
|
148
|
+
end
|
149
|
+
|
150
|
+
#
|
151
|
+
# Get a list of class names supported by a given class
|
152
|
+
# @param _class Name of the class
|
153
|
+
# @param [Hash] opts the optional parameters
|
154
|
+
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
155
|
+
def get_classes_with_http_info(_class, opts = {})
|
156
|
+
if @api_client.config.debugging
|
157
|
+
@api_client.config.logger.debug "Calling API: BlueOceanApi.get_classes ..."
|
158
|
+
end
|
159
|
+
# verify the required parameter '_class' is set
|
160
|
+
if @api_client.config.client_side_validation && _class.nil?
|
161
|
+
fail ArgumentError, "Missing the required parameter '_class' when calling BlueOceanApi.get_classes"
|
162
|
+
end
|
163
|
+
# resource path
|
164
|
+
local_var_path = "/blue/rest/classes/{class}".sub('{' + 'class' + '}', _class.to_s)
|
165
|
+
|
166
|
+
# query parameters
|
167
|
+
query_params = {}
|
168
|
+
|
169
|
+
# header parameters
|
170
|
+
header_params = {}
|
171
|
+
# HTTP header 'Accept' (if needed)
|
172
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
173
|
+
|
174
|
+
# form parameters
|
175
|
+
form_params = {}
|
176
|
+
|
177
|
+
# http body (model)
|
178
|
+
post_body = nil
|
179
|
+
auth_names = ['jenkins_auth']
|
180
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
181
|
+
:header_params => header_params,
|
182
|
+
:query_params => query_params,
|
183
|
+
:form_params => form_params,
|
184
|
+
:body => post_body,
|
185
|
+
:auth_names => auth_names,
|
186
|
+
:return_type => 'String')
|
187
|
+
if @api_client.config.debugging
|
188
|
+
@api_client.config.logger.debug "API called: BlueOceanApi#get_classes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
189
|
+
end
|
190
|
+
return data, status_code, headers
|
191
|
+
end
|
192
|
+
|
193
|
+
#
|
194
|
+
# Retrieve organization details
|
195
|
+
# @param organization Name of the organization
|
196
|
+
# @param [Hash] opts the optional parameters
|
197
|
+
# @return [Organisation]
|
198
|
+
def get_organisation(organization, opts = {})
|
199
|
+
data, _status_code, _headers = get_organisation_with_http_info(organization, opts)
|
200
|
+
return data
|
201
|
+
end
|
202
|
+
|
203
|
+
#
|
204
|
+
# Retrieve organization details
|
205
|
+
# @param organization Name of the organization
|
206
|
+
# @param [Hash] opts the optional parameters
|
207
|
+
# @return [Array<(Organisation, Fixnum, Hash)>] Organisation data, response status code and response headers
|
208
|
+
def get_organisation_with_http_info(organization, opts = {})
|
209
|
+
if @api_client.config.debugging
|
210
|
+
@api_client.config.logger.debug "Calling API: BlueOceanApi.get_organisation ..."
|
211
|
+
end
|
212
|
+
# verify the required parameter 'organization' is set
|
213
|
+
if @api_client.config.client_side_validation && organization.nil?
|
214
|
+
fail ArgumentError, "Missing the required parameter 'organization' when calling BlueOceanApi.get_organisation"
|
215
|
+
end
|
216
|
+
# resource path
|
217
|
+
local_var_path = "/blue/rest/organizations/{organization}".sub('{' + 'organization' + '}', organization.to_s)
|
218
|
+
|
219
|
+
# query parameters
|
220
|
+
query_params = {}
|
221
|
+
|
222
|
+
# header parameters
|
223
|
+
header_params = {}
|
224
|
+
# HTTP header 'Accept' (if needed)
|
225
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
226
|
+
|
227
|
+
# form parameters
|
228
|
+
form_params = {}
|
229
|
+
|
230
|
+
# http body (model)
|
231
|
+
post_body = nil
|
232
|
+
auth_names = ['jenkins_auth']
|
233
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
234
|
+
:header_params => header_params,
|
235
|
+
:query_params => query_params,
|
236
|
+
:form_params => form_params,
|
237
|
+
:body => post_body,
|
238
|
+
:auth_names => auth_names,
|
239
|
+
:return_type => 'Organisation')
|
240
|
+
if @api_client.config.debugging
|
241
|
+
@api_client.config.logger.debug "API called: BlueOceanApi#get_organisation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
242
|
+
end
|
243
|
+
return data, status_code, headers
|
244
|
+
end
|
245
|
+
|
246
|
+
#
|
247
|
+
# Retrieve all organizations details
|
248
|
+
# @param [Hash] opts the optional parameters
|
249
|
+
# @return [Organisations]
|
250
|
+
def get_organisations(opts = {})
|
251
|
+
data, _status_code, _headers = get_organisations_with_http_info(opts)
|
252
|
+
return data
|
253
|
+
end
|
254
|
+
|
255
|
+
#
|
256
|
+
# Retrieve all organizations details
|
257
|
+
# @param [Hash] opts the optional parameters
|
258
|
+
# @return [Array<(Organisations, Fixnum, Hash)>] Organisations data, response status code and response headers
|
259
|
+
def get_organisations_with_http_info(opts = {})
|
260
|
+
if @api_client.config.debugging
|
261
|
+
@api_client.config.logger.debug "Calling API: BlueOceanApi.get_organisations ..."
|
262
|
+
end
|
263
|
+
# resource path
|
264
|
+
local_var_path = "/blue/rest/organizations/"
|
265
|
+
|
266
|
+
# query parameters
|
267
|
+
query_params = {}
|
268
|
+
|
269
|
+
# header parameters
|
270
|
+
header_params = {}
|
271
|
+
# HTTP header 'Accept' (if needed)
|
272
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
273
|
+
|
274
|
+
# form parameters
|
275
|
+
form_params = {}
|
276
|
+
|
277
|
+
# http body (model)
|
278
|
+
post_body = nil
|
279
|
+
auth_names = ['jenkins_auth']
|
280
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
281
|
+
:header_params => header_params,
|
282
|
+
:query_params => query_params,
|
283
|
+
:form_params => form_params,
|
284
|
+
:body => post_body,
|
285
|
+
:auth_names => auth_names,
|
286
|
+
:return_type => 'Organisations')
|
287
|
+
if @api_client.config.debugging
|
288
|
+
@api_client.config.logger.debug "API called: BlueOceanApi#get_organisations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
289
|
+
end
|
290
|
+
return data, status_code, headers
|
291
|
+
end
|
292
|
+
|
293
|
+
#
|
294
|
+
# Retrieve pipeline details for an organization
|
295
|
+
# @param organization Name of the organization
|
296
|
+
# @param pipeline Name of the pipeline
|
297
|
+
# @param [Hash] opts the optional parameters
|
298
|
+
# @return [Pipeline]
|
299
|
+
def get_pipeline(organization, pipeline, opts = {})
|
300
|
+
data, _status_code, _headers = get_pipeline_with_http_info(organization, pipeline, opts)
|
301
|
+
return data
|
302
|
+
end
|
303
|
+
|
304
|
+
#
|
305
|
+
# Retrieve pipeline details for an organization
|
306
|
+
# @param organization Name of the organization
|
307
|
+
# @param pipeline Name of the pipeline
|
308
|
+
# @param [Hash] opts the optional parameters
|
309
|
+
# @return [Array<(Pipeline, Fixnum, Hash)>] Pipeline data, response status code and response headers
|
310
|
+
def get_pipeline_with_http_info(organization, pipeline, opts = {})
|
311
|
+
if @api_client.config.debugging
|
312
|
+
@api_client.config.logger.debug "Calling API: BlueOceanApi.get_pipeline ..."
|
313
|
+
end
|
314
|
+
# verify the required parameter 'organization' is set
|
315
|
+
if @api_client.config.client_side_validation && organization.nil?
|
316
|
+
fail ArgumentError, "Missing the required parameter 'organization' when calling BlueOceanApi.get_pipeline"
|
317
|
+
end
|
318
|
+
# verify the required parameter 'pipeline' is set
|
319
|
+
if @api_client.config.client_side_validation && pipeline.nil?
|
320
|
+
fail ArgumentError, "Missing the required parameter 'pipeline' when calling BlueOceanApi.get_pipeline"
|
321
|
+
end
|
322
|
+
# resource path
|
323
|
+
local_var_path = "/blue/rest/organizations/{organization}/pipelines/{pipeline}".sub('{' + 'organization' + '}', organization.to_s).sub('{' + 'pipeline' + '}', pipeline.to_s)
|
324
|
+
|
325
|
+
# query parameters
|
326
|
+
query_params = {}
|
327
|
+
|
328
|
+
# header parameters
|
329
|
+
header_params = {}
|
330
|
+
# HTTP header 'Accept' (if needed)
|
331
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
332
|
+
|
333
|
+
# form parameters
|
334
|
+
form_params = {}
|
335
|
+
|
336
|
+
# http body (model)
|
337
|
+
post_body = nil
|
338
|
+
auth_names = ['jenkins_auth']
|
339
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
340
|
+
:header_params => header_params,
|
341
|
+
:query_params => query_params,
|
342
|
+
:form_params => form_params,
|
343
|
+
:body => post_body,
|
344
|
+
:auth_names => auth_names,
|
345
|
+
:return_type => 'Pipeline')
|
346
|
+
if @api_client.config.debugging
|
347
|
+
@api_client.config.logger.debug "API called: BlueOceanApi#get_pipeline\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
348
|
+
end
|
349
|
+
return data, status_code, headers
|
350
|
+
end
|
351
|
+
|
352
|
+
#
|
353
|
+
# Retrieve all activities details for an organization pipeline
|
354
|
+
# @param organization Name of the organization
|
355
|
+
# @param pipeline Name of the pipeline
|
356
|
+
# @param [Hash] opts the optional parameters
|
357
|
+
# @return [PipelineActivities]
|
358
|
+
def get_pipeline_activities(organization, pipeline, opts = {})
|
359
|
+
data, _status_code, _headers = get_pipeline_activities_with_http_info(organization, pipeline, opts)
|
360
|
+
return data
|
361
|
+
end
|
362
|
+
|
363
|
+
#
|
364
|
+
# Retrieve all activities details for an organization pipeline
|
365
|
+
# @param organization Name of the organization
|
366
|
+
# @param pipeline Name of the pipeline
|
367
|
+
# @param [Hash] opts the optional parameters
|
368
|
+
# @return [Array<(PipelineActivities, Fixnum, Hash)>] PipelineActivities data, response status code and response headers
|
369
|
+
def get_pipeline_activities_with_http_info(organization, pipeline, opts = {})
|
370
|
+
if @api_client.config.debugging
|
371
|
+
@api_client.config.logger.debug "Calling API: BlueOceanApi.get_pipeline_activities ..."
|
372
|
+
end
|
373
|
+
# verify the required parameter 'organization' is set
|
374
|
+
if @api_client.config.client_side_validation && organization.nil?
|
375
|
+
fail ArgumentError, "Missing the required parameter 'organization' when calling BlueOceanApi.get_pipeline_activities"
|
376
|
+
end
|
377
|
+
# verify the required parameter 'pipeline' is set
|
378
|
+
if @api_client.config.client_side_validation && pipeline.nil?
|
379
|
+
fail ArgumentError, "Missing the required parameter 'pipeline' when calling BlueOceanApi.get_pipeline_activities"
|
380
|
+
end
|
381
|
+
# resource path
|
382
|
+
local_var_path = "/blue/rest/organizations/{organization}/pipelines/{pipeline}/activities".sub('{' + 'organization' + '}', organization.to_s).sub('{' + 'pipeline' + '}', pipeline.to_s)
|
383
|
+
|
384
|
+
# query parameters
|
385
|
+
query_params = {}
|
386
|
+
|
387
|
+
# header parameters
|
388
|
+
header_params = {}
|
389
|
+
# HTTP header 'Accept' (if needed)
|
390
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
391
|
+
|
392
|
+
# form parameters
|
393
|
+
form_params = {}
|
394
|
+
|
395
|
+
# http body (model)
|
396
|
+
post_body = nil
|
397
|
+
auth_names = ['jenkins_auth']
|
398
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
399
|
+
:header_params => header_params,
|
400
|
+
:query_params => query_params,
|
401
|
+
:form_params => form_params,
|
402
|
+
:body => post_body,
|
403
|
+
:auth_names => auth_names,
|
404
|
+
:return_type => 'PipelineActivities')
|
405
|
+
if @api_client.config.debugging
|
406
|
+
@api_client.config.logger.debug "API called: BlueOceanApi#get_pipeline_activities\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
407
|
+
end
|
408
|
+
return data, status_code, headers
|
409
|
+
end
|
410
|
+
|
411
|
+
#
|
412
|
+
# Retrieve branch details for an organization pipeline
|
413
|
+
# @param organization Name of the organization
|
414
|
+
# @param pipeline Name of the pipeline
|
415
|
+
# @param branch Name of the branch
|
416
|
+
# @param [Hash] opts the optional parameters
|
417
|
+
# @return [BranchImpl]
|
418
|
+
def get_pipeline_branch(organization, pipeline, branch, opts = {})
|
419
|
+
data, _status_code, _headers = get_pipeline_branch_with_http_info(organization, pipeline, branch, opts)
|
420
|
+
return data
|
421
|
+
end
|
422
|
+
|
423
|
+
#
|
424
|
+
# Retrieve branch details for an organization pipeline
|
425
|
+
# @param organization Name of the organization
|
426
|
+
# @param pipeline Name of the pipeline
|
427
|
+
# @param branch Name of the branch
|
428
|
+
# @param [Hash] opts the optional parameters
|
429
|
+
# @return [Array<(BranchImpl, Fixnum, Hash)>] BranchImpl data, response status code and response headers
|
430
|
+
def get_pipeline_branch_with_http_info(organization, pipeline, branch, opts = {})
|
431
|
+
if @api_client.config.debugging
|
432
|
+
@api_client.config.logger.debug "Calling API: BlueOceanApi.get_pipeline_branch ..."
|
433
|
+
end
|
434
|
+
# verify the required parameter 'organization' is set
|
435
|
+
if @api_client.config.client_side_validation && organization.nil?
|
436
|
+
fail ArgumentError, "Missing the required parameter 'organization' when calling BlueOceanApi.get_pipeline_branch"
|
437
|
+
end
|
438
|
+
# verify the required parameter 'pipeline' is set
|
439
|
+
if @api_client.config.client_side_validation && pipeline.nil?
|
440
|
+
fail ArgumentError, "Missing the required parameter 'pipeline' when calling BlueOceanApi.get_pipeline_branch"
|
441
|
+
end
|
442
|
+
# verify the required parameter 'branch' is set
|
443
|
+
if @api_client.config.client_side_validation && branch.nil?
|
444
|
+
fail ArgumentError, "Missing the required parameter 'branch' when calling BlueOceanApi.get_pipeline_branch"
|
445
|
+
end
|
446
|
+
# resource path
|
447
|
+
local_var_path = "/blue/rest/organizations/{organization}/pipelines/{pipeline}/branches/{branch}/".sub('{' + 'organization' + '}', organization.to_s).sub('{' + 'pipeline' + '}', pipeline.to_s).sub('{' + 'branch' + '}', branch.to_s)
|
448
|
+
|
449
|
+
# query parameters
|
450
|
+
query_params = {}
|
451
|
+
|
452
|
+
# header parameters
|
453
|
+
header_params = {}
|
454
|
+
# HTTP header 'Accept' (if needed)
|
455
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
456
|
+
|
457
|
+
# form parameters
|
458
|
+
form_params = {}
|
459
|
+
|
460
|
+
# http body (model)
|
461
|
+
post_body = nil
|
462
|
+
auth_names = ['jenkins_auth']
|
463
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
464
|
+
:header_params => header_params,
|
465
|
+
:query_params => query_params,
|
466
|
+
:form_params => form_params,
|
467
|
+
:body => post_body,
|
468
|
+
:auth_names => auth_names,
|
469
|
+
:return_type => 'BranchImpl')
|
470
|
+
if @api_client.config.debugging
|
471
|
+
@api_client.config.logger.debug "API called: BlueOceanApi#get_pipeline_branch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
472
|
+
end
|
473
|
+
return data, status_code, headers
|
474
|
+
end
|
475
|
+
|
476
|
+
#
|
477
|
+
# Retrieve branch run details for an organization pipeline
|
478
|
+
# @param organization Name of the organization
|
479
|
+
# @param pipeline Name of the pipeline
|
480
|
+
# @param branch Name of the branch
|
481
|
+
# @param run Name of the run
|
482
|
+
# @param [Hash] opts the optional parameters
|
483
|
+
# @return [PipelineRun]
|
484
|
+
def get_pipeline_branch_run(organization, pipeline, branch, run, opts = {})
|
485
|
+
data, _status_code, _headers = get_pipeline_branch_run_with_http_info(organization, pipeline, branch, run, opts)
|
486
|
+
return data
|
487
|
+
end
|
488
|
+
|
489
|
+
#
|
490
|
+
# Retrieve branch run details for an organization pipeline
|
491
|
+
# @param organization Name of the organization
|
492
|
+
# @param pipeline Name of the pipeline
|
493
|
+
# @param branch Name of the branch
|
494
|
+
# @param run Name of the run
|
495
|
+
# @param [Hash] opts the optional parameters
|
496
|
+
# @return [Array<(PipelineRun, Fixnum, Hash)>] PipelineRun data, response status code and response headers
|
497
|
+
def get_pipeline_branch_run_with_http_info(organization, pipeline, branch, run, opts = {})
|
498
|
+
if @api_client.config.debugging
|
499
|
+
@api_client.config.logger.debug "Calling API: BlueOceanApi.get_pipeline_branch_run ..."
|
500
|
+
end
|
501
|
+
# verify the required parameter 'organization' is set
|
502
|
+
if @api_client.config.client_side_validation && organization.nil?
|
503
|
+
fail ArgumentError, "Missing the required parameter 'organization' when calling BlueOceanApi.get_pipeline_branch_run"
|
504
|
+
end
|
505
|
+
# verify the required parameter 'pipeline' is set
|
506
|
+
if @api_client.config.client_side_validation && pipeline.nil?
|
507
|
+
fail ArgumentError, "Missing the required parameter 'pipeline' when calling BlueOceanApi.get_pipeline_branch_run"
|
508
|
+
end
|
509
|
+
# verify the required parameter 'branch' is set
|
510
|
+
if @api_client.config.client_side_validation && branch.nil?
|
511
|
+
fail ArgumentError, "Missing the required parameter 'branch' when calling BlueOceanApi.get_pipeline_branch_run"
|
512
|
+
end
|
513
|
+
# verify the required parameter 'run' is set
|
514
|
+
if @api_client.config.client_side_validation && run.nil?
|
515
|
+
fail ArgumentError, "Missing the required parameter 'run' when calling BlueOceanApi.get_pipeline_branch_run"
|
516
|
+
end
|
517
|
+
# resource path
|
518
|
+
local_var_path = "/blue/rest/organizations/{organization}/pipelines/{pipeline}/branches/{branch}/runs/{run}".sub('{' + 'organization' + '}', organization.to_s).sub('{' + 'pipeline' + '}', pipeline.to_s).sub('{' + 'branch' + '}', branch.to_s).sub('{' + 'run' + '}', run.to_s)
|
519
|
+
|
520
|
+
# query parameters
|
521
|
+
query_params = {}
|
522
|
+
|
523
|
+
# header parameters
|
524
|
+
header_params = {}
|
525
|
+
# HTTP header 'Accept' (if needed)
|
526
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
527
|
+
|
528
|
+
# form parameters
|
529
|
+
form_params = {}
|
530
|
+
|
531
|
+
# http body (model)
|
532
|
+
post_body = nil
|
533
|
+
auth_names = ['jenkins_auth']
|
534
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
535
|
+
:header_params => header_params,
|
536
|
+
:query_params => query_params,
|
537
|
+
:form_params => form_params,
|
538
|
+
:body => post_body,
|
539
|
+
:auth_names => auth_names,
|
540
|
+
:return_type => 'PipelineRun')
|
541
|
+
if @api_client.config.debugging
|
542
|
+
@api_client.config.logger.debug "API called: BlueOceanApi#get_pipeline_branch_run\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
543
|
+
end
|
544
|
+
return data, status_code, headers
|
545
|
+
end
|
546
|
+
|
547
|
+
#
|
548
|
+
# Retrieve all branches details for an organization pipeline
|
549
|
+
# @param organization Name of the organization
|
550
|
+
# @param pipeline Name of the pipeline
|
551
|
+
# @param [Hash] opts the optional parameters
|
552
|
+
# @return [MultibranchPipeline]
|
553
|
+
def get_pipeline_branches(organization, pipeline, opts = {})
|
554
|
+
data, _status_code, _headers = get_pipeline_branches_with_http_info(organization, pipeline, opts)
|
555
|
+
return data
|
556
|
+
end
|
557
|
+
|
558
|
+
#
|
559
|
+
# Retrieve all branches details for an organization pipeline
|
560
|
+
# @param organization Name of the organization
|
561
|
+
# @param pipeline Name of the pipeline
|
562
|
+
# @param [Hash] opts the optional parameters
|
563
|
+
# @return [Array<(MultibranchPipeline, Fixnum, Hash)>] MultibranchPipeline data, response status code and response headers
|
564
|
+
def get_pipeline_branches_with_http_info(organization, pipeline, opts = {})
|
565
|
+
if @api_client.config.debugging
|
566
|
+
@api_client.config.logger.debug "Calling API: BlueOceanApi.get_pipeline_branches ..."
|
567
|
+
end
|
568
|
+
# verify the required parameter 'organization' is set
|
569
|
+
if @api_client.config.client_side_validation && organization.nil?
|
570
|
+
fail ArgumentError, "Missing the required parameter 'organization' when calling BlueOceanApi.get_pipeline_branches"
|
571
|
+
end
|
572
|
+
# verify the required parameter 'pipeline' is set
|
573
|
+
if @api_client.config.client_side_validation && pipeline.nil?
|
574
|
+
fail ArgumentError, "Missing the required parameter 'pipeline' when calling BlueOceanApi.get_pipeline_branches"
|
575
|
+
end
|
576
|
+
# resource path
|
577
|
+
local_var_path = "/blue/rest/organizations/{organization}/pipelines/{pipeline}/branches".sub('{' + 'organization' + '}', organization.to_s).sub('{' + 'pipeline' + '}', pipeline.to_s)
|
578
|
+
|
579
|
+
# query parameters
|
580
|
+
query_params = {}
|
581
|
+
|
582
|
+
# header parameters
|
583
|
+
header_params = {}
|
584
|
+
# HTTP header 'Accept' (if needed)
|
585
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
586
|
+
|
587
|
+
# form parameters
|
588
|
+
form_params = {}
|
589
|
+
|
590
|
+
# http body (model)
|
591
|
+
post_body = nil
|
592
|
+
auth_names = ['jenkins_auth']
|
593
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
594
|
+
:header_params => header_params,
|
595
|
+
:query_params => query_params,
|
596
|
+
:form_params => form_params,
|
597
|
+
:body => post_body,
|
598
|
+
:auth_names => auth_names,
|
599
|
+
:return_type => 'MultibranchPipeline')
|
600
|
+
if @api_client.config.debugging
|
601
|
+
@api_client.config.logger.debug "API called: BlueOceanApi#get_pipeline_branches\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
602
|
+
end
|
603
|
+
return data, status_code, headers
|
604
|
+
end
|
605
|
+
|
606
|
+
#
|
607
|
+
# Retrieve pipeline folder for an organization
|
608
|
+
# @param organization Name of the organization
|
609
|
+
# @param folder Name of the folder
|
610
|
+
# @param [Hash] opts the optional parameters
|
611
|
+
# @return [PipelineFolderImpl]
|
612
|
+
def get_pipeline_folder(organization, folder, opts = {})
|
613
|
+
data, _status_code, _headers = get_pipeline_folder_with_http_info(organization, folder, opts)
|
614
|
+
return data
|
615
|
+
end
|
616
|
+
|
617
|
+
#
|
618
|
+
# Retrieve pipeline folder for an organization
|
619
|
+
# @param organization Name of the organization
|
620
|
+
# @param folder Name of the folder
|
621
|
+
# @param [Hash] opts the optional parameters
|
622
|
+
# @return [Array<(PipelineFolderImpl, Fixnum, Hash)>] PipelineFolderImpl data, response status code and response headers
|
623
|
+
def get_pipeline_folder_with_http_info(organization, folder, opts = {})
|
624
|
+
if @api_client.config.debugging
|
625
|
+
@api_client.config.logger.debug "Calling API: BlueOceanApi.get_pipeline_folder ..."
|
626
|
+
end
|
627
|
+
# verify the required parameter 'organization' is set
|
628
|
+
if @api_client.config.client_side_validation && organization.nil?
|
629
|
+
fail ArgumentError, "Missing the required parameter 'organization' when calling BlueOceanApi.get_pipeline_folder"
|
630
|
+
end
|
631
|
+
# verify the required parameter 'folder' is set
|
632
|
+
if @api_client.config.client_side_validation && folder.nil?
|
633
|
+
fail ArgumentError, "Missing the required parameter 'folder' when calling BlueOceanApi.get_pipeline_folder"
|
634
|
+
end
|
635
|
+
# resource path
|
636
|
+
local_var_path = "/blue/rest/organizations/{organization}/pipelines/{folder}/".sub('{' + 'organization' + '}', organization.to_s).sub('{' + 'folder' + '}', folder.to_s)
|
637
|
+
|
638
|
+
# query parameters
|
639
|
+
query_params = {}
|
640
|
+
|
641
|
+
# header parameters
|
642
|
+
header_params = {}
|
643
|
+
# HTTP header 'Accept' (if needed)
|
644
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
645
|
+
|
646
|
+
# form parameters
|
647
|
+
form_params = {}
|
648
|
+
|
649
|
+
# http body (model)
|
650
|
+
post_body = nil
|
651
|
+
auth_names = ['jenkins_auth']
|
652
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
653
|
+
:header_params => header_params,
|
654
|
+
:query_params => query_params,
|
655
|
+
:form_params => form_params,
|
656
|
+
:body => post_body,
|
657
|
+
:auth_names => auth_names,
|
658
|
+
:return_type => 'PipelineFolderImpl')
|
659
|
+
if @api_client.config.debugging
|
660
|
+
@api_client.config.logger.debug "API called: BlueOceanApi#get_pipeline_folder\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
661
|
+
end
|
662
|
+
return data, status_code, headers
|
663
|
+
end
|
664
|
+
|
665
|
+
#
|
666
|
+
# Retrieve pipeline details for an organization folder
|
667
|
+
# @param organization Name of the organization
|
668
|
+
# @param pipeline Name of the pipeline
|
669
|
+
# @param folder Name of the folder
|
670
|
+
# @param [Hash] opts the optional parameters
|
671
|
+
# @return [PipelineImpl]
|
672
|
+
def get_pipeline_folder_pipeline(organization, pipeline, folder, opts = {})
|
673
|
+
data, _status_code, _headers = get_pipeline_folder_pipeline_with_http_info(organization, pipeline, folder, opts)
|
674
|
+
return data
|
675
|
+
end
|
676
|
+
|
677
|
+
#
|
678
|
+
# Retrieve pipeline details for an organization folder
|
679
|
+
# @param organization Name of the organization
|
680
|
+
# @param pipeline Name of the pipeline
|
681
|
+
# @param folder Name of the folder
|
682
|
+
# @param [Hash] opts the optional parameters
|
683
|
+
# @return [Array<(PipelineImpl, Fixnum, Hash)>] PipelineImpl data, response status code and response headers
|
684
|
+
def get_pipeline_folder_pipeline_with_http_info(organization, pipeline, folder, opts = {})
|
685
|
+
if @api_client.config.debugging
|
686
|
+
@api_client.config.logger.debug "Calling API: BlueOceanApi.get_pipeline_folder_pipeline ..."
|
687
|
+
end
|
688
|
+
# verify the required parameter 'organization' is set
|
689
|
+
if @api_client.config.client_side_validation && organization.nil?
|
690
|
+
fail ArgumentError, "Missing the required parameter 'organization' when calling BlueOceanApi.get_pipeline_folder_pipeline"
|
691
|
+
end
|
692
|
+
# verify the required parameter 'pipeline' is set
|
693
|
+
if @api_client.config.client_side_validation && pipeline.nil?
|
694
|
+
fail ArgumentError, "Missing the required parameter 'pipeline' when calling BlueOceanApi.get_pipeline_folder_pipeline"
|
695
|
+
end
|
696
|
+
# verify the required parameter 'folder' is set
|
697
|
+
if @api_client.config.client_side_validation && folder.nil?
|
698
|
+
fail ArgumentError, "Missing the required parameter 'folder' when calling BlueOceanApi.get_pipeline_folder_pipeline"
|
699
|
+
end
|
700
|
+
# resource path
|
701
|
+
local_var_path = "/blue/rest/organizations/{organization}/pipelines/{folder}/pipelines/{pipeline}".sub('{' + 'organization' + '}', organization.to_s).sub('{' + 'pipeline' + '}', pipeline.to_s).sub('{' + 'folder' + '}', folder.to_s)
|
702
|
+
|
703
|
+
# query parameters
|
704
|
+
query_params = {}
|
705
|
+
|
706
|
+
# header parameters
|
707
|
+
header_params = {}
|
708
|
+
# HTTP header 'Accept' (if needed)
|
709
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
710
|
+
|
711
|
+
# form parameters
|
712
|
+
form_params = {}
|
713
|
+
|
714
|
+
# http body (model)
|
715
|
+
post_body = nil
|
716
|
+
auth_names = ['jenkins_auth']
|
717
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
718
|
+
:header_params => header_params,
|
719
|
+
:query_params => query_params,
|
720
|
+
:form_params => form_params,
|
721
|
+
:body => post_body,
|
722
|
+
:auth_names => auth_names,
|
723
|
+
:return_type => 'PipelineImpl')
|
724
|
+
if @api_client.config.debugging
|
725
|
+
@api_client.config.logger.debug "API called: BlueOceanApi#get_pipeline_folder_pipeline\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
726
|
+
end
|
727
|
+
return data, status_code, headers
|
728
|
+
end
|
729
|
+
|
730
|
+
#
|
731
|
+
# Retrieve queue details for an organization pipeline
|
732
|
+
# @param organization Name of the organization
|
733
|
+
# @param pipeline Name of the pipeline
|
734
|
+
# @param [Hash] opts the optional parameters
|
735
|
+
# @return [PipelineQueue]
|
736
|
+
def get_pipeline_queue(organization, pipeline, opts = {})
|
737
|
+
data, _status_code, _headers = get_pipeline_queue_with_http_info(organization, pipeline, opts)
|
738
|
+
return data
|
739
|
+
end
|
740
|
+
|
741
|
+
#
|
742
|
+
# Retrieve queue details for an organization pipeline
|
743
|
+
# @param organization Name of the organization
|
744
|
+
# @param pipeline Name of the pipeline
|
745
|
+
# @param [Hash] opts the optional parameters
|
746
|
+
# @return [Array<(PipelineQueue, Fixnum, Hash)>] PipelineQueue data, response status code and response headers
|
747
|
+
def get_pipeline_queue_with_http_info(organization, pipeline, opts = {})
|
748
|
+
if @api_client.config.debugging
|
749
|
+
@api_client.config.logger.debug "Calling API: BlueOceanApi.get_pipeline_queue ..."
|
750
|
+
end
|
751
|
+
# verify the required parameter 'organization' is set
|
752
|
+
if @api_client.config.client_side_validation && organization.nil?
|
753
|
+
fail ArgumentError, "Missing the required parameter 'organization' when calling BlueOceanApi.get_pipeline_queue"
|
754
|
+
end
|
755
|
+
# verify the required parameter 'pipeline' is set
|
756
|
+
if @api_client.config.client_side_validation && pipeline.nil?
|
757
|
+
fail ArgumentError, "Missing the required parameter 'pipeline' when calling BlueOceanApi.get_pipeline_queue"
|
758
|
+
end
|
759
|
+
# resource path
|
760
|
+
local_var_path = "/blue/rest/organizations/{organization}/pipelines/{pipeline}/queue".sub('{' + 'organization' + '}', organization.to_s).sub('{' + 'pipeline' + '}', pipeline.to_s)
|
761
|
+
|
762
|
+
# query parameters
|
763
|
+
query_params = {}
|
764
|
+
|
765
|
+
# header parameters
|
766
|
+
header_params = {}
|
767
|
+
# HTTP header 'Accept' (if needed)
|
768
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
769
|
+
|
770
|
+
# form parameters
|
771
|
+
form_params = {}
|
772
|
+
|
773
|
+
# http body (model)
|
774
|
+
post_body = nil
|
775
|
+
auth_names = ['jenkins_auth']
|
776
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
777
|
+
:header_params => header_params,
|
778
|
+
:query_params => query_params,
|
779
|
+
:form_params => form_params,
|
780
|
+
:body => post_body,
|
781
|
+
:auth_names => auth_names,
|
782
|
+
:return_type => 'PipelineQueue')
|
783
|
+
if @api_client.config.debugging
|
784
|
+
@api_client.config.logger.debug "API called: BlueOceanApi#get_pipeline_queue\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
785
|
+
end
|
786
|
+
return data, status_code, headers
|
787
|
+
end
|
788
|
+
|
789
|
+
#
|
790
|
+
# Retrieve run details for an organization pipeline
|
791
|
+
# @param organization Name of the organization
|
792
|
+
# @param pipeline Name of the pipeline
|
793
|
+
# @param run Name of the run
|
794
|
+
# @param [Hash] opts the optional parameters
|
795
|
+
# @return [PipelineRun]
|
796
|
+
def get_pipeline_run(organization, pipeline, run, opts = {})
|
797
|
+
data, _status_code, _headers = get_pipeline_run_with_http_info(organization, pipeline, run, opts)
|
798
|
+
return data
|
799
|
+
end
|
800
|
+
|
801
|
+
#
|
802
|
+
# Retrieve run details for an organization pipeline
|
803
|
+
# @param organization Name of the organization
|
804
|
+
# @param pipeline Name of the pipeline
|
805
|
+
# @param run Name of the run
|
806
|
+
# @param [Hash] opts the optional parameters
|
807
|
+
# @return [Array<(PipelineRun, Fixnum, Hash)>] PipelineRun data, response status code and response headers
|
808
|
+
def get_pipeline_run_with_http_info(organization, pipeline, run, opts = {})
|
809
|
+
if @api_client.config.debugging
|
810
|
+
@api_client.config.logger.debug "Calling API: BlueOceanApi.get_pipeline_run ..."
|
811
|
+
end
|
812
|
+
# verify the required parameter 'organization' is set
|
813
|
+
if @api_client.config.client_side_validation && organization.nil?
|
814
|
+
fail ArgumentError, "Missing the required parameter 'organization' when calling BlueOceanApi.get_pipeline_run"
|
815
|
+
end
|
816
|
+
# verify the required parameter 'pipeline' is set
|
817
|
+
if @api_client.config.client_side_validation && pipeline.nil?
|
818
|
+
fail ArgumentError, "Missing the required parameter 'pipeline' when calling BlueOceanApi.get_pipeline_run"
|
819
|
+
end
|
820
|
+
# verify the required parameter 'run' is set
|
821
|
+
if @api_client.config.client_side_validation && run.nil?
|
822
|
+
fail ArgumentError, "Missing the required parameter 'run' when calling BlueOceanApi.get_pipeline_run"
|
823
|
+
end
|
824
|
+
# resource path
|
825
|
+
local_var_path = "/blue/rest/organizations/{organization}/pipelines/{pipeline}/runs/{run}".sub('{' + 'organization' + '}', organization.to_s).sub('{' + 'pipeline' + '}', pipeline.to_s).sub('{' + 'run' + '}', run.to_s)
|
826
|
+
|
827
|
+
# query parameters
|
828
|
+
query_params = {}
|
829
|
+
|
830
|
+
# header parameters
|
831
|
+
header_params = {}
|
832
|
+
# HTTP header 'Accept' (if needed)
|
833
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
834
|
+
|
835
|
+
# form parameters
|
836
|
+
form_params = {}
|
837
|
+
|
838
|
+
# http body (model)
|
839
|
+
post_body = nil
|
840
|
+
auth_names = ['jenkins_auth']
|
841
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
842
|
+
:header_params => header_params,
|
843
|
+
:query_params => query_params,
|
844
|
+
:form_params => form_params,
|
845
|
+
:body => post_body,
|
846
|
+
:auth_names => auth_names,
|
847
|
+
:return_type => 'PipelineRun')
|
848
|
+
if @api_client.config.debugging
|
849
|
+
@api_client.config.logger.debug "API called: BlueOceanApi#get_pipeline_run\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
850
|
+
end
|
851
|
+
return data, status_code, headers
|
852
|
+
end
|
853
|
+
|
854
|
+
#
|
855
|
+
# Get log for a pipeline run
|
856
|
+
# @param organization Name of the organization
|
857
|
+
# @param pipeline Name of the pipeline
|
858
|
+
# @param run Name of the run
|
859
|
+
# @param [Hash] opts the optional parameters
|
860
|
+
# @option opts [Integer] :start Start position of the log
|
861
|
+
# @option opts [BOOLEAN] :download Set to true in order to download the file, otherwise it's passed as a response body
|
862
|
+
# @return [String]
|
863
|
+
def get_pipeline_run_log(organization, pipeline, run, opts = {})
|
864
|
+
data, _status_code, _headers = get_pipeline_run_log_with_http_info(organization, pipeline, run, opts)
|
865
|
+
return data
|
866
|
+
end
|
867
|
+
|
868
|
+
#
|
869
|
+
# Get log for a pipeline run
|
870
|
+
# @param organization Name of the organization
|
871
|
+
# @param pipeline Name of the pipeline
|
872
|
+
# @param run Name of the run
|
873
|
+
# @param [Hash] opts the optional parameters
|
874
|
+
# @option opts [Integer] :start Start position of the log
|
875
|
+
# @option opts [BOOLEAN] :download Set to true in order to download the file, otherwise it's passed as a response body
|
876
|
+
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
877
|
+
def get_pipeline_run_log_with_http_info(organization, pipeline, run, opts = {})
|
878
|
+
if @api_client.config.debugging
|
879
|
+
@api_client.config.logger.debug "Calling API: BlueOceanApi.get_pipeline_run_log ..."
|
880
|
+
end
|
881
|
+
# verify the required parameter 'organization' is set
|
882
|
+
if @api_client.config.client_side_validation && organization.nil?
|
883
|
+
fail ArgumentError, "Missing the required parameter 'organization' when calling BlueOceanApi.get_pipeline_run_log"
|
884
|
+
end
|
885
|
+
# verify the required parameter 'pipeline' is set
|
886
|
+
if @api_client.config.client_side_validation && pipeline.nil?
|
887
|
+
fail ArgumentError, "Missing the required parameter 'pipeline' when calling BlueOceanApi.get_pipeline_run_log"
|
888
|
+
end
|
889
|
+
# verify the required parameter 'run' is set
|
890
|
+
if @api_client.config.client_side_validation && run.nil?
|
891
|
+
fail ArgumentError, "Missing the required parameter 'run' when calling BlueOceanApi.get_pipeline_run_log"
|
892
|
+
end
|
893
|
+
# resource path
|
894
|
+
local_var_path = "/blue/rest/organizations/{organization}/pipelines/{pipeline}/runs/{run}/log".sub('{' + 'organization' + '}', organization.to_s).sub('{' + 'pipeline' + '}', pipeline.to_s).sub('{' + 'run' + '}', run.to_s)
|
895
|
+
|
896
|
+
# query parameters
|
897
|
+
query_params = {}
|
898
|
+
query_params[:'start'] = opts[:'start'] if !opts[:'start'].nil?
|
899
|
+
query_params[:'download'] = opts[:'download'] if !opts[:'download'].nil?
|
900
|
+
|
901
|
+
# header parameters
|
902
|
+
header_params = {}
|
903
|
+
# HTTP header 'Accept' (if needed)
|
904
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
905
|
+
|
906
|
+
# form parameters
|
907
|
+
form_params = {}
|
908
|
+
|
909
|
+
# http body (model)
|
910
|
+
post_body = nil
|
911
|
+
auth_names = ['jenkins_auth']
|
912
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
913
|
+
:header_params => header_params,
|
914
|
+
:query_params => query_params,
|
915
|
+
:form_params => form_params,
|
916
|
+
:body => post_body,
|
917
|
+
:auth_names => auth_names,
|
918
|
+
:return_type => 'String')
|
919
|
+
if @api_client.config.debugging
|
920
|
+
@api_client.config.logger.debug "API called: BlueOceanApi#get_pipeline_run_log\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
921
|
+
end
|
922
|
+
return data, status_code, headers
|
923
|
+
end
|
924
|
+
|
925
|
+
#
|
926
|
+
# Retrieve run node details for an organization pipeline
|
927
|
+
# @param organization Name of the organization
|
928
|
+
# @param pipeline Name of the pipeline
|
929
|
+
# @param run Name of the run
|
930
|
+
# @param node Name of the node
|
931
|
+
# @param [Hash] opts the optional parameters
|
932
|
+
# @return [PipelineRunNode]
|
933
|
+
def get_pipeline_run_node(organization, pipeline, run, node, opts = {})
|
934
|
+
data, _status_code, _headers = get_pipeline_run_node_with_http_info(organization, pipeline, run, node, opts)
|
935
|
+
return data
|
936
|
+
end
|
937
|
+
|
938
|
+
#
|
939
|
+
# Retrieve run node details for an organization pipeline
|
940
|
+
# @param organization Name of the organization
|
941
|
+
# @param pipeline Name of the pipeline
|
942
|
+
# @param run Name of the run
|
943
|
+
# @param node Name of the node
|
944
|
+
# @param [Hash] opts the optional parameters
|
945
|
+
# @return [Array<(PipelineRunNode, Fixnum, Hash)>] PipelineRunNode data, response status code and response headers
|
946
|
+
def get_pipeline_run_node_with_http_info(organization, pipeline, run, node, opts = {})
|
947
|
+
if @api_client.config.debugging
|
948
|
+
@api_client.config.logger.debug "Calling API: BlueOceanApi.get_pipeline_run_node ..."
|
949
|
+
end
|
950
|
+
# verify the required parameter 'organization' is set
|
951
|
+
if @api_client.config.client_side_validation && organization.nil?
|
952
|
+
fail ArgumentError, "Missing the required parameter 'organization' when calling BlueOceanApi.get_pipeline_run_node"
|
953
|
+
end
|
954
|
+
# verify the required parameter 'pipeline' is set
|
955
|
+
if @api_client.config.client_side_validation && pipeline.nil?
|
956
|
+
fail ArgumentError, "Missing the required parameter 'pipeline' when calling BlueOceanApi.get_pipeline_run_node"
|
957
|
+
end
|
958
|
+
# verify the required parameter 'run' is set
|
959
|
+
if @api_client.config.client_side_validation && run.nil?
|
960
|
+
fail ArgumentError, "Missing the required parameter 'run' when calling BlueOceanApi.get_pipeline_run_node"
|
961
|
+
end
|
962
|
+
# verify the required parameter 'node' is set
|
963
|
+
if @api_client.config.client_side_validation && node.nil?
|
964
|
+
fail ArgumentError, "Missing the required parameter 'node' when calling BlueOceanApi.get_pipeline_run_node"
|
965
|
+
end
|
966
|
+
# resource path
|
967
|
+
local_var_path = "/blue/rest/organizations/{organization}/pipelines/{pipeline}/runs/{run}/nodes/{node}".sub('{' + 'organization' + '}', organization.to_s).sub('{' + 'pipeline' + '}', pipeline.to_s).sub('{' + 'run' + '}', run.to_s).sub('{' + 'node' + '}', node.to_s)
|
968
|
+
|
969
|
+
# query parameters
|
970
|
+
query_params = {}
|
971
|
+
|
972
|
+
# header parameters
|
973
|
+
header_params = {}
|
974
|
+
# HTTP header 'Accept' (if needed)
|
975
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
976
|
+
|
977
|
+
# form parameters
|
978
|
+
form_params = {}
|
979
|
+
|
980
|
+
# http body (model)
|
981
|
+
post_body = nil
|
982
|
+
auth_names = ['jenkins_auth']
|
983
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
984
|
+
:header_params => header_params,
|
985
|
+
:query_params => query_params,
|
986
|
+
:form_params => form_params,
|
987
|
+
:body => post_body,
|
988
|
+
:auth_names => auth_names,
|
989
|
+
:return_type => 'PipelineRunNode')
|
990
|
+
if @api_client.config.debugging
|
991
|
+
@api_client.config.logger.debug "API called: BlueOceanApi#get_pipeline_run_node\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
992
|
+
end
|
993
|
+
return data, status_code, headers
|
994
|
+
end
|
995
|
+
|
996
|
+
#
|
997
|
+
# Retrieve run node details for an organization pipeline
|
998
|
+
# @param organization Name of the organization
|
999
|
+
# @param pipeline Name of the pipeline
|
1000
|
+
# @param run Name of the run
|
1001
|
+
# @param node Name of the node
|
1002
|
+
# @param step Name of the step
|
1003
|
+
# @param [Hash] opts the optional parameters
|
1004
|
+
# @return [PipelineStepImpl]
|
1005
|
+
def get_pipeline_run_node_step(organization, pipeline, run, node, step, opts = {})
|
1006
|
+
data, _status_code, _headers = get_pipeline_run_node_step_with_http_info(organization, pipeline, run, node, step, opts)
|
1007
|
+
return data
|
1008
|
+
end
|
1009
|
+
|
1010
|
+
#
|
1011
|
+
# Retrieve run node details for an organization pipeline
|
1012
|
+
# @param organization Name of the organization
|
1013
|
+
# @param pipeline Name of the pipeline
|
1014
|
+
# @param run Name of the run
|
1015
|
+
# @param node Name of the node
|
1016
|
+
# @param step Name of the step
|
1017
|
+
# @param [Hash] opts the optional parameters
|
1018
|
+
# @return [Array<(PipelineStepImpl, Fixnum, Hash)>] PipelineStepImpl data, response status code and response headers
|
1019
|
+
def get_pipeline_run_node_step_with_http_info(organization, pipeline, run, node, step, opts = {})
|
1020
|
+
if @api_client.config.debugging
|
1021
|
+
@api_client.config.logger.debug "Calling API: BlueOceanApi.get_pipeline_run_node_step ..."
|
1022
|
+
end
|
1023
|
+
# verify the required parameter 'organization' is set
|
1024
|
+
if @api_client.config.client_side_validation && organization.nil?
|
1025
|
+
fail ArgumentError, "Missing the required parameter 'organization' when calling BlueOceanApi.get_pipeline_run_node_step"
|
1026
|
+
end
|
1027
|
+
# verify the required parameter 'pipeline' is set
|
1028
|
+
if @api_client.config.client_side_validation && pipeline.nil?
|
1029
|
+
fail ArgumentError, "Missing the required parameter 'pipeline' when calling BlueOceanApi.get_pipeline_run_node_step"
|
1030
|
+
end
|
1031
|
+
# verify the required parameter 'run' is set
|
1032
|
+
if @api_client.config.client_side_validation && run.nil?
|
1033
|
+
fail ArgumentError, "Missing the required parameter 'run' when calling BlueOceanApi.get_pipeline_run_node_step"
|
1034
|
+
end
|
1035
|
+
# verify the required parameter 'node' is set
|
1036
|
+
if @api_client.config.client_side_validation && node.nil?
|
1037
|
+
fail ArgumentError, "Missing the required parameter 'node' when calling BlueOceanApi.get_pipeline_run_node_step"
|
1038
|
+
end
|
1039
|
+
# verify the required parameter 'step' is set
|
1040
|
+
if @api_client.config.client_side_validation && step.nil?
|
1041
|
+
fail ArgumentError, "Missing the required parameter 'step' when calling BlueOceanApi.get_pipeline_run_node_step"
|
1042
|
+
end
|
1043
|
+
# resource path
|
1044
|
+
local_var_path = "/blue/rest/organizations/{organization}/pipelines/{pipeline}/runs/{run}/nodes/{node}/steps/{step}".sub('{' + 'organization' + '}', organization.to_s).sub('{' + 'pipeline' + '}', pipeline.to_s).sub('{' + 'run' + '}', run.to_s).sub('{' + 'node' + '}', node.to_s).sub('{' + 'step' + '}', step.to_s)
|
1045
|
+
|
1046
|
+
# query parameters
|
1047
|
+
query_params = {}
|
1048
|
+
|
1049
|
+
# header parameters
|
1050
|
+
header_params = {}
|
1051
|
+
# HTTP header 'Accept' (if needed)
|
1052
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1053
|
+
|
1054
|
+
# form parameters
|
1055
|
+
form_params = {}
|
1056
|
+
|
1057
|
+
# http body (model)
|
1058
|
+
post_body = nil
|
1059
|
+
auth_names = ['jenkins_auth']
|
1060
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1061
|
+
:header_params => header_params,
|
1062
|
+
:query_params => query_params,
|
1063
|
+
:form_params => form_params,
|
1064
|
+
:body => post_body,
|
1065
|
+
:auth_names => auth_names,
|
1066
|
+
:return_type => 'PipelineStepImpl')
|
1067
|
+
if @api_client.config.debugging
|
1068
|
+
@api_client.config.logger.debug "API called: BlueOceanApi#get_pipeline_run_node_step\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1069
|
+
end
|
1070
|
+
return data, status_code, headers
|
1071
|
+
end
|
1072
|
+
|
1073
|
+
#
|
1074
|
+
# Get log for a pipeline run node step
|
1075
|
+
# @param organization Name of the organization
|
1076
|
+
# @param pipeline Name of the pipeline
|
1077
|
+
# @param run Name of the run
|
1078
|
+
# @param node Name of the node
|
1079
|
+
# @param step Name of the step
|
1080
|
+
# @param [Hash] opts the optional parameters
|
1081
|
+
# @return [String]
|
1082
|
+
def get_pipeline_run_node_step_log(organization, pipeline, run, node, step, opts = {})
|
1083
|
+
data, _status_code, _headers = get_pipeline_run_node_step_log_with_http_info(organization, pipeline, run, node, step, opts)
|
1084
|
+
return data
|
1085
|
+
end
|
1086
|
+
|
1087
|
+
#
|
1088
|
+
# Get log for a pipeline run node step
|
1089
|
+
# @param organization Name of the organization
|
1090
|
+
# @param pipeline Name of the pipeline
|
1091
|
+
# @param run Name of the run
|
1092
|
+
# @param node Name of the node
|
1093
|
+
# @param step Name of the step
|
1094
|
+
# @param [Hash] opts the optional parameters
|
1095
|
+
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
1096
|
+
def get_pipeline_run_node_step_log_with_http_info(organization, pipeline, run, node, step, opts = {})
|
1097
|
+
if @api_client.config.debugging
|
1098
|
+
@api_client.config.logger.debug "Calling API: BlueOceanApi.get_pipeline_run_node_step_log ..."
|
1099
|
+
end
|
1100
|
+
# verify the required parameter 'organization' is set
|
1101
|
+
if @api_client.config.client_side_validation && organization.nil?
|
1102
|
+
fail ArgumentError, "Missing the required parameter 'organization' when calling BlueOceanApi.get_pipeline_run_node_step_log"
|
1103
|
+
end
|
1104
|
+
# verify the required parameter 'pipeline' is set
|
1105
|
+
if @api_client.config.client_side_validation && pipeline.nil?
|
1106
|
+
fail ArgumentError, "Missing the required parameter 'pipeline' when calling BlueOceanApi.get_pipeline_run_node_step_log"
|
1107
|
+
end
|
1108
|
+
# verify the required parameter 'run' is set
|
1109
|
+
if @api_client.config.client_side_validation && run.nil?
|
1110
|
+
fail ArgumentError, "Missing the required parameter 'run' when calling BlueOceanApi.get_pipeline_run_node_step_log"
|
1111
|
+
end
|
1112
|
+
# verify the required parameter 'node' is set
|
1113
|
+
if @api_client.config.client_side_validation && node.nil?
|
1114
|
+
fail ArgumentError, "Missing the required parameter 'node' when calling BlueOceanApi.get_pipeline_run_node_step_log"
|
1115
|
+
end
|
1116
|
+
# verify the required parameter 'step' is set
|
1117
|
+
if @api_client.config.client_side_validation && step.nil?
|
1118
|
+
fail ArgumentError, "Missing the required parameter 'step' when calling BlueOceanApi.get_pipeline_run_node_step_log"
|
1119
|
+
end
|
1120
|
+
# resource path
|
1121
|
+
local_var_path = "/blue/rest/organizations/{organization}/pipelines/{pipeline}/runs/{run}/nodes/{node}/steps/{step}/log".sub('{' + 'organization' + '}', organization.to_s).sub('{' + 'pipeline' + '}', pipeline.to_s).sub('{' + 'run' + '}', run.to_s).sub('{' + 'node' + '}', node.to_s).sub('{' + 'step' + '}', step.to_s)
|
1122
|
+
|
1123
|
+
# query parameters
|
1124
|
+
query_params = {}
|
1125
|
+
|
1126
|
+
# header parameters
|
1127
|
+
header_params = {}
|
1128
|
+
# HTTP header 'Accept' (if needed)
|
1129
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1130
|
+
|
1131
|
+
# form parameters
|
1132
|
+
form_params = {}
|
1133
|
+
|
1134
|
+
# http body (model)
|
1135
|
+
post_body = nil
|
1136
|
+
auth_names = ['jenkins_auth']
|
1137
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1138
|
+
:header_params => header_params,
|
1139
|
+
:query_params => query_params,
|
1140
|
+
:form_params => form_params,
|
1141
|
+
:body => post_body,
|
1142
|
+
:auth_names => auth_names,
|
1143
|
+
:return_type => 'String')
|
1144
|
+
if @api_client.config.debugging
|
1145
|
+
@api_client.config.logger.debug "API called: BlueOceanApi#get_pipeline_run_node_step_log\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1146
|
+
end
|
1147
|
+
return data, status_code, headers
|
1148
|
+
end
|
1149
|
+
|
1150
|
+
#
|
1151
|
+
# Retrieve run node steps details for an organization pipeline
|
1152
|
+
# @param organization Name of the organization
|
1153
|
+
# @param pipeline Name of the pipeline
|
1154
|
+
# @param run Name of the run
|
1155
|
+
# @param node Name of the node
|
1156
|
+
# @param [Hash] opts the optional parameters
|
1157
|
+
# @return [PipelineRunNodeSteps]
|
1158
|
+
def get_pipeline_run_node_steps(organization, pipeline, run, node, opts = {})
|
1159
|
+
data, _status_code, _headers = get_pipeline_run_node_steps_with_http_info(organization, pipeline, run, node, opts)
|
1160
|
+
return data
|
1161
|
+
end
|
1162
|
+
|
1163
|
+
#
|
1164
|
+
# Retrieve run node steps details for an organization pipeline
|
1165
|
+
# @param organization Name of the organization
|
1166
|
+
# @param pipeline Name of the pipeline
|
1167
|
+
# @param run Name of the run
|
1168
|
+
# @param node Name of the node
|
1169
|
+
# @param [Hash] opts the optional parameters
|
1170
|
+
# @return [Array<(PipelineRunNodeSteps, Fixnum, Hash)>] PipelineRunNodeSteps data, response status code and response headers
|
1171
|
+
def get_pipeline_run_node_steps_with_http_info(organization, pipeline, run, node, opts = {})
|
1172
|
+
if @api_client.config.debugging
|
1173
|
+
@api_client.config.logger.debug "Calling API: BlueOceanApi.get_pipeline_run_node_steps ..."
|
1174
|
+
end
|
1175
|
+
# verify the required parameter 'organization' is set
|
1176
|
+
if @api_client.config.client_side_validation && organization.nil?
|
1177
|
+
fail ArgumentError, "Missing the required parameter 'organization' when calling BlueOceanApi.get_pipeline_run_node_steps"
|
1178
|
+
end
|
1179
|
+
# verify the required parameter 'pipeline' is set
|
1180
|
+
if @api_client.config.client_side_validation && pipeline.nil?
|
1181
|
+
fail ArgumentError, "Missing the required parameter 'pipeline' when calling BlueOceanApi.get_pipeline_run_node_steps"
|
1182
|
+
end
|
1183
|
+
# verify the required parameter 'run' is set
|
1184
|
+
if @api_client.config.client_side_validation && run.nil?
|
1185
|
+
fail ArgumentError, "Missing the required parameter 'run' when calling BlueOceanApi.get_pipeline_run_node_steps"
|
1186
|
+
end
|
1187
|
+
# verify the required parameter 'node' is set
|
1188
|
+
if @api_client.config.client_side_validation && node.nil?
|
1189
|
+
fail ArgumentError, "Missing the required parameter 'node' when calling BlueOceanApi.get_pipeline_run_node_steps"
|
1190
|
+
end
|
1191
|
+
# resource path
|
1192
|
+
local_var_path = "/blue/rest/organizations/{organization}/pipelines/{pipeline}/runs/{run}/nodes/{node}/steps".sub('{' + 'organization' + '}', organization.to_s).sub('{' + 'pipeline' + '}', pipeline.to_s).sub('{' + 'run' + '}', run.to_s).sub('{' + 'node' + '}', node.to_s)
|
1193
|
+
|
1194
|
+
# query parameters
|
1195
|
+
query_params = {}
|
1196
|
+
|
1197
|
+
# header parameters
|
1198
|
+
header_params = {}
|
1199
|
+
# HTTP header 'Accept' (if needed)
|
1200
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1201
|
+
|
1202
|
+
# form parameters
|
1203
|
+
form_params = {}
|
1204
|
+
|
1205
|
+
# http body (model)
|
1206
|
+
post_body = nil
|
1207
|
+
auth_names = ['jenkins_auth']
|
1208
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1209
|
+
:header_params => header_params,
|
1210
|
+
:query_params => query_params,
|
1211
|
+
:form_params => form_params,
|
1212
|
+
:body => post_body,
|
1213
|
+
:auth_names => auth_names,
|
1214
|
+
:return_type => 'PipelineRunNodeSteps')
|
1215
|
+
if @api_client.config.debugging
|
1216
|
+
@api_client.config.logger.debug "API called: BlueOceanApi#get_pipeline_run_node_steps\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1217
|
+
end
|
1218
|
+
return data, status_code, headers
|
1219
|
+
end
|
1220
|
+
|
1221
|
+
#
|
1222
|
+
# Retrieve run nodes details for an organization pipeline
|
1223
|
+
# @param organization Name of the organization
|
1224
|
+
# @param pipeline Name of the pipeline
|
1225
|
+
# @param run Name of the run
|
1226
|
+
# @param [Hash] opts the optional parameters
|
1227
|
+
# @return [PipelineRunNodes]
|
1228
|
+
def get_pipeline_run_nodes(organization, pipeline, run, opts = {})
|
1229
|
+
data, _status_code, _headers = get_pipeline_run_nodes_with_http_info(organization, pipeline, run, opts)
|
1230
|
+
return data
|
1231
|
+
end
|
1232
|
+
|
1233
|
+
#
|
1234
|
+
# Retrieve run nodes details for an organization pipeline
|
1235
|
+
# @param organization Name of the organization
|
1236
|
+
# @param pipeline Name of the pipeline
|
1237
|
+
# @param run Name of the run
|
1238
|
+
# @param [Hash] opts the optional parameters
|
1239
|
+
# @return [Array<(PipelineRunNodes, Fixnum, Hash)>] PipelineRunNodes data, response status code and response headers
|
1240
|
+
def get_pipeline_run_nodes_with_http_info(organization, pipeline, run, opts = {})
|
1241
|
+
if @api_client.config.debugging
|
1242
|
+
@api_client.config.logger.debug "Calling API: BlueOceanApi.get_pipeline_run_nodes ..."
|
1243
|
+
end
|
1244
|
+
# verify the required parameter 'organization' is set
|
1245
|
+
if @api_client.config.client_side_validation && organization.nil?
|
1246
|
+
fail ArgumentError, "Missing the required parameter 'organization' when calling BlueOceanApi.get_pipeline_run_nodes"
|
1247
|
+
end
|
1248
|
+
# verify the required parameter 'pipeline' is set
|
1249
|
+
if @api_client.config.client_side_validation && pipeline.nil?
|
1250
|
+
fail ArgumentError, "Missing the required parameter 'pipeline' when calling BlueOceanApi.get_pipeline_run_nodes"
|
1251
|
+
end
|
1252
|
+
# verify the required parameter 'run' is set
|
1253
|
+
if @api_client.config.client_side_validation && run.nil?
|
1254
|
+
fail ArgumentError, "Missing the required parameter 'run' when calling BlueOceanApi.get_pipeline_run_nodes"
|
1255
|
+
end
|
1256
|
+
# resource path
|
1257
|
+
local_var_path = "/blue/rest/organizations/{organization}/pipelines/{pipeline}/runs/{run}/nodes".sub('{' + 'organization' + '}', organization.to_s).sub('{' + 'pipeline' + '}', pipeline.to_s).sub('{' + 'run' + '}', run.to_s)
|
1258
|
+
|
1259
|
+
# query parameters
|
1260
|
+
query_params = {}
|
1261
|
+
|
1262
|
+
# header parameters
|
1263
|
+
header_params = {}
|
1264
|
+
# HTTP header 'Accept' (if needed)
|
1265
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1266
|
+
|
1267
|
+
# form parameters
|
1268
|
+
form_params = {}
|
1269
|
+
|
1270
|
+
# http body (model)
|
1271
|
+
post_body = nil
|
1272
|
+
auth_names = ['jenkins_auth']
|
1273
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1274
|
+
:header_params => header_params,
|
1275
|
+
:query_params => query_params,
|
1276
|
+
:form_params => form_params,
|
1277
|
+
:body => post_body,
|
1278
|
+
:auth_names => auth_names,
|
1279
|
+
:return_type => 'PipelineRunNodes')
|
1280
|
+
if @api_client.config.debugging
|
1281
|
+
@api_client.config.logger.debug "API called: BlueOceanApi#get_pipeline_run_nodes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1282
|
+
end
|
1283
|
+
return data, status_code, headers
|
1284
|
+
end
|
1285
|
+
|
1286
|
+
#
|
1287
|
+
# Retrieve all runs details for an organization pipeline
|
1288
|
+
# @param organization Name of the organization
|
1289
|
+
# @param pipeline Name of the pipeline
|
1290
|
+
# @param [Hash] opts the optional parameters
|
1291
|
+
# @return [PipelineRuns]
|
1292
|
+
def get_pipeline_runs(organization, pipeline, opts = {})
|
1293
|
+
data, _status_code, _headers = get_pipeline_runs_with_http_info(organization, pipeline, opts)
|
1294
|
+
return data
|
1295
|
+
end
|
1296
|
+
|
1297
|
+
#
|
1298
|
+
# Retrieve all runs details for an organization pipeline
|
1299
|
+
# @param organization Name of the organization
|
1300
|
+
# @param pipeline Name of the pipeline
|
1301
|
+
# @param [Hash] opts the optional parameters
|
1302
|
+
# @return [Array<(PipelineRuns, Fixnum, Hash)>] PipelineRuns data, response status code and response headers
|
1303
|
+
def get_pipeline_runs_with_http_info(organization, pipeline, opts = {})
|
1304
|
+
if @api_client.config.debugging
|
1305
|
+
@api_client.config.logger.debug "Calling API: BlueOceanApi.get_pipeline_runs ..."
|
1306
|
+
end
|
1307
|
+
# verify the required parameter 'organization' is set
|
1308
|
+
if @api_client.config.client_side_validation && organization.nil?
|
1309
|
+
fail ArgumentError, "Missing the required parameter 'organization' when calling BlueOceanApi.get_pipeline_runs"
|
1310
|
+
end
|
1311
|
+
# verify the required parameter 'pipeline' is set
|
1312
|
+
if @api_client.config.client_side_validation && pipeline.nil?
|
1313
|
+
fail ArgumentError, "Missing the required parameter 'pipeline' when calling BlueOceanApi.get_pipeline_runs"
|
1314
|
+
end
|
1315
|
+
# resource path
|
1316
|
+
local_var_path = "/blue/rest/organizations/{organization}/pipelines/{pipeline}/runs".sub('{' + 'organization' + '}', organization.to_s).sub('{' + 'pipeline' + '}', pipeline.to_s)
|
1317
|
+
|
1318
|
+
# query parameters
|
1319
|
+
query_params = {}
|
1320
|
+
|
1321
|
+
# header parameters
|
1322
|
+
header_params = {}
|
1323
|
+
# HTTP header 'Accept' (if needed)
|
1324
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1325
|
+
|
1326
|
+
# form parameters
|
1327
|
+
form_params = {}
|
1328
|
+
|
1329
|
+
# http body (model)
|
1330
|
+
post_body = nil
|
1331
|
+
auth_names = ['jenkins_auth']
|
1332
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1333
|
+
:header_params => header_params,
|
1334
|
+
:query_params => query_params,
|
1335
|
+
:form_params => form_params,
|
1336
|
+
:body => post_body,
|
1337
|
+
:auth_names => auth_names,
|
1338
|
+
:return_type => 'PipelineRuns')
|
1339
|
+
if @api_client.config.debugging
|
1340
|
+
@api_client.config.logger.debug "API called: BlueOceanApi#get_pipeline_runs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1341
|
+
end
|
1342
|
+
return data, status_code, headers
|
1343
|
+
end
|
1344
|
+
|
1345
|
+
#
|
1346
|
+
# Retrieve all pipelines details for an organization
|
1347
|
+
# @param organization Name of the organization
|
1348
|
+
# @param [Hash] opts the optional parameters
|
1349
|
+
# @return [Pipelines]
|
1350
|
+
def get_pipelines(organization, opts = {})
|
1351
|
+
data, _status_code, _headers = get_pipelines_with_http_info(organization, opts)
|
1352
|
+
return data
|
1353
|
+
end
|
1354
|
+
|
1355
|
+
#
|
1356
|
+
# Retrieve all pipelines details for an organization
|
1357
|
+
# @param organization Name of the organization
|
1358
|
+
# @param [Hash] opts the optional parameters
|
1359
|
+
# @return [Array<(Pipelines, Fixnum, Hash)>] Pipelines data, response status code and response headers
|
1360
|
+
def get_pipelines_with_http_info(organization, opts = {})
|
1361
|
+
if @api_client.config.debugging
|
1362
|
+
@api_client.config.logger.debug "Calling API: BlueOceanApi.get_pipelines ..."
|
1363
|
+
end
|
1364
|
+
# verify the required parameter 'organization' is set
|
1365
|
+
if @api_client.config.client_side_validation && organization.nil?
|
1366
|
+
fail ArgumentError, "Missing the required parameter 'organization' when calling BlueOceanApi.get_pipelines"
|
1367
|
+
end
|
1368
|
+
# resource path
|
1369
|
+
local_var_path = "/blue/rest/organizations/{organization}/pipelines/".sub('{' + 'organization' + '}', organization.to_s)
|
1370
|
+
|
1371
|
+
# query parameters
|
1372
|
+
query_params = {}
|
1373
|
+
|
1374
|
+
# header parameters
|
1375
|
+
header_params = {}
|
1376
|
+
# HTTP header 'Accept' (if needed)
|
1377
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1378
|
+
|
1379
|
+
# form parameters
|
1380
|
+
form_params = {}
|
1381
|
+
|
1382
|
+
# http body (model)
|
1383
|
+
post_body = nil
|
1384
|
+
auth_names = ['jenkins_auth']
|
1385
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1386
|
+
:header_params => header_params,
|
1387
|
+
:query_params => query_params,
|
1388
|
+
:form_params => form_params,
|
1389
|
+
:body => post_body,
|
1390
|
+
:auth_names => auth_names,
|
1391
|
+
:return_type => 'Pipelines')
|
1392
|
+
if @api_client.config.debugging
|
1393
|
+
@api_client.config.logger.debug "API called: BlueOceanApi#get_pipelines\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1394
|
+
end
|
1395
|
+
return data, status_code, headers
|
1396
|
+
end
|
1397
|
+
|
1398
|
+
#
|
1399
|
+
# Retrieve SCM details for an organization
|
1400
|
+
# @param organization Name of the organization
|
1401
|
+
# @param scm Name of SCM
|
1402
|
+
# @param [Hash] opts the optional parameters
|
1403
|
+
# @return [GithubScm]
|
1404
|
+
def get_scm(organization, scm, opts = {})
|
1405
|
+
data, _status_code, _headers = get_scm_with_http_info(organization, scm, opts)
|
1406
|
+
return data
|
1407
|
+
end
|
1408
|
+
|
1409
|
+
#
|
1410
|
+
# Retrieve SCM details for an organization
|
1411
|
+
# @param organization Name of the organization
|
1412
|
+
# @param scm Name of SCM
|
1413
|
+
# @param [Hash] opts the optional parameters
|
1414
|
+
# @return [Array<(GithubScm, Fixnum, Hash)>] GithubScm data, response status code and response headers
|
1415
|
+
def get_scm_with_http_info(organization, scm, opts = {})
|
1416
|
+
if @api_client.config.debugging
|
1417
|
+
@api_client.config.logger.debug "Calling API: BlueOceanApi.get_scm ..."
|
1418
|
+
end
|
1419
|
+
# verify the required parameter 'organization' is set
|
1420
|
+
if @api_client.config.client_side_validation && organization.nil?
|
1421
|
+
fail ArgumentError, "Missing the required parameter 'organization' when calling BlueOceanApi.get_scm"
|
1422
|
+
end
|
1423
|
+
# verify the required parameter 'scm' is set
|
1424
|
+
if @api_client.config.client_side_validation && scm.nil?
|
1425
|
+
fail ArgumentError, "Missing the required parameter 'scm' when calling BlueOceanApi.get_scm"
|
1426
|
+
end
|
1427
|
+
# resource path
|
1428
|
+
local_var_path = "/blue/rest/organizations/{organization}/scm/{scm}".sub('{' + 'organization' + '}', organization.to_s).sub('{' + 'scm' + '}', scm.to_s)
|
1429
|
+
|
1430
|
+
# query parameters
|
1431
|
+
query_params = {}
|
1432
|
+
|
1433
|
+
# header parameters
|
1434
|
+
header_params = {}
|
1435
|
+
# HTTP header 'Accept' (if needed)
|
1436
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1437
|
+
|
1438
|
+
# form parameters
|
1439
|
+
form_params = {}
|
1440
|
+
|
1441
|
+
# http body (model)
|
1442
|
+
post_body = nil
|
1443
|
+
auth_names = ['jenkins_auth']
|
1444
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1445
|
+
:header_params => header_params,
|
1446
|
+
:query_params => query_params,
|
1447
|
+
:form_params => form_params,
|
1448
|
+
:body => post_body,
|
1449
|
+
:auth_names => auth_names,
|
1450
|
+
:return_type => 'GithubScm')
|
1451
|
+
if @api_client.config.debugging
|
1452
|
+
@api_client.config.logger.debug "API called: BlueOceanApi#get_scm\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1453
|
+
end
|
1454
|
+
return data, status_code, headers
|
1455
|
+
end
|
1456
|
+
|
1457
|
+
#
|
1458
|
+
# Retrieve SCM organization repositories details for an organization
|
1459
|
+
# @param organization Name of the organization
|
1460
|
+
# @param scm Name of SCM
|
1461
|
+
# @param scm_organisation Name of the SCM organization
|
1462
|
+
# @param [Hash] opts the optional parameters
|
1463
|
+
# @option opts [String] :credential_id Credential ID
|
1464
|
+
# @option opts [Integer] :page_size Number of items in a page
|
1465
|
+
# @option opts [Integer] :page_number Page number
|
1466
|
+
# @return [ScmOrganisations]
|
1467
|
+
def get_scm_organisation_repositories(organization, scm, scm_organisation, opts = {})
|
1468
|
+
data, _status_code, _headers = get_scm_organisation_repositories_with_http_info(organization, scm, scm_organisation, opts)
|
1469
|
+
return data
|
1470
|
+
end
|
1471
|
+
|
1472
|
+
#
|
1473
|
+
# Retrieve SCM organization repositories details for an organization
|
1474
|
+
# @param organization Name of the organization
|
1475
|
+
# @param scm Name of SCM
|
1476
|
+
# @param scm_organisation Name of the SCM organization
|
1477
|
+
# @param [Hash] opts the optional parameters
|
1478
|
+
# @option opts [String] :credential_id Credential ID
|
1479
|
+
# @option opts [Integer] :page_size Number of items in a page
|
1480
|
+
# @option opts [Integer] :page_number Page number
|
1481
|
+
# @return [Array<(ScmOrganisations, Fixnum, Hash)>] ScmOrganisations data, response status code and response headers
|
1482
|
+
def get_scm_organisation_repositories_with_http_info(organization, scm, scm_organisation, opts = {})
|
1483
|
+
if @api_client.config.debugging
|
1484
|
+
@api_client.config.logger.debug "Calling API: BlueOceanApi.get_scm_organisation_repositories ..."
|
1485
|
+
end
|
1486
|
+
# verify the required parameter 'organization' is set
|
1487
|
+
if @api_client.config.client_side_validation && organization.nil?
|
1488
|
+
fail ArgumentError, "Missing the required parameter 'organization' when calling BlueOceanApi.get_scm_organisation_repositories"
|
1489
|
+
end
|
1490
|
+
# verify the required parameter 'scm' is set
|
1491
|
+
if @api_client.config.client_side_validation && scm.nil?
|
1492
|
+
fail ArgumentError, "Missing the required parameter 'scm' when calling BlueOceanApi.get_scm_organisation_repositories"
|
1493
|
+
end
|
1494
|
+
# verify the required parameter 'scm_organisation' is set
|
1495
|
+
if @api_client.config.client_side_validation && scm_organisation.nil?
|
1496
|
+
fail ArgumentError, "Missing the required parameter 'scm_organisation' when calling BlueOceanApi.get_scm_organisation_repositories"
|
1497
|
+
end
|
1498
|
+
# resource path
|
1499
|
+
local_var_path = "/blue/rest/organizations/{organization}/scm/{scm}/organizations/{scmOrganisation}/repositories".sub('{' + 'organization' + '}', organization.to_s).sub('{' + 'scm' + '}', scm.to_s).sub('{' + 'scmOrganisation' + '}', scm_organisation.to_s)
|
1500
|
+
|
1501
|
+
# query parameters
|
1502
|
+
query_params = {}
|
1503
|
+
query_params[:'credentialId'] = opts[:'credential_id'] if !opts[:'credential_id'].nil?
|
1504
|
+
query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
1505
|
+
query_params[:'pageNumber'] = opts[:'page_number'] if !opts[:'page_number'].nil?
|
1506
|
+
|
1507
|
+
# header parameters
|
1508
|
+
header_params = {}
|
1509
|
+
# HTTP header 'Accept' (if needed)
|
1510
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1511
|
+
|
1512
|
+
# form parameters
|
1513
|
+
form_params = {}
|
1514
|
+
|
1515
|
+
# http body (model)
|
1516
|
+
post_body = nil
|
1517
|
+
auth_names = ['jenkins_auth']
|
1518
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1519
|
+
:header_params => header_params,
|
1520
|
+
:query_params => query_params,
|
1521
|
+
:form_params => form_params,
|
1522
|
+
:body => post_body,
|
1523
|
+
:auth_names => auth_names,
|
1524
|
+
:return_type => 'ScmOrganisations')
|
1525
|
+
if @api_client.config.debugging
|
1526
|
+
@api_client.config.logger.debug "API called: BlueOceanApi#get_scm_organisation_repositories\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1527
|
+
end
|
1528
|
+
return data, status_code, headers
|
1529
|
+
end
|
1530
|
+
|
1531
|
+
#
|
1532
|
+
# Retrieve SCM organization repository details for an organization
|
1533
|
+
# @param organization Name of the organization
|
1534
|
+
# @param scm Name of SCM
|
1535
|
+
# @param scm_organisation Name of the SCM organization
|
1536
|
+
# @param repository Name of the SCM repository
|
1537
|
+
# @param [Hash] opts the optional parameters
|
1538
|
+
# @option opts [String] :credential_id Credential ID
|
1539
|
+
# @return [ScmOrganisations]
|
1540
|
+
def get_scm_organisation_repository(organization, scm, scm_organisation, repository, opts = {})
|
1541
|
+
data, _status_code, _headers = get_scm_organisation_repository_with_http_info(organization, scm, scm_organisation, repository, opts)
|
1542
|
+
return data
|
1543
|
+
end
|
1544
|
+
|
1545
|
+
#
|
1546
|
+
# Retrieve SCM organization repository details for an organization
|
1547
|
+
# @param organization Name of the organization
|
1548
|
+
# @param scm Name of SCM
|
1549
|
+
# @param scm_organisation Name of the SCM organization
|
1550
|
+
# @param repository Name of the SCM repository
|
1551
|
+
# @param [Hash] opts the optional parameters
|
1552
|
+
# @option opts [String] :credential_id Credential ID
|
1553
|
+
# @return [Array<(ScmOrganisations, Fixnum, Hash)>] ScmOrganisations data, response status code and response headers
|
1554
|
+
def get_scm_organisation_repository_with_http_info(organization, scm, scm_organisation, repository, opts = {})
|
1555
|
+
if @api_client.config.debugging
|
1556
|
+
@api_client.config.logger.debug "Calling API: BlueOceanApi.get_scm_organisation_repository ..."
|
1557
|
+
end
|
1558
|
+
# verify the required parameter 'organization' is set
|
1559
|
+
if @api_client.config.client_side_validation && organization.nil?
|
1560
|
+
fail ArgumentError, "Missing the required parameter 'organization' when calling BlueOceanApi.get_scm_organisation_repository"
|
1561
|
+
end
|
1562
|
+
# verify the required parameter 'scm' is set
|
1563
|
+
if @api_client.config.client_side_validation && scm.nil?
|
1564
|
+
fail ArgumentError, "Missing the required parameter 'scm' when calling BlueOceanApi.get_scm_organisation_repository"
|
1565
|
+
end
|
1566
|
+
# verify the required parameter 'scm_organisation' is set
|
1567
|
+
if @api_client.config.client_side_validation && scm_organisation.nil?
|
1568
|
+
fail ArgumentError, "Missing the required parameter 'scm_organisation' when calling BlueOceanApi.get_scm_organisation_repository"
|
1569
|
+
end
|
1570
|
+
# verify the required parameter 'repository' is set
|
1571
|
+
if @api_client.config.client_side_validation && repository.nil?
|
1572
|
+
fail ArgumentError, "Missing the required parameter 'repository' when calling BlueOceanApi.get_scm_organisation_repository"
|
1573
|
+
end
|
1574
|
+
# resource path
|
1575
|
+
local_var_path = "/blue/rest/organizations/{organization}/scm/{scm}/organizations/{scmOrganisation}/repositories/{repository}".sub('{' + 'organization' + '}', organization.to_s).sub('{' + 'scm' + '}', scm.to_s).sub('{' + 'scmOrganisation' + '}', scm_organisation.to_s).sub('{' + 'repository' + '}', repository.to_s)
|
1576
|
+
|
1577
|
+
# query parameters
|
1578
|
+
query_params = {}
|
1579
|
+
query_params[:'credentialId'] = opts[:'credential_id'] if !opts[:'credential_id'].nil?
|
1580
|
+
|
1581
|
+
# header parameters
|
1582
|
+
header_params = {}
|
1583
|
+
# HTTP header 'Accept' (if needed)
|
1584
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1585
|
+
|
1586
|
+
# form parameters
|
1587
|
+
form_params = {}
|
1588
|
+
|
1589
|
+
# http body (model)
|
1590
|
+
post_body = nil
|
1591
|
+
auth_names = ['jenkins_auth']
|
1592
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1593
|
+
:header_params => header_params,
|
1594
|
+
:query_params => query_params,
|
1595
|
+
:form_params => form_params,
|
1596
|
+
:body => post_body,
|
1597
|
+
:auth_names => auth_names,
|
1598
|
+
:return_type => 'ScmOrganisations')
|
1599
|
+
if @api_client.config.debugging
|
1600
|
+
@api_client.config.logger.debug "API called: BlueOceanApi#get_scm_organisation_repository\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1601
|
+
end
|
1602
|
+
return data, status_code, headers
|
1603
|
+
end
|
1604
|
+
|
1605
|
+
#
|
1606
|
+
# Retrieve SCM organizations details for an organization
|
1607
|
+
# @param organization Name of the organization
|
1608
|
+
# @param scm Name of SCM
|
1609
|
+
# @param [Hash] opts the optional parameters
|
1610
|
+
# @option opts [String] :credential_id Credential ID
|
1611
|
+
# @return [ScmOrganisations]
|
1612
|
+
def get_scm_organisations(organization, scm, opts = {})
|
1613
|
+
data, _status_code, _headers = get_scm_organisations_with_http_info(organization, scm, opts)
|
1614
|
+
return data
|
1615
|
+
end
|
1616
|
+
|
1617
|
+
#
|
1618
|
+
# Retrieve SCM organizations details for an organization
|
1619
|
+
# @param organization Name of the organization
|
1620
|
+
# @param scm Name of SCM
|
1621
|
+
# @param [Hash] opts the optional parameters
|
1622
|
+
# @option opts [String] :credential_id Credential ID
|
1623
|
+
# @return [Array<(ScmOrganisations, Fixnum, Hash)>] ScmOrganisations data, response status code and response headers
|
1624
|
+
def get_scm_organisations_with_http_info(organization, scm, opts = {})
|
1625
|
+
if @api_client.config.debugging
|
1626
|
+
@api_client.config.logger.debug "Calling API: BlueOceanApi.get_scm_organisations ..."
|
1627
|
+
end
|
1628
|
+
# verify the required parameter 'organization' is set
|
1629
|
+
if @api_client.config.client_side_validation && organization.nil?
|
1630
|
+
fail ArgumentError, "Missing the required parameter 'organization' when calling BlueOceanApi.get_scm_organisations"
|
1631
|
+
end
|
1632
|
+
# verify the required parameter 'scm' is set
|
1633
|
+
if @api_client.config.client_side_validation && scm.nil?
|
1634
|
+
fail ArgumentError, "Missing the required parameter 'scm' when calling BlueOceanApi.get_scm_organisations"
|
1635
|
+
end
|
1636
|
+
# resource path
|
1637
|
+
local_var_path = "/blue/rest/organizations/{organization}/scm/{scm}/organizations".sub('{' + 'organization' + '}', organization.to_s).sub('{' + 'scm' + '}', scm.to_s)
|
1638
|
+
|
1639
|
+
# query parameters
|
1640
|
+
query_params = {}
|
1641
|
+
query_params[:'credentialId'] = opts[:'credential_id'] if !opts[:'credential_id'].nil?
|
1642
|
+
|
1643
|
+
# header parameters
|
1644
|
+
header_params = {}
|
1645
|
+
# HTTP header 'Accept' (if needed)
|
1646
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1647
|
+
|
1648
|
+
# form parameters
|
1649
|
+
form_params = {}
|
1650
|
+
|
1651
|
+
# http body (model)
|
1652
|
+
post_body = nil
|
1653
|
+
auth_names = ['jenkins_auth']
|
1654
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1655
|
+
:header_params => header_params,
|
1656
|
+
:query_params => query_params,
|
1657
|
+
:form_params => form_params,
|
1658
|
+
:body => post_body,
|
1659
|
+
:auth_names => auth_names,
|
1660
|
+
:return_type => 'ScmOrganisations')
|
1661
|
+
if @api_client.config.debugging
|
1662
|
+
@api_client.config.logger.debug "API called: BlueOceanApi#get_scm_organisations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1663
|
+
end
|
1664
|
+
return data, status_code, headers
|
1665
|
+
end
|
1666
|
+
|
1667
|
+
#
|
1668
|
+
# Retrieve user details for an organization
|
1669
|
+
# @param organization Name of the organization
|
1670
|
+
# @param user Name of the user
|
1671
|
+
# @param [Hash] opts the optional parameters
|
1672
|
+
# @return [User]
|
1673
|
+
def get_user(organization, user, opts = {})
|
1674
|
+
data, _status_code, _headers = get_user_with_http_info(organization, user, opts)
|
1675
|
+
return data
|
1676
|
+
end
|
1677
|
+
|
1678
|
+
#
|
1679
|
+
# Retrieve user details for an organization
|
1680
|
+
# @param organization Name of the organization
|
1681
|
+
# @param user Name of the user
|
1682
|
+
# @param [Hash] opts the optional parameters
|
1683
|
+
# @return [Array<(User, Fixnum, Hash)>] User data, response status code and response headers
|
1684
|
+
def get_user_with_http_info(organization, user, opts = {})
|
1685
|
+
if @api_client.config.debugging
|
1686
|
+
@api_client.config.logger.debug "Calling API: BlueOceanApi.get_user ..."
|
1687
|
+
end
|
1688
|
+
# verify the required parameter 'organization' is set
|
1689
|
+
if @api_client.config.client_side_validation && organization.nil?
|
1690
|
+
fail ArgumentError, "Missing the required parameter 'organization' when calling BlueOceanApi.get_user"
|
1691
|
+
end
|
1692
|
+
# verify the required parameter 'user' is set
|
1693
|
+
if @api_client.config.client_side_validation && user.nil?
|
1694
|
+
fail ArgumentError, "Missing the required parameter 'user' when calling BlueOceanApi.get_user"
|
1695
|
+
end
|
1696
|
+
# resource path
|
1697
|
+
local_var_path = "/blue/rest/organizations/{organization}/users/{user}".sub('{' + 'organization' + '}', organization.to_s).sub('{' + 'user' + '}', user.to_s)
|
1698
|
+
|
1699
|
+
# query parameters
|
1700
|
+
query_params = {}
|
1701
|
+
|
1702
|
+
# header parameters
|
1703
|
+
header_params = {}
|
1704
|
+
# HTTP header 'Accept' (if needed)
|
1705
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1706
|
+
|
1707
|
+
# form parameters
|
1708
|
+
form_params = {}
|
1709
|
+
|
1710
|
+
# http body (model)
|
1711
|
+
post_body = nil
|
1712
|
+
auth_names = ['jenkins_auth']
|
1713
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1714
|
+
:header_params => header_params,
|
1715
|
+
:query_params => query_params,
|
1716
|
+
:form_params => form_params,
|
1717
|
+
:body => post_body,
|
1718
|
+
:auth_names => auth_names,
|
1719
|
+
:return_type => 'User')
|
1720
|
+
if @api_client.config.debugging
|
1721
|
+
@api_client.config.logger.debug "API called: BlueOceanApi#get_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1722
|
+
end
|
1723
|
+
return data, status_code, headers
|
1724
|
+
end
|
1725
|
+
|
1726
|
+
#
|
1727
|
+
# Retrieve user favorites details for an organization
|
1728
|
+
# @param user Name of the user
|
1729
|
+
# @param [Hash] opts the optional parameters
|
1730
|
+
# @return [UserFavorites]
|
1731
|
+
def get_user_favorites(user, opts = {})
|
1732
|
+
data, _status_code, _headers = get_user_favorites_with_http_info(user, opts)
|
1733
|
+
return data
|
1734
|
+
end
|
1735
|
+
|
1736
|
+
#
|
1737
|
+
# Retrieve user favorites details for an organization
|
1738
|
+
# @param user Name of the user
|
1739
|
+
# @param [Hash] opts the optional parameters
|
1740
|
+
# @return [Array<(UserFavorites, Fixnum, Hash)>] UserFavorites data, response status code and response headers
|
1741
|
+
def get_user_favorites_with_http_info(user, opts = {})
|
1742
|
+
if @api_client.config.debugging
|
1743
|
+
@api_client.config.logger.debug "Calling API: BlueOceanApi.get_user_favorites ..."
|
1744
|
+
end
|
1745
|
+
# verify the required parameter 'user' is set
|
1746
|
+
if @api_client.config.client_side_validation && user.nil?
|
1747
|
+
fail ArgumentError, "Missing the required parameter 'user' when calling BlueOceanApi.get_user_favorites"
|
1748
|
+
end
|
1749
|
+
# resource path
|
1750
|
+
local_var_path = "/blue/rest/users/{user}/favorites".sub('{' + 'user' + '}', user.to_s)
|
1751
|
+
|
1752
|
+
# query parameters
|
1753
|
+
query_params = {}
|
1754
|
+
|
1755
|
+
# header parameters
|
1756
|
+
header_params = {}
|
1757
|
+
# HTTP header 'Accept' (if needed)
|
1758
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1759
|
+
|
1760
|
+
# form parameters
|
1761
|
+
form_params = {}
|
1762
|
+
|
1763
|
+
# http body (model)
|
1764
|
+
post_body = nil
|
1765
|
+
auth_names = ['jenkins_auth']
|
1766
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1767
|
+
:header_params => header_params,
|
1768
|
+
:query_params => query_params,
|
1769
|
+
:form_params => form_params,
|
1770
|
+
:body => post_body,
|
1771
|
+
:auth_names => auth_names,
|
1772
|
+
:return_type => 'UserFavorites')
|
1773
|
+
if @api_client.config.debugging
|
1774
|
+
@api_client.config.logger.debug "API called: BlueOceanApi#get_user_favorites\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1775
|
+
end
|
1776
|
+
return data, status_code, headers
|
1777
|
+
end
|
1778
|
+
|
1779
|
+
#
|
1780
|
+
# Retrieve users details for an organization
|
1781
|
+
# @param organization Name of the organization
|
1782
|
+
# @param [Hash] opts the optional parameters
|
1783
|
+
# @return [User]
|
1784
|
+
def get_users(organization, opts = {})
|
1785
|
+
data, _status_code, _headers = get_users_with_http_info(organization, opts)
|
1786
|
+
return data
|
1787
|
+
end
|
1788
|
+
|
1789
|
+
#
|
1790
|
+
# Retrieve users details for an organization
|
1791
|
+
# @param organization Name of the organization
|
1792
|
+
# @param [Hash] opts the optional parameters
|
1793
|
+
# @return [Array<(User, Fixnum, Hash)>] User data, response status code and response headers
|
1794
|
+
def get_users_with_http_info(organization, opts = {})
|
1795
|
+
if @api_client.config.debugging
|
1796
|
+
@api_client.config.logger.debug "Calling API: BlueOceanApi.get_users ..."
|
1797
|
+
end
|
1798
|
+
# verify the required parameter 'organization' is set
|
1799
|
+
if @api_client.config.client_side_validation && organization.nil?
|
1800
|
+
fail ArgumentError, "Missing the required parameter 'organization' when calling BlueOceanApi.get_users"
|
1801
|
+
end
|
1802
|
+
# resource path
|
1803
|
+
local_var_path = "/blue/rest/organizations/{organization}/users/".sub('{' + 'organization' + '}', organization.to_s)
|
1804
|
+
|
1805
|
+
# query parameters
|
1806
|
+
query_params = {}
|
1807
|
+
|
1808
|
+
# header parameters
|
1809
|
+
header_params = {}
|
1810
|
+
# HTTP header 'Accept' (if needed)
|
1811
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1812
|
+
|
1813
|
+
# form parameters
|
1814
|
+
form_params = {}
|
1815
|
+
|
1816
|
+
# http body (model)
|
1817
|
+
post_body = nil
|
1818
|
+
auth_names = ['jenkins_auth']
|
1819
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1820
|
+
:header_params => header_params,
|
1821
|
+
:query_params => query_params,
|
1822
|
+
:form_params => form_params,
|
1823
|
+
:body => post_body,
|
1824
|
+
:auth_names => auth_names,
|
1825
|
+
:return_type => 'User')
|
1826
|
+
if @api_client.config.debugging
|
1827
|
+
@api_client.config.logger.debug "API called: BlueOceanApi#get_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1828
|
+
end
|
1829
|
+
return data, status_code, headers
|
1830
|
+
end
|
1831
|
+
|
1832
|
+
#
|
1833
|
+
# Replay an organization pipeline run
|
1834
|
+
# @param organization Name of the organization
|
1835
|
+
# @param pipeline Name of the pipeline
|
1836
|
+
# @param run Name of the run
|
1837
|
+
# @param [Hash] opts the optional parameters
|
1838
|
+
# @return [QueueItemImpl]
|
1839
|
+
def post_pipeline_run(organization, pipeline, run, opts = {})
|
1840
|
+
data, _status_code, _headers = post_pipeline_run_with_http_info(organization, pipeline, run, opts)
|
1841
|
+
return data
|
1842
|
+
end
|
1843
|
+
|
1844
|
+
#
|
1845
|
+
# Replay an organization pipeline run
|
1846
|
+
# @param organization Name of the organization
|
1847
|
+
# @param pipeline Name of the pipeline
|
1848
|
+
# @param run Name of the run
|
1849
|
+
# @param [Hash] opts the optional parameters
|
1850
|
+
# @return [Array<(QueueItemImpl, Fixnum, Hash)>] QueueItemImpl data, response status code and response headers
|
1851
|
+
def post_pipeline_run_with_http_info(organization, pipeline, run, opts = {})
|
1852
|
+
if @api_client.config.debugging
|
1853
|
+
@api_client.config.logger.debug "Calling API: BlueOceanApi.post_pipeline_run ..."
|
1854
|
+
end
|
1855
|
+
# verify the required parameter 'organization' is set
|
1856
|
+
if @api_client.config.client_side_validation && organization.nil?
|
1857
|
+
fail ArgumentError, "Missing the required parameter 'organization' when calling BlueOceanApi.post_pipeline_run"
|
1858
|
+
end
|
1859
|
+
# verify the required parameter 'pipeline' is set
|
1860
|
+
if @api_client.config.client_side_validation && pipeline.nil?
|
1861
|
+
fail ArgumentError, "Missing the required parameter 'pipeline' when calling BlueOceanApi.post_pipeline_run"
|
1862
|
+
end
|
1863
|
+
# verify the required parameter 'run' is set
|
1864
|
+
if @api_client.config.client_side_validation && run.nil?
|
1865
|
+
fail ArgumentError, "Missing the required parameter 'run' when calling BlueOceanApi.post_pipeline_run"
|
1866
|
+
end
|
1867
|
+
# resource path
|
1868
|
+
local_var_path = "/blue/rest/organizations/{organization}/pipelines/{pipeline}/runs/{run}/replay".sub('{' + 'organization' + '}', organization.to_s).sub('{' + 'pipeline' + '}', pipeline.to_s).sub('{' + 'run' + '}', run.to_s)
|
1869
|
+
|
1870
|
+
# query parameters
|
1871
|
+
query_params = {}
|
1872
|
+
|
1873
|
+
# header parameters
|
1874
|
+
header_params = {}
|
1875
|
+
# HTTP header 'Accept' (if needed)
|
1876
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1877
|
+
|
1878
|
+
# form parameters
|
1879
|
+
form_params = {}
|
1880
|
+
|
1881
|
+
# http body (model)
|
1882
|
+
post_body = nil
|
1883
|
+
auth_names = ['jenkins_auth']
|
1884
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
1885
|
+
:header_params => header_params,
|
1886
|
+
:query_params => query_params,
|
1887
|
+
:form_params => form_params,
|
1888
|
+
:body => post_body,
|
1889
|
+
:auth_names => auth_names,
|
1890
|
+
:return_type => 'QueueItemImpl')
|
1891
|
+
if @api_client.config.debugging
|
1892
|
+
@api_client.config.logger.debug "API called: BlueOceanApi#post_pipeline_run\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1893
|
+
end
|
1894
|
+
return data, status_code, headers
|
1895
|
+
end
|
1896
|
+
|
1897
|
+
#
|
1898
|
+
# Start a build for an organization pipeline
|
1899
|
+
# @param organization Name of the organization
|
1900
|
+
# @param pipeline Name of the pipeline
|
1901
|
+
# @param [Hash] opts the optional parameters
|
1902
|
+
# @return [QueueItemImpl]
|
1903
|
+
def post_pipeline_runs(organization, pipeline, opts = {})
|
1904
|
+
data, _status_code, _headers = post_pipeline_runs_with_http_info(organization, pipeline, opts)
|
1905
|
+
return data
|
1906
|
+
end
|
1907
|
+
|
1908
|
+
#
|
1909
|
+
# Start a build for an organization pipeline
|
1910
|
+
# @param organization Name of the organization
|
1911
|
+
# @param pipeline Name of the pipeline
|
1912
|
+
# @param [Hash] opts the optional parameters
|
1913
|
+
# @return [Array<(QueueItemImpl, Fixnum, Hash)>] QueueItemImpl data, response status code and response headers
|
1914
|
+
def post_pipeline_runs_with_http_info(organization, pipeline, opts = {})
|
1915
|
+
if @api_client.config.debugging
|
1916
|
+
@api_client.config.logger.debug "Calling API: BlueOceanApi.post_pipeline_runs ..."
|
1917
|
+
end
|
1918
|
+
# verify the required parameter 'organization' is set
|
1919
|
+
if @api_client.config.client_side_validation && organization.nil?
|
1920
|
+
fail ArgumentError, "Missing the required parameter 'organization' when calling BlueOceanApi.post_pipeline_runs"
|
1921
|
+
end
|
1922
|
+
# verify the required parameter 'pipeline' is set
|
1923
|
+
if @api_client.config.client_side_validation && pipeline.nil?
|
1924
|
+
fail ArgumentError, "Missing the required parameter 'pipeline' when calling BlueOceanApi.post_pipeline_runs"
|
1925
|
+
end
|
1926
|
+
# resource path
|
1927
|
+
local_var_path = "/blue/rest/organizations/{organization}/pipelines/{pipeline}/runs".sub('{' + 'organization' + '}', organization.to_s).sub('{' + 'pipeline' + '}', pipeline.to_s)
|
1928
|
+
|
1929
|
+
# query parameters
|
1930
|
+
query_params = {}
|
1931
|
+
|
1932
|
+
# header parameters
|
1933
|
+
header_params = {}
|
1934
|
+
# HTTP header 'Accept' (if needed)
|
1935
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1936
|
+
|
1937
|
+
# form parameters
|
1938
|
+
form_params = {}
|
1939
|
+
|
1940
|
+
# http body (model)
|
1941
|
+
post_body = nil
|
1942
|
+
auth_names = ['jenkins_auth']
|
1943
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
1944
|
+
:header_params => header_params,
|
1945
|
+
:query_params => query_params,
|
1946
|
+
:form_params => form_params,
|
1947
|
+
:body => post_body,
|
1948
|
+
:auth_names => auth_names,
|
1949
|
+
:return_type => 'QueueItemImpl')
|
1950
|
+
if @api_client.config.debugging
|
1951
|
+
@api_client.config.logger.debug "API called: BlueOceanApi#post_pipeline_runs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1952
|
+
end
|
1953
|
+
return data, status_code, headers
|
1954
|
+
end
|
1955
|
+
|
1956
|
+
#
|
1957
|
+
# Favorite/unfavorite a pipeline
|
1958
|
+
# @param organization Name of the organization
|
1959
|
+
# @param pipeline Name of the pipeline
|
1960
|
+
# @param body Set JSON string body to {\"favorite\": true} to favorite, set value to false to unfavorite
|
1961
|
+
# @param [Hash] opts the optional parameters
|
1962
|
+
# @return [FavoriteImpl]
|
1963
|
+
def put_pipeline_favorite(organization, pipeline, body, opts = {})
|
1964
|
+
data, _status_code, _headers = put_pipeline_favorite_with_http_info(organization, pipeline, body, opts)
|
1965
|
+
return data
|
1966
|
+
end
|
1967
|
+
|
1968
|
+
#
|
1969
|
+
# Favorite/unfavorite a pipeline
|
1970
|
+
# @param organization Name of the organization
|
1971
|
+
# @param pipeline Name of the pipeline
|
1972
|
+
# @param body Set JSON string body to {\"favorite\": true} to favorite, set value to false to unfavorite
|
1973
|
+
# @param [Hash] opts the optional parameters
|
1974
|
+
# @return [Array<(FavoriteImpl, Fixnum, Hash)>] FavoriteImpl data, response status code and response headers
|
1975
|
+
def put_pipeline_favorite_with_http_info(organization, pipeline, body, opts = {})
|
1976
|
+
if @api_client.config.debugging
|
1977
|
+
@api_client.config.logger.debug "Calling API: BlueOceanApi.put_pipeline_favorite ..."
|
1978
|
+
end
|
1979
|
+
# verify the required parameter 'organization' is set
|
1980
|
+
if @api_client.config.client_side_validation && organization.nil?
|
1981
|
+
fail ArgumentError, "Missing the required parameter 'organization' when calling BlueOceanApi.put_pipeline_favorite"
|
1982
|
+
end
|
1983
|
+
# verify the required parameter 'pipeline' is set
|
1984
|
+
if @api_client.config.client_side_validation && pipeline.nil?
|
1985
|
+
fail ArgumentError, "Missing the required parameter 'pipeline' when calling BlueOceanApi.put_pipeline_favorite"
|
1986
|
+
end
|
1987
|
+
# verify the required parameter 'body' is set
|
1988
|
+
if @api_client.config.client_side_validation && body.nil?
|
1989
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling BlueOceanApi.put_pipeline_favorite"
|
1990
|
+
end
|
1991
|
+
# resource path
|
1992
|
+
local_var_path = "/blue/rest/organizations/{organization}/pipelines/{pipeline}/favorite".sub('{' + 'organization' + '}', organization.to_s).sub('{' + 'pipeline' + '}', pipeline.to_s)
|
1993
|
+
|
1994
|
+
# query parameters
|
1995
|
+
query_params = {}
|
1996
|
+
|
1997
|
+
# header parameters
|
1998
|
+
header_params = {}
|
1999
|
+
# HTTP header 'Accept' (if needed)
|
2000
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2001
|
+
|
2002
|
+
# form parameters
|
2003
|
+
form_params = {}
|
2004
|
+
|
2005
|
+
# http body (model)
|
2006
|
+
post_body = @api_client.object_to_http_body(body)
|
2007
|
+
auth_names = ['jenkins_auth']
|
2008
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
2009
|
+
:header_params => header_params,
|
2010
|
+
:query_params => query_params,
|
2011
|
+
:form_params => form_params,
|
2012
|
+
:body => post_body,
|
2013
|
+
:auth_names => auth_names,
|
2014
|
+
:return_type => 'FavoriteImpl')
|
2015
|
+
if @api_client.config.debugging
|
2016
|
+
@api_client.config.logger.debug "API called: BlueOceanApi#put_pipeline_favorite\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2017
|
+
end
|
2018
|
+
return data, status_code, headers
|
2019
|
+
end
|
2020
|
+
|
2021
|
+
#
|
2022
|
+
# Stop a build of an organization pipeline
|
2023
|
+
# @param organization Name of the organization
|
2024
|
+
# @param pipeline Name of the pipeline
|
2025
|
+
# @param run Name of the run
|
2026
|
+
# @param [Hash] opts the optional parameters
|
2027
|
+
# @option opts [String] :blocking Set to true to make blocking stop, default: false
|
2028
|
+
# @option opts [Integer] :time_out_in_secs Timeout in seconds, default: 10 seconds
|
2029
|
+
# @return [PipelineRun]
|
2030
|
+
def put_pipeline_run(organization, pipeline, run, opts = {})
|
2031
|
+
data, _status_code, _headers = put_pipeline_run_with_http_info(organization, pipeline, run, opts)
|
2032
|
+
return data
|
2033
|
+
end
|
2034
|
+
|
2035
|
+
#
|
2036
|
+
# Stop a build of an organization pipeline
|
2037
|
+
# @param organization Name of the organization
|
2038
|
+
# @param pipeline Name of the pipeline
|
2039
|
+
# @param run Name of the run
|
2040
|
+
# @param [Hash] opts the optional parameters
|
2041
|
+
# @option opts [String] :blocking Set to true to make blocking stop, default: false
|
2042
|
+
# @option opts [Integer] :time_out_in_secs Timeout in seconds, default: 10 seconds
|
2043
|
+
# @return [Array<(PipelineRun, Fixnum, Hash)>] PipelineRun data, response status code and response headers
|
2044
|
+
def put_pipeline_run_with_http_info(organization, pipeline, run, opts = {})
|
2045
|
+
if @api_client.config.debugging
|
2046
|
+
@api_client.config.logger.debug "Calling API: BlueOceanApi.put_pipeline_run ..."
|
2047
|
+
end
|
2048
|
+
# verify the required parameter 'organization' is set
|
2049
|
+
if @api_client.config.client_side_validation && organization.nil?
|
2050
|
+
fail ArgumentError, "Missing the required parameter 'organization' when calling BlueOceanApi.put_pipeline_run"
|
2051
|
+
end
|
2052
|
+
# verify the required parameter 'pipeline' is set
|
2053
|
+
if @api_client.config.client_side_validation && pipeline.nil?
|
2054
|
+
fail ArgumentError, "Missing the required parameter 'pipeline' when calling BlueOceanApi.put_pipeline_run"
|
2055
|
+
end
|
2056
|
+
# verify the required parameter 'run' is set
|
2057
|
+
if @api_client.config.client_side_validation && run.nil?
|
2058
|
+
fail ArgumentError, "Missing the required parameter 'run' when calling BlueOceanApi.put_pipeline_run"
|
2059
|
+
end
|
2060
|
+
# resource path
|
2061
|
+
local_var_path = "/blue/rest/organizations/{organization}/pipelines/{pipeline}/runs/{run}/stop".sub('{' + 'organization' + '}', organization.to_s).sub('{' + 'pipeline' + '}', pipeline.to_s).sub('{' + 'run' + '}', run.to_s)
|
2062
|
+
|
2063
|
+
# query parameters
|
2064
|
+
query_params = {}
|
2065
|
+
query_params[:'blocking'] = opts[:'blocking'] if !opts[:'blocking'].nil?
|
2066
|
+
query_params[:'timeOutInSecs'] = opts[:'time_out_in_secs'] if !opts[:'time_out_in_secs'].nil?
|
2067
|
+
|
2068
|
+
# header parameters
|
2069
|
+
header_params = {}
|
2070
|
+
# HTTP header 'Accept' (if needed)
|
2071
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2072
|
+
|
2073
|
+
# form parameters
|
2074
|
+
form_params = {}
|
2075
|
+
|
2076
|
+
# http body (model)
|
2077
|
+
post_body = nil
|
2078
|
+
auth_names = ['jenkins_auth']
|
2079
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
2080
|
+
:header_params => header_params,
|
2081
|
+
:query_params => query_params,
|
2082
|
+
:form_params => form_params,
|
2083
|
+
:body => post_body,
|
2084
|
+
:auth_names => auth_names,
|
2085
|
+
:return_type => 'PipelineRun')
|
2086
|
+
if @api_client.config.debugging
|
2087
|
+
@api_client.config.logger.debug "API called: BlueOceanApi#put_pipeline_run\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2088
|
+
end
|
2089
|
+
return data, status_code, headers
|
2090
|
+
end
|
2091
|
+
|
2092
|
+
#
|
2093
|
+
# Search for any resource details
|
2094
|
+
# @param q Query string
|
2095
|
+
# @param [Hash] opts the optional parameters
|
2096
|
+
# @return [String]
|
2097
|
+
def search(q, opts = {})
|
2098
|
+
data, _status_code, _headers = search_with_http_info(q, opts)
|
2099
|
+
return data
|
2100
|
+
end
|
2101
|
+
|
2102
|
+
#
|
2103
|
+
# Search for any resource details
|
2104
|
+
# @param q Query string
|
2105
|
+
# @param [Hash] opts the optional parameters
|
2106
|
+
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
2107
|
+
def search_with_http_info(q, opts = {})
|
2108
|
+
if @api_client.config.debugging
|
2109
|
+
@api_client.config.logger.debug "Calling API: BlueOceanApi.search ..."
|
2110
|
+
end
|
2111
|
+
# verify the required parameter 'q' is set
|
2112
|
+
if @api_client.config.client_side_validation && q.nil?
|
2113
|
+
fail ArgumentError, "Missing the required parameter 'q' when calling BlueOceanApi.search"
|
2114
|
+
end
|
2115
|
+
# resource path
|
2116
|
+
local_var_path = "/blue/rest/search/"
|
2117
|
+
|
2118
|
+
# query parameters
|
2119
|
+
query_params = {}
|
2120
|
+
query_params[:'q'] = q
|
2121
|
+
|
2122
|
+
# header parameters
|
2123
|
+
header_params = {}
|
2124
|
+
# HTTP header 'Accept' (if needed)
|
2125
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2126
|
+
|
2127
|
+
# form parameters
|
2128
|
+
form_params = {}
|
2129
|
+
|
2130
|
+
# http body (model)
|
2131
|
+
post_body = nil
|
2132
|
+
auth_names = ['jenkins_auth']
|
2133
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
2134
|
+
:header_params => header_params,
|
2135
|
+
:query_params => query_params,
|
2136
|
+
:form_params => form_params,
|
2137
|
+
:body => post_body,
|
2138
|
+
:auth_names => auth_names,
|
2139
|
+
:return_type => 'String')
|
2140
|
+
if @api_client.config.debugging
|
2141
|
+
@api_client.config.logger.debug "API called: BlueOceanApi#search\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2142
|
+
end
|
2143
|
+
return data, status_code, headers
|
2144
|
+
end
|
2145
|
+
|
2146
|
+
#
|
2147
|
+
# Get classes details
|
2148
|
+
# @param q Query string containing an array of class names
|
2149
|
+
# @param [Hash] opts the optional parameters
|
2150
|
+
# @return [String]
|
2151
|
+
def search_classes(q, opts = {})
|
2152
|
+
data, _status_code, _headers = search_classes_with_http_info(q, opts)
|
2153
|
+
return data
|
2154
|
+
end
|
2155
|
+
|
2156
|
+
#
|
2157
|
+
# Get classes details
|
2158
|
+
# @param q Query string containing an array of class names
|
2159
|
+
# @param [Hash] opts the optional parameters
|
2160
|
+
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
2161
|
+
def search_classes_with_http_info(q, opts = {})
|
2162
|
+
if @api_client.config.debugging
|
2163
|
+
@api_client.config.logger.debug "Calling API: BlueOceanApi.search_classes ..."
|
2164
|
+
end
|
2165
|
+
# verify the required parameter 'q' is set
|
2166
|
+
if @api_client.config.client_side_validation && q.nil?
|
2167
|
+
fail ArgumentError, "Missing the required parameter 'q' when calling BlueOceanApi.search_classes"
|
2168
|
+
end
|
2169
|
+
# resource path
|
2170
|
+
local_var_path = "/blue/rest/classes/"
|
2171
|
+
|
2172
|
+
# query parameters
|
2173
|
+
query_params = {}
|
2174
|
+
query_params[:'q'] = q
|
2175
|
+
|
2176
|
+
# header parameters
|
2177
|
+
header_params = {}
|
2178
|
+
# HTTP header 'Accept' (if needed)
|
2179
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2180
|
+
|
2181
|
+
# form parameters
|
2182
|
+
form_params = {}
|
2183
|
+
|
2184
|
+
# http body (model)
|
2185
|
+
post_body = nil
|
2186
|
+
auth_names = ['jenkins_auth']
|
2187
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
2188
|
+
:header_params => header_params,
|
2189
|
+
:query_params => query_params,
|
2190
|
+
:form_params => form_params,
|
2191
|
+
:body => post_body,
|
2192
|
+
:auth_names => auth_names,
|
2193
|
+
:return_type => 'String')
|
2194
|
+
if @api_client.config.debugging
|
2195
|
+
@api_client.config.logger.debug "API called: BlueOceanApi#search_classes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2196
|
+
end
|
2197
|
+
return data, status_code, headers
|
2198
|
+
end
|
2199
|
+
end
|
2200
|
+
end
|