akeyless 2.16.11 → 2.16.12
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 +3 -1
- data/docs/AccountGeneralSettings.md +18 -0
- data/docs/CreateSecret.md +11 -19
- data/docs/DSProducerDetails.md +2 -0
- data/docs/DataProtectionSection.md +18 -0
- data/docs/DeleteItem.md +2 -2
- data/docs/GatewayCreateK8SAuthConfig.md +1 -1
- data/docs/GatewayUpdateK8SAuthConfig.md +1 -1
- data/docs/GetAccountSettingsCommandOutput.md +2 -0
- data/docs/GetSecretValue.md +2 -2
- data/docs/ListItems.md +2 -2
- data/docs/LogForwardingConfigPart.md +2 -0
- data/docs/TargetTypeDetailsInput.md +2 -0
- data/docs/UpdateAccountSettings.md +2 -0
- data/docs/UpdateItem.md +2 -2
- data/docs/UpdateSecretVal.md +11 -9
- data/lib/akeyless/models/account_general_settings.rb +220 -0
- data/lib/akeyless/models/create_secret.rb +50 -90
- data/lib/akeyless/models/data_protection_section.rb +220 -0
- data/lib/akeyless/models/delete_item.rb +11 -11
- data/lib/akeyless/models/ds_producer_details.rb +10 -1
- data/lib/akeyless/models/gateway_create_k8_s_auth_config.rb +2 -0
- data/lib/akeyless/models/gateway_update_k8_s_auth_config.rb +2 -0
- data/lib/akeyless/models/get_account_settings_command_output.rb +10 -1
- data/lib/akeyless/models/get_secret_value.rb +7 -7
- data/lib/akeyless/models/list_items.rb +11 -11
- data/lib/akeyless/models/log_forwarding_config_part.rb +10 -1
- data/lib/akeyless/models/target_type_details_input.rb +10 -1
- data/lib/akeyless/models/update_account_settings.rb +11 -1
- data/lib/akeyless/models/update_item.rb +11 -11
- data/lib/akeyless/models/update_secret_val.rb +52 -42
- data/lib/akeyless/version.rb +1 -1
- data/lib/akeyless.rb +2 -0
- data/spec/models/account_general_settings_spec.rb +34 -0
- data/spec/models/data_protection_section_spec.rb +34 -0
- metadata +507 -499
@@ -15,15 +15,12 @@ require 'time'
|
|
15
15
|
|
16
16
|
module Akeyless
|
17
17
|
class CreateSecret
|
18
|
-
#
|
19
|
-
attr_accessor :
|
18
|
+
# for personal password manager
|
19
|
+
attr_accessor :accessibility
|
20
20
|
|
21
21
|
# Protection from accidental deletion of this item
|
22
22
|
attr_accessor :delete_protection
|
23
23
|
|
24
|
-
# for personal password manager
|
25
|
-
attr_accessor :item_accessibility
|
26
|
-
|
27
24
|
# Metadata about the secret
|
28
25
|
attr_accessor :metadata
|
29
26
|
|
@@ -33,8 +30,17 @@ module Akeyless
|
|
33
30
|
# Secret name
|
34
31
|
attr_accessor :name
|
35
32
|
|
36
|
-
# For
|
37
|
-
attr_accessor :
|
33
|
+
# For Password Management use, additional fields
|
34
|
+
attr_accessor :password_manager_custom_field
|
35
|
+
|
36
|
+
# For Password Management use, reflect the website context
|
37
|
+
attr_accessor :password_manager_inject_url
|
38
|
+
|
39
|
+
# For Password Management use, additional fields
|
40
|
+
attr_accessor :password_manager_password
|
41
|
+
|
42
|
+
# For Password Management use
|
43
|
+
attr_accessor :password_manager_username
|
38
44
|
|
39
45
|
# The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used)
|
40
46
|
attr_accessor :protection_key
|
@@ -67,37 +73,21 @@ module Akeyless
|
|
67
73
|
# The universal identity token, Required only for universal_identity authentication
|
68
74
|
attr_accessor :uid_token
|
69
75
|
|
70
|
-
# For PasswordPolicy use
|
71
|
-
attr_accessor :use_lower_letters
|
72
|
-
|
73
|
-
# For PasswordPolicy use
|
74
|
-
attr_accessor :use_numbers
|
75
|
-
|
76
|
-
# For PasswordPolicy use
|
77
|
-
attr_accessor :use_special_characters
|
78
|
-
|
79
|
-
# For PasswordPolicy use
|
80
|
-
attr_accessor :use_capital_letters
|
81
|
-
|
82
|
-
# For Password Management use
|
83
|
-
attr_accessor :username
|
84
|
-
|
85
76
|
# The secret value
|
86
77
|
attr_accessor :value
|
87
78
|
|
88
|
-
# For Password Management use, reflect the website context
|
89
|
-
attr_accessor :website
|
90
|
-
|
91
79
|
# Attribute mapping from ruby-style variable name to JSON key.
|
92
80
|
def self.attribute_map
|
93
81
|
{
|
94
|
-
:'
|
82
|
+
:'accessibility' => :'accessibility',
|
95
83
|
:'delete_protection' => :'delete_protection',
|
96
|
-
:'item_accessibility' => :'item-accessibility',
|
97
84
|
:'metadata' => :'metadata',
|
98
85
|
:'multiline_value' => :'multiline_value',
|
99
86
|
:'name' => :'name',
|
100
|
-
:'
|
87
|
+
:'password_manager_custom_field' => :'password-manager-custom-field',
|
88
|
+
:'password_manager_inject_url' => :'password-manager-inject-url',
|
89
|
+
:'password_manager_password' => :'password-manager-password',
|
90
|
+
:'password_manager_username' => :'password-manager-username',
|
101
91
|
:'protection_key' => :'protection_key',
|
102
92
|
:'secure_access_bastion_issuer' => :'secure-access-bastion-issuer',
|
103
93
|
:'secure_access_enable' => :'secure-access-enable',
|
@@ -111,13 +101,7 @@ module Akeyless
|
|
111
101
|
:'token' => :'token',
|
112
102
|
:'type' => :'type',
|
113
103
|
:'uid_token' => :'uid-token',
|
114
|
-
:'
|
115
|
-
:'use_numbers' => :'use-numbers',
|
116
|
-
:'use_special_characters' => :'use-special-characters',
|
117
|
-
:'use_capital_letters' => :'use_capital-letters',
|
118
|
-
:'username' => :'username',
|
119
|
-
:'value' => :'value',
|
120
|
-
:'website' => :'website'
|
104
|
+
:'value' => :'value'
|
121
105
|
}
|
122
106
|
end
|
123
107
|
|
@@ -129,13 +113,15 @@ module Akeyless
|
|
129
113
|
# Attribute type mapping.
|
130
114
|
def self.openapi_types
|
131
115
|
{
|
132
|
-
:'
|
116
|
+
:'accessibility' => :'String',
|
133
117
|
:'delete_protection' => :'String',
|
134
|
-
:'item_accessibility' => :'String',
|
135
118
|
:'metadata' => :'String',
|
136
119
|
:'multiline_value' => :'Boolean',
|
137
120
|
:'name' => :'String',
|
138
|
-
:'
|
121
|
+
:'password_manager_custom_field' => :'Hash<String, String>',
|
122
|
+
:'password_manager_inject_url' => :'String',
|
123
|
+
:'password_manager_password' => :'String',
|
124
|
+
:'password_manager_username' => :'String',
|
139
125
|
:'protection_key' => :'String',
|
140
126
|
:'secure_access_bastion_issuer' => :'String',
|
141
127
|
:'secure_access_enable' => :'String',
|
@@ -149,13 +135,7 @@ module Akeyless
|
|
149
135
|
:'token' => :'String',
|
150
136
|
:'type' => :'String',
|
151
137
|
:'uid_token' => :'String',
|
152
|
-
:'
|
153
|
-
:'use_numbers' => :'String',
|
154
|
-
:'use_special_characters' => :'String',
|
155
|
-
:'use_capital_letters' => :'String',
|
156
|
-
:'username' => :'String',
|
157
|
-
:'value' => :'String',
|
158
|
-
:'website' => :'String'
|
138
|
+
:'value' => :'String'
|
159
139
|
}
|
160
140
|
end
|
161
141
|
|
@@ -180,20 +160,14 @@ module Akeyless
|
|
180
160
|
h[k.to_sym] = v
|
181
161
|
}
|
182
162
|
|
183
|
-
if attributes.key?(:'
|
184
|
-
|
185
|
-
self.custom_fields = value
|
186
|
-
end
|
163
|
+
if attributes.key?(:'accessibility')
|
164
|
+
self.accessibility = attributes[:'accessibility']
|
187
165
|
end
|
188
166
|
|
189
167
|
if attributes.key?(:'delete_protection')
|
190
168
|
self.delete_protection = attributes[:'delete_protection']
|
191
169
|
end
|
192
170
|
|
193
|
-
if attributes.key?(:'item_accessibility')
|
194
|
-
self.item_accessibility = attributes[:'item_accessibility']
|
195
|
-
end
|
196
|
-
|
197
171
|
if attributes.key?(:'metadata')
|
198
172
|
self.metadata = attributes[:'metadata']
|
199
173
|
end
|
@@ -206,8 +180,22 @@ module Akeyless
|
|
206
180
|
self.name = attributes[:'name']
|
207
181
|
end
|
208
182
|
|
209
|
-
if attributes.key?(:'
|
210
|
-
|
183
|
+
if attributes.key?(:'password_manager_custom_field')
|
184
|
+
if (value = attributes[:'password_manager_custom_field']).is_a?(Hash)
|
185
|
+
self.password_manager_custom_field = value
|
186
|
+
end
|
187
|
+
end
|
188
|
+
|
189
|
+
if attributes.key?(:'password_manager_inject_url')
|
190
|
+
self.password_manager_inject_url = attributes[:'password_manager_inject_url']
|
191
|
+
end
|
192
|
+
|
193
|
+
if attributes.key?(:'password_manager_password')
|
194
|
+
self.password_manager_password = attributes[:'password_manager_password']
|
195
|
+
end
|
196
|
+
|
197
|
+
if attributes.key?(:'password_manager_username')
|
198
|
+
self.password_manager_username = attributes[:'password_manager_username']
|
211
199
|
end
|
212
200
|
|
213
201
|
if attributes.key?(:'protection_key')
|
@@ -266,33 +254,9 @@ module Akeyless
|
|
266
254
|
self.uid_token = attributes[:'uid_token']
|
267
255
|
end
|
268
256
|
|
269
|
-
if attributes.key?(:'use_lower_letters')
|
270
|
-
self.use_lower_letters = attributes[:'use_lower_letters']
|
271
|
-
end
|
272
|
-
|
273
|
-
if attributes.key?(:'use_numbers')
|
274
|
-
self.use_numbers = attributes[:'use_numbers']
|
275
|
-
end
|
276
|
-
|
277
|
-
if attributes.key?(:'use_special_characters')
|
278
|
-
self.use_special_characters = attributes[:'use_special_characters']
|
279
|
-
end
|
280
|
-
|
281
|
-
if attributes.key?(:'use_capital_letters')
|
282
|
-
self.use_capital_letters = attributes[:'use_capital_letters']
|
283
|
-
end
|
284
|
-
|
285
|
-
if attributes.key?(:'username')
|
286
|
-
self.username = attributes[:'username']
|
287
|
-
end
|
288
|
-
|
289
257
|
if attributes.key?(:'value')
|
290
258
|
self.value = attributes[:'value']
|
291
259
|
end
|
292
|
-
|
293
|
-
if attributes.key?(:'website')
|
294
|
-
self.website = attributes[:'website']
|
295
|
-
end
|
296
260
|
end
|
297
261
|
|
298
262
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -323,13 +287,15 @@ module Akeyless
|
|
323
287
|
def ==(o)
|
324
288
|
return true if self.equal?(o)
|
325
289
|
self.class == o.class &&
|
326
|
-
|
290
|
+
accessibility == o.accessibility &&
|
327
291
|
delete_protection == o.delete_protection &&
|
328
|
-
item_accessibility == o.item_accessibility &&
|
329
292
|
metadata == o.metadata &&
|
330
293
|
multiline_value == o.multiline_value &&
|
331
294
|
name == o.name &&
|
332
|
-
|
295
|
+
password_manager_custom_field == o.password_manager_custom_field &&
|
296
|
+
password_manager_inject_url == o.password_manager_inject_url &&
|
297
|
+
password_manager_password == o.password_manager_password &&
|
298
|
+
password_manager_username == o.password_manager_username &&
|
333
299
|
protection_key == o.protection_key &&
|
334
300
|
secure_access_bastion_issuer == o.secure_access_bastion_issuer &&
|
335
301
|
secure_access_enable == o.secure_access_enable &&
|
@@ -343,13 +309,7 @@ module Akeyless
|
|
343
309
|
token == o.token &&
|
344
310
|
type == o.type &&
|
345
311
|
uid_token == o.uid_token &&
|
346
|
-
|
347
|
-
use_numbers == o.use_numbers &&
|
348
|
-
use_special_characters == o.use_special_characters &&
|
349
|
-
use_capital_letters == o.use_capital_letters &&
|
350
|
-
username == o.username &&
|
351
|
-
value == o.value &&
|
352
|
-
website == o.website
|
312
|
+
value == o.value
|
353
313
|
end
|
354
314
|
|
355
315
|
# @see the `==` method
|
@@ -361,7 +321,7 @@ module Akeyless
|
|
361
321
|
# Calculates hash code according to all attributes.
|
362
322
|
# @return [Integer] Hash code
|
363
323
|
def hash
|
364
|
-
[
|
324
|
+
[accessibility, delete_protection, metadata, multiline_value, name, password_manager_custom_field, password_manager_inject_url, password_manager_password, password_manager_username, protection_key, secure_access_bastion_issuer, secure_access_enable, secure_access_host, secure_access_ssh_creds, secure_access_ssh_user, secure_access_url, secure_access_web_browsing, secure_access_web_proxy, tags, token, type, uid_token, value].hash
|
365
325
|
end
|
366
326
|
|
367
327
|
# Builds the object from hash
|
@@ -0,0 +1,220 @@
|
|
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.1.0-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module Akeyless
|
17
|
+
# We need the fields to be pointers as we use the same struct for partial updates as well
|
18
|
+
class DataProtectionSection
|
19
|
+
attr_accessor :enable_classic_key_protection
|
20
|
+
|
21
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
22
|
+
def self.attribute_map
|
23
|
+
{
|
24
|
+
:'enable_classic_key_protection' => :'enable_classic_key_protection'
|
25
|
+
}
|
26
|
+
end
|
27
|
+
|
28
|
+
# Returns all the JSON keys this model knows about
|
29
|
+
def self.acceptable_attributes
|
30
|
+
attribute_map.values
|
31
|
+
end
|
32
|
+
|
33
|
+
# Attribute type mapping.
|
34
|
+
def self.openapi_types
|
35
|
+
{
|
36
|
+
:'enable_classic_key_protection' => :'Boolean'
|
37
|
+
}
|
38
|
+
end
|
39
|
+
|
40
|
+
# List of attributes with nullable: true
|
41
|
+
def self.openapi_nullable
|
42
|
+
Set.new([
|
43
|
+
])
|
44
|
+
end
|
45
|
+
|
46
|
+
# Initializes the object
|
47
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
48
|
+
def initialize(attributes = {})
|
49
|
+
if (!attributes.is_a?(Hash))
|
50
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Akeyless::DataProtectionSection` initialize method"
|
51
|
+
end
|
52
|
+
|
53
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
54
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
55
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
56
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Akeyless::DataProtectionSection`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
57
|
+
end
|
58
|
+
h[k.to_sym] = v
|
59
|
+
}
|
60
|
+
|
61
|
+
if attributes.key?(:'enable_classic_key_protection')
|
62
|
+
self.enable_classic_key_protection = attributes[:'enable_classic_key_protection']
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
67
|
+
# @return Array for valid properties with the reasons
|
68
|
+
def list_invalid_properties
|
69
|
+
invalid_properties = Array.new
|
70
|
+
invalid_properties
|
71
|
+
end
|
72
|
+
|
73
|
+
# Check to see if the all the properties in the model are valid
|
74
|
+
# @return true if the model is valid
|
75
|
+
def valid?
|
76
|
+
true
|
77
|
+
end
|
78
|
+
|
79
|
+
# Checks equality by comparing each attribute.
|
80
|
+
# @param [Object] Object to be compared
|
81
|
+
def ==(o)
|
82
|
+
return true if self.equal?(o)
|
83
|
+
self.class == o.class &&
|
84
|
+
enable_classic_key_protection == o.enable_classic_key_protection
|
85
|
+
end
|
86
|
+
|
87
|
+
# @see the `==` method
|
88
|
+
# @param [Object] Object to be compared
|
89
|
+
def eql?(o)
|
90
|
+
self == o
|
91
|
+
end
|
92
|
+
|
93
|
+
# Calculates hash code according to all attributes.
|
94
|
+
# @return [Integer] Hash code
|
95
|
+
def hash
|
96
|
+
[enable_classic_key_protection].hash
|
97
|
+
end
|
98
|
+
|
99
|
+
# Builds the object from hash
|
100
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
101
|
+
# @return [Object] Returns the model itself
|
102
|
+
def self.build_from_hash(attributes)
|
103
|
+
new.build_from_hash(attributes)
|
104
|
+
end
|
105
|
+
|
106
|
+
# Builds the object from hash
|
107
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
108
|
+
# @return [Object] Returns the model itself
|
109
|
+
def build_from_hash(attributes)
|
110
|
+
return nil unless attributes.is_a?(Hash)
|
111
|
+
attributes = attributes.transform_keys(&:to_sym)
|
112
|
+
self.class.openapi_types.each_pair do |key, type|
|
113
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
114
|
+
self.send("#{key}=", nil)
|
115
|
+
elsif type =~ /\AArray<(.*)>/i
|
116
|
+
# check to ensure the input is an array given that the attribute
|
117
|
+
# is documented as an array but the input is not
|
118
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
119
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
120
|
+
end
|
121
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
122
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
123
|
+
end
|
124
|
+
end
|
125
|
+
|
126
|
+
self
|
127
|
+
end
|
128
|
+
|
129
|
+
# Deserializes the data based on type
|
130
|
+
# @param string type Data type
|
131
|
+
# @param string value Value to be deserialized
|
132
|
+
# @return [Object] Deserialized data
|
133
|
+
def _deserialize(type, value)
|
134
|
+
case type.to_sym
|
135
|
+
when :Time
|
136
|
+
Time.parse(value)
|
137
|
+
when :Date
|
138
|
+
Date.parse(value)
|
139
|
+
when :String
|
140
|
+
value.to_s
|
141
|
+
when :Integer
|
142
|
+
value.to_i
|
143
|
+
when :Float
|
144
|
+
value.to_f
|
145
|
+
when :Boolean
|
146
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
147
|
+
true
|
148
|
+
else
|
149
|
+
false
|
150
|
+
end
|
151
|
+
when :Object
|
152
|
+
# generic object (usually a Hash), return directly
|
153
|
+
value
|
154
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
155
|
+
inner_type = Regexp.last_match[:inner_type]
|
156
|
+
value.map { |v| _deserialize(inner_type, v) }
|
157
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
158
|
+
k_type = Regexp.last_match[:k_type]
|
159
|
+
v_type = Regexp.last_match[:v_type]
|
160
|
+
{}.tap do |hash|
|
161
|
+
value.each do |k, v|
|
162
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
163
|
+
end
|
164
|
+
end
|
165
|
+
else # model
|
166
|
+
# models (e.g. Pet) or oneOf
|
167
|
+
klass = Akeyless.const_get(type)
|
168
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
169
|
+
end
|
170
|
+
end
|
171
|
+
|
172
|
+
# Returns the string representation of the object
|
173
|
+
# @return [String] String presentation of the object
|
174
|
+
def to_s
|
175
|
+
to_hash.to_s
|
176
|
+
end
|
177
|
+
|
178
|
+
# to_body is an alias to to_hash (backward compatibility)
|
179
|
+
# @return [Hash] Returns the object in the form of hash
|
180
|
+
def to_body
|
181
|
+
to_hash
|
182
|
+
end
|
183
|
+
|
184
|
+
# Returns the object in the form of hash
|
185
|
+
# @return [Hash] Returns the object in the form of hash
|
186
|
+
def to_hash
|
187
|
+
hash = {}
|
188
|
+
self.class.attribute_map.each_pair do |attr, param|
|
189
|
+
value = self.send(attr)
|
190
|
+
if value.nil?
|
191
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
192
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
193
|
+
end
|
194
|
+
|
195
|
+
hash[param] = _to_hash(value)
|
196
|
+
end
|
197
|
+
hash
|
198
|
+
end
|
199
|
+
|
200
|
+
# Outputs non-array value in the form of hash
|
201
|
+
# For object, use to_hash. Otherwise, just return the value
|
202
|
+
# @param [Object] value Any valid value
|
203
|
+
# @return [Hash] Returns the value in the form of hash
|
204
|
+
def _to_hash(value)
|
205
|
+
if value.is_a?(Array)
|
206
|
+
value.compact.map { |v| _to_hash(v) }
|
207
|
+
elsif value.is_a?(Hash)
|
208
|
+
{}.tap do |hash|
|
209
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
210
|
+
end
|
211
|
+
elsif value.respond_to? :to_hash
|
212
|
+
value.to_hash
|
213
|
+
else
|
214
|
+
value
|
215
|
+
end
|
216
|
+
end
|
217
|
+
|
218
|
+
end
|
219
|
+
|
220
|
+
end
|
@@ -15,15 +15,15 @@ require 'time'
|
|
15
15
|
|
16
16
|
module Akeyless
|
17
17
|
class DeleteItem
|
18
|
+
# for personal password manager
|
19
|
+
attr_accessor :accessibility
|
20
|
+
|
18
21
|
# When delete-in-days=-1, must be set
|
19
22
|
attr_accessor :delete_immediately
|
20
23
|
|
21
24
|
# The number of days to wait before deleting the item (relevant for keys only)
|
22
25
|
attr_accessor :delete_in_days
|
23
26
|
|
24
|
-
# for personal password manager
|
25
|
-
attr_accessor :item_accessibility
|
26
|
-
|
27
27
|
# Item name
|
28
28
|
attr_accessor :name
|
29
29
|
|
@@ -39,9 +39,9 @@ module Akeyless
|
|
39
39
|
# Attribute mapping from ruby-style variable name to JSON key.
|
40
40
|
def self.attribute_map
|
41
41
|
{
|
42
|
+
:'accessibility' => :'accessibility',
|
42
43
|
:'delete_immediately' => :'delete-immediately',
|
43
44
|
:'delete_in_days' => :'delete-in-days',
|
44
|
-
:'item_accessibility' => :'item-accessibility',
|
45
45
|
:'name' => :'name',
|
46
46
|
:'token' => :'token',
|
47
47
|
:'uid_token' => :'uid-token',
|
@@ -57,9 +57,9 @@ module Akeyless
|
|
57
57
|
# Attribute type mapping.
|
58
58
|
def self.openapi_types
|
59
59
|
{
|
60
|
+
:'accessibility' => :'String',
|
60
61
|
:'delete_immediately' => :'Boolean',
|
61
62
|
:'delete_in_days' => :'Integer',
|
62
|
-
:'item_accessibility' => :'String',
|
63
63
|
:'name' => :'String',
|
64
64
|
:'token' => :'String',
|
65
65
|
:'uid_token' => :'String',
|
@@ -88,6 +88,10 @@ module Akeyless
|
|
88
88
|
h[k.to_sym] = v
|
89
89
|
}
|
90
90
|
|
91
|
+
if attributes.key?(:'accessibility')
|
92
|
+
self.accessibility = attributes[:'accessibility']
|
93
|
+
end
|
94
|
+
|
91
95
|
if attributes.key?(:'delete_immediately')
|
92
96
|
self.delete_immediately = attributes[:'delete_immediately']
|
93
97
|
else
|
@@ -100,10 +104,6 @@ module Akeyless
|
|
100
104
|
self.delete_in_days = 7
|
101
105
|
end
|
102
106
|
|
103
|
-
if attributes.key?(:'item_accessibility')
|
104
|
-
self.item_accessibility = attributes[:'item_accessibility']
|
105
|
-
end
|
106
|
-
|
107
107
|
if attributes.key?(:'name')
|
108
108
|
self.name = attributes[:'name']
|
109
109
|
end
|
@@ -146,9 +146,9 @@ module Akeyless
|
|
146
146
|
def ==(o)
|
147
147
|
return true if self.equal?(o)
|
148
148
|
self.class == o.class &&
|
149
|
+
accessibility == o.accessibility &&
|
149
150
|
delete_immediately == o.delete_immediately &&
|
150
151
|
delete_in_days == o.delete_in_days &&
|
151
|
-
item_accessibility == o.item_accessibility &&
|
152
152
|
name == o.name &&
|
153
153
|
token == o.token &&
|
154
154
|
uid_token == o.uid_token &&
|
@@ -164,7 +164,7 @@ module Akeyless
|
|
164
164
|
# Calculates hash code according to all attributes.
|
165
165
|
# @return [Integer] Hash code
|
166
166
|
def hash
|
167
|
-
[delete_immediately, delete_in_days,
|
167
|
+
[accessibility, delete_immediately, delete_in_days, name, token, uid_token, version].hash
|
168
168
|
end
|
169
169
|
|
170
170
|
# Builds the object from hash
|
@@ -201,6 +201,8 @@ module Akeyless
|
|
201
201
|
|
202
202
|
attr_accessor :host_port
|
203
203
|
|
204
|
+
attr_accessor :implementation_type
|
205
|
+
|
204
206
|
attr_accessor :is_fixed_user
|
205
207
|
|
206
208
|
attr_accessor :item_targets_assoc
|
@@ -468,6 +470,7 @@ module Akeyless
|
|
468
470
|
:'hanadb_revocation_statements' => :'hanadb_revocation_statements',
|
469
471
|
:'host_name' => :'host_name',
|
470
472
|
:'host_port' => :'host_port',
|
473
|
+
:'implementation_type' => :'implementation_type',
|
471
474
|
:'is_fixed_user' => :'is_fixed_user',
|
472
475
|
:'item_targets_assoc' => :'item_targets_assoc',
|
473
476
|
:'k8s_bearer_token' => :'k8s_bearer_token',
|
@@ -653,6 +656,7 @@ module Akeyless
|
|
653
656
|
:'hanadb_revocation_statements' => :'String',
|
654
657
|
:'host_name' => :'String',
|
655
658
|
:'host_port' => :'String',
|
659
|
+
:'implementation_type' => :'String',
|
656
660
|
:'is_fixed_user' => :'String',
|
657
661
|
:'item_targets_assoc' => :'Array<ItemTargetAssociation>',
|
658
662
|
:'k8s_bearer_token' => :'String',
|
@@ -1133,6 +1137,10 @@ module Akeyless
|
|
1133
1137
|
self.host_port = attributes[:'host_port']
|
1134
1138
|
end
|
1135
1139
|
|
1140
|
+
if attributes.key?(:'implementation_type')
|
1141
|
+
self.implementation_type = attributes[:'implementation_type']
|
1142
|
+
end
|
1143
|
+
|
1136
1144
|
if attributes.key?(:'is_fixed_user')
|
1137
1145
|
self.is_fixed_user = attributes[:'is_fixed_user']
|
1138
1146
|
end
|
@@ -1580,6 +1588,7 @@ module Akeyless
|
|
1580
1588
|
hanadb_revocation_statements == o.hanadb_revocation_statements &&
|
1581
1589
|
host_name == o.host_name &&
|
1582
1590
|
host_port == o.host_port &&
|
1591
|
+
implementation_type == o.implementation_type &&
|
1583
1592
|
is_fixed_user == o.is_fixed_user &&
|
1584
1593
|
item_targets_assoc == o.item_targets_assoc &&
|
1585
1594
|
k8s_bearer_token == o.k8s_bearer_token &&
|
@@ -1673,7 +1682,7 @@ module Akeyless
|
|
1673
1682
|
# Calculates hash code according to all attributes.
|
1674
1683
|
# @return [Integer] Hash code
|
1675
1684
|
def hash
|
1676
|
-
[active, admin_name, admin_pwd, admin_rotation_interval_days, artifactory_admin_apikey, artifactory_admin_username, artifactory_base_url, artifactory_token_audience, artifactory_token_scope, aws_access_key_id, aws_access_mode, aws_region, aws_role_arns, aws_secret_access_key, aws_session_token, aws_user_console_access, aws_user_groups, aws_user_policies, aws_user_programmatic_access, azure_app_object_id, azure_client_id, azure_client_secret, azure_fixed_user_name_sub_claim_key, azure_fixed_user_only, azure_resource_group_name, azure_resource_name, azure_subscription_id, azure_tenant_id, azure_user_groups_obj_id, azure_user_portal_access, azure_user_programmatic_access, azure_user_roles_template_id, cassandra_creation_statements, chef_organizations, chef_server_access_mode, chef_server_host_name, chef_server_key, chef_server_port, chef_server_url, chef_server_username, chef_skip_ssl, create_sync_url, db_host_name, db_isolation_level, db_max_idle_conns, db_max_open_conns, db_name, db_port, db_pwd, db_server_certificates, db_server_name, db_user_name, delete_protection, dynamic_secret_id, dynamic_secret_key, dynamic_secret_name, dynamic_secret_type, eks_access_key_id, eks_assume_role, eks_cluster_ca_certificate, eks_cluster_endpoint, eks_cluster_name, eks_region, eks_secret_access_key, enable_admin_rotation, externally_provided_user, failure_message, fixed_user_only, gcp_key_algo, gcp_service_account_email, gcp_service_account_key, gcp_token_lifetime, gcp_token_scope, gcp_token_type, github_app_id, github_app_private_key, github_base_url, github_installation_id, github_installation_token_permissions, github_installation_token_repositories, github_installation_token_repositories_ids, github_repository_path, gke_cluster_ca_certificate, gke_cluster_endpoint, gke_cluster_name, gke_service_account_key, gke_service_account_name, groups, hanadb_creation_statements, hanadb_revocation_statements, host_name, host_port, is_fixed_user, item_targets_assoc, k8s_bearer_token, k8s_cluster_ca_certificate, k8s_cluster_endpoint, k8s_namespace, k8s_service_account, last_admin_rotation, ldap_audience, ldap_bind_dn, ldap_bind_password, ldap_certificate, ldap_token_expiration, ldap_url, ldap_user_attr, ldap_user_dn, metadata, mongodb_atlas_api_private_key, mongodb_atlas_api_public_key, mongodb_atlas_project_id, mongodb_custom_data, mongodb_db_name, mongodb_default_auth_db, mongodb_host_port, mongodb_is_atlas, mongodb_password, mongodb_roles, mongodb_uri_connection, mongodb_uri_options, mongodb_username, mssql_creation_statements, mssql_revocation_statements, mysql_creation_statements, oracle_creation_statements, password, password_length, password_policy, payload, postgres_creation_statements, postgres_revocation_statements, rabbitmq_server_password, rabbitmq_server_uri, rabbitmq_server_user, rabbitmq_user_conf_permission, rabbitmq_user_read_permission, rabbitmq_user_tags, rabbitmq_user_vhost, rabbitmq_user_write_permission, redshift_creation_statements, revoke_sync_url, rotate_sync_url, scopes, secure_remote_access_details, session_extension_warn_interval_min, sf_account, sf_user_role, sf_warehouse_name, should_stop, ssl_connection_certificate, ssl_connection_mode, tags, timeout_seconds, use_gw_cloud_identity, user_name, user_principal_name, user_ttl, username_length, username_policy, venafi_allow_subdomains, venafi_allowed_domains, venafi_api_key, venafi_auto_generated_folder, venafi_base_url, venafi_root_first_in_chain, venafi_sign_using_akeyless_pki, venafi_signer_key_name, venafi_store_private_key, venafi_tpp_password, venafi_tpp_username, venafi_use_tpp, venafi_zone, warn_before_user_expiration_min].hash
|
1685
|
+
[active, admin_name, admin_pwd, admin_rotation_interval_days, artifactory_admin_apikey, artifactory_admin_username, artifactory_base_url, artifactory_token_audience, artifactory_token_scope, aws_access_key_id, aws_access_mode, aws_region, aws_role_arns, aws_secret_access_key, aws_session_token, aws_user_console_access, aws_user_groups, aws_user_policies, aws_user_programmatic_access, azure_app_object_id, azure_client_id, azure_client_secret, azure_fixed_user_name_sub_claim_key, azure_fixed_user_only, azure_resource_group_name, azure_resource_name, azure_subscription_id, azure_tenant_id, azure_user_groups_obj_id, azure_user_portal_access, azure_user_programmatic_access, azure_user_roles_template_id, cassandra_creation_statements, chef_organizations, chef_server_access_mode, chef_server_host_name, chef_server_key, chef_server_port, chef_server_url, chef_server_username, chef_skip_ssl, create_sync_url, db_host_name, db_isolation_level, db_max_idle_conns, db_max_open_conns, db_name, db_port, db_pwd, db_server_certificates, db_server_name, db_user_name, delete_protection, dynamic_secret_id, dynamic_secret_key, dynamic_secret_name, dynamic_secret_type, eks_access_key_id, eks_assume_role, eks_cluster_ca_certificate, eks_cluster_endpoint, eks_cluster_name, eks_region, eks_secret_access_key, enable_admin_rotation, externally_provided_user, failure_message, fixed_user_only, gcp_key_algo, gcp_service_account_email, gcp_service_account_key, gcp_token_lifetime, gcp_token_scope, gcp_token_type, github_app_id, github_app_private_key, github_base_url, github_installation_id, github_installation_token_permissions, github_installation_token_repositories, github_installation_token_repositories_ids, github_repository_path, gke_cluster_ca_certificate, gke_cluster_endpoint, gke_cluster_name, gke_service_account_key, gke_service_account_name, groups, hanadb_creation_statements, hanadb_revocation_statements, host_name, host_port, implementation_type, is_fixed_user, item_targets_assoc, k8s_bearer_token, k8s_cluster_ca_certificate, k8s_cluster_endpoint, k8s_namespace, k8s_service_account, last_admin_rotation, ldap_audience, ldap_bind_dn, ldap_bind_password, ldap_certificate, ldap_token_expiration, ldap_url, ldap_user_attr, ldap_user_dn, metadata, mongodb_atlas_api_private_key, mongodb_atlas_api_public_key, mongodb_atlas_project_id, mongodb_custom_data, mongodb_db_name, mongodb_default_auth_db, mongodb_host_port, mongodb_is_atlas, mongodb_password, mongodb_roles, mongodb_uri_connection, mongodb_uri_options, mongodb_username, mssql_creation_statements, mssql_revocation_statements, mysql_creation_statements, oracle_creation_statements, password, password_length, password_policy, payload, postgres_creation_statements, postgres_revocation_statements, rabbitmq_server_password, rabbitmq_server_uri, rabbitmq_server_user, rabbitmq_user_conf_permission, rabbitmq_user_read_permission, rabbitmq_user_tags, rabbitmq_user_vhost, rabbitmq_user_write_permission, redshift_creation_statements, revoke_sync_url, rotate_sync_url, scopes, secure_remote_access_details, session_extension_warn_interval_min, sf_account, sf_user_role, sf_warehouse_name, should_stop, ssl_connection_certificate, ssl_connection_mode, tags, timeout_seconds, use_gw_cloud_identity, user_name, user_principal_name, user_ttl, username_length, username_policy, venafi_allow_subdomains, venafi_allowed_domains, venafi_api_key, venafi_auto_generated_folder, venafi_base_url, venafi_root_first_in_chain, venafi_sign_using_akeyless_pki, venafi_signer_key_name, venafi_store_private_key, venafi_tpp_password, venafi_tpp_username, venafi_use_tpp, venafi_zone, warn_before_user_expiration_min].hash
|
1677
1686
|
end
|
1678
1687
|
|
1679
1688
|
# Builds the object from hash
|