chainlink-apimatic-sdk 0.0.1 → 0.0.2
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 +35 -60
- data/bin/console +4 -4
- data/lib/ccip_directory_and_configuration_rest_api_v1/api_helper.rb +10 -0
- data/lib/{swagger_petstore_open_api30 → ccip_directory_and_configuration_rest_api_v1}/apis/base_api.rb +5 -5
- data/lib/ccip_directory_and_configuration_rest_api_v1/apis/chains_api.rb +69 -0
- data/lib/ccip_directory_and_configuration_rest_api_v1/apis/lanes_api.rb +75 -0
- data/lib/ccip_directory_and_configuration_rest_api_v1/apis/tokens_api.rb +51 -0
- data/lib/ccip_directory_and_configuration_rest_api_v1/client.rb +72 -0
- data/lib/{swagger_petstore_open_api30 → ccip_directory_and_configuration_rest_api_v1}/configuration.rb +27 -41
- data/lib/{swagger_petstore_open_api30 → ccip_directory_and_configuration_rest_api_v1}/exceptions/api_exception.rb +4 -4
- data/lib/ccip_directory_and_configuration_rest_api_v1/exceptions/error_response_exception.rb +57 -0
- data/lib/{swagger_petstore_open_api30 → ccip_directory_and_configuration_rest_api_v1}/http/api_response.rb +4 -4
- data/lib/ccip_directory_and_configuration_rest_api_v1/http/http_call_back.rb +10 -0
- data/lib/ccip_directory_and_configuration_rest_api_v1/http/http_method_enum.rb +10 -0
- data/lib/ccip_directory_and_configuration_rest_api_v1/http/http_request.rb +10 -0
- data/lib/ccip_directory_and_configuration_rest_api_v1/http/http_response.rb +10 -0
- data/lib/{swagger_petstore_open_api30 → ccip_directory_and_configuration_rest_api_v1}/http/proxy_settings.rb +4 -4
- data/lib/{swagger_petstore_open_api30 → ccip_directory_and_configuration_rest_api_v1}/logging/configuration/api_logging_configuration.rb +4 -4
- data/lib/{swagger_petstore_open_api30 → ccip_directory_and_configuration_rest_api_v1}/logging/sdk_logger.rb +4 -4
- data/lib/{swagger_petstore_open_api30 → ccip_directory_and_configuration_rest_api_v1}/models/base_model.rb +4 -4
- data/lib/ccip_directory_and_configuration_rest_api_v1/models/chain_api_response.rb +99 -0
- data/lib/ccip_directory_and_configuration_rest_api_v1/models/chain_config_error.rb +100 -0
- data/lib/ccip_directory_and_configuration_rest_api_v1/models/chain_details.rb +272 -0
- data/lib/ccip_directory_and_configuration_rest_api_v1/models/chain_family.rb +64 -0
- data/lib/ccip_directory_and_configuration_rest_api_v1/models/chain_info.rb +135 -0
- data/lib/ccip_directory_and_configuration_rest_api_v1/models/chain_metadata.rb +144 -0
- data/lib/ccip_directory_and_configuration_rest_api_v1/models/chain_type.rb +64 -0
- data/lib/ccip_directory_and_configuration_rest_api_v1/models/data.rb +171 -0
- data/lib/ccip_directory_and_configuration_rest_api_v1/models/enrich_fee_tokens.rb +36 -0
- data/lib/ccip_directory_and_configuration_rest_api_v1/models/environment.rb +36 -0
- data/lib/ccip_directory_and_configuration_rest_api_v1/models/environment3.rb +36 -0
- data/lib/ccip_directory_and_configuration_rest_api_v1/models/family.rb +64 -0
- data/lib/ccip_directory_and_configuration_rest_api_v1/models/fee_token_enriched.rb +130 -0
- data/lib/ccip_directory_and_configuration_rest_api_v1/models/lane_api_response.rb +102 -0
- data/lib/ccip_directory_and_configuration_rest_api_v1/models/lane_config_error.rb +102 -0
- data/lib/ccip_directory_and_configuration_rest_api_v1/models/lane_details.rb +116 -0
- data/lib/ccip_directory_and_configuration_rest_api_v1/models/lane_metadata.rb +119 -0
- data/lib/ccip_directory_and_configuration_rest_api_v1/models/off_ramp.rb +82 -0
- data/lib/ccip_directory_and_configuration_rest_api_v1/models/on_ramp.rb +95 -0
- data/lib/ccip_directory_and_configuration_rest_api_v1/models/output_key.rb +40 -0
- data/lib/ccip_directory_and_configuration_rest_api_v1/models/pool_type.rb +44 -0
- data/lib/ccip_directory_and_configuration_rest_api_v1/models/search_type.rb +46 -0
- data/lib/ccip_directory_and_configuration_rest_api_v1/models/token_api_response.rb +101 -0
- data/lib/ccip_directory_and_configuration_rest_api_v1/models/token_chain_data.rb +190 -0
- data/lib/ccip_directory_and_configuration_rest_api_v1/models/token_chain_info.rb +159 -0
- data/lib/ccip_directory_and_configuration_rest_api_v1/models/token_config_error.rb +91 -0
- data/lib/ccip_directory_and_configuration_rest_api_v1/models/token_details.rb +99 -0
- data/lib/ccip_directory_and_configuration_rest_api_v1/models/token_metadata.rb +119 -0
- data/lib/ccip_directory_and_configuration_rest_api_v1/utilities/date_time_helper.rb +11 -0
- data/lib/{swagger_petstore_open_api30 → ccip_directory_and_configuration_rest_api_v1}/utilities/file_wrapper.rb +4 -4
- data/lib/ccip_directory_and_configuration_rest_api_v1/utilities/union_type_lookup.rb +61 -0
- data/lib/ccip_directory_and_configuration_rest_api_v1.rb +112 -0
- metadata +51 -36
- data/lib/swagger_petstore_open_api30/api_helper.rb +0 -10
- data/lib/swagger_petstore_open_api30/apis/pet_api.rb +0 -287
- data/lib/swagger_petstore_open_api30/apis/store_api.rb +0 -131
- data/lib/swagger_petstore_open_api30/apis/user_api.rb +0 -233
- data/lib/swagger_petstore_open_api30/client.rb +0 -94
- data/lib/swagger_petstore_open_api30/exceptions/oauth_provider_exception.rb +0 -64
- data/lib/swagger_petstore_open_api30/http/auth/api_key.rb +0 -52
- data/lib/swagger_petstore_open_api30/http/auth/petstore_auth.rb +0 -112
- data/lib/swagger_petstore_open_api30/http/http_call_back.rb +0 -10
- data/lib/swagger_petstore_open_api30/http/http_method_enum.rb +0 -10
- data/lib/swagger_petstore_open_api30/http/http_request.rb +0 -10
- data/lib/swagger_petstore_open_api30/http/http_response.rb +0 -10
- data/lib/swagger_petstore_open_api30/models/api_response.rb +0 -118
- data/lib/swagger_petstore_open_api30/models/category.rb +0 -105
- data/lib/swagger_petstore_open_api30/models/oauth_provider_error.rb +0 -62
- data/lib/swagger_petstore_open_api30/models/oauth_scope_petstore_auth.rb +0 -36
- data/lib/swagger_petstore_open_api30/models/oauth_token.rb +0 -125
- data/lib/swagger_petstore_open_api30/models/order.rb +0 -167
- data/lib/swagger_petstore_open_api30/models/order_status.rb +0 -40
- data/lib/swagger_petstore_open_api30/models/pet.rb +0 -168
- data/lib/swagger_petstore_open_api30/models/pet_status.rb +0 -40
- data/lib/swagger_petstore_open_api30/models/tag.rb +0 -105
- data/lib/swagger_petstore_open_api30/models/user.rb +0 -182
- data/lib/swagger_petstore_open_api30/utilities/date_time_helper.rb +0 -11
- data/lib/swagger_petstore_open_api30/utilities/xml_utilities.rb +0 -12
- data/lib/swagger_petstore_open_api30.rb +0 -62
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# ccip_directory_and_configuration_rest_api_v1
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically
|
|
4
|
+
# generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module CcipDirectoryAndConfigurationRestApiV1
|
|
7
|
+
# The `UnionTypeLookUp` class serves as a utility class for
|
|
8
|
+
# storing and managing type combinator templates. It acts as a container for the templates
|
|
9
|
+
# used in handling various oneof/anyof instances within the sdk.
|
|
10
|
+
class UnionTypeLookUp
|
|
11
|
+
include CoreLibrary
|
|
12
|
+
# rubocop:disable Lint/RedundantCopDisableDirective, Style/HashSyntax, Layout/FirstArgumentIndentation
|
|
13
|
+
def self.union_types
|
|
14
|
+
{
|
|
15
|
+
:ChainDetailsChainId => OneOf.new(
|
|
16
|
+
[
|
|
17
|
+
LeafType.new(Integer),
|
|
18
|
+
LeafType.new(String)
|
|
19
|
+
]
|
|
20
|
+
),
|
|
21
|
+
|
|
22
|
+
:ChainDetailsFeeTokens => OneOf.new(
|
|
23
|
+
[
|
|
24
|
+
LeafType.new(String, UnionTypeContext.new(
|
|
25
|
+
is_array: true
|
|
26
|
+
)),
|
|
27
|
+
LeafType.new(FeeTokenEnriched, UnionTypeContext.new(
|
|
28
|
+
is_array: true
|
|
29
|
+
))
|
|
30
|
+
]
|
|
31
|
+
),
|
|
32
|
+
|
|
33
|
+
:ChainInfoChainId => OneOf.new(
|
|
34
|
+
[
|
|
35
|
+
LeafType.new(Integer),
|
|
36
|
+
LeafType.new(String)
|
|
37
|
+
]
|
|
38
|
+
),
|
|
39
|
+
|
|
40
|
+
:TokenChainInfoChainId => OneOf.new(
|
|
41
|
+
[
|
|
42
|
+
LeafType.new(Integer),
|
|
43
|
+
LeafType.new(String)
|
|
44
|
+
]
|
|
45
|
+
),
|
|
46
|
+
|
|
47
|
+
:TokenChainDataChainId => OneOf.new(
|
|
48
|
+
[
|
|
49
|
+
LeafType.new(Integer),
|
|
50
|
+
LeafType.new(String)
|
|
51
|
+
]
|
|
52
|
+
)
|
|
53
|
+
}
|
|
54
|
+
end
|
|
55
|
+
# rubocop:enable Lint/RedundantCopDisableDirective, Style/HashSyntax, Layout/FirstArgumentIndentation
|
|
56
|
+
|
|
57
|
+
def self.get(name)
|
|
58
|
+
UnionTypeLookUp.union_types[name]
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
end
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
# ccip_directory_and_configuration_rest_api_v1
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically
|
|
4
|
+
# generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
require 'date'
|
|
7
|
+
require 'json'
|
|
8
|
+
|
|
9
|
+
require 'apimatic_core_interfaces'
|
|
10
|
+
require 'apimatic_core'
|
|
11
|
+
require 'apimatic_faraday_client_adapter'
|
|
12
|
+
|
|
13
|
+
require_relative 'ccip_directory_and_configuration_rest_api_v1/api_helper'
|
|
14
|
+
require_relative 'ccip_directory_and_configuration_rest_api_v1/client'
|
|
15
|
+
|
|
16
|
+
# Utilities
|
|
17
|
+
require_relative 'ccip_directory_and_configuration_rest_api_v1/utilities/' \
|
|
18
|
+
'file_wrapper'
|
|
19
|
+
require_relative 'ccip_directory_and_configuration_rest_api_v1/utilities/' \
|
|
20
|
+
'date_time_helper'
|
|
21
|
+
require_relative 'ccip_directory_and_configuration_rest_api_v1/utilities/' \
|
|
22
|
+
'union_type_lookup'
|
|
23
|
+
|
|
24
|
+
# Http
|
|
25
|
+
require_relative 'ccip_directory_and_configuration_rest_api_v1/http/' \
|
|
26
|
+
'api_response'
|
|
27
|
+
require_relative 'ccip_directory_and_configuration_rest_api_v1/http/' \
|
|
28
|
+
'http_call_back'
|
|
29
|
+
require_relative 'ccip_directory_and_configuration_rest_api_v1/http/' \
|
|
30
|
+
'http_method_enum'
|
|
31
|
+
require_relative 'ccip_directory_and_configuration_rest_api_v1/http/' \
|
|
32
|
+
'http_request'
|
|
33
|
+
require_relative 'ccip_directory_and_configuration_rest_api_v1/http/' \
|
|
34
|
+
'http_response'
|
|
35
|
+
require_relative 'ccip_directory_and_configuration_rest_api_v1/http/' \
|
|
36
|
+
'proxy_settings'
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
# Logger
|
|
40
|
+
require_relative 'ccip_directory_and_configuration_rest_api_v1/logging/' \
|
|
41
|
+
'configuration/api_logging_configuration'
|
|
42
|
+
require_relative 'ccip_directory_and_configuration_rest_api_v1/logging/' \
|
|
43
|
+
'sdk_logger'
|
|
44
|
+
|
|
45
|
+
# Models
|
|
46
|
+
require_relative 'ccip_directory_and_configuration_rest_api_v1/models/' \
|
|
47
|
+
'base_model'
|
|
48
|
+
require_relative 'ccip_directory_and_configuration_rest_api_v1/models/' \
|
|
49
|
+
'chain_metadata'
|
|
50
|
+
require_relative 'ccip_directory_and_configuration_rest_api_v1/models/' \
|
|
51
|
+
'fee_token_enriched'
|
|
52
|
+
require_relative 'ccip_directory_and_configuration_rest_api_v1/models/' \
|
|
53
|
+
'chain_details'
|
|
54
|
+
require_relative 'ccip_directory_and_configuration_rest_api_v1/models/' \
|
|
55
|
+
'chain_config_error'
|
|
56
|
+
require_relative 'ccip_directory_and_configuration_rest_api_v1/models/' \
|
|
57
|
+
'chain_api_response'
|
|
58
|
+
require_relative 'ccip_directory_and_configuration_rest_api_v1/models/' \
|
|
59
|
+
'lane_metadata'
|
|
60
|
+
require_relative 'ccip_directory_and_configuration_rest_api_v1/models/' \
|
|
61
|
+
'chain_info'
|
|
62
|
+
require_relative 'ccip_directory_and_configuration_rest_api_v1/models/' \
|
|
63
|
+
'lane_details'
|
|
64
|
+
require_relative 'ccip_directory_and_configuration_rest_api_v1/models/' \
|
|
65
|
+
'lane_config_error'
|
|
66
|
+
require_relative 'ccip_directory_and_configuration_rest_api_v1/models/' \
|
|
67
|
+
'lane_api_response'
|
|
68
|
+
require_relative 'ccip_directory_and_configuration_rest_api_v1/models/' \
|
|
69
|
+
'token_metadata'
|
|
70
|
+
require_relative 'ccip_directory_and_configuration_rest_api_v1/models/' \
|
|
71
|
+
'token_chain_info'
|
|
72
|
+
require_relative 'ccip_directory_and_configuration_rest_api_v1/models/' \
|
|
73
|
+
'token_chain_data'
|
|
74
|
+
require_relative 'ccip_directory_and_configuration_rest_api_v1/models/' \
|
|
75
|
+
'token_details'
|
|
76
|
+
require_relative 'ccip_directory_and_configuration_rest_api_v1/models/' \
|
|
77
|
+
'token_config_error'
|
|
78
|
+
require_relative 'ccip_directory_and_configuration_rest_api_v1/models/' \
|
|
79
|
+
'token_api_response'
|
|
80
|
+
require_relative 'ccip_directory_and_configuration_rest_api_v1/models/data'
|
|
81
|
+
require_relative 'ccip_directory_and_configuration_rest_api_v1/models/off_ramp'
|
|
82
|
+
require_relative 'ccip_directory_and_configuration_rest_api_v1/models/on_ramp'
|
|
83
|
+
require_relative 'ccip_directory_and_configuration_rest_api_v1/models/' \
|
|
84
|
+
'search_type'
|
|
85
|
+
require_relative 'ccip_directory_and_configuration_rest_api_v1/models/' \
|
|
86
|
+
'chain_family'
|
|
87
|
+
require_relative 'ccip_directory_and_configuration_rest_api_v1/models/' \
|
|
88
|
+
'chain_type'
|
|
89
|
+
require_relative 'ccip_directory_and_configuration_rest_api_v1/models/' \
|
|
90
|
+
'enrich_fee_tokens'
|
|
91
|
+
require_relative 'ccip_directory_and_configuration_rest_api_v1/models/' \
|
|
92
|
+
'environment'
|
|
93
|
+
require_relative 'ccip_directory_and_configuration_rest_api_v1/models/' \
|
|
94
|
+
'environment3'
|
|
95
|
+
require_relative 'ccip_directory_and_configuration_rest_api_v1/models/family'
|
|
96
|
+
require_relative 'ccip_directory_and_configuration_rest_api_v1/models/' \
|
|
97
|
+
'output_key'
|
|
98
|
+
require_relative 'ccip_directory_and_configuration_rest_api_v1/models/pool_type'
|
|
99
|
+
|
|
100
|
+
# Exceptions
|
|
101
|
+
require_relative 'ccip_directory_and_configuration_rest_api_v1/exceptions/' \
|
|
102
|
+
'api_exception'
|
|
103
|
+
require_relative 'ccip_directory_and_configuration_rest_api_v1/exceptions/' \
|
|
104
|
+
'error_response_exception'
|
|
105
|
+
|
|
106
|
+
require_relative 'ccip_directory_and_configuration_rest_api_v1/configuration'
|
|
107
|
+
|
|
108
|
+
# Controllers
|
|
109
|
+
require_relative 'ccip_directory_and_configuration_rest_api_v1/apis/base_api'
|
|
110
|
+
require_relative 'ccip_directory_and_configuration_rest_api_v1/apis/chains_api'
|
|
111
|
+
require_relative 'ccip_directory_and_configuration_rest_api_v1/apis/tokens_api'
|
|
112
|
+
require_relative 'ccip_directory_and_configuration_rest_api_v1/apis/lanes_api'
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: chainlink-apimatic-sdk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Muhammad Rafay
|
|
@@ -62,41 +62,56 @@ files:
|
|
|
62
62
|
- LICENSE
|
|
63
63
|
- README.md
|
|
64
64
|
- bin/console
|
|
65
|
-
- lib/
|
|
66
|
-
- lib/
|
|
67
|
-
- lib/
|
|
68
|
-
- lib/
|
|
69
|
-
- lib/
|
|
70
|
-
- lib/
|
|
71
|
-
- lib/
|
|
72
|
-
- lib/
|
|
73
|
-
- lib/
|
|
74
|
-
- lib/
|
|
75
|
-
- lib/
|
|
76
|
-
- lib/
|
|
77
|
-
- lib/
|
|
78
|
-
- lib/
|
|
79
|
-
- lib/
|
|
80
|
-
- lib/
|
|
81
|
-
- lib/
|
|
82
|
-
- lib/
|
|
83
|
-
- lib/
|
|
84
|
-
- lib/
|
|
85
|
-
- lib/
|
|
86
|
-
- lib/
|
|
87
|
-
- lib/
|
|
88
|
-
- lib/
|
|
89
|
-
- lib/
|
|
90
|
-
- lib/
|
|
91
|
-
- lib/
|
|
92
|
-
- lib/
|
|
93
|
-
- lib/
|
|
94
|
-
- lib/
|
|
95
|
-
- lib/
|
|
96
|
-
- lib/
|
|
97
|
-
- lib/
|
|
98
|
-
- lib/
|
|
99
|
-
- lib/
|
|
65
|
+
- lib/ccip_directory_and_configuration_rest_api_v1.rb
|
|
66
|
+
- lib/ccip_directory_and_configuration_rest_api_v1/api_helper.rb
|
|
67
|
+
- lib/ccip_directory_and_configuration_rest_api_v1/apis/base_api.rb
|
|
68
|
+
- lib/ccip_directory_and_configuration_rest_api_v1/apis/chains_api.rb
|
|
69
|
+
- lib/ccip_directory_and_configuration_rest_api_v1/apis/lanes_api.rb
|
|
70
|
+
- lib/ccip_directory_and_configuration_rest_api_v1/apis/tokens_api.rb
|
|
71
|
+
- lib/ccip_directory_and_configuration_rest_api_v1/client.rb
|
|
72
|
+
- lib/ccip_directory_and_configuration_rest_api_v1/configuration.rb
|
|
73
|
+
- lib/ccip_directory_and_configuration_rest_api_v1/exceptions/api_exception.rb
|
|
74
|
+
- lib/ccip_directory_and_configuration_rest_api_v1/exceptions/error_response_exception.rb
|
|
75
|
+
- lib/ccip_directory_and_configuration_rest_api_v1/http/api_response.rb
|
|
76
|
+
- lib/ccip_directory_and_configuration_rest_api_v1/http/http_call_back.rb
|
|
77
|
+
- lib/ccip_directory_and_configuration_rest_api_v1/http/http_method_enum.rb
|
|
78
|
+
- lib/ccip_directory_and_configuration_rest_api_v1/http/http_request.rb
|
|
79
|
+
- lib/ccip_directory_and_configuration_rest_api_v1/http/http_response.rb
|
|
80
|
+
- lib/ccip_directory_and_configuration_rest_api_v1/http/proxy_settings.rb
|
|
81
|
+
- lib/ccip_directory_and_configuration_rest_api_v1/logging/configuration/api_logging_configuration.rb
|
|
82
|
+
- lib/ccip_directory_and_configuration_rest_api_v1/logging/sdk_logger.rb
|
|
83
|
+
- lib/ccip_directory_and_configuration_rest_api_v1/models/base_model.rb
|
|
84
|
+
- lib/ccip_directory_and_configuration_rest_api_v1/models/chain_api_response.rb
|
|
85
|
+
- lib/ccip_directory_and_configuration_rest_api_v1/models/chain_config_error.rb
|
|
86
|
+
- lib/ccip_directory_and_configuration_rest_api_v1/models/chain_details.rb
|
|
87
|
+
- lib/ccip_directory_and_configuration_rest_api_v1/models/chain_family.rb
|
|
88
|
+
- lib/ccip_directory_and_configuration_rest_api_v1/models/chain_info.rb
|
|
89
|
+
- lib/ccip_directory_and_configuration_rest_api_v1/models/chain_metadata.rb
|
|
90
|
+
- lib/ccip_directory_and_configuration_rest_api_v1/models/chain_type.rb
|
|
91
|
+
- lib/ccip_directory_and_configuration_rest_api_v1/models/data.rb
|
|
92
|
+
- lib/ccip_directory_and_configuration_rest_api_v1/models/enrich_fee_tokens.rb
|
|
93
|
+
- lib/ccip_directory_and_configuration_rest_api_v1/models/environment.rb
|
|
94
|
+
- lib/ccip_directory_and_configuration_rest_api_v1/models/environment3.rb
|
|
95
|
+
- lib/ccip_directory_and_configuration_rest_api_v1/models/family.rb
|
|
96
|
+
- lib/ccip_directory_and_configuration_rest_api_v1/models/fee_token_enriched.rb
|
|
97
|
+
- lib/ccip_directory_and_configuration_rest_api_v1/models/lane_api_response.rb
|
|
98
|
+
- lib/ccip_directory_and_configuration_rest_api_v1/models/lane_config_error.rb
|
|
99
|
+
- lib/ccip_directory_and_configuration_rest_api_v1/models/lane_details.rb
|
|
100
|
+
- lib/ccip_directory_and_configuration_rest_api_v1/models/lane_metadata.rb
|
|
101
|
+
- lib/ccip_directory_and_configuration_rest_api_v1/models/off_ramp.rb
|
|
102
|
+
- lib/ccip_directory_and_configuration_rest_api_v1/models/on_ramp.rb
|
|
103
|
+
- lib/ccip_directory_and_configuration_rest_api_v1/models/output_key.rb
|
|
104
|
+
- lib/ccip_directory_and_configuration_rest_api_v1/models/pool_type.rb
|
|
105
|
+
- lib/ccip_directory_and_configuration_rest_api_v1/models/search_type.rb
|
|
106
|
+
- lib/ccip_directory_and_configuration_rest_api_v1/models/token_api_response.rb
|
|
107
|
+
- lib/ccip_directory_and_configuration_rest_api_v1/models/token_chain_data.rb
|
|
108
|
+
- lib/ccip_directory_and_configuration_rest_api_v1/models/token_chain_info.rb
|
|
109
|
+
- lib/ccip_directory_and_configuration_rest_api_v1/models/token_config_error.rb
|
|
110
|
+
- lib/ccip_directory_and_configuration_rest_api_v1/models/token_details.rb
|
|
111
|
+
- lib/ccip_directory_and_configuration_rest_api_v1/models/token_metadata.rb
|
|
112
|
+
- lib/ccip_directory_and_configuration_rest_api_v1/utilities/date_time_helper.rb
|
|
113
|
+
- lib/ccip_directory_and_configuration_rest_api_v1/utilities/file_wrapper.rb
|
|
114
|
+
- lib/ccip_directory_and_configuration_rest_api_v1/utilities/union_type_lookup.rb
|
|
100
115
|
homepage: https://docs.chain.link/
|
|
101
116
|
licenses:
|
|
102
117
|
- MIT
|
|
@@ -1,287 +0,0 @@
|
|
|
1
|
-
# swagger_petstore_open_api30
|
|
2
|
-
#
|
|
3
|
-
# This file was automatically generated by
|
|
4
|
-
# APIMATIC v3.0 ( https://www.apimatic.io ).
|
|
5
|
-
|
|
6
|
-
module SwaggerPetstoreOpenApi30
|
|
7
|
-
# PetApi
|
|
8
|
-
class PetApi < BaseApi
|
|
9
|
-
# Update an existing pet by Id.
|
|
10
|
-
# @param [String] name Required parameter: TODO: type description here
|
|
11
|
-
# @param [Array[String]] photo_urls Required parameter: TODO: type
|
|
12
|
-
# description here
|
|
13
|
-
# @param [Integer] id Optional parameter: TODO: type description here
|
|
14
|
-
# @param [Category] category Optional parameter: TODO: type description
|
|
15
|
-
# here
|
|
16
|
-
# @param [Array[Tag]] tags Optional parameter: TODO: type description here
|
|
17
|
-
# @param [PetStatus] status Optional parameter: pet status in the store
|
|
18
|
-
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
19
|
-
def update_pet(name,
|
|
20
|
-
photo_urls,
|
|
21
|
-
id: nil,
|
|
22
|
-
category: nil,
|
|
23
|
-
tags: nil,
|
|
24
|
-
status: nil)
|
|
25
|
-
@api_call
|
|
26
|
-
.request(new_request_builder(HttpMethodEnum::PUT,
|
|
27
|
-
'/pet',
|
|
28
|
-
Server::DEFAULT)
|
|
29
|
-
.form_param(new_parameter(name, key: 'name')
|
|
30
|
-
.is_required(true))
|
|
31
|
-
.form_param(new_parameter(photo_urls, key: 'photoUrls')
|
|
32
|
-
.is_required(true))
|
|
33
|
-
.form_param(new_parameter(id, key: 'id'))
|
|
34
|
-
.form_param(new_parameter(category, key: 'category'))
|
|
35
|
-
.form_param(new_parameter(tags, key: 'tags'))
|
|
36
|
-
.form_param(new_parameter(status, key: 'status'))
|
|
37
|
-
.header_param(new_parameter('application/x-www-form-urlencoded', key: 'content-type'))
|
|
38
|
-
.header_param(new_parameter('application/json', key: 'accept'))
|
|
39
|
-
.auth(Single.new('petstore_auth')))
|
|
40
|
-
.response(new_response_handler
|
|
41
|
-
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
42
|
-
.deserialize_into(Pet.method(:from_hash))
|
|
43
|
-
.is_api_response(true)
|
|
44
|
-
.local_error('400',
|
|
45
|
-
'Invalid ID supplied',
|
|
46
|
-
APIException)
|
|
47
|
-
.local_error('404',
|
|
48
|
-
'Pet not found',
|
|
49
|
-
APIException)
|
|
50
|
-
.local_error('422',
|
|
51
|
-
'Validation exception',
|
|
52
|
-
APIException)
|
|
53
|
-
.local_error('default',
|
|
54
|
-
'Unexpected error',
|
|
55
|
-
APIException))
|
|
56
|
-
.execute
|
|
57
|
-
end
|
|
58
|
-
|
|
59
|
-
# Add a new pet to the store.
|
|
60
|
-
# @param [String] name Required parameter: TODO: type description here
|
|
61
|
-
# @param [Array[String]] photo_urls Required parameter: TODO: type
|
|
62
|
-
# description here
|
|
63
|
-
# @param [Integer] id Optional parameter: TODO: type description here
|
|
64
|
-
# @param [Category] category Optional parameter: TODO: type description
|
|
65
|
-
# here
|
|
66
|
-
# @param [Array[Tag]] tags Optional parameter: TODO: type description here
|
|
67
|
-
# @param [PetStatus] status Optional parameter: pet status in the store
|
|
68
|
-
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
69
|
-
def add_pet(name,
|
|
70
|
-
photo_urls,
|
|
71
|
-
id: nil,
|
|
72
|
-
category: nil,
|
|
73
|
-
tags: nil,
|
|
74
|
-
status: nil)
|
|
75
|
-
@api_call
|
|
76
|
-
.request(new_request_builder(HttpMethodEnum::POST,
|
|
77
|
-
'/pet',
|
|
78
|
-
Server::DEFAULT)
|
|
79
|
-
.form_param(new_parameter(name, key: 'name')
|
|
80
|
-
.is_required(true))
|
|
81
|
-
.form_param(new_parameter(photo_urls, key: 'photoUrls')
|
|
82
|
-
.is_required(true))
|
|
83
|
-
.form_param(new_parameter(id, key: 'id'))
|
|
84
|
-
.form_param(new_parameter(category, key: 'category'))
|
|
85
|
-
.form_param(new_parameter(tags, key: 'tags'))
|
|
86
|
-
.form_param(new_parameter(status, key: 'status'))
|
|
87
|
-
.header_param(new_parameter('application/x-www-form-urlencoded', key: 'content-type'))
|
|
88
|
-
.header_param(new_parameter('application/json', key: 'accept'))
|
|
89
|
-
.auth(Single.new('petstore_auth')))
|
|
90
|
-
.response(new_response_handler
|
|
91
|
-
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
92
|
-
.deserialize_into(Pet.method(:from_hash))
|
|
93
|
-
.is_api_response(true)
|
|
94
|
-
.local_error('400',
|
|
95
|
-
'Invalid input',
|
|
96
|
-
APIException)
|
|
97
|
-
.local_error('422',
|
|
98
|
-
'Validation exception',
|
|
99
|
-
APIException)
|
|
100
|
-
.local_error('default',
|
|
101
|
-
'Unexpected error',
|
|
102
|
-
APIException))
|
|
103
|
-
.execute
|
|
104
|
-
end
|
|
105
|
-
|
|
106
|
-
# Multiple status values can be provided with comma separated strings.
|
|
107
|
-
# @param [PetStatus] status Optional parameter: Status values that need to
|
|
108
|
-
# be considered for filter
|
|
109
|
-
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
110
|
-
def find_pets_by_status(status: nil)
|
|
111
|
-
@api_call
|
|
112
|
-
.request(new_request_builder(HttpMethodEnum::GET,
|
|
113
|
-
'/pet/findByStatus',
|
|
114
|
-
Server::DEFAULT)
|
|
115
|
-
.query_param(new_parameter(status, key: 'status'))
|
|
116
|
-
.header_param(new_parameter('application/json', key: 'accept'))
|
|
117
|
-
.auth(Single.new('petstore_auth')))
|
|
118
|
-
.response(new_response_handler
|
|
119
|
-
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
120
|
-
.deserialize_into(Pet.method(:from_hash))
|
|
121
|
-
.is_api_response(true)
|
|
122
|
-
.is_response_array(true)
|
|
123
|
-
.local_error('400',
|
|
124
|
-
'Invalid status value',
|
|
125
|
-
APIException)
|
|
126
|
-
.local_error('default',
|
|
127
|
-
'Unexpected error',
|
|
128
|
-
APIException))
|
|
129
|
-
.execute
|
|
130
|
-
end
|
|
131
|
-
|
|
132
|
-
# Multiple tags can be provided with comma separated strings. Use tag1,
|
|
133
|
-
# tag2, tag3 for testing.
|
|
134
|
-
# @param [Array[String]] tags Optional parameter: Tags to filter by
|
|
135
|
-
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
136
|
-
def find_pets_by_tags(tags: nil)
|
|
137
|
-
@api_call
|
|
138
|
-
.request(new_request_builder(HttpMethodEnum::GET,
|
|
139
|
-
'/pet/findByTags',
|
|
140
|
-
Server::DEFAULT)
|
|
141
|
-
.query_param(new_parameter(tags, key: 'tags'))
|
|
142
|
-
.header_param(new_parameter('application/json', key: 'accept'))
|
|
143
|
-
.auth(Single.new('petstore_auth')))
|
|
144
|
-
.response(new_response_handler
|
|
145
|
-
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
146
|
-
.deserialize_into(Pet.method(:from_hash))
|
|
147
|
-
.is_api_response(true)
|
|
148
|
-
.is_response_array(true)
|
|
149
|
-
.local_error('400',
|
|
150
|
-
'Invalid tag value',
|
|
151
|
-
APIException)
|
|
152
|
-
.local_error('default',
|
|
153
|
-
'Unexpected error',
|
|
154
|
-
APIException))
|
|
155
|
-
.execute
|
|
156
|
-
end
|
|
157
|
-
|
|
158
|
-
# Returns a single pet.
|
|
159
|
-
# @param [Integer] pet_id Required parameter: ID of pet to return
|
|
160
|
-
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
161
|
-
def get_pet_by_id(pet_id)
|
|
162
|
-
@api_call
|
|
163
|
-
.request(new_request_builder(HttpMethodEnum::GET,
|
|
164
|
-
'/pet/{petId}',
|
|
165
|
-
Server::DEFAULT)
|
|
166
|
-
.template_param(new_parameter(pet_id, key: 'petId')
|
|
167
|
-
.is_required(true)
|
|
168
|
-
.should_encode(true))
|
|
169
|
-
.header_param(new_parameter('application/json', key: 'accept'))
|
|
170
|
-
.auth(Or.new('api_key', 'petstore_auth')))
|
|
171
|
-
.response(new_response_handler
|
|
172
|
-
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
173
|
-
.deserialize_into(Pet.method(:from_hash))
|
|
174
|
-
.is_api_response(true)
|
|
175
|
-
.local_error('400',
|
|
176
|
-
'Invalid ID supplied',
|
|
177
|
-
APIException)
|
|
178
|
-
.local_error('404',
|
|
179
|
-
'Pet not found',
|
|
180
|
-
APIException)
|
|
181
|
-
.local_error('default',
|
|
182
|
-
'Unexpected error',
|
|
183
|
-
APIException))
|
|
184
|
-
.execute
|
|
185
|
-
end
|
|
186
|
-
|
|
187
|
-
# Updates a pet resource based on the form data.
|
|
188
|
-
# @param [Integer] pet_id Required parameter: ID of pet that needs to be
|
|
189
|
-
# updated
|
|
190
|
-
# @param [String] name Optional parameter: Name of pet that needs to be
|
|
191
|
-
# updated
|
|
192
|
-
# @param [String] status Optional parameter: Status of pet that needs to be
|
|
193
|
-
# updated
|
|
194
|
-
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
195
|
-
def update_pet_with_form(pet_id,
|
|
196
|
-
name: nil,
|
|
197
|
-
status: nil)
|
|
198
|
-
@api_call
|
|
199
|
-
.request(new_request_builder(HttpMethodEnum::POST,
|
|
200
|
-
'/pet/{petId}',
|
|
201
|
-
Server::DEFAULT)
|
|
202
|
-
.template_param(new_parameter(pet_id, key: 'petId')
|
|
203
|
-
.is_required(true)
|
|
204
|
-
.should_encode(true))
|
|
205
|
-
.query_param(new_parameter(name, key: 'name'))
|
|
206
|
-
.query_param(new_parameter(status, key: 'status'))
|
|
207
|
-
.header_param(new_parameter('application/json', key: 'accept'))
|
|
208
|
-
.auth(Single.new('petstore_auth')))
|
|
209
|
-
.response(new_response_handler
|
|
210
|
-
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
211
|
-
.deserialize_into(Pet.method(:from_hash))
|
|
212
|
-
.is_api_response(true)
|
|
213
|
-
.local_error('400',
|
|
214
|
-
'Invalid input',
|
|
215
|
-
APIException)
|
|
216
|
-
.local_error('default',
|
|
217
|
-
'Unexpected error',
|
|
218
|
-
APIException))
|
|
219
|
-
.execute
|
|
220
|
-
end
|
|
221
|
-
|
|
222
|
-
# Delete a pet.
|
|
223
|
-
# @param [Integer] pet_id Required parameter: Pet id to delete
|
|
224
|
-
# @param [String] api_key Optional parameter: TODO: type description here
|
|
225
|
-
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
226
|
-
def delete_pet(pet_id,
|
|
227
|
-
api_key: nil)
|
|
228
|
-
@api_call
|
|
229
|
-
.request(new_request_builder(HttpMethodEnum::DELETE,
|
|
230
|
-
'/pet/{petId}',
|
|
231
|
-
Server::DEFAULT)
|
|
232
|
-
.template_param(new_parameter(pet_id, key: 'petId')
|
|
233
|
-
.is_required(true)
|
|
234
|
-
.should_encode(true))
|
|
235
|
-
.header_param(new_parameter(api_key, key: 'api_key'))
|
|
236
|
-
.auth(Single.new('petstore_auth')))
|
|
237
|
-
.response(new_response_handler
|
|
238
|
-
.is_response_void(true)
|
|
239
|
-
.is_api_response(true)
|
|
240
|
-
.local_error('400',
|
|
241
|
-
'Invalid pet value',
|
|
242
|
-
APIException)
|
|
243
|
-
.local_error('default',
|
|
244
|
-
'Unexpected error',
|
|
245
|
-
APIException))
|
|
246
|
-
.execute
|
|
247
|
-
end
|
|
248
|
-
|
|
249
|
-
# Upload image of the pet.
|
|
250
|
-
# @param [Integer] pet_id Required parameter: ID of pet to update
|
|
251
|
-
# @param [String] additional_metadata Optional parameter: Additional
|
|
252
|
-
# Metadata
|
|
253
|
-
# @param [File | UploadIO] body Optional parameter: TODO: type description
|
|
254
|
-
# here
|
|
255
|
-
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
256
|
-
def upload_file(pet_id,
|
|
257
|
-
additional_metadata: nil,
|
|
258
|
-
body: nil)
|
|
259
|
-
@api_call
|
|
260
|
-
.request(new_request_builder(HttpMethodEnum::POST,
|
|
261
|
-
'/pet/{petId}/uploadImage',
|
|
262
|
-
Server::DEFAULT)
|
|
263
|
-
.template_param(new_parameter(pet_id, key: 'petId')
|
|
264
|
-
.is_required(true)
|
|
265
|
-
.should_encode(true))
|
|
266
|
-
.query_param(new_parameter(additional_metadata, key: 'additionalMetadata'))
|
|
267
|
-
.multipart_param(new_parameter(body, key: 'body')
|
|
268
|
-
.default_content_type('application/octet-stream'))
|
|
269
|
-
.header_param(new_parameter('application/json', key: 'accept'))
|
|
270
|
-
.auth(Single.new('petstore_auth')))
|
|
271
|
-
.response(new_response_handler
|
|
272
|
-
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
273
|
-
.deserialize_into(ApiResponse.method(:from_hash))
|
|
274
|
-
.is_api_response(true)
|
|
275
|
-
.local_error('400',
|
|
276
|
-
'No file uploaded',
|
|
277
|
-
APIException)
|
|
278
|
-
.local_error('404',
|
|
279
|
-
'Pet not found',
|
|
280
|
-
APIException)
|
|
281
|
-
.local_error('default',
|
|
282
|
-
'Unexpected error',
|
|
283
|
-
APIException))
|
|
284
|
-
.execute
|
|
285
|
-
end
|
|
286
|
-
end
|
|
287
|
-
end
|