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
@@ -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: 2.0.0
|
7
7
|
Contact: blah@cliffano.com
|
8
|
-
Generated by: https://
|
9
|
-
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 6.0.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 PipelineRunartifacts
|
18
18
|
attr_accessor :name
|
19
19
|
|
@@ -23,7 +23,6 @@ module SwaggyJenkinsClient
|
|
23
23
|
|
24
24
|
attr_accessor :_class
|
25
25
|
|
26
|
-
|
27
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
28
27
|
def self.attribute_map
|
29
28
|
{
|
@@ -34,8 +33,13 @@ module SwaggyJenkinsClient
|
|
34
33
|
}
|
35
34
|
end
|
36
35
|
|
36
|
+
# Returns all the JSON keys this model knows about
|
37
|
+
def self.acceptable_attributes
|
38
|
+
attribute_map.values
|
39
|
+
end
|
40
|
+
|
37
41
|
# Attribute type mapping.
|
38
|
-
def self.
|
42
|
+
def self.openapi_types
|
39
43
|
{
|
40
44
|
:'name' => :'String',
|
41
45
|
:'size' => :'Integer',
|
@@ -44,43 +48,55 @@ module SwaggyJenkinsClient
|
|
44
48
|
}
|
45
49
|
end
|
46
50
|
|
51
|
+
# List of attributes with nullable: true
|
52
|
+
def self.openapi_nullable
|
53
|
+
Set.new([
|
54
|
+
])
|
55
|
+
end
|
56
|
+
|
47
57
|
# Initializes the object
|
48
58
|
# @param [Hash] attributes Model attributes in the form of hash
|
49
59
|
def initialize(attributes = {})
|
50
|
-
|
60
|
+
if (!attributes.is_a?(Hash))
|
61
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SwaggyJenkinsClient::PipelineRunartifacts` initialize method"
|
62
|
+
end
|
51
63
|
|
52
|
-
# convert string to symbol for hash key
|
53
|
-
attributes = attributes.each_with_object({}){|(k,v), h|
|
64
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
65
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
66
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
67
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SwaggyJenkinsClient::PipelineRunartifacts`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
68
|
+
end
|
69
|
+
h[k.to_sym] = v
|
70
|
+
}
|
54
71
|
|
55
|
-
if attributes.
|
72
|
+
if attributes.key?(:'name')
|
56
73
|
self.name = attributes[:'name']
|
57
74
|
end
|
58
75
|
|
59
|
-
if attributes.
|
76
|
+
if attributes.key?(:'size')
|
60
77
|
self.size = attributes[:'size']
|
61
78
|
end
|
62
79
|
|
63
|
-
if attributes.
|
80
|
+
if attributes.key?(:'url')
|
64
81
|
self.url = attributes[:'url']
|
65
82
|
end
|
66
83
|
|
67
|
-
if attributes.
|
84
|
+
if attributes.key?(:'_class')
|
68
85
|
self._class = attributes[:'_class']
|
69
86
|
end
|
70
|
-
|
71
87
|
end
|
72
88
|
|
73
89
|
# Show invalid properties with the reasons. Usually used together with valid?
|
74
|
-
# @return Array for valid
|
90
|
+
# @return Array for valid properties with the reasons
|
75
91
|
def list_invalid_properties
|
76
92
|
invalid_properties = Array.new
|
77
|
-
|
93
|
+
invalid_properties
|
78
94
|
end
|
79
95
|
|
80
96
|
# Check to see if the all the properties in the model are valid
|
81
97
|
# @return true if the model is valid
|
82
98
|
def valid?
|
83
|
-
|
99
|
+
true
|
84
100
|
end
|
85
101
|
|
86
102
|
# Checks equality by comparing each attribute.
|
@@ -101,26 +117,36 @@ module SwaggyJenkinsClient
|
|
101
117
|
end
|
102
118
|
|
103
119
|
# Calculates hash code according to all attributes.
|
104
|
-
# @return [
|
120
|
+
# @return [Integer] Hash code
|
105
121
|
def hash
|
106
122
|
[name, size, url, _class].hash
|
107
123
|
end
|
108
124
|
|
125
|
+
# Builds the object from hash
|
126
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
127
|
+
# @return [Object] Returns the model itself
|
128
|
+
def self.build_from_hash(attributes)
|
129
|
+
new.build_from_hash(attributes)
|
130
|
+
end
|
131
|
+
|
109
132
|
# Builds the object from hash
|
110
133
|
# @param [Hash] attributes Model attributes in the form of hash
|
111
134
|
# @return [Object] Returns the model itself
|
112
135
|
def build_from_hash(attributes)
|
113
136
|
return nil unless attributes.is_a?(Hash)
|
114
|
-
|
115
|
-
|
116
|
-
|
137
|
+
attributes = attributes.transform_keys(&:to_sym)
|
138
|
+
self.class.openapi_types.each_pair do |key, type|
|
139
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
140
|
+
self.send("#{key}=", nil)
|
141
|
+
elsif type =~ /\AArray<(.*)>/i
|
142
|
+
# check to ensure the input is an array given that the attribute
|
117
143
|
# is documented as an array but the input is not
|
118
144
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
119
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
145
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
120
146
|
end
|
121
147
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
122
148
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
123
|
-
end
|
149
|
+
end
|
124
150
|
end
|
125
151
|
|
126
152
|
self
|
@@ -132,8 +158,8 @@ module SwaggyJenkinsClient
|
|
132
158
|
# @return [Object] Deserialized data
|
133
159
|
def _deserialize(type, value)
|
134
160
|
case type.to_sym
|
135
|
-
when :
|
136
|
-
|
161
|
+
when :Time
|
162
|
+
Time.parse(value)
|
137
163
|
when :Date
|
138
164
|
Date.parse(value)
|
139
165
|
when :String
|
@@ -142,7 +168,7 @@ module SwaggyJenkinsClient
|
|
142
168
|
value.to_i
|
143
169
|
when :Float
|
144
170
|
value.to_f
|
145
|
-
when :
|
171
|
+
when :Boolean
|
146
172
|
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
147
173
|
true
|
148
174
|
else
|
@@ -163,8 +189,9 @@ module SwaggyJenkinsClient
|
|
163
189
|
end
|
164
190
|
end
|
165
191
|
else # model
|
166
|
-
|
167
|
-
|
192
|
+
# models (e.g. Pet) or oneOf
|
193
|
+
klass = SwaggyJenkinsClient.const_get(type)
|
194
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
168
195
|
end
|
169
196
|
end
|
170
197
|
|
@@ -186,7 +213,11 @@ module SwaggyJenkinsClient
|
|
186
213
|
hash = {}
|
187
214
|
self.class.attribute_map.each_pair do |attr, param|
|
188
215
|
value = self.send(attr)
|
189
|
-
|
216
|
+
if value.nil?
|
217
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
218
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
219
|
+
end
|
220
|
+
|
190
221
|
hash[param] = _to_hash(value)
|
191
222
|
end
|
192
223
|
hash
|
@@ -198,7 +229,7 @@ module SwaggyJenkinsClient
|
|
198
229
|
# @return [Hash] Returns the value in the form of hash
|
199
230
|
def _to_hash(value)
|
200
231
|
if value.is_a?(Array)
|
201
|
-
value.compact.map{ |v| _to_hash(v) }
|
232
|
+
value.compact.map { |v| _to_hash(v) }
|
202
233
|
elsif value.is_a?(Hash)
|
203
234
|
{}.tap do |hash|
|
204
235
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -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: 2.0.0
|
7
7
|
Contact: blah@cliffano.com
|
8
|
-
Generated by: https://
|
9
|
-
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 6.0.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 PipelineStepImpl
|
18
18
|
attr_accessor :_class
|
19
19
|
|
@@ -33,7 +33,6 @@ module SwaggyJenkinsClient
|
|
33
33
|
|
34
34
|
attr_accessor :state
|
35
35
|
|
36
|
-
|
37
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
38
37
|
def self.attribute_map
|
39
38
|
{
|
@@ -49,8 +48,13 @@ module SwaggyJenkinsClient
|
|
49
48
|
}
|
50
49
|
end
|
51
50
|
|
51
|
+
# Returns all the JSON keys this model knows about
|
52
|
+
def self.acceptable_attributes
|
53
|
+
attribute_map.values
|
54
|
+
end
|
55
|
+
|
52
56
|
# Attribute type mapping.
|
53
|
-
def self.
|
57
|
+
def self.openapi_types
|
54
58
|
{
|
55
59
|
:'_class' => :'String',
|
56
60
|
:'_links' => :'PipelineStepImpllinks',
|
@@ -64,63 +68,75 @@ module SwaggyJenkinsClient
|
|
64
68
|
}
|
65
69
|
end
|
66
70
|
|
71
|
+
# List of attributes with nullable: true
|
72
|
+
def self.openapi_nullable
|
73
|
+
Set.new([
|
74
|
+
])
|
75
|
+
end
|
76
|
+
|
67
77
|
# Initializes the object
|
68
78
|
# @param [Hash] attributes Model attributes in the form of hash
|
69
79
|
def initialize(attributes = {})
|
70
|
-
|
80
|
+
if (!attributes.is_a?(Hash))
|
81
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SwaggyJenkinsClient::PipelineStepImpl` initialize method"
|
82
|
+
end
|
71
83
|
|
72
|
-
# convert string to symbol for hash key
|
73
|
-
attributes = attributes.each_with_object({}){|(k,v), h|
|
84
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
85
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
86
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
87
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SwaggyJenkinsClient::PipelineStepImpl`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
88
|
+
end
|
89
|
+
h[k.to_sym] = v
|
90
|
+
}
|
74
91
|
|
75
|
-
if attributes.
|
92
|
+
if attributes.key?(:'_class')
|
76
93
|
self._class = attributes[:'_class']
|
77
94
|
end
|
78
95
|
|
79
|
-
if attributes.
|
96
|
+
if attributes.key?(:'_links')
|
80
97
|
self._links = attributes[:'_links']
|
81
98
|
end
|
82
99
|
|
83
|
-
if attributes.
|
84
|
-
self.display_name = attributes[:'
|
100
|
+
if attributes.key?(:'display_name')
|
101
|
+
self.display_name = attributes[:'display_name']
|
85
102
|
end
|
86
103
|
|
87
|
-
if attributes.
|
88
|
-
self.duration_in_millis = attributes[:'
|
104
|
+
if attributes.key?(:'duration_in_millis')
|
105
|
+
self.duration_in_millis = attributes[:'duration_in_millis']
|
89
106
|
end
|
90
107
|
|
91
|
-
if attributes.
|
108
|
+
if attributes.key?(:'id')
|
92
109
|
self.id = attributes[:'id']
|
93
110
|
end
|
94
111
|
|
95
|
-
if attributes.
|
112
|
+
if attributes.key?(:'input')
|
96
113
|
self.input = attributes[:'input']
|
97
114
|
end
|
98
115
|
|
99
|
-
if attributes.
|
116
|
+
if attributes.key?(:'result')
|
100
117
|
self.result = attributes[:'result']
|
101
118
|
end
|
102
119
|
|
103
|
-
if attributes.
|
104
|
-
self.start_time = attributes[:'
|
120
|
+
if attributes.key?(:'start_time')
|
121
|
+
self.start_time = attributes[:'start_time']
|
105
122
|
end
|
106
123
|
|
107
|
-
if attributes.
|
124
|
+
if attributes.key?(:'state')
|
108
125
|
self.state = attributes[:'state']
|
109
126
|
end
|
110
|
-
|
111
127
|
end
|
112
128
|
|
113
129
|
# Show invalid properties with the reasons. Usually used together with valid?
|
114
|
-
# @return Array for valid
|
130
|
+
# @return Array for valid properties with the reasons
|
115
131
|
def list_invalid_properties
|
116
132
|
invalid_properties = Array.new
|
117
|
-
|
133
|
+
invalid_properties
|
118
134
|
end
|
119
135
|
|
120
136
|
# Check to see if the all the properties in the model are valid
|
121
137
|
# @return true if the model is valid
|
122
138
|
def valid?
|
123
|
-
|
139
|
+
true
|
124
140
|
end
|
125
141
|
|
126
142
|
# Checks equality by comparing each attribute.
|
@@ -146,26 +162,36 @@ module SwaggyJenkinsClient
|
|
146
162
|
end
|
147
163
|
|
148
164
|
# Calculates hash code according to all attributes.
|
149
|
-
# @return [
|
165
|
+
# @return [Integer] Hash code
|
150
166
|
def hash
|
151
167
|
[_class, _links, display_name, duration_in_millis, id, input, result, start_time, state].hash
|
152
168
|
end
|
153
169
|
|
170
|
+
# Builds the object from hash
|
171
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
172
|
+
# @return [Object] Returns the model itself
|
173
|
+
def self.build_from_hash(attributes)
|
174
|
+
new.build_from_hash(attributes)
|
175
|
+
end
|
176
|
+
|
154
177
|
# Builds the object from hash
|
155
178
|
# @param [Hash] attributes Model attributes in the form of hash
|
156
179
|
# @return [Object] Returns the model itself
|
157
180
|
def build_from_hash(attributes)
|
158
181
|
return nil unless attributes.is_a?(Hash)
|
159
|
-
|
160
|
-
|
161
|
-
|
182
|
+
attributes = attributes.transform_keys(&:to_sym)
|
183
|
+
self.class.openapi_types.each_pair do |key, type|
|
184
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
185
|
+
self.send("#{key}=", nil)
|
186
|
+
elsif type =~ /\AArray<(.*)>/i
|
187
|
+
# check to ensure the input is an array given that the attribute
|
162
188
|
# is documented as an array but the input is not
|
163
189
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
164
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
190
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
165
191
|
end
|
166
192
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
167
193
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
168
|
-
end
|
194
|
+
end
|
169
195
|
end
|
170
196
|
|
171
197
|
self
|
@@ -177,8 +203,8 @@ module SwaggyJenkinsClient
|
|
177
203
|
# @return [Object] Deserialized data
|
178
204
|
def _deserialize(type, value)
|
179
205
|
case type.to_sym
|
180
|
-
when :
|
181
|
-
|
206
|
+
when :Time
|
207
|
+
Time.parse(value)
|
182
208
|
when :Date
|
183
209
|
Date.parse(value)
|
184
210
|
when :String
|
@@ -187,7 +213,7 @@ module SwaggyJenkinsClient
|
|
187
213
|
value.to_i
|
188
214
|
when :Float
|
189
215
|
value.to_f
|
190
|
-
when :
|
216
|
+
when :Boolean
|
191
217
|
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
192
218
|
true
|
193
219
|
else
|
@@ -208,8 +234,9 @@ module SwaggyJenkinsClient
|
|
208
234
|
end
|
209
235
|
end
|
210
236
|
else # model
|
211
|
-
|
212
|
-
|
237
|
+
# models (e.g. Pet) or oneOf
|
238
|
+
klass = SwaggyJenkinsClient.const_get(type)
|
239
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
213
240
|
end
|
214
241
|
end
|
215
242
|
|
@@ -231,7 +258,11 @@ module SwaggyJenkinsClient
|
|
231
258
|
hash = {}
|
232
259
|
self.class.attribute_map.each_pair do |attr, param|
|
233
260
|
value = self.send(attr)
|
234
|
-
|
261
|
+
if value.nil?
|
262
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
263
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
264
|
+
end
|
265
|
+
|
235
266
|
hash[param] = _to_hash(value)
|
236
267
|
end
|
237
268
|
hash
|
@@ -243,7 +274,7 @@ module SwaggyJenkinsClient
|
|
243
274
|
# @return [Hash] Returns the value in the form of hash
|
244
275
|
def _to_hash(value)
|
245
276
|
if value.is_a?(Array)
|
246
|
-
value.compact.map{ |v| _to_hash(v) }
|
277
|
+
value.compact.map { |v| _to_hash(v) }
|
247
278
|
elsif value.is_a?(Hash)
|
248
279
|
{}.tap do |hash|
|
249
280
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -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: 2.0.0
|
7
7
|
Contact: blah@cliffano.com
|
8
|
-
Generated by: https://
|
9
|
-
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 6.0.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 PipelineStepImpllinks
|
18
18
|
attr_accessor :_self
|
19
19
|
|
@@ -21,7 +21,6 @@ module SwaggyJenkinsClient
|
|
21
21
|
|
22
22
|
attr_accessor :_class
|
23
23
|
|
24
|
-
|
25
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
26
25
|
def self.attribute_map
|
27
26
|
{
|
@@ -31,8 +30,13 @@ module SwaggyJenkinsClient
|
|
31
30
|
}
|
32
31
|
end
|
33
32
|
|
33
|
+
# Returns all the JSON keys this model knows about
|
34
|
+
def self.acceptable_attributes
|
35
|
+
attribute_map.values
|
36
|
+
end
|
37
|
+
|
34
38
|
# Attribute type mapping.
|
35
|
-
def self.
|
39
|
+
def self.openapi_types
|
36
40
|
{
|
37
41
|
:'_self' => :'Link',
|
38
42
|
:'actions' => :'Link',
|
@@ -40,39 +44,51 @@ module SwaggyJenkinsClient
|
|
40
44
|
}
|
41
45
|
end
|
42
46
|
|
47
|
+
# List of attributes with nullable: true
|
48
|
+
def self.openapi_nullable
|
49
|
+
Set.new([
|
50
|
+
])
|
51
|
+
end
|
52
|
+
|
43
53
|
# Initializes the object
|
44
54
|
# @param [Hash] attributes Model attributes in the form of hash
|
45
55
|
def initialize(attributes = {})
|
46
|
-
|
56
|
+
if (!attributes.is_a?(Hash))
|
57
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SwaggyJenkinsClient::PipelineStepImpllinks` initialize method"
|
58
|
+
end
|
47
59
|
|
48
|
-
# convert string to symbol for hash key
|
49
|
-
attributes = attributes.each_with_object({}){|(k,v), h|
|
60
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
61
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
62
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
63
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SwaggyJenkinsClient::PipelineStepImpllinks`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
64
|
+
end
|
65
|
+
h[k.to_sym] = v
|
66
|
+
}
|
50
67
|
|
51
|
-
if attributes.
|
52
|
-
self._self = attributes[:'
|
68
|
+
if attributes.key?(:'_self')
|
69
|
+
self._self = attributes[:'_self']
|
53
70
|
end
|
54
71
|
|
55
|
-
if attributes.
|
72
|
+
if attributes.key?(:'actions')
|
56
73
|
self.actions = attributes[:'actions']
|
57
74
|
end
|
58
75
|
|
59
|
-
if attributes.
|
76
|
+
if attributes.key?(:'_class')
|
60
77
|
self._class = attributes[:'_class']
|
61
78
|
end
|
62
|
-
|
63
79
|
end
|
64
80
|
|
65
81
|
# Show invalid properties with the reasons. Usually used together with valid?
|
66
|
-
# @return Array for valid
|
82
|
+
# @return Array for valid properties with the reasons
|
67
83
|
def list_invalid_properties
|
68
84
|
invalid_properties = Array.new
|
69
|
-
|
85
|
+
invalid_properties
|
70
86
|
end
|
71
87
|
|
72
88
|
# Check to see if the all the properties in the model are valid
|
73
89
|
# @return true if the model is valid
|
74
90
|
def valid?
|
75
|
-
|
91
|
+
true
|
76
92
|
end
|
77
93
|
|
78
94
|
# Checks equality by comparing each attribute.
|
@@ -92,26 +108,36 @@ module SwaggyJenkinsClient
|
|
92
108
|
end
|
93
109
|
|
94
110
|
# Calculates hash code according to all attributes.
|
95
|
-
# @return [
|
111
|
+
# @return [Integer] Hash code
|
96
112
|
def hash
|
97
113
|
[_self, actions, _class].hash
|
98
114
|
end
|
99
115
|
|
116
|
+
# Builds the object from hash
|
117
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
118
|
+
# @return [Object] Returns the model itself
|
119
|
+
def self.build_from_hash(attributes)
|
120
|
+
new.build_from_hash(attributes)
|
121
|
+
end
|
122
|
+
|
100
123
|
# Builds the object from hash
|
101
124
|
# @param [Hash] attributes Model attributes in the form of hash
|
102
125
|
# @return [Object] Returns the model itself
|
103
126
|
def build_from_hash(attributes)
|
104
127
|
return nil unless attributes.is_a?(Hash)
|
105
|
-
|
106
|
-
|
107
|
-
|
128
|
+
attributes = attributes.transform_keys(&:to_sym)
|
129
|
+
self.class.openapi_types.each_pair do |key, type|
|
130
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
131
|
+
self.send("#{key}=", nil)
|
132
|
+
elsif type =~ /\AArray<(.*)>/i
|
133
|
+
# check to ensure the input is an array given that the attribute
|
108
134
|
# is documented as an array but the input is not
|
109
135
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
110
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
136
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
111
137
|
end
|
112
138
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
113
139
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
114
|
-
end
|
140
|
+
end
|
115
141
|
end
|
116
142
|
|
117
143
|
self
|
@@ -123,8 +149,8 @@ module SwaggyJenkinsClient
|
|
123
149
|
# @return [Object] Deserialized data
|
124
150
|
def _deserialize(type, value)
|
125
151
|
case type.to_sym
|
126
|
-
when :
|
127
|
-
|
152
|
+
when :Time
|
153
|
+
Time.parse(value)
|
128
154
|
when :Date
|
129
155
|
Date.parse(value)
|
130
156
|
when :String
|
@@ -133,7 +159,7 @@ module SwaggyJenkinsClient
|
|
133
159
|
value.to_i
|
134
160
|
when :Float
|
135
161
|
value.to_f
|
136
|
-
when :
|
162
|
+
when :Boolean
|
137
163
|
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
138
164
|
true
|
139
165
|
else
|
@@ -154,8 +180,9 @@ module SwaggyJenkinsClient
|
|
154
180
|
end
|
155
181
|
end
|
156
182
|
else # model
|
157
|
-
|
158
|
-
|
183
|
+
# models (e.g. Pet) or oneOf
|
184
|
+
klass = SwaggyJenkinsClient.const_get(type)
|
185
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
159
186
|
end
|
160
187
|
end
|
161
188
|
|
@@ -177,7 +204,11 @@ module SwaggyJenkinsClient
|
|
177
204
|
hash = {}
|
178
205
|
self.class.attribute_map.each_pair do |attr, param|
|
179
206
|
value = self.send(attr)
|
180
|
-
|
207
|
+
if value.nil?
|
208
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
209
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
210
|
+
end
|
211
|
+
|
181
212
|
hash[param] = _to_hash(value)
|
182
213
|
end
|
183
214
|
hash
|
@@ -189,7 +220,7 @@ module SwaggyJenkinsClient
|
|
189
220
|
# @return [Hash] Returns the value in the form of hash
|
190
221
|
def _to_hash(value)
|
191
222
|
if value.is_a?(Array)
|
192
|
-
value.compact.map{ |v| _to_hash(v) }
|
223
|
+
value.compact.map { |v| _to_hash(v) }
|
193
224
|
elsif value.is_a?(Hash)
|
194
225
|
{}.tap do |hash|
|
195
226
|
value.each { |k, v| hash[k] = _to_hash(v) }
|