appnigma-sdk 1.0.0 → 2.1.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 +21 -0
- data/README.md +172 -35
- data/lib/appnigma/checks.rb +29 -5
- data/lib/appnigma/client.rb +20 -12
- data/lib/appnigma/connections.rb +41 -5
- data/lib/appnigma/constants.rb +14 -8
- data/lib/appnigma/errors.rb +31 -5
- data/lib/appnigma/generated/api/default_api.rb +321 -20
- 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/action_entry.rb +1 -1
- data/lib/appnigma/generated/models/connection_status.rb +3 -2
- data/lib/appnigma/generated/models/create_connection_link_input.rb +2 -13
- data/lib/appnigma/generated/models/create_connection_link_output.rb +1 -1
- data/lib/appnigma/generated/models/create_portal_link_input.rb +177 -0
- data/lib/appnigma/generated/models/create_portal_link_output.rb +205 -0
- 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_company_write_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_contact_write_output.rb +1 -1
- data/lib/appnigma/generated/models/crm_create_input.rb +2 -13
- 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_create_input.rb +2 -13
- 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_deal_write_output.rb +1 -1
- data/lib/appnigma/generated/models/crm_email.rb +1 -1
- data/lib/appnigma/generated/models/crm_get_input.rb +2 -13
- data/lib/appnigma/generated/models/crm_labelled.rb +1 -1
- data/lib/appnigma/generated/models/crm_list_input.rb +2 -13
- data/lib/appnigma/generated/models/crm_phone.rb +1 -1
- data/lib/appnigma/generated/models/crm_update_input.rb +2 -13
- data/lib/appnigma/generated/models/disconnect_connection_input.rb +216 -0
- data/lib/appnigma/generated/models/disconnect_connection_output.rb +281 -0
- data/lib/appnigma/generated/models/end_customer.rb +247 -0
- data/lib/appnigma/generated/models/end_customer_connection.rb +239 -0
- data/lib/appnigma/generated/models/function_entry.rb +74 -5
- 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 +18 -17
- data/lib/appnigma/generated/models/get_connection_input.rb +216 -0
- data/lib/appnigma/generated/models/get_connection_output.rb +18 -5
- 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_actions_output.rb +1 -1
- data/lib/appnigma/generated/models/list_connections_output.rb +193 -0
- data/lib/appnigma/generated/models/list_functions_output.rb +1 -1
- data/lib/appnigma/generated/models/list_platforms_output.rb +1 -1
- data/lib/appnigma/generated/models/logic_conditional.rb +247 -0
- data/lib/appnigma/generated/models/platform_entry.rb +1 -1
- data/lib/appnigma/generated/models/platform_entry_coverage_inner.rb +1 -1
- data/lib/appnigma/generated/models/platform_request_input.rb +2 -13
- 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/ran_as.rb +1 -1
- data/lib/appnigma/generated/models/run_action_input.rb +2 -13
- data/lib/appnigma/generated/models/run_action_output.rb +1 -1
- data/lib/appnigma/generated/models/run_input.rb +37 -24
- data/lib/appnigma/generated/models/run_output.rb +1 -1
- 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 +12 -3
- data/lib/appnigma/generated/models/sdk_problem.rb +1 -1
- data/lib/appnigma/generated/version.rb +1 -1
- data/lib/appnigma/generated.rb +10 -1
- data/lib/appnigma/portal.rb +21 -0
- data/lib/appnigma/transport.rb +4 -4
- data/lib/appnigma/version.rb +2 -2
- metadata +11 -1
|
@@ -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: 4.1.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.26.0
|
|
@@ -17,7 +17,8 @@ module Appnigma::Generated
|
|
|
17
17
|
class FunctionOwnerOneOf1 < ApiModelBase
|
|
18
18
|
attr_accessor :type
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
# The end customer's logic folder key, as connections.get answers it: their files are under end-customers/<logicFolderKey>/
|
|
21
|
+
attr_accessor :logic_folder_key
|
|
21
22
|
|
|
22
23
|
class EnumAttributeValidator
|
|
23
24
|
attr_reader :datatype
|
|
@@ -45,7 +46,7 @@ module Appnigma::Generated
|
|
|
45
46
|
def self.attribute_map
|
|
46
47
|
{
|
|
47
48
|
:'type' => :'type',
|
|
48
|
-
:'
|
|
49
|
+
:'logic_folder_key' => :'logicFolderKey'
|
|
49
50
|
}
|
|
50
51
|
end
|
|
51
52
|
|
|
@@ -63,7 +64,7 @@ module Appnigma::Generated
|
|
|
63
64
|
def self.openapi_types
|
|
64
65
|
{
|
|
65
66
|
:'type' => :'String',
|
|
66
|
-
:'
|
|
67
|
+
:'logic_folder_key' => :'String'
|
|
67
68
|
}
|
|
68
69
|
end
|
|
69
70
|
|
|
@@ -105,10 +106,10 @@ module Appnigma::Generated
|
|
|
105
106
|
self.type = nil
|
|
106
107
|
end
|
|
107
108
|
|
|
108
|
-
if attributes.key?(:'
|
|
109
|
-
self.
|
|
109
|
+
if attributes.key?(:'logic_folder_key')
|
|
110
|
+
self.logic_folder_key = attributes[:'logic_folder_key']
|
|
110
111
|
else
|
|
111
|
-
self.
|
|
112
|
+
self.logic_folder_key = nil
|
|
112
113
|
end
|
|
113
114
|
end
|
|
114
115
|
|
|
@@ -121,8 +122,8 @@ module Appnigma::Generated
|
|
|
121
122
|
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
|
122
123
|
end
|
|
123
124
|
|
|
124
|
-
if @
|
|
125
|
-
invalid_properties.push('invalid value for "
|
|
125
|
+
if @logic_folder_key.nil?
|
|
126
|
+
invalid_properties.push('invalid value for "logic_folder_key", logic_folder_key cannot be nil.')
|
|
126
127
|
end
|
|
127
128
|
|
|
128
129
|
invalid_properties
|
|
@@ -135,7 +136,7 @@ module Appnigma::Generated
|
|
|
135
136
|
return false if @type.nil?
|
|
136
137
|
type_validator = EnumAttributeValidator.new('String', ["end_customer"])
|
|
137
138
|
return false unless type_validator.valid?(@type)
|
|
138
|
-
return false if @
|
|
139
|
+
return false if @logic_folder_key.nil?
|
|
139
140
|
true
|
|
140
141
|
end
|
|
141
142
|
|
|
@@ -150,13 +151,13 @@ module Appnigma::Generated
|
|
|
150
151
|
end
|
|
151
152
|
|
|
152
153
|
# Custom attribute writer method with validation
|
|
153
|
-
# @param [Object]
|
|
154
|
-
def
|
|
155
|
-
if
|
|
156
|
-
fail ArgumentError, '
|
|
154
|
+
# @param [Object] logic_folder_key Value to be assigned
|
|
155
|
+
def logic_folder_key=(logic_folder_key)
|
|
156
|
+
if logic_folder_key.nil?
|
|
157
|
+
fail ArgumentError, 'logic_folder_key cannot be nil'
|
|
157
158
|
end
|
|
158
159
|
|
|
159
|
-
@
|
|
160
|
+
@logic_folder_key = logic_folder_key
|
|
160
161
|
end
|
|
161
162
|
|
|
162
163
|
# Checks equality by comparing each attribute.
|
|
@@ -165,7 +166,7 @@ module Appnigma::Generated
|
|
|
165
166
|
return true if self.equal?(o)
|
|
166
167
|
self.class == o.class &&
|
|
167
168
|
type == o.type &&
|
|
168
|
-
|
|
169
|
+
logic_folder_key == o.logic_folder_key
|
|
169
170
|
end
|
|
170
171
|
|
|
171
172
|
# @see the `==` method
|
|
@@ -177,7 +178,7 @@ module Appnigma::Generated
|
|
|
177
178
|
# Calculates hash code according to all attributes.
|
|
178
179
|
# @return [Integer] Hash code
|
|
179
180
|
def hash
|
|
180
|
-
[type,
|
|
181
|
+
[type, logic_folder_key].hash
|
|
181
182
|
end
|
|
182
183
|
|
|
183
184
|
# Builds the object from hash
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Appnigma SDK API
|
|
3
|
+
|
|
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
|
+
|
|
6
|
+
The version of the OpenAPI document: 4.1.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.26.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module Appnigma::Generated
|
|
17
|
+
class GetConnectionInput < ApiModelBase
|
|
18
|
+
# Your own id for the end customer: it must be 1 to 255 characters, with no control characters and not only spaces. Stored exactly as sent: ids that differ only in case or spaces are different end customers.
|
|
19
|
+
attr_accessor :end_customer_id
|
|
20
|
+
|
|
21
|
+
# The platform key, such as hubspot.
|
|
22
|
+
attr_accessor :platform
|
|
23
|
+
|
|
24
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
25
|
+
def self.attribute_map
|
|
26
|
+
{
|
|
27
|
+
:'end_customer_id' => :'endCustomerId',
|
|
28
|
+
:'platform' => :'platform'
|
|
29
|
+
}
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Returns attribute mapping this model knows about
|
|
33
|
+
def self.acceptable_attribute_map
|
|
34
|
+
attribute_map
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# Returns all the JSON keys this model knows about
|
|
38
|
+
def self.acceptable_attributes
|
|
39
|
+
acceptable_attribute_map.values
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# Attribute type mapping.
|
|
43
|
+
def self.openapi_types
|
|
44
|
+
{
|
|
45
|
+
:'end_customer_id' => :'String',
|
|
46
|
+
:'platform' => :'String'
|
|
47
|
+
}
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# List of attributes with nullable: true
|
|
51
|
+
def self.openapi_nullable
|
|
52
|
+
Set.new([
|
|
53
|
+
])
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# Returns attribute type mapping
|
|
57
|
+
def self.acceptable_openapi_types
|
|
58
|
+
openapi_types
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# Returns the nullable attributes
|
|
62
|
+
def self.acceptable_openapi_nullable
|
|
63
|
+
openapi_nullable
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
# Initializes the object
|
|
67
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
68
|
+
def initialize(attributes = {})
|
|
69
|
+
if (!attributes.is_a?(Hash))
|
|
70
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Appnigma::Generated::GetConnectionInput` initialize method"
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
74
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
75
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
76
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
77
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Appnigma::Generated::GetConnectionInput`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
78
|
+
end
|
|
79
|
+
h[k.to_sym] = v
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
if attributes.key?(:'end_customer_id')
|
|
83
|
+
self.end_customer_id = attributes[:'end_customer_id']
|
|
84
|
+
else
|
|
85
|
+
self.end_customer_id = nil
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
if attributes.key?(:'platform')
|
|
89
|
+
self.platform = attributes[:'platform']
|
|
90
|
+
else
|
|
91
|
+
self.platform = nil
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
96
|
+
# @return Array for valid properties with the reasons
|
|
97
|
+
def list_invalid_properties
|
|
98
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
99
|
+
invalid_properties = Array.new
|
|
100
|
+
if @end_customer_id.nil?
|
|
101
|
+
invalid_properties.push('invalid value for "end_customer_id", end_customer_id cannot be nil.')
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
if @platform.nil?
|
|
105
|
+
invalid_properties.push('invalid value for "platform", platform cannot be nil.')
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
pattern = Regexp.new(/^[a-z0-9]+(?:-[a-z0-9]+)*$/)
|
|
109
|
+
if @platform !~ pattern
|
|
110
|
+
invalid_properties.push("invalid value for \"platform\", must conform to the pattern #{pattern}.")
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
invalid_properties
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# Check to see if the all the properties in the model are valid
|
|
117
|
+
# @return true if the model is valid
|
|
118
|
+
def valid?
|
|
119
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
120
|
+
return false if @end_customer_id.nil?
|
|
121
|
+
return false if @platform.nil?
|
|
122
|
+
return false if @platform !~ Regexp.new(/^[a-z0-9]+(?:-[a-z0-9]+)*$/)
|
|
123
|
+
true
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
# Custom attribute writer method with validation
|
|
127
|
+
# @param [Object] end_customer_id Value to be assigned
|
|
128
|
+
def end_customer_id=(end_customer_id)
|
|
129
|
+
if end_customer_id.nil?
|
|
130
|
+
fail ArgumentError, 'end_customer_id cannot be nil'
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
@end_customer_id = end_customer_id
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
# Custom attribute writer method with validation
|
|
137
|
+
# @param [Object] platform Value to be assigned
|
|
138
|
+
def platform=(platform)
|
|
139
|
+
if platform.nil?
|
|
140
|
+
fail ArgumentError, 'platform cannot be nil'
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
pattern = Regexp.new(/^[a-z0-9]+(?:-[a-z0-9]+)*$/)
|
|
144
|
+
if platform !~ pattern
|
|
145
|
+
fail ArgumentError, "invalid value for \"platform\", must conform to the pattern #{pattern}."
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
@platform = platform
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
# Checks equality by comparing each attribute.
|
|
152
|
+
# @param [Object] Object to be compared
|
|
153
|
+
def ==(o)
|
|
154
|
+
return true if self.equal?(o)
|
|
155
|
+
self.class == o.class &&
|
|
156
|
+
end_customer_id == o.end_customer_id &&
|
|
157
|
+
platform == o.platform
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
# @see the `==` method
|
|
161
|
+
# @param [Object] Object to be compared
|
|
162
|
+
def eql?(o)
|
|
163
|
+
self == o
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
# Calculates hash code according to all attributes.
|
|
167
|
+
# @return [Integer] Hash code
|
|
168
|
+
def hash
|
|
169
|
+
[end_customer_id, platform].hash
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
# Builds the object from hash
|
|
173
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
174
|
+
# @return [Object] Returns the model itself
|
|
175
|
+
def self.build_from_hash(attributes)
|
|
176
|
+
return nil unless attributes.is_a?(Hash)
|
|
177
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
178
|
+
# include attributes inherited from allOf parents (the nearest declaration wins)
|
|
179
|
+
map = acceptable_attribute_map
|
|
180
|
+
transformed_hash = {}
|
|
181
|
+
acceptable_openapi_types.each_pair do |key, type|
|
|
182
|
+
if attributes.key?(map[key]) && attributes[map[key]].nil?
|
|
183
|
+
transformed_hash["#{key}"] = nil
|
|
184
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
185
|
+
# check to ensure the input is an array given that the attribute
|
|
186
|
+
# is documented as an array but the input is not
|
|
187
|
+
if attributes[map[key]].is_a?(Array)
|
|
188
|
+
transformed_hash["#{key}"] = attributes[map[key]].map { |v| _deserialize($1, v) }
|
|
189
|
+
end
|
|
190
|
+
elsif !attributes[map[key]].nil?
|
|
191
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[map[key]])
|
|
192
|
+
end
|
|
193
|
+
end
|
|
194
|
+
new(transformed_hash)
|
|
195
|
+
end
|
|
196
|
+
|
|
197
|
+
# Returns the object in the form of hash
|
|
198
|
+
# @return [Hash] Returns the object in the form of hash
|
|
199
|
+
def to_hash
|
|
200
|
+
hash = {}
|
|
201
|
+
# include attributes inherited from allOf parents (the nearest declaration wins)
|
|
202
|
+
self.class.acceptable_attribute_map.each_pair do |attr, param|
|
|
203
|
+
value = self.send(attr)
|
|
204
|
+
if value.nil?
|
|
205
|
+
is_nullable = self.class.acceptable_openapi_nullable.include?(attr)
|
|
206
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
207
|
+
end
|
|
208
|
+
|
|
209
|
+
hash[param] = _to_hash(value)
|
|
210
|
+
end
|
|
211
|
+
hash
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
end
|
|
@@ -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: 4.1.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.26.0
|
|
@@ -21,6 +21,9 @@ module Appnigma::Generated
|
|
|
21
21
|
|
|
22
22
|
attr_accessor :status
|
|
23
23
|
|
|
24
|
+
# The folder for this end customer's own logic, end-customers/<logicFolderKey>/ in your logic repo. The same on every platform. Null only for a connection made before the key existed, until the backfill has run.
|
|
25
|
+
attr_accessor :logic_folder_key
|
|
26
|
+
|
|
24
27
|
class EnumAttributeValidator
|
|
25
28
|
attr_reader :datatype
|
|
26
29
|
attr_reader :allowable_values
|
|
@@ -48,7 +51,8 @@ module Appnigma::Generated
|
|
|
48
51
|
{
|
|
49
52
|
:'end_customer_id' => :'endCustomerId',
|
|
50
53
|
:'platform' => :'platform',
|
|
51
|
-
:'status' => :'status'
|
|
54
|
+
:'status' => :'status',
|
|
55
|
+
:'logic_folder_key' => :'logicFolderKey'
|
|
52
56
|
}
|
|
53
57
|
end
|
|
54
58
|
|
|
@@ -67,13 +71,15 @@ module Appnigma::Generated
|
|
|
67
71
|
{
|
|
68
72
|
:'end_customer_id' => :'String',
|
|
69
73
|
:'platform' => :'String',
|
|
70
|
-
:'status' => :'ConnectionStatus'
|
|
74
|
+
:'status' => :'ConnectionStatus',
|
|
75
|
+
:'logic_folder_key' => :'String'
|
|
71
76
|
}
|
|
72
77
|
end
|
|
73
78
|
|
|
74
79
|
# List of attributes with nullable: true
|
|
75
80
|
def self.openapi_nullable
|
|
76
81
|
Set.new([
|
|
82
|
+
:'logic_folder_key'
|
|
77
83
|
])
|
|
78
84
|
end
|
|
79
85
|
|
|
@@ -120,6 +126,12 @@ module Appnigma::Generated
|
|
|
120
126
|
else
|
|
121
127
|
self.status = nil
|
|
122
128
|
end
|
|
129
|
+
|
|
130
|
+
if attributes.key?(:'logic_folder_key')
|
|
131
|
+
self.logic_folder_key = attributes[:'logic_folder_key']
|
|
132
|
+
else
|
|
133
|
+
self.logic_folder_key = nil
|
|
134
|
+
end
|
|
123
135
|
end
|
|
124
136
|
|
|
125
137
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -189,7 +201,8 @@ module Appnigma::Generated
|
|
|
189
201
|
self.class == o.class &&
|
|
190
202
|
end_customer_id == o.end_customer_id &&
|
|
191
203
|
platform == o.platform &&
|
|
192
|
-
status == o.status
|
|
204
|
+
status == o.status &&
|
|
205
|
+
logic_folder_key == o.logic_folder_key
|
|
193
206
|
end
|
|
194
207
|
|
|
195
208
|
# @see the `==` method
|
|
@@ -201,7 +214,7 @@ module Appnigma::Generated
|
|
|
201
214
|
# Calculates hash code according to all attributes.
|
|
202
215
|
# @return [Integer] Hash code
|
|
203
216
|
def hash
|
|
204
|
-
[end_customer_id, platform, status].hash
|
|
217
|
+
[end_customer_id, platform, status, logic_folder_key].hash
|
|
205
218
|
end
|
|
206
219
|
|
|
207
220
|
# 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: 4.1.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: 4.1.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: 4.1.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.26.0
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Appnigma SDK API
|
|
3
|
+
|
|
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
|
+
|
|
6
|
+
The version of the OpenAPI document: 4.1.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.26.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module Appnigma::Generated
|
|
17
|
+
class ListConnectionsOutput < ApiModelBase
|
|
18
|
+
# One entry per end customer, in id order
|
|
19
|
+
attr_accessor :end_customers
|
|
20
|
+
|
|
21
|
+
# Pass it back as cursor for the next page. Null on the last page.
|
|
22
|
+
attr_accessor :_next
|
|
23
|
+
|
|
24
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
25
|
+
def self.attribute_map
|
|
26
|
+
{
|
|
27
|
+
:'end_customers' => :'endCustomers',
|
|
28
|
+
:'_next' => :'next'
|
|
29
|
+
}
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Returns attribute mapping this model knows about
|
|
33
|
+
def self.acceptable_attribute_map
|
|
34
|
+
attribute_map
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# Returns all the JSON keys this model knows about
|
|
38
|
+
def self.acceptable_attributes
|
|
39
|
+
acceptable_attribute_map.values
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# Attribute type mapping.
|
|
43
|
+
def self.openapi_types
|
|
44
|
+
{
|
|
45
|
+
:'end_customers' => :'Array<EndCustomer>',
|
|
46
|
+
:'_next' => :'String'
|
|
47
|
+
}
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# List of attributes with nullable: true
|
|
51
|
+
def self.openapi_nullable
|
|
52
|
+
Set.new([
|
|
53
|
+
:'_next'
|
|
54
|
+
])
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# Returns attribute type mapping
|
|
58
|
+
def self.acceptable_openapi_types
|
|
59
|
+
openapi_types
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# Returns the nullable attributes
|
|
63
|
+
def self.acceptable_openapi_nullable
|
|
64
|
+
openapi_nullable
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
# Initializes the object
|
|
68
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
69
|
+
def initialize(attributes = {})
|
|
70
|
+
if (!attributes.is_a?(Hash))
|
|
71
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Appnigma::Generated::ListConnectionsOutput` initialize method"
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
75
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
76
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
77
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
78
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Appnigma::Generated::ListConnectionsOutput`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
79
|
+
end
|
|
80
|
+
h[k.to_sym] = v
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
if attributes.key?(:'end_customers')
|
|
84
|
+
if (value = attributes[:'end_customers']).is_a?(Array)
|
|
85
|
+
self.end_customers = value
|
|
86
|
+
end
|
|
87
|
+
else
|
|
88
|
+
self.end_customers = nil
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
if attributes.key?(:'_next')
|
|
92
|
+
self._next = attributes[:'_next']
|
|
93
|
+
else
|
|
94
|
+
self._next = nil
|
|
95
|
+
end
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
99
|
+
# @return Array for valid properties with the reasons
|
|
100
|
+
def list_invalid_properties
|
|
101
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
102
|
+
invalid_properties = Array.new
|
|
103
|
+
if @end_customers.nil?
|
|
104
|
+
invalid_properties.push('invalid value for "end_customers", end_customers cannot be nil.')
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
invalid_properties
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
# Check to see if the all the properties in the model are valid
|
|
111
|
+
# @return true if the model is valid
|
|
112
|
+
def valid?
|
|
113
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
114
|
+
return false if @end_customers.nil?
|
|
115
|
+
true
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
# Custom attribute writer method with validation
|
|
119
|
+
# @param [Object] end_customers Value to be assigned
|
|
120
|
+
def end_customers=(end_customers)
|
|
121
|
+
if end_customers.nil?
|
|
122
|
+
fail ArgumentError, 'end_customers cannot be nil'
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
@end_customers = end_customers
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
# Checks equality by comparing each attribute.
|
|
129
|
+
# @param [Object] Object to be compared
|
|
130
|
+
def ==(o)
|
|
131
|
+
return true if self.equal?(o)
|
|
132
|
+
self.class == o.class &&
|
|
133
|
+
end_customers == o.end_customers &&
|
|
134
|
+
_next == o._next
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
# @see the `==` method
|
|
138
|
+
# @param [Object] Object to be compared
|
|
139
|
+
def eql?(o)
|
|
140
|
+
self == o
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
# Calculates hash code according to all attributes.
|
|
144
|
+
# @return [Integer] Hash code
|
|
145
|
+
def hash
|
|
146
|
+
[end_customers, _next].hash
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
# Builds the object from hash
|
|
150
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
151
|
+
# @return [Object] Returns the model itself
|
|
152
|
+
def self.build_from_hash(attributes)
|
|
153
|
+
return nil unless attributes.is_a?(Hash)
|
|
154
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
155
|
+
# include attributes inherited from allOf parents (the nearest declaration wins)
|
|
156
|
+
map = acceptable_attribute_map
|
|
157
|
+
transformed_hash = {}
|
|
158
|
+
acceptable_openapi_types.each_pair do |key, type|
|
|
159
|
+
if attributes.key?(map[key]) && attributes[map[key]].nil?
|
|
160
|
+
transformed_hash["#{key}"] = nil
|
|
161
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
162
|
+
# check to ensure the input is an array given that the attribute
|
|
163
|
+
# is documented as an array but the input is not
|
|
164
|
+
if attributes[map[key]].is_a?(Array)
|
|
165
|
+
transformed_hash["#{key}"] = attributes[map[key]].map { |v| _deserialize($1, v) }
|
|
166
|
+
end
|
|
167
|
+
elsif !attributes[map[key]].nil?
|
|
168
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[map[key]])
|
|
169
|
+
end
|
|
170
|
+
end
|
|
171
|
+
new(transformed_hash)
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
# Returns the object in the form of hash
|
|
175
|
+
# @return [Hash] Returns the object in the form of hash
|
|
176
|
+
def to_hash
|
|
177
|
+
hash = {}
|
|
178
|
+
# include attributes inherited from allOf parents (the nearest declaration wins)
|
|
179
|
+
self.class.acceptable_attribute_map.each_pair do |attr, param|
|
|
180
|
+
value = self.send(attr)
|
|
181
|
+
if value.nil?
|
|
182
|
+
is_nullable = self.class.acceptable_openapi_nullable.include?(attr)
|
|
183
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
hash[param] = _to_hash(value)
|
|
187
|
+
end
|
|
188
|
+
hash
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
end
|
|
@@ -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: 4.1.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: 4.1.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.26.0
|