smplkit 3.0.0 → 3.0.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dc66e2ddd9979483988da5e783424f32e37cff1ebd98ecf45641dfbe09de6545
4
- data.tar.gz: 9e7e76900a0040166abe65247e66444cd22d20162b9e8b5992508959ea4a1e36
3
+ metadata.gz: 3e20cde58e0c87a7c342219711458837b0be7685749ef7252b71e925c7d535a0
4
+ data.tar.gz: 7650634c387086a8854511d3f7345071d1dd805dcb7722060c045ccdc8120018
5
5
  SHA512:
6
- metadata.gz: 90b3784599cfc5fe90d57164e7d93d6e6a41eef619fb825f134fc5e37f7611bdd634064ab205cda5106925fe7440c886972e893082437e69da75786dda0887d3
7
- data.tar.gz: 1d9e39e3b1d65f82266dae4c1c31f462f2741701f56ae009ecfa06b4234163464f1d99cb38f8f4aa7e90167cce3f1ce5d4977afd1410139816013b2fa0db6196
6
+ metadata.gz: 601c420a3033f845c4d770b8e260335be8cb9367f0b84572bf9dfd617a3a567bf51924d21f4a14a39740fdcee4d7193a5e4d5e42da2df6074e3c9495f35b9e81
7
+ data.tar.gz: 065aa3dfd005cb71f6ae4124f8b12cbb78fb44e8dfa22eeff07c7b258aa79040372e36a4ae0fe4908bac32e2f01de944b9aa2ef7c0f2dd421b08b82e3b3ffbe4
@@ -55,14 +55,11 @@ require 'smplkit_audit_client/models/test_forwarder_response'
55
55
  require 'smplkit_audit_client/models/usage_attributes'
56
56
  require 'smplkit_audit_client/models/usage_resource'
57
57
  require 'smplkit_audit_client/models/usage_response'
58
- require 'smplkit_audit_client/models/wipe_response'
59
- require 'smplkit_audit_client/models/wipe_tables_summary'
60
58
 
61
59
  # APIs
62
60
  require 'smplkit_audit_client/api/actions_api'
63
61
  require 'smplkit_audit_client/api/events_api'
64
62
  require 'smplkit_audit_client/api/forwarders_api'
65
- require 'smplkit_audit_client/api/functions_api'
66
63
  require 'smplkit_audit_client/api/resource_types_api'
67
64
  require 'smplkit_audit_client/api/usage_api'
68
65
 
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.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Smpl Solutions LLC
@@ -394,7 +394,6 @@ files:
394
394
  - lib/smplkit/_generated/audit/lib/smplkit_audit_client/api/actions_api.rb
395
395
  - lib/smplkit/_generated/audit/lib/smplkit_audit_client/api/events_api.rb
396
396
  - lib/smplkit/_generated/audit/lib/smplkit_audit_client/api/forwarders_api.rb
397
- - lib/smplkit/_generated/audit/lib/smplkit_audit_client/api/functions_api.rb
398
397
  - lib/smplkit/_generated/audit/lib/smplkit_audit_client/api/resource_types_api.rb
399
398
  - lib/smplkit/_generated/audit/lib/smplkit_audit_client/api/usage_api.rb
400
399
  - lib/smplkit/_generated/audit/lib/smplkit_audit_client/api_client.rb
@@ -438,13 +437,10 @@ files:
438
437
  - lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/usage_attributes.rb
439
438
  - lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/usage_resource.rb
440
439
  - lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/usage_response.rb
441
- - lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/wipe_response.rb
442
- - lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/wipe_tables_summary.rb
443
440
  - lib/smplkit/_generated/audit/lib/smplkit_audit_client/version.rb
444
441
  - lib/smplkit/_generated/audit/spec/api/actions_api_spec.rb
445
442
  - lib/smplkit/_generated/audit/spec/api/events_api_spec.rb
446
443
  - lib/smplkit/_generated/audit/spec/api/forwarders_api_spec.rb
