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,370 @@
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 UpdateMcpSecretOAuthClientCreds
18
+ # for personal password manager
19
+ attr_accessor :accessibility
20
+
21
+ # Agentic input rule in name=...,rule=... format (e.g. name=rule1,rule=Sanitize input)
22
+ attr_accessor :input_rule
23
+
24
+ # Set output format to JSON
25
+ attr_accessor :json
26
+
27
+ # Whether to keep previous version [true/false]. If not set, use default according to account settings
28
+ attr_accessor :keep_prev_version
29
+
30
+ attr_accessor :key
31
+
32
+ attr_accessor :last_version
33
+
34
+ # Secret name
35
+ attr_accessor :name
36
+
37
+ # OAuth client ID
38
+ attr_accessor :oauth_client_id
39
+
40
+ # OAuth client secret
41
+ attr_accessor :oauth_client_secret
42
+
43
+ # OAuth scopes
44
+ attr_accessor :oauth_scopes
45
+
46
+ # OAuth token URL
47
+ attr_accessor :oauth_token_url
48
+
49
+ # Agentic output rule in name=...,rule=... format (e.g. name=rule1,rule=Mask secrets)
50
+ attr_accessor :output_rule
51
+
52
+ # Authentication token (see `/auth` and `/configure`)
53
+ attr_accessor :token
54
+
55
+ # The universal identity token, Required only for universal_identity authentication
56
+ attr_accessor :uid_token
57
+
58
+ # URL of the service
59
+ attr_accessor :url
60
+
61
+ # Attribute mapping from ruby-style variable name to JSON key.
62
+ def self.attribute_map
63
+ {
64
+ :'accessibility' => :'accessibility',
65
+ :'input_rule' => :'input-rule',
66
+ :'json' => :'json',
67
+ :'keep_prev_version' => :'keep-prev-version',
68
+ :'key' => :'key',
69
+ :'last_version' => :'last-version',
70
+ :'name' => :'name',
71
+ :'oauth_client_id' => :'oauth-client-id',
72
+ :'oauth_client_secret' => :'oauth-client-secret',
73
+ :'oauth_scopes' => :'oauth-scopes',
74
+ :'oauth_token_url' => :'oauth-token-url',
75
+ :'output_rule' => :'output-rule',
76
+ :'token' => :'token',
77
+ :'uid_token' => :'uid-token',
78
+ :'url' => :'url'
79
+ }
80
+ end
81
+
82
+ # Returns all the JSON keys this model knows about
83
+ def self.acceptable_attributes
84
+ attribute_map.values
85
+ end
86
+
87
+ # Attribute type mapping.
88
+ def self.openapi_types
89
+ {
90
+ :'accessibility' => :'String',
91
+ :'input_rule' => :'Array<String>',
92
+ :'json' => :'Boolean',
93
+ :'keep_prev_version' => :'String',
94
+ :'key' => :'String',
95
+ :'last_version' => :'Integer',
96
+ :'name' => :'String',
97
+ :'oauth_client_id' => :'String',
98
+ :'oauth_client_secret' => :'String',
99
+ :'oauth_scopes' => :'Array<String>',
100
+ :'oauth_token_url' => :'String',
101
+ :'output_rule' => :'Array<String>',
102
+ :'token' => :'String',
103
+ :'uid_token' => :'String',
104
+ :'url' => :'String'
105
+ }
106
+ end
107
+
108
+ # List of attributes with nullable: true
109
+ def self.openapi_nullable
110
+ Set.new([
111
+ ])
112
+ end
113
+
114
+ # Initializes the object
115
+ # @param [Hash] attributes Model attributes in the form of hash
116
+ def initialize(attributes = {})
117
+ if (!attributes.is_a?(Hash))
118
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Akeyless::UpdateMcpSecretOAuthClientCreds` initialize method"
119
+ end
120
+
121
+ # check to see if the attribute exists and convert string to symbol for hash key
122
+ attributes = attributes.each_with_object({}) { |(k, v), h|
123
+ if (!self.class.attribute_map.key?(k.to_sym))
124
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Akeyless::UpdateMcpSecretOAuthClientCreds`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
125
+ end
126
+ h[k.to_sym] = v
127
+ }
128
+
129
+ if attributes.key?(:'accessibility')
130
+ self.accessibility = attributes[:'accessibility']
131
+ else
132
+ self.accessibility = 'regular'
133
+ end
134
+
135
+ if attributes.key?(:'input_rule')
136
+ if (value = attributes[:'input_rule']).is_a?(Array)
137
+ self.input_rule = value
138
+ end
139
+ end
140
+
141
+ if attributes.key?(:'json')
142
+ self.json = attributes[:'json']
143
+ else
144
+ self.json = false
145
+ end
146
+
147
+ if attributes.key?(:'keep_prev_version')
148
+ self.keep_prev_version = attributes[:'keep_prev_version']
149
+ end
150
+
151
+ if attributes.key?(:'key')
152
+ self.key = attributes[:'key']
153
+ end
154
+
155
+ if attributes.key?(:'last_version')
156
+ self.last_version = attributes[:'last_version']
157
+ end
158
+
159
+ if attributes.key?(:'name')
160
+ self.name = attributes[:'name']
161
+ else
162
+ self.name = nil
163
+ end
164
+
165
+ if attributes.key?(:'oauth_client_id')
166
+ self.oauth_client_id = attributes[:'oauth_client_id']
167
+ end
168
+
169
+ if attributes.key?(:'oauth_client_secret')
170
+ self.oauth_client_secret = attributes[:'oauth_client_secret']
171
+ end
172
+
173
+ if attributes.key?(:'oauth_scopes')
174
+ if (value = attributes[:'oauth_scopes']).is_a?(Array)
175
+ self.oauth_scopes = value
176
+ end
177
+ end
178
+
179
+ if attributes.key?(:'oauth_token_url')
180
+ self.oauth_token_url = attributes[:'oauth_token_url']
181
+ end
182
+
183
+ if attributes.key?(:'output_rule')
184
+ if (value = attributes[:'output_rule']).is_a?(Array)
185
+ self.output_rule = value
186
+ end
187
+ end
188
+
189
+ if attributes.key?(:'token')
190
+ self.token = attributes[:'token']
191
+ end
192
+
193
+ if attributes.key?(:'uid_token')
194
+ self.uid_token = attributes[:'uid_token']
195
+ end
196
+
197
+ if attributes.key?(:'url')
198
+ self.url = attributes[:'url']
199
+ end
200
+ end
201
+
202
+ # Show invalid properties with the reasons. Usually used together with valid?
203
+ # @return Array for valid properties with the reasons
204
+ def list_invalid_properties
205
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
206
+ invalid_properties = Array.new
207
+ if @name.nil?
208
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
209
+ end
210
+
211
+ invalid_properties
212
+ end
213
+
214
+ # Check to see if the all the properties in the model are valid
215
+ # @return true if the model is valid
216
+ def valid?
217
+ warn '[DEPRECATED] the `valid?` method is obsolete'
218
+ return false if @name.nil?
219
+ true
220
+ end
221
+
222
+ # Checks equality by comparing each attribute.
223
+ # @param [Object] Object to be compared
224
+ def ==(o)
225
+ return true if self.equal?(o)
226
+ self.class == o.class &&
227
+ accessibility == o.accessibility &&
228
+ input_rule == o.input_rule &&
229
+ json == o.json &&
230
+ keep_prev_version == o.keep_prev_version &&
231
+ key == o.key &&
232
+ last_version == o.last_version &&
233
+ name == o.name &&
234
+ oauth_client_id == o.oauth_client_id &&
235
+ oauth_client_secret == o.oauth_client_secret &&
236
+ oauth_scopes == o.oauth_scopes &&
237
+ oauth_token_url == o.oauth_token_url &&
238
+ output_rule == o.output_rule &&
239
+ token == o.token &&
240
+ uid_token == o.uid_token &&
241
+ url == o.url
242
+ end
243
+
244
+ # @see the `==` method
245
+ # @param [Object] Object to be compared
246
+ def eql?(o)
247
+ self == o
248
+ end
249
+
250
+ # Calculates hash code according to all attributes.
251
+ # @return [Integer] Hash code
252
+ def hash
253
+ [accessibility, input_rule, json, keep_prev_version, key, last_version, name, oauth_client_id, oauth_client_secret, oauth_scopes, oauth_token_url, output_rule, token, uid_token, url].hash
254
+ end
255
+
256
+ # Builds the object from hash
257
+ # @param [Hash] attributes Model attributes in the form of hash
258
+ # @return [Object] Returns the model itself
259
+ def self.build_from_hash(attributes)
260
+ return nil unless attributes.is_a?(Hash)
261
+ attributes = attributes.transform_keys(&:to_sym)
262
+ transformed_hash = {}
263
+ openapi_types.each_pair do |key, type|
264
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
265
+ transformed_hash["#{key}"] = nil
266
+ elsif type =~ /\AArray<(.*)>/i
267
+ # check to ensure the input is an array given that the attribute
268
+ # is documented as an array but the input is not
269
+ if attributes[attribute_map[key]].is_a?(Array)
270
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
271
+ end
272
+ elsif !attributes[attribute_map[key]].nil?
273
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
274
+ end
275
+ end
276
+ new(transformed_hash)
277
+ end
278
+
279
+ # Deserializes the data based on type
280
+ # @param string type Data type
281
+ # @param string value Value to be deserialized
282
+ # @return [Object] Deserialized data
283
+ def self._deserialize(type, value)
284
+ case type.to_sym
285
+ when :Time
286
+ Time.parse(value)
287
+ when :Date
288
+ Date.parse(value)
289
+ when :String
290
+ value.to_s
291
+ when :Integer
292
+ value.to_i
293
+ when :Float
294
+ value.to_f
295
+ when :Boolean
296
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
297
+ true
298
+ else
299
+ false
300
+ end
301
+ when :Object
302
+ # generic object (usually a Hash), return directly
303
+ value
304
+ when /\AArray<(?<inner_type>.+)>\z/
305
+ inner_type = Regexp.last_match[:inner_type]
306
+ value.map { |v| _deserialize(inner_type, v) }
307
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
308
+ k_type = Regexp.last_match[:k_type]
309
+ v_type = Regexp.last_match[:v_type]
310
+ {}.tap do |hash|
311
+ value.each do |k, v|
312
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
313
+ end
314
+ end
315
+ else # model
316
+ # models (e.g. Pet) or oneOf
317
+ klass = Akeyless.const_get(type)
318
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
319
+ end
320
+ end
321
+
322
+ # Returns the string representation of the object
323
+ # @return [String] String presentation of the object
324
+ def to_s
325
+ to_hash.to_s
326
+ end
327
+
328
+ # to_body is an alias to to_hash (backward compatibility)
329
+ # @return [Hash] Returns the object in the form of hash
330
+ def to_body
331
+ to_hash
332
+ end
333
+
334
+ # Returns the object in the form of hash
335
+ # @return [Hash] Returns the object in the form of hash
336
+ def to_hash
337
+ hash = {}
338
+ self.class.attribute_map.each_pair do |attr, param|
339
+ value = self.send(attr)
340
+ if value.nil?
341
+ is_nullable = self.class.openapi_nullable.include?(attr)
342
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
343
+ end
344
+
345
+ hash[param] = _to_hash(value)
346
+ end
347
+ hash
348
+ end
349
+
350
+ # Outputs non-array value in the form of hash
351
+ # For object, use to_hash. Otherwise, just return the value
352
+ # @param [Object] value Any valid value
353
+ # @return [Hash] Returns the value in the form of hash
354
+ def _to_hash(value)
355
+ if value.is_a?(Array)
356
+ value.compact.map { |v| _to_hash(v) }
357
+ elsif value.is_a?(Hash)
358
+ {}.tap do |hash|
359
+ value.each { |k, v| hash[k] = _to_hash(v) }
360
+ end
361
+ elsif value.respond_to? :to_hash
362
+ value.to_hash
363
+ else
364
+ value
365
+ end
366
+ end
367
+
368
+ end
369
+
370
+ end
@@ -159,7 +159,7 @@ module Akeyless
159
159
  # Authentication token (see `/auth` and `/configure`)
