akeyless 3.2.7 → 3.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +25 -1
- data/docs/CreateESM.md +36 -0
- data/docs/CreateESMOutput.md +20 -0
- data/docs/CreateRotatedSecret.md +1 -1
- data/docs/CreateSSHCertIssuer.md +1 -1
- data/docs/CreateSecret.md +1 -1
- data/docs/CreateWindowsTarget.md +8 -4
- data/docs/DSProducerDetails.md +2 -0
- data/docs/DescribeItem.md +2 -0
- data/docs/EsmCreate.md +34 -0
- data/docs/EsmCreateSecretOutput.md +20 -0
- data/docs/EsmDelete.md +26 -0
- data/docs/EsmGet.md +26 -0
- data/docs/EsmGetSecretOutput.md +20 -0
- data/docs/EsmList.md +24 -0
- data/docs/EsmListSecretsOutput.md +18 -0
- data/docs/EsmUpdate.md +34 -0
- data/docs/EsmUpdateSecretOutput.md +20 -0
- data/docs/GatewayCreateProducerHanaDb.md +1 -1
- data/docs/GatewayCreateProducerMSSQL.md +1 -1
- data/docs/GatewayCreateProducerMongo.md +1 -1
- data/docs/GatewayCreateProducerMySQL.md +1 -1
- data/docs/GatewayCreateProducerOracleDb.md +1 -1
- data/docs/GatewayCreateProducerPostgreSQL.md +1 -1
- data/docs/GatewayCreateProducerRdp.md +1 -1
- data/docs/GatewayCreateProducerRedis.md +48 -0
- data/docs/GatewayCreateProducerRedisOutput.md +18 -0
- data/docs/GatewayCreateProducerRedshift.md +1 -1
- data/docs/GatewayUpdateProducerHanaDb.md +1 -1
- data/docs/GatewayUpdateProducerMSSQL.md +1 -1
- data/docs/GatewayUpdateProducerMongo.md +1 -1
- data/docs/GatewayUpdateProducerMySQL.md +1 -1
- data/docs/GatewayUpdateProducerOracleDb.md +1 -1
- data/docs/GatewayUpdateProducerPostgreSQL.md +1 -1
- data/docs/GatewayUpdateProducerRdp.md +1 -1
- data/docs/GatewayUpdateProducerRedis.md +50 -0
- data/docs/GatewayUpdateProducerRedisOutput.md +18 -0
- data/docs/GatewayUpdateProducerRedshift.md +1 -1
- data/docs/Item.md +2 -0
- data/docs/LastStatusInfo.md +3 -1
- data/docs/SecretInfo.md +36 -0
- data/docs/TargetTypeDetailsInput.md +4 -0
- data/docs/UpdateItem.md +1 -1
- data/docs/UpdateRotatedSecret.md +1 -1
- data/docs/UpdateSSHCertIssuer.md +1 -1
- data/docs/UpdateWindowsTarget.md +8 -4
- data/docs/V2Api.md +503 -2
- data/lib/akeyless/api/v2_api.rb +501 -0
- data/lib/akeyless/models/create_esm.rb +325 -0
- data/lib/akeyless/models/create_esm_output.rb +228 -0
- data/lib/akeyless/models/create_rotated_secret.rb +1 -1
- data/lib/akeyless/models/create_secret.rb +1 -1
- data/lib/akeyless/models/create_ssh_cert_issuer.rb +1 -1
- data/lib/akeyless/models/create_windows_target.rb +40 -3
- data/lib/akeyless/models/describe_item.rb +13 -1
- data/lib/akeyless/models/ds_producer_details.rb +12 -1
- data/lib/akeyless/models/esm_create.rb +320 -0
- data/lib/akeyless/models/esm_create_secret_output.rb +228 -0
- data/lib/akeyless/models/esm_delete.rb +273 -0
- data/lib/akeyless/models/esm_get.rb +273 -0
- data/lib/akeyless/models/esm_get_secret_output.rb +228 -0
- data/lib/akeyless/models/esm_list.rb +258 -0
- data/lib/akeyless/models/esm_list_secrets_output.rb +221 -0
- data/lib/akeyless/models/esm_update.rb +320 -0
- data/lib/akeyless/models/esm_update_secret_output.rb +228 -0
- data/lib/akeyless/models/gateway_create_producer_hana_db.rb +1 -1
- data/lib/akeyless/models/gateway_create_producer_mongo.rb +1 -1
- data/lib/akeyless/models/gateway_create_producer_mssql.rb +1 -1
- data/lib/akeyless/models/gateway_create_producer_my_sql.rb +1 -1
- data/lib/akeyless/models/gateway_create_producer_oracle_db.rb +1 -1
- data/lib/akeyless/models/gateway_create_producer_postgre_sql.rb +1 -1
- data/lib/akeyless/models/gateway_create_producer_rdp.rb +1 -1
- data/lib/akeyless/models/gateway_create_producer_redis.rb +388 -0
- data/lib/akeyless/models/gateway_create_producer_redis_output.rb +219 -0
- data/lib/akeyless/models/gateway_create_producer_redshift.rb +1 -1
- data/lib/akeyless/models/gateway_update_producer_hana_db.rb +1 -1
- data/lib/akeyless/models/gateway_update_producer_mongo.rb +1 -1
- data/lib/akeyless/models/gateway_update_producer_mssql.rb +1 -1
- data/lib/akeyless/models/gateway_update_producer_my_sql.rb +1 -1
- data/lib/akeyless/models/gateway_update_producer_oracle_db.rb +1 -1
- data/lib/akeyless/models/gateway_update_producer_postgre_sql.rb +1 -1
- data/lib/akeyless/models/gateway_update_producer_rdp.rb +1 -1
- data/lib/akeyless/models/gateway_update_producer_redis.rb +398 -0
- data/lib/akeyless/models/gateway_update_producer_redis_output.rb +219 -0
- data/lib/akeyless/models/gateway_update_producer_redshift.rb +1 -1
- data/lib/akeyless/models/item.rb +10 -1
- data/lib/akeyless/models/last_status_info.rb +14 -4
- data/lib/akeyless/models/secret_info.rb +302 -0
- data/lib/akeyless/models/target_type_details_input.rb +19 -1
- data/lib/akeyless/models/update_item.rb +1 -1
- data/lib/akeyless/models/update_rotated_secret.rb +1 -1
- data/lib/akeyless/models/update_ssh_cert_issuer.rb +1 -1
- data/lib/akeyless/models/update_windows_target.rb +40 -3
- data/lib/akeyless/version.rb +1 -1
- data/lib/akeyless.rb +16 -0
- data/spec/models/create_esm_output_spec.rb +40 -0
- data/spec/models/create_esm_spec.rb +88 -0
- data/spec/models/esm_create_secret_output_spec.rb +40 -0
- data/spec/models/esm_create_spec.rb +82 -0
- data/spec/models/esm_delete_spec.rb +58 -0
- data/spec/models/esm_get_secret_output_spec.rb +40 -0
- data/spec/models/esm_get_spec.rb +58 -0
- data/spec/models/esm_list_secrets_output_spec.rb +34 -0
- data/spec/models/esm_list_spec.rb +52 -0
- data/spec/models/esm_update_secret_output_spec.rb +40 -0
- data/spec/models/esm_update_spec.rb +82 -0
- data/spec/models/gateway_create_producer_redis_output_spec.rb +34 -0
- data/spec/models/gateway_create_producer_redis_spec.rb +124 -0
- data/spec/models/gateway_update_producer_redis_output_spec.rb +34 -0
- data/spec/models/gateway_update_producer_redis_spec.rb +130 -0
- data/spec/models/secret_info_spec.rb +88 -0
- metadata +647 -583
@@ -19,11 +19,15 @@ module Akeyless
|
|
19
19
|
|
20
20
|
attr_accessor :producers_errors
|
21
21
|
|
22
|
+
# flag to indicate migrationStatus copied to new table
|
23
|
+
attr_accessor :was_migrations_copied_to_new_table
|
24
|
+
|
22
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
23
26
|
def self.attribute_map
|
24
27
|
{
|
25
28
|
:'migrations_status' => :'migrations_status',
|
26
|
-
:'producers_errors' => :'producers_errors'
|
29
|
+
:'producers_errors' => :'producers_errors',
|
30
|
+
:'was_migrations_copied_to_new_table' => :'was_migrations_copied_to_new_table'
|
27
31
|
}
|
28
32
|
end
|
29
33
|
|
@@ -36,7 +40,8 @@ module Akeyless
|
|
36
40
|
def self.openapi_types
|
37
41
|
{
|
38
42
|
:'migrations_status' => :'MigrationStatus',
|
39
|
-
:'producers_errors' => :'Object'
|
43
|
+
:'producers_errors' => :'Object',
|
44
|
+
:'was_migrations_copied_to_new_table' => :'Boolean'
|
40
45
|
}
|
41
46
|
end
|
42
47
|
|
@@ -68,6 +73,10 @@ module Akeyless
|
|
68
73
|
if attributes.key?(:'producers_errors')
|
69
74
|
self.producers_errors = attributes[:'producers_errors']
|
70
75
|
end
|
76
|
+
|
77
|
+
if attributes.key?(:'was_migrations_copied_to_new_table')
|
78
|
+
self.was_migrations_copied_to_new_table = attributes[:'was_migrations_copied_to_new_table']
|
79
|
+
end
|
71
80
|
end
|
72
81
|
|
73
82
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -89,7 +98,8 @@ module Akeyless
|
|
89
98
|
return true if self.equal?(o)
|
90
99
|
self.class == o.class &&
|
91
100
|
migrations_status == o.migrations_status &&
|
92
|
-
producers_errors == o.producers_errors
|
101
|
+
producers_errors == o.producers_errors &&
|
102
|
+
was_migrations_copied_to_new_table == o.was_migrations_copied_to_new_table
|
93
103
|
end
|
94
104
|
|
95
105
|
# @see the `==` method
|
@@ -101,7 +111,7 @@ module Akeyless
|
|
101
111
|
# Calculates hash code according to all attributes.
|
102
112
|
# @return [Integer] Hash code
|
103
113
|
def hash
|
104
|
-
[migrations_status, producers_errors].hash
|
114
|
+
[migrations_status, producers_errors, was_migrations_copied_to_new_table].hash
|
105
115
|
end
|
106
116
|
|
107
117
|
# Builds the object from hash
|
@@ -0,0 +1,302 @@
|
|
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.5.0-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module Akeyless
|
17
|
+
class SecretInfo
|
18
|
+
attr_accessor :created
|
19
|
+
|
20
|
+
attr_accessor :description
|
21
|
+
|
22
|
+
attr_accessor :expiration
|
23
|
+
|
24
|
+
attr_accessor :last_retrieved
|
25
|
+
|
26
|
+
attr_accessor :location
|
27
|
+
|
28
|
+
attr_accessor :name
|
29
|
+
|
30
|
+
attr_accessor :secret_id
|
31
|
+
|
32
|
+
attr_accessor :status
|
33
|
+
|
34
|
+
attr_accessor :tags
|
35
|
+
|
36
|
+
attr_accessor :type
|
37
|
+
|
38
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
39
|
+
def self.attribute_map
|
40
|
+
{
|
41
|
+
:'created' => :'created',
|
42
|
+
:'description' => :'description',
|
43
|
+
:'expiration' => :'expiration',
|
44
|
+
:'last_retrieved' => :'last_retrieved',
|
45
|
+
:'location' => :'location',
|
46
|
+
:'name' => :'name',
|
47
|
+
:'secret_id' => :'secret_id',
|
48
|
+
:'status' => :'status',
|
49
|
+
:'tags' => :'tags',
|
50
|
+
:'type' => :'type'
|
51
|
+
}
|
52
|
+
end
|
53
|
+
|
54
|
+
# Returns all the JSON keys this model knows about
|
55
|
+
def self.acceptable_attributes
|
56
|
+
attribute_map.values
|
57
|
+
end
|
58
|
+
|
59
|
+
# Attribute type mapping.
|
60
|
+
def self.openapi_types
|
61
|
+
{
|
62
|
+
:'created' => :'Time',
|
63
|
+
:'description' => :'String',
|
64
|
+
:'expiration' => :'Time',
|
65
|
+
:'last_retrieved' => :'Time',
|
66
|
+
:'location' => :'Object',
|
67
|
+
:'name' => :'String',
|
68
|
+
:'secret_id' => :'String',
|
69
|
+
:'status' => :'Boolean',
|
70
|
+
:'tags' => :'Hash<String, String>',
|
71
|
+
:'type' => :'String'
|
72
|
+
}
|
73
|
+
end
|
74
|
+
|
75
|
+
# List of attributes with nullable: true
|
76
|
+
def self.openapi_nullable
|
77
|
+
Set.new([
|
78
|
+
])
|
79
|
+
end
|
80
|
+
|
81
|
+
# Initializes the object
|
82
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
83
|
+
def initialize(attributes = {})
|
84
|
+
if (!attributes.is_a?(Hash))
|
85
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Akeyless::SecretInfo` initialize method"
|
86
|
+
end
|
87
|
+
|
88
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
89
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
90
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
91
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Akeyless::SecretInfo`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
92
|
+
end
|
93
|
+
h[k.to_sym] = v
|
94
|
+
}
|
95
|
+
|
96
|
+
if attributes.key?(:'created')
|
97
|
+
self.created = attributes[:'created']
|
98
|
+
end
|
99
|
+
|
100
|
+
if attributes.key?(:'description')
|
101
|
+
self.description = attributes[:'description']
|
102
|
+
end
|
103
|
+
|
104
|
+
if attributes.key?(:'expiration')
|
105
|
+
self.expiration = attributes[:'expiration']
|
106
|
+
end
|
107
|
+
|
108
|
+
if attributes.key?(:'last_retrieved')
|
109
|
+
self.last_retrieved = attributes[:'last_retrieved']
|
110
|
+
end
|
111
|
+
|
112
|
+
if attributes.key?(:'location')
|
113
|
+
self.location = attributes[:'location']
|
114
|
+
end
|
115
|
+
|
116
|
+
if attributes.key?(:'name')
|
117
|
+
self.name = attributes[:'name']
|
118
|
+
end
|
119
|
+
|
120
|
+
if attributes.key?(:'secret_id')
|
121
|
+
self.secret_id = attributes[:'secret_id']
|
122
|
+
end
|
123
|
+
|
124
|
+
if attributes.key?(:'status')
|
125
|
+
self.status = attributes[:'status']
|
126
|
+
end
|
127
|
+
|
128
|
+
if attributes.key?(:'tags')
|
129
|
+
if (value = attributes[:'tags']).is_a?(Hash)
|
130
|
+
self.tags = value
|
131
|
+
end
|
132
|
+
end
|
133
|
+
|
134
|
+
if attributes.key?(:'type')
|
135
|
+
self.type = attributes[:'type']
|
136
|
+
end
|
137
|
+
end
|
138
|
+
|
139
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
140
|
+
# @return Array for valid properties with the reasons
|
141
|
+
def list_invalid_properties
|
142
|
+
invalid_properties = Array.new
|
143
|
+
invalid_properties
|
144
|
+
end
|
145
|
+
|
146
|
+
# Check to see if the all the properties in the model are valid
|
147
|
+
# @return true if the model is valid
|
148
|
+
def valid?
|
149
|
+
true
|
150
|
+
end
|
151
|
+
|
152
|
+
# Checks equality by comparing each attribute.
|
153
|
+
# @param [Object] Object to be compared
|
154
|
+
def ==(o)
|
155
|
+
return true if self.equal?(o)
|
156
|
+
self.class == o.class &&
|
157
|
+
created == o.created &&
|
158
|
+
description == o.description &&
|
159
|
+
expiration == o.expiration &&
|
160
|
+
last_retrieved == o.last_retrieved &&
|
161
|
+
location == o.location &&
|
162
|
+
name == o.name &&
|
163
|
+
secret_id == o.secret_id &&
|
164
|
+
status == o.status &&
|
165
|
+
tags == o.tags &&
|
166
|
+
type == o.type
|
167
|
+
end
|
168
|
+
|
169
|
+
# @see the `==` method
|
170
|
+
# @param [Object] Object to be compared
|
171
|
+
def eql?(o)
|
172
|
+
self == o
|
173
|
+
end
|
174
|
+
|
175
|
+
# Calculates hash code according to all attributes.
|
176
|
+
# @return [Integer] Hash code
|
177
|
+
def hash
|
178
|
+
[created, description, expiration, last_retrieved, location, name, secret_id, status, tags, type].hash
|
179
|
+
end
|
180
|
+
|
181
|
+
# Builds the object from hash
|
182
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
183
|
+
# @return [Object] Returns the model itself
|
184
|
+
def self.build_from_hash(attributes)
|
185
|
+
new.build_from_hash(attributes)
|
186
|
+
end
|
187
|
+
|
188
|
+
# Builds the object from hash
|
189
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
190
|
+
# @return [Object] Returns the model itself
|
191
|
+
def build_from_hash(attributes)
|
192
|
+
return nil unless attributes.is_a?(Hash)
|
193
|
+
attributes = attributes.transform_keys(&:to_sym)
|
194
|
+
self.class.openapi_types.each_pair do |key, type|
|
195
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
196
|
+
self.send("#{key}=", nil)
|
197
|
+
elsif type =~ /\AArray<(.*)>/i
|
198
|
+
# check to ensure the input is an array given that the attribute
|
199
|
+
# is documented as an array but the input is not
|
200
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
201
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
202
|
+
end
|
203
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
204
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
205
|
+
end
|
206
|
+
end
|
207
|
+
|
208
|
+
self
|
209
|
+
end
|
210
|
+
|
211
|
+
# Deserializes the data based on type
|
212
|
+
# @param string type Data type
|
213
|
+
# @param string value Value to be deserialized
|
214
|
+
# @return [Object] Deserialized data
|
215
|
+
def _deserialize(type, value)
|
216
|
+
case type.to_sym
|
217
|
+
when :Time
|
218
|
+
Time.parse(value)
|
219
|
+
when :Date
|
220
|
+
Date.parse(value)
|
221
|
+
when :String
|
222
|
+
value.to_s
|
223
|
+
when :Integer
|
224
|
+
value.to_i
|
225
|
+
when :Float
|
226
|
+
value.to_f
|
227
|
+
when :Boolean
|
228
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
229
|
+
true
|
230
|
+
else
|
231
|
+
false
|
232
|
+
end
|
233
|
+
when :Object
|
234
|
+
# generic object (usually a Hash), return directly
|
235
|
+
value
|
236
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
237
|
+
inner_type = Regexp.last_match[:inner_type]
|
238
|
+
value.map { |v| _deserialize(inner_type, v) }
|
239
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
240
|
+
k_type = Regexp.last_match[:k_type]
|
241
|
+
v_type = Regexp.last_match[:v_type]
|
242
|
+
{}.tap do |hash|
|
243
|
+
value.each do |k, v|
|
244
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
245
|
+
end
|
246
|
+
end
|
247
|
+
else # model
|
248
|
+
# models (e.g. Pet) or oneOf
|
249
|
+
klass = Akeyless.const_get(type)
|
250
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
251
|
+
end
|
252
|
+
end
|
253
|
+
|
254
|
+
# Returns the string representation of the object
|
255
|
+
# @return [String] String presentation of the object
|
256
|
+
def to_s
|
257
|
+
to_hash.to_s
|
258
|
+
end
|
259
|
+
|
260
|
+
# to_body is an alias to to_hash (backward compatibility)
|
261
|
+
# @return [Hash] Returns the object in the form of hash
|
262
|
+
def to_body
|
263
|
+
to_hash
|
264
|
+
end
|
265
|
+
|
266
|
+
# Returns the object in the form of hash
|
267
|
+
# @return [Hash] Returns the object in the form of hash
|
268
|
+
def to_hash
|
269
|
+
hash = {}
|
270
|
+
self.class.attribute_map.each_pair do |attr, param|
|
271
|
+
value = self.send(attr)
|
272
|
+
if value.nil?
|
273
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
274
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
275
|
+
end
|
276
|
+
|
277
|
+
hash[param] = _to_hash(value)
|
278
|
+
end
|
279
|
+
hash
|
280
|
+
end
|
281
|
+
|
282
|
+
# Outputs non-array value in the form of hash
|
283
|
+
# For object, use to_hash. Otherwise, just return the value
|
284
|
+
# @param [Object] value Any valid value
|
285
|
+
# @return [Hash] Returns the value in the form of hash
|
286
|
+
def _to_hash(value)
|
287
|
+
if value.is_a?(Array)
|
288
|
+
value.compact.map { |v| _to_hash(v) }
|
289
|
+
elsif value.is_a?(Hash)
|
290
|
+
{}.tap do |hash|
|
291
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
292
|
+
end
|
293
|
+
elsif value.respond_to? :to_hash
|
294
|
+
value.to_hash
|
295
|
+
else
|
296
|
+
value
|
297
|
+
end
|
298
|
+
end
|
299
|
+
|
300
|
+
end
|
301
|
+
|
302
|
+
end
|
@@ -56,6 +56,8 @@ module Akeyless
|
|
56
56
|
# CACertName is the name of the certificate in SalesForce tenant
|
57
57
|
attr_accessor :ca_cert_name
|
58
58
|
|
59
|
+
attr_accessor :certificate
|
60
|
+
|
59
61
|
attr_accessor :chef_server_host_name
|
60
62
|
|
61
63
|
attr_accessor :chef_server_key
|
@@ -216,6 +218,8 @@ module Akeyless
|
|
216
218
|
|
217
219
|
attr_accessor :use_gw_cloud_identity
|
218
220
|
|
221
|
+
attr_accessor :use_tls
|
222
|
+
|
219
223
|
attr_accessor :user_name
|
220
224
|
|
221
225
|
attr_accessor :user_password
|
@@ -256,6 +260,7 @@ module Akeyless
|
|
256
260
|
:'azure_tenant_id' => :'azure_tenant_id',
|
257
261
|
:'ca_cert_data' => :'ca_cert_data',
|
258
262
|
:'ca_cert_name' => :'ca_cert_name',
|
263
|
+
:'certificate' => :'certificate',
|
259
264
|
:'chef_server_host_name' => :'chef_server_host_name',
|
260
265
|
:'chef_server_key' => :'chef_server_key',
|
261
266
|
:'chef_server_port' => :'chef_server_port',
|
@@ -331,6 +336,7 @@ module Akeyless
|
|
331
336
|
:'tenant_url' => :'tenant_url',
|
332
337
|
:'url' => :'url',
|
333
338
|
:'use_gw_cloud_identity' => :'use_gw_cloud_identity',
|
339
|
+
:'use_tls' => :'use_tls',
|
334
340
|
:'user_name' => :'user_name',
|
335
341
|
:'user_password' => :'user_password',
|
336
342
|
:'username' => :'username',
|
@@ -370,6 +376,7 @@ module Akeyless
|
|
370
376
|
:'azure_tenant_id' => :'String',
|
371
377
|
:'ca_cert_data' => :'Array<Integer>',
|
372
378
|
:'ca_cert_name' => :'String',
|
379
|
+
:'certificate' => :'String',
|
373
380
|
:'chef_server_host_name' => :'String',
|
374
381
|
:'chef_server_key' => :'String',
|
375
382
|
:'chef_server_port' => :'String',
|
@@ -445,6 +452,7 @@ module Akeyless
|
|
445
452
|
:'tenant_url' => :'String',
|
446
453
|
:'url' => :'String',
|
447
454
|
:'use_gw_cloud_identity' => :'Boolean',
|
455
|
+
:'use_tls' => :'Boolean',
|
448
456
|
:'user_name' => :'String',
|
449
457
|
:'user_password' => :'String',
|
450
458
|
:'username' => :'String',
|
@@ -558,6 +566,10 @@ module Akeyless
|
|
558
566
|
self.ca_cert_name = attributes[:'ca_cert_name']
|
559
567
|
end
|
560
568
|
|
569
|
+
if attributes.key?(:'certificate')
|
570
|
+
self.certificate = attributes[:'certificate']
|
571
|
+
end
|
572
|
+
|
561
573
|
if attributes.key?(:'chef_server_host_name')
|
562
574
|
self.chef_server_host_name = attributes[:'chef_server_host_name']
|
563
575
|
end
|
@@ -860,6 +872,10 @@ module Akeyless
|
|
860
872
|
self.use_gw_cloud_identity = attributes[:'use_gw_cloud_identity']
|
861
873
|
end
|
862
874
|
|
875
|
+
if attributes.key?(:'use_tls')
|
876
|
+
self.use_tls = attributes[:'use_tls']
|
877
|
+
end
|
878
|
+
|
863
879
|
if attributes.key?(:'user_name')
|
864
880
|
self.user_name = attributes[:'user_name']
|
865
881
|
end
|
@@ -934,6 +950,7 @@ module Akeyless
|
|
934
950
|
azure_tenant_id == o.azure_tenant_id &&
|
935
951
|
ca_cert_data == o.ca_cert_data &&
|
936
952
|
ca_cert_name == o.ca_cert_name &&
|
953
|
+
certificate == o.certificate &&
|
937
954
|
chef_server_host_name == o.chef_server_host_name &&
|
938
955
|
chef_server_key == o.chef_server_key &&
|
939
956
|
chef_server_port == o.chef_server_port &&
|
@@ -1009,6 +1026,7 @@ module Akeyless
|
|
1009
1026
|
tenant_url == o.tenant_url &&
|
1010
1027
|
url == o.url &&
|
1011
1028
|
use_gw_cloud_identity == o.use_gw_cloud_identity &&
|
1029
|
+
use_tls == o.use_tls &&
|
1012
1030
|
user_name == o.user_name &&
|
1013
1031
|
user_password == o.user_password &&
|
1014
1032
|
username == o.username &&
|
@@ -1029,7 +1047,7 @@ module Akeyless
|
|
1029
1047
|
# Calculates hash code according to all attributes.
|
1030
1048
|
# @return [Integer] Hash code
|
1031
1049
|
def hash
|
1032
|
-
[administrative_port, app_private_key, artifactory_admin_apikey, artifactory_admin_username, artifactory_base_url, auth_flow, authorization_port, aws_access_key_id, aws_region, aws_secret_access_key, aws_session_token, azure_client_id, azure_client_secret, azure_resource_group_name, azure_resource_name, azure_subscription_id, azure_tenant_id, ca_cert_data, ca_cert_name, chef_server_host_name, chef_server_key, chef_server_port, chef_server_url, chef_server_username, chef_skip_ssl, client_id, client_secret, db_host_name, db_name, db_port, db_private_key, db_private_key_passphrase, db_pwd, db_server_certificates, db_server_name, db_user_name, eks_access_key_id, eks_cluster_ca_certificate, eks_cluster_endpoint, eks_cluster_name, eks_region, eks_secret_access_key, gcp_service_account_email, gcp_service_account_key, gcp_service_account_key_base64, github_app_id, github_app_private_key, github_base_url, gke_cluster_ca_certificate, gke_cluster_endpoint, gke_cluster_name, gke_service_account_key, gke_service_account_name, host, hostname, hosts, implementation_type, k8s_bearer_token, k8s_cluster_ca_certificate, k8s_cluster_endpoint, ldap_audience, ldap_bind_dn, ldap_bind_password, ldap_certificate, ldap_token_expiration, ldap_url, mongodb_atlas_api_private_key, mongodb_atlas_api_public_key, mongodb_atlas_project_id, mongodb_db_name, mongodb_default_auth_db, mongodb_host_port, mongodb_is_atlas, mongodb_password, mongodb_uri_connection, mongodb_uri_options, mongodb_username, password, payload, ping_url, port, private_key, private_key_password, privileged_user, rabbitmq_server_password, rabbitmq_server_uri, rabbitmq_server_user, security_token, sf_account, ssl_connection_certificate, ssl_connection_mode, tenant_url, url, use_gw_cloud_identity, user_name, user_password, username, venafi_api_key, venafi_base_url, venafi_tpp_password, venafi_tpp_username, venafi_use_tpp, venafi_zone].hash
|
1050
|
+
[administrative_port, app_private_key, artifactory_admin_apikey, artifactory_admin_username, artifactory_base_url, auth_flow, authorization_port, aws_access_key_id, aws_region, aws_secret_access_key, aws_session_token, azure_client_id, azure_client_secret, azure_resource_group_name, azure_resource_name, azure_subscription_id, azure_tenant_id, ca_cert_data, ca_cert_name, certificate, chef_server_host_name, chef_server_key, chef_server_port, chef_server_url, chef_server_username, chef_skip_ssl, client_id, client_secret, db_host_name, db_name, db_port, db_private_key, db_private_key_passphrase, db_pwd, db_server_certificates, db_server_name, db_user_name, eks_access_key_id, eks_cluster_ca_certificate, eks_cluster_endpoint, eks_cluster_name, eks_region, eks_secret_access_key, gcp_service_account_email, gcp_service_account_key, gcp_service_account_key_base64, github_app_id, github_app_private_key, github_base_url, gke_cluster_ca_certificate, gke_cluster_endpoint, gke_cluster_name, gke_service_account_key, gke_service_account_name, host, hostname, hosts, implementation_type, k8s_bearer_token, k8s_cluster_ca_certificate, k8s_cluster_endpoint, ldap_audience, ldap_bind_dn, ldap_bind_password, ldap_certificate, ldap_token_expiration, ldap_url, mongodb_atlas_api_private_key, mongodb_atlas_api_public_key, mongodb_atlas_project_id, mongodb_db_name, mongodb_default_auth_db, mongodb_host_port, mongodb_is_atlas, mongodb_password, mongodb_uri_connection, mongodb_uri_options, mongodb_username, password, payload, ping_url, port, private_key, private_key_password, privileged_user, rabbitmq_server_password, rabbitmq_server_uri, rabbitmq_server_user, security_token, sf_account, ssl_connection_certificate, ssl_connection_mode, tenant_url, url, use_gw_cloud_identity, use_tls, user_name, user_password, username, venafi_api_key, venafi_base_url, venafi_tpp_password, venafi_tpp_username, venafi_use_tpp, venafi_zone].hash
|
1033
1051
|
end
|
1034
1052
|
|
1035
1053
|
# Builds the object from hash
|
@@ -90,7 +90,7 @@ module Akeyless
|
|
90
90
|
# Enable/Disable secure remote access [true/false]
|
91
91
|
attr_accessor :secure_access_enable
|
92
92
|
|
93
|
-
# Target servers for connections
|
93
|
+
# Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers)
|
94
94
|
attr_accessor :secure_access_host
|
95
95
|
|
96
96
|
# Required when the Dynamic Secret is used for a domain user (relevant only for RDP Dynamic-Secret)
|
@@ -106,7 +106,7 @@ module Akeyless
|
|
106
106
|
# Enable/Disable secure remote access [true/false]
|
107
107
|
attr_accessor :secure_access_enable
|
108
108
|
|
109
|
-
# Target servers for connections
|
109
|
+
# Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers)
|
110
110
|
attr_accessor :secure_access_host
|
111
111
|
|
112
112
|
# Required when the Dynamic Secret is used for a domain user (relevant only for RDP Dynamic-Secret)
|
@@ -54,7 +54,7 @@ module Akeyless
|
|
54
54
|
# Enable/Disable secure remote access [true/false]
|
55
55
|
attr_accessor :secure_access_enable
|
56
56
|
|
57
|
-
# Target servers for connections
|
57
|
+
# Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers)
|
58
58
|
attr_accessor :secure_access_host
|
59
59
|
|
60
60
|
# SSH username to connect to target server, must be in 'Allowed Users' list
|
@@ -15,6 +15,9 @@ require 'time'
|
|
15
15
|
|
16
16
|
module Akeyless
|
17
17
|
class UpdateWindowsTarget
|
18
|
+
# SSL CA certificate in base64 encoding generated from a trusted Certificate Authority (CA)
|
19
|
+
attr_accessor :certificate
|
20
|
+
|
18
21
|
# Description of the object
|
19
22
|
attr_accessor :description
|
20
23
|
|
@@ -36,10 +39,10 @@ module Akeyless
|
|
36
39
|
# New target name
|
37
40
|
attr_accessor :new_name
|
38
41
|
|
39
|
-
#
|
42
|
+
# Privileged user password
|
40
43
|
attr_accessor :password
|
41
44
|
|
42
|
-
# Server WinRM
|
45
|
+
# Server WinRM port
|
43
46
|
attr_accessor :port
|
44
47
|
|
45
48
|
# Authentication token (see `/auth` and `/configure`)
|
@@ -51,12 +54,16 @@ module Akeyless
|
|
51
54
|
# Deprecated
|
52
55
|
attr_accessor :update_version
|
53
56
|
|
57
|
+
# Enable/Disable TLS for WinRM over HTTPS [true/false]
|
58
|
+
attr_accessor :use_tls
|
59
|
+
|
54
60
|
# Privileged username
|
55
61
|
attr_accessor :username
|
56
62
|
|
57
63
|
# Attribute mapping from ruby-style variable name to JSON key.
|
58
64
|
def self.attribute_map
|
59
65
|
{
|
66
|
+
:'certificate' => :'certificate',
|
60
67
|
:'description' => :'description',
|
61
68
|
:'hostname' => :'hostname',
|
62
69
|
:'json' => :'json',
|
@@ -69,6 +76,7 @@ module Akeyless
|
|
69
76
|
:'token' => :'token',
|
70
77
|
:'uid_token' => :'uid-token',
|
71
78
|
:'update_version' => :'update-version',
|
79
|
+
:'use_tls' => :'use-tls',
|
72
80
|
:'username' => :'username'
|
73
81
|
}
|
74
82
|
end
|
@@ -81,6 +89,7 @@ module Akeyless
|
|
81
89
|
# Attribute type mapping.
|
82
90
|
def self.openapi_types
|
83
91
|
{
|
92
|
+
:'certificate' => :'String',
|
84
93
|
:'description' => :'String',
|
85
94
|
:'hostname' => :'String',
|
86
95
|
:'json' => :'Boolean',
|
@@ -93,6 +102,7 @@ module Akeyless
|
|
93
102
|
:'token' => :'String',
|
94
103
|
:'uid_token' => :'String',
|
95
104
|
:'update_version' => :'Boolean',
|
105
|
+
:'use_tls' => :'String',
|
96
106
|
:'username' => :'String'
|
97
107
|
}
|
98
108
|
end
|
@@ -118,6 +128,10 @@ module Akeyless
|
|
118
128
|
h[k.to_sym] = v
|
119
129
|
}
|
120
130
|
|
131
|
+
if attributes.key?(:'certificate')
|
132
|
+
self.certificate = attributes[:'certificate']
|
133
|
+
end
|
134
|
+
|
121
135
|
if attributes.key?(:'description')
|
122
136
|
self.description = attributes[:'description']
|
123
137
|
end
|
@@ -170,6 +184,12 @@ module Akeyless
|
|
170
184
|
self.update_version = attributes[:'update_version']
|
171
185
|
end
|
172
186
|
|
187
|
+
if attributes.key?(:'use_tls')
|
188
|
+
self.use_tls = attributes[:'use_tls']
|
189
|
+
else
|
190
|
+
self.use_tls = 'true'
|
191
|
+
end
|
192
|
+
|
173
193
|
if attributes.key?(:'username')
|
174
194
|
self.username = attributes[:'username']
|
175
195
|
end
|
@@ -179,17 +199,32 @@ module Akeyless
|
|
179
199
|
# @return Array for valid properties with the reasons
|
180
200
|
def list_invalid_properties
|
181
201
|
invalid_properties = Array.new
|
202
|
+
if @hostname.nil?
|
203
|
+
invalid_properties.push('invalid value for "hostname", hostname cannot be nil.')
|
204
|
+
end
|
205
|
+
|
182
206
|
if @name.nil?
|
183
207
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
184
208
|
end
|
185
209
|
|
210
|
+
if @password.nil?
|
211
|
+
invalid_properties.push('invalid value for "password", password cannot be nil.')
|
212
|
+
end
|
213
|
+
|
214
|
+
if @username.nil?
|
215
|
+
invalid_properties.push('invalid value for "username", username cannot be nil.')
|
216
|
+
end
|
217
|
+
|
186
218
|
invalid_properties
|
187
219
|
end
|
188
220
|
|
189
221
|
# Check to see if the all the properties in the model are valid
|
190
222
|
# @return true if the model is valid
|
191
223
|
def valid?
|
224
|
+
return false if @hostname.nil?
|
192
225
|
return false if @name.nil?
|
226
|
+
return false if @password.nil?
|
227
|
+
return false if @username.nil?
|
193
228
|
true
|
194
229
|
end
|
195
230
|
|
@@ -198,6 +233,7 @@ module Akeyless
|
|
198
233
|
def ==(o)
|
199
234
|
return true if self.equal?(o)
|
200
235
|
self.class == o.class &&
|
236
|
+
certificate == o.certificate &&
|
201
237
|
description == o.description &&
|
202
238
|
hostname == o.hostname &&
|
203
239
|
json == o.json &&
|
@@ -210,6 +246,7 @@ module Akeyless
|
|
210
246
|
token == o.token &&
|
211
247
|
uid_token == o.uid_token &&
|
212
248
|
update_version == o.update_version &&
|
249
|
+
use_tls == o.use_tls &&
|
213
250
|
username == o.username
|
214
251
|
end
|
215
252
|
|
@@ -222,7 +259,7 @@ module Akeyless
|
|
222
259
|
# Calculates hash code according to all attributes.
|
223
260
|
# @return [Integer] Hash code
|
224
261
|
def hash
|
225
|
-
[description, hostname, json, keep_prev_version, key, name, new_name, password, port, token, uid_token, update_version, username].hash
|
262
|
+
[certificate, description, hostname, json, keep_prev_version, key, name, new_name, password, port, token, uid_token, update_version, use_tls, username].hash
|
226
263
|
end
|
227
264
|
|
228
265
|
# Builds the object from hash
|
data/lib/akeyless/version.rb
CHANGED
data/lib/akeyless.rb
CHANGED
@@ -103,6 +103,8 @@ require 'akeyless/models/create_dockerhub_target_output'
|
|
103
103
|
require 'akeyless/models/create_dynamic_secret'
|
104
104
|
require 'akeyless/models/create_eks_target'
|
105
105
|
require 'akeyless/models/create_eks_target_output'
|
106
|
+
require 'akeyless/models/create_esm'
|
107
|
+
require 'akeyless/models/create_esm_output'
|
106
108
|
require 'akeyless/models/create_event_forwarder'
|
107
109
|
require 'akeyless/models/create_event_forwarder_output'
|
108
110
|
require 'akeyless/models/create_gke_target'
|
@@ -200,6 +202,15 @@ require 'akeyless/models/encrypt_gpg_output'
|
|
200
202
|
require 'akeyless/models/encrypt_output'
|
201
203
|
require 'akeyless/models/encrypt_with_classic_key'
|
202
204
|
require 'akeyless/models/encrypt_with_classic_key_output'
|
205
|
+
require 'akeyless/models/esm_create'
|
206
|
+
require 'akeyless/models/esm_create_secret_output'
|
207
|
+
require 'akeyless/models/esm_delete'
|
208
|
+
require 'akeyless/models/esm_get'
|
209
|
+
require 'akeyless/models/esm_get_secret_output'
|
210
|
+
require 'akeyless/models/esm_list'
|
211
|
+
require 'akeyless/models/esm_list_secrets_output'
|
212
|
+
require 'akeyless/models/esm_update'
|
213
|
+
require 'akeyless/models/esm_update_secret_output'
|
203
214
|
require 'akeyless/models/export_classic_key'
|
204
215
|
require 'akeyless/models/export_classic_key_output'
|
205
216
|
require 'akeyless/models/extension'
|
@@ -257,6 +268,8 @@ require 'akeyless/models/gateway_create_producer_rabbit_mq'
|
|
257
268
|
require 'akeyless/models/gateway_create_producer_rabbit_mq_output'
|
258
269
|
require 'akeyless/models/gateway_create_producer_rdp'
|
259
270
|
require 'akeyless/models/gateway_create_producer_rdp_output'
|
271
|
+
require 'akeyless/models/gateway_create_producer_redis'
|
272
|
+
require 'akeyless/models/gateway_create_producer_redis_output'
|
260
273
|
require 'akeyless/models/gateway_create_producer_redshift'
|
261
274
|
require 'akeyless/models/gateway_create_producer_redshift_output'
|
262
275
|
require 'akeyless/models/gateway_create_producer_snowflake'
|
@@ -349,6 +362,8 @@ require 'akeyless/models/gateway_update_producer_rabbit_mq'
|
|
349
362
|
require 'akeyless/models/gateway_update_producer_rabbit_mq_output'
|
350
363
|
require 'akeyless/models/gateway_update_producer_rdp'
|
351
364
|
require 'akeyless/models/gateway_update_producer_rdp_output'
|
365
|
+
require 'akeyless/models/gateway_update_producer_redis'
|
366
|
+
require 'akeyless/models/gateway_update_producer_redis_output'
|
352
367
|
require 'akeyless/models/gateway_update_producer_redshift'
|
353
368
|
require 'akeyless/models/gateway_update_producer_redshift_output'
|
354
369
|
require 'akeyless/models/gateway_update_producer_snowflake'
|
@@ -499,6 +514,7 @@ require 'akeyless/models/rules'
|
|
499
514
|
require 'akeyless/models/saml_access_rules'
|
500
515
|
require 'akeyless/models/saml_attribute'
|
501
516
|
require 'akeyless/models/ssh_certificate_issue_details'
|
517
|
+
require 'akeyless/models/secret_info'
|
502
518
|
require 'akeyless/models/secure_remote_access'
|
503
519
|
require 'akeyless/models/set_item_state'
|
504
520
|
require 'akeyless/models/set_role_rule'
|