akeyless 2.16.11 → 2.18.0

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.
Files changed (113) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +9 -8
  3. data/docs/AccountGeneralSettings.md +20 -0
  4. data/docs/CreateArtifactoryTarget.md +1 -1
  5. data/docs/CreateAuthMethodK8S.md +2 -2
  6. data/docs/CreateAuthMethodLDAP.md +3 -1
  7. data/docs/CreateAuthMethodLDAPOutput.md +3 -1
  8. data/docs/CreateKeyOutput.md +5 -1
  9. data/docs/CreateLdapTarget.md +2 -0
  10. data/docs/CreatePKICertIssuer.md +5 -5
  11. data/docs/CreateSSHCertIssuer.md +1 -1
  12. data/docs/CreateSalesforceTarget.md +7 -3
  13. data/docs/CreateSecret.md +11 -19
  14. data/docs/DSProducerDetails.md +2 -0
  15. data/docs/DataProtectionSection.md +18 -0
  16. data/docs/Decrypt.md +3 -1
  17. data/docs/DecryptFile.md +6 -0
  18. data/docs/DecryptPKCS1.md +5 -1
  19. data/docs/DeleteItem.md +2 -2
  20. data/docs/DescribeItem.md +4 -0
  21. data/docs/DescribeSubClaims.md +20 -0
  22. data/docs/DescribeSubClaimsOutput.md +18 -0
  23. data/docs/Encrypt.md +3 -1
  24. data/docs/EncryptFile.md +4 -0
  25. data/docs/EncryptPKCS1.md +5 -1
  26. data/docs/GatewayCreateK8SAuthConfig.md +10 -4
  27. data/docs/GatewayCreateProducerDockerhub.md +1 -1
  28. data/docs/GatewayGetK8SAuthConfigOutput.md +7 -1
  29. data/docs/GatewayRevokeTmpUsers.md +4 -2
  30. data/docs/GatewayUpdateK8SAuthConfig.md +10 -4
  31. data/docs/GatewayUpdateLdapAuthConfig.md +2 -2
  32. data/docs/GatewayUpdateProducerDockerhub.md +1 -1
  33. data/docs/GetAccountSettingsCommandOutput.md +2 -0
  34. data/docs/GetSecretValue.md +2 -2
  35. data/docs/Item.md +2 -0
  36. data/docs/K8SAuth.md +7 -1
  37. data/docs/KubernetesAccessRules.md +2 -0
  38. data/docs/LDAPAccessRules.md +2 -0
  39. data/docs/ListItems.md +2 -2
  40. data/docs/LogForwardingConfigPart.md +2 -0
  41. data/docs/RuleAssigner.md +20 -0
  42. data/docs/SignPKCS1.md +5 -1
  43. data/docs/TargetTypeDetailsInput.md +5 -1
  44. data/docs/UpdateAccountSettings.md +13 -1
  45. data/docs/UpdateAuthMethodK8S.md +2 -2
  46. data/docs/UpdateAuthMethodLDAP.md +3 -1
  47. data/docs/UpdateAuthMethodLDAPOutput.md +18 -0
  48. data/docs/UpdateItem.md +2 -2
  49. data/docs/UpdateLdapTarget.md +2 -0
  50. data/docs/UpdateSalesforceTarget.md +7 -3
  51. data/docs/UpdateSecretVal.md +11 -9
  52. data/docs/V2Api.md +46 -109
  53. data/docs/VerifyPKCS1.md +4 -0
  54. data/lib/akeyless/api/v2_api.rb +43 -107
  55. data/lib/akeyless/models/account_general_settings.rb +229 -0
  56. data/lib/akeyless/models/create_artifactory_target.rb +1 -1
  57. data/lib/akeyless/models/create_auth_method_k8_s.rb +2 -2
  58. data/lib/akeyless/models/create_auth_method_ldap.rb +14 -2
  59. data/lib/akeyless/models/create_auth_method_ldap_output.rb +13 -4
  60. data/lib/akeyless/models/create_key_output.rb +22 -4
  61. data/lib/akeyless/models/create_ldap_target.rb +13 -1
  62. data/lib/akeyless/models/create_pki_cert_issuer.rb +5 -5
  63. data/lib/akeyless/models/create_salesforce_target.rb +29 -19
  64. data/lib/akeyless/models/create_secret.rb +50 -90
  65. data/lib/akeyless/models/create_ssh_cert_issuer.rb +1 -1
  66. data/lib/akeyless/models/data_protection_section.rb +220 -0
  67. data/lib/akeyless/models/decrypt.rb +16 -1
  68. data/lib/akeyless/models/decrypt_file.rb +36 -1
  69. data/lib/akeyless/models/decrypt_pkcs1.rb +22 -2
  70. data/lib/akeyless/models/delete_item.rb +11 -11
  71. data/lib/akeyless/models/describe_item.rb +21 -1
  72. data/lib/akeyless/models/describe_sub_claims.rb +231 -0
  73. data/lib/akeyless/models/describe_sub_claims_output.rb +221 -0
  74. data/lib/akeyless/models/ds_producer_details.rb +10 -1
  75. data/lib/akeyless/models/encrypt.rb +16 -1
  76. data/lib/akeyless/models/encrypt_file.rb +21 -1
  77. data/lib/akeyless/models/encrypt_pkcs1.rb +22 -2
  78. data/lib/akeyless/models/gateway_create_k8_s_auth_config.rb +38 -4
  79. data/lib/akeyless/models/gateway_create_producer_dockerhub.rb +1 -1
  80. data/lib/akeyless/models/gateway_get_k8_s_auth_config_output.rb +32 -2
  81. data/lib/akeyless/models/gateway_revoke_tmp_users.rb +14 -2
  82. data/lib/akeyless/models/gateway_update_k8_s_auth_config.rb +38 -4
  83. data/lib/akeyless/models/gateway_update_ldap_auth_config.rb +2 -2
  84. data/lib/akeyless/models/gateway_update_producer_dockerhub.rb +1 -1
  85. data/lib/akeyless/models/get_account_settings_command_output.rb +10 -1
  86. data/lib/akeyless/models/get_secret_value.rb +7 -7
  87. data/lib/akeyless/models/item.rb +10 -1
  88. data/lib/akeyless/models/k8_s_auth.rb +32 -2
  89. data/lib/akeyless/models/kubernetes_access_rules.rb +11 -1
  90. data/lib/akeyless/models/ldap_access_rules.rb +11 -1
  91. data/lib/akeyless/models/list_items.rb +11 -11
  92. data/lib/akeyless/models/log_forwarding_config_part.rb +10 -1
  93. data/lib/akeyless/models/rule_assigner.rb +228 -0
  94. data/lib/akeyless/models/sign_pkcs1.rb +21 -6
  95. data/lib/akeyless/models/target_type_details_input.rb +23 -1
  96. data/lib/akeyless/models/update_account_settings.rb +64 -4
  97. data/lib/akeyless/models/update_auth_method_k8_s.rb +2 -4
  98. data/lib/akeyless/models/update_auth_method_ldap.rb +12 -2
  99. data/lib/akeyless/models/update_auth_method_ldap_output.rb +219 -0
  100. data/lib/akeyless/models/update_item.rb +11 -11
  101. data/lib/akeyless/models/update_ldap_target.rb +11 -1
  102. data/lib/akeyless/models/update_salesforce_target.rb +29 -19
  103. data/lib/akeyless/models/update_secret_val.rb +52 -42
  104. data/lib/akeyless/models/verify_pkcs1.rb +21 -1
  105. data/lib/akeyless/version.rb +1 -1
  106. data/lib/akeyless.rb +6 -4
  107. data/spec/models/account_general_settings_spec.rb +34 -0
  108. data/spec/models/data_protection_section_spec.rb +34 -0
  109. data/spec/models/describe_sub_claims_output_spec.rb +34 -0
  110. data/spec/models/describe_sub_claims_spec.rb +40 -0
  111. data/spec/models/rule_assigner_spec.rb +40 -0
  112. data/spec/models/update_auth_method_ldap_output_spec.rb +34 -0
  113. metadata +525 -501
