apcera 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. checksums.yaml +7 -0
  2. data/apcera.gemspec +31 -0
  3. data/lib/apcera/api/default_api.rb +128 -0
  4. data/lib/apcera/api/instances_api.rb +280 -0
  5. data/lib/apcera/api/jobs_api.rb +1428 -0
  6. data/lib/apcera/api/logs_api.rb +120 -0
  7. data/lib/apcera/api/metrics_api.rb +280 -0
  8. data/lib/apcera/api/packages_api.rb +541 -0
  9. data/lib/apcera/api/providers_api.rb +175 -0
  10. data/lib/apcera/api/rules_api.rb +228 -0
  11. data/lib/apcera/api/services_and_bindings_api.rb +278 -0
  12. data/lib/apcera/api/staging_pipelines_api.rb +281 -0
  13. data/lib/apcera/api/utilities_api.rb +327 -0
  14. data/lib/apcera/api_client.rb +294 -0
  15. data/lib/apcera/api_error.rb +24 -0
  16. data/lib/apcera/configuration.rb +173 -0
  17. data/lib/apcera/models/apc_version_object.rb +37 -0
  18. data/lib/apcera/models/api_error.rb +143 -0
  19. data/lib/apcera/models/audit_log_item.rb +117 -0
  20. data/lib/apcera/models/audit_log_item_old.rb +85 -0
  21. data/lib/apcera/models/base_object.rb +96 -0
  22. data/lib/apcera/models/binding.rb +137 -0
  23. data/lib/apcera/models/create_docker_job_request.rb +197 -0
  24. data/lib/apcera/models/create_docker_job_response.rb +37 -0
  25. data/lib/apcera/models/dependency.rb +53 -0
  26. data/lib/apcera/models/dependency_resolve.rb +45 -0
  27. data/lib/apcera/models/docker_origin.rb +63 -0
  28. data/lib/apcera/models/drain.rb +61 -0
  29. data/lib/apcera/models/drain_config.rb +53 -0
  30. data/lib/apcera/models/file_listing.rb +45 -0
  31. data/lib/apcera/models/info.rb +53 -0
  32. data/lib/apcera/models/instance_manager.rb +105 -0
  33. data/lib/apcera/models/instance_state.rb +117 -0
  34. data/lib/apcera/models/instances.rb +109 -0
  35. data/lib/apcera/models/job.rb +243 -0
  36. data/lib/apcera/models/job_health.rb +63 -0
  37. data/lib/apcera/models/job_preferences.rb +37 -0
  38. data/lib/apcera/models/log.rb +53 -0
  39. data/lib/apcera/models/metric_series.rb +49 -0
  40. data/lib/apcera/models/metric_series_hash.rb +29 -0
  41. data/lib/apcera/models/metrics.rb +49 -0
  42. data/lib/apcera/models/namespace.rb +37 -0
  43. data/lib/apcera/models/package.rb +183 -0
  44. data/lib/apcera/models/package_depends_request.rb +47 -0
  45. data/lib/apcera/models/package_info.rb +69 -0
  46. data/lib/apcera/models/package_resource.rb +61 -0
  47. data/lib/apcera/models/policy_error.rb +63 -0
  48. data/lib/apcera/models/port.rb +55 -0
  49. data/lib/apcera/models/process.rb +37 -0
  50. data/lib/apcera/models/process_object.rb +115 -0
  51. data/lib/apcera/models/provide.rb +53 -0
  52. data/lib/apcera/models/provider.rb +85 -0
  53. data/lib/apcera/models/resource.rb +69 -0
  54. data/lib/apcera/models/restart_config.rb +53 -0
  55. data/lib/apcera/models/rollout_config.rb +69 -0
  56. data/lib/apcera/models/route.rb +53 -0
  57. data/lib/apcera/models/rule.rb +101 -0
  58. data/lib/apcera/models/runtime.rb +47 -0
  59. data/lib/apcera/models/semi_pipe_rule.rb +101 -0
  60. data/lib/apcera/models/semi_pipe_rule_action.rb +37 -0
  61. data/lib/apcera/models/stager_job.rb +37 -0
  62. data/lib/apcera/models/staging_pipeline.rb +103 -0
  63. data/lib/apcera/models/sub_task.rb +61 -0
  64. data/lib/apcera/models/task.rb +87 -0
  65. data/lib/apcera/models/task_event.rb +113 -0
  66. data/lib/apcera/models/task_progress.rb +45 -0
  67. data/lib/apcera/models/unbind_parameter_object.rb +53 -0
  68. data/lib/apcera/models/unlink_parameter_object.rb +53 -0
  69. data/lib/apcera/version.rb +3 -0
  70. data/lib/apcera.rb +90 -0
  71. metadata +293 -0
