akeyless 5.0.22 → 5.0.24

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 (312) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +33 -5
  3. data/docs/AccountGeneralSettings.md +4 -0
  4. data/docs/AgenticRule.md +20 -0
  5. data/docs/AgenticRules.md +20 -0
  6. data/docs/AuthMethodCreateUniversalIdentity.md +4 -0
  7. data/docs/AuthMethodUpdateUniversalIdentity.md +4 -0
  8. data/docs/AwsStorage.md +2 -0
  9. data/docs/CreateAuthMethodUniversalIdentity.md +4 -0
  10. data/docs/CreateRole.md +2 -0
  11. data/docs/CreateRotatedSecret.md +3 -1
  12. data/docs/CreateSecret.md +2 -0
  13. data/docs/CreateUSC.md +6 -2
  14. data/docs/DSProducerDetails.md +2 -0
  15. data/docs/DeleteRoleRule.md +1 -1
  16. data/docs/DescribePermissions.md +1 -1
  17. data/docs/DigiCertTargetDetails.md +42 -0
  18. data/docs/EsmListSecretsOutput.md +5 -1
  19. data/docs/GatewayCreateMigration.md +4 -0
  20. data/docs/GatewayMigrationCreateOutput.md +2 -0
  21. data/docs/GatewayUpdateMigration.md +4 -0
  22. data/docs/GatewayUpdateRemoteAccessRdpRecordings.md +2 -0
  23. data/docs/GeneralConfigPart.md +4 -0
  24. data/docs/GoogleTrustTargetDetails.md +42 -0
  25. data/docs/HashiPayload.md +5 -1
  26. data/docs/Item.md +2 -0
  27. data/docs/ItemGeneralInfo.md +2 -0
  28. data/docs/ItemLockingSetting.md +20 -0
  29. data/docs/ListItems.md +2 -0
  30. data/docs/LockItem.md +28 -0
  31. data/docs/LockTarget.md +28 -0
  32. data/docs/LockingInfo.md +24 -0
  33. data/docs/MigrationStatusReplyObj.md +2 -0
  34. data/docs/NetappStorage.md +30 -0
  35. data/docs/ReverseRBAC.md +1 -1
  36. data/docs/RotatedSecretCreateAws.md +3 -1
  37. data/docs/RotatedSecretCreateAzure.md +3 -1
  38. data/docs/RotatedSecretCreateCustom.md +3 -1
  39. data/docs/RotatedSecretCreateLdap.md +3 -1
  40. data/docs/RotatedSecretCreateMongodb.md +3 -1
  41. data/docs/RotatedSecretCreateMssql.md +3 -1
  42. data/docs/RotatedSecretCreateMysql.md +3 -1
  43. data/docs/RotatedSecretCreateOracledb.md +3 -1
  44. data/docs/RotatedSecretCreatePostgresql.md +3 -1
  45. data/docs/RotatedSecretCreateRedshift.md +3 -1
  46. data/docs/RotatedSecretCreateSsh.md +3 -1
  47. data/docs/RotatedSecretCreateWindows.md +3 -1
  48. data/docs/RotatedSecretUpdateAws.md +3 -1
  49. data/docs/RotatedSecretUpdateAzure.md +3 -1
  50. data/docs/RotatedSecretUpdateCustom.md +3 -1
  51. data/docs/RotatedSecretUpdateLdap.md +3 -1
  52. data/docs/RotatedSecretUpdateMongodb.md +3 -1
  53. data/docs/RotatedSecretUpdateMssql.md +3 -1
  54. data/docs/RotatedSecretUpdateMysql.md +3 -1
  55. data/docs/RotatedSecretUpdateOracledb.md +3 -1
  56. data/docs/RotatedSecretUpdatePostgresql.md +3 -1
  57. data/docs/RotatedSecretUpdateRedshift.md +3 -1
  58. data/docs/RotatedSecretUpdateSsh.md +3 -1
  59. data/docs/RotatedSecretUpdateWindows.md +3 -1
  60. data/docs/RuntimeAuthorityCommand.md +28 -0
  61. data/docs/SecretInfo.md +2 -0
  62. data/docs/SecureRemoteAccess.md +4 -0
  63. data/docs/SetDefaultProfile.md +20 -0
  64. data/docs/SetDefaultProfileOutput.md +18 -0
  65. data/docs/SetRoleRule.md +1 -1
  66. data/docs/SyncCounters.md +22 -0
  67. data/docs/SystemAccessCredentialsReplyObj.md +2 -0
  68. data/docs/Target.md +4 -0
  69. data/docs/TargetCreateArtifactory.md +2 -0
  70. data/docs/TargetCreateAws.md +2 -0
  71. data/docs/TargetCreateAzure.md +2 -0
  72. data/docs/TargetCreateDB.md +2 -0
  73. data/docs/TargetCreateDigiCert.md +52 -0
  74. data/docs/TargetCreateDockerhub.md +2 -0
  75. data/docs/TargetCreateEks.md +2 -0
  76. data/docs/TargetCreateGcp.md +2 -0
  77. data/docs/TargetCreateGemini.md +2 -0
  78. data/docs/TargetCreateGithub.md +2 -0
  79. data/docs/TargetCreateGitlab.md +2 -0
  80. data/docs/TargetCreateGke.md +2 -0
  81. data/docs/TargetCreateGlobalSign.md +2 -0
  82. data/docs/TargetCreateGlobalSignAtlas.md +2 -0
  83. data/docs/TargetCreateGodaddy.md +2 -0
  84. data/docs/TargetCreateGoogleTrust.md +52 -0
  85. data/docs/TargetCreateHashiVault.md +2 -0
  86. data/docs/TargetCreateK8s.md +2 -0
  87. data/docs/TargetCreateLdap.md +2 -0
  88. data/docs/TargetCreateLetsEncrypt.md +3 -1
  89. data/docs/TargetCreateLinked.md +2 -0
  90. data/docs/TargetCreateOpenAI.md +2 -0
  91. data/docs/TargetCreatePing.md +2 -0
  92. data/docs/TargetCreateRabbitMq.md +2 -0
  93. data/docs/TargetCreateSalesforce.md +2 -0
  94. data/docs/TargetCreateSectigo.md +2 -0
  95. data/docs/TargetCreateSplunk.md +5 -1
  96. data/docs/TargetCreateSsh.md +2 -0
  97. data/docs/TargetCreateWeb.md +2 -0
  98. data/docs/TargetCreateWindows.md +2 -0
  99. data/docs/TargetCreateZeroSSL.md +2 -0
  100. data/docs/TargetTypeDetailsInput.md +4 -0
  101. data/docs/TargetUpdateArtifactory.md +2 -0
  102. data/docs/TargetUpdateAws.md +2 -0
  103. data/docs/TargetUpdateAzure.md +2 -0
  104. data/docs/TargetUpdateDB.md +2 -0
  105. data/docs/TargetUpdateDigiCert.md +54 -0
  106. data/docs/TargetUpdateDockerhub.md +2 -0
  107. data/docs/TargetUpdateEks.md +2 -0
  108. data/docs/TargetUpdateGcp.md +2 -0
  109. data/docs/TargetUpdateGemini.md +2 -0
  110. data/docs/TargetUpdateGithub.md +2 -0
  111. data/docs/TargetUpdateGitlab.md +2 -0
  112. data/docs/TargetUpdateGke.md +2 -0
  113. data/docs/TargetUpdateGlobalSign.md +2 -0
  114. data/docs/TargetUpdateGlobalSignAtlas.md +2 -0
  115. data/docs/TargetUpdateGodaddy.md +2 -0
  116. data/docs/TargetUpdateGoogleTrust.md +56 -0
  117. data/docs/TargetUpdateHashiVault.md +2 -0
  118. data/docs/TargetUpdateK8s.md +2 -0
  119. data/docs/TargetUpdateLdap.md +2 -0
  120. data/docs/TargetUpdateLetsEncrypt.md +3 -1
  121. data/docs/TargetUpdateOpenAI.md +2 -0
  122. data/docs/TargetUpdatePing.md +2 -0
  123. data/docs/TargetUpdateRabbitMq.md +2 -0
  124. data/docs/TargetUpdateSalesforce.md +2 -0
  125. data/docs/TargetUpdateSectigo.md +2 -0
  126. data/docs/TargetUpdateSsh.md +2 -0
  127. data/docs/TargetUpdateWeb.md +2 -0
  128. data/docs/TargetUpdateWindows.md +2 -0
  129. data/docs/TargetUpdateZeroSSL.md +2 -0
  130. data/docs/UniversalIdentityAccessRules.md +4 -0
  131. data/docs/UnlockItem.md +24 -0
  132. data/docs/UnlockTarget.md +24 -0
  133. data/docs/UpdateAccountSettings.md +4 -0
  134. data/docs/UpdateAuthMethodUniversalIdentity.md +4 -0
  135. data/docs/UpdateItem.md +8 -2
  136. data/docs/UpdateRole.md +2 -0
  137. data/docs/UpdateRotatedSecret.md +3 -1
  138. data/docs/UpdateTarget.md +2 -0
  139. data/docs/UscCreate.md +2 -0
  140. data/docs/UscDelete.md +4 -0
  141. data/docs/UscGet.md +4 -0
  142. data/docs/UscList.md +4 -0
  143. data/docs/UscListSecretsOutput.md +5 -1
  144. data/docs/UscUpdate.md +4 -0
  145. data/docs/V2Api.md +572 -6
  146. data/docs/WebBastionRdpRecord.md +2 -0
  147. data/lib/akeyless/api/v2_api.rb +580 -4
  148. data/lib/akeyless/models/account_general_settings.rb +19 -1
  149. data/lib/akeyless/models/agentic_rule.rb +223 -0
  150. data/lib/akeyless/models/agentic_rules.rb +227 -0
  151. data/lib/akeyless/models/auth_method_create_universal_identity.rb +25 -1
  152. data/lib/akeyless/models/auth_method_update_universal_identity.rb +25 -1
  153. data/lib/akeyless/models/aws_storage.rb +10 -1
  154. data/lib/akeyless/models/create_auth_method_universal_identity.rb +25 -1
  155. data/lib/akeyless/models/create_role.rb +11 -1
  156. data/lib/akeyless/models/create_rotated_secret.rb +12 -4
  157. data/lib/akeyless/models/create_secret.rb +11 -1
  158. data/lib/akeyless/models/create_usc.rb +25 -5
  159. data/lib/akeyless/models/delete_role_rule.rb +1 -1
  160. data/lib/akeyless/models/describe_permissions.rb +1 -1
  161. data/lib/akeyless/models/digi_cert_target_details.rb +333 -0
  162. data/lib/akeyless/models/ds_producer_details.rb +10 -1
  163. data/lib/akeyless/models/esm_list_secrets_output.rb +24 -4
  164. data/lib/akeyless/models/gateway_create_migration.rb +21 -1
  165. data/lib/akeyless/models/gateway_migration_create_output.rb +10 -1
  166. data/lib/akeyless/models/gateway_update_migration.rb +21 -1
  167. data/lib/akeyless/models/gateway_update_remote_access_rdp_recordings.rb +11 -1
  168. data/lib/akeyless/models/general_config_part.rb +19 -1
  169. data/lib/akeyless/models/google_trust_target_details.rb +335 -0
  170. data/lib/akeyless/models/hashi_payload.rb +22 -4
  171. data/lib/akeyless/models/item.rb +10 -1
  172. data/lib/akeyless/models/item_general_info.rb +10 -1
  173. data/lib/akeyless/models/item_locking_setting.rb +223 -0
  174. data/lib/akeyless/models/list_items.rb +13 -1
  175. data/lib/akeyless/models/lock_item.rb +274 -0
  176. data/lib/akeyless/models/lock_target.rb +274 -0
  177. data/lib/akeyless/models/locking_info.rb +243 -0
  178. data/lib/akeyless/models/migration_status_reply_obj.rb +10 -1
  179. data/lib/akeyless/models/netapp_storage.rb +268 -0
  180. data/lib/akeyless/models/reverse_rbac.rb +1 -1
  181. data/lib/akeyless/models/rotated_secret_create_aws.rb +12 -4
  182. data/lib/akeyless/models/rotated_secret_create_azure.rb +12 -4
  183. data/lib/akeyless/models/rotated_secret_create_custom.rb +12 -4
  184. data/lib/akeyless/models/rotated_secret_create_ldap.rb +12 -4
  185. data/lib/akeyless/models/rotated_secret_create_mongodb.rb +12 -4
  186. data/lib/akeyless/models/rotated_secret_create_mssql.rb +12 -4
  187. data/lib/akeyless/models/rotated_secret_create_mysql.rb +12 -4
  188. data/lib/akeyless/models/rotated_secret_create_oracledb.rb +12 -4
  189. data/lib/akeyless/models/rotated_secret_create_postgresql.rb +12 -4
  190. data/lib/akeyless/models/rotated_secret_create_redshift.rb +12 -4
  191. data/lib/akeyless/models/rotated_secret_create_ssh.rb +12 -4
  192. data/lib/akeyless/models/rotated_secret_create_windows.rb +12 -4
  193. data/lib/akeyless/models/rotated_secret_update_aws.rb +12 -4
  194. data/lib/akeyless/models/rotated_secret_update_azure.rb +12 -4
  195. data/lib/akeyless/models/rotated_secret_update_custom.rb +12 -4
  196. data/lib/akeyless/models/rotated_secret_update_ldap.rb +12 -4
  197. data/lib/akeyless/models/rotated_secret_update_mongodb.rb +12 -4
  198. data/lib/akeyless/models/rotated_secret_update_mssql.rb +12 -4
  199. data/lib/akeyless/models/rotated_secret_update_mysql.rb +12 -4
  200. data/lib/akeyless/models/rotated_secret_update_oracledb.rb +12 -4
  201. data/lib/akeyless/models/rotated_secret_update_postgresql.rb +12 -4
  202. data/lib/akeyless/models/rotated_secret_update_redshift.rb +12 -4
  203. data/lib/akeyless/models/rotated_secret_update_ssh.rb +12 -4
  204. data/lib/akeyless/models/rotated_secret_update_windows.rb +12 -4
  205. data/lib/akeyless/models/runtime_authority_command.rb +288 -0
  206. data/lib/akeyless/models/secret_info.rb +10 -1
  207. data/lib/akeyless/models/secure_remote_access.rb +19 -1
  208. data/lib/akeyless/models/set_default_profile.rb +234 -0
  209. data/lib/akeyless/models/set_default_profile_output.rb +214 -0
  210. data/lib/akeyless/models/set_role_rule.rb +1 -1
  211. data/lib/akeyless/models/sync_counters.rb +233 -0
  212. data/lib/akeyless/models/system_access_credentials_reply_obj.rb +11 -1
  213. data/lib/akeyless/models/target.rb +19 -1
  214. data/lib/akeyless/models/target_create_artifactory.rb +11 -1
  215. data/lib/akeyless/models/target_create_aws.rb +11 -1
  216. data/lib/akeyless/models/target_create_azure.rb +11 -1
  217. data/lib/akeyless/models/target_create_db.rb +11 -1
  218. data/lib/akeyless/models/target_create_digi_cert.rb +408 -0
  219. data/lib/akeyless/models/target_create_dockerhub.rb +11 -1
  220. data/lib/akeyless/models/target_create_eks.rb +11 -1
  221. data/lib/akeyless/models/target_create_gcp.rb +11 -1
  222. data/lib/akeyless/models/target_create_gemini.rb +11 -1
  223. data/lib/akeyless/models/target_create_github.rb +11 -1
  224. data/lib/akeyless/models/target_create_gitlab.rb +11 -1
  225. data/lib/akeyless/models/target_create_gke.rb +11 -1
  226. data/lib/akeyless/models/target_create_global_sign.rb +11 -1
  227. data/lib/akeyless/models/target_create_global_sign_atlas.rb +11 -1
  228. data/lib/akeyless/models/target_create_godaddy.rb +11 -1
  229. data/lib/akeyless/models/target_create_google_trust.rb +408 -0
  230. data/lib/akeyless/models/target_create_hashi_vault.rb +11 -1
  231. data/lib/akeyless/models/target_create_k8s.rb +11 -1
  232. data/lib/akeyless/models/target_create_ldap.rb +11 -1
  233. data/lib/akeyless/models/target_create_lets_encrypt.rb +18 -1
  234. data/lib/akeyless/models/target_create_linked.rb +11 -1
  235. data/lib/akeyless/models/target_create_open_ai.rb +11 -1
  236. data/lib/akeyless/models/target_create_ping.rb +11 -1
  237. data/lib/akeyless/models/target_create_rabbit_mq.rb +11 -1
  238. data/lib/akeyless/models/target_create_salesforce.rb +11 -1
  239. data/lib/akeyless/models/target_create_sectigo.rb +11 -1
  240. data/lib/akeyless/models/target_create_splunk.rb +21 -1
  241. data/lib/akeyless/models/target_create_ssh.rb +11 -1
  242. data/lib/akeyless/models/target_create_web.rb +11 -1
  243. data/lib/akeyless/models/target_create_windows.rb +11 -1
  244. data/lib/akeyless/models/target_create_zero_ssl.rb +11 -1
  245. data/lib/akeyless/models/target_type_details_input.rb +19 -1
  246. data/lib/akeyless/models/target_update_artifactory.rb +11 -1
  247. data/lib/akeyless/models/target_update_aws.rb +11 -1
  248. data/lib/akeyless/models/target_update_azure.rb +11 -1
  249. data/lib/akeyless/models/target_update_db.rb +11 -1
  250. data/lib/akeyless/models/target_update_digi_cert.rb +418 -0
  251. data/lib/akeyless/models/target_update_dockerhub.rb +11 -1
  252. data/lib/akeyless/models/target_update_eks.rb +11 -1
  253. data/lib/akeyless/models/target_update_gcp.rb +11 -1
  254. data/lib/akeyless/models/target_update_gemini.rb +11 -1
  255. data/lib/akeyless/models/target_update_github.rb +11 -1
  256. data/lib/akeyless/models/target_update_gitlab.rb +11 -1
  257. data/lib/akeyless/models/target_update_gke.rb +11 -1
  258. data/lib/akeyless/models/target_update_global_sign.rb +11 -1
  259. data/lib/akeyless/models/target_update_global_sign_atlas.rb +11 -1
  260. data/lib/akeyless/models/target_update_godaddy.rb +11 -1
  261. data/lib/akeyless/models/target_update_google_trust.rb +428 -0
  262. data/lib/akeyless/models/target_update_hashi_vault.rb +11 -1
  263. data/lib/akeyless/models/target_update_k8s.rb +11 -1
  264. data/lib/akeyless/models/target_update_ldap.rb +11 -1
  265. data/lib/akeyless/models/target_update_lets_encrypt.rb +18 -1
  266. data/lib/akeyless/models/target_update_open_ai.rb +11 -1
  267. data/lib/akeyless/models/target_update_ping.rb +11 -1
  268. data/lib/akeyless/models/target_update_rabbit_mq.rb +11 -1
  269. data/lib/akeyless/models/target_update_salesforce.rb +11 -1
  270. data/lib/akeyless/models/target_update_sectigo.rb +11 -1
  271. data/lib/akeyless/models/target_update_ssh.rb +11 -1
  272. data/lib/akeyless/models/target_update_web.rb +11 -1
  273. data/lib/akeyless/models/target_update_windows.rb +11 -1
  274. data/lib/akeyless/models/target_update_zero_ssl.rb +11 -1
  275. data/lib/akeyless/models/universal_identity_access_rules.rb +19 -1
  276. data/lib/akeyless/models/unlock_item.rb +254 -0
  277. data/lib/akeyless/models/unlock_target.rb +254 -0
  278. data/lib/akeyless/models/update_account_settings.rb +21 -1
  279. data/lib/akeyless/models/update_auth_method_universal_identity.rb +25 -1
  280. data/lib/akeyless/models/update_item.rb +35 -7
  281. data/lib/akeyless/models/update_role.rb +11 -1
  282. data/lib/akeyless/models/update_rotated_secret.rb +12 -4
  283. data/lib/akeyless/models/update_target.rb +11 -1
  284. data/lib/akeyless/models/usc_create.rb +10 -1
  285. data/lib/akeyless/models/usc_delete.rb +20 -1
  286. data/lib/akeyless/models/usc_get.rb +20 -1
  287. data/lib/akeyless/models/usc_list.rb +21 -1
  288. data/lib/akeyless/models/usc_list_secrets_output.rb +24 -4
  289. data/lib/akeyless/models/usc_update.rb +20 -1
  290. data/lib/akeyless/models/web_bastion_rdp_record.rb +10 -1
  291. data/lib/akeyless/version.rb +1 -1
  292. data/lib/akeyless.rb +19 -0
  293. data/spec/models/agentic_rule_spec.rb +42 -0
  294. data/spec/models/agentic_rules_spec.rb +42 -0
  295. data/spec/models/digi_cert_target_details_spec.rb +108 -0
  296. data/spec/models/google_trust_target_details_spec.rb +108 -0
  297. data/spec/models/item_locking_setting_spec.rb +42 -0
  298. data/spec/models/lock_item_spec.rb +66 -0
  299. data/spec/models/lock_target_spec.rb +66 -0
  300. data/spec/models/locking_info_spec.rb +54 -0
  301. data/spec/models/netapp_storage_spec.rb +72 -0
  302. data/spec/models/runtime_authority_command_spec.rb +66 -0
  303. data/spec/models/set_default_profile_output_spec.rb +36 -0
  304. data/spec/models/set_default_profile_spec.rb +42 -0
  305. data/spec/models/sync_counters_spec.rb +48 -0
  306. data/spec/models/target_create_digi_cert_spec.rb +132 -0
  307. data/spec/models/target_create_google_trust_spec.rb +132 -0
  308. data/spec/models/target_update_digi_cert_spec.rb +144 -0
  309. data/spec/models/target_update_google_trust_spec.rb +144 -0
  310. data/spec/models/unlock_item_spec.rb +54 -0
  311. data/spec/models/unlock_target_spec.rb +54 -0
  312. metadata +1226 -1147
