fn_ruby 0.1.32 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +19 -12
  3. data/VERSION +1 -1
  4. data/docs/Call.md +14 -0
  5. data/docs/CallApi.md +212 -0
  6. data/docs/CallWrapper.md +8 -0
  7. data/docs/CallsWrapper.md +9 -0
  8. data/docs/Log.md +9 -0
  9. data/docs/LogApi.md +109 -0
  10. data/docs/LogWrapper.md +8 -0
  11. data/docs/Route.md +2 -3
  12. data/docs/RoutesApi.md +58 -4
  13. data/fn_ruby-0.1.32.gem +0 -0
  14. data/fn_ruby.gemspec +2 -2
  15. data/lib/fn_ruby.rb +9 -7
  16. data/lib/fn_ruby/api/apps_api.rb +2 -2
  17. data/lib/fn_ruby/api/call_api.rb +263 -0
  18. data/lib/fn_ruby/api/log_api.rb +144 -0
  19. data/lib/fn_ruby/api/routes_api.rb +73 -6
  20. data/lib/fn_ruby/api_client.rb +2 -2
  21. data/lib/fn_ruby/api_error.rb +2 -2
  22. data/lib/fn_ruby/configuration.rb +2 -2
  23. data/lib/fn_ruby/models/app.rb +2 -2
  24. data/lib/fn_ruby/models/app_wrapper.rb +2 -2
  25. data/lib/fn_ruby/models/apps_wrapper.rb +2 -2
  26. data/lib/fn_ruby/models/call.rb +249 -0
  27. data/lib/fn_ruby/models/call_wrapper.rb +194 -0
  28. data/lib/fn_ruby/models/calls_wrapper.rb +204 -0
  29. data/lib/fn_ruby/models/error.rb +2 -2
  30. data/lib/fn_ruby/models/error_body.rb +2 -2
  31. data/lib/fn_ruby/models/log.rb +198 -0
  32. data/lib/fn_ruby/models/log_wrapper.rb +194 -0
  33. data/lib/fn_ruby/models/route.rb +7 -13
  34. data/lib/fn_ruby/models/route_wrapper.rb +2 -2
  35. data/lib/fn_ruby/models/routes_wrapper.rb +2 -2
  36. data/lib/fn_ruby/models/version.rb +2 -2
  37. data/lib/fn_ruby/version.rb +3 -3
  38. data/spec/api/apps_api_spec.rb +2 -2
  39. data/spec/api/call_api_spec.rb +87 -0
  40. data/spec/api/log_api_spec.rb +61 -0
  41. data/spec/api/routes_api_spec.rb +18 -4
  42. data/spec/api_client_spec.rb +2 -2
  43. data/spec/configuration_spec.rb +2 -2
  44. data/spec/models/app_spec.rb +2 -2
  45. data/spec/models/app_wrapper_spec.rb +2 -2
  46. data/spec/models/apps_wrapper_spec.rb +2 -2
  47. data/spec/models/call_spec.rb +78 -0
  48. data/spec/models/call_wrapper_spec.rb +42 -0
  49. data/spec/models/calls_wrapper_spec.rb +48 -0
  50. data/spec/models/error_body_spec.rb +2 -2
  51. data/spec/models/error_spec.rb +2 -2
  52. data/spec/models/log_spec.rb +48 -0
  53. data/spec/models/log_wrapper_spec.rb +42 -0
  54. data/spec/models/route_spec.rb +2 -8
  55. data/spec/models/route_wrapper_spec.rb +2 -2
  56. data/spec/models/routes_wrapper_spec.rb +2 -2
  57. data/spec/models/version_spec.rb +2 -2
  58. data/spec/spec_helper.rb +2 -2
  59. metadata +31 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e633aca92e1d1b80c3ee8898cd41920695a7f4fc
4
- data.tar.gz: d3f25a7777cff3ab628dda03e5b0334bf64ba5b5
3
+ metadata.gz: 341845231cdfded908d2a41cf8633fddb8d8dcc9
4
+ data.tar.gz: 501dc9f2731a0ce243cbaa9cd2521c95799d0eb5
5
5
  SHA512:
