sdksio-apimatic-sdk 3.0.0 → 3.0.1
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/LICENSE +1 -1
- data/README.md +165 -77
- data/bin/console +15 -0
- data/lib/apimatic_api/api_helper.rb +10 -10
- data/lib/apimatic_api/client.rb +108 -96
- data/lib/apimatic_api/configuration.rb +198 -125
- data/lib/apimatic_api/controllers/api_validation_external_apis_controller.rb +90 -84
- data/lib/apimatic_api/controllers/api_validation_v2_external_apis_controller.rb +89 -0
- data/lib/apimatic_api/controllers/base_controller.rb +55 -66
- data/lib/apimatic_api/controllers/code_generation_external_apis_controller.rb +201 -178
- data/lib/apimatic_api/controllers/docs_portal_generation_async_controller.rb +110 -0
- data/lib/apimatic_api/controllers/docs_portal_management_controller.rb +56 -198
- data/lib/apimatic_api/controllers/sdk_generation_async_controller.rb +112 -0
- data/lib/apimatic_api/controllers/transformation_controller.rb +180 -174
- data/lib/apimatic_api/exceptions/api_exception.rb +21 -10
- data/lib/apimatic_api/exceptions/bad_request_response_sdk_exception.rb +46 -0
- data/lib/apimatic_api/exceptions/internal_server_error_response_exception.rb +46 -0
- data/lib/apimatic_api/exceptions/problem_details_exception.rb +74 -0
- data/lib/apimatic_api/exceptions/unauthorized_response_exception.rb +46 -0
- data/lib/apimatic_api/http/api_response.rb +19 -0
- data/lib/apimatic_api/http/auth/custom_header_authentication.rb +48 -38
- data/lib/apimatic_api/http/http_call_back.rb +10 -10
- data/lib/apimatic_api/http/http_method_enum.rb +10 -10
- data/lib/apimatic_api/http/http_request.rb +10 -10
- data/lib/apimatic_api/http/http_response.rb +10 -10
- data/lib/apimatic_api/http/proxy_settings.rb +22 -0
- data/lib/apimatic_api/logging/configuration/api_logging_configuration.rb +186 -0
- data/lib/apimatic_api/logging/sdk_logger.rb +17 -0
- data/lib/apimatic_api/models/accept.rb +26 -0
- data/lib/apimatic_api/models/api_validation_summary.rb +100 -75
- data/lib/apimatic_api/models/base_model.rb +110 -62
- data/lib/apimatic_api/models/content_type.rb +26 -0
- data/lib/apimatic_api/models/export_formats.rb +85 -60
- data/lib/apimatic_api/models/generate_sdk_via_url_request.rb +85 -59
- data/lib/apimatic_api/models/line_info.rb +105 -0
- data/lib/apimatic_api/models/links.rb +82 -0
- data/lib/apimatic_api/models/platforms.rb +57 -39
- data/lib/apimatic_api/models/portal_generation_async_response.rb +68 -0
- data/lib/apimatic_api/models/portal_generation_status_response.rb +70 -0
- data/lib/apimatic_api/models/sdk_generation_async_response.rb +68 -0
- data/lib/apimatic_api/models/sdk_generation_status_response.rb +70 -0
- data/lib/apimatic_api/models/sdk_languages.rb +56 -0
- data/lib/apimatic_api/models/status.rb +48 -0
- data/lib/apimatic_api/models/transform_via_url_request.rb +85 -60
- data/lib/apimatic_api/models/transformation.rb +180 -152
- data/lib/apimatic_api/models/user_code_generation.rb +167 -140
- data/lib/apimatic_api/models/validate_api_result.rb +82 -0
- data/lib/apimatic_api/models/validation_entry.rb +143 -0
- data/lib/apimatic_api/models/validation_summary.rb +145 -0
- data/lib/apimatic_api/utilities/date_time_helper.rb +11 -11
- data/lib/apimatic_api/utilities/file_wrapper.rb +28 -16
- data/lib/apimatic_api.rb +79 -86
- metadata +39 -89
- data/lib/apimatic_api/controllers/api_validation_imported_apis_controller.rb +0 -74
- data/lib/apimatic_api/controllers/apis_management_controller.rb +0 -260
- data/lib/apimatic_api/controllers/code_generation_imported_apis_controller.rb +0 -136
- data/lib/apimatic_api/models/api_entity.rb +0 -220
- data/lib/apimatic_api/models/api_entity_code_generation.rb +0 -131
- data/lib/apimatic_api/models/api_entity_identifier.rb +0 -48
- data/lib/apimatic_api/models/attributes.rb +0 -48
- data/lib/apimatic_api/models/auth_scope.rb +0 -75
- data/lib/apimatic_api/models/authentication.rb +0 -112
- data/lib/apimatic_api/models/code_gen_settings.rb +0 -541
- data/lib/apimatic_api/models/code_generation.rb +0 -122
- data/lib/apimatic_api/models/docs_validation_summary.rb +0 -75
- data/lib/apimatic_api/models/endpoints_group.rb +0 -57
- data/lib/apimatic_api/models/environment.rb +0 -79
- data/lib/apimatic_api/models/field.rb +0 -156
- data/lib/apimatic_api/models/generate_on_prem_portal_via_build_input_request_body.rb +0 -48
- data/lib/apimatic_api/models/generate_sdk_via_file_request_body.rb +0 -61
- data/lib/apimatic_api/models/import_api_version_via_url_request.rb +0 -64
- data/lib/apimatic_api/models/import_api_via_file_request_body.rb +0 -51
- data/lib/apimatic_api/models/import_api_via_url_request.rb +0 -49
- data/lib/apimatic_api/models/import_new_api_version_via_file_request_body.rb +0 -66
- data/lib/apimatic_api/models/import_validation_summary.rb +0 -75
- data/lib/apimatic_api/models/inplace_api_import_binary_file.rb +0 -51
- data/lib/apimatic_api/models/inplace_import_api_via_url_request.rb +0 -49
- data/lib/apimatic_api/models/meta_data.rb +0 -70
- data/lib/apimatic_api/models/parameter.rb +0 -165
- data/lib/apimatic_api/models/paramter_format_details.rb +0 -48
- data/lib/apimatic_api/models/platforms_template.rb +0 -49
- data/lib/apimatic_api/models/server.rb +0 -69
- data/lib/apimatic_api/models/server_configuration.rb +0 -105
- data/lib/apimatic_api/models/test_gen_settings.rb +0 -70
- data/lib/apimatic_api/models/transform_via_file_request_body.rb +0 -61
- data/lib/apimatic_api/models/user_code_generation_requirements.rb +0 -57
- data/lib/apimatic_api/models/validate_api_via_file_request_body.rb +0 -51
- data/test/controllers/controller_test_base.rb +0 -29
- data/test/controllers/test_api_validation_external_apis_controller.rb +0 -144
- data/test/controllers/test_api_validation_imported_apis_controller.rb +0 -2971
- data/test/controllers/test_code_generation_external_apis_controller.rb +0 -32
- data/test/controllers/test_docs_portal_management_controller.rb +0 -94
- data/test/controllers/test_transformation_controller.rb +0 -32
- data/test/http_response_catcher.rb +0 -19
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
# apimatic_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module ApimaticApi
|
|
7
|
+
# ValidateApiResult Model.
|
|
8
|
+
class ValidateApiResult < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [ValidationSummary]
|
|
14
|
+
attr_accessor :validation
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [ValidationSummary]
|
|
18
|
+
attr_accessor :linting
|
|
19
|
+
|
|
20
|
+
# A mapping from model property names to API property names.
|
|
21
|
+
def self.names
|
|
22
|
+
@_hash = {} if @_hash.nil?
|
|
23
|
+
@_hash['validation'] = 'validation'
|
|
24
|
+
@_hash['linting'] = 'linting'
|
|
25
|
+
@_hash
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
# An array for optional fields
|
|
29
|
+
def self.optionals
|
|
30
|
+
[]
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# An array for nullable fields
|
|
34
|
+
def self.nullables
|
|
35
|
+
[]
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
def initialize(validation:, linting:, additional_properties: nil)
|
|
39
|
+
# Add additional model properties to the instance
|
|
40
|
+
additional_properties = {} if additional_properties.nil?
|
|
41
|
+
|
|
42
|
+
@validation = validation
|
|
43
|
+
@linting = linting
|
|
44
|
+
@additional_properties = additional_properties
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# Creates an instance of the object from a hash.
|
|
48
|
+
def self.from_hash(hash)
|
|
49
|
+
return nil unless hash
|
|
50
|
+
|
|
51
|
+
# Extract variables from the hash.
|
|
52
|
+
validation = ValidationSummary.from_hash(hash['validation']) if hash['validation']
|
|
53
|
+
linting = ValidationSummary.from_hash(hash['linting']) if hash['linting']
|
|
54
|
+
|
|
55
|
+
# Create a new hash for additional properties, removing known properties.
|
|
56
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
57
|
+
|
|
58
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
59
|
+
new_hash, proc { |value| value }
|
|
60
|
+
)
|
|
61
|
+
|
|
62
|
+
# Create object from extracted values.
|
|
63
|
+
ValidateApiResult.new(validation: validation,
|
|
64
|
+
linting: linting,
|
|
65
|
+
additional_properties: additional_properties)
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# Provides a human-readable string representation of the object.
|
|
69
|
+
def to_s
|
|
70
|
+
class_name = self.class.name.split('::').last
|
|
71
|
+
"<#{class_name} validation: #{@validation}, linting: #{@linting}, additional_properties:"\
|
|
72
|
+
" #{@additional_properties}>"
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
76
|
+
def inspect
|
|
77
|
+
class_name = self.class.name.split('::').last
|
|
78
|
+
"<#{class_name} validation: #{@validation.inspect}, linting: #{@linting.inspect},"\
|
|
79
|
+
" additional_properties: #{@additional_properties}>"
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
end
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
# apimatic_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module ApimaticApi
|
|
7
|
+
# ValidationEntry Model.
|
|
8
|
+
class ValidationEntry < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :message
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [LineInfo]
|
|
18
|
+
attr_accessor :line_info
|
|
19
|
+
|
|
20
|
+
# TODO: Write general description for this method
|
|
21
|
+
# @return [String]
|
|
22
|
+
attr_accessor :json_reference_path
|
|
23
|
+
|
|
24
|
+
# TODO: Write general description for this method
|
|
25
|
+
# @return [String]
|
|
26
|
+
attr_accessor :file_reference
|
|
27
|
+
|
|
28
|
+
# TODO: Write general description for this method
|
|
29
|
+
# @return [Hash[String, String]]
|
|
30
|
+
attr_accessor :metadata
|
|
31
|
+
|
|
32
|
+
# TODO: Write general description for this method
|
|
33
|
+
# @return [String]
|
|
34
|
+
attr_accessor :rule_documentation_reference
|
|
35
|
+
|
|
36
|
+
# TODO: Write general description for this method
|
|
37
|
+
# @return [Array[String]]
|
|
38
|
+
attr_accessor :additional_references
|
|
39
|
+
|
|
40
|
+
# A mapping from model property names to API property names.
|
|
41
|
+
def self.names
|
|
42
|
+
@_hash = {} if @_hash.nil?
|
|
43
|
+
@_hash['message'] = 'message'
|
|
44
|
+
@_hash['line_info'] = 'lineInfo'
|
|
45
|
+
@_hash['json_reference_path'] = 'jsonReferencePath'
|
|
46
|
+
@_hash['file_reference'] = 'fileReference'
|
|
47
|
+
@_hash['metadata'] = 'metadata'
|
|
48
|
+
@_hash['rule_documentation_reference'] = 'ruleDocumentationReference'
|
|
49
|
+
@_hash['additional_references'] = 'additionalReferences'
|
|
50
|
+
@_hash
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# An array for optional fields
|
|
54
|
+
def self.optionals
|
|
55
|
+
%w[
|
|
56
|
+
line_info
|
|
57
|
+
json_reference_path
|
|
58
|
+
file_reference
|
|
59
|
+
metadata
|
|
60
|
+
rule_documentation_reference
|
|
61
|
+
additional_references
|
|
62
|
+
]
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
# An array for nullable fields
|
|
66
|
+
def self.nullables
|
|
67
|
+
[]
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
def initialize(message:, line_info: SKIP, json_reference_path: SKIP,
|
|
71
|
+
file_reference: SKIP, metadata: SKIP,
|
|
72
|
+
rule_documentation_reference: SKIP,
|
|
73
|
+
additional_references: SKIP, additional_properties: nil)
|
|
74
|
+
# Add additional model properties to the instance
|
|
75
|
+
additional_properties = {} if additional_properties.nil?
|
|
76
|
+
|
|
77
|
+
@message = message
|
|
78
|
+
@line_info = line_info unless line_info == SKIP
|
|
79
|
+
@json_reference_path = json_reference_path unless json_reference_path == SKIP
|
|
80
|
+
@file_reference = file_reference unless file_reference == SKIP
|
|
81
|
+
@metadata = metadata unless metadata == SKIP
|
|
82
|
+
unless rule_documentation_reference == SKIP
|
|
83
|
+
@rule_documentation_reference =
|
|
84
|
+
rule_documentation_reference
|
|
85
|
+
end
|
|
86
|
+
@additional_references = additional_references unless additional_references == SKIP
|
|
87
|
+
@additional_properties = additional_properties
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# Creates an instance of the object from a hash.
|
|
91
|
+
def self.from_hash(hash)
|
|
92
|
+
return nil unless hash
|
|
93
|
+
|
|
94
|
+
# Extract variables from the hash.
|
|
95
|
+
message = hash.key?('message') ? hash['message'] : nil
|
|
96
|
+
line_info = LineInfo.from_hash(hash['lineInfo']) if hash['lineInfo']
|
|
97
|
+
json_reference_path =
|
|
98
|
+
hash.key?('jsonReferencePath') ? hash['jsonReferencePath'] : SKIP
|
|
99
|
+
file_reference = hash.key?('fileReference') ? hash['fileReference'] : SKIP
|
|
100
|
+
metadata = hash.key?('metadata') ? hash['metadata'] : SKIP
|
|
101
|
+
rule_documentation_reference =
|
|
102
|
+
hash.key?('ruleDocumentationReference') ? hash['ruleDocumentationReference'] : SKIP
|
|
103
|
+
additional_references =
|
|
104
|
+
hash.key?('additionalReferences') ? hash['additionalReferences'] : SKIP
|
|
105
|
+
|
|
106
|
+
# Create a new hash for additional properties, removing known properties.
|
|
107
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
108
|
+
|
|
109
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
110
|
+
new_hash, proc { |value| value }
|
|
111
|
+
)
|
|
112
|
+
|
|
113
|
+
# Create object from extracted values.
|
|
114
|
+
ValidationEntry.new(message: message,
|
|
115
|
+
line_info: line_info,
|
|
116
|
+
json_reference_path: json_reference_path,
|
|
117
|
+
file_reference: file_reference,
|
|
118
|
+
metadata: metadata,
|
|
119
|
+
rule_documentation_reference: rule_documentation_reference,
|
|
120
|
+
additional_references: additional_references,
|
|
121
|
+
additional_properties: additional_properties)
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
# Provides a human-readable string representation of the object.
|
|
125
|
+
def to_s
|
|
126
|
+
class_name = self.class.name.split('::').last
|
|
127
|
+
"<#{class_name} message: #{@message}, line_info: #{@line_info}, json_reference_path:"\
|
|
128
|
+
" #{@json_reference_path}, file_reference: #{@file_reference}, metadata: #{@metadata},"\
|
|
129
|
+
" rule_documentation_reference: #{@rule_documentation_reference}, additional_references:"\
|
|
130
|
+
" #{@additional_references}, additional_properties: #{@additional_properties}>"
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
134
|
+
def inspect
|
|
135
|
+
class_name = self.class.name.split('::').last
|
|
136
|
+
"<#{class_name} message: #{@message.inspect}, line_info: #{@line_info.inspect},"\
|
|
137
|
+
" json_reference_path: #{@json_reference_path.inspect}, file_reference:"\
|
|
138
|
+
" #{@file_reference.inspect}, metadata: #{@metadata.inspect}, rule_documentation_reference:"\
|
|
139
|
+
" #{@rule_documentation_reference.inspect}, additional_references:"\
|
|
140
|
+
" #{@additional_references.inspect}, additional_properties: #{@additional_properties}>"
|
|
141
|
+
end
|
|
142
|
+
end
|
|
143
|
+
end
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
# apimatic_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module ApimaticApi
|
|
7
|
+
# ValidationSummary Model.
|
|
8
|
+
class ValidationSummary < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [TrueClass | FalseClass]
|
|
14
|
+
attr_accessor :is_success
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [Array[ValidationEntry]]
|
|
18
|
+
attr_accessor :blocking
|
|
19
|
+
|
|
20
|
+
# TODO: Write general description for this method
|
|
21
|
+
# @return [Array[ValidationEntry]]
|
|
22
|
+
attr_accessor :errors
|
|
23
|
+
|
|
24
|
+
# TODO: Write general description for this method
|
|
25
|
+
# @return [Array[ValidationEntry]]
|
|
26
|
+
attr_accessor :warnings
|
|
27
|
+
|
|
28
|
+
# TODO: Write general description for this method
|
|
29
|
+
# @return [Array[ValidationEntry]]
|
|
30
|
+
attr_accessor :information
|
|
31
|
+
|
|
32
|
+
# A mapping from model property names to API property names.
|
|
33
|
+
def self.names
|
|
34
|
+
@_hash = {} if @_hash.nil?
|
|
35
|
+
@_hash['is_success'] = 'isSuccess'
|
|
36
|
+
@_hash['blocking'] = 'blocking'
|
|
37
|
+
@_hash['errors'] = 'errors'
|
|
38
|
+
@_hash['warnings'] = 'warnings'
|
|
39
|
+
@_hash['information'] = 'information'
|
|
40
|
+
@_hash
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# An array for optional fields
|
|
44
|
+
def self.optionals
|
|
45
|
+
[]
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# An array for nullable fields
|
|
49
|
+
def self.nullables
|
|
50
|
+
[]
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
def initialize(is_success:, blocking:, errors:, warnings:, information:,
|
|
54
|
+
additional_properties: nil)
|
|
55
|
+
# Add additional model properties to the instance
|
|
56
|
+
additional_properties = {} if additional_properties.nil?
|
|
57
|
+
|
|
58
|
+
@is_success = is_success
|
|
59
|
+
@blocking = blocking
|
|
60
|
+
@errors = errors
|
|
61
|
+
@warnings = warnings
|
|
62
|
+
@information = information
|
|
63
|
+
@additional_properties = additional_properties
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
# Creates an instance of the object from a hash.
|
|
67
|
+
def self.from_hash(hash)
|
|
68
|
+
return nil unless hash
|
|
69
|
+
|
|
70
|
+
# Extract variables from the hash.
|
|
71
|
+
is_success = hash.key?('isSuccess') ? hash['isSuccess'] : nil
|
|
72
|
+
# Parameter is an array, so we need to iterate through it
|
|
73
|
+
blocking = nil
|
|
74
|
+
unless hash['blocking'].nil?
|
|
75
|
+
blocking = []
|
|
76
|
+
hash['blocking'].each do |structure|
|
|
77
|
+
blocking << (ValidationEntry.from_hash(structure) if structure)
|
|
78
|
+
end
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
blocking = nil unless hash.key?('blocking')
|
|
82
|
+
# Parameter is an array, so we need to iterate through it
|
|
83
|
+
errors = nil
|
|
84
|
+
unless hash['errors'].nil?
|
|
85
|
+
errors = []
|
|
86
|
+
hash['errors'].each do |structure|
|
|
87
|
+
errors << (ValidationEntry.from_hash(structure) if structure)
|
|
88
|
+
end
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
errors = nil unless hash.key?('errors')
|
|
92
|
+
# Parameter is an array, so we need to iterate through it
|
|
93
|
+
warnings = nil
|
|
94
|
+
unless hash['warnings'].nil?
|
|
95
|
+
warnings = []
|
|
96
|
+
hash['warnings'].each do |structure|
|
|
97
|
+
warnings << (ValidationEntry.from_hash(structure) if structure)
|
|
98
|
+
end
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
warnings = nil unless hash.key?('warnings')
|
|
102
|
+
# Parameter is an array, so we need to iterate through it
|
|
103
|
+
information = nil
|
|
104
|
+
unless hash['information'].nil?
|
|
105
|
+
information = []
|
|
106
|
+
hash['information'].each do |structure|
|
|
107
|
+
information << (ValidationEntry.from_hash(structure) if structure)
|
|
108
|
+
end
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
information = nil unless hash.key?('information')
|
|
112
|
+
|
|
113
|
+
# Create a new hash for additional properties, removing known properties.
|
|
114
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
115
|
+
|
|
116
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
117
|
+
new_hash, proc { |value| value }
|
|
118
|
+
)
|
|
119
|
+
|
|
120
|
+
# Create object from extracted values.
|
|
121
|
+
ValidationSummary.new(is_success: is_success,
|
|
122
|
+
blocking: blocking,
|
|
123
|
+
errors: errors,
|
|
124
|
+
warnings: warnings,
|
|
125
|
+
information: information,
|
|
126
|
+
additional_properties: additional_properties)
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
# Provides a human-readable string representation of the object.
|
|
130
|
+
def to_s
|
|
131
|
+
class_name = self.class.name.split('::').last
|
|
132
|
+
"<#{class_name} is_success: #{@is_success}, blocking: #{@blocking}, errors: #{@errors},"\
|
|
133
|
+
" warnings: #{@warnings}, information: #{@information}, additional_properties:"\
|
|
134
|
+
" #{@additional_properties}>"
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
138
|
+
def inspect
|
|
139
|
+
class_name = self.class.name.split('::').last
|
|
140
|
+
"<#{class_name} is_success: #{@is_success.inspect}, blocking: #{@blocking.inspect}, errors:"\
|
|
141
|
+
" #{@errors.inspect}, warnings: #{@warnings.inspect}, information: #{@information.inspect},"\
|
|
142
|
+
" additional_properties: #{@additional_properties}>"
|
|
143
|
+
end
|
|
144
|
+
end
|
|
145
|
+
end
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
# apimatic_api
|
|
2
|
-
#
|
|
3
|
-
# This file was automatically generated by APIMATIC
|
|
4
|
-
#
|
|
5
|
-
|
|
6
|
-
require 'date'
|
|
7
|
-
module ApimaticApi
|
|
8
|
-
# A utility that supports dateTime conversion to different formats
|
|
9
|
-
class DateTimeHelper < CoreLibrary::DateTimeHelper
|
|
10
|
-
end
|
|
11
|
-
end
|
|
1
|
+
# apimatic_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
require 'date'
|
|
7
|
+
module ApimaticApi
|
|
8
|
+
# A utility that supports dateTime conversion to different formats
|
|
9
|
+
class DateTimeHelper < CoreLibrary::DateTimeHelper
|
|
10
|
+
end
|
|
11
|
+
end
|
|
@@ -1,16 +1,28 @@
|
|
|
1
|
-
# apimatic_api
|
|
2
|
-
#
|
|
3
|
-
# This file was automatically generated by APIMATIC
|
|
4
|
-
#
|
|
5
|
-
|
|
6
|
-
module ApimaticApi
|
|
7
|
-
# A utility to allow users to set the content-type for files
|
|
8
|
-
class FileWrapper < CoreLibrary::FileWrapper
|
|
9
|
-
# The constructor.
|
|
10
|
-
# @param [File] file The file to be sent in the request.
|
|
11
|
-
# @param [string] content_type The content type of the provided file.
|
|
12
|
-
def initialize(file, content_type: 'application/octet-stream')
|
|
13
|
-
super
|
|
14
|
-
end
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
# apimatic_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module ApimaticApi
|
|
7
|
+
# A utility to allow users to set the content-type for files
|
|
8
|
+
class FileWrapper < CoreLibrary::FileWrapper
|
|
9
|
+
# The constructor.
|
|
10
|
+
# @param [File] file The file to be sent in the request.
|
|
11
|
+
# @param [string] content_type The content type of the provided file.
|
|
12
|
+
def initialize(file, content_type: 'application/octet-stream')
|
|
13
|
+
super
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
# Provides a human-readable string representation of the object.
|
|
17
|
+
def to_s
|
|
18
|
+
class_name = self.class.name.split('::').last
|
|
19
|
+
"<#{class_name} file: #{@file}, content_type: #{@content_type}>"
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
23
|
+
def to_inspect
|
|
24
|
+
class_name = self.class.name.split('::').last
|
|
25
|
+
"<#{class_name} file: #{@file.inspect}, content_type: #{@content_type.inspect}>"
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
data/lib/apimatic_api.rb
CHANGED
|
@@ -1,86 +1,79 @@
|
|
|
1
|
-
# apimatic_api
|
|
2
|
-
#
|
|
3
|
-
# This file was automatically generated by APIMATIC
|
|
4
|
-
#
|
|
5
|
-
|
|
6
|
-
require 'date'
|
|
7
|
-
require 'json'
|
|
8
|
-
|
|
9
|
-
require '
|
|
10
|
-
require '
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
require_relative 'apimatic_api/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
require_relative 'apimatic_api/utilities/
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
require_relative 'apimatic_api/http/
|
|
22
|
-
require_relative 'apimatic_api/http/
|
|
23
|
-
require_relative 'apimatic_api/http/
|
|
24
|
-
require_relative 'apimatic_api/http/
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
require_relative 'apimatic_api/
|
|
31
|
-
require_relative 'apimatic_api/
|
|
32
|
-
require_relative 'apimatic_api/
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
require_relative 'apimatic_api/models/
|
|
36
|
-
require_relative 'apimatic_api/models/user_code_generation'
|
|
37
|
-
require_relative 'apimatic_api/models/
|
|
38
|
-
require_relative 'apimatic_api/models/
|
|
39
|
-
require_relative 'apimatic_api/models/
|
|
40
|
-
require_relative 'apimatic_api/models/
|
|
41
|
-
require_relative 'apimatic_api/models/
|
|
42
|
-
require_relative 'apimatic_api/models/
|
|
43
|
-
require_relative 'apimatic_api/models/
|
|
44
|
-
require_relative 'apimatic_api/models/
|
|
45
|
-
require_relative 'apimatic_api/models/
|
|
46
|
-
require_relative 'apimatic_api/models/
|
|
47
|
-
require_relative 'apimatic_api/models/
|
|
48
|
-
require_relative 'apimatic_api/models/
|
|
49
|
-
require_relative 'apimatic_api/models/
|
|
50
|
-
require_relative 'apimatic_api/models/
|
|
51
|
-
require_relative 'apimatic_api/models/
|
|
52
|
-
require_relative 'apimatic_api/models/
|
|
53
|
-
require_relative 'apimatic_api/models/
|
|
54
|
-
require_relative 'apimatic_api/models/'
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
require_relative 'apimatic_api/
|
|
59
|
-
require_relative 'apimatic_api/
|
|
60
|
-
require_relative 'apimatic_api/
|
|
61
|
-
|
|
62
|
-
require_relative 'apimatic_api/
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
require_relative 'apimatic_api/
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
require_relative 'apimatic_api/
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
require_relative 'apimatic_api/controllers/
|
|
76
|
-
|
|
77
|
-
require_relative 'apimatic_api/controllers/' \
|
|
78
|
-
'
|
|
79
|
-
require_relative 'apimatic_api/controllers/'
|
|
80
|
-
'code_generation_external_apis_controller'
|
|
81
|
-
require_relative 'apimatic_api/controllers/transformation_controller'
|
|
82
|
-
require_relative 'apimatic_api/controllers/docs_portal_management_controller'
|
|
83
|
-
require_relative 'apimatic_api/controllers/' \
|
|
84
|
-
'api_validation_imported_apis_controller'
|
|
85
|
-
require_relative 'apimatic_api/controllers/' \
|
|
86
|
-
'api_validation_external_apis_controller'
|
|
1
|
+
# apimatic_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# 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 'apimatic_api/api_helper'
|
|
14
|
+
require_relative 'apimatic_api/client'
|
|
15
|
+
|
|
16
|
+
# Utilities
|
|
17
|
+
require_relative 'apimatic_api/utilities/file_wrapper'
|
|
18
|
+
require_relative 'apimatic_api/utilities/date_time_helper'
|
|
19
|
+
|
|
20
|
+
# Http
|
|
21
|
+
require_relative 'apimatic_api/http/api_response'
|
|
22
|
+
require_relative 'apimatic_api/http/http_call_back'
|
|
23
|
+
require_relative 'apimatic_api/http/http_method_enum'
|
|
24
|
+
require_relative 'apimatic_api/http/http_request'
|
|
25
|
+
require_relative 'apimatic_api/http/http_response'
|
|
26
|
+
require_relative 'apimatic_api/http/proxy_settings'
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
# Logger
|
|
30
|
+
require_relative 'apimatic_api/logging/configuration/api_logging_configuration'
|
|
31
|
+
require_relative 'apimatic_api/logging/sdk_logger'
|
|
32
|
+
require_relative 'apimatic_api/http/auth/custom_header_authentication'
|
|
33
|
+
|
|
34
|
+
# Models
|
|
35
|
+
require_relative 'apimatic_api/models/base_model'
|
|
36
|
+
require_relative 'apimatic_api/models/user_code_generation'
|
|
37
|
+
require_relative 'apimatic_api/models/transformation'
|
|
38
|
+
require_relative 'apimatic_api/models/api_validation_summary'
|
|
39
|
+
require_relative 'apimatic_api/models/validate_api_result'
|
|
40
|
+
require_relative 'apimatic_api/models/validation_summary'
|
|
41
|
+
require_relative 'apimatic_api/models/validation_entry'
|
|
42
|
+
require_relative 'apimatic_api/models/line_info'
|
|
43
|
+
require_relative 'apimatic_api/models/generate_sdk_via_url_request'
|
|
44
|
+
require_relative 'apimatic_api/models/transform_via_url_request'
|
|
45
|
+
require_relative 'apimatic_api/models/portal_generation_async_response'
|
|
46
|
+
require_relative 'apimatic_api/models/portal_generation_status_response'
|
|
47
|
+
require_relative 'apimatic_api/models/sdk_generation_async_response'
|
|
48
|
+
require_relative 'apimatic_api/models/sdk_generation_status_response'
|
|
49
|
+
require_relative 'apimatic_api/models/links'
|
|
50
|
+
require_relative 'apimatic_api/models/export_formats'
|
|
51
|
+
require_relative 'apimatic_api/models/platforms'
|
|
52
|
+
require_relative 'apimatic_api/models/sdk_languages'
|
|
53
|
+
require_relative 'apimatic_api/models/accept'
|
|
54
|
+
require_relative 'apimatic_api/models/content_type'
|
|
55
|
+
require_relative 'apimatic_api/models/status'
|
|
56
|
+
|
|
57
|
+
# Exceptions
|
|
58
|
+
require_relative 'apimatic_api/exceptions/api_exception'
|
|
59
|
+
require_relative 'apimatic_api/exceptions/bad_request_response_sdk_exception'
|
|
60
|
+
require_relative 'apimatic_api/exceptions/unauthorized_response_exception'
|
|
61
|
+
require_relative 'apimatic_api/exceptions/problem_details_exception'
|
|
62
|
+
require_relative 'apimatic_api/exceptions/' \
|
|
63
|
+
'internal_server_error_response_exception'
|
|
64
|
+
|
|
65
|
+
require_relative 'apimatic_api/configuration'
|
|
66
|
+
|
|
67
|
+
# Controllers
|
|
68
|
+
require_relative 'apimatic_api/controllers/base_controller'
|
|
69
|
+
require_relative 'apimatic_api/controllers/' \
|
|
70
|
+
'code_generation_external_apis_controller'
|
|
71
|
+
require_relative 'apimatic_api/controllers/transformation_controller'
|
|
72
|
+
require_relative 'apimatic_api/controllers/docs_portal_management_controller'
|
|
73
|
+
require_relative 'apimatic_api/controllers/' \
|
|
74
|
+
'docs_portal_generation_async_controller'
|
|
75
|
+
require_relative 'apimatic_api/controllers/' \
|
|
76
|
+
'api_validation_external_apis_controller'
|
|
77
|
+
require_relative 'apimatic_api/controllers/' \
|
|
78
|
+
'api_validation_v2_external_apis_controller'
|
|
79
|
+
require_relative 'apimatic_api/controllers/sdk_generation_async_controller'
|