appnigma-sdk 0.2.1 → 1.0.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 +11 -0
- data/README.md +90 -69
- data/lib/appnigma/client.rb +21 -28
- data/lib/appnigma/constants.rb +1 -0
- data/lib/appnigma/crm.rb +63 -6
- data/lib/appnigma/errors.rb +15 -0
- data/lib/appnigma/generated/api/default_api.rb +523 -61
- 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 +341 -0
- data/lib/appnigma/generated/models/connection_status.rb +1 -1
- data/lib/appnigma/generated/models/create_connection_link_input.rb +1 -1
- data/lib/appnigma/generated/models/create_connection_link_output.rb +2 -2
- 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/{post_output.rb → crm_company_write_output.rb} +20 -46
- 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 +177 -0
- data/lib/appnigma/generated/models/crm_create_input.rb +256 -0
- 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/{post_input.rb → crm_deal_create_input.rb} +48 -81
- 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 +177 -0
- data/lib/appnigma/generated/models/crm_email.rb +1 -1
- data/lib/appnigma/generated/models/crm_get_input.rb +1 -1
- data/lib/appnigma/generated/models/crm_labelled.rb +1 -1
- data/lib/appnigma/generated/models/crm_list_input.rb +1 -1
- data/lib/appnigma/generated/models/crm_phone.rb +1 -1
- data/lib/appnigma/generated/models/{pull_input.rb → crm_update_input.rb} +66 -100
- data/lib/appnigma/generated/models/function_entry.rb +1 -1
- data/lib/appnigma/generated/models/function_owner.rb +1 -1
- data/lib/appnigma/generated/models/function_owner_one_of.rb +1 -1
- data/lib/appnigma/generated/models/function_owner_one_of1.rb +1 -1
- data/lib/appnigma/generated/models/get_connection_output.rb +1 -1
- data/lib/appnigma/generated/models/get_guide_output.rb +1 -1
- data/lib/appnigma/generated/models/json_value.rb +1 -1
- data/lib/appnigma/generated/models/{pull_output_records_inner.rb → list_actions_output.rb} +21 -47
- data/lib/appnigma/generated/models/list_functions_output.rb +1 -1
- data/lib/appnigma/generated/models/list_platforms_output.rb +179 -0
- data/lib/appnigma/generated/models/platform_entry.rb +269 -0
- data/lib/appnigma/generated/models/platform_entry_coverage_inner.rb +219 -0
- data/lib/appnigma/generated/models/platform_request_input.rb +1 -1
- data/lib/appnigma/generated/models/platform_request_input_body.rb +1 -1
- data/lib/appnigma/generated/models/platform_request_output.rb +1 -1
- data/lib/appnigma/generated/models/ran_as.rb +4 -6
- data/lib/appnigma/generated/models/run_action_input.rb +277 -0
- data/lib/appnigma/generated/models/{pull_output.rb → run_action_output.rb} +21 -34
- data/lib/appnigma/generated/models/run_input.rb +3 -3
- 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 +32 -3
- data/lib/appnigma/generated/models/sdk_problem.rb +1 -1
- data/lib/appnigma/generated/version.rb +1 -1
- data/lib/appnigma/generated.rb +14 -7
- data/lib/appnigma/names.rb +9 -0
- data/lib/appnigma/platforms.rb +18 -0
- data/lib/appnigma/retry.rb +3 -3
- data/lib/appnigma/version.rb +2 -2
- metadata +15 -7
- data/lib/appnigma/generated/models/post_input_record_value.rb +0 -104
|
@@ -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: 3.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.26.0
|
|
@@ -14,51 +14,26 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module Appnigma::Generated
|
|
17
|
-
class
|
|
17
|
+
class CrmUpdateInput < ApiModelBase
|
|
18
18
|
# Your own id for the end customer.
|
|
19
19
|
attr_accessor :end_customer_id
|
|
20
20
|
|
|
21
|
-
#
|
|
21
|
+
# The platform key, such as hubspot.
|
|
22
22
|
attr_accessor :platform
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
# The record's id in the CRM.
|
|
25
|
+
attr_accessor :id
|
|
25
26
|
|
|
26
|
-
#
|
|
27
|
-
attr_accessor :
|
|
28
|
-
|
|
29
|
-
# The next marker from the previous page.
|
|
30
|
-
attr_accessor :after
|
|
31
|
-
|
|
32
|
-
class EnumAttributeValidator
|
|
33
|
-
attr_reader :datatype
|
|
34
|
-
attr_reader :allowable_values
|
|
35
|
-
|
|
36
|
-
def initialize(datatype, allowable_values)
|
|
37
|
-
@allowable_values = allowable_values.map do |value|
|
|
38
|
-
case datatype.to_s
|
|
39
|
-
when /Integer/i
|
|
40
|
-
value.to_i
|
|
41
|
-
when /Float/i
|
|
42
|
-
value.to_f
|
|
43
|
-
else
|
|
44
|
-
value
|
|
45
|
-
end
|
|
46
|
-
end
|
|
47
|
-
end
|
|
48
|
-
|
|
49
|
-
def valid?(value)
|
|
50
|
-
!value || allowable_values.include?(value)
|
|
51
|
-
end
|
|
52
|
-
end
|
|
27
|
+
# The fields to set. null clears a value; a field left out is left alone.
|
|
28
|
+
attr_accessor :record
|
|
53
29
|
|
|
54
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
55
31
|
def self.attribute_map
|
|
56
32
|
{
|
|
57
33
|
:'end_customer_id' => :'endCustomerId',
|
|
58
34
|
:'platform' => :'platform',
|
|
59
|
-
:'
|
|
60
|
-
:'
|
|
61
|
-
:'after' => :'after'
|
|
35
|
+
:'id' => :'id',
|
|
36
|
+
:'record' => :'record'
|
|
62
37
|
}
|
|
63
38
|
end
|
|
64
39
|
|
|
@@ -77,9 +52,8 @@ module Appnigma::Generated
|
|
|
77
52
|
{
|
|
78
53
|
:'end_customer_id' => :'String',
|
|
79
54
|
:'platform' => :'String',
|
|
80
|
-
:'
|
|
81
|
-
:'
|
|
82
|
-
:'after' => :'String'
|
|
55
|
+
:'id' => :'String',
|
|
56
|
+
:'record' => :'Hash<String, JsonValue>'
|
|
83
57
|
}
|
|
84
58
|
end
|
|
85
59
|
|
|
@@ -103,14 +77,14 @@ module Appnigma::Generated
|
|
|
103
77
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
104
78
|
def initialize(attributes = {})
|
|
105
79
|
if (!attributes.is_a?(Hash))
|
|
106
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Appnigma::Generated::
|
|
80
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Appnigma::Generated::CrmUpdateInput` initialize method"
|
|
107
81
|
end
|
|
108
82
|
|
|
109
83
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
110
84
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
111
85
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
112
86
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
113
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Appnigma::Generated::
|
|
87
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Appnigma::Generated::CrmUpdateInput`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
114
88
|
end
|
|
115
89
|
h[k.to_sym] = v
|
|
116
90
|
}
|
|
@@ -127,18 +101,18 @@ module Appnigma::Generated
|
|
|
127
101
|
self.platform = nil
|
|
128
102
|
end
|
|
129
103
|
|
|
130
|
-
if attributes.key?(:'
|
|
131
|
-
self.
|
|
104
|
+
if attributes.key?(:'id')
|
|
105
|
+
self.id = attributes[:'id']
|
|
132
106
|
else
|
|
133
|
-
self.
|
|
134
|
-
end
|
|
135
|
-
|
|
136
|
-
if attributes.key?(:'limit')
|
|
137
|
-
self.limit = attributes[:'limit']
|
|
107
|
+
self.id = nil
|
|
138
108
|
end
|
|
139
109
|
|
|
140
|
-
if attributes.key?(:'
|
|
141
|
-
|
|
110
|
+
if attributes.key?(:'record')
|
|
111
|
+
if (value = attributes[:'record']).is_a?(Hash)
|
|
112
|
+
self.record = value
|
|
113
|
+
end
|
|
114
|
+
else
|
|
115
|
+
self.record = nil
|
|
142
116
|
end
|
|
143
117
|
end
|
|
144
118
|
|
|
@@ -160,20 +134,25 @@ module Appnigma::Generated
|
|
|
160
134
|
invalid_properties.push('invalid value for "platform", platform cannot be nil.')
|
|
161
135
|
end
|
|
162
136
|
|
|
163
|
-
|
|
164
|
-
|
|
137
|
+
pattern = Regexp.new(/^[a-z0-9]+(?:-[a-z0-9]+)*$/)
|
|
138
|
+
if @platform !~ pattern
|
|
139
|
+
invalid_properties.push("invalid value for \"platform\", must conform to the pattern #{pattern}.")
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
if @id.nil?
|
|
143
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
165
144
|
end
|
|
166
145
|
|
|
167
|
-
if
|
|
168
|
-
invalid_properties.push('invalid value for "
|
|
146
|
+
if @id.to_s.length > 200
|
|
147
|
+
invalid_properties.push('invalid value for "id", the character length must be smaller than or equal to 200.')
|
|
169
148
|
end
|
|
170
149
|
|
|
171
|
-
if
|
|
172
|
-
invalid_properties.push('invalid value for "
|
|
150
|
+
if @id.to_s.length < 1
|
|
151
|
+
invalid_properties.push('invalid value for "id", the character length must be greater than or equal to 1.')
|
|
173
152
|
end
|
|
174
153
|
|
|
175
|
-
if
|
|
176
|
-
invalid_properties.push('invalid value for "
|
|
154
|
+
if @record.nil?
|
|
155
|
+
invalid_properties.push('invalid value for "record", record cannot be nil.')
|
|
177
156
|
end
|
|
178
157
|
|
|
179
158
|
invalid_properties
|
|
@@ -186,14 +165,11 @@ module Appnigma::Generated
|
|
|
186
165
|
return false if @end_customer_id.nil?
|
|
187
166
|
return false if @end_customer_id !~ Regexp.new(/^[A-Za-z0-9._-]{1,100}$/)
|
|
188
167
|
return false if @platform.nil?
|
|
189
|
-
|
|
190
|
-
return false
|
|
191
|
-
return false if @
|
|
192
|
-
|
|
193
|
-
return false
|
|
194
|
-
return false if !@limit.nil? && @limit > 100
|
|
195
|
-
return false if !@limit.nil? && @limit < 1
|
|
196
|
-
return false if !@after.nil? && @after.to_s.length < 1
|
|
168
|
+
return false if @platform !~ Regexp.new(/^[a-z0-9]+(?:-[a-z0-9]+)*$/)
|
|
169
|
+
return false if @id.nil?
|
|
170
|
+
return false if @id.to_s.length > 200
|
|
171
|
+
return false if @id.to_s.length < 1
|
|
172
|
+
return false if @record.nil?
|
|
197
173
|
true
|
|
198
174
|
end
|
|
199
175
|
|
|
@@ -212,56 +188,47 @@ module Appnigma::Generated
|
|
|
212
188
|
@end_customer_id = end_customer_id
|
|
213
189
|
end
|
|
214
190
|
|
|
215
|
-
# Custom attribute writer method
|
|
216
|
-
# @param [Object] platform
|
|
191
|
+
# Custom attribute writer method with validation
|
|
192
|
+
# @param [Object] platform Value to be assigned
|
|
217
193
|
def platform=(platform)
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
fail ArgumentError, "invalid value for \"platform\", must be one of #{validator.allowable_values}."
|
|
194
|
+
if platform.nil?
|
|
195
|
+
fail ArgumentError, 'platform cannot be nil'
|
|
221
196
|
end
|
|
222
|
-
@platform = platform
|
|
223
|
-
end
|
|
224
197
|
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
validator = EnumAttributeValidator.new('String', ["contact", "company", "deal"])
|
|
229
|
-
unless validator.valid?(object)
|
|
230
|
-
fail ArgumentError, "invalid value for \"object\", must be one of #{validator.allowable_values}."
|
|
198
|
+
pattern = Regexp.new(/^[a-z0-9]+(?:-[a-z0-9]+)*$/)
|
|
199
|
+
if platform !~ pattern
|
|
200
|
+
fail ArgumentError, "invalid value for \"platform\", must conform to the pattern #{pattern}."
|
|
231
201
|
end
|
|
232
|
-
|
|
202
|
+
|
|
203
|
+
@platform = platform
|
|
233
204
|
end
|
|
234
205
|
|
|
235
206
|
# Custom attribute writer method with validation
|
|
236
|
-
# @param [Object]
|
|
237
|
-
def
|
|
238
|
-
if
|
|
239
|
-
fail ArgumentError, '
|
|
207
|
+
# @param [Object] id Value to be assigned
|
|
208
|
+
def id=(id)
|
|
209
|
+
if id.nil?
|
|
210
|
+
fail ArgumentError, 'id cannot be nil'
|
|
240
211
|
end
|
|
241
212
|
|
|
242
|
-
if
|
|
243
|
-
fail ArgumentError, 'invalid value for "
|
|
213
|
+
if id.to_s.length > 200
|
|
214
|
+
fail ArgumentError, 'invalid value for "id", the character length must be smaller than or equal to 200.'
|
|
244
215
|
end
|
|
245
216
|
|
|
246
|
-
if
|
|
247
|
-
fail ArgumentError, 'invalid value for "
|
|
217
|
+
if id.to_s.length < 1
|
|
218
|
+
fail ArgumentError, 'invalid value for "id", the character length must be greater than or equal to 1.'
|
|
248
219
|
end
|
|
249
220
|
|
|
250
|
-
@
|
|
221
|
+
@id = id
|
|
251
222
|
end
|
|
252
223
|
|
|
253
224
|
# Custom attribute writer method with validation
|
|
254
|
-
# @param [Object]
|
|
255
|
-
def
|
|
256
|
-
if
|
|
257
|
-
fail ArgumentError, '
|
|
258
|
-
end
|
|
259
|
-
|
|
260
|
-
if after.to_s.length < 1
|
|
261
|
-
fail ArgumentError, 'invalid value for "after", the character length must be greater than or equal to 1.'
|
|
225
|
+
# @param [Object] record Value to be assigned
|
|
226
|
+
def record=(record)
|
|
227
|
+
if record.nil?
|
|
228
|
+
fail ArgumentError, 'record cannot be nil'
|
|
262
229
|
end
|
|
263
230
|
|
|
264
|
-
@
|
|
231
|
+
@record = record
|
|
265
232
|
end
|
|
266
233
|
|
|
267
234
|
# Checks equality by comparing each attribute.
|
|
@@ -271,9 +238,8 @@ module Appnigma::Generated
|
|
|
271
238
|
self.class == o.class &&
|
|
272
239
|
end_customer_id == o.end_customer_id &&
|
|
273
240
|
platform == o.platform &&
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
after == o.after
|
|
241
|
+
id == o.id &&
|
|
242
|
+
record == o.record
|
|
277
243
|
end
|
|
278
244
|
|
|
279
245
|
# @see the `==` method
|
|
@@ -285,7 +251,7 @@ module Appnigma::Generated
|
|
|
285
251
|
# Calculates hash code according to all attributes.
|
|
286
252
|
# @return [Integer] Hash code
|
|
287
253
|
def hash
|
|
288
|
-
[end_customer_id, platform,
|
|
254
|
+
[end_customer_id, platform, id, record].hash
|
|
289
255
|
end
|
|
290
256
|
|
|
291
257
|
# 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: 3.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.26.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The routes a customer's product calls through an Appnigma SDK. Every answer carries a request id in X-Request-Id; quote it when you write to support.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document:
|
|
6
|
+
The version of the OpenAPI document: 3.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.26.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The routes a customer's product calls through an Appnigma SDK. Every answer carries a request id in X-Request-Id; quote it when you write to support.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document:
|
|
6
|
+
The version of the OpenAPI document: 3.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.26.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The routes a customer's product calls through an Appnigma SDK. Every answer carries a request id in X-Request-Id; quote it when you write to support.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document:
|
|
6
|
+
The version of the OpenAPI document: 3.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.26.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The routes a customer's product calls through an Appnigma SDK. Every answer carries a request id in X-Request-Id; quote it when you write to support.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document:
|
|
6
|
+
The version of the OpenAPI document: 3.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.26.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The routes a customer's product calls through an Appnigma SDK. Every answer carries a request id in X-Request-Id; quote it when you write to support.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document:
|
|
6
|
+
The version of the OpenAPI document: 3.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.26.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The routes a customer's product calls through an Appnigma SDK. Every answer carries a request id in X-Request-Id; quote it when you write to support.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document:
|
|
6
|
+
The version of the OpenAPI document: 3.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.26.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The routes a customer's product calls through an Appnigma SDK. Every answer carries a request id in X-Request-Id; quote it when you write to support.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document:
|
|
6
|
+
The version of the OpenAPI document: 3.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.26.0
|
|
@@ -14,16 +14,13 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module Appnigma::Generated
|
|
17
|
-
class
|
|
18
|
-
attr_accessor :
|
|
19
|
-
|
|
20
|
-
attr_accessor :properties
|
|
17
|
+
class ListActionsOutput < ApiModelBase
|
|
18
|
+
attr_accessor :actions
|
|
21
19
|
|
|
22
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
23
21
|
def self.attribute_map
|
|
24
22
|
{
|
|
25
|
-
:'
|
|
26
|
-
:'properties' => :'properties'
|
|
23
|
+
:'actions' => :'actions'
|
|
27
24
|
}
|
|
28
25
|
end
|
|
29
26
|
|
|
@@ -40,8 +37,7 @@ module Appnigma::Generated
|
|
|
40
37
|
# Attribute type mapping.
|
|
41
38
|
def self.openapi_types
|
|
42
39
|
{
|
|
43
|
-
:'
|
|
44
|
-
:'properties' => :'Hash<String, String>'
|
|
40
|
+
:'actions' => :'Array<ActionEntry>'
|
|
45
41
|
}
|
|
46
42
|
end
|
|
47
43
|
|
|
@@ -65,30 +61,24 @@ module Appnigma::Generated
|
|
|
65
61
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
66
62
|
def initialize(attributes = {})
|
|
67
63
|
if (!attributes.is_a?(Hash))
|
|
68
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Appnigma::Generated::
|
|
64
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Appnigma::Generated::ListActionsOutput` initialize method"
|
|
69
65
|
end
|
|
70
66
|
|
|
71
67
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
72
68
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
73
69
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
74
70
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
75
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Appnigma::Generated::
|
|
71
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Appnigma::Generated::ListActionsOutput`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
76
72
|
end
|
|
77
73
|
h[k.to_sym] = v
|
|
78
74
|
}
|
|
79
75
|
|
|
80
|
-
if attributes.key?(:'
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
self.id = nil
|
|
84
|
-
end
|
|
85
|
-
|
|
86
|
-
if attributes.key?(:'properties')
|
|
87
|
-
if (value = attributes[:'properties']).is_a?(Hash)
|
|
88
|
-
self.properties = value
|
|
76
|
+
if attributes.key?(:'actions')
|
|
77
|
+
if (value = attributes[:'actions']).is_a?(Array)
|
|
78
|
+
self.actions = value
|
|
89
79
|
end
|
|
90
80
|
else
|
|
91
|
-
self.
|
|
81
|
+
self.actions = nil
|
|
92
82
|
end
|
|
93
83
|
end
|
|
94
84
|
|
|
@@ -97,12 +87,8 @@ module Appnigma::Generated
|
|
|
97
87
|
def list_invalid_properties
|
|
98
88
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
99
89
|
invalid_properties = Array.new
|
|
100
|
-
if @
|
|
101
|
-
invalid_properties.push('invalid value for "
|
|
102
|
-
end
|
|
103
|
-
|
|
104
|
-
if @properties.nil?
|
|
105
|
-
invalid_properties.push('invalid value for "properties", properties cannot be nil.')
|
|
90
|
+
if @actions.nil?
|
|
91
|
+
invalid_properties.push('invalid value for "actions", actions cannot be nil.')
|
|
106
92
|
end
|
|
107
93
|
|
|
108
94
|
invalid_properties
|
|
@@ -112,29 +98,18 @@ module Appnigma::Generated
|
|
|
112
98
|
# @return true if the model is valid
|
|
113
99
|
def valid?
|
|
114
100
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
115
|
-
return false if @
|
|
116
|
-
return false if @properties.nil?
|
|
101
|
+
return false if @actions.nil?
|
|
117
102
|
true
|
|
118
103
|
end
|
|
119
104
|
|
|
120
105
|
# Custom attribute writer method with validation
|
|
121
|
-
# @param [Object]
|
|
122
|
-
def
|
|
123
|
-
if
|
|
124
|
-
fail ArgumentError, '
|
|
125
|
-
end
|
|
126
|
-
|
|
127
|
-
@id = id
|
|
128
|
-
end
|
|
129
|
-
|
|
130
|
-
# Custom attribute writer method with validation
|
|
131
|
-
# @param [Object] properties Value to be assigned
|
|
132
|
-
def properties=(properties)
|
|
133
|
-
if properties.nil?
|
|
134
|
-
fail ArgumentError, 'properties cannot be nil'
|
|
106
|
+
# @param [Object] actions Value to be assigned
|
|
107
|
+
def actions=(actions)
|
|
108
|
+
if actions.nil?
|
|
109
|
+
fail ArgumentError, 'actions cannot be nil'
|
|
135
110
|
end
|
|
136
111
|
|
|
137
|
-
@
|
|
112
|
+
@actions = actions
|
|
138
113
|
end
|
|
139
114
|
|
|
140
115
|
# Checks equality by comparing each attribute.
|
|
@@ -142,8 +117,7 @@ module Appnigma::Generated
|
|
|
142
117
|
def ==(o)
|
|
143
118
|
return true if self.equal?(o)
|
|
144
119
|
self.class == o.class &&
|
|
145
|
-
|
|
146
|
-
properties == o.properties
|
|
120
|
+
actions == o.actions
|
|
147
121
|
end
|
|
148
122
|
|
|
149
123
|
# @see the `==` method
|
|
@@ -155,7 +129,7 @@ module Appnigma::Generated
|
|
|
155
129
|
# Calculates hash code according to all attributes.
|
|
156
130
|
# @return [Integer] Hash code
|
|
157
131
|
def hash
|
|
158
|
-
[
|
|
132
|
+
[actions].hash
|
|
159
133
|
end
|
|
160
134
|
|
|
161
135
|
# 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: 3.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.26.0
|