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