akeyless 2.16.11 → 2.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -8
- data/docs/AccountGeneralSettings.md +20 -0
- data/docs/CreateArtifactoryTarget.md +1 -1
- data/docs/CreateAuthMethodK8S.md +2 -2
- data/docs/CreateAuthMethodLDAP.md +3 -1
- data/docs/CreateAuthMethodLDAPOutput.md +3 -1
- data/docs/CreateKeyOutput.md +5 -1
- data/docs/CreateLdapTarget.md +2 -0
- data/docs/CreatePKICertIssuer.md +5 -5
- data/docs/CreateSSHCertIssuer.md +1 -1
- data/docs/CreateSalesforceTarget.md +7 -3
- data/docs/CreateSecret.md +11 -19
- data/docs/DSProducerDetails.md +2 -0
- data/docs/DataProtectionSection.md +18 -0
- data/docs/Decrypt.md +3 -1
- data/docs/DecryptFile.md +6 -0
- data/docs/DecryptPKCS1.md +5 -1
- data/docs/DeleteItem.md +2 -2
- data/docs/DescribeItem.md +4 -0
- data/docs/DescribeSubClaims.md +20 -0
- data/docs/DescribeSubClaimsOutput.md +18 -0
- data/docs/Encrypt.md +3 -1
- data/docs/EncryptFile.md +4 -0
- data/docs/EncryptPKCS1.md +5 -1
- data/docs/GatewayCreateK8SAuthConfig.md +10 -4
- data/docs/GatewayCreateProducerDockerhub.md +1 -1
- data/docs/GatewayGetK8SAuthConfigOutput.md +7 -1
- data/docs/GatewayRevokeTmpUsers.md +4 -2
- data/docs/GatewayUpdateK8SAuthConfig.md +10 -4
- data/docs/GatewayUpdateLdapAuthConfig.md +2 -2
- data/docs/GatewayUpdateProducerDockerhub.md +1 -1
- data/docs/GetAccountSettingsCommandOutput.md +2 -0
- data/docs/GetSecretValue.md +2 -2
- data/docs/Item.md +2 -0
- data/docs/K8SAuth.md +7 -1
- data/docs/KubernetesAccessRules.md +2 -0
- data/docs/LDAPAccessRules.md +2 -0
- data/docs/ListItems.md +2 -2
- data/docs/LogForwardingConfigPart.md +2 -0
- data/docs/RuleAssigner.md +20 -0
- data/docs/SignPKCS1.md +5 -1
- data/docs/TargetTypeDetailsInput.md +5 -1
- data/docs/UpdateAccountSettings.md +13 -1
- data/docs/UpdateAuthMethodK8S.md +2 -2
- data/docs/UpdateAuthMethodLDAP.md +3 -1
- data/docs/UpdateAuthMethodLDAPOutput.md +18 -0
- data/docs/UpdateItem.md +2 -2
- data/docs/UpdateLdapTarget.md +2 -0
- data/docs/UpdateSalesforceTarget.md +7 -3
- data/docs/UpdateSecretVal.md +11 -9
- data/docs/V2Api.md +46 -109
- data/docs/VerifyPKCS1.md +4 -0
- data/lib/akeyless/api/v2_api.rb +43 -107
- data/lib/akeyless/models/account_general_settings.rb +229 -0
- data/lib/akeyless/models/create_artifactory_target.rb +1 -1
- data/lib/akeyless/models/create_auth_method_k8_s.rb +2 -2
- data/lib/akeyless/models/create_auth_method_ldap.rb +14 -2
- data/lib/akeyless/models/create_auth_method_ldap_output.rb +13 -4
- data/lib/akeyless/models/create_key_output.rb +22 -4
- data/lib/akeyless/models/create_ldap_target.rb +13 -1
- data/lib/akeyless/models/create_pki_cert_issuer.rb +5 -5
- data/lib/akeyless/models/create_salesforce_target.rb +29 -19
- data/lib/akeyless/models/create_secret.rb +50 -90
- data/lib/akeyless/models/create_ssh_cert_issuer.rb +1 -1
- data/lib/akeyless/models/data_protection_section.rb +220 -0
- data/lib/akeyless/models/decrypt.rb +16 -1
- data/lib/akeyless/models/decrypt_file.rb +36 -1
- data/lib/akeyless/models/decrypt_pkcs1.rb +22 -2
- data/lib/akeyless/models/delete_item.rb +11 -11
- data/lib/akeyless/models/describe_item.rb +21 -1
- data/lib/akeyless/models/describe_sub_claims.rb +231 -0
- data/lib/akeyless/models/describe_sub_claims_output.rb +221 -0
- data/lib/akeyless/models/ds_producer_details.rb +10 -1
- data/lib/akeyless/models/encrypt.rb +16 -1
- data/lib/akeyless/models/encrypt_file.rb +21 -1
- data/lib/akeyless/models/encrypt_pkcs1.rb +22 -2
- data/lib/akeyless/models/gateway_create_k8_s_auth_config.rb +38 -4
- data/lib/akeyless/models/gateway_create_producer_dockerhub.rb +1 -1
- data/lib/akeyless/models/gateway_get_k8_s_auth_config_output.rb +32 -2
- data/lib/akeyless/models/gateway_revoke_tmp_users.rb +14 -2
- data/lib/akeyless/models/gateway_update_k8_s_auth_config.rb +38 -4
- data/lib/akeyless/models/gateway_update_ldap_auth_config.rb +2 -2
- data/lib/akeyless/models/gateway_update_producer_dockerhub.rb +1 -1
- 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/item.rb +10 -1
- data/lib/akeyless/models/k8_s_auth.rb +32 -2
- data/lib/akeyless/models/kubernetes_access_rules.rb +11 -1
- data/lib/akeyless/models/ldap_access_rules.rb +11 -1
- data/lib/akeyless/models/list_items.rb +11 -11
- data/lib/akeyless/models/log_forwarding_config_part.rb +10 -1
- data/lib/akeyless/models/rule_assigner.rb +228 -0
- data/lib/akeyless/models/sign_pkcs1.rb +21 -6
- data/lib/akeyless/models/target_type_details_input.rb +23 -1
- data/lib/akeyless/models/update_account_settings.rb +64 -4
- data/lib/akeyless/models/update_auth_method_k8_s.rb +2 -4
- data/lib/akeyless/models/update_auth_method_ldap.rb +12 -2
- data/lib/akeyless/models/update_auth_method_ldap_output.rb +219 -0
- data/lib/akeyless/models/update_item.rb +11 -11
- data/lib/akeyless/models/update_ldap_target.rb +11 -1
- data/lib/akeyless/models/update_salesforce_target.rb +29 -19
- data/lib/akeyless/models/update_secret_val.rb +52 -42
- data/lib/akeyless/models/verify_pkcs1.rb +21 -1
- data/lib/akeyless/version.rb +1 -1
- data/lib/akeyless.rb +6 -4
- data/spec/models/account_general_settings_spec.rb +34 -0
- data/spec/models/data_protection_section_spec.rb +34 -0
- data/spec/models/describe_sub_claims_output_spec.rb +34 -0
- data/spec/models/describe_sub_claims_spec.rb +40 -0
- data/spec/models/rule_assigner_spec.rb +40 -0
- data/spec/models/update_auth_method_ldap_output_spec.rb +34 -0
- metadata +525 -501
@@ -15,12 +15,18 @@ require 'time'
|
|
15
15
|
|
16
16
|
module Akeyless
|
17
17
|
class CreateKeyOutput
|
18
|
+
attr_accessor :display_id
|
19
|
+
|
18
20
|
attr_accessor :fragment_results
|
19
21
|
|
22
|
+
attr_accessor :item_id
|
23
|
+
|
20
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
21
25
|
def self.attribute_map
|
22
26
|
{
|
23
|
-
:'
|
27
|
+
:'display_id' => :'display_id',
|
28
|
+
:'fragment_results' => :'fragment_results',
|
29
|
+
:'item_id' => :'item_id'
|
24
30
|
}
|
25
31
|
end
|
26
32
|
|
@@ -32,7 +38,9 @@ module Akeyless
|
|
32
38
|
# Attribute type mapping.
|
33
39
|
def self.openapi_types
|
34
40
|
{
|
35
|
-
:'
|
41
|
+
:'display_id' => :'String',
|
42
|
+
:'fragment_results' => :'Array<Integer>',
|
43
|
+
:'item_id' => :'Integer'
|
36
44
|
}
|
37
45
|
end
|
38
46
|
|
@@ -57,11 +65,19 @@ module Akeyless
|
|
57
65
|
h[k.to_sym] = v
|
58
66
|
}
|
59
67
|
|
68
|
+
if attributes.key?(:'display_id')
|
69
|
+
self.display_id = attributes[:'display_id']
|
70
|
+
end
|
71
|
+
|
60
72
|
if attributes.key?(:'fragment_results')
|
61
73
|
if (value = attributes[:'fragment_results']).is_a?(Array)
|
62
74
|
self.fragment_results = value
|
63
75
|
end
|
64
76
|
end
|
77
|
+
|
78
|
+
if attributes.key?(:'item_id')
|
79
|
+
self.item_id = attributes[:'item_id']
|
80
|
+
end
|
65
81
|
end
|
66
82
|
|
67
83
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -82,7 +98,9 @@ module Akeyless
|
|
82
98
|
def ==(o)
|
83
99
|
return true if self.equal?(o)
|
84
100
|
self.class == o.class &&
|
85
|
-
|
101
|
+
display_id == o.display_id &&
|
102
|
+
fragment_results == o.fragment_results &&
|
103
|
+
item_id == o.item_id
|
86
104
|
end
|
87
105
|
|
88
106
|
# @see the `==` method
|
@@ -94,7 +112,7 @@ module Akeyless
|
|
94
112
|
# Calculates hash code according to all attributes.
|
95
113
|
# @return [Integer] Hash code
|
96
114
|
def hash
|
97
|
-
[fragment_results].hash
|
115
|
+
[display_id, fragment_results, item_id].hash
|
98
116
|
end
|
99
117
|
|
100
118
|
# Builds the object from hash
|
@@ -36,6 +36,9 @@ module Akeyless
|
|
36
36
|
# Target name
|
37
37
|
attr_accessor :name
|
38
38
|
|
39
|
+
# Set Ldap server type, Options:[OpenLDAP, ActiveDirectory]. Default is OpenLDAP
|
40
|
+
attr_accessor :server_type
|
41
|
+
|
39
42
|
# Authentication token (see `/auth` and `/configure`)
|
40
43
|
attr_accessor :token
|
41
44
|
|
@@ -55,6 +58,7 @@ module Akeyless
|
|
55
58
|
:'ldap_ca_cert' => :'ldap-ca-cert',
|
56
59
|
:'ldap_url' => :'ldap-url',
|
57
60
|
:'name' => :'name',
|
61
|
+
:'server_type' => :'server-type',
|
58
62
|
:'token' => :'token',
|
59
63
|
:'token_expiration' => :'token-expiration',
|
60
64
|
:'uid_token' => :'uid-token'
|
@@ -76,6 +80,7 @@ module Akeyless
|
|
76
80
|
:'ldap_ca_cert' => :'String',
|
77
81
|
:'ldap_url' => :'String',
|
78
82
|
:'name' => :'String',
|
83
|
+
:'server_type' => :'String',
|
79
84
|
:'token' => :'String',
|
80
85
|
:'token_expiration' => :'String',
|
81
86
|
:'uid_token' => :'String'
|
@@ -131,6 +136,12 @@ module Akeyless
|
|
131
136
|
self.name = attributes[:'name']
|
132
137
|
end
|
133
138
|
|
139
|
+
if attributes.key?(:'server_type')
|
140
|
+
self.server_type = attributes[:'server_type']
|
141
|
+
else
|
142
|
+
self.server_type = 'OpenLDAP'
|
143
|
+
end
|
144
|
+
|
134
145
|
if attributes.key?(:'token')
|
135
146
|
self.token = attributes[:'token']
|
136
147
|
end
|
@@ -189,6 +200,7 @@ module Akeyless
|
|
189
200
|
ldap_ca_cert == o.ldap_ca_cert &&
|
190
201
|
ldap_url == o.ldap_url &&
|
191
202
|
name == o.name &&
|
203
|
+
server_type == o.server_type &&
|
192
204
|
token == o.token &&
|
193
205
|
token_expiration == o.token_expiration &&
|
194
206
|
uid_token == o.uid_token
|
@@ -203,7 +215,7 @@ module Akeyless
|
|
203
215
|
# Calculates hash code according to all attributes.
|
204
216
|
# @return [Integer] Hash code
|
205
217
|
def hash
|
206
|
-
[bind_dn, bind_dn_password, comment, key, ldap_ca_cert, ldap_url, name, token, token_expiration, uid_token].hash
|
218
|
+
[bind_dn, bind_dn_password, comment, key, ldap_ca_cert, ldap_url, name, server_type, token, token_expiration, uid_token].hash
|
207
219
|
end
|
208
220
|
|
209
221
|
# Builds the object from hash
|
@@ -33,7 +33,7 @@ module Akeyless
|
|
33
33
|
# If set, certificates will be flagged for code signing use
|
34
34
|
attr_accessor :code_signing_flag
|
35
35
|
|
36
|
-
# A comma-separated list of
|
36
|
+
# A comma-separated list of countries that will be set in the issued certificate
|
37
37
|
attr_accessor :country
|
38
38
|
|
39
39
|
# Protection from accidental deletion of this item
|
@@ -42,7 +42,7 @@ module Akeyless
|
|
42
42
|
# key-usage
|
43
43
|
attr_accessor :key_usage
|
44
44
|
|
45
|
-
# A comma-separated list of
|
45
|
+
# A comma-separated list of localities that will be set in the issued certificate
|
46
46
|
attr_accessor :locality
|
47
47
|
|
48
48
|
# A metadata about the issuer
|
@@ -63,10 +63,10 @@ module Akeyless
|
|
63
63
|
# A comma-separated list of organizations (O) that will be set in the issued certificate
|
64
64
|
attr_accessor :organizations
|
65
65
|
|
66
|
-
# A comma-separated list of
|
66
|
+
# A comma-separated list of postal codes that will be set in the issued certificate
|
67
67
|
attr_accessor :postal_code
|
68
68
|
|
69
|
-
# A comma-separated list of
|
69
|
+
# A comma-separated list of provinces that will be set in the issued certificate
|
70
70
|
attr_accessor :province
|
71
71
|
|
72
72
|
# If set, certificates will be flagged for server auth use
|
@@ -75,7 +75,7 @@ module Akeyless
|
|
75
75
|
# A key to sign the certificate with
|
76
76
|
attr_accessor :signer_key_name
|
77
77
|
|
78
|
-
# A comma-separated list of
|
78
|
+
# A comma-separated list of street addresses that will be set in the issued certificate
|
79
79
|
attr_accessor :street_address
|
80
80
|
|
81
81
|
# List of the tags attached to this key
|
@@ -15,6 +15,12 @@ require 'time'
|
|
15
15
|
|
16
16
|
module Akeyless
|
17
17
|
class CreateSalesforceTarget
|
18
|
+
# Base64 encoded PEM of the connected app private key (relevant for JWT auth only)
|
19
|
+
attr_accessor :app_private_key_data
|
20
|
+
|
21
|
+
# type of the auth flow ('jwt' / 'user-password')
|
22
|
+
attr_accessor :auth_flow
|
23
|
+
|
18
24
|
# Base64 encoded PEM cert to use when uploading a new key to Salesforce
|
19
25
|
attr_accessor :ca_cert_data
|
20
26
|
|
@@ -24,7 +30,7 @@ module Akeyless
|
|
24
30
|
# Client ID of the oauth2 app to use for connecting to Salesforce
|
25
31
|
attr_accessor :client_id
|
26
32
|
|
27
|
-
# Client secret of the oauth2 app to use for connecting to Salesforce
|
33
|
+
# Client secret of the oauth2 app to use for connecting to Salesforce (required for password flow)
|
28
34
|
attr_accessor :client_secret
|
29
35
|
|
30
36
|
# Comment about the target
|
@@ -39,10 +45,10 @@ module Akeyless
|
|
39
45
|
# Target name
|
40
46
|
attr_accessor :name
|
41
47
|
|
42
|
-
# The password of the user attached to the oauth2 app used for connecting to Salesforce
|
48
|
+
# The password of the user attached to the oauth2 app used for connecting to Salesforce (required for user-password flow)
|
43
49
|
attr_accessor :password
|
44
50
|
|
45
|
-
# The security token of the user attached to the oauth2 app used for connecting to Salesforce
|
51
|
+
# The security token of the user attached to the oauth2 app used for connecting to Salesforce (required for user-password flow)
|
46
52
|
attr_accessor :security_token
|
47
53
|
|
48
54
|
# Url of the Salesforce tenant
|
@@ -57,6 +63,8 @@ module Akeyless
|
|
57
63
|
# Attribute mapping from ruby-style variable name to JSON key.
|
58
64
|
def self.attribute_map
|
59
65
|
{
|
66
|
+
:'app_private_key_data' => :'app-private-key-data',
|
67
|
+
:'auth_flow' => :'auth-flow',
|
60
68
|
:'ca_cert_data' => :'ca-cert-data',
|
61
69
|
:'ca_cert_name' => :'ca-cert-name',
|
62
70
|
:'client_id' => :'client-id',
|
@@ -81,6 +89,8 @@ module Akeyless
|
|
81
89
|
# Attribute type mapping.
|
82
90
|
def self.openapi_types
|
83
91
|
{
|
92
|
+
:'app_private_key_data' => :'String',
|
93
|
+
:'auth_flow' => :'String',
|
84
94
|
:'ca_cert_data' => :'String',
|
85
95
|
:'ca_cert_name' => :'String',
|
86
96
|
:'client_id' => :'String',
|
@@ -118,6 +128,14 @@ module Akeyless
|
|
118
128
|
h[k.to_sym] = v
|
119
129
|
}
|
120
130
|
|
131
|
+
if attributes.key?(:'app_private_key_data')
|
132
|
+
self.app_private_key_data = attributes[:'app_private_key_data']
|
133
|
+
end
|
134
|
+
|
135
|
+
if attributes.key?(:'auth_flow')
|
136
|
+
self.auth_flow = attributes[:'auth_flow']
|
137
|
+
end
|
138
|
+
|
121
139
|
if attributes.key?(:'ca_cert_data')
|
122
140
|
self.ca_cert_data = attributes[:'ca_cert_data']
|
123
141
|
end
|
@@ -175,12 +193,12 @@ module Akeyless
|
|
175
193
|
# @return Array for valid properties with the reasons
|
176
194
|
def list_invalid_properties
|
177
195
|
invalid_properties = Array.new
|
178
|
-
if @
|
179
|
-
invalid_properties.push('invalid value for "
|
196
|
+
if @auth_flow.nil?
|
197
|
+
invalid_properties.push('invalid value for "auth_flow", auth_flow cannot be nil.')
|
180
198
|
end
|
181
199
|
|
182
|
-
if @
|
183
|
-
invalid_properties.push('invalid value for "
|
200
|
+
if @client_id.nil?
|
201
|
+
invalid_properties.push('invalid value for "client_id", client_id cannot be nil.')
|
184
202
|
end
|
185
203
|
|
186
204
|
if @email.nil?
|
@@ -191,14 +209,6 @@ module Akeyless
|
|
191
209
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
192
210
|
end
|
193
211
|
|
194
|
-
if @password.nil?
|
195
|
-
invalid_properties.push('invalid value for "password", password cannot be nil.')
|
196
|
-
end
|
197
|
-
|
198
|
-
if @security_token.nil?
|
199
|
-
invalid_properties.push('invalid value for "security_token", security_token cannot be nil.')
|
200
|
-
end
|
201
|
-
|
202
212
|
if @tenant_url.nil?
|
203
213
|
invalid_properties.push('invalid value for "tenant_url", tenant_url cannot be nil.')
|
204
214
|
end
|
@@ -209,12 +219,10 @@ module Akeyless
|
|
209
219
|
# Check to see if the all the properties in the model are valid
|
210
220
|
# @return true if the model is valid
|
211
221
|
def valid?
|
222
|
+
return false if @auth_flow.nil?
|
212
223
|
return false if @client_id.nil?
|
213
|
-
return false if @client_secret.nil?
|
214
224
|
return false if @email.nil?
|
215
225
|
return false if @name.nil?
|
216
|
-
return false if @password.nil?
|
217
|
-
return false if @security_token.nil?
|
218
226
|
return false if @tenant_url.nil?
|
219
227
|
true
|
220
228
|
end
|
@@ -224,6 +232,8 @@ module Akeyless
|
|
224
232
|
def ==(o)
|
225
233
|
return true if self.equal?(o)
|
226
234
|
self.class == o.class &&
|
235
|
+
app_private_key_data == o.app_private_key_data &&
|
236
|
+
auth_flow == o.auth_flow &&
|
227
237
|
ca_cert_data == o.ca_cert_data &&
|
228
238
|
ca_cert_name == o.ca_cert_name &&
|
229
239
|
client_id == o.client_id &&
|
@@ -248,7 +258,7 @@ module Akeyless
|
|
248
258
|
# Calculates hash code according to all attributes.
|
249
259
|
# @return [Integer] Hash code
|
250
260
|
def hash
|
251
|
-
[ca_cert_data, ca_cert_name, client_id, client_secret, comment, email, key, name, password, security_token, tenant_url, token, uid_token].hash
|
261
|
+
[app_private_key_data, auth_flow, ca_cert_data, ca_cert_name, client_id, client_secret, comment, email, key, name, password, security_token, tenant_url, token, uid_token].hash
|
252
262
|
end
|
253
263
|
|
254
264
|
# Builds the object from hash
|
@@ -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
|
@@ -54,7 +54,7 @@ module Akeyless
|
|
54
54
|
# Authentication token (see `/auth` and `/configure`)
|
55
55
|
attr_accessor :token
|
56
56
|
|
57
|
-
#
|
57
|
+
# The requested Time To Live for the certificate, in seconds
|
58
58
|
attr_accessor :ttl
|
59
59
|
|
60
60
|
# The universal identity token, Required only for universal_identity authentication
|