akeyless 5.0.27 → 5.0.30

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 (274) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +63 -1
  3. data/docs/AccountGeneralSettings.md +6 -0
  4. data/docs/AnthropicTargetDetails.md +20 -0
  5. data/docs/AuthMethod.md +3 -1
  6. data/docs/AuthMethodAccessInfo.md +2 -0
  7. data/docs/AuthMethodCreateSAML.md +3 -1
  8. data/docs/AuthMethodCreateUniversalIdentity.md +2 -0
  9. data/docs/AuthMethodUpdateSAML.md +3 -1
  10. data/docs/AuthMethodUpdateUniversalIdentity.md +2 -0
  11. data/docs/BedrockTargetDetails.md +20 -0
  12. data/docs/CreateAuthMethodSAML.md +3 -1
  13. data/docs/CreateAuthMethodUniversalIdentity.md +2 -0
  14. data/docs/CreateDBTarget.md +2 -0
  15. data/docs/CreateMcpSecretBearerToken.md +46 -0
  16. data/docs/CreateMcpSecretOAuthAuthCode.md +56 -0
  17. data/docs/CreateMcpSecretOAuthClientCreds.md +52 -0
  18. data/docs/CreatePKICertIssuer.md +1 -1
  19. data/docs/CustomDnsTargetDetails.md +20 -0
  20. data/docs/DSProducerDetails.md +2 -0
  21. data/docs/DbTargetDetails.md +2 -0
  22. data/docs/EmailCustomization.md +28 -0
  23. data/docs/EmailCustomizationAccountInformation.md +24 -0
  24. data/docs/EmailCustomizationAccountInformationValues.md +24 -0
  25. data/docs/EsmGetSecretOutput.md +11 -1
  26. data/docs/FileDownloadInstructions.md +20 -0
  27. data/docs/FileInfo.md +50 -0
  28. data/docs/FolderDeleteSync.md +32 -0
  29. data/docs/FolderDeleteSyncOutput.md +24 -0
  30. data/docs/FolderSync.md +34 -0
  31. data/docs/FolderSyncAll.md +26 -0
  32. data/docs/FolderSyncAllOutput.md +18 -0
  33. data/docs/FolderSyncOutput.md +24 -0
  34. data/docs/FolderUSCSyncConfig.md +2 -0
  35. data/docs/GatewayCreateMigration.md +2 -0
  36. data/docs/GatewayUpdateMigration.md +2 -0
  37. data/docs/GetKubeExecCreds.md +1 -1
  38. data/docs/GetPKICertificate.md +1 -1
  39. data/docs/GrokTargetDetails.md +22 -0
  40. data/docs/HashiPayload.md +2 -0
  41. data/docs/Item.md +2 -0
  42. data/docs/KeycloakTargetDetails.md +24 -0
  43. data/docs/OIDCAccessRules.md +2 -0
  44. data/docs/OktaTargetDetails.md +20 -0
  45. data/docs/PersonalFolderGlobalMappingSettings.md +20 -0
  46. data/docs/RotatedSecretCreateAws.md +4 -4
  47. data/docs/RotatedSecretCreateAzure.md +6 -4
  48. data/docs/RotatedSecretCreateCassandra.md +4 -4
  49. data/docs/RotatedSecretCreateCustom.md +4 -4
  50. data/docs/RotatedSecretCreateDockerhub.md +4 -4
  51. data/docs/RotatedSecretCreateGcp.md +4 -4
  52. data/docs/RotatedSecretCreateHanadb.md +4 -4
  53. data/docs/RotatedSecretCreateHashiVault.md +60 -0
  54. data/docs/RotatedSecretCreateLdap.md +4 -4
  55. data/docs/RotatedSecretCreateMongodb.md +4 -4
  56. data/docs/RotatedSecretCreateMssql.md +4 -4
  57. data/docs/RotatedSecretCreateMysql.md +4 -4
  58. data/docs/RotatedSecretCreateOpenAI.md +4 -4
  59. data/docs/RotatedSecretCreateOracledb.md +4 -4
  60. data/docs/RotatedSecretCreatePostgresql.md +4 -4
  61. data/docs/RotatedSecretCreateRedis.md +4 -4
  62. data/docs/RotatedSecretCreateRedshift.md +4 -4
  63. data/docs/RotatedSecretCreateSnowflake.md +4 -4
  64. data/docs/RotatedSecretCreateSplunk.md +4 -4
  65. data/docs/RotatedSecretCreateSsh.md +4 -4
  66. data/docs/RotatedSecretCreateWindows.md +4 -4
  67. data/docs/RotatedSecretUpdateAws.md +4 -4
  68. data/docs/RotatedSecretUpdateAzure.md +6 -4
  69. data/docs/RotatedSecretUpdateCassandra.md +4 -4
  70. data/docs/RotatedSecretUpdateCustom.md +4 -4
  71. data/docs/RotatedSecretUpdateDockerhub.md +4 -4
  72. data/docs/RotatedSecretUpdateGcp.md +4 -4
  73. data/docs/RotatedSecretUpdateHanadb.md +4 -4
  74. data/docs/RotatedSecretUpdateHashiVault.md +64 -0
  75. data/docs/RotatedSecretUpdateLdap.md +4 -4
  76. data/docs/RotatedSecretUpdateMongodb.md +4 -4
  77. data/docs/RotatedSecretUpdateMssql.md +4 -4
  78. data/docs/RotatedSecretUpdateMysql.md +4 -4
  79. data/docs/RotatedSecretUpdateOpenAI.md +4 -4
  80. data/docs/RotatedSecretUpdateOracledb.md +4 -4
  81. data/docs/RotatedSecretUpdatePostgresql.md +4 -4
  82. data/docs/RotatedSecretUpdateRedis.md +4 -4
  83. data/docs/RotatedSecretUpdateRedshift.md +4 -4
  84. data/docs/RotatedSecretUpdateSnowflake.md +4 -4
  85. data/docs/RotatedSecretUpdateSplunk.md +4 -4
  86. data/docs/RotatedSecretUpdateSsh.md +4 -4
  87. data/docs/RotatedSecretUpdateWindows.md +4 -4
  88. data/docs/RuntimeAuthorityCommand.md +4 -0
  89. data/docs/SAMLAccessRules.md +3 -1
  90. data/docs/SecretInfo.md +5 -1
  91. data/docs/StaticSecretDetailsInfo.md +2 -0
  92. data/docs/TargetCreateAnthropic.md +36 -0
  93. data/docs/TargetCreateBedrock.md +36 -0
  94. data/docs/TargetCreateCustomDns.md +36 -0
  95. data/docs/TargetCreateDB.md +2 -0
  96. data/docs/TargetCreateGrok.md +38 -0
  97. data/docs/TargetCreateKeycloak.md +40 -0
  98. data/docs/TargetCreateOkta.md +36 -0
  99. data/docs/TargetTypeDetailsInput.md +12 -0
  100. data/docs/TargetUpdateAnthropic.md +42 -0
  101. data/docs/TargetUpdateBedrock.md +42 -0
  102. data/docs/TargetUpdateCustomDns.md +40 -0
  103. data/docs/TargetUpdateDB.md +2 -0
  104. data/docs/TargetUpdateGrok.md +44 -0
  105. data/docs/TargetUpdateKeycloak.md +44 -0
  106. data/docs/TargetUpdateOkta.md +40 -0
  107. data/docs/UidExpirationEvent.md +18 -0
  108. data/docs/UpdateAuthMethodSAML.md +3 -1
  109. data/docs/UpdateAuthMethodUniversalIdentity.md +2 -0
  110. data/docs/UpdateDBTarget.md +2 -0
  111. data/docs/UpdateMcpSecretBearerToken.md +40 -0
  112. data/docs/UpdateMcpSecretOAuthAuthCode.md +50 -0
  113. data/docs/UpdateMcpSecretOAuthClientCreds.md +46 -0
  114. data/docs/UpdatePKICertIssuer.md +1 -1
  115. data/docs/UscGetSecretOutput.md +11 -1
  116. data/docs/V2Api.md +1449 -0
  117. data/lib/akeyless/api/v2_api.rb +1617 -145
  118. data/lib/akeyless/models/account_general_settings.rb +29 -1
  119. data/lib/akeyless/models/anthropic_target_details.rb +224 -0
  120. data/lib/akeyless/models/auth_method.rb +15 -4
  121. data/lib/akeyless/models/auth_method_access_info.rb +13 -1
  122. data/lib/akeyless/models/auth_method_create_saml.rb +14 -4
  123. data/lib/akeyless/models/auth_method_create_universal_identity.rb +13 -1
  124. data/lib/akeyless/models/auth_method_update_saml.rb +14 -4
  125. data/lib/akeyless/models/auth_method_update_universal_identity.rb +13 -1
  126. data/lib/akeyless/models/bedrock_target_details.rb +224 -0
  127. data/lib/akeyless/models/create_auth_method_saml.rb +14 -4
  128. data/lib/akeyless/models/create_auth_method_universal_identity.rb +13 -1
  129. data/lib/akeyless/models/create_db_target.rb +11 -1
  130. data/lib/akeyless/models/create_mcp_secret_bearer_token.rb +371 -0
  131. data/lib/akeyless/models/create_mcp_secret_o_auth_auth_code.rb +423 -0
  132. data/lib/akeyless/models/create_mcp_secret_o_auth_client_creds.rb +403 -0
  133. data/lib/akeyless/models/create_pki_cert_issuer.rb +1 -1
  134. data/lib/akeyless/models/custom_dns_target_details.rb +225 -0
  135. data/lib/akeyless/models/db_target_details.rb +11 -1
  136. data/lib/akeyless/models/ds_producer_details.rb +11 -1
  137. data/lib/akeyless/models/email_customization.rb +259 -0
  138. data/lib/akeyless/models/email_customization_account_information.rb +242 -0
  139. data/lib/akeyless/models/email_customization_account_information_values.rb +241 -0
  140. data/lib/akeyless/models/esm_get_secret_output.rb +53 -4
  141. data/lib/akeyless/models/file_download_instructions.rb +223 -0
  142. data/lib/akeyless/models/file_info.rb +358 -0
  143. data/lib/akeyless/models/folder_delete_sync.rb +305 -0
  144. data/lib/akeyless/models/folder_delete_sync_output.rb +245 -0
  145. data/lib/akeyless/models/folder_sync.rb +306 -0
  146. data/lib/akeyless/models/folder_sync_all.rb +266 -0
  147. data/lib/akeyless/models/folder_sync_all_output.rb +214 -0
  148. data/lib/akeyless/models/folder_sync_output.rb +247 -0
  149. data/lib/akeyless/models/folder_usc_sync_config.rb +10 -1
  150. data/lib/akeyless/models/gateway_create_migration.rb +11 -1
  151. data/lib/akeyless/models/gateway_update_migration.rb +11 -1
  152. data/lib/akeyless/models/get_kube_exec_creds.rb +1 -1
  153. data/lib/akeyless/models/get_pki_certificate.rb +1 -1
  154. data/lib/akeyless/models/grok_target_details.rb +234 -0
  155. data/lib/akeyless/models/hashi_payload.rb +10 -1
  156. data/lib/akeyless/models/item.rb +10 -1
  157. data/lib/akeyless/models/keycloak_target_details.rb +242 -0
  158. data/lib/akeyless/models/oidc_access_rules.rb +11 -1
  159. data/lib/akeyless/models/okta_target_details.rb +224 -0
  160. data/lib/akeyless/models/personal_folder_global_mapping_settings.rb +223 -0
  161. data/lib/akeyless/models/rotated_secret_create_aws.rb +0 -4
  162. data/lib/akeyless/models/rotated_secret_create_azure.rb +11 -5
  163. data/lib/akeyless/models/rotated_secret_create_cassandra.rb +0 -4
  164. data/lib/akeyless/models/rotated_secret_create_custom.rb +0 -4
  165. data/lib/akeyless/models/rotated_secret_create_dockerhub.rb +0 -4
  166. data/lib/akeyless/models/rotated_secret_create_gcp.rb +0 -4
  167. data/lib/akeyless/models/rotated_secret_create_hanadb.rb +0 -4
  168. data/lib/akeyless/models/rotated_secret_create_hashi_vault.rb +446 -0
  169. data/lib/akeyless/models/rotated_secret_create_ldap.rb +0 -4
  170. data/lib/akeyless/models/rotated_secret_create_mongodb.rb +0 -4
  171. data/lib/akeyless/models/rotated_secret_create_mssql.rb +0 -4
  172. data/lib/akeyless/models/rotated_secret_create_mysql.rb +0 -4
  173. data/lib/akeyless/models/rotated_secret_create_open_ai.rb +0 -4
  174. data/lib/akeyless/models/rotated_secret_create_oracledb.rb +0 -4
  175. data/lib/akeyless/models/rotated_secret_create_postgresql.rb +0 -4
  176. data/lib/akeyless/models/rotated_secret_create_redis.rb +0 -4
  177. data/lib/akeyless/models/rotated_secret_create_redshift.rb +0 -4
  178. data/lib/akeyless/models/rotated_secret_create_snowflake.rb +0 -4
  179. data/lib/akeyless/models/rotated_secret_create_splunk.rb +0 -4
  180. data/lib/akeyless/models/rotated_secret_create_ssh.rb +0 -4
  181. data/lib/akeyless/models/rotated_secret_create_windows.rb +0 -4
  182. data/lib/akeyless/models/rotated_secret_sync.rb +1 -1
  183. data/lib/akeyless/models/rotated_secret_update_aws.rb +0 -4
  184. data/lib/akeyless/models/rotated_secret_update_azure.rb +11 -5
  185. data/lib/akeyless/models/rotated_secret_update_cassandra.rb +0 -4
  186. data/lib/akeyless/models/rotated_secret_update_custom.rb +0 -4
  187. data/lib/akeyless/models/rotated_secret_update_dockerhub.rb +0 -4
  188. data/lib/akeyless/models/rotated_secret_update_gcp.rb +0 -4
  189. data/lib/akeyless/models/rotated_secret_update_hanadb.rb +0 -4
  190. data/lib/akeyless/models/rotated_secret_update_hashi_vault.rb +463 -0
  191. data/lib/akeyless/models/rotated_secret_update_ldap.rb +0 -4
  192. data/lib/akeyless/models/rotated_secret_update_mongodb.rb +0 -4
  193. data/lib/akeyless/models/rotated_secret_update_mssql.rb +0 -4
  194. data/lib/akeyless/models/rotated_secret_update_mysql.rb +0 -4
  195. data/lib/akeyless/models/rotated_secret_update_open_ai.rb +0 -4
  196. data/lib/akeyless/models/rotated_secret_update_oracledb.rb +0 -4
  197. data/lib/akeyless/models/rotated_secret_update_postgresql.rb +0 -4
  198. data/lib/akeyless/models/rotated_secret_update_redis.rb +0 -4
  199. data/lib/akeyless/models/rotated_secret_update_redshift.rb +0 -4
  200. data/lib/akeyless/models/rotated_secret_update_snowflake.rb +0 -4
  201. data/lib/akeyless/models/rotated_secret_update_splunk.rb +0 -4
  202. data/lib/akeyless/models/rotated_secret_update_ssh.rb +0 -4
  203. data/lib/akeyless/models/rotated_secret_update_windows.rb +0 -4
  204. data/lib/akeyless/models/runtime_authority_command.rb +21 -1
  205. data/lib/akeyless/models/saml_access_rules.rb +14 -4
  206. data/lib/akeyless/models/secret_info.rb +24 -4
  207. data/lib/akeyless/models/static_secret_details_info.rb +10 -1
  208. data/lib/akeyless/models/static_secret_sync.rb +1 -1
  209. data/lib/akeyless/models/target_create_anthropic.rb +317 -0
  210. data/lib/akeyless/models/target_create_bedrock.rb +317 -0
  211. data/lib/akeyless/models/target_create_custom_dns.rb +330 -0
  212. data/lib/akeyless/models/target_create_db.rb +11 -1
  213. data/lib/akeyless/models/target_create_grok.rb +327 -0
  214. data/lib/akeyless/models/target_create_keycloak.rb +334 -0
  215. data/lib/akeyless/models/target_create_okta.rb +314 -0
  216. data/lib/akeyless/models/target_type_details_input.rb +55 -1
  217. data/lib/akeyless/models/target_update_anthropic.rb +351 -0
  218. data/lib/akeyless/models/target_update_bedrock.rb +351 -0
  219. data/lib/akeyless/models/target_update_custom_dns.rb +350 -0
  220. data/lib/akeyless/models/target_update_db.rb +11 -1
  221. data/lib/akeyless/models/target_update_grok.rb +361 -0
  222. data/lib/akeyless/models/target_update_keycloak.rb +354 -0
  223. data/lib/akeyless/models/target_update_okta.rb +334 -0
  224. data/lib/akeyless/models/uid_expiration_event.rb +214 -0
  225. data/lib/akeyless/models/update_auth_method_saml.rb +14 -4
  226. data/lib/akeyless/models/update_auth_method_universal_identity.rb +13 -1
  227. data/lib/akeyless/models/update_db_target.rb +11 -1
  228. data/lib/akeyless/models/update_mcp_secret_bearer_token.rb +338 -0
  229. data/lib/akeyless/models/update_mcp_secret_o_auth_auth_code.rb +390 -0
  230. data/lib/akeyless/models/update_mcp_secret_o_auth_client_creds.rb +370 -0
  231. data/lib/akeyless/models/update_pki_cert_issuer.rb +1 -1
  232. data/lib/akeyless/models/usc_get_secret_output.rb +53 -4
  233. data/lib/akeyless/version.rb +1 -1
  234. data/lib/akeyless.rb +39 -0
  235. data/spec/models/anthropic_target_details_spec.rb +42 -0
  236. data/spec/models/bedrock_target_details_spec.rb +42 -0
  237. data/spec/models/create_mcp_secret_bearer_token_spec.rb +120 -0
  238. data/spec/models/create_mcp_secret_o_auth_auth_code_spec.rb +150 -0
  239. data/spec/models/create_mcp_secret_o_auth_client_creds_spec.rb +138 -0
  240. data/spec/models/custom_dns_target_details_spec.rb +42 -0
  241. data/spec/models/email_customization_account_information_spec.rb +54 -0
  242. data/spec/models/email_customization_account_information_values_spec.rb +54 -0
  243. data/spec/models/email_customization_spec.rb +66 -0
  244. data/spec/models/file_download_instructions_spec.rb +42 -0
  245. data/spec/models/file_info_spec.rb +132 -0
  246. data/spec/models/folder_delete_sync_output_spec.rb +54 -0
  247. data/spec/models/folder_delete_sync_spec.rb +78 -0
  248. data/spec/models/folder_sync_all_output_spec.rb +36 -0
  249. data/spec/models/folder_sync_all_spec.rb +60 -0
  250. data/spec/models/folder_sync_output_spec.rb +54 -0
  251. data/spec/models/folder_sync_spec.rb +84 -0
  252. data/spec/models/grok_target_details_spec.rb +48 -0
  253. data/spec/models/keycloak_target_details_spec.rb +54 -0
  254. data/spec/models/okta_target_details_spec.rb +42 -0
  255. data/spec/models/personal_folder_global_mapping_settings_spec.rb +42 -0
  256. data/spec/models/rotated_secret_create_hashi_vault_spec.rb +162 -0
  257. data/spec/models/rotated_secret_update_hashi_vault_spec.rb +174 -0
  258. data/spec/models/target_create_anthropic_spec.rb +90 -0
  259. data/spec/models/target_create_bedrock_spec.rb +90 -0
  260. data/spec/models/target_create_custom_dns_spec.rb +90 -0
  261. data/spec/models/target_create_grok_spec.rb +96 -0
  262. data/spec/models/target_create_keycloak_spec.rb +102 -0
  263. data/spec/models/target_create_okta_spec.rb +90 -0
  264. data/spec/models/target_update_anthropic_spec.rb +108 -0
  265. data/spec/models/target_update_bedrock_spec.rb +108 -0
  266. data/spec/models/target_update_custom_dns_spec.rb +102 -0
  267. data/spec/models/target_update_grok_spec.rb +114 -0
  268. data/spec/models/target_update_keycloak_spec.rb +114 -0
  269. data/spec/models/target_update_okta_spec.rb +102 -0
  270. data/spec/models/uid_expiration_event_spec.rb +36 -0
  271. data/spec/models/update_mcp_secret_bearer_token_spec.rb +102 -0
  272. data/spec/models/update_mcp_secret_o_auth_auth_code_spec.rb +132 -0
  273. data/spec/models/update_mcp_secret_o_auth_client_creds_spec.rb +120 -0
  274. metadata +1331 -1175