160
160
  attr_accessor :token
161
161
 
162
- # The maximum requested Time To Live for issued certificates, in seconds. In case of Public CA, this is based on the CA target's supported maximum TTLs
162
+ # The maximum requested Time To Live for issued certificates, in seconds. In case of Public CA, this is based on the CA target's supported maximum TTLs. Not supported for Let's Encrypt, which always uses the CA default lifetime (about 90 days).
163
163
  attr_accessor :ttl
164
164
 
165
165
  # The universal identity token, Required only for universal_identity authentication
@@ -15,10 +15,14 @@ require 'time'
15
15
 
16
16
  module Akeyless
17
17
  class UscGetSecretOutput
18
+ attr_accessor :activation_date
19
+
18
20
  attr_accessor :binary_value
19
21
 
20
22
  attr_accessor :encryption_key
21
23
 
24
+ attr_accessor :expiration
25
+
22
26
  attr_accessor :id
23
27
 
24
28
  attr_accessor :metadata
@@ -27,15 +31,26 @@ module Akeyless
27
31
 
28
32
  attr_accessor :value
29
33
 
34
+ attr_accessor :version_id
35
+
36
+ attr_accessor :version_ids
37
+
38
+ attr_accessor :warnings
39
+
30
40
  # Attribute mapping from ruby-style variable name to JSON key.
