akeyless 5.0.5 → 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/CreateGodaddyTarget.md +2 -0
- data/docs/CreateKey.md +3 -1
- data/docs/DynamicSecretCreateK8s.md +2 -0
- data/docs/DynamicSecretUpdateK8s.md +2 -0
- data/docs/GatewayCreateProducerNativeK8S.md +2 -0
- data/docs/GatewayUpdateLogForwardingAzureAnalytics.md +2 -0
- data/docs/GatewayUpdateLogForwardingSplunk.md +2 -0
- data/docs/GatewayUpdateProducerNativeK8S.md +2 -0
- data/docs/GatewayUpdateRemoteAccessRdpRecordings.md +6 -0
- data/docs/GeminiTargetDetails.md +22 -0
- data/docs/GenerateCsr.md +2 -0
- data/docs/GodaddyTargetDetails.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/TargetCreateGodaddy.md +2 -0
- data/docs/TargetCreateOpenAI.md +40 -0
- data/docs/TargetTypeDetailsInput.md +4 -0
- data/docs/TargetUpdateGemini.md +42 -0
- data/docs/TargetUpdateGodaddy.md +2 -0
- data/docs/TargetUpdateOpenAI.md +46 -0
- data/docs/UpdateGodaddyTarget.md +2 -0
- data/docs/V2Api.md +252 -0
- data/docs/WebBastionRdpRecord.md +6 -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_godaddy_target.rb +11 -1
- data/lib/akeyless/models/create_key.rb +14 -2
- data/lib/akeyless/models/dynamic_secret_create_k8s.rb +11 -1
- data/lib/akeyless/models/dynamic_secret_update_k8s.rb +11 -1
- data/lib/akeyless/models/gateway_create_producer_native_k8_s.rb +11 -1
- 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/gateway_update_producer_native_k8_s.rb +11 -1
- data/lib/akeyless/models/gateway_update_remote_access_rdp_recordings.rb +31 -1
- data/lib/akeyless/models/gemini_target_details.rb +233 -0
- data/lib/akeyless/models/generate_csr.rb +13 -1
- data/lib/akeyless/models/godaddy_target_details.rb +11 -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_godaddy.rb +11 -1
- 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_godaddy.rb +11 -1
- data/lib/akeyless/models/target_update_open_ai.rb +371 -0
- data/lib/akeyless/models/update_godaddy_target.rb +11 -1
- data/lib/akeyless/models/web_bastion_rdp_record.rb +28 -1
- 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 +26 -2
@@ -47,6 +47,9 @@ module Akeyless
|
|
47
47
|
# Generate a new classic key for the csr
|
48
48
|
attr_accessor :generate_key
|
49
49
|
|
50
|
+
# Specifies the hash algorithm used for the encryption key's operations, available options: SHA256, SHA384, SHA512
|
51
|
+
attr_accessor :hash_algorithm
|
52
|
+
|
50
53
|
# A comma-separated list of ip addresses alternative names
|
51
54
|
attr_accessor :ip_addresses
|
52
55
|
|
@@ -91,6 +94,7 @@ module Akeyless
|
|
91
94
|
:'email_addresses' => :'email-addresses',
|
92
95
|
:'export_private_key' => :'export-private-key',
|
93
96
|
:'generate_key' => :'generate-key',
|
97
|
+
:'hash_algorithm' => :'hash-algorithm',
|
94
98
|
:'ip_addresses' => :'ip-addresses',
|
95
99
|
:'json' => :'json',
|
96
100
|
:'key_type' => :'key-type',
|
@@ -123,6 +127,7 @@ module Akeyless
|
|
123
127
|
:'email_addresses' => :'String',
|
124
128
|
:'export_private_key' => :'Boolean',
|
125
129
|
:'generate_key' => :'Boolean',
|
130
|
+
:'hash_algorithm' => :'String',
|
126
131
|
:'ip_addresses' => :'String',
|
127
132
|
:'json' => :'Boolean',
|
128
133
|
:'key_type' => :'String',
|
@@ -205,6 +210,12 @@ module Akeyless
|
|
205
210
|
self.generate_key = attributes[:'generate_key']
|
206
211
|
end
|
207
212
|
|
213
|
+
if attributes.key?(:'hash_algorithm')
|
214
|
+
self.hash_algorithm = attributes[:'hash_algorithm']
|
215
|
+
else
|
216
|
+
self.hash_algorithm = 'SHA256'
|
217
|
+
end
|
218
|
+
|
208
219
|
if attributes.key?(:'ip_addresses')
|
209
220
|
self.ip_addresses = attributes[:'ip_addresses']
|
210
221
|
end
|
@@ -300,6 +311,7 @@ module Akeyless
|
|
300
311
|
email_addresses == o.email_addresses &&
|
301
312
|
export_private_key == o.export_private_key &&
|
302
313
|
generate_key == o.generate_key &&
|
314
|
+
hash_algorithm == o.hash_algorithm &&
|
303
315
|
ip_addresses == o.ip_addresses &&
|
304
316
|
json == o.json &&
|
305
317
|
key_type == o.key_type &&
|
@@ -321,7 +333,7 @@ module Akeyless
|
|
321
333
|
# Calculates hash code according to all attributes.
|
322
334
|
# @return [Integer] Hash code
|
323
335
|
def hash
|
324
|
-
[alg, alt_names, certificate_type, city, common_name, country, critical, dep, email_addresses, export_private_key, generate_key, ip_addresses, json, key_type, name, org, split_level, state, token, uid_token, uri_sans].hash
|
336
|
+
[alg, alt_names, certificate_type, city, common_name, country, critical, dep, email_addresses, export_private_key, generate_key, hash_algorithm, ip_addresses, json, key_type, name, org, split_level, state, token, uid_token, uri_sans].hash
|
325
337
|
end
|
326
338
|
|
327
339
|
# Builds the object from hash
|
@@ -28,6 +28,9 @@ module Akeyless
|
|
28
28
|
|
29
29
|
attr_accessor :secret
|
30
30
|
|
31
|
+
# Optional, used to find the certificate ID in GoDaddy's API
|
32
|
+
attr_accessor :shopper_id
|
33
|
+
|
31
34
|
# A Duration represents the elapsed time between two instants as an int64 nanosecond count. The representation limits the largest representable duration to approximately 290 years.
|
32
35
|
attr_accessor :timeout
|
33
36
|
|
@@ -42,6 +45,7 @@ module Akeyless
|
|
42
45
|
:'imap_user' => :'imap_user',
|
43
46
|
:'key' => :'key',
|
44
47
|
:'secret' => :'secret',
|
48
|
+
:'shopper_id' => :'shopper_id',
|
45
49
|
:'timeout' => :'timeout',
|
46
50
|
:'validation_email' => :'validation_email'
|
47
51
|
}
|
@@ -61,6 +65,7 @@ module Akeyless
|
|
61
65
|
:'imap_user' => :'String',
|
62
66
|
:'key' => :'String',
|
63
67
|
:'secret' => :'String',
|
68
|
+
:'shopper_id' => :'String',
|
64
69
|
:'timeout' => :'Integer',
|
65
70
|
:'validation_email' => :'String'
|
66
71
|
}
|
@@ -111,6 +116,10 @@ module Akeyless
|
|
111
116
|
self.secret = attributes[:'secret']
|
112
117
|
end
|
113
118
|
|
119
|
+
if attributes.key?(:'shopper_id')
|
120
|
+
self.shopper_id = attributes[:'shopper_id']
|
121
|
+
end
|
122
|
+
|
114
123
|
if attributes.key?(:'timeout')
|
115
124
|
self.timeout = attributes[:'timeout']
|
116
125
|
end
|
@@ -146,6 +155,7 @@ module Akeyless
|
|
146
155
|
imap_user == o.imap_user &&
|
147
156
|
key == o.key &&
|
148
157
|
secret == o.secret &&
|
158
|
+
shopper_id == o.shopper_id &&
|
149
159
|
timeout == o.timeout &&
|
150
160
|
validation_email == o.validation_email
|
151
161
|
end
|
@@ -159,7 +169,7 @@ module Akeyless
|
|
159
169
|
# Calculates hash code according to all attributes.
|
160
170
|
# @return [Integer] Hash code
|
161
171
|
def hash
|
162
|
-
[imap_fqdn, imap_password, imap_port, imap_user, key, secret, timeout, validation_email].hash
|
172
|
+
[imap_fqdn, imap_password, imap_port, imap_user, key, secret, shopper_id, timeout, validation_email].hash
|
163
173
|
end
|
164
174
|
|
165
175
|
# Builds the object from hash
|
@@ -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
|
# Set output format to JSON
|
23
26
|
attr_accessor :json
|
24
27
|
|
@@ -44,6 +47,7 @@ module Akeyless
|
|
44
47
|
def self.attribute_map
|
45
48
|
{
|
46
49
|
:'enable' => :'enable',
|
50
|
+
:'enable_batch' => :'enable-batch',
|
47
51
|
:'json' => :'json',
|
48
52
|
:'output_format' => :'output-format',
|
49
53
|
:'pull_interval' => :'pull-interval',
|
@@ -63,6 +67,7 @@ module Akeyless
|
|
63
67
|
def self.openapi_types
|
64
68
|
{
|
65
69
|
:'enable' => :'String',
|
70
|
+
:'enable_batch' => :'String',
|
66
71
|
:'json' => :'Boolean',
|
67
72
|
:'output_format' => :'String',
|
68
73
|
:'pull_interval' => :'String',
|
@@ -100,6 +105,12 @@ module Akeyless
|
|
100
105
|
self.enable = 'true'
|
101
106
|
end
|
102
107
|
|
108
|
+
if attributes.key?(:'enable_batch')
|
109
|
+
self.enable_batch = attributes[:'enable_batch']
|
110
|
+
else
|
111
|
+
self.enable_batch = 'true'
|
112
|
+
end
|
113
|
+
|
103
114
|
if attributes.key?(:'json')
|
104
115
|
self.json = attributes[:'json']
|
105
116
|
else
|
@@ -156,6 +167,7 @@ module Akeyless
|
|
156
167
|
return true if self.equal?(o)
|
157
168
|
self.class == o.class &&
|
158
169
|
enable == o.enable &&
|
170
|
+
enable_batch == o.enable_batch &&
|
159
171
|
json == o.json &&
|
160
172
|
output_format == o.output_format &&
|
161
173
|
pull_interval == o.pull_interval &&
|
@@ -174,7 +186,7 @@ module Akeyless
|
|
174
186
|
# Calculates hash code according to all attributes.
|
175
187
|
# @return [Integer] Hash code
|
176
188
|
def hash
|
177
|
-
[enable, json, output_format, pull_interval, token, uid_token, workspace_id, workspace_key].hash
|
189
|
+
[enable, enable_batch, json, output_format, pull_interval, token, uid_token, workspace_id, workspace_key].hash
|
178
190
|
end
|
179
191
|
|
180
192
|
# Builds the object from hash
|
@@ -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
|