@@ -15,6 +15,9 @@ require 'time'
15
15
 
16
16
  module Akeyless
17
17
  class TargetUpdateHashiVault
18
+ # Protection from accidental deletion of this object [true/false]
19
+ attr_accessor :delete_protection
20
+
18
21
  # Description of the object
19
22
  attr_accessor :description
20
23
 
@@ -54,6 +57,7 @@ module Akeyless
54
57
  # Attribute mapping from ruby-style variable name to JSON key.
55
58
  def self.attribute_map
56
59
  {
60
+ :'delete_protection' => :'delete_protection',
57
61
  :'description' => :'description',
58
62
  :'hashi_url' => :'hashi-url',
59
63
  :'json' => :'json',
@@ -77,6 +81,7 @@ module Akeyless
77
81
  # Attribute type mapping.
78
82
  def self.openapi_types
79
83
  {
84
+ :'delete_protection' => :'String',
80
85
  :'description' => :'String',
81
86
  :'hashi_url' => :'String',
82
87
  :'json' => :'Boolean',
@@ -113,6 +118,10 @@ module Akeyless
113
118
  h[k.to_sym] = v
114
119
  }
115
120
 
121
+ if attributes.key?(:'delete_protection')
122
+ self.delete_protection = attributes[:'delete_protection']
123
+ end
124
+
116
125
  if attributes.key?(:'description')
117
126
  self.description = attributes[:'description']
118
127
  end
@@ -193,6 +202,7 @@ module Akeyless
193
202
  def ==(o)
194
203
  return true if self.equal?(o)
195
204
  self.class == o.class &&
205
+ delete_protection == o.delete_protection &&
196
206
  description == o.description &&
197
207
  hashi_url == o.hashi_url &&
198
208
  json == o.json &&
@@ -216,7 +226,7 @@ module Akeyless
216
226
  # Calculates hash code according to all attributes.
217
227
  # @return [Integer] Hash code
218
228
  def hash
219
- [description, hashi_url, json, keep_prev_version, key, max_versions, name, namespace, new_name, token, uid_token, vault_token].hash
229
+ [delete_protection, description, hashi_url, json, keep_prev_version, key, max_versions, name, namespace, new_name, token, uid_token, vault_token].hash
220
230
  end
221
231
 
222
232
  # Builds the object from hash
@@ -16,6 +16,9 @@ require 'time'
16
16
  module Akeyless
17
17
  # targetUpdateK8s is a command that updates an existing k8s target
18
18
  class TargetUpdateK8s
19
+ # Protection from accidental deletion of this object [true/false]
20
+ attr_accessor :delete_protection
21
+
19
22
  # Description of the object
20
23
  attr_accessor :description
21
24
 
@@ -70,6 +73,7 @@ module Akeyless
70
73
  # Attribute mapping from ruby-style variable name to JSON key.
71
74
  def self.attribute_map
72
75
  {
76
+ :'delete_protection' => :'delete_protection',
73
77
  :'description' => :'description',
74
78
  :'json' => :'json',
75
79
  :'k8s_auth_type' => :'k8s-auth-type',
@@ -98,6 +102,7 @@ module Akeyless
98
102
  # Attribute type mapping.
99
103
  def self.openapi_types
100
104
  {
105
+ :'delete_protection' => :'String',
101
106
  :'description' => :'String',
102
107
  :'json' => :'Boolean',
103
108
  :'k8s_auth_type' => :'String',
@@ -139,6 +144,10 @@ module Akeyless
139
144
  h[k.to_sym] = v
140
145
  }
141
146
 
147
+ if attributes.key?(:'delete_protection')
148
+ self.delete_protection = attributes[:'delete_protection']
149
+ end
150
+
142
151
  if attributes.key?(:'description')
143
152
  self.description = attributes[:'description']
144
153
  end
@@ -239,6 +248,7 @@ module Akeyless
239
248
  def ==(o)
240
249
  return true if self.equal?(o)
241
250
  self.class == o.class &&
251
+ delete_protection == o.delete_protection &&
242
252
  description == o.description &&
243
253
  json == o.json &&
244
254
  k8s_auth_type == o.k8s_auth_type &&
@@ -267,7 +277,7 @@ module Akeyless
267
277
  # Calculates hash code according to all attributes.
268
278
  # @return [Integer] Hash code
269
279
  def hash
270
- [description, json, k8s_auth_type, k8s_client_certificate, k8s_client_key, k8s_cluster_ca_cert, k8s_cluster_endpoint, k8s_cluster_name, k8s_cluster_token, keep_prev_version, key, max_versions, name, new_name, token, uid_token, use_gw_service_account].hash
280
+ [delete_protection, description, json, k8s_auth_type, k8s_client_certificate, k8s_client_key, k8s_cluster_ca_cert, k8s_cluster_endpoint, k8s_cluster_name, k8s_cluster_token, keep_prev_version, key, max_versions, name, new_name, token, uid_token, use_gw_service_account].hash
271
281
  end
272
282
 
273
283
  # Builds the object from hash
@@ -22,6 +22,9 @@ module Akeyless
22
22
  # Bind DN Password
23
23
  attr_accessor :bind_dn_password
24
24
 
25
+ # Protection from accidental deletion of this object [true/false]
26
+ attr_accessor :delete_protection
27
+
25
28
  # Description of the object
26
29
  attr_accessor :description
27
30
 
@@ -66,6 +69,7 @@ module Akeyless
66
69
  {
67
70
  :'bind_dn' => :'bind-dn',
68
71
  :'bind_dn_password' => :'bind-dn-password',
72
+ :'delete_protection' => :'delete_protection',
69
73
  :'description' => :'description',
70
74
  :'json' => :'json',
71
75
  :'keep_prev_version' => :'keep-prev-version',
@@ -92,6 +96,7 @@ module Akeyless
92
96
  {
93
97
  :'bind_dn' => :'String',
94
98
  :'bind_dn_password' => :'String',
99
+ :'delete_protection' => :'String',
95
100
  :'description' => :'String',
96
101
  :'json' => :'Boolean',
97
102
  :'keep_prev_version' => :'String',
@@ -141,6 +146,10 @@ module Akeyless
141
146
  self.bind_dn_password = nil
142
147
  end
143
148
 
149
+ if attributes.key?(:'delete_protection')
150
+ self.delete_protection = attributes[:'delete_protection']
151
+ end
152
+
144
153
  if attributes.key?(:'description')
145
154
  self.description = attributes[:'description']
146
155
  end
@@ -242,6 +251,7 @@ module Akeyless
242
251
  self.class == o.class &&
243
252
  bind_dn == o.bind_dn &&
244
253
  bind_dn_password == o.bind_dn_password &&
254
+ delete_protection == o.delete_protection &&
245
255
  description == o.description &&
246
256
  json == o.json &&
247
257
  keep_prev_version == o.keep_prev_version &&
@@ -266,7 +276,7 @@ module Akeyless
266
276
  # Calculates hash code according to all attributes.
267
277
  # @return [Integer] Hash code
268
278
  def hash
269
- [bind_dn, bind_dn_password, description, json, keep_prev_version, key, ldap_ca_cert, ldap_url, max_versions, name, new_name, server_type, token, token_expiration, uid_token].hash
279
+ [bind_dn, bind_dn_password, delete_protection, description, json, keep_prev_version, key, ldap_ca_cert, ldap_url, max_versions, name, new_name, server_type, token, token_expiration, uid_token].hash
270
280
  end
271
281
 
272
282
  # Builds the object from hash
@@ -18,6 +18,9 @@ module Akeyless
18
18
  class TargetUpdateLetsEncrypt
19
19
  attr_accessor :acme_challenge
20
20
 
21
+ # Protection from accidental deletion of this object [true/false]
22
+ attr_accessor :delete_protection
23
+
21
24
  # Description of the object
22
25
  attr_accessor :description
23
26
 
@@ -68,6 +71,7 @@ module Akeyless
68
71
  def self.attribute_map
69
72
  {
70
73
  :'acme_challenge' => :'acme-challenge',
74
+ :'delete_protection' => :'delete_protection',
71
75
  :'description' => :'description',
72
76
  :'dns_target_creds' => :'dns-target-creds',
73
77
  :'email' => :'email',
@@ -96,6 +100,7 @@ module Akeyless
96
100
  def self.openapi_types
97
101
  {
98
102
  :'acme_challenge' => :'String',
103
+ :'delete_protection' => :'String',
99
104
  :'description' => :'String',
100
105
  :'dns_target_creds' => :'String',
101
106
  :'email' => :'String',
@@ -142,6 +147,10 @@ module Akeyless
142
147
  self.acme_challenge = 'http'
143
148
  end
144
149
 
150
+ if attributes.key?(:'delete_protection')
151
+ self.delete_protection = attributes[:'delete_protection']
152
+ end
153
+
145
154
  if attributes.key?(:'description')
146
155
  self.description = attributes[:'description']
147
156
  end
@@ -152,6 +161,8 @@ module Akeyless
152
161
 
153
162
  if attributes.key?(:'email')
154
163
  self.email = attributes[:'email']
164
+ else
165
+ self.email = nil
155
166
  end
156
167
 
157
168
  if attributes.key?(:'gcp_project')
@@ -220,6 +231,10 @@ module Akeyless
220
231
  def list_invalid_properties
221
232
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
222
233
  invalid_properties = Array.new
234
+ if @email.nil?
235
+ invalid_properties.push('invalid value for "email", email cannot be nil.')
236
+ end
237
+
223
238
  if @name.nil?
224
239
  invalid_properties.push('invalid value for "name", name cannot be nil.')
225
240
  end
@@ -231,6 +246,7 @@ module Akeyless
231
246
  # @return true if the model is valid
232
247
  def valid?
233
248
  warn '[DEPRECATED] the `valid?` method is obsolete'
249
+ return false if @email.nil?
234
250
  return false if @name.nil?
235
251
  true
236
252
  end
@@ -241,6 +257,7 @@ module Akeyless
241
257
  return true if self.equal?(o)
242
258
  self.class == o.class &&
243
259
  acme_challenge == o.acme_challenge &&
260
+ delete_protection == o.delete_protection &&
244
261
  description == o.description &&
245
262
  dns_target_creds == o.dns_target_creds &&
246
263
  email == o.email &&
@@ -268,7 +285,7 @@ module Akeyless
268
285
  # Calculates hash code according to all attributes.
269
286
  # @return [Integer] Hash code
270
287
  def hash
271
- [acme_challenge, description, dns_target_creds, email, gcp_project, hosted_zone, json, keep_prev_version, key, lets_encrypt_url, max_versions, name, new_name, resource_group, timeout, token, uid_token].hash
288
+ [acme_challenge, delete_protection, description, dns_target_creds, email, gcp_project, hosted_zone, json, keep_prev_version, key, lets_encrypt_url, max_versions, name, new_name, resource_group, timeout, token, uid_token].hash
272
289
  end
273
290
 
274
291
  # Builds the object from hash
@@ -22,6 +22,9 @@ module Akeyless
22
22
  # API key ID
23
23
  attr_accessor :api_key_id
24
24
 
25
+ # Protection from accidental deletion of this object [true/false]
26
+ attr_accessor :delete_protection
27
+
25
28
  # Description of the object
26
29
  attr_accessor :description
27
30
 
@@ -66,6 +69,7 @@ module Akeyless
66
69
  {
67
70
  :'api_key' => :'api-key',
68
71
  :'api_key_id' => :'api-key-id',
72
+ :'delete_protection' => :'delete_protection',
69
73
  :'description' => :'description',
70
74
  :'json' => :'json',
71
75
  :'keep_prev_version' => :'keep-prev-version',
@@ -92,6 +96,7 @@ module Akeyless
92
96
  {
93
97
  :'api_key' => :'String',
94
98
  :'api_key_id' => :'String',
99
+ :'delete_protection' => :'String',
95
100
  :'description' => :'String',
96
101
  :'json' => :'Boolean',
97
102
  :'keep_prev_version' => :'String',
@@ -137,6 +142,10 @@ module Akeyless
137
142
  self.api_key_id = attributes[:'api_key_id']
138
143
  end
139
144
 
145
+ if attributes.key?(:'delete_protection')
146
+ self.delete_protection = attributes[:'delete_protection']
147
+ end
148
+
140
149
  if attributes.key?(:'description')
141
150
  self.description = attributes[:'description']
142
151
  else
@@ -227,6 +236,7 @@ module Akeyless
227
236
  self.class == o.class &&
228
237
  api_key == o.api_key &&
229
238
  api_key_id == o.api_key_id &&
239
+ delete_protection == o.delete_protection &&
230
240
  description == o.description &&
231
241
  json == o.json &&
232
242
  keep_prev_version == o.keep_prev_version &&
@@ -251,7 +261,7 @@ module Akeyless
251
261
  # Calculates hash code according to all attributes.
252
262
  # @return [Integer] Hash code
253
263
  def hash
254
- [api_key, api_key_id, description, json, keep_prev_version, key, max_versions, model, name, new_comment, new_name, openai_url, organization_id, token, uid_token].hash
264
+ [api_key, api_key_id, delete_protection, description, json, keep_prev_version, key, max_versions, model, name, new_comment, new_name, openai_url, organization_id, token, uid_token].hash
255
265
  end
256
266
 
257
267
  # Builds the object from hash
@@ -22,6 +22,9 @@ module Akeyless
22
22
  # Ping Federate authorization port
23
23
  attr_accessor :authorization_port
24
24
 
25
+ # Protection from accidental deletion of this object [true/false]
26
+ attr_accessor :delete_protection
27
+
25
28
  # Description of the object
26
29
  attr_accessor :description
27
30
 
@@ -63,6 +66,7 @@ module Akeyless
63
66
  {
64
67
  :'administrative_port' => :'administrative-port',
65
68
  :'authorization_port' => :'authorization-port',
69
+ :'delete_protection' => :'delete_protection',
66
70
  :'description' => :'description',
67
71
  :'json' => :'json',
68
72
  :'keep_prev_version' => :'keep-prev-version',
@@ -88,6 +92,7 @@ module Akeyless
88
92
  {
89
93
  :'administrative_port' => :'String',
90
94
  :'authorization_port' => :'String',
95
+ :'delete_protection' => :'String',
91
96
  :'description' => :'String',
92
97
  :'json' => :'Boolean',
93
98
  :'keep_prev_version' => :'String',
@@ -136,6 +141,10 @@ module Akeyless
136
141
  self.authorization_port = '9031'
137
142
  end
138
143
 
144
+ if attributes.key?(:'delete_protection')
145
+ self.delete_protection = attributes[:'delete_protection']
146
+ end
147
+
139
148
  if attributes.key?(:'description')
140
149
  self.description = attributes[:'description']
141
150
  end
@@ -216,6 +225,7 @@ module Akeyless
216
225
  self.class == o.class &&
217
226
  administrative_port == o.administrative_port &&
218
227
  authorization_port == o.authorization_port &&
228
+ delete_protection == o.delete_protection &&
219
229
  description == o.description &&
220
230
  json == o.json &&
221
231
  keep_prev_version == o.keep_prev_version &&
@@ -239,7 +249,7 @@ module Akeyless
239
249
  # Calculates hash code according to all attributes.
240
250
  # @return [Integer] Hash code
241
251
  def hash
242
- [administrative_port, authorization_port, description, json, keep_prev_version, key, max_versions, name, new_name, password, ping_url, privileged_user, token, uid_token].hash
252
+ [administrative_port, authorization_port, delete_protection, description, json, keep_prev_version, key, max_versions, name, new_name, password, ping_url, privileged_user, token, uid_token].hash
243
253
  end
244
254
 
245
255
  # Builds the object from hash
@@ -16,6 +16,9 @@ require 'time'
16
16
  module Akeyless
17
17
  # targetUpdateRabbitMq is a command that updates an existing rabbitmq target
18
18
  class TargetUpdateRabbitMq
19
+ # Protection from accidental deletion of this object [true/false]
20
+ attr_accessor :delete_protection
21
+
19
22
  # Description of the object
20
23
  attr_accessor :description
21
24
 
@@ -52,6 +55,7 @@ module Akeyless
52
55
  # Attribute mapping from ruby-style variable name to JSON key.
53
56
  def self.attribute_map
54
57
  {
58
+ :'delete_protection' => :'delete_protection',
55
59
  :'description' => :'description',
56
60
  :'json' => :'json',
57
61
  :'keep_prev_version' => :'keep-prev-version',
@@ -75,6 +79,7 @@ module Akeyless
75
79
  # Attribute type mapping.
76
80
  def self.openapi_types
77
81
  {
82
+ :'delete_protection' => :'String',
78
83
  :'description' => :'String',
79
84
  :'json' => :'Boolean',
80
85
  :'keep_prev_version' => :'String',
@@ -111,6 +116,10 @@ module Akeyless
111
116
  h[k.to_sym] = v
112
117
  }
113
118
 
119
+ if attributes.key?(:'delete_protection')
120
+ self.delete_protection = attributes[:'delete_protection']
121
+ end
122
+
114
123
  if attributes.key?(:'description')
115
124
  self.description = attributes[:'description']
116
125
  end
@@ -189,6 +198,7 @@ module Akeyless
189
198
  def ==(o)
190
199
  return true if self.equal?(o)
191
200
  self.class == o.class &&
201
+ delete_protection == o.delete_protection &&
192
202
  description == o.description &&
193
203
  json == o.json &&
194
204
  keep_prev_version == o.keep_prev_version &&
@@ -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
- [description, json, keep_prev_version, key, max_versions, name, new_name, rabbitmq_server_password, rabbitmq_server_uri, rabbitmq_server_user, token, uid_token].hash
225
+ [delete_protection, description, json, keep_prev_version, key, max_versions, name, new_name, rabbitmq_server_password, rabbitmq_server_uri, rabbitmq_server_user, token, uid_token].hash
216
226
  end
217
227
 
218
228
  # Builds the object from hash
@@ -34,6 +34,9 @@ module Akeyless
34
34
  # Client secret of the oauth2 app to use for connecting to Salesforce (required for password flow)
35
35
  attr_accessor :client_secret
36
36
 
37
+ # Protection from accidental deletion of this object [true/false]
38
+ attr_accessor :delete_protection
39
+
37
40
  # Description of the object
38
41
  attr_accessor :description
39
42
 
@@ -82,6 +85,7 @@ module Akeyless
82
85
  :'ca_cert_name' => :'ca-cert-name',
83
86
  :'client_id' => :'client-id',
84
87
  :'client_secret' => :'client-secret',
88
+ :'delete_protection' => :'delete_protection',
85
89
  :'description' => :'description',
86
90
  :'email' => :'email',
87
91
  :'json' => :'json',
@@ -112,6 +116,7 @@ module Akeyless
112
116
  :'ca_cert_name' => :'String',
113
117
  :'client_id' => :'String',
114
118
  :'client_secret' => :'String',
119
+ :'delete_protection' => :'String',
115
120
  :'description' => :'String',
116
121
  :'email' => :'String',
117
122
  :'json' => :'Boolean',
@@ -177,6 +182,10 @@ module Akeyless
177
182
  self.client_secret = attributes[:'client_secret']
178
183
  end
179
184
 
185
+ if attributes.key?(:'delete_protection')
186
+ self.delete_protection = attributes[:'delete_protection']
187
+ end
188
+
180
189
  if attributes.key?(:'description')
181
190
  self.description = attributes[:'description']
182
191
  end
@@ -289,6 +298,7 @@ module Akeyless
289
298
  ca_cert_name == o.ca_cert_name &&
290
299
  client_id == o.client_id &&
291
300
  client_secret == o.client_secret &&
301
+ delete_protection == o.delete_protection &&
292
302
  description == o.description &&
293
303
  email == o.email &&
294
304
  json == o.json &&
@@ -313,7 +323,7 @@ module Akeyless
313
323
  # Calculates hash code according to all attributes.
314
324
  # @return [Integer] Hash code
315
325
  def hash
316
- [app_private_key_data, auth_flow, ca_cert_data, ca_cert_name, client_id, client_secret, description, email, json, keep_prev_version, key, max_versions, name, new_name, password, security_token, tenant_url, token, uid_token].hash
326
+ [app_private_key_data, auth_flow, ca_cert_data, ca_cert_name, client_id, client_secret, delete_protection, description, email, json, keep_prev_version, key, max_versions, name, new_name, password, security_token, tenant_url, token, uid_token].hash
317
327
  end
318
328
 
319
329
  # Builds the object from hash
@@ -22,6 +22,9 @@ module Akeyless
22
22
  # Customer Uri of the Sectigo account
23
23
  attr_accessor :customer_uri
24
24
 
25
+ # Protection from accidental deletion of this object [true/false]
26
+ attr_accessor :delete_protection
27
+
25
28
  # Description of the object
26
29
  attr_accessor :description
27
30
 
@@ -69,6 +72,7 @@ module Akeyless
69
72
  {
70
73
  :'certificate_profile_id' => :'certificate-profile-id',
71
74
  :'customer_uri' => :'customer-uri',
75
+ :'delete_protection' => :'delete_protection',
72
76
  :'description' => :'description',
73
77
  :'external_requester' => :'external-requester',
74
78
  :'json' => :'json',
@@ -96,6 +100,7 @@ module Akeyless
96
100
  {
97
101
  :'certificate_profile_id' => :'Integer',
98
102
  :'customer_uri' => :'String',
103
+ :'delete_protection' => :'String',
99
104
  :'description' => :'String',
100
105
  :'external_requester' => :'String',
101
106
  :'json' => :'Boolean',
@@ -146,6 +151,10 @@ module Akeyless
146
151
  self.customer_uri = nil
147
152
  end
148
153
 
154
+ if attributes.key?(:'delete_protection')
155
+ self.delete_protection = attributes[:'delete_protection']
156
+ end
157
+
149
158
  if attributes.key?(:'description')
150
159
  self.description = attributes[:'description']
151
160
  end
@@ -274,6 +283,7 @@ module Akeyless
274
283
  self.class == o.class &&
275
284
  certificate_profile_id == o.certificate_profile_id &&
276
285
  customer_uri == o.customer_uri &&
286
+ delete_protection == o.delete_protection &&
277
287
  description == o.description &&
278
288
  external_requester == o.external_requester &&
279
289
  json == o.json &&
@@ -299,7 +309,7 @@ module Akeyless
299
309
  # Calculates hash code according to all attributes.
300
310
  # @return [Integer] Hash code
301
311
  def hash
302
- [certificate_profile_id, customer_uri, description, external_requester, json, keep_prev_version, key, max_versions, name, new_name, organization_id, password, timeout, token, uid_token, username].hash
312
+ [certificate_profile_id, customer_uri, delete_protection, description, external_requester, json, keep_prev_version, key, max_versions, name, new_name, organization_id, password, timeout, token, uid_token, username].hash
303
313
  end
304
314
 
305
315
  # Builds the object from hash
@@ -16,6 +16,9 @@ require 'time'
16
16
  module Akeyless
17
17
  # targetUpdateSsh is a command that updates an existing ssh target
18
18
  class TargetUpdateSsh
19
+ # Protection from accidental deletion of this object [true/false]
20
+ attr_accessor :delete_protection
21
+
19
22
  # Description of the object
20
23
  attr_accessor :description
21
24
 
@@ -64,6 +67,7 @@ module Akeyless
64
67
  # Attribute mapping from ruby-style variable name to JSON key.
65
68
  def self.attribute_map
66
69
  {
70
+ :'delete_protection' => :'delete_protection',
67
71
  :'description' => :'description',
68
72
  :'host' => :'host',
69
73
  :'json' => :'json',
@@ -90,6 +94,7 @@ module Akeyless
90
94
  # Attribute type mapping.
91
95
  def self.openapi_types
92
96
  {
97
+ :'delete_protection' => :'String',
93
98
  :'description' => :'String',
94
99
  :'host' => :'String',
95
100
  :'json' => :'Boolean',
@@ -129,6 +134,10 @@ module Akeyless
129
134
  h[k.to_sym] = v
130
135
  }
131
136
 
137
+ if attributes.key?(:'delete_protection')
138
+ self.delete_protection = attributes[:'delete_protection']
139
+ end
140
+
132
141
  if attributes.key?(:'description')
133
142
  self.description = attributes[:'description']
134
143
  end
@@ -221,6 +230,7 @@ module Akeyless
221
230
  def ==(o)
222
231
  return true if self.equal?(o)
223
232
  self.class == o.class &&
233
+ delete_protection == o.delete_protection &&
224
234
  description == o.description &&
225
235
  host == o.host &&
226
236
  json == o.json &&
@@ -247,7 +257,7 @@ module Akeyless
247
257
  # Calculates hash code according to all attributes.
248
258
  # @return [Integer] Hash code
249
259
  def hash
250
- [description, host, json, keep_prev_version, key, max_versions, name, new_name, port, private_key, private_key_password, ssh_password, ssh_username, token, uid_token].hash
260
+ [delete_protection, description, host, json, keep_prev_version, key, max_versions, name, new_name, port, private_key, private_key_password, ssh_password, ssh_username, token, uid_token].hash
251
261
  end
252
262
 
253
263
  # Builds the object from hash
@@ -16,6 +16,9 @@ require 'time'
16
16
  module Akeyless
17
17
  # targetUpdateWeb is a command that updates an existing web target
18
18
  class TargetUpdateWeb
19
+ # Protection from accidental deletion of this object [true/false]
20
+ attr_accessor :delete_protection
21
+
19
22
  # Description of the object
20
23
  attr_accessor :description
21
24
 
@@ -49,6 +52,7 @@ module Akeyless
49
52
  # Attribute mapping from ruby-style variable name to JSON key.
50
53
  def self.attribute_map
51
54
  {
55
+ :'delete_protection' => :'delete_protection',
52
56
  :'description' => :'description',
53
57
  :'json' => :'json',
54
58
  :'keep_prev_version' => :'keep-prev-version',
@@ -70,6 +74,7 @@ module Akeyless
70
74
  # Attribute type mapping.
71
75
  def self.openapi_types
72
76
  {
77
+ :'delete_protection' => :'String',
73
78
  :'description' => :'String',
74
79
  :'json' => :'Boolean',
75
80
  :'keep_prev_version' => :'String',
@@ -104,6 +109,10 @@ module Akeyless
104
109
  h[k.to_sym] = v
105
110
  }
106
111
 
112
+ if attributes.key?(:'delete_protection')
113
+ self.delete_protection = attributes[:'delete_protection']
114
+ end
115
+
107
116
  if attributes.key?(:'description')
108
117
  self.description = attributes[:'description']
109
118
  end
@@ -174,6 +183,7 @@ module Akeyless
174
183
  def ==(o)
175
184
  return true if self.equal?(o)
176
185
  self.class == o.class &&
186
+ delete_protection == o.delete_protection &&
177
187
  description == o.description &&
178
188
  json == o.json &&
179
189
  keep_prev_version == o.keep_prev_version &&
@@ -195,7 +205,7 @@ module Akeyless
195
205
  # Calculates hash code according to all attributes.
196
206
  # @return [Integer] Hash code
197
207
  def hash
198
- [description, json, keep_prev_version, key, max_versions, name, new_name, token, uid_token, url].hash
208
+ [delete_protection, description, json, keep_prev_version, key, max_versions, name, new_name, token, uid_token, url].hash
199
209
  end
200
210
 
201
211
  # Builds the object from hash
@@ -22,6 +22,9 @@ module Akeyless
22
22
  # Type of connection to Windows Server [credentials/parent-target]
23
23
  attr_accessor :connection_type
24
24
 
25
+ # Protection from accidental deletion of this object [true/false]
26
+ attr_accessor :delete_protection
27
+
25
28
  # Description of the object
26
29
  attr_accessor :description
27
30
 
@@ -75,6 +78,7 @@ module Akeyless
75
78
  {
76
79
  :'certificate' => :'certificate',
77
80
  :'connection_type' => :'connection-type',
81
+ :'delete_protection' => :'delete_protection',
78
82
  :'description' => :'description',
79
83
  :'domain' => :'domain',
80
84
  :'hostname' => :'hostname',
@@ -104,6 +108,7 @@ module Akeyless
104
108
  {
105
109
  :'certificate' => :'String',
106
110
  :'connection_type' => :'String',
111
+ :'delete_protection' => :'String',
107
112
  :'description' => :'String',
108
113
  :'domain' => :'String',
109
114
  :'hostname' => :'String',
@@ -154,6 +159,10 @@ module Akeyless
154
159
  self.connection_type = 'credentials'
155
160
  end
156
161
 
162
+ if attributes.key?(:'delete_protection')
163
+ self.delete_protection = attributes[:'delete_protection']
164
+ end
165
+
157
166
  if attributes.key?(:'description')
158
167
  self.description = attributes[:'description']
159
168
  end
@@ -275,6 +284,7 @@ module Akeyless
275
284
  self.class == o.class &&
276
285
  certificate == o.certificate &&
277
286
  connection_type == o.connection_type &&
287
+ delete_protection == o.delete_protection &&
278
288
  description == o.description &&
279
289
  domain == o.domain &&
280
290
  hostname == o.hostname &&
@@ -302,7 +312,7 @@ module Akeyless
302
312
  # Calculates hash code according to all attributes.
303
313
  # @return [Integer] Hash code
304
314
  def hash
305
- [certificate, connection_type, description, domain, hostname, json, keep_prev_version, key, max_versions, name, new_name, parent_target_name, password, port, token, uid_token, use_tls, username].hash
315
+ [certificate, connection_type, delete_protection, description, domain, hostname, json, keep_prev_version, key, max_versions, name, new_name, parent_target_name, password, port, token, uid_token, use_tls, username].hash
306
316
  end
307
317
 
308
318
  # Builds the object from hash