31
41
  def self.attribute_map
32
42
  {
43
+ :'activation_date' => :'activation_date',
33
44
  :'binary_value' => :'binary_value',
34
45
  :'encryption_key' => :'encryption_key',
46
+ :'expiration' => :'expiration',
35
47
  :'id' => :'id',
36
48
  :'metadata' => :'metadata',
37
49
  :'name' => :'name',
38
- :'value' => :'value'
50
+ :'value' => :'value',
51
+ :'version_id' => :'version_id',
52
+ :'version_ids' => :'version_ids',
53
+ :'warnings' => :'warnings'
39
54
  }
40
55
  end
41
56
 
@@ -47,12 +62,17 @@ module Akeyless
47
62
  # Attribute type mapping.
48
63
  def self.openapi_types
49
64
  {
65
+ :'activation_date' => :'Time',
50
66
  :'binary_value' => :'Boolean',
51
67
  :'encryption_key' => :'String',
68
+ :'expiration' => :'Time',
52
69
  :'id' => :'String',
53
70
  :'metadata' => :'Object',
54
71
  :'name' => :'String',
55
- :'value' => :'String'
72
+ :'value' => :'String',
73
+ :'version_id' => :'String',
74
+ :'version_ids' => :'Array<String>',
75
+ :'warnings' => :'Array<String>'
56
76
  }
