akeyless 5.0.6 → 5.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +11 -1
- data/docs/AzureLogAnalyticsForwardingConfig.md +2 -0
- data/docs/CertificateTemplateInfo.md +2 -0
- data/docs/CreateClassicKey.md +3 -1
- data/docs/CreateDFCKey.md +3 -1
- data/docs/CreateKey.md +3 -1
- data/docs/GatewayUpdateLogForwardingAzureAnalytics.md +2 -0
- data/docs/GatewayUpdateLogForwardingSplunk.md +2 -0
- data/docs/GeminiTargetDetails.md +22 -0
- data/docs/GenerateCsr.md +2 -0
- data/docs/GwUpdateRemoteAccessSessionLogsAzureAnalytics.md +2 -0
- data/docs/GwUpdateRemoteAccessSessionLogsSplunk.md +2 -0
- data/docs/OpenAITargetDetails.md +26 -0
- data/docs/SplunkLogForwardingConfig.md +2 -0
- data/docs/StaticSecretSync.md +2 -0
- data/docs/TargetCreateGemini.md +36 -0
- data/docs/TargetCreateOpenAI.md +40 -0
- data/docs/TargetTypeDetailsInput.md +4 -0
- data/docs/TargetUpdateGemini.md +42 -0
- data/docs/TargetUpdateOpenAI.md +46 -0
- data/docs/V2Api.md +252 -0
- data/lib/akeyless/api/v2_api.rb +256 -0
- data/lib/akeyless/models/azure_log_analytics_forwarding_config.rb +10 -1
- data/lib/akeyless/models/certificate_template_info.rb +10 -1
- data/lib/akeyless/models/create_classic_key.rb +14 -2
- data/lib/akeyless/models/create_dfc_key.rb +14 -2
- data/lib/akeyless/models/create_key.rb +14 -2
- data/lib/akeyless/models/gateway_update_log_forwarding_azure_analytics.rb +13 -1
- data/lib/akeyless/models/gateway_update_log_forwarding_splunk.rb +13 -1
- data/lib/akeyless/models/gemini_target_details.rb +233 -0
- data/lib/akeyless/models/generate_csr.rb +13 -1
- data/lib/akeyless/models/gw_update_remote_access_session_logs_azure_analytics.rb +13 -1
- data/lib/akeyless/models/gw_update_remote_access_session_logs_splunk.rb +13 -1
- data/lib/akeyless/models/open_ai_target_details.rb +251 -0
- data/lib/akeyless/models/splunk_log_forwarding_config.rb +10 -1
- data/lib/akeyless/models/static_secret_sync.rb +11 -1
- data/lib/akeyless/models/target_create_gemini.rb +317 -0
- data/lib/akeyless/models/target_create_open_ai.rb +337 -0
- data/lib/akeyless/models/target_type_details_input.rb +19 -1
- data/lib/akeyless/models/target_update_gemini.rb +351 -0
- data/lib/akeyless/models/target_update_open_ai.rb +371 -0
- data/lib/akeyless/version.rb +1 -1
- data/lib/akeyless.rb +6 -0
- data/spec/models/gemini_target_details_spec.rb +48 -0
- data/spec/models/open_ai_target_details_spec.rb +60 -0
- data/spec/models/target_create_gemini_spec.rb +90 -0
- data/spec/models/target_create_open_ai_spec.rb +102 -0
- data/spec/models/target_update_gemini_spec.rb +108 -0
- data/spec/models/target_update_open_ai_spec.rb +120 -0
- metadata +25 -1
@@ -0,0 +1,371 @@
|
|
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
|
+
# targetUpdateOpenAI is a command that updates an existing openai target
|
18
|
+
class TargetUpdateOpenAI
|
19
|
+
# API key for OpenAI
|
20
|
+
attr_accessor :api_key
|
21
|
+
|
22
|
+
# API key ID
|
23
|
+
attr_accessor :api_key_id
|
24
|
+
|
25
|
+
# Description of the object
|
26
|
+
attr_accessor :description
|
27
|
+
|
28
|
+
# Set output format to JSON
|
29
|
+
attr_accessor :json
|
30
|
+
|
31
|
+
# Whether to keep previous version [true/false]. If not set, use default according to account settings
|
32
|
+
attr_accessor :keep_prev_version
|
33
|
+
|
34
|
+
# The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used)
|
35
|
+
attr_accessor :key
|
36
|
+
|
37
|
+
# Set the maximum number of versions, limited by the account settings defaults.
|
38
|
+
attr_accessor :max_versions
|
39
|
+
|
40
|
+
# Default model to use with OpenAI
|
41
|
+
attr_accessor :model
|
42
|
+
|
43
|
+
# Target name
|
44
|
+
attr_accessor :name
|
45
|
+
|
46
|
+
# Deprecated - use description
|
47
|
+
attr_accessor :new_comment
|
48
|
+
|
49
|
+
# New target name
|
50
|
+
attr_accessor :new_name
|
51
|
+
|
52
|
+
# Base URL of the OpenAI API
|
53
|
+
attr_accessor :openai_url
|
54
|
+
|
55
|
+
# Organization ID
|
56
|
+
attr_accessor :organization_id
|
57
|
+
|
58
|
+
# Authentication token (see `/auth` and `/configure`)
|
59
|
+
attr_accessor :token
|
60
|
+
|
61
|
+
# The universal identity token, Required only for universal_identity authentication
|
62
|
+
attr_accessor :uid_token
|
63
|
+
|
64
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
65
|
+
def self.attribute_map
|
66
|
+
{
|
67
|
+
:'api_key' => :'api-key',
|
68
|
+
:'api_key_id' => :'api-key-id',
|
69
|
+
:'description' => :'description',
|
70
|
+
:'json' => :'json',
|
71
|
+
:'keep_prev_version' => :'keep-prev-version',
|
72
|
+
:'key' => :'key',
|
73
|
+
:'max_versions' => :'max-versions',
|
74
|
+
:'model' => :'model',
|
75
|
+
:'name' => :'name',
|
76
|
+
:'new_comment' => :'new-comment',
|
77
|
+
:'new_name' => :'new-name',
|
78
|
+
:'openai_url' => :'openai-url',
|
79
|
+
:'organization_id' => :'organization-id',
|
80
|
+
:'token' => :'token',
|
81
|
+
:'uid_token' => :'uid-token'
|
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
|
+
:'api_key' => :'String',
|
94
|
+
:'api_key_id' => :'String',
|
95
|
+
:'description' => :'String',
|
96
|
+
:'json' => :'Boolean',
|
97
|
+
:'keep_prev_version' => :'String',
|
98
|
+
:'key' => :'String',
|
99
|
+
:'max_versions' => :'String',
|
100
|
+
:'model' => :'String',
|
101
|
+
:'name' => :'String',
|
102
|
+
:'new_comment' => :'String',
|
103
|
+
:'new_name' => :'String',
|
104
|
+
:'openai_url' => :'String',
|
105
|
+
:'organization_id' => :'String',
|
106
|
+
:'token' => :'String',
|
107
|
+
:'uid_token' => :'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::TargetUpdateOpenAI` 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::TargetUpdateOpenAI`. 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?(:'api_key')
|
133
|
+
self.api_key = attributes[:'api_key']
|
134
|
+
end
|
135
|
+
|
136
|
+
if attributes.key?(:'api_key_id')
|
137
|
+
self.api_key_id = attributes[:'api_key_id']
|
138
|
+
end
|
139
|
+
|
140
|
+
if attributes.key?(:'description')
|
141
|
+
self.description = attributes[:'description']
|
142
|
+
else
|
143
|
+
self.description = 'default_comment'
|
144
|
+
end
|
145
|
+
|
146
|
+
if attributes.key?(:'json')
|
147
|
+
self.json = attributes[:'json']
|
148
|
+
else
|
149
|
+
self.json = false
|
150
|
+
end
|
151
|
+
|
152
|
+
if attributes.key?(:'keep_prev_version')
|
153
|
+
self.keep_prev_version = attributes[:'keep_prev_version']
|
154
|
+
end
|
155
|
+
|
156
|
+
if attributes.key?(:'key')
|
157
|
+
self.key = attributes[:'key']
|
158
|
+
end
|
159
|
+
|
160
|
+
if attributes.key?(:'max_versions')
|
161
|
+
self.max_versions = attributes[:'max_versions']
|
162
|
+
end
|
163
|
+
|
164
|
+
if attributes.key?(:'model')
|
165
|
+
self.model = attributes[:'model']
|
166
|
+
end
|
167
|
+
|
168
|
+
if attributes.key?(:'name')
|
169
|
+
self.name = attributes[:'name']
|
170
|
+
else
|
171
|
+
self.name = nil
|
172
|
+
end
|
173
|
+
|
174
|
+
if attributes.key?(:'new_comment')
|
175
|
+
self.new_comment = attributes[:'new_comment']
|
176
|
+
else
|
177
|
+
self.new_comment = 'default_comment'
|
178
|
+
end
|
179
|
+
|
180
|
+
if attributes.key?(:'new_name')
|
181
|
+
self.new_name = attributes[:'new_name']
|
182
|
+
end
|
183
|
+
|
184
|
+
if attributes.key?(:'openai_url')
|
185
|
+
self.openai_url = attributes[:'openai_url']
|
186
|
+
else
|
187
|
+
self.openai_url = 'https://api.openai.com/v1'
|
188
|
+
end
|
189
|
+
|
190
|
+
if attributes.key?(:'organization_id')
|
191
|
+
self.organization_id = attributes[:'organization_id']
|
192
|
+
end
|
193
|
+
|
194
|
+
if attributes.key?(:'token')
|
195
|
+
self.token = attributes[:'token']
|
196
|
+
end
|
197
|
+
|
198
|
+
if attributes.key?(:'uid_token')
|
199
|
+
self.uid_token = attributes[:'uid_token']
|
200
|
+
end
|
201
|
+
end
|
202
|
+
|
203
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
204
|
+
# @return Array for valid properties with the reasons
|
205
|
+
def list_invalid_properties
|
206
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
207
|
+
invalid_properties = Array.new
|
208
|
+
if @name.nil?
|
209
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
210
|
+
end
|
211
|
+
|
212
|
+
invalid_properties
|
213
|
+
end
|
214
|
+
|
215
|
+
# Check to see if the all the properties in the model are valid
|
216
|
+
# @return true if the model is valid
|
217
|
+
def valid?
|
218
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
219
|
+
return false if @name.nil?
|
220
|
+
true
|
221
|
+
end
|
222
|
+
|
223
|
+
# Checks equality by comparing each attribute.
|
224
|
+
# @param [Object] Object to be compared
|
225
|
+
def ==(o)
|
226
|
+
return true if self.equal?(o)
|
227
|
+
self.class == o.class &&
|
228
|
+
api_key == o.api_key &&
|
229
|
+
api_key_id == o.api_key_id &&
|
230
|
+
description == o.description &&
|
231
|
+
json == o.json &&
|
232
|
+
keep_prev_version == o.keep_prev_version &&
|
233
|
+
key == o.key &&
|
234
|
+
max_versions == o.max_versions &&
|
235
|
+
model == o.model &&
|
236
|
+
name == o.name &&
|
237
|
+
new_comment == o.new_comment &&
|
238
|
+
new_name == o.new_name &&
|
239
|
+
openai_url == o.openai_url &&
|
240
|
+
organization_id == o.organization_id &&
|
241
|
+
token == o.token &&
|
242
|
+
uid_token == o.uid_token
|
243
|
+
end
|
244
|
+
|
245
|
+
# @see the `==` method
|
246
|
+
# @param [Object] Object to be compared
|
247
|
+
def eql?(o)
|
248
|
+
self == o
|
249
|
+
end
|
250
|
+
|
251
|
+
# Calculates hash code according to all attributes.
|
252
|
+
# @return [Integer] Hash code
|
253
|
+
def hash
|
254
|
+
[api_key, api_key_id, description, json, keep_prev_version, key, max_versions, model, name, new_comment, new_name, openai_url, organization_id, token, uid_token].hash
|
255
|
+
end
|
256
|
+
|
257
|
+
# Builds the object from hash
|
258
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
259
|
+
# @return [Object] Returns the model itself
|
260
|
+
def self.build_from_hash(attributes)
|
261
|
+
return nil unless attributes.is_a?(Hash)
|
262
|
+
attributes = attributes.transform_keys(&:to_sym)
|
263
|
+
transformed_hash = {}
|
264
|
+
openapi_types.each_pair do |key, type|
|
265
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
266
|
+
transformed_hash["#{key}"] = nil
|
267
|
+
elsif type =~ /\AArray<(.*)>/i
|
268
|
+
# check to ensure the input is an array given that the attribute
|
269
|
+
# is documented as an array but the input is not
|
270
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
271
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
272
|
+
end
|
273
|
+
elsif !attributes[attribute_map[key]].nil?
|
274
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
275
|
+
end
|
276
|
+
end
|
277
|
+
new(transformed_hash)
|
278
|
+
end
|
279
|
+
|
280
|
+
# Deserializes the data based on type
|
281
|
+
# @param string type Data type
|
282
|
+
# @param string value Value to be deserialized
|
283
|
+
# @return [Object] Deserialized data
|
284
|
+
def self._deserialize(type, value)
|
285
|
+
case type.to_sym
|
286
|
+
when :Time
|
287
|
+
Time.parse(value)
|
288
|
+
when :Date
|
289
|
+
Date.parse(value)
|
290
|
+
when :String
|
291
|
+
value.to_s
|
292
|
+
when :Integer
|
293
|
+
value.to_i
|
294
|
+
when :Float
|
295
|
+
value.to_f
|
296
|
+
when :Boolean
|
297
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
298
|
+
true
|
299
|
+
else
|
300
|
+
false
|
301
|
+
end
|
302
|
+
when :Object
|
303
|
+
# generic object (usually a Hash), return directly
|
304
|
+
value
|
305
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
306
|
+
inner_type = Regexp.last_match[:inner_type]
|
307
|
+
value.map { |v| _deserialize(inner_type, v) }
|
308
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
309
|
+
k_type = Regexp.last_match[:k_type]
|
310
|
+
v_type = Regexp.last_match[:v_type]
|
311
|
+
{}.tap do |hash|
|
312
|
+
value.each do |k, v|
|
313
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
314
|
+
end
|
315
|
+
end
|
316
|
+
else # model
|
317
|
+
# models (e.g. Pet) or oneOf
|
318
|
+
klass = Akeyless.const_get(type)
|
319
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
320
|
+
end
|
321
|
+
end
|
322
|
+
|
323
|
+
# Returns the string representation of the object
|
324
|
+
# @return [String] String presentation of the object
|
325
|
+
def to_s
|
326
|
+
to_hash.to_s
|
327
|
+
end
|
328
|
+
|
329
|
+
# to_body is an alias to to_hash (backward compatibility)
|
330
|
+
# @return [Hash] Returns the object in the form of hash
|
331
|
+
def to_body
|
332
|
+
to_hash
|
333
|
+
end
|
334
|
+
|
335
|
+
# Returns the object in the form of hash
|
336
|
+
# @return [Hash] Returns the object in the form of hash
|
337
|
+
def to_hash
|
338
|
+
hash = {}
|
339
|
+
self.class.attribute_map.each_pair do |attr, param|
|
340
|
+
value = self.send(attr)
|
341
|
+
if value.nil?
|
342
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
343
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
344
|
+
end
|
345
|
+
|
346
|
+
hash[param] = _to_hash(value)
|
347
|
+
end
|
348
|
+
hash
|
349
|
+
end
|
350
|
+
|
351
|
+
# Outputs non-array value in the form of hash
|
352
|
+
# For object, use to_hash. Otherwise, just return the value
|
353
|
+
# @param [Object] value Any valid value
|
354
|
+
# @return [Hash] Returns the value in the form of hash
|
355
|
+
def _to_hash(value)
|
356
|
+
if value.is_a?(Array)
|
357
|
+
value.compact.map { |v| _to_hash(v) }
|
358
|
+
elsif value.is_a?(Hash)
|
359
|
+
{}.tap do |hash|
|
360
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
361
|
+
end
|
362
|
+
elsif value.respond_to? :to_hash
|
363
|
+
value.to_hash
|
364
|
+
else
|
365
|
+
value
|
366
|
+
end
|
367
|
+
end
|
368
|
+
|
369
|
+
end
|
370
|
+
|
371
|
+
end
|
data/lib/akeyless/version.rb
CHANGED
data/lib/akeyless.rb
CHANGED
@@ -595,6 +595,7 @@ require 'akeyless/models/gateway_update_tls_cert_output'
|
|
595
595
|
require 'akeyless/models/gateway_update_tmp_users'
|
596
596
|
require 'akeyless/models/gateways_list_response'
|
597
597
|
require 'akeyless/models/gcp_target_details'
|
598
|
+
require 'akeyless/models/gemini_target_details'
|
598
599
|
require 'akeyless/models/gen_customer_fragment'
|
599
600
|
require 'akeyless/models/general_config_part'
|
600
601
|
require 'akeyless/models/generate_acme_eab'
|
@@ -764,6 +765,7 @@ require 'akeyless/models/object_version_settings_output'
|
|
764
765
|
require 'akeyless/models/oidc_client_info'
|
765
766
|
require 'akeyless/models/one_password_migration'
|
766
767
|
require 'akeyless/models/one_password_payload'
|
768
|
+
require 'akeyless/models/open_ai_target_details'
|
767
769
|
require 'akeyless/models/pki_certificate_issue_details'
|
768
770
|
require 'akeyless/models/password_breach_info'
|
769
771
|
require 'akeyless/models/password_expiration_info'
|
@@ -912,6 +914,7 @@ require 'akeyless/models/target_create_db'
|
|
912
914
|
require 'akeyless/models/target_create_dockerhub'
|
913
915
|
require 'akeyless/models/target_create_eks'
|
914
916
|
require 'akeyless/models/target_create_gcp'
|
917
|
+
require 'akeyless/models/target_create_gemini'
|
915
918
|
require 'akeyless/models/target_create_github'
|
916
919
|
require 'akeyless/models/target_create_gitlab'
|
917
920
|
require 'akeyless/models/target_create_gke'
|
@@ -922,6 +925,7 @@ require 'akeyless/models/target_create_hashi_vault'
|
|
922
925
|
require 'akeyless/models/target_create_k8s'
|
923
926
|
require 'akeyless/models/target_create_ldap'
|
924
927
|
require 'akeyless/models/target_create_linked'
|
928
|
+
require 'akeyless/models/target_create_open_ai'
|
925
929
|
require 'akeyless/models/target_create_output'
|
926
930
|
require 'akeyless/models/target_create_ping'
|
927
931
|
require 'akeyless/models/target_create_rabbit_mq'
|
@@ -946,6 +950,7 @@ require 'akeyless/models/target_update_db'
|
|
946
950
|
require 'akeyless/models/target_update_dockerhub'
|
947
951
|
require 'akeyless/models/target_update_eks'
|
948
952
|
require 'akeyless/models/target_update_gcp'
|
953
|
+
require 'akeyless/models/target_update_gemini'
|
949
954
|
require 'akeyless/models/target_update_github'
|
950
955
|
require 'akeyless/models/target_update_gitlab'
|
951
956
|
require 'akeyless/models/target_update_gke'
|
@@ -956,6 +961,7 @@ require 'akeyless/models/target_update_hashi_vault'
|
|
956
961
|
require 'akeyless/models/target_update_k8s'
|
957
962
|
require 'akeyless/models/target_update_ldap'
|
958
963
|
require 'akeyless/models/target_update_linked'
|
964
|
+
require 'akeyless/models/target_update_open_ai'
|
959
965
|
require 'akeyless/models/target_update_output'
|
960
966
|
require 'akeyless/models/target_update_ping'
|
961
967
|
require 'akeyless/models/target_update_rabbit_mq'
|
@@ -0,0 +1,48 @@
|
|
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 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for Akeyless::GeminiTargetDetails
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe Akeyless::GeminiTargetDetails do
|
21
|
+
let(:instance) { Akeyless::GeminiTargetDetails.new }
|
22
|
+
|
23
|
+
describe 'test an instance of GeminiTargetDetails' do
|
24
|
+
it 'should create an instance of GeminiTargetDetails' do
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(Akeyless::GeminiTargetDetails)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test attribute "api_key"' do
|
31
|
+
it 'should work' do
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
describe 'test attribute "base_url"' do
|
37
|
+
it 'should work' do
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
describe 'test attribute "model"' do
|
43
|
+
it 'should work' do
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
end
|
@@ -0,0 +1,60 @@
|
|
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 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for Akeyless::OpenAITargetDetails
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe Akeyless::OpenAITargetDetails do
|
21
|
+
let(:instance) { Akeyless::OpenAITargetDetails.new }
|
22
|
+
|
23
|
+
describe 'test an instance of OpenAITargetDetails' do
|
24
|
+
it 'should create an instance of OpenAITargetDetails' do
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(Akeyless::OpenAITargetDetails)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test attribute "api_key"' do
|
31
|
+
it 'should work' do
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
describe 'test attribute "api_key_id"' do
|
37
|
+
it 'should work' do
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
describe 'test attribute "base_url"' do
|
43
|
+
it 'should work' do
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
describe 'test attribute "model"' do
|
49
|
+
it 'should work' do
|
50
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
describe 'test attribute "organization_id"' do
|
55
|
+
it 'should work' do
|
56
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
end
|
@@ -0,0 +1,90 @@
|
|
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 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for Akeyless::TargetCreateGemini
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe Akeyless::TargetCreateGemini do
|
21
|
+
let(:instance) { Akeyless::TargetCreateGemini.new }
|
22
|
+
|
23
|
+
describe 'test an instance of TargetCreateGemini' do
|
24
|
+
it 'should create an instance of TargetCreateGemini' do
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(Akeyless::TargetCreateGemini)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test attribute "api_key"' do
|
31
|
+
it 'should work' do
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
describe 'test attribute "description"' do
|
37
|
+
it 'should work' do
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
describe 'test attribute "gemini_url"' do
|
43
|
+
it 'should work' do
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
describe 'test attribute "json"' do
|
49
|
+
it 'should work' do
|
50
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
describe 'test attribute "key"' do
|
55
|
+
it 'should work' do
|
56
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
describe 'test attribute "max_versions"' do
|
61
|
+
it 'should work' do
|
62
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
describe 'test attribute "model"' do
|
67
|
+
it 'should work' do
|
68
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
describe 'test attribute "name"' do
|
73
|
+
it 'should work' do
|
74
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
describe 'test attribute "token"' do
|
79
|
+
it 'should work' do
|
80
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
describe 'test attribute "uid_token"' do
|
85
|
+
it 'should work' do
|
86
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
90
|
+
end
|