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 FavoriteImpllinks
|
|
17
|
+
class FavoriteImpllinks < 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 FreeStyleBuild
|
|
17
|
+
class FreeStyleBuild < ApiModelBase
|
|
18
18
|
attr_accessor :_class
|
|
19
19
|
|
|
20
20
|
attr_accessor :number
|
|
@@ -281,61 +281,6 @@ module SwaggyJenkinsClient
|
|
|
281
281
|
new(transformed_hash)
|
|
282
282
|
end
|
|
283
283
|
|
|
284
|
-
# Deserializes the data based on type
|
|
285
|
-
# @param string type Data type
|
|
286
|
-
# @param string value Value to be deserialized
|
|
287
|
-
# @return [Object] Deserialized data
|
|
288
|
-
def self._deserialize(type, value)
|
|
289
|
-
case type.to_sym
|
|
290
|
-
when :Time
|
|
291
|
-
Time.parse(value)
|
|
292
|
-
when :Date
|
|
293
|
-
Date.parse(value)
|
|
294
|
-
when :String
|
|
295
|
-
value.to_s
|
|
296
|
-
when :Integer
|
|
297
|
-
value.to_i
|
|
298
|
-
when :Float
|
|
299
|
-
value.to_f
|
|
300
|
-
when :Boolean
|
|
301
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
302
|
-
true
|
|
303
|
-
else
|
|
304
|
-
false
|
|
305
|
-
end
|
|
306
|
-
when :Object
|
|
307
|
-
# generic object (usually a Hash), return directly
|
|
308
|
-
value
|
|
309
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
310
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
311
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
312
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
313
|
-
k_type = Regexp.last_match[:k_type]
|
|
314
|
-
v_type = Regexp.last_match[:v_type]
|
|
315
|
-
{}.tap do |hash|
|
|
316
|
-
value.each do |k, v|
|
|
317
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
318
|
-
end
|
|
319
|
-
end
|
|
320
|
-
else # model
|
|
321
|
-
# models (e.g. Pet) or oneOf
|
|
322
|
-
klass = SwaggyJenkinsClient.const_get(type)
|
|
323
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
324
|
-
end
|
|
325
|
-
end
|
|
326
|
-
|
|
327
|
-
# Returns the string representation of the object
|
|
328
|
-
# @return [String] String presentation of the object
|
|
329
|
-
def to_s
|
|
330
|
-
to_hash.to_s
|
|
331
|
-
end
|
|
332
|
-
|
|
333
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
334
|
-
# @return [Hash] Returns the object in the form of hash
|
|
335
|
-
def to_body
|
|
336
|
-
to_hash
|
|
337
|
-
end
|
|
338
|
-
|
|
339
284
|
# Returns the object in the form of hash
|
|
340
285
|
# @return [Hash] Returns the object in the form of hash
|
|
341
286
|
def to_hash
|
|
@@ -352,24 +297,6 @@ module SwaggyJenkinsClient
|
|
|
352
297
|
hash
|
|
353
298
|
end
|
|
354
299
|
|
|
355
|
-
# Outputs non-array value in the form of hash
|
|
356
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
357
|
-
# @param [Object] value Any valid value
|
|
358
|
-
# @return [Hash] Returns the value in the form of hash
|
|
359
|
-
def _to_hash(value)
|
|
360
|
-
if value.is_a?(Array)
|
|
361
|
-
value.compact.map { |v| _to_hash(v) }
|
|
362
|
-
elsif value.is_a?(Hash)
|
|
363
|
-
{}.tap do |hash|
|
|
364
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
365
|
-
end
|
|
366
|
-
elsif value.respond_to? :to_hash
|
|
367
|
-
value.to_hash
|
|
368
|
-
else
|
|
369
|
-
value
|
|
370
|
-
end
|
|
371
|
-
end
|
|
372
|
-
|
|
373
300
|
end
|
|
374
301
|
|
|
375
302
|
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 FreeStyleProject
|
|
17
|
+
class FreeStyleProject < ApiModelBase
|
|
18
18
|
attr_accessor :_class
|
|
19
19
|
|
|
20
20
|
attr_accessor :name
|
|
@@ -366,61 +366,6 @@ module SwaggyJenkinsClient
|
|
|
366
366
|
new(transformed_hash)
|
|
367
367
|
end
|
|
368
368
|
|
|
369
|
-
# Deserializes the data based on type
|
|
370
|
-
# @param string type Data type
|
|
371
|
-
# @param string value Value to be deserialized
|
|
372
|
-
# @return [Object] Deserialized data
|
|
373
|
-
def self._deserialize(type, value)
|
|
374
|
-
case type.to_sym
|
|
375
|
-
when :Time
|
|
376
|
-
Time.parse(value)
|
|
377
|
-
when :Date
|
|
378
|
-
Date.parse(value)
|
|
379
|
-
when :String
|
|
380
|
-
value.to_s
|
|
381
|
-
when :Integer
|
|
382
|
-
value.to_i
|
|
383
|
-
when :Float
|
|
384
|
-
value.to_f
|
|
385
|
-
when :Boolean
|
|
386
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
387
|
-
true
|
|
388
|
-
else
|
|
389
|
-
false
|
|
390
|
-
end
|
|
391
|
-
when :Object
|
|
392
|
-
# generic object (usually a Hash), return directly
|
|
393
|
-
value
|
|
394
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
395
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
396
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
397
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
398
|
-
k_type = Regexp.last_match[:k_type]
|
|
399
|
-
v_type = Regexp.last_match[:v_type]
|
|
400
|
-
{}.tap do |hash|
|
|
401
|
-
value.each do |k, v|
|
|
402
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
403
|
-
end
|
|
404
|
-
end
|
|
405
|
-
else # model
|
|
406
|
-
# models (e.g. Pet) or oneOf
|
|
407
|
-
klass = SwaggyJenkinsClient.const_get(type)
|
|
408
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
409
|
-
end
|
|
410
|
-
end
|
|
411
|
-
|
|
412
|
-
# Returns the string representation of the object
|
|
413
|
-
# @return [String] String presentation of the object
|
|
414
|
-
def to_s
|
|
415
|
-
to_hash.to_s
|
|
416
|
-
end
|
|
417
|
-
|
|
418
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
419
|
-
# @return [Hash] Returns the object in the form of hash
|
|
420
|
-
def to_body
|
|
421
|
-
to_hash
|
|
422
|
-
end
|
|
423
|
-
|
|
424
369
|
# Returns the object in the form of hash
|
|
425
370
|
# @return [Hash] Returns the object in the form of hash
|
|
426
371
|
def to_hash
|
|
@@ -437,24 +382,6 @@ module SwaggyJenkinsClient
|
|
|
437
382
|
hash
|
|
438
383
|
end
|
|
439
384
|
|
|
440
|
-
# Outputs non-array value in the form of hash
|
|
441
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
442
|
-
# @param [Object] value Any valid value
|
|
443
|
-
# @return [Hash] Returns the value in the form of hash
|
|
444
|
-
def _to_hash(value)
|
|
445
|
-
if value.is_a?(Array)
|
|
446
|
-
value.compact.map { |v| _to_hash(v) }
|
|
447
|
-
elsif value.is_a?(Hash)
|
|
448
|
-
{}.tap do |hash|
|
|
449
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
450
|
-
end
|
|
451
|
-
elsif value.respond_to? :to_hash
|
|
452
|
-
value.to_hash
|
|
453
|
-
else
|
|
454
|
-
value
|
|
455
|
-
end
|
|
456
|
-
end
|
|
457
|
-
|
|
458
385
|
end
|
|
459
386
|
|
|
460
387
|
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 FreeStyleProjectactions
|
|
17
|
+
class FreeStyleProjectactions < ApiModelBase
|
|
18
18
|
attr_accessor :_class
|
|
19
19
|
|
|
20
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -126,61 +126,6 @@ module SwaggyJenkinsClient
|
|
|
126
126
|
new(transformed_hash)
|
|
127
127
|
end
|
|
128
128
|
|
|
129
|
-
# Deserializes the data based on type
|
|
130
|
-
# @param string type Data type
|
|
131
|
-
# @param string value Value to be deserialized
|
|
132
|
-
# @return [Object] Deserialized data
|
|
133
|
-
def self._deserialize(type, value)
|
|
134
|
-
case type.to_sym
|
|
135
|
-
when :Time
|
|
136
|
-
Time.parse(value)
|
|
137
|
-
when :Date
|
|
138
|
-
Date.parse(value)
|
|
139
|
-
when :String
|
|
140
|
-
value.to_s
|
|
141
|
-
when :Integer
|
|
142
|
-
value.to_i
|
|
143
|
-
when :Float
|
|
144
|
-
value.to_f
|
|
145
|
-
when :Boolean
|
|
146
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
147
|
-
true
|
|
148
|
-
else
|
|
149
|
-
false
|
|
150
|
-
end
|
|
151
|
-
when :Object
|
|
152
|
-
# generic object (usually a Hash), return directly
|
|
153
|
-
value
|
|
154
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
155
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
156
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
157
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
158
|
-
k_type = Regexp.last_match[:k_type]
|
|
159
|
-
v_type = Regexp.last_match[:v_type]
|
|
160
|
-
{}.tap do |hash|
|
|
161
|
-
value.each do |k, v|
|
|
162
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
163
|
-
end
|
|
164
|
-
end
|
|
165
|
-
else # model
|
|
166
|
-
# models (e.g. Pet) or oneOf
|
|
167
|
-
klass = SwaggyJenkinsClient.const_get(type)
|
|
168
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
169
|
-
end
|
|
170
|
-
end
|
|
171
|
-
|
|
172
|
-
# Returns the string representation of the object
|
|
173
|
-
# @return [String] String presentation of the object
|
|
174
|
-
def to_s
|
|
175
|
-
to_hash.to_s
|
|
176
|
-
end
|
|
177
|
-
|
|
178
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
179
|
-
# @return [Hash] Returns the object in the form of hash
|
|
180
|
-
def to_body
|
|
181
|
-
to_hash
|
|
182
|
-
end
|
|
183
|
-
|
|
184
129
|
# Returns the object in the form of hash
|
|
185
130
|
# @return [Hash] Returns the object in the form of hash
|
|
186
131
|
def to_hash
|
|
@@ -197,24 +142,6 @@ module SwaggyJenkinsClient
|
|
|
197
142
|
hash
|
|
198
143
|
end
|
|
199
144
|
|
|
200
|
-
# Outputs non-array value in the form of hash
|
|
201
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
202
|
-
# @param [Object] value Any valid value
|
|
203
|
-
# @return [Hash] Returns the value in the form of hash
|
|
204
|
-
def _to_hash(value)
|
|
205
|
-
if value.is_a?(Array)
|
|
206
|
-
value.compact.map { |v| _to_hash(v) }
|
|
207
|
-
elsif value.is_a?(Hash)
|
|
208
|
-
{}.tap do |hash|
|
|
209
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
210
|
-
end
|
|
211
|
-
elsif value.respond_to? :to_hash
|
|
212
|
-
value.to_hash
|
|
213
|
-
else
|
|
214
|
-
value
|
|
215
|
-
end
|
|
216
|
-
end
|
|
217
|
-
|
|
218
145
|
end
|
|
219
146
|
|
|
220
147
|
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 FreeStyleProjecthealthReport
|
|
17
|
+
class FreeStyleProjecthealthReport < ApiModelBase
|
|
18
18
|
attr_accessor :description
|
|
19
19
|
|
|
20
20
|
attr_accessor :icon_class_name
|
|
@@ -162,61 +162,6 @@ module SwaggyJenkinsClient
|
|
|
162
162
|
new(transformed_hash)
|
|
163
163
|
end
|
|
164
164
|
|
|
165
|
-
# Deserializes the data based on type
|
|
166
|
-
# @param string type Data type
|
|
167
|
-
# @param string value Value to be deserialized
|
|
168
|
-
# @return [Object] Deserialized data
|
|
169
|
-
def self._deserialize(type, value)
|
|
170
|
-
case type.to_sym
|
|
171
|
-
when :Time
|
|
172
|
-
Time.parse(value)
|
|
173
|
-
when :Date
|
|
174
|
-
Date.parse(value)
|
|
175
|
-
when :String
|
|
176
|
-
value.to_s
|
|
177
|
-
when :Integer
|
|
178
|
-
value.to_i
|
|
179
|
-
when :Float
|
|
180
|
-
value.to_f
|
|
181
|
-
when :Boolean
|
|
182
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
183
|
-
true
|
|
184
|
-
else
|
|
185
|
-
false
|
|
186
|
-
end
|
|
187
|
-
when :Object
|
|
188
|
-
# generic object (usually a Hash), return directly
|
|
189
|
-
value
|
|
190
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
191
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
192
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
193
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
194
|
-
k_type = Regexp.last_match[:k_type]
|
|
195
|
-
v_type = Regexp.last_match[:v_type]
|
|
196
|
-
{}.tap do |hash|
|
|
197
|
-
value.each do |k, v|
|
|
198
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
199
|
-
end
|
|
200
|
-
end
|
|
201
|
-
else # model
|
|
202
|
-
# models (e.g. Pet) or oneOf
|
|
203
|
-
klass = SwaggyJenkinsClient.const_get(type)
|
|
204
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
205
|
-
end
|
|
206
|
-
end
|
|
207
|
-
|
|
208
|
-
# Returns the string representation of the object
|
|
209
|
-
# @return [String] String presentation of the object
|
|
210
|
-
def to_s
|
|
211
|
-
to_hash.to_s
|
|
212
|
-
end
|
|
213
|
-
|
|
214
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
215
|
-
# @return [Hash] Returns the object in the form of hash
|
|
216
|
-
def to_body
|
|
217
|
-
to_hash
|
|
218
|
-
end
|
|
219
|
-
|
|
220
165
|
# Returns the object in the form of hash
|
|
221
166
|
# @return [Hash] Returns the object in the form of hash
|
|
222
167
|
def to_hash
|
|
@@ -233,24 +178,6 @@ module SwaggyJenkinsClient
|
|
|
233
178
|
hash
|
|
234
179
|
end
|
|
235
180
|
|
|
236
|
-
# Outputs non-array value in the form of hash
|
|
237
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
238
|
-
# @param [Object] value Any valid value
|
|
239
|
-
# @return [Hash] Returns the value in the form of hash
|
|
240
|
-
def _to_hash(value)
|
|
241
|
-
if value.is_a?(Array)
|
|
242
|
-
value.compact.map { |v| _to_hash(v) }
|
|
243
|
-
elsif value.is_a?(Hash)
|
|
244
|
-
{}.tap do |hash|
|
|
245
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
246
|
-
end
|
|
247
|
-
elsif value.respond_to? :to_hash
|
|
248
|
-
value.to_hash
|
|
249
|
-
else
|
|
250
|
-
value
|
|
251
|
-
end
|
|
252
|
-
end
|
|
253
|
-
|
|
254
181
|
end
|
|
255
182
|
|
|
256
183
|
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 GenericResource
|
|
17
|
+
class GenericResource < ApiModelBase
|
|
18
18
|
attr_accessor :_class
|
|
19
19
|
|
|
20
20
|
attr_accessor :display_name
|
|
@@ -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
|