swaggy_jenkins 0.0.1 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Gemfile +3 -1
- data/Gemfile.lock +51 -50
- data/README.md +25 -33
- data/Rakefile +2 -0
- data/bin/bundle +114 -0
- data/bin/byebug +27 -0
- data/bin/coderay +27 -0
- data/bin/htmldiff +27 -0
- data/bin/ldiff +27 -0
- data/bin/pry +27 -0
- data/bin/rake +27 -0
- data/bin/rspec +27 -0
- data/bin/rubocop +27 -0
- data/bin/ruby-parse +27 -0
- data/bin/ruby-rewrite +27 -0
- data/docs/AllView.md +17 -5
- data/docs/BaseApi.md +75 -0
- data/docs/BlueOceanApi.md +1347 -631
- data/docs/BranchImpl.md +37 -15
- data/docs/BranchImpllinks.md +21 -7
- data/docs/BranchImplpermissions.md +21 -7
- data/docs/CauseAction.md +15 -4
- data/docs/CauseUserIdCause.md +19 -6
- data/docs/ClassesByClass.md +15 -4
- data/docs/ClockDifference.md +15 -4
- data/docs/ComputerSet.md +21 -7
- data/docs/DefaultCrumbIssuer.md +17 -5
- data/docs/DiskSpaceMonitorDescriptorDiskSpace.md +19 -6
- data/docs/EmptyChangeLogSet.md +15 -4
- data/docs/ExtensionClassContainerImpl1.md +17 -5
- data/docs/ExtensionClassContainerImpl1links.md +15 -4
- data/docs/ExtensionClassContainerImpl1map.md +17 -5
- data/docs/ExtensionClassImpl.md +17 -5
- data/docs/ExtensionClassImpllinks.md +15 -4
- data/docs/FavoriteImpl.md +17 -5
- data/docs/FavoriteImpllinks.md +15 -4
- data/docs/FreeStyleBuild.md +47 -20
- data/docs/FreeStyleProject.md +65 -29
- data/docs/FreeStyleProjectactions.md +13 -3
- data/docs/FreeStyleProjecthealthReport.md +21 -7
- data/docs/GenericResource.md +23 -8
- data/docs/GithubContent.md +27 -10
- data/docs/GithubFile.md +15 -4
- data/docs/GithubOrganization.md +19 -6
- data/docs/GithubOrganizationlinks.md +17 -5
- data/docs/GithubRepositories.md +23 -8
- data/docs/GithubRepositorieslinks.md +15 -4
- data/docs/GithubRepository.md +27 -10
- data/docs/GithubRepositorylinks.md +15 -4
- data/docs/GithubRepositorypermissions.md +19 -6
- data/docs/GithubRespositoryContainer.md +17 -5
- data/docs/GithubRespositoryContainerlinks.md +15 -4
- data/docs/GithubScm.md +21 -7
- data/docs/GithubScmlinks.md +15 -4
- data/docs/Hudson.md +41 -17
- data/docs/HudsonMasterComputer.md +43 -18
- data/docs/HudsonMasterComputerexecutors.md +23 -8
- data/docs/HudsonMasterComputermonitorData.md +25 -9
- data/docs/HudsonassignedLabels.md +13 -3
- data/docs/InputStepImpl.md +25 -9
- data/docs/InputStepImpllinks.md +15 -4
- data/docs/Label1.md +13 -3
- data/docs/Link.md +15 -4
- data/docs/ListView.md +21 -7
- data/docs/MultibranchPipeline.md +39 -16
- data/docs/NullSCM.md +13 -3
- data/docs/Organisation.md +15 -4
- data/docs/Pipeline.md +27 -10
- data/docs/PipelineActivity.md +41 -17
- data/docs/PipelineActivityartifacts.md +19 -6
- data/docs/PipelineBranchesitem.md +29 -11
- data/docs/PipelineBranchesitemlatestRun.md +39 -16
- data/docs/PipelineBranchesitempullRequest.md +23 -8
- data/docs/PipelineBranchesitempullRequestlinks.md +15 -4
- data/docs/PipelineFolderImpl.md +25 -9
- data/docs/PipelineImpl.md +29 -11
- data/docs/PipelineImpllinks.md +21 -7
- data/docs/PipelineRun.md +41 -17
- data/docs/PipelineRunImpl.md +41 -17
- data/docs/PipelineRunImpllinks.md +23 -8
- data/docs/PipelineRunNode.md +27 -10
- data/docs/PipelineRunNodeedges.md +15 -4
- data/docs/PipelineRunartifacts.md +19 -6
- data/docs/PipelineStepImpl.md +29 -11
- data/docs/PipelineStepImpllinks.md +17 -5
- data/docs/PipelinelatestRun.md +41 -17
- data/docs/PipelinelatestRunartifacts.md +19 -6
- data/docs/Queue.md +15 -4
- data/docs/QueueBlockedItem.md +35 -14
- data/docs/QueueItemImpl.md +21 -7
- data/docs/QueueLeftItem.md +37 -15
- data/docs/RemoteAccessApi.md +666 -350
- data/docs/ResponseTimeMonitorData.md +17 -5
- data/docs/StringParameterDefinition.md +21 -7
- data/docs/StringParameterValue.md +17 -5
- data/docs/SwapSpaceMonitorMemoryUsage2.md +21 -7
- data/docs/UnlabeledLoadStatistics.md +13 -3
- data/docs/User.md +21 -7
- data/git_push.sh +12 -10
- data/lib/swaggy_jenkins/api/base_api.rb +77 -0
- data/lib/swaggy_jenkins/api/blue_ocean_api.rb +1048 -643
- data/lib/swaggy_jenkins/api/remote_access_api.rb +506 -361
- data/lib/swaggy_jenkins/api_client.rb +98 -95
- data/lib/swaggy_jenkins/api_error.rb +22 -3
- data/lib/swaggy_jenkins/configuration.rb +93 -16
- data/lib/swaggy_jenkins/models/all_view.rb +60 -29
- data/lib/swaggy_jenkins/models/branch_impl.rb +77 -46
- data/lib/swaggy_jenkins/models/branch_impllinks.rb +63 -32
- data/lib/swaggy_jenkins/models/branch_implpermissions.rb +66 -35
- data/lib/swaggy_jenkins/models/cause_action.rb +59 -28
- data/lib/swaggy_jenkins/models/cause_user_id_cause.rb +64 -33
- data/lib/swaggy_jenkins/models/classes_by_class.rb +59 -28
- data/lib/swaggy_jenkins/models/clock_difference.rb +59 -28
- data/lib/swaggy_jenkins/models/computer_set.rb +65 -34
- data/lib/swaggy_jenkins/models/default_crumb_issuer.rb +61 -30
- data/lib/swaggy_jenkins/models/disk_space_monitor_descriptor_disk_space.rb +61 -30
- data/lib/swaggy_jenkins/models/empty_change_log_set.rb +59 -28
- data/lib/swaggy_jenkins/models/extension_class_container_impl1.rb +60 -29
- data/lib/swaggy_jenkins/models/extension_class_container_impl1links.rb +60 -29
- data/lib/swaggy_jenkins/models/extension_class_container_impl1map.rb +62 -31
- data/lib/swaggy_jenkins/models/extension_class_impl.rb +60 -29
- data/lib/swaggy_jenkins/models/extension_class_impllinks.rb +60 -29
- data/lib/swaggy_jenkins/models/favorite_impl.rb +60 -29
- data/lib/swaggy_jenkins/models/favorite_impllinks.rb +60 -29
- data/lib/swaggy_jenkins/models/free_style_build.rb +84 -53
- data/lib/swaggy_jenkins/models/free_style_project.rb +106 -75
- data/lib/swaggy_jenkins/models/free_style_projectactions.rb +58 -27
- data/lib/swaggy_jenkins/models/free_style_projecthealth_report.rb +64 -33
- data/lib/swaggy_jenkins/models/generic_resource.rb +66 -35
- data/lib/swaggy_jenkins/models/github_content.rb +66 -35
- data/lib/swaggy_jenkins/models/github_file.rb +59 -28
- data/lib/swaggy_jenkins/models/github_organization.rb +63 -32
- data/lib/swaggy_jenkins/models/github_organizationlinks.rb +61 -30
- data/lib/swaggy_jenkins/models/github_repositories.rb +66 -35
- data/lib/swaggy_jenkins/models/github_repositorieslinks.rb +60 -29
- data/lib/swaggy_jenkins/models/github_repository.rb +68 -37
- data/lib/swaggy_jenkins/models/github_repositorylinks.rb +60 -29
- data/lib/swaggy_jenkins/models/github_repositorypermissions.rb +64 -33
- data/lib/swaggy_jenkins/models/github_respository_container.rb +60 -29
- data/lib/swaggy_jenkins/models/github_respository_containerlinks.rb +60 -29
- data/lib/swaggy_jenkins/models/github_scm.rb +63 -32
- data/lib/swaggy_jenkins/models/github_scmlinks.rb +60 -29
- data/lib/swaggy_jenkins/models/hudson.rb +85 -54
- data/lib/swaggy_jenkins/models/hudson_master_computer.rb +90 -59
- data/lib/swaggy_jenkins/models/hudson_master_computerexecutors.rb +67 -36
- data/lib/swaggy_jenkins/models/hudson_master_computermonitor_data.rb +70 -39
- data/lib/swaggy_jenkins/models/hudsonassigned_labels.rb +58 -27
- data/lib/swaggy_jenkins/models/input_step_impl.rb +64 -33
- data/lib/swaggy_jenkins/models/input_step_impllinks.rb +60 -29
- data/lib/swaggy_jenkins/models/label1.rb +58 -27
- data/lib/swaggy_jenkins/models/link.rb +59 -28
- data/lib/swaggy_jenkins/models/list_view.rb +62 -31
- data/lib/swaggy_jenkins/models/multibranch_pipeline.rb +82 -51
- data/lib/swaggy_jenkins/models/null_scm.rb +58 -27
- data/lib/swaggy_jenkins/models/organisation.rb +59 -28
- data/lib/swaggy_jenkins/models/pipeline.rb +70 -39
- data/lib/swaggy_jenkins/models/pipeline_activity.rb +79 -48
- data/lib/swaggy_jenkins/models/pipeline_activityartifacts.rb +61 -30
- data/lib/swaggy_jenkins/models/pipeline_branchesitem.rb +72 -41
- data/lib/swaggy_jenkins/models/pipeline_branchesitemlatest_run.rb +78 -47
- data/lib/swaggy_jenkins/models/pipeline_branchesitempull_request.rb +63 -32
- data/lib/swaggy_jenkins/models/pipeline_branchesitempull_requestlinks.rb +60 -29
- data/lib/swaggy_jenkins/models/pipeline_folder_impl.rb +68 -37
- data/lib/swaggy_jenkins/models/pipeline_impl.rb +71 -40
- data/lib/swaggy_jenkins/models/pipeline_impllinks.rb +63 -32
- data/lib/swaggy_jenkins/models/pipeline_run.rb +79 -48
- data/lib/swaggy_jenkins/models/pipeline_run_impl.rb +79 -48
- data/lib/swaggy_jenkins/models/pipeline_run_impllinks.rb +64 -33
- data/lib/swaggy_jenkins/models/pipeline_run_node.rb +68 -37
- data/lib/swaggy_jenkins/models/pipeline_run_nodeedges.rb +59 -28
- data/lib/swaggy_jenkins/models/pipeline_runartifacts.rb +61 -30
- data/lib/swaggy_jenkins/models/pipeline_step_impl.rb +69 -38
- data/lib/swaggy_jenkins/models/pipeline_step_impllinks.rb +61 -30
- data/lib/swaggy_jenkins/models/pipelinelatest_run.rb +79 -48
- data/lib/swaggy_jenkins/models/pipelinelatest_runartifacts.rb +61 -30
- data/lib/swaggy_jenkins/models/queue.rb +59 -28
- data/lib/swaggy_jenkins/models/queue_blocked_item.rb +74 -43
- data/lib/swaggy_jenkins/models/queue_item_impl.rb +64 -33
- data/lib/swaggy_jenkins/models/queue_left_item.rb +75 -44
- data/lib/swaggy_jenkins/models/response_time_monitor_data.rb +60 -29
- data/lib/swaggy_jenkins/models/string_parameter_definition.rb +63 -32
- data/lib/swaggy_jenkins/models/string_parameter_value.rb +60 -29
- data/lib/swaggy_jenkins/models/swap_space_monitor_memory_usage2.rb +66 -35
- data/lib/swaggy_jenkins/models/unlabeled_load_statistics.rb +58 -27
- data/lib/swaggy_jenkins/models/user.rb +63 -32
- data/lib/swaggy_jenkins/version.rb +4 -4
- data/lib/swaggy_jenkins.rb +4 -16
- data/spec/api/base_api_spec.rb +45 -0
- data/spec/api/blue_ocean_api_spec.rb +76 -88
- data/spec/api/remote_access_api_spec.rb +28 -59
- data/spec/api_client_spec.rb +40 -40
- data/spec/configuration_spec.rb +11 -11
- data/spec/models/all_view_spec.rb +10 -18
- data/spec/models/branch_impl_spec.rb +20 -28
- data/spec/models/branch_impllinks_spec.rb +12 -20
- data/spec/models/branch_implpermissions_spec.rb +12 -20
- data/spec/models/cause_action_spec.rb +9 -17
- data/spec/models/cause_user_id_cause_spec.rb +11 -19
- data/spec/models/classes_by_class_spec.rb +9 -17
- data/spec/models/clock_difference_spec.rb +9 -17
- data/spec/models/computer_set_spec.rb +12 -20
- data/spec/models/default_crumb_issuer_spec.rb +10 -18
- data/spec/models/disk_space_monitor_descriptor_disk_space_spec.rb +11 -19
- data/spec/models/empty_change_log_set_spec.rb +9 -17
- data/spec/models/extension_class_container_impl1_spec.rb +10 -18
- data/spec/models/extension_class_container_impl1links_spec.rb +9 -17
- data/spec/models/extension_class_container_impl1map_spec.rb +10 -18
- data/spec/models/extension_class_impl_spec.rb +10 -18
- data/spec/models/extension_class_impllinks_spec.rb +9 -17
- data/spec/models/favorite_impl_spec.rb +10 -18
- data/spec/models/favorite_impllinks_spec.rb +9 -17
- data/spec/models/free_style_build_spec.rb +25 -33
- data/spec/models/free_style_project_spec.rb +34 -42
- data/spec/models/free_style_projectactions_spec.rb +8 -16
- data/spec/models/free_style_projecthealth_report_spec.rb +12 -20
- data/spec/models/generic_resource_spec.rb +13 -21
- data/spec/models/github_content_spec.rb +15 -23
- data/spec/models/github_file_spec.rb +9 -17
- data/spec/models/github_organization_spec.rb +11 -19
- data/spec/models/github_organizationlinks_spec.rb +10 -18
- data/spec/models/github_repositories_spec.rb +13 -21
- data/spec/models/github_repositorieslinks_spec.rb +9 -17
- data/spec/models/github_repository_spec.rb +15 -23
- data/spec/models/github_repositorylinks_spec.rb +9 -17
- data/spec/models/github_repositorypermissions_spec.rb +11 -19
- data/spec/models/github_respository_container_spec.rb +10 -18
- data/spec/models/github_respository_containerlinks_spec.rb +9 -17
- data/spec/models/github_scm_spec.rb +12 -20
- data/spec/models/github_scmlinks_spec.rb +9 -17
- data/spec/models/hudson_master_computer_spec.rb +23 -31
- data/spec/models/hudson_master_computerexecutors_spec.rb +13 -21
- data/spec/models/hudson_master_computermonitor_data_spec.rb +14 -22
- data/spec/models/hudson_spec.rb +22 -30
- data/spec/models/hudsonassigned_labels_spec.rb +8 -16
- data/spec/models/input_step_impl_spec.rb +14 -22
- data/spec/models/input_step_impllinks_spec.rb +9 -17
- data/spec/models/label1_spec.rb +8 -16
- data/spec/models/link_spec.rb +9 -17
- data/spec/models/list_view_spec.rb +12 -20
- data/spec/models/multibranch_pipeline_spec.rb +21 -29
- data/spec/models/null_scm_spec.rb +8 -16
- data/spec/models/organisation_spec.rb +9 -17
- data/spec/models/pipeline_activity_spec.rb +22 -30
- data/spec/models/pipeline_activityartifacts_spec.rb +11 -19
- data/spec/models/pipeline_branchesitem_spec.rb +16 -24
- data/spec/models/pipeline_branchesitemlatest_run_spec.rb +21 -29
- data/spec/models/pipeline_branchesitempull_request_spec.rb +13 -21
- data/spec/models/pipeline_branchesitempull_requestlinks_spec.rb +9 -17
- data/spec/models/pipeline_folder_impl_spec.rb +14 -22
- data/spec/models/pipeline_impl_spec.rb +16 -24
- data/spec/models/pipeline_impllinks_spec.rb +12 -20
- data/spec/models/pipeline_run_impl_spec.rb +22 -30
- data/spec/models/pipeline_run_impllinks_spec.rb +13 -21
- data/spec/models/pipeline_run_node_spec.rb +15 -23
- data/spec/models/pipeline_run_nodeedges_spec.rb +9 -17
- data/spec/models/pipeline_run_spec.rb +22 -30
- data/spec/models/pipeline_runartifacts_spec.rb +11 -19
- data/spec/models/pipeline_spec.rb +15 -23
- data/spec/models/pipeline_step_impl_spec.rb +16 -24
- data/spec/models/pipeline_step_impllinks_spec.rb +10 -18
- data/spec/models/pipelinelatest_run_spec.rb +22 -30
- data/spec/models/pipelinelatest_runartifacts_spec.rb +11 -19
- data/spec/models/queue_blocked_item_spec.rb +19 -27
- data/spec/models/queue_item_impl_spec.rb +12 -20
- data/spec/models/queue_left_item_spec.rb +20 -28
- data/spec/models/queue_spec.rb +9 -17
- data/spec/models/response_time_monitor_data_spec.rb +10 -18
- data/spec/models/string_parameter_definition_spec.rb +12 -20
- data/spec/models/string_parameter_value_spec.rb +10 -18
- data/spec/models/swap_space_monitor_memory_usage2_spec.rb +12 -20
- data/spec/models/unlabeled_load_statistics_spec.rb +8 -16
- data/spec/models/user_spec.rb +12 -20
- data/spec/spec_helper.rb +3 -3
- data/swaggy_jenkins.gemspec +6 -13
- metadata +96 -274
- data/docs/Body.md +0 -8
- data/docs/Organisations.md +0 -7
- data/docs/PipelineActivities.md +0 -7
- data/docs/PipelineBranches.md +0 -7
- data/docs/PipelineQueue.md +0 -7
- data/docs/PipelineRunNodeSteps.md +0 -7
- data/docs/PipelineRunNodes.md +0 -7
- data/docs/PipelineRunSteps.md +0 -7
- data/docs/PipelineRuns.md +0 -7
- data/docs/Pipelines.md +0 -7
- data/docs/ScmOrganisations.md +0 -7
- data/docs/UserFavorites.md +0 -7
- data/docs/Users.md +0 -7
- data/lib/swaggy_jenkins/models/body.rb +0 -193
- data/lib/swaggy_jenkins/models/organisations.rb +0 -179
- data/lib/swaggy_jenkins/models/pipeline_activities.rb +0 -179
- data/lib/swaggy_jenkins/models/pipeline_branches.rb +0 -179
- data/lib/swaggy_jenkins/models/pipeline_queue.rb +0 -179
- data/lib/swaggy_jenkins/models/pipeline_run_node_steps.rb +0 -179
- data/lib/swaggy_jenkins/models/pipeline_run_nodes.rb +0 -179
- data/lib/swaggy_jenkins/models/pipeline_run_steps.rb +0 -179
- data/lib/swaggy_jenkins/models/pipeline_runs.rb +0 -179
- data/lib/swaggy_jenkins/models/pipelines.rb +0 -179
- data/lib/swaggy_jenkins/models/scm_organisations.rb +0 -179
- data/lib/swaggy_jenkins/models/user_favorites.rb +0 -179
- data/lib/swaggy_jenkins/models/users.rb +0 -179
- data/spec/models/body_spec.rb +0 -42
- data/spec/models/organisations_spec.rb +0 -36
- data/spec/models/pipeline_activities_spec.rb +0 -36
- data/spec/models/pipeline_branches_spec.rb +0 -36
- data/spec/models/pipeline_queue_spec.rb +0 -36
- data/spec/models/pipeline_run_node_steps_spec.rb +0 -36
- data/spec/models/pipeline_run_nodes_spec.rb +0 -36
- data/spec/models/pipeline_run_steps_spec.rb +0 -36
- data/spec/models/pipeline_runs_spec.rb +0 -36
- data/spec/models/pipelines_spec.rb +0 -36
- data/spec/models/scm_organisations_spec.rb +0 -36
- data/spec/models/user_favorites_spec.rb +0 -36
- data/spec/models/users_spec.rb +0 -36
data/bin/ruby-parse
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
#!/usr/bin/env ruby2.7
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
#
|
5
|
+
# This file was generated by Bundler.
|
6
|
+
#
|
7
|
+
# The application 'ruby-parse' is installed as part of a gem, and
|
8
|
+
# this file is here to facilitate running it.
|
9
|
+
#
|
10
|
+
|
11
|
+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
|
12
|
+
|
13
|
+
bundle_binstub = File.expand_path("bundle", __dir__)
|
14
|
+
|
15
|
+
if File.file?(bundle_binstub)
|
16
|
+
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
|
17
|
+
load(bundle_binstub)
|
18
|
+
else
|
19
|
+
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
20
|
+
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
require "rubygems"
|
25
|
+
require "bundler/setup"
|
26
|
+
|
27
|
+
load Gem.bin_path("parser", "ruby-parse")
|
data/bin/ruby-rewrite
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
#!/usr/bin/env ruby2.7
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
#
|
5
|
+
# This file was generated by Bundler.
|
6
|
+
#
|
7
|
+
# The application 'ruby-rewrite' is installed as part of a gem, and
|
8
|
+
# this file is here to facilitate running it.
|
9
|
+
#
|
10
|
+
|
11
|
+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
|
12
|
+
|
13
|
+
bundle_binstub = File.expand_path("bundle", __dir__)
|
14
|
+
|
15
|
+
if File.file?(bundle_binstub)
|
16
|
+
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
|
17
|
+
load(bundle_binstub)
|
18
|
+
else
|
19
|
+
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
20
|
+
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
require "rubygems"
|
25
|
+
require "bundler/setup"
|
26
|
+
|
27
|
+
load Gem.bin_path("parser", "ruby-rewrite")
|
data/docs/AllView.md
CHANGED
@@ -1,10 +1,22 @@
|
|
1
1
|
# SwaggyJenkinsClient::AllView
|
2
2
|
|
3
3
|
## Properties
|
4
|
-
Name | Type | Description | Notes
|
5
|
-
------------ | ------------- | ------------- | -------------
|
6
|
-
**_class** | **String** | | [optional]
|
7
|
-
**name** | **String** | | [optional]
|
8
|
-
**url** | **String** | | [optional]
|
9
4
|
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **_class** | **String** | | [optional] |
|
8
|
+
| **name** | **String** | | [optional] |
|
9
|
+
| **url** | **String** | | [optional] |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'swaggy_jenkins'
|
15
|
+
|
16
|
+
instance = SwaggyJenkinsClient::AllView.new(
|
17
|
+
_class: null,
|
18
|
+
name: null,
|
19
|
+
url: null
|
20
|
+
)
|
21
|
+
```
|
10
22
|
|
data/docs/BaseApi.md
ADDED
@@ -0,0 +1,75 @@
|
|
1
|
+
# SwaggyJenkinsClient::BaseApi
|
2
|
+
|
3
|
+
All URIs are relative to *http://localhost*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**get_crumb**](BaseApi.md#get_crumb) | **GET** /crumbIssuer/api/json | |
|
8
|
+
|
9
|
+
|
10
|
+
## get_crumb
|
11
|
+
|
12
|
+
> <DefaultCrumbIssuer> get_crumb
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
Retrieve CSRF protection token
|
17
|
+
|
18
|
+
### Examples
|
19
|
+
|
20
|
+
```ruby
|
21
|
+
require 'time'
|
22
|
+
require 'swaggy_jenkins'
|
23
|
+
# setup authorization
|
24
|
+
SwaggyJenkinsClient.configure do |config|
|
25
|
+
# Configure HTTP basic authorization: jenkins_auth
|
26
|
+
config.username = 'YOUR USERNAME'
|
27
|
+
config.password = 'YOUR PASSWORD'
|
28
|
+
end
|
29
|
+
|
30
|
+
api_instance = SwaggyJenkinsClient::BaseApi.new
|
31
|
+
|
32
|
+
begin
|
33
|
+
|
34
|
+
result = api_instance.get_crumb
|
35
|
+
p result
|
36
|
+
rescue SwaggyJenkinsClient::ApiError => e
|
37
|
+
puts "Error when calling BaseApi->get_crumb: #{e}"
|
38
|
+
end
|
39
|
+
```
|
40
|
+
|
41
|
+
#### Using the get_crumb_with_http_info variant
|
42
|
+
|
43
|
+
This returns an Array which contains the response data, status code and headers.
|
44
|
+
|
45
|
+
> <Array(<DefaultCrumbIssuer>, Integer, Hash)> get_crumb_with_http_info
|
46
|
+
|
47
|
+
```ruby
|
48
|
+
begin
|
49
|
+
|
50
|
+
data, status_code, headers = api_instance.get_crumb_with_http_info
|
51
|
+
p status_code # => 2xx
|
52
|
+
p headers # => { ... }
|
53
|
+
p data # => <DefaultCrumbIssuer>
|
54
|
+
rescue SwaggyJenkinsClient::ApiError => e
|
55
|
+
puts "Error when calling BaseApi->get_crumb_with_http_info: #{e}"
|
56
|
+
end
|
57
|
+
```
|
58
|
+
|
59
|
+
### Parameters
|
60
|
+
|
61
|
+
This endpoint does not need any parameter.
|
62
|
+
|
63
|
+
### Return type
|
64
|
+
|
65
|
+
[**DefaultCrumbIssuer**](DefaultCrumbIssuer.md)
|
66
|
+
|
67
|
+
### Authorization
|
68
|
+
|
69
|
+
[jenkins_auth](../README.md#jenkins_auth)
|
70
|
+
|
71
|
+
### HTTP request headers
|
72
|
+
|
73
|
+
- **Content-Type**: Not defined
|
74
|
+
- **Accept**: application/json
|
75
|
+
|