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,428 @@
|
|
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 'date'
|
14
|
+
|
15
|
+
module SwaggyJenkinsClient
|
16
|
+
|
17
|
+
class FreeStyleProject
|
18
|
+
attr_accessor :_class
|
19
|
+
|
20
|
+
attr_accessor :name
|
21
|
+
|
22
|
+
attr_accessor :url
|
23
|
+
|
24
|
+
attr_accessor :color
|
25
|
+
|
26
|
+
attr_accessor :actions
|
27
|
+
|
28
|
+
attr_accessor :description
|
29
|
+
|
30
|
+
attr_accessor :display_name
|
31
|
+
|
32
|
+
attr_accessor :display_name_or_null
|
33
|
+
|
34
|
+
attr_accessor :full_display_name
|
35
|
+
|
36
|
+
attr_accessor :full_name
|
37
|
+
|
38
|
+
attr_accessor :buildable
|
39
|
+
|
40
|
+
attr_accessor :builds
|
41
|
+
|
42
|
+
attr_accessor :first_build
|
43
|
+
|
44
|
+
attr_accessor :health_report
|
45
|
+
|
46
|
+
attr_accessor :in_queue
|
47
|
+
|
48
|
+
attr_accessor :keep_dependencies
|
49
|
+
|
50
|
+
attr_accessor :last_build
|
51
|
+
|
52
|
+
attr_accessor :last_completed_build
|
53
|
+
|
54
|
+
attr_accessor :last_failed_build
|
55
|
+
|
56
|
+
attr_accessor :last_stable_build
|
57
|
+
|
58
|
+
attr_accessor :last_successful_build
|
59
|
+
|
60
|
+
attr_accessor :last_unstable_build
|
61
|
+
|
62
|
+
attr_accessor :last_unsuccessful_build
|
63
|
+
|
64
|
+
attr_accessor :next_build_number
|
65
|
+
|
66
|
+
attr_accessor :queue_item
|
67
|
+
|
68
|
+
attr_accessor :concurrent_build
|
69
|
+
|
70
|
+
attr_accessor :scm
|
71
|
+
|
72
|
+
|
73
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
74
|
+
def self.attribute_map
|
75
|
+
{
|
76
|
+
:'_class' => :'_class',
|
77
|
+
:'name' => :'name',
|
78
|
+
:'url' => :'url',
|
79
|
+
:'color' => :'color',
|
80
|
+
:'actions' => :'actions',
|
81
|
+
:'description' => :'description',
|
82
|
+
:'display_name' => :'displayName',
|
83
|
+
:'display_name_or_null' => :'displayNameOrNull',
|
84
|
+
:'full_display_name' => :'fullDisplayName',
|
85
|
+
:'full_name' => :'fullName',
|
86
|
+
:'buildable' => :'buildable',
|
87
|
+
:'builds' => :'builds',
|
88
|
+
:'first_build' => :'firstBuild',
|
89
|
+
:'health_report' => :'healthReport',
|
90
|
+
:'in_queue' => :'inQueue',
|
91
|
+
:'keep_dependencies' => :'keepDependencies',
|
92
|
+
:'last_build' => :'lastBuild',
|
93
|
+
:'last_completed_build' => :'lastCompletedBuild',
|
94
|
+
:'last_failed_build' => :'lastFailedBuild',
|
95
|
+
:'last_stable_build' => :'lastStableBuild',
|
96
|
+
:'last_successful_build' => :'lastSuccessfulBuild',
|
97
|
+
:'last_unstable_build' => :'lastUnstableBuild',
|
98
|
+
:'last_unsuccessful_build' => :'lastUnsuccessfulBuild',
|
99
|
+
:'next_build_number' => :'nextBuildNumber',
|
100
|
+
:'queue_item' => :'queueItem',
|
101
|
+
:'concurrent_build' => :'concurrentBuild',
|
102
|
+
:'scm' => :'scm'
|
103
|
+
}
|
104
|
+
end
|
105
|
+
|
106
|
+
# Attribute type mapping.
|
107
|
+
def self.swagger_types
|
108
|
+
{
|
109
|
+
:'_class' => :'String',
|
110
|
+
:'name' => :'String',
|
111
|
+
:'url' => :'String',
|
112
|
+
:'color' => :'String',
|
113
|
+
:'actions' => :'Array<FreeStyleProjectactions>',
|
114
|
+
:'description' => :'String',
|
115
|
+
:'display_name' => :'String',
|
116
|
+
:'display_name_or_null' => :'String',
|
117
|
+
:'full_display_name' => :'String',
|
118
|
+
:'full_name' => :'String',
|
119
|
+
:'buildable' => :'BOOLEAN',
|
120
|
+
:'builds' => :'Array<FreeStyleBuild>',
|
121
|
+
:'first_build' => :'FreeStyleBuild',
|
122
|
+
:'health_report' => :'Array<FreeStyleProjecthealthReport>',
|
123
|
+
:'in_queue' => :'BOOLEAN',
|
124
|
+
:'keep_dependencies' => :'BOOLEAN',
|
125
|
+
:'last_build' => :'FreeStyleBuild',
|
126
|
+
:'last_completed_build' => :'FreeStyleBuild',
|
127
|
+
:'last_failed_build' => :'String',
|
128
|
+
:'last_stable_build' => :'FreeStyleBuild',
|
129
|
+
:'last_successful_build' => :'FreeStyleBuild',
|
130
|
+
:'last_unstable_build' => :'String',
|
131
|
+
:'last_unsuccessful_build' => :'String',
|
132
|
+
:'next_build_number' => :'Integer',
|
133
|
+
:'queue_item' => :'String',
|
134
|
+
:'concurrent_build' => :'BOOLEAN',
|
135
|
+
:'scm' => :'NullSCM'
|
136
|
+
}
|
137
|
+
end
|
138
|
+
|
139
|
+
# Initializes the object
|
140
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
141
|
+
def initialize(attributes = {})
|
142
|
+
return unless attributes.is_a?(Hash)
|
143
|
+
|
144
|
+
# convert string to symbol for hash key
|
145
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
146
|
+
|
147
|
+
if attributes.has_key?(:'_class')
|
148
|
+
self._class = attributes[:'_class']
|
149
|
+
end
|
150
|
+
|
151
|
+
if attributes.has_key?(:'name')
|
152
|
+
self.name = attributes[:'name']
|
153
|
+
end
|
154
|
+
|
155
|
+
if attributes.has_key?(:'url')
|
156
|
+
self.url = attributes[:'url']
|
157
|
+
end
|
158
|
+
|
159
|
+
if attributes.has_key?(:'color')
|
160
|
+
self.color = attributes[:'color']
|
161
|
+
end
|
162
|
+
|
163
|
+
if attributes.has_key?(:'actions')
|
164
|
+
if (value = attributes[:'actions']).is_a?(Array)
|
165
|
+
self.actions = value
|
166
|
+
end
|
167
|
+
end
|
168
|
+
|
169
|
+
if attributes.has_key?(:'description')
|
170
|
+
self.description = attributes[:'description']
|
171
|
+
end
|
172
|
+
|
173
|
+
if attributes.has_key?(:'displayName')
|
174
|
+
self.display_name = attributes[:'displayName']
|
175
|
+
end
|
176
|
+
|
177
|
+
if attributes.has_key?(:'displayNameOrNull')
|
178
|
+
self.display_name_or_null = attributes[:'displayNameOrNull']
|
179
|
+
end
|
180
|
+
|
181
|
+
if attributes.has_key?(:'fullDisplayName')
|
182
|
+
self.full_display_name = attributes[:'fullDisplayName']
|
183
|
+
end
|
184
|
+
|
185
|
+
if attributes.has_key?(:'fullName')
|
186
|
+
self.full_name = attributes[:'fullName']
|
187
|
+
end
|
188
|
+
|
189
|
+
if attributes.has_key?(:'buildable')
|
190
|
+
self.buildable = attributes[:'buildable']
|
191
|
+
end
|
192
|
+
|
193
|
+
if attributes.has_key?(:'builds')
|
194
|
+
if (value = attributes[:'builds']).is_a?(Array)
|
195
|
+
self.builds = value
|
196
|
+
end
|
197
|
+
end
|
198
|
+
|
199
|
+
if attributes.has_key?(:'firstBuild')
|
200
|
+
self.first_build = attributes[:'firstBuild']
|
201
|
+
end
|
202
|
+
|
203
|
+
if attributes.has_key?(:'healthReport')
|
204
|
+
if (value = attributes[:'healthReport']).is_a?(Array)
|
205
|
+
self.health_report = value
|
206
|
+
end
|
207
|
+
end
|
208
|
+
|
209
|
+
if attributes.has_key?(:'inQueue')
|
210
|
+
self.in_queue = attributes[:'inQueue']
|
211
|
+
end
|
212
|
+
|
213
|
+
if attributes.has_key?(:'keepDependencies')
|
214
|
+
self.keep_dependencies = attributes[:'keepDependencies']
|
215
|
+
end
|
216
|
+
|
217
|
+
if attributes.has_key?(:'lastBuild')
|
218
|
+
self.last_build = attributes[:'lastBuild']
|
219
|
+
end
|
220
|
+
|
221
|
+
if attributes.has_key?(:'lastCompletedBuild')
|
222
|
+
self.last_completed_build = attributes[:'lastCompletedBuild']
|
223
|
+
end
|
224
|
+
|
225
|
+
if attributes.has_key?(:'lastFailedBuild')
|
226
|
+
self.last_failed_build = attributes[:'lastFailedBuild']
|
227
|
+
end
|
228
|
+
|
229
|
+
if attributes.has_key?(:'lastStableBuild')
|
230
|
+
self.last_stable_build = attributes[:'lastStableBuild']
|
231
|
+
end
|
232
|
+
|
233
|
+
if attributes.has_key?(:'lastSuccessfulBuild')
|
234
|
+
self.last_successful_build = attributes[:'lastSuccessfulBuild']
|
235
|
+
end
|
236
|
+
|
237
|
+
if attributes.has_key?(:'lastUnstableBuild')
|
238
|
+
self.last_unstable_build = attributes[:'lastUnstableBuild']
|
239
|
+
end
|
240
|
+
|
241
|
+
if attributes.has_key?(:'lastUnsuccessfulBuild')
|
242
|
+
self.last_unsuccessful_build = attributes[:'lastUnsuccessfulBuild']
|
243
|
+
end
|
244
|
+
|
245
|
+
if attributes.has_key?(:'nextBuildNumber')
|
246
|
+
self.next_build_number = attributes[:'nextBuildNumber']
|
247
|
+
end
|
248
|
+
|
249
|
+
if attributes.has_key?(:'queueItem')
|
250
|
+
self.queue_item = attributes[:'queueItem']
|
251
|
+
end
|
252
|
+
|
253
|
+
if attributes.has_key?(:'concurrentBuild')
|
254
|
+
self.concurrent_build = attributes[:'concurrentBuild']
|
255
|
+
end
|
256
|
+
|
257
|
+
if attributes.has_key?(:'scm')
|
258
|
+
self.scm = attributes[:'scm']
|
259
|
+
end
|
260
|
+
|
261
|
+
end
|
262
|
+
|
263
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
264
|
+
# @return Array for valid properies with the reasons
|
265
|
+
def list_invalid_properties
|
266
|
+
invalid_properties = Array.new
|
267
|
+
return invalid_properties
|
268
|
+
end
|
269
|
+
|
270
|
+
# Check to see if the all the properties in the model are valid
|
271
|
+
# @return true if the model is valid
|
272
|
+
def valid?
|
273
|
+
return true
|
274
|
+
end
|
275
|
+
|
276
|
+
# Checks equality by comparing each attribute.
|
277
|
+
# @param [Object] Object to be compared
|
278
|
+
def ==(o)
|
279
|
+
return true if self.equal?(o)
|
280
|
+
self.class == o.class &&
|
281
|
+
_class == o._class &&
|
282
|
+
name == o.name &&
|
283
|
+
url == o.url &&
|
284
|
+
color == o.color &&
|
285
|
+
actions == o.actions &&
|
286
|
+
description == o.description &&
|
287
|
+
display_name == o.display_name &&
|
288
|
+
display_name_or_null == o.display_name_or_null &&
|
289
|
+
full_display_name == o.full_display_name &&
|
290
|
+
full_name == o.full_name &&
|
291
|
+
buildable == o.buildable &&
|
292
|
+
builds == o.builds &&
|
293
|
+
first_build == o.first_build &&
|
294
|
+
health_report == o.health_report &&
|
295
|
+
in_queue == o.in_queue &&
|
296
|
+
keep_dependencies == o.keep_dependencies &&
|
297
|
+
last_build == o.last_build &&
|
298
|
+
last_completed_build == o.last_completed_build &&
|
299
|
+
last_failed_build == o.last_failed_build &&
|
300
|
+
last_stable_build == o.last_stable_build &&
|
301
|
+
last_successful_build == o.last_successful_build &&
|
302
|
+
last_unstable_build == o.last_unstable_build &&
|
303
|
+
last_unsuccessful_build == o.last_unsuccessful_build &&
|
304
|
+
next_build_number == o.next_build_number &&
|
305
|
+
queue_item == o.queue_item &&
|
306
|
+
concurrent_build == o.concurrent_build &&
|
307
|
+
scm == o.scm
|
308
|
+
end
|
309
|
+
|
310
|
+
# @see the `==` method
|
311
|
+
# @param [Object] Object to be compared
|
312
|
+
def eql?(o)
|
313
|
+
self == o
|
314
|
+
end
|
315
|
+
|
316
|
+
# Calculates hash code according to all attributes.
|
317
|
+
# @return [Fixnum] Hash code
|
318
|
+
def hash
|
319
|
+
[_class, name, url, color, actions, description, display_name, display_name_or_null, full_display_name, full_name, buildable, builds, first_build, health_report, in_queue, keep_dependencies, last_build, last_completed_build, last_failed_build, last_stable_build, last_successful_build, last_unstable_build, last_unsuccessful_build, next_build_number, queue_item, concurrent_build, scm].hash
|
320
|
+
end
|
321
|
+
|
322
|
+
# Builds the object from hash
|
323
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
324
|
+
# @return [Object] Returns the model itself
|
325
|
+
def build_from_hash(attributes)
|
326
|
+
return nil unless attributes.is_a?(Hash)
|
327
|
+
self.class.swagger_types.each_pair do |key, type|
|
328
|
+
if type =~ /\AArray<(.*)>/i
|
329
|
+
# check to ensure the input is an array given that the the attribute
|
330
|
+
# is documented as an array but the input is not
|
331
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
332
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
333
|
+
end
|
334
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
335
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
336
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
337
|
+
end
|
338
|
+
|
339
|
+
self
|
340
|
+
end
|
341
|
+
|
342
|
+
# Deserializes the data based on type
|
343
|
+
# @param string type Data type
|
344
|
+
# @param string value Value to be deserialized
|
345
|
+
# @return [Object] Deserialized data
|
346
|
+
def _deserialize(type, value)
|
347
|
+
case type.to_sym
|
348
|
+
when :DateTime
|
349
|
+
DateTime.parse(value)
|
350
|
+
when :Date
|
351
|
+
Date.parse(value)
|
352
|
+
when :String
|
353
|
+
value.to_s
|
354
|
+
when :Integer
|
355
|
+
value.to_i
|
356
|
+
when :Float
|
357
|
+
value.to_f
|
358
|
+
when :BOOLEAN
|
359
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
360
|
+
true
|
361
|
+
else
|
362
|
+
false
|
363
|
+
end
|
364
|
+
when :Object
|
365
|
+
# generic object (usually a Hash), return directly
|
366
|
+
value
|
367
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
368
|
+
inner_type = Regexp.last_match[:inner_type]
|
369
|
+
value.map { |v| _deserialize(inner_type, v) }
|
370
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
371
|
+
k_type = Regexp.last_match[:k_type]
|
372
|
+
v_type = Regexp.last_match[:v_type]
|
373
|
+
{}.tap do |hash|
|
374
|
+
value.each do |k, v|
|
375
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
376
|
+
end
|
377
|
+
end
|
378
|
+
else # model
|
379
|
+
temp_model = SwaggyJenkinsClient.const_get(type).new
|
380
|
+
temp_model.build_from_hash(value)
|
381
|
+
end
|
382
|
+
end
|
383
|
+
|
384
|
+
# Returns the string representation of the object
|
385
|
+
# @return [String] String presentation of the object
|
386
|
+
def to_s
|
387
|
+
to_hash.to_s
|
388
|
+
end
|
389
|
+
|
390
|
+
# to_body is an alias to to_hash (backward compatibility)
|
391
|
+
# @return [Hash] Returns the object in the form of hash
|
392
|
+
def to_body
|
393
|
+
to_hash
|
394
|
+
end
|
395
|
+
|
396
|
+
# Returns the object in the form of hash
|
397
|
+
# @return [Hash] Returns the object in the form of hash
|
398
|
+
def to_hash
|
399
|
+
hash = {}
|
400
|
+
self.class.attribute_map.each_pair do |attr, param|
|
401
|
+
value = self.send(attr)
|
402
|
+
next if value.nil?
|
403
|
+
hash[param] = _to_hash(value)
|
404
|
+
end
|
405
|
+
hash
|
406
|
+
end
|
407
|
+
|
408
|
+
# Outputs non-array value in the form of hash
|
409
|
+
# For object, use to_hash. Otherwise, just return the value
|
410
|
+
# @param [Object] value Any valid value
|
411
|
+
# @return [Hash] Returns the value in the form of hash
|
412
|
+
def _to_hash(value)
|
413
|
+
if value.is_a?(Array)
|
414
|
+
value.compact.map{ |v| _to_hash(v) }
|
415
|
+
elsif value.is_a?(Hash)
|
416
|
+
{}.tap do |hash|
|
417
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
418
|
+
end
|
419
|
+
elsif value.respond_to? :to_hash
|
420
|
+
value.to_hash
|
421
|
+
else
|
422
|
+
value
|
423
|
+
end
|
424
|
+
end
|
425
|
+
|
426
|
+
end
|
427
|
+
|
428
|
+
end
|
@@ -0,0 +1,188 @@
|
|
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 'date'
|
14
|
+
|
15
|
+
module SwaggyJenkinsClient
|
16
|
+
|
17
|
+
class FreeStyleProjectactions
|
18
|
+
attr_accessor :_class
|
19
|
+
|
20
|
+
|
21
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
22
|
+
def self.attribute_map
|
23
|
+
{
|
24
|
+
:'_class' => :'_class'
|
25
|
+
}
|
26
|
+
end
|
27
|
+
|
28
|
+
# Attribute type mapping.
|
29
|
+
def self.swagger_types
|
30
|
+
{
|
31
|
+
:'_class' => :'String'
|
32
|
+
}
|
33
|
+
end
|
34
|
+
|
35
|
+
# Initializes the object
|
36
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
37
|
+
def initialize(attributes = {})
|
38
|
+
return unless attributes.is_a?(Hash)
|
39
|
+
|
40
|
+
# convert string to symbol for hash key
|
41
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
42
|
+
|
43
|
+
if attributes.has_key?(:'_class')
|
44
|
+
self._class = attributes[:'_class']
|
45
|
+
end
|
46
|
+
|
47
|
+
end
|
48
|
+
|
49
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
50
|
+
# @return Array for valid properies with the reasons
|
51
|
+
def list_invalid_properties
|
52
|
+
invalid_properties = Array.new
|
53
|
+
return invalid_properties
|
54
|
+
end
|
55
|
+
|
56
|
+
# Check to see if the all the properties in the model are valid
|
57
|
+
# @return true if the model is valid
|
58
|
+
def valid?
|
59
|
+
return true
|
60
|
+
end
|
61
|
+
|
62
|
+
# Checks equality by comparing each attribute.
|
63
|
+
# @param [Object] Object to be compared
|
64
|
+
def ==(o)
|
65
|
+
return true if self.equal?(o)
|
66
|
+
self.class == o.class &&
|
67
|
+
_class == o._class
|
68
|
+
end
|
69
|
+
|
70
|
+
# @see the `==` method
|
71
|
+
# @param [Object] Object to be compared
|
72
|
+
def eql?(o)
|
73
|
+
self == o
|
74
|
+
end
|
75
|
+
|
76
|
+
# Calculates hash code according to all attributes.
|
77
|
+
# @return [Fixnum] Hash code
|
78
|
+
def hash
|
79
|
+
[_class].hash
|
80
|
+
end
|
81
|
+
|
82
|
+
# Builds the object from hash
|
83
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
84
|
+
# @return [Object] Returns the model itself
|
85
|
+
def build_from_hash(attributes)
|
86
|
+
return nil unless attributes.is_a?(Hash)
|
87
|
+
self.class.swagger_types.each_pair do |key, type|
|
88
|
+
if type =~ /\AArray<(.*)>/i
|
89
|
+
# check to ensure the input is an array given that the the attribute
|
90
|
+
# is documented as an array but the input is not
|
91
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
92
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
93
|
+
end
|
94
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
95
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
96
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
97
|
+
end
|
98
|
+
|
99
|
+
self
|
100
|
+
end
|
101
|
+
|
102
|
+
# Deserializes the data based on type
|
103
|
+
# @param string type Data type
|
104
|
+
# @param string value Value to be deserialized
|
105
|
+
# @return [Object] Deserialized data
|
106
|
+
def _deserialize(type, value)
|
107
|
+
case type.to_sym
|
108
|
+
when :DateTime
|
109
|
+
DateTime.parse(value)
|
110
|
+
when :Date
|
111
|
+
Date.parse(value)
|
112
|
+
when :String
|
113
|
+
value.to_s
|
114
|
+
when :Integer
|
115
|
+
value.to_i
|
116
|
+
when :Float
|
117
|
+
value.to_f
|
118
|
+
when :BOOLEAN
|
119
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
120
|
+
true
|
121
|
+
else
|
122
|
+
false
|
123
|
+
end
|
124
|
+
when :Object
|
125
|
+
# generic object (usually a Hash), return directly
|
126
|
+
value
|
127
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
128
|
+
inner_type = Regexp.last_match[:inner_type]
|
129
|
+
value.map { |v| _deserialize(inner_type, v) }
|
130
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
131
|
+
k_type = Regexp.last_match[:k_type]
|
132
|
+
v_type = Regexp.last_match[:v_type]
|
133
|
+
{}.tap do |hash|
|
134
|
+
value.each do |k, v|
|
135
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
136
|
+
end
|
137
|
+
end
|
138
|
+
else # model
|
139
|
+
temp_model = SwaggyJenkinsClient.const_get(type).new
|
140
|
+
temp_model.build_from_hash(value)
|
141
|
+
end
|
142
|
+
end
|
143
|
+
|
144
|
+
# Returns the string representation of the object
|
145
|
+
# @return [String] String presentation of the object
|
146
|
+
def to_s
|
147
|
+
to_hash.to_s
|
148
|
+
end
|
149
|
+
|
150
|
+
# to_body is an alias to to_hash (backward compatibility)
|
151
|
+
# @return [Hash] Returns the object in the form of hash
|
152
|
+
def to_body
|
153
|
+
to_hash
|
154
|
+
end
|
155
|
+
|
156
|
+
# Returns the object in the form of hash
|
157
|
+
# @return [Hash] Returns the object in the form of hash
|
158
|
+
def to_hash
|
159
|
+
hash = {}
|
160
|
+
self.class.attribute_map.each_pair do |attr, param|
|
161
|
+
value = self.send(attr)
|
162
|
+
next if value.nil?
|
163
|
+
hash[param] = _to_hash(value)
|
164
|
+
end
|
165
|
+
hash
|
166
|
+
end
|
167
|
+
|
168
|
+
# Outputs non-array value in the form of hash
|
169
|
+
# For object, use to_hash. Otherwise, just return the value
|
170
|
+
# @param [Object] value Any valid value
|
171
|
+
# @return [Hash] Returns the value in the form of hash
|
172
|
+
def _to_hash(value)
|
173
|
+
if value.is_a?(Array)
|
174
|
+
value.compact.map{ |v| _to_hash(v) }
|
175
|
+
elsif value.is_a?(Hash)
|
176
|
+
{}.tap do |hash|
|
177
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
178
|
+
end
|
179
|
+
elsif value.respond_to? :to_hash
|
180
|
+
value.to_hash
|
181
|
+
else
|
182
|
+
value
|
183
|
+
end
|
184
|
+
end
|
185
|
+
|
186
|
+
end
|
187
|
+
|
188
|
+
end
|