swaggy_jenkins 3.2.0 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +80 -13
- data/README.md +6 -6
- data/bin/byebug +0 -11
- data/bin/coderay +0 -11
- data/bin/htmldiff +0 -11
- data/bin/ldiff +0 -11
- data/bin/pry +0 -11
- data/bin/racc +0 -11
- data/bin/rake +0 -11
- data/bin/rspec +0 -11
- data/bin/rubocop +0 -11
- data/bin/ruby-parse +0 -11
- data/bin/ruby-rewrite +0 -11
- data/docs/PipelineImpllinks.md +4 -4
- data/lib/swaggy_jenkins/api/base_api.rb +2 -2
- data/lib/swaggy_jenkins/api/blue_ocean_api.rb +2 -2
- data/lib/swaggy_jenkins/api/remote_access_api.rb +2 -2
- data/lib/swaggy_jenkins/api_client.rb +8 -4
- data/lib/swaggy_jenkins/api_error.rb +2 -2
- data/lib/swaggy_jenkins/api_model_base.rb +88 -0
- data/lib/swaggy_jenkins/configuration.rb +2 -2
- data/lib/swaggy_jenkins/models/all_view.rb +3 -76
- data/lib/swaggy_jenkins/models/branch_impl.rb +3 -76
- data/lib/swaggy_jenkins/models/branch_impllinks.rb +3 -76
- data/lib/swaggy_jenkins/models/branch_implpermissions.rb +3 -76
- data/lib/swaggy_jenkins/models/cause_action.rb +3 -76
- data/lib/swaggy_jenkins/models/cause_user_id_cause.rb +3 -76
- data/lib/swaggy_jenkins/models/classes_by_class.rb +3 -76
- data/lib/swaggy_jenkins/models/clock_difference.rb +3 -76
- data/lib/swaggy_jenkins/models/computer_set.rb +3 -76
- data/lib/swaggy_jenkins/models/default_crumb_issuer.rb +3 -76
- data/lib/swaggy_jenkins/models/disk_space_monitor_descriptor_disk_space.rb +3 -76
- data/lib/swaggy_jenkins/models/empty_change_log_set.rb +3 -76
- data/lib/swaggy_jenkins/models/extension_class_container_impl1.rb +3 -76
- data/lib/swaggy_jenkins/models/extension_class_container_impl1links.rb +3 -76
- data/lib/swaggy_jenkins/models/extension_class_container_impl1map.rb +3 -76
- data/lib/swaggy_jenkins/models/extension_class_impl.rb +3 -76
- data/lib/swaggy_jenkins/models/extension_class_impllinks.rb +3 -76
- data/lib/swaggy_jenkins/models/favorite_impl.rb +3 -76
- data/lib/swaggy_jenkins/models/favorite_impllinks.rb +3 -76
- data/lib/swaggy_jenkins/models/free_style_build.rb +3 -76
- data/lib/swaggy_jenkins/models/free_style_project.rb +3 -76
- data/lib/swaggy_jenkins/models/free_style_projectactions.rb +3 -76
- data/lib/swaggy_jenkins/models/free_style_projecthealth_report.rb +3 -76
- data/lib/swaggy_jenkins/models/generic_resource.rb +3 -76
- data/lib/swaggy_jenkins/models/github_content.rb +3 -76
- data/lib/swaggy_jenkins/models/github_file.rb +3 -76
- data/lib/swaggy_jenkins/models/github_organization.rb +3 -76
- data/lib/swaggy_jenkins/models/github_organizationlinks.rb +3 -76
- data/lib/swaggy_jenkins/models/github_repositories.rb +3 -76
- data/lib/swaggy_jenkins/models/github_repositorieslinks.rb +3 -76
- data/lib/swaggy_jenkins/models/github_repository.rb +3 -76
- data/lib/swaggy_jenkins/models/github_repositorylinks.rb +3 -76
- data/lib/swaggy_jenkins/models/github_repositorypermissions.rb +3 -76
- data/lib/swaggy_jenkins/models/github_respository_container.rb +3 -76
- data/lib/swaggy_jenkins/models/github_respository_containerlinks.rb +3 -76
- data/lib/swaggy_jenkins/models/github_scm.rb +3 -76
- data/lib/swaggy_jenkins/models/github_scmlinks.rb +3 -76
- data/lib/swaggy_jenkins/models/hudson.rb +3 -76
- data/lib/swaggy_jenkins/models/hudson_master_computer.rb +3 -76
- data/lib/swaggy_jenkins/models/hudson_master_computerexecutors.rb +3 -76
- data/lib/swaggy_jenkins/models/hudson_master_computermonitor_data.rb +3 -76
- data/lib/swaggy_jenkins/models/hudsonassigned_labels.rb +3 -76
- data/lib/swaggy_jenkins/models/input_step_impl.rb +3 -76
- data/lib/swaggy_jenkins/models/input_step_impllinks.rb +3 -76
- data/lib/swaggy_jenkins/models/label1.rb +3 -76
- data/lib/swaggy_jenkins/models/link.rb +3 -76
- data/lib/swaggy_jenkins/models/list_view.rb +3 -76
- data/lib/swaggy_jenkins/models/multibranch_pipeline.rb +3 -76
- data/lib/swaggy_jenkins/models/null_scm.rb +3 -76
- data/lib/swaggy_jenkins/models/organisation.rb +3 -76
- data/lib/swaggy_jenkins/models/pipeline.rb +3 -76
- data/lib/swaggy_jenkins/models/pipeline_activity.rb +3 -76
- data/lib/swaggy_jenkins/models/pipeline_activityartifacts.rb +3 -76
- data/lib/swaggy_jenkins/models/pipeline_branchesitem.rb +3 -76
- data/lib/swaggy_jenkins/models/pipeline_branchesitemlatest_run.rb +3 -76
- data/lib/swaggy_jenkins/models/pipeline_branchesitempull_request.rb +3 -76
- data/lib/swaggy_jenkins/models/pipeline_branchesitempull_requestlinks.rb +3 -76
- data/lib/swaggy_jenkins/models/pipeline_folder_impl.rb +3 -76
- data/lib/swaggy_jenkins/models/pipeline_impl.rb +3 -76
- data/lib/swaggy_jenkins/models/pipeline_impllinks.rb +22 -95
- data/lib/swaggy_jenkins/models/pipeline_run.rb +3 -76
- data/lib/swaggy_jenkins/models/pipeline_run_impl.rb +3 -76
- data/lib/swaggy_jenkins/models/pipeline_run_impllinks.rb +3 -76
- data/lib/swaggy_jenkins/models/pipeline_run_node.rb +3 -76
- data/lib/swaggy_jenkins/models/pipeline_run_nodeedges.rb +3 -76
- data/lib/swaggy_jenkins/models/pipeline_runartifacts.rb +3 -76
- data/lib/swaggy_jenkins/models/pipeline_step_impl.rb +3 -76
- data/lib/swaggy_jenkins/models/pipeline_step_impllinks.rb +3 -76
- data/lib/swaggy_jenkins/models/pipelinelatest_run.rb +3 -76
- data/lib/swaggy_jenkins/models/pipelinelatest_runartifacts.rb +3 -76
- data/lib/swaggy_jenkins/models/queue.rb +3 -76
- data/lib/swaggy_jenkins/models/queue_blocked_item.rb +3 -76
- data/lib/swaggy_jenkins/models/queue_item_impl.rb +3 -76
- data/lib/swaggy_jenkins/models/queue_left_item.rb +3 -76
- data/lib/swaggy_jenkins/models/response_time_monitor_data.rb +3 -76
- data/lib/swaggy_jenkins/models/string_parameter_definition.rb +3 -76
- data/lib/swaggy_jenkins/models/string_parameter_value.rb +3 -76
- data/lib/swaggy_jenkins/models/swap_space_monitor_memory_usage2.rb +3 -76
- data/lib/swaggy_jenkins/models/unlabeled_load_statistics.rb +3 -76
- data/lib/swaggy_jenkins/models/user.rb +3 -76
- data/lib/swaggy_jenkins/version.rb +3 -3
- data/lib/swaggy_jenkins.rb +3 -2
- data/spec/api/base_api_spec.rb +2 -2
- data/spec/api/blue_ocean_api_spec.rb +2 -2
- data/spec/api/remote_access_api_spec.rb +2 -2
- data/spec/models/all_view_spec.rb +3 -3
- data/spec/models/branch_impl_spec.rb +3 -3
- data/spec/models/branch_impllinks_spec.rb +3 -3
- data/spec/models/branch_implpermissions_spec.rb +3 -3
- data/spec/models/cause_action_spec.rb +3 -3
- data/spec/models/cause_user_id_cause_spec.rb +3 -3
- data/spec/models/classes_by_class_spec.rb +3 -3
- data/spec/models/clock_difference_spec.rb +3 -3
- data/spec/models/computer_set_spec.rb +3 -3
- data/spec/models/default_crumb_issuer_spec.rb +3 -3
- data/spec/models/disk_space_monitor_descriptor_disk_space_spec.rb +3 -3
- data/spec/models/empty_change_log_set_spec.rb +3 -3
- data/spec/models/extension_class_container_impl1_spec.rb +3 -3
- data/spec/models/extension_class_container_impl1links_spec.rb +3 -3
- data/spec/models/extension_class_container_impl1map_spec.rb +3 -3
- data/spec/models/extension_class_impl_spec.rb +3 -3
- data/spec/models/extension_class_impllinks_spec.rb +3 -3
- data/spec/models/favorite_impl_spec.rb +3 -3
- data/spec/models/favorite_impllinks_spec.rb +3 -3
- data/spec/models/free_style_build_spec.rb +3 -3
- data/spec/models/free_style_project_spec.rb +3 -3
- data/spec/models/free_style_projectactions_spec.rb +3 -3
- data/spec/models/free_style_projecthealth_report_spec.rb +3 -3
- data/spec/models/generic_resource_spec.rb +3 -3
- data/spec/models/github_content_spec.rb +3 -3
- data/spec/models/github_file_spec.rb +3 -3
- data/spec/models/github_organization_spec.rb +3 -3
- data/spec/models/github_organizationlinks_spec.rb +3 -3
- data/spec/models/github_repositories_spec.rb +3 -3
- data/spec/models/github_repositorieslinks_spec.rb +3 -3
- data/spec/models/github_repository_spec.rb +3 -3
- data/spec/models/github_repositorylinks_spec.rb +3 -3
- data/spec/models/github_repositorypermissions_spec.rb +3 -3
- data/spec/models/github_respository_container_spec.rb +3 -3
- data/spec/models/github_respository_containerlinks_spec.rb +3 -3
- data/spec/models/github_scm_spec.rb +3 -3
- data/spec/models/github_scmlinks_spec.rb +3 -3
- data/spec/models/hudson_master_computer_spec.rb +3 -3
- data/spec/models/hudson_master_computerexecutors_spec.rb +3 -3
- data/spec/models/hudson_master_computermonitor_data_spec.rb +3 -3
- data/spec/models/hudson_spec.rb +3 -3
- data/spec/models/hudsonassigned_labels_spec.rb +3 -3
- data/spec/models/input_step_impl_spec.rb +3 -3
- data/spec/models/input_step_impllinks_spec.rb +3 -3
- data/spec/models/label1_spec.rb +3 -3
- data/spec/models/link_spec.rb +3 -3
- data/spec/models/list_view_spec.rb +3 -3
- data/spec/models/multibranch_pipeline_spec.rb +3 -3
- data/spec/models/null_scm_spec.rb +3 -3
- data/spec/models/organisation_spec.rb +3 -3
- data/spec/models/pipeline_activity_spec.rb +3 -3
- data/spec/models/pipeline_activityartifacts_spec.rb +3 -3
- data/spec/models/pipeline_branchesitem_spec.rb +3 -3
- data/spec/models/pipeline_branchesitemlatest_run_spec.rb +3 -3
- data/spec/models/pipeline_branchesitempull_request_spec.rb +3 -3
- data/spec/models/pipeline_branchesitempull_requestlinks_spec.rb +3 -3
- data/spec/models/pipeline_folder_impl_spec.rb +3 -3
- data/spec/models/pipeline_impl_spec.rb +3 -3
- data/spec/models/pipeline_impllinks_spec.rb +7 -7
- data/spec/models/pipeline_run_impl_spec.rb +3 -3
- data/spec/models/pipeline_run_impllinks_spec.rb +3 -3
- data/spec/models/pipeline_run_node_spec.rb +3 -3
- data/spec/models/pipeline_run_nodeedges_spec.rb +3 -3
- data/spec/models/pipeline_run_spec.rb +3 -3
- data/spec/models/pipeline_runartifacts_spec.rb +3 -3
- data/spec/models/pipeline_spec.rb +3 -3
- data/spec/models/pipeline_step_impl_spec.rb +3 -3
- data/spec/models/pipeline_step_impllinks_spec.rb +3 -3
- data/spec/models/pipelinelatest_run_spec.rb +3 -3
- data/spec/models/pipelinelatest_runartifacts_spec.rb +3 -3
- data/spec/models/queue_blocked_item_spec.rb +3 -3
- data/spec/models/queue_item_impl_spec.rb +3 -3
- data/spec/models/queue_left_item_spec.rb +3 -3
- data/spec/models/queue_spec.rb +3 -3
- data/spec/models/response_time_monitor_data_spec.rb +3 -3
- data/spec/models/string_parameter_definition_spec.rb +3 -3
- data/spec/models/string_parameter_value_spec.rb +3 -3
- data/spec/models/swap_space_monitor_memory_usage2_spec.rb +3 -3
- data/spec/models/unlabeled_load_statistics_spec.rb +3 -3
- data/spec/models/user_spec.rb +3 -3
- data/spec/spec_helper.rb +2 -2
- data/swaggy_jenkins.gemspec +2 -2
- metadata +3 -3
- data/bin/bundle +0 -109
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
#Jenkins API clients generated from Swagger / Open API specification
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 3.
|
|
6
|
+
The version of the OpenAPI document: 3.3.0
|
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.18.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module SwaggyJenkinsClient
|
|
17
|
-
class ExtensionClassContainerImpl1
|
|
17
|
+
class ExtensionClassContainerImpl1 < ApiModelBase
|
|
18
18
|
attr_accessor :_class
|
|
19
19
|
|
|
20
20
|
attr_accessor :_links
|
|
@@ -144,61 +144,6 @@ module SwaggyJenkinsClient
|
|
|
144
144
|
new(transformed_hash)
|
|
145
145
|
end
|
|
146
146
|
|
|
147
|
-
# Deserializes the data based on type
|
|
148
|
-
# @param string type Data type
|
|
149
|
-
# @param string value Value to be deserialized
|
|
150
|
-
# @return [Object] Deserialized data
|
|
151
|
-
def self._deserialize(type, value)
|
|
152
|
-
case type.to_sym
|
|
153
|
-
when :Time
|
|
154
|
-
Time.parse(value)
|
|
155
|
-
when :Date
|
|
156
|
-
Date.parse(value)
|
|
157
|
-
when :String
|
|
158
|
-
value.to_s
|
|
159
|
-
when :Integer
|
|
160
|
-
value.to_i
|
|
161
|
-
when :Float
|
|
162
|
-
value.to_f
|
|
163
|
-
when :Boolean
|
|
164
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
165
|
-
true
|
|
166
|
-
else
|
|
167
|
-
false
|
|
168
|
-
end
|
|
169
|
-
when :Object
|
|
170
|
-
# generic object (usually a Hash), return directly
|
|
171
|
-
value
|
|
172
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
173
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
174
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
175
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
176
|
-
k_type = Regexp.last_match[:k_type]
|
|
177
|
-
v_type = Regexp.last_match[:v_type]
|
|
178
|
-
{}.tap do |hash|
|
|
179
|
-
value.each do |k, v|
|
|
180
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
181
|
-
end
|
|
182
|
-
end
|
|
183
|
-
else # model
|
|
184
|
-
# models (e.g. Pet) or oneOf
|
|
185
|
-
klass = SwaggyJenkinsClient.const_get(type)
|
|
186
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
187
|
-
end
|
|
188
|
-
end
|
|
189
|
-
|
|
190
|
-
# Returns the string representation of the object
|
|
191
|
-
# @return [String] String presentation of the object
|
|
192
|
-
def to_s
|
|
193
|
-
to_hash.to_s
|
|
194
|
-
end
|
|
195
|
-
|
|
196
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
197
|
-
# @return [Hash] Returns the object in the form of hash
|
|
198
|
-
def to_body
|
|
199
|
-
to_hash
|
|
200
|
-
end
|
|
201
|
-
|
|
202
147
|
# Returns the object in the form of hash
|
|
203
148
|
# @return [Hash] Returns the object in the form of hash
|
|
204
149
|
def to_hash
|
|
@@ -215,24 +160,6 @@ module SwaggyJenkinsClient
|
|
|
215
160
|
hash
|
|
216
161
|
end
|
|
217
162
|
|
|
218
|
-
# Outputs non-array value in the form of hash
|
|
219
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
220
|
-
# @param [Object] value Any valid value
|
|
221
|
-
# @return [Hash] Returns the value in the form of hash
|
|
222
|
-
def _to_hash(value)
|
|
223
|
-
if value.is_a?(Array)
|
|
224
|
-
value.compact.map { |v| _to_hash(v) }
|
|
225
|
-
elsif value.is_a?(Hash)
|
|
226
|
-
{}.tap do |hash|
|
|
227
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
228
|
-
end
|
|
229
|
-
elsif value.respond_to? :to_hash
|
|
230
|
-
value.to_hash
|
|
231
|
-
else
|
|
232
|
-
value
|
|
233
|
-
end
|
|
234
|
-
end
|
|
235
|
-
|
|
236
163
|
end
|
|
237
164
|
|
|
238
165
|
end
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
#Jenkins API clients generated from Swagger / Open API specification
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 3.
|
|
6
|
+
The version of the OpenAPI document: 3.3.0
|
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.18.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module SwaggyJenkinsClient
|
|
17
|
-
class ExtensionClassContainerImpl1links
|
|
17
|
+
class ExtensionClassContainerImpl1links < ApiModelBase
|
|
18
18
|
attr_accessor :_self
|
|
19
19
|
|
|
20
20
|
attr_accessor :_class
|
|
@@ -135,61 +135,6 @@ module SwaggyJenkinsClient
|
|
|
135
135
|
new(transformed_hash)
|
|
136
136
|
end
|
|
137
137
|
|
|
138
|
-
# Deserializes the data based on type
|
|
139
|
-
# @param string type Data type
|
|
140
|
-
# @param string value Value to be deserialized
|
|
141
|
-
# @return [Object] Deserialized data
|
|
142
|
-
def self._deserialize(type, value)
|
|
143
|
-
case type.to_sym
|
|
144
|
-
when :Time
|
|
145
|
-
Time.parse(value)
|
|
146
|
-
when :Date
|
|
147
|
-
Date.parse(value)
|
|
148
|
-
when :String
|
|
149
|
-
value.to_s
|
|
150
|
-
when :Integer
|
|
151
|
-
value.to_i
|
|
152
|
-
when :Float
|
|
153
|
-
value.to_f
|
|
154
|
-
when :Boolean
|
|
155
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
156
|
-
true
|
|
157
|
-
else
|
|
158
|
-
false
|
|
159
|
-
end
|
|
160
|
-
when :Object
|
|
161
|
-
# generic object (usually a Hash), return directly
|
|
162
|
-
value
|
|
163
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
164
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
165
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
166
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
167
|
-
k_type = Regexp.last_match[:k_type]
|
|
168
|
-
v_type = Regexp.last_match[:v_type]
|
|
169
|
-
{}.tap do |hash|
|
|
170
|
-
value.each do |k, v|
|
|
171
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
172
|
-
end
|
|
173
|
-
end
|
|
174
|
-
else # model
|
|
175
|
-
# models (e.g. Pet) or oneOf
|
|
176
|
-
klass = SwaggyJenkinsClient.const_get(type)
|
|
177
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
178
|
-
end
|
|
179
|
-
end
|
|
180
|
-
|
|
181
|
-
# Returns the string representation of the object
|
|
182
|
-
# @return [String] String presentation of the object
|
|
183
|
-
def to_s
|
|
184
|
-
to_hash.to_s
|
|
185
|
-
end
|
|
186
|
-
|
|
187
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
188
|
-
# @return [Hash] Returns the object in the form of hash
|
|
189
|
-
def to_body
|
|
190
|
-
to_hash
|
|
191
|
-
end
|
|
192
|
-
|
|
193
138
|
# Returns the object in the form of hash
|
|
194
139
|
# @return [Hash] Returns the object in the form of hash
|
|
195
140
|
def to_hash
|
|
@@ -206,24 +151,6 @@ module SwaggyJenkinsClient
|
|
|
206
151
|
hash
|
|
207
152
|
end
|
|
208
153
|
|
|
209
|
-
# Outputs non-array value in the form of hash
|
|
210
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
211
|
-
# @param [Object] value Any valid value
|
|
212
|
-
# @return [Hash] Returns the value in the form of hash
|
|
213
|
-
def _to_hash(value)
|
|
214
|
-
if value.is_a?(Array)
|
|
215
|
-
value.compact.map { |v| _to_hash(v) }
|
|
216
|
-
elsif value.is_a?(Hash)
|
|
217
|
-
{}.tap do |hash|
|
|
218
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
219
|
-
end
|
|
220
|
-
elsif value.respond_to? :to_hash
|
|
221
|
-
value.to_hash
|
|
222
|
-
else
|
|
223
|
-
value
|
|
224
|
-
end
|
|
225
|
-
end
|
|
226
|
-
|
|
227
154
|
end
|
|
228
155
|
|
|
229
156
|
end
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
#Jenkins API clients generated from Swagger / Open API specification
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 3.
|
|
6
|
+
The version of the OpenAPI document: 3.3.0
|
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.18.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module SwaggyJenkinsClient
|
|
17
|
-
class ExtensionClassContainerImpl1map
|
|
17
|
+
class ExtensionClassContainerImpl1map < ApiModelBase
|
|
18
18
|
attr_accessor :io_jenkins_blueocean_service_embedded_rest_pipeline_impl
|
|
19
19
|
|
|
20
20
|
attr_accessor :io_jenkins_blueocean_service_embedded_rest_multi_branch_pipeline_impl
|
|
@@ -144,61 +144,6 @@ module SwaggyJenkinsClient
|
|
|
144
144
|
new(transformed_hash)
|
|
145
145
|
end
|
|
146
146
|
|
|
147
|
-
# Deserializes the data based on type
|
|
148
|
-
# @param string type Data type
|
|
149
|
-
# @param string value Value to be deserialized
|
|
150
|
-
# @return [Object] Deserialized data
|
|
151
|
-
def self._deserialize(type, value)
|
|
152
|
-
case type.to_sym
|
|
153
|
-
when :Time
|
|
154
|
-
Time.parse(value)
|
|
155
|
-
when :Date
|
|
156
|
-
Date.parse(value)
|
|
157
|
-
when :String
|
|
158
|
-
value.to_s
|
|
159
|
-
when :Integer
|
|
160
|
-
value.to_i
|
|
161
|
-
when :Float
|
|
162
|
-
value.to_f
|
|
163
|
-
when :Boolean
|
|
164
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
165
|
-
true
|
|
166
|
-
else
|
|
167
|
-
false
|
|
168
|
-
end
|
|
169
|
-
when :Object
|
|
170
|
-
# generic object (usually a Hash), return directly
|
|
171
|
-
value
|
|
172
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
173
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
174
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
175
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
176
|
-
k_type = Regexp.last_match[:k_type]
|
|
177
|
-
v_type = Regexp.last_match[:v_type]
|
|
178
|
-
{}.tap do |hash|
|
|
179
|
-
value.each do |k, v|
|
|
180
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
181
|
-
end
|
|
182
|
-
end
|
|
183
|
-
else # model
|
|
184
|
-
# models (e.g. Pet) or oneOf
|
|
185
|
-
klass = SwaggyJenkinsClient.const_get(type)
|
|
186
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
187
|
-
end
|
|
188
|
-
end
|
|
189
|
-
|
|
190
|
-
# Returns the string representation of the object
|
|
191
|
-
# @return [String] String presentation of the object
|
|
192
|
-
def to_s
|
|
193
|
-
to_hash.to_s
|
|
194
|
-
end
|
|
195
|
-
|
|
196
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
197
|
-
# @return [Hash] Returns the object in the form of hash
|
|
198
|
-
def to_body
|
|
199
|
-
to_hash
|
|
200
|
-
end
|
|
201
|
-
|
|
202
147
|
# Returns the object in the form of hash
|
|
203
148
|
# @return [Hash] Returns the object in the form of hash
|
|
204
149
|
def to_hash
|
|
@@ -215,24 +160,6 @@ module SwaggyJenkinsClient
|
|
|
215
160
|
hash
|
|
216
161
|
end
|
|
217
162
|
|
|
218
|
-
# Outputs non-array value in the form of hash
|
|
219
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
220
|
-
# @param [Object] value Any valid value
|
|
221
|
-
# @return [Hash] Returns the value in the form of hash
|
|
222
|
-
def _to_hash(value)
|
|
223
|
-
if value.is_a?(Array)
|
|
224
|
-
value.compact.map { |v| _to_hash(v) }
|
|
225
|
-
elsif value.is_a?(Hash)
|
|
226
|
-
{}.tap do |hash|
|
|
227
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
228
|
-
end
|
|
229
|
-
elsif value.respond_to? :to_hash
|
|
230
|
-
value.to_hash
|
|
231
|
-
else
|
|
232
|
-
value
|
|
233
|
-
end
|
|
234
|
-
end
|
|
235
|
-
|
|
236
163
|
end
|
|
237
164
|
|
|
238
165
|
end
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
#Jenkins API clients generated from Swagger / Open API specification
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 3.
|
|
6
|
+
The version of the OpenAPI document: 3.3.0
|
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.18.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module SwaggyJenkinsClient
|
|
17
|
-
class ExtensionClassImpl
|
|
17
|
+
class ExtensionClassImpl < ApiModelBase
|
|
18
18
|
attr_accessor :_class
|
|
19
19
|
|
|
20
20
|
attr_accessor :_links
|
|
@@ -146,61 +146,6 @@ module SwaggyJenkinsClient
|
|
|
146
146
|
new(transformed_hash)
|
|
147
147
|
end
|
|
148
148
|
|
|
149
|
-
# Deserializes the data based on type
|
|
150
|
-
# @param string type Data type
|
|
151
|
-
# @param string value Value to be deserialized
|
|
152
|
-
# @return [Object] Deserialized data
|
|
153
|
-
def self._deserialize(type, value)
|
|
154
|
-
case type.to_sym
|
|
155
|
-
when :Time
|
|
156
|
-
Time.parse(value)
|
|
157
|
-
when :Date
|
|
158
|
-
Date.parse(value)
|
|
159
|
-
when :String
|
|
160
|
-
value.to_s
|
|
161
|
-
when :Integer
|
|
162
|
-
value.to_i
|
|
163
|
-
when :Float
|
|
164
|
-
value.to_f
|
|
165
|
-
when :Boolean
|
|
166
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
167
|
-
true
|
|
168
|
-
else
|
|
169
|
-
false
|
|
170
|
-
end
|
|
171
|
-
when :Object
|
|
172
|
-
# generic object (usually a Hash), return directly
|
|
173
|
-
value
|
|
174
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
175
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
176
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
177
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
178
|
-
k_type = Regexp.last_match[:k_type]
|
|
179
|
-
v_type = Regexp.last_match[:v_type]
|
|
180
|
-
{}.tap do |hash|
|
|
181
|
-
value.each do |k, v|
|
|
182
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
183
|
-
end
|
|
184
|
-
end
|
|
185
|
-
else # model
|
|
186
|
-
# models (e.g. Pet) or oneOf
|
|
187
|
-
klass = SwaggyJenkinsClient.const_get(type)
|
|
188
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
189
|
-
end
|
|
190
|
-
end
|
|
191
|
-
|
|
192
|
-
# Returns the string representation of the object
|
|
193
|
-
# @return [String] String presentation of the object
|
|
194
|
-
def to_s
|
|
195
|
-
to_hash.to_s
|
|
196
|
-
end
|
|
197
|
-
|
|
198
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
199
|
-
# @return [Hash] Returns the object in the form of hash
|
|
200
|
-
def to_body
|
|
201
|
-
to_hash
|
|
202
|
-
end
|
|
203
|
-
|
|
204
149
|
# Returns the object in the form of hash
|
|
205
150
|
# @return [Hash] Returns the object in the form of hash
|
|
206
151
|
def to_hash
|
|
@@ -217,24 +162,6 @@ module SwaggyJenkinsClient
|
|
|
217
162
|
hash
|
|
218
163
|
end
|
|
219
164
|
|
|
220
|
-
# Outputs non-array value in the form of hash
|
|
221
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
222
|
-
# @param [Object] value Any valid value
|
|
223
|
-
# @return [Hash] Returns the value in the form of hash
|
|
224
|
-
def _to_hash(value)
|
|
225
|
-
if value.is_a?(Array)
|
|
226
|
-
value.compact.map { |v| _to_hash(v) }
|
|
227
|
-
elsif value.is_a?(Hash)
|
|
228
|
-
{}.tap do |hash|
|
|
229
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
230
|
-
end
|
|
231
|
-
elsif value.respond_to? :to_hash
|
|
232
|
-
value.to_hash
|
|
233
|
-
else
|
|
234
|
-
value
|
|
235
|
-
end
|
|
236
|
-
end
|
|
237
|
-
|
|
238
165
|
end
|
|
239
166
|
|
|
240
167
|
end
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
#Jenkins API clients generated from Swagger / Open API specification
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 3.
|
|
6
|
+
The version of the OpenAPI document: 3.3.0
|
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.18.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module SwaggyJenkinsClient
|
|
17
|
-
class ExtensionClassImpllinks
|
|
17
|
+
class ExtensionClassImpllinks < ApiModelBase
|
|
18
18
|
attr_accessor :_self
|
|
19
19
|
|
|
20
20
|
attr_accessor :_class
|
|
@@ -135,61 +135,6 @@ module SwaggyJenkinsClient
|
|
|
135
135
|
new(transformed_hash)
|
|
136
136
|
end
|
|
137
137
|
|
|
138
|
-
# Deserializes the data based on type
|
|
139
|
-
# @param string type Data type
|
|
140
|
-
# @param string value Value to be deserialized
|
|
141
|
-
# @return [Object] Deserialized data
|
|
142
|
-
def self._deserialize(type, value)
|
|
143
|
-
case type.to_sym
|
|
144
|
-
when :Time
|
|
145
|
-
Time.parse(value)
|
|
146
|
-
when :Date
|
|
147
|
-
Date.parse(value)
|
|
148
|
-
when :String
|
|
149
|
-
value.to_s
|
|
150
|
-
when :Integer
|
|
151
|
-
value.to_i
|
|
152
|
-
when :Float
|
|
153
|
-
value.to_f
|
|
154
|
-
when :Boolean
|
|
155
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
156
|
-
true
|
|
157
|
-
else
|
|
158
|
-
false
|
|
159
|
-
end
|
|
160
|
-
when :Object
|
|
161
|
-
# generic object (usually a Hash), return directly
|
|
162
|
-
value
|
|
163
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
164
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
165
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
166
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
167
|
-
k_type = Regexp.last_match[:k_type]
|
|
168
|
-
v_type = Regexp.last_match[:v_type]
|
|
169
|
-
{}.tap do |hash|
|
|
170
|
-
value.each do |k, v|
|
|
171
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
172
|
-
end
|
|
173
|
-
end
|
|
174
|
-
else # model
|
|
175
|
-
# models (e.g. Pet) or oneOf
|
|
176
|
-
klass = SwaggyJenkinsClient.const_get(type)
|
|
177
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
178
|
-
end
|
|
179
|
-
end
|
|
180
|
-
|
|
181
|
-
# Returns the string representation of the object
|
|
182
|
-
# @return [String] String presentation of the object
|
|
183
|
-
def to_s
|
|
184
|
-
to_hash.to_s
|
|
185
|
-
end
|
|
186
|
-
|
|
187
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
188
|
-
# @return [Hash] Returns the object in the form of hash
|
|
189
|
-
def to_body
|
|
190
|
-
to_hash
|
|
191
|
-
end
|
|
192
|
-
|
|
193
138
|
# Returns the object in the form of hash
|
|
194
139
|
# @return [Hash] Returns the object in the form of hash
|
|
195
140
|
def to_hash
|
|
@@ -206,24 +151,6 @@ module SwaggyJenkinsClient
|
|
|
206
151
|
hash
|
|
207
152
|
end
|
|
208
153
|
|
|
209
|
-
# Outputs non-array value in the form of hash
|
|
210
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
211
|
-
# @param [Object] value Any valid value
|
|
212
|
-
# @return [Hash] Returns the value in the form of hash
|
|
213
|
-
def _to_hash(value)
|
|
214
|
-
if value.is_a?(Array)
|
|
215
|
-
value.compact.map { |v| _to_hash(v) }
|
|
216
|
-
elsif value.is_a?(Hash)
|
|
217
|
-
{}.tap do |hash|
|
|
218
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
219
|
-
end
|
|
220
|
-
elsif value.respond_to? :to_hash
|
|
221
|
-
value.to_hash
|
|
222
|
-
else
|
|
223
|
-
value
|
|
224
|
-
end
|
|
225
|
-
end
|
|
226
|
-
|
|
227
154
|
end
|
|
228
155
|
|
|
229
156
|
end
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
#Jenkins API clients generated from Swagger / Open API specification
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 3.
|
|
6
|
+
The version of the OpenAPI document: 3.3.0
|
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.18.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module SwaggyJenkinsClient
|
|
17
|
-
class FavoriteImpl
|
|
17
|
+
class FavoriteImpl < ApiModelBase
|
|
18
18
|
attr_accessor :_class
|
|
19
19
|
|
|
20
20
|
attr_accessor :_links
|
|
@@ -144,61 +144,6 @@ module SwaggyJenkinsClient
|
|
|
144
144
|
new(transformed_hash)
|
|
145
145
|
end
|
|
146
146
|
|
|
147
|
-
# Deserializes the data based on type
|
|
148
|
-
# @param string type Data type
|
|
149
|
-
# @param string value Value to be deserialized
|
|
150
|
-
# @return [Object] Deserialized data
|
|
151
|
-
def self._deserialize(type, value)
|
|
152
|
-
case type.to_sym
|
|
153
|
-
when :Time
|
|
154
|
-
Time.parse(value)
|
|
155
|
-
when :Date
|
|
156
|
-
Date.parse(value)
|
|
157
|
-
when :String
|
|
158
|
-
value.to_s
|
|
159
|
-
when :Integer
|
|
160
|
-
value.to_i
|
|
161
|
-
when :Float
|
|
162
|
-
value.to_f
|
|
163
|
-
when :Boolean
|
|
164
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
165
|
-
true
|
|
166
|
-
else
|
|
167
|
-
false
|
|
168
|
-
end
|
|
169
|
-
when :Object
|
|
170
|
-
# generic object (usually a Hash), return directly
|
|
171
|
-
value
|
|
172
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
173
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
174
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
175
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
176
|
-
k_type = Regexp.last_match[:k_type]
|
|
177
|
-
v_type = Regexp.last_match[:v_type]
|
|
178
|
-
{}.tap do |hash|
|
|
179
|
-
value.each do |k, v|
|
|
180
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
181
|
-
end
|
|
182
|
-
end
|
|
183
|
-
else # model
|
|
184
|
-
# models (e.g. Pet) or oneOf
|
|
185
|
-
klass = SwaggyJenkinsClient.const_get(type)
|
|
186
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
187
|
-
end
|
|
188
|
-
end
|
|
189
|
-
|
|
190
|
-
# Returns the string representation of the object
|
|
191
|
-
# @return [String] String presentation of the object
|
|
192
|
-
def to_s
|
|
193
|
-
to_hash.to_s
|
|
194
|
-
end
|
|
195
|
-
|
|
196
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
197
|
-
# @return [Hash] Returns the object in the form of hash
|
|
198
|
-
def to_body
|
|
199
|
-
to_hash
|
|
200
|
-
end
|
|
201
|
-
|
|
202
147
|
# Returns the object in the form of hash
|
|
203
148
|
# @return [Hash] Returns the object in the form of hash
|
|
204
149
|
def to_hash
|
|
@@ -215,24 +160,6 @@ module SwaggyJenkinsClient
|
|
|
215
160
|
hash
|
|
216
161
|
end
|
|
217
162
|
|
|
218
|
-
# Outputs non-array value in the form of hash
|
|
219
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
220
|
-
# @param [Object] value Any valid value
|
|
221
|
-
# @return [Hash] Returns the value in the form of hash
|
|
222
|
-
def _to_hash(value)
|
|
223
|
-
if value.is_a?(Array)
|
|
224
|
-
value.compact.map { |v| _to_hash(v) }
|
|
225
|
-
elsif value.is_a?(Hash)
|
|
226
|
-
{}.tap do |hash|
|
|
227
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
228
|
-
end
|
|
229
|
-
elsif value.respond_to? :to_hash
|
|
230
|
-
value.to_hash
|
|
231
|
-
else
|
|
232
|
-
value
|
|
233
|
-
end
|
|
234
|
-
end
|
|
235
|
-
|
|
236
163
|
end
|
|
237
164
|
|
|
238
165
|
end
|