@@ -520,6 +520,9 @@ module Akeyless
520
520
 
521
521
  attr_accessor :signing_algorithm
522
522
 
523
+ # (Optional) SkipServerNameValidation disables server name verification while still validating the certificate chain. Postgres treats empty as legacy \"skip hostname validation\"; MySQL treats empty as false.
524
+ attr_accessor :skip_server_name_validation
525
+
523
526
  # (Optional) SSLConnectionCertificate defines the certificate for SSL connection. Must be base64 certificate loaded by UI using file loader field
524
527
  attr_accessor :ssl_connection_certificate
525
528
 
@@ -830,6 +833,7 @@ module Akeyless
830
833
  :'sf_warehouse_name' => :'sf_warehouse_name',
831
834
  :'should_stop' => :'should_stop',
832
835
  :'signing_algorithm' => :'signing_algorithm',
836
+ :'skip_server_name_validation' => :'skip_server_name_validation',
833
837
  :'ssl_connection_certificate' => :'ssl_connection_certificate',
834
838
  :'ssl_connection_mode' => :'ssl_connection_mode',
835
839
  :'subject_dn' => :'subject_dn',
@@ -1113,6 +1117,7 @@ module Akeyless
1113
1117
  :'sf_warehouse_name' => :'String',
1114
1118
  :'should_stop' => :'String',
