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
@@ -0,0 +1,330 @@
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 TargetCreateCustomDns
18
+ # Protection from accidental deletion of this object [true/false]
19
+ attr_accessor :delete_protection
20
+
21
+ # Description of the object
22
+ attr_accessor :description
23
+
24
+ # Lego DNS provider parameters as KEY=VALUE pairs using lego environment variable names
25
+ attr_accessor :dns_parameter
26
+
27
+ # Set output format to JSON
28
+ attr_accessor :json
29
+
30
+ # The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used)
31
+ attr_accessor :key
32
+
33
+ # Set the maximum number of versions, limited by the account settings defaults.
34
+ attr_accessor :max_versions
35
+
36
+ # Target name
37
+ attr_accessor :name
38
+
39
+ # Lego DNS provider code (e.g. infoblox, route53, azion). See https://go-acme.github.io/lego/dns/
40
+ attr_accessor :provider_type
41
+
42
+ # Authentication token (see `/auth` and `/configure`)
43
+ attr_accessor :token
44
+
45
+ # The universal identity token, Required only for universal_identity authentication
46
+ attr_accessor :uid_token
47
+
48
+ # Attribute mapping from ruby-style variable name to JSON key.
49
+ def self.attribute_map
50
+ {
51
+ :'delete_protection' => :'delete_protection',
52
+ :'description' => :'description',
53
+ :'dns_parameter' => :'dns-parameter',
54
+ :'json' => :'json',
55
+ :'key' => :'key',
56
+ :'max_versions' => :'max-versions',
57
+ :'name' => :'name',
58
+ :'provider_type' => :'provider-type',
59
+ :'token' => :'token',
60
+ :'uid_token' => :'uid-token'
61
+ }
62
+ end
63
+
64
+ # Returns all the JSON keys this model knows about
65
+ def self.acceptable_attributes
66
+ attribute_map.values
67
+ end
68
+
69
+ # Attribute type mapping.
70
+ def self.openapi_types
71
+ {
72
+ :'delete_protection' => :'String',
73
+ :'description' => :'String',
74
+ :'dns_parameter' => :'Hash<String, String>',
75
+ :'json' => :'Boolean',
76
+ :'key' => :'String',
77
+ :'max_versions' => :'String',
78
+ :'name' => :'String',
79
+ :'provider_type' => :'String',
80
+ :'token' => :'String',
81
+ :'uid_token' => :'String'
82
+ }
83
+ end
84
+
85
+ # List of attributes with nullable: true
86
+ def self.openapi_nullable
87
+ Set.new([
88
+ ])
89
+ end
90
+
91
+ # Initializes the object
92
+ # @param [Hash] attributes Model attributes in the form of hash
93
+ def initialize(attributes = {})
94
+ if (!attributes.is_a?(Hash))
95
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Akeyless::TargetCreateCustomDns` initialize method"
96
+ end
97
+
98
+ # check to see if the attribute exists and convert string to symbol for hash key
99
+ attributes = attributes.each_with_object({}) { |(k, v), h|
100
+ if (!self.class.attribute_map.key?(k.to_sym))
101
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Akeyless::TargetCreateCustomDns`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
102
+ end
103
+ h[k.to_sym] = v
104
+ }
105
+
106
+ if attributes.key?(:'delete_protection')
107
+ self.delete_protection = attributes[:'delete_protection']
108
+ end
109
+
110
+ if attributes.key?(:'description')
111
+ self.description = attributes[:'description']
112
+ end
113
+
114
+ if attributes.key?(:'dns_parameter')
115
+ if (value = attributes[:'dns_parameter']).is_a?(Hash)
116
+ self.dns_parameter = value
117
+ end
118
+ else
119
+ self.dns_parameter = nil
120
+ end
121
+
122
+ if attributes.key?(:'json')
123
+ self.json = attributes[:'json']
124
+ else
125
+ self.json = false
126
+ end
127
+
128
+ if attributes.key?(:'key')
129
+ self.key = attributes[:'key']
130
+ end
131
+
132
+ if attributes.key?(:'max_versions')
133
+ self.max_versions = attributes[:'max_versions']
134
+ end
135
+
136
+ if attributes.key?(:'name')
137
+ self.name = attributes[:'name']
138
+ else
139
+ self.name = nil
140
+ end
141
+
142
+ if attributes.key?(:'provider_type')
143
+ self.provider_type = attributes[:'provider_type']
144
+ else
145
+ self.provider_type = nil
146
+ end
147
+
148
+ if attributes.key?(:'token')
149
+ self.token = attributes[:'token']
150
+ end
151
+
152
+ if attributes.key?(:'uid_token')
153
+ self.uid_token = attributes[:'uid_token']
154
+ end
155
+ end
156
+
157
+ # Show invalid properties with the reasons. Usually used together with valid?
158
+ # @return Array for valid properties with the reasons
159
+ def list_invalid_properties
160
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
161
+ invalid_properties = Array.new
162
+ if @dns_parameter.nil?
163
+ invalid_properties.push('invalid value for "dns_parameter", dns_parameter cannot be nil.')
164
+ end
165
+
166
+ if @name.nil?
167
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
168
+ end
169
+
170
+ if @provider_type.nil?
171
+ invalid_properties.push('invalid value for "provider_type", provider_type cannot be nil.')
172
+ end
173
+
174
+ invalid_properties
175
+ end
176
+
177
+ # Check to see if the all the properties in the model are valid
178
+ # @return true if the model is valid
179
+ def valid?
180
+ warn '[DEPRECATED] the `valid?` method is obsolete'
181
+ return false if @dns_parameter.nil?
182
+ return false if @name.nil?
183
+ return false if @provider_type.nil?
184
+ true
185
+ end
186
+
187
+ # Checks equality by comparing each attribute.
188
+ # @param [Object] Object to be compared
189
+ def ==(o)
190
+ return true if self.equal?(o)
191
+ self.class == o.class &&
192
+ delete_protection == o.delete_protection &&
193
+ description == o.description &&
194
+ dns_parameter == o.dns_parameter &&
195
+ json == o.json &&
196
+ key == o.key &&
197
+ max_versions == o.max_versions &&
198
+ name == o.name &&
199
+ provider_type == o.provider_type &&
200
+ token == o.token &&
201
+ uid_token == o.uid_token
202
+ end
203
+
204
+ # @see the `==` method
205
+ # @param [Object] Object to be compared
206
+ def eql?(o)
207
+ self == o
208
+ end
209
+
210
+ # Calculates hash code according to all attributes.
211
+ # @return [Integer] Hash code
212
+ def hash
213
+ [delete_protection, description, dns_parameter, json, key, max_versions, name, provider_type, token, uid_token].hash
214
+ end
215
+
216
+ # Builds the object from hash
217
+ # @param [Hash] attributes Model attributes in the form of hash
218
+ # @return [Object] Returns the model itself
219
+ def self.build_from_hash(attributes)
220
+ return nil unless attributes.is_a?(Hash)
221
+ attributes = attributes.transform_keys(&:to_sym)
222
+ transformed_hash = {}
223
+ openapi_types.each_pair do |key, type|
224
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
225
+ transformed_hash["#{key}"] = nil
226
+ elsif type =~ /\AArray<(.*)>/i
227
+ # check to ensure the input is an array given that the attribute
228
+ # is documented as an array but the input is not
229
+ if attributes[attribute_map[key]].is_a?(Array)
230
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
231
+ end
232
+ elsif !attributes[attribute_map[key]].nil?
233
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
234
+ end
235
+ end
236
+ new(transformed_hash)
237
+ end
238
+
239
+ # Deserializes the data based on type
240
+ # @param string type Data type
241
+ # @param string value Value to be deserialized
242
+ # @return [Object] Deserialized data
243
+ def self._deserialize(type, value)
244
+ case type.to_sym
245
+ when :Time
246
+ Time.parse(value)
247
+ when :Date
248
+ Date.parse(value)
249
+ when :String
250
+ value.to_s
251
+ when :Integer
252
+ value.to_i
253
+ when :Float
254
+ value.to_f
255
+ when :Boolean
256
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
257
+ true
258
+ else
259
+ false
260
+ end
261
+ when :Object
262
+ # generic object (usually a Hash), return directly
263
+ value
264
+ when /\AArray<(?<inner_type>.+)>\z/
265
+ inner_type = Regexp.last_match[:inner_type]
266
+ value.map { |v| _deserialize(inner_type, v) }
267
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
268
+ k_type = Regexp.last_match[:k_type]
269
+ v_type = Regexp.last_match[:v_type]
270
+ {}.tap do |hash|
271
+ value.each do |k, v|
272
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
273
+ end
274
+ end
275
+ else # model
276
+ # models (e.g. Pet) or oneOf
277
+ klass = Akeyless.const_get(type)
278
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
279
+ end
280
+ end
281
+
282
+ # Returns the string representation of the object
283
+ # @return [String] String presentation of the object
284
+ def to_s
285
+ to_hash.to_s
286
+ end
287
+
288
+ # to_body is an alias to to_hash (backward compatibility)
289
+ # @return [Hash] Returns the object in the form of hash
290
+ def to_body
291
+ to_hash
292
+ end
293
+
294
+ # Returns the object in the form of hash
295
+ # @return [Hash] Returns the object in the form of hash
296
+ def to_hash
297
+ hash = {}
298
+ self.class.attribute_map.each_pair do |attr, param|
299
+ value = self.send(attr)
300
+ if value.nil?
301
+ is_nullable = self.class.openapi_nullable.include?(attr)
302
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
303
+ end
304
+
305
+ hash[param] = _to_hash(value)
306
+ end
307
+ hash
308
+ end
309
+
310
+ # Outputs non-array value in the form of hash
311
+ # For object, use to_hash. Otherwise, just return the value
312
+ # @param [Object] value Any valid value
313
+ # @return [Hash] Returns the value in the form of hash
314
+ def _to_hash(value)
315
+ if value.is_a?(Array)
316
+ value.compact.map { |v| _to_hash(v) }
317
+ elsif value.is_a?(Hash)
318
+ {}.tap do |hash|
319
+ value.each { |k, v| hash[k] = _to_hash(v) }
320
+ end
321
+ elsif value.respond_to? :to_hash
322
+ value.to_hash
323
+ else
324
+ value
325
+ end
326
+ end
327
+
328
+ end
329
+
330
+ end
@@ -114,6 +114,9 @@ module Akeyless
114
114
 