@@ -0,0 +1,281 @@
1
+ require "uri"
2
+
3
+ module Apcera
4
+ class StagingPipelinesApi
5
+ attr_accessor :api_client
6
+
7
+ def initialize(api_client = nil)
8
+ @api_client = api_client || Configuration.api_client
9
+ end
10
+
11
+ # Lists all staging pipelines
12
+ # Lists all staging pipelines. To return a single staging pipeline specify its fully qualified name in the `fqn` query parameter.
13
+ # @param [Hash] opts the optional parameters
14
+ # @option opts [String] :fqn The fully qualified name the staging pipeline to retrieve.
15
+ # @option opts [String] :authorization
16
+ # @return [Array<StagingPipeline>]
17
+ def stagingpipelines_get(opts = {})
18
+
19
+ if Configuration.debugging
20
+ Configuration.logger.debug "Calling API: StagingPipelinesApi#stagingpipelines_get ..."
21
+ end
22
+
23
+
24
+ # resource path
25
+ path = "/stagingpipelines".sub('{format}','json')
26
+
27
+ # query parameters
28
+ query_params = {}
29
+ query_params[:'fqn'] = opts[:'fqn'] if opts[:'fqn']
30
+
31
+ # header parameters
32
+ header_params = {}
33
+
34
+ # HTTP header 'Accept' (if needed)
35
+ _header_accept = []
36
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
37
+
38
+ # HTTP header 'Content-Type'
39
+ _header_content_type = []
40
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
41
+ header_params[:'authorization'] = opts[:'authorization'] if opts[:'authorization']
42
+
43
+ # form parameters
44
+ form_params = {}
45
+
46
+ # http body (model)
47
+ post_body = nil
48
+
49
+
50
+ auth_names = ['authorization']
51
+ result = @api_client.call_api(:GET, path,
52
+ :header_params => header_params,
53
+ :query_params => query_params,
54
+ :form_params => form_params,
55
+ :body => post_body,
56
+ :auth_names => auth_names,
57
+ :return_type => 'Array<StagingPipeline>')
58
+ if Configuration.debugging
59
+ Configuration.logger.debug "API called: StagingPipelinesApi#stagingpipelines_get. Result: #{result.inspect}"
60
+ end
61
+ return result
62
+ end
63
+
64
+ # Creates a new staging pipeline.
65
+ # Creates a new staging pipeline.
66
+ # @param [Hash] opts the optional parameters
67
+ # @option opts [StagingPipeline] :staging_pipeline Staging pipeline object to create.
68
+ # @option opts [String] :authorization
69
+ # @return [nil]
70
+ def stagingpipelines_post(opts = {})
71
+
72
+ if Configuration.debugging
73
+ Configuration.logger.debug "Calling API: StagingPipelinesApi#stagingpipelines_post ..."
74
+ end
75
+
76
+
77
+ # resource path
78
+ path = "/stagingpipelines".sub('{format}','json')
79
+
80
+ # query parameters
81
+ query_params = {}
82
+
83
+ # header parameters
84
+ header_params = {}
85
+
86
+ # HTTP header 'Accept' (if needed)
87
+ _header_accept = []
88
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
89
+
90
+ # HTTP header 'Content-Type'
91
+ _header_content_type = []
92
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
93
+ header_params[:'authorization'] = opts[:'authorization'] if opts[:'authorization']
94
+
95
+ # form parameters
96
+ form_params = {}
97
+
98
+ # http body (model)
99
+ post_body = @api_client.object_to_http_body(opts[:'staging_pipeline'])
100
+
101
+
102
+ auth_names = ['authorization']
103
+ @api_client.call_api(:POST, path,
104
+ :header_params => header_params,
105
+ :query_params => query_params,
106
+ :form_params => form_params,
107
+ :body => post_body,
108
+ :auth_names => auth_names)
109
+ if Configuration.debugging
110
+ Configuration.logger.debug "API called: StagingPipelinesApi#stagingpipelines_post"
111
+ end
112
+ return nil
113
+ end
114
+
115
+ # Shows the specified staging pipeline.
116
+ #
117
+ # @param uuid UUID of the staging pipeline.
118
+ # @param [Hash] opts the optional parameters
119
+ # @option opts [String] :authorization
120
+ # @return [nil]
121
+ def stagingpipelines_uuid_get(uuid, opts = {})
122
+
123
+ if Configuration.debugging
124
+ Configuration.logger.debug "Calling API: StagingPipelinesApi#stagingpipelines_uuid_get ..."
125
+ end
126
+
127
+
128
+ # verify the required parameter 'uuid' is set
129
+ fail "Missing the required parameter 'uuid' when calling stagingpipelines_uuid_get" if uuid.nil?
130
+
131
+ # resource path
132
+ path = "/stagingpipelines/{uuid}".sub('{format}','json').sub('{' + 'uuid' + '}', uuid.to_s)
133
+
134
+ # query parameters
135
+ query_params = {}
136
+
137
+ # header parameters
138
+ header_params = {}
139
+
140
+ # HTTP header 'Accept' (if needed)
141
+ _header_accept = []
142
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
143
+
144
+ # HTTP header 'Content-Type'
145
+ _header_content_type = []
146
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
147
+ header_params[:'authorization'] = opts[:'authorization'] if opts[:'authorization']
148
+
149
+ # form parameters
150
+ form_params = {}
151
+
152
+ # http body (model)
153
+ post_body = nil
154
+
155
+
156
+ auth_names = ['authorization']
157
+ @api_client.call_api(:GET, path,
158
+ :header_params => header_params,
159
+ :query_params => query_params,
160
+ :form_params => form_params,
161
+ :body => post_body,
162
+ :auth_names => auth_names)
163
+ if Configuration.debugging
164
+ Configuration.logger.debug "API called: StagingPipelinesApi#stagingpipelines_uuid_get"
165
+ end
166
+ return nil
167
+ end
168
+
169
+ # Updates the specified staging pipeline.
170
+ #
171
+ # @param uuid UUID of the staging pipeline.
172
+ # @param [Hash] opts the optional parameters
173
+ # @option opts [String] :authorization
174
+ # @return [nil]
175
+ def stagingpipelines_uuid_put(uuid, opts = {})
176
+
177
+ if Configuration.debugging
178
+ Configuration.logger.debug "Calling API: StagingPipelinesApi#stagingpipelines_uuid_put ..."
179
+ end
180
+
181
+
182
+ # verify the required parameter 'uuid' is set
183
+ fail "Missing the required parameter 'uuid' when calling stagingpipelines_uuid_put" if uuid.nil?
184
+
185
+ # resource path
186
+ path = "/stagingpipelines/{uuid}".sub('{format}','json').sub('{' + 'uuid' + '}', uuid.to_s)
187
+
188
+ # query parameters
189
+ query_params = {}
190
+
191
+ # header parameters
192
+ header_params = {}
193
+
194
+ # HTTP header 'Accept' (if needed)
195
+ _header_accept = []
196
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
197
+
198
+ # HTTP header 'Content-Type'
199
+ _header_content_type = []
200
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
201
+ header_params[:'authorization'] = opts[:'authorization'] if opts[:'authorization']
202
+
203
+ # form parameters
204
+ form_params = {}
205
+
206
+ # http body (model)
207
+ post_body = nil
208
+
209
+
210
+ auth_names = ['authorization']
211
+ @api_client.call_api(:PUT, path,
212
+ :header_params => header_params,
213
+ :query_params => query_params,
214
+ :form_params => form_params,
215
+ :body => post_body,
216
+ :auth_names => auth_names)
217
+ if Configuration.debugging
218
+ Configuration.logger.debug "API called: StagingPipelinesApi#stagingpipelines_uuid_put"
219
+ end
220
+ return nil
221
+ end
222
+
223
+ # Deletes the specified staging pipeline.
224
+ #
225
+ # @param uuid UUID of the staging pipeline.
226
+ # @param [Hash] opts the optional parameters
227
+ # @option opts [String] :authorization
228
+ # @return [nil]
229
+ def stagingpipelines_uuid_delete(uuid, opts = {})
230
+
231
+ if Configuration.debugging
232
+ Configuration.logger.debug "Calling API: StagingPipelinesApi#stagingpipelines_uuid_delete ..."
233
+ end
234
+
235
+
236
+ # verify the required parameter 'uuid' is set
237
+ fail "Missing the required parameter 'uuid' when calling stagingpipelines_uuid_delete" if uuid.nil?
238
+
239
+ # resource path
240
+ path = "/stagingpipelines/{uuid}".sub('{format}','json').sub('{' + 'uuid' + '}', uuid.to_s)
241
+
242
+ # query parameters
243
+ query_params = {}
244
+
245
+ # header parameters
246
+ header_params = {}
247
+
248
+ # HTTP header 'Accept' (if needed)
249
+ _header_accept = []
250
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
251
+
252
+ # HTTP header 'Content-Type'
253
+ _header_content_type = []
254
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
255
+ header_params[:'authorization'] = opts[:'authorization'] if opts[:'authorization']
256
+
257
+ # form parameters
258
+ form_params = {}
259
+
260
+ # http body (model)
261
+ post_body = nil
262
+
263
+
264
+ auth_names = ['authorization']
265
+ @api_client.call_api(:DELETE, path,
266
+ :header_params => header_params,
267
+ :query_params => query_params,
268
+ :form_params => form_params,
269
+ :body => post_body,
270
+ :auth_names => auth_names)
271
+ if Configuration.debugging
272
+ Configuration.logger.debug "API called: StagingPipelinesApi#stagingpipelines_uuid_delete"
273
+ end
274
+ return nil
275
+ end
276
+ end
277
+ end
278
+
279
+
280
+
281
+
@@ -0,0 +1,327 @@
1
+ require "uri"
2
+
3
+ module Apcera
4
+ class UtilitiesApi
5
+ attr_accessor :api_client
6
+
7
+ def initialize(api_client = nil)
8
+ @api_client = api_client || Configuration.api_client
9
+ end
10
+
11
+ # Downloads the APC utility.
12
+ # Downloads the APC command-line utility for the specified platform.
13
+ # @param platform Target platform. Can be one of the following values: \n * `linux` \n * `osx` \n * `linux_amd64` \n * `osx_amd64` \n * `darwin_amd64` \n * `darwin`
14
+ # @param [Hash] opts the optional parameters
15
+ # @option opts [String] :authorization
16
+ # @return [nil]
17
+ def apc_download_platform_get(platform, opts = {})
18
+
19
+ if Configuration.debugging
20
+ Configuration.logger.debug "Calling API: UtilitiesApi#apc_download_platform_get ..."
21
+ end
22
+
23
+
24
+ # verify the required parameter 'platform' is set
25
+ fail "Missing the required parameter 'platform' when calling apc_download_platform_get" if platform.nil?
26
+ unless ['linux_amd64', 'linux', 'osx_amd64', 'darwin_amd64', 'darwin', 'osx'].include?(platform)
27
+ fail "invalid value for 'platform', must be one of linux_amd64, linux, osx_amd64, darwin_amd64, darwin, osx"
28
+ end
29
+
30
+ # resource path
31
+ path = "/apc/download/{platform}".sub('{format}','json').sub('{' + 'platform' + '}', platform.to_s)
32
+
33
+ # query parameters
34
+ query_params = {}
35
+
36
+ # header parameters
37
+ header_params = {}
38
+
39
+ # HTTP header 'Accept' (if needed)
40
+ _header_accept = []
41
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
42
+
43
+ # HTTP header 'Content-Type'
44
+ _header_content_type = []
45
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
46
+ header_params[:'authorization'] = opts[:'authorization'] if opts[:'authorization']
47
+
48
+ # form parameters
49
+ form_params = {}
50
+
51
+ # http body (model)
52
+ post_body = nil
53
+
54
+
55
+ auth_names = ['authorization']
56
+ @api_client.call_api(:GET, path,
57
+ :header_params => header_params,
58
+ :query_params => query_params,
59
+ :form_params => form_params,
60
+ :body => post_body,
61
+ :auth_names => auth_names)
62
+ if Configuration.debugging
63
+ Configuration.logger.debug "API called: UtilitiesApi#apc_download_platform_get"
64
+ end
65
+ return nil
66
+ end
67
+
68
+ # Returns the version of APC available for download.
69
+ # Returns the version of APC available for download from the cluster.
70
+ # @param [Hash] opts the optional parameters
71
+ # @option opts [String] :authorization
72
+ # @return [APCVersionObject]
73
+ def apc_version_get(opts = {})
74
+
75
+ if Configuration.debugging
76
+ Configuration.logger.debug "Calling API: UtilitiesApi#apc_version_get ..."
77
+ end
78
+
79
+
80
+ # resource path
81
+ path = "/apc/version".sub('{format}','json')
82
+
83
+ # query parameters
84
+ query_params = {}
85
+
86
+ # header parameters
87
+ header_params = {}
88
+
89
+ # HTTP header 'Accept' (if needed)
90
+ _header_accept = []
91
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
92
+
93
+ # HTTP header 'Content-Type'
94
+ _header_content_type = []
95
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
96
+ header_params[:'authorization'] = opts[:'authorization'] if opts[:'authorization']
97
+
98
+ # form parameters
99
+ form_params = {}
100
+
101
+ # http body (model)
102
+ post_body = nil
103
+
104
+
105
+ auth_names = ['authorization']
106
+ result = @api_client.call_api(:GET, path,
107
+ :header_params => header_params,
108
+ :query_params => query_params,
109
+ :form_params => form_params,
110
+ :body => post_body,
111
+ :auth_names => auth_names,
112
+ :return_type => 'APCVersionObject')
113
+ if Configuration.debugging
114
+ Configuration.logger.debug "API called: UtilitiesApi#apc_version_get. Result: #{result.inspect}"
115
+ end
116
+ return result
117
+ end
118
+
119
+ # Returns information about the API server.
120
+ # Returns information about the API server.
121
+ # @param [Hash] opts the optional parameters
122
+ # @option opts [String] :authorization
123
+ # @return [Info]
124
+ def info_get(opts = {})
125
+
126
+ if Configuration.debugging
127
+ Configuration.logger.debug "Calling API: UtilitiesApi#info_get ..."
128
+ end
129
+
130
+
131
+ # resource path
132
+ path = "/info".sub('{format}','json')
133
+
134
+ # query parameters
135
+ query_params = {}
136
+
137
+ # header parameters
138
+ header_params = {}
139
+
140
+ # HTTP header 'Accept' (if needed)
141
+ _header_accept = []
142
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
143
+
144
+ # HTTP header 'Content-Type'
145
+ _header_content_type = []
146
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
147
+ header_params[:'authorization'] = opts[:'authorization'] if opts[:'authorization']
148
+
149
+ # form parameters
150
+ form_params = {}
151
+
152
+ # http body (model)
153
+ post_body = nil
154
+
155
+
156
+ auth_names = ['authorization']
157
+ result = @api_client.call_api(:GET, path,
158
+ :header_params => header_params,
159
+ :query_params => query_params,
160
+ :form_params => form_params,
161
+ :body => post_body,
162
+ :auth_names => auth_names,
163
+ :return_type => 'Info')
164
+ if Configuration.debugging
165
+ Configuration.logger.debug "API called: UtilitiesApi#info_get. Result: #{result.inspect}"
166
+ end
167
+ return result
168
+ end
169
+
170
+ # Returns the default namespace for the currently logged-in user.
171
+ # Returns the default namespace for the currently logged-in user.
172
+ # @param [Hash] opts the optional parameters
173
+ # @option opts [String] :authorization
174
+ # @return [Namespace]
175
+ def namespace_default_get(opts = {})
176
+
177
+ if Configuration.debugging
178
+ Configuration.logger.debug "Calling API: UtilitiesApi#namespace_default_get ..."
179
+ end
180
+
181
+
182
+ # resource path
183
+ path = "/namespace/default".sub('{format}','json')
184
+
185
+ # query parameters
186
+ query_params = {}
187
+
188
+ # header parameters
189
+ header_params = {}
190
+
191
+ # HTTP header 'Accept' (if needed)
192
+ _header_accept = []
193
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
194
+
195
+ # HTTP header 'Content-Type'
196
+ _header_content_type = []
197
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
198
+ header_params[:'authorization'] = opts[:'authorization'] if opts[:'authorization']
199
+
200
+ # form parameters
201
+ form_params = {}
202
+
203
+ # http body (model)
204
+ post_body = nil
205
+
206
+
207
+ auth_names = ['authorization']
208
+ result = @api_client.call_api(:GET, path,
209
+ :header_params => header_params,
210
+ :query_params => query_params,
211
+ :form_params => form_params,
212
+ :body => post_body,
213
+ :auth_names => auth_names,
214
+ :return_type => 'Namespace')
215
+ if Configuration.debugging
216
+ Configuration.logger.debug "API called: UtilitiesApi#namespace_default_get. Result: #{result.inspect}"
217
+ end
218
+ return result
219
+ end
220
+
221
+ # Lists available workload runtimes.
222
+ # Lists file names and patterns used to determine the appropriate runtime for a given workload.
223
+ # @param [Hash] opts the optional parameters
224
+ # @option opts [String] :authorization
225
+ # @return [Array<Runtime>]
226
+ def runtimes_get(opts = {})
227
+
228
+ if Configuration.debugging
229
+ Configuration.logger.debug "Calling API: UtilitiesApi#runtimes_get ..."
230
+ end
231
+
232
+
233
+ # resource path
234
+ path = "/runtimes".sub('{format}','json')
235
+
236
+ # query parameters
237
+ query_params = {}
238
+
239
+ # header parameters
240
+ header_params = {}
241
+
242
+ # HTTP header 'Accept' (if needed)
243
+ _header_accept = []
244
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
245
+
246
+ # HTTP header 'Content-Type'
247
+ _header_content_type = []
248
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
249
+ header_params[:'authorization'] = opts[:'authorization'] if opts[:'authorization']
250
+
251
+ # form parameters
252
+ form_params = {}
253
+
254
+ # http body (model)
255
+ post_body = nil
256
+
257
+
258
+ auth_names = ['authorization']
259
+ result = @api_client.call_api(:GET, path,
260
+ :header_params => header_params,
261
+ :query_params => query_params,
262
+ :form_params => form_params,
263
+ :body => post_body,
264
+ :auth_names => auth_names,
265
+ :return_type => 'Array<Runtime>')
266
+ if Configuration.debugging
267
+ Configuration.logger.debug "API called: UtilitiesApi#runtimes_get. Result: #{result.inspect}"
268
+ end
269
+ return result
270
+ end
271
+
272
+ # Returns the version number of the API Server.
273
+ # Returns the version number of the API Server.
274
+ # @param [Hash] opts the optional parameters
275
+ # @option opts [String] :authorization
276
+ # @return [Object]
277
+ def version_get(opts = {})
278
+
279
+ if Configuration.debugging
280
+ Configuration.logger.debug "Calling API: UtilitiesApi#version_get ..."
281
+ end
282
+
283
+
284
+ # resource path
285
+ path = "/version".sub('{format}','json')
286
+
287
+ # query parameters
288
+ query_params = {}
289
+
290
+ # header parameters
291
+ header_params = {}
292
+
293
+ # HTTP header 'Accept' (if needed)
294
+ _header_accept = []
295
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
296
+
297
+ # HTTP header 'Content-Type'
298
+ _header_content_type = []
299
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
300
+ header_params[:'authorization'] = opts[:'authorization'] if opts[:'authorization']
301
+
302
+ # form parameters
303
+ form_params = {}
304
+
305
+ # http body (model)
306
+ post_body = nil
307
+
308
+
309
+ auth_names = ['authorization']
310
+ result = @api_client.call_api(:GET, path,
311
+ :header_params => header_params,
312
+ :query_params => query_params,
313
+ :form_params => form_params,
314
+ :body => post_body,
315
+ :auth_names => auth_names,
316
+ :return_type => 'Object')
317
+ if Configuration.debugging
318
+ Configuration.logger.debug "API called: UtilitiesApi#version_get. Result: #{result.inspect}"
319
+ end
320
+ return result
321
+ end
322
+ end
323
+ end
324
+
325
+
326
+
327
+