akeyless 5.0.17 → 5.0.18
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 +5 -1
- data/docs/AccountGeneralSettings.md +2 -0
- data/docs/ItemUSCSyncAssociation.md +2 -0
- data/docs/ListItems.md +2 -0
- data/docs/RotatedSecretCreateOpenAI.md +56 -0
- data/docs/RotatedSecretCreateSsh.md +1 -1
- data/docs/RotatedSecretDeleteSync.md +2 -0
- data/docs/RotatedSecretSync.md +2 -0
- data/docs/RotatedSecretUpdateOpenAI.md +58 -0
- data/docs/RotatedSecretUpdateSsh.md +1 -1
- data/docs/StaticSecretDeleteSync.md +2 -0
- data/docs/StaticSecretSync.md +2 -0
- data/docs/UscSyncInfo.md +2 -0
- data/docs/V2Api.md +126 -0
- data/lib/akeyless/api/v2_api.rb +128 -0
- data/lib/akeyless/models/account_general_settings.rb +10 -1
- data/lib/akeyless/models/item_usc_sync_association.rb +10 -1
- data/lib/akeyless/models/list_items.rb +13 -1
- data/lib/akeyless/models/rotated_secret_create_open_ai.rb +437 -0
- data/lib/akeyless/models/rotated_secret_create_ssh.rb +1 -1
- data/lib/akeyless/models/rotated_secret_delete_sync.rb +13 -1
- data/lib/akeyless/models/rotated_secret_sync.rb +11 -1
- data/lib/akeyless/models/rotated_secret_update_open_ai.rb +437 -0
- data/lib/akeyless/models/rotated_secret_update_ssh.rb +1 -1
- data/lib/akeyless/models/static_secret_delete_sync.rb +13 -1
- data/lib/akeyless/models/static_secret_sync.rb +11 -1
- data/lib/akeyless/models/usc_sync_info.rb +10 -1
- data/lib/akeyless/version.rb +1 -1
- data/lib/akeyless.rb +2 -0
- data/spec/models/rotated_secret_create_open_ai_spec.rb +150 -0
- data/spec/models/rotated_secret_update_open_ai_spec.rb +156 -0
- metadata +9 -1
|
@@ -15,6 +15,9 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module Akeyless
|
|
17
17
|
class RotatedSecretSync
|
|
18
|
+
# Delete the secret from remote secret manager (for association create/update)
|
|
19
|
+
attr_accessor :delete_remote
|
|
20
|
+
|
|
18
21
|
# JQ expression to filter or transform the secret value
|
|
19
22
|
attr_accessor :filter_secret_value
|
|
20
23
|
|
|
@@ -42,6 +45,7 @@ module Akeyless
|
|
|
42
45
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
43
46
|
def self.attribute_map
|
|
44
47
|
{
|
|
48
|
+
:'delete_remote' => :'DeleteRemote',
|
|
45
49
|
:'filter_secret_value' => :'filter-secret-value',
|
|
46
50
|
:'json' => :'json',
|
|
47
51
|
:'name' => :'name',
|
|
@@ -61,6 +65,7 @@ module Akeyless
|
|
|
61
65
|
# Attribute type mapping.
|
|
62
66
|
def self.openapi_types
|
|
63
67
|
{
|
|
68
|
+
:'delete_remote' => :'Boolean',
|
|
64
69
|
:'filter_secret_value' => :'String',
|
|
65
70
|
:'json' => :'Boolean',
|
|
66
71
|
:'name' => :'String',
|
|
@@ -93,6 +98,10 @@ module Akeyless
|
|
|
93
98
|
h[k.to_sym] = v
|
|
94
99
|
}
|
|
95
100
|
|
|
101
|
+
if attributes.key?(:'delete_remote')
|
|
102
|
+
self.delete_remote = attributes[:'delete_remote']
|
|
103
|
+
end
|
|
104
|
+
|
|
96
105
|
if attributes.key?(:'filter_secret_value')
|
|
97
106
|
self.filter_secret_value = attributes[:'filter_secret_value']
|
|
98
107
|
end
|
|
@@ -155,6 +164,7 @@ module Akeyless
|
|
|
155
164
|
def ==(o)
|
|
156
165
|
return true if self.equal?(o)
|
|
157
166
|
self.class == o.class &&
|
|
167
|
+
delete_remote == o.delete_remote &&
|
|
158
168
|
filter_secret_value == o.filter_secret_value &&
|
|
159
169
|
json == o.json &&
|
|
160
170
|
name == o.name &&
|
|
@@ -174,7 +184,7 @@ module Akeyless
|
|
|
174
184
|
# Calculates hash code according to all attributes.
|
|
175
185
|
# @return [Integer] Hash code
|
|
176
186
|
def hash
|
|
177
|
-
[filter_secret_value, json, name, namespace, remote_secret_name, token, uid_token, usc_name].hash
|
|
187
|
+
[delete_remote, filter_secret_value, json, name, namespace, remote_secret_name, token, uid_token, usc_name].hash
|
|
178
188
|
end
|
|
179
189
|
|
|
180
190
|
# Builds the object from hash
|
|
@@ -0,0 +1,437 @@
|
|
|
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
|
+
# rotatedSecretUpdateOpenAI is a command that updates an OpenAI rotated secret.
|
|
18
|
+
class RotatedSecretUpdateOpenAI
|
|
19
|
+
# List of the new tags that will be attached to this item
|
|
20
|
+
attr_accessor :add_tag
|
|
21
|
+
|
|
22
|
+
# Admin API key value to update (relevant only for rotator-type=api-key)
|
|
23
|
+
attr_accessor :api_key
|
|
24
|
+
|
|
25
|
+
# Admin API key ID to update (relevant only for rotator-type=api-key)
|
|
26
|
+
attr_accessor :api_key_id
|
|
27
|
+
|
|
28
|
+
# The credentials to connect with use-user-creds/use-target-creds
|
|
29
|
+
attr_accessor :authentication_credentials
|
|
30
|
+
|
|
31
|
+
# Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false]
|
|
32
|
+
attr_accessor :auto_rotate
|
|
33
|
+
|
|
34
|
+
# Protection from accidental deletion of this object [true/false]
|
|
35
|
+
attr_accessor :delete_protection
|
|
36
|
+
|
|
37
|
+
# Description of the object
|
|
38
|
+
attr_accessor :description
|
|
39
|
+
|
|
40
|
+
# Additional custom fields to associate with the item
|
|
41
|
+
attr_accessor :item_custom_fields
|
|
42
|
+
|
|
43
|
+
# Set output format to JSON
|
|
44
|
+
attr_accessor :json
|
|
45
|
+
|
|
46
|
+
# Whether to keep previous version [true/false]. If not set, use default according to account settings
|
|
47
|
+
attr_accessor :keep_prev_version
|
|
48
|
+
|
|
49
|
+
# The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used)
|
|
50
|
+
attr_accessor :key
|
|
51
|
+
|
|
52
|
+
# Set the maximum number of versions, limited by the account settings defaults.
|
|
53
|
+
attr_accessor :max_versions
|
|
54
|
+
|
|
55
|
+
# Rotated secret name
|
|
56
|
+
attr_accessor :name
|
|
57
|
+
|
|
58
|
+
# New item name
|
|
59
|
+
attr_accessor :new_name
|
|
60
|
+
|
|
61
|
+
# The length of the password to be generated
|
|
62
|
+
attr_accessor :password_length
|
|
63
|
+
|
|
64
|
+
# List of the existent tags that will be removed from this item
|
|
65
|
+
attr_accessor :rm_tag
|
|
66
|
+
|
|
67
|
+
# How many days before the rotation of the item would you like to be notified
|
|
68
|
+
attr_accessor :rotation_event_in
|
|
69
|
+
|
|
70
|
+
# The Hour of the rotation in UTC
|
|
71
|
+
attr_accessor :rotation_hour
|
|
72
|
+
|
|
73
|
+
# The number of days to wait between every automatic key rotation (1-365)
|
|
74
|
+
attr_accessor :rotation_interval
|
|
75
|
+
|
|
76
|
+
# Authentication token (see `/auth` and `/configure`)
|
|
77
|
+
attr_accessor :token
|
|
78
|
+
|
|
79
|
+
# The universal identity token, Required only for universal_identity authentication
|
|
80
|
+
attr_accessor :uid_token
|
|
81
|
+
|
|
82
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
83
|
+
def self.attribute_map
|
|
84
|
+
{
|
|
85
|
+
:'add_tag' => :'add-tag',
|
|
86
|
+
:'api_key' => :'api-key',
|
|
87
|
+
:'api_key_id' => :'api-key-id',
|
|
88
|
+
:'authentication_credentials' => :'authentication-credentials',
|
|
89
|
+
:'auto_rotate' => :'auto-rotate',
|
|
90
|
+
:'delete_protection' => :'delete_protection',
|
|
91
|
+
:'description' => :'description',
|
|
92
|
+
:'item_custom_fields' => :'item-custom-fields',
|
|
93
|
+
:'json' => :'json',
|
|
94
|
+
:'keep_prev_version' => :'keep-prev-version',
|
|
95
|
+
:'key' => :'key',
|
|
96
|
+
:'max_versions' => :'max-versions',
|
|
97
|
+
:'name' => :'name',
|
|
98
|
+
:'new_name' => :'new-name',
|
|
99
|
+
:'password_length' => :'password-length',
|
|
100
|
+
:'rm_tag' => :'rm-tag',
|
|
101
|
+
:'rotation_event_in' => :'rotation-event-in',
|
|
102
|
+
:'rotation_hour' => :'rotation-hour',
|
|
103
|
+
:'rotation_interval' => :'rotation-interval',
|
|
104
|
+
:'token' => :'token',
|
|
105
|
+
:'uid_token' => :'uid-token'
|
|
106
|
+
}
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
# Returns all the JSON keys this model knows about
|
|
110
|
+
def self.acceptable_attributes
|
|
111
|
+
attribute_map.values
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
# Attribute type mapping.
|
|
115
|
+
def self.openapi_types
|
|
116
|
+
{
|
|
117
|
+
:'add_tag' => :'Array<String>',
|
|
118
|
+
:'api_key' => :'String',
|
|
119
|
+
:'api_key_id' => :'String',
|
|
120
|
+
:'authentication_credentials' => :'String',
|
|
121
|
+
:'auto_rotate' => :'String',
|
|
122
|
+
:'delete_protection' => :'String',
|
|
123
|
+
:'description' => :'String',
|
|
124
|
+
:'item_custom_fields' => :'Hash<String, String>',
|
|
125
|
+
:'json' => :'Boolean',
|
|
126
|
+
:'keep_prev_version' => :'String',
|
|
127
|
+
:'key' => :'String',
|
|
128
|
+
:'max_versions' => :'String',
|
|
129
|
+
:'name' => :'String',
|
|
130
|
+
:'new_name' => :'String',
|
|
131
|
+
:'password_length' => :'String',
|
|
132
|
+
:'rm_tag' => :'Array<String>',
|
|
133
|
+
:'rotation_event_in' => :'Array<String>',
|
|
134
|
+
:'rotation_hour' => :'Integer',
|
|
135
|
+
:'rotation_interval' => :'String',
|
|
136
|
+
:'token' => :'String',
|
|
137
|
+
:'uid_token' => :'String'
|
|
138
|
+
}
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
# List of attributes with nullable: true
|
|
142
|
+
def self.openapi_nullable
|
|
143
|
+
Set.new([
|
|
144
|
+
])
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
# Initializes the object
|
|
148
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
149
|
+
def initialize(attributes = {})
|
|
150
|
+
if (!attributes.is_a?(Hash))
|
|
151
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Akeyless::RotatedSecretUpdateOpenAI` initialize method"
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
155
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
156
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
157
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Akeyless::RotatedSecretUpdateOpenAI`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
158
|
+
end
|
|
159
|
+
h[k.to_sym] = v
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
if attributes.key?(:'add_tag')
|
|
163
|
+
if (value = attributes[:'add_tag']).is_a?(Array)
|
|
164
|
+
self.add_tag = value
|
|
165
|
+
end
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
if attributes.key?(:'api_key')
|
|
169
|
+
self.api_key = attributes[:'api_key']
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
if attributes.key?(:'api_key_id')
|
|
173
|
+
self.api_key_id = attributes[:'api_key_id']
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
if attributes.key?(:'authentication_credentials')
|
|
177
|
+
self.authentication_credentials = attributes[:'authentication_credentials']
|
|
178
|
+
else
|
|
179
|
+
self.authentication_credentials = 'use-user-creds'
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
if attributes.key?(:'auto_rotate')
|
|
183
|
+
self.auto_rotate = attributes[:'auto_rotate']
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
if attributes.key?(:'delete_protection')
|
|
187
|
+
self.delete_protection = attributes[:'delete_protection']
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
if attributes.key?(:'description')
|
|
191
|
+
self.description = attributes[:'description']
|
|
192
|
+
else
|
|
193
|
+
self.description = 'default_metadata'
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
if attributes.key?(:'item_custom_fields')
|
|
197
|
+
if (value = attributes[:'item_custom_fields']).is_a?(Hash)
|
|
198
|
+
self.item_custom_fields = value
|
|
199
|
+
end
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
if attributes.key?(:'json')
|
|
203
|
+
self.json = attributes[:'json']
|
|
204
|
+
else
|
|
205
|
+
self.json = false
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
if attributes.key?(:'keep_prev_version')
|
|
209
|
+
self.keep_prev_version = attributes[:'keep_prev_version']
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
if attributes.key?(:'key')
|
|
213
|
+
self.key = attributes[:'key']
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
if attributes.key?(:'max_versions')
|
|
217
|
+
self.max_versions = attributes[:'max_versions']
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
if attributes.key?(:'name')
|
|
221
|
+
self.name = attributes[:'name']
|
|
222
|
+
else
|
|
223
|
+
self.name = nil
|
|
224
|
+
end
|
|
225
|
+
|
|
226
|
+
if attributes.key?(:'new_name')
|
|
227
|
+
self.new_name = attributes[:'new_name']
|
|
228
|
+
end
|
|
229
|
+
|
|
230
|
+
if attributes.key?(:'password_length')
|
|
231
|
+
self.password_length = attributes[:'password_length']
|
|
232
|
+
end
|
|
233
|
+
|
|
234
|
+
if attributes.key?(:'rm_tag')
|
|
235
|
+
if (value = attributes[:'rm_tag']).is_a?(Array)
|
|
236
|
+
self.rm_tag = value
|
|
237
|
+
end
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
if attributes.key?(:'rotation_event_in')
|
|
241
|
+
if (value = attributes[:'rotation_event_in']).is_a?(Array)
|
|
242
|
+
self.rotation_event_in = value
|
|
243
|
+
end
|
|
244
|
+
end
|
|
245
|
+
|
|
246
|
+
if attributes.key?(:'rotation_hour')
|
|
247
|
+
self.rotation_hour = attributes[:'rotation_hour']
|
|
248
|
+
end
|
|
249
|
+
|
|
250
|
+
if attributes.key?(:'rotation_interval')
|
|
251
|
+
self.rotation_interval = attributes[:'rotation_interval']
|
|
252
|
+
end
|
|
253
|
+
|
|
254
|
+
if attributes.key?(:'token')
|
|
255
|
+
self.token = attributes[:'token']
|
|
256
|
+
end
|
|
257
|
+
|
|
258
|
+
if attributes.key?(:'uid_token')
|
|
259
|
+
self.uid_token = attributes[:'uid_token']
|
|
260
|
+
end
|
|
261
|
+
end
|
|
262
|
+
|
|
263
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
264
|
+
# @return Array for valid properties with the reasons
|
|
265
|
+
def list_invalid_properties
|
|
266
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
267
|
+
invalid_properties = Array.new
|
|
268
|
+
if @name.nil?
|
|
269
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
270
|
+
end
|
|
271
|
+
|
|
272
|
+
invalid_properties
|
|
273
|
+
end
|
|
274
|
+
|
|
275
|
+
# Check to see if the all the properties in the model are valid
|
|
276
|
+
# @return true if the model is valid
|
|
277
|
+
def valid?
|
|
278
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
279
|
+
return false if @name.nil?
|
|
280
|
+
true
|
|
281
|
+
end
|
|
282
|
+
|
|
283
|
+
# Checks equality by comparing each attribute.
|
|
284
|
+
# @param [Object] Object to be compared
|
|
285
|
+
def ==(o)
|
|
286
|
+
return true if self.equal?(o)
|
|
287
|
+
self.class == o.class &&
|
|
288
|
+
add_tag == o.add_tag &&
|
|
289
|
+
api_key == o.api_key &&
|
|
290
|
+
api_key_id == o.api_key_id &&
|
|
291
|
+
authentication_credentials == o.authentication_credentials &&
|
|
292
|
+
auto_rotate == o.auto_rotate &&
|
|
293
|
+
delete_protection == o.delete_protection &&
|
|
294
|
+
description == o.description &&
|
|
295
|
+
item_custom_fields == o.item_custom_fields &&
|
|
296
|
+
json == o.json &&
|
|
297
|
+
keep_prev_version == o.keep_prev_version &&
|
|
298
|
+
key == o.key &&
|
|
299
|
+
max_versions == o.max_versions &&
|
|
300
|
+
name == o.name &&
|
|
301
|
+
new_name == o.new_name &&
|
|
302
|
+
password_length == o.password_length &&
|
|
303
|
+
rm_tag == o.rm_tag &&
|
|
304
|
+
rotation_event_in == o.rotation_event_in &&
|
|
305
|
+
rotation_hour == o.rotation_hour &&
|
|
306
|
+
rotation_interval == o.rotation_interval &&
|
|
307
|
+
token == o.token &&
|
|
308
|
+
uid_token == o.uid_token
|
|
309
|
+
end
|
|
310
|
+
|
|
311
|
+
# @see the `==` method
|
|
312
|
+
# @param [Object] Object to be compared
|
|
313
|
+
def eql?(o)
|
|
314
|
+
self == o
|
|
315
|
+
end
|
|
316
|
+
|
|
317
|
+
# Calculates hash code according to all attributes.
|
|
318
|
+
# @return [Integer] Hash code
|
|
319
|
+
def hash
|
|
320
|
+
[add_tag, api_key, api_key_id, authentication_credentials, auto_rotate, delete_protection, description, item_custom_fields, json, keep_prev_version, key, max_versions, name, new_name, password_length, rm_tag, rotation_event_in, rotation_hour, rotation_interval, token, uid_token].hash
|
|
321
|
+
end
|
|
322
|
+
|
|
323
|
+
# Builds the object from hash
|
|
324
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
325
|
+
# @return [Object] Returns the model itself
|
|
326
|
+
def self.build_from_hash(attributes)
|
|
327
|
+
return nil unless attributes.is_a?(Hash)
|
|
328
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
329
|
+
transformed_hash = {}
|
|
330
|
+
openapi_types.each_pair do |key, type|
|
|
331
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
332
|
+
transformed_hash["#{key}"] = nil
|
|
333
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
334
|
+
# check to ensure the input is an array given that the attribute
|
|
335
|
+
# is documented as an array but the input is not
|
|
336
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
337
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
338
|
+
end
|
|
339
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
340
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
341
|
+
end
|
|
342
|
+
end
|
|
343
|
+
new(transformed_hash)
|
|
344
|
+
end
|
|
345
|
+
|
|
346
|
+
# Deserializes the data based on type
|
|
347
|
+
# @param string type Data type
|
|
348
|
+
# @param string value Value to be deserialized
|
|
349
|
+
# @return [Object] Deserialized data
|
|
350
|
+
def self._deserialize(type, value)
|
|
351
|
+
case type.to_sym
|
|
352
|
+
when :Time
|
|
353
|
+
Time.parse(value)
|
|
354
|
+
when :Date
|
|
355
|
+
Date.parse(value)
|
|
356
|
+
when :String
|
|
357
|
+
value.to_s
|
|
358
|
+
when :Integer
|
|
359
|
+
value.to_i
|
|
360
|
+
when :Float
|
|
361
|
+
value.to_f
|
|
362
|
+
when :Boolean
|
|
363
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
364
|
+
true
|
|
365
|
+
else
|
|
366
|
+
false
|
|
367
|
+
end
|
|
368
|
+
when :Object
|
|
369
|
+
# generic object (usually a Hash), return directly
|
|
370
|
+
value
|
|
371
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
372
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
373
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
374
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
375
|
+
k_type = Regexp.last_match[:k_type]
|
|
376
|
+
v_type = Regexp.last_match[:v_type]
|
|
377
|
+
{}.tap do |hash|
|
|
378
|
+
value.each do |k, v|
|
|
379
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
380
|
+
end
|
|
381
|
+
end
|
|
382
|
+
else # model
|
|
383
|
+
# models (e.g. Pet) or oneOf
|
|
384
|
+
klass = Akeyless.const_get(type)
|
|
385
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
386
|
+
end
|
|
387
|
+
end
|
|
388
|
+
|
|
389
|
+
# Returns the string representation of the object
|
|
390
|
+
# @return [String] String presentation of the object
|
|
391
|
+
def to_s
|
|
392
|
+
to_hash.to_s
|
|
393
|
+
end
|
|
394
|
+
|
|
395
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
396
|
+
# @return [Hash] Returns the object in the form of hash
|
|
397
|
+
def to_body
|
|
398
|
+
to_hash
|
|
399
|
+
end
|
|
400
|
+
|
|
401
|
+
# Returns the object in the form of hash
|
|
402
|
+
# @return [Hash] Returns the object in the form of hash
|
|
403
|
+
def to_hash
|
|
404
|
+
hash = {}
|
|
405
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
406
|
+
value = self.send(attr)
|
|
407
|
+
if value.nil?
|
|
408
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
409
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
410
|
+
end
|
|
411
|
+
|
|
412
|
+
hash[param] = _to_hash(value)
|
|
413
|
+
end
|
|
414
|
+
hash
|
|
415
|
+
end
|
|
416
|
+
|
|
417
|
+
# Outputs non-array value in the form of hash
|
|
418
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
419
|
+
# @param [Object] value Any valid value
|
|
420
|
+
# @return [Hash] Returns the value in the form of hash
|
|
421
|
+
def _to_hash(value)
|
|
422
|
+
if value.is_a?(Array)
|
|
423
|
+
value.compact.map { |v| _to_hash(v) }
|
|
424
|
+
elsif value.is_a?(Hash)
|
|
425
|
+
{}.tap do |hash|
|
|
426
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
427
|
+
end
|
|
428
|
+
elsif value.respond_to? :to_hash
|
|
429
|
+
value.to_hash
|
|
430
|
+
else
|
|
431
|
+
value
|
|
432
|
+
end
|
|
433
|
+
end
|
|
434
|
+
|
|
435
|
+
end
|
|
436
|
+
|
|
437
|
+
end
|
|
@@ -84,7 +84,7 @@ module Akeyless
|
|
|
84
84
|
# Custom rotation command
|
|
85
85
|
attr_accessor :rotator_custom_cmd
|
|
86
86
|
|
|
87
|
-
# The rotator type. options: [target/password]
|
|
87
|
+
# The rotator type. options: [target/password/key]
|
|
88
88
|
attr_accessor :rotator_type
|
|
89
89
|
|
|
90
90
|
# Rotate same password for each host from the Linked Target (relevant only for Linked Target)
|
|
@@ -15,6 +15,9 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module Akeyless
|
|
17
17
|
class StaticSecretDeleteSync
|
|
18
|
+
# Delete the secret from the remote target USC as well
|
|
19
|
+
attr_accessor :delete_from_usc
|
|
20
|
+
|
|
18
21
|
# Set output format to JSON
|
|
19
22
|
attr_accessor :json
|
|
20
23
|
|
|
@@ -36,6 +39,7 @@ module Akeyless
|
|
|
36
39
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
37
40
|
def self.attribute_map
|
|
38
41
|
{
|
|
42
|
+
:'delete_from_usc' => :'delete-from-usc',
|
|
39
43
|
:'json' => :'json',
|
|
40
44
|
:'name' => :'name',
|
|
41
45
|
:'remote_secret_name' => :'remote-secret-name',
|
|
@@ -53,6 +57,7 @@ module Akeyless
|
|
|
53
57
|
# Attribute type mapping.
|
|
54
58
|
def self.openapi_types
|
|
55
59
|
{
|
|
60
|
+
:'delete_from_usc' => :'Boolean',
|
|
56
61
|
:'json' => :'Boolean',
|
|
57
62
|
:'name' => :'String',
|
|
58
63
|
:'remote_secret_name' => :'String',
|
|
@@ -83,6 +88,12 @@ module Akeyless
|
|
|
83
88
|
h[k.to_sym] = v
|
|
84
89
|
}
|
|
85
90
|
|
|
91
|
+
if attributes.key?(:'delete_from_usc')
|
|
92
|
+
self.delete_from_usc = attributes[:'delete_from_usc']
|
|
93
|
+
else
|
|
94
|
+
self.delete_from_usc = false
|
|
95
|
+
end
|
|
96
|
+
|
|
86
97
|
if attributes.key?(:'json')
|
|
87
98
|
self.json = attributes[:'json']
|
|
88
99
|
else
|
|
@@ -144,6 +155,7 @@ module Akeyless
|
|
|
144
155
|
def ==(o)
|
|
145
156
|
return true if self.equal?(o)
|
|
146
157
|
self.class == o.class &&
|
|
158
|
+
delete_from_usc == o.delete_from_usc &&
|
|
147
159
|
json == o.json &&
|
|
148
160
|
name == o.name &&
|
|
149
161
|
remote_secret_name == o.remote_secret_name &&
|
|
@@ -161,7 +173,7 @@ module Akeyless
|
|
|
161
173
|
# Calculates hash code according to all attributes.
|
|
162
174
|
# @return [Integer] Hash code
|
|
163
175
|
def hash
|
|
164
|
-
[json, name, remote_secret_name, token, uid_token, usc_name].hash
|
|
176
|
+
[delete_from_usc, json, name, remote_secret_name, token, uid_token, usc_name].hash
|
|
165
177
|
end
|
|
166
178
|
|
|
167
179
|
# Builds the object from hash
|
|
@@ -15,6 +15,9 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module Akeyless
|
|
17
17
|
class StaticSecretSync
|
|
18
|
+
# Delete the secret from remote secret manager (for association create/update)
|
|
19
|
+
attr_accessor :delete_remote
|
|
20
|
+
|
|
18
21
|
# JQ expression to filter or transform the secret value
|
|
19
22
|
attr_accessor :filter_secret_value
|
|
20
23
|
|
|
@@ -42,6 +45,7 @@ module Akeyless
|
|
|
42
45
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
43
46
|
def self.attribute_map
|
|
44
47
|
{
|
|
48
|
+
:'delete_remote' => :'DeleteRemote',
|
|
45
49
|
:'filter_secret_value' => :'filter-secret-value',
|
|
46
50
|
:'json' => :'json',
|
|
47
51
|
:'name' => :'name',
|
|
@@ -61,6 +65,7 @@ module Akeyless
|
|
|
61
65
|
# Attribute type mapping.
|
|
62
66
|
def self.openapi_types
|
|
63
67
|
{
|
|
68
|
+
:'delete_remote' => :'Boolean',
|
|
64
69
|
:'filter_secret_value' => :'String',
|
|
65
70
|
:'json' => :'Boolean',
|
|
66
71
|
:'name' => :'String',
|
|
@@ -93,6 +98,10 @@ module Akeyless
|
|
|
93
98
|
h[k.to_sym] = v
|
|
94
99
|
}
|
|
95
100
|
|
|
101
|
+
if attributes.key?(:'delete_remote')
|
|
102
|
+
self.delete_remote = attributes[:'delete_remote']
|
|
103
|
+
end
|
|
104
|
+
|
|
96
105
|
if attributes.key?(:'filter_secret_value')
|
|
97
106
|
self.filter_secret_value = attributes[:'filter_secret_value']
|
|
98
107
|
end
|
|
@@ -155,6 +164,7 @@ module Akeyless
|
|
|
155
164
|
def ==(o)
|
|
156
165
|
return true if self.equal?(o)
|
|
157
166
|
self.class == o.class &&
|
|
167
|
+
delete_remote == o.delete_remote &&
|
|
158
168
|
filter_secret_value == o.filter_secret_value &&
|
|
159
169
|
json == o.json &&
|
|
160
170
|
name == o.name &&
|
|
@@ -174,7 +184,7 @@ module Akeyless
|
|
|
174
184
|
# Calculates hash code according to all attributes.
|
|
175
185
|
# @return [Integer] Hash code
|
|
176
186
|
def hash
|
|
177
|
-
[filter_secret_value, json, name, namespace, remote_secret_name, token, uid_token, usc_name].hash
|
|
187
|
+
[delete_remote, filter_secret_value, json, name, namespace, remote_secret_name, token, uid_token, usc_name].hash
|
|
178
188
|
end
|
|
179
189
|
|
|
180
190
|
# Builds the object from hash
|
|
@@ -15,6 +15,8 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module Akeyless
|
|
17
17
|
class UscSyncInfo
|
|
18
|
+
attr_accessor :delete_remote
|
|
19
|
+
|
|
18
20
|
attr_accessor :jq_secret_filter
|
|
19
21
|
|
|
20
22
|
attr_accessor :last_error
|
|
@@ -28,6 +30,7 @@ module Akeyless
|
|
|
28
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
29
31
|
def self.attribute_map
|
|
30
32
|
{
|
|
33
|
+
:'delete_remote' => :'delete_remote',
|
|
31
34
|
:'jq_secret_filter' => :'jq_secret_filter',
|
|
32
35
|
:'last_error' => :'last_error',
|
|
33
36
|
:'namespace' => :'namespace',
|
|
@@ -44,6 +47,7 @@ module Akeyless
|
|
|
44
47
|
# Attribute type mapping.
|
|
45
48
|
def self.openapi_types
|
|
46
49
|
{
|
|
50
|
+
:'delete_remote' => :'Boolean',
|
|
47
51
|
:'jq_secret_filter' => :'String',
|
|
48
52
|
:'last_error' => :'String',
|
|
49
53
|
:'namespace' => :'String',
|
|
@@ -73,6 +77,10 @@ module Akeyless
|
|
|
73
77
|
h[k.to_sym] = v
|
|
74
78
|
}
|
|
75
79
|
|
|
80
|
+
if attributes.key?(:'delete_remote')
|
|
81
|
+
self.delete_remote = attributes[:'delete_remote']
|
|
82
|
+
end
|
|
83
|
+
|
|
76
84
|
if attributes.key?(:'jq_secret_filter')
|
|
77
85
|
self.jq_secret_filter = attributes[:'jq_secret_filter']
|
|
78
86
|
end
|
|
@@ -114,6 +122,7 @@ module Akeyless
|
|
|
114
122
|
def ==(o)
|
|
115
123
|
return true if self.equal?(o)
|
|
116
124
|
self.class == o.class &&
|
|
125
|
+
delete_remote == o.delete_remote &&
|
|
117
126
|
jq_secret_filter == o.jq_secret_filter &&
|
|
118
127
|
last_error == o.last_error &&
|
|
119
128
|
namespace == o.namespace &&
|
|
@@ -130,7 +139,7 @@ module Akeyless
|
|
|
130
139
|
# Calculates hash code according to all attributes.
|
|
131
140
|
# @return [Integer] Hash code
|
|
132
141
|
def hash
|
|
133
|
-
[jq_secret_filter, last_error, namespace, secret_id, secret_name].hash
|
|
142
|
+
[delete_remote, jq_secret_filter, last_error, namespace, secret_id, secret_name].hash
|
|
134
143
|
end
|
|
135
144
|
|
|
136
145
|
# Builds the object from hash
|
data/lib/akeyless/version.rb
CHANGED
data/lib/akeyless.rb
CHANGED
|
@@ -844,6 +844,7 @@ require 'akeyless/models/rotated_secret_create_ldap'
|
|
|
844
844
|
require 'akeyless/models/rotated_secret_create_mongodb'
|
|
845
845
|
require 'akeyless/models/rotated_secret_create_mssql'
|
|
846
846
|
require 'akeyless/models/rotated_secret_create_mysql'
|
|
847
|
+
require 'akeyless/models/rotated_secret_create_open_ai'
|
|
847
848
|
require 'akeyless/models/rotated_secret_create_oracledb'
|
|
848
849
|
require 'akeyless/models/rotated_secret_create_output'
|
|
849
850
|
require 'akeyless/models/rotated_secret_create_postgresql'
|
|
@@ -871,6 +872,7 @@ require 'akeyless/models/rotated_secret_update_ldap'
|
|
|
871
872
|
require 'akeyless/models/rotated_secret_update_mongodb'
|
|
872
873
|
require 'akeyless/models/rotated_secret_update_mssql'
|
|
873
874
|
require 'akeyless/models/rotated_secret_update_mysql'
|
|
875
|
+
require 'akeyless/models/rotated_secret_update_open_ai'
|
|
874
876
|
require 'akeyless/models/rotated_secret_update_oracledb'
|
|
875
877
|
require 'akeyless/models/rotated_secret_update_output'
|
|
876
878
|
require 'akeyless/models/rotated_secret_update_postgresql'
|