115
115
  attr_accessor :pwd
116
116
 
117
+ # (Optional) Skip server name verification
118
+ attr_accessor :skip_server_name_validation
119
+
117
120
  attr_accessor :snowflake_account
118
121
 
119
122
  # RSA Private key (base64 encoded)
@@ -174,6 +177,7 @@ module Akeyless
174
177
  :'parent_target_name' => :'parent-target-name',
175
178
  :'port' => :'port',
176
179
  :'pwd' => :'pwd',
180
+ :'skip_server_name_validation' => :'skip-server-name-validation',
177
181
  :'snowflake_account' => :'snowflake-account',
178
182
  :'snowflake_api_private_key' => :'snowflake-api-private-key',
179
183
  :'snowflake_api_private_key_password' => :'snowflake-api-private-key-password',
@@ -228,6 +232,7 @@ module Akeyless
228
232
  :'parent_target_name' => :'String',
229
233
  :'port' => :'String',
230
234
  :'pwd' => :'String',
235
+ :'skip_server_name_validation' => :'String',
231
236
  :'snowflake_account' => :'String',
232
237
  :'snowflake_api_private_key' => :'String',
233
238
  :'snowflake_api_private_key_password' => :'String',
@@ -408,6 +413,10 @@ module Akeyless
408
413
  self.pwd = attributes[:'pwd']