447
- - lib/smplkit/_generated/audit/spec/api/functions_api_spec.rb
448
444
  - lib/smplkit/_generated/audit/spec/api/resource_types_api_spec.rb
449
445
  - lib/smplkit/_generated/audit/spec/api/usage_api_spec.rb
450
446
  - lib/smplkit/_generated/audit/spec/models/action_attributes_spec.rb
@@ -484,8 +480,6 @@ files:
484
480
  - lib/smplkit/_generated/audit/spec/models/usage_attributes_spec.rb
485
481
  - lib/smplkit/_generated/audit/spec/models/usage_resource_spec.rb
486
482
  - lib/smplkit/_generated/audit/spec/models/usage_response_spec.rb
487
- - lib/smplkit/_generated/audit/spec/models/wipe_response_spec.rb
488
- - lib/smplkit/_generated/audit/spec/models/wipe_tables_summary_spec.rb
489
483
  - lib/smplkit/_generated/audit/spec/spec_helper.rb
490
484
  - lib/smplkit/_generated/config/lib/smplkit_config_client.rb
491
485
  - lib/smplkit/_generated/config/lib/smplkit_config_client/api/configs_api.rb
@@ -1,90 +0,0 @@
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 'cgi'
14
-
15
- module SmplkitGeneratedClient::Audit
16
- class FunctionsApi
17
- attr_accessor :api_client
18
-
19
- def initialize(api_client = ApiClient.default)
20
- @api_client = api_client
21
- end
22
- # Execute Wipe
23
- # Delete every audit record this account has stored. Atomic: either every record is deleted, or none is. Returns the per-table counts and the completion timestamp. The request body must be `{}`.
24
- # @param body [Object]
25
- # @param [Hash] opts the optional parameters
26
- # @return [WipeResponse]
27
- def execute_wipe(body, opts = {})
28
- data, _status_code, _headers = execute_wipe_with_http_info(body, opts)
29
- data
30
- end
31
-
32
- # Execute Wipe
33
- # Delete every audit record this account has stored. Atomic: either every record is deleted, or none is. Returns the per-table counts and the completion timestamp. The request body must be `{}`.
34
- # @param body [Object]
35
- # @param [Hash] opts the optional parameters
36
- # @return [Array<(WipeResponse, Integer, Hash)>] WipeResponse data, response status code and response headers
37
- def execute_wipe_with_http_info(body, opts = {})
38
- if @api_client.config.debugging
39
- @api_client.config.logger.debug 'Calling API: FunctionsApi.execute_wipe ...'
40
- end
41
- # verify the required parameter 'body' is set
42
- if @api_client.config.client_side_validation && body.nil?
43
- fail ArgumentError, "Missing the required parameter 'body' when calling FunctionsApi.execute_wipe"
44
- end
45
- # resource path
46
- local_var_path = '/api/v1/functions/wipe/actions/execute'
47
-
48
- # query parameters
49
- query_params = opts[:query_params] || {}
50
-
51
- # header parameters
52
- header_params = opts[:header_params] || {}
53
- # HTTP header 'Accept' (if needed)
54
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
55
- # HTTP header 'Content-Type'
56
- content_type = @api_client.select_header_content_type(['application/json'])
57
- if !content_type.nil?
58
- header_params['Content-Type'] = content_type
59
- end
60
-
61
- # form parameters
62
- form_params = opts[:form_params] || {}
63
-
64
- # http body (model)
65
- post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
66
-
67
- # return_type
68
- return_type = opts[:debug_return_type] || 'WipeResponse'
69
-
70
- # auth_names
71
- auth_names = opts[:debug_auth_names] || ['HTTPBearer']
72
-
73
- new_options = opts.merge(
74
- :operation => :"FunctionsApi.execute_wipe",
75
- :header_params => header_params,
76
- :query_params => query_params,
77
- :form_params => form_params,
78
- :body => post_body,
79
- :auth_names => auth_names,
80
- :return_type => return_type
81
- )
82
-
83
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
84
- if @api_client.config.debugging
85
- @api_client.config.logger.debug "API called: FunctionsApi#execute_wipe\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
86
- end
87
- return data, status_code, headers
88
- end
89
- end
90
- end
@@ -1,204 +0,0 @@
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
- # Summary of a completed wipe action.
18
- class WipeResponse < ApiModelBase
19
- # Always `true` for a successful wipe.
20
- attr_accessor :wiped
21
-
22
- attr_accessor :tables
23
-
24
- # When the wipe completed.
25
- attr_accessor :completed_at
26
-
27
- # Attribute mapping from ruby-style variable name to JSON key.
28
- def self.attribute_map
29
- {
30
- :'wiped' => :'wiped',
31
- :'tables' => :'tables',
32
- :'completed_at' => :'completed_at'
33
- }
34
- end
35
-
36
- # Returns attribute mapping this model knows about
37
- def self.acceptable_attribute_map
38
- attribute_map
39
- end
40
-
41
- # Returns all the JSON keys this model knows about
42
- def self.acceptable_attributes
43
- acceptable_attribute_map.values
44
- end
45
-
46
- # Attribute type mapping.
47
- def self.openapi_types
48
- {
49
- :'wiped' => :'Boolean',
50
- :'tables' => :'WipeTablesSummary',
51
- :'completed_at' => :'Time'
52
- }
53
- end
54
-
55
- # List of attributes with nullable: true
56
- def self.openapi_nullable
57
- Set.new([
58
- ])
59
- end
60
-
61
- # Initializes the object
62
- # @param [Hash] attributes Model attributes in the form of hash
63
- def initialize(attributes = {})
64
- if (!attributes.is_a?(Hash))
65
- fail ArgumentError, "The input argument (attributes) must be a hash in `SmplkitGeneratedClient::Audit::WipeResponse` initialize method"
66
- end
67
-
68
- # check to see if the attribute exists and convert string to symbol for hash key
69
- acceptable_attribute_map = self.class.acceptable_attribute_map
70
- attributes = attributes.each_with_object({}) { |(k, v), h|
71
- if (!acceptable_attribute_map.key?(k.to_sym))
72
- fail ArgumentError, "`#{k}` is not a valid attribute in `SmplkitGeneratedClient::Audit::WipeResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
73
- end
74
- h[k.to_sym] = v
75
- }
76
-
77
- if attributes.key?(:'wiped')
78
- self.wiped = attributes[:'wiped']
79
- else
80
- self.wiped = true
81
- end
82
-
83
- if attributes.key?(:'tables')
84
- self.tables = attributes[:'tables']
85
- else
86
- self.tables = nil
87
- end
88
-
89
- if attributes.key?(:'completed_at')
90
- self.completed_at = attributes[:'completed_at']
91
- else
92
- self.completed_at = nil
93
- end
94
- end
95
-
96
- # Show invalid properties with the reasons. Usually used together with valid?
97
- # @return Array for valid properties with the reasons
98
- def list_invalid_properties
99
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
100
- invalid_properties = Array.new
101
- if @tables.nil?
102
- invalid_properties.push('invalid value for "tables", tables cannot be nil.')
103
- end
104
-
105
- if @completed_at.nil?
106
- invalid_properties.push('invalid value for "completed_at", completed_at cannot be nil.')
107
- end
108
-
109
- invalid_properties
110
- end
111
-
112
- # Check to see if the all the properties in the model are valid
113
- # @return true if the model is valid
114
- def valid?
115
- warn '[DEPRECATED] the `valid?` method is obsolete'
116
- return false if @tables.nil?
117
- return false if @completed_at.nil?
118
- true
119
- end
120
-
121
- # Custom attribute writer method with validation
122
- # @param [Object] tables Value to be assigned
123
- def tables=(tables)
124
- if tables.nil?
125
- fail ArgumentError, 'tables cannot be nil'
126
- end
127
-
128
- @tables = tables
129
- end
130
-
131
- # Custom attribute writer method with validation
132
- # @param [Object] completed_at Value to be assigned
133
- def completed_at=(completed_at)
134
- if completed_at.nil?
135
- fail ArgumentError, 'completed_at cannot be nil'
136
- end
137
-
138
- @completed_at = completed_at
139
- end
140
-
141
- # Checks equality by comparing each attribute.
142
- # @param [Object] Object to be compared
143
- def ==(o)
144
- return true if self.equal?(o)
145
- self.class == o.class &&
146
- wiped == o.wiped &&
147
- tables == o.tables &&
148
- completed_at == o.completed_at
149
- end
150
-
151
- # @see the `==` method
152
- # @param [Object] Object to be compared
153
- def eql?(o)
154
- self == o
155
- end
156
-
157
- # Calculates hash code according to all attributes.
158
- # @return [Integer] Hash code
159
- def hash
160
- [wiped, tables, completed_at].hash
161
- end
162
-
163
- # Builds the object from hash
164
- # @param [Hash] attributes Model attributes in the form of hash
165
- # @return [Object] Returns the model itself
166
- def self.build_from_hash(attributes)
167
- return nil unless attributes.is_a?(Hash)
168
- attributes = attributes.transform_keys(&:to_sym)
169
- transformed_hash = {}
170
- openapi_types.each_pair do |key, type|
171
- if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
172
- transformed_hash["#{key}"] = nil
173
- elsif type =~ /\AArray<(.*)>/i
174
- # check to ensure the input is an array given that the attribute
175
- # is documented as an array but the input is not
176
- if attributes[attribute_map[key]].is_a?(Array)
177
- transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
178
- end
179
- elsif !attributes[attribute_map[key]].nil?
180
- transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
181
- end
182
- end
183
- new(transformed_hash)
184
- end
185
-
186
- # Returns the object in the form of hash
187
- # @return [Hash] Returns the object in the form of hash
188
- def to_hash
189
- hash = {}
190
- self.class.attribute_map.each_pair do |attr, param|
191
- value = self.send(attr)
192
- if value.nil?
193
- is_nullable = self.class.openapi_nullable.include?(attr)
194
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
195
- end
196
-
197
- hash[param] = _to_hash(value)
198
- end
199
- hash
200
- end
201
-
202
- end
203
-
204
- end
@@ -1,355 +0,0 @@
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
- # Counts of records deleted, broken down by record kind.
18
- class WipeTablesSummary < ApiModelBase
19
- # Number of audit events deleted.
20
- attr_accessor :audit_event
21
-
22
- # Number of monthly usage-quota counters deleted.
23
- attr_accessor :audit_event_quota
24
-
25
- # Number of forwarders deleted.
26
- attr_accessor :forwarder
27
-
28
- # Number of forwarder delivery log entries deleted.
29
- attr_accessor :forwarder_delivery
30
-
31
- # Number of distinct `resource_type` entries deleted.
32
- attr_accessor :resource_type
33
-
34
- # Number of distinct `action` entries deleted.
35
- attr_accessor :action
36
-
37
- # Attribute mapping from ruby-style variable name to JSON key.
38
- def self.attribute_map
39
- {
40
- :'audit_event' => :'audit_event',
41
- :'audit_event_quota' => :'audit_event_quota',
42
- :'forwarder' => :'forwarder',
43
- :'forwarder_delivery' => :'forwarder_delivery',
44
- :'resource_type' => :'resource_type',
45
- :'action' => :'action'
46
- }
47
- end
48
-
49
- # Returns attribute mapping this model knows about
50
- def self.acceptable_attribute_map
51
- attribute_map
52
- end
53
-
54
- # Returns all the JSON keys this model knows about
55
- def self.acceptable_attributes
56
- acceptable_attribute_map.values
57
- end
58
-
59
- # Attribute type mapping.
60
- def self.openapi_types
61
- {
62
- :'audit_event' => :'Integer',
63
- :'audit_event_quota' => :'Integer',
64
- :'forwarder' => :'Integer',
65
- :'forwarder_delivery' => :'Integer',
66
- :'resource_type' => :'Integer',
67
- :'action' => :'Integer'
68
- }
69
- end
70
-
71
- # List of attributes with nullable: true
72
- def self.openapi_nullable
73
- Set.new([
74
- ])
75
- end
76
-
77
- # Initializes the object
78
- # @param [Hash] attributes Model attributes in the form of hash
79
- def initialize(attributes = {})
80
- if (!attributes.is_a?(Hash))
81
- fail ArgumentError, "The input argument (attributes) must be a hash in `SmplkitGeneratedClient::Audit::WipeTablesSummary` initialize method"
82
- end
83
-
84
- # check to see if the attribute exists and convert string to symbol for hash key
85
- acceptable_attribute_map = self.class.acceptable_attribute_map
86
- attributes = attributes.each_with_object({}) { |(k, v), h|
87
- if (!acceptable_attribute_map.key?(k.to_sym))
88
- 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
89
- end
90
- h[k.to_sym] = v
91
- }
92
-
93
- if attributes.key?(:'audit_event')
94
- self.audit_event = attributes[:'audit_event']
95
- else
96
- self.audit_event = nil
97
- end
98
-
99
- if attributes.key?(:'audit_event_quota')
100
- self.audit_event_quota = attributes[:'audit_event_quota']
101
- else
102
- self.audit_event_quota = nil
103
- end
104
-
105
- if attributes.key?(:'forwarder')
106
- self.forwarder = attributes[:'forwarder']
107
- else
108
- self.forwarder = nil
109
- end
110
-
111
- if attributes.key?(:'forwarder_delivery')
112
- self.forwarder_delivery = attributes[:'forwarder_delivery']
113
- else
114
- self.forwarder_delivery = nil
115
- end
116
-
117
- if attributes.key?(:'resource_type')
118
- self.resource_type = attributes[:'resource_type']
119
- else
120
- self.resource_type = nil
121
- end
122
-
123
- if attributes.key?(:'action')
124
- self.action = attributes[:'action']
125
- else
126
- self.action = nil
127
- end
128
- end
129
-
130
- # Show invalid properties with the reasons. Usually used together with valid?
131
- # @return Array for valid properties with the reasons
132
- def list_invalid_properties
133
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
134
- invalid_properties = Array.new
135
- if @audit_event.nil?
136
- invalid_properties.push('invalid value for "audit_event", audit_event cannot be nil.')
137
- end
138
-
139
- if @audit_event < 0
140
- invalid_properties.push('invalid value for "audit_event", must be greater than or equal to 0.')
141
- end
142
-
143
- if @audit_event_quota.nil?
144
- invalid_properties.push('invalid value for "audit_event_quota", audit_event_quota cannot be nil.')
145
- end
146
-
147
- if @audit_event_quota < 0
148
- invalid_properties.push('invalid value for "audit_event_quota", must be greater than or equal to 0.')
149
- end
150
-
151
- if @forwarder.nil?
152
- invalid_properties.push('invalid value for "forwarder", forwarder cannot be nil.')
153
- end
154
-
155
- if @forwarder < 0
156
- invalid_properties.push('invalid value for "forwarder", must be greater than or equal to 0.')
157
- end
158
-
159
- if @forwarder_delivery.nil?
160
- invalid_properties.push('invalid value for "forwarder_delivery", forwarder_delivery cannot be nil.')
161
- end
162
-
163
- if @forwarder_delivery < 0
164
- invalid_properties.push('invalid value for "forwarder_delivery", must be greater than or equal to 0.')
165
- end
166
-
167
- if @resource_type.nil?
168
- invalid_properties.push('invalid value for "resource_type", resource_type cannot be nil.')
169
- end
170
-
171
- if @resource_type < 0
172
- invalid_properties.push('invalid value for "resource_type", must be greater than or equal to 0.')
173
- end
174
-
175
- if @action.nil?
176
- invalid_properties.push('invalid value for "action", action cannot be nil.')
177
- end
178
-
179
- if @action < 0
180
- invalid_properties.push('invalid value for "action", must be greater than or equal to 0.')
181
- end
182
-
183
- invalid_properties
184
- end
185
-
186
- # Check to see if the all the properties in the model are valid
187
- # @return true if the model is valid
188
- def valid?
189
- warn '[DEPRECATED] the `valid?` method is obsolete'
190
- return false if @audit_event.nil?
191
- return false if @audit_event < 0
192
- return false if @audit_event_quota.nil?
193
- return false if @audit_event_quota < 0
194
- return false if @forwarder.nil?
195
- return false if @forwarder < 0
196
- return false if @forwarder_delivery.nil?
197
- return false if @forwarder_delivery < 0
198
- return false if @resource_type.nil?
199
- return false if @resource_type < 0
200
- return false if @action.nil?
201
- return false if @action < 0
202
- true
203
- end
204
-
205
- # Custom attribute writer method with validation
206
- # @param [Object] audit_event Value to be assigned
207
- def audit_event=(audit_event)
208
- if audit_event.nil?
209
- fail ArgumentError, 'audit_event cannot be nil'
210
- end
211
-
212
- if audit_event < 0
213
- fail ArgumentError, 'invalid value for "audit_event", must be greater than or equal to 0.'
214
- end
215
-
216
- @audit_event = audit_event
217
- end
218
-
219
- # Custom attribute writer method with validation
220
- # @param [Object] audit_event_quota Value to be assigned
221
- def audit_event_quota=(audit_event_quota)
222
- if audit_event_quota.nil?
223
- fail ArgumentError, 'audit_event_quota cannot be nil'
224
- end
225
-
226
- if audit_event_quota < 0
227
- fail ArgumentError, 'invalid value for "audit_event_quota", must be greater than or equal to 0.'
228
- end
229
-
230
- @audit_event_quota = audit_event_quota
231
- end
232
-
233
- # Custom attribute writer method with validation
234
- # @param [Object] forwarder Value to be assigned
235
- def forwarder=(forwarder)
236
- if forwarder.nil?
237
- fail ArgumentError, 'forwarder cannot be nil'
238
- end
239
-
240
- if forwarder < 0
241
- fail ArgumentError, 'invalid value for "forwarder", must be greater than or equal to 0.'
242
- end
243
-
244
- @forwarder = forwarder
245
- end
246
-
247
- # Custom attribute writer method with validation
248
- # @param [Object] forwarder_delivery Value to be assigned
249
- def forwarder_delivery=(forwarder_delivery)
250
- if forwarder_delivery.nil?
251
- fail ArgumentError, 'forwarder_delivery cannot be nil'
252
- end
253
-
254
- if forwarder_delivery < 0
255
- fail ArgumentError, 'invalid value for "forwarder_delivery", must be greater than or equal to 0.'
256
- end
257
-
258
- @forwarder_delivery = forwarder_delivery
259
- end
260
-
261
- # Custom attribute writer method with validation
262
- # @param [Object] resource_type Value to be assigned
263
- def resource_type=(resource_type)
264
- if resource_type.nil?
265
- fail ArgumentError, 'resource_type cannot be nil'
266
- end
267
-
268
- if resource_type < 0
269
- fail ArgumentError, 'invalid value for "resource_type", must be greater than or equal to 0.'
270
- end
271
-
272
- @resource_type = resource_type
273
- end
274
-
275
- # Custom attribute writer method with validation
276
- # @param [Object] action Value to be assigned
277
- def action=(action)
278
- if action.nil?
279
- fail ArgumentError, 'action cannot be nil'
280
- end
281
-
282
- if action < 0
283
- fail ArgumentError, 'invalid value for "action", must be greater than or equal to 0.'
284
- end
285
-
286
- @action = action
287
- end
288
-
289
- # Checks equality by comparing each attribute.
290
- # @param [Object] Object to be compared
291
- def ==(o)
292
- return true if self.equal?(o)
293
- self.class == o.class &&
294
- audit_event == o.audit_event &&
295
- audit_event_quota == o.audit_event_quota &&
296
- forwarder == o.forwarder &&
297
- forwarder_delivery == o.forwarder_delivery &&
298
- resource_type == o.resource_type &&
299
- action == o.action
300
- end
301
-
302
- # @see the `==` method
303
- # @param [Object] Object to be compared
304
- def eql?(o)
305
- self == o
306
- end
307
-
308
- # Calculates hash code according to all attributes.
309
- # @return [Integer] Hash code
310
- def hash
311
- [audit_event, audit_event_quota, forwarder, forwarder_delivery, resource_type, action].hash
312
- end
313
-
314
- # Builds the object from hash
315
- # @param [Hash] attributes Model attributes in the form of hash
316
- # @return [Object] Returns the model itself
317
- def self.build_from_hash(attributes)
318
- return nil unless attributes.is_a?(Hash)
319
- attributes = attributes.transform_keys(&:to_sym)
320
- transformed_hash = {}
321
- openapi_types.each_pair do |key, type|
322
- if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
323
- transformed_hash["#{key}"] = nil
324
- elsif type =~ /\AArray<(.*)>/i
325
- # check to ensure the input is an array given that the attribute
326
- # is documented as an array but the input is not
327
- if attributes[attribute_map[key]].is_a?(Array)
328
- transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
329
- end
330
- elsif !attributes[attribute_map[key]].nil?
331
- transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
332
- end
333
- end
334
- new(transformed_hash)
335
- end
336
-
337
- # Returns the object in the form of hash
338
- # @return [Hash] Returns the object in the form of hash
339
- def to_hash
340
- hash = {}
341
- self.class.attribute_map.each_pair do |attr, param|
342
- value = self.send(attr)
343
- if value.nil?
344
- is_nullable = self.class.openapi_nullable.include?(attr)
345
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
346
- end
347
-
348
- hash[param] = _to_hash(value)
349
- end
350
- hash
351
- end
352
-
353
- end
354
-
355
- end
@@ -1,47 +0,0 @@
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 record this account has stored. Atomic: either every record is deleted, or none is. Returns the per-table counts and the completion timestamp. The request body must be &#x60;{}&#x60;.
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
@@ -1,48 +0,0 @@
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::WipeResponse
18
- # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
- # Please update as you see appropriate
20
- describe SmplkitGeneratedClient::Audit::WipeResponse do
21
- #let(:instance) { SmplkitGeneratedClient::Audit::WipeResponse.new }
22
-
23
- describe 'test an instance of WipeResponse' do
24
- it 'should create an instance of WipeResponse' do
25
- # uncomment below to test the instance creation
26
- #expect(instance).to be_instance_of(SmplkitGeneratedClient::Audit::WipeResponse)
27
- end
28
- end
29
-
30
- describe 'test attribute "wiped"' 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 "tables"' 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
- describe 'test attribute "completed_at"' do
43
- it 'should work' do
44
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
- end
46
- end
47
-
48
- end
@@ -1,66 +0,0 @@
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::WipeTablesSummary
18
- # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
- # Please update as you see appropriate
20
- describe SmplkitGeneratedClient::Audit::WipeTablesSummary do
21
- #let(:instance) { SmplkitGeneratedClient::Audit::WipeTablesSummary.new }
22
-
23
- describe 'test an instance of WipeTablesSummary' do
24
- it 'should create an instance of WipeTablesSummary' do
25
- # uncomment below to test the instance creation
26
- #expect(instance).to be_instance_of(SmplkitGeneratedClient::Audit::WipeTablesSummary)
27
- end
28
- end
29
-
30
- describe 'test attribute "audit_event"' 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 "audit_event_quota"' 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
- describe 'test attribute "forwarder"' do
43
- it 'should work' do
44
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
- end
46
- end
47
-
48
- describe 'test attribute "forwarder_delivery"' do
49
- it 'should work' do
50
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
51
- end
52
- end
53
-
54
- describe 'test attribute "resource_type"' do
55
- it 'should work' do
56
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
57
- end
58
- end
59
-
60
- describe 'test attribute "action"' do
61
- it 'should work' do
62
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
63
- end
64
- end
65
-
66
- end