swaggy_jenkins 0.0.1 → 1.3.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 +29 -0
- data/bin/coderay +29 -0
- data/bin/htmldiff +29 -0
- data/bin/ldiff +29 -0
- data/bin/pry +29 -0
- data/bin/rake +29 -0
- data/bin/rspec +29 -0
- data/bin/rubocop +29 -0
- data/bin/ruby-parse +29 -0
- data/bin/ruby-rewrite +29 -0
- data/docs/AllView.md +17 -5
- data/docs/BaseApi.md +75 -0
- data/docs/BlueOceanApi.md +1347 -631
- data/docs/BranchImpl.md +37 -15
- data/docs/BranchImpllinks.md +21 -7
- data/docs/BranchImplpermissions.md +21 -7
- data/docs/CauseAction.md +15 -4
- data/docs/CauseUserIdCause.md +19 -6
- data/docs/ClassesByClass.md +15 -4
- data/docs/ClockDifference.md +15 -4
- data/docs/ComputerSet.md +21 -7
- data/docs/DefaultCrumbIssuer.md +17 -5
- data/docs/DiskSpaceMonitorDescriptorDiskSpace.md +19 -6
- data/docs/EmptyChangeLogSet.md +15 -4
- data/docs/ExtensionClassContainerImpl1.md +17 -5
- data/docs/ExtensionClassContainerImpl1links.md +15 -4
- data/docs/ExtensionClassContainerImpl1map.md +17 -5
- data/docs/ExtensionClassImpl.md +17 -5
- data/docs/ExtensionClassImpllinks.md +15 -4
- data/docs/FavoriteImpl.md +17 -5
- data/docs/FavoriteImpllinks.md +15 -4
- data/docs/FreeStyleBuild.md +47 -20
- data/docs/FreeStyleProject.md +65 -29
- data/docs/FreeStyleProjectactions.md +13 -3
- data/docs/FreeStyleProjecthealthReport.md +21 -7
- data/docs/GenericResource.md +23 -8
- data/docs/GithubContent.md +27 -10
- data/docs/GithubFile.md +15 -4
- data/docs/GithubOrganization.md +19 -6
- data/docs/GithubOrganizationlinks.md +17 -5
- data/docs/GithubRepositories.md +23 -8
- data/docs/GithubRepositorieslinks.md +15 -4
- data/docs/GithubRepository.md +27 -10
- data/docs/GithubRepositorylinks.md +15 -4
- data/docs/GithubRepositorypermissions.md +19 -6
- data/docs/GithubRespositoryContainer.md +17 -5
- data/docs/GithubRespositoryContainerlinks.md +15 -4
- data/docs/GithubScm.md +21 -7
- data/docs/GithubScmlinks.md +15 -4
- data/docs/Hudson.md +41 -17
- data/docs/HudsonMasterComputer.md +43 -18
- data/docs/HudsonMasterComputerexecutors.md +23 -8
- data/docs/HudsonMasterComputermonitorData.md +25 -9
- data/docs/HudsonassignedLabels.md +13 -3
- data/docs/InputStepImpl.md +25 -9
- data/docs/InputStepImpllinks.md +15 -4
- data/docs/Label1.md +13 -3
- data/docs/Link.md +15 -4
- data/docs/ListView.md +21 -7
- data/docs/MultibranchPipeline.md +39 -16
- data/docs/NullSCM.md +13 -3
- data/docs/Organisation.md +15 -4
- data/docs/Pipeline.md +27 -10
- data/docs/PipelineActivity.md +41 -17
- data/docs/PipelineActivityartifacts.md +19 -6
- data/docs/PipelineBranchesitem.md +29 -11
- data/docs/PipelineBranchesitemlatestRun.md +39 -16
- data/docs/PipelineBranchesitempullRequest.md +23 -8
- data/docs/PipelineBranchesitempullRequestlinks.md +15 -4
- data/docs/PipelineFolderImpl.md +25 -9
- data/docs/PipelineImpl.md +29 -11
- data/docs/PipelineImpllinks.md +21 -7
- data/docs/PipelineRun.md +41 -17
- data/docs/PipelineRunImpl.md +41 -17
- data/docs/PipelineRunImpllinks.md +23 -8
- data/docs/PipelineRunNode.md +27 -10
- data/docs/PipelineRunNodeedges.md +15 -4
- data/docs/PipelineRunartifacts.md +19 -6
- data/docs/PipelineStepImpl.md +29 -11
- data/docs/PipelineStepImpllinks.md +17 -5
- data/docs/PipelinelatestRun.md +41 -17
- data/docs/PipelinelatestRunartifacts.md +19 -6
- data/docs/Queue.md +15 -4
- data/docs/QueueBlockedItem.md +35 -14
- data/docs/QueueItemImpl.md +21 -7
- data/docs/QueueLeftItem.md +37 -15
- data/docs/RemoteAccessApi.md +666 -350
- data/docs/ResponseTimeMonitorData.md +17 -5
- data/docs/StringParameterDefinition.md +21 -7
- data/docs/StringParameterValue.md +17 -5
- data/docs/SwapSpaceMonitorMemoryUsage2.md +21 -7
- data/docs/UnlabeledLoadStatistics.md +13 -3
- data/docs/User.md +21 -7
- data/git_push.sh +12 -10
- data/lib/swaggy_jenkins/api/base_api.rb +77 -0
- data/lib/swaggy_jenkins/api/blue_ocean_api.rb +1048 -643
- data/lib/swaggy_jenkins/api/remote_access_api.rb +506 -361
- data/lib/swaggy_jenkins/api_client.rb +95 -94
- data/lib/swaggy_jenkins/api_error.rb +22 -3
- data/lib/swaggy_jenkins/configuration.rb +91 -15
- data/lib/swaggy_jenkins/models/all_view.rb +59 -29
- data/lib/swaggy_jenkins/models/branch_impl.rb +76 -46
- data/lib/swaggy_jenkins/models/branch_impllinks.rb +62 -32
- data/lib/swaggy_jenkins/models/branch_implpermissions.rb +65 -35
- data/lib/swaggy_jenkins/models/cause_action.rb +58 -28
- data/lib/swaggy_jenkins/models/cause_user_id_cause.rb +63 -33
- data/lib/swaggy_jenkins/models/classes_by_class.rb +58 -28
- data/lib/swaggy_jenkins/models/clock_difference.rb +58 -28
- data/lib/swaggy_jenkins/models/computer_set.rb +64 -34
- data/lib/swaggy_jenkins/models/default_crumb_issuer.rb +60 -30
- data/lib/swaggy_jenkins/models/disk_space_monitor_descriptor_disk_space.rb +60 -30
- data/lib/swaggy_jenkins/models/empty_change_log_set.rb +58 -28
- data/lib/swaggy_jenkins/models/extension_class_container_impl1.rb +59 -29
- data/lib/swaggy_jenkins/models/extension_class_container_impl1links.rb +59 -29
- data/lib/swaggy_jenkins/models/extension_class_container_impl1map.rb +61 -31
- data/lib/swaggy_jenkins/models/extension_class_impl.rb +59 -29
- data/lib/swaggy_jenkins/models/extension_class_impllinks.rb +59 -29
- data/lib/swaggy_jenkins/models/favorite_impl.rb +59 -29
- data/lib/swaggy_jenkins/models/favorite_impllinks.rb +59 -29
- data/lib/swaggy_jenkins/models/free_style_build.rb +83 -53
- data/lib/swaggy_jenkins/models/free_style_project.rb +105 -75
- data/lib/swaggy_jenkins/models/free_style_projectactions.rb +57 -27
- data/lib/swaggy_jenkins/models/free_style_projecthealth_report.rb +63 -33
- data/lib/swaggy_jenkins/models/generic_resource.rb +65 -35
- data/lib/swaggy_jenkins/models/github_content.rb +65 -35
- data/lib/swaggy_jenkins/models/github_file.rb +58 -28
- data/lib/swaggy_jenkins/models/github_organization.rb +62 -32
- data/lib/swaggy_jenkins/models/github_organizationlinks.rb +60 -30
- data/lib/swaggy_jenkins/models/github_repositories.rb +65 -35
- data/lib/swaggy_jenkins/models/github_repositorieslinks.rb +59 -29
- data/lib/swaggy_jenkins/models/github_repository.rb +67 -37
- data/lib/swaggy_jenkins/models/github_repositorylinks.rb +59 -29
- data/lib/swaggy_jenkins/models/github_repositorypermissions.rb +63 -33
- data/lib/swaggy_jenkins/models/github_respository_container.rb +59 -29
- data/lib/swaggy_jenkins/models/github_respository_containerlinks.rb +59 -29
- data/lib/swaggy_jenkins/models/github_scm.rb +62 -32
- data/lib/swaggy_jenkins/models/github_scmlinks.rb +59 -29
- data/lib/swaggy_jenkins/models/hudson.rb +84 -54
- data/lib/swaggy_jenkins/models/hudson_master_computer.rb +89 -59
- data/lib/swaggy_jenkins/models/hudson_master_computerexecutors.rb +66 -36
- data/lib/swaggy_jenkins/models/hudson_master_computermonitor_data.rb +69 -39
- data/lib/swaggy_jenkins/models/hudsonassigned_labels.rb +57 -27
- data/lib/swaggy_jenkins/models/input_step_impl.rb +63 -33
- data/lib/swaggy_jenkins/models/input_step_impllinks.rb +59 -29
- data/lib/swaggy_jenkins/models/label1.rb +57 -27
- data/lib/swaggy_jenkins/models/link.rb +58 -28
- data/lib/swaggy_jenkins/models/list_view.rb +61 -31
- data/lib/swaggy_jenkins/models/multibranch_pipeline.rb +81 -51
- data/lib/swaggy_jenkins/models/null_scm.rb +57 -27
- data/lib/swaggy_jenkins/models/organisation.rb +58 -28
- data/lib/swaggy_jenkins/models/pipeline.rb +69 -39
- data/lib/swaggy_jenkins/models/pipeline_activity.rb +78 -48
- data/lib/swaggy_jenkins/models/pipeline_activityartifacts.rb +60 -30
- data/lib/swaggy_jenkins/models/pipeline_branchesitem.rb +71 -41
- data/lib/swaggy_jenkins/models/pipeline_branchesitemlatest_run.rb +77 -47
- data/lib/swaggy_jenkins/models/pipeline_branchesitempull_request.rb +62 -32
- data/lib/swaggy_jenkins/models/pipeline_branchesitempull_requestlinks.rb +59 -29
- data/lib/swaggy_jenkins/models/pipeline_folder_impl.rb +67 -37
- data/lib/swaggy_jenkins/models/pipeline_impl.rb +70 -40
- data/lib/swaggy_jenkins/models/pipeline_impllinks.rb +62 -32
- data/lib/swaggy_jenkins/models/pipeline_run.rb +78 -48
- data/lib/swaggy_jenkins/models/pipeline_run_impl.rb +78 -48
- data/lib/swaggy_jenkins/models/pipeline_run_impllinks.rb +63 -33
- data/lib/swaggy_jenkins/models/pipeline_run_node.rb +67 -37
- data/lib/swaggy_jenkins/models/pipeline_run_nodeedges.rb +58 -28
- data/lib/swaggy_jenkins/models/pipeline_runartifacts.rb +60 -30
- data/lib/swaggy_jenkins/models/pipeline_step_impl.rb +68 -38
- data/lib/swaggy_jenkins/models/pipeline_step_impllinks.rb +60 -30
- data/lib/swaggy_jenkins/models/pipelinelatest_run.rb +78 -48
- data/lib/swaggy_jenkins/models/pipelinelatest_runartifacts.rb +60 -30
- data/lib/swaggy_jenkins/models/queue.rb +58 -28
- data/lib/swaggy_jenkins/models/queue_blocked_item.rb +73 -43
- data/lib/swaggy_jenkins/models/queue_item_impl.rb +63 -33
- data/lib/swaggy_jenkins/models/queue_left_item.rb +74 -44
- data/lib/swaggy_jenkins/models/response_time_monitor_data.rb +59 -29
- data/lib/swaggy_jenkins/models/string_parameter_definition.rb +62 -32
- data/lib/swaggy_jenkins/models/string_parameter_value.rb +59 -29
- data/lib/swaggy_jenkins/models/swap_space_monitor_memory_usage2.rb +65 -35
- data/lib/swaggy_jenkins/models/unlabeled_load_statistics.rb +57 -27
- data/lib/swaggy_jenkins/models/user.rb +62 -32
- data/lib/swaggy_jenkins/version.rb +4 -4
- data/lib/swaggy_jenkins.rb +4 -16
- data/spec/api/base_api_spec.rb +45 -0
- data/spec/api/blue_ocean_api_spec.rb +76 -88
- data/spec/api/remote_access_api_spec.rb +28 -59
- data/spec/api_client_spec.rb +40 -40
- data/spec/configuration_spec.rb +11 -11
- data/spec/models/all_view_spec.rb +10 -18
- data/spec/models/branch_impl_spec.rb +20 -28
- data/spec/models/branch_impllinks_spec.rb +12 -20
- data/spec/models/branch_implpermissions_spec.rb +12 -20
- data/spec/models/cause_action_spec.rb +9 -17
- data/spec/models/cause_user_id_cause_spec.rb +11 -19
- data/spec/models/classes_by_class_spec.rb +9 -17
- data/spec/models/clock_difference_spec.rb +9 -17
- data/spec/models/computer_set_spec.rb +12 -20
- data/spec/models/default_crumb_issuer_spec.rb +10 -18
- data/spec/models/disk_space_monitor_descriptor_disk_space_spec.rb +11 -19
- data/spec/models/empty_change_log_set_spec.rb +9 -17
- data/spec/models/extension_class_container_impl1_spec.rb +10 -18
- data/spec/models/extension_class_container_impl1links_spec.rb +9 -17
- data/spec/models/extension_class_container_impl1map_spec.rb +10 -18
- data/spec/models/extension_class_impl_spec.rb +10 -18
- data/spec/models/extension_class_impllinks_spec.rb +9 -17
- data/spec/models/favorite_impl_spec.rb +10 -18
- data/spec/models/favorite_impllinks_spec.rb +9 -17
- data/spec/models/free_style_build_spec.rb +25 -33
- data/spec/models/free_style_project_spec.rb +34 -42
- data/spec/models/free_style_projectactions_spec.rb +8 -16
- data/spec/models/free_style_projecthealth_report_spec.rb +12 -20
- data/spec/models/generic_resource_spec.rb +13 -21
- data/spec/models/github_content_spec.rb +15 -23
- data/spec/models/github_file_spec.rb +9 -17
- data/spec/models/github_organization_spec.rb +11 -19
- data/spec/models/github_organizationlinks_spec.rb +10 -18
- data/spec/models/github_repositories_spec.rb +13 -21
- data/spec/models/github_repositorieslinks_spec.rb +9 -17
- data/spec/models/github_repository_spec.rb +15 -23
- data/spec/models/github_repositorylinks_spec.rb +9 -17
- data/spec/models/github_repositorypermissions_spec.rb +11 -19
- data/spec/models/github_respository_container_spec.rb +10 -18
- data/spec/models/github_respository_containerlinks_spec.rb +9 -17
- data/spec/models/github_scm_spec.rb +12 -20
- data/spec/models/github_scmlinks_spec.rb +9 -17
- data/spec/models/hudson_master_computer_spec.rb +23 -31
- data/spec/models/hudson_master_computerexecutors_spec.rb +13 -21
- data/spec/models/hudson_master_computermonitor_data_spec.rb +14 -22
- data/spec/models/hudson_spec.rb +22 -30
- data/spec/models/hudsonassigned_labels_spec.rb +8 -16
- data/spec/models/input_step_impl_spec.rb +14 -22
- data/spec/models/input_step_impllinks_spec.rb +9 -17
- data/spec/models/label1_spec.rb +8 -16
- data/spec/models/link_spec.rb +9 -17
- data/spec/models/list_view_spec.rb +12 -20
- data/spec/models/multibranch_pipeline_spec.rb +21 -29
- data/spec/models/null_scm_spec.rb +8 -16
- data/spec/models/organisation_spec.rb +9 -17
- data/spec/models/pipeline_activity_spec.rb +22 -30
- data/spec/models/pipeline_activityartifacts_spec.rb +11 -19
- data/spec/models/pipeline_branchesitem_spec.rb +16 -24
- data/spec/models/pipeline_branchesitemlatest_run_spec.rb +21 -29
- data/spec/models/pipeline_branchesitempull_request_spec.rb +13 -21
- data/spec/models/pipeline_branchesitempull_requestlinks_spec.rb +9 -17
- data/spec/models/pipeline_folder_impl_spec.rb +14 -22
- data/spec/models/pipeline_impl_spec.rb +16 -24
- data/spec/models/pipeline_impllinks_spec.rb +12 -20
- data/spec/models/pipeline_run_impl_spec.rb +22 -30
- data/spec/models/pipeline_run_impllinks_spec.rb +13 -21
- data/spec/models/pipeline_run_node_spec.rb +15 -23
- data/spec/models/pipeline_run_nodeedges_spec.rb +9 -17
- data/spec/models/pipeline_run_spec.rb +22 -30
- data/spec/models/pipeline_runartifacts_spec.rb +11 -19
- data/spec/models/pipeline_spec.rb +15 -23
- data/spec/models/pipeline_step_impl_spec.rb +16 -24
- data/spec/models/pipeline_step_impllinks_spec.rb +10 -18
- data/spec/models/pipelinelatest_run_spec.rb +22 -30
- data/spec/models/pipelinelatest_runartifacts_spec.rb +11 -19
- data/spec/models/queue_blocked_item_spec.rb +19 -27
- data/spec/models/queue_item_impl_spec.rb +12 -20
- data/spec/models/queue_left_item_spec.rb +20 -28
- data/spec/models/queue_spec.rb +9 -17
- data/spec/models/response_time_monitor_data_spec.rb +10 -18
- data/spec/models/string_parameter_definition_spec.rb +12 -20
- data/spec/models/string_parameter_value_spec.rb +10 -18
- data/spec/models/swap_space_monitor_memory_usage2_spec.rb +12 -20
- data/spec/models/unlabeled_load_statistics_spec.rb +8 -16
- data/spec/models/user_spec.rb +12 -20
- data/spec/spec_helper.rb +3 -3
- data/swaggy_jenkins.gemspec +6 -13
- metadata +97 -275
- data/docs/Body.md +0 -8
- data/docs/Organisations.md +0 -7
- data/docs/PipelineActivities.md +0 -7
- data/docs/PipelineBranches.md +0 -7
- data/docs/PipelineQueue.md +0 -7
- data/docs/PipelineRunNodeSteps.md +0 -7
- data/docs/PipelineRunNodes.md +0 -7
- data/docs/PipelineRunSteps.md +0 -7
- data/docs/PipelineRuns.md +0 -7
- data/docs/Pipelines.md +0 -7
- data/docs/ScmOrganisations.md +0 -7
- data/docs/UserFavorites.md +0 -7
- data/docs/Users.md +0 -7
- data/lib/swaggy_jenkins/models/body.rb +0 -193
- data/lib/swaggy_jenkins/models/organisations.rb +0 -179
- data/lib/swaggy_jenkins/models/pipeline_activities.rb +0 -179
- data/lib/swaggy_jenkins/models/pipeline_branches.rb +0 -179
- data/lib/swaggy_jenkins/models/pipeline_queue.rb +0 -179
- data/lib/swaggy_jenkins/models/pipeline_run_node_steps.rb +0 -179
- data/lib/swaggy_jenkins/models/pipeline_run_nodes.rb +0 -179
- data/lib/swaggy_jenkins/models/pipeline_run_steps.rb +0 -179
- data/lib/swaggy_jenkins/models/pipeline_runs.rb +0 -179
- data/lib/swaggy_jenkins/models/pipelines.rb +0 -179
- data/lib/swaggy_jenkins/models/scm_organisations.rb +0 -179
- data/lib/swaggy_jenkins/models/user_favorites.rb +0 -179
- data/lib/swaggy_jenkins/models/users.rb +0 -179
- data/spec/models/body_spec.rb +0 -42
- data/spec/models/organisations_spec.rb +0 -36
- data/spec/models/pipeline_activities_spec.rb +0 -36
- data/spec/models/pipeline_branches_spec.rb +0 -36
- data/spec/models/pipeline_queue_spec.rb +0 -36
- data/spec/models/pipeline_run_node_steps_spec.rb +0 -36
- data/spec/models/pipeline_run_nodes_spec.rb +0 -36
- data/spec/models/pipeline_run_steps_spec.rb +0 -36
- data/spec/models/pipeline_runs_spec.rb +0 -36
- data/spec/models/pipelines_spec.rb +0 -36
- data/spec/models/scm_organisations_spec.rb +0 -36
- data/spec/models/user_favorites_spec.rb +0 -36
- data/spec/models/users_spec.rb +0 -36
@@ -3,17 +3,17 @@
|
|
3
3
|
|
4
4
|
#Jenkins API clients generated from Swagger / Open API specification
|
5
5
|
|
6
|
-
OpenAPI
|
6
|
+
The version of the OpenAPI document: 1.3.0
|
7
7
|
Contact: blah@cliffano.com
|
8
|
-
Generated by: https://
|
9
|
-
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.4.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
|
+
require 'time'
|
14
15
|
|
15
16
|
module SwaggyJenkinsClient
|
16
|
-
|
17
17
|
class FreeStyleProject
|
18
18
|
attr_accessor :_class
|
19
19
|
|
@@ -69,7 +69,6 @@ module SwaggyJenkinsClient
|
|
69
69
|
|
70
70
|
attr_accessor :scm
|
71
71
|
|
72
|
-
|
73
72
|
# Attribute mapping from ruby-style variable name to JSON key.
|
74
73
|
def self.attribute_map
|
75
74
|
{
|
@@ -103,8 +102,13 @@ module SwaggyJenkinsClient
|
|
103
102
|
}
|
104
103
|
end
|
105
104
|
|
105
|
+
# Returns all the JSON keys this model knows about
|
106
|
+
def self.acceptable_attributes
|
107
|
+
attribute_map.values
|
108
|
+
end
|
109
|
+
|
106
110
|
# Attribute type mapping.
|
107
|
-
def self.
|
111
|
+
def self.openapi_types
|
108
112
|
{
|
109
113
|
:'_class' => :'String',
|
110
114
|
:'name' => :'String',
|
@@ -116,12 +120,12 @@ module SwaggyJenkinsClient
|
|
116
120
|
:'display_name_or_null' => :'String',
|
117
121
|
:'full_display_name' => :'String',
|
118
122
|
:'full_name' => :'String',
|
119
|
-
:'buildable' => :'
|
123
|
+
:'buildable' => :'Boolean',
|
120
124
|
:'builds' => :'Array<FreeStyleBuild>',
|
121
125
|
:'first_build' => :'FreeStyleBuild',
|
122
126
|
:'health_report' => :'Array<FreeStyleProjecthealthReport>',
|
123
|
-
:'in_queue' => :'
|
124
|
-
:'keep_dependencies' => :'
|
127
|
+
:'in_queue' => :'Boolean',
|
128
|
+
:'keep_dependencies' => :'Boolean',
|
125
129
|
:'last_build' => :'FreeStyleBuild',
|
126
130
|
:'last_completed_build' => :'FreeStyleBuild',
|
127
131
|
:'last_failed_build' => :'String',
|
@@ -131,146 +135,158 @@ module SwaggyJenkinsClient
|
|
131
135
|
:'last_unsuccessful_build' => :'String',
|
132
136
|
:'next_build_number' => :'Integer',
|
133
137
|
:'queue_item' => :'String',
|
134
|
-
:'concurrent_build' => :'
|
138
|
+
:'concurrent_build' => :'Boolean',
|
135
139
|
:'scm' => :'NullSCM'
|
136
140
|
}
|
137
141
|
end
|
138
142
|
|
143
|
+
# List of attributes with nullable: true
|
144
|
+
def self.openapi_nullable
|
145
|
+
Set.new([
|
146
|
+
])
|
147
|
+
end
|
148
|
+
|
139
149
|
# Initializes the object
|
140
150
|
# @param [Hash] attributes Model attributes in the form of hash
|
141
151
|
def initialize(attributes = {})
|
142
|
-
|
152
|
+
if (!attributes.is_a?(Hash))
|
153
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SwaggyJenkinsClient::FreeStyleProject` initialize method"
|
154
|
+
end
|
143
155
|
|
144
|
-
# convert string to symbol for hash key
|
145
|
-
attributes = attributes.each_with_object({}){|(k,v), h|
|
156
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
157
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
158
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
159
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SwaggyJenkinsClient::FreeStyleProject`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
160
|
+
end
|
161
|
+
h[k.to_sym] = v
|
162
|
+
}
|
146
163
|
|
147
|
-
if attributes.
|
164
|
+
if attributes.key?(:'_class')
|
148
165
|
self._class = attributes[:'_class']
|
149
166
|
end
|
150
167
|
|
151
|
-
if attributes.
|
168
|
+
if attributes.key?(:'name')
|
152
169
|
self.name = attributes[:'name']
|
153
170
|
end
|
154
171
|
|
155
|
-
if attributes.
|
172
|
+
if attributes.key?(:'url')
|
156
173
|
self.url = attributes[:'url']
|
157
174
|
end
|
158
175
|
|
159
|
-
if attributes.
|
176
|
+
if attributes.key?(:'color')
|
160
177
|
self.color = attributes[:'color']
|
161
178
|
end
|
162
179
|
|
163
|
-
if attributes.
|
180
|
+
if attributes.key?(:'actions')
|
164
181
|
if (value = attributes[:'actions']).is_a?(Array)
|
165
182
|
self.actions = value
|
166
183
|
end
|
167
184
|
end
|
168
185
|
|
169
|
-
if attributes.
|
186
|
+
if attributes.key?(:'description')
|
170
187
|
self.description = attributes[:'description']
|
171
188
|
end
|
172
189
|
|
173
|
-
if attributes.
|
174
|
-
self.display_name = attributes[:'
|
190
|
+
if attributes.key?(:'display_name')
|
191
|
+
self.display_name = attributes[:'display_name']
|
175
192
|
end
|
176
193
|
|
177
|
-
if attributes.
|
178
|
-
self.display_name_or_null = attributes[:'
|
194
|
+
if attributes.key?(:'display_name_or_null')
|
195
|
+
self.display_name_or_null = attributes[:'display_name_or_null']
|
179
196
|
end
|
180
197
|
|
181
|
-
if attributes.
|
182
|
-
self.full_display_name = attributes[:'
|
198
|
+
if attributes.key?(:'full_display_name')
|
199
|
+
self.full_display_name = attributes[:'full_display_name']
|
183
200
|
end
|
184
201
|
|
185
|
-
if attributes.
|
186
|
-
self.full_name = attributes[:'
|
202
|
+
if attributes.key?(:'full_name')
|
203
|
+
self.full_name = attributes[:'full_name']
|
187
204
|
end
|
188
205
|
|
189
|
-
if attributes.
|
206
|
+
if attributes.key?(:'buildable')
|
190
207
|
self.buildable = attributes[:'buildable']
|
191
208
|
end
|
192
209
|
|
193
|
-
if attributes.
|
210
|
+
if attributes.key?(:'builds')
|
194
211
|
if (value = attributes[:'builds']).is_a?(Array)
|
195
212
|
self.builds = value
|
196
213
|
end
|
197
214
|
end
|
198
215
|
|
199
|
-
if attributes.
|
200
|
-
self.first_build = attributes[:'
|
216
|
+
if attributes.key?(:'first_build')
|
217
|
+
self.first_build = attributes[:'first_build']
|
201
218
|
end
|
202
219
|
|
203
|
-
if attributes.
|
204
|
-
if (value = attributes[:'
|
220
|
+
if attributes.key?(:'health_report')
|
221
|
+
if (value = attributes[:'health_report']).is_a?(Array)
|
205
222
|
self.health_report = value
|
206
223
|
end
|
207
224
|
end
|
208
225
|
|
209
|
-
if attributes.
|
210
|
-
self.in_queue = attributes[:'
|
226
|
+
if attributes.key?(:'in_queue')
|
227
|
+
self.in_queue = attributes[:'in_queue']
|
211
228
|
end
|
212
229
|
|
213
|
-
if attributes.
|
214
|
-
self.keep_dependencies = attributes[:'
|
230
|
+
if attributes.key?(:'keep_dependencies')
|
231
|
+
self.keep_dependencies = attributes[:'keep_dependencies']
|
215
232
|
end
|
216
233
|
|
217
|
-
if attributes.
|
218
|
-
self.last_build = attributes[:'
|
234
|
+
if attributes.key?(:'last_build')
|
235
|
+
self.last_build = attributes[:'last_build']
|
219
236
|
end
|
220
237
|
|
221
|
-
if attributes.
|
222
|
-
self.last_completed_build = attributes[:'
|
238
|
+
if attributes.key?(:'last_completed_build')
|
239
|
+
self.last_completed_build = attributes[:'last_completed_build']
|
223
240
|
end
|
224
241
|
|
225
|
-
if attributes.
|
226
|
-
self.last_failed_build = attributes[:'
|
242
|
+
if attributes.key?(:'last_failed_build')
|
243
|
+
self.last_failed_build = attributes[:'last_failed_build']
|
227
244
|
end
|
228
245
|
|
229
|
-
if attributes.
|
230
|
-
self.last_stable_build = attributes[:'
|
246
|
+
if attributes.key?(:'last_stable_build')
|
247
|
+
self.last_stable_build = attributes[:'last_stable_build']
|
231
248
|
end
|
232
249
|
|
233
|
-
if attributes.
|
234
|
-
self.last_successful_build = attributes[:'
|
250
|
+
if attributes.key?(:'last_successful_build')
|
251
|
+
self.last_successful_build = attributes[:'last_successful_build']
|
235
252
|
end
|
236
253
|
|
237
|
-
if attributes.
|
238
|
-
self.last_unstable_build = attributes[:'
|
254
|
+
if attributes.key?(:'last_unstable_build')
|
255
|
+
self.last_unstable_build = attributes[:'last_unstable_build']
|
239
256
|
end
|
240
257
|
|
241
|
-
if attributes.
|
242
|
-
self.last_unsuccessful_build = attributes[:'
|
258
|
+
if attributes.key?(:'last_unsuccessful_build')
|
259
|
+
self.last_unsuccessful_build = attributes[:'last_unsuccessful_build']
|
243
260
|
end
|
244
261
|
|
245
|
-
if attributes.
|
246
|
-
self.next_build_number = attributes[:'
|
262
|
+
if attributes.key?(:'next_build_number')
|
263
|
+
self.next_build_number = attributes[:'next_build_number']
|
247
264
|
end
|
248
265
|
|
249
|
-
if attributes.
|
250
|
-
self.queue_item = attributes[:'
|
266
|
+
if attributes.key?(:'queue_item')
|
267
|
+
self.queue_item = attributes[:'queue_item']
|
251
268
|
end
|
252
269
|
|
253
|
-
if attributes.
|
254
|
-
self.concurrent_build = attributes[:'
|
270
|
+
if attributes.key?(:'concurrent_build')
|
271
|
+
self.concurrent_build = attributes[:'concurrent_build']
|
255
272
|
end
|
256
273
|
|
257
|
-
if attributes.
|
274
|
+
if attributes.key?(:'scm')
|
258
275
|
self.scm = attributes[:'scm']
|
259
276
|
end
|
260
|
-
|
261
277
|
end
|
262
278
|
|
263
279
|
# Show invalid properties with the reasons. Usually used together with valid?
|
264
|
-
# @return Array for valid
|
280
|
+
# @return Array for valid properties with the reasons
|
265
281
|
def list_invalid_properties
|
266
282
|
invalid_properties = Array.new
|
267
|
-
|
283
|
+
invalid_properties
|
268
284
|
end
|
269
285
|
|
270
286
|
# Check to see if the all the properties in the model are valid
|
271
287
|
# @return true if the model is valid
|
272
288
|
def valid?
|
273
|
-
|
289
|
+
true
|
274
290
|
end
|
275
291
|
|
276
292
|
# Checks equality by comparing each attribute.
|
@@ -314,26 +330,35 @@ module SwaggyJenkinsClient
|
|
314
330
|
end
|
315
331
|
|
316
332
|
# Calculates hash code according to all attributes.
|
317
|
-
# @return [
|
333
|
+
# @return [Integer] Hash code
|
318
334
|
def hash
|
319
335
|
[_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
336
|
end
|
321
337
|
|
338
|
+
# Builds the object from hash
|
339
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
340
|
+
# @return [Object] Returns the model itself
|
341
|
+
def self.build_from_hash(attributes)
|
342
|
+
new.build_from_hash(attributes)
|
343
|
+
end
|
344
|
+
|
322
345
|
# Builds the object from hash
|
323
346
|
# @param [Hash] attributes Model attributes in the form of hash
|
324
347
|
# @return [Object] Returns the model itself
|
325
348
|
def build_from_hash(attributes)
|
326
349
|
return nil unless attributes.is_a?(Hash)
|
327
|
-
self.class.
|
328
|
-
if
|
329
|
-
#
|
350
|
+
self.class.openapi_types.each_pair do |key, type|
|
351
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
352
|
+
self.send("#{key}=", nil)
|
353
|
+
elsif type =~ /\AArray<(.*)>/i
|
354
|
+
# check to ensure the input is an array given that the attribute
|
330
355
|
# is documented as an array but the input is not
|
331
356
|
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) }
|
357
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
333
358
|
end
|
334
359
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
335
360
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
336
|
-
end
|
361
|
+
end
|
337
362
|
end
|
338
363
|
|
339
364
|
self
|
@@ -345,8 +370,8 @@ module SwaggyJenkinsClient
|
|
345
370
|
# @return [Object] Deserialized data
|
346
371
|
def _deserialize(type, value)
|
347
372
|
case type.to_sym
|
348
|
-
when :
|
349
|
-
|
373
|
+
when :Time
|
374
|
+
Time.parse(value)
|
350
375
|
when :Date
|
351
376
|
Date.parse(value)
|
352
377
|
when :String
|
@@ -355,7 +380,7 @@ module SwaggyJenkinsClient
|
|
355
380
|
value.to_i
|
356
381
|
when :Float
|
357
382
|
value.to_f
|
358
|
-
when :
|
383
|
+
when :Boolean
|
359
384
|
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
360
385
|
true
|
361
386
|
else
|
@@ -376,8 +401,9 @@ module SwaggyJenkinsClient
|
|
376
401
|
end
|
377
402
|
end
|
378
403
|
else # model
|
379
|
-
|
380
|
-
|
404
|
+
# models (e.g. Pet) or oneOf
|
405
|
+
klass = SwaggyJenkinsClient.const_get(type)
|
406
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
381
407
|
end
|
382
408
|
end
|
383
409
|
|
@@ -399,7 +425,11 @@ module SwaggyJenkinsClient
|
|
399
425
|
hash = {}
|
400
426
|
self.class.attribute_map.each_pair do |attr, param|
|
401
427
|
value = self.send(attr)
|
402
|
-
|
428
|
+
if value.nil?
|
429
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
430
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
431
|
+
end
|
432
|
+
|
403
433
|
hash[param] = _to_hash(value)
|
404
434
|
end
|
405
435
|
hash
|
@@ -411,7 +441,7 @@ module SwaggyJenkinsClient
|
|
411
441
|
# @return [Hash] Returns the value in the form of hash
|
412
442
|
def _to_hash(value)
|
413
443
|
if value.is_a?(Array)
|
414
|
-
value.compact.map{ |v| _to_hash(v) }
|
444
|
+
value.compact.map { |v| _to_hash(v) }
|
415
445
|
elsif value.is_a?(Hash)
|
416
446
|
{}.tap do |hash|
|
417
447
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -3,21 +3,20 @@
|
|
3
3
|
|
4
4
|
#Jenkins API clients generated from Swagger / Open API specification
|
5
5
|
|
6
|
-
OpenAPI
|
6
|
+
The version of the OpenAPI document: 1.3.0
|
7
7
|
Contact: blah@cliffano.com
|
8
|
-
Generated by: https://
|
9
|
-
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.4.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
|
+
require 'time'
|
14
15
|
|
15
16
|
module SwaggyJenkinsClient
|
16
|
-
|
17
17
|
class FreeStyleProjectactions
|
18
18
|
attr_accessor :_class
|
19
19
|
|
20
|
-
|
21
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
22
21
|
def self.attribute_map
|
23
22
|
{
|
@@ -25,38 +24,55 @@ module SwaggyJenkinsClient
|
|
25
24
|
}
|
26
25
|
end
|
27
26
|
|
27
|
+
# Returns all the JSON keys this model knows about
|
28
|
+
def self.acceptable_attributes
|
29
|
+
attribute_map.values
|
30
|
+
end
|
31
|
+
|
28
32
|
# Attribute type mapping.
|
29
|
-
def self.
|
33
|
+
def self.openapi_types
|
30
34
|
{
|
31
35
|
:'_class' => :'String'
|
32
36
|
}
|
33
37
|
end
|
34
38
|
|
39
|
+
# List of attributes with nullable: true
|
40
|
+
def self.openapi_nullable
|
41
|
+
Set.new([
|
42
|
+
])
|
43
|
+
end
|
44
|
+
|
35
45
|
# Initializes the object
|
36
46
|
# @param [Hash] attributes Model attributes in the form of hash
|
37
47
|
def initialize(attributes = {})
|
38
|
-
|
48
|
+
if (!attributes.is_a?(Hash))
|
49
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SwaggyJenkinsClient::FreeStyleProjectactions` initialize method"
|
50
|
+
end
|
39
51
|
|
40
|
-
# convert string to symbol for hash key
|
41
|
-
attributes = attributes.each_with_object({}){|(k,v), h|
|
52
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
53
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
54
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
55
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SwaggyJenkinsClient::FreeStyleProjectactions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
56
|
+
end
|
57
|
+
h[k.to_sym] = v
|
58
|
+
}
|
42
59
|
|
43
|
-
if attributes.
|
60
|
+
if attributes.key?(:'_class')
|
44
61
|
self._class = attributes[:'_class']
|
45
62
|
end
|
46
|
-
|
47
63
|
end
|
48
64
|
|
49
65
|
# Show invalid properties with the reasons. Usually used together with valid?
|
50
|
-
# @return Array for valid
|
66
|
+
# @return Array for valid properties with the reasons
|
51
67
|
def list_invalid_properties
|
52
68
|
invalid_properties = Array.new
|
53
|
-
|
69
|
+
invalid_properties
|
54
70
|
end
|
55
71
|
|
56
72
|
# Check to see if the all the properties in the model are valid
|
57
73
|
# @return true if the model is valid
|
58
74
|
def valid?
|
59
|
-
|
75
|
+
true
|
60
76
|
end
|
61
77
|
|
62
78
|
# Checks equality by comparing each attribute.
|
@@ -74,26 +90,35 @@ module SwaggyJenkinsClient
|
|
74
90
|
end
|
75
91
|
|
76
92
|
# Calculates hash code according to all attributes.
|
77
|
-
# @return [
|
93
|
+
# @return [Integer] Hash code
|
78
94
|
def hash
|
79
95
|
[_class].hash
|
80
96
|
end
|
81
97
|
|
98
|
+
# Builds the object from hash
|
99
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
100
|
+
# @return [Object] Returns the model itself
|
101
|
+
def self.build_from_hash(attributes)
|
102
|
+
new.build_from_hash(attributes)
|
103
|
+
end
|
104
|
+
|
82
105
|
# Builds the object from hash
|
83
106
|
# @param [Hash] attributes Model attributes in the form of hash
|
84
107
|
# @return [Object] Returns the model itself
|
85
108
|
def build_from_hash(attributes)
|
86
109
|
return nil unless attributes.is_a?(Hash)
|
87
|
-
self.class.
|
88
|
-
if
|
89
|
-
#
|
110
|
+
self.class.openapi_types.each_pair do |key, type|
|
111
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
112
|
+
self.send("#{key}=", nil)
|
113
|
+
elsif type =~ /\AArray<(.*)>/i
|
114
|
+
# check to ensure the input is an array given that the attribute
|
90
115
|
# is documented as an array but the input is not
|
91
116
|
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) }
|
117
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
93
118
|
end
|
94
119
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
95
120
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
96
|
-
end
|
121
|
+
end
|
97
122
|
end
|
98
123
|
|
99
124
|
self
|
@@ -105,8 +130,8 @@ module SwaggyJenkinsClient
|
|
105
130
|
# @return [Object] Deserialized data
|
106
131
|
def _deserialize(type, value)
|
107
132
|
case type.to_sym
|
108
|
-
when :
|
109
|
-
|
133
|
+
when :Time
|
134
|
+
Time.parse(value)
|
110
135
|
when :Date
|
111
136
|
Date.parse(value)
|
112
137
|
when :String
|
@@ -115,7 +140,7 @@ module SwaggyJenkinsClient
|
|
115
140
|
value.to_i
|
116
141
|
when :Float
|
117
142
|
value.to_f
|
118
|
-
when :
|
143
|
+
when :Boolean
|
119
144
|
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
120
145
|
true
|
121
146
|
else
|
@@ -136,8 +161,9 @@ module SwaggyJenkinsClient
|
|
136
161
|
end
|
137
162
|
end
|
138
163
|
else # model
|
139
|
-
|
140
|
-
|
164
|
+
# models (e.g. Pet) or oneOf
|
165
|
+
klass = SwaggyJenkinsClient.const_get(type)
|
166
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
141
167
|
end
|
142
168
|
end
|
143
169
|
|
@@ -159,7 +185,11 @@ module SwaggyJenkinsClient
|
|
159
185
|
hash = {}
|
160
186
|
self.class.attribute_map.each_pair do |attr, param|
|
161
187
|
value = self.send(attr)
|
162
|
-
|
188
|
+
if value.nil?
|
189
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
190
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
191
|
+
end
|
192
|
+
|
163
193
|
hash[param] = _to_hash(value)
|
164
194
|
end
|
165
195
|
hash
|
@@ -171,7 +201,7 @@ module SwaggyJenkinsClient
|
|
171
201
|
# @return [Hash] Returns the value in the form of hash
|
172
202
|
def _to_hash(value)
|
173
203
|
if value.is_a?(Array)
|
174
|
-
value.compact.map{ |v| _to_hash(v) }
|
204
|
+
value.compact.map { |v| _to_hash(v) }
|
175
205
|
elsif value.is_a?(Hash)
|
176
206
|
{}.tap do |hash|
|
177
207
|
value.each { |k, v| hash[k] = _to_hash(v) }
|