1115
1119
  :'signing_algorithm' => :'String',
1120
+ :'skip_server_name_validation' => :'String',
1116
1121
  :'ssl_connection_certificate' => :'String',
1117
1122
  :'ssl_connection_mode' => :'Boolean',
1118
1123
  :'subject_dn' => :'String',
@@ -2158,6 +2163,10 @@ module Akeyless
2158
2163
  self.signing_algorithm = attributes[:'signing_algorithm']
2159
2164
  end
2160
2165
 
2166
+ if attributes.key?(:'skip_server_name_validation')
2167
+ self.skip_server_name_validation = attributes[:'skip_server_name_validation']
2168
+ end
2169
+
2161
2170
  if attributes.key?(:'ssl_connection_certificate')
2162
2171
  self.ssl_connection_certificate = attributes[:'ssl_connection_certificate']
2163
2172
  end
@@ -2548,6 +2557,7 @@ module Akeyless
2548
2557
  sf_warehouse_name == o.sf_warehouse_name &&
2549
2558
  should_stop == o.should_stop &&
2550
2559
  signing_algorithm == o.signing_algorithm &&
2560
+ skip_server_name_validation == o.skip_server_name_validation &&
2551
2561
  ssl_connection_certificate == o.ssl_connection_certificate &&
2552
2562
  ssl_connection_mode == o.ssl_connection_mode &&
