smplkit 2.0.4 → 2.0.5
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/smplkit/_generated/audit/lib/smplkit_audit_client/api/actions_api.rb +159 -0
- data/lib/smplkit/_generated/audit/lib/smplkit_audit_client/api/functions_api.rb +90 -0
- data/lib/smplkit/_generated/audit/lib/smplkit_audit_client/api/resource_types_api.rb +159 -0
- data/lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/action_attributes.rb +192 -0
- data/lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/action_list_links.rb +148 -0
- data/lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/action_list_meta.rb +164 -0
- data/lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/action_list_response.rb +202 -0
- data/lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/action_resource.rb +202 -0
- data/lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/resource_type_attributes.rb +192 -0
- data/lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/resource_type_list_links.rb +148 -0
- data/lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/resource_type_list_meta.rb +164 -0
- data/lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/resource_type_list_response.rb +202 -0
- data/lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/resource_type_resource.rb +202 -0
- data/lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/wipe_response.rb +201 -0
- data/lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/wipe_tables_summary.rb +348 -0
- data/lib/smplkit/_generated/audit/lib/smplkit_audit_client.rb +15 -0
- data/lib/smplkit/_generated/audit/spec/api/actions_api_spec.rb +62 -0
- data/lib/smplkit/_generated/audit/spec/api/functions_api_spec.rb +47 -0
- data/lib/smplkit/_generated/audit/spec/api/resource_types_api_spec.rb +62 -0
- data/lib/smplkit/_generated/audit/spec/models/action_attributes_spec.rb +42 -0
- data/lib/smplkit/_generated/audit/spec/models/action_list_links_spec.rb +36 -0
- data/lib/smplkit/_generated/audit/spec/models/action_list_meta_spec.rb +36 -0
- data/lib/smplkit/_generated/audit/spec/models/action_list_response_spec.rb +48 -0
- data/lib/smplkit/_generated/audit/spec/models/action_resource_spec.rb +48 -0
- data/lib/smplkit/_generated/audit/spec/models/resource_type_attributes_spec.rb +42 -0
- data/lib/smplkit/_generated/audit/spec/models/resource_type_list_links_spec.rb +36 -0
- data/lib/smplkit/_generated/audit/spec/models/resource_type_list_meta_spec.rb +36 -0
- data/lib/smplkit/_generated/audit/spec/models/resource_type_list_response_spec.rb +48 -0
- data/lib/smplkit/_generated/audit/spec/models/resource_type_resource_spec.rb +48 -0
- data/lib/smplkit/_generated/audit/spec/models/wipe_response_spec.rb +48 -0
- data/lib/smplkit/_generated/audit/spec/models/wipe_tables_summary_spec.rb +66 -0
- metadata +31 -1
|
@@ -0,0 +1,348 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#smplkit Audit API
|
|
3
|
+
|
|
4
|
+
#Append-only change-history substrate for smpl.* resources and customer-application events. ADR-047.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 0.1.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.22.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module SmplkitGeneratedClient::Audit
|
|
17
|
+
class WipeTablesSummary < ApiModelBase
|
|
18
|
+
attr_accessor :audit_event
|
|
19
|
+
|
|
20
|
+
attr_accessor :audit_event_quota
|
|
21
|
+
|
|
22
|
+
attr_accessor :forwarder
|
|
23
|
+
|
|
24
|
+
attr_accessor :forwarder_delivery
|
|
25
|
+
|
|
26
|
+
attr_accessor :resource_type
|
|
27
|
+
|
|
28
|
+
attr_accessor :action
|
|
29
|
+
|
|
30
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
31
|
+
def self.attribute_map
|
|
32
|
+
{
|
|
33
|
+
:'audit_event' => :'audit_event',
|
|
34
|
+
:'audit_event_quota' => :'audit_event_quota',
|
|
35
|
+
:'forwarder' => :'forwarder',
|
|
36
|
+
:'forwarder_delivery' => :'forwarder_delivery',
|
|
37
|
+
:'resource_type' => :'resource_type',
|
|
38
|
+
:'action' => :'action'
|
|
39
|
+
}
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# Returns attribute mapping this model knows about
|
|
43
|
+
def self.acceptable_attribute_map
|
|
44
|
+
attribute_map
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# Returns all the JSON keys this model knows about
|
|
48
|
+
def self.acceptable_attributes
|
|
49
|
+
acceptable_attribute_map.values
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# Attribute type mapping.
|
|
53
|
+
def self.openapi_types
|
|
54
|
+
{
|
|
55
|
+
:'audit_event' => :'Integer',
|
|
56
|
+
:'audit_event_quota' => :'Integer',
|
|
57
|
+
:'forwarder' => :'Integer',
|
|
58
|
+
:'forwarder_delivery' => :'Integer',
|
|
59
|
+
:'resource_type' => :'Integer',
|
|
60
|
+
:'action' => :'Integer'
|
|
61
|
+
}
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
# List of attributes with nullable: true
|
|
65
|
+
def self.openapi_nullable
|
|
66
|
+
Set.new([
|
|
67
|
+
])
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# Initializes the object
|
|
71
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
72
|
+
def initialize(attributes = {})
|
|
73
|
+
if (!attributes.is_a?(Hash))
|
|
74
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SmplkitGeneratedClient::Audit::WipeTablesSummary` initialize method"
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
78
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
79
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
80
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
81
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SmplkitGeneratedClient::Audit::WipeTablesSummary`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
82
|
+
end
|
|
83
|
+
h[k.to_sym] = v
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
if attributes.key?(:'audit_event')
|
|
87
|
+
self.audit_event = attributes[:'audit_event']
|
|
88
|
+
else
|
|
89
|
+
self.audit_event = nil
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
if attributes.key?(:'audit_event_quota')
|
|
93
|
+
self.audit_event_quota = attributes[:'audit_event_quota']
|
|
94
|
+
else
|
|
95
|
+
self.audit_event_quota = nil
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
if attributes.key?(:'forwarder')
|
|
99
|
+
self.forwarder = attributes[:'forwarder']
|
|
100
|
+
else
|
|
101
|
+
self.forwarder = nil
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
if attributes.key?(:'forwarder_delivery')
|
|
105
|
+
self.forwarder_delivery = attributes[:'forwarder_delivery']
|
|
106
|
+
else
|
|
107
|
+
self.forwarder_delivery = nil
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
if attributes.key?(:'resource_type')
|
|
111
|
+
self.resource_type = attributes[:'resource_type']
|
|
112
|
+
else
|
|
113
|
+
self.resource_type = nil
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
if attributes.key?(:'action')
|
|
117
|
+
self.action = attributes[:'action']
|
|
118
|
+
else
|
|
119
|
+
self.action = nil
|
|
120
|
+
end
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
124
|
+
# @return Array for valid properties with the reasons
|
|
125
|
+
def list_invalid_properties
|
|
126
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
127
|
+
invalid_properties = Array.new
|
|
128
|
+
if @audit_event.nil?
|
|
129
|
+
invalid_properties.push('invalid value for "audit_event", audit_event cannot be nil.')
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
if @audit_event < 0
|
|
133
|
+
invalid_properties.push('invalid value for "audit_event", must be greater than or equal to 0.')
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
if @audit_event_quota.nil?
|
|
137
|
+
invalid_properties.push('invalid value for "audit_event_quota", audit_event_quota cannot be nil.')
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
if @audit_event_quota < 0
|
|
141
|
+
invalid_properties.push('invalid value for "audit_event_quota", must be greater than or equal to 0.')
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
if @forwarder.nil?
|
|
145
|
+
invalid_properties.push('invalid value for "forwarder", forwarder cannot be nil.')
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
if @forwarder < 0
|
|
149
|
+
invalid_properties.push('invalid value for "forwarder", must be greater than or equal to 0.')
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
if @forwarder_delivery.nil?
|
|
153
|
+
invalid_properties.push('invalid value for "forwarder_delivery", forwarder_delivery cannot be nil.')
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
if @forwarder_delivery < 0
|
|
157
|
+
invalid_properties.push('invalid value for "forwarder_delivery", must be greater than or equal to 0.')
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
if @resource_type.nil?
|
|
161
|
+
invalid_properties.push('invalid value for "resource_type", resource_type cannot be nil.')
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
if @resource_type < 0
|
|
165
|
+
invalid_properties.push('invalid value for "resource_type", must be greater than or equal to 0.')
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
if @action.nil?
|
|
169
|
+
invalid_properties.push('invalid value for "action", action cannot be nil.')
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
if @action < 0
|
|
173
|
+
invalid_properties.push('invalid value for "action", must be greater than or equal to 0.')
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
invalid_properties
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
# Check to see if the all the properties in the model are valid
|
|
180
|
+
# @return true if the model is valid
|
|
181
|
+
def valid?
|
|
182
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
183
|
+
return false if @audit_event.nil?
|
|
184
|
+
return false if @audit_event < 0
|
|
185
|
+
return false if @audit_event_quota.nil?
|
|
186
|
+
return false if @audit_event_quota < 0
|
|
187
|
+
return false if @forwarder.nil?
|
|
188
|
+
return false if @forwarder < 0
|
|
189
|
+
return false if @forwarder_delivery.nil?
|
|
190
|
+
return false if @forwarder_delivery < 0
|
|
191
|
+
return false if @resource_type.nil?
|
|
192
|
+
return false if @resource_type < 0
|
|
193
|
+
return false if @action.nil?
|
|
194
|
+
return false if @action < 0
|
|
195
|
+
true
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
# Custom attribute writer method with validation
|
|
199
|
+
# @param [Object] audit_event Value to be assigned
|
|
200
|
+
def audit_event=(audit_event)
|
|
201
|
+
if audit_event.nil?
|
|
202
|
+
fail ArgumentError, 'audit_event cannot be nil'
|
|
203
|
+
end
|
|
204
|
+
|
|
205
|
+
if audit_event < 0
|
|
206
|
+
fail ArgumentError, 'invalid value for "audit_event", must be greater than or equal to 0.'
|
|
207
|
+
end
|
|
208
|
+
|
|
209
|
+
@audit_event = audit_event
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
# Custom attribute writer method with validation
|
|
213
|
+
# @param [Object] audit_event_quota Value to be assigned
|
|
214
|
+
def audit_event_quota=(audit_event_quota)
|
|
215
|
+
if audit_event_quota.nil?
|
|
216
|
+
fail ArgumentError, 'audit_event_quota cannot be nil'
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
if audit_event_quota < 0
|
|
220
|
+
fail ArgumentError, 'invalid value for "audit_event_quota", must be greater than or equal to 0.'
|
|
221
|
+
end
|
|
222
|
+
|
|
223
|
+
@audit_event_quota = audit_event_quota
|
|
224
|
+
end
|
|
225
|
+
|
|
226
|
+
# Custom attribute writer method with validation
|
|
227
|
+
# @param [Object] forwarder Value to be assigned
|
|
228
|
+
def forwarder=(forwarder)
|
|
229
|
+
if forwarder.nil?
|
|
230
|
+
fail ArgumentError, 'forwarder cannot be nil'
|
|
231
|
+
end
|
|
232
|
+
|
|
233
|
+
if forwarder < 0
|
|
234
|
+
fail ArgumentError, 'invalid value for "forwarder", must be greater than or equal to 0.'
|
|
235
|
+
end
|
|
236
|
+
|
|
237
|
+
@forwarder = forwarder
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
# Custom attribute writer method with validation
|
|
241
|
+
# @param [Object] forwarder_delivery Value to be assigned
|
|
242
|
+
def forwarder_delivery=(forwarder_delivery)
|
|
243
|
+
if forwarder_delivery.nil?
|
|
244
|
+
fail ArgumentError, 'forwarder_delivery cannot be nil'
|
|
245
|
+
end
|
|
246
|
+
|
|
247
|
+
if forwarder_delivery < 0
|
|
248
|
+
fail ArgumentError, 'invalid value for "forwarder_delivery", must be greater than or equal to 0.'
|
|
249
|
+
end
|
|
250
|
+
|
|
251
|
+
@forwarder_delivery = forwarder_delivery
|
|
252
|
+
end
|
|
253
|
+
|
|
254
|
+
# Custom attribute writer method with validation
|
|
255
|
+
# @param [Object] resource_type Value to be assigned
|
|
256
|
+
def resource_type=(resource_type)
|
|
257
|
+
if resource_type.nil?
|
|
258
|
+
fail ArgumentError, 'resource_type cannot be nil'
|
|
259
|
+
end
|
|
260
|
+
|
|
261
|
+
if resource_type < 0
|
|
262
|
+
fail ArgumentError, 'invalid value for "resource_type", must be greater than or equal to 0.'
|
|
263
|
+
end
|
|
264
|
+
|
|
265
|
+
@resource_type = resource_type
|
|
266
|
+
end
|
|
267
|
+
|
|
268
|
+
# Custom attribute writer method with validation
|
|
269
|
+
# @param [Object] action Value to be assigned
|
|
270
|
+
def action=(action)
|
|
271
|
+
if action.nil?
|
|
272
|
+
fail ArgumentError, 'action cannot be nil'
|
|
273
|
+
end
|
|
274
|
+
|
|
275
|
+
if action < 0
|
|
276
|
+
fail ArgumentError, 'invalid value for "action", must be greater than or equal to 0.'
|
|
277
|
+
end
|
|
278
|
+
|
|
279
|
+
@action = action
|
|
280
|
+
end
|
|
281
|
+
|
|
282
|
+
# Checks equality by comparing each attribute.
|
|
283
|
+
# @param [Object] Object to be compared
|
|
284
|
+
def ==(o)
|
|
285
|
+
return true if self.equal?(o)
|
|
286
|
+
self.class == o.class &&
|
|
287
|
+
audit_event == o.audit_event &&
|
|
288
|
+
audit_event_quota == o.audit_event_quota &&
|
|
289
|
+
forwarder == o.forwarder &&
|
|
290
|
+
forwarder_delivery == o.forwarder_delivery &&
|
|
291
|
+
resource_type == o.resource_type &&
|
|
292
|
+
action == o.action
|
|
293
|
+
end
|
|
294
|
+
|
|
295
|
+
# @see the `==` method
|
|
296
|
+
# @param [Object] Object to be compared
|
|
297
|
+
def eql?(o)
|
|
298
|
+
self == o
|
|
299
|
+
end
|
|
300
|
+
|
|
301
|
+
# Calculates hash code according to all attributes.
|
|
302
|
+
# @return [Integer] Hash code
|
|
303
|
+
def hash
|
|
304
|
+
[audit_event, audit_event_quota, forwarder, forwarder_delivery, resource_type, action].hash
|
|
305
|
+
end
|
|
306
|
+
|
|
307
|
+
# Builds the object from hash
|
|
308
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
309
|
+
# @return [Object] Returns the model itself
|
|
310
|
+
def self.build_from_hash(attributes)
|
|
311
|
+
return nil unless attributes.is_a?(Hash)
|
|
312
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
313
|
+
transformed_hash = {}
|
|
314
|
+
openapi_types.each_pair do |key, type|
|
|
315
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
316
|
+
transformed_hash["#{key}"] = nil
|
|
317
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
318
|
+
# check to ensure the input is an array given that the attribute
|
|
319
|
+
# is documented as an array but the input is not
|
|
320
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
321
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
322
|
+
end
|
|
323
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
324
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
325
|
+
end
|
|
326
|
+
end
|
|
327
|
+
new(transformed_hash)
|
|
328
|
+
end
|
|
329
|
+
|
|
330
|
+
# Returns the object in the form of hash
|
|
331
|
+
# @return [Hash] Returns the object in the form of hash
|
|
332
|
+
def to_hash
|
|
333
|
+
hash = {}
|
|
334
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
335
|
+
value = self.send(attr)
|
|
336
|
+
if value.nil?
|
|
337
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
338
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
339
|
+
end
|
|
340
|
+
|
|
341
|
+
hash[param] = _to_hash(value)
|
|
342
|
+
end
|
|
343
|
+
hash
|
|
344
|
+
end
|
|
345
|
+
|
|
346
|
+
end
|
|
347
|
+
|
|
348
|
+
end
|
|
@@ -18,6 +18,11 @@ require 'smplkit_audit_client/version'
|
|
|
18
18
|
require 'smplkit_audit_client/configuration'
|
|
19
19
|
|
|
20
20
|
# Models
|
|
21
|
+
require 'smplkit_audit_client/models/action_attributes'
|
|
22
|
+
require 'smplkit_audit_client/models/action_list_links'
|
|
23
|
+
require 'smplkit_audit_client/models/action_list_meta'
|
|
24
|
+
require 'smplkit_audit_client/models/action_list_response'
|
|
25
|
+
require 'smplkit_audit_client/models/action_resource'
|
|
21
26
|
require 'smplkit_audit_client/models/event'
|
|
22
27
|
require 'smplkit_audit_client/models/event_list_links'
|
|
23
28
|
require 'smplkit_audit_client/models/event_list_meta'
|
|
@@ -36,16 +41,26 @@ require 'smplkit_audit_client/models/forwarder_list_response'
|
|
|
36
41
|
require 'smplkit_audit_client/models/forwarder_resource'
|
|
37
42
|
require 'smplkit_audit_client/models/forwarder_response'
|
|
38
43
|
require 'smplkit_audit_client/models/http_header'
|
|
44
|
+
require 'smplkit_audit_client/models/resource_type_attributes'
|
|
45
|
+
require 'smplkit_audit_client/models/resource_type_list_links'
|
|
46
|
+
require 'smplkit_audit_client/models/resource_type_list_meta'
|
|
47
|
+
require 'smplkit_audit_client/models/resource_type_list_response'
|
|
48
|
+
require 'smplkit_audit_client/models/resource_type_resource'
|
|
39
49
|
require 'smplkit_audit_client/models/retry_failed_deliveries_summary'
|
|
40
50
|
require 'smplkit_audit_client/models/test_forwarder_request'
|
|
41
51
|
require 'smplkit_audit_client/models/test_forwarder_response'
|
|
42
52
|
require 'smplkit_audit_client/models/usage_attributes'
|
|
43
53
|
require 'smplkit_audit_client/models/usage_resource'
|
|
44
54
|
require 'smplkit_audit_client/models/usage_response'
|
|
55
|
+
require 'smplkit_audit_client/models/wipe_response'
|
|
56
|
+
require 'smplkit_audit_client/models/wipe_tables_summary'
|
|
45
57
|
|
|
46
58
|
# APIs
|
|
59
|
+
require 'smplkit_audit_client/api/actions_api'
|
|
47
60
|
require 'smplkit_audit_client/api/events_api'
|
|
48
61
|
require 'smplkit_audit_client/api/forwarders_api'
|
|
62
|
+
require 'smplkit_audit_client/api/functions_api'
|
|
63
|
+
require 'smplkit_audit_client/api/resource_types_api'
|
|
49
64
|
require 'smplkit_audit_client/api/usage_api'
|
|
50
65
|
|
|
51
66
|
module SmplkitGeneratedClient::Audit
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#smplkit Audit API
|
|
3
|
+
|
|
4
|
+
#Append-only change-history substrate for smpl.* resources and customer-application events. ADR-047.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 0.1.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.22.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for SmplkitGeneratedClient::Audit::ActionsApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'ActionsApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = SmplkitGeneratedClient::Audit::ActionsApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of ActionsApi' do
|
|
30
|
+
it 'should create an instance of ActionsApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(SmplkitGeneratedClient::Audit::ActionsApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for list_actions
|
|
36
|
+
# List Actions
|
|
37
|
+
# List the distinct ``action`` slugs seen in the account. Without ``filter[resource_type]``, returns one row per distinct action — the same action may have been recorded with multiple resource types and the unfiltered dropdown shows it once. With ``filter[resource_type]``, returns the actions seen with that specific resource type, powering the Activity tab's cascading filter behavior.
|
|
38
|
+
# @param [Hash] opts the optional parameters
|
|
39
|
+
# @option opts [String] :filter_resource_type
|
|
40
|
+
# @option opts [Integer] :page_size
|
|
41
|
+
# @option opts [String] :page_after
|
|
42
|
+
# @return [ActionListResponse]
|
|
43
|
+
describe 'list_actions test' do
|
|
44
|
+
it 'should work' do
|
|
45
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# unit tests for list_resource_types
|
|
50
|
+
# List Resource Types
|
|
51
|
+
# List the distinct ``resource_type`` slugs seen in the account. Each row's ``id`` is the slug itself, mirroring the smplkit convention of using customer-provided identifiers as the public-facing resource id (ADR-014).
|
|
52
|
+
# @param [Hash] opts the optional parameters
|
|
53
|
+
# @option opts [Integer] :page_size
|
|
54
|
+
# @option opts [String] :page_after
|
|
55
|
+
# @return [ResourceTypeListResponse]
|
|
56
|
+
describe 'list_resource_types test' do
|
|
57
|
+
it 'should work' do
|
|
58
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
end
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#smplkit Audit API
|
|
3
|
+
|
|
4
|
+
#Append-only change-history substrate for smpl.* resources and customer-application events. ADR-047.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 0.1.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.22.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for SmplkitGeneratedClient::Audit::FunctionsApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'FunctionsApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = SmplkitGeneratedClient::Audit::FunctionsApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of FunctionsApi' do
|
|
30
|
+
it 'should create an instance of FunctionsApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(SmplkitGeneratedClient::Audit::FunctionsApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for execute_wipe
|
|
36
|
+
# Execute Wipe
|
|
37
|
+
# Delete every audit-database row scoped to the authenticated account. Returns the per-table row counts that were deleted along with the completion timestamp. The action is atomic within the audit database — either every account-scoped row is gone, or none is. The body is required to be ``{}``; no parameters are accepted.
|
|
38
|
+
# @param body
|
|
39
|
+
# @param [Hash] opts the optional parameters
|
|
40
|
+
# @return [WipeResponse]
|
|
41
|
+
describe 'execute_wipe test' do
|
|
42
|
+
it 'should work' do
|
|
43
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
end
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#smplkit Audit API
|
|
3
|
+
|
|
4
|
+
#Append-only change-history substrate for smpl.* resources and customer-application events. ADR-047.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 0.1.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.22.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for SmplkitGeneratedClient::Audit::ResourceTypesApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'ResourceTypesApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = SmplkitGeneratedClient::Audit::ResourceTypesApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of ResourceTypesApi' do
|
|
30
|
+
it 'should create an instance of ResourceTypesApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(SmplkitGeneratedClient::Audit::ResourceTypesApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for list_actions
|
|
36
|
+
# List Actions
|
|
37
|
+
# List the distinct ``action`` slugs seen in the account. Without ``filter[resource_type]``, returns one row per distinct action — the same action may have been recorded with multiple resource types and the unfiltered dropdown shows it once. With ``filter[resource_type]``, returns the actions seen with that specific resource type, powering the Activity tab's cascading filter behavior.
|
|
38
|
+
# @param [Hash] opts the optional parameters
|
|
39
|
+
# @option opts [String] :filter_resource_type
|
|
40
|
+
# @option opts [Integer] :page_size
|
|
41
|
+
# @option opts [String] :page_after
|
|
42
|
+
# @return [ActionListResponse]
|
|
43
|
+
describe 'list_actions test' do
|
|
44
|
+
it 'should work' do
|
|
45
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# unit tests for list_resource_types
|
|
50
|
+
# List Resource Types
|
|
51
|
+
# List the distinct ``resource_type`` slugs seen in the account. Each row's ``id`` is the slug itself, mirroring the smplkit convention of using customer-provided identifiers as the public-facing resource id (ADR-014).
|
|
52
|
+
# @param [Hash] opts the optional parameters
|
|
53
|
+
# @option opts [Integer] :page_size
|
|
54
|
+
# @option opts [String] :page_after
|
|
55
|
+
# @return [ResourceTypeListResponse]
|
|
56
|
+
describe 'list_resource_types test' do
|
|
57
|
+
it 'should work' do
|
|
58
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
end
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#smplkit Audit API
|
|
3
|
+
|
|
4
|
+
#Append-only change-history substrate for smpl.* resources and customer-application events. ADR-047.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 0.1.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.22.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for SmplkitGeneratedClient::Audit::ActionAttributes
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe SmplkitGeneratedClient::Audit::ActionAttributes do
|
|
21
|
+
#let(:instance) { SmplkitGeneratedClient::Audit::ActionAttributes.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of ActionAttributes' do
|
|
24
|
+
it 'should create an instance of ActionAttributes' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(SmplkitGeneratedClient::Audit::ActionAttributes)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "action"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
describe 'test attribute "created_at"' do
|
|
37
|
+
it 'should work' do
|
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
end
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#smplkit Audit API
|
|
3
|
+
|
|
4
|
+
#Append-only change-history substrate for smpl.* resources and customer-application events. ADR-047.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 0.1.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.22.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for SmplkitGeneratedClient::Audit::ActionListLinks
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe SmplkitGeneratedClient::Audit::ActionListLinks do
|
|
21
|
+
#let(:instance) { SmplkitGeneratedClient::Audit::ActionListLinks.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of ActionListLinks' do
|
|
24
|
+
it 'should create an instance of ActionListLinks' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(SmplkitGeneratedClient::Audit::ActionListLinks)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "_next"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
end
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#smplkit Audit API
|
|
3
|
+
|
|
4
|
+
#Append-only change-history substrate for smpl.* resources and customer-application events. ADR-047.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 0.1.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.22.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for SmplkitGeneratedClient::Audit::ActionListMeta
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe SmplkitGeneratedClient::Audit::ActionListMeta do
|
|
21
|
+
#let(:instance) { SmplkitGeneratedClient::Audit::ActionListMeta.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of ActionListMeta' do
|
|
24
|
+
it 'should create an instance of ActionListMeta' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(SmplkitGeneratedClient::Audit::ActionListMeta)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "page_size"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
end
|