appnigma-sdk 0.1.0 → 0.2.0
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/CHANGELOG.md +34 -0
- data/README.md +29 -19
- data/lib/appnigma/client.rb +4 -4
- data/lib/appnigma/constants.rb +3 -0
- data/lib/appnigma/errors.rb +5 -0
- data/lib/appnigma/generated/api/default_api.rb +3 -3
- data/lib/appnigma/generated/api_client.rb +1 -1
- data/lib/appnigma/generated/api_error.rb +1 -1
- data/lib/appnigma/generated/api_model_base.rb +1 -1
- data/lib/appnigma/generated/configuration.rb +1 -1
- data/lib/appnigma/generated/models/connection_status.rb +1 -1
- data/lib/appnigma/generated/models/create_connection_link_input.rb +1 -1
- data/lib/appnigma/generated/models/create_connection_link_output.rb +1 -1
- data/lib/appnigma/generated/models/crm_company.rb +1 -1
- data/lib/appnigma/generated/models/crm_company_get_output.rb +1 -1
- data/lib/appnigma/generated/models/crm_company_list_output.rb +1 -1
- data/lib/appnigma/generated/models/crm_contact.rb +1 -1
- data/lib/appnigma/generated/models/crm_contact_get_output.rb +1 -1
- data/lib/appnigma/generated/models/crm_contact_list_output.rb +1 -1
- data/lib/appnigma/generated/models/crm_custom_field.rb +1 -1
- data/lib/appnigma/generated/models/crm_deal.rb +1 -1
- data/lib/appnigma/generated/models/crm_deal_get_output.rb +1 -1
- data/lib/appnigma/generated/models/crm_deal_list_output.rb +1 -1
- data/lib/appnigma/generated/models/crm_email.rb +1 -1
- data/lib/appnigma/generated/models/crm_get_input.rb +1 -1
- data/lib/appnigma/generated/models/crm_labelled.rb +1 -1
- data/lib/appnigma/generated/models/crm_list_input.rb +1 -1
- data/lib/appnigma/generated/models/crm_phone.rb +1 -1
- data/lib/appnigma/generated/models/function_entry.rb +2 -37
- data/lib/appnigma/generated/models/function_owner.rb +1 -1
- data/lib/appnigma/generated/models/function_owner_one_of.rb +1 -1
- data/lib/appnigma/generated/models/function_owner_one_of1.rb +1 -1
- data/lib/appnigma/generated/models/get_connection_output.rb +1 -1
- data/lib/appnigma/generated/models/get_guide_output.rb +1 -1
- data/lib/appnigma/generated/models/json_value.rb +1 -1
- data/lib/appnigma/generated/models/list_functions_output.rb +1 -1
- data/lib/appnigma/generated/models/platform_request_input.rb +1 -1
- data/lib/appnigma/generated/models/platform_request_input_body.rb +1 -1
- data/lib/appnigma/generated/models/platform_request_output.rb +1 -1
- data/lib/appnigma/generated/models/post_input.rb +1 -1
- data/lib/appnigma/generated/models/post_input_record_value.rb +1 -1
- data/lib/appnigma/generated/models/post_output.rb +1 -1
- data/lib/appnigma/generated/models/pull_input.rb +1 -1
- data/lib/appnigma/generated/models/pull_output.rb +1 -1
- data/lib/appnigma/generated/models/pull_output_records_inner.rb +1 -1
- data/lib/appnigma/generated/models/ran_as.rb +239 -0
- data/lib/appnigma/generated/models/run_input.rb +4 -31
- data/lib/appnigma/generated/models/run_output.rb +32 -6
- data/lib/appnigma/generated/models/sdk_error.rb +1 -1
- data/lib/appnigma/generated/models/sdk_error_error.rb +3 -3
- data/lib/appnigma/generated/models/sdk_error_error_details.rb +21 -3
- data/lib/appnigma/generated/models/sdk_problem.rb +1 -1
- data/lib/appnigma/generated/version.rb +1 -1
- data/lib/appnigma/generated.rb +2 -1
- data/lib/appnigma/retry.rb +2 -2
- data/lib/appnigma/version.rb +2 -2
- metadata +6 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0fecbc4364d334002fa953f034360d8684a0aace45b7bb6b41af3261176adedc
|
|
4
|
+
data.tar.gz: c0e1eb175cc5d6a6564fb5a71b445e62b2ba7ef337ec8420f590c74c1a5cc1c0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3bc2a714d3fded4fc7103acbd6bce1c842e35cfdea8921c38ac562af599e513b6f38385a438714758073266e3761b09860394debb4a40bd334b42c6af40dcc10
|
|
7
|
+
data.tar.gz: 32c2e31f9de37713f7cc0cb4f9574edd314cc1e59eedac9e935987b624d24dcbc5157d7fbb3847737a8b479b54c759a8a3ed61233b012745f636109953eba736
|
data/CHANGELOG.md
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.2.0
|
|
4
|
+
|
|
5
|
+
Each of your functions now has one live version, and `run` says whose function
|
|
6
|
+
answered. Generated from version 2.0.0 of the API description.
|
|
7
|
+
|
|
8
|
+
### Removed
|
|
9
|
+
|
|
10
|
+
- The `version:` keyword of `run`. `run` always calls the function's live
|
|
11
|
+
version. Code written for 0.1 that passes `version:` fails with
|
|
12
|
+
`ArgumentError: unknown keyword`: drop it when you upgrade, and pin the gem
|
|
13
|
+
with `gem "appnigma-sdk", "~> 0.2"`.
|
|
14
|
+
- `:version` on each entry `catalog` lists.
|
|
15
|
+
|
|
16
|
+
### Added
|
|
17
|
+
|
|
18
|
+
- `ran_as` on the answer of `run`: `{ owner:, version: }`, where `owner` is
|
|
19
|
+
`"end_customer"` when the end customer's own function ran and `"customer"`
|
|
20
|
+
when yours did, and `version` is the version that ran.
|
|
21
|
+
- `FUNCTION_RETIRED` (410): a function that was live and was removed from your
|
|
22
|
+
logic answers with this code, naming the function, its platform and when it
|
|
23
|
+
was retired. It is raised as the new `Appnigma::RetiredError`, and never
|
|
24
|
+
retried.
|
|
25
|
+
|
|
26
|
+
### If you are on 0.1.0
|
|
27
|
+
|
|
28
|
+
- A call to a retired function reaches 0.1.0 as an `Appnigma::ServerError`.
|
|
29
|
+
Do not call it again: it will not answer. Upgrade to see it as
|
|
30
|
+
`Appnigma::RetiredError`.
|
|
31
|
+
|
|
32
|
+
## 0.1.0
|
|
33
|
+
|
|
34
|
+
- The first release, generated from version 1.0.0 of the API description.
|
data/README.md
CHANGED
|
@@ -18,12 +18,15 @@ secret: the key is yours to supply.
|
|
|
18
18
|
gem install appnigma-sdk
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
Or in your Gemfile:
|
|
21
|
+
Or in your Gemfile, pinned to the release line you wrote your calls for:
|
|
22
22
|
|
|
23
23
|
```ruby
|
|
24
|
-
gem "appnigma-sdk"
|
|
24
|
+
gem "appnigma-sdk", "~> 0.2"
|
|
25
25
|
```
|
|
26
26
|
|
|
27
|
+
0.2.0 changed `run` (see CHANGELOG.md): code written for 0.1 that passes
|
|
28
|
+
`version:` fails on 0.2 with `ArgumentError: unknown keyword`.
|
|
29
|
+
|
|
27
30
|
## The key
|
|
28
31
|
|
|
29
32
|
Every call carries your SDK key. Appnigma gives you your key when your
|
|
@@ -191,21 +194,22 @@ once, because only you know whether repeating it is harmless.
|
|
|
191
194
|
## Your own functions: catalog
|
|
192
195
|
|
|
193
196
|
Beyond `post` and `pull`, your microserver can hold functions written for you.
|
|
194
|
-
`catalog` lists them, with the platform each one is for
|
|
195
|
-
|
|
197
|
+
`catalog` lists them, with the platform each one is for and the JSON Schema of
|
|
198
|
+
its input and output. Leave `platform:` out for every platform,
|
|
196
199
|
or name one to narrow the list.
|
|
197
200
|
|
|
198
201
|
```ruby
|
|
199
202
|
client.catalog(platform: "hubspot")[:functions].each do |function|
|
|
200
|
-
puts "#{function[:platform]} #{function[:name]}
|
|
203
|
+
puts "#{function[:platform]} #{function[:name]} #{function[:description]}"
|
|
201
204
|
end
|
|
202
205
|
```
|
|
203
206
|
|
|
204
207
|
A function's `owner` is `{ type: "customer" }` when every end customer can use
|
|
205
208
|
it, or `{ type: "end_customer", end_customer_id: "..." }` when it was written
|
|
206
209
|
for one of them. `input_schema` and `output_schema` are JSON Schema, as
|
|
207
|
-
written.
|
|
208
|
-
|
|
210
|
+
written. Each function has one live version: a change to it replaces it when
|
|
211
|
+
the change goes live. Until a function has gone live for you, the list is
|
|
212
|
+
empty, not an error.
|
|
209
213
|
|
|
210
214
|
## Your own functions: run
|
|
211
215
|
|
|
@@ -214,8 +218,11 @@ is checked against the function's shape before anything runs, so a wrong or
|
|
|
214
218
|
missing field is an `Appnigma::InputError` listing every problem. Formats and
|
|
215
219
|
patterns, such as an email or a fixed layout for a code, are checked by the
|
|
216
220
|
function itself, so those refusals arrive from it with the same code. The
|
|
217
|
-
answer is `{ output: ... }
|
|
218
|
-
as the function wrote them.
|
|
221
|
+
answer is `{ output: ..., ran_as: ... }`: the output in the shape the function
|
|
222
|
+
declared, with its keys as the function wrote them, and whose function ran.
|
|
223
|
+
`ran_as[:owner]` is `"end_customer"` when the end customer has a function of
|
|
224
|
+
their own by that name and it ran, `"customer"` when yours did;
|
|
225
|
+
`ran_as[:version]` is the version that ran.
|
|
219
226
|
|
|
220
227
|
```ruby
|
|
221
228
|
result = client.run(
|
|
@@ -224,15 +231,17 @@ result = client.run(
|
|
|
224
231
|
function_name: "invoice-to-deal",
|
|
225
232
|
input: { "invoiceId" => "inv_1042", "amount" => 1250 }
|
|
226
233
|
)
|
|
227
|
-
puts "deal #{result[:output]["dealId"]}"
|
|
234
|
+
puts "deal #{result[:output]["dealId"]}, ran as #{result[:ran_as][:owner]} v#{result[:ran_as][:version]}"
|
|
228
235
|
```
|
|
229
236
|
|
|
230
237
|
`platform` and `function_name` are both required: the same name can exist on
|
|
231
|
-
two platforms and mean two different things.
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
with `
|
|
238
|
+
two platforms and mean two different things. What runs is always the
|
|
239
|
+
function's live version. A name that exists only on another platform is an
|
|
240
|
+
`Appnigma::NotFoundError` whose `details["platforms"]` says which. A function
|
|
241
|
+
that was live and was removed from your logic is retired: calling it is an
|
|
242
|
+
`Appnigma::RetiredError` with `FUNCTION_RETIRED`, whose `details` name the
|
|
243
|
+
function and when it was retired. A platform that is not switched on for you
|
|
244
|
+
is an `Appnigma::AuthError` with `PLATFORM_NOT_ENABLED`.
|
|
236
245
|
|
|
237
246
|
`run` is made once and never retried: it is your own function, and only you
|
|
238
247
|
know whether running it twice is harmless. If it fails with a network or
|
|
@@ -262,9 +271,10 @@ your key or a token.
|
|
|
262
271
|
| --- | --- | --- |
|
|
263
272
|
| `Appnigma::InputError` | 400. A field is wrong or missing. Also raised locally for a bad setting or a bad end customer id, before any call. | `problems`, a list of `{ field:, problem: }` |
|
|
264
273
|
| `Appnigma::AuthError` | 401 or 403. The key is missing, unknown or cancelled, the microserver is not enabled, or the platform is not switched on for you. Also raised at start with no key. | |
|
|
265
|
-
| `Appnigma::NotFoundError` | 404. No connection for that end customer on that platform, no such function
|
|
274
|
+
| `Appnigma::NotFoundError` | 404. No connection for that end customer on that platform, no such function, or no such record (`RECORD_NOT_FOUND`). When the function exists on another platform, `details["platforms"]` names it. | |
|
|
266
275
|
| `Appnigma::ReconnectError` | 409 with `CONNECTION_NEEDS_RECONNECT`. The end customer has to approve again. | |
|
|
267
276
|
| `Appnigma::NotAvailableError` | Any other 409. The platform has no unified data for that yet (`DATA_TYPE_NOT_AVAILABLE`); use `request`. | |
|
|
277
|
+
| `Appnigma::RetiredError` | 410 with `FUNCTION_RETIRED`. The function was live and was removed from your logic; it will not answer again. | |
|
|
268
278
|
| `Appnigma::RateLimitError` | 429, after the retries. Too many calls, or the platform asked us to slow down. | `retry_after_seconds`, or `nil` when the server named no wait |
|
|
269
279
|
| `Appnigma::ServerError` | Any 5xx, after the retries. Also any answer that is not JSON. | |
|
|
270
280
|
| `Appnigma::NetworkError` | The API could not be reached, or an attempt ran out of time, after the retries. `status` and `request_id` are `nil`. | `cause`, the underlying exception |
|
|
@@ -306,8 +316,8 @@ never replaced.
|
|
|
306
316
|
## Retries and time limits
|
|
307
317
|
|
|
308
318
|
A call is tried again only when trying again is safe: the API could not be
|
|
309
|
-
reached, it answered 5xx, or it answered 429. A 400, 401, 403, 404 or
|
|
310
|
-
never retried, because the same call would be refused the same way. By default
|
|
319
|
+
reached, it answered 5xx, or it answered 429. A 400, 401, 403, 404, 409 or 410
|
|
320
|
+
is never retried, because the same call would be refused the same way. By default
|
|
311
321
|
a call is made up to three times.
|
|
312
322
|
|
|
313
323
|
`connections.create_link`, `run`, and `request` with a method other than `GET`
|
|
@@ -348,7 +358,7 @@ Per call, as a keyword argument: `timeout_ms:`.
|
|
|
348
358
|
|
|
349
359
|
## What is exported
|
|
350
360
|
|
|
351
|
-
`Appnigma::Client`, `Appnigma::Error` and its
|
|
361
|
+
`Appnigma::Client`, `Appnigma::Error` and its nine subclasses, the constants
|
|
352
362
|
`Appnigma::ERROR_CODES`, `Appnigma::OBJECTS`, `Appnigma::CONNECTION_STATUSES`
|
|
353
363
|
and `Appnigma::PLATFORM_REQUEST_METHODS`, `Appnigma::VERSION`, and
|
|
354
364
|
`Appnigma::API_DESCRIPTION_VERSION`, the version of the published description
|
data/lib/appnigma/client.rb
CHANGED
|
@@ -59,11 +59,11 @@ module Appnigma
|
|
|
59
59
|
call(:pull_records, body, timeout_ms: timeout_ms)
|
|
60
60
|
end
|
|
61
61
|
|
|
62
|
-
# One of your own functions, by platform and name
|
|
63
|
-
# retried.
|
|
64
|
-
def run(end_customer_id:, platform:, function_name:, input:,
|
|
62
|
+
# One of your own functions, by platform and name: its live version runs,
|
|
63
|
+
# and the answer's `ran_as` says whose it was. Made once, never retried.
|
|
64
|
+
def run(end_customer_id:, platform:, function_name:, input:, timeout_ms: nil)
|
|
65
65
|
body = Names.camel_keys(end_customer_id: end_customer_id, platform: platform, function_name: function_name,
|
|
66
|
-
input: input
|
|
66
|
+
input: input)
|
|
67
67
|
call(:run_function, body, policy: @one_attempt, timeout_ms: timeout_ms)
|
|
68
68
|
end
|
|
69
69
|
|
data/lib/appnigma/constants.rb
CHANGED
|
@@ -63,6 +63,7 @@ module Appnigma
|
|
|
63
63
|
PLATFORM_NOT_ENABLED
|
|
64
64
|
END_CUSTOMER_NOT_FOUND
|
|
65
65
|
FUNCTION_NOT_FOUND
|
|
66
|
+
FUNCTION_RETIRED
|
|
66
67
|
CONNECTION_NEEDS_RECONNECT
|
|
67
68
|
RATE_LIMITED
|
|
68
69
|
PLATFORM_RATE_LIMITED
|
|
@@ -72,6 +73,8 @@ module Appnigma
|
|
|
72
73
|
INTERNAL_ERROR
|
|
73
74
|
RECORD_NOT_FOUND
|
|
74
75
|
DATA_TYPE_NOT_AVAILABLE
|
|
76
|
+
ACTION_NOT_FOUND
|
|
77
|
+
MISSING_SCOPES
|
|
75
78
|
].freeze
|
|
76
79
|
|
|
77
80
|
OBJECTS = %w[contact company deal].freeze
|
data/lib/appnigma/errors.rb
CHANGED
|
@@ -38,6 +38,10 @@ module Appnigma
|
|
|
38
38
|
# 404.
|
|
39
39
|
class NotFoundError < Error; end
|
|
40
40
|
|
|
41
|
+
# 410 FUNCTION_RETIRED: the function was live and was removed from your
|
|
42
|
+
# logic. It will not answer again, so it is never tried again.
|
|
43
|
+
class RetiredError < Error; end
|
|
44
|
+
|
|
41
45
|
# 409 CONNECTION_NEEDS_RECONNECT: the end customer has to approve again.
|
|
42
46
|
class ReconnectError < Error; end
|
|
43
47
|
|
|
@@ -83,6 +87,7 @@ module Appnigma
|
|
|
83
87
|
401 => AuthError,
|
|
84
88
|
403 => AuthError,
|
|
85
89
|
404 => NotFoundError,
|
|
90
|
+
410 => RetiredError,
|
|
86
91
|
429 => RateLimitError
|
|
87
92
|
}.freeze
|
|
88
93
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The routes a customer's product calls through an Appnigma SDK. Every answer carries a request id in X-Request-Id; quote it when you write to support.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document:
|
|
6
|
+
The version of the OpenAPI document: 2.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.26.0
|
|
@@ -902,7 +902,7 @@ module Appnigma::Generated
|
|
|
902
902
|
end
|
|
903
903
|
|
|
904
904
|
# Run one of your own functions
|
|
905
|
-
# Runs one of your functions, by platform and name, on the end customer's account. The input is checked against the shape the function declared.
|
|
905
|
+
# Runs one of your functions, by platform and name, on the end customer's account. The input is checked against the shape the function declared. What runs is always the function's live version, and ranAs says whose it was, the end customer's own or yours, and which version. A version sent by an older SDK is ignored. A function removed from your logic is retired and answers FUNCTION_RETIRED.
|
|
906
906
|
# @param run_input [RunInput]
|
|
907
907
|
# @param [Hash] opts the optional parameters
|
|
908
908
|
# @return [RunOutput]
|
|
@@ -912,7 +912,7 @@ module Appnigma::Generated
|
|
|
912
912
|
end
|
|
913
913
|
|
|
914
914
|
# Run one of your own functions
|
|
915
|
-
# Runs one of your functions, by platform and name, on the end customer's account. The input is checked against the shape the function declared.
|
|
915
|
+
# Runs one of your functions, by platform and name, on the end customer's account. The input is checked against the shape the function declared. What runs is always the function's live version, and ranAs says whose it was, the end customer's own or yours, and which version. A version sent by an older SDK is ignored. A function removed from your logic is retired and answers FUNCTION_RETIRED.
|
|
916
916
|
# @param run_input [RunInput]
|
|
917
917
|
# @param [Hash] opts the optional parameters
|
|
918
918
|
# @return [Array<(RunOutput, Integer, Hash)>] RunOutput data, response status code and response headers
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The routes a customer's product calls through an Appnigma SDK. Every answer carries a request id in X-Request-Id; quote it when you write to support.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document:
|
|
6
|
+
The version of the OpenAPI document: 2.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.26.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The routes a customer's product calls through an Appnigma SDK. Every answer carries a request id in X-Request-Id; quote it when you write to support.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document:
|
|
6
|
+
The version of the OpenAPI document: 2.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.26.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The routes a customer's product calls through an Appnigma SDK. Every answer carries a request id in X-Request-Id; quote it when you write to support.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document:
|
|
6
|
+
The version of the OpenAPI document: 2.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.26.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The routes a customer's product calls through an Appnigma SDK. Every answer carries a request id in X-Request-Id; quote it when you write to support.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document:
|
|
6
|
+
The version of the OpenAPI document: 2.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.26.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The routes a customer's product calls through an Appnigma SDK. Every answer carries a request id in X-Request-Id; quote it when you write to support.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document:
|
|
6
|
+
The version of the OpenAPI document: 2.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.26.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The routes a customer's product calls through an Appnigma SDK. Every answer carries a request id in X-Request-Id; quote it when you write to support.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document:
|
|
6
|
+
The version of the OpenAPI document: 2.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.26.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The routes a customer's product calls through an Appnigma SDK. Every answer carries a request id in X-Request-Id; quote it when you write to support.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document:
|
|
6
|
+
The version of the OpenAPI document: 2.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.26.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The routes a customer's product calls through an Appnigma SDK. Every answer carries a request id in X-Request-Id; quote it when you write to support.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document:
|
|
6
|
+
The version of the OpenAPI document: 2.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.26.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The routes a customer's product calls through an Appnigma SDK. Every answer carries a request id in X-Request-Id; quote it when you write to support.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document:
|
|
6
|
+
The version of the OpenAPI document: 2.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.26.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The routes a customer's product calls through an Appnigma SDK. Every answer carries a request id in X-Request-Id; quote it when you write to support.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document:
|
|
6
|
+
The version of the OpenAPI document: 2.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.26.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The routes a customer's product calls through an Appnigma SDK. Every answer carries a request id in X-Request-Id; quote it when you write to support.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document:
|
|
6
|
+
The version of the OpenAPI document: 2.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.26.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The routes a customer's product calls through an Appnigma SDK. Every answer carries a request id in X-Request-Id; quote it when you write to support.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document:
|
|
6
|
+
The version of the OpenAPI document: 2.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.26.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The routes a customer's product calls through an Appnigma SDK. Every answer carries a request id in X-Request-Id; quote it when you write to support.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document:
|
|
6
|
+
The version of the OpenAPI document: 2.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.26.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The routes a customer's product calls through an Appnigma SDK. Every answer carries a request id in X-Request-Id; quote it when you write to support.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document:
|
|
6
|
+
The version of the OpenAPI document: 2.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.26.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The routes a customer's product calls through an Appnigma SDK. Every answer carries a request id in X-Request-Id; quote it when you write to support.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document:
|
|
6
|
+
The version of the OpenAPI document: 2.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.26.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The routes a customer's product calls through an Appnigma SDK. Every answer carries a request id in X-Request-Id; quote it when you write to support.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document:
|
|
6
|
+
The version of the OpenAPI document: 2.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.26.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The routes a customer's product calls through an Appnigma SDK. Every answer carries a request id in X-Request-Id; quote it when you write to support.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document:
|
|
6
|
+
The version of the OpenAPI document: 2.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.26.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The routes a customer's product calls through an Appnigma SDK. Every answer carries a request id in X-Request-Id; quote it when you write to support.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document:
|
|
6
|
+
The version of the OpenAPI document: 2.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.26.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The routes a customer's product calls through an Appnigma SDK. Every answer carries a request id in X-Request-Id; quote it when you write to support.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document:
|
|
6
|
+
The version of the OpenAPI document: 2.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.26.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The routes a customer's product calls through an Appnigma SDK. Every answer carries a request id in X-Request-Id; quote it when you write to support.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document:
|
|
6
|
+
The version of the OpenAPI document: 2.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.26.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The routes a customer's product calls through an Appnigma SDK. Every answer carries a request id in X-Request-Id; quote it when you write to support.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document:
|
|
6
|
+
The version of the OpenAPI document: 2.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.26.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The routes a customer's product calls through an Appnigma SDK. Every answer carries a request id in X-Request-Id; quote it when you write to support.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document:
|
|
6
|
+
The version of the OpenAPI document: 2.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.26.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The routes a customer's product calls through an Appnigma SDK. Every answer carries a request id in X-Request-Id; quote it when you write to support.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document:
|
|
6
|
+
The version of the OpenAPI document: 2.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.26.0
|
|
@@ -21,8 +21,6 @@ module Appnigma::Generated
|
|
|
21
21
|
# The function's name, the same as its file name
|
|
22
22
|
attr_accessor :name
|
|
23
23
|
|
|
24
|
-
attr_accessor :version
|
|
25
|
-
|
|
26
24
|
attr_accessor :description
|
|
27
25
|
|
|
28
26
|
# JSON Schema of what the function takes as input
|
|
@@ -38,7 +36,6 @@ module Appnigma::Generated
|
|
|
38
36
|
{
|
|
39
37
|
:'platform' => :'platform',
|
|
40
38
|
:'name' => :'name',
|
|
41
|
-
:'version' => :'version',
|
|
42
39
|
:'description' => :'description',
|
|
43
40
|
:'input_schema' => :'inputSchema',
|
|
44
41
|
:'output_schema' => :'outputSchema',
|
|
@@ -61,7 +58,6 @@ module Appnigma::Generated
|
|
|
61
58
|
{
|
|
62
59
|
:'platform' => :'String',
|
|
63
60
|
:'name' => :'String',
|
|
64
|
-
:'version' => :'Integer',
|
|
65
61
|
:'description' => :'String',
|
|
66
62
|
:'input_schema' => :'Object',
|
|
67
63
|
:'output_schema' => :'Object',
|
|
@@ -113,12 +109,6 @@ module Appnigma::Generated
|
|
|
113
109
|
self.name = nil
|
|
114
110
|
end
|
|
115
111
|
|
|
116
|
-
if attributes.key?(:'version')
|
|
117
|
-
self.version = attributes[:'version']
|
|
118
|
-
else
|
|
119
|
-
self.version = nil
|
|
120
|
-
end
|
|
121
|
-
|
|
122
112
|
if attributes.key?(:'description')
|
|
123
113
|
self.description = attributes[:'description']
|
|
124
114
|
else
|
|
@@ -157,14 +147,6 @@ module Appnigma::Generated
|
|
|
157
147
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
158
148
|
end
|
|
159
149
|
|
|
160
|
-
if @version.nil?
|
|
161
|
-
invalid_properties.push('invalid value for "version", version cannot be nil.')
|
|
162
|
-
end
|
|
163
|
-
|
|
164
|
-
if @version < 1
|
|
165
|
-
invalid_properties.push('invalid value for "version", must be greater than or equal to 1.')
|
|
166
|
-
end
|
|
167
|
-
|
|
168
150
|
if @description.nil?
|
|
169
151
|
invalid_properties.push('invalid value for "description", description cannot be nil.')
|
|
170
152
|
end
|
|
@@ -190,8 +172,6 @@ module Appnigma::Generated
|
|
|
190
172
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
191
173
|
return false if @platform.nil?
|
|
192
174
|
return false if @name.nil?
|
|
193
|
-
return false if @version.nil?
|
|
194
|
-
return false if @version < 1
|
|
195
175
|
return false if @description.nil?
|
|
196
176
|
return false if @input_schema.nil?
|
|
197
177
|
return false if @output_schema.nil?
|
|
@@ -219,20 +199,6 @@ module Appnigma::Generated
|
|
|
219
199
|
@name = name
|
|
220
200
|
end
|
|
221
201
|
|
|
222
|
-
# Custom attribute writer method with validation
|
|
223
|
-
# @param [Object] version Value to be assigned
|
|
224
|
-
def version=(version)
|
|
225
|
-
if version.nil?
|
|
226
|
-
fail ArgumentError, 'version cannot be nil'
|
|
227
|
-
end
|
|
228
|
-
|
|
229
|
-
if version < 1
|
|
230
|
-
fail ArgumentError, 'invalid value for "version", must be greater than or equal to 1.'
|
|
231
|
-
end
|
|
232
|
-
|
|
233
|
-
@version = version
|
|
234
|
-
end
|
|
235
|
-
|
|
236
202
|
# Custom attribute writer method with validation
|
|
237
203
|
# @param [Object] description Value to be assigned
|
|
238
204
|
def description=(description)
|
|
@@ -280,7 +246,6 @@ module Appnigma::Generated
|
|
|
280
246
|
self.class == o.class &&
|
|
281
247
|
platform == o.platform &&
|
|
282
248
|
name == o.name &&
|
|
283
|
-
version == o.version &&
|
|
284
249
|
description == o.description &&
|
|
285
250
|
input_schema == o.input_schema &&
|
|
286
251
|
output_schema == o.output_schema &&
|
|
@@ -296,7 +261,7 @@ module Appnigma::Generated
|
|
|
296
261
|
# Calculates hash code according to all attributes.
|
|
297
262
|
# @return [Integer] Hash code
|
|
298
263
|
def hash
|
|
299
|
-
[platform, name,
|
|
264
|
+
[platform, name, description, input_schema, output_schema, owner].hash
|
|
300
265
|
end
|
|
301
266
|
|
|
302
267
|
# Builds the object from hash
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The routes a customer's product calls through an Appnigma SDK. Every answer carries a request id in X-Request-Id; quote it when you write to support.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document:
|
|
6
|
+
The version of the OpenAPI document: 2.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.26.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The routes a customer's product calls through an Appnigma SDK. Every answer carries a request id in X-Request-Id; quote it when you write to support.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document:
|
|
6
|
+
The version of the OpenAPI document: 2.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.26.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The routes a customer's product calls through an Appnigma SDK. Every answer carries a request id in X-Request-Id; quote it when you write to support.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document:
|
|
6
|
+
The version of the OpenAPI document: 2.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.26.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The routes a customer's product calls through an Appnigma SDK. Every answer carries a request id in X-Request-Id; quote it when you write to support.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document:
|
|
6
|
+
The version of the OpenAPI document: 2.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.26.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The routes a customer's product calls through an Appnigma SDK. Every answer carries a request id in X-Request-Id; quote it when you write to support.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document:
|
|
6
|
+
The version of the OpenAPI document: 2.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.26.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The routes a customer's product calls through an Appnigma SDK. Every answer carries a request id in X-Request-Id; quote it when you write to support.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document:
|
|
6
|
+
The version of the OpenAPI document: 2.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.26.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The routes a customer's product calls through an Appnigma SDK. Every answer carries a request id in X-Request-Id; quote it when you write to support.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document:
|
|
6
|
+
The version of the OpenAPI document: 2.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.26.0
|