akeyless 2.16.5 → 2.16.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +20 -1
- data/docs/CreateTokenizer.md +42 -0
- data/docs/CreateTokenizerOutput.md +18 -0
- data/docs/Detokenize.md +26 -0
- data/docs/DetokenizeOutput.md +18 -0
- data/docs/DynamicSecretProducerInfo.md +2 -0
- data/docs/EmailTokenizerInfo.md +22 -0
- data/docs/ItemGeneralInfo.md +5 -1
- data/docs/ListTargets.md +2 -0
- data/docs/LogForwardingConfigPart.md +0 -2
- data/docs/Producer.md +2 -0
- data/docs/RegexpTokenizerInfo.md +24 -0
- data/docs/RotateSecret.md +22 -0
- data/docs/RotatedSecretOutput.md +18 -0
- data/docs/SystemAccessCredentialsReplyObj.md +2 -0
- data/docs/Tokenize.md +26 -0
- data/docs/TokenizeOutput.md +20 -0
- data/docs/TokenizerInfo.md +18 -0
- data/docs/UpdateTokenizer.md +46 -0
- data/docs/UpdateTokenizerOutput.md +18 -0
- data/docs/V2Api.md +315 -0
- data/docs/VaultlessTokenizerInfo.md +28 -0
- data/lib/akeyless/api/v2_api.rb +320 -0
- data/lib/akeyless/models/create_tokenizer.rb +358 -0
- data/lib/akeyless/models/create_tokenizer_output.rb +219 -0
- data/lib/akeyless/models/detokenize.rb +271 -0
- data/lib/akeyless/models/detokenize_output.rb +219 -0
- data/lib/akeyless/models/dynamic_secret_producer_info.rb +10 -1
- data/lib/akeyless/models/email_tokenizer_info.rb +241 -0
- data/lib/akeyless/models/item_general_info.rb +22 -4
- data/lib/akeyless/models/list_targets.rb +13 -1
- data/lib/akeyless/models/log_forwarding_config_part.rb +1 -10
- data/lib/akeyless/models/producer.rb +10 -1
- data/lib/akeyless/models/regexp_tokenizer_info.rb +251 -0
- data/lib/akeyless/models/rotate_secret.rb +245 -0
- data/lib/akeyless/models/rotated_secret_output.rb +219 -0
- data/lib/akeyless/models/system_access_credentials_reply_obj.rb +11 -1
- data/lib/akeyless/models/tokenize.rb +271 -0
- data/lib/akeyless/models/tokenize_output.rb +228 -0
- data/lib/akeyless/models/tokenizer_info.rb +219 -0
- data/lib/akeyless/models/update_tokenizer.rb +382 -0
- data/lib/akeyless/models/update_tokenizer_output.rb +219 -0
- data/lib/akeyless/models/vaultless_tokenizer_info.rb +267 -0
- data/lib/akeyless/version.rb +1 -1
- data/lib/akeyless.rb +14 -0
- data/spec/models/create_tokenizer_output_spec.rb +34 -0
- data/spec/models/create_tokenizer_spec.rb +106 -0
- data/spec/models/detokenize_output_spec.rb +34 -0
- data/spec/models/detokenize_spec.rb +58 -0
- data/spec/models/email_tokenizer_info_spec.rb +46 -0
- data/spec/models/regexp_tokenizer_info_spec.rb +52 -0
- data/spec/models/rotate_secret_spec.rb +46 -0
- data/spec/models/rotated_secret_output_spec.rb +34 -0
- data/spec/models/tokenize_output_spec.rb +40 -0
- data/spec/models/tokenize_spec.rb +58 -0
- data/spec/models/tokenizer_info_spec.rb +34 -0
- data/spec/models/update_tokenizer_output_spec.rb +34 -0
- data/spec/models/update_tokenizer_spec.rb +118 -0
- data/spec/models/vaultless_tokenizer_info_spec.rb +64 -0
- metadata +533 -477
@@ -16,6 +16,8 @@ require 'time'
|
|
16
16
|
module Akeyless
|
17
17
|
# DynamicSecretProducerInfo The dynamic secret producer info This parameter relevant and required only in case of create update dynamic secret.
|
18
18
|
class DynamicSecretProducerInfo
|
19
|
+
attr_accessor :failure_message
|
20
|
+
|
19
21
|
attr_accessor :gw_cluster_id
|
20
22
|
|
21
23
|
attr_accessor :producer_last_keep_alive
|
@@ -30,6 +32,7 @@ module Akeyless
|
|
30
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
31
33
|
def self.attribute_map
|
32
34
|
{
|
35
|
+
:'failure_message' => :'failure_message',
|
33
36
|
:'gw_cluster_id' => :'gw_cluster_id',
|
34
37
|
:'producer_last_keep_alive' => :'producer_last_keep_alive',
|
35
38
|
:'producer_metadata' => :'producer_metadata',
|
@@ -46,6 +49,7 @@ module Akeyless
|
|
46
49
|
# Attribute type mapping.
|
47
50
|
def self.openapi_types
|
48
51
|
{
|
52
|
+
:'failure_message' => :'String',
|
49
53
|
:'gw_cluster_id' => :'Integer',
|
50
54
|
:'producer_last_keep_alive' => :'String',
|
51
55
|
:'producer_metadata' => :'String',
|
@@ -75,6 +79,10 @@ module Akeyless
|
|
75
79
|
h[k.to_sym] = v
|
76
80
|
}
|
77
81
|
|
82
|
+
if attributes.key?(:'failure_message')
|
83
|
+
self.failure_message = attributes[:'failure_message']
|
84
|
+
end
|
85
|
+
|
78
86
|
if attributes.key?(:'gw_cluster_id')
|
79
87
|
self.gw_cluster_id = attributes[:'gw_cluster_id']
|
80
88
|
end
|
@@ -114,6 +122,7 @@ module Akeyless
|
|
114
122
|
def ==(o)
|
115
123
|
return true if self.equal?(o)
|
116
124
|
self.class == o.class &&
|
125
|
+
failure_message == o.failure_message &&
|
117
126
|
gw_cluster_id == o.gw_cluster_id &&
|
118
127
|
producer_last_keep_alive == o.producer_last_keep_alive &&
|
119
128
|
producer_metadata == o.producer_metadata &&
|
@@ -130,7 +139,7 @@ module Akeyless
|
|
130
139
|
# Calculates hash code according to all attributes.
|
131
140
|
# @return [Integer] Hash code
|
132
141
|
def hash
|
133
|
-
[gw_cluster_id, producer_last_keep_alive, producer_metadata, producer_status, producer_type].hash
|
142
|
+
[failure_message, gw_cluster_id, producer_last_keep_alive, producer_metadata, producer_status, producer_type].hash
|
134
143
|
end
|
135
144
|
|
136
145
|
# Builds the object from hash
|
@@ -0,0 +1,241 @@
|
|
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: 6.0.0-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module Akeyless
|
17
|
+
# EmailTokenizerInfo represents a tokenizer that specifically tokenizes emails
|
18
|
+
class EmailTokenizerInfo
|
19
|
+
# What length of a random domain suffix to generate used only if FixedDomainSuffix is empty
|
20
|
+
attr_accessor :domain_suffix_length
|
21
|
+
|
22
|
+
# if FixedDomainSuffix isn't empty, it will be appended to the output
|
23
|
+
attr_accessor :fixed_domain_suffix
|
24
|
+
|
25
|
+
# How many letters of the plaintext to keep in the output
|
26
|
+
attr_accessor :keep_prefix_length
|
27
|
+
|
28
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
29
|
+
def self.attribute_map
|
30
|
+
{
|
31
|
+
:'domain_suffix_length' => :'domain_suffix_length',
|
32
|
+
:'fixed_domain_suffix' => :'fixed_domain_suffix',
|
33
|
+
:'keep_prefix_length' => :'keep_prefix_length'
|
34
|
+
}
|
35
|
+
end
|
36
|
+
|
37
|
+
# Returns all the JSON keys this model knows about
|
38
|
+
def self.acceptable_attributes
|
39
|
+
attribute_map.values
|
40
|
+
end
|
41
|
+
|
42
|
+
# Attribute type mapping.
|
43
|
+
def self.openapi_types
|
44
|
+
{
|
45
|
+
:'domain_suffix_length' => :'Integer',
|
46
|
+
:'fixed_domain_suffix' => :'String',
|
47
|
+
:'keep_prefix_length' => :'Integer'
|
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 `Akeyless::EmailTokenizerInfo` initialize method"
|
62
|
+
end
|
63
|
+
|
64
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
65
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
66
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
67
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Akeyless::EmailTokenizerInfo`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
68
|
+
end
|
69
|
+
h[k.to_sym] = v
|
70
|
+
}
|
71
|
+
|
72
|
+
if attributes.key?(:'domain_suffix_length')
|
73
|
+
self.domain_suffix_length = attributes[:'domain_suffix_length']
|
74
|
+
end
|
75
|
+
|
76
|
+
if attributes.key?(:'fixed_domain_suffix')
|
77
|
+
self.fixed_domain_suffix = attributes[:'fixed_domain_suffix']
|
78
|
+
end
|
79
|
+
|
80
|
+
if attributes.key?(:'keep_prefix_length')
|
81
|
+
self.keep_prefix_length = attributes[:'keep_prefix_length']
|
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
|
+
invalid_properties = Array.new
|
89
|
+
invalid_properties
|
90
|
+
end
|
91
|
+
|
92
|
+
# Check to see if the all the properties in the model are valid
|
93
|
+
# @return true if the model is valid
|
94
|
+
def valid?
|
95
|
+
true
|
96
|
+
end
|
97
|
+
|
98
|
+
# Checks equality by comparing each attribute.
|
99
|
+
# @param [Object] Object to be compared
|
100
|
+
def ==(o)
|
101
|
+
return true if self.equal?(o)
|
102
|
+
self.class == o.class &&
|
103
|
+
domain_suffix_length == o.domain_suffix_length &&
|
104
|
+
fixed_domain_suffix == o.fixed_domain_suffix &&
|
105
|
+
keep_prefix_length == o.keep_prefix_length
|
106
|
+
end
|
107
|
+
|
108
|
+
# @see the `==` method
|
109
|
+
# @param [Object] Object to be compared
|
110
|
+
def eql?(o)
|
111
|
+
self == o
|
112
|
+
end
|
113
|
+
|
114
|
+
# Calculates hash code according to all attributes.
|
115
|
+
# @return [Integer] Hash code
|
116
|
+
def hash
|
117
|
+
[domain_suffix_length, fixed_domain_suffix, keep_prefix_length].hash
|
118
|
+
end
|
119
|
+
|
120
|
+
# Builds the object from hash
|
121
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
122
|
+
# @return [Object] Returns the model itself
|
123
|
+
def self.build_from_hash(attributes)
|
124
|
+
new.build_from_hash(attributes)
|
125
|
+
end
|
126
|
+
|
127
|
+
# Builds the object from hash
|
128
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
129
|
+
# @return [Object] Returns the model itself
|
130
|
+
def build_from_hash(attributes)
|
131
|
+
return nil unless attributes.is_a?(Hash)
|
132
|
+
attributes = attributes.transform_keys(&:to_sym)
|
133
|
+
self.class.openapi_types.each_pair do |key, type|
|
134
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
135
|
+
self.send("#{key}=", nil)
|
136
|
+
elsif type =~ /\AArray<(.*)>/i
|
137
|
+
# check to ensure the input is an array given that the attribute
|
138
|
+
# is documented as an array but the input is not
|
139
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
140
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
141
|
+
end
|
142
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
143
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
144
|
+
end
|
145
|
+
end
|
146
|
+
|
147
|
+
self
|
148
|
+
end
|
149
|
+
|
150
|
+
# Deserializes the data based on type
|
151
|
+
# @param string type Data type
|
152
|
+
# @param string value Value to be deserialized
|
153
|
+
# @return [Object] Deserialized data
|
154
|
+
def _deserialize(type, value)
|
155
|
+
case type.to_sym
|
156
|
+
when :Time
|
157
|
+
Time.parse(value)
|
158
|
+
when :Date
|
159
|
+
Date.parse(value)
|
160
|
+
when :String
|
161
|
+
value.to_s
|
162
|
+
when :Integer
|
163
|
+
value.to_i
|
164
|
+
when :Float
|
165
|
+
value.to_f
|
166
|
+
when :Boolean
|
167
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
168
|
+
true
|
169
|
+
else
|
170
|
+
false
|
171
|
+
end
|
172
|
+
when :Object
|
173
|
+
# generic object (usually a Hash), return directly
|
174
|
+
value
|
175
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
176
|
+
inner_type = Regexp.last_match[:inner_type]
|
177
|
+
value.map { |v| _deserialize(inner_type, v) }
|
178
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
179
|
+
k_type = Regexp.last_match[:k_type]
|
180
|
+
v_type = Regexp.last_match[:v_type]
|
181
|
+
{}.tap do |hash|
|
182
|
+
value.each do |k, v|
|
183
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
184
|
+
end
|
185
|
+
end
|
186
|
+
else # model
|
187
|
+
# models (e.g. Pet) or oneOf
|
188
|
+
klass = Akeyless.const_get(type)
|
189
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
190
|
+
end
|
191
|
+
end
|
192
|
+
|
193
|
+
# Returns the string representation of the object
|
194
|
+
# @return [String] String presentation of the object
|
195
|
+
def to_s
|
196
|
+
to_hash.to_s
|
197
|
+
end
|
198
|
+
|
199
|
+
# to_body is an alias to to_hash (backward compatibility)
|
200
|
+
# @return [Hash] Returns the object in the form of hash
|
201
|
+
def to_body
|
202
|
+
to_hash
|
203
|
+
end
|
204
|
+
|
205
|
+
# Returns the object in the form of hash
|
206
|
+
# @return [Hash] Returns the object in the form of hash
|
207
|
+
def to_hash
|
208
|
+
hash = {}
|
209
|
+
self.class.attribute_map.each_pair do |attr, param|
|
210
|
+
value = self.send(attr)
|
211
|
+
if value.nil?
|
212
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
213
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
214
|
+
end
|
215
|
+
|
216
|
+
hash[param] = _to_hash(value)
|
217
|
+
end
|
218
|
+
hash
|
219
|
+
end
|
220
|
+
|
221
|
+
# Outputs non-array value in the form of hash
|
222
|
+
# For object, use to_hash. Otherwise, just return the value
|
223
|
+
# @param [Object] value Any valid value
|
224
|
+
# @return [Hash] Returns the value in the form of hash
|
225
|
+
def _to_hash(value)
|
226
|
+
if value.is_a?(Array)
|
227
|
+
value.compact.map { |v| _to_hash(v) }
|
228
|
+
elsif value.is_a?(Hash)
|
229
|
+
{}.tap do |hash|
|
230
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
231
|
+
end
|
232
|
+
elsif value.respond_to? :to_hash
|
233
|
+
value.to_hash
|
234
|
+
else
|
235
|
+
value
|
236
|
+
end
|
237
|
+
end
|
238
|
+
|
239
|
+
end
|
240
|
+
|
241
|
+
end
|
@@ -19,6 +19,8 @@ module Akeyless
|
|
19
19
|
|
20
20
|
attr_accessor :classic_key_details
|
21
21
|
|
22
|
+
attr_accessor :display_metadata
|
23
|
+
|
22
24
|
attr_accessor :dynamic_secret_producer_details
|
23
25
|
|
24
26
|
attr_accessor :password_policy
|
@@ -29,16 +31,20 @@ module Akeyless
|
|
29
31
|
|
30
32
|
attr_accessor :static_secret_info
|
31
33
|
|
34
|
+
attr_accessor :tokenizer_info
|
35
|
+
|
32
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
37
|
def self.attribute_map
|
34
38
|
{
|
35
39
|
:'cert_issue_details' => :'cert_issue_details',
|
36
40
|
:'classic_key_details' => :'classic_key_details',
|
41
|
+
:'display_metadata' => :'display_metadata',
|
37
42
|
:'dynamic_secret_producer_details' => :'dynamic_secret_producer_details',
|
38
43
|
:'password_policy' => :'password_policy',
|
39
44
|
:'rotated_secret_details' => :'rotated_secret_details',
|
40
45
|
:'secure_remote_access_details' => :'secure_remote_access_details',
|
41
|
-
:'static_secret_info' => :'static_secret_info'
|
46
|
+
:'static_secret_info' => :'static_secret_info',
|
47
|
+
:'tokenizer_info' => :'tokenizer_info'
|
42
48
|
}
|
43
49
|
end
|
44
50
|
|
@@ -52,11 +58,13 @@ module Akeyless
|
|
52
58
|
{
|
53
59
|
:'cert_issue_details' => :'CertificateIssueInfo',
|
54
60
|
:'classic_key_details' => :'ClassicKeyDetailsInfo',
|
61
|
+
:'display_metadata' => :'String',
|
55
62
|
:'dynamic_secret_producer_details' => :'DynamicSecretProducerInfo',
|
56
63
|
:'password_policy' => :'PasswordPolicyInfo',
|
57
64
|
:'rotated_secret_details' => :'RotatedSecretDetailsInfo',
|
58
65
|
:'secure_remote_access_details' => :'SecureRemoteAccess',
|
59
|
-
:'static_secret_info' => :'StaticSecretDetailsInfo'
|
66
|
+
:'static_secret_info' => :'StaticSecretDetailsInfo',
|
67
|
+
:'tokenizer_info' => :'TokenizerInfo'
|
60
68
|
}
|
61
69
|
end
|
62
70
|
|
@@ -89,6 +97,10 @@ module Akeyless
|
|
89
97
|
self.classic_key_details = attributes[:'classic_key_details']
|
90
98
|
end
|
91
99
|
|
100
|
+
if attributes.key?(:'display_metadata')
|
101
|
+
self.display_metadata = attributes[:'display_metadata']
|
102
|
+
end
|
103
|
+
|
92
104
|
if attributes.key?(:'dynamic_secret_producer_details')
|
93
105
|
self.dynamic_secret_producer_details = attributes[:'dynamic_secret_producer_details']
|
94
106
|
end
|
@@ -108,6 +120,10 @@ module Akeyless
|
|
108
120
|
if attributes.key?(:'static_secret_info')
|
109
121
|
self.static_secret_info = attributes[:'static_secret_info']
|
110
122
|
end
|
123
|
+
|
124
|
+
if attributes.key?(:'tokenizer_info')
|
125
|
+
self.tokenizer_info = attributes[:'tokenizer_info']
|
126
|
+
end
|
111
127
|
end
|
112
128
|
|
113
129
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -130,11 +146,13 @@ module Akeyless
|
|
130
146
|
self.class == o.class &&
|
131
147
|
cert_issue_details == o.cert_issue_details &&
|
132
148
|
classic_key_details == o.classic_key_details &&
|
149
|
+
display_metadata == o.display_metadata &&
|
133
150
|
dynamic_secret_producer_details == o.dynamic_secret_producer_details &&
|
134
151
|
password_policy == o.password_policy &&
|
135
152
|
rotated_secret_details == o.rotated_secret_details &&
|
136
153
|
secure_remote_access_details == o.secure_remote_access_details &&
|
137
|
-
static_secret_info == o.static_secret_info
|
154
|
+
static_secret_info == o.static_secret_info &&
|
155
|
+
tokenizer_info == o.tokenizer_info
|
138
156
|
end
|
139
157
|
|
140
158
|
# @see the `==` method
|
@@ -146,7 +164,7 @@ module Akeyless
|
|
146
164
|
# Calculates hash code according to all attributes.
|
147
165
|
# @return [Integer] Hash code
|
148
166
|
def hash
|
149
|
-
[cert_issue_details, classic_key_details, dynamic_secret_producer_details, password_policy, rotated_secret_details, secure_remote_access_details, static_secret_info].hash
|
167
|
+
[cert_issue_details, classic_key_details, display_metadata, dynamic_secret_producer_details, password_policy, rotated_secret_details, secure_remote_access_details, static_secret_info, tokenizer_info].hash
|
150
168
|
end
|
151
169
|
|
152
170
|
# Builds the object from hash
|
@@ -24,6 +24,9 @@ module Akeyless
|
|
24
24
|
# Authentication token (see `/auth` and `/configure`)
|
25
25
|
attr_accessor :token
|
26
26
|
|
27
|
+
# The target types list . In case it is empty, all types of targets will be returned. options: [hanadb cassandra aws ssh gke eks mysql mongodb snowflake mssql redshift artifactory azure rabbitmq k8s venafi gcp oracle dockerhub ldap github chef web salesforce postgres]
|
28
|
+
attr_accessor :type
|
29
|
+
|
27
30
|
# The universal identity token, Required only for universal_identity authentication
|
28
31
|
attr_accessor :uid_token
|
29
32
|
|
@@ -33,6 +36,7 @@ module Akeyless
|
|
33
36
|
:'filter' => :'filter',
|
34
37
|
:'pagination_token' => :'pagination-token',
|
35
38
|
:'token' => :'token',
|
39
|
+
:'type' => :'type',
|
36
40
|
:'uid_token' => :'uid-token'
|
37
41
|
}
|
38
42
|
end
|
@@ -48,6 +52,7 @@ module Akeyless
|
|
48
52
|
:'filter' => :'String',
|
49
53
|
:'pagination_token' => :'String',
|
50
54
|
:'token' => :'String',
|
55
|
+
:'type' => :'Array<String>',
|
51
56
|
:'uid_token' => :'String'
|
52
57
|
}
|
53
58
|
end
|
@@ -85,6 +90,12 @@ module Akeyless
|
|
85
90
|
self.token = attributes[:'token']
|
86
91
|
end
|
87
92
|
|
93
|
+
if attributes.key?(:'type')
|
94
|
+
if (value = attributes[:'type']).is_a?(Array)
|
95
|
+
self.type = value
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
88
99
|
if attributes.key?(:'uid_token')
|
89
100
|
self.uid_token = attributes[:'uid_token']
|
90
101
|
end
|
@@ -111,6 +122,7 @@ module Akeyless
|
|
111
122
|
filter == o.filter &&
|
112
123
|
pagination_token == o.pagination_token &&
|
113
124
|
token == o.token &&
|
125
|
+
type == o.type &&
|
114
126
|
uid_token == o.uid_token
|
115
127
|
end
|
116
128
|
|
@@ -123,7 +135,7 @@ module Akeyless
|
|
123
135
|
# Calculates hash code according to all attributes.
|
124
136
|
# @return [Integer] Hash code
|
125
137
|
def hash
|
126
|
-
[filter, pagination_token, token, uid_token].hash
|
138
|
+
[filter, pagination_token, token, type, uid_token].hash
|
127
139
|
end
|
128
140
|
|
129
141
|
# Builds the object from hash
|
@@ -35,8 +35,6 @@ module Akeyless
|
|
35
35
|
|
36
36
|
attr_accessor :splunk_config
|
37
37
|
|
38
|
-
attr_accessor :std_out
|
39
|
-
|
40
38
|
attr_accessor :syslog_config
|
41
39
|
|
42
40
|
attr_accessor :target_log_type
|
@@ -54,7 +52,6 @@ module Akeyless
|
|
54
52
|
:'logz_io_config' => :'logz_io_config',
|
55
53
|
:'pull_interval_sec' => :'pull_interval_sec',
|
56
54
|
:'splunk_config' => :'splunk_config',
|
57
|
-
:'std_out' => :'std_out',
|
58
55
|
:'syslog_config' => :'syslog_config',
|
59
56
|
:'target_log_type' => :'target_log_type'
|
60
57
|
}
|
@@ -78,7 +75,6 @@ module Akeyless
|
|
78
75
|
:'logz_io_config' => :'LogzIoLogForwardingConfig',
|
79
76
|
:'pull_interval_sec' => :'String',
|
80
77
|
:'splunk_config' => :'SplunkLogForwardingConfig',
|
81
|
-
:'std_out' => :'Boolean',
|
82
78
|
:'syslog_config' => :'SyslogLogForwardingConfig',
|
83
79
|
:'target_log_type' => :'String'
|
84
80
|
}
|
@@ -145,10 +141,6 @@ module Akeyless
|
|
145
141
|
self.splunk_config = attributes[:'splunk_config']
|
146
142
|
end
|
147
143
|
|
148
|
-
if attributes.key?(:'std_out')
|
149
|
-
self.std_out = attributes[:'std_out']
|
150
|
-
end
|
151
|
-
|
152
144
|
if attributes.key?(:'syslog_config')
|
153
145
|
self.syslog_config = attributes[:'syslog_config']
|
154
146
|
end
|
@@ -186,7 +178,6 @@ module Akeyless
|
|
186
178
|
logz_io_config == o.logz_io_config &&
|
187
179
|
pull_interval_sec == o.pull_interval_sec &&
|
188
180
|
splunk_config == o.splunk_config &&
|
189
|
-
std_out == o.std_out &&
|
190
181
|
syslog_config == o.syslog_config &&
|
191
182
|
target_log_type == o.target_log_type
|
192
183
|
end
|
@@ -200,7 +191,7 @@ module Akeyless
|
|
200
191
|
# Calculates hash code according to all attributes.
|
201
192
|
# @return [Integer] Hash code
|
202
193
|
def hash
|
203
|
-
[aws_s3_config, azure_analytics_config, datadog_config, elasticsearch_config, logan_enable, logan_url, logstash_config, logz_io_config, pull_interval_sec, splunk_config,
|
194
|
+
[aws_s3_config, azure_analytics_config, datadog_config, elasticsearch_config, logan_enable, logan_url, logstash_config, logz_io_config, pull_interval_sec, splunk_config, syslog_config, target_log_type].hash
|
204
195
|
end
|
205
196
|
|
206
197
|
# Builds the object from hash
|
@@ -17,6 +17,8 @@ module Akeyless
|
|
17
17
|
class Producer
|
18
18
|
attr_accessor :active
|
19
19
|
|
20
|
+
attr_accessor :failure_message
|
21
|
+
|
20
22
|
attr_accessor :id
|
21
23
|
|
22
24
|
attr_accessor :init
|
@@ -29,6 +31,7 @@ module Akeyless
|
|
29
31
|
def self.attribute_map
|
30
32
|
{
|
31
33
|
:'active' => :'active',
|
34
|
+
:'failure_message' => :'failure_message',
|
32
35
|
:'id' => :'id',
|
33
36
|
:'init' => :'init',
|
34
37
|
:'name' => :'name',
|
@@ -45,6 +48,7 @@ module Akeyless
|
|
45
48
|
def self.openapi_types
|
46
49
|
{
|
47
50
|
:'active' => :'Boolean',
|
51
|
+
:'failure_message' => :'String',
|
48
52
|
:'id' => :'Integer',
|
49
53
|
:'init' => :'Boolean',
|
50
54
|
:'name' => :'String',
|
@@ -77,6 +81,10 @@ module Akeyless
|
|
77
81
|
self.active = attributes[:'active']
|
78
82
|
end
|
79
83
|
|
84
|
+
if attributes.key?(:'failure_message')
|
85
|
+
self.failure_message = attributes[:'failure_message']
|
86
|
+
end
|
87
|
+
|
80
88
|
if attributes.key?(:'id')
|
81
89
|
self.id = attributes[:'id']
|
82
90
|
end
|
@@ -113,6 +121,7 @@ module Akeyless
|
|
113
121
|
return true if self.equal?(o)
|
114
122
|
self.class == o.class &&
|
115
123
|
active == o.active &&
|
124
|
+
failure_message == o.failure_message &&
|
116
125
|
id == o.id &&
|
117
126
|
init == o.init &&
|
118
127
|
name == o.name &&
|
@@ -128,7 +137,7 @@ module Akeyless
|
|
128
137
|
# Calculates hash code according to all attributes.
|
129
138
|
# @return [Integer] Hash code
|
130
139
|
def hash
|
131
|
-
[active, id, init, name, type].hash
|
140
|
+
[active, failure_message, id, init, name, type].hash
|
132
141
|
end
|
133
142
|
|
134
143
|
# Builds the object from hash
|