akeyless 5.0.19 → 5.0.21
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 +28 -1
- data/docs/CertificateStore.md +2 -0
- data/docs/CreateUSC.md +2 -0
- data/docs/GCPPayload.md +5 -1
- data/docs/GatewayCreateMigration.md +5 -1
- data/docs/GatewayUpdateMigration.md +5 -1
- data/docs/GatewayUpdateTlsCert.md +2 -0
- data/docs/GeneralConfigPart.md +6 -0
- data/docs/GetKubeExecCreds.md +1 -1
- data/docs/GetPKICertificate.md +1 -1
- data/docs/LetsEncryptTargetDetails.md +38 -0
- data/docs/PoliciesCreateOutput.md +18 -0
- data/docs/PoliciesDelete.md +24 -0
- data/docs/PoliciesGet.md +24 -0
- data/docs/PoliciesGetOutput.md +18 -0
- data/docs/PoliciesList.md +30 -0
- data/docs/PoliciesListOutput.md +18 -0
- data/docs/PolicyCreateKeys.md +34 -0
- data/docs/PolicyOutput.md +34 -0
- data/docs/PolicyUpdateKeys.md +36 -0
- data/docs/RotatedSecretCreateAws.md +4 -2
- data/docs/RotatedSecretCreateAzure.md +4 -2
- data/docs/RotatedSecretCreateCassandra.md +1 -1
- data/docs/RotatedSecretCreateCustom.md +1 -1
- data/docs/RotatedSecretCreateDockerhub.md +1 -1
- data/docs/RotatedSecretCreateGcp.md +4 -2
- data/docs/RotatedSecretCreateHanadb.md +1 -1
- data/docs/RotatedSecretCreateLdap.md +1 -1
- data/docs/RotatedSecretCreateMongodb.md +1 -1
- data/docs/RotatedSecretCreateMssql.md +1 -1
- data/docs/RotatedSecretCreateMysql.md +1 -1
- data/docs/RotatedSecretCreateOpenAI.md +1 -1
- data/docs/RotatedSecretCreateOracledb.md +1 -1
- data/docs/RotatedSecretCreatePostgresql.md +1 -1
- data/docs/RotatedSecretCreateRedis.md +1 -1
- data/docs/RotatedSecretCreateRedshift.md +1 -1
- data/docs/RotatedSecretCreateSnowflake.md +1 -1
- data/docs/RotatedSecretCreateSplunk.md +68 -0
- data/docs/RotatedSecretCreateSsh.md +1 -1
- data/docs/RotatedSecretCreateWindows.md +1 -1
- data/docs/RotatedSecretDetailsInfo.md +2 -0
- data/docs/RotatedSecretUpdateAws.md +3 -1
- data/docs/RotatedSecretUpdateAzure.md +3 -1
- data/docs/RotatedSecretUpdateGcp.md +3 -1
- data/docs/RotatedSecretUpdateSplunk.md +64 -0
- data/docs/SecretInfo.md +2 -0
- data/docs/SplunkPayload.md +30 -0
- data/docs/SplunkTargetDetails.md +34 -0
- data/docs/TargetCreateLetsEncrypt.md +46 -0
- data/docs/TargetCreateSplunk.md +42 -0
- data/docs/TargetTypeDetailsInput.md +4 -0
- data/docs/TargetUpdateLetsEncrypt.md +50 -0
- data/docs/UpdateItem.md +2 -0
- data/docs/UscCreate.md +2 -0
- data/docs/V2Api.md +659 -29
- data/lib/akeyless/api/v2_api.rb +640 -0
- data/lib/akeyless/models/certificate_store.rb +12 -1
- data/lib/akeyless/models/create_usc.rb +11 -1
- data/lib/akeyless/models/gateway_create_migration.rb +24 -4
- data/lib/akeyless/models/gateway_update_migration.rb +24 -4
- data/lib/akeyless/models/gateway_update_tls_cert.rb +13 -1
- data/lib/akeyless/models/gcp_payload.rb +22 -4
- data/lib/akeyless/models/general_config_part.rb +30 -1
- data/lib/akeyless/models/get_kube_exec_creds.rb +1 -1
- data/lib/akeyless/models/get_pki_certificate.rb +1 -1
- data/lib/akeyless/models/lets_encrypt_target_details.rb +315 -0
- data/lib/akeyless/models/policies_create_output.rb +214 -0
- data/lib/akeyless/models/policies_delete.rb +254 -0
- data/lib/akeyless/models/policies_get.rb +254 -0
- data/lib/akeyless/models/policies_get_output.rb +214 -0
- data/lib/akeyless/models/policies_list.rb +283 -0
- data/lib/akeyless/models/policies_list_output.rb +216 -0
- data/lib/akeyless/models/policy_create_keys.rb +312 -0
- data/lib/akeyless/models/policy_output.rb +295 -0
- data/lib/akeyless/models/policy_update_keys.rb +322 -0
- data/lib/akeyless/models/rotated_secret_create_aws.rb +13 -3
- data/lib/akeyless/models/rotated_secret_create_azure.rb +13 -3
- data/lib/akeyless/models/rotated_secret_create_cassandra.rb +1 -1
- data/lib/akeyless/models/rotated_secret_create_custom.rb +1 -1
- data/lib/akeyless/models/rotated_secret_create_dockerhub.rb +1 -1
- data/lib/akeyless/models/rotated_secret_create_gcp.rb +13 -3
- data/lib/akeyless/models/rotated_secret_create_hanadb.rb +1 -1
- data/lib/akeyless/models/rotated_secret_create_ldap.rb +1 -1
- data/lib/akeyless/models/rotated_secret_create_mongodb.rb +1 -1
- data/lib/akeyless/models/rotated_secret_create_mssql.rb +1 -1
- data/lib/akeyless/models/rotated_secret_create_mysql.rb +1 -1
- data/lib/akeyless/models/rotated_secret_create_open_ai.rb +1 -1
- data/lib/akeyless/models/rotated_secret_create_oracledb.rb +1 -1
- data/lib/akeyless/models/rotated_secret_create_postgresql.rb +1 -1
- data/lib/akeyless/models/rotated_secret_create_redis.rb +1 -1
- data/lib/akeyless/models/rotated_secret_create_redshift.rb +1 -1
- data/lib/akeyless/models/rotated_secret_create_snowflake.rb +1 -1
- data/lib/akeyless/models/rotated_secret_create_splunk.rb +497 -0
- data/lib/akeyless/models/rotated_secret_create_ssh.rb +1 -1
- data/lib/akeyless/models/rotated_secret_create_windows.rb +1 -1
- data/lib/akeyless/models/rotated_secret_details_info.rb +10 -1
- data/lib/akeyless/models/rotated_secret_update_aws.rb +12 -2
- data/lib/akeyless/models/rotated_secret_update_azure.rb +12 -2
- data/lib/akeyless/models/rotated_secret_update_gcp.rb +12 -2
- data/lib/akeyless/models/rotated_secret_update_splunk.rb +467 -0
- data/lib/akeyless/models/secret_info.rb +10 -1
- data/lib/akeyless/models/splunk_payload.rb +268 -0
- data/lib/akeyless/models/splunk_target_details.rb +294 -0
- data/lib/akeyless/models/target_create_lets_encrypt.rb +368 -0
- data/lib/akeyless/models/target_create_splunk.rb +354 -0
- data/lib/akeyless/models/target_type_details_input.rb +19 -1
- data/lib/akeyless/models/target_update_lets_encrypt.rb +388 -0
- data/lib/akeyless/models/update_item.rb +11 -1
- data/lib/akeyless/models/usc_create.rb +11 -1
- data/lib/akeyless/version.rb +1 -1
- data/lib/akeyless.rb +17 -0
- data/spec/models/lets_encrypt_target_details_spec.rb +96 -0
- data/spec/models/policies_create_output_spec.rb +36 -0
- data/spec/models/policies_delete_spec.rb +54 -0
- data/spec/models/policies_get_output_spec.rb +36 -0
- data/spec/models/policies_get_spec.rb +54 -0
- data/spec/models/policies_list_output_spec.rb +36 -0
- data/spec/models/policies_list_spec.rb +72 -0
- data/spec/models/policy_create_keys_spec.rb +84 -0
- data/spec/models/policy_output_spec.rb +84 -0
- data/spec/models/policy_update_keys_spec.rb +90 -0
- data/spec/models/rotated_secret_create_splunk_spec.rb +186 -0
- data/spec/models/rotated_secret_update_splunk_spec.rb +174 -0
- data/spec/models/splunk_payload_spec.rb +72 -0
- data/spec/models/splunk_target_details_spec.rb +84 -0
- data/spec/models/target_create_lets_encrypt_spec.rb +120 -0
- data/spec/models/target_create_splunk_spec.rb +108 -0
- data/spec/models/target_update_lets_encrypt_spec.rb +132 -0
- metadata +69 -1
|
@@ -0,0 +1,354 @@
|
|
|
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
|
+
# targetCreateSplunk is a command that creates a new splunk target
|
|
18
|
+
class TargetCreateSplunk
|
|
19
|
+
# Splunk token audience (required when using token authentication for rotation)
|
|
20
|
+
attr_accessor :audience
|
|
21
|
+
|
|
22
|
+
# Description of the object
|
|
23
|
+
attr_accessor :description
|
|
24
|
+
|
|
25
|
+
# Set output format to JSON
|
|
26
|
+
attr_accessor :json
|
|
27
|
+
|
|
28
|
+
# The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used)
|
|
29
|
+
attr_accessor :key
|
|
30
|
+
|
|
31
|
+
# Set the maximum number of versions, limited by the account settings defaults.
|
|
32
|
+
attr_accessor :max_versions
|
|
33
|
+
|
|
34
|
+
# Target name
|
|
35
|
+
attr_accessor :name
|
|
36
|
+
|
|
37
|
+
# Splunk Password (used when authenticating with username/password)
|
|
38
|
+
attr_accessor :password
|
|
39
|
+
|
|
40
|
+
# Splunk Token (used when authenticating with token)
|
|
41
|
+
attr_accessor :token
|
|
42
|
+
|
|
43
|
+
# Splunk Token Owner (required when using token authentication for rotation)
|
|
44
|
+
attr_accessor :token_owner
|
|
45
|
+
|
|
46
|
+
# The universal identity token, Required only for universal_identity authentication
|
|
47
|
+
attr_accessor :uid_token
|
|
48
|
+
|
|
49
|
+
# Splunk server URL
|
|
50
|
+
attr_accessor :url
|
|
51
|
+
|
|
52
|
+
# Use TLS certificate verification when connecting to the Splunk management API
|
|
53
|
+
attr_accessor :use_tls
|
|
54
|
+
|
|
55
|
+
# Splunk Username (used when authenticating with username/password)
|
|
56
|
+
attr_accessor :username
|
|
57
|
+
|
|
58
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
59
|
+
def self.attribute_map
|
|
60
|
+
{
|
|
61
|
+
:'audience' => :'audience',
|
|
62
|
+
:'description' => :'description',
|
|
63
|
+
:'json' => :'json',
|
|
64
|
+
:'key' => :'key',
|
|
65
|
+
:'max_versions' => :'max-versions',
|
|
66
|
+
:'name' => :'name',
|
|
67
|
+
:'password' => :'password',
|
|
68
|
+
:'token' => :'token',
|
|
69
|
+
:'token_owner' => :'token-owner',
|
|
70
|
+
:'uid_token' => :'uid-token',
|
|
71
|
+
:'url' => :'url',
|
|
72
|
+
:'use_tls' => :'use-tls',
|
|
73
|
+
:'username' => :'username'
|
|
74
|
+
}
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# Returns all the JSON keys this model knows about
|
|
78
|
+
def self.acceptable_attributes
|
|
79
|
+
attribute_map.values
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
# Attribute type mapping.
|
|
83
|
+
def self.openapi_types
|
|
84
|
+
{
|
|
85
|
+
:'audience' => :'String',
|
|
86
|
+
:'description' => :'String',
|
|
87
|
+
:'json' => :'Boolean',
|
|
88
|
+
:'key' => :'String',
|
|
89
|
+
:'max_versions' => :'String',
|
|
90
|
+
:'name' => :'String',
|
|
91
|
+
:'password' => :'String',
|
|
92
|
+
:'token' => :'String',
|
|
93
|
+
:'token_owner' => :'String',
|
|
94
|
+
:'uid_token' => :'String',
|
|
95
|
+
:'url' => :'String',
|
|
96
|
+
:'use_tls' => :'Boolean',
|
|
97
|
+
:'username' => :'String'
|
|
98
|
+
}
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# List of attributes with nullable: true
|
|
102
|
+
def self.openapi_nullable
|
|
103
|
+
Set.new([
|
|
104
|
+
])
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
# Initializes the object
|
|
108
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
109
|
+
def initialize(attributes = {})
|
|
110
|
+
if (!attributes.is_a?(Hash))
|
|
111
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Akeyless::TargetCreateSplunk` initialize method"
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
115
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
116
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
117
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Akeyless::TargetCreateSplunk`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
118
|
+
end
|
|
119
|
+
h[k.to_sym] = v
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
if attributes.key?(:'audience')
|
|
123
|
+
self.audience = attributes[:'audience']
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
if attributes.key?(:'description')
|
|
127
|
+
self.description = attributes[:'description']
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
if attributes.key?(:'json')
|
|
131
|
+
self.json = attributes[:'json']
|
|
132
|
+
else
|
|
133
|
+
self.json = false
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
if attributes.key?(:'key')
|
|
137
|
+
self.key = attributes[:'key']
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
if attributes.key?(:'max_versions')
|
|
141
|
+
self.max_versions = attributes[:'max_versions']
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
if attributes.key?(:'name')
|
|
145
|
+
self.name = attributes[:'name']
|
|
146
|
+
else
|
|
147
|
+
self.name = nil
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
if attributes.key?(:'password')
|
|
151
|
+
self.password = attributes[:'password']
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
if attributes.key?(:'token')
|
|
155
|
+
self.token = attributes[:'token']
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
if attributes.key?(:'token_owner')
|
|
159
|
+
self.token_owner = attributes[:'token_owner']
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
if attributes.key?(:'uid_token')
|
|
163
|
+
self.uid_token = attributes[:'uid_token']
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
if attributes.key?(:'url')
|
|
167
|
+
self.url = attributes[:'url']
|
|
168
|
+
else
|
|
169
|
+
self.url = nil
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
if attributes.key?(:'use_tls')
|
|
173
|
+
self.use_tls = attributes[:'use_tls']
|
|
174
|
+
else
|
|
175
|
+
self.use_tls = true
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
if attributes.key?(:'username')
|
|
179
|
+
self.username = attributes[:'username']
|
|
180
|
+
end
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
184
|
+
# @return Array for valid properties with the reasons
|
|
185
|
+
def list_invalid_properties
|
|
186
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
187
|
+
invalid_properties = Array.new
|
|
188
|
+
if @name.nil?
|
|
189
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
if @url.nil?
|
|
193
|
+
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
invalid_properties
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
# Check to see if the all the properties in the model are valid
|
|
200
|
+
# @return true if the model is valid
|
|
201
|
+
def valid?
|
|
202
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
203
|
+
return false if @name.nil?
|
|
204
|
+
return false if @url.nil?
|
|
205
|
+
true
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
# Checks equality by comparing each attribute.
|
|
209
|
+
# @param [Object] Object to be compared
|
|
210
|
+
def ==(o)
|
|
211
|
+
return true if self.equal?(o)
|
|
212
|
+
self.class == o.class &&
|
|
213
|
+
audience == o.audience &&
|
|
214
|
+
description == o.description &&
|
|
215
|
+
json == o.json &&
|
|
216
|
+
key == o.key &&
|
|
217
|
+
max_versions == o.max_versions &&
|
|
218
|
+
name == o.name &&
|
|
219
|
+
password == o.password &&
|
|
220
|
+
token == o.token &&
|
|
221
|
+
token_owner == o.token_owner &&
|
|
222
|
+
uid_token == o.uid_token &&
|
|
223
|
+
url == o.url &&
|
|
224
|
+
use_tls == o.use_tls &&
|
|
225
|
+
username == o.username
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
# @see the `==` method
|
|
229
|
+
# @param [Object] Object to be compared
|
|
230
|
+
def eql?(o)
|
|
231
|
+
self == o
|
|
232
|
+
end
|
|
233
|
+
|
|
234
|
+
# Calculates hash code according to all attributes.
|
|
235
|
+
# @return [Integer] Hash code
|
|
236
|
+
def hash
|
|
237
|
+
[audience, description, json, key, max_versions, name, password, token, token_owner, uid_token, url, use_tls, username].hash
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
# Builds the object from hash
|
|
241
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
242
|
+
# @return [Object] Returns the model itself
|
|
243
|
+
def self.build_from_hash(attributes)
|
|
244
|
+
return nil unless attributes.is_a?(Hash)
|
|
245
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
246
|
+
transformed_hash = {}
|
|
247
|
+
openapi_types.each_pair do |key, type|
|
|
248
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
249
|
+
transformed_hash["#{key}"] = nil
|
|
250
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
251
|
+
# check to ensure the input is an array given that the attribute
|
|
252
|
+
# is documented as an array but the input is not
|
|
253
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
254
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
255
|
+
end
|
|
256
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
257
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
258
|
+
end
|
|
259
|
+
end
|
|
260
|
+
new(transformed_hash)
|
|
261
|
+
end
|
|
262
|
+
|
|
263
|
+
# Deserializes the data based on type
|
|
264
|
+
# @param string type Data type
|
|
265
|
+
# @param string value Value to be deserialized
|
|
266
|
+
# @return [Object] Deserialized data
|
|
267
|
+
def self._deserialize(type, value)
|
|
268
|
+
case type.to_sym
|
|
269
|
+
when :Time
|
|
270
|
+
Time.parse(value)
|
|
271
|
+
when :Date
|
|
272
|
+
Date.parse(value)
|
|
273
|
+
when :String
|
|
274
|
+
value.to_s
|
|
275
|
+
when :Integer
|
|
276
|
+
value.to_i
|
|
277
|
+
when :Float
|
|
278
|
+
value.to_f
|
|
279
|
+
when :Boolean
|
|
280
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
281
|
+
true
|
|
282
|
+
else
|
|
283
|
+
false
|
|
284
|
+
end
|
|
285
|
+
when :Object
|
|
286
|
+
# generic object (usually a Hash), return directly
|
|
287
|
+
value
|
|
288
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
289
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
290
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
291
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
292
|
+
k_type = Regexp.last_match[:k_type]
|
|
293
|
+
v_type = Regexp.last_match[:v_type]
|
|
294
|
+
{}.tap do |hash|
|
|
295
|
+
value.each do |k, v|
|
|
296
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
297
|
+
end
|
|
298
|
+
end
|
|
299
|
+
else # model
|
|
300
|
+
# models (e.g. Pet) or oneOf
|
|
301
|
+
klass = Akeyless.const_get(type)
|
|
302
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
303
|
+
end
|
|
304
|
+
end
|
|
305
|
+
|
|
306
|
+
# Returns the string representation of the object
|
|
307
|
+
# @return [String] String presentation of the object
|
|
308
|
+
def to_s
|
|
309
|
+
to_hash.to_s
|
|
310
|
+
end
|
|
311
|
+
|
|
312
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
313
|
+
# @return [Hash] Returns the object in the form of hash
|
|
314
|
+
def to_body
|
|
315
|
+
to_hash
|
|
316
|
+
end
|
|
317
|
+
|
|
318
|
+
# Returns the object in the form of hash
|
|
319
|
+
# @return [Hash] Returns the object in the form of hash
|
|
320
|
+
def to_hash
|
|
321
|
+
hash = {}
|
|
322
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
323
|
+
value = self.send(attr)
|
|
324
|
+
if value.nil?
|
|
325
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
326
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
327
|
+
end
|
|
328
|
+
|
|
329
|
+
hash[param] = _to_hash(value)
|
|
330
|
+
end
|
|
331
|
+
hash
|
|
332
|
+
end
|
|
333
|
+
|
|
334
|
+
# Outputs non-array value in the form of hash
|
|
335
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
336
|
+
# @param [Object] value Any valid value
|
|
337
|
+
# @return [Hash] Returns the value in the form of hash
|
|
338
|
+
def _to_hash(value)
|
|
339
|
+
if value.is_a?(Array)
|
|
340
|
+
value.compact.map { |v| _to_hash(v) }
|
|
341
|
+
elsif value.is_a?(Hash)
|
|
342
|
+
{}.tap do |hash|
|
|
343
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
344
|
+
end
|
|
345
|
+
elsif value.respond_to? :to_hash
|
|
346
|
+
value.to_hash
|
|
347
|
+
else
|
|
348
|
+
value
|
|
349
|
+
end
|
|
350
|
+
end
|
|
351
|
+
|
|
352
|
+
end
|
|
353
|
+
|
|
354
|
+
end
|
|
@@ -51,6 +51,8 @@ module Akeyless
|
|
|
51
51
|
|
|
52
52
|
attr_accessor :ldap_target_details
|
|
53
53
|
|
|
54
|
+
attr_accessor :letsencrypt_target_details
|
|
55
|
+
|
|
54
56
|
attr_accessor :linked_target_details
|
|
55
57
|
|
|
56
58
|
attr_accessor :mongo_db_target_details
|
|
@@ -67,6 +69,8 @@ module Akeyless
|
|
|
67
69
|
|
|
68
70
|
attr_accessor :sectigo_target_details
|
|
69
71
|
|
|
72
|
+
attr_accessor :splunk_target_details
|
|
73
|
+
|
|
70
74
|
attr_accessor :ssh_target_details
|
|
71
75
|
|
|
72
76
|
attr_accessor :venafi_target_details
|
|
@@ -98,6 +102,7 @@ module Akeyless
|
|
|
98
102
|
:'godaddy_target_details' => :'godaddy_target_details',
|
|
99
103
|
:'hashi_vault_target_details' => :'hashi_vault_target_details',
|
|
100
104
|
:'ldap_target_details' => :'ldap_target_details',
|
|
105
|
+
:'letsencrypt_target_details' => :'letsencrypt_target_details',
|
|
101
106
|
:'linked_target_details' => :'linked_target_details',
|
|
102
107
|
:'mongo_db_target_details' => :'mongo_db_target_details',
|
|
103
108
|
:'native_k8s_target_details' => :'native_k8s_target_details',
|
|
@@ -106,6 +111,7 @@ module Akeyless
|
|
|
106
111
|
:'rabbit_mq_target_details' => :'rabbit_mq_target_details',
|
|
107
112
|
:'salesforce_target_details' => :'salesforce_target_details',
|
|
108
113
|
:'sectigo_target_details' => :'sectigo_target_details',
|
|
114
|
+
:'splunk_target_details' => :'splunk_target_details',
|
|
109
115
|
:'ssh_target_details' => :'ssh_target_details',
|
|
110
116
|
:'venafi_target_details' => :'venafi_target_details',
|
|
111
117
|
:'web_target_details' => :'web_target_details',
|
|
@@ -140,6 +146,7 @@ module Akeyless
|
|
|
140
146
|
:'godaddy_target_details' => :'GodaddyTargetDetails',
|
|
141
147
|
:'hashi_vault_target_details' => :'HashiVaultTargetDetails',
|
|
142
148
|
:'ldap_target_details' => :'LdapTargetDetails',
|
|
149
|
+
:'letsencrypt_target_details' => :'LetsEncryptTargetDetails',
|
|
143
150
|
:'linked_target_details' => :'LinkedTargetDetails',
|
|
144
151
|
:'mongo_db_target_details' => :'MongoDBTargetDetails',
|
|
145
152
|
:'native_k8s_target_details' => :'NativeK8sTargetDetails',
|
|
@@ -148,6 +155,7 @@ module Akeyless
|
|
|
148
155
|
:'rabbit_mq_target_details' => :'RabbitMQTargetDetails',
|
|
149
156
|
:'salesforce_target_details' => :'SalesforceTargetDetails',
|
|
150
157
|
:'sectigo_target_details' => :'SectigoTargetDetails',
|
|
158
|
+
:'splunk_target_details' => :'SplunkTargetDetails',
|
|
151
159
|
:'ssh_target_details' => :'SSHTargetDetails',
|
|
152
160
|
:'venafi_target_details' => :'VenafiTargetDetails',
|
|
153
161
|
:'web_target_details' => :'WebTargetDetails',
|
|
@@ -249,6 +257,10 @@ module Akeyless
|
|
|
249
257
|
self.ldap_target_details = attributes[:'ldap_target_details']
|
|
250
258
|
end
|
|
251
259
|
|
|
260
|
+
if attributes.key?(:'letsencrypt_target_details')
|
|
261
|
+
self.letsencrypt_target_details = attributes[:'letsencrypt_target_details']
|
|
262
|
+
end
|
|
263
|
+
|
|
252
264
|
if attributes.key?(:'linked_target_details')
|
|
253
265
|
self.linked_target_details = attributes[:'linked_target_details']
|
|
254
266
|
end
|
|
@@ -281,6 +293,10 @@ module Akeyless
|
|
|
281
293
|
self.sectigo_target_details = attributes[:'sectigo_target_details']
|
|
282
294
|
end
|
|
283
295
|
|
|
296
|
+
if attributes.key?(:'splunk_target_details')
|
|
297
|
+
self.splunk_target_details = attributes[:'splunk_target_details']
|
|
298
|
+
end
|
|
299
|
+
|
|
284
300
|
if attributes.key?(:'ssh_target_details')
|
|
285
301
|
self.ssh_target_details = attributes[:'ssh_target_details']
|
|
286
302
|
end
|
|
@@ -340,6 +356,7 @@ module Akeyless
|
|
|
340
356
|
godaddy_target_details == o.godaddy_target_details &&
|
|
341
357
|
hashi_vault_target_details == o.hashi_vault_target_details &&
|
|
342
358
|
ldap_target_details == o.ldap_target_details &&
|
|
359
|
+
letsencrypt_target_details == o.letsencrypt_target_details &&
|
|
343
360
|
linked_target_details == o.linked_target_details &&
|
|
344
361
|
mongo_db_target_details == o.mongo_db_target_details &&
|
|
345
362
|
native_k8s_target_details == o.native_k8s_target_details &&
|
|
@@ -348,6 +365,7 @@ module Akeyless
|
|
|
348
365
|
rabbit_mq_target_details == o.rabbit_mq_target_details &&
|
|
349
366
|
salesforce_target_details == o.salesforce_target_details &&
|
|
350
367
|
sectigo_target_details == o.sectigo_target_details &&
|
|
368
|
+
splunk_target_details == o.splunk_target_details &&
|
|
351
369
|
ssh_target_details == o.ssh_target_details &&
|
|
352
370
|
venafi_target_details == o.venafi_target_details &&
|
|
353
371
|
web_target_details == o.web_target_details &&
|
|
@@ -364,7 +382,7 @@ module Akeyless
|
|
|
364
382
|
# Calculates hash code according to all attributes.
|
|
365
383
|
# @return [Integer] Hash code
|
|
366
384
|
def hash
|
|
367
|
-
[artifactory_target_details, aws_target_details, azure_target_details, chef_target_details, custom_target_details, db_target_details, dockerhub_target_details, eks_target_details, gcp_target_details, gemini_target_details, github_target_details, gitlab_target_details, gke_target_details, globalsign_atlas_target_details, globalsign_target_details, godaddy_target_details, hashi_vault_target_details, ldap_target_details, linked_target_details, mongo_db_target_details, native_k8s_target_details, openai_target_details, ping_target_details, rabbit_mq_target_details, salesforce_target_details, sectigo_target_details, ssh_target_details, venafi_target_details, web_target_details, windows_target_details, zerossl_target_details].hash
|
|
385
|
+
[artifactory_target_details, aws_target_details, azure_target_details, chef_target_details, custom_target_details, db_target_details, dockerhub_target_details, eks_target_details, gcp_target_details, gemini_target_details, github_target_details, gitlab_target_details, gke_target_details, globalsign_atlas_target_details, globalsign_target_details, godaddy_target_details, hashi_vault_target_details, ldap_target_details, letsencrypt_target_details, linked_target_details, mongo_db_target_details, native_k8s_target_details, openai_target_details, ping_target_details, rabbit_mq_target_details, salesforce_target_details, sectigo_target_details, splunk_target_details, ssh_target_details, venafi_target_details, web_target_details, windows_target_details, zerossl_target_details].hash
|
|
368
386
|
end
|
|
369
387
|
|
|
370
388
|
# Builds the object from hash
|