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 AllView
|
|
17
|
+
class AllView < ApiModelBase
|
|
18
18
|
attr_accessor :_class
|
|
19
19
|
|
|
20
20
|
attr_accessor :name
|
|
@@ -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 BranchImpl
|
|
17
|
+
class BranchImpl < ApiModelBase
|
|
18
18
|
attr_accessor :_class
|
|
19
19
|
|
|
20
20
|
attr_accessor :display_name
|
|
@@ -236,61 +236,6 @@ module SwaggyJenkinsClient
|
|
|
236
236
|
new(transformed_hash)
|
|
237
237
|
end
|
|
238
238
|
|
|
239
|
-
# Deserializes the data based on type
|
|
240
|
-
# @param string type Data type
|
|
241
|
-
# @param string value Value to be deserialized
|
|
242
|
-
# @return [Object] Deserialized data
|
|
243
|
-
def self._deserialize(type, value)
|
|
244
|
-
case type.to_sym
|
|
245
|
-
when :Time
|
|
246
|
-
Time.parse(value)
|
|
247
|
-
when :Date
|
|
248
|
-
Date.parse(value)
|
|
249
|
-
when :String
|
|
250
|
-
value.to_s
|
|
251
|
-
when :Integer
|
|
252
|
-
value.to_i
|
|
253
|
-
when :Float
|
|
254
|
-
value.to_f
|
|
255
|
-
when :Boolean
|
|
256
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
257
|
-
true
|
|
258
|
-
else
|
|
259
|
-
false
|
|
260
|
-
end
|
|
261
|
-
when :Object
|
|
262
|
-
# generic object (usually a Hash), return directly
|
|
263
|
-
value
|
|
264
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
265
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
266
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
267
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
268
|
-
k_type = Regexp.last_match[:k_type]
|
|
269
|
-
v_type = Regexp.last_match[:v_type]
|
|
270
|
-
{}.tap do |hash|
|
|
271
|
-
value.each do |k, v|
|
|
272
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
273
|
-
end
|
|
274
|
-
end
|
|
275
|
-
else # model
|
|
276
|
-
# models (e.g. Pet) or oneOf
|
|
277
|
-
klass = SwaggyJenkinsClient.const_get(type)
|
|
278
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
279
|
-
end
|
|
280
|
-
end
|
|
281
|
-
|
|
282
|
-
# Returns the string representation of the object
|
|
283
|
-
# @return [String] String presentation of the object
|
|
284
|
-
def to_s
|
|
285
|
-
to_hash.to_s
|
|
286
|
-
end
|
|
287
|
-
|
|
288
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
289
|
-
# @return [Hash] Returns the object in the form of hash
|
|
290
|
-
def to_body
|
|
291
|
-
to_hash
|
|
292
|
-
end
|
|
293
|
-
|
|
294
239
|
# Returns the object in the form of hash
|
|
295
240
|
# @return [Hash] Returns the object in the form of hash
|
|
296
241
|
def to_hash
|
|
@@ -307,24 +252,6 @@ module SwaggyJenkinsClient
|
|
|
307
252
|
hash
|
|
308
253
|
end
|
|
309
254
|
|
|
310
|
-
# Outputs non-array value in the form of hash
|
|
311
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
312
|
-
# @param [Object] value Any valid value
|
|
313
|
-
# @return [Hash] Returns the value in the form of hash
|
|
314
|
-
def _to_hash(value)
|
|
315
|
-
if value.is_a?(Array)
|
|
316
|
-
value.compact.map { |v| _to_hash(v) }
|
|
317
|
-
elsif value.is_a?(Hash)
|
|
318
|
-
{}.tap do |hash|
|
|
319
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
320
|
-
end
|
|
321
|
-
elsif value.respond_to? :to_hash
|
|
322
|
-
value.to_hash
|
|
323
|
-
else
|
|
324
|
-
value
|
|
325
|
-
end
|
|
326
|
-
end
|
|
327
|
-
|
|
328
255
|
end
|
|
329
256
|
|
|
330
257
|
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 BranchImpllinks
|
|
17
|
+
class BranchImpllinks < ApiModelBase
|
|
18
18
|
attr_accessor :_self
|
|
19
19
|
|
|
20
20
|
attr_accessor :actions
|
|
@@ -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 BranchImplpermissions
|
|
17
|
+
class BranchImplpermissions < ApiModelBase
|
|
18
18
|
attr_accessor :create
|
|
19
19
|
|
|
20
20
|
attr_accessor :read
|
|
@@ -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 CauseAction
|
|
17
|
+
class CauseAction < ApiModelBase
|
|
18
18
|
attr_accessor :_class
|
|
19
19
|
|
|
20
20
|
attr_accessor :causes
|
|
@@ -137,61 +137,6 @@ module SwaggyJenkinsClient
|
|
|
137
137
|
new(transformed_hash)
|
|
138
138
|
end
|
|
139
139
|
|
|
140
|
-
# Deserializes the data based on type
|
|
141
|
-
# @param string type Data type
|
|
142
|
-
# @param string value Value to be deserialized
|
|
143
|
-
# @return [Object] Deserialized data
|
|
144
|
-
def self._deserialize(type, value)
|
|
145
|
-
case type.to_sym
|
|
146
|
-
when :Time
|
|
147
|
-
Time.parse(value)
|
|
148
|
-
when :Date
|
|
149
|
-
Date.parse(value)
|
|
150
|
-
when :String
|
|
151
|
-
value.to_s
|
|
152
|
-
when :Integer
|
|
153
|
-
value.to_i
|
|
154
|
-
when :Float
|
|
155
|
-
value.to_f
|
|
156
|
-
when :Boolean
|
|
157
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
158
|
-
true
|
|
159
|
-
else
|
|
160
|
-
false
|
|
161
|
-
end
|
|
162
|
-
when :Object
|
|
163
|
-
# generic object (usually a Hash), return directly
|
|
164
|
-
value
|
|
165
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
166
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
167
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
168
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
169
|
-
k_type = Regexp.last_match[:k_type]
|
|
170
|
-
v_type = Regexp.last_match[:v_type]
|
|
171
|
-
{}.tap do |hash|
|
|
172
|
-
value.each do |k, v|
|
|
173
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
174
|
-
end
|
|
175
|
-
end
|
|
176
|
-
else # model
|
|
177
|
-
# models (e.g. Pet) or oneOf
|
|
178
|
-
klass = SwaggyJenkinsClient.const_get(type)
|
|
179
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
180
|
-
end
|
|
181
|
-
end
|
|
182
|
-
|
|
183
|
-
# Returns the string representation of the object
|
|
184
|
-
# @return [String] String presentation of the object
|
|
185
|
-
def to_s
|
|
186
|
-
to_hash.to_s
|
|
187
|
-
end
|
|
188
|
-
|
|
189
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
190
|
-
# @return [Hash] Returns the object in the form of hash
|
|
191
|
-
def to_body
|
|
192
|
-
to_hash
|
|
193
|
-
end
|
|
194
|
-
|
|
195
140
|
# Returns the object in the form of hash
|
|
196
141
|
# @return [Hash] Returns the object in the form of hash
|
|
197
142
|
def to_hash
|
|
@@ -208,24 +153,6 @@ module SwaggyJenkinsClient
|
|
|
208
153
|
hash
|
|
209
154
|
end
|
|
210
155
|
|
|
211
|
-
# Outputs non-array value in the form of hash
|
|
212
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
213
|
-
# @param [Object] value Any valid value
|
|
214
|
-
# @return [Hash] Returns the value in the form of hash
|
|
215
|
-
def _to_hash(value)
|
|
216
|
-
if value.is_a?(Array)
|
|
217
|
-
value.compact.map { |v| _to_hash(v) }
|
|
218
|
-
elsif value.is_a?(Hash)
|
|
219
|
-
{}.tap do |hash|
|
|
220
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
221
|
-
end
|
|
222
|
-
elsif value.respond_to? :to_hash
|
|
223
|
-
value.to_hash
|
|
224
|
-
else
|
|
225
|
-
value
|
|
226
|
-
end
|
|
227
|
-
end
|
|
228
|
-
|
|
229
156
|
end
|
|
230
157
|
|
|
231
158
|
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 CauseUserIdCause
|
|
17
|
+
class CauseUserIdCause < ApiModelBase
|
|
18
18
|
attr_accessor :_class
|
|
19
19
|
|
|
20
20
|
attr_accessor :short_description
|
|
@@ -153,61 +153,6 @@ module SwaggyJenkinsClient
|
|
|
153
153
|
new(transformed_hash)
|
|
154
154
|
end
|
|
155
155
|
|
|
156
|
-
# Deserializes the data based on type
|
|
157
|
-
# @param string type Data type
|
|
158
|
-
# @param string value Value to be deserialized
|
|
159
|
-
# @return [Object] Deserialized data
|
|
160
|
-
def self._deserialize(type, value)
|
|
161
|
-
case type.to_sym
|
|
162
|
-
when :Time
|
|
163
|
-
Time.parse(value)
|
|
164
|
-
when :Date
|
|
165
|
-
Date.parse(value)
|
|
166
|
-
when :String
|
|
167
|
-
value.to_s
|
|
168
|
-
when :Integer
|
|
169
|
-
value.to_i
|
|
170
|
-
when :Float
|
|
171
|
-
value.to_f
|
|
172
|
-
when :Boolean
|
|
173
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
174
|
-
true
|
|
175
|
-
else
|
|
176
|
-
false
|
|
177
|
-
end
|
|
178
|
-
when :Object
|
|
179
|
-
# generic object (usually a Hash), return directly
|
|
180
|
-
value
|
|
181
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
182
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
183
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
184
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
185
|
-
k_type = Regexp.last_match[:k_type]
|
|
186
|
-
v_type = Regexp.last_match[:v_type]
|
|
187
|
-
{}.tap do |hash|
|
|
188
|
-
value.each do |k, v|
|
|
189
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
190
|
-
end
|
|
191
|
-
end
|
|
192
|
-
else # model
|
|
193
|
-
# models (e.g. Pet) or oneOf
|
|
194
|
-
klass = SwaggyJenkinsClient.const_get(type)
|
|
195
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
196
|
-
end
|
|
197
|
-
end
|
|
198
|
-
|
|
199
|
-
# Returns the string representation of the object
|
|
200
|
-
# @return [String] String presentation of the object
|
|
201
|
-
def to_s
|
|
202
|
-
to_hash.to_s
|
|
203
|
-
end
|
|
204
|
-
|
|
205
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
206
|
-
# @return [Hash] Returns the object in the form of hash
|
|
207
|
-
def to_body
|
|
208
|
-
to_hash
|
|
209
|
-
end
|
|
210
|
-
|
|
211
156
|
# Returns the object in the form of hash
|
|
212
157
|
# @return [Hash] Returns the object in the form of hash
|
|
213
158
|
def to_hash
|
|
@@ -224,24 +169,6 @@ module SwaggyJenkinsClient
|
|
|
224
169
|
hash
|
|
225
170
|
end
|
|
226
171
|
|
|
227
|
-
# Outputs non-array value in the form of hash
|
|
228
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
229
|
-
# @param [Object] value Any valid value
|
|
230
|
-
# @return [Hash] Returns the value in the form of hash
|
|
231
|
-
def _to_hash(value)
|
|
232
|
-
if value.is_a?(Array)
|
|
233
|
-
value.compact.map { |v| _to_hash(v) }
|
|
234
|
-
elsif value.is_a?(Hash)
|
|
235
|
-
{}.tap do |hash|
|
|
236
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
237
|
-
end
|
|
238
|
-
elsif value.respond_to? :to_hash
|
|
239
|
-
value.to_hash
|
|
240
|
-
else
|
|
241
|
-
value
|
|
242
|
-
end
|
|
243
|
-
end
|
|
244
|
-
|
|
245
172
|
end
|
|
246
173
|
|
|
247
174
|
end
|