smplkit 3.0.35 → 3.0.37
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/events_api.rb +3 -0
- data/lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/event_search_request.rb +12 -1
- data/lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/test_forwarder_request.rb +31 -5
- data/lib/smplkit/_generated/audit/spec/api/events_api_spec.rb +1 -0
- data/lib/smplkit/_generated/audit/spec/models/event_search_request_spec.rb +6 -0
- data/lib/smplkit/_generated/audit/spec/models/test_forwarder_request_spec.rb +6 -0
- data/lib/smplkit/_generated/logging/lib/smplkit_logging_client/models/log_group.rb +1 -13
- data/lib/smplkit/_generated/logging/lib/smplkit_logging_client/models/log_level.rb +45 -0
- data/lib/smplkit/_generated/logging/lib/smplkit_logging_client/models/logger.rb +2 -14
- data/lib/smplkit/_generated/logging/lib/smplkit_logging_client.rb +1 -0
- data/lib/smplkit/_generated/logging/spec/models/log_group_spec.rb +0 -4
- data/lib/smplkit/_generated/logging/spec/models/log_level_spec.rb +30 -0
- data/lib/smplkit/_generated/logging/spec/models/logger_spec.rb +0 -8
- metadata +3 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 97fc9d5f5ccd8884a150cc985e0c09dc4f0323f19ba39940d435e4b30fa6a8a4
|
|
4
|
+
data.tar.gz: a66fa0dd76a8188fd8a3673c122bd6305f3916da73174f5d8dcd75b9edd2628a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2e2970204abfbab07db8d18f3e9ba94c33fe8e5d7d56f78ffd3bc436c8fe01b8add1db4c541ee4307756b5f030403667d2ac258b3bf1cbde0423749167390f39
|
|
7
|
+
data.tar.gz: 923a51443ab908653434775e9f94ff40ad8a02a18cb981176da51baba6469f6164cccddf3b210e5de5b454bcdb71c6a446d8126cbdce8f314cb93f59cf723399
|
|
@@ -92,6 +92,7 @@ module SmplkitGeneratedClient::Audit
|
|
|
92
92
|
# @option opts [String] :filter_resource_type
|
|
93
93
|
# @option opts [String] :filter_resource_id
|
|
94
94
|
# @option opts [String] :filter_search Case-insensitive substring match against `resource_id` or `description`. Use `filter[resource_id]` for an exact match on `resource_id`.
|
|
95
|
+
# @option opts [Boolean] :filter_do_not_forward When set, restrict to events whose `do_not_forward` flag matches the given boolean. Forwarder previews typically pass `false` to match live-pipeline semantics (events flagged `do_not_forward=true` are skipped by the forwarder pipeline).
|
|
95
96
|
# @option opts [Integer] :page_size
|
|
96
97
|
# @option opts [String] :page_after
|
|
97
98
|
# @option opts [String] :sort Field to sort by. Prefix with `-` for descending order. Default: `-occurred_at`. Allowed values: `created_at`, `-created_at`, `occurred_at`, `-occurred_at`. (default to '-occurred_at')
|
|
@@ -111,6 +112,7 @@ module SmplkitGeneratedClient::Audit
|
|
|
111
112
|
# @option opts [String] :filter_resource_type
|
|
112
113
|
# @option opts [String] :filter_resource_id
|
|
113
114
|
# @option opts [String] :filter_search Case-insensitive substring match against `resource_id` or `description`. Use `filter[resource_id]` for an exact match on `resource_id`.
|
|
115
|
+
# @option opts [Boolean] :filter_do_not_forward When set, restrict to events whose `do_not_forward` flag matches the given boolean. Forwarder previews typically pass `false` to match live-pipeline semantics (events flagged `do_not_forward=true` are skipped by the forwarder pipeline).
|
|
114
116
|
# @option opts [Integer] :page_size
|
|
115
117
|
# @option opts [String] :page_after
|
|
116
118
|
# @option opts [String] :sort Field to sort by. Prefix with `-` for descending order. Default: `-occurred_at`. Allowed values: `created_at`, `-created_at`, `occurred_at`, `-occurred_at`. (default to '-occurred_at')
|
|
@@ -139,6 +141,7 @@ module SmplkitGeneratedClient::Audit
|
|
|
139
141
|
query_params[:'filter[resource_type]'] = opts[:'filter_resource_type'] if !opts[:'filter_resource_type'].nil?
|
|
140
142
|
query_params[:'filter[resource_id]'] = opts[:'filter_resource_id'] if !opts[:'filter_resource_id'].nil?
|
|
141
143
|
query_params[:'filter[search]'] = opts[:'filter_search'] if !opts[:'filter_search'].nil?
|
|
144
|
+
query_params[:'filter[do_not_forward]'] = opts[:'filter_do_not_forward'] if !opts[:'filter_do_not_forward'].nil?
|
|
142
145
|
query_params[:'page[size]'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
143
146
|
query_params[:'page[after]'] = opts[:'page_after'] if !opts[:'page_after'].nil?
|
|
144
147
|
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
@@ -40,6 +40,9 @@ module SmplkitGeneratedClient::Audit
|
|
|
40
40
|
# Case-insensitive substring match on `resource_id` or `description`. Must be accompanied by either `filter[occurred_at]` or `filter[resource_type]` + `filter[resource_id]`.
|
|
41
41
|
attr_accessor :filter_search
|
|
42
42
|
|
|
43
|
+
# When set, restrict to events whose `do_not_forward` flag matches the given boolean. Forwarder previews typically pass `false` to match live-pipeline semantics (events flagged `do_not_forward=true` are skipped by the forwarder pipeline).
|
|
44
|
+
attr_accessor :filter_do_not_forward
|
|
45
|
+
|
|
43
46
|
# Maximum events to return. Range 1..1000, default 1000 — matches every other list / search endpoint on the platform. Set explicitly to a smaller value when the consumer is rendering results card-by-card.
|
|
44
47
|
attr_accessor :page_size
|
|
45
48
|
|
|
@@ -60,6 +63,7 @@ module SmplkitGeneratedClient::Audit
|
|
|
60
63
|
:'filter_actor_id' => :'filter[actor_id]',
|
|
61
64
|
:'filter_occurred_at' => :'filter[occurred_at]',
|
|
62
65
|
:'filter_search' => :'filter[search]',
|
|
66
|
+
:'filter_do_not_forward' => :'filter[do_not_forward]',
|
|
63
67
|
:'page_size' => :'page[size]',
|
|
64
68
|
:'page_after' => :'page[after]',
|
|
65
69
|
:'sort' => :'sort'
|
|
@@ -87,6 +91,7 @@ module SmplkitGeneratedClient::Audit
|
|
|
87
91
|
:'filter_actor_id' => :'String',
|
|
88
92
|
:'filter_occurred_at' => :'String',
|
|
89
93
|
:'filter_search' => :'String',
|
|
94
|
+
:'filter_do_not_forward' => :'Boolean',
|
|
90
95
|
:'page_size' => :'Integer',
|
|
91
96
|
:'page_after' => :'String',
|
|
92
97
|
:'sort' => :'String'
|
|
@@ -104,6 +109,7 @@ module SmplkitGeneratedClient::Audit
|
|
|
104
109
|
:'filter_actor_id',
|
|
105
110
|
:'filter_occurred_at',
|
|
106
111
|
:'filter_search',
|
|
112
|
+
:'filter_do_not_forward',
|
|
107
113
|
:'page_after',
|
|
108
114
|
])
|
|
109
115
|
end
|
|
@@ -158,6 +164,10 @@ module SmplkitGeneratedClient::Audit
|
|
|
158
164
|
self.filter_search = attributes[:'filter_search']
|
|
159
165
|
end
|
|
160
166
|
|
|
167
|
+
if attributes.key?(:'filter_do_not_forward')
|
|
168
|
+
self.filter_do_not_forward = attributes[:'filter_do_not_forward']
|
|
169
|
+
end
|
|
170
|
+
|
|
161
171
|
if attributes.key?(:'page_size')
|
|
162
172
|
self.page_size = attributes[:'page_size']
|
|
163
173
|
else
|
|
@@ -231,6 +241,7 @@ module SmplkitGeneratedClient::Audit
|
|
|
231
241
|
filter_actor_id == o.filter_actor_id &&
|
|
232
242
|
filter_occurred_at == o.filter_occurred_at &&
|
|
233
243
|
filter_search == o.filter_search &&
|
|
244
|
+
filter_do_not_forward == o.filter_do_not_forward &&
|
|
234
245
|
page_size == o.page_size &&
|
|
235
246
|
page_after == o.page_after &&
|
|
236
247
|
sort == o.sort
|
|
@@ -245,7 +256,7 @@ module SmplkitGeneratedClient::Audit
|
|
|
245
256
|
# Calculates hash code according to all attributes.
|
|
246
257
|
# @return [Integer] Hash code
|
|
247
258
|
def hash
|
|
248
|
-
[filter, filter_action, filter_resource_type, filter_resource_id, filter_actor_type, filter_actor_id, filter_occurred_at, filter_search, page_size, page_after, sort].hash
|
|
259
|
+
[filter, filter_action, filter_resource_type, filter_resource_id, filter_actor_type, filter_actor_id, filter_occurred_at, filter_search, filter_do_not_forward, page_size, page_after, sort].hash
|
|
249
260
|
end
|
|
250
261
|
|
|
251
262
|
# Builds the object from hash
|
|
@@ -31,6 +31,9 @@ module SmplkitGeneratedClient::Audit
|
|
|
31
31
|
# Per-request timeout in milliseconds. Capped at 30 seconds.
|
|
32
32
|
attr_accessor :timeout_ms
|
|
33
33
|
|
|
34
|
+
# Request body sent to the destination. When omitted, an empty body is sent (suitable for connectivity probes). When set, the body is sent verbatim — pair with an appropriate `Content-Type` entry in `headers` so the destination interprets it correctly. Limit 1 MiB.
|
|
35
|
+
attr_accessor :body
|
|
36
|
+
|
|
34
37
|
class EnumAttributeValidator
|
|
35
38
|
attr_reader :datatype
|
|
36
39
|
attr_reader :allowable_values
|
|
@@ -60,7 +63,8 @@ module SmplkitGeneratedClient::Audit
|
|
|
60
63
|
:'url' => :'url',
|
|
61
64
|
:'headers' => :'headers',
|
|
62
65
|
:'success_status' => :'success_status',
|
|
63
|
-
:'timeout_ms' => :'timeout_ms'
|
|
66
|
+
:'timeout_ms' => :'timeout_ms',
|
|
67
|
+
:'body' => :'body'
|
|
64
68
|
}
|
|
65
69
|
end
|
|
66
70
|
|
|
@@ -81,14 +85,16 @@ module SmplkitGeneratedClient::Audit
|
|
|
81
85
|
:'url' => :'String',
|
|
82
86
|
:'headers' => :'Array<HttpHeader>',
|
|
83
87
|
:'success_status' => :'String',
|
|
84
|
-
:'timeout_ms' => :'Integer'
|
|
88
|
+
:'timeout_ms' => :'Integer',
|
|
89
|
+
:'body' => :'String'
|
|
85
90
|
}
|
|
86
91
|
end
|
|
87
92
|
|
|
88
93
|
# List of attributes with nullable: true
|
|
89
94
|
def self.openapi_nullable
|
|
90
95
|
Set.new([
|
|
91
|
-
:'timeout_ms'
|
|
96
|
+
:'timeout_ms',
|
|
97
|
+
:'body'
|
|
92
98
|
])
|
|
93
99
|
end
|
|
94
100
|
|
|
@@ -135,6 +141,10 @@ module SmplkitGeneratedClient::Audit
|
|
|
135
141
|
if attributes.key?(:'timeout_ms')
|
|
136
142
|
self.timeout_ms = attributes[:'timeout_ms']
|
|
137
143
|
end
|
|
144
|
+
|
|
145
|
+
if attributes.key?(:'body')
|
|
146
|
+
self.body = attributes[:'body']
|
|
147
|
+
end
|
|
138
148
|
end
|
|
139
149
|
|
|
140
150
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -166,6 +176,10 @@ module SmplkitGeneratedClient::Audit
|
|
|
166
176
|
invalid_properties.push('invalid value for "timeout_ms", must be greater than or equal to 1.')
|
|
167
177
|
end
|
|
168
178
|
|
|
179
|
+
if !@body.nil? && @body.to_s.length > 1048576
|
|
180
|
+
invalid_properties.push('invalid value for "body", the character length must be smaller than or equal to 1048576.')
|
|
181
|
+
end
|
|
182
|
+
|
|
169
183
|
invalid_properties
|
|
170
184
|
end
|
|
171
185
|
|
|
@@ -181,6 +195,7 @@ module SmplkitGeneratedClient::Audit
|
|
|
181
195
|
return false if !@success_status.nil? && @success_status.to_s.length > 3
|
|
182
196
|
return false if !@timeout_ms.nil? && @timeout_ms > 30000
|
|
183
197
|
return false if !@timeout_ms.nil? && @timeout_ms < 1
|
|
198
|
+
return false if !@body.nil? && @body.to_s.length > 1048576
|
|
184
199
|
true
|
|
185
200
|
end
|
|
186
201
|
|
|
@@ -240,6 +255,16 @@ module SmplkitGeneratedClient::Audit
|
|
|
240
255
|
@timeout_ms = timeout_ms
|
|
241
256
|
end
|
|
242
257
|
|
|
258
|
+
# Custom attribute writer method with validation
|
|
259
|
+
# @param [Object] body Value to be assigned
|
|
260
|
+
def body=(body)
|
|
261
|
+
if !body.nil? && body.to_s.length > 1048576
|
|
262
|
+
fail ArgumentError, 'invalid value for "body", the character length must be smaller than or equal to 1048576.'
|
|
263
|
+
end
|
|
264
|
+
|
|
265
|
+
@body = body
|
|
266
|
+
end
|
|
267
|
+
|
|
243
268
|
# Checks equality by comparing each attribute.
|
|
244
269
|
# @param [Object] Object to be compared
|
|
245
270
|
def ==(o)
|
|
@@ -249,7 +274,8 @@ module SmplkitGeneratedClient::Audit
|
|
|
249
274
|
url == o.url &&
|
|
250
275
|
headers == o.headers &&
|
|
251
276
|
success_status == o.success_status &&
|
|
252
|
-
timeout_ms == o.timeout_ms
|
|
277
|
+
timeout_ms == o.timeout_ms &&
|
|
278
|
+
body == o.body
|
|
253
279
|
end
|
|
254
280
|
|
|
255
281
|
# @see the `==` method
|
|
@@ -261,7 +287,7 @@ module SmplkitGeneratedClient::Audit
|
|
|
261
287
|
# Calculates hash code according to all attributes.
|
|
262
288
|
# @return [Integer] Hash code
|
|
263
289
|
def hash
|
|
264
|
-
[method, url, headers, success_status, timeout_ms].hash
|
|
290
|
+
[method, url, headers, success_status, timeout_ms, body].hash
|
|
265
291
|
end
|
|
266
292
|
|
|
267
293
|
# Builds the object from hash
|
|
@@ -55,6 +55,7 @@ describe 'EventsApi' do
|
|
|
55
55
|
# @option opts [String] :filter_resource_type
|
|
56
56
|
# @option opts [String] :filter_resource_id
|
|
57
57
|
# @option opts [String] :filter_search Case-insensitive substring match against `resource_id` or `description`. Use `filter[resource_id]` for an exact match on `resource_id`.
|
|
58
|
+
# @option opts [Boolean] :filter_do_not_forward When set, restrict to events whose `do_not_forward` flag matches the given boolean. Forwarder previews typically pass `false` to match live-pipeline semantics (events flagged `do_not_forward=true` are skipped by the forwarder pipeline).
|
|
58
59
|
# @option opts [Integer] :page_size
|
|
59
60
|
# @option opts [String] :page_after
|
|
60
61
|
# @option opts [String] :sort Field to sort by. Prefix with `-` for descending order. Default: `-occurred_at`. Allowed values: `created_at`, `-created_at`, `occurred_at`, `-occurred_at`.
|
|
@@ -75,6 +75,12 @@ describe SmplkitGeneratedClient::Audit::EventSearchRequest do
|
|
|
75
75
|
end
|
|
76
76
|
end
|
|
77
77
|
|
|
78
|
+
describe 'test attribute "filter_do_not_forward"' do
|
|
79
|
+
it 'should work' do
|
|
80
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
|
|
78
84
|
describe 'test attribute "page_size"' do
|
|
79
85
|
it 'should work' do
|
|
80
86
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
@@ -61,4 +61,10 @@ describe SmplkitGeneratedClient::Audit::TestForwarderRequest do
|
|
|
61
61
|
end
|
|
62
62
|
end
|
|
63
63
|
|
|
64
|
+
describe 'test attribute "body"' do
|
|
65
|
+
it 'should work' do
|
|
66
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
|
|
64
70
|
end
|
|
@@ -82,7 +82,7 @@ module SmplkitGeneratedClient::Logging
|
|
|
82
82
|
def self.openapi_types
|
|
83
83
|
{
|
|
84
84
|
:'name' => :'String',
|
|
85
|
-
:'level' => :'
|
|
85
|
+
:'level' => :'LogLevel',
|
|
86
86
|
:'parent_id' => :'String',
|
|
87
87
|
:'environments' => :'Hash<String, Object>',
|
|
88
88
|
:'created_at' => :'Time',
|
|
@@ -168,8 +168,6 @@ module SmplkitGeneratedClient::Logging
|
|
|
168
168
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
169
169
|
return false if @name.nil?
|
|
170
170
|
return false if @name.to_s.length > 255
|
|
171
|
-
level_validator = EnumAttributeValidator.new('String', ["TRACE", "DEBUG", "INFO", "WARN", "ERROR", "FATAL", "SILENT"])
|
|
172
|
-
return false unless level_validator.valid?(@level)
|
|
173
171
|
true
|
|
174
172
|
end
|
|
175
173
|
|
|
@@ -187,16 +185,6 @@ module SmplkitGeneratedClient::Logging
|
|
|
187
185
|
@name = name
|
|
188
186
|
end
|
|
189
187
|
|
|
190
|
-
# Custom attribute writer method checking allowed values (enum).
|
|
191
|
-
# @param [Object] level Object to be assigned
|
|
192
|
-
def level=(level)
|
|
193
|
-
validator = EnumAttributeValidator.new('String', ["TRACE", "DEBUG", "INFO", "WARN", "ERROR", "FATAL", "SILENT"])
|
|
194
|
-
unless validator.valid?(level)
|
|
195
|
-
fail ArgumentError, "invalid value for \"level\", must be one of #{validator.allowable_values}."
|
|
196
|
-
end
|
|
197
|
-
@level = level
|
|
198
|
-
end
|
|
199
|
-
|
|
200
188
|
# Checks equality by comparing each attribute.
|
|
201
189
|
# @param [Object] Object to be compared
|
|
202
190
|
def ==(o)
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#smplkit Logging API
|
|
3
|
+
|
|
4
|
+
#API for the smplkit logging service.
|
|
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::Logging
|
|
17
|
+
class LogLevel
|
|
18
|
+
TRACE = "TRACE".freeze
|
|
19
|
+
DEBUG = "DEBUG".freeze
|
|
20
|
+
INFO = "INFO".freeze
|
|
21
|
+
WARN = "WARN".freeze
|
|
22
|
+
ERROR = "ERROR".freeze
|
|
23
|
+
FATAL = "FATAL".freeze
|
|
24
|
+
SILENT = "SILENT".freeze
|
|
25
|
+
|
|
26
|
+
def self.all_vars
|
|
27
|
+
@all_vars ||= [TRACE, DEBUG, INFO, WARN, ERROR, FATAL, SILENT].freeze
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# Builds the enum from string
|
|
31
|
+
# @param [String] The enum value in the form of the string
|
|
32
|
+
# @return [String] The enum value
|
|
33
|
+
def self.build_from_hash(value)
|
|
34
|
+
new.build_from_hash(value)
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# Builds the enum from string
|
|
38
|
+
# @param [String] The enum value in the form of the string
|
|
39
|
+
# @return [String] The enum value
|
|
40
|
+
def build_from_hash(value)
|
|
41
|
+
return value if LogLevel.all_vars.include?(value)
|
|
42
|
+
raise "Invalid ENUM value #{value} for class #LogLevel"
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
@@ -94,12 +94,12 @@ module SmplkitGeneratedClient::Logging
|
|
|
94
94
|
def self.openapi_types
|
|
95
95
|
{
|
|
96
96
|
:'name' => :'String',
|
|
97
|
-
:'level' => :'
|
|
97
|
+
:'level' => :'LogLevel',
|
|
98
98
|
:'group' => :'String',
|
|
99
99
|
:'managed' => :'Boolean',
|
|
100
100
|
:'sources' => :'Array<Hash<String, Object>>',
|
|
101
101
|
:'environments' => :'Hash<String, Object>',
|
|
102
|
-
:'effective_levels' => :'Hash<String, Array<
|
|
102
|
+
:'effective_levels' => :'Hash<String, Array<LogLevel>>',
|
|
103
103
|
:'created_at' => :'Time',
|
|
104
104
|
:'updated_at' => :'Time'
|
|
105
105
|
}
|
|
@@ -202,8 +202,6 @@ module SmplkitGeneratedClient::Logging
|
|
|
202
202
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
203
203
|
return false if @name.nil?
|
|
204
204
|
return false if @name.to_s.length > 255
|
|
205
|
-
level_validator = EnumAttributeValidator.new('String', ["TRACE", "DEBUG", "INFO", "WARN", "ERROR", "FATAL", "SILENT"])
|
|
206
|
-
return false unless level_validator.valid?(@level)
|
|
207
205
|
true
|
|
208
206
|
end
|
|
209
207
|
|
|
@@ -221,16 +219,6 @@ module SmplkitGeneratedClient::Logging
|
|
|
221
219
|
@name = name
|
|
222
220
|
end
|
|
223
221
|
|
|
224
|
-
# Custom attribute writer method checking allowed values (enum).
|
|
225
|
-
# @param [Object] level Object to be assigned
|
|
226
|
-
def level=(level)
|
|
227
|
-
validator = EnumAttributeValidator.new('String', ["TRACE", "DEBUG", "INFO", "WARN", "ERROR", "FATAL", "SILENT"])
|
|
228
|
-
unless validator.valid?(level)
|
|
229
|
-
fail ArgumentError, "invalid value for \"level\", must be one of #{validator.allowable_values}."
|
|
230
|
-
end
|
|
231
|
-
@level = level
|
|
232
|
-
end
|
|
233
|
-
|
|
234
222
|
# Checks equality by comparing each attribute.
|
|
235
223
|
# @param [Object] Object to be compared
|
|
236
224
|
def ==(o)
|
|
@@ -26,6 +26,7 @@ require 'smplkit_logging_client/models/log_group_list_response'
|
|
|
26
26
|
require 'smplkit_logging_client/models/log_group_request'
|
|
27
27
|
require 'smplkit_logging_client/models/log_group_resource'
|
|
28
28
|
require 'smplkit_logging_client/models/log_group_response'
|
|
29
|
+
require 'smplkit_logging_client/models/log_level'
|
|
29
30
|
require 'smplkit_logging_client/models/logger'
|
|
30
31
|
require 'smplkit_logging_client/models/logger_bulk_item'
|
|
31
32
|
require 'smplkit_logging_client/models/logger_bulk_request'
|
|
@@ -36,10 +36,6 @@ describe SmplkitGeneratedClient::Logging::LogGroup do
|
|
|
36
36
|
describe 'test attribute "level"' do
|
|
37
37
|
it 'should work' do
|
|
38
38
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["TRACE", "DEBUG", "INFO", "WARN", "ERROR", "FATAL", "SILENT"])
|
|
40
|
-
# validator.allowable_values.each do |value|
|
|
41
|
-
# expect { instance.level = value }.not_to raise_error
|
|
42
|
-
# end
|
|
43
39
|
end
|
|
44
40
|
end
|
|
45
41
|
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#smplkit Logging API
|
|
3
|
+
|
|
4
|
+
#API for the smplkit logging service.
|
|
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::Logging::LogLevel
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe SmplkitGeneratedClient::Logging::LogLevel do
|
|
21
|
+
#let(:instance) { SmplkitGeneratedClient::Logging::LogLevel.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of LogLevel' do
|
|
24
|
+
it 'should create an instance of LogLevel' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(SmplkitGeneratedClient::Logging::LogLevel)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
end
|
|
@@ -36,10 +36,6 @@ describe SmplkitGeneratedClient::Logging::Logger do
|
|
|
36
36
|
describe 'test attribute "level"' do
|
|
37
37
|
it 'should work' do
|
|
38
38
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["TRACE", "DEBUG", "INFO", "WARN", "ERROR", "FATAL", "SILENT"])
|
|
40
|
-
# validator.allowable_values.each do |value|
|
|
41
|
-
# expect { instance.level = value }.not_to raise_error
|
|
42
|
-
# end
|
|
43
39
|
end
|
|
44
40
|
end
|
|
45
41
|
|
|
@@ -70,10 +66,6 @@ describe SmplkitGeneratedClient::Logging::Logger do
|
|
|
70
66
|
describe 'test attribute "effective_levels"' do
|
|
71
67
|
it 'should work' do
|
|
72
68
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
73
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('Hash<String, Array<String>>', ["TRACE", "DEBUG", "INFO", "WARN", "ERROR", "FATAL", "SILENT"])
|
|
74
|
-
# validator.allowable_values.each do |value|
|
|
75
|
-
# expect { instance.effective_levels = value }.not_to raise_error
|
|
76
|
-
# end
|
|
77
69
|
end
|
|
78
70
|
end
|
|
79
71
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: smplkit
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.
|
|
4
|
+
version: 3.0.37
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Smpl Solutions LLC
|
|
@@ -653,6 +653,7 @@ files:
|
|
|
653
653
|
- lib/smplkit/_generated/logging/lib/smplkit_logging_client/models/log_group_request.rb
|
|
654
654
|
- lib/smplkit/_generated/logging/lib/smplkit_logging_client/models/log_group_resource.rb
|
|
655
655
|
- lib/smplkit/_generated/logging/lib/smplkit_logging_client/models/log_group_response.rb
|
|
656
|
+
- lib/smplkit/_generated/logging/lib/smplkit_logging_client/models/log_level.rb
|
|
656
657
|
- lib/smplkit/_generated/logging/lib/smplkit_logging_client/models/logger.rb
|
|
657
658
|
- lib/smplkit/_generated/logging/lib/smplkit_logging_client/models/logger_bulk_item.rb
|
|
658
659
|
- lib/smplkit/_generated/logging/lib/smplkit_logging_client/models/logger_bulk_request.rb
|
|
@@ -684,6 +685,7 @@ files:
|
|
|
684
685
|
- lib/smplkit/_generated/logging/spec/models/log_group_resource_spec.rb
|
|
685
686
|
- lib/smplkit/_generated/logging/spec/models/log_group_response_spec.rb
|
|
686
687
|
- lib/smplkit/_generated/logging/spec/models/log_group_spec.rb
|
|
688
|
+
- lib/smplkit/_generated/logging/spec/models/log_level_spec.rb
|
|
687
689
|
- lib/smplkit/_generated/logging/spec/models/logger_bulk_item_spec.rb
|
|
688
690
|
- lib/smplkit/_generated/logging/spec/models/logger_bulk_request_spec.rb
|
|
689
691
|
- lib/smplkit/_generated/logging/spec/models/logger_bulk_response_spec.rb
|