6
- metadata.gz: 26ce679815dd73626af613f3e987995f067f889ef0c58aeef6290d34d896520dd8acfaaf1877f23fe507e560ea6e0684e252e053c76351cd00d10e24cc6dcdd0
7
- data.tar.gz: f581e3782435eb411bd1088b6d3d0162f28be3d61a3b433634f1c594c4ed6df75957f2b2010fb4ad86ddd4e7b07d81ba229fd42cbfaec5c78bae67b19ec7a5fc
6
+ metadata.gz: 361bb201dac9733a58d23f82997505cc3cde4536e3db586742517fc3e75494f737efe5c42db5f656d9b3fd046ef06d1cc4a0fd6fa6580858b13a8d109d018436
7
+ data.tar.gz: 79058570cd983c33d41a03a1f0671a6e0ac69b6d9db49a9d83794bcde4524749fb11ae5eb4c3067fa6791d5337beaa61ecccb41f568f6c598899d200a3c78182
data/README.md CHANGED
@@ -1,13 +1,13 @@
1
1
  # fn_ruby
2
2
 
3
- Fn - the Ruby gem for the IronFunctions
3
+ Fn - the Ruby gem for the fn
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
- - API version: 0.1.29
10
- - Package version: 0.1.32
9
+ - API version: 0.2.0
10
+ - Package version: 0.2.0
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.32.gem
26
+ gem install ./fn_ruby-0.2.0.gem
27
27
  ```
28
- (for development, run `gem install --dev ./fn_ruby-0.1.32.gem` to install the development dependencies)
28
+ (for development, run `gem install --dev ./fn_ruby-0.2.0.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.32'
34
+ gem 'fn_ruby', '~> 0.2.0'
35
35
 
36
36
  ### Install from Git
37
37
 
