akeyless 3.3.12 → 3.3.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +12 -1
- data/docs/AccessPermissionAssignment.md +20 -0
- data/docs/CreateAuthMethodEmail.md +36 -0
- data/docs/CreateAuthMethodEmailOutput.md +18 -0
- data/docs/CreatePKICertIssuer.md +2 -0
- data/docs/EsmDeleteSecretOutput.md +18 -0
- data/docs/EsmGetSecretOutput.md +2 -0
- data/docs/EsmUpdateSecretOutput.md +2 -0
- data/docs/GoogleChronicleForwardingConfig.md +24 -0
- data/docs/ItemGeneralInfo.md +2 -0
- data/docs/LogForwardingConfigPart.md +2 -0
- data/docs/OidcClientInfo.md +34 -0
- data/docs/UpdatePKICertIssuer.md +2 -0
- data/docs/V2Api.md +319 -4
- data/lib/akeyless/api/v2_api.rb +323 -3
- data/lib/akeyless/models/access_permission_assignment.rb +230 -0
- data/lib/akeyless/models/create_auth_method_email.rb +331 -0
- data/lib/akeyless/models/create_auth_method_email_output.rb +219 -0
- data/lib/akeyless/models/create_pki_cert_issuer.rb +11 -1
- data/lib/akeyless/models/esm_delete_secret_output.rb +219 -0
- data/lib/akeyless/models/esm_get_secret_output.rb +10 -1
- data/lib/akeyless/models/esm_update_secret_output.rb +10 -1
- data/lib/akeyless/models/google_chronicle_forwarding_config.rb +246 -0
- data/lib/akeyless/models/item_general_info.rb +10 -1
- data/lib/akeyless/models/log_forwarding_config_part.rb +10 -1
- data/lib/akeyless/models/oidc_client_info.rb +305 -0
- data/lib/akeyless/models/update_pki_cert_issuer.rb +11 -1
- data/lib/akeyless/version.rb +1 -1
- data/lib/akeyless.rb +6 -0
- data/spec/models/access_permission_assignment_spec.rb +40 -0
- data/spec/models/create_auth_method_email_output_spec.rb +34 -0
- data/spec/models/create_auth_method_email_spec.rb +88 -0
- data/spec/models/esm_delete_secret_output_spec.rb +34 -0
- data/spec/models/google_chronicle_forwarding_config_spec.rb +52 -0
- data/spec/models/oidc_client_info_spec.rb +82 -0
- metadata +649 -625
@@ -0,0 +1,305 @@
|
|
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: 7.0.0-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module Akeyless
|
17
|
+
class OidcClientInfo
|
18
|
+
attr_accessor :access_permission_assignment
|
19
|
+
|
20
|
+
attr_accessor :audience
|
21
|
+
|
22
|
+
attr_accessor :client_id
|
23
|
+
|
24
|
+
attr_accessor :grant_types
|
25
|
+
|
26
|
+
attr_accessor :logout_uris
|
27
|
+
|
28
|
+
attr_accessor :public
|
29
|
+
|
30
|
+
attr_accessor :redirect_uris
|
31
|
+
|
32
|
+
attr_accessor :response_types
|
33
|
+
|
34
|
+
attr_accessor :scopes
|
35
|
+
|
36
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
37
|
+
def self.attribute_map
|
38
|
+
{
|
39
|
+
:'access_permission_assignment' => :'access_permission_assignment',
|
40
|
+
:'audience' => :'audience',
|
41
|
+
:'client_id' => :'client-id',
|
42
|
+
:'grant_types' => :'grant_types',
|
43
|
+
:'logout_uris' => :'logout_uris',
|
44
|
+
:'public' => :'public',
|
45
|
+
:'redirect_uris' => :'redirect_uris',
|
46
|
+
:'response_types' => :'response_types',
|
47
|
+
:'scopes' => :'scopes'
|
48
|
+
}
|
49
|
+
end
|
50
|
+
|
51
|
+
# Returns all the JSON keys this model knows about
|
52
|
+
def self.acceptable_attributes
|
53
|
+
attribute_map.values
|
54
|
+
end
|
55
|
+
|
56
|
+
# Attribute type mapping.
|
57
|
+
def self.openapi_types
|
58
|
+
{
|
59
|
+
:'access_permission_assignment' => :'Array<AccessPermissionAssignment>',
|
60
|
+
:'audience' => :'Array<String>',
|
61
|
+
:'client_id' => :'String',
|
62
|
+
:'grant_types' => :'Array<String>',
|
63
|
+
:'logout_uris' => :'Array<String>',
|
64
|
+
:'public' => :'Boolean',
|
65
|
+
:'redirect_uris' => :'Array<String>',
|
66
|
+
:'response_types' => :'Array<String>',
|
67
|
+
:'scopes' => :'Array<String>'
|
68
|
+
}
|
69
|
+
end
|
70
|
+
|
71
|
+
# List of attributes with nullable: true
|
72
|
+
def self.openapi_nullable
|
73
|
+
Set.new([
|
74
|
+
])
|
75
|
+
end
|
76
|
+
|
77
|
+
# Initializes the object
|
78
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
79
|
+
def initialize(attributes = {})
|
80
|
+
if (!attributes.is_a?(Hash))
|
81
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Akeyless::OidcClientInfo` initialize method"
|
82
|
+
end
|
83
|
+
|
84
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
85
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
86
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
87
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Akeyless::OidcClientInfo`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
88
|
+
end
|
89
|
+
h[k.to_sym] = v
|
90
|
+
}
|
91
|
+
|
92
|
+
if attributes.key?(:'access_permission_assignment')
|
93
|
+
if (value = attributes[:'access_permission_assignment']).is_a?(Array)
|
94
|
+
self.access_permission_assignment = value
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
98
|
+
if attributes.key?(:'audience')
|
99
|
+
if (value = attributes[:'audience']).is_a?(Array)
|
100
|
+
self.audience = value
|
101
|
+
end
|
102
|
+
end
|
103
|
+
|
104
|
+
if attributes.key?(:'client_id')
|
105
|
+
self.client_id = attributes[:'client_id']
|
106
|
+
end
|
107
|
+
|
108
|
+
if attributes.key?(:'grant_types')
|
109
|
+
if (value = attributes[:'grant_types']).is_a?(Array)
|
110
|
+
self.grant_types = value
|
111
|
+
end
|
112
|
+
end
|
113
|
+
|
114
|
+
if attributes.key?(:'logout_uris')
|
115
|
+
if (value = attributes[:'logout_uris']).is_a?(Array)
|
116
|
+
self.logout_uris = value
|
117
|
+
end
|
118
|
+
end
|
119
|
+
|
120
|
+
if attributes.key?(:'public')
|
121
|
+
self.public = attributes[:'public']
|
122
|
+
end
|
123
|
+
|
124
|
+
if attributes.key?(:'redirect_uris')
|
125
|
+
if (value = attributes[:'redirect_uris']).is_a?(Array)
|
126
|
+
self.redirect_uris = value
|
127
|
+
end
|
128
|
+
end
|
129
|
+
|
130
|
+
if attributes.key?(:'response_types')
|
131
|
+
if (value = attributes[:'response_types']).is_a?(Array)
|
132
|
+
self.response_types = value
|
133
|
+
end
|
134
|
+
end
|
135
|
+
|
136
|
+
if attributes.key?(:'scopes')
|
137
|
+
if (value = attributes[:'scopes']).is_a?(Array)
|
138
|
+
self.scopes = value
|
139
|
+
end
|
140
|
+
end
|
141
|
+
end
|
142
|
+
|
143
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
144
|
+
# @return Array for valid properties with the reasons
|
145
|
+
def list_invalid_properties
|
146
|
+
invalid_properties = Array.new
|
147
|
+
invalid_properties
|
148
|
+
end
|
149
|
+
|
150
|
+
# Check to see if the all the properties in the model are valid
|
151
|
+
# @return true if the model is valid
|
152
|
+
def valid?
|
153
|
+
true
|
154
|
+
end
|
155
|
+
|
156
|
+
# Checks equality by comparing each attribute.
|
157
|
+
# @param [Object] Object to be compared
|
158
|
+
def ==(o)
|
159
|
+
return true if self.equal?(o)
|
160
|
+
self.class == o.class &&
|
161
|
+
access_permission_assignment == o.access_permission_assignment &&
|
162
|
+
audience == o.audience &&
|
163
|
+
client_id == o.client_id &&
|
164
|
+
grant_types == o.grant_types &&
|
165
|
+
logout_uris == o.logout_uris &&
|
166
|
+
public == o.public &&
|
167
|
+
redirect_uris == o.redirect_uris &&
|
168
|
+
response_types == o.response_types &&
|
169
|
+
scopes == o.scopes
|
170
|
+
end
|
171
|
+
|
172
|
+
# @see the `==` method
|
173
|
+
# @param [Object] Object to be compared
|
174
|
+
def eql?(o)
|
175
|
+
self == o
|
176
|
+
end
|
177
|
+
|
178
|
+
# Calculates hash code according to all attributes.
|
179
|
+
# @return [Integer] Hash code
|
180
|
+
def hash
|
181
|
+
[access_permission_assignment, audience, client_id, grant_types, logout_uris, public, redirect_uris, response_types, scopes].hash
|
182
|
+
end
|
183
|
+
|
184
|
+
# Builds the object from hash
|
185
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
186
|
+
# @return [Object] Returns the model itself
|
187
|
+
def self.build_from_hash(attributes)
|
188
|
+
new.build_from_hash(attributes)
|
189
|
+
end
|
190
|
+
|
191
|
+
# Builds the object from hash
|
192
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
193
|
+
# @return [Object] Returns the model itself
|
194
|
+
def build_from_hash(attributes)
|
195
|
+
return nil unless attributes.is_a?(Hash)
|
196
|
+
attributes = attributes.transform_keys(&:to_sym)
|
197
|
+
self.class.openapi_types.each_pair do |key, type|
|
198
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
199
|
+
self.send("#{key}=", nil)
|
200
|
+
elsif type =~ /\AArray<(.*)>/i
|
201
|
+
# check to ensure the input is an array given that the attribute
|
202
|
+
# is documented as an array but the input is not
|
203
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
204
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
205
|
+
end
|
206
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
207
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
208
|
+
end
|
209
|
+
end
|
210
|
+
|
211
|
+
self
|
212
|
+
end
|
213
|
+
|
214
|
+
# Deserializes the data based on type
|
215
|
+
# @param string type Data type
|
216
|
+
# @param string value Value to be deserialized
|
217
|
+
# @return [Object] Deserialized data
|
218
|
+
def _deserialize(type, value)
|
219
|
+
case type.to_sym
|
220
|
+
when :Time
|
221
|
+
Time.parse(value)
|
222
|
+
when :Date
|
223
|
+
Date.parse(value)
|
224
|
+
when :String
|
225
|
+
value.to_s
|
226
|
+
when :Integer
|
227
|
+
value.to_i
|
228
|
+
when :Float
|
229
|
+
value.to_f
|
230
|
+
when :Boolean
|
231
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
232
|
+
true
|
233
|
+
else
|
234
|
+
false
|
235
|
+
end
|
236
|
+
when :Object
|
237
|
+
# generic object (usually a Hash), return directly
|
238
|
+
value
|
239
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
240
|
+
inner_type = Regexp.last_match[:inner_type]
|
241
|
+
value.map { |v| _deserialize(inner_type, v) }
|
242
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
243
|
+
k_type = Regexp.last_match[:k_type]
|
244
|
+
v_type = Regexp.last_match[:v_type]
|
245
|
+
{}.tap do |hash|
|
246
|
+
value.each do |k, v|
|
247
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
248
|
+
end
|
249
|
+
end
|
250
|
+
else # model
|
251
|
+
# models (e.g. Pet) or oneOf
|
252
|
+
klass = Akeyless.const_get(type)
|
253
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
254
|
+
end
|
255
|
+
end
|
256
|
+
|
257
|
+
# Returns the string representation of the object
|
258
|
+
# @return [String] String presentation of the object
|
259
|
+
def to_s
|
260
|
+
to_hash.to_s
|
261
|
+
end
|
262
|
+
|
263
|
+
# to_body is an alias to to_hash (backward compatibility)
|
264
|
+
# @return [Hash] Returns the object in the form of hash
|
265
|
+
def to_body
|
266
|
+
to_hash
|
267
|
+
end
|
268
|
+
|
269
|
+
# Returns the object in the form of hash
|
270
|
+
# @return [Hash] Returns the object in the form of hash
|
271
|
+
def to_hash
|
272
|
+
hash = {}
|
273
|
+
self.class.attribute_map.each_pair do |attr, param|
|
274
|
+
value = self.send(attr)
|
275
|
+
if value.nil?
|
276
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
277
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
278
|
+
end
|
279
|
+
|
280
|
+
hash[param] = _to_hash(value)
|
281
|
+
end
|
282
|
+
hash
|
283
|
+
end
|
284
|
+
|
285
|
+
# Outputs non-array value in the form of hash
|
286
|
+
# For object, use to_hash. Otherwise, just return the value
|
287
|
+
# @param [Object] value Any valid value
|
288
|
+
# @return [Hash] Returns the value in the form of hash
|
289
|
+
def _to_hash(value)
|
290
|
+
if value.is_a?(Array)
|
291
|
+
value.compact.map { |v| _to_hash(v) }
|
292
|
+
elsif value.is_a?(Hash)
|
293
|
+
{}.tap do |hash|
|
294
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
295
|
+
end
|
296
|
+
elsif value.respond_to? :to_hash
|
297
|
+
value.to_hash
|
298
|
+
else
|
299
|
+
value
|
300
|
+
end
|
301
|
+
end
|
302
|
+
|
303
|
+
end
|
304
|
+
|
305
|
+
end
|
@@ -54,6 +54,9 @@ module Akeyless
|
|
54
54
|
# The GW cluster URL to issue the certificate from, required in Public CA mode
|
55
55
|
attr_accessor :gw_cluster_url
|
56
56
|
|
57
|
+
# If set, the basic constraints extension will be added to certificate
|
58
|
+
attr_accessor :is_ca
|
59
|
+
|
57
60
|
# Set output format to JSON
|
58
61
|
attr_accessor :json
|
59
62
|
|
@@ -130,6 +133,7 @@ module Akeyless
|
|
130
133
|
:'destination_path' => :'destination-path',
|
131
134
|
:'expiration_event_in' => :'expiration-event-in',
|
132
135
|
:'gw_cluster_url' => :'gw-cluster-url',
|
136
|
+
:'is_ca' => :'is-ca',
|
133
137
|
:'json' => :'json',
|
134
138
|
:'key_usage' => :'key-usage',
|
135
139
|
:'locality' => :'locality',
|
@@ -174,6 +178,7 @@ module Akeyless
|
|
174
178
|
:'destination_path' => :'String',
|
175
179
|
:'expiration_event_in' => :'Array<String>',
|
176
180
|
:'gw_cluster_url' => :'String',
|
181
|
+
:'is_ca' => :'Boolean',
|
177
182
|
:'json' => :'Boolean',
|
178
183
|
:'key_usage' => :'String',
|
179
184
|
:'locality' => :'String',
|
@@ -274,6 +279,10 @@ module Akeyless
|
|
274
279
|
self.gw_cluster_url = attributes[:'gw_cluster_url']
|
275
280
|
end
|
276
281
|
|
282
|
+
if attributes.key?(:'is_ca')
|
283
|
+
self.is_ca = attributes[:'is_ca']
|
284
|
+
end
|
285
|
+
|
277
286
|
if attributes.key?(:'json')
|
278
287
|
self.json = attributes[:'json']
|
279
288
|
else
|
@@ -409,6 +418,7 @@ module Akeyless
|
|
409
418
|
destination_path == o.destination_path &&
|
410
419
|
expiration_event_in == o.expiration_event_in &&
|
411
420
|
gw_cluster_url == o.gw_cluster_url &&
|
421
|
+
is_ca == o.is_ca &&
|
412
422
|
json == o.json &&
|
413
423
|
key_usage == o.key_usage &&
|
414
424
|
locality == o.locality &&
|
@@ -440,7 +450,7 @@ module Akeyless
|
|
440
450
|
# Calculates hash code according to all attributes.
|
441
451
|
# @return [Integer] Hash code
|
442
452
|
def hash
|
443
|
-
[add_tag, allow_any_name, allow_subdomains, allowed_domains, allowed_uri_sans, client_flag, code_signing_flag, country, delete_protection, description, destination_path, expiration_event_in, gw_cluster_url, json, key_usage, locality, metadata, name, new_name, not_enforce_hostnames, not_require_cn, organizational_units, organizations, postal_code, protect_certificates, province, rm_tag, server_flag, signer_key_name, street_address, token, ttl, uid_token].hash
|
453
|
+
[add_tag, allow_any_name, allow_subdomains, allowed_domains, allowed_uri_sans, client_flag, code_signing_flag, country, delete_protection, description, destination_path, expiration_event_in, gw_cluster_url, is_ca, json, key_usage, locality, metadata, name, new_name, not_enforce_hostnames, not_require_cn, organizational_units, organizations, postal_code, protect_certificates, province, rm_tag, server_flag, signer_key_name, street_address, token, ttl, uid_token].hash
|
444
454
|
end
|
445
455
|
|
446
456
|
# Builds the object from hash
|
data/lib/akeyless/version.rb
CHANGED
data/lib/akeyless.rb
CHANGED
@@ -21,6 +21,7 @@ require 'akeyless/models/api_key_access_rules'
|
|
21
21
|
require 'akeyless/models/awsiam_access_rules'
|
22
22
|
require 'akeyless/models/aws_payload'
|
23
23
|
require 'akeyless/models/aws_secrets_migration'
|
24
|
+
require 'akeyless/models/access_permission_assignment'
|
24
25
|
require 'akeyless/models/account_general_settings'
|
25
26
|
require 'akeyless/models/account_object_version_settings_output'
|
26
27
|
require 'akeyless/models/active_directory_migration'
|
@@ -76,6 +77,8 @@ require 'akeyless/models/create_auth_method_azure_ad'
|
|
76
77
|
require 'akeyless/models/create_auth_method_azure_ad_output'
|
77
78
|
require 'akeyless/models/create_auth_method_cert'
|
78
79
|
require 'akeyless/models/create_auth_method_cert_output'
|
80
|
+
require 'akeyless/models/create_auth_method_email'
|
81
|
+
require 'akeyless/models/create_auth_method_email_output'
|
79
82
|
require 'akeyless/models/create_auth_method_gcp'
|
80
83
|
require 'akeyless/models/create_auth_method_gcp_output'
|
81
84
|
require 'akeyless/models/create_auth_method_huawei'
|
@@ -217,6 +220,7 @@ require 'akeyless/models/encrypt_with_classic_key_output'
|
|
217
220
|
require 'akeyless/models/esm_create'
|
218
221
|
require 'akeyless/models/esm_create_secret_output'
|
219
222
|
require 'akeyless/models/esm_delete'
|
223
|
+
require 'akeyless/models/esm_delete_secret_output'
|
220
224
|
require 'akeyless/models/esm_get'
|
221
225
|
require 'akeyless/models/esm_get_secret_output'
|
222
226
|
require 'akeyless/models/esm_list'
|
@@ -411,6 +415,7 @@ require 'akeyless/models/get_tags'
|
|
411
415
|
require 'akeyless/models/get_target'
|
412
416
|
require 'akeyless/models/get_target_details'
|
413
417
|
require 'akeyless/models/get_target_details_output'
|
418
|
+
require 'akeyless/models/google_chronicle_forwarding_config'
|
414
419
|
require 'akeyless/models/gw_cluster_identity'
|
415
420
|
require 'akeyless/models/hashi_migration'
|
416
421
|
require 'akeyless/models/hashi_payload'
|
@@ -494,6 +499,7 @@ require 'akeyless/models/o_auth2_custom_claim'
|
|
494
499
|
require 'akeyless/models/oidc_access_rules'
|
495
500
|
require 'akeyless/models/oidc_custom_claim'
|
496
501
|
require 'akeyless/models/object_version_settings_output'
|
502
|
+
require 'akeyless/models/oidc_client_info'
|
497
503
|
require 'akeyless/models/one_password_migration'
|
498
504
|
require 'akeyless/models/one_password_payload'
|
499
505
|
require 'akeyless/models/pki_certificate_issue_details'
|
@@ -0,0 +1,40 @@
|
|
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: 7.0.0-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for Akeyless::AccessPermissionAssignment
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe Akeyless::AccessPermissionAssignment do
|
21
|
+
let(:instance) { Akeyless::AccessPermissionAssignment.new }
|
22
|
+
|
23
|
+
describe 'test an instance of AccessPermissionAssignment' do
|
24
|
+
it 'should create an instance of AccessPermissionAssignment' do
|
25
|
+
expect(instance).to be_instance_of(Akeyless::AccessPermissionAssignment)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "access_id"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
describe 'test attribute "sub_claims"' do
|
35
|
+
it 'should work' do
|
36
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
end
|
@@ -0,0 +1,34 @@
|
|
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: 7.0.0-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for Akeyless::CreateAuthMethodEmailOutput
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe Akeyless::CreateAuthMethodEmailOutput do
|
21
|
+
let(:instance) { Akeyless::CreateAuthMethodEmailOutput.new }
|
22
|
+
|
23
|
+
describe 'test an instance of CreateAuthMethodEmailOutput' do
|
24
|
+
it 'should create an instance of CreateAuthMethodEmailOutput' do
|
25
|
+
expect(instance).to be_instance_of(Akeyless::CreateAuthMethodEmailOutput)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "access_id"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
@@ -0,0 +1,88 @@
|
|
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: 7.0.0-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for Akeyless::CreateAuthMethodEmail
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe Akeyless::CreateAuthMethodEmail do
|
21
|
+
let(:instance) { Akeyless::CreateAuthMethodEmail.new }
|
22
|
+
|
23
|
+
describe 'test an instance of CreateAuthMethodEmail' do
|
24
|
+
it 'should create an instance of CreateAuthMethodEmail' do
|
25
|
+
expect(instance).to be_instance_of(Akeyless::CreateAuthMethodEmail)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "access_expires"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
describe 'test attribute "bound_ips"' do
|
35
|
+
it 'should work' do
|
36
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
describe 'test attribute "email"' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
describe 'test attribute "force_sub_claims"' do
|
47
|
+
it 'should work' do
|
48
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
describe 'test attribute "gw_bound_ips"' do
|
53
|
+
it 'should work' do
|
54
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
describe 'test attribute "json"' do
|
59
|
+
it 'should work' do
|
60
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
describe 'test attribute "jwt_ttl"' do
|
65
|
+
it 'should work' do
|
66
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
describe 'test attribute "name"' do
|
71
|
+
it 'should work' do
|
72
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
describe 'test attribute "token"' do
|
77
|
+
it 'should work' do
|
78
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
describe 'test attribute "uid_token"' do
|
83
|
+
it 'should work' do
|
84
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
end
|
@@ -0,0 +1,34 @@
|
|
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: 7.0.0-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for Akeyless::EsmDeleteSecretOutput
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe Akeyless::EsmDeleteSecretOutput do
|
21
|
+
let(:instance) { Akeyless::EsmDeleteSecretOutput.new }
|
22
|
+
|
23
|
+
describe 'test an instance of EsmDeleteSecretOutput' do
|
24
|
+
it 'should create an instance of EsmDeleteSecretOutput' do
|
25
|
+
expect(instance).to be_instance_of(Akeyless::EsmDeleteSecretOutput)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "name"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
@@ -0,0 +1,52 @@
|
|
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: 7.0.0-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for Akeyless::GoogleChronicleForwardingConfig
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe Akeyless::GoogleChronicleForwardingConfig do
|
21
|
+
let(:instance) { Akeyless::GoogleChronicleForwardingConfig.new }
|
22
|
+
|
23
|
+
describe 'test an instance of GoogleChronicleForwardingConfig' do
|
24
|
+
it 'should create an instance of GoogleChronicleForwardingConfig' do
|
25
|
+
expect(instance).to be_instance_of(Akeyless::GoogleChronicleForwardingConfig)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "customer_id"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
describe 'test attribute "log_type"' do
|
35
|
+
it 'should work' do
|
36
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
describe 'test attribute "region"' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
describe 'test attribute "service_account_key"' do
|
47
|
+
it 'should work' do
|
48
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
end
|