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 PipelineRun
|
18
18
|
attr_accessor :_class
|
19
19
|
|
@@ -45,7 +45,6 @@ module SwaggyJenkinsClient
|
|
45
45
|
|
46
46
|
attr_accessor :commit_id
|
47
47
|
|
48
|
-
|
49
48
|
# Attribute mapping from ruby-style variable name to JSON key.
|
50
49
|
def self.attribute_map
|
51
50
|
{
|
@@ -67,8 +66,13 @@ module SwaggyJenkinsClient
|
|
67
66
|
}
|
68
67
|
end
|
69
68
|
|
69
|
+
# Returns all the JSON keys this model knows about
|
70
|
+
def self.acceptable_attributes
|
71
|
+
attribute_map.values
|
72
|
+
end
|
73
|
+
|
70
74
|
# Attribute type mapping.
|
71
|
-
def self.
|
75
|
+
def self.openapi_types
|
72
76
|
{
|
73
77
|
:'_class' => :'String',
|
74
78
|
:'artifacts' => :'Array<PipelineRunartifacts>',
|
@@ -88,89 +92,101 @@ module SwaggyJenkinsClient
|
|
88
92
|
}
|
89
93
|
end
|
90
94
|
|
95
|
+
# List of attributes with nullable: true
|
96
|
+
def self.openapi_nullable
|
97
|
+
Set.new([
|
98
|
+
])
|
99
|
+
end
|
100
|
+
|
91
101
|
# Initializes the object
|
92
102
|
# @param [Hash] attributes Model attributes in the form of hash
|
93
103
|
def initialize(attributes = {})
|
94
|
-
|
104
|
+
if (!attributes.is_a?(Hash))
|
105
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SwaggyJenkinsClient::PipelineRun` initialize method"
|
106
|
+
end
|
95
107
|
|
96
|
-
# convert string to symbol for hash key
|
97
|
-
attributes = attributes.each_with_object({}){|(k,v), h|
|
108
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
109
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
110
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
111
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SwaggyJenkinsClient::PipelineRun`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
112
|
+
end
|
113
|
+
h[k.to_sym] = v
|
114
|
+
}
|
98
115
|
|
99
|
-
if attributes.
|
116
|
+
if attributes.key?(:'_class')
|
100
117
|
self._class = attributes[:'_class']
|
101
118
|
end
|
102
119
|
|
103
|
-
if attributes.
|
120
|
+
if attributes.key?(:'artifacts')
|
104
121
|
if (value = attributes[:'artifacts']).is_a?(Array)
|
105
122
|
self.artifacts = value
|
106
123
|
end
|
107
124
|
end
|
108
125
|
|
109
|
-
if attributes.
|
110
|
-
self.duration_in_millis = attributes[:'
|
126
|
+
if attributes.key?(:'duration_in_millis')
|
127
|
+
self.duration_in_millis = attributes[:'duration_in_millis']
|
111
128
|
end
|
112
129
|
|
113
|
-
if attributes.
|
114
|
-
self.estimated_duration_in_millis = attributes[:'
|
130
|
+
if attributes.key?(:'estimated_duration_in_millis')
|
131
|
+
self.estimated_duration_in_millis = attributes[:'estimated_duration_in_millis']
|
115
132
|
end
|
116
133
|
|
117
|
-
if attributes.
|
118
|
-
self.en_queue_time = attributes[:'
|
134
|
+
if attributes.key?(:'en_queue_time')
|
135
|
+
self.en_queue_time = attributes[:'en_queue_time']
|
119
136
|
end
|
120
137
|
|
121
|
-
if attributes.
|
122
|
-
self.end_time = attributes[:'
|
138
|
+
if attributes.key?(:'end_time')
|
139
|
+
self.end_time = attributes[:'end_time']
|
123
140
|
end
|
124
141
|
|
125
|
-
if attributes.
|
142
|
+
if attributes.key?(:'id')
|
126
143
|
self.id = attributes[:'id']
|
127
144
|
end
|
128
145
|
|
129
|
-
if attributes.
|
146
|
+
if attributes.key?(:'organization')
|
130
147
|
self.organization = attributes[:'organization']
|
131
148
|
end
|
132
149
|
|
133
|
-
if attributes.
|
150
|
+
if attributes.key?(:'pipeline')
|
134
151
|
self.pipeline = attributes[:'pipeline']
|
135
152
|
end
|
136
153
|
|
137
|
-
if attributes.
|
154
|
+
if attributes.key?(:'result')
|
138
155
|
self.result = attributes[:'result']
|
139
156
|
end
|
140
157
|
|
141
|
-
if attributes.
|
142
|
-
self.run_summary = attributes[:'
|
158
|
+
if attributes.key?(:'run_summary')
|
159
|
+
self.run_summary = attributes[:'run_summary']
|
143
160
|
end
|
144
161
|
|
145
|
-
if attributes.
|
146
|
-
self.start_time = attributes[:'
|
162
|
+
if attributes.key?(:'start_time')
|
163
|
+
self.start_time = attributes[:'start_time']
|
147
164
|
end
|
148
165
|
|
149
|
-
if attributes.
|
166
|
+
if attributes.key?(:'state')
|
150
167
|
self.state = attributes[:'state']
|
151
168
|
end
|
152
169
|
|
153
|
-
if attributes.
|
170
|
+
if attributes.key?(:'type')
|
154
171
|
self.type = attributes[:'type']
|
155
172
|
end
|
156
173
|
|
157
|
-
if attributes.
|
158
|
-
self.commit_id = attributes[:'
|
174
|
+
if attributes.key?(:'commit_id')
|
175
|
+
self.commit_id = attributes[:'commit_id']
|
159
176
|
end
|
160
|
-
|
161
177
|
end
|
162
178
|
|
163
179
|
# Show invalid properties with the reasons. Usually used together with valid?
|
164
|
-
# @return Array for valid
|
180
|
+
# @return Array for valid properties with the reasons
|
165
181
|
def list_invalid_properties
|
166
182
|
invalid_properties = Array.new
|
167
|
-
|
183
|
+
invalid_properties
|
168
184
|
end
|
169
185
|
|
170
186
|
# Check to see if the all the properties in the model are valid
|
171
187
|
# @return true if the model is valid
|
172
188
|
def valid?
|
173
|
-
|
189
|
+
true
|
174
190
|
end
|
175
191
|
|
176
192
|
# Checks equality by comparing each attribute.
|
@@ -202,26 +218,35 @@ module SwaggyJenkinsClient
|
|
202
218
|
end
|
203
219
|
|
204
220
|
# Calculates hash code according to all attributes.
|
205
|
-
# @return [
|
221
|
+
# @return [Integer] Hash code
|
206
222
|
def hash
|
207
223
|
[_class, artifacts, duration_in_millis, estimated_duration_in_millis, en_queue_time, end_time, id, organization, pipeline, result, run_summary, start_time, state, type, commit_id].hash
|
208
224
|
end
|
209
225
|
|
226
|
+
# Builds the object from hash
|
227
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
228
|
+
# @return [Object] Returns the model itself
|
229
|
+
def self.build_from_hash(attributes)
|
230
|
+
new.build_from_hash(attributes)
|
231
|
+
end
|
232
|
+
|
210
233
|
# Builds the object from hash
|
211
234
|
# @param [Hash] attributes Model attributes in the form of hash
|
212
235
|
# @return [Object] Returns the model itself
|
213
236
|
def build_from_hash(attributes)
|
214
237
|
return nil unless attributes.is_a?(Hash)
|
215
|
-
self.class.
|
216
|
-
if
|
217
|
-
#
|
238
|
+
self.class.openapi_types.each_pair do |key, type|
|
239
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
240
|
+
self.send("#{key}=", nil)
|
241
|
+
elsif type =~ /\AArray<(.*)>/i
|
242
|
+
# check to ensure the input is an array given that the attribute
|
218
243
|
# is documented as an array but the input is not
|
219
244
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
220
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
245
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
221
246
|
end
|
222
247
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
223
248
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
224
|
-
end
|
249
|
+
end
|
225
250
|
end
|
226
251
|
|
227
252
|
self
|
@@ -233,8 +258,8 @@ module SwaggyJenkinsClient
|
|
233
258
|
# @return [Object] Deserialized data
|
234
259
|
def _deserialize(type, value)
|
235
260
|
case type.to_sym
|
236
|
-
when :
|
237
|
-
|
261
|
+
when :Time
|
262
|
+
Time.parse(value)
|
238
263
|
when :Date
|
239
264
|
Date.parse(value)
|
240
265
|
when :String
|
@@ -243,7 +268,7 @@ module SwaggyJenkinsClient
|
|
243
268
|
value.to_i
|
244
269
|
when :Float
|
245
270
|
value.to_f
|
246
|
-
when :
|
271
|
+
when :Boolean
|
247
272
|
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
248
273
|
true
|
249
274
|
else
|
@@ -264,8 +289,9 @@ module SwaggyJenkinsClient
|
|
264
289
|
end
|
265
290
|
end
|
266
291
|
else # model
|
267
|
-
|
268
|
-
|
292
|
+
# models (e.g. Pet) or oneOf
|
293
|
+
klass = SwaggyJenkinsClient.const_get(type)
|
294
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
269
295
|
end
|
270
296
|
end
|
271
297
|
|
@@ -287,7 +313,11 @@ module SwaggyJenkinsClient
|
|
287
313
|
hash = {}
|
288
314
|
self.class.attribute_map.each_pair do |attr, param|
|
289
315
|
value = self.send(attr)
|
290
|
-
|
316
|
+
if value.nil?
|
317
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
318
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
319
|
+
end
|
320
|
+
|
291
321
|
hash[param] = _to_hash(value)
|
292
322
|
end
|
293
323
|
hash
|
@@ -299,7 +329,7 @@ module SwaggyJenkinsClient
|
|
299
329
|
# @return [Hash] Returns the value in the form of hash
|
300
330
|
def _to_hash(value)
|
301
331
|
if value.is_a?(Array)
|
302
|
-
value.compact.map{ |v| _to_hash(v) }
|
332
|
+
value.compact.map { |v| _to_hash(v) }
|
303
333
|
elsif value.is_a?(Hash)
|
304
334
|
{}.tap do |hash|
|
305
335
|
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 PipelineRunImpl
|
18
18
|
attr_accessor :_class
|
19
19
|
|
@@ -45,7 +45,6 @@ module SwaggyJenkinsClient
|
|
45
45
|
|
46
46
|
attr_accessor :commit_id
|
47
47
|
|
48
|
-
|
49
48
|
# Attribute mapping from ruby-style variable name to JSON key.
|
50
49
|
def self.attribute_map
|
51
50
|
{
|
@@ -67,8 +66,13 @@ module SwaggyJenkinsClient
|
|
67
66
|
}
|
68
67
|
end
|
69
68
|
|
69
|
+
# Returns all the JSON keys this model knows about
|
70
|
+
def self.acceptable_attributes
|
71
|
+
attribute_map.values
|
72
|
+
end
|
73
|
+
|
70
74
|
# Attribute type mapping.
|
71
|
-
def self.
|
75
|
+
def self.openapi_types
|
72
76
|
{
|
73
77
|
:'_class' => :'String',
|
74
78
|
:'_links' => :'PipelineRunImpllinks',
|
@@ -88,87 +92,99 @@ module SwaggyJenkinsClient
|
|
88
92
|
}
|
89
93
|
end
|
90
94
|
|
95
|
+
# List of attributes with nullable: true
|
96
|
+
def self.openapi_nullable
|
97
|
+
Set.new([
|
98
|
+
])
|
99
|
+
end
|
100
|
+
|
91
101
|
# Initializes the object
|
92
102
|
# @param [Hash] attributes Model attributes in the form of hash
|
93
103
|
def initialize(attributes = {})
|
94
|
-
|
104
|
+
if (!attributes.is_a?(Hash))
|
105
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SwaggyJenkinsClient::PipelineRunImpl` initialize method"
|
106
|
+
end
|
95
107
|
|
96
|
-
# convert string to symbol for hash key
|
97
|
-
attributes = attributes.each_with_object({}){|(k,v), h|
|
108
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
109
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
110
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
111
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SwaggyJenkinsClient::PipelineRunImpl`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
112
|
+
end
|
113
|
+
h[k.to_sym] = v
|
114
|
+
}
|
98
115
|
|
99
|
-
if attributes.
|
116
|
+
if attributes.key?(:'_class')
|
100
117
|
self._class = attributes[:'_class']
|
101
118
|
end
|
102
119
|
|
103
|
-
if attributes.
|
120
|
+
if attributes.key?(:'_links')
|
104
121
|
self._links = attributes[:'_links']
|
105
122
|
end
|
106
123
|
|
107
|
-
if attributes.
|
108
|
-
self.duration_in_millis = attributes[:'
|
124
|
+
if attributes.key?(:'duration_in_millis')
|
125
|
+
self.duration_in_millis = attributes[:'duration_in_millis']
|
109
126
|
end
|
110
127
|
|
111
|
-
if attributes.
|
112
|
-
self.en_queue_time = attributes[:'
|
128
|
+
if attributes.key?(:'en_queue_time')
|
129
|
+
self.en_queue_time = attributes[:'en_queue_time']
|
113
130
|
end
|
114
131
|
|
115
|
-
if attributes.
|
116
|
-
self.end_time = attributes[:'
|
132
|
+
if attributes.key?(:'end_time')
|
133
|
+
self.end_time = attributes[:'end_time']
|
117
134
|
end
|
118
135
|
|
119
|
-
if attributes.
|
120
|
-
self.estimated_duration_in_millis = attributes[:'
|
136
|
+
if attributes.key?(:'estimated_duration_in_millis')
|
137
|
+
self.estimated_duration_in_millis = attributes[:'estimated_duration_in_millis']
|
121
138
|
end
|
122
139
|
|
123
|
-
if attributes.
|
140
|
+
if attributes.key?(:'id')
|
124
141
|
self.id = attributes[:'id']
|
125
142
|
end
|
126
143
|
|
127
|
-
if attributes.
|
144
|
+
if attributes.key?(:'organization')
|
128
145
|
self.organization = attributes[:'organization']
|
129
146
|
end
|
130
147
|
|
131
|
-
if attributes.
|
148
|
+
if attributes.key?(:'pipeline')
|
132
149
|
self.pipeline = attributes[:'pipeline']
|
133
150
|
end
|
134
151
|
|
135
|
-
if attributes.
|
152
|
+
if attributes.key?(:'result')
|
136
153
|
self.result = attributes[:'result']
|
137
154
|
end
|
138
155
|
|
139
|
-
if attributes.
|
140
|
-
self.run_summary = attributes[:'
|
156
|
+
if attributes.key?(:'run_summary')
|
157
|
+
self.run_summary = attributes[:'run_summary']
|
141
158
|
end
|
142
159
|
|
143
|
-
if attributes.
|
144
|
-
self.start_time = attributes[:'
|
160
|
+
if attributes.key?(:'start_time')
|
161
|
+
self.start_time = attributes[:'start_time']
|
145
162
|
end
|
146
163
|
|
147
|
-
if attributes.
|
164
|
+
if attributes.key?(:'state')
|
148
165
|
self.state = attributes[:'state']
|
149
166
|
end
|
150
167
|
|
151
|
-
if attributes.
|
168
|
+
if attributes.key?(:'type')
|
152
169
|
self.type = attributes[:'type']
|
153
170
|
end
|
154
171
|
|
155
|
-
if attributes.
|
156
|
-
self.commit_id = attributes[:'
|
172
|
+
if attributes.key?(:'commit_id')
|
173
|
+
self.commit_id = attributes[:'commit_id']
|
157
174
|
end
|
158
|
-
|
159
175
|
end
|
160
176
|
|
161
177
|
# Show invalid properties with the reasons. Usually used together with valid?
|
162
|
-
# @return Array for valid
|
178
|
+
# @return Array for valid properties with the reasons
|
163
179
|
def list_invalid_properties
|
164
180
|
invalid_properties = Array.new
|
165
|
-
|
181
|
+
invalid_properties
|
166
182
|
end
|
167
183
|
|
168
184
|
# Check to see if the all the properties in the model are valid
|
169
185
|
# @return true if the model is valid
|
170
186
|
def valid?
|
171
|
-
|
187
|
+
true
|
172
188
|
end
|
173
189
|
|
174
190
|
# Checks equality by comparing each attribute.
|
@@ -200,26 +216,35 @@ module SwaggyJenkinsClient
|
|
200
216
|
end
|
201
217
|
|
202
218
|
# Calculates hash code according to all attributes.
|
203
|
-
# @return [
|
219
|
+
# @return [Integer] Hash code
|
204
220
|
def hash
|
205
221
|
[_class, _links, duration_in_millis, en_queue_time, end_time, estimated_duration_in_millis, id, organization, pipeline, result, run_summary, start_time, state, type, commit_id].hash
|
206
222
|
end
|
207
223
|
|
224
|
+
# Builds the object from hash
|
225
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
226
|
+
# @return [Object] Returns the model itself
|
227
|
+
def self.build_from_hash(attributes)
|
228
|
+
new.build_from_hash(attributes)
|
229
|
+
end
|
230
|
+
|
208
231
|
# Builds the object from hash
|
209
232
|
# @param [Hash] attributes Model attributes in the form of hash
|
210
233
|
# @return [Object] Returns the model itself
|
211
234
|
def build_from_hash(attributes)
|
212
235
|
return nil unless attributes.is_a?(Hash)
|
213
|
-
self.class.
|
214
|
-
if
|
215
|
-
#
|
236
|
+
self.class.openapi_types.each_pair do |key, type|
|
237
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
238
|
+
self.send("#{key}=", nil)
|
239
|
+
elsif type =~ /\AArray<(.*)>/i
|
240
|
+
# check to ensure the input is an array given that the attribute
|
216
241
|
# is documented as an array but the input is not
|
217
242
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
218
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
243
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
219
244
|
end
|
220
245
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
221
246
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
222
|
-
end
|
247
|
+
end
|
223
248
|
end
|
224
249
|
|
225
250
|
self
|
@@ -231,8 +256,8 @@ module SwaggyJenkinsClient
|
|
231
256
|
# @return [Object] Deserialized data
|
232
257
|
def _deserialize(type, value)
|
233
258
|
case type.to_sym
|
234
|
-
when :
|
235
|
-
|
259
|
+
when :Time
|
260
|
+
Time.parse(value)
|
236
261
|
when :Date
|
237
262
|
Date.parse(value)
|
238
263
|
when :String
|
@@ -241,7 +266,7 @@ module SwaggyJenkinsClient
|
|
241
266
|
value.to_i
|
242
267
|
when :Float
|
243
268
|
value.to_f
|
244
|
-
when :
|
269
|
+
when :Boolean
|
245
270
|
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
246
271
|
true
|
247
272
|
else
|
@@ -262,8 +287,9 @@ module SwaggyJenkinsClient
|
|
262
287
|
end
|
263
288
|
end
|
264
289
|
else # model
|
265
|
-
|
266
|
-
|
290
|
+
# models (e.g. Pet) or oneOf
|
291
|
+
klass = SwaggyJenkinsClient.const_get(type)
|
292
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
267
293
|
end
|
268
294
|
end
|
269
295
|
|
@@ -285,7 +311,11 @@ module SwaggyJenkinsClient
|
|
285
311
|
hash = {}
|
286
312
|
self.class.attribute_map.each_pair do |attr, param|
|
287
313
|
value = self.send(attr)
|
288
|
-
|
314
|
+
if value.nil?
|
315
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
316
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
317
|
+
end
|
318
|
+
|
289
319
|
hash[param] = _to_hash(value)
|
290
320
|
end
|
291
321
|
hash
|
@@ -297,7 +327,7 @@ module SwaggyJenkinsClient
|
|
297
327
|
# @return [Hash] Returns the value in the form of hash
|
298
328
|
def _to_hash(value)
|
299
329
|
if value.is_a?(Array)
|
300
|
-
value.compact.map{ |v| _to_hash(v) }
|
330
|
+
value.compact.map { |v| _to_hash(v) }
|
301
331
|
elsif value.is_a?(Hash)
|
302
332
|
{}.tap do |hash|
|
303
333
|
value.each { |k, v| hash[k] = _to_hash(v) }
|