2553
2563
  subject_dn == o.subject_dn &&
@@ -2590,7 +2600,7 @@ module Akeyless
2590
2600
  # Calculates hash code according to all attributes.
2591
2601
  # @return [Integer] Hash code
2592
2602
  def hash
2593
- [access_token_manager_id, acl_rules, active, admin_name, admin_pwd, admin_rotation_interval_days, administrative_port, agentic_rules, api_key, api_key_id, artifactory_admin_apikey, artifactory_admin_username, artifactory_base_url, artifactory_token_audience, artifactory_token_scope, authorization_port, aws_access_key_id, aws_access_mode, aws_external_id, aws_region, aws_role_arns, aws_secret_access_key, aws_session_tags, aws_session_token, aws_transitive_tag_keys, aws_user_console_access, aws_user_groups, aws_user_policies, aws_user_programmatic_access, azure_administrative_unit, azure_app_object_id, azure_client_id, azure_client_secret, azure_cloud, azure_fixed_user_name_sub_claim_key, azure_fixed_user_only, azure_resource_group_name, azure_resource_name, azure_subscription_id, azure_tenant_id, azure_user_groups_obj_id, azure_user_portal_access, azure_user_programmatic_access, azure_user_roles_template_id, azure_username, cassandra_creation_statements, chef_organizations, chef_server_access_mode, chef_server_host_name, chef_server_key, chef_server_port, chef_server_url, chef_server_username, chef_skip_ssl, client_authentication_type, client_certificate, client_key_passphrase, client_private_key, cloud_service_provider, cluster_mode, connection_type, create_sync_url, db_client_id, db_client_secret, db_host_name, db_isolation_level, db_max_idle_conns, db_max_open_conns, db_name, db_port, db_private_key, db_private_key_passphrase, db_pwd, db_server_certificates, db_server_name, db_tenant_id, db_user_name, delete_protection, dynamic_secret_id, dynamic_secret_key, dynamic_secret_name, dynamic_secret_type, eks_access_key_id, eks_assume_role, eks_cluster_ca_certificate, eks_cluster_endpoint, eks_cluster_name, eks_region, eks_secret_access_key, enable_admin_rotation, enable_mtls, enforce_replay_prevention, expiration_date, externally_provided_user, failure_message, fixed_user_only, gcp_access_type, gcp_fixed_user_claim_keyname, gcp_key_algo, gcp_project_id, gcp_role_bindings, gcp_role_names, gcp_service_account_email, gcp_service_account_key, gcp_service_account_key_base64, gcp_service_account_key_id, gcp_service_account_type, gcp_tmp_service_account_name, gcp_token_lifetime, gcp_token_scope, gcp_token_type, github_app_id, github_app_private_key, github_base_url, github_installation_id, github_installation_token_permissions, github_installation_token_repositories, github_installation_token_repositories_ids, github_organization_name, github_repository_path, gitlab_access_token, gitlab_access_type, gitlab_certificate, gitlab_group_name, gitlab_project_name, gitlab_role, gitlab_token_scope, gitlab_url, gke_cluster_ca_certificate, gke_cluster_endpoint, gke_cluster_name, gke_service_account_key, gke_service_account_name, google_workspace_access_mode, google_workspace_admin_name, google_workspace_fixed_user_name_sub_claim_key, google_workspace_group_name, google_workspace_group_role, google_workspace_role_name, google_workspace_role_scope, grace_rotated_secret_key, grant_types, groups, gw_cloud_identity_external_id_opt, hanadb_creation_statements, hanadb_revocation_statements, host_name, host_port, implementation_type, is_fixed_user, issuer, item_custom_fields_details, item_targets_assoc, jwks, jwks_url, k8s_allowed_namespaces, k8s_auth_type, k8s_bearer_token, k8s_client_cert_data, k8s_client_key_data, k8s_cluster_ca_certificate, k8s_cluster_endpoint, k8s_cluster_name, k8s_dynamic_mode, k8s_multiple_doc_yaml_temp_definition, k8s_namespace, k8s_role_name, k8s_role_type, k8s_service_account, last_admin_rotation, ldap_audience, ldap_bind_dn, ldap_bind_password, ldap_certificate, ldap_fixed_user_name_sub_claim_key, ldap_fixed_user_type, ldap_group_dn, ldap_token_expiration, ldap_url, ldap_user_attr, ldap_user_dn, metadata, mongodb_atlas_api_private_key, mongodb_atlas_api_public_key, mongodb_atlas_project_id, mongodb_custom_data, mongodb_db_name, mongodb_default_auth_db, mongodb_host_port, mongodb_is_atlas, mongodb_password, mongodb_roles, mongodb_scopes, mongodb_uri_connection, mongodb_uri_options, mongodb_username, mssql_allowed_db_names, mssql_creation_statements, mssql_revocation_statements, mysql_creation_statements, mysql_revocation_statements, openai_url, oracle_creation_statements, oracle_revocation_statements, oracle_wallet_details, organization_id, password, password_length, password_policy, password_policy_info, payload, ping_url, postgres_creation_statements, postgres_revocation_statements, preserve_existing_password_settings, privileged_user, project_id, rabbitmq_server_password, rabbitmq_server_uri, rabbitmq_server_user, rabbitmq_user_conf_permission, rabbitmq_user_read_permission, rabbitmq_user_tags, rabbitmq_user_vhost, rabbitmq_user_write_permission, rdp_fixed_user_name_sub_claim_key, redirect_uris, redshift_creation_statements, restricted_scopes, revoke_sync_url, rotate_sync_url, scopes, secure_remote_access_details, session_extension_warn_interval_min, sf_account, sf_auth_mode, sf_key_algo, sf_user_role, sf_warehouse_name, should_stop, signing_algorithm, ssl_connection_certificate, ssl_connection_mode, subject_dn, tags, timeout_seconds, use_gw_cloud_identity, use_gw_service_account, user_name, user_password, user_principal_name, user_ttl, username_length, username_policy, username_template, venafi_allow_subdomains, venafi_allowed_domains, venafi_api_key, venafi_auto_generated_folder, venafi_base_url, venafi_root_first_in_chain, venafi_sign_using_akeyless_pki, venafi_signer_key_name, venafi_store_private_key, venafi_tpp_access_token, venafi_tpp_client_id, venafi_tpp_password, venafi_tpp_refresh_token, venafi_tpp_username, venafi_use_tpp, venafi_zone, warn_before_user_expiration_min].hash
2603
+ [access_token_manager_id, acl_rules, active, admin_name, admin_pwd, admin_rotation_interval_days, administrative_port, agentic_rules, api_key, api_key_id, artifactory_admin_apikey, artifactory_admin_username, artifactory_base_url, artifactory_token_audience, artifactory_token_scope, authorization_port, aws_access_key_id, aws_access_mode, aws_external_id, aws_region, aws_role_arns, aws_secret_access_key, aws_session_tags, aws_session_token, aws_transitive_tag_keys, aws_user_console_access, aws_user_groups, aws_user_policies, aws_user_programmatic_access, azure_administrative_unit, azure_app_object_id, azure_client_id, azure_client_secret, azure_cloud, azure_fixed_user_name_sub_claim_key, azure_fixed_user_only, azure_resource_group_name, azure_resource_name, azure_subscription_id, azure_tenant_id, azure_user_groups_obj_id, azure_user_portal_access, azure_user_programmatic_access, azure_user_roles_template_id, azure_username, cassandra_creation_statements, chef_organizations, chef_server_access_mode, chef_server_host_name, chef_server_key, chef_server_port, chef_server_url, chef_server_username, chef_skip_ssl, client_authentication_type, client_certificate, client_key_passphrase, client_private_key, cloud_service_provider, cluster_mode, connection_type, create_sync_url, db_client_id, db_client_secret, db_host_name, db_isolation_level, db_max_idle_conns, db_max_open_conns, db_name, db_port, db_private_key, db_private_key_passphrase, db_pwd, db_server_certificates, db_server_name, db_tenant_id, db_user_name, delete_protection, dynamic_secret_id, dynamic_secret_key, dynamic_secret_name, dynamic_secret_type, eks_access_key_id, eks_assume_role, eks_cluster_ca_certificate, eks_cluster_endpoint, eks_cluster_name, eks_region, eks_secret_access_key, enable_admin_rotation, enable_mtls, enforce_replay_prevention, expiration_date, externally_provided_user, failure_message, fixed_user_only, gcp_access_type, gcp_fixed_user_claim_keyname, gcp_key_algo, gcp_project_id, gcp_role_bindings, gcp_role_names, gcp_service_account_email, gcp_service_account_key, gcp_service_account_key_base64, gcp_service_account_key_id, gcp_service_account_type, gcp_tmp_service_account_name, gcp_token_lifetime, gcp_token_scope, gcp_token_type, github_app_id, github_app_private_key, github_base_url, github_installation_id, github_installation_token_permissions, github_installation_token_repositories, github_installation_token_repositories_ids, github_organization_name, github_repository_path, gitlab_access_token, gitlab_access_type, gitlab_certificate, gitlab_group_name, gitlab_project_name, gitlab_role, gitlab_token_scope, gitlab_url, gke_cluster_ca_certificate, gke_cluster_endpoint, gke_cluster_name, gke_service_account_key, gke_service_account_name, google_workspace_access_mode, google_workspace_admin_name, google_workspace_fixed_user_name_sub_claim_key, google_workspace_group_name, google_workspace_group_role, google_workspace_role_name, google_workspace_role_scope, grace_rotated_secret_key, grant_types, groups, gw_cloud_identity_external_id_opt, hanadb_creation_statements, hanadb_revocation_statements, host_name, host_port, implementation_type, is_fixed_user, issuer, item_custom_fields_details, item_targets_assoc, jwks, jwks_url, k8s_allowed_namespaces, k8s_auth_type, k8s_bearer_token, k8s_client_cert_data, k8s_client_key_data, k8s_cluster_ca_certificate, k8s_cluster_endpoint, k8s_cluster_name, k8s_dynamic_mode, k8s_multiple_doc_yaml_temp_definition, k8s_namespace, k8s_role_name, k8s_role_type, k8s_service_account, last_admin_rotation, ldap_audience, ldap_bind_dn, ldap_bind_password, ldap_certificate, ldap_fixed_user_name_sub_claim_key, ldap_fixed_user_type, ldap_group_dn, ldap_token_expiration, ldap_url, ldap_user_attr, ldap_user_dn, metadata, mongodb_atlas_api_private_key, mongodb_atlas_api_public_key, mongodb_atlas_project_id, mongodb_custom_data, mongodb_db_name, mongodb_default_auth_db, mongodb_host_port, mongodb_is_atlas, mongodb_password, mongodb_roles, mongodb_scopes, mongodb_uri_connection, mongodb_uri_options, mongodb_username, mssql_allowed_db_names, mssql_creation_statements, mssql_revocation_statements, mysql_creation_statements, mysql_revocation_statements, openai_url, oracle_creation_statements, oracle_revocation_statements, oracle_wallet_details, organization_id, password, password_length, password_policy, password_policy_info, payload, ping_url, postgres_creation_statements, postgres_revocation_statements, preserve_existing_password_settings, privileged_user, project_id, rabbitmq_server_password, rabbitmq_server_uri, rabbitmq_server_user, rabbitmq_user_conf_permission, rabbitmq_user_read_permission, rabbitmq_user_tags, rabbitmq_user_vhost, rabbitmq_user_write_permission, rdp_fixed_user_name_sub_claim_key, redirect_uris, redshift_creation_statements, restricted_scopes, revoke_sync_url, rotate_sync_url, scopes, secure_remote_access_details, session_extension_warn_interval_min, sf_account, sf_auth_mode, sf_key_algo, sf_user_role, sf_warehouse_name, should_stop, signing_algorithm, skip_server_name_validation, ssl_connection_certificate, ssl_connection_mode, subject_dn, tags, timeout_seconds, use_gw_cloud_identity, use_gw_service_account, user_name, user_password, user_principal_name, user_ttl, username_length, username_policy, username_template, venafi_allow_subdomains, venafi_allowed_domains, venafi_api_key, venafi_auto_generated_folder, venafi_base_url, venafi_root_first_in_chain, venafi_sign_using_akeyless_pki, venafi_signer_key_name, venafi_store_private_key, venafi_tpp_access_token, venafi_tpp_client_id, venafi_tpp_password, venafi_tpp_refresh_token, venafi_tpp_username, venafi_use_tpp, venafi_zone, warn_before_user_expiration_min].hash
2594
2604
  end