409
414
  end
410
415
 
416
+ if attributes.key?(:'skip_server_name_validation')
417
+ self.skip_server_name_validation = attributes[:'skip_server_name_validation']
418
+ end
419
+
411
420
  if attributes.key?(:'snowflake_account')
412
421
  self.snowflake_account = attributes[:'snowflake_account']
413
422
  end
@@ -513,6 +522,7 @@ module Akeyless
513
522
  parent_target_name == o.parent_target_name &&
514
523
  port == o.port &&
515
524
  pwd == o.pwd &&
525
+ skip_server_name_validation == o.skip_server_name_validation &&
516
526
  snowflake_account == o.snowflake_account &&
517
527
  snowflake_api_private_key == o.snowflake_api_private_key &&
518
528
  snowflake_api_private_key_password == o.snowflake_api_private_key_password &&
@@ -532,7 +542,7 @@ module Akeyless
532
542
  # Calculates hash code according to all attributes.
533
543
  # @return [Integer] Hash code
534
544
  def hash
535
- [azure_client_id, azure_client_secret, azure_tenant_id, client_certificate, client_key_passphrase, client_private_key, cloud_service_provider, cluster_mode, comment, connection_type, db_name, db_server_certificates, db_server_name, db_type, delete_protection, description, enable_mtls, host, json, key, max_versions, mongodb_atlas, mongodb_atlas_api_private_key, mongodb_atlas_api_public_key, mongodb_atlas_project_id, mongodb_default_auth_db, mongodb_uri_options, name, oracle_service_name, oracle_wallet_login_type, oracle_wallet_p12_file_data, oracle_wallet_sso_file_data, parent_target_name, port, pwd, snowflake_account, snowflake_api_private_key, snowflake_api_private_key_password, ssl, ssl_certificate, token, uid_token, user_name].hash
545
+ [azure_client_id, azure_client_secret, azure_tenant_id, client_certificate, client_key_passphrase, client_private_key, cloud_service_provider, cluster_mode, comment, connection_type, db_name, db_server_certificates, db_server_name, db_type, delete_protection, description, enable_mtls, host, json, key, max_versions, mongodb_atlas, mongodb_atlas_api_private_key, mongodb_atlas_api_public_key, mongodb_atlas_project_id, mongodb_default_auth_db, mongodb_uri_options, name, oracle_service_name, oracle_wallet_login_type, oracle_wallet_p12_file_data, oracle_wallet_sso_file_data, parent_target_name, port, pwd, skip_server_name_validation, snowflake_account, snowflake_api_private_key, snowflake_api_private_key_password, ssl, ssl_certificate, token, uid_token, user_name].hash
536
546
  end