57
77
  end
58
78
 
@@ -78,6 +98,10 @@ module Akeyless
78
98
  h[k.to_sym] = v
79
99
  }
80
100
 
101
+ if attributes.key?(:'activation_date')
102
+ self.activation_date = attributes[:'activation_date']
103
+ end
104
+
81
105
  if attributes.key?(:'binary_value')
82
106
  self.binary_value = attributes[:'binary_value']
83
107
  end
@@ -86,6 +110,10 @@ module Akeyless
86
110
  self.encryption_key = attributes[:'encryption_key']
87
111
  end
88
112
 
113
+ if attributes.key?(:'expiration')
114
+ self.expiration = attributes[:'expiration']
115
+ end
116
+
89
117
  if attributes.key?(:'id')
90
118
  self.id = attributes[:'id']
91
119
  end
@@ -101,6 +129,22 @@ module Akeyless
101
129
  if attributes.key?(:'value')
102
130
  self.value = attributes[:'value']
103
131
  end
132
+
133
+ if attributes.key?(:'version_id')
134
+ self.version_id = attributes[:'version_id']
135
+ end
136
+
137
+ if attributes.key?(:'version_ids')
138
+ if (value = attributes[:'version_ids']).is_a?(Array)
139
+ self.version_ids = value
140
+ end
141
+ end
142
+
143
+ if attributes.key?(:'warnings')
144
+ if (value = attributes[:'warnings']).is_a?(Array)
145
+ self.warnings = value
146
+ end
147
+ end
104
148
  end
105
149
 
106
150
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -123,12 +167,17 @@ module Akeyless
123
167
  def ==(o)
124
168
  return true if self.equal?(o)
125
169
  self.class == o.class &&
170
+ activation_date == o.activation_date &&
126
171
  binary_value == o.binary_value &&
127
172
  encryption_key == o.encryption_key &&
173
+ expiration == o.expiration &&
128
174
  id == o.id &&
129
175
  metadata == o.metadata &&
130
176
  name == o.name &&
131
- value == o.value
177
+ value == o.value &&
178
+ version_id == o.version_id &&
179
+ version_ids == o.version_ids &&
180
+ warnings == o.warnings
132
181
  end
133
182
 
134
183
  # @see the `==` method
@@ -140,7 +189,7 @@ module Akeyless
140
189
  # Calculates hash code according to all attributes.
141
190
  # @return [Integer] Hash code
142
191
  def hash
143
- [binary_value, encryption_key, id, metadata, name, value].hash
192
+ [activation_date, binary_value, encryption_key, expiration, id, metadata, name, value, version_id, version_ids, warnings].hash
144
193
  end
145
194
 
146
195
  # Builds the object from hash
@@ -11,5 +11,5 @@ Generator version: 7.10.0
11
11
  =end
12
12
 
13
13
  module Akeyless
14
- VERSION = '5.0.27'
14
+ VERSION = '5.0.30'
15
15
  end