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 PipelineBranchesitemlatestRun
|
|
17
|
+
class PipelineBranchesitemlatestRun < ApiModelBase
|
|
18
18
|
attr_accessor :duration_in_millis
|
|
19
19
|
|
|
20
20
|
attr_accessor :estimated_duration_in_millis
|
|
@@ -243,61 +243,6 @@ module SwaggyJenkinsClient
|
|
|
243
243
|
new(transformed_hash)
|
|
244
244
|
end
|
|
245
245
|
|
|
246
|
-
# Deserializes the data based on type
|
|
247
|
-
# @param string type Data type
|
|
248
|
-
# @param string value Value to be deserialized
|
|
249
|
-
# @return [Object] Deserialized data
|
|
250
|
-
def self._deserialize(type, value)
|
|
251
|
-
case type.to_sym
|
|
252
|
-
when :Time
|
|
253
|
-
Time.parse(value)
|
|
254
|
-
when :Date
|
|
255
|
-
Date.parse(value)
|
|
256
|
-
when :String
|
|
257
|
-
value.to_s
|
|
258
|
-
when :Integer
|
|
259
|
-
value.to_i
|
|
260
|
-
when :Float
|
|
261
|
-
value.to_f
|
|
262
|
-
when :Boolean
|
|
263
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
264
|
-
true
|
|
265
|
-
else
|
|
266
|
-
false
|
|
267
|
-
end
|
|
268
|
-
when :Object
|
|
269
|
-
# generic object (usually a Hash), return directly
|
|
270
|
-
value
|
|
271
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
272
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
273
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
274
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
275
|
-
k_type = Regexp.last_match[:k_type]
|
|
276
|
-
v_type = Regexp.last_match[:v_type]
|
|
277
|
-
{}.tap do |hash|
|
|
278
|
-
value.each do |k, v|
|
|
279
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
280
|
-
end
|
|
281
|
-
end
|
|
282
|
-
else # model
|
|
283
|
-
# models (e.g. Pet) or oneOf
|
|
284
|
-
klass = SwaggyJenkinsClient.const_get(type)
|
|
285
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
286
|
-
end
|
|
287
|
-
end
|
|
288
|
-
|
|
289
|
-
# Returns the string representation of the object
|
|
290
|
-
# @return [String] String presentation of the object
|
|
291
|
-
def to_s
|
|
292
|
-
to_hash.to_s
|
|
293
|
-
end
|
|
294
|
-
|
|
295
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
296
|
-
# @return [Hash] Returns the object in the form of hash
|
|
297
|
-
def to_body
|
|
298
|
-
to_hash
|
|
299
|
-
end
|
|
300
|
-
|
|
301
246
|
# Returns the object in the form of hash
|
|
302
247
|
# @return [Hash] Returns the object in the form of hash
|
|
303
248
|
def to_hash
|
|
@@ -314,24 +259,6 @@ module SwaggyJenkinsClient
|
|
|
314
259
|
hash
|
|
315
260
|
end
|
|
316
261
|
|
|
317
|
-
# Outputs non-array value in the form of hash
|
|
318
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
319
|
-
# @param [Object] value Any valid value
|
|
320
|
-
# @return [Hash] Returns the value in the form of hash
|
|
321
|
-
def _to_hash(value)
|
|
322
|
-
if value.is_a?(Array)
|
|
323
|
-
value.compact.map { |v| _to_hash(v) }
|
|
324
|
-
elsif value.is_a?(Hash)
|
|
325
|
-
{}.tap do |hash|
|
|
326
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
327
|
-
end
|
|
328
|
-
elsif value.respond_to? :to_hash
|
|
329
|
-
value.to_hash
|
|
330
|
-
else
|
|
331
|
-
value
|
|
332
|
-
end
|
|
333
|
-
end
|
|
334
|
-
|
|
335
262
|
end
|
|
336
263
|
|
|
337
264
|
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 PipelineBranchesitempullRequest
|
|
17
|
+
class PipelineBranchesitempullRequest < ApiModelBase
|
|
18
18
|
attr_accessor :_links
|
|
19
19
|
|
|
20
20
|
attr_accessor :author
|
|
@@ -171,61 +171,6 @@ module SwaggyJenkinsClient
|
|
|
171
171
|
new(transformed_hash)
|
|
172
172
|
end
|
|
173
173
|
|
|
174
|
-
# Deserializes the data based on type
|
|
175
|
-
# @param string type Data type
|
|
176
|
-
# @param string value Value to be deserialized
|
|
177
|
-
# @return [Object] Deserialized data
|
|
178
|
-
def self._deserialize(type, value)
|
|
179
|
-
case type.to_sym
|
|
180
|
-
when :Time
|
|
181
|
-
Time.parse(value)
|
|
182
|
-
when :Date
|
|
183
|
-
Date.parse(value)
|
|
184
|
-
when :String
|
|
185
|
-
value.to_s
|
|
186
|
-
when :Integer
|
|
187
|
-
value.to_i
|
|
188
|
-
when :Float
|
|
189
|
-
value.to_f
|
|
190
|
-
when :Boolean
|
|
191
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
192
|
-
true
|
|
193
|
-
else
|
|
194
|
-
false
|
|
195
|
-
end
|
|
196
|
-
when :Object
|
|
197
|
-
# generic object (usually a Hash), return directly
|
|
198
|
-
value
|
|
199
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
200
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
201
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
202
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
203
|
-
k_type = Regexp.last_match[:k_type]
|
|
204
|
-
v_type = Regexp.last_match[:v_type]
|
|
205
|
-
{}.tap do |hash|
|
|
206
|
-
value.each do |k, v|
|
|
207
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
208
|
-
end
|
|
209
|
-
end
|
|
210
|
-
else # model
|
|
211
|
-
# models (e.g. Pet) or oneOf
|
|
212
|
-
klass = SwaggyJenkinsClient.const_get(type)
|
|
213
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
214
|
-
end
|
|
215
|
-
end
|
|
216
|
-
|
|
217
|
-
# Returns the string representation of the object
|
|
218
|
-
# @return [String] String presentation of the object
|
|
219
|
-
def to_s
|
|
220
|
-
to_hash.to_s
|
|
221
|
-
end
|
|
222
|
-
|
|
223
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
224
|
-
# @return [Hash] Returns the object in the form of hash
|
|
225
|
-
def to_body
|
|
226
|
-
to_hash
|
|
227
|
-
end
|
|
228
|
-
|
|
229
174
|
# Returns the object in the form of hash
|
|
230
175
|
# @return [Hash] Returns the object in the form of hash
|
|
231
176
|
def to_hash
|
|
@@ -242,24 +187,6 @@ module SwaggyJenkinsClient
|
|
|
242
187
|
hash
|
|
243
188
|
end
|
|
244
189
|
|
|
245
|
-
# Outputs non-array value in the form of hash
|
|
246
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
247
|
-
# @param [Object] value Any valid value
|
|
248
|
-
# @return [Hash] Returns the value in the form of hash
|
|
249
|
-
def _to_hash(value)
|
|
250
|
-
if value.is_a?(Array)
|
|
251
|
-
value.compact.map { |v| _to_hash(v) }
|
|
252
|
-
elsif value.is_a?(Hash)
|
|
253
|
-
{}.tap do |hash|
|
|
254
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
255
|
-
end
|
|
256
|
-
elsif value.respond_to? :to_hash
|
|
257
|
-
value.to_hash
|
|
258
|
-
else
|
|
259
|
-
value
|
|
260
|
-
end
|
|
261
|
-
end
|
|
262
|
-
|
|
263
190
|
end
|
|
264
191
|
|
|
265
192
|
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 PipelineBranchesitempullRequestlinks
|
|
17
|
+
class PipelineBranchesitempullRequestlinks < 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 PipelineFolderImpl
|
|
17
|
+
class PipelineFolderImpl < ApiModelBase
|
|
18
18
|
attr_accessor :_class
|
|
19
19
|
|
|
20
20
|
attr_accessor :display_name
|
|
@@ -180,61 +180,6 @@ module SwaggyJenkinsClient
|
|
|
180
180
|
new(transformed_hash)
|
|
181
181
|
end
|
|
182
182
|
|
|
183
|
-
# Deserializes the data based on type
|
|
184
|
-
# @param string type Data type
|
|
185
|
-
# @param string value Value to be deserialized
|
|
186
|
-
# @return [Object] Deserialized data
|
|
187
|
-
def self._deserialize(type, value)
|
|
188
|
-
case type.to_sym
|
|
189
|
-
when :Time
|
|
190
|
-
Time.parse(value)
|
|
191
|
-
when :Date
|
|
192
|
-
Date.parse(value)
|
|
193
|
-
when :String
|
|
194
|
-
value.to_s
|
|
195
|
-
when :Integer
|
|
196
|
-
value.to_i
|
|
197
|
-
when :Float
|
|
198
|
-
value.to_f
|
|
199
|
-
when :Boolean
|
|
200
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
201
|
-
true
|
|
202
|
-
else
|
|
203
|
-
false
|
|
204
|
-
end
|
|
205
|
-
when :Object
|
|
206
|
-
# generic object (usually a Hash), return directly
|
|
207
|
-
value
|
|
208
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
209
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
210
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
211
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
212
|
-
k_type = Regexp.last_match[:k_type]
|
|
213
|
-
v_type = Regexp.last_match[:v_type]
|
|
214
|
-
{}.tap do |hash|
|
|
215
|
-
value.each do |k, v|
|
|
216
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
217
|
-
end
|
|
218
|
-
end
|
|
219
|
-
else # model
|
|
220
|
-
# models (e.g. Pet) or oneOf
|
|
221
|
-
klass = SwaggyJenkinsClient.const_get(type)
|
|
222
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
223
|
-
end
|
|
224
|
-
end
|
|
225
|
-
|
|
226
|
-
# Returns the string representation of the object
|
|
227
|
-
# @return [String] String presentation of the object
|
|
228
|
-
def to_s
|
|
229
|
-
to_hash.to_s
|
|
230
|
-
end
|
|
231
|
-
|
|
232
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
233
|
-
# @return [Hash] Returns the object in the form of hash
|
|
234
|
-
def to_body
|
|
235
|
-
to_hash
|
|
236
|
-
end
|
|
237
|
-
|
|
238
183
|
# Returns the object in the form of hash
|
|
239
184
|
# @return [Hash] Returns the object in the form of hash
|
|
240
185
|
def to_hash
|
|
@@ -251,24 +196,6 @@ module SwaggyJenkinsClient
|
|
|
251
196
|
hash
|
|
252
197
|
end
|
|
253
198
|
|
|
254
|
-
# Outputs non-array value in the form of hash
|
|
255
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
256
|
-
# @param [Object] value Any valid value
|
|
257
|
-
# @return [Hash] Returns the value in the form of hash
|
|
258
|
-
def _to_hash(value)
|
|
259
|
-
if value.is_a?(Array)
|
|
260
|
-
value.compact.map { |v| _to_hash(v) }
|
|
261
|
-
elsif value.is_a?(Hash)
|
|
262
|
-
{}.tap do |hash|
|
|
263
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
264
|
-
end
|
|
265
|
-
elsif value.respond_to? :to_hash
|
|
266
|
-
value.to_hash
|
|
267
|
-
else
|
|
268
|
-
value
|
|
269
|
-
end
|
|
270
|
-
end
|
|
271
|
-
|
|
272
199
|
end
|
|
273
200
|
|
|
274
201
|
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 PipelineImpl
|
|
17
|
+
class PipelineImpl < ApiModelBase
|
|
18
18
|
attr_accessor :_class
|
|
19
19
|
|
|
20
20
|
attr_accessor :display_name
|
|
@@ -198,61 +198,6 @@ module SwaggyJenkinsClient
|
|
|
198
198
|
new(transformed_hash)
|
|
199
199
|
end
|
|
200
200
|
|
|
201
|
-
# Deserializes the data based on type
|
|
202
|
-
# @param string type Data type
|
|
203
|
-
# @param string value Value to be deserialized
|
|
204
|
-
# @return [Object] Deserialized data
|
|
205
|
-
def self._deserialize(type, value)
|
|
206
|
-
case type.to_sym
|
|
207
|
-
when :Time
|
|
208
|
-
Time.parse(value)
|
|
209
|
-
when :Date
|
|
210
|
-
Date.parse(value)
|
|
211
|
-
when :String
|
|
212
|
-
value.to_s
|
|
213
|
-
when :Integer
|
|
214
|
-
value.to_i
|
|
215
|
-
when :Float
|
|
216
|
-
value.to_f
|
|
217
|
-
when :Boolean
|
|
218
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
219
|
-
true
|
|
220
|
-
else
|
|
221
|
-
false
|
|
222
|
-
end
|
|
223
|
-
when :Object
|
|
224
|
-
# generic object (usually a Hash), return directly
|
|
225
|
-
value
|
|
226
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
227
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
228
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
229
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
230
|
-
k_type = Regexp.last_match[:k_type]
|
|
231
|
-
v_type = Regexp.last_match[:v_type]
|
|
232
|
-
{}.tap do |hash|
|
|
233
|
-
value.each do |k, v|
|
|
234
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
235
|
-
end
|
|
236
|
-
end
|
|
237
|
-
else # model
|
|
238
|
-
# models (e.g. Pet) or oneOf
|
|
239
|
-
klass = SwaggyJenkinsClient.const_get(type)
|
|
240
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
241
|
-
end
|
|
242
|
-
end
|
|
243
|
-
|
|
244
|
-
# Returns the string representation of the object
|
|
245
|
-
# @return [String] String presentation of the object
|
|
246
|
-
def to_s
|
|
247
|
-
to_hash.to_s
|
|
248
|
-
end
|
|
249
|
-
|
|
250
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
251
|
-
# @return [Hash] Returns the object in the form of hash
|
|
252
|
-
def to_body
|
|
253
|
-
to_hash
|
|
254
|
-
end
|
|
255
|
-
|
|
256
201
|
# Returns the object in the form of hash
|
|
257
202
|
# @return [Hash] Returns the object in the form of hash
|
|
258
203
|
def to_hash
|
|
@@ -269,24 +214,6 @@ module SwaggyJenkinsClient
|
|
|
269
214
|
hash
|
|
270
215
|
end
|
|
271
216
|
|
|
272
|
-
# Outputs non-array value in the form of hash
|
|
273
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
274
|
-
# @param [Object] value Any valid value
|
|
275
|
-
# @return [Hash] Returns the value in the form of hash
|
|
276
|
-
def _to_hash(value)
|
|
277
|
-
if value.is_a?(Array)
|
|
278
|
-
value.compact.map { |v| _to_hash(v) }
|
|
279
|
-
elsif value.is_a?(Hash)
|
|
280
|
-
{}.tap do |hash|
|
|
281
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
282
|
-
end
|
|
283
|
-
elsif value.respond_to? :to_hash
|
|
284
|
-
value.to_hash
|
|
285
|
-
else
|
|
286
|
-
value
|
|
287
|
-
end
|
|
288
|
-
end
|
|
289
|
-
|
|
290
217
|
end
|
|
291
218
|
|
|
292
219
|
end
|