akeyless 3.3.9 → 3.3.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -1
- data/docs/AccountGeneralSettings.md +4 -0
- data/docs/CertificateChainInfo.md +2 -0
- data/docs/ElasticsearchLogForwardingConfig.md +4 -0
- data/docs/LogForwardingConfigPart.md +2 -0
- data/docs/LogstashLogForwardingConfig.md +5 -1
- data/docs/SplunkLogForwardingConfig.md +4 -0
- data/docs/SumologicLogForwardingConfig.md +22 -0
- data/docs/SyslogLogForwardingConfig.md +5 -1
- data/docs/UpdateAccountSettings.md +2 -0
- data/lib/akeyless/models/account_general_settings.rb +21 -1
- data/lib/akeyless/models/certificate_chain_info.rb +10 -1
- data/lib/akeyless/models/elasticsearch_log_forwarding_config.rb +19 -1
- data/lib/akeyless/models/log_forwarding_config_part.rb +10 -1
- data/lib/akeyless/models/logstash_log_forwarding_config.rb +22 -4
- data/lib/akeyless/models/splunk_log_forwarding_config.rb +19 -1
- data/lib/akeyless/models/sumologic_log_forwarding_config.rb +237 -0
- data/lib/akeyless/models/syslog_log_forwarding_config.rb +22 -4
- data/lib/akeyless/models/update_account_settings.rb +11 -1
- data/lib/akeyless/version.rb +1 -1
- data/lib/akeyless.rb +1 -0
- data/spec/models/sumologic_log_forwarding_config_spec.rb +46 -0
- metadata +626 -622
@@ -0,0 +1,237 @@
|
|
1
|
+
=begin
|
2
|
+
#Akeyless API
|
3
|
+
|
4
|
+
#The purpose of this application is to provide access to Akeyless API.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 2.0
|
7
|
+
Contact: support@akeyless.io
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 7.0.0-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module Akeyless
|
17
|
+
class SumologicLogForwardingConfig
|
18
|
+
attr_accessor :sumo_logic_endpoint
|
19
|
+
|
20
|
+
attr_accessor :sumo_logic_host
|
21
|
+
|
22
|
+
attr_accessor :sumo_logic_tags
|
23
|
+
|
24
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
25
|
+
def self.attribute_map
|
26
|
+
{
|
27
|
+
:'sumo_logic_endpoint' => :'sumo_logic_endpoint',
|
28
|
+
:'sumo_logic_host' => :'sumo_logic_host',
|
29
|
+
:'sumo_logic_tags' => :'sumo_logic_tags'
|
30
|
+
}
|
31
|
+
end
|
32
|
+
|
33
|
+
# Returns all the JSON keys this model knows about
|
34
|
+
def self.acceptable_attributes
|
35
|
+
attribute_map.values
|
36
|
+
end
|
37
|
+
|
38
|
+
# Attribute type mapping.
|
39
|
+
def self.openapi_types
|
40
|
+
{
|
41
|
+
:'sumo_logic_endpoint' => :'String',
|
42
|
+
:'sumo_logic_host' => :'String',
|
43
|
+
:'sumo_logic_tags' => :'String'
|
44
|
+
}
|
45
|
+
end
|
46
|
+
|
47
|
+
# List of attributes with nullable: true
|
48
|
+
def self.openapi_nullable
|
49
|
+
Set.new([
|
50
|
+
])
|
51
|
+
end
|
52
|
+
|
53
|
+
# Initializes the object
|
54
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
55
|
+
def initialize(attributes = {})
|
56
|
+
if (!attributes.is_a?(Hash))
|
57
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Akeyless::SumologicLogForwardingConfig` initialize method"
|
58
|
+
end
|
59
|
+
|
60
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
61
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
62
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
63
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Akeyless::SumologicLogForwardingConfig`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
64
|
+
end
|
65
|
+
h[k.to_sym] = v
|
66
|
+
}
|
67
|
+
|
68
|
+
if attributes.key?(:'sumo_logic_endpoint')
|
69
|
+
self.sumo_logic_endpoint = attributes[:'sumo_logic_endpoint']
|
70
|
+
end
|
71
|
+
|
72
|
+
if attributes.key?(:'sumo_logic_host')
|
73
|
+
self.sumo_logic_host = attributes[:'sumo_logic_host']
|
74
|
+
end
|
75
|
+
|
76
|
+
if attributes.key?(:'sumo_logic_tags')
|
77
|
+
self.sumo_logic_tags = attributes[:'sumo_logic_tags']
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
82
|
+
# @return Array for valid properties with the reasons
|
83
|
+
def list_invalid_properties
|
84
|
+
invalid_properties = Array.new
|
85
|
+
invalid_properties
|
86
|
+
end
|
87
|
+
|
88
|
+
# Check to see if the all the properties in the model are valid
|
89
|
+
# @return true if the model is valid
|
90
|
+
def valid?
|
91
|
+
true
|
92
|
+
end
|
93
|
+
|
94
|
+
# Checks equality by comparing each attribute.
|
95
|
+
# @param [Object] Object to be compared
|
96
|
+
def ==(o)
|
97
|
+
return true if self.equal?(o)
|
98
|
+
self.class == o.class &&
|
99
|
+
sumo_logic_endpoint == o.sumo_logic_endpoint &&
|
100
|
+
sumo_logic_host == o.sumo_logic_host &&
|
101
|
+
sumo_logic_tags == o.sumo_logic_tags
|
102
|
+
end
|
103
|
+
|
104
|
+
# @see the `==` method
|
105
|
+
# @param [Object] Object to be compared
|
106
|
+
def eql?(o)
|
107
|
+
self == o
|
108
|
+
end
|
109
|
+
|
110
|
+
# Calculates hash code according to all attributes.
|
111
|
+
# @return [Integer] Hash code
|
112
|
+
def hash
|
113
|
+
[sumo_logic_endpoint, sumo_logic_host, sumo_logic_tags].hash
|
114
|
+
end
|
115
|
+
|
116
|
+
# Builds the object from hash
|
117
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
118
|
+
# @return [Object] Returns the model itself
|
119
|
+
def self.build_from_hash(attributes)
|
120
|
+
new.build_from_hash(attributes)
|
121
|
+
end
|
122
|
+
|
123
|
+
# Builds the object from hash
|
124
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
125
|
+
# @return [Object] Returns the model itself
|
126
|
+
def build_from_hash(attributes)
|
127
|
+
return nil unless attributes.is_a?(Hash)
|
128
|
+
attributes = attributes.transform_keys(&:to_sym)
|
129
|
+
self.class.openapi_types.each_pair do |key, type|
|
130
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
131
|
+
self.send("#{key}=", nil)
|
132
|
+
elsif type =~ /\AArray<(.*)>/i
|
133
|
+
# check to ensure the input is an array given that the attribute
|
134
|
+
# is documented as an array but the input is not
|
135
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
136
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
137
|
+
end
|
138
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
139
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
140
|
+
end
|
141
|
+
end
|
142
|
+
|
143
|
+
self
|
144
|
+
end
|
145
|
+
|
146
|
+
# Deserializes the data based on type
|
147
|
+
# @param string type Data type
|
148
|
+
# @param string value Value to be deserialized
|
149
|
+
# @return [Object] Deserialized data
|
150
|
+
def _deserialize(type, value)
|
151
|
+
case type.to_sym
|
152
|
+
when :Time
|
153
|
+
Time.parse(value)
|
154
|
+
when :Date
|
155
|
+
Date.parse(value)
|
156
|
+
when :String
|
157
|
+
value.to_s
|
158
|
+
when :Integer
|
159
|
+
value.to_i
|
160
|
+
when :Float
|
161
|
+
value.to_f
|
162
|
+
when :Boolean
|
163
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
164
|
+
true
|
165
|
+
else
|
166
|
+
false
|
167
|
+
end
|
168
|
+
when :Object
|
169
|
+
# generic object (usually a Hash), return directly
|
170
|
+
value
|
171
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
172
|
+
inner_type = Regexp.last_match[:inner_type]
|
173
|
+
value.map { |v| _deserialize(inner_type, v) }
|
174
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
175
|
+
k_type = Regexp.last_match[:k_type]
|
176
|
+
v_type = Regexp.last_match[:v_type]
|
177
|
+
{}.tap do |hash|
|
178
|
+
value.each do |k, v|
|
179
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
180
|
+
end
|
181
|
+
end
|
182
|
+
else # model
|
183
|
+
# models (e.g. Pet) or oneOf
|
184
|
+
klass = Akeyless.const_get(type)
|
185
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
186
|
+
end
|
187
|
+
end
|
188
|
+
|
189
|
+
# Returns the string representation of the object
|
190
|
+
# @return [String] String presentation of the object
|
191
|
+
def to_s
|
192
|
+
to_hash.to_s
|
193
|
+
end
|
194
|
+
|
195
|
+
# to_body is an alias to to_hash (backward compatibility)
|
196
|
+
# @return [Hash] Returns the object in the form of hash
|
197
|
+
def to_body
|
198
|
+
to_hash
|
199
|
+
end
|
200
|
+
|
201
|
+
# Returns the object in the form of hash
|
202
|
+
# @return [Hash] Returns the object in the form of hash
|
203
|
+
def to_hash
|
204
|
+
hash = {}
|
205
|
+
self.class.attribute_map.each_pair do |attr, param|
|
206
|
+
value = self.send(attr)
|
207
|
+
if value.nil?
|
208
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
209
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
210
|
+
end
|
211
|
+
|
212
|
+
hash[param] = _to_hash(value)
|
213
|
+
end
|
214
|
+
hash
|
215
|
+
end
|
216
|
+
|
217
|
+
# Outputs non-array value in the form of hash
|
218
|
+
# For object, use to_hash. Otherwise, just return the value
|
219
|
+
# @param [Object] value Any valid value
|
220
|
+
# @return [Hash] Returns the value in the form of hash
|
221
|
+
def _to_hash(value)
|
222
|
+
if value.is_a?(Array)
|
223
|
+
value.compact.map { |v| _to_hash(v) }
|
224
|
+
elsif value.is_a?(Hash)
|
225
|
+
{}.tap do |hash|
|
226
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
227
|
+
end
|
228
|
+
elsif value.respond_to? :to_hash
|
229
|
+
value.to_hash
|
230
|
+
else
|
231
|
+
value
|
232
|
+
end
|
233
|
+
end
|
234
|
+
|
235
|
+
end
|
236
|
+
|
237
|
+
end
|
@@ -15,6 +15,8 @@ require 'time'
|
|
15
15
|
|
16
16
|
module Akeyless
|
17
17
|
class SyslogLogForwardingConfig
|
18
|
+
attr_accessor :syslog_enable_tls
|
19
|
+
|
18
20
|
attr_accessor :syslog_formatter
|
19
21
|
|
20
22
|
attr_accessor :syslog_host
|
@@ -23,13 +25,17 @@ module Akeyless
|
|
23
25
|
|
24
26
|
attr_accessor :syslog_target_tag
|
25
27
|
|
28
|
+
attr_accessor :syslog_tls_certificate
|
29
|
+
|
26
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
27
31
|
def self.attribute_map
|
28
32
|
{
|
33
|
+
:'syslog_enable_tls' => :'syslog_enable_tls',
|
29
34
|
:'syslog_formatter' => :'syslog_formatter',
|
30
35
|
:'syslog_host' => :'syslog_host',
|
31
36
|
:'syslog_network' => :'syslog_network',
|
32
|
-
:'syslog_target_tag' => :'syslog_target_tag'
|
37
|
+
:'syslog_target_tag' => :'syslog_target_tag',
|
38
|
+
:'syslog_tls_certificate' => :'syslog_tls_certificate'
|
33
39
|
}
|
34
40
|
end
|
35
41
|
|
@@ -41,10 +47,12 @@ module Akeyless
|
|
41
47
|
# Attribute type mapping.
|
42
48
|
def self.openapi_types
|
43
49
|
{
|
50
|
+
:'syslog_enable_tls' => :'Boolean',
|
44
51
|
:'syslog_formatter' => :'String',
|
45
52
|
:'syslog_host' => :'String',
|
46
53
|
:'syslog_network' => :'String',
|
47
|
-
:'syslog_target_tag' => :'String'
|
54
|
+
:'syslog_target_tag' => :'String',
|
55
|
+
:'syslog_tls_certificate' => :'String'
|
48
56
|
}
|
49
57
|
end
|
50
58
|
|
@@ -69,6 +77,10 @@ module Akeyless
|
|
69
77
|
h[k.to_sym] = v
|
70
78
|
}
|
71
79
|
|
80
|
+
if attributes.key?(:'syslog_enable_tls')
|
81
|
+
self.syslog_enable_tls = attributes[:'syslog_enable_tls']
|
82
|
+
end
|
83
|
+
|
72
84
|
if attributes.key?(:'syslog_formatter')
|
73
85
|
self.syslog_formatter = attributes[:'syslog_formatter']
|
74
86
|
end
|
@@ -84,6 +96,10 @@ module Akeyless
|
|
84
96
|
if attributes.key?(:'syslog_target_tag')
|
85
97
|
self.syslog_target_tag = attributes[:'syslog_target_tag']
|
86
98
|
end
|
99
|
+
|
100
|
+
if attributes.key?(:'syslog_tls_certificate')
|
101
|
+
self.syslog_tls_certificate = attributes[:'syslog_tls_certificate']
|
102
|
+
end
|
87
103
|
end
|
88
104
|
|
89
105
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -104,10 +120,12 @@ module Akeyless
|
|
104
120
|
def ==(o)
|
105
121
|
return true if self.equal?(o)
|
106
122
|
self.class == o.class &&
|
123
|
+
syslog_enable_tls == o.syslog_enable_tls &&
|
107
124
|
syslog_formatter == o.syslog_formatter &&
|
108
125
|
syslog_host == o.syslog_host &&
|
109
126
|
syslog_network == o.syslog_network &&
|
110
|
-
syslog_target_tag == o.syslog_target_tag
|
127
|
+
syslog_target_tag == o.syslog_target_tag &&
|
128
|
+
syslog_tls_certificate == o.syslog_tls_certificate
|
111
129
|
end
|
112
130
|
|
113
131
|
# @see the `==` method
|
@@ -119,7 +137,7 @@ module Akeyless
|
|
119
137
|
# Calculates hash code according to all attributes.
|
120
138
|
# @return [Integer] Hash code
|
121
139
|
def hash
|
122
|
-
[syslog_formatter, syslog_host, syslog_network, syslog_target_tag].hash
|
140
|
+
[syslog_enable_tls, syslog_formatter, syslog_host, syslog_network, syslog_target_tag, syslog_tls_certificate].hash
|
123
141
|
end
|
124
142
|
|
125
143
|
# Builds the object from hash
|
@@ -27,6 +27,9 @@ module Akeyless
|
|
27
27
|
# Country
|
28
28
|
attr_accessor :country
|
29
29
|
|
30
|
+
# Set the account default key based on the DFC key item name. Use \"set-original-akeyless-default-key\" to revert to using the original default key of the account. Empty string will change nothing.
|
31
|
+
attr_accessor :default_key_name
|
32
|
+
|
30
33
|
# Set the default ttl in minutes for sharing item number between 60 and 43200
|
31
34
|
attr_accessor :default_share_link_ttl_minutes
|
32
35
|
|
@@ -91,6 +94,7 @@ module Akeyless
|
|
91
94
|
:'city' => :'city',
|
92
95
|
:'company_name' => :'company-name',
|
93
96
|
:'country' => :'country',
|
97
|
+
:'default_key_name' => :'default-key-name',
|
94
98
|
:'default_share_link_ttl_minutes' => :'default-share-link-ttl-minutes',
|
95
99
|
:'default_versioning' => :'default-versioning',
|
96
100
|
:'dp_enable_classic_key_protection' => :'dp-enable-classic-key-protection',
|
@@ -125,6 +129,7 @@ module Akeyless
|
|
125
129
|
:'city' => :'String',
|
126
130
|
:'company_name' => :'String',
|
127
131
|
:'country' => :'String',
|
132
|
+
:'default_key_name' => :'String',
|
128
133
|
:'default_share_link_ttl_minutes' => :'String',
|
129
134
|
:'default_versioning' => :'String',
|
130
135
|
:'dp_enable_classic_key_protection' => :'String',
|
@@ -184,6 +189,10 @@ module Akeyless
|
|
184
189
|
self.country = attributes[:'country']
|
185
190
|
end
|
186
191
|
|
192
|
+
if attributes.key?(:'default_key_name')
|
193
|
+
self.default_key_name = attributes[:'default_key_name']
|
194
|
+
end
|
195
|
+
|
187
196
|
if attributes.key?(:'default_share_link_ttl_minutes')
|
188
197
|
self.default_share_link_ttl_minutes = attributes[:'default_share_link_ttl_minutes']
|
189
198
|
end
|
@@ -285,6 +294,7 @@ module Akeyless
|
|
285
294
|
city == o.city &&
|
286
295
|
company_name == o.company_name &&
|
287
296
|
country == o.country &&
|
297
|
+
default_key_name == o.default_key_name &&
|
288
298
|
default_share_link_ttl_minutes == o.default_share_link_ttl_minutes &&
|
289
299
|
default_versioning == o.default_versioning &&
|
290
300
|
dp_enable_classic_key_protection == o.dp_enable_classic_key_protection &&
|
@@ -315,7 +325,7 @@ module Akeyless
|
|
315
325
|
# Calculates hash code according to all attributes.
|
316
326
|
# @return [Integer] Hash code
|
317
327
|
def hash
|
318
|
-
[address, city, company_name, country, default_share_link_ttl_minutes, default_versioning, dp_enable_classic_key_protection, item_type, items_deletion_protection, json, jwt_ttl_default, jwt_ttl_max, jwt_ttl_min, max_versions, password_length, phone, postal_code, token, uid_token, use_lower_letters, use_numbers, use_special_characters, use_capital_letters].hash
|
328
|
+
[address, city, company_name, country, default_key_name, default_share_link_ttl_minutes, default_versioning, dp_enable_classic_key_protection, item_type, items_deletion_protection, json, jwt_ttl_default, jwt_ttl_max, jwt_ttl_min, max_versions, password_length, phone, postal_code, token, uid_token, use_lower_letters, use_numbers, use_special_characters, use_capital_letters].hash
|
319
329
|
end
|
320
330
|
|
321
331
|
# Builds the object from hash
|
data/lib/akeyless/version.rb
CHANGED
data/lib/akeyless.rb
CHANGED
@@ -553,6 +553,7 @@ require 'akeyless/models/sra_info'
|
|
553
553
|
require 'akeyless/models/static_creds_auth'
|
554
554
|
require 'akeyless/models/static_creds_auth_output'
|
555
555
|
require 'akeyless/models/static_secret_details_info'
|
556
|
+
require 'akeyless/models/sumologic_log_forwarding_config'
|
556
557
|
require 'akeyless/models/syslog_log_forwarding_config'
|
557
558
|
require 'akeyless/models/system_access_credentials_reply_obj'
|
558
559
|
require 'akeyless/models/system_access_creds_settings'
|
@@ -0,0 +1,46 @@
|
|
1
|
+
=begin
|
2
|
+
#Akeyless API
|
3
|
+
|
4
|
+
#The purpose of this application is to provide access to Akeyless API.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 2.0
|
7
|
+
Contact: support@akeyless.io
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 7.0.0-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for Akeyless::SumologicLogForwardingConfig
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe Akeyless::SumologicLogForwardingConfig do
|
21
|
+
let(:instance) { Akeyless::SumologicLogForwardingConfig.new }
|
22
|
+
|
23
|
+
describe 'test an instance of SumologicLogForwardingConfig' do
|
24
|
+
it 'should create an instance of SumologicLogForwardingConfig' do
|
25
|
+
expect(instance).to be_instance_of(Akeyless::SumologicLogForwardingConfig)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "sumo_logic_endpoint"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
describe 'test attribute "sumo_logic_host"' do
|
35
|
+
it 'should work' do
|
36
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
describe 'test attribute "sumo_logic_tags"' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
end
|