@@ -79,13 +79,18 @@ Class | Method | HTTP request | Description
79
79
  *Fn::AppsApi* | [**apps_app_patch**](docs/AppsApi.md#apps_app_patch) | **PATCH** /apps/{app} | Updates an app.
80
80
  *Fn::AppsApi* | [**apps_get**](docs/AppsApi.md#apps_get) | **GET** /apps | Get all app names.
81
81
  *Fn::AppsApi* | [**apps_post**](docs/AppsApi.md#apps_post) | **POST** /apps | Post new app
82
+ *Fn::CallApi* | [**apps_app_calls_call_get**](docs/CallApi.md#apps_app_calls_call_get) | **GET** /apps/{app}/calls/{call} | Get call information
83
+ *Fn::CallApi* | [**apps_app_calls_call_log_delete**](docs/CallApi.md#apps_app_calls_call_log_delete) | **DELETE** /apps/{app}/calls/{call}/log | Delete call log entry
84
+ *Fn::CallApi* | [**apps_app_calls_call_log_get**](docs/CallApi.md#apps_app_calls_call_log_get) | **GET** /apps/{app}/calls/{call}/log | Get call logs
85
+ *Fn::CallApi* | [**apps_app_calls_get**](docs/CallApi.md#apps_app_calls_get) | **GET** /apps/{app}/calls | Get app-bound calls.
86
+ *Fn::LogApi* | [**apps_app_calls_call_log_delete**](docs/LogApi.md#apps_app_calls_call_log_delete) | **DELETE** /apps/{app}/calls/{call}/log | Delete call log entry
87
+ *Fn::LogApi* | [**apps_app_calls_call_log_get**](docs/LogApi.md#apps_app_calls_call_log_get) | **GET** /apps/{app}/calls/{call}/log | Get call logs
82
88
  *Fn::RoutesApi* | [**apps_app_routes_get**](docs/RoutesApi.md#apps_app_routes_get) | **GET** /apps/{app}/routes | Get route list by app name.
83
89
  *Fn::RoutesApi* | [**apps_app_routes_post**](docs/RoutesApi.md#apps_app_routes_post) | **POST** /apps/{app}/routes | Create new Route
84
90
  *Fn::RoutesApi* | [**apps_app_routes_route_delete**](docs/RoutesApi.md#apps_app_routes_route_delete) | **DELETE** /apps/{app}/routes/{route} | Deletes the route
85
91
  *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.
92
+ *Fn::RoutesApi* | [**apps_app_routes_route_patch**](docs/RoutesApi.md#apps_app_routes_route_patch) | **PATCH** /apps/{app}/routes/{route} | Update a Route, Fails if the route or app does not exist. Accepts partial updates / skips validation of zero values.
93
+ *Fn::RoutesApi* | [**apps_app_routes_route_put**](docs/RoutesApi.md#apps_app_routes_route_put) | **PUT** /apps/{app}/routes/{route} | Create a Route if it does not exist. Update if it does. Will also create app if it does not exist. Put does not skip validation of zero values
89
94
 
90
95
 
91
96
  ## Documentation for Models
@@ -93,15 +98,17 @@ Class | Method | HTTP request | Description
93
98
  - [Fn::App](docs/App.md)
94
99
  - [Fn::AppWrapper](docs/AppWrapper.md)
95
100
  - [Fn::AppsWrapper](docs/AppsWrapper.md)
101
+ - [Fn::Call](docs/Call.md)
102
+ - [Fn::CallWrapper](docs/CallWrapper.md)
103
+ - [Fn::CallsWrapper](docs/CallsWrapper.md)
96
104
  - [Fn::Error](docs/Error.md)
97
105
  - [Fn::ErrorBody](docs/ErrorBody.md)
98
- - [Fn::NewTask](docs/NewTask.md)
106
+ - [Fn::Log](docs/Log.md)
107
+ - [Fn::LogWrapper](docs/LogWrapper.md)
99
108
  - [Fn::Route](docs/Route.md)
100
109
  - [Fn::RouteWrapper](docs/RouteWrapper.md)
101
110
  - [Fn::RoutesWrapper](docs/RoutesWrapper.md)
102
- - [Fn::TaskWrapper](docs/TaskWrapper.md)
103
111
  - [Fn::Version](docs/Version.md)
104
- - [Fn::Task](docs/Task.md)
105
112
 
106
113
 
107
114
  ## Documentation for Authorization
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.32
1
+ 0.2.0
@@ -0,0 +1,14 @@
1
+ # Fn::Call
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **String** | Call UUID ID. | [optional]
7
+ **status** | **String** | Call execution status. | [optional]
8
+ **app_name** | **String** | App name that is assigned to a route that is being executed. | [optional]
9
+ **path** | **String** | App route that is being executed. | [optional]
10
+ **created_at** | **DateTime** | Time when call was submitted. Always in UTC. | [optional]
11
+ **started_at** | **DateTime** | Time when call started execution. Always in UTC. | [optional]
12
+ **completed_at** | **DateTime** | Time when call completed, whether it was successul or failed. Always in UTC. | [optional]
13
+
14
+
@@ -0,0 +1,212 @@
1
+ # Fn::CallApi
2
+
3
+ All URIs are relative to *https://127.0.0.1:8080/v1*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**apps_app_calls_call_get**](CallApi.md#apps_app_calls_call_get) | **GET** /apps/{app}/calls/{call} | Get call information
8
+ [**apps_app_calls_call_log_delete**](CallApi.md#apps_app_calls_call_log_delete) | **DELETE** /apps/{app}/calls/{call}/log | Delete call log entry
9
+ [**apps_app_calls_call_log_get**](CallApi.md#apps_app_calls_call_log_get) | **GET** /apps/{app}/calls/{call}/log | Get call logs
10
+ [**apps_app_calls_get**](CallApi.md#apps_app_calls_get) | **GET** /apps/{app}/calls | Get app-bound calls.
11
+
12
+
13
+ # **apps_app_calls_call_get**
14
+ > CallWrapper apps_app_calls_call_get(app, call)
15
+
16
+ Get call information
17
+
18
+ Get call information
19
+
20
+ ### Example
21
+ ```ruby
22
+ # load the gem
23
+ require 'fn_ruby'
24
+
25
+ api_instance = Fn::CallApi.new
26
+
27
+ app = "app_example" # String | app name
28
+
29
+ call = "call_example" # String | Call ID.
30
+
31
+
32
+ begin
33
+ #Get call information
34
+ result = api_instance.apps_app_calls_call_get(app, call)
35
+ p result
36
+ rescue Fn::ApiError => e
37
+ puts "Exception when calling CallApi->apps_app_calls_call_get: #{e}"
38
+ end
39
+ ```
40
+
41
+ ### Parameters
42
+
43
+ Name | Type | Description | Notes
44
+ ------------- | ------------- | ------------- | -------------
45
+ **app** | **String**| app name |
46
+ **call** | **String**| Call ID. |
47
+
48
+ ### Return type
49
+
50
+ [**CallWrapper**](CallWrapper.md)
51
+
52
+ ### Authorization
53
+
54
+ No authorization required
55
+
56
+ ### HTTP request headers
57
+
58
+ - **Content-Type**: application/json
59
+ - **Accept**: application/json
60
+
61
+
62
+
63
+ # **apps_app_calls_call_log_delete**
64
+ > apps_app_calls_call_log_delete(call, app)
65
+
66
+ Delete call log entry
67
+
68
+ Delete call log entry
69
+
70
+ ### Example
71
+ ```ruby
72
+ # load the gem
73
+ require 'fn_ruby'
74
+
75
+ api_instance = Fn::CallApi.new
76
+
77
+ call = "call_example" # String | Call ID.
78
+
79
+ app = "app_example" # String | App name.
80
+
81
+
82
+ begin
83
+ #Delete call log entry
84
+ api_instance.apps_app_calls_call_log_delete(call, app)
85
+ rescue Fn::ApiError => e
86
+ puts "Exception when calling CallApi->apps_app_calls_call_log_delete: #{e}"
87
+ end
88
+ ```
89
+
90
+ ### Parameters
91
+
92
+ Name | Type | Description | Notes
93
+ ------------- | ------------- | ------------- | -------------
94
+ **call** | **String**| Call ID. |
95
+ **app** | **String**| App name. |
96
+
97
+ ### Return type
98
+
99
+ nil (empty response body)
100
+
101
+ ### Authorization
102
+
103
+ No authorization required
104
+
105
+ ### HTTP request headers
106
+
107
+ - **Content-Type**: application/json
108
+ - **Accept**: application/json
109
+
110
+
111
+
112
+ # **apps_app_calls_call_log_get**
113
+ > LogWrapper apps_app_calls_call_log_get(app, call)
114
+
115
+ Get call logs
116
+
117
+ Get call logs
118
+
119
+ ### Example
120
+ ```ruby
121
+ # load the gem
122
+ require 'fn_ruby'
123
+
124
+ api_instance = Fn::CallApi.new
125
+
126
+ app = "app_example" # String | App Name
127
+
128
+ call = "call_example" # String | Call ID.
129
+
130
+
131
+ begin
132
+ #Get call logs
133
+ result = api_instance.apps_app_calls_call_log_get(app, call)
134
+ p result
135
+ rescue Fn::ApiError => e
136
+ puts "Exception when calling CallApi->apps_app_calls_call_log_get: #{e}"
137
+ end
138
+ ```
139
+
140
+ ### Parameters
141
+
142
+ Name | Type | Description | Notes
143
+ ------------- | ------------- | ------------- | -------------
144
+ **app** | **String**| App Name |
145
+ **call** | **String**| Call ID. |
146
+
147
+ ### Return type
148
+
149
+ [**LogWrapper**](LogWrapper.md)
150
+
151
+ ### Authorization
152
+
153
+ No authorization required
154
+
155
+ ### HTTP request headers
156
+
157
+ - **Content-Type**: application/json
158
+ - **Accept**: application/json
159
+
160
+
161
+
162
+ # **apps_app_calls_get**
163
+ > CallsWrapper apps_app_calls_get(app, opts)
164
+
165
+ Get app-bound calls.
166
+
167
+ Get app-bound calls can filter to route-bound calls.
168
+
169
+ ### Example
170
+ ```ruby
171
+ # load the gem
172
+ require 'fn_ruby'
173
+
174
+ api_instance = Fn::CallApi.new
175
+
176
+ app = "app_example" # String | App name.
177
+
178
+ opts = {
179
+ route: "route_example" # String | App route.
180
+ }
181
+
182
+ begin
183
+ #Get app-bound calls.
184
+ result = api_instance.apps_app_calls_get(app, opts)
185
+ p result
186
+ rescue Fn::ApiError => e
187
+ puts "Exception when calling CallApi->apps_app_calls_get: #{e}"
188
+ end
189
+ ```
190
+
191
+ ### Parameters
192
+
193
+ Name | Type | Description | Notes
194
+ ------------- | ------------- | ------------- | -------------
195
+ **app** | **String**| App name. |
196
+ **route** | **String**| App route. | [optional]
197
+
198
+ ### Return type
199
+
200
+ [**CallsWrapper**](CallsWrapper.md)
201
+
202
+ ### Authorization
203
+
204
+ No authorization required
205
+
206
+ ### HTTP request headers
207
+
208
+ - **Content-Type**: application/json
209
+ - **Accept**: application/json
210
+
211
+
212
+
@@ -0,0 +1,8 @@
1
+ # Fn::CallWrapper
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **call** | [**Call**](Call.md) | Call object. |
7
+
8
+
@@ -0,0 +1,9 @@
1
+ # Fn::CallsWrapper
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **calls** | [**Array<Call>**](Call.md) | |
7
+ **error** | [**ErrorBody**](ErrorBody.md) | | [optional]
8
+
9
+
@@ -0,0 +1,9 @@
1
+ # Fn::Log
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **call_id** | **String** | Call UUID ID | [optional]
7
+ **log** | **String** | | [optional]
8
+
9
+
@@ -0,0 +1,109 @@
1
+ # Fn::LogApi
2
+
3
+ All URIs are relative to *https://127.0.0.1:8080/v1*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**apps_app_calls_call_log_delete**](LogApi.md#apps_app_calls_call_log_delete) | **DELETE** /apps/{app}/calls/{call}/log | Delete call log entry
8
+ [**apps_app_calls_call_log_get**](LogApi.md#apps_app_calls_call_log_get) | **GET** /apps/{app}/calls/{call}/log | Get call logs
9
+
10
+
11
+ # **apps_app_calls_call_log_delete**
12
+ > apps_app_calls_call_log_delete(call, app)
13
+
14
+ Delete call log entry
15
+
16
+ Delete call log entry
17
+
18
+ ### Example
19
+ ```ruby
20
+ # load the gem
21
+ require 'fn_ruby'
22
+
23
+ api_instance = Fn::LogApi.new
24
+
25
+ call = "call_example" # String | Call ID.
26
+
27
+ app = "app_example" # String | App name.
28
+
29
+
30
+ begin
31
+ #Delete call log entry
32
+ api_instance.apps_app_calls_call_log_delete(call, app)
33
+ rescue Fn::ApiError => e
34
+ puts "Exception when calling LogApi->apps_app_calls_call_log_delete: #{e}"
35
+ end
36
+ ```
37
+
38
+ ### Parameters
39
+
40
+ Name | Type | Description | Notes
41
+ ------------- | ------------- | ------------- | -------------
42
+ **call** | **String**| Call ID. |
43
+ **app** | **String**| App name. |
44
+
45
+ ### Return type
46
+
47
+ nil (empty response body)
48
+
49
+ ### Authorization
50
+
51
+ No authorization required
52
+
53
+ ### HTTP request headers
54
+
55
+ - **Content-Type**: application/json
56
+ - **Accept**: application/json
57
+
58
+
59
+
60
+ # **apps_app_calls_call_log_get**
61
+ > LogWrapper apps_app_calls_call_log_get(app, call)
62
+
63
+ Get call logs
64
+
65
+ Get call logs
66
+
67
+ ### Example
68
+ ```ruby
69
+ # load the gem
70
+ require 'fn_ruby'
71
+
72
+ api_instance = Fn::LogApi.new
73
+
74
+ app = "app_example" # String | App Name
75
+
76
+ call = "call_example" # String | Call ID.
77
+
78
+
79
+ begin
80
+ #Get call logs
81
+ result = api_instance.apps_app_calls_call_log_get(app, call)
82
+ p result
83
+ rescue Fn::ApiError => e
84
+ puts "Exception when calling LogApi->apps_app_calls_call_log_get: #{e}"
85
+ end
86
+ ```
87
+
88
+ ### Parameters
89
+
90
+ Name | Type | Description | Notes
91
+ ------------- | ------------- | ------------- | -------------
92
+ **app** | **String**| App Name |
93
+ **call** | **String**| Call ID. |
94
+
95
+ ### Return type
96
+
97
+ [**LogWrapper**](LogWrapper.md)
98
+
99
+ ### Authorization
100
+
101
+ No authorization required
102
+
103
+ ### HTTP request headers
104
+
105
+ - **Content-Type**: application/json
106
+ - **Accept**: application/json
107
+
108
+
109
+