akeyless 2.20.1 → 2.20.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -3
- data/docs/AuthMethodRoleAssociation.md +2 -0
- data/docs/CreateAuthMethodOIDC.md +2 -0
- data/docs/CreateSecret.md +1 -1
- data/docs/DeleteItem.md +1 -1
- data/docs/ExportClassicKey.md +26 -0
- data/docs/ExportClassicKeyOutput.md +20 -0
- data/docs/GatewayCreateMigration.md +0 -8
- data/docs/GatewayUpdateMigration.md +0 -8
- data/docs/GetSecretValue.md +1 -3
- data/docs/ListItems.md +1 -1
- data/docs/MigrationGeneral.md +3 -1
- data/docs/OIDCAccessRules.md +2 -0
- data/docs/ReverseRBACClient.md +0 -2
- data/docs/RotateSecret.md +1 -1
- data/docs/ShareItem.md +34 -0
- data/docs/SmInfo.md +3 -3
- data/docs/SraInfo.md +3 -3
- data/docs/UpdateAuthMethodOIDC.md +2 -0
- data/docs/UpdateItem.md +1 -1
- data/docs/UpdateSecretVal.md +1 -1
- data/docs/V2Api.md +125 -0
- data/docs/VaultlessTokenizerInfo.md +1 -1
- data/lib/akeyless/api/v2_api.rb +128 -0
- data/lib/akeyless/models/auth_method_role_association.rb +12 -1
- data/lib/akeyless/models/create_auth_method_oidc.rb +11 -1
- data/lib/akeyless/models/create_secret.rb +2 -0
- data/lib/akeyless/models/delete_item.rb +2 -0
- data/lib/akeyless/models/export_classic_key.rb +266 -0
- data/lib/akeyless/models/export_classic_key_output.rb +228 -0
- data/lib/akeyless/models/gateway_create_migration.rb +1 -39
- data/lib/akeyless/models/gateway_update_migration.rb +1 -39
- data/lib/akeyless/models/get_secret_value.rb +3 -10
- data/lib/akeyless/models/list_items.rb +2 -0
- data/lib/akeyless/models/migration_general.rb +13 -4
- data/lib/akeyless/models/oidc_access_rules.rb +11 -1
- data/lib/akeyless/models/reverse_rbac_client.rb +1 -12
- data/lib/akeyless/models/rotate_secret.rb +1 -1
- data/lib/akeyless/models/share_item.rb +316 -0
- data/lib/akeyless/models/sm_info.rb +8 -7
- data/lib/akeyless/models/sra_info.rb +8 -7
- data/lib/akeyless/models/update_auth_method_oidc.rb +11 -1
- data/lib/akeyless/models/update_item.rb +2 -0
- data/lib/akeyless/models/update_secret_val.rb +2 -0
- data/lib/akeyless/models/vaultless_tokenizer_info.rb +2 -4
- data/lib/akeyless/version.rb +1 -1
- data/lib/akeyless.rb +3 -2
- data/spec/models/export_classic_key_output_spec.rb +40 -0
- data/spec/models/export_classic_key_spec.rb +58 -0
- data/spec/models/share_item_spec.rb +82 -0
- metadata +530 -518
@@ -0,0 +1,316 @@
|
|
1
|
+
=begin
|
2
|
+
#Akeyless API
|
3
|
+
|
4
|
+
#The purpose of this application is to provide access to Akeyless API.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 2.0
|
7
|
+
Contact: support@akeyless.io
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 6.3.0-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module Akeyless
|
17
|
+
class ShareItem
|
18
|
+
# for personal password manager
|
19
|
+
attr_accessor :accessibility
|
20
|
+
|
21
|
+
# Action to be performed on the item [start/stop/describe]
|
22
|
+
attr_accessor :action
|
23
|
+
|
24
|
+
# For Password Management use, reflect the website context
|
25
|
+
attr_accessor :emails
|
26
|
+
|
27
|
+
# Item name
|
28
|
+
attr_accessor :item_name
|
29
|
+
|
30
|
+
# Set output format to JSON
|
31
|
+
attr_accessor :json
|
32
|
+
|
33
|
+
# Authentication token (see `/auth` and `/configure`)
|
34
|
+
attr_accessor :token
|
35
|
+
|
36
|
+
# TTL of the Availability of the shared secret in seconds
|
37
|
+
attr_accessor :ttl
|
38
|
+
|
39
|
+
# The universal identity token, Required only for universal_identity authentication
|
40
|
+
attr_accessor :uid_token
|
41
|
+
|
42
|
+
# ViewOnlyOnce Shared secrets can only be viewed once [true/false]
|
43
|
+
attr_accessor :view_once
|
44
|
+
|
45
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
46
|
+
def self.attribute_map
|
47
|
+
{
|
48
|
+
:'accessibility' => :'accessibility',
|
49
|
+
:'action' => :'action',
|
50
|
+
:'emails' => :'emails',
|
51
|
+
:'item_name' => :'item-name',
|
52
|
+
:'json' => :'json',
|
53
|
+
:'token' => :'token',
|
54
|
+
:'ttl' => :'ttl',
|
55
|
+
:'uid_token' => :'uid-token',
|
56
|
+
:'view_once' => :'view-once'
|
57
|
+
}
|
58
|
+
end
|
59
|
+
|
60
|
+
# Returns all the JSON keys this model knows about
|
61
|
+
def self.acceptable_attributes
|
62
|
+
attribute_map.values
|
63
|
+
end
|
64
|
+
|
65
|
+
# Attribute type mapping.
|
66
|
+
def self.openapi_types
|
67
|
+
{
|
68
|
+
:'accessibility' => :'String',
|
69
|
+
:'action' => :'String',
|
70
|
+
:'emails' => :'Array<String>',
|
71
|
+
:'item_name' => :'String',
|
72
|
+
:'json' => :'Boolean',
|
73
|
+
:'token' => :'String',
|
74
|
+
:'ttl' => :'Integer',
|
75
|
+
:'uid_token' => :'String',
|
76
|
+
:'view_once' => :'Boolean'
|
77
|
+
}
|
78
|
+
end
|
79
|
+
|
80
|
+
# List of attributes with nullable: true
|
81
|
+
def self.openapi_nullable
|
82
|
+
Set.new([
|
83
|
+
])
|
84
|
+
end
|
85
|
+
|
86
|
+
# Initializes the object
|
87
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
88
|
+
def initialize(attributes = {})
|
89
|
+
if (!attributes.is_a?(Hash))
|
90
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Akeyless::ShareItem` initialize method"
|
91
|
+
end
|
92
|
+
|
93
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
94
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
95
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
96
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Akeyless::ShareItem`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
97
|
+
end
|
98
|
+
h[k.to_sym] = v
|
99
|
+
}
|
100
|
+
|
101
|
+
if attributes.key?(:'accessibility')
|
102
|
+
self.accessibility = attributes[:'accessibility']
|
103
|
+
else
|
104
|
+
self.accessibility = 'regular'
|
105
|
+
end
|
106
|
+
|
107
|
+
if attributes.key?(:'action')
|
108
|
+
self.action = attributes[:'action']
|
109
|
+
end
|
110
|
+
|
111
|
+
if attributes.key?(:'emails')
|
112
|
+
if (value = attributes[:'emails']).is_a?(Array)
|
113
|
+
self.emails = value
|
114
|
+
end
|
115
|
+
end
|
116
|
+
|
117
|
+
if attributes.key?(:'item_name')
|
118
|
+
self.item_name = attributes[:'item_name']
|
119
|
+
end
|
120
|
+
|
121
|
+
if attributes.key?(:'json')
|
122
|
+
self.json = attributes[:'json']
|
123
|
+
end
|
124
|
+
|
125
|
+
if attributes.key?(:'token')
|
126
|
+
self.token = attributes[:'token']
|
127
|
+
end
|
128
|
+
|
129
|
+
if attributes.key?(:'ttl')
|
130
|
+
self.ttl = attributes[:'ttl']
|
131
|
+
end
|
132
|
+
|
133
|
+
if attributes.key?(:'uid_token')
|
134
|
+
self.uid_token = attributes[:'uid_token']
|
135
|
+
end
|
136
|
+
|
137
|
+
if attributes.key?(:'view_once')
|
138
|
+
self.view_once = attributes[:'view_once']
|
139
|
+
else
|
140
|
+
self.view_once = false
|
141
|
+
end
|
142
|
+
end
|
143
|
+
|
144
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
145
|
+
# @return Array for valid properties with the reasons
|
146
|
+
def list_invalid_properties
|
147
|
+
invalid_properties = Array.new
|
148
|
+
if @action.nil?
|
149
|
+
invalid_properties.push('invalid value for "action", action cannot be nil.')
|
150
|
+
end
|
151
|
+
|
152
|
+
if @item_name.nil?
|
153
|
+
invalid_properties.push('invalid value for "item_name", item_name cannot be nil.')
|
154
|
+
end
|
155
|
+
|
156
|
+
invalid_properties
|
157
|
+
end
|
158
|
+
|
159
|
+
# Check to see if the all the properties in the model are valid
|
160
|
+
# @return true if the model is valid
|
161
|
+
def valid?
|
162
|
+
return false if @action.nil?
|
163
|
+
return false if @item_name.nil?
|
164
|
+
true
|
165
|
+
end
|
166
|
+
|
167
|
+
# Checks equality by comparing each attribute.
|
168
|
+
# @param [Object] Object to be compared
|
169
|
+
def ==(o)
|
170
|
+
return true if self.equal?(o)
|
171
|
+
self.class == o.class &&
|
172
|
+
accessibility == o.accessibility &&
|
173
|
+
action == o.action &&
|
174
|
+
emails == o.emails &&
|
175
|
+
item_name == o.item_name &&
|
176
|
+
json == o.json &&
|
177
|
+
token == o.token &&
|
178
|
+
ttl == o.ttl &&
|
179
|
+
uid_token == o.uid_token &&
|
180
|
+
view_once == o.view_once
|
181
|
+
end
|
182
|
+
|
183
|
+
# @see the `==` method
|
184
|
+
# @param [Object] Object to be compared
|
185
|
+
def eql?(o)
|
186
|
+
self == o
|
187
|
+
end
|
188
|
+
|
189
|
+
# Calculates hash code according to all attributes.
|
190
|
+
# @return [Integer] Hash code
|
191
|
+
def hash
|
192
|
+
[accessibility, action, emails, item_name, json, token, ttl, uid_token, view_once].hash
|
193
|
+
end
|
194
|
+
|
195
|
+
# Builds the object from hash
|
196
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
197
|
+
# @return [Object] Returns the model itself
|
198
|
+
def self.build_from_hash(attributes)
|
199
|
+
new.build_from_hash(attributes)
|
200
|
+
end
|
201
|
+
|
202
|
+
# Builds the object from hash
|
203
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
204
|
+
# @return [Object] Returns the model itself
|
205
|
+
def build_from_hash(attributes)
|
206
|
+
return nil unless attributes.is_a?(Hash)
|
207
|
+
attributes = attributes.transform_keys(&:to_sym)
|
208
|
+
self.class.openapi_types.each_pair do |key, type|
|
209
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
210
|
+
self.send("#{key}=", nil)
|
211
|
+
elsif type =~ /\AArray<(.*)>/i
|
212
|
+
# check to ensure the input is an array given that the attribute
|
213
|
+
# is documented as an array but the input is not
|
214
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
215
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
216
|
+
end
|
217
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
218
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
219
|
+
end
|
220
|
+
end
|
221
|
+
|
222
|
+
self
|
223
|
+
end
|
224
|
+
|
225
|
+
# Deserializes the data based on type
|
226
|
+
# @param string type Data type
|
227
|
+
# @param string value Value to be deserialized
|
228
|
+
# @return [Object] Deserialized data
|
229
|
+
def _deserialize(type, value)
|
230
|
+
case type.to_sym
|
231
|
+
when :Time
|
232
|
+
Time.parse(value)
|
233
|
+
when :Date
|
234
|
+
Date.parse(value)
|
235
|
+
when :String
|
236
|
+
value.to_s
|
237
|
+
when :Integer
|
238
|
+
value.to_i
|
239
|
+
when :Float
|
240
|
+
value.to_f
|
241
|
+
when :Boolean
|
242
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
243
|
+
true
|
244
|
+
else
|
245
|
+
false
|
246
|
+
end
|
247
|
+
when :Object
|
248
|
+
# generic object (usually a Hash), return directly
|
249
|
+
value
|
250
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
251
|
+
inner_type = Regexp.last_match[:inner_type]
|
252
|
+
value.map { |v| _deserialize(inner_type, v) }
|
253
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
254
|
+
k_type = Regexp.last_match[:k_type]
|
255
|
+
v_type = Regexp.last_match[:v_type]
|
256
|
+
{}.tap do |hash|
|
257
|
+
value.each do |k, v|
|
258
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
259
|
+
end
|
260
|
+
end
|
261
|
+
else # model
|
262
|
+
# models (e.g. Pet) or oneOf
|
263
|
+
klass = Akeyless.const_get(type)
|
264
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
265
|
+
end
|
266
|
+
end
|
267
|
+
|
268
|
+
# Returns the string representation of the object
|
269
|
+
# @return [String] String presentation of the object
|
270
|
+
def to_s
|
271
|
+
to_hash.to_s
|
272
|
+
end
|
273
|
+
|
274
|
+
# to_body is an alias to to_hash (backward compatibility)
|
275
|
+
# @return [Hash] Returns the object in the form of hash
|
276
|
+
def to_body
|
277
|
+
to_hash
|
278
|
+
end
|
279
|
+
|
280
|
+
# Returns the object in the form of hash
|
281
|
+
# @return [Hash] Returns the object in the form of hash
|
282
|
+
def to_hash
|
283
|
+
hash = {}
|
284
|
+
self.class.attribute_map.each_pair do |attr, param|
|
285
|
+
value = self.send(attr)
|
286
|
+
if value.nil?
|
287
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
288
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
289
|
+
end
|
290
|
+
|
291
|
+
hash[param] = _to_hash(value)
|
292
|
+
end
|
293
|
+
hash
|
294
|
+
end
|
295
|
+
|
296
|
+
# Outputs non-array value in the form of hash
|
297
|
+
# For object, use to_hash. Otherwise, just return the value
|
298
|
+
# @param [Object] value Any valid value
|
299
|
+
# @return [Hash] Returns the value in the form of hash
|
300
|
+
def _to_hash(value)
|
301
|
+
if value.is_a?(Array)
|
302
|
+
value.compact.map { |v| _to_hash(v) }
|
303
|
+
elsif value.is_a?(Hash)
|
304
|
+
{}.tap do |hash|
|
305
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
306
|
+
end
|
307
|
+
elsif value.respond_to? :to_hash
|
308
|
+
value.to_hash
|
309
|
+
else
|
310
|
+
value
|
311
|
+
end
|
312
|
+
end
|
313
|
+
|
314
|
+
end
|
315
|
+
|
316
|
+
end
|
@@ -15,14 +15,15 @@ require 'time'
|
|
15
15
|
|
16
16
|
module Akeyless
|
17
17
|
class SmInfo
|
18
|
-
attr_accessor :
|
18
|
+
attr_accessor :sla
|
19
19
|
|
20
|
+
# Tier represents a level of extensibility the account will have, defined by various limits for different resources of Akeyless e.g - A StarterTier may have a limit of 3 Client resources and 50 Secret resources
|
20
21
|
attr_accessor :tier
|
21
22
|
|
22
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
23
24
|
def self.attribute_map
|
24
25
|
{
|
25
|
-
:'
|
26
|
+
:'sla' => :'sla',
|
26
27
|
:'tier' => :'tier'
|
27
28
|
}
|
28
29
|
end
|
@@ -35,7 +36,7 @@ module Akeyless
|
|
35
36
|
# Attribute type mapping.
|
36
37
|
def self.openapi_types
|
37
38
|
{
|
38
|
-
:'
|
39
|
+
:'sla' => :'String',
|
39
40
|
:'tier' => :'String'
|
40
41
|
}
|
41
42
|
end
|
@@ -61,8 +62,8 @@ module Akeyless
|
|
61
62
|
h[k.to_sym] = v
|
62
63
|
}
|
63
64
|
|
64
|
-
if attributes.key?(:'
|
65
|
-
self.
|
65
|
+
if attributes.key?(:'sla')
|
66
|
+
self.sla = attributes[:'sla']
|
66
67
|
end
|
67
68
|
|
68
69
|
if attributes.key?(:'tier')
|
@@ -88,7 +89,7 @@ module Akeyless
|
|
88
89
|
def ==(o)
|
89
90
|
return true if self.equal?(o)
|
90
91
|
self.class == o.class &&
|
91
|
-
|
92
|
+
sla == o.sla &&
|
92
93
|
tier == o.tier
|
93
94
|
end
|
94
95
|
|
@@ -101,7 +102,7 @@ module Akeyless
|
|
101
102
|
# Calculates hash code according to all attributes.
|
102
103
|
# @return [Integer] Hash code
|
103
104
|
def hash
|
104
|
-
[
|
105
|
+
[sla, tier].hash
|
105
106
|
end
|
106
107
|
|
107
108
|
# Builds the object from hash
|
@@ -15,8 +15,9 @@ require 'time'
|
|
15
15
|
|
16
16
|
module Akeyless
|
17
17
|
class SraInfo
|
18
|
-
attr_accessor :
|
18
|
+
attr_accessor :sla
|
19
19
|
|
20
|
+
# Tier represents a level of extensibility the account will have, defined by various limits for different resources of Akeyless e.g - A StarterTier may have a limit of 3 Client resources and 50 Secret resources
|
20
21
|
attr_accessor :tier
|
21
22
|
|
22
23
|
attr_accessor :user_type
|
@@ -24,7 +25,7 @@ module Akeyless
|
|
24
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
25
26
|
def self.attribute_map
|
26
27
|
{
|
27
|
-
:'
|
28
|
+
:'sla' => :'sla',
|
28
29
|
:'tier' => :'tier',
|
29
30
|
:'user_type' => :'user_type'
|
30
31
|
}
|
@@ -38,7 +39,7 @@ module Akeyless
|
|
38
39
|
# Attribute type mapping.
|
39
40
|
def self.openapi_types
|
40
41
|
{
|
41
|
-
:'
|
42
|
+
:'sla' => :'String',
|
42
43
|
:'tier' => :'String',
|
43
44
|
:'user_type' => :'String'
|
44
45
|
}
|
@@ -65,8 +66,8 @@ module Akeyless
|
|
65
66
|
h[k.to_sym] = v
|
66
67
|
}
|
67
68
|
|
68
|
-
if attributes.key?(:'
|
69
|
-
self.
|
69
|
+
if attributes.key?(:'sla')
|
70
|
+
self.sla = attributes[:'sla']
|
70
71
|
end
|
71
72
|
|
72
73
|
if attributes.key?(:'tier')
|
@@ -96,7 +97,7 @@ module Akeyless
|
|
96
97
|
def ==(o)
|
97
98
|
return true if self.equal?(o)
|
98
99
|
self.class == o.class &&
|
99
|
-
|
100
|
+
sla == o.sla &&
|
100
101
|
tier == o.tier &&
|
101
102
|
user_type == o.user_type
|
102
103
|
end
|
@@ -110,7 +111,7 @@ module Akeyless
|
|
110
111
|
# Calculates hash code according to all attributes.
|
111
112
|
# @return [Integer] Hash code
|
112
113
|
def hash
|
113
|
-
[
|
114
|
+
[sla, tier, user_type].hash
|
114
115
|
end
|
115
116
|
|
116
117
|
# Builds the object from hash
|
@@ -22,6 +22,9 @@ module Akeyless
|
|
22
22
|
# Allowed redirect URIs after the authentication
|
23
23
|
attr_accessor :allowed_redirect_uri
|
24
24
|
|
25
|
+
# Audience claim to be used as part of the authentication flow. In case set, it must match the one configured on the Identity Provider's Application
|
26
|
+
attr_accessor :audience
|
27
|
+
|
25
28
|
# A CIDR whitelist with the IPs that the access is restricted to
|
26
29
|
attr_accessor :bound_ips
|
27
30
|
|
@@ -72,6 +75,7 @@ module Akeyless
|
|
72
75
|
{
|
73
76
|
:'access_expires' => :'access-expires',
|
74
77
|
:'allowed_redirect_uri' => :'allowed-redirect-uri',
|
78
|
+
:'audience' => :'audience',
|
75
79
|
:'bound_ips' => :'bound-ips',
|
76
80
|
:'client_id' => :'client-id',
|
77
81
|
:'client_secret' => :'client-secret',
|
@@ -100,6 +104,7 @@ module Akeyless
|
|
100
104
|
{
|
101
105
|
:'access_expires' => :'Integer',
|
102
106
|
:'allowed_redirect_uri' => :'Array<String>',
|
107
|
+
:'audience' => :'String',
|
103
108
|
:'bound_ips' => :'Array<String>',
|
104
109
|
:'client_id' => :'String',
|
105
110
|
:'client_secret' => :'String',
|
@@ -151,6 +156,10 @@ module Akeyless
|
|
151
156
|
end
|
152
157
|
end
|
153
158
|
|
159
|
+
if attributes.key?(:'audience')
|
160
|
+
self.audience = attributes[:'audience']
|
161
|
+
end
|
162
|
+
|
154
163
|
if attributes.key?(:'bound_ips')
|
155
164
|
if (value = attributes[:'bound_ips']).is_a?(Array)
|
156
165
|
self.bound_ips = value
|
@@ -248,6 +257,7 @@ module Akeyless
|
|
248
257
|
self.class == o.class &&
|
249
258
|
access_expires == o.access_expires &&
|
250
259
|
allowed_redirect_uri == o.allowed_redirect_uri &&
|
260
|
+
audience == o.audience &&
|
251
261
|
bound_ips == o.bound_ips &&
|
252
262
|
client_id == o.client_id &&
|
253
263
|
client_secret == o.client_secret &&
|
@@ -274,7 +284,7 @@ module Akeyless
|
|
274
284
|
# Calculates hash code according to all attributes.
|
275
285
|
# @return [Integer] Hash code
|
276
286
|
def hash
|
277
|
-
[access_expires, allowed_redirect_uri, bound_ips, client_id, client_secret, force_sub_claims, gw_bound_ips, issuer, json, jwt_ttl, name, new_name, required_scopes, required_scopes_prefix, token, uid_token, unique_identifier].hash
|
287
|
+
[access_expires, allowed_redirect_uri, audience, bound_ips, client_id, client_secret, force_sub_claims, gw_bound_ips, issuer, json, jwt_ttl, name, new_name, required_scopes, required_scopes_prefix, token, uid_token, unique_identifier].hash
|
278
288
|
end
|
279
289
|
|
280
290
|
# Builds the object from hash
|
@@ -52,7 +52,7 @@ module Akeyless
|
|
52
52
|
:'key_name' => :'String',
|
53
53
|
:'regexp_tokenizer_info' => :'RegexpTokenizerInfo',
|
54
54
|
:'template_type' => :'String',
|
55
|
-
:'tweak' => :'
|
55
|
+
:'tweak' => :'String',
|
56
56
|
:'tweak_type' => :'String'
|
57
57
|
}
|
58
58
|
end
|
@@ -95,9 +95,7 @@ module Akeyless
|
|
95
95
|
end
|
96
96
|
|
97
97
|
if attributes.key?(:'tweak')
|
98
|
-
|
99
|
-
self.tweak = value
|
100
|
-
end
|
98
|
+
self.tweak = attributes[:'tweak']
|
101
99
|
end
|
102
100
|
|
103
101
|
if attributes.key?(:'tweak_type')
|
data/lib/akeyless/version.rb
CHANGED
data/lib/akeyless.rb
CHANGED
@@ -177,6 +177,8 @@ require 'akeyless/models/encrypt_file_output'
|
|
177
177
|
require 'akeyless/models/encrypt_output'
|
178
178
|
require 'akeyless/models/encrypt_with_classic_key'
|
179
179
|
require 'akeyless/models/encrypt_with_classic_key_output'
|
180
|
+
require 'akeyless/models/export_classic_key'
|
181
|
+
require 'akeyless/models/export_classic_key_output'
|
180
182
|
require 'akeyless/models/external_kms_key_id'
|
181
183
|
require 'akeyless/models/gcp_access_rules'
|
182
184
|
require 'akeyless/models/gcp_payload'
|
@@ -328,8 +330,6 @@ require 'akeyless/models/general_config_part'
|
|
328
330
|
require 'akeyless/models/get_account_settings'
|
329
331
|
require 'akeyless/models/get_account_settings_command_output'
|
330
332
|
require 'akeyless/models/get_auth_method'
|
331
|
-
require 'akeyless/models/get_cloud_identity'
|
332
|
-
require 'akeyless/models/get_cloud_identity_output'
|
333
333
|
require 'akeyless/models/get_dynamic_secret_value'
|
334
334
|
require 'akeyless/models/get_kube_exec_creds'
|
335
335
|
require 'akeyless/models/get_kube_exec_creds_output'
|
@@ -456,6 +456,7 @@ require 'akeyless/models/ssh_certificate_issue_details'
|
|
456
456
|
require 'akeyless/models/secure_remote_access'
|
457
457
|
require 'akeyless/models/set_item_state'
|
458
458
|
require 'akeyless/models/set_role_rule'
|
459
|
+
require 'akeyless/models/share_item'
|
459
460
|
require 'akeyless/models/sign_jwt_output'
|
460
461
|
require 'akeyless/models/sign_jwt_with_classic_key'
|
461
462
|
require 'akeyless/models/sign_pkcs1'
|
@@ -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: 6.3.0-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for Akeyless::ExportClassicKeyOutput
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe Akeyless::ExportClassicKeyOutput do
|
21
|
+
let(:instance) { Akeyless::ExportClassicKeyOutput.new }
|
22
|
+
|
23
|
+
describe 'test an instance of ExportClassicKeyOutput' do
|
24
|
+
it 'should create an instance of ExportClassicKeyOutput' do
|
25
|
+
expect(instance).to be_instance_of(Akeyless::ExportClassicKeyOutput)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "certificate_pem"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
describe 'test attribute "key"' do
|
35
|
+
it 'should work' do
|
36
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
end
|
@@ -0,0 +1,58 @@
|
|
1
|
+
=begin
|
2
|
+
#Akeyless API
|
3
|
+
|
4
|
+
#The purpose of this application is to provide access to Akeyless API.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 2.0
|
7
|
+
Contact: support@akeyless.io
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 6.3.0-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for Akeyless::ExportClassicKey
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe Akeyless::ExportClassicKey do
|
21
|
+
let(:instance) { Akeyless::ExportClassicKey.new }
|
22
|
+
|
23
|
+
describe 'test an instance of ExportClassicKey' do
|
24
|
+
it 'should create an instance of ExportClassicKey' do
|
25
|
+
expect(instance).to be_instance_of(Akeyless::ExportClassicKey)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "json"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
describe 'test attribute "name"' do
|
35
|
+
it 'should work' do
|
36
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
describe 'test attribute "token"' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
describe 'test attribute "uid_token"' do
|
47
|
+
it 'should work' do
|
48
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
describe 'test attribute "version"' do
|
53
|
+
it 'should work' do
|
54
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
end
|