537
547
 
538
548
  # Builds the object from hash
@@ -0,0 +1,327 @@
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
+ # targetCreateGrok is a command that creates a new grok (xAI) target
18
+ class TargetCreateGrok
19
+ # API key for xAI (Grok)
20
+ attr_accessor :api_key
21
+
22
+ # Protection from accidental deletion of this object [true/false]
23
+ attr_accessor :delete_protection
24
+
25
+ # Description of the object
26
+ attr_accessor :description
27
+
28
+ # Base URL of the xAI API
29
+ attr_accessor :grok_url
30
+
31
+ # Set output format to JSON
32
+ attr_accessor :json
33
+
34
+ # The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used)
35
+ attr_accessor :key
36
+
37
+ # Set the maximum number of versions, limited by the account settings defaults.
38
+ attr_accessor :max_versions
39
+
40
+ # Target name
41
+ attr_accessor :name
42
+
43
+ # ID of the team this API key belongs to
44
+ attr_accessor :team_id
45
+
46
+ # Authentication token (see `/auth` and `/configure`)
47
+ attr_accessor :token
48
+
49
+ # The universal identity token, Required only for universal_identity authentication
50
+ attr_accessor :uid_token
51
+
52
+ # Attribute mapping from ruby-style variable name to JSON key.
53
+ def self.attribute_map
54
+ {
55
+ :'api_key' => :'api-key',
56
+ :'delete_protection' => :'delete_protection',
57
+ :'description' => :'description',
58
+ :'grok_url' => :'grok-url',
59
+ :'json' => :'json',
60
+ :'key' => :'key',
61
+ :'max_versions' => :'max-versions',
62
+ :'name' => :'name',
63
+ :'team_id' => :'team-id',
64
+ :'token' => :'token',
65
+ :'uid_token' => :'uid-token'
66
+ }
67
+ end
68
+
69
+ # Returns all the JSON keys this model knows about
70
+ def self.acceptable_attributes
71
+ attribute_map.values
72
+ end
73
+
74
+ # Attribute type mapping.
75
+ def self.openapi_types
76
+ {
77
+ :'api_key' => :'String',
78
+ :'delete_protection' => :'String',
79
+ :'description' => :'String',
80
+ :'grok_url' => :'String',
81
+ :'json' => :'Boolean',
82
+ :'key' => :'String',
83
+ :'max_versions' => :'String',
84
+ :'name' => :'String',
85
+ :'team_id' => :'String',
86
+ :'token' => :'String',
87
+ :'uid_token' => :'String'
88
+ }
89
+ end
90
+
91
+ # List of attributes with nullable: true
92
+ def self.openapi_nullable
93
+ Set.new([
94
+ ])
95
+ end
96
+
97
+ # Initializes the object
98
+ # @param [Hash] attributes Model attributes in the form of hash
99
+ def initialize(attributes = {})
100
+ if (!attributes.is_a?(Hash))
101
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Akeyless::TargetCreateGrok` initialize method"
102
+ end
103
+
104
+ # check to see if the attribute exists and convert string to symbol for hash key
105
+ attributes = attributes.each_with_object({}) { |(k, v), h|
106
+ if (!self.class.attribute_map.key?(k.to_sym))
107
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Akeyless::TargetCreateGrok`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
108
+ end
109
+ h[k.to_sym] = v
110
+ }
111
+
112
+ if attributes.key?(:'api_key')
113
+ self.api_key = attributes[:'api_key']
114
+ end
115
+
116
+ if attributes.key?(:'delete_protection')
117
+ self.delete_protection = attributes[:'delete_protection']
118
+ end
119
+
120
+ if attributes.key?(:'description')
121
+ self.description = attributes[:'description']
122
+ end
123
+
124
+ if attributes.key?(:'grok_url')
125
+ self.grok_url = attributes[:'grok_url']
126
+ else
127
+ self.grok_url = 'https://api.x.ai/v1'
128
+ end
129
+
130
+ if attributes.key?(:'json')
131
+ self.json = attributes[:'json']
132
+ else
133
+ self.json = false
134
+ end
135
+
136
+ if attributes.key?(:'key')
137
+ self.key = attributes[:'key']
138
+ end
139
+
140
+ if attributes.key?(:'max_versions')
141
+ self.max_versions = attributes[:'max_versions']
142
+ end
143
+
144
+ if attributes.key?(:'name')
145
+ self.name = attributes[:'name']
146
+ else
147
+ self.name = nil
148
+ end
149
+
150
+ if attributes.key?(:'team_id')
151
+ self.team_id = attributes[:'team_id']
152
+ end
153
+
154
+ if attributes.key?(:'token')
155
+ self.token = attributes[:'token']
156
+ end
157
+
158
+ if attributes.key?(:'uid_token')
159
+ self.uid_token = attributes[:'uid_token']
160
+ end
161
+ end
162
+
163
+ # Show invalid properties with the reasons. Usually used together with valid?
164
+ # @return Array for valid properties with the reasons
165
+ def list_invalid_properties
166
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
167
+ invalid_properties = Array.new
168
+ if @name.nil?
169
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
170
+ end
171
+
172
+ invalid_properties
173
+ end
174
+
175
+ # Check to see if the all the properties in the model are valid
176
+ # @return true if the model is valid
177
+ def valid?
178
+ warn '[DEPRECATED] the `valid?` method is obsolete'
179
+ return false if @name.nil?
180
+ true
181
+ end
182
+
183
+ # Checks equality by comparing each attribute.
184
+ # @param [Object] Object to be compared
185
+ def ==(o)
186
+ return true if self.equal?(o)
187
+ self.class == o.class &&
188
+ api_key == o.api_key &&
189
+ delete_protection == o.delete_protection &&
190
+ description == o.description &&
191
+ grok_url == o.grok_url &&
192
+ json == o.json &&
193
+ key == o.key &&
194
+ max_versions == o.max_versions &&
195
+ name == o.name &&
196
+ team_id == o.team_id &&
197
+ token == o.token &&
198
+ uid_token == o.uid_token
199
+ end
200
+
201
+ # @see the `==` method
202
+ # @param [Object] Object to be compared
203
+ def eql?(o)
204
+ self == o
205
+ end
206
+
207
+ # Calculates hash code according to all attributes.
208
+ # @return [Integer] Hash code
209
+ def hash
210
+ [api_key, delete_protection, description, grok_url, json, key, max_versions, name, team_id, token, uid_token].hash
211
+ end
212
+
213
+ # Builds the object from hash
214
+ # @param [Hash] attributes Model attributes in the form of hash
215
+ # @return [Object] Returns the model itself
216
+ def self.build_from_hash(attributes)
217
+ return nil unless attributes.is_a?(Hash)
218
+ attributes = attributes.transform_keys(&:to_sym)
219
+ transformed_hash = {}
220
+ openapi_types.each_pair do |key, type|
221
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
222
+ transformed_hash["#{key}"] = nil
223
+ elsif type =~ /\AArray<(.*)>/i
224
+ # check to ensure the input is an array given that the attribute
225
+ # is documented as an array but the input is not
226
+ if attributes[attribute_map[key]].is_a?(Array)
227
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
228
+ end
229
+ elsif !attributes[attribute_map[key]].nil?
230
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
231
+ end
232
+ end
233
+ new(transformed_hash)
234
+ end
235
+
236
+ # Deserializes the data based on type
237
+ # @param string type Data type
238
+ # @param string value Value to be deserialized
239
+ # @return [Object] Deserialized data
240
+ def self._deserialize(type, value)
241
+ case type.to_sym
242
+ when :Time
243
+ Time.parse(value)
244
+ when :Date
245
+ Date.parse(value)
246
+ when :String
247
+ value.to_s
248
+ when :Integer
249
+ value.to_i
250
+ when :Float
251
+ value.to_f
252
+ when :Boolean
253
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
254
+ true
255
+ else
256
+ false
257
+ end
258
+ when :Object
259
+ # generic object (usually a Hash), return directly
260
+ value
261
+ when /\AArray<(?<inner_type>.+)>\z/
262
+ inner_type = Regexp.last_match[:inner_type]
263
+ value.map { |v| _deserialize(inner_type, v) }
264
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
265
+ k_type = Regexp.last_match[:k_type]
266
+ v_type = Regexp.last_match[:v_type]
267
+ {}.tap do |hash|
268
+ value.each do |k, v|
269
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
270
+ end
271
+ end
272
+ else # model
273
+ # models (e.g. Pet) or oneOf
274
+ klass = Akeyless.const_get(type)
275
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
276
+ end
277
+ end
278
+
279
+ # Returns the string representation of the object
280
+ # @return [String] String presentation of the object
281
+ def to_s
282
+ to_hash.to_s
283
+ end
284
+
285
+ # to_body is an alias to to_hash (backward compatibility)
286
+ # @return [Hash] Returns the object in the form of hash
287
+ def to_body
288
+ to_hash
289
+ end
290
+
291
+ # Returns the object in the form of hash
292
+ # @return [Hash] Returns the object in the form of hash
293
+ def to_hash
294
+ hash = {}
295
+ self.class.attribute_map.each_pair do |attr, param|
296
+ value = self.send(attr)
297
+ if value.nil?
298
+ is_nullable = self.class.openapi_nullable.include?(attr)
299
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
300
+ end
301
+
302
+ hash[param] = _to_hash(value)
303
+ end
304
+ hash
305
+ end
306
+
307
+ # Outputs non-array value in the form of hash
308
+ # For object, use to_hash. Otherwise, just return the value
309
+ # @param [Object] value Any valid value
310
+ # @return [Hash] Returns the value in the form of hash
311
+ def _to_hash(value)
312
+ if value.is_a?(Array)
313
+ value.compact.map { |v| _to_hash(v) }
314
+ elsif value.is_a?(Hash)
315
+ {}.tap do |hash|
316
+ value.each { |k, v| hash[k] = _to_hash(v) }
317
+ end
318
+ elsif value.respond_to? :to_hash
319
+ value.to_hash
320
+ else
321
+ value
322
+ end
323
+ end
324
+
325
+ end
326
+
327
+ end