@@ -15,6 +15,9 @@ require 'time'
15
15
 
16
16
  module Akeyless
17
17
  class UpdateItem
18
+ # for personal password manager
19
+ attr_accessor :accessibility
20
+
18
21
  # List of the new tags that will be attached to this item
19
22
  attr_accessor :add_tag
20
23
 
@@ -23,9 +26,6 @@ module Akeyless
23
26
 
24
27
  attr_accessor :delete_protection
25
28
 
26
- # for personal password manager
27
- attr_accessor :item_accessibility
28
-
29
29
  # Current item name
30
30
  attr_accessor :name
31
31
 
@@ -95,10 +95,10 @@ module Akeyless
95
95
  # Attribute mapping from ruby-style variable name to JSON key.
96
96
  def self.attribute_map
97
97
  {
98
+ :'accessibility' => :'accessibility',
98
99
  :'add_tag' => :'add-tag',
99
100
  :'cert_file_data' => :'cert-file-data',
100
101
  :'delete_protection' => :'delete_protection',
101
- :'item_accessibility' => :'item-accessibility',
102
102
  :'name' => :'name',
103
103
  :'new_metadata' => :'new-metadata',
104
104
  :'new_name' => :'new-name',
@@ -140,10 +140,10 @@ module Akeyless
140
140
  # Attribute type mapping.
141
141
  def self.openapi_types
142
142
  {
143
+ :'accessibility' => :'String',
143
144
  :'add_tag' => :'Array<String>',
144
145
  :'cert_file_data' => :'String',
145
146
  :'delete_protection' => :'String',
146
- :'item_accessibility' => :'String',
147
147
  :'name' => :'String',
148
148
  :'new_metadata' => :'String',
149
149
  :'new_name' => :'String',
@@ -198,6 +198,10 @@ module Akeyless
198
198
  h[k.to_sym] = v
199
199
  }
200
200
 
201
+ if attributes.key?(:'accessibility')
202
+ self.accessibility = attributes[:'accessibility']
203
+ end
204
+
201
205
  if attributes.key?(:'add_tag')
202
206
  if (value = attributes[:'add_tag']).is_a?(Array)
203
207
  self.add_tag = value
@@ -212,10 +216,6 @@ module Akeyless
212
216
  self.delete_protection = attributes[:'delete_protection']
213
217
  end
214
218
 
215
- if attributes.key?(:'item_accessibility')
216
- self.item_accessibility = attributes[:'item_accessibility']
217
- end
218
-
219
219
  if attributes.key?(:'name')
220
220
  self.name = attributes[:'name']
221
221
  end
@@ -370,10 +370,10 @@ module Akeyless
370
370
  def ==(o)
371
371
  return true if self.equal?(o)
372
372
  self.class == o.class &&
373
+ accessibility == o.accessibility &&
373
374
  add_tag == o.add_tag &&
374
375
  cert_file_data == o.cert_file_data &&
375
376
  delete_protection == o.delete_protection &&
376
- item_accessibility == o.item_accessibility &&
377
377
  name == o.name &&
378
378
  new_metadata == o.new_metadata &&
379
379
  new_name == o.new_name &&
@@ -415,7 +415,7 @@ module Akeyless
415
415
  # Calculates hash code according to all attributes.
416
416
  # @return [Integer] Hash code
417
417
  def hash
418
- [add_tag, cert_file_data, delete_protection, item_accessibility, name, new_metadata, new_name, rm_tag, secure_access_add_host, secure_access_allow_external_user, secure_access_allow_port_forwading, secure_access_aws_account_id, secure_access_aws_native_cli, secure_access_aws_region, secure_access_bastion_api, secure_access_bastion_issuer, secure_access_bastion_ssh, secure_access_cluster_endpoint, secure_access_dashboard_url, secure_access_db_name, secure_access_db_schema, secure_access_enable, secure_access_host, secure_access_rdp_domain, secure_access_rdp_user, secure_access_rm_host, secure_access_ssh_creds, secure_access_ssh_creds_user, secure_access_url, secure_access_use_internal_bastion, secure_access_web_browsing, secure_access_web_proxy, token, uid_token].hash
418
+ [accessibility, add_tag, cert_file_data, delete_protection, name, new_metadata, new_name, rm_tag, secure_access_add_host, secure_access_allow_external_user, secure_access_allow_port_forwading, secure_access_aws_account_id, secure_access_aws_native_cli, secure_access_aws_region, secure_access_bastion_api, secure_access_bastion_issuer, secure_access_bastion_ssh, secure_access_cluster_endpoint, secure_access_dashboard_url, secure_access_db_name, secure_access_db_schema, secure_access_enable, secure_access_host, secure_access_rdp_domain, secure_access_rdp_user, secure_access_rm_host, secure_access_ssh_creds, secure_access_ssh_creds_user, secure_access_url, secure_access_use_internal_bastion, secure_access_web_browsing, secure_access_web_proxy, token, uid_token].hash
419
419
  end
420
420
 
421
421
  # Builds the object from hash
@@ -37,6 +37,9 @@ module Akeyless
37
37
  # New target name
38
38
  attr_accessor :new_name
39
39
 
40
+ # Set Ldap server type, Options:[OpenLDAP, ActiveDirectory]
41
+ attr_accessor :server_type
42
+
40
43
  # Authentication token (see `/auth` and `/configure`)
41
44
  attr_accessor :token
42
45
 
@@ -60,6 +63,7 @@ module Akeyless
60
63
  :'ldap_url' => :'ldap-url',
61
64
  :'name' => :'name',
62
65
  :'new_name' => :'new-name',
66
+ :'server_type' => :'server-type',
63
67
  :'token' => :'token',
64
68
  :'token_expiration' => :'token-expiration',
65
69
  :'uid_token' => :'uid-token',
@@ -84,6 +88,7 @@ module Akeyless
84
88
  :'ldap_url' => :'String',
85
89
  :'name' => :'String',
86
90
  :'new_name' => :'String',
91
+ :'server_type' => :'String',
87
92
  :'token' => :'String',
88
93
  :'token_expiration' => :'String',
89
94
  :'uid_token' => :'String',
@@ -148,6 +153,10 @@ module Akeyless
148
153
  self.new_name = attributes[:'new_name']
149
154
  end
150
155
 
156
+ if attributes.key?(:'server_type')
157
+ self.server_type = attributes[:'server_type']
158
+ end
159
+
151
160
  if attributes.key?(:'token')
152
161
  self.token = attributes[:'token']
153
162
  end
@@ -197,6 +206,7 @@ module Akeyless
197
206
  ldap_url == o.ldap_url &&
198
207
  name == o.name &&
199
208
  new_name == o.new_name &&
209
+ server_type == o.server_type &&
200
210
  token == o.token &&
201
211
  token_expiration == o.token_expiration &&
202
212
  uid_token == o.uid_token &&
@@ -212,7 +222,7 @@ module Akeyless
212
222
  # Calculates hash code according to all attributes.
213
223
  # @return [Integer] Hash code
214
224
  def hash
215
- [bind_dn, bind_dn_password, comment, keep_prev_version, key, ldap_ca_cert, ldap_url, name, new_name, token, token_expiration, uid_token, update_version].hash
225
+ [bind_dn, bind_dn_password, comment, keep_prev_version, key, ldap_ca_cert, ldap_url, name, new_name, server_type, token, token_expiration, uid_token, update_version].hash
216
226
  end
217
227
 
218
228
  # Builds the object from hash
@@ -15,6 +15,12 @@ require 'time'
15
15
 
16
16
  module Akeyless
17
17
  class UpdateSalesforceTarget
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
@@ -44,10 +50,10 @@ module Akeyless
44
50
  # New target name
45
51
  attr_accessor :new_name
46
52
 
47
- # The password of the user attached to the oauth2 app used for connecting to Salesforce
53
+ # The password of the user attached to the oauth2 app used for connecting to Salesforce (required for user-password flow)
48
54
  attr_accessor :password
49
55
 
50
- # The security token of the user attached to the oauth2 app used for connecting to Salesforce
56
+ # The security token of the user attached to the oauth2 app used for connecting to Salesforce (required for user-password flow)
51
57
  attr_accessor :security_token
52
58
 
53
59
  # Url of the Salesforce tenant
@@ -65,6 +71,8 @@ module Akeyless
65
71
  # Attribute mapping from ruby-style variable name to JSON key.
66
72
  def self.attribute_map
67
73
  {
74
+ :'app_private_key_data' => :'app-private-key-data',
75
+ :'auth_flow' => :'auth-flow',
68
76
  :'ca_cert_data' => :'ca-cert-data',
69
77
  :'ca_cert_name' => :'ca-cert-name',
70
78
  :'client_id' => :'client-id',
@@ -92,6 +100,8 @@ module Akeyless
92
100
  # Attribute type mapping.
93
101
  def self.openapi_types
94
102
  {
103
+ :'app_private_key_data' => :'String',
104
+ :'auth_flow' => :'String',
95
105
  :'ca_cert_data' => :'String',
96
106
  :'ca_cert_name' => :'String',
97
107
  :'client_id' => :'String',
@@ -132,6 +142,14 @@ module Akeyless
132
142
  h[k.to_sym] = v
133
143
  }
134
144
 
145
+ if attributes.key?(:'app_private_key_data')
146
+ self.app_private_key_data = attributes[:'app_private_key_data']
147
+ end
148
+
149
+ if attributes.key?(:'auth_flow')
150
+ self.auth_flow = attributes[:'auth_flow']
151
+ end
152
+
135
153
  if attributes.key?(:'ca_cert_data')
136
154
  self.ca_cert_data = attributes[:'ca_cert_data']
137
155
  end
@@ -201,12 +219,12 @@ module Akeyless
201
219
  # @return Array for valid properties with the reasons
202
220
  def list_invalid_properties
203
221
  invalid_properties = Array.new
204
- if @client_id.nil?
205
- invalid_properties.push('invalid value for "client_id", client_id cannot be nil.')
222
+ if @auth_flow.nil?
223
+ invalid_properties.push('invalid value for "auth_flow", auth_flow cannot be nil.')
206
224
  end
207
225
 
208
- if @client_secret.nil?
209
- invalid_properties.push('invalid value for "client_secret", client_secret cannot be nil.')
226
+ if @client_id.nil?
227
+ invalid_properties.push('invalid value for "client_id", client_id cannot be nil.')
210
228
  end
211
229
 
212
230
  if @email.nil?
@@ -217,14 +235,6 @@ module Akeyless
217
235
  invalid_properties.push('invalid value for "name", name cannot be nil.')
218
236
  end
219
237
 
220
- if @password.nil?
221
- invalid_properties.push('invalid value for "password", password cannot be nil.')
222
- end
223
-
224
- if @security_token.nil?
225
- invalid_properties.push('invalid value for "security_token", security_token cannot be nil.')
226
- end
227
-
228
238
  if @tenant_url.nil?
229
239
  invalid_properties.push('invalid value for "tenant_url", tenant_url cannot be nil.')
230
240
  end
@@ -235,12 +245,10 @@ module Akeyless
235
245
  # Check to see if the all the properties in the model are valid
236
246
  # @return true if the model is valid
237
247
  def valid?
248
+ return false if @auth_flow.nil?
238
249
  return false if @client_id.nil?
239
- return false if @client_secret.nil?
240
250
  return false if @email.nil?
241
251
  return false if @name.nil?
242
- return false if @password.nil?
243
- return false if @security_token.nil?
244
252
  return false if @tenant_url.nil?
245
253
  true
246
254
  end
@@ -250,6 +258,8 @@ module Akeyless
250
258
  def ==(o)
251
259
  return true if self.equal?(o)
252
260
  self.class == o.class &&
261
+ app_private_key_data == o.app_private_key_data &&
262
+ auth_flow == o.auth_flow &&
253
263
  ca_cert_data == o.ca_cert_data &&
254
264
  ca_cert_name == o.ca_cert_name &&
255
265
  client_id == o.client_id &&
@@ -277,7 +287,7 @@ module Akeyless
277
287
  # Calculates hash code according to all attributes.
278
288
  # @return [Integer] Hash code
279
289
  def hash
280
- [ca_cert_data, ca_cert_name, client_id, client_secret, comment, email, keep_prev_version, key, name, new_name, password, security_token, tenant_url, token, uid_token, update_version].hash
290
+ [app_private_key_data, auth_flow, ca_cert_data, ca_cert_name, client_id, client_secret, comment, email, keep_prev_version, key, name, new_name, password, security_token, tenant_url, token, uid_token, update_version].hash
281
291
  end
282
292
 
283
293
  # Builds the object from hash
@@ -15,11 +15,8 @@ require 'time'
15
15
 
16
16
  module Akeyless
17
17
  class UpdateSecretVal
18
- # For Password Management use, additional fields
19
- attr_accessor :custom_fields
20
-
21
18
  # for personal password manager
22
- attr_accessor :item_accessibility
19
+ attr_accessor :accessibility
23
20
 
24
21
  attr_accessor :keep_prev_version
25
22
 
@@ -35,36 +32,43 @@ module Akeyless
35
32
  # Deprecated
36
33
  attr_accessor :new_version
37
34
 
35
+ # For Password Management use, additional fields
36
+ attr_accessor :password_manager_custom_field
37
+
38
+ # For Password Management use, reflect the website context
39
+ attr_accessor :password_manager_inject_url
40
+
41
+ # For Password Management use, additional fields
42
+ attr_accessor :password_manager_password
43
+
44
+ # For Password Management use
45
+ attr_accessor :password_manager_username
46
+
38
47
  # Authentication token (see `/auth` and `/configure`)
39
48
  attr_accessor :token
40
49
 
41
50
  # The universal identity token, Required only for universal_identity authentication
42
51
  attr_accessor :uid_token
43
52
 
44
- # For Password Management use
45
- attr_accessor :username
46
-
47
53
  # The new secret value
48
54
  attr_accessor :value
49
55
 
50
- # For Password Management use, reflect the website context
51
- attr_accessor :website
52
-
53
56
  # Attribute mapping from ruby-style variable name to JSON key.
54
57
  def self.attribute_map
55
58
  {
56
- :'custom_fields' => :'custom-fields',
57
- :'item_accessibility' => :'item-accessibility',
59
+ :'accessibility' => :'accessibility',
58
60
  :'keep_prev_version' => :'keep-prev-version',
59
61
  :'key' => :'key',
60
62
  :'multiline' => :'multiline',
61
63
  :'name' => :'name',
62
64
  :'new_version' => :'new-version',
65
+ :'password_manager_custom_field' => :'password-manager-custom-field',
66
+ :'password_manager_inject_url' => :'password-manager-inject-url',
67
+ :'password_manager_password' => :'password-manager-password',
68
+ :'password_manager_username' => :'password-manager-username',
63
69
  :'token' => :'token',
64
70
  :'uid_token' => :'uid-token',
65
- :'username' => :'username',
66
- :'value' => :'value',
67
- :'website' => :'website'
71
+ :'value' => :'value'
68
72
  }
69
73
  end
70
74
 
@@ -76,18 +80,19 @@ module Akeyless
76
80
  # Attribute type mapping.
77
81
  def self.openapi_types
78
82
  {
79
- :'custom_fields' => :'Hash<String, String>',
80
- :'item_accessibility' => :'String',
83
+ :'accessibility' => :'String',
81
84
  :'keep_prev_version' => :'String',
82
85
  :'key' => :'String',
83
86
  :'multiline' => :'Boolean',
84
87
  :'name' => :'String',
85
88
  :'new_version' => :'Boolean',
89
+ :'password_manager_custom_field' => :'Hash<String, String>',
90
+ :'password_manager_inject_url' => :'String',
91
+ :'password_manager_password' => :'String',
92
+ :'password_manager_username' => :'String',
86
93
  :'token' => :'String',
87
94
  :'uid_token' => :'String',
88
- :'username' => :'String',
89
- :'value' => :'String',
90
- :'website' => :'String'
95
+ :'value' => :'String'
91
96
  }
92
97
  end
93
98
 
@@ -112,14 +117,8 @@ module Akeyless
112
117
  h[k.to_sym] = v
113
118
  }
114
119
 
115
- if attributes.key?(:'custom_fields')
116
- if (value = attributes[:'custom_fields']).is_a?(Hash)
117
- self.custom_fields = value
118
- end
119
- end
120
-
121
- if attributes.key?(:'item_accessibility')
122
- self.item_accessibility = attributes[:'item_accessibility']
120
+ if attributes.key?(:'accessibility')
121
+ self.accessibility = attributes[:'accessibility']
123
122
  end
124
123
 
125
124
  if attributes.key?(:'keep_prev_version')
@@ -142,6 +141,24 @@ module Akeyless
142
141
  self.new_version = attributes[:'new_version']
143
142
  end
144
143
 
144
+ if attributes.key?(:'password_manager_custom_field')
145
+ if (value = attributes[:'password_manager_custom_field']).is_a?(Hash)
146
+ self.password_manager_custom_field = value
147
+ end
148
+ end
149
+
150
+ if attributes.key?(:'password_manager_inject_url')
151
+ self.password_manager_inject_url = attributes[:'password_manager_inject_url']
152
+ end
153
+
154
+ if attributes.key?(:'password_manager_password')
155
+ self.password_manager_password = attributes[:'password_manager_password']
156
+ end
157
+
158
+ if attributes.key?(:'password_manager_username')
159
+ self.password_manager_username = attributes[:'password_manager_username']
160
+ end
161
+
145
162
  if attributes.key?(:'token')
146
163
  self.token = attributes[:'token']
147
164
  end
@@ -150,17 +167,9 @@ module Akeyless
150
167
  self.uid_token = attributes[:'uid_token']
151
168
  end
152
169
 
153
- if attributes.key?(:'username')
154
- self.username = attributes[:'username']
155
- end
156
-
157
170
  if attributes.key?(:'value')
158
171
  self.value = attributes[:'value']
159
172
  end
160
-
161
- if attributes.key?(:'website')
162
- self.website = attributes[:'website']
163
- end
164
173
  end
165
174
 
166
175
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -191,18 +200,19 @@ module Akeyless
191
200
  def ==(o)
192
201
  return true if self.equal?(o)
193
202
  self.class == o.class &&
194
- custom_fields == o.custom_fields &&
195
- item_accessibility == o.item_accessibility &&
203
+ accessibility == o.accessibility &&
196
204
  keep_prev_version == o.keep_prev_version &&
197
205
  key == o.key &&
198
206
  multiline == o.multiline &&
199
207
  name == o.name &&
200
208
  new_version == o.new_version &&
209
+ password_manager_custom_field == o.password_manager_custom_field &&
210
+ password_manager_inject_url == o.password_manager_inject_url &&
211
+ password_manager_password == o.password_manager_password &&
212
+ password_manager_username == o.password_manager_username &&
201
213
  token == o.token &&
202
214
  uid_token == o.uid_token &&
203
- username == o.username &&
204
- value == o.value &&
205
- website == o.website
215
+ value == o.value
206
216
  end
207
217
 
208
218
  # @see the `==` method
@@ -214,7 +224,7 @@ module Akeyless
214
224
  # Calculates hash code according to all attributes.
215
225
  # @return [Integer] Hash code
216
226
  def hash
217
- [custom_fields, item_accessibility, keep_prev_version, key, multiline, name, new_version, token, uid_token, username, value, website].hash
227
+ [accessibility, keep_prev_version, key, multiline, name, new_version, password_manager_custom_field, password_manager_inject_url, password_manager_password, password_manager_username, token, uid_token, value].hash
218
228
  end
219
229
 
220
230
  # Builds the object from hash
@@ -15,6 +15,12 @@ require 'time'
15
15
 
16
16
  module Akeyless
17
17
  class VerifyPKCS1
18
+ # The display id of the key to use in the verification process
19
+ attr_accessor :display_id
20
+
21
+ # The item id of the key to use in the verification process
22
+ attr_accessor :item_id
23
+
18
24
  # The name of the RSA key to use in the verification process
19
25
  attr_accessor :key_name
20
26
 
@@ -33,6 +39,8 @@ module Akeyless
33
39
  # Attribute mapping from ruby-style variable name to JSON key.
34
40
  def self.attribute_map
35
41
  {
42
+ :'display_id' => :'display-id',
43
+ :'item_id' => :'item-id',
36
44
  :'key_name' => :'key-name',
37
45
  :'message' => :'message',
38
46
  :'signature' => :'signature',
@@ -49,6 +57,8 @@ module Akeyless
49
57
  # Attribute type mapping.
50
58
  def self.openapi_types
51
59
  {
60
+ :'display_id' => :'String',
61
+ :'item_id' => :'Integer',
52
62
  :'key_name' => :'String',
53
63
  :'message' => :'String',
54
64
  :'signature' => :'String',
@@ -78,6 +88,14 @@ module Akeyless
78
88
  h[k.to_sym] = v
79
89
  }
80
90
 
91
+ if attributes.key?(:'display_id')
92
+ self.display_id = attributes[:'display_id']
93
+ end
94
+
95
+ if attributes.key?(:'item_id')
96
+ self.item_id = attributes[:'item_id']
97
+ end
98
+
81
99
  if attributes.key?(:'key_name')
82
100
  self.key_name = attributes[:'key_name']
83
101
  end
@@ -132,6 +150,8 @@ module Akeyless
132
150
  def ==(o)
133
151
  return true if self.equal?(o)
134
152
  self.class == o.class &&
153
+ display_id == o.display_id &&
154
+ item_id == o.item_id &&
135
155
  key_name == o.key_name &&
136
156
  message == o.message &&
137
157
  signature == o.signature &&
@@ -148,7 +168,7 @@ module Akeyless
148
168
  # Calculates hash code according to all attributes.
149
169
  # @return [Integer] Hash code
150
170
  def hash
151
- [key_name, message, signature, token, uid_token].hash
171
+ [display_id, item_id, key_name, message, signature, token, uid_token].hash
152
172
  end
153
173
 
154
174
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 6.1.0-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module Akeyless
14
- VERSION = '2.16.11'
14
+ VERSION = '2.18.0'
15
15
  end
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/account_general_settings'
24
25
  require 'akeyless/models/account_object_version_settings_output'
25
26
  require 'akeyless/models/admins_config_part'
26
27
  require 'akeyless/models/akeyless_gateway_config'
@@ -128,6 +129,7 @@ require 'akeyless/models/customer_fragment'
128
129
  require 'akeyless/models/customer_fragments_json'
129
130
  require 'akeyless/models/customer_full_address'
130
131
  require 'akeyless/models/ds_producer_details'
132
+ require 'akeyless/models/data_protection_section'
131
133
  require 'akeyless/models/datadog_forwarding_config'
132
134
  require 'akeyless/models/decrypt'
133
135
  require 'akeyless/models/decrypt_file'
@@ -157,6 +159,8 @@ require 'akeyless/models/delete_targets'
157
159
  require 'akeyless/models/describe_item'
158
160
  require 'akeyless/models/describe_permissions'
159
161
  require 'akeyless/models/describe_permissions_output'
162
+ require 'akeyless/models/describe_sub_claims'
163
+ require 'akeyless/models/describe_sub_claims_output'
160
164
  require 'akeyless/models/detokenize'
161
165
  require 'akeyless/models/detokenize_output'
162
166
  require 'akeyless/models/dynamic_secret_producer_info'
@@ -167,8 +171,6 @@ require 'akeyless/models/encrypt'
167
171
  require 'akeyless/models/encrypt_file'
168
172
  require 'akeyless/models/encrypt_file_output'
169
173
  require 'akeyless/models/encrypt_output'
170
- require 'akeyless/models/encrypt_pkcs1'
171
- require 'akeyless/models/encrypt_pkcs1_output'
172
174
  require 'akeyless/models/encrypt_with_classic_key'
173
175
  require 'akeyless/models/encrypt_with_classic_key_output'
174
176
  require 'akeyless/models/external_kms_key_id'
@@ -432,6 +434,7 @@ require 'akeyless/models/rotated_secret_details_info'
432
434
  require 'akeyless/models/rotated_secret_output'
433
435
  require 'akeyless/models/rotator'
434
436
  require 'akeyless/models/rotators_config_part'
437
+ require 'akeyless/models/rule_assigner'
435
438
  require 'akeyless/models/rules'
436
439
  require 'akeyless/models/saml_access_rules'
437
440
  require 'akeyless/models/saml_attribute'
@@ -491,6 +494,7 @@ require 'akeyless/models/update_auth_method_gcp'
491
494
  require 'akeyless/models/update_auth_method_k8_s'
492
495
  require 'akeyless/models/update_auth_method_k8_s_output'
493
496
  require 'akeyless/models/update_auth_method_ldap'
497
+ require 'akeyless/models/update_auth_method_ldap_output'
494
498
  require 'akeyless/models/update_auth_method_o_auth2'
495
499
  require 'akeyless/models/update_auth_method_oidc'
496
500
  require 'akeyless/models/update_auth_method_output'
@@ -542,8 +546,6 @@ require 'akeyless/models/update_secret_val_output'
542
546
  require 'akeyless/models/update_target'
543
547
  require 'akeyless/models/update_target_details_output'
544
548
  require 'akeyless/models/update_target_output'
545
- require 'akeyless/models/update_tokenizer'
546
- require 'akeyless/models/update_tokenizer_output'
547
549
  require 'akeyless/models/update_web_target'
548
550
  require 'akeyless/models/update_web_target_details'
549
551
  require 'akeyless/models/update_web_target_output'
@@ -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: 6.1.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for Akeyless::AccountGeneralSettings
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe Akeyless::AccountGeneralSettings do
21
+ let(:instance) { Akeyless::AccountGeneralSettings.new }
22
+
23
+ describe 'test an instance of AccountGeneralSettings' do
24
+ it 'should create an instance of AccountGeneralSettings' do
25
+ expect(instance).to be_instance_of(Akeyless::AccountGeneralSettings)
26
+ end
27
+ end
28
+ describe 'test attribute "data_protection_section"' 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
+ 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: 6.1.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for Akeyless::DataProtectionSection
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe Akeyless::DataProtectionSection do
21
+ let(:instance) { Akeyless::DataProtectionSection.new }
22
+
23
+ describe 'test an instance of DataProtectionSection' do
24
+ it 'should create an instance of DataProtectionSection' do
25
+ expect(instance).to be_instance_of(Akeyless::DataProtectionSection)
26
+ end
27
+ end
28
+ describe 'test attribute "enable_classic_key_protection"' 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
+ end