akeyless 5.0.8 → 5.0.9
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 +9 -1
- data/docs/DSProducerDetails.md +10 -0
- data/docs/DynamicSecretCreateOpenAI.md +40 -0
- data/docs/DynamicSecretUpdateOpenAI.md +42 -0
- data/docs/EsmGetSecretOutput.md +2 -0
- data/docs/EventForwarderCreateTeams.md +44 -0
- data/docs/EventForwarderUpdateTeams.md +46 -0
- data/docs/NotiForwarder.md +2 -0
- data/docs/OpenAITargetDetails.md +3 -3
- data/docs/SecretInfo.md +2 -0
- data/docs/UscCreate.md +2 -0
- data/docs/UscGetSecretOutput.md +2 -0
- data/docs/UscUpdate.md +2 -0
- data/docs/V2Api.md +252 -0
- data/lib/akeyless/api/v2_api.rb +256 -0
- data/lib/akeyless/models/ds_producer_details.rb +46 -1
- data/lib/akeyless/models/dynamic_secret_create_open_ai.rb +339 -0
- data/lib/akeyless/models/dynamic_secret_update_open_ai.rb +349 -0
- data/lib/akeyless/models/esm_get_secret_output.rb +10 -1
- data/lib/akeyless/models/event_forwarder_create_teams.rb +385 -0
- data/lib/akeyless/models/event_forwarder_update_teams.rb +391 -0
- data/lib/akeyless/models/noti_forwarder.rb +10 -1
- data/lib/akeyless/models/open_ai_target_details.rb +13 -13
- data/lib/akeyless/models/secret_info.rb +10 -1
- data/lib/akeyless/models/usc_create.rb +11 -1
- data/lib/akeyless/models/usc_get_secret_output.rb +10 -1
- data/lib/akeyless/models/usc_update.rb +11 -1
- data/lib/akeyless/version.rb +1 -1
- data/lib/akeyless.rb +4 -0
- data/spec/models/dynamic_secret_create_open_ai_spec.rb +102 -0
- data/spec/models/dynamic_secret_update_open_ai_spec.rb +108 -0
- data/spec/models/event_forwarder_create_teams_spec.rb +114 -0
- data/spec/models/event_forwarder_update_teams_spec.rb +120 -0
- metadata +17 -1
|
@@ -0,0 +1,391 @@
|
|
|
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
|
+
# eventForwarderUpdateTeams is a command that updates teams event forwarder
|
|
18
|
+
class EventForwarderUpdateTeams
|
|
19
|
+
# Auth Method Event sources
|
|
20
|
+
attr_accessor :auth_methods_event_source_locations
|
|
21
|
+
|
|
22
|
+
# Description of the object
|
|
23
|
+
attr_accessor :description
|
|
24
|
+
|
|
25
|
+
# Enable/Disable Event Forwarder [true/false]
|
|
26
|
+
attr_accessor :enable
|
|
27
|
+
|
|
28
|
+
# List of event types to notify about [request-access, certificate-pending-expiration, certificate-expired, certificate-provisioning-success, certificate-provisioning-failure, auth-method-pending-expiration, auth-method-expired, next-automatic-rotation, rotated-secret-success, rotated-secret-failure, dynamic-secret-failure, multi-auth-failure, uid-rotation-failure, apply-justification, email-auth-method-approved, usage, rotation-usage, gateway-inactive, static-secret-updated, rate-limiting, usage-report, secret-sync]
|
|
29
|
+
attr_accessor :event_types
|
|
30
|
+
|
|
31
|
+
# Event sources
|
|
32
|
+
attr_accessor :gateways_event_source_locations
|
|
33
|
+
|
|
34
|
+
# Items Event sources
|
|
35
|
+
attr_accessor :items_event_source_locations
|
|
36
|
+
|
|
37
|
+
# Set output format to JSON
|
|
38
|
+
attr_accessor :json
|
|
39
|
+
|
|
40
|
+
# Whether to keep previous version [true/false]. If not set, use default according to account settings
|
|
41
|
+
attr_accessor :keep_prev_version
|
|
42
|
+
|
|
43
|
+
# The name of a key that used to encrypt the EventForwarder secret value (if empty, the account default protectionKey key will be used)
|
|
44
|
+
attr_accessor :key
|
|
45
|
+
|
|
46
|
+
# EventForwarder name
|
|
47
|
+
attr_accessor :name
|
|
48
|
+
|
|
49
|
+
# New EventForwarder name
|
|
50
|
+
attr_accessor :new_name
|
|
51
|
+
|
|
52
|
+
# Targets Event sources
|
|
53
|
+
attr_accessor :targets_event_source_locations
|
|
54
|
+
|
|
55
|
+
# Authentication token (see `/auth` and `/configure`)
|
|
56
|
+
attr_accessor :token
|
|
57
|
+
|
|
58
|
+
# The universal identity token, Required only for universal_identity authentication
|
|
59
|
+
attr_accessor :uid_token
|
|
60
|
+
|
|
61
|
+
# Teams Webhook URL
|
|
62
|
+
attr_accessor :url
|
|
63
|
+
|
|
64
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
65
|
+
def self.attribute_map
|
|
66
|
+
{
|
|
67
|
+
:'auth_methods_event_source_locations' => :'auth-methods-event-source-locations',
|
|
68
|
+
:'description' => :'description',
|
|
69
|
+
:'enable' => :'enable',
|
|
70
|
+
:'event_types' => :'event-types',
|
|
71
|
+
:'gateways_event_source_locations' => :'gateways-event-source-locations',
|
|
72
|
+
:'items_event_source_locations' => :'items-event-source-locations',
|
|
73
|
+
:'json' => :'json',
|
|
74
|
+
:'keep_prev_version' => :'keep-prev-version',
|
|
75
|
+
:'key' => :'key',
|
|
76
|
+
:'name' => :'name',
|
|
77
|
+
:'new_name' => :'new-name',
|
|
78
|
+
:'targets_event_source_locations' => :'targets-event-source-locations',
|
|
79
|
+
:'token' => :'token',
|
|
80
|
+
:'uid_token' => :'uid-token',
|
|
81
|
+
:'url' => :'url'
|
|
82
|
+
}
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
# Returns all the JSON keys this model knows about
|
|
86
|
+
def self.acceptable_attributes
|
|
87
|
+
attribute_map.values
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# Attribute type mapping.
|
|
91
|
+
def self.openapi_types
|
|
92
|
+
{
|
|
93
|
+
:'auth_methods_event_source_locations' => :'Array<String>',
|
|
94
|
+
:'description' => :'String',
|
|
95
|
+
:'enable' => :'String',
|
|
96
|
+
:'event_types' => :'Array<String>',
|
|
97
|
+
:'gateways_event_source_locations' => :'Array<String>',
|
|
98
|
+
:'items_event_source_locations' => :'Array<String>',
|
|
99
|
+
:'json' => :'Boolean',
|
|
100
|
+
:'keep_prev_version' => :'String',
|
|
101
|
+
:'key' => :'String',
|
|
102
|
+
:'name' => :'String',
|
|
103
|
+
:'new_name' => :'String',
|
|
104
|
+
:'targets_event_source_locations' => :'Array<String>',
|
|
105
|
+
:'token' => :'String',
|
|
106
|
+
:'uid_token' => :'String',
|
|
107
|
+
:'url' => :'String'
|
|
108
|
+
}
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
# List of attributes with nullable: true
|
|
112
|
+
def self.openapi_nullable
|
|
113
|
+
Set.new([
|
|
114
|
+
])
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
# Initializes the object
|
|
118
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
119
|
+
def initialize(attributes = {})
|
|
120
|
+
if (!attributes.is_a?(Hash))
|
|
121
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Akeyless::EventForwarderUpdateTeams` initialize method"
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
125
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
126
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
127
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Akeyless::EventForwarderUpdateTeams`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
128
|
+
end
|
|
129
|
+
h[k.to_sym] = v
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
if attributes.key?(:'auth_methods_event_source_locations')
|
|
133
|
+
if (value = attributes[:'auth_methods_event_source_locations']).is_a?(Array)
|
|
134
|
+
self.auth_methods_event_source_locations = value
|
|
135
|
+
end
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
if attributes.key?(:'description')
|
|
139
|
+
self.description = attributes[:'description']
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
if attributes.key?(:'enable')
|
|
143
|
+
self.enable = attributes[:'enable']
|
|
144
|
+
else
|
|
145
|
+
self.enable = 'true'
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
if attributes.key?(:'event_types')
|
|
149
|
+
if (value = attributes[:'event_types']).is_a?(Array)
|
|
150
|
+
self.event_types = value
|
|
151
|
+
end
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
if attributes.key?(:'gateways_event_source_locations')
|
|
155
|
+
if (value = attributes[:'gateways_event_source_locations']).is_a?(Array)
|
|
156
|
+
self.gateways_event_source_locations = value
|
|
157
|
+
end
|
|
158
|
+
else
|
|
159
|
+
self.gateways_event_source_locations = nil
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
if attributes.key?(:'items_event_source_locations')
|
|
163
|
+
if (value = attributes[:'items_event_source_locations']).is_a?(Array)
|
|
164
|
+
self.items_event_source_locations = value
|
|
165
|
+
end
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
if attributes.key?(:'json')
|
|
169
|
+
self.json = attributes[:'json']
|
|
170
|
+
else
|
|
171
|
+
self.json = false
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
if attributes.key?(:'keep_prev_version')
|
|
175
|
+
self.keep_prev_version = attributes[:'keep_prev_version']
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
if attributes.key?(:'key')
|
|
179
|
+
self.key = attributes[:'key']
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
if attributes.key?(:'name')
|
|
183
|
+
self.name = attributes[:'name']
|
|
184
|
+
else
|
|
185
|
+
self.name = nil
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
if attributes.key?(:'new_name')
|
|
189
|
+
self.new_name = attributes[:'new_name']
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
if attributes.key?(:'targets_event_source_locations')
|
|
193
|
+
if (value = attributes[:'targets_event_source_locations']).is_a?(Array)
|
|
194
|
+
self.targets_event_source_locations = value
|
|
195
|
+
end
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
if attributes.key?(:'token')
|
|
199
|
+
self.token = attributes[:'token']
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
if attributes.key?(:'uid_token')
|
|
203
|
+
self.uid_token = attributes[:'uid_token']
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
if attributes.key?(:'url')
|
|
207
|
+
self.url = attributes[:'url']
|
|
208
|
+
else
|
|
209
|
+
self.url = nil
|
|
210
|
+
end
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
214
|
+
# @return Array for valid properties with the reasons
|
|
215
|
+
def list_invalid_properties
|
|
216
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
217
|
+
invalid_properties = Array.new
|
|
218
|
+
if @gateways_event_source_locations.nil?
|
|
219
|
+
invalid_properties.push('invalid value for "gateways_event_source_locations", gateways_event_source_locations cannot be nil.')
|
|
220
|
+
end
|
|
221
|
+
|
|
222
|
+
if @name.nil?
|
|
223
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
224
|
+
end
|
|
225
|
+
|
|
226
|
+
if @url.nil?
|
|
227
|
+
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
|
228
|
+
end
|
|
229
|
+
|
|
230
|
+
invalid_properties
|
|
231
|
+
end
|
|
232
|
+
|
|
233
|
+
# Check to see if the all the properties in the model are valid
|
|
234
|
+
# @return true if the model is valid
|
|
235
|
+
def valid?
|
|
236
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
237
|
+
return false if @gateways_event_source_locations.nil?
|
|
238
|
+
return false if @name.nil?
|
|
239
|
+
return false if @url.nil?
|
|
240
|
+
true
|
|
241
|
+
end
|
|
242
|
+
|
|
243
|
+
# Checks equality by comparing each attribute.
|
|
244
|
+
# @param [Object] Object to be compared
|
|
245
|
+
def ==(o)
|
|
246
|
+
return true if self.equal?(o)
|
|
247
|
+
self.class == o.class &&
|
|
248
|
+
auth_methods_event_source_locations == o.auth_methods_event_source_locations &&
|
|
249
|
+
description == o.description &&
|
|
250
|
+
enable == o.enable &&
|
|
251
|
+
event_types == o.event_types &&
|
|
252
|
+
gateways_event_source_locations == o.gateways_event_source_locations &&
|
|
253
|
+
items_event_source_locations == o.items_event_source_locations &&
|
|
254
|
+
json == o.json &&
|
|
255
|
+
keep_prev_version == o.keep_prev_version &&
|
|
256
|
+
key == o.key &&
|
|
257
|
+
name == o.name &&
|
|
258
|
+
new_name == o.new_name &&
|
|
259
|
+
targets_event_source_locations == o.targets_event_source_locations &&
|
|
260
|
+
token == o.token &&
|
|
261
|
+
uid_token == o.uid_token &&
|
|
262
|
+
url == o.url
|
|
263
|
+
end
|
|
264
|
+
|
|
265
|
+
# @see the `==` method
|
|
266
|
+
# @param [Object] Object to be compared
|
|
267
|
+
def eql?(o)
|
|
268
|
+
self == o
|
|
269
|
+
end
|
|
270
|
+
|
|
271
|
+
# Calculates hash code according to all attributes.
|
|
272
|
+
# @return [Integer] Hash code
|
|
273
|
+
def hash
|
|
274
|
+
[auth_methods_event_source_locations, description, enable, event_types, gateways_event_source_locations, items_event_source_locations, json, keep_prev_version, key, name, new_name, targets_event_source_locations, token, uid_token, url].hash
|
|
275
|
+
end
|
|
276
|
+
|
|
277
|
+
# Builds the object from hash
|
|
278
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
279
|
+
# @return [Object] Returns the model itself
|
|
280
|
+
def self.build_from_hash(attributes)
|
|
281
|
+
return nil unless attributes.is_a?(Hash)
|
|
282
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
283
|
+
transformed_hash = {}
|
|
284
|
+
openapi_types.each_pair do |key, type|
|
|
285
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
286
|
+
transformed_hash["#{key}"] = nil
|
|
287
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
288
|
+
# check to ensure the input is an array given that the attribute
|
|
289
|
+
# is documented as an array but the input is not
|
|
290
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
291
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
292
|
+
end
|
|
293
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
294
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
295
|
+
end
|
|
296
|
+
end
|
|
297
|
+
new(transformed_hash)
|
|
298
|
+
end
|
|
299
|
+
|
|
300
|
+
# Deserializes the data based on type
|
|
301
|
+
# @param string type Data type
|
|
302
|
+
# @param string value Value to be deserialized
|
|
303
|
+
# @return [Object] Deserialized data
|
|
304
|
+
def self._deserialize(type, value)
|
|
305
|
+
case type.to_sym
|
|
306
|
+
when :Time
|
|
307
|
+
Time.parse(value)
|
|
308
|
+
when :Date
|
|
309
|
+
Date.parse(value)
|
|
310
|
+
when :String
|
|
311
|
+
value.to_s
|
|
312
|
+
when :Integer
|
|
313
|
+
value.to_i
|
|
314
|
+
when :Float
|
|
315
|
+
value.to_f
|
|
316
|
+
when :Boolean
|
|
317
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
318
|
+
true
|
|
319
|
+
else
|
|
320
|
+
false
|
|
321
|
+
end
|
|
322
|
+
when :Object
|
|
323
|
+
# generic object (usually a Hash), return directly
|
|
324
|
+
value
|
|
325
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
326
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
327
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
328
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
329
|
+
k_type = Regexp.last_match[:k_type]
|
|
330
|
+
v_type = Regexp.last_match[:v_type]
|
|
331
|
+
{}.tap do |hash|
|
|
332
|
+
value.each do |k, v|
|
|
333
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
334
|
+
end
|
|
335
|
+
end
|
|
336
|
+
else # model
|
|
337
|
+
# models (e.g. Pet) or oneOf
|
|
338
|
+
klass = Akeyless.const_get(type)
|
|
339
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
340
|
+
end
|
|
341
|
+
end
|
|
342
|
+
|
|
343
|
+
# Returns the string representation of the object
|
|
344
|
+
# @return [String] String presentation of the object
|
|
345
|
+
def to_s
|
|
346
|
+
to_hash.to_s
|
|
347
|
+
end
|
|
348
|
+
|
|
349
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
350
|
+
# @return [Hash] Returns the object in the form of hash
|
|
351
|
+
def to_body
|
|
352
|
+
to_hash
|
|
353
|
+
end
|
|
354
|
+
|
|
355
|
+
# Returns the object in the form of hash
|
|
356
|
+
# @return [Hash] Returns the object in the form of hash
|
|
357
|
+
def to_hash
|
|
358
|
+
hash = {}
|
|
359
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
360
|
+
value = self.send(attr)
|
|
361
|
+
if value.nil?
|
|
362
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
363
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
364
|
+
end
|
|
365
|
+
|
|
366
|
+
hash[param] = _to_hash(value)
|
|
367
|
+
end
|
|
368
|
+
hash
|
|
369
|
+
end
|
|
370
|
+
|
|
371
|
+
# Outputs non-array value in the form of hash
|
|
372
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
373
|
+
# @param [Object] value Any valid value
|
|
374
|
+
# @return [Hash] Returns the value in the form of hash
|
|
375
|
+
def _to_hash(value)
|
|
376
|
+
if value.is_a?(Array)
|
|
377
|
+
value.compact.map { |v| _to_hash(v) }
|
|
378
|
+
elsif value.is_a?(Hash)
|
|
379
|
+
{}.tap do |hash|
|
|
380
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
381
|
+
end
|
|
382
|
+
elsif value.respond_to? :to_hash
|
|
383
|
+
value.to_hash
|
|
384
|
+
else
|
|
385
|
+
value
|
|
386
|
+
end
|
|
387
|
+
end
|
|
388
|
+
|
|
389
|
+
end
|
|
390
|
+
|
|
391
|
+
end
|
|
@@ -58,6 +58,8 @@ module Akeyless
|
|
|
58
58
|
|
|
59
59
|
attr_accessor :slack_noti_forwarder_public_details
|
|
60
60
|
|
|
61
|
+
attr_accessor :teams_noti_forwarder_public_details
|
|
62
|
+
|
|
61
63
|
attr_accessor :timespan_in_seconds
|
|
62
64
|
|
|
63
65
|
attr_accessor :to_emails
|
|
@@ -95,6 +97,7 @@ module Akeyless
|
|
|
95
97
|
:'protection_key' => :'protection_key',
|
|
96
98
|
:'runner_type' => :'runner_type',
|
|
97
99
|
:'slack_noti_forwarder_public_details' => :'slack_noti_forwarder_public_details',
|
|
100
|
+
:'teams_noti_forwarder_public_details' => :'teams_noti_forwarder_public_details',
|
|
98
101
|
:'timespan_in_seconds' => :'timespan_in_seconds',
|
|
99
102
|
:'to_emails' => :'to_emails',
|
|
100
103
|
:'user_email' => :'user_email',
|
|
@@ -133,6 +136,7 @@ module Akeyless
|
|
|
133
136
|
:'protection_key' => :'String',
|
|
134
137
|
:'runner_type' => :'String',
|
|
135
138
|
:'slack_noti_forwarder_public_details' => :'Object',
|
|
139
|
+
:'teams_noti_forwarder_public_details' => :'Object',
|
|
136
140
|
:'timespan_in_seconds' => :'Integer',
|
|
137
141
|
:'to_emails' => :'Array<EmailEntry>',
|
|
138
142
|
:'user_email' => :'String',
|
|
@@ -255,6 +259,10 @@ module Akeyless
|
|
|
255
259
|
self.slack_noti_forwarder_public_details = attributes[:'slack_noti_forwarder_public_details']
|
|
256
260
|
end
|
|
257
261
|
|
|
262
|
+
if attributes.key?(:'teams_noti_forwarder_public_details')
|
|
263
|
+
self.teams_noti_forwarder_public_details = attributes[:'teams_noti_forwarder_public_details']
|
|
264
|
+
end
|
|
265
|
+
|
|
258
266
|
if attributes.key?(:'timespan_in_seconds')
|
|
259
267
|
self.timespan_in_seconds = attributes[:'timespan_in_seconds']
|
|
260
268
|
end
|
|
@@ -323,6 +331,7 @@ module Akeyless
|
|
|
323
331
|
protection_key == o.protection_key &&
|
|
324
332
|
runner_type == o.runner_type &&
|
|
325
333
|
slack_noti_forwarder_public_details == o.slack_noti_forwarder_public_details &&
|
|
334
|
+
teams_noti_forwarder_public_details == o.teams_noti_forwarder_public_details &&
|
|
326
335
|
timespan_in_seconds == o.timespan_in_seconds &&
|
|
327
336
|
to_emails == o.to_emails &&
|
|
328
337
|
user_email == o.user_email &&
|
|
@@ -340,7 +349,7 @@ module Akeyless
|
|
|
340
349
|
# Calculates hash code according to all attributes.
|
|
341
350
|
# @return [Integer] Hash code
|
|
342
351
|
def hash
|
|
343
|
-
[auth_type, client_id, client_permissions, comment, creation_date, endpoint, event_types, gateway_cluster_id, include_error, is_enabled, last_version, modification_date, noti_forwarder_id, noti_forwarder_name, noti_forwarder_type, noti_forwarder_versions, override_url, paths, protection_key, runner_type, slack_noti_forwarder_public_details, timespan_in_seconds, to_emails, user_email, username, webhook_noti_forwarder_public_details, with_customer_fragment].hash
|
|
352
|
+
[auth_type, client_id, client_permissions, comment, creation_date, endpoint, event_types, gateway_cluster_id, include_error, is_enabled, last_version, modification_date, noti_forwarder_id, noti_forwarder_name, noti_forwarder_type, noti_forwarder_versions, override_url, paths, protection_key, runner_type, slack_noti_forwarder_public_details, teams_noti_forwarder_public_details, timespan_in_seconds, to_emails, user_email, username, webhook_noti_forwarder_public_details, with_customer_fragment].hash
|
|
344
353
|
end
|
|
345
354
|
|
|
346
355
|
# Builds the object from hash
|
|
@@ -20,20 +20,20 @@ module Akeyless
|
|
|
20
20
|
|
|
21
21
|
attr_accessor :api_key_id
|
|
22
22
|
|
|
23
|
-
attr_accessor :model
|
|
24
|
-
|
|
25
23
|
attr_accessor :openai_url
|
|
26
24
|
|
|
27
25
|
attr_accessor :organization_id
|
|
28
26
|
|
|
27
|
+
attr_accessor :project_id
|
|
28
|
+
|
|
29
29
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
30
30
|
def self.attribute_map
|
|
31
31
|
{
|
|
32
32
|
:'api_key' => :'api_key',
|
|
33
33
|
:'api_key_id' => :'api_key_id',
|
|
34
|
-
:'model' => :'model',
|
|
35
34
|
:'openai_url' => :'openai_url',
|
|
36
|
-
:'organization_id' => :'organization_id'
|
|
35
|
+
:'organization_id' => :'organization_id',
|
|
36
|
+
:'project_id' => :'project_id'
|
|
37
37
|
}
|
|
38
38
|
end
|
|
39
39
|
|
|
@@ -47,9 +47,9 @@ module Akeyless
|
|
|
47
47
|
{
|
|
48
48
|
:'api_key' => :'String',
|
|
49
49
|
:'api_key_id' => :'String',
|
|
50
|
-
:'model' => :'String',
|
|
51
50
|
:'openai_url' => :'String',
|
|
52
|
-
:'organization_id' => :'String'
|
|
51
|
+
:'organization_id' => :'String',
|
|
52
|
+
:'project_id' => :'String'
|
|
53
53
|
}
|
|
54
54
|
end
|
|
55
55
|
|
|
@@ -82,10 +82,6 @@ module Akeyless
|
|
|
82
82
|
self.api_key_id = attributes[:'api_key_id']
|
|
83
83
|
end
|
|
84
84
|
|
|
85
|
-
if attributes.key?(:'model')
|
|
86
|
-
self.model = attributes[:'model']
|
|
87
|
-
end
|
|
88
|
-
|
|
89
85
|
if attributes.key?(:'openai_url')
|
|
90
86
|
self.openai_url = attributes[:'openai_url']
|
|
91
87
|
end
|
|
@@ -93,6 +89,10 @@ module Akeyless
|
|
|
93
89
|
if attributes.key?(:'organization_id')
|
|
94
90
|
self.organization_id = attributes[:'organization_id']
|
|
95
91
|
end
|
|
92
|
+
|
|
93
|
+
if attributes.key?(:'project_id')
|
|
94
|
+
self.project_id = attributes[:'project_id']
|
|
95
|
+
end
|
|
96
96
|
end
|
|
97
97
|
|
|
98
98
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -117,9 +117,9 @@ module Akeyless
|
|
|
117
117
|
self.class == o.class &&
|
|
118
118
|
api_key == o.api_key &&
|
|
119
119
|
api_key_id == o.api_key_id &&
|
|
120
|
-
model == o.model &&
|
|
121
120
|
openai_url == o.openai_url &&
|
|
122
|
-
organization_id == o.organization_id
|
|
121
|
+
organization_id == o.organization_id &&
|
|
122
|
+
project_id == o.project_id
|
|
123
123
|
end
|
|
124
124
|
|
|
125
125
|
# @see the `==` method
|
|
@@ -131,7 +131,7 @@ module Akeyless
|
|
|
131
131
|
# Calculates hash code according to all attributes.
|
|
132
132
|
# @return [Integer] Hash code
|
|
133
133
|
def hash
|
|
134
|
-
[api_key, api_key_id,
|
|
134
|
+
[api_key, api_key_id, openai_url, organization_id, project_id].hash
|
|
135
135
|
end
|
|
136
136
|
|
|
137
137
|
# Builds the object from hash
|
|
@@ -21,6 +21,8 @@ module Akeyless
|
|
|
21
21
|
|
|
22
22
|
attr_accessor :expiration
|
|
23
23
|
|
|
24
|
+
attr_accessor :key_id
|
|
25
|
+
|
|
24
26
|
attr_accessor :last_retrieved
|
|
25
27
|
|
|
26
28
|
attr_accessor :location
|
|
@@ -45,6 +47,7 @@ module Akeyless
|
|
|
45
47
|
:'created' => :'created',
|
|
46
48
|
:'description' => :'description',
|
|
47
49
|
:'expiration' => :'expiration',
|
|
50
|
+
:'key_id' => :'key_id',
|
|
48
51
|
:'last_retrieved' => :'last_retrieved',
|
|
49
52
|
:'location' => :'location',
|
|
50
53
|
:'name' => :'name',
|
|
@@ -68,6 +71,7 @@ module Akeyless
|
|
|
68
71
|
:'created' => :'Time',
|
|
69
72
|
:'description' => :'String',
|
|
70
73
|
:'expiration' => :'Time',
|
|
74
|
+
:'key_id' => :'String',
|
|
71
75
|
:'last_retrieved' => :'Time',
|
|
72
76
|
:'location' => :'Object',
|
|
73
77
|
:'name' => :'String',
|
|
@@ -114,6 +118,10 @@ module Akeyless
|
|
|
114
118
|
self.expiration = attributes[:'expiration']
|
|
115
119
|
end
|
|
116
120
|
|
|
121
|
+
if attributes.key?(:'key_id')
|
|
122
|
+
self.key_id = attributes[:'key_id']
|
|
123
|
+
end
|
|
124
|
+
|
|
117
125
|
if attributes.key?(:'last_retrieved')
|
|
118
126
|
self.last_retrieved = attributes[:'last_retrieved']
|
|
119
127
|
end
|
|
@@ -176,6 +184,7 @@ module Akeyless
|
|
|
176
184
|
created == o.created &&
|
|
177
185
|
description == o.description &&
|
|
178
186
|
expiration == o.expiration &&
|
|
187
|
+
key_id == o.key_id &&
|
|
179
188
|
last_retrieved == o.last_retrieved &&
|
|
180
189
|
location == o.location &&
|
|
181
190
|
name == o.name &&
|
|
@@ -196,7 +205,7 @@ module Akeyless
|
|
|
196
205
|
# Calculates hash code according to all attributes.
|
|
197
206
|
# @return [Integer] Hash code
|
|
198
207
|
def hash
|
|
199
|
-
[created, description, expiration, last_retrieved, location, name, secret_id, status, tags, thumbprint, type, version].hash
|
|
208
|
+
[created, description, expiration, key_id, last_retrieved, location, name, secret_id, status, tags, thumbprint, type, version].hash
|
|
200
209
|
end
|
|
201
210
|
|
|
202
211
|
# Builds the object from hash
|
|
@@ -45,6 +45,9 @@ module Akeyless
|
|
|
45
45
|
# The universal identity token, Required only for universal_identity authentication
|
|
46
46
|
attr_accessor :uid_token
|
|
47
47
|
|
|
48
|
+
# Optional, The name of the remote key that used to encrypt the secret value (if empty, the default key will be used)
|
|
49
|
+
attr_accessor :usc_encryption_key
|
|
50
|
+
|
|
48
51
|
# Name of the Universal Secrets Connector item
|
|
49
52
|
attr_accessor :usc_name
|
|
50
53
|
|
|
@@ -64,6 +67,7 @@ module Akeyless
|
|
|
64
67
|
:'tags' => :'tags',
|
|
65
68
|
:'token' => :'token',
|
|
66
69
|
:'uid_token' => :'uid-token',
|
|
70
|
+
:'usc_encryption_key' => :'usc-encryption-key',
|
|
67
71
|
:'usc_name' => :'usc-name',
|
|
68
72
|
:'value' => :'value'
|
|
69
73
|
}
|
|
@@ -87,6 +91,7 @@ module Akeyless
|
|
|
87
91
|
:'tags' => :'Hash<String, String>',
|
|
88
92
|
:'token' => :'String',
|
|
89
93
|
:'uid_token' => :'String',
|
|
94
|
+
:'usc_encryption_key' => :'String',
|
|
90
95
|
:'usc_name' => :'String',
|
|
91
96
|
:'value' => :'String'
|
|
92
97
|
}
|
|
@@ -159,6 +164,10 @@ module Akeyless
|
|
|
159
164
|
self.uid_token = attributes[:'uid_token']
|
|
160
165
|
end
|
|
161
166
|
|
|
167
|
+
if attributes.key?(:'usc_encryption_key')
|
|
168
|
+
self.usc_encryption_key = attributes[:'usc_encryption_key']
|
|
169
|
+
end
|
|
170
|
+
|
|
162
171
|
if attributes.key?(:'usc_name')
|
|
163
172
|
self.usc_name = attributes[:'usc_name']
|
|
164
173
|
else
|
|
@@ -217,6 +226,7 @@ module Akeyless
|
|
|
217
226
|
tags == o.tags &&
|
|
218
227
|
token == o.token &&
|
|
219
228
|
uid_token == o.uid_token &&
|
|
229
|
+
usc_encryption_key == o.usc_encryption_key &&
|
|
220
230
|
usc_name == o.usc_name &&
|
|
221
231
|
value == o.value
|
|
222
232
|
end
|
|
@@ -230,7 +240,7 @@ module Akeyless
|
|
|
230
240
|
# Calculates hash code according to all attributes.
|
|
231
241
|
# @return [Integer] Hash code
|
|
232
242
|
def hash
|
|
233
|
-
[binary_value, description, json, namespace, object_type, pfx_password, secret_name, tags, token, uid_token, usc_name, value].hash
|
|
243
|
+
[binary_value, description, json, namespace, object_type, pfx_password, secret_name, tags, token, uid_token, usc_encryption_key, usc_name, value].hash
|
|
234
244
|
end
|
|
235
245
|
|
|
236
246
|
# Builds the object from hash
|
|
@@ -17,6 +17,8 @@ module Akeyless
|
|
|
17
17
|
class UscGetSecretOutput
|
|
18
18
|
attr_accessor :binary_value
|
|
19
19
|
|
|
20
|
+
attr_accessor :encryption_key
|
|
21
|
+
|
|
20
22
|
attr_accessor :id
|
|
21
23
|
|
|
22
24
|
attr_accessor :metadata
|
|
@@ -29,6 +31,7 @@ module Akeyless
|
|
|
29
31
|
def self.attribute_map
|
|
30
32
|
{
|
|
31
33
|
:'binary_value' => :'binary_value',
|
|
34
|
+
:'encryption_key' => :'encryption_key',
|
|
32
35
|
:'id' => :'id',
|
|
33
36
|
:'metadata' => :'metadata',
|
|
34
37
|
:'name' => :'name',
|
|
@@ -45,6 +48,7 @@ module Akeyless
|
|
|
45
48
|
def self.openapi_types
|
|
46
49
|
{
|
|
47
50
|
:'binary_value' => :'Boolean',
|
|
51
|
+
:'encryption_key' => :'String',
|
|
48
52
|
:'id' => :'String',
|
|
49
53
|
:'metadata' => :'Object',
|
|
50
54
|
:'name' => :'String',
|
|
@@ -78,6 +82,10 @@ module Akeyless
|
|
|
78
82
|
self.binary_value = attributes[:'binary_value']
|
|
79
83
|
end
|
|
80
84
|
|
|
85
|
+
if attributes.key?(:'encryption_key')
|
|
86
|
+
self.encryption_key = attributes[:'encryption_key']
|
|
87
|
+
end
|
|
88
|
+
|
|
81
89
|
if attributes.key?(:'id')
|
|
82
90
|
self.id = attributes[:'id']
|
|
83
91
|
end
|
|
@@ -116,6 +124,7 @@ module Akeyless
|
|
|
116
124
|
return true if self.equal?(o)
|
|
117
125
|
self.class == o.class &&
|
|
118
126
|
binary_value == o.binary_value &&
|
|
127
|
+
encryption_key == o.encryption_key &&
|
|
119
128
|
id == o.id &&
|
|
120
129
|
metadata == o.metadata &&
|
|
121
130
|
name == o.name &&
|
|
@@ -131,7 +140,7 @@ module Akeyless
|
|
|
131
140
|
# Calculates hash code according to all attributes.
|
|
132
141
|
# @return [Integer] Hash code
|
|
133
142
|
def hash
|
|
134
|
-
[binary_value, id, metadata, name, value].hash
|
|
143
|
+
[binary_value, encryption_key, id, metadata, name, value].hash
|
|
135
144
|
end
|
|
136
145
|
|
|
137
146
|
# Builds the object from hash
|