apcera 0.1.7.0 → 0.1.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/apcera.rb +6 -5
- data/lib/apcera/api/instances_api.rb +0 -54
- data/lib/apcera/api/jobs_api.rb +66 -57
- data/lib/apcera/api/logs_api.rb +59 -0
- data/lib/apcera/api/services_and_bindings_api.rb +9 -7
- data/lib/apcera/api/utilities_api.rb +6 -114
- data/lib/apcera/api/virtual_networks_api.rb +230 -0
- data/lib/apcera/models/apc_download_url.rb +53 -0
- data/lib/apcera/models/runtime.rb +1 -1
- data/lib/apcera/models/semi_pipe_rule_action.rb +11 -11
- data/lib/apcera/models/service.rb +23 -15
- data/lib/apcera/models/service_request_object.rb +77 -0
- data/lib/apcera/models/version_info.rb +87 -0
- data/lib/apcera/models/virtual_network.rb +37 -37
- data/lib/apcera/models/virtual_network_endpoint.rb +13 -13
- data/lib/apcera/models/virtual_network_endpoint_interface.rb +11 -11
- data/lib/apcera/version.rb +1 -1
- data/lib/apcera_api_helper.rb +3 -2
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 13a67f4c4da84c0d6e5c5bb595a60d66ba162e54
|
4
|
+
data.tar.gz: a51839479d7b857319575f57125282f129205f42
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5dbaae75ddcbbf39fe89a2e7dad49ee770ee2b1dd9f42c9e394b31c0cc7146d01a516353f11896716210c393696cc68c408ca9bf4ac8fa9b00f0ac1defce0869
|
7
|
+
data.tar.gz: 8f65157ed1e91fd2842e5e4845b2747075a46f5fa333c9c87b06cb60af48fa43fca0c0141f695c084c3a12a47f6718532469ad872dc3522341efe87d79a7d45d
|
data/lib/apcera.rb
CHANGED
@@ -6,7 +6,7 @@ require 'apcera/configuration'
|
|
6
6
|
|
7
7
|
# Models
|
8
8
|
require 'apcera/models/base_object'
|
9
|
-
require 'apcera/models/
|
9
|
+
require 'apcera/models/apc_download_url'
|
10
10
|
require 'apcera/models/api_error'
|
11
11
|
require 'apcera/models/audit_log_item'
|
12
12
|
require 'apcera/models/audit_log_item_old'
|
@@ -26,7 +26,6 @@ require 'apcera/models/instances'
|
|
26
26
|
require 'apcera/models/job'
|
27
27
|
require 'apcera/models/job_health'
|
28
28
|
require 'apcera/models/job_network_reference'
|
29
|
-
require 'apcera/models/job_preferences'
|
30
29
|
require 'apcera/models/log'
|
31
30
|
require 'apcera/models/metric_series'
|
32
31
|
require 'apcera/models/metric_series_hash'
|
@@ -50,22 +49,25 @@ require 'apcera/models/rule'
|
|
50
49
|
require 'apcera/models/runtime'
|
51
50
|
require 'apcera/models/semi_pipe_rule'
|
52
51
|
require 'apcera/models/semi_pipe_rule_action'
|
53
|
-
require 'apcera/models/stager_job'
|
54
52
|
require 'apcera/models/service'
|
53
|
+
require 'apcera/models/service_request_object'
|
54
|
+
require 'apcera/models/stager_job'
|
55
55
|
require 'apcera/models/staging_pipeline'
|
56
|
-
require 'apcera/models/subnet_info'
|
57
56
|
require 'apcera/models/sub_task'
|
57
|
+
require 'apcera/models/subnet_info'
|
58
58
|
require 'apcera/models/task'
|
59
59
|
require 'apcera/models/task_event'
|
60
60
|
require 'apcera/models/task_progress'
|
61
61
|
require 'apcera/models/unbind_parameter_object'
|
62
62
|
require 'apcera/models/unlink_parameter_object'
|
63
|
+
require 'apcera/models/version_info'
|
63
64
|
require 'apcera/models/virtual_network'
|
64
65
|
require 'apcera/models/virtual_network_endpoint'
|
65
66
|
require 'apcera/models/virtual_network_endpoint_interface'
|
66
67
|
|
67
68
|
# APIs
|
68
69
|
require 'apcera/api/instances_api'
|
70
|
+
require 'apcera/api/virtual_networks_api'
|
69
71
|
require 'apcera/api/utilities_api'
|
70
72
|
require 'apcera/api/metrics_api'
|
71
73
|
require 'apcera/api/jobs_api'
|
@@ -73,7 +75,6 @@ require 'apcera/api/packages_api'
|
|
73
75
|
require 'apcera/api/services_and_bindings_api'
|
74
76
|
require 'apcera/api/logs_api'
|
75
77
|
require 'apcera/api/providers_api'
|
76
|
-
require 'apcera/api/default_api'
|
77
78
|
require 'apcera/api/rules_api'
|
78
79
|
require 'apcera/api/staging_pipelines_api'
|
79
80
|
|
@@ -169,60 +169,6 @@ module Apcera
|
|
169
169
|
return result
|
170
170
|
end
|
171
171
|
|
172
|
-
# Creates a snapshot of a capsule.
|
173
|
-
#
|
174
|
-
# @param uuid UUID of the job from which to create the capsule.
|
175
|
-
# @param [Hash] opts the optional parameters
|
176
|
-
# @option opts [String] :authorization
|
177
|
-
# @return [nil]
|
178
|
-
def instances_uuid_snapshot_post(uuid, opts = {})
|
179
|
-
|
180
|
-
if Configuration.debugging
|
181
|
-
Configuration.logger.debug "Calling API: InstancesApi#instances_uuid_snapshot_post ..."
|
182
|
-
end
|
183
|
-
|
184
|
-
|
185
|
-
# verify the required parameter 'uuid' is set
|
186
|
-
fail "Missing the required parameter 'uuid' when calling instances_uuid_snapshot_post" if uuid.nil?
|
187
|
-
|
188
|
-
# resource path
|
189
|
-
path = "/instances/{uuid}/snapshot".sub('{format}','json').sub('{' + 'uuid' + '}', uuid.to_s)
|
190
|
-
|
191
|
-
# query parameters
|
192
|
-
query_params = {}
|
193
|
-
|
194
|
-
# header parameters
|
195
|
-
header_params = {}
|
196
|
-
|
197
|
-
# HTTP header 'Accept' (if needed)
|
198
|
-
_header_accept = []
|
199
|
-
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
200
|
-
|
201
|
-
# HTTP header 'Content-Type'
|
202
|
-
_header_content_type = []
|
203
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
204
|
-
header_params[:'authorization'] = opts[:'authorization'] if opts[:'authorization']
|
205
|
-
|
206
|
-
# form parameters
|
207
|
-
form_params = {}
|
208
|
-
|
209
|
-
# http body (model)
|
210
|
-
post_body = nil
|
211
|
-
|
212
|
-
|
213
|
-
auth_names = ['authorization']
|
214
|
-
@api_client.call_api(:POST, path,
|
215
|
-
:header_params => header_params,
|
216
|
-
:query_params => query_params,
|
217
|
-
:form_params => form_params,
|
218
|
-
:body => post_body,
|
219
|
-
:auth_names => auth_names)
|
220
|
-
if Configuration.debugging
|
221
|
-
Configuration.logger.debug "API called: InstancesApi#instances_uuid_snapshot_post"
|
222
|
-
end
|
223
|
-
return nil
|
224
|
-
end
|
225
|
-
|
226
172
|
# Lists all tags on all instance managers in the cluster.
|
227
173
|
# Lists all tags on all instance managers in the cluster. Requires `read` privileges on the `cluster` realm.
|
228
174
|
# @param [Hash] opts the optional parameters
|
data/lib/apcera/api/jobs_api.rb
CHANGED
@@ -63,6 +63,71 @@ module Apcera
|
|
63
63
|
return result
|
64
64
|
end
|
65
65
|
|
66
|
+
# Creates a snapshot of a instance of a job.
|
67
|
+
# Issues a snapshot request to the specified job instance.
|
68
|
+
# @param uuid UUID of the job to be snapshotted.
|
69
|
+
# @param instance_uuid UUID of the instance to be snapshotted.
|
70
|
+
# @param pkg_fqn FQN of snapshot package to return.
|
71
|
+
# @param [Hash] opts the optional parameters
|
72
|
+
# @option opts [String] :directory Directory of a given job/capsule to snapshot.
|
73
|
+
# @option opts [String] :authorization
|
74
|
+
# @return [nil]
|
75
|
+
def job_uuid_instances_instance_uuid_snapshot_post(uuid, instance_uuid, pkg_fqn, opts = {})
|
76
|
+
|
77
|
+
if Configuration.debugging
|
78
|
+
Configuration.logger.debug "Calling API: JobsApi#job_uuid_instances_instance_uuid_snapshot_post ..."
|
79
|
+
end
|
80
|
+
|
81
|
+
|
82
|
+
# verify the required parameter 'uuid' is set
|
83
|
+
fail "Missing the required parameter 'uuid' when calling job_uuid_instances_instance_uuid_snapshot_post" if uuid.nil?
|
84
|
+
|
85
|
+
# verify the required parameter 'instance_uuid' is set
|
86
|
+
fail "Missing the required parameter 'instance_uuid' when calling job_uuid_instances_instance_uuid_snapshot_post" if instance_uuid.nil?
|
87
|
+
|
88
|
+
# verify the required parameter 'pkg_fqn' is set
|
89
|
+
fail "Missing the required parameter 'pkg_fqn' when calling job_uuid_instances_instance_uuid_snapshot_post" if pkg_fqn.nil?
|
90
|
+
|
91
|
+
# resource path
|
92
|
+
path = "/job/{uuid}/instances/{instance_uuid}/snapshot".sub('{format}','json').sub('{' + 'uuid' + '}', uuid.to_s).sub('{' + 'instance_uuid' + '}', instance_uuid.to_s)
|
93
|
+
|
94
|
+
# query parameters
|
95
|
+
query_params = {}
|
96
|
+
query_params[:'pkgFQN'] = pkg_fqn
|
97
|
+
query_params[:'directory'] = opts[:'directory'] if opts[:'directory']
|
98
|
+
|
99
|
+
# header parameters
|
100
|
+
header_params = {}
|
101
|
+
|
102
|
+
# HTTP header 'Accept' (if needed)
|
103
|
+
_header_accept = []
|
104
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
105
|
+
|
106
|
+
# HTTP header 'Content-Type'
|
107
|
+
_header_content_type = []
|
108
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
109
|
+
header_params[:'authorization'] = opts[:'authorization'] if opts[:'authorization']
|
110
|
+
|
111
|
+
# form parameters
|
112
|
+
form_params = {}
|
113
|
+
|
114
|
+
# http body (model)
|
115
|
+
post_body = nil
|
116
|
+
|
117
|
+
|
118
|
+
auth_names = ['authorization']
|
119
|
+
@api_client.call_api(:POST, path,
|
120
|
+
:header_params => header_params,
|
121
|
+
:query_params => query_params,
|
122
|
+
:form_params => form_params,
|
123
|
+
:body => post_body,
|
124
|
+
:auth_names => auth_names)
|
125
|
+
if Configuration.debugging
|
126
|
+
Configuration.logger.debug "API called: JobsApi#job_uuid_instances_instance_uuid_snapshot_post"
|
127
|
+
end
|
128
|
+
return nil
|
129
|
+
end
|
130
|
+
|
66
131
|
# List jobs.
|
67
132
|
# Returns a list of jobs, optionally filtered by one or more query parameters.
|
68
133
|
# @param [Hash] opts the optional parameters
|
@@ -140,7 +205,7 @@ module Apcera
|
|
140
205
|
|
141
206
|
# Creates a new job.
|
142
207
|
# Creates a new job from the Job object passed in the POST body. The only required property in the request object is `fqn` ([Fully Qualified Name](http://docs.apcera.com/reference/glossary/#fqn)).
|
143
|
-
# @param job An object that defines the properties of the new job.
|
208
|
+
# @param job An object that defines the properties of the new job.
|
144
209
|
# @param [Hash] opts the optional parameters
|
145
210
|
# @option opts [String] :authorization
|
146
211
|
# @return [Job]
|
@@ -1194,62 +1259,6 @@ module Apcera
|
|
1194
1259
|
return nil
|
1195
1260
|
end
|
1196
1261
|
|
1197
|
-
# Returns job-specific preferences.
|
1198
|
-
# Returns job-specific preferences used to expose claims retrieved from policy that are contextually important to the job.
|
1199
|
-
# @param fqn FQN of package whose job whose preferences should be returned.
|
1200
|
-
# @param [Hash] opts the optional parameters
|
1201
|
-
# @option opts [String] :authorization
|
1202
|
-
# @return [JobPreferences]
|
1203
|
-
def preferences_job_get(fqn, opts = {})
|
1204
|
-
|
1205
|
-
if Configuration.debugging
|
1206
|
-
Configuration.logger.debug "Calling API: JobsApi#preferences_job_get ..."
|
1207
|
-
end
|
1208
|
-
|
1209
|
-
|
1210
|
-
# verify the required parameter 'fqn' is set
|
1211
|
-
fail "Missing the required parameter 'fqn' when calling preferences_job_get" if fqn.nil?
|
1212
|
-
|
1213
|
-
# resource path
|
1214
|
-
path = "/preferences/job".sub('{format}','json')
|
1215
|
-
|
1216
|
-
# query parameters
|
1217
|
-
query_params = {}
|
1218
|
-
query_params[:'fqn'] = fqn
|
1219
|
-
|
1220
|
-
# header parameters
|
1221
|
-
header_params = {}
|
1222
|
-
|
1223
|
-
# HTTP header 'Accept' (if needed)
|
1224
|
-
_header_accept = []
|
1225
|
-
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
1226
|
-
|
1227
|
-
# HTTP header 'Content-Type'
|
1228
|
-
_header_content_type = []
|
1229
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
1230
|
-
header_params[:'authorization'] = opts[:'authorization'] if opts[:'authorization']
|
1231
|
-
|
1232
|
-
# form parameters
|
1233
|
-
form_params = {}
|
1234
|
-
|
1235
|
-
# http body (model)
|
1236
|
-
post_body = nil
|
1237
|
-
|
1238
|
-
|
1239
|
-
auth_names = ['authorization']
|
1240
|
-
result = @api_client.call_api(:GET, path,
|
1241
|
-
:header_params => header_params,
|
1242
|
-
:query_params => query_params,
|
1243
|
-
:form_params => form_params,
|
1244
|
-
:body => post_body,
|
1245
|
-
:auth_names => auth_names,
|
1246
|
-
:return_type => 'JobPreferences')
|
1247
|
-
if Configuration.debugging
|
1248
|
-
Configuration.logger.debug "API called: JobsApi#preferences_job_get. Result: #{result.inspect}"
|
1249
|
-
end
|
1250
|
-
return result
|
1251
|
-
end
|
1252
|
-
|
1253
1262
|
# Returns a list of task events for a given task.
|
1254
1263
|
# Returns the requested Task, which contains a list of task events. A client can poll this endpoint to check the status of a task. Optionally, a client can request a websocket connection over which tasks are streamed in real-time.
|
1255
1264
|
# @param uuid UUID of task.
|
data/lib/apcera/api/logs_api.rb
CHANGED
@@ -8,6 +8,65 @@ module Apcera
|
|
8
8
|
@api_client = api_client || Configuration.api_client
|
9
9
|
end
|
10
10
|
|
11
|
+
# Returns audit log items for the cluster.
|
12
|
+
# Returns a list audit log items. You can optionally filter the list by start time, end time, FQN, or event type.
|
13
|
+
# @param [Hash] opts the optional parameters
|
14
|
+
# @option opts [Float] :start_time UNIX timestamp. If specified, only events that occurred on or after the specified time are returned in the response.
|
15
|
+
# @option opts [Float] :end_time UNIX timestamp. If specified, only events that occurred on or before the specified time are returned in the response.
|
16
|
+
# @option opts [String] :fqn If specified, only events on the resource specified by `fqn` are returned in the response. You can also specify an FQN segment, which may include wildcards for the resource type. For example:\n * `*::/` returns all audit logs for all resource types.\n * `job::/` returns all audit logs for Job resource types. \n * `job::/apcera` returns all audit logs for Job resource types in the `/apcera` namespace and its sub-namespaces. \n * `*::/apcera` returns all audit logs for all resource types in the `/apcera` namespace its sub-namespaces.
|
17
|
+
# @option opts [String] :event_type If specified, only events of the specified type are returned in the response.
|
18
|
+
# @option opts [String] :authorization
|
19
|
+
# @return [Array<AuditLogItem>]
|
20
|
+
def audit_get(opts = {})
|
21
|
+
|
22
|
+
if Configuration.debugging
|
23
|
+
Configuration.logger.debug "Calling API: LogsApi#audit_get ..."
|
24
|
+
end
|
25
|
+
|
26
|
+
|
27
|
+
# resource path
|
28
|
+
path = "/audit".sub('{format}','json')
|
29
|
+
|
30
|
+
# query parameters
|
31
|
+
query_params = {}
|
32
|
+
query_params[:'start_time'] = opts[:'start_time'] if opts[:'start_time']
|
33
|
+
query_params[:'end_time'] = opts[:'end_time'] if opts[:'end_time']
|
34
|
+
query_params[:'fqn'] = opts[:'fqn'] if opts[:'fqn']
|
35
|
+
query_params[:'event_type'] = opts[:'event_type'] if opts[:'event_type']
|
36
|
+
|
37
|
+
# header parameters
|
38
|
+
header_params = {}
|
39
|
+
|
40
|
+
# HTTP header 'Accept' (if needed)
|
41
|
+
_header_accept = []
|
42
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
43
|
+
|
44
|
+
# HTTP header 'Content-Type'
|
45
|
+
_header_content_type = []
|
46
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
47
|
+
header_params[:'authorization'] = opts[:'authorization'] if opts[:'authorization']
|
48
|
+
|
49
|
+
# form parameters
|
50
|
+
form_params = {}
|
51
|
+
|
52
|
+
# http body (model)
|
53
|
+
post_body = nil
|
54
|
+
|
55
|
+
|
56
|
+
auth_names = ['authorization']
|
57
|
+
result = @api_client.call_api(:GET, path,
|
58
|
+
:header_params => header_params,
|
59
|
+
:query_params => query_params,
|
60
|
+
:form_params => form_params,
|
61
|
+
:body => post_body,
|
62
|
+
:auth_names => auth_names,
|
63
|
+
:return_type => 'Array<AuditLogItem>')
|
64
|
+
if Configuration.debugging
|
65
|
+
Configuration.logger.debug "API called: LogsApi#audit_get. Result: #{result.inspect}"
|
66
|
+
end
|
67
|
+
return result
|
68
|
+
end
|
69
|
+
|
11
70
|
# Returns audit log items for the cluster.
|
12
71
|
# Returns a list of audit log items.
|
13
72
|
# @param [Hash] opts the optional parameters
|
@@ -63,7 +63,7 @@ module Apcera
|
|
63
63
|
return result
|
64
64
|
end
|
65
65
|
|
66
|
-
#
|
66
|
+
# Lists available services.
|
67
67
|
#
|
68
68
|
# @param [Hash] opts the optional parameters
|
69
69
|
# @option opts [String] :authorization
|
@@ -120,7 +120,8 @@ module Apcera
|
|
120
120
|
#
|
121
121
|
# @param [Hash] opts the optional parameters
|
122
122
|
# @option opts [String] :authorization
|
123
|
-
# @
|
123
|
+
# @option opts [ServiceRequestObject] :service_request Describes the service to create.
|
124
|
+
# @return [Service]
|
124
125
|
def services_post(opts = {})
|
125
126
|
|
126
127
|
if Configuration.debugging
|
@@ -150,20 +151,21 @@ module Apcera
|
|
150
151
|
form_params = {}
|
151
152
|
|
152
153
|
# http body (model)
|
153
|
-
post_body =
|
154
|
+
post_body = @api_client.object_to_http_body(opts[:'service_request'])
|
154
155
|
|
155
156
|
|
156
157
|
auth_names = ['authorization']
|
157
|
-
@api_client.call_api(:POST, path,
|
158
|
+
result = @api_client.call_api(:POST, path,
|
158
159
|
:header_params => header_params,
|
159
160
|
:query_params => query_params,
|
160
161
|
:form_params => form_params,
|
161
162
|
:body => post_body,
|
162
|
-
:auth_names => auth_names
|
163
|
+
:auth_names => auth_names,
|
164
|
+
:return_type => 'Service')
|
163
165
|
if Configuration.debugging
|
164
|
-
Configuration.logger.debug "API called: ServicesAndBindingsApi#services_post"
|
166
|
+
Configuration.logger.debug "API called: ServicesAndBindingsApi#services_post. Result: #{result.inspect}"
|
165
167
|
end
|
166
|
-
return
|
168
|
+
return result
|
167
169
|
end
|
168
170
|
|
169
171
|
# Deletes the specified service.
|
@@ -8,114 +8,6 @@ module Apcera
|
|
8
8
|
@api_client = api_client || Configuration.api_client
|
9
9
|
end
|
10
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
11
|
# Returns information about the API server.
|
120
12
|
# Returns information about the API server.
|
121
13
|
# @param [Hash] opts the optional parameters
|
@@ -218,8 +110,8 @@ module Apcera
|
|
218
110
|
return result
|
219
111
|
end
|
220
112
|
|
221
|
-
# Lists
|
222
|
-
# Lists file names and patterns used to determine the appropriate
|
113
|
+
# Lists supported workload runtimes.
|
114
|
+
# Lists file names and patterns used by APC to determine the appropriate staging pipeline to stage a given workload.
|
223
115
|
# @param [Hash] opts the optional parameters
|
224
116
|
# @option opts [String] :authorization
|
225
117
|
# @return [Array<Runtime>]
|
@@ -269,11 +161,11 @@ module Apcera
|
|
269
161
|
return result
|
270
162
|
end
|
271
163
|
|
272
|
-
# Returns
|
273
|
-
# Returns
|
164
|
+
# Returns Apcera cluster version information and APC download links.
|
165
|
+
# Returns Apcera cluster version information, and links to download compatible versions of APC for supported platforms.
|
274
166
|
# @param [Hash] opts the optional parameters
|
275
167
|
# @option opts [String] :authorization
|
276
|
-
# @return [
|
168
|
+
# @return [VersionInfo]
|
277
169
|
def version_get(opts = {})
|
278
170
|
|
279
171
|
if Configuration.debugging
|
@@ -313,7 +205,7 @@ module Apcera
|
|
313
205
|
:form_params => form_params,
|
314
206
|
:body => post_body,
|
315
207
|
:auth_names => auth_names,
|
316
|
-
:return_type => '
|
208
|
+
:return_type => 'VersionInfo')
|
317
209
|
if Configuration.debugging
|
318
210
|
Configuration.logger.debug "API called: UtilitiesApi#version_get. Result: #{result.inspect}"
|
319
211
|
end
|