turnkey_client 0.0.7 → 0.0.8
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/lib/turnkey_client/api/private_keys_api.rb +58 -0
- data/lib/turnkey_client/api/wallets_api.rb +58 -0
- data/lib/turnkey_client/models/activity_type.rb +2 -0
- data/lib/turnkey_client/models/delete_private_keys_intent.rb +223 -0
- data/lib/turnkey_client/models/delete_private_keys_request.rb +288 -0
- data/lib/turnkey_client/models/delete_private_keys_result.rb +213 -0
- data/lib/turnkey_client/models/delete_wallets_intent.rb +223 -0
- data/lib/turnkey_client/models/delete_wallets_request.rb +288 -0
- data/lib/turnkey_client/models/delete_wallets_result.rb +213 -0
- data/lib/turnkey_client/models/intent.rb +22 -4
- data/lib/turnkey_client/models/result.rb +22 -4
- data/lib/turnkey_client/version.rb +1 -1
- data/lib/turnkey_client.rb +6 -0
- data/turnkey_client-0.0.7.gem +0 -0
- metadata +9 -2
@@ -0,0 +1,288 @@
|
|
1
|
+
=begin
|
2
|
+
#API Reference
|
3
|
+
|
4
|
+
#Review our [API Introduction](../api-introduction) to get started.
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
=end
|
10
|
+
|
11
|
+
require 'date'
|
12
|
+
|
13
|
+
module TurnkeyClient
|
14
|
+
class DeleteWalletsRequest
|
15
|
+
attr_accessor :type
|
16
|
+
|
17
|
+
# Timestamp (in milliseconds) of the request, used to verify liveness of user requests.
|
18
|
+
attr_accessor :timestamp_ms
|
19
|
+
|
20
|
+
# Unique identifier for a given Organization.
|
21
|
+
attr_accessor :organization_id
|
22
|
+
|
23
|
+
attr_accessor :parameters
|
24
|
+
|
25
|
+
class EnumAttributeValidator
|
26
|
+
attr_reader :datatype
|
27
|
+
attr_reader :allowable_values
|
28
|
+
|
29
|
+
def initialize(datatype, allowable_values)
|
30
|
+
@allowable_values = allowable_values.map do |value|
|
31
|
+
case datatype.to_s
|
32
|
+
when /Integer/i
|
33
|
+
value.to_i
|
34
|
+
when /Float/i
|
35
|
+
value.to_f
|
36
|
+
else
|
37
|
+
value
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
def valid?(value)
|
43
|
+
!value || allowable_values.include?(value)
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
48
|
+
def self.attribute_map
|
49
|
+
{
|
50
|
+
:'type' => :'type',
|
51
|
+
:'timestamp_ms' => :'timestampMs',
|
52
|
+
:'organization_id' => :'organizationId',
|
53
|
+
:'parameters' => :'parameters'
|
54
|
+
}
|
55
|
+
end
|
56
|
+
|
57
|
+
# Attribute type mapping.
|
58
|
+
def self.openapi_types
|
59
|
+
{
|
60
|
+
:'type' => :'Object',
|
61
|
+
:'timestamp_ms' => :'Object',
|
62
|
+
:'organization_id' => :'Object',
|
63
|
+
:'parameters' => :'Object'
|
64
|
+
}
|
65
|
+
end
|
66
|
+
|
67
|
+
# List of attributes with nullable: true
|
68
|
+
def self.openapi_nullable
|
69
|
+
Set.new([
|
70
|
+
])
|
71
|
+
end
|
72
|
+
|
73
|
+
# Initializes the object
|
74
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
75
|
+
def initialize(attributes = {})
|
76
|
+
if (!attributes.is_a?(Hash))
|
77
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TurnkeyClient::DeleteWalletsRequest` initialize method"
|
78
|
+
end
|
79
|
+
|
80
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
81
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
82
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
83
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TurnkeyClient::DeleteWalletsRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
84
|
+
end
|
85
|
+
h[k.to_sym] = v
|
86
|
+
}
|
87
|
+
|
88
|
+
if attributes.key?(:'type')
|
89
|
+
self.type = attributes[:'type']
|
90
|
+
end
|
91
|
+
|
92
|
+
if attributes.key?(:'timestamp_ms')
|
93
|
+
self.timestamp_ms = attributes[:'timestamp_ms']
|
94
|
+
end
|
95
|
+
|
96
|
+
if attributes.key?(:'organization_id')
|
97
|
+
self.organization_id = attributes[:'organization_id']
|
98
|
+
end
|
99
|
+
|
100
|
+
if attributes.key?(:'parameters')
|
101
|
+
self.parameters = attributes[:'parameters']
|
102
|
+
end
|
103
|
+
end
|
104
|
+
|
105
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
106
|
+
# @return Array for valid properties with the reasons
|
107
|
+
def list_invalid_properties
|
108
|
+
invalid_properties = Array.new
|
109
|
+
if @type.nil?
|
110
|
+
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
111
|
+
end
|
112
|
+
|
113
|
+
if @timestamp_ms.nil?
|
114
|
+
invalid_properties.push('invalid value for "timestamp_ms", timestamp_ms cannot be nil.')
|
115
|
+
end
|
116
|
+
|
117
|
+
if @organization_id.nil?
|
118
|
+
invalid_properties.push('invalid value for "organization_id", organization_id cannot be nil.')
|
119
|
+
end
|
120
|
+
|
121
|
+
if @parameters.nil?
|
122
|
+
invalid_properties.push('invalid value for "parameters", parameters cannot be nil.')
|
123
|
+
end
|
124
|
+
|
125
|
+
invalid_properties
|
126
|
+
end
|
127
|
+
|
128
|
+
# Check to see if the all the properties in the model are valid
|
129
|
+
# @return true if the model is valid
|
130
|
+
def valid?
|
131
|
+
return false if @type.nil?
|
132
|
+
type_validator = EnumAttributeValidator.new('Object', ['ACTIVITY_TYPE_DELETE_WALLETS'])
|
133
|
+
return false unless type_validator.valid?(@type)
|
134
|
+
return false if @timestamp_ms.nil?
|
135
|
+
return false if @organization_id.nil?
|
136
|
+
return false if @parameters.nil?
|
137
|
+
true
|
138
|
+
end
|
139
|
+
|
140
|
+
# Custom attribute writer method checking allowed values (enum).
|
141
|
+
# @param [Object] type Object to be assigned
|
142
|
+
def type=(type)
|
143
|
+
validator = EnumAttributeValidator.new('Object', ['ACTIVITY_TYPE_DELETE_WALLETS'])
|
144
|
+
unless validator.valid?(type)
|
145
|
+
fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
|
146
|
+
end
|
147
|
+
@type = type
|
148
|
+
end
|
149
|
+
|
150
|
+
# Checks equality by comparing each attribute.
|
151
|
+
# @param [Object] Object to be compared
|
152
|
+
def ==(o)
|
153
|
+
return true if self.equal?(o)
|
154
|
+
self.class == o.class &&
|
155
|
+
type == o.type &&
|
156
|
+
timestamp_ms == o.timestamp_ms &&
|
157
|
+
organization_id == o.organization_id &&
|
158
|
+
parameters == o.parameters
|
159
|
+
end
|
160
|
+
|
161
|
+
# @see the `==` method
|
162
|
+
# @param [Object] Object to be compared
|
163
|
+
def eql?(o)
|
164
|
+
self == o
|
165
|
+
end
|
166
|
+
|
167
|
+
# Calculates hash code according to all attributes.
|
168
|
+
# @return [Integer] Hash code
|
169
|
+
def hash
|
170
|
+
[type, timestamp_ms, organization_id, parameters].hash
|
171
|
+
end
|
172
|
+
|
173
|
+
# Builds the object from hash
|
174
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
175
|
+
# @return [Object] Returns the model itself
|
176
|
+
def self.build_from_hash(attributes)
|
177
|
+
new.build_from_hash(attributes)
|
178
|
+
end
|
179
|
+
|
180
|
+
# Builds the object from hash
|
181
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
182
|
+
# @return [Object] Returns the model itself
|
183
|
+
def build_from_hash(attributes)
|
184
|
+
return nil unless attributes.is_a?(Hash)
|
185
|
+
self.class.openapi_types.each_pair do |key, type|
|
186
|
+
if type =~ /\AArray<(.*)>/i
|
187
|
+
# check to ensure the input is an array given that the attribute
|
188
|
+
# is documented as an array but the input is not
|
189
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
190
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
191
|
+
end
|
192
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
193
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
194
|
+
elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
195
|
+
self.send("#{key}=", nil)
|
196
|
+
end
|
197
|
+
end
|
198
|
+
|
199
|
+
self
|
200
|
+
end
|
201
|
+
|
202
|
+
# Deserializes the data based on type
|
203
|
+
# @param string type Data type
|
204
|
+
# @param string value Value to be deserialized
|
205
|
+
# @return [Object] Deserialized data
|
206
|
+
def _deserialize(type, value)
|
207
|
+
case type.to_sym
|
208
|
+
when :DateTime
|
209
|
+
DateTime.parse(value)
|
210
|
+
when :Date
|
211
|
+
Date.parse(value)
|
212
|
+
when :String
|
213
|
+
value.to_s
|
214
|
+
when :Integer
|
215
|
+
value.to_i
|
216
|
+
when :Float
|
217
|
+
value.to_f
|
218
|
+
when :Boolean
|
219
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
220
|
+
true
|
221
|
+
else
|
222
|
+
false
|
223
|
+
end
|
224
|
+
when :Object
|
225
|
+
# generic object (usually a Hash), return directly
|
226
|
+
value
|
227
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
228
|
+
inner_type = Regexp.last_match[:inner_type]
|
229
|
+
value.map { |v| _deserialize(inner_type, v) }
|
230
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
231
|
+
k_type = Regexp.last_match[:k_type]
|
232
|
+
v_type = Regexp.last_match[:v_type]
|
233
|
+
{}.tap do |hash|
|
234
|
+
value.each do |k, v|
|
235
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
236
|
+
end
|
237
|
+
end
|
238
|
+
else # model
|
239
|
+
TurnkeyClient.const_get(type).build_from_hash(value)
|
240
|
+
end
|
241
|
+
end
|
242
|
+
|
243
|
+
# Returns the string representation of the object
|
244
|
+
# @return [String] String presentation of the object
|
245
|
+
def to_s
|
246
|
+
to_hash.to_s
|
247
|
+
end
|
248
|
+
|
249
|
+
# to_body is an alias to to_hash (backward compatibility)
|
250
|
+
# @return [Hash] Returns the object in the form of hash
|
251
|
+
def to_body
|
252
|
+
to_hash
|
253
|
+
end
|
254
|
+
|
255
|
+
# Returns the object in the form of hash
|
256
|
+
# @return [Hash] Returns the object in the form of hash
|
257
|
+
def to_hash
|
258
|
+
hash = {}
|
259
|
+
self.class.attribute_map.each_pair do |attr, param|
|
260
|
+
value = self.send(attr)
|
261
|
+
if value.nil?
|
262
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
263
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
264
|
+
end
|
265
|
+
|
266
|
+
hash[param] = _to_hash(value)
|
267
|
+
end
|
268
|
+
hash
|
269
|
+
end
|
270
|
+
|
271
|
+
# Outputs non-array value in the form of hash
|
272
|
+
# For object, use to_hash. Otherwise, just return the value
|
273
|
+
# @param [Object] value Any valid value
|
274
|
+
# @return [Hash] Returns the value in the form of hash
|
275
|
+
def _to_hash(value)
|
276
|
+
if value.is_a?(Array)
|
277
|
+
value.compact.map { |v| _to_hash(v) }
|
278
|
+
elsif value.is_a?(Hash)
|
279
|
+
{}.tap do |hash|
|
280
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
281
|
+
end
|
282
|
+
elsif value.respond_to? :to_hash
|
283
|
+
value.to_hash
|
284
|
+
else
|
285
|
+
value
|
286
|
+
end
|
287
|
+
end end
|
288
|
+
end
|
@@ -0,0 +1,213 @@
|
|
1
|
+
=begin
|
2
|
+
#API Reference
|
3
|
+
|
4
|
+
#Review our [API Introduction](../api-introduction) to get started.
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
=end
|
10
|
+
|
11
|
+
require 'date'
|
12
|
+
|
13
|
+
module TurnkeyClient
|
14
|
+
class DeleteWalletsResult
|
15
|
+
# A list of wallet unique identifiers that were removed
|
16
|
+
attr_accessor :wallet_ids
|
17
|
+
|
18
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
19
|
+
def self.attribute_map
|
20
|
+
{
|
21
|
+
:'wallet_ids' => :'walletIds'
|
22
|
+
}
|
23
|
+
end
|
24
|
+
|
25
|
+
# Attribute type mapping.
|
26
|
+
def self.openapi_types
|
27
|
+
{
|
28
|
+
:'wallet_ids' => :'Object'
|
29
|
+
}
|
30
|
+
end
|
31
|
+
|
32
|
+
# List of attributes with nullable: true
|
33
|
+
def self.openapi_nullable
|
34
|
+
Set.new([
|
35
|
+
])
|
36
|
+
end
|
37
|
+
|
38
|
+
# Initializes the object
|
39
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
40
|
+
def initialize(attributes = {})
|
41
|
+
if (!attributes.is_a?(Hash))
|
42
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TurnkeyClient::DeleteWalletsResult` initialize method"
|
43
|
+
end
|
44
|
+
|
45
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
46
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
47
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
48
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TurnkeyClient::DeleteWalletsResult`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
49
|
+
end
|
50
|
+
h[k.to_sym] = v
|
51
|
+
}
|
52
|
+
|
53
|
+
if attributes.key?(:'wallet_ids')
|
54
|
+
if (value = attributes[:'wallet_ids']).is_a?(Array)
|
55
|
+
self.wallet_ids = value
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
61
|
+
# @return Array for valid properties with the reasons
|
62
|
+
def list_invalid_properties
|
63
|
+
invalid_properties = Array.new
|
64
|
+
if @wallet_ids.nil?
|
65
|
+
invalid_properties.push('invalid value for "wallet_ids", wallet_ids cannot be nil.')
|
66
|
+
end
|
67
|
+
|
68
|
+
invalid_properties
|
69
|
+
end
|
70
|
+
|
71
|
+
# Check to see if the all the properties in the model are valid
|
72
|
+
# @return true if the model is valid
|
73
|
+
def valid?
|
74
|
+
return false if @wallet_ids.nil?
|
75
|
+
true
|
76
|
+
end
|
77
|
+
|
78
|
+
# Checks equality by comparing each attribute.
|
79
|
+
# @param [Object] Object to be compared
|
80
|
+
def ==(o)
|
81
|
+
return true if self.equal?(o)
|
82
|
+
self.class == o.class &&
|
83
|
+
wallet_ids == o.wallet_ids
|
84
|
+
end
|
85
|
+
|
86
|
+
# @see the `==` method
|
87
|
+
# @param [Object] Object to be compared
|
88
|
+
def eql?(o)
|
89
|
+
self == o
|
90
|
+
end
|
91
|
+
|
92
|
+
# Calculates hash code according to all attributes.
|
93
|
+
# @return [Integer] Hash code
|
94
|
+
def hash
|
95
|
+
[wallet_ids].hash
|
96
|
+
end
|
97
|
+
|
98
|
+
# Builds the object from hash
|
99
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
100
|
+
# @return [Object] Returns the model itself
|
101
|
+
def self.build_from_hash(attributes)
|
102
|
+
new.build_from_hash(attributes)
|
103
|
+
end
|
104
|
+
|
105
|
+
# Builds the object from hash
|
106
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
107
|
+
# @return [Object] Returns the model itself
|
108
|
+
def build_from_hash(attributes)
|
109
|
+
return nil unless attributes.is_a?(Hash)
|
110
|
+
self.class.openapi_types.each_pair do |key, type|
|
111
|
+
if type =~ /\AArray<(.*)>/i
|
112
|
+
# check to ensure the input is an array given that the attribute
|
113
|
+
# is documented as an array but the input is not
|
114
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
115
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
116
|
+
end
|
117
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
118
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
119
|
+
elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
120
|
+
self.send("#{key}=", nil)
|
121
|
+
end
|
122
|
+
end
|
123
|
+
|
124
|
+
self
|
125
|
+
end
|
126
|
+
|
127
|
+
# Deserializes the data based on type
|
128
|
+
# @param string type Data type
|
129
|
+
# @param string value Value to be deserialized
|
130
|
+
# @return [Object] Deserialized data
|
131
|
+
def _deserialize(type, value)
|
132
|
+
case type.to_sym
|
133
|
+
when :DateTime
|
134
|
+
DateTime.parse(value)
|
135
|
+
when :Date
|
136
|
+
Date.parse(value)
|
137
|
+
when :String
|
138
|
+
value.to_s
|
139
|
+
when :Integer
|
140
|
+
value.to_i
|
141
|
+
when :Float
|
142
|
+
value.to_f
|
143
|
+
when :Boolean
|
144
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
145
|
+
true
|
146
|
+
else
|
147
|
+
false
|
148
|
+
end
|
149
|
+
when :Object
|
150
|
+
# generic object (usually a Hash), return directly
|
151
|
+
value
|
152
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
153
|
+
inner_type = Regexp.last_match[:inner_type]
|
154
|
+
value.map { |v| _deserialize(inner_type, v) }
|
155
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
156
|
+
k_type = Regexp.last_match[:k_type]
|
157
|
+
v_type = Regexp.last_match[:v_type]
|
158
|
+
{}.tap do |hash|
|
159
|
+
value.each do |k, v|
|
160
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
161
|
+
end
|
162
|
+
end
|
163
|
+
else # model
|
164
|
+
TurnkeyClient.const_get(type).build_from_hash(value)
|
165
|
+
end
|
166
|
+
end
|
167
|
+
|
168
|
+
# Returns the string representation of the object
|
169
|
+
# @return [String] String presentation of the object
|
170
|
+
def to_s
|
171
|
+
to_hash.to_s
|
172
|
+
end
|
173
|
+
|
174
|
+
# to_body is an alias to to_hash (backward compatibility)
|
175
|
+
# @return [Hash] Returns the object in the form of hash
|
176
|
+
def to_body
|
177
|
+
to_hash
|
178
|
+
end
|
179
|
+
|
180
|
+
# Returns the object in the form of hash
|
181
|
+
# @return [Hash] Returns the object in the form of hash
|
182
|
+
def to_hash
|
183
|
+
hash = {}
|
184
|
+
self.class.attribute_map.each_pair do |attr, param|
|
185
|
+
value = self.send(attr)
|
186
|
+
if value.nil?
|
187
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
188
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
189
|
+
end
|
190
|
+
|
191
|
+
hash[param] = _to_hash(value)
|
192
|
+
end
|
193
|
+
hash
|
194
|
+
end
|
195
|
+
|
196
|
+
# Outputs non-array value in the form of hash
|
197
|
+
# For object, use to_hash. Otherwise, just return the value
|
198
|
+
# @param [Object] value Any valid value
|
199
|
+
# @return [Hash] Returns the value in the form of hash
|
200
|
+
def _to_hash(value)
|
201
|
+
if value.is_a?(Array)
|
202
|
+
value.compact.map { |v| _to_hash(v) }
|
203
|
+
elsif value.is_a?(Hash)
|
204
|
+
{}.tap do |hash|
|
205
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
206
|
+
end
|
207
|
+
elsif value.respond_to? :to_hash
|
208
|
+
value.to_hash
|
209
|
+
else
|
210
|
+
value
|
211
|
+
end
|
212
|
+
end end
|
213
|
+
end
|
@@ -156,6 +156,10 @@ module TurnkeyClient
|
|
156
156
|
|
157
157
|
attr_accessor :create_sub_organization_intent_v6
|
158
158
|
|
159
|
+
attr_accessor :delete_private_keys_intent
|
160
|
+
|
161
|
+
attr_accessor :delete_wallets_intent
|
162
|
+
|
159
163
|
# Attribute mapping from ruby-style variable name to JSON key.
|
160
164
|
def self.attribute_map
|
161
165
|
{
|
@@ -230,7 +234,9 @@ module TurnkeyClient
|
|
230
234
|
:'create_api_keys_intent_v2' => :'createApiKeysIntentV2',
|
231
235
|
:'create_read_write_session_intent' => :'createReadWriteSessionIntent',
|
232
236
|
:'email_auth_intent_v2' => :'emailAuthIntentV2',
|
233
|
-
:'create_sub_organization_intent_v6' => :'createSubOrganizationIntentV6'
|
237
|
+
:'create_sub_organization_intent_v6' => :'createSubOrganizationIntentV6',
|
238
|
+
:'delete_private_keys_intent' => :'deletePrivateKeysIntent',
|
239
|
+
:'delete_wallets_intent' => :'deleteWalletsIntent'
|
234
240
|
}
|
235
241
|
end
|
236
242
|
|
@@ -308,7 +314,9 @@ module TurnkeyClient
|
|
308
314
|
:'create_api_keys_intent_v2' => :'Object',
|
309
315
|
:'create_read_write_session_intent' => :'Object',
|
310
316
|
:'email_auth_intent_v2' => :'Object',
|
311
|
-
:'create_sub_organization_intent_v6' => :'Object'
|
317
|
+
:'create_sub_organization_intent_v6' => :'Object',
|
318
|
+
:'delete_private_keys_intent' => :'Object',
|
319
|
+
:'delete_wallets_intent' => :'Object'
|
312
320
|
}
|
313
321
|
end
|
314
322
|
|
@@ -620,6 +628,14 @@ module TurnkeyClient
|
|
620
628
|
if attributes.key?(:'create_sub_organization_intent_v6')
|
621
629
|
self.create_sub_organization_intent_v6 = attributes[:'create_sub_organization_intent_v6']
|
622
630
|
end
|
631
|
+
|
632
|
+
if attributes.key?(:'delete_private_keys_intent')
|
633
|
+
self.delete_private_keys_intent = attributes[:'delete_private_keys_intent']
|
634
|
+
end
|
635
|
+
|
636
|
+
if attributes.key?(:'delete_wallets_intent')
|
637
|
+
self.delete_wallets_intent = attributes[:'delete_wallets_intent']
|
638
|
+
end
|
623
639
|
end
|
624
640
|
|
625
641
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -711,7 +727,9 @@ module TurnkeyClient
|
|
711
727
|
create_api_keys_intent_v2 == o.create_api_keys_intent_v2 &&
|
712
728
|
create_read_write_session_intent == o.create_read_write_session_intent &&
|
713
729
|
email_auth_intent_v2 == o.email_auth_intent_v2 &&
|
714
|
-
create_sub_organization_intent_v6 == o.create_sub_organization_intent_v6
|
730
|
+
create_sub_organization_intent_v6 == o.create_sub_organization_intent_v6 &&
|
731
|
+
delete_private_keys_intent == o.delete_private_keys_intent &&
|
732
|
+
delete_wallets_intent == o.delete_wallets_intent
|
715
733
|
end
|
716
734
|
|
717
735
|
# @see the `==` method
|
@@ -723,7 +741,7 @@ module TurnkeyClient
|
|
723
741
|
# Calculates hash code according to all attributes.
|
724
742
|
# @return [Integer] Hash code
|
725
743
|
def hash
|
726
|
-
[create_organization_intent, create_authenticators_intent, create_users_intent, create_private_keys_intent, sign_raw_payload_intent, create_invitations_intent, accept_invitation_intent, create_policy_intent, disable_private_key_intent, delete_users_intent, delete_authenticators_intent, delete_invitation_intent, delete_organization_intent, delete_policy_intent, create_user_tag_intent, delete_user_tags_intent, sign_transaction_intent, create_api_keys_intent, delete_api_keys_intent, approve_activity_intent, reject_activity_intent, create_private_key_tag_intent, delete_private_key_tags_intent, create_policy_intent_v2, set_payment_method_intent, activate_billing_tier_intent, delete_payment_method_intent, create_policy_intent_v3, create_api_only_users_intent, update_root_quorum_intent, update_user_tag_intent, update_private_key_tag_intent, create_authenticators_intent_v2, accept_invitation_intent_v2, create_organization_intent_v2, create_users_intent_v2, create_sub_organization_intent, create_sub_organization_intent_v2, update_allowed_origins_intent, create_private_keys_intent_v2, update_user_intent, update_policy_intent, set_payment_method_intent_v2, create_sub_organization_intent_v3, create_wallet_intent, create_wallet_accounts_intent, init_user_email_recovery_intent, recover_user_intent, set_organization_feature_intent, remove_organization_feature_intent, sign_raw_payload_intent_v2, sign_transaction_intent_v2, export_private_key_intent, export_wallet_intent, create_sub_organization_intent_v4, email_auth_intent, export_wallet_account_intent, init_import_wallet_intent, import_wallet_intent, init_import_private_key_intent, import_private_key_intent, create_policies_intent, sign_raw_payloads_intent, create_read_only_session_intent, create_oauth_providers_intent, delete_oauth_providers_intent, create_sub_organization_intent_v5, oauth_intent, create_api_keys_intent_v2, create_read_write_session_intent, email_auth_intent_v2, create_sub_organization_intent_v6].hash
|
744
|
+
[create_organization_intent, create_authenticators_intent, create_users_intent, create_private_keys_intent, sign_raw_payload_intent, create_invitations_intent, accept_invitation_intent, create_policy_intent, disable_private_key_intent, delete_users_intent, delete_authenticators_intent, delete_invitation_intent, delete_organization_intent, delete_policy_intent, create_user_tag_intent, delete_user_tags_intent, sign_transaction_intent, create_api_keys_intent, delete_api_keys_intent, approve_activity_intent, reject_activity_intent, create_private_key_tag_intent, delete_private_key_tags_intent, create_policy_intent_v2, set_payment_method_intent, activate_billing_tier_intent, delete_payment_method_intent, create_policy_intent_v3, create_api_only_users_intent, update_root_quorum_intent, update_user_tag_intent, update_private_key_tag_intent, create_authenticators_intent_v2, accept_invitation_intent_v2, create_organization_intent_v2, create_users_intent_v2, create_sub_organization_intent, create_sub_organization_intent_v2, update_allowed_origins_intent, create_private_keys_intent_v2, update_user_intent, update_policy_intent, set_payment_method_intent_v2, create_sub_organization_intent_v3, create_wallet_intent, create_wallet_accounts_intent, init_user_email_recovery_intent, recover_user_intent, set_organization_feature_intent, remove_organization_feature_intent, sign_raw_payload_intent_v2, sign_transaction_intent_v2, export_private_key_intent, export_wallet_intent, create_sub_organization_intent_v4, email_auth_intent, export_wallet_account_intent, init_import_wallet_intent, import_wallet_intent, init_import_private_key_intent, import_private_key_intent, create_policies_intent, sign_raw_payloads_intent, create_read_only_session_intent, create_oauth_providers_intent, delete_oauth_providers_intent, create_sub_organization_intent_v5, oauth_intent, create_api_keys_intent_v2, create_read_write_session_intent, email_auth_intent_v2, create_sub_organization_intent_v6, delete_private_keys_intent, delete_wallets_intent].hash
|
727
745
|
end
|
728
746
|
|
729
747
|
# Builds the object from hash
|
@@ -128,6 +128,10 @@ module TurnkeyClient
|
|
128
128
|
|
129
129
|
attr_accessor :create_sub_organization_result_v6
|
130
130
|
|
131
|
+
attr_accessor :delete_private_keys_result
|
132
|
+
|
133
|
+
attr_accessor :delete_wallets_result
|
134
|
+
|
131
135
|
# Attribute mapping from ruby-style variable name to JSON key.
|
132
136
|
def self.attribute_map
|
133
137
|
{
|
@@ -188,7 +192,9 @@ module TurnkeyClient
|
|
188
192
|
:'create_sub_organization_result_v5' => :'createSubOrganizationResultV5',
|
189
193
|
:'oauth_result' => :'oauthResult',
|
190
194
|
:'create_read_write_session_result' => :'createReadWriteSessionResult',
|
191
|
-
:'create_sub_organization_result_v6' => :'createSubOrganizationResultV6'
|
195
|
+
:'create_sub_organization_result_v6' => :'createSubOrganizationResultV6',
|
196
|
+
:'delete_private_keys_result' => :'deletePrivateKeysResult',
|
197
|
+
:'delete_wallets_result' => :'deleteWalletsResult'
|
192
198
|
}
|
193
199
|
end
|
194
200
|
|
@@ -252,7 +258,9 @@ module TurnkeyClient
|
|
252
258
|
:'create_sub_organization_result_v5' => :'Object',
|
253
259
|
:'oauth_result' => :'Object',
|
254
260
|
:'create_read_write_session_result' => :'Object',
|
255
|
-
:'create_sub_organization_result_v6' => :'Object'
|
261
|
+
:'create_sub_organization_result_v6' => :'Object',
|
262
|
+
:'delete_private_keys_result' => :'Object',
|
263
|
+
:'delete_wallets_result' => :'Object'
|
256
264
|
}
|
257
265
|
end
|
258
266
|
|
@@ -508,6 +516,14 @@ module TurnkeyClient
|
|
508
516
|
if attributes.key?(:'create_sub_organization_result_v6')
|
509
517
|
self.create_sub_organization_result_v6 = attributes[:'create_sub_organization_result_v6']
|
510
518
|
end
|
519
|
+
|
520
|
+
if attributes.key?(:'delete_private_keys_result')
|
521
|
+
self.delete_private_keys_result = attributes[:'delete_private_keys_result']
|
522
|
+
end
|
523
|
+
|
524
|
+
if attributes.key?(:'delete_wallets_result')
|
525
|
+
self.delete_wallets_result = attributes[:'delete_wallets_result']
|
526
|
+
end
|
511
527
|
end
|
512
528
|
|
513
529
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -585,7 +601,9 @@ module TurnkeyClient
|
|
585
601
|
create_sub_organization_result_v5 == o.create_sub_organization_result_v5 &&
|
586
602
|
oauth_result == o.oauth_result &&
|
587
603
|
create_read_write_session_result == o.create_read_write_session_result &&
|
588
|
-
create_sub_organization_result_v6 == o.create_sub_organization_result_v6
|
604
|
+
create_sub_organization_result_v6 == o.create_sub_organization_result_v6 &&
|
605
|
+
delete_private_keys_result == o.delete_private_keys_result &&
|
606
|
+
delete_wallets_result == o.delete_wallets_result
|
589
607
|
end
|
590
608
|
|
591
609
|
# @see the `==` method
|
@@ -597,7 +615,7 @@ module TurnkeyClient
|
|
597
615
|
# Calculates hash code according to all attributes.
|
598
616
|
# @return [Integer] Hash code
|
599
617
|
def hash
|
600
|
-
[create_organization_result, create_authenticators_result, create_users_result, create_private_keys_result, create_invitations_result, accept_invitation_result, sign_raw_payload_result, create_policy_result, disable_private_key_result, delete_users_result, delete_authenticators_result, delete_invitation_result, delete_organization_result, delete_policy_result, create_user_tag_result, delete_user_tags_result, sign_transaction_result, delete_api_keys_result, create_api_keys_result, create_private_key_tag_result, delete_private_key_tags_result, set_payment_method_result, activate_billing_tier_result, delete_payment_method_result, create_api_only_users_result, update_root_quorum_result, update_user_tag_result, update_private_key_tag_result, create_sub_organization_result, update_allowed_origins_result, create_private_keys_result_v2, update_user_result, update_policy_result, create_sub_organization_result_v3, create_wallet_result, create_wallet_accounts_result, init_user_email_recovery_result, recover_user_result, set_organization_feature_result, remove_organization_feature_result, export_private_key_result, export_wallet_result, create_sub_organization_result_v4, email_auth_result, export_wallet_account_result, init_import_wallet_result, import_wallet_result, init_import_private_key_result, import_private_key_result, create_policies_result, sign_raw_payloads_result, create_read_only_session_result, create_oauth_providers_result, delete_oauth_providers_result, create_sub_organization_result_v5, oauth_result, create_read_write_session_result, create_sub_organization_result_v6].hash
|
618
|
+
[create_organization_result, create_authenticators_result, create_users_result, create_private_keys_result, create_invitations_result, accept_invitation_result, sign_raw_payload_result, create_policy_result, disable_private_key_result, delete_users_result, delete_authenticators_result, delete_invitation_result, delete_organization_result, delete_policy_result, create_user_tag_result, delete_user_tags_result, sign_transaction_result, delete_api_keys_result, create_api_keys_result, create_private_key_tag_result, delete_private_key_tags_result, set_payment_method_result, activate_billing_tier_result, delete_payment_method_result, create_api_only_users_result, update_root_quorum_result, update_user_tag_result, update_private_key_tag_result, create_sub_organization_result, update_allowed_origins_result, create_private_keys_result_v2, update_user_result, update_policy_result, create_sub_organization_result_v3, create_wallet_result, create_wallet_accounts_result, init_user_email_recovery_result, recover_user_result, set_organization_feature_result, remove_organization_feature_result, export_private_key_result, export_wallet_result, create_sub_organization_result_v4, email_auth_result, export_wallet_account_result, init_import_wallet_result, import_wallet_result, init_import_private_key_result, import_private_key_result, create_policies_result, sign_raw_payloads_result, create_read_only_session_result, create_oauth_providers_result, delete_oauth_providers_result, create_sub_organization_result_v5, oauth_result, create_read_write_session_result, create_sub_organization_result_v6, delete_private_keys_result, delete_wallets_result].hash
|
601
619
|
end
|
602
620
|
|
603
621
|
# Builds the object from hash
|
data/lib/turnkey_client.rb
CHANGED
@@ -134,12 +134,18 @@ require 'turnkey_client/models/delete_policy_result'
|
|
134
134
|
require 'turnkey_client/models/delete_private_key_tags_intent'
|
135
135
|
require 'turnkey_client/models/delete_private_key_tags_request'
|
136
136
|
require 'turnkey_client/models/delete_private_key_tags_result'
|
137
|
+
require 'turnkey_client/models/delete_private_keys_intent'
|
138
|
+
require 'turnkey_client/models/delete_private_keys_request'
|
139
|
+
require 'turnkey_client/models/delete_private_keys_result'
|
137
140
|
require 'turnkey_client/models/delete_user_tags_intent'
|
138
141
|
require 'turnkey_client/models/delete_user_tags_request'
|
139
142
|
require 'turnkey_client/models/delete_user_tags_result'
|
140
143
|
require 'turnkey_client/models/delete_users_intent'
|
141
144
|
require 'turnkey_client/models/delete_users_request'
|
142
145
|
require 'turnkey_client/models/delete_users_result'
|
146
|
+
require 'turnkey_client/models/delete_wallets_intent'
|
147
|
+
require 'turnkey_client/models/delete_wallets_request'
|
148
|
+
require 'turnkey_client/models/delete_wallets_result'
|
143
149
|
require 'turnkey_client/models/disable_private_key_intent'
|
144
150
|
require 'turnkey_client/models/disable_private_key_result'
|
145
151
|
require 'turnkey_client/models/effect'
|
Binary file
|