smplkit 3.0.122 → 3.0.123
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/models/forwarder.rb +5 -17
- data/lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/{http_configuration.rb → forwarder_http_configuration.rb} +7 -7
- data/lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/test_forwarder_request.rb +3 -3
- data/lib/smplkit/_generated/audit/lib/smplkit_audit_client.rb +1 -3
- data/lib/smplkit/_generated/audit/spec/models/{http_configuration_spec.rb → forwarder_http_configuration_spec.rb} +6 -6
- data/lib/smplkit/_generated/audit/spec/models/forwarder_spec.rb +0 -6
- data/lib/smplkit/_generated/jobs/lib/smplkit_jobs_client/models/job.rb +2 -2
- data/lib/smplkit/_generated/jobs/lib/smplkit_jobs_client/models/job_http_configuration.rb +4 -4
- data/lib/smplkit/_generated/jobs/lib/smplkit_jobs_client.rb +0 -2
- data/lib/smplkit/audit/forwarders.rb +18 -24
- data/lib/smplkit/audit/models.rb +175 -103
- data/lib/smplkit/jobs/client.rb +21 -26
- data/lib/smplkit/jobs/models.rb +233 -273
- metadata +3 -11
- data/lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/forwarder_environment.rb +0 -162
- data/lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/http_header.rb +0 -220
- data/lib/smplkit/_generated/audit/spec/models/forwarder_environment_spec.rb +0 -42
- data/lib/smplkit/_generated/audit/spec/models/http_header_spec.rb +0 -42
- data/lib/smplkit/_generated/jobs/lib/smplkit_jobs_client/models/http_header.rb +0 -220
- data/lib/smplkit/_generated/jobs/lib/smplkit_jobs_client/models/job_environment.rb +0 -206
- data/lib/smplkit/_generated/jobs/spec/models/http_header_spec.rb +0 -42
- data/lib/smplkit/_generated/jobs/spec/models/job_environment_spec.rb +0 -66
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.123
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Smpl Solutions LLC
|
|
@@ -546,7 +546,7 @@ files:
|
|
|
546
546
|
- lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/forwarder_delivery_list_response.rb
|
|
547
547
|
- lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/forwarder_delivery_resource.rb
|
|
548
548
|
- lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/forwarder_delivery_response.rb
|
|
549
|
-
- lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/
|
|
549
|
+
- lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/forwarder_http_configuration.rb
|
|
550
550
|
- lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/forwarder_list_response.rb
|
|
551
551
|
- lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/forwarder_request.rb
|
|
552
552
|
- lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/forwarder_resource.rb
|
|
@@ -560,8 +560,6 @@ files:
|
|
|
560
560
|
- lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/forwarder_type_resource.rb
|
|
561
561
|
- lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/forwarder_type_response.rb
|
|
562
562
|
- lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/forwarder_type_transform.rb
|
|
563
|
-
- lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/http_configuration.rb
|
|
564
|
-
- lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/http_header.rb
|
|
565
563
|
- lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/list_meta.rb
|
|
566
564
|
- lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/pagination_meta.rb
|
|
567
565
|
- lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/resource_type_attributes.rb
|
|
@@ -614,7 +612,7 @@ files:
|
|
|
614
612
|
- lib/smplkit/_generated/audit/spec/models/forwarder_delivery_resource_spec.rb
|
|
615
613
|
- lib/smplkit/_generated/audit/spec/models/forwarder_delivery_response_spec.rb
|
|
616
614
|
- lib/smplkit/_generated/audit/spec/models/forwarder_delivery_spec.rb
|
|
617
|
-
- lib/smplkit/_generated/audit/spec/models/
|
|
615
|
+
- lib/smplkit/_generated/audit/spec/models/forwarder_http_configuration_spec.rb
|
|
618
616
|
- lib/smplkit/_generated/audit/spec/models/forwarder_list_response_spec.rb
|
|
619
617
|
- lib/smplkit/_generated/audit/spec/models/forwarder_request_spec.rb
|
|
620
618
|
- lib/smplkit/_generated/audit/spec/models/forwarder_resource_spec.rb
|
|
@@ -629,8 +627,6 @@ files:
|
|
|
629
627
|
- lib/smplkit/_generated/audit/spec/models/forwarder_type_response_spec.rb
|
|
630
628
|
- lib/smplkit/_generated/audit/spec/models/forwarder_type_spec.rb
|
|
631
629
|
- lib/smplkit/_generated/audit/spec/models/forwarder_type_transform_spec.rb
|
|
632
|
-
- lib/smplkit/_generated/audit/spec/models/http_configuration_spec.rb
|
|
633
|
-
- lib/smplkit/_generated/audit/spec/models/http_header_spec.rb
|
|
634
630
|
- lib/smplkit/_generated/audit/spec/models/list_meta_spec.rb
|
|
635
631
|
- lib/smplkit/_generated/audit/spec/models/pagination_meta_spec.rb
|
|
636
632
|
- lib/smplkit/_generated/audit/spec/models/resource_type_attributes_spec.rb
|
|
@@ -766,11 +762,9 @@ files:
|
|
|
766
762
|
- lib/smplkit/_generated/jobs/lib/smplkit_jobs_client/configuration.rb
|
|
767
763
|
- lib/smplkit/_generated/jobs/lib/smplkit_jobs_client/models/error.rb
|
|
768
764
|
- lib/smplkit/_generated/jobs/lib/smplkit_jobs_client/models/error_response.rb
|
|
769
|
-
- lib/smplkit/_generated/jobs/lib/smplkit_jobs_client/models/http_header.rb
|
|
770
765
|
- lib/smplkit/_generated/jobs/lib/smplkit_jobs_client/models/job.rb
|
|
771
766
|
- lib/smplkit/_generated/jobs/lib/smplkit_jobs_client/models/job_create_request.rb
|
|
772
767
|
- lib/smplkit/_generated/jobs/lib/smplkit_jobs_client/models/job_create_resource.rb
|
|
773
|
-
- lib/smplkit/_generated/jobs/lib/smplkit_jobs_client/models/job_environment.rb
|
|
774
768
|
- lib/smplkit/_generated/jobs/lib/smplkit_jobs_client/models/job_http_configuration.rb
|
|
775
769
|
- lib/smplkit/_generated/jobs/lib/smplkit_jobs_client/models/job_list_response.rb
|
|
776
770
|
- lib/smplkit/_generated/jobs/lib/smplkit_jobs_client/models/job_request.rb
|
|
@@ -802,10 +796,8 @@ files:
|
|
|
802
796
|
- lib/smplkit/_generated/jobs/spec/api/usage_api_spec.rb
|
|
803
797
|
- lib/smplkit/_generated/jobs/spec/models/error_response_spec.rb
|
|
804
798
|
- lib/smplkit/_generated/jobs/spec/models/error_spec.rb
|
|
805
|
-
- lib/smplkit/_generated/jobs/spec/models/http_header_spec.rb
|
|
806
799
|
- lib/smplkit/_generated/jobs/spec/models/job_create_request_spec.rb
|
|
807
800
|
- lib/smplkit/_generated/jobs/spec/models/job_create_resource_spec.rb
|
|
808
|
-
- lib/smplkit/_generated/jobs/spec/models/job_environment_spec.rb
|
|
809
801
|
- lib/smplkit/_generated/jobs/spec/models/job_http_configuration_spec.rb
|
|
810
802
|
- lib/smplkit/_generated/jobs/spec/models/job_list_response_spec.rb
|
|
811
803
|
- lib/smplkit/_generated/jobs/spec/models/job_request_spec.rb
|
|
@@ -1,162 +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
|
-
# Per-environment override for a forwarder's enablement and configuration.
|
|
18
|
-
class ForwarderEnvironment < ApiModelBase
|
|
19
|
-
# Whether the forwarder delivers events in this environment. A forwarder is enabled in an environment only via this field — the base `enabled` is always false.
|
|
20
|
-
attr_accessor :enabled
|
|
21
|
-
|
|
22
|
-
# Per-environment delivery configuration override. Omit to inherit the forwarder's base `configuration`. When present, it fully replaces the base configuration for this environment and is validated against the same per-vendor template.
|
|
23
|
-
attr_accessor :configuration
|
|
24
|
-
|
|
25
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
|
26
|
-
def self.attribute_map
|
|
27
|
-
{
|
|
28
|
-
:'enabled' => :'enabled',
|
|
29
|
-
:'configuration' => :'configuration'
|
|
30
|
-
}
|
|
31
|
-
end
|
|
32
|
-
|
|
33
|
-
# Returns attribute mapping this model knows about
|
|
34
|
-
def self.acceptable_attribute_map
|
|
35
|
-
attribute_map
|
|
36
|
-
end
|
|
37
|
-
|
|
38
|
-
# Returns all the JSON keys this model knows about
|
|
39
|
-
def self.acceptable_attributes
|
|
40
|
-
acceptable_attribute_map.values
|
|
41
|
-
end
|
|
42
|
-
|
|
43
|
-
# Attribute type mapping.
|
|
44
|
-
def self.openapi_types
|
|
45
|
-
{
|
|
46
|
-
:'enabled' => :'Boolean',
|
|
47
|
-
:'configuration' => :'HttpConfiguration'
|
|
48
|
-
}
|
|
49
|
-
end
|
|
50
|
-
|
|
51
|
-
# List of attributes with nullable: true
|
|
52
|
-
def self.openapi_nullable
|
|
53
|
-
Set.new([
|
|
54
|
-
:'configuration'
|
|
55
|
-
])
|
|
56
|
-
end
|
|
57
|
-
|
|
58
|
-
# Initializes the object
|
|
59
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
60
|
-
def initialize(attributes = {})
|
|
61
|
-
if (!attributes.is_a?(Hash))
|
|
62
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `SmplkitGeneratedClient::Audit::ForwarderEnvironment` initialize method"
|
|
63
|
-
end
|
|
64
|
-
|
|
65
|
-
# check to see if the attribute exists and convert string to symbol for hash key
|
|
66
|
-
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
67
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
68
|
-
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
69
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `SmplkitGeneratedClient::Audit::ForwarderEnvironment`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
70
|
-
end
|
|
71
|
-
h[k.to_sym] = v
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
if attributes.key?(:'enabled')
|
|
75
|
-
self.enabled = attributes[:'enabled']
|
|
76
|
-
else
|
|
77
|
-
self.enabled = false
|
|
78
|
-
end
|
|
79
|
-
|
|
80
|
-
if attributes.key?(:'configuration')
|
|
81
|
-
self.configuration = attributes[:'configuration']
|
|
82
|
-
end
|
|
83
|
-
end
|
|
84
|
-
|
|
85
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
|
86
|
-
# @return Array for valid properties with the reasons
|
|
87
|
-
def list_invalid_properties
|
|
88
|
-
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
89
|
-
invalid_properties = Array.new
|
|
90
|
-
invalid_properties
|
|
91
|
-
end
|
|
92
|
-
|
|
93
|
-
# Check to see if the all the properties in the model are valid
|
|
94
|
-
# @return true if the model is valid
|
|
95
|
-
def valid?
|
|
96
|
-
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
97
|
-
true
|
|
98
|
-
end
|
|
99
|
-
|
|
100
|
-
# Checks equality by comparing each attribute.
|
|
101
|
-
# @param [Object] Object to be compared
|
|
102
|
-
def ==(o)
|
|
103
|
-
return true if self.equal?(o)
|
|
104
|
-
self.class == o.class &&
|
|
105
|
-
enabled == o.enabled &&
|
|
106
|
-
configuration == o.configuration
|
|
107
|
-
end
|
|
108
|
-
|
|
109
|
-
# @see the `==` method
|
|
110
|
-
# @param [Object] Object to be compared
|
|
111
|
-
def eql?(o)
|
|
112
|
-
self == o
|
|
113
|
-
end
|
|
114
|
-
|
|
115
|
-
# Calculates hash code according to all attributes.
|
|
116
|
-
# @return [Integer] Hash code
|
|
117
|
-
def hash
|
|
118
|
-
[enabled, configuration].hash
|
|
119
|
-
end
|
|
120
|
-
|
|
121
|
-
# Builds the object from hash
|
|
122
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
123
|
-
# @return [Object] Returns the model itself
|
|
124
|
-
def self.build_from_hash(attributes)
|
|
125
|
-
return nil unless attributes.is_a?(Hash)
|
|
126
|
-
attributes = attributes.transform_keys(&:to_sym)
|
|
127
|
-
transformed_hash = {}
|
|
128
|
-
openapi_types.each_pair do |key, type|
|
|
129
|
-
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
130
|
-
transformed_hash["#{key}"] = nil
|
|
131
|
-
elsif type =~ /\AArray<(.*)>/i
|
|
132
|
-
# check to ensure the input is an array given that the attribute
|
|
133
|
-
# is documented as an array but the input is not
|
|
134
|
-
if attributes[attribute_map[key]].is_a?(Array)
|
|
135
|
-
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
136
|
-
end
|
|
137
|
-
elsif !attributes[attribute_map[key]].nil?
|
|
138
|
-
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
139
|
-
end
|
|
140
|
-
end
|
|
141
|
-
new(transformed_hash)
|
|
142
|
-
end
|
|
143
|
-
|
|
144
|
-
# Returns the object in the form of hash
|
|
145
|
-
# @return [Hash] Returns the object in the form of hash
|
|
146
|
-
def to_hash
|
|
147
|
-
hash = {}
|
|
148
|
-
self.class.attribute_map.each_pair do |attr, param|
|
|
149
|
-
value = self.send(attr)
|
|
150
|
-
if value.nil?
|
|
151
|
-
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
152
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
153
|
-
end
|
|
154
|
-
|
|
155
|
-
hash[param] = _to_hash(value)
|
|
156
|
-
end
|
|
157
|
-
hash
|
|
158
|
-
end
|
|
159
|
-
|
|
160
|
-
end
|
|
161
|
-
|
|
162
|
-
end
|
|
@@ -1,220 +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
|
-
# A single HTTP header attached to an outbound request. Header values are encrypted at the application layer before persistence regardless of header name; the wire representation here is always plaintext on both the request and the response, so a `GET → mutate → PUT` round-trip preserves header values without requiring the customer to re-enter secrets.
|
|
18
|
-
class HttpHeader < ApiModelBase
|
|
19
|
-
# Header name.
|
|
20
|
-
attr_accessor :name
|
|
21
|
-
|
|
22
|
-
# Header value. Stored encrypted at rest; returned as plaintext on `GET`.
|
|
23
|
-
attr_accessor :value
|
|
24
|
-
|
|
25
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
|
26
|
-
def self.attribute_map
|
|
27
|
-
{
|
|
28
|
-
:'name' => :'name',
|
|
29
|
-
:'value' => :'value'
|
|
30
|
-
}
|
|
31
|
-
end
|
|
32
|
-
|
|
33
|
-
# Returns attribute mapping this model knows about
|
|
34
|
-
def self.acceptable_attribute_map
|
|
35
|
-
attribute_map
|
|
36
|
-
end
|
|
37
|
-
|
|
38
|
-
# Returns all the JSON keys this model knows about
|
|
39
|
-
def self.acceptable_attributes
|
|
40
|
-
acceptable_attribute_map.values
|
|
41
|
-
end
|
|
42
|
-
|
|
43
|
-
# Attribute type mapping.
|
|
44
|
-
def self.openapi_types
|
|
45
|
-
{
|
|
46
|
-
:'name' => :'String',
|
|
47
|
-
:'value' => :'String'
|
|
48
|
-
}
|
|
49
|
-
end
|
|
50
|
-
|
|
51
|
-
# List of attributes with nullable: true
|
|
52
|
-
def self.openapi_nullable
|
|
53
|
-
Set.new([
|
|
54
|
-
])
|
|
55
|
-
end
|
|
56
|
-
|
|
57
|
-
# Initializes the object
|
|
58
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
59
|
-
def initialize(attributes = {})
|
|
60
|
-
if (!attributes.is_a?(Hash))
|
|
61
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `SmplkitGeneratedClient::Audit::HttpHeader` initialize method"
|
|
62
|
-
end
|
|
63
|
-
|
|
64
|
-
# check to see if the attribute exists and convert string to symbol for hash key
|
|
65
|
-
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
66
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
67
|
-
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
68
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `SmplkitGeneratedClient::Audit::HttpHeader`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
69
|
-
end
|
|
70
|
-
h[k.to_sym] = v
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
if attributes.key?(:'name')
|
|
74
|
-
self.name = attributes[:'name']
|
|
75
|
-
else
|
|
76
|
-
self.name = nil
|
|
77
|
-
end
|
|
78
|
-
|
|
79
|
-
if attributes.key?(:'value')
|
|
80
|
-
self.value = attributes[:'value']
|
|
81
|
-
else
|
|
82
|
-
self.value = nil
|
|
83
|
-
end
|
|
84
|
-
end
|
|
85
|
-
|
|
86
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
|
87
|
-
# @return Array for valid properties with the reasons
|
|
88
|
-
def list_invalid_properties
|
|
89
|
-
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
90
|
-
invalid_properties = Array.new
|
|
91
|
-
if @name.nil?
|
|
92
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
93
|
-
end
|
|
94
|
-
|
|
95
|
-
if @name.to_s.length > 200
|
|
96
|
-
invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 200.')
|
|
97
|
-
end
|
|
98
|
-
|
|
99
|
-
if @name.to_s.length < 1
|
|
100
|
-
invalid_properties.push('invalid value for "name", the character length must be greater than or equal to 1.')
|
|
101
|
-
end
|
|
102
|
-
|
|
103
|
-
if @value.nil?
|
|
104
|
-
invalid_properties.push('invalid value for "value", value cannot be nil.')
|
|
105
|
-
end
|
|
106
|
-
|
|
107
|
-
if @value.to_s.length > 8192
|
|
108
|
-
invalid_properties.push('invalid value for "value", the character length must be smaller than or equal to 8192.')
|
|
109
|
-
end
|
|
110
|
-
|
|
111
|
-
invalid_properties
|
|
112
|
-
end
|
|
113
|
-
|
|
114
|
-
# Check to see if the all the properties in the model are valid
|
|
115
|
-
# @return true if the model is valid
|
|
116
|
-
def valid?
|
|
117
|
-
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
118
|
-
return false if @name.nil?
|
|
119
|
-
return false if @name.to_s.length > 200
|
|
120
|
-
return false if @name.to_s.length < 1
|
|
121
|
-
return false if @value.nil?
|
|
122
|
-
return false if @value.to_s.length > 8192
|
|
123
|
-
true
|
|
124
|
-
end
|
|
125
|
-
|
|
126
|
-
# Custom attribute writer method with validation
|
|
127
|
-
# @param [Object] name Value to be assigned
|
|
128
|
-
def name=(name)
|
|
129
|
-
if name.nil?
|
|
130
|
-
fail ArgumentError, 'name cannot be nil'
|
|
131
|
-
end
|
|
132
|
-
|
|
133
|
-
if name.to_s.length > 200
|
|
134
|
-
fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 200.'
|
|
135
|
-
end
|
|
136
|
-
|
|
137
|
-
if name.to_s.length < 1
|
|
138
|
-
fail ArgumentError, 'invalid value for "name", the character length must be greater than or equal to 1.'
|
|
139
|
-
end
|
|
140
|
-
|
|
141
|
-
@name = name
|
|
142
|
-
end
|
|
143
|
-
|
|
144
|
-
# Custom attribute writer method with validation
|
|
145
|
-
# @param [Object] value Value to be assigned
|
|
146
|
-
def value=(value)
|
|
147
|
-
if value.nil?
|
|
148
|
-
fail ArgumentError, 'value cannot be nil'
|
|
149
|
-
end
|
|
150
|
-
|
|
151
|
-
if value.to_s.length > 8192
|
|
152
|
-
fail ArgumentError, 'invalid value for "value", the character length must be smaller than or equal to 8192.'
|
|
153
|
-
end
|
|
154
|
-
|
|
155
|
-
@value = value
|
|
156
|
-
end
|
|
157
|
-
|
|
158
|
-
# Checks equality by comparing each attribute.
|
|
159
|
-
# @param [Object] Object to be compared
|
|
160
|
-
def ==(o)
|
|
161
|
-
return true if self.equal?(o)
|
|
162
|
-
self.class == o.class &&
|
|
163
|
-
name == o.name &&
|
|
164
|
-
value == o.value
|
|
165
|
-
end
|
|
166
|
-
|
|
167
|
-
# @see the `==` method
|
|
168
|
-
# @param [Object] Object to be compared
|
|
169
|
-
def eql?(o)
|
|
170
|
-
self == o
|
|
171
|
-
end
|
|
172
|
-
|
|
173
|
-
# Calculates hash code according to all attributes.
|
|
174
|
-
# @return [Integer] Hash code
|
|
175
|
-
def hash
|
|
176
|
-
[name, value].hash
|
|
177
|
-
end
|
|
178
|
-
|
|
179
|
-
# Builds the object from hash
|
|
180
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
181
|
-
# @return [Object] Returns the model itself
|
|
182
|
-
def self.build_from_hash(attributes)
|
|
183
|
-
return nil unless attributes.is_a?(Hash)
|
|
184
|
-
attributes = attributes.transform_keys(&:to_sym)
|
|
185
|
-
transformed_hash = {}
|
|
186
|
-
openapi_types.each_pair do |key, type|
|
|
187
|
-
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
188
|
-
transformed_hash["#{key}"] = nil
|
|
189
|
-
elsif type =~ /\AArray<(.*)>/i
|
|
190
|
-
# check to ensure the input is an array given that the attribute
|
|
191
|
-
# is documented as an array but the input is not
|
|
192
|
-
if attributes[attribute_map[key]].is_a?(Array)
|
|
193
|
-
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
194
|
-
end
|
|
195
|
-
elsif !attributes[attribute_map[key]].nil?
|
|
196
|
-
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
197
|
-
end
|
|
198
|
-
end
|
|
199
|
-
new(transformed_hash)
|
|
200
|
-
end
|
|
201
|
-
|
|
202
|
-
# Returns the object in the form of hash
|
|
203
|
-
# @return [Hash] Returns the object in the form of hash
|
|
204
|
-
def to_hash
|
|
205
|
-
hash = {}
|
|
206
|
-
self.class.attribute_map.each_pair do |attr, param|
|
|
207
|
-
value = self.send(attr)
|
|
208
|
-
if value.nil?
|
|
209
|
-
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
210
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
211
|
-
end
|
|
212
|
-
|
|
213
|
-
hash[param] = _to_hash(value)
|
|
214
|
-
end
|
|
215
|
-
hash
|
|
216
|
-
end
|
|
217
|
-
|
|
218
|
-
end
|
|
219
|
-
|
|
220
|
-
end
|
|
@@ -1,42 +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::ForwarderEnvironment
|
|
18
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
-
# Please update as you see appropriate
|
|
20
|
-
describe SmplkitGeneratedClient::Audit::ForwarderEnvironment do
|
|
21
|
-
#let(:instance) { SmplkitGeneratedClient::Audit::ForwarderEnvironment.new }
|
|
22
|
-
|
|
23
|
-
describe 'test an instance of ForwarderEnvironment' do
|
|
24
|
-
it 'should create an instance of ForwarderEnvironment' do
|
|
25
|
-
# uncomment below to test the instance creation
|
|
26
|
-
#expect(instance).to be_instance_of(SmplkitGeneratedClient::Audit::ForwarderEnvironment)
|
|
27
|
-
end
|
|
28
|
-
end
|
|
29
|
-
|
|
30
|
-
describe 'test attribute "enabled"' 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 "configuration"' 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
|
|
@@ -1,42 +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::HttpHeader
|
|
18
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
-
# Please update as you see appropriate
|
|
20
|
-
describe SmplkitGeneratedClient::Audit::HttpHeader do
|
|
21
|
-
#let(:instance) { SmplkitGeneratedClient::Audit::HttpHeader.new }
|
|
22
|
-
|
|
23
|
-
describe 'test an instance of HttpHeader' do
|
|
24
|
-
it 'should create an instance of HttpHeader' do
|
|
25
|
-
# uncomment below to test the instance creation
|
|
26
|
-
#expect(instance).to be_instance_of(SmplkitGeneratedClient::Audit::HttpHeader)
|
|
27
|
-
end
|
|
28
|
-
end
|
|
29
|
-
|
|
30
|
-
describe 'test attribute "name"' 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 "value"' 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
|