2595
2605
 
2596
2606
  # Builds the object from hash
@@ -0,0 +1,259 @@
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: 3.0
7
+ Contact: support@akeyless.io
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.10.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Akeyless
17
+ class EmailCustomization
18
+ attr_accessor :account_information_fields
19
+
20
+ attr_accessor :account_information_values
21
+
22
+ attr_accessor :footer_html
23
+
24
+ attr_accessor :sender_name
25
+
26
+ attr_accessor :show_background_image
27
+
28
+ attr_accessor :subject
29
+
30
+ # Attribute mapping from ruby-style variable name to JSON key.
31
+ def self.attribute_map
32
+ {
33
+ :'account_information_fields' => :'account_information_fields',
34
+ :'account_information_values' => :'account_information_values',
35
+ :'footer_html' => :'footer_html',
36
+ :'sender_name' => :'sender_name',
37
+ :'show_background_image' => :'show_background_image',
38
+ :'subject' => :'subject'
39
+ }
40
+ end
41
+
42
+ # Returns all the JSON keys this model knows about
43
+ def self.acceptable_attributes
44
+ attribute_map.values
45
+ end
46
+
47
+ # Attribute type mapping.
48
+ def self.openapi_types
49
+ {
50
+ :'account_information_fields' => :'EmailCustomizationAccountInformation',
51
+ :'account_information_values' => :'EmailCustomizationAccountInformationValues',
52
+ :'footer_html' => :'String',
53
+ :'sender_name' => :'String',
54
+ :'show_background_image' => :'Boolean',
55
+ :'subject' => :'String'
56
+ }
57
+ end
58
+
59
+ # List of attributes with nullable: true
60
+ def self.openapi_nullable
61
+ Set.new([
62
+ ])
63
+ end
64
+
65
+ # Initializes the object
66
+ # @param [Hash] attributes Model attributes in the form of hash
67
+ def initialize(attributes = {})
68
+ if (!attributes.is_a?(Hash))
69
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Akeyless::EmailCustomization` initialize method"
70
+ end
71
+
72
+ # check to see if the attribute exists and convert string to symbol for hash key
73
+ attributes = attributes.each_with_object({}) { |(k, v), h|
74
+ if (!self.class.attribute_map.key?(k.to_sym))
75
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Akeyless::EmailCustomization`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
76
+ end
77
+ h[k.to_sym] = v
78
+ }
79
+
80
+ if attributes.key?(:'account_information_fields')
81
+ self.account_information_fields = attributes[:'account_information_fields']
82
+ end
83
+
84
+ if attributes.key?(:'account_information_values')
85
+ self.account_information_values = attributes[:'account_information_values']
86
+ end
87
+
88
+ if attributes.key?(:'footer_html')
89
+ self.footer_html = attributes[:'footer_html']
90
+ end
91
+
92
+ if attributes.key?(:'sender_name')
93
+ self.sender_name = attributes[:'sender_name']
94
+ end
95
+
96
+ if attributes.key?(:'show_background_image')
97
+ self.show_background_image = attributes[:'show_background_image']
98
+ end
99
+
100
+ if attributes.key?(:'subject')
101
+ self.subject = attributes[:'subject']
102
+ end
103
+ end
104
+
105
+ # Show invalid properties with the reasons. Usually used together with valid?
106
+ # @return Array for valid properties with the reasons
107
+ def list_invalid_properties
108
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
109
+ invalid_properties = Array.new
110
+ invalid_properties
111
+ end
112
+
113
+ # Check to see if the all the properties in the model are valid
114
+ # @return true if the model is valid
115
+ def valid?
116
+ warn '[DEPRECATED] the `valid?` method is obsolete'
117
+ true
118
+ end
119
+
120
+ # Checks equality by comparing each attribute.
121
+ # @param [Object] Object to be compared
122
+ def ==(o)
123
+ return true if self.equal?(o)
124
+ self.class == o.class &&
125
+ account_information_fields == o.account_information_fields &&
126
+ account_information_values == o.account_information_values &&
127
+ footer_html == o.footer_html &&
128
+ sender_name == o.sender_name &&
129
+ show_background_image == o.show_background_image &&
130
+ subject == o.subject
131
+ end
132
+
133
+ # @see the `==` method
134
+ # @param [Object] Object to be compared
135
+ def eql?(o)
136
+ self == o
137
+ end
138
+
139
+ # Calculates hash code according to all attributes.
140
+ # @return [Integer] Hash code
141
+ def hash
142
+ [account_information_fields, account_information_values, footer_html, sender_name, show_background_image, subject].hash
143
+ end
144
+
145
+ # Builds the object from hash
146
+ # @param [Hash] attributes Model attributes in the form of hash
147
+ # @return [Object] Returns the model itself
148
+ def self.build_from_hash(attributes)
149
+ return nil unless attributes.is_a?(Hash)
150
+ attributes = attributes.transform_keys(&:to_sym)
151
+ transformed_hash = {}
152
+ openapi_types.each_pair do |key, type|
153
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
154
+ transformed_hash["#{key}"] = nil
155
+ elsif type =~ /\AArray<(.*)>/i
156
+ # check to ensure the input is an array given that the attribute
157
+ # is documented as an array but the input is not
158
+ if attributes[attribute_map[key]].is_a?(Array)
159
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
160
+ end
161
+ elsif !attributes[attribute_map[key]].nil?
162
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
163
+ end
164
+ end
165
+ new(transformed_hash)
166
+ end
167
+
168
+ # Deserializes the data based on type
169
+ # @param string type Data type
170
+ # @param string value Value to be deserialized
171
+ # @return [Object] Deserialized data
172
+ def self._deserialize(type, value)
173
+ case type.to_sym
174
+ when :Time
175
+ Time.parse(value)
176
+ when :Date
177
+ Date.parse(value)
178
+ when :String
179
+ value.to_s
180
+ when :Integer
181
+ value.to_i
182
+ when :Float
183
+ value.to_f
184
+ when :Boolean
185
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
186
+ true
187
+ else
188
+ false
189
+ end
190
+ when :Object
191
+ # generic object (usually a Hash), return directly
192
+ value
193
+ when /\AArray<(?<inner_type>.+)>\z/
194
+ inner_type = Regexp.last_match[:inner_type]
195
+ value.map { |v| _deserialize(inner_type, v) }
196
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
197
+ k_type = Regexp.last_match[:k_type]
198
+ v_type = Regexp.last_match[:v_type]
199
+ {}.tap do |hash|
200
+ value.each do |k, v|
201
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
202
+ end
203
+ end
204
+ else # model
205
+ # models (e.g. Pet) or oneOf
206
+ klass = Akeyless.const_get(type)
207
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
208
+ end
209
+ end
210
+
211
+ # Returns the string representation of the object
212
+ # @return [String] String presentation of the object
213
+ def to_s
214
+ to_hash.to_s
215
+ end
216
+
217
+ # to_body is an alias to to_hash (backward compatibility)
218
+ # @return [Hash] Returns the object in the form of hash
219
+ def to_body
220
+ to_hash
221
+ end
222
+
223
+ # Returns the object in the form of hash
224
+ # @return [Hash] Returns the object in the form of hash
225
+ def to_hash
226
+ hash = {}
227
+ self.class.attribute_map.each_pair do |attr, param|
228
+ value = self.send(attr)
229
+ if value.nil?
230
+ is_nullable = self.class.openapi_nullable.include?(attr)
231
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
232
+ end
233
+
234
+ hash[param] = _to_hash(value)
235
+ end
236
+ hash
237
+ end
238
+
239
+ # Outputs non-array value in the form of hash
240
+ # For object, use to_hash. Otherwise, just return the value
241
+ # @param [Object] value Any valid value
242
+ # @return [Hash] Returns the value in the form of hash
243
+ def _to_hash(value)
244
+ if value.is_a?(Array)
245
+ value.compact.map { |v| _to_hash(v) }
246
+ elsif value.is_a?(Hash)
247
+ {}.tap do |hash|
248
+ value.each { |k, v| hash[k] = _to_hash(v) }
249
+ end
250
+ elsif value.respond_to? :to_hash
251
+ value.to_hash
252
+ else
253
+ value
254
+ end
255
+ end
256
+
257
+ end
258
+
259
+ end
@@ -0,0 +1,242 @@
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: 3.0
7
+ Contact: support@akeyless.io
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.10.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Akeyless
17
+ # EmailCustomizationAccountInformation stores the optional account info fields that can be rendered in customer-facing emails.
18
+ class EmailCustomizationAccountInformation
19
+ attr_accessor :account_id
20
+
21
+ attr_accessor :alias_name
22
+
23
+ attr_accessor :company_name
24
+
25
+ attr_accessor :tenant_name
26
+
27
+ # Attribute mapping from ruby-style variable name to JSON key.
28
+ def self.attribute_map
29
+ {
30
+ :'account_id' => :'account_id',
31
+ :'alias_name' => :'alias_name',
32
+ :'company_name' => :'company_name',
33
+ :'tenant_name' => :'tenant_name'
34
+ }
35
+ end
36
+
37
+ # Returns all the JSON keys this model knows about
38
+ def self.acceptable_attributes
39
+ attribute_map.values
40
+ end
41
+
42
+ # Attribute type mapping.
43
+ def self.openapi_types
44
+ {
45
+ :'account_id' => :'Boolean',
46
+ :'alias_name' => :'Boolean',
47
+ :'company_name' => :'Boolean',
48
+ :'tenant_name' => :'Boolean'
49
+ }
50
+ end
51
+
52
+ # List of attributes with nullable: true
53
+ def self.openapi_nullable
54
+ Set.new([
55
+ ])
56
+ end
57
+
58
+ # Initializes the object
59
+ # @param [Hash] attributes Model attributes in the form of hash
60
+ def initialize(attributes = {})
61
+ if (!attributes.is_a?(Hash))
62
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Akeyless::EmailCustomizationAccountInformation` initialize method"
63
+ end
64
+
65
+ # check to see if the attribute exists and convert string to symbol for hash key
66
+ attributes = attributes.each_with_object({}) { |(k, v), h|
67
+ if (!self.class.attribute_map.key?(k.to_sym))
68
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Akeyless::EmailCustomizationAccountInformation`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
69
+ end
70
+ h[k.to_sym] = v
71
+ }
72
+
73
+ if attributes.key?(:'account_id')
74
+ self.account_id = attributes[:'account_id']
75
+ end
76
+
77
+ if attributes.key?(:'alias_name')
78
+ self.alias_name = attributes[:'alias_name']
79
+ end
80
+
81
+ if attributes.key?(:'company_name')
82
+ self.company_name = attributes[:'company_name']
83
+ end
84
+
85
+ if attributes.key?(:'tenant_name')
86
+ self.tenant_name = attributes[:'tenant_name']
87
+ end
88
+ end
89
+
90
+ # Show invalid properties with the reasons. Usually used together with valid?
91
+ # @return Array for valid properties with the reasons
92
+ def list_invalid_properties
93
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
94
+ invalid_properties = Array.new
95
+ invalid_properties
96
+ end
97
+
98
+ # Check to see if the all the properties in the model are valid
99
+ # @return true if the model is valid
100
+ def valid?
101
+ warn '[DEPRECATED] the `valid?` method is obsolete'
102
+ true
103
+ end
104
+
105
+ # Checks equality by comparing each attribute.
106
+ # @param [Object] Object to be compared
107
+ def ==(o)
108
+ return true if self.equal?(o)
109
+ self.class == o.class &&
110
+ account_id == o.account_id &&
111
+ alias_name == o.alias_name &&
112
+ company_name == o.company_name &&
113
+ tenant_name == o.tenant_name
114
+ end
115
+
116
+ # @see the `==` method
117
+ # @param [Object] Object to be compared
118
+ def eql?(o)
119
+ self == o
120
+ end
121
+
122
+ # Calculates hash code according to all attributes.
123
+ # @return [Integer] Hash code
124
+ def hash
125
+ [account_id, alias_name, company_name, tenant_name].hash
126
+ end
127
+
128
+ # Builds the object from hash
129
+ # @param [Hash] attributes Model attributes in the form of hash
130
+ # @return [Object] Returns the model itself
131
+ def self.build_from_hash(attributes)
132
+ return nil unless attributes.is_a?(Hash)
133
+ attributes = attributes.transform_keys(&:to_sym)
134
+ transformed_hash = {}
135
+ openapi_types.each_pair do |key, type|
136
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
137
+ transformed_hash["#{key}"] = nil
138
+ elsif type =~ /\AArray<(.*)>/i
139
+ # check to ensure the input is an array given that the attribute
140
+ # is documented as an array but the input is not
141
+ if attributes[attribute_map[key]].is_a?(Array)
142
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
143
+ end
144
+ elsif !attributes[attribute_map[key]].nil?
145
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
146
+ end
147
+ end
148
+ new(transformed_hash)
149
+ end
150
+
151
+ # Deserializes the data based on type
152
+ # @param string type Data type
153
+ # @param string value Value to be deserialized
154
+ # @return [Object] Deserialized data
155
+ def self._deserialize(type, value)
156
+ case type.to_sym
157
+ when :Time
158
+ Time.parse(value)
159
+ when :Date
160
+ Date.parse(value)
161
+ when :String
162
+ value.to_s
163
+ when :Integer
164
+ value.to_i
165
+ when :Float
166
+ value.to_f
167
+ when :Boolean
168
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
169
+ true
170
+ else
171
+ false
172
+ end
173
+ when :Object
174
+ # generic object (usually a Hash), return directly
175
+ value
176
+ when /\AArray<(?<inner_type>.+)>\z/
177
+ inner_type = Regexp.last_match[:inner_type]
178
+ value.map { |v| _deserialize(inner_type, v) }
179
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
180
+ k_type = Regexp.last_match[:k_type]
181
+ v_type = Regexp.last_match[:v_type]
182
+ {}.tap do |hash|
183
+ value.each do |k, v|
184
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
185
+ end
186
+ end
187
+ else # model
188
+ # models (e.g. Pet) or oneOf
189
+ klass = Akeyless.const_get(type)
190
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
191
+ end
192
+ end
193
+
194
+ # Returns the string representation of the object
195
+ # @return [String] String presentation of the object
196
+ def to_s
197
+ to_hash.to_s
198
+ end
199
+
200
+ # to_body is an alias to to_hash (backward compatibility)
201
+ # @return [Hash] Returns the object in the form of hash
202
+ def to_body
203
+ to_hash
204
+ end
205
+
206
+ # Returns the object in the form of hash
207
+ # @return [Hash] Returns the object in the form of hash
208
+ def to_hash
209
+ hash = {}
210
+ self.class.attribute_map.each_pair do |attr, param|
211
+ value = self.send(attr)
212
+ if value.nil?
213
+ is_nullable = self.class.openapi_nullable.include?(attr)
214
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
215
+ end
216
+
217
+ hash[param] = _to_hash(value)
218
+ end
219
+ hash
220
+ end
221
+
222
+ # Outputs non-array value in the form of hash
223
+ # For object, use to_hash. Otherwise, just return the value
224
+ # @param [Object] value Any valid value
225
+ # @return [Hash] Returns the value in the form of hash
226
+ def _to_hash(value)
227
+ if value.is_a?(Array)
228
+ value.compact.map { |v| _to_hash(v) }
229
+ elsif value.is_a?(Hash)
230
+ {}.tap do |hash|
231
+ value.each { |k, v| hash[k] = _to_hash(v) }
232
+ end
233
+ elsif value.respond_to? :to_hash
234
+ value.to_hash
235
+ else
236
+ value
237
+ end
238
+ end
239
+
240
+ end
241
+
242
+ end