fn_ruby 0.1.29 → 0.1.30
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/README.md +31 -31
- data/VERSION +1 -1
- data/docs/App.md +1 -1
- data/docs/AppWrapper.md +1 -1
- data/docs/AppsApi.md +13 -13
- data/docs/AppsWrapper.md +1 -1
- data/docs/Error.md +1 -1
- data/docs/ErrorBody.md +1 -1
- data/docs/NewTask.md +1 -1
- data/docs/Route.md +1 -1
- data/docs/RouteWrapper.md +1 -1
- data/docs/RoutesApi.md +13 -13
- data/docs/RoutesWrapper.md +1 -1
- data/docs/Task.md +1 -1
- data/docs/TaskWrapper.md +1 -1
- data/docs/TasksApi.md +3 -3
- data/docs/Version.md +1 -1
- data/docs/VersionApi.md +3 -3
- data/fn_ruby-0.1.29.gem +0 -0
- data/fn_ruby.gemspec +3 -3
- data/lib/fn_ruby/api/apps_api.rb +1 -1
- data/lib/fn_ruby/api/routes_api.rb +1 -1
- data/lib/fn_ruby/api/tasks_api.rb +1 -1
- data/lib/fn_ruby/api/version_api.rb +1 -1
- data/lib/fn_ruby/api_client.rb +2 -2
- data/lib/fn_ruby/api_error.rb +1 -1
- data/lib/fn_ruby/configuration.rb +1 -1
- data/lib/fn_ruby/models/app.rb +2 -2
- data/lib/fn_ruby/models/app_wrapper.rb +2 -2
- data/lib/fn_ruby/models/apps_wrapper.rb +2 -2
- data/lib/fn_ruby/models/error.rb +2 -2
- data/lib/fn_ruby/models/error_body.rb +2 -2
- data/lib/fn_ruby/models/new_task.rb +2 -2
- data/lib/fn_ruby/models/route.rb +2 -2
- data/lib/fn_ruby/models/route_wrapper.rb +2 -2
- data/lib/fn_ruby/models/routes_wrapper.rb +2 -2
- data/lib/fn_ruby/models/task.rb +2 -2
- data/lib/fn_ruby/models/task_wrapper.rb +2 -2
- data/lib/fn_ruby/models/version.rb +2 -2
- data/lib/fn_ruby/version.rb +2 -2
- data/lib/fn_ruby.rb +2 -2
- data/spec/api/apps_api_spec.rb +3 -3
- data/spec/api/routes_api_spec.rb +3 -3
- data/spec/api/tasks_api_spec.rb +3 -3
- data/spec/api/version_api_spec.rb +3 -3
- data/spec/api_client_spec.rb +29 -29
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/app_spec.rb +3 -3
- data/spec/models/app_wrapper_spec.rb +3 -3
- data/spec/models/apps_wrapper_spec.rb +3 -3
- data/spec/models/error_body_spec.rb +3 -3
- data/spec/models/error_spec.rb +3 -3
- data/spec/models/new_task_spec.rb +3 -3
- data/spec/models/route_spec.rb +3 -3
- data/spec/models/route_wrapper_spec.rb +3 -3
- data/spec/models/routes_wrapper_spec.rb +3 -3
- data/spec/models/task_spec.rb +3 -3
- data/spec/models/task_wrapper_spec.rb +3 -3
- data/spec/models/version_spec.rb +3 -3
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1c9722a40dbbe4e5d604402259f7ffa19c72feea
|
4
|
+
data.tar.gz: a98ce37f3135cb3aac92f6919794aac0ff6f726b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e6344d205371089d462d1739b0a1059bbd1379523782b7607b99589226acc913b7d41fc0b2a592b822e41beb35d0f86a0bb3bc5a25460d4bf5f6882e4b37f6e9
|
7
|
+
data.tar.gz: 06f74f7f8da65a54986e7dc247a05d99aeaf5bd0a72798c1d38691b3ccdc866a1036fe83e89722475177e1f16c9940581ac8ca7c37f65d6724f7de0e86b16e3e
|
data/README.md
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
# fn_ruby
|
2
2
|
|
3
|
-
|
3
|
+
Fn - the Ruby gem for the IronFunctions
|
4
4
|
|
5
5
|
The open source serverless platform.
|
6
6
|
|
7
7
|
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
8
8
|
|
9
9
|
- API version: 0.1.29
|
10
|
-
- Package version: 0.1.
|
10
|
+
- Package version: 0.1.30
|
11
11
|
- Build package: io.swagger.codegen.languages.RubyClientCodegen
|
12
12
|
|
13
13
|
## Installation
|
@@ -23,15 +23,15 @@ gem build fn_ruby.gemspec
|
|
23
23
|
Then either install the gem locally:
|
24
24
|
|
25
25
|
```shell
|
26
|
-
gem install ./fn_ruby-0.1.
|
26
|
+
gem install ./fn_ruby-0.1.30.gem
|
27
27
|
```
|
28
|
-
(for development, run `gem install --dev ./fn_ruby-0.1.
|
28
|
+
(for development, run `gem install --dev ./fn_ruby-0.1.30.gem` to install the development dependencies)
|
29
29
|
|
30
30
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
31
31
|
|
32
32
|
Finally add this to the Gemfile:
|
33
33
|
|
34
|
-
gem 'fn_ruby', '~> 0.1.
|
34
|
+
gem 'fn_ruby', '~> 0.1.30'
|
35
35
|
|
36
36
|
### Install from Git
|
37
37
|
|
@@ -54,7 +54,7 @@ Please follow the [installation](#installation) procedure and then run the follo
|
|
54
54
|
# Load the gem
|
55
55
|
require 'fn_ruby'
|
56
56
|
|
57
|
-
api_instance =
|
57
|
+
api_instance = Fn::AppsApi.new
|
58
58
|
|
59
59
|
app = "app_example" # String | Name of the app.
|
60
60
|
|
@@ -62,7 +62,7 @@ app = "app_example" # String | Name of the app.
|
|
62
62
|
begin
|
63
63
|
#Delete an app.
|
64
64
|
api_instance.apps_app_delete(app)
|
65
|
-
rescue
|
65
|
+
rescue Fn::ApiError => e
|
66
66
|
puts "Exception when calling AppsApi->apps_app_delete: #{e}"
|
67
67
|
end
|
68
68
|
|
@@ -74,34 +74,34 @@ All URIs are relative to *https://127.0.0.1:8080/v1*
|
|
74
74
|
|
75
75
|
Class | Method | HTTP request | Description
|
76
76
|
------------ | ------------- | ------------- | -------------
|
77
|
-
*
|
78
|
-
*
|
79
|
-
*
|
80
|
-
*
|
81
|
-
*
|
82
|
-
*
|
83
|
-
*
|
84
|
-
*
|
85
|
-
*
|
86
|
-
*
|
87
|
-
*
|
88
|
-
*
|
77
|
+
*Fn::AppsApi* | [**apps_app_delete**](docs/AppsApi.md#apps_app_delete) | **DELETE** /apps/{app} | Delete an app.
|
78
|
+
*Fn::AppsApi* | [**apps_app_get**](docs/AppsApi.md#apps_app_get) | **GET** /apps/{app} | Get information for a app.
|
79
|
+
*Fn::AppsApi* | [**apps_app_patch**](docs/AppsApi.md#apps_app_patch) | **PATCH** /apps/{app} | Updates an app.
|
80
|
+
*Fn::AppsApi* | [**apps_get**](docs/AppsApi.md#apps_get) | **GET** /apps | Get all app names.
|
81
|
+
*Fn::AppsApi* | [**apps_post**](docs/AppsApi.md#apps_post) | **POST** /apps | Post new app
|
82
|
+
*Fn::RoutesApi* | [**apps_app_routes_get**](docs/RoutesApi.md#apps_app_routes_get) | **GET** /apps/{app}/routes | Get route list by app name.
|
83
|
+
*Fn::RoutesApi* | [**apps_app_routes_post**](docs/RoutesApi.md#apps_app_routes_post) | **POST** /apps/{app}/routes | Create new Route
|
84
|
+
*Fn::RoutesApi* | [**apps_app_routes_route_delete**](docs/RoutesApi.md#apps_app_routes_route_delete) | **DELETE** /apps/{app}/routes/{route} | Deletes the route
|
85
|
+
*Fn::RoutesApi* | [**apps_app_routes_route_get**](docs/RoutesApi.md#apps_app_routes_route_get) | **GET** /apps/{app}/routes/{route} | Gets route by name
|
86
|
+
*Fn::RoutesApi* | [**apps_app_routes_route_patch**](docs/RoutesApi.md#apps_app_routes_route_patch) | **PATCH** /apps/{app}/routes/{route} | Update a Route
|
87
|
+
*Fn::TasksApi* | [**tasks_get**](docs/TasksApi.md#tasks_get) | **GET** /tasks | Get next task.
|
88
|
+
*Fn::VersionApi* | [**version_get**](docs/VersionApi.md#version_get) | **GET** /version | Get daemon version.
|
89
89
|
|
90
90
|
|
91
91
|
## Documentation for Models
|
92
92
|
|
93
|
-
- [
|
94
|
-
- [
|
95
|
-
- [
|
96
|
-
- [
|
97
|
-
- [
|
98
|
-
- [
|
99
|
-
- [
|
100
|
-
- [
|
101
|
-
- [
|
102
|
-
- [
|
103
|
-
- [
|
104
|
-
- [
|
93
|
+
- [Fn::App](docs/App.md)
|
94
|
+
- [Fn::AppWrapper](docs/AppWrapper.md)
|
95
|
+
- [Fn::AppsWrapper](docs/AppsWrapper.md)
|
96
|
+
- [Fn::Error](docs/Error.md)
|
97
|
+
- [Fn::ErrorBody](docs/ErrorBody.md)
|
98
|
+
- [Fn::NewTask](docs/NewTask.md)
|
99
|
+
- [Fn::Route](docs/Route.md)
|
100
|
+
- [Fn::RouteWrapper](docs/RouteWrapper.md)
|
101
|
+
- [Fn::RoutesWrapper](docs/RoutesWrapper.md)
|
102
|
+
- [Fn::TaskWrapper](docs/TaskWrapper.md)
|
103
|
+
- [Fn::Version](docs/Version.md)
|
104
|
+
- [Fn::Task](docs/Task.md)
|
105
105
|
|
106
106
|
|
107
107
|
## Documentation for Authorization
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.30
|
data/docs/App.md
CHANGED
data/docs/AppWrapper.md
CHANGED
data/docs/AppsApi.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# Fn::AppsApi
|
2
2
|
|
3
3
|
All URIs are relative to *https://127.0.0.1:8080/v1*
|
4
4
|
|
@@ -23,7 +23,7 @@ Delete an app.
|
|
23
23
|
# load the gem
|
24
24
|
require 'fn_ruby'
|
25
25
|
|
26
|
-
api_instance =
|
26
|
+
api_instance = Fn::AppsApi.new
|
27
27
|
|
28
28
|
app = "app_example" # String | Name of the app.
|
29
29
|
|
@@ -31,7 +31,7 @@ app = "app_example" # String | Name of the app.
|
|
31
31
|
begin
|
32
32
|
#Delete an app.
|
33
33
|
api_instance.apps_app_delete(app)
|
34
|
-
rescue
|
34
|
+
rescue Fn::ApiError => e
|
35
35
|
puts "Exception when calling AppsApi->apps_app_delete: #{e}"
|
36
36
|
end
|
37
37
|
```
|
@@ -69,7 +69,7 @@ This gives more details about a app, such as statistics.
|
|
69
69
|
# load the gem
|
70
70
|
require 'fn_ruby'
|
71
71
|
|
72
|
-
api_instance =
|
72
|
+
api_instance = Fn::AppsApi.new
|
73
73
|
|
74
74
|
app = "app_example" # String | name of the app.
|
75
75
|
|
@@ -78,7 +78,7 @@ begin
|
|
78
78
|
#Get information for a app.
|
79
79
|
result = api_instance.apps_app_get(app)
|
80
80
|
p result
|
81
|
-
rescue
|
81
|
+
rescue Fn::ApiError => e
|
82
82
|
puts "Exception when calling AppsApi->apps_app_get: #{e}"
|
83
83
|
end
|
84
84
|
```
|
@@ -116,18 +116,18 @@ You can set app level settings here.
|
|
116
116
|
# load the gem
|
117
117
|
require 'fn_ruby'
|
118
118
|
|
119
|
-
api_instance =
|
119
|
+
api_instance = Fn::AppsApi.new
|
120
120
|
|
121
121
|
app = "app_example" # String | name of the app.
|
122
122
|
|
123
|
-
body =
|
123
|
+
body = Fn::AppWrapper.new # AppWrapper | App to post.
|
124
124
|
|
125
125
|
|
126
126
|
begin
|
127
127
|
#Updates an app.
|
128
128
|
result = api_instance.apps_app_patch(app, body)
|
129
129
|
p result
|
130
|
-
rescue
|
130
|
+
rescue Fn::ApiError => e
|
131
131
|
puts "Exception when calling AppsApi->apps_app_patch: #{e}"
|
132
132
|
end
|
133
133
|
```
|
@@ -166,13 +166,13 @@ Get a list of all the apps in the system.
|
|
166
166
|
# load the gem
|
167
167
|
require 'fn_ruby'
|
168
168
|
|
169
|
-
api_instance =
|
169
|
+
api_instance = Fn::AppsApi.new
|
170
170
|
|
171
171
|
begin
|
172
172
|
#Get all app names.
|
173
173
|
result = api_instance.apps_get
|
174
174
|
p result
|
175
|
-
rescue
|
175
|
+
rescue Fn::ApiError => e
|
176
176
|
puts "Exception when calling AppsApi->apps_get: #{e}"
|
177
177
|
end
|
178
178
|
```
|
@@ -207,16 +207,16 @@ Insert a new app
|
|
207
207
|
# load the gem
|
208
208
|
require 'fn_ruby'
|
209
209
|
|
210
|
-
api_instance =
|
210
|
+
api_instance = Fn::AppsApi.new
|
211
211
|
|
212
|
-
body =
|
212
|
+
body = Fn::AppWrapper.new # AppWrapper | App to post.
|
213
213
|
|
214
214
|
|
215
215
|
begin
|
216
216
|
#Post new app
|
217
217
|
result = api_instance.apps_post(body)
|
218
218
|
p result
|
219
|
-
rescue
|
219
|
+
rescue Fn::ApiError => e
|
220
220
|
puts "Exception when calling AppsApi->apps_post: #{e}"
|
221
221
|
end
|
222
222
|
```
|
data/docs/AppsWrapper.md
CHANGED
data/docs/Error.md
CHANGED
data/docs/ErrorBody.md
CHANGED
data/docs/NewTask.md
CHANGED
data/docs/Route.md
CHANGED
data/docs/RouteWrapper.md
CHANGED
data/docs/RoutesApi.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# Fn::RoutesApi
|
2
2
|
|
3
3
|
All URIs are relative to *https://127.0.0.1:8080/v1*
|
4
4
|
|
@@ -23,7 +23,7 @@ This will list routes for a particular app.
|
|
23
23
|
# load the gem
|
24
24
|
require 'fn_ruby'
|
25
25
|
|
26
|
-
api_instance =
|
26
|
+
api_instance = Fn::RoutesApi.new
|
27
27
|
|
28
28
|
app = "app_example" # String | Name of app for this set of routes.
|
29
29
|
|
@@ -32,7 +32,7 @@ begin
|
|
32
32
|
#Get route list by app name.
|
33
33
|
result = api_instance.apps_app_routes_get(app)
|
34
34
|
p result
|
35
|
-
rescue
|
35
|
+
rescue Fn::ApiError => e
|
36
36
|
puts "Exception when calling RoutesApi->apps_app_routes_get: #{e}"
|
37
37
|
end
|
38
38
|
```
|
@@ -70,18 +70,18 @@ Create a new route in an app, if app doesn't exists, it creates the app
|
|
70
70
|
# load the gem
|
71
71
|
require 'fn_ruby'
|
72
72
|
|
73
|
-
api_instance =
|
73
|
+
api_instance = Fn::RoutesApi.new
|
74
74
|
|
75
75
|
app = "app_example" # String | name of the app.
|
76
76
|
|
77
|
-
body =
|
77
|
+
body = Fn::RouteWrapper.new # RouteWrapper | One route to post.
|
78
78
|
|
79
79
|
|
80
80
|
begin
|
81
81
|
#Create new Route
|
82
82
|
result = api_instance.apps_app_routes_post(app, body)
|
83
83
|
p result
|
84
|
-
rescue
|
84
|
+
rescue Fn::ApiError => e
|
85
85
|
puts "Exception when calling RoutesApi->apps_app_routes_post: #{e}"
|
86
86
|
end
|
87
87
|
```
|
@@ -120,7 +120,7 @@ Deletes the route.
|
|
120
120
|
# load the gem
|
121
121
|
require 'fn_ruby'
|
122
122
|
|
123
|
-
api_instance =
|
123
|
+
api_instance = Fn::RoutesApi.new
|
124
124
|
|
125
125
|
app = "app_example" # String | Name of app for this set of routes.
|
126
126
|
|
@@ -130,7 +130,7 @@ route = "route_example" # String | Route name
|
|
130
130
|
begin
|
131
131
|
#Deletes the route
|
132
132
|
api_instance.apps_app_routes_route_delete(app, route)
|
133
|
-
rescue
|
133
|
+
rescue Fn::ApiError => e
|
134
134
|
puts "Exception when calling RoutesApi->apps_app_routes_route_delete: #{e}"
|
135
135
|
end
|
136
136
|
```
|
@@ -169,7 +169,7 @@ Gets a route by name.
|
|
169
169
|
# load the gem
|
170
170
|
require 'fn_ruby'
|
171
171
|
|
172
|
-
api_instance =
|
172
|
+
api_instance = Fn::RoutesApi.new
|
173
173
|
|
174
174
|
app = "app_example" # String | Name of app for this set of routes.
|
175
175
|
|
@@ -180,7 +180,7 @@ begin
|
|
180
180
|
#Gets route by name
|
181
181
|
result = api_instance.apps_app_routes_route_get(app, route)
|
182
182
|
p result
|
183
|
-
rescue
|
183
|
+
rescue Fn::ApiError => e
|
184
184
|
puts "Exception when calling RoutesApi->apps_app_routes_route_get: #{e}"
|
185
185
|
end
|
186
186
|
```
|
@@ -219,20 +219,20 @@ Update a route
|
|
219
219
|
# load the gem
|
220
220
|
require 'fn_ruby'
|
221
221
|
|
222
|
-
api_instance =
|
222
|
+
api_instance = Fn::RoutesApi.new
|
223
223
|
|
224
224
|
app = "app_example" # String | name of the app.
|
225
225
|
|
226
226
|
route = "route_example" # String | route path.
|
227
227
|
|
228
|
-
body =
|
228
|
+
body = Fn::RouteWrapper.new # RouteWrapper | One route to post.
|
229
229
|
|
230
230
|
|
231
231
|
begin
|
232
232
|
#Update a Route
|
233
233
|
result = api_instance.apps_app_routes_route_patch(app, route, body)
|
234
234
|
p result
|
235
|
-
rescue
|
235
|
+
rescue Fn::ApiError => e
|
236
236
|
puts "Exception when calling RoutesApi->apps_app_routes_route_patch: #{e}"
|
237
237
|
end
|
238
238
|
```
|
data/docs/RoutesWrapper.md
CHANGED
data/docs/Task.md
CHANGED
data/docs/TaskWrapper.md
CHANGED
data/docs/TasksApi.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# Fn::TasksApi
|
2
2
|
|
3
3
|
All URIs are relative to *https://127.0.0.1:8080/v1*
|
4
4
|
|
@@ -19,13 +19,13 @@ Gets the next task in the queue, ready for processing. Consumers should start pr
|
|
19
19
|
# load the gem
|
20
20
|
require 'fn_ruby'
|
21
21
|
|
22
|
-
api_instance =
|
22
|
+
api_instance = Fn::TasksApi.new
|
23
23
|
|
24
24
|
begin
|
25
25
|
#Get next task.
|
26
26
|
result = api_instance.tasks_get
|
27
27
|
p result
|
28
|
-
rescue
|
28
|
+
rescue Fn::ApiError => e
|
29
29
|
puts "Exception when calling TasksApi->tasks_get: #{e}"
|
30
30
|
end
|
31
31
|
```
|
data/docs/Version.md
CHANGED
data/docs/VersionApi.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# Fn::VersionApi
|
2
2
|
|
3
3
|
All URIs are relative to *https://127.0.0.1:8080/v1*
|
4
4
|
|
@@ -17,13 +17,13 @@ Get daemon version.
|
|
17
17
|
# load the gem
|
18
18
|
require 'fn_ruby'
|
19
19
|
|
20
|
-
api_instance =
|
20
|
+
api_instance = Fn::VersionApi.new
|
21
21
|
|
22
22
|
begin
|
23
23
|
#Get daemon version.
|
24
24
|
result = api_instance.version_get
|
25
25
|
p result
|
26
|
-
rescue
|
26
|
+
rescue Fn::ApiError => e
|
27
27
|
puts "Exception when calling VersionApi->version_get: #{e}"
|
28
28
|
end
|
29
29
|
```
|
data/fn_ruby-0.1.29.gem
ADDED
Binary file
|
data/fn_ruby.gemspec
CHANGED
@@ -17,13 +17,13 @@ require "fn_ruby/version"
|
|
17
17
|
|
18
18
|
Gem::Specification.new do |s|
|
19
19
|
s.name = "fn_ruby"
|
20
|
-
s.version =
|
20
|
+
s.version = Fn::VERSION
|
21
21
|
s.platform = Gem::Platform::RUBY
|
22
22
|
s.authors = ["Swagger-Codegen"]
|
23
23
|
s.email = ["treeder@gmail.com"]
|
24
24
|
s.homepage = "https://github.com/fnproject/fn_ruby"
|
25
|
-
s.summary = "Ruby gem for
|
26
|
-
s.description = "Ruby gem for
|
25
|
+
s.summary = "Ruby gem for Fn Project"
|
26
|
+
s.description = "Ruby gem for Fn Project."
|
27
27
|
# TODO uncommnet and update below with a proper license
|
28
28
|
#s.license = "Apache 2.0"
|
29
29
|
s.required_ruby_version = ">= 1.9"
|
data/lib/fn_ruby/api/apps_api.rb
CHANGED
data/lib/fn_ruby/api_client.rb
CHANGED
@@ -17,7 +17,7 @@ require 'tempfile'
|
|
17
17
|
require 'typhoeus'
|
18
18
|
require 'uri'
|
19
19
|
|
20
|
-
module
|
20
|
+
module Fn
|
21
21
|
class ApiClient
|
22
22
|
# The Configuration object holding settings to be used in the API client.
|
23
23
|
attr_accessor :config
|
@@ -209,7 +209,7 @@ module OracleFunctions
|
|
209
209
|
end
|
210
210
|
else
|
211
211
|
# models, e.g. Pet
|
212
|
-
|
212
|
+
Fn.const_get(return_type).new.tap do |model|
|
213
213
|
model.build_from_hash data
|
214
214
|
end
|
215
215
|
end
|
data/lib/fn_ruby/api_error.rb
CHANGED
data/lib/fn_ruby/models/app.rb
CHANGED
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.2.3
|
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
|
15
|
-
module
|
15
|
+
module Fn
|
16
16
|
|
17
17
|
class App
|
18
18
|
# Name of this app. Must be different than the image name. Can ony contain alphanumeric, -, and _.
|
@@ -149,7 +149,7 @@ module OracleFunctions
|
|
149
149
|
end
|
150
150
|
end
|
151
151
|
else # model
|
152
|
-
temp_model =
|
152
|
+
temp_model = Fn.const_get(type).new
|
153
153
|
temp_model.build_from_hash(value)
|
154
154
|
end
|
155
155
|
end
|
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.2.3
|
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
|
15
|
-
module
|
15
|
+
module Fn
|
16
16
|
|
17
17
|
class AppWrapper
|
18
18
|
attr_accessor :app
|
@@ -150,7 +150,7 @@ module OracleFunctions
|
|
150
150
|
end
|
151
151
|
end
|
152
152
|
else # model
|
153
|
-
temp_model =
|
153
|
+
temp_model = Fn.const_get(type).new
|
154
154
|
temp_model.build_from_hash(value)
|
155
155
|
end
|
156
156
|
end
|
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.2.3
|
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
|
15
|
-
module
|
15
|
+
module Fn
|
16
16
|
|
17
17
|
class AppsWrapper
|
18
18
|
attr_accessor :apps
|
@@ -152,7 +152,7 @@ module OracleFunctions
|
|
152
152
|
end
|
153
153
|
end
|
154
154
|
else # model
|
155
|
-
temp_model =
|
155
|
+
temp_model = Fn.const_get(type).new
|
156
156
|
temp_model.build_from_hash(value)
|
157
157
|
end
|
158
158
|
end
|
data/lib/fn_ruby/models/error.rb
CHANGED
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.2.3
|
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
|
15
|
-
module
|
15
|
+
module Fn
|
16
16
|
|
17
17
|
class Error
|
18
18
|
attr_accessor :error
|
@@ -136,7 +136,7 @@ module OracleFunctions
|
|
136
136
|
end
|
137
137
|
end
|
138
138
|
else # model
|
139
|
-
temp_model =
|
139
|
+
temp_model = Fn.const_get(type).new
|
140
140
|
temp_model.build_from_hash(value)
|
141
141
|
end
|
142
142
|
end
|
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.2.3
|
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
|
15
|
-
module
|
15
|
+
module Fn
|
16
16
|
|
17
17
|
class ErrorBody
|
18
18
|
attr_accessor :message
|
@@ -145,7 +145,7 @@ module OracleFunctions
|
|
145
145
|
end
|
146
146
|
end
|
147
147
|
else # model
|
148
|
-
temp_model =
|
148
|
+
temp_model = Fn.const_get(type).new
|
149
149
|
temp_model.build_from_hash(value)
|
150
150
|
end
|
151
151
|
end
|