akeyless 5.0.6 → 5.0.7
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/README.md +11 -1
- data/docs/AzureLogAnalyticsForwardingConfig.md +2 -0
- data/docs/CertificateTemplateInfo.md +2 -0
- data/docs/CreateClassicKey.md +3 -1
- data/docs/CreateDFCKey.md +3 -1
- data/docs/CreateKey.md +3 -1
- data/docs/GatewayUpdateLogForwardingAzureAnalytics.md +2 -0
- data/docs/GatewayUpdateLogForwardingSplunk.md +2 -0
- data/docs/GeminiTargetDetails.md +22 -0
- data/docs/GenerateCsr.md +2 -0
- data/docs/GwUpdateRemoteAccessSessionLogsAzureAnalytics.md +2 -0
- data/docs/GwUpdateRemoteAccessSessionLogsSplunk.md +2 -0
- data/docs/OpenAITargetDetails.md +26 -0
- data/docs/SplunkLogForwardingConfig.md +2 -0
- data/docs/StaticSecretSync.md +2 -0
- data/docs/TargetCreateGemini.md +36 -0
- data/docs/TargetCreateOpenAI.md +40 -0
- data/docs/TargetTypeDetailsInput.md +4 -0
- data/docs/TargetUpdateGemini.md +42 -0
- data/docs/TargetUpdateOpenAI.md +46 -0
- data/docs/V2Api.md +252 -0
- data/lib/akeyless/api/v2_api.rb +256 -0
- data/lib/akeyless/models/azure_log_analytics_forwarding_config.rb +10 -1
- data/lib/akeyless/models/certificate_template_info.rb +10 -1
- data/lib/akeyless/models/create_classic_key.rb +14 -2
- data/lib/akeyless/models/create_dfc_key.rb +14 -2
- data/lib/akeyless/models/create_key.rb +14 -2
- data/lib/akeyless/models/gateway_update_log_forwarding_azure_analytics.rb +13 -1
- data/lib/akeyless/models/gateway_update_log_forwarding_splunk.rb +13 -1
- data/lib/akeyless/models/gemini_target_details.rb +233 -0
- data/lib/akeyless/models/generate_csr.rb +13 -1
- data/lib/akeyless/models/gw_update_remote_access_session_logs_azure_analytics.rb +13 -1
- data/lib/akeyless/models/gw_update_remote_access_session_logs_splunk.rb +13 -1
- data/lib/akeyless/models/open_ai_target_details.rb +251 -0
- data/lib/akeyless/models/splunk_log_forwarding_config.rb +10 -1
- data/lib/akeyless/models/static_secret_sync.rb +11 -1
- data/lib/akeyless/models/target_create_gemini.rb +317 -0
- data/lib/akeyless/models/target_create_open_ai.rb +337 -0
- data/lib/akeyless/models/target_type_details_input.rb +19 -1
- data/lib/akeyless/models/target_update_gemini.rb +351 -0
- data/lib/akeyless/models/target_update_open_ai.rb +371 -0
- data/lib/akeyless/version.rb +1 -1
- data/lib/akeyless.rb +6 -0
- data/spec/models/gemini_target_details_spec.rb +48 -0
- data/spec/models/open_ai_target_details_spec.rb +60 -0
- data/spec/models/target_create_gemini_spec.rb +90 -0
- data/spec/models/target_create_open_ai_spec.rb +102 -0
- data/spec/models/target_update_gemini_spec.rb +108 -0
- data/spec/models/target_update_open_ai_spec.rb +120 -0
- metadata +25 -1
@@ -19,6 +19,9 @@ module Akeyless
|
|
19
19
|
# Enable Log Forwarding [true/false]
|
20
20
|
attr_accessor :enable
|
21
21
|
|
22
|
+
# Enable batch forwarding [true/false]
|
23
|
+
attr_accessor :enable_batch
|
24
|
+
|
22
25
|
# Enable tls
|
23
26
|
attr_accessor :enable_tls
|
24
27
|
|
@@ -59,6 +62,7 @@ module Akeyless
|
|
59
62
|
def self.attribute_map
|
60
63
|
{
|
61
64
|
:'enable' => :'enable',
|
65
|
+
:'enable_batch' => :'enable-batch',
|
62
66
|
:'enable_tls' => :'enable-tls',
|
63
67
|
:'index' => :'index',
|
64
68
|
:'json' => :'json',
|
@@ -83,6 +87,7 @@ module Akeyless
|
|
83
87
|
def self.openapi_types
|
84
88
|
{
|
85
89
|
:'enable' => :'String',
|
90
|
+
:'enable_batch' => :'String',
|
86
91
|
:'enable_tls' => :'Boolean',
|
87
92
|
:'index' => :'String',
|
88
93
|
:'json' => :'Boolean',
|
@@ -125,6 +130,12 @@ module Akeyless
|
|
125
130
|
self.enable = 'true'
|
126
131
|
end
|
127
132
|
|
133
|
+
if attributes.key?(:'enable_batch')
|
134
|
+
self.enable_batch = attributes[:'enable_batch']
|
135
|
+
else
|
136
|
+
self.enable_batch = 'true'
|
137
|
+
end
|
138
|
+
|
128
139
|
if attributes.key?(:'enable_tls')
|
129
140
|
self.enable_tls = attributes[:'enable_tls']
|
130
141
|
end
|
@@ -207,6 +218,7 @@ module Akeyless
|
|
207
218
|
return true if self.equal?(o)
|
208
219
|
self.class == o.class &&
|
209
220
|
enable == o.enable &&
|
221
|
+
enable_batch == o.enable_batch &&
|
210
222
|
enable_tls == o.enable_tls &&
|
211
223
|
index == o.index &&
|
212
224
|
json == o.json &&
|
@@ -230,7 +242,7 @@ module Akeyless
|
|
230
242
|
# Calculates hash code according to all attributes.
|
231
243
|
# @return [Integer] Hash code
|
232
244
|
def hash
|
233
|
-
[enable, enable_tls, index, json, output_format, pull_interval, source, source_type, splunk_token, splunk_url, tls_certificate, token, uid_token].hash
|
245
|
+
[enable, enable_batch, enable_tls, index, json, output_format, pull_interval, source, source_type, splunk_token, splunk_url, tls_certificate, token, uid_token].hash
|
234
246
|
end
|
235
247
|
|
236
248
|
# Builds the object from hash
|
@@ -0,0 +1,251 @@
|
|
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: 3.0
|
7
|
+
Contact: support@akeyless.io
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.10.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module Akeyless
|
17
|
+
# OpenAITargetDetails defines details related to connecting to an OpenAI provider
|
18
|
+
class OpenAITargetDetails
|
19
|
+
attr_accessor :api_key
|
20
|
+
|
21
|
+
attr_accessor :api_key_id
|
22
|
+
|
23
|
+
attr_accessor :base_url
|
24
|
+
|
25
|
+
attr_accessor :model
|
26
|
+
|
27
|
+
attr_accessor :organization_id
|
28
|
+
|
29
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
30
|
+
def self.attribute_map
|
31
|
+
{
|
32
|
+
:'api_key' => :'api_key',
|
33
|
+
:'api_key_id' => :'api_key_id',
|
34
|
+
:'base_url' => :'base_url',
|
35
|
+
:'model' => :'model',
|
36
|
+
:'organization_id' => :'organization_id'
|
37
|
+
}
|
38
|
+
end
|
39
|
+
|
40
|
+
# Returns all the JSON keys this model knows about
|
41
|
+
def self.acceptable_attributes
|
42
|
+
attribute_map.values
|
43
|
+
end
|
44
|
+
|
45
|
+
# Attribute type mapping.
|
46
|
+
def self.openapi_types
|
47
|
+
{
|
48
|
+
:'api_key' => :'String',
|
49
|
+
:'api_key_id' => :'String',
|
50
|
+
:'base_url' => :'String',
|
51
|
+
:'model' => :'String',
|
52
|
+
:'organization_id' => :'String'
|
53
|
+
}
|
54
|
+
end
|
55
|
+
|
56
|
+
# List of attributes with nullable: true
|
57
|
+
def self.openapi_nullable
|
58
|
+
Set.new([
|
59
|
+
])
|
60
|
+
end
|
61
|
+
|
62
|
+
# Initializes the object
|
63
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
64
|
+
def initialize(attributes = {})
|
65
|
+
if (!attributes.is_a?(Hash))
|
66
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Akeyless::OpenAITargetDetails` initialize method"
|
67
|
+
end
|
68
|
+
|
69
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
70
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
71
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
72
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Akeyless::OpenAITargetDetails`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
73
|
+
end
|
74
|
+
h[k.to_sym] = v
|
75
|
+
}
|
76
|
+
|
77
|
+
if attributes.key?(:'api_key')
|
78
|
+
self.api_key = attributes[:'api_key']
|
79
|
+
end
|
80
|
+
|
81
|
+
if attributes.key?(:'api_key_id')
|
82
|
+
self.api_key_id = attributes[:'api_key_id']
|
83
|
+
end
|
84
|
+
|
85
|
+
if attributes.key?(:'base_url')
|
86
|
+
self.base_url = attributes[:'base_url']
|
87
|
+
end
|
88
|
+
|
89
|
+
if attributes.key?(:'model')
|
90
|
+
self.model = attributes[:'model']
|
91
|
+
end
|
92
|
+
|
93
|
+
if attributes.key?(:'organization_id')
|
94
|
+
self.organization_id = attributes[:'organization_id']
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
98
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
99
|
+
# @return Array for valid properties with the reasons
|
100
|
+
def list_invalid_properties
|
101
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
102
|
+
invalid_properties = Array.new
|
103
|
+
invalid_properties
|
104
|
+
end
|
105
|
+
|
106
|
+
# Check to see if the all the properties in the model are valid
|
107
|
+
# @return true if the model is valid
|
108
|
+
def valid?
|
109
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
110
|
+
true
|
111
|
+
end
|
112
|
+
|
113
|
+
# Checks equality by comparing each attribute.
|
114
|
+
# @param [Object] Object to be compared
|
115
|
+
def ==(o)
|
116
|
+
return true if self.equal?(o)
|
117
|
+
self.class == o.class &&
|
118
|
+
api_key == o.api_key &&
|
119
|
+
api_key_id == o.api_key_id &&
|
120
|
+
base_url == o.base_url &&
|
121
|
+
model == o.model &&
|
122
|
+
organization_id == o.organization_id
|
123
|
+
end
|
124
|
+
|
125
|
+
# @see the `==` method
|
126
|
+
# @param [Object] Object to be compared
|
127
|
+
def eql?(o)
|
128
|
+
self == o
|
129
|
+
end
|
130
|
+
|
131
|
+
# Calculates hash code according to all attributes.
|
132
|
+
# @return [Integer] Hash code
|
133
|
+
def hash
|
134
|
+
[api_key, api_key_id, base_url, model, organization_id].hash
|
135
|
+
end
|
136
|
+
|
137
|
+
# Builds the object from hash
|
138
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
139
|
+
# @return [Object] Returns the model itself
|
140
|
+
def self.build_from_hash(attributes)
|
141
|
+
return nil unless attributes.is_a?(Hash)
|
142
|
+
attributes = attributes.transform_keys(&:to_sym)
|
143
|
+
transformed_hash = {}
|
144
|
+
openapi_types.each_pair do |key, type|
|
145
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
146
|
+
transformed_hash["#{key}"] = nil
|
147
|
+
elsif type =~ /\AArray<(.*)>/i
|
148
|
+
# check to ensure the input is an array given that the attribute
|
149
|
+
# is documented as an array but the input is not
|
150
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
151
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
152
|
+
end
|
153
|
+
elsif !attributes[attribute_map[key]].nil?
|
154
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
155
|
+
end
|
156
|
+
end
|
157
|
+
new(transformed_hash)
|
158
|
+
end
|
159
|
+
|
160
|
+
# Deserializes the data based on type
|
161
|
+
# @param string type Data type
|
162
|
+
# @param string value Value to be deserialized
|
163
|
+
# @return [Object] Deserialized data
|
164
|
+
def self._deserialize(type, value)
|
165
|
+
case type.to_sym
|
166
|
+
when :Time
|
167
|
+
Time.parse(value)
|
168
|
+
when :Date
|
169
|
+
Date.parse(value)
|
170
|
+
when :String
|
171
|
+
value.to_s
|
172
|
+
when :Integer
|
173
|
+
value.to_i
|
174
|
+
when :Float
|
175
|
+
value.to_f
|
176
|
+
when :Boolean
|
177
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
178
|
+
true
|
179
|
+
else
|
180
|
+
false
|
181
|
+
end
|
182
|
+
when :Object
|
183
|
+
# generic object (usually a Hash), return directly
|
184
|
+
value
|
185
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
186
|
+
inner_type = Regexp.last_match[:inner_type]
|
187
|
+
value.map { |v| _deserialize(inner_type, v) }
|
188
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
189
|
+
k_type = Regexp.last_match[:k_type]
|
190
|
+
v_type = Regexp.last_match[:v_type]
|
191
|
+
{}.tap do |hash|
|
192
|
+
value.each do |k, v|
|
193
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
194
|
+
end
|
195
|
+
end
|
196
|
+
else # model
|
197
|
+
# models (e.g. Pet) or oneOf
|
198
|
+
klass = Akeyless.const_get(type)
|
199
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
200
|
+
end
|
201
|
+
end
|
202
|
+
|
203
|
+
# Returns the string representation of the object
|
204
|
+
# @return [String] String presentation of the object
|
205
|
+
def to_s
|
206
|
+
to_hash.to_s
|
207
|
+
end
|
208
|
+
|
209
|
+
# to_body is an alias to to_hash (backward compatibility)
|
210
|
+
# @return [Hash] Returns the object in the form of hash
|
211
|
+
def to_body
|
212
|
+
to_hash
|
213
|
+
end
|
214
|
+
|
215
|
+
# Returns the object in the form of hash
|
216
|
+
# @return [Hash] Returns the object in the form of hash
|
217
|
+
def to_hash
|
218
|
+
hash = {}
|
219
|
+
self.class.attribute_map.each_pair do |attr, param|
|
220
|
+
value = self.send(attr)
|
221
|
+
if value.nil?
|
222
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
223
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
224
|
+
end
|
225
|
+
|
226
|
+
hash[param] = _to_hash(value)
|
227
|
+
end
|
228
|
+
hash
|
229
|
+
end
|
230
|
+
|
231
|
+
# Outputs non-array value in the form of hash
|
232
|
+
# For object, use to_hash. Otherwise, just return the value
|
233
|
+
# @param [Object] value Any valid value
|
234
|
+
# @return [Hash] Returns the value in the form of hash
|
235
|
+
def _to_hash(value)
|
236
|
+
if value.is_a?(Array)
|
237
|
+
value.compact.map { |v| _to_hash(v) }
|
238
|
+
elsif value.is_a?(Hash)
|
239
|
+
{}.tap do |hash|
|
240
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
241
|
+
end
|
242
|
+
elsif value.respond_to? :to_hash
|
243
|
+
value.to_hash
|
244
|
+
else
|
245
|
+
value
|
246
|
+
end
|
247
|
+
end
|
248
|
+
|
249
|
+
end
|
250
|
+
|
251
|
+
end
|
@@ -15,6 +15,8 @@ require 'time'
|
|
15
15
|
|
16
16
|
module Akeyless
|
17
17
|
class SplunkLogForwardingConfig
|
18
|
+
attr_accessor :splunk_enable_batch
|
19
|
+
|
18
20
|
attr_accessor :splunk_enable_tls
|
19
21
|
|
20
22
|
attr_accessor :splunk_index
|
@@ -32,6 +34,7 @@ module Akeyless
|
|
32
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
35
|
def self.attribute_map
|
34
36
|
{
|
37
|
+
:'splunk_enable_batch' => :'splunk_enable_batch',
|
35
38
|
:'splunk_enable_tls' => :'splunk_enable_tls',
|
36
39
|
:'splunk_index' => :'splunk_index',
|
37
40
|
:'splunk_source' => :'splunk_source',
|
@@ -50,6 +53,7 @@ module Akeyless
|
|
50
53
|
# Attribute type mapping.
|
51
54
|
def self.openapi_types
|
52
55
|
{
|
56
|
+
:'splunk_enable_batch' => :'String',
|
53
57
|
:'splunk_enable_tls' => :'Boolean',
|
54
58
|
:'splunk_index' => :'String',
|
55
59
|
:'splunk_source' => :'String',
|
@@ -81,6 +85,10 @@ module Akeyless
|
|
81
85
|
h[k.to_sym] = v
|
82
86
|
}
|
83
87
|
|
88
|
+
if attributes.key?(:'splunk_enable_batch')
|
89
|
+
self.splunk_enable_batch = attributes[:'splunk_enable_batch']
|
90
|
+
end
|
91
|
+
|
84
92
|
if attributes.key?(:'splunk_enable_tls')
|
85
93
|
self.splunk_enable_tls = attributes[:'splunk_enable_tls']
|
86
94
|
end
|
@@ -130,6 +138,7 @@ module Akeyless
|
|
130
138
|
def ==(o)
|
131
139
|
return true if self.equal?(o)
|
132
140
|
self.class == o.class &&
|
141
|
+
splunk_enable_batch == o.splunk_enable_batch &&
|
133
142
|
splunk_enable_tls == o.splunk_enable_tls &&
|
134
143
|
splunk_index == o.splunk_index &&
|
135
144
|
splunk_source == o.splunk_source &&
|
@@ -148,7 +157,7 @@ module Akeyless
|
|
148
157
|
# Calculates hash code according to all attributes.
|
149
158
|
# @return [Integer] Hash code
|
150
159
|
def hash
|
151
|
-
[splunk_enable_tls, splunk_index, splunk_source, splunk_sourcetype, splunk_tls_certificate, splunk_token, splunk_url].hash
|
160
|
+
[splunk_enable_batch, splunk_enable_tls, splunk_index, splunk_source, splunk_sourcetype, splunk_tls_certificate, splunk_token, splunk_url].hash
|
152
161
|
end
|
153
162
|
|
154
163
|
# Builds the object from hash
|
@@ -15,6 +15,9 @@ require 'time'
|
|
15
15
|
|
16
16
|
module Akeyless
|
17
17
|
class StaticSecretSync
|
18
|
+
# JQ expression to filter or transform the secret value
|
19
|
+
attr_accessor :filter_secret_value
|
20
|
+
|
18
21
|
# Set output format to JSON
|
19
22
|
attr_accessor :json
|
20
23
|
|
@@ -39,6 +42,7 @@ module Akeyless
|
|
39
42
|
# Attribute mapping from ruby-style variable name to JSON key.
|
40
43
|
def self.attribute_map
|
41
44
|
{
|
45
|
+
:'filter_secret_value' => :'filter-secret-value',
|
42
46
|
:'json' => :'json',
|
43
47
|
:'name' => :'name',
|
44
48
|
:'namespace' => :'namespace',
|
@@ -57,6 +61,7 @@ module Akeyless
|
|
57
61
|
# Attribute type mapping.
|
58
62
|
def self.openapi_types
|
59
63
|
{
|
64
|
+
:'filter_secret_value' => :'String',
|
60
65
|
:'json' => :'Boolean',
|
61
66
|
:'name' => :'String',
|
62
67
|
:'namespace' => :'String',
|
@@ -88,6 +93,10 @@ module Akeyless
|
|
88
93
|
h[k.to_sym] = v
|
89
94
|
}
|
90
95
|
|
96
|
+
if attributes.key?(:'filter_secret_value')
|
97
|
+
self.filter_secret_value = attributes[:'filter_secret_value']
|
98
|
+
end
|
99
|
+
|
91
100
|
if attributes.key?(:'json')
|
92
101
|
self.json = attributes[:'json']
|
93
102
|
else
|
@@ -146,6 +155,7 @@ module Akeyless
|
|
146
155
|
def ==(o)
|
147
156
|
return true if self.equal?(o)
|
148
157
|
self.class == o.class &&
|
158
|
+
filter_secret_value == o.filter_secret_value &&
|
149
159
|
json == o.json &&
|
150
160
|
name == o.name &&
|
151
161
|
namespace == o.namespace &&
|
@@ -164,7 +174,7 @@ module Akeyless
|
|
164
174
|
# Calculates hash code according to all attributes.
|
165
175
|
# @return [Integer] Hash code
|
166
176
|
def hash
|
167
|
-
[json, name, namespace, remote_secret_name, token, uid_token, usc_name].hash
|
177
|
+
[filter_secret_value, json, name, namespace, remote_secret_name, token, uid_token, usc_name].hash
|
168
178
|
end
|
169
179
|
|
170
180
|
# Builds the object from hash
|