korona-entry-client 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/README.md +128 -0
  4. data/Rakefile +10 -0
  5. data/docs/BadRequestError.md +19 -0
  6. data/docs/EntryResponse.md +21 -0
  7. data/docs/ExternalTicketConfiguration.md +29 -0
  8. data/docs/ExternalTicketConfigurationList.md +17 -0
  9. data/docs/ExternalTicketConfigurationsApi.md +247 -0
  10. data/docs/ModelReference.md +23 -0
  11. data/docs/NotAcceptableError.md +19 -0
  12. data/docs/OrganizationalUnit.md +27 -0
  13. data/docs/OrganizationalUnitList.md +17 -0
  14. data/docs/OrganizationalUnitsApi.md +247 -0
  15. data/docs/Ticket.md +35 -0
  16. data/docs/TicketEntry.md +49 -0
  17. data/docs/TicketEntryLog.md +39 -0
  18. data/docs/TicketEntryLogList.md +17 -0
  19. data/docs/TicketImage.md +17 -0
  20. data/docs/TicketInformation.md +27 -0
  21. data/docs/TicketList.md +17 -0
  22. data/docs/TicketPersonalization.md +21 -0
  23. data/docs/TicketsApi.md +654 -0
  24. data/git_push.sh +58 -0
  25. data/korona-entry-client.gemspec +39 -0
  26. data/lib/korona-entry-client.rb +58 -0
  27. data/lib/korona-entry-client/api/external_ticket_configurations_api.rb +356 -0
  28. data/lib/korona-entry-client/api/organizational_units_api.rb +356 -0
  29. data/lib/korona-entry-client/api/tickets_api.rb +854 -0
  30. data/lib/korona-entry-client/api_client.rb +386 -0
  31. data/lib/korona-entry-client/api_error.rb +57 -0
  32. data/lib/korona-entry-client/configuration.rb +248 -0
  33. data/lib/korona-entry-client/models/bad_request_error.rb +217 -0
  34. data/lib/korona-entry-client/models/entry_response.rb +226 -0
  35. data/lib/korona-entry-client/models/external_ticket_configuration.rb +304 -0
  36. data/lib/korona-entry-client/models/external_ticket_configuration_list.rb +214 -0
  37. data/lib/korona-entry-client/models/model_reference.rb +238 -0
  38. data/lib/korona-entry-client/models/not_acceptable_error.rb +250 -0
  39. data/lib/korona-entry-client/models/organizational_unit.rb +257 -0
  40. data/lib/korona-entry-client/models/organizational_unit_list.rb +214 -0
  41. data/lib/korona-entry-client/models/ticket.rb +299 -0
  42. data/lib/korona-entry-client/models/ticket_entry.rb +403 -0
  43. data/lib/korona-entry-client/models/ticket_entry_log.rb +374 -0
  44. data/lib/korona-entry-client/models/ticket_entry_log_list.rb +214 -0
  45. data/lib/korona-entry-client/models/ticket_image.rb +215 -0
  46. data/lib/korona-entry-client/models/ticket_information.rb +258 -0
  47. data/lib/korona-entry-client/models/ticket_list.rb +214 -0
  48. data/lib/korona-entry-client/models/ticket_personalization.rb +228 -0
  49. data/lib/korona-entry-client/version.rb +15 -0
  50. data/spec/api/external_ticket_configurations_api_spec.rb +95 -0
  51. data/spec/api/organizational_units_api_spec.rb +95 -0
  52. data/spec/api/tickets_api_spec.rb +191 -0
  53. data/spec/api_client_spec.rb +226 -0
  54. data/spec/configuration_spec.rb +42 -0
  55. data/spec/models/bad_request_error_spec.rb +47 -0
  56. data/spec/models/entry_response_spec.rb +53 -0
  57. data/spec/models/external_ticket_configuration_list_spec.rb +41 -0
  58. data/spec/models/external_ticket_configuration_spec.rb +77 -0
  59. data/spec/models/model_reference_spec.rb +59 -0
  60. data/spec/models/not_acceptable_error_spec.rb +51 -0
  61. data/spec/models/organizational_unit_list_spec.rb +41 -0
  62. data/spec/models/organizational_unit_spec.rb +71 -0
  63. data/spec/models/ticket_entry_log_list_spec.rb +41 -0
  64. data/spec/models/ticket_entry_log_spec.rb +119 -0
  65. data/spec/models/ticket_entry_spec.rb +137 -0
  66. data/spec/models/ticket_image_spec.rb +41 -0
  67. data/spec/models/ticket_information_spec.rb +71 -0
  68. data/spec/models/ticket_list_spec.rb +41 -0
  69. data/spec/models/ticket_personalization_spec.rb +53 -0
  70. data/spec/models/ticket_spec.rb +95 -0
  71. data/spec/spec_helper.rb +111 -0
  72. metadata +196 -0
data/git_push.sh ADDED
@@ -0,0 +1,58 @@
1
+ #!/bin/sh
2
+ # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
3
+ #
4
+ # Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com"
5
+
6
+ git_user_id=$1
7
+ git_repo_id=$2
8
+ release_note=$3
9
+ git_host=$4
10
+
11
+ if [ "$git_host" = "" ]; then
12
+ git_host="github.com"
13
+ echo "[INFO] No command line input provided. Set \$git_host to $git_host"
14
+ fi
15
+
16
+ if [ "$git_user_id" = "" ]; then
17
+ git_user_id="GIT_USER_ID"
18
+ echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
19
+ fi
20
+
21
+ if [ "$git_repo_id" = "" ]; then
22
+ git_repo_id="GIT_REPO_ID"
23
+ echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
24
+ fi
25
+
26
+ if [ "$release_note" = "" ]; then
27
+ release_note="Minor update"
28
+ echo "[INFO] No command line input provided. Set \$release_note to $release_note"
29
+ fi
30
+
31
+ # Initialize the local directory as a Git repository
32
+ git init
33
+
34
+ # Adds the files in the local repository and stages them for commit.
35
+ git add .
36
+
37
+ # Commits the tracked changes and prepares them to be pushed to a remote repository.
38
+ git commit -m "$release_note"
39
+
40
+ # Sets the new remote
41
+ git_remote=`git remote`
42
+ if [ "$git_remote" = "" ]; then # git remote not defined
43
+
44
+ if [ "$GIT_TOKEN" = "" ]; then
45
+ echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
46
+ git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
47
+ else
48
+ git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git
49
+ fi
50
+
51
+ fi
52
+
53
+ git pull origin master
54
+
55
+ # Pushes (Forces) the changes in the local repository up to the remote repository
56
+ echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
57
+ git push origin master 2>&1 | grep -v 'To https'
58
+
@@ -0,0 +1,39 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ =begin
4
+ #KORONA.entry API v1
5
+
6
+ #Our api provides access to our entry services
7
+
8
+ The version of the OpenAPI document: 1.0.0
9
+
10
+ Generated by: https://openapi-generator.tech
11
+ OpenAPI Generator version: 4.3.0
12
+
13
+ =end
14
+
15
+ $:.push File.expand_path("../lib", __FILE__)
16
+ require "korona-entry-client/version"
17
+
18
+ Gem::Specification.new do |s|
19
+ s.name = "korona-entry-client"
20
+ s.version = KoronaEntryClient::VERSION
21
+ s.platform = Gem::Platform::RUBY
22
+ s.authors = ["OpenAPI-Generator"]
23
+ s.email = [""]
24
+ s.homepage = "https://openapi-generator.tech"
25
+ s.summary = "KORONA.entry API v1 Ruby Gem"
26
+ s.description = "Our api provides access to our entry services"
27
+ s.license = "Unlicense"
28
+ s.required_ruby_version = ">= 1.9"
29
+
30
+ s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
31
+ s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
32
+
33
+ s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
34
+
35
+ s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
36
+ s.test_files = `find spec/*`.split("\n")
37
+ s.executables = []
38
+ s.require_paths = ["lib"]
39
+ end
@@ -0,0 +1,58 @@
1
+ =begin
2
+ #KORONA.entry API v1
3
+
4
+ #Our api provides access to our entry services
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.0
10
+
11
+ =end
12
+
13
+ # Common files
14
+ require 'korona-entry-client/api_client'
15
+ require 'korona-entry-client/api_error'
16
+ require 'korona-entry-client/version'
17
+ require 'korona-entry-client/configuration'
18
+
19
+ # Models
20
+ require 'korona-entry-client/models/bad_request_error'
21
+ require 'korona-entry-client/models/entry_response'
22
+ require 'korona-entry-client/models/external_ticket_configuration'
23
+ require 'korona-entry-client/models/external_ticket_configuration_list'
24
+ require 'korona-entry-client/models/model_reference'
25
+ require 'korona-entry-client/models/not_acceptable_error'
26
+ require 'korona-entry-client/models/organizational_unit'
27
+ require 'korona-entry-client/models/organizational_unit_list'
28
+ require 'korona-entry-client/models/ticket'
29
+ require 'korona-entry-client/models/ticket_entry'
30
+ require 'korona-entry-client/models/ticket_entry_log'
31
+ require 'korona-entry-client/models/ticket_entry_log_list'
32
+ require 'korona-entry-client/models/ticket_image'
33
+ require 'korona-entry-client/models/ticket_information'
34
+ require 'korona-entry-client/models/ticket_list'
35
+ require 'korona-entry-client/models/ticket_personalization'
36
+
37
+ # APIs
38
+ require 'korona-entry-client/api/external_ticket_configurations_api'
39
+ require 'korona-entry-client/api/organizational_units_api'
40
+ require 'korona-entry-client/api/tickets_api'
41
+
42
+ module KoronaEntryClient
43
+ class << self
44
+ # Customize default settings for the SDK using block.
45
+ # KoronaEntryClient.configure do |config|
46
+ # config.username = "xxx"
47
+ # config.password = "xxx"
48
+ # end
49
+ # If no block given, return the default Configuration object.
50
+ def configure
51
+ if block_given?
52
+ yield(Configuration.default)
53
+ else
54
+ Configuration.default
55
+ end
56
+ end
57
+ end
58
+ end
@@ -0,0 +1,356 @@
1
+ =begin
2
+ #KORONA.entry API v1
3
+
4
+ #Our api provides access to our entry services
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.0
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module KoronaEntryClient
16
+ class ExternalTicketConfigurationsApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Creates a new external ticket configuration. If an unkown ticket number will be checked and the pattern of the ticket number will be equals to a pattern of a external ticket configuration, a new ticket will be created. The TicketEntry of the external ticket configuration will be copied and adjusted to the new ticket. The newly created ticket is then checked for validity.
23
+ # @param client [String] Identification of executing client.
24
+ # @param body [ExternalTicketConfiguration] Properties to update of the external ticket configuration.
25
+ # @param [Hash] opts the optional parameters
26
+ # @return [ModelReference]
27
+ def create_external_ticket_configurations(client, body, opts = {})
28
+ data, _status_code, _headers = create_external_ticket_configurations_with_http_info(client, body, opts)
29
+ data
30
+ end
31
+
32
+ # Creates a new external ticket configuration. If an unkown ticket number will be checked and the pattern of the ticket number will be equals to a pattern of a external ticket configuration, a new ticket will be created. The TicketEntry of the external ticket configuration will be copied and adjusted to the new ticket. The newly created ticket is then checked for validity.
33
+ # @param client [String] Identification of executing client.
34
+ # @param body [ExternalTicketConfiguration] Properties to update of the external ticket configuration.
35
+ # @param [Hash] opts the optional parameters
36
+ # @return [Array<(ModelReference, Integer, Hash)>] ModelReference data, response status code and response headers
37
+ def create_external_ticket_configurations_with_http_info(client, body, opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: ExternalTicketConfigurationsApi.create_external_ticket_configurations ...'
40
+ end
41
+ # verify the required parameter 'client' is set
42
+ if @api_client.config.client_side_validation && client.nil?
43
+ fail ArgumentError, "Missing the required parameter 'client' when calling ExternalTicketConfigurationsApi.create_external_ticket_configurations"
44
+ end
45
+ # verify the required parameter 'body' is set
46
+ if @api_client.config.client_side_validation && body.nil?
47
+ fail ArgumentError, "Missing the required parameter 'body' when calling ExternalTicketConfigurationsApi.create_external_ticket_configurations"
48
+ end
49
+ # resource path
50
+ local_var_path = '/{client}/externalTicketConfigurations'.sub('{' + 'client' + '}', CGI.escape(client.to_s))
51
+
52
+ # query parameters
53
+ query_params = opts[:query_params] || {}
54
+
55
+ # header parameters
56
+ header_params = opts[:header_params] || {}
57
+ # HTTP header 'Accept' (if needed)
58
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
59
+ # HTTP header 'Content-Type'
60
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
61
+
62
+ # form parameters
63
+ form_params = opts[:form_params] || {}
64
+
65
+ # http body (model)
66
+ post_body = opts[:body] || @api_client.object_to_http_body(body)
67
+
68
+ # return_type
69
+ return_type = opts[:return_type] || 'ModelReference'
70
+
71
+ # auth_names
72
+ auth_names = opts[:auth_names] || []
73
+
74
+ new_options = opts.merge(
75
+ :header_params => header_params,
76
+ :query_params => query_params,
77
+ :form_params => form_params,
78
+ :body => post_body,
79
+ :auth_names => auth_names,
80
+ :return_type => return_type
81
+ )
82
+
83
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
84
+ if @api_client.config.debugging
85
+ @api_client.config.logger.debug "API called: ExternalTicketConfigurationsApi#create_external_ticket_configurations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
86
+ end
87
+ return data, status_code, headers
88
+ end
89
+
90
+ # Deletes the single external ticket configuration.
91
+ # @param client [String] Identification of executing client.
92
+ # @param external_ticket_configuration_id [Integer] ID to identify the external ticket configuration.
93
+ # @param [Hash] opts the optional parameters
94
+ # @return [nil]
95
+ def delete_external_ticket_configuration(client, external_ticket_configuration_id, opts = {})
96
+ delete_external_ticket_configuration_with_http_info(client, external_ticket_configuration_id, opts)
97
+ nil
98
+ end
99
+
100
+ # Deletes the single external ticket configuration.
101
+ # @param client [String] Identification of executing client.
102
+ # @param external_ticket_configuration_id [Integer] ID to identify the external ticket configuration.
103
+ # @param [Hash] opts the optional parameters
104
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
105
+ def delete_external_ticket_configuration_with_http_info(client, external_ticket_configuration_id, opts = {})
106
+ if @api_client.config.debugging
107
+ @api_client.config.logger.debug 'Calling API: ExternalTicketConfigurationsApi.delete_external_ticket_configuration ...'
108
+ end
109
+ # verify the required parameter 'client' is set
110
+ if @api_client.config.client_side_validation && client.nil?
111
+ fail ArgumentError, "Missing the required parameter 'client' when calling ExternalTicketConfigurationsApi.delete_external_ticket_configuration"
112
+ end
113
+ # verify the required parameter 'external_ticket_configuration_id' is set
114
+ if @api_client.config.client_side_validation && external_ticket_configuration_id.nil?
115
+ fail ArgumentError, "Missing the required parameter 'external_ticket_configuration_id' when calling ExternalTicketConfigurationsApi.delete_external_ticket_configuration"
116
+ end
117
+ # resource path
118
+ local_var_path = '/{client}/externalTicketConfigurations/{externalTicketConfigurationId}'.sub('{' + 'client' + '}', CGI.escape(client.to_s)).sub('{' + 'externalTicketConfigurationId' + '}', CGI.escape(external_ticket_configuration_id.to_s))
119
+
120
+ # query parameters
121
+ query_params = opts[:query_params] || {}
122
+
123
+ # header parameters
124
+ header_params = opts[:header_params] || {}
125
+ # HTTP header 'Accept' (if needed)
126
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
127
+
128
+ # form parameters
129
+ form_params = opts[:form_params] || {}
130
+
131
+ # http body (model)
132
+ post_body = opts[:body]
133
+
134
+ # return_type
135
+ return_type = opts[:return_type]
136
+
137
+ # auth_names
138
+ auth_names = opts[:auth_names] || []
139
+
140
+ new_options = opts.merge(
141
+ :header_params => header_params,
142
+ :query_params => query_params,
143
+ :form_params => form_params,
144
+ :body => post_body,
145
+ :auth_names => auth_names,
146
+ :return_type => return_type
147
+ )
148
+
149
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
150
+ if @api_client.config.debugging
151
+ @api_client.config.logger.debug "API called: ExternalTicketConfigurationsApi#delete_external_ticket_configuration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
152
+ end
153
+ return data, status_code, headers
154
+ end
155
+
156
+ # Returns the external ticket configuration.
157
+ # @param client [String] Identification of executing client.
158
+ # @param external_ticket_configuration_id [Integer] ID to identify the external ticket configuration.
159
+ # @param [Hash] opts the optional parameters
160
+ # @return [ExternalTicketConfiguration]
161
+ def get_external_ticket_configuration(client, external_ticket_configuration_id, opts = {})
162
+ data, _status_code, _headers = get_external_ticket_configuration_with_http_info(client, external_ticket_configuration_id, opts)
163
+ data
164
+ end
165
+
166
+ # Returns the external ticket configuration.
167
+ # @param client [String] Identification of executing client.
168
+ # @param external_ticket_configuration_id [Integer] ID to identify the external ticket configuration.
169
+ # @param [Hash] opts the optional parameters
170
+ # @return [Array<(ExternalTicketConfiguration, Integer, Hash)>] ExternalTicketConfiguration data, response status code and response headers
171
+ def get_external_ticket_configuration_with_http_info(client, external_ticket_configuration_id, opts = {})
172
+ if @api_client.config.debugging
173
+ @api_client.config.logger.debug 'Calling API: ExternalTicketConfigurationsApi.get_external_ticket_configuration ...'
174
+ end
175
+ # verify the required parameter 'client' is set
176
+ if @api_client.config.client_side_validation && client.nil?
177
+ fail ArgumentError, "Missing the required parameter 'client' when calling ExternalTicketConfigurationsApi.get_external_ticket_configuration"
178
+ end
179
+ # verify the required parameter 'external_ticket_configuration_id' is set
180
+ if @api_client.config.client_side_validation && external_ticket_configuration_id.nil?
181
+ fail ArgumentError, "Missing the required parameter 'external_ticket_configuration_id' when calling ExternalTicketConfigurationsApi.get_external_ticket_configuration"
182
+ end
183
+ # resource path
184
+ local_var_path = '/{client}/externalTicketConfigurations/{externalTicketConfigurationId}'.sub('{' + 'client' + '}', CGI.escape(client.to_s)).sub('{' + 'externalTicketConfigurationId' + '}', CGI.escape(external_ticket_configuration_id.to_s))
185
+
186
+ # query parameters
187
+ query_params = opts[:query_params] || {}
188
+
189
+ # header parameters
190
+ header_params = opts[:header_params] || {}
191
+ # HTTP header 'Accept' (if needed)
192
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
193
+
194
+ # form parameters
195
+ form_params = opts[:form_params] || {}
196
+
197
+ # http body (model)
198
+ post_body = opts[:body]
199
+
200
+ # return_type
201
+ return_type = opts[:return_type] || 'ExternalTicketConfiguration'
202
+
203
+ # auth_names
204
+ auth_names = opts[:auth_names] || []
205
+
206
+ new_options = opts.merge(
207
+ :header_params => header_params,
208
+ :query_params => query_params,
209
+ :form_params => form_params,
210
+ :body => post_body,
211
+ :auth_names => auth_names,
212
+ :return_type => return_type
213
+ )
214
+
215
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
216
+ if @api_client.config.debugging
217
+ @api_client.config.logger.debug "API called: ExternalTicketConfigurationsApi#get_external_ticket_configuration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
218
+ end
219
+ return data, status_code, headers
220
+ end
221
+
222
+ # Returns all external ticket configurations
223
+ # @param client [String] Identification of executing client.
224
+ # @param [Hash] opts the optional parameters
225
+ # @return [ExternalTicketConfigurationList]
226
+ def get_external_ticket_configurations(client, opts = {})
227
+ data, _status_code, _headers = get_external_ticket_configurations_with_http_info(client, opts)
228
+ data
229
+ end
230
+
231
+ # Returns all external ticket configurations
232
+ # @param client [String] Identification of executing client.
233
+ # @param [Hash] opts the optional parameters
234
+ # @return [Array<(ExternalTicketConfigurationList, Integer, Hash)>] ExternalTicketConfigurationList data, response status code and response headers
235
+ def get_external_ticket_configurations_with_http_info(client, opts = {})
236
+ if @api_client.config.debugging
237
+ @api_client.config.logger.debug 'Calling API: ExternalTicketConfigurationsApi.get_external_ticket_configurations ...'
238
+ end
239
+ # verify the required parameter 'client' is set
240
+ if @api_client.config.client_side_validation && client.nil?
241
+ fail ArgumentError, "Missing the required parameter 'client' when calling ExternalTicketConfigurationsApi.get_external_ticket_configurations"
242
+ end
243
+ # resource path
244
+ local_var_path = '/{client}/externalTicketConfigurations'.sub('{' + 'client' + '}', CGI.escape(client.to_s))
245
+
246
+ # query parameters
247
+ query_params = opts[:query_params] || {}
248
+
249
+ # header parameters
250
+ header_params = opts[:header_params] || {}
251
+ # HTTP header 'Accept' (if needed)
252
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
253
+
254
+ # form parameters
255
+ form_params = opts[:form_params] || {}
256
+
257
+ # http body (model)
258
+ post_body = opts[:body]
259
+
260
+ # return_type
261
+ return_type = opts[:return_type] || 'ExternalTicketConfigurationList'
262
+
263
+ # auth_names
264
+ auth_names = opts[:auth_names] || []
265
+
266
+ new_options = opts.merge(
267
+ :header_params => header_params,
268
+ :query_params => query_params,
269
+ :form_params => form_params,
270
+ :body => post_body,
271
+ :auth_names => auth_names,
272
+ :return_type => return_type
273
+ )
274
+
275
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
276
+ if @api_client.config.debugging
277
+ @api_client.config.logger.debug "API called: ExternalTicketConfigurationsApi#get_external_ticket_configurations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
278
+ end
279
+ return data, status_code, headers
280
+ end
281
+
282
+ # Updates the single external ticket configuration.
283
+ # @param client [String] Identification of executing client.
284
+ # @param external_ticket_configuration_id [Integer] ID to identify the external ticket configuration.
285
+ # @param body [ExternalTicketConfiguration] Properties to update of the external ticket configuration.
286
+ # @param [Hash] opts the optional parameters
287
+ # @return [ModelReference]
288
+ def update_external_ticket_configuration(client, external_ticket_configuration_id, body, opts = {})
289
+ data, _status_code, _headers = update_external_ticket_configuration_with_http_info(client, external_ticket_configuration_id, body, opts)
290
+ data
291
+ end
292
+
293
+ # Updates the single external ticket configuration.
294
+ # @param client [String] Identification of executing client.
295
+ # @param external_ticket_configuration_id [Integer] ID to identify the external ticket configuration.
296
+ # @param body [ExternalTicketConfiguration] Properties to update of the external ticket configuration.
297
+ # @param [Hash] opts the optional parameters
298
+ # @return [Array<(ModelReference, Integer, Hash)>] ModelReference data, response status code and response headers
299
+ def update_external_ticket_configuration_with_http_info(client, external_ticket_configuration_id, body, opts = {})
300
+ if @api_client.config.debugging
301
+ @api_client.config.logger.debug 'Calling API: ExternalTicketConfigurationsApi.update_external_ticket_configuration ...'
302
+ end
303
+ # verify the required parameter 'client' is set
304
+ if @api_client.config.client_side_validation && client.nil?
305
+ fail ArgumentError, "Missing the required parameter 'client' when calling ExternalTicketConfigurationsApi.update_external_ticket_configuration"
306
+ end
307
+ # verify the required parameter 'external_ticket_configuration_id' is set
308
+ if @api_client.config.client_side_validation && external_ticket_configuration_id.nil?
309
+ fail ArgumentError, "Missing the required parameter 'external_ticket_configuration_id' when calling ExternalTicketConfigurationsApi.update_external_ticket_configuration"
310
+ end
311
+ # verify the required parameter 'body' is set
312
+ if @api_client.config.client_side_validation && body.nil?
313
+ fail ArgumentError, "Missing the required parameter 'body' when calling ExternalTicketConfigurationsApi.update_external_ticket_configuration"
314
+ end
315
+ # resource path
316
+ local_var_path = '/{client}/externalTicketConfigurations/{externalTicketConfigurationId}'.sub('{' + 'client' + '}', CGI.escape(client.to_s)).sub('{' + 'externalTicketConfigurationId' + '}', CGI.escape(external_ticket_configuration_id.to_s))
317
+
318
+ # query parameters
319
+ query_params = opts[:query_params] || {}
320
+
321
+ # header parameters
322
+ header_params = opts[:header_params] || {}
323
+ # HTTP header 'Accept' (if needed)
324
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
325
+ # HTTP header 'Content-Type'
326
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
327
+
328
+ # form parameters
329
+ form_params = opts[:form_params] || {}
330
+
331
+ # http body (model)
332
+ post_body = opts[:body] || @api_client.object_to_http_body(body)
333
+
334
+ # return_type
335
+ return_type = opts[:return_type] || 'ModelReference'
336
+
337
+ # auth_names
338
+ auth_names = opts[:auth_names] || []
339
+
340
+ new_options = opts.merge(
341
+ :header_params => header_params,
342
+ :query_params => query_params,
343
+ :form_params => form_params,
344
+ :body => post_body,
345
+ :auth_names => auth_names,
346
+ :return_type => return_type
347
+ )
348
+
349
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
350
+ if @api_client.config.debugging
351
+ @api_client.config.logger.debug "API called: ExternalTicketConfigurationsApi#update_external_ticket_configuration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
352
+ end
353
+ return data, status_code, headers
354
+ end
355
+ end
356
+ end