akeyless 4.2.3 → 4.2.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (291) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +54 -2
  3. data/docs/AccountGeneralSettings.md +2 -0
  4. data/docs/AcmeAccount.md +22 -0
  5. data/docs/AuthMethodRoleAssociation.md +2 -0
  6. data/docs/AwsStorage.md +28 -0
  7. data/docs/AzureStorage.md +28 -0
  8. data/docs/BastionConfigReplyObj.md +28 -0
  9. data/docs/BastionGlobalConf.md +24 -0
  10. data/docs/ChangeAdminAccountPassword.md +26 -0
  11. data/docs/Configure.md +8 -0
  12. data/docs/Connect.md +2 -2
  13. data/docs/CreateClassicKey.md +8 -0
  14. data/docs/CreateDFCKey.md +8 -0
  15. data/docs/CreatePKICertIssuer.md +5 -1
  16. data/docs/DeactivateAcmeAccount.md +28 -0
  17. data/docs/DynamicSecretUpdateArtifactory.md +1 -1
  18. data/docs/DynamicSecretUpdateAws.md +1 -1
  19. data/docs/DynamicSecretUpdateAzure.md +1 -1
  20. data/docs/DynamicSecretUpdateCassandra.md +1 -1
  21. data/docs/DynamicSecretUpdateChef.md +1 -1
  22. data/docs/DynamicSecretUpdateCustom.md +1 -1
  23. data/docs/DynamicSecretUpdateDockerhub.md +1 -1
  24. data/docs/DynamicSecretUpdateEks.md +1 -1
  25. data/docs/DynamicSecretUpdateGcp.md +1 -1
  26. data/docs/DynamicSecretUpdateGithub.md +1 -1
  27. data/docs/DynamicSecretUpdateGitlab.md +1 -1
  28. data/docs/DynamicSecretUpdateGke.md +1 -1
  29. data/docs/DynamicSecretUpdateGoogleWorkspace.md +1 -1
  30. data/docs/DynamicSecretUpdateHanaDb.md +1 -1
  31. data/docs/DynamicSecretUpdateK8s.md +1 -1
  32. data/docs/DynamicSecretUpdateLdap.md +1 -1
  33. data/docs/DynamicSecretUpdateMongoDb.md +1 -1
  34. data/docs/DynamicSecretUpdateMsSql.md +1 -1
  35. data/docs/DynamicSecretUpdateMySql.md +1 -1
  36. data/docs/DynamicSecretUpdateOracleDb.md +1 -1
  37. data/docs/DynamicSecretUpdatePing.md +1 -1
  38. data/docs/DynamicSecretUpdateVenafi.md +1 -1
  39. data/docs/EmailPassAccessRules.md +3 -1
  40. data/docs/EventForwarderCreateEmail.md +2 -2
  41. data/docs/EventForwarderCreateServiceNow.md +1 -1
  42. data/docs/EventForwarderCreateSlack.md +1 -1
  43. data/docs/EventForwarderCreateWebhook.md +1 -1
  44. data/docs/EventForwarderUpdateEmail.md +2 -2
  45. data/docs/EventForwarderUpdateServiceNow.md +1 -1
  46. data/docs/EventForwarderUpdateSlack.md +1 -1
  47. data/docs/EventForwarderUpdateWebhook.md +1 -1
  48. data/docs/GatewayGetRemoteAccess.md +22 -0
  49. data/docs/GatewayUpdateItem.md +2 -0
  50. data/docs/GatewayUpdateRemoteAccess.md +36 -0
  51. data/docs/GatewayUpdateRemoteAccessRdpRecordings.md +46 -0
  52. data/docs/GenerateAcmeEab.md +24 -0
  53. data/docs/GenerateAcmeEabOutput.md +22 -0
  54. data/docs/GetGroupOutput.md +2 -0
  55. data/docs/GetKubeExecCreds.md +1 -1
  56. data/docs/GetPKICertificate.md +1 -1
  57. data/docs/Group.md +2 -0
  58. data/docs/GwUpdateRemoteAccessSessionLogsAwsS3.md +42 -0
  59. data/docs/GwUpdateRemoteAccessSessionLogsAzureAnalytics.md +32 -0
  60. data/docs/GwUpdateRemoteAccessSessionLogsDatadog.md +38 -0
  61. data/docs/GwUpdateRemoteAccessSessionLogsElasticsearch.md +48 -0
  62. data/docs/GwUpdateRemoteAccessSessionLogsGoogleChronicle.md +36 -0
  63. data/docs/GwUpdateRemoteAccessSessionLogsLogstash.md +36 -0
  64. data/docs/GwUpdateRemoteAccessSessionLogsLogzIo.md +32 -0
  65. data/docs/GwUpdateRemoteAccessSessionLogsSplunk.md +42 -0
  66. data/docs/GwUpdateRemoteAccessSessionLogsStdout.md +28 -0
  67. data/docs/GwUpdateRemoteAccessSessionLogsSumologic.md +34 -0
  68. data/docs/GwUpdateRemoteAccessSessionLogsSyslog.md +40 -0
  69. data/docs/ItemGeneralInfo.md +4 -0
  70. data/docs/ListAcmeAccounts.md +24 -0
  71. data/docs/ListAcmeAccountsOutput.md +18 -0
  72. data/docs/NextAutoRotationEvent.md +18 -0
  73. data/docs/PKICertificateIssueDetails.md +4 -0
  74. data/docs/PasswordExpirationInfo.md +24 -0
  75. data/docs/ResetAccessKey.md +24 -0
  76. data/docs/ResetAuthMethodAccessKeyOutput.md +18 -0
  77. data/docs/RoleAssociationDetails.md +2 -0
  78. data/docs/RoleAuthMethodAssociation.md +2 -0
  79. data/docs/RollbackSecret.md +2 -0
  80. data/docs/RotatedSecretCreateAws.md +2 -0
  81. data/docs/RotatedSecretCreateAzure.md +2 -0
  82. data/docs/RotatedSecretCreateCassandra.md +2 -0
  83. data/docs/RotatedSecretCreateCustom.md +2 -0
  84. data/docs/RotatedSecretCreateDockerhub.md +2 -0
  85. data/docs/RotatedSecretCreateGcp.md +2 -0
  86. data/docs/RotatedSecretCreateHanadb.md +2 -0
  87. data/docs/RotatedSecretCreateLdap.md +2 -0
  88. data/docs/RotatedSecretCreateMongodb.md +2 -0
  89. data/docs/RotatedSecretCreateMssql.md +2 -0
  90. data/docs/RotatedSecretCreateMysql.md +2 -0
  91. data/docs/RotatedSecretCreateOracledb.md +2 -0
  92. data/docs/RotatedSecretCreatePostgresql.md +2 -0
  93. data/docs/RotatedSecretCreateRedis.md +2 -0
  94. data/docs/RotatedSecretCreateRedshift.md +2 -0
  95. data/docs/RotatedSecretCreateSnowflake.md +2 -0
  96. data/docs/RotatedSecretCreateSsh.md +2 -0
  97. data/docs/RotatedSecretCreateWindows.md +2 -0
  98. data/docs/RotatedSecretUpdateAws.md +2 -0
  99. data/docs/RotatedSecretUpdateAzure.md +2 -0
  100. data/docs/RotatedSecretUpdateCassandra.md +2 -0
  101. data/docs/RotatedSecretUpdateCustom.md +2 -0
  102. data/docs/RotatedSecretUpdateDockerhub.md +2 -0
  103. data/docs/RotatedSecretUpdateGcp.md +2 -0
  104. data/docs/RotatedSecretUpdateHanadb.md +2 -0
  105. data/docs/RotatedSecretUpdateLdap.md +2 -0
  106. data/docs/RotatedSecretUpdateMongodb.md +2 -0
  107. data/docs/RotatedSecretUpdateMssql.md +2 -0
  108. data/docs/RotatedSecretUpdateMysql.md +2 -0
  109. data/docs/RotatedSecretUpdateOracledb.md +2 -0
  110. data/docs/RotatedSecretUpdatePostgresql.md +2 -0
  111. data/docs/RotatedSecretUpdateRedis.md +2 -0
  112. data/docs/RotatedSecretUpdateRedshift.md +2 -0
  113. data/docs/RotatedSecretUpdateSnowflake.md +2 -0
  114. data/docs/RotatedSecretUpdateSsh.md +2 -0
  115. data/docs/RotatedSecretUpdateWindows.md +2 -0
  116. data/docs/SshBastionConf.md +24 -0
  117. data/docs/SshBastionSessionTermination.md +26 -0
  118. data/docs/UpdateAccountSettings.md +6 -0
  119. data/docs/UpdateClassicKeyCertificate.md +2 -0
  120. data/docs/UpdateItem.md +4 -0
  121. data/docs/UpdatePKICertIssuer.md +5 -1
  122. data/docs/UpdateRotationSettings.md +2 -0
  123. data/docs/UpdateTarget.md +1 -1
  124. data/docs/UploadRSA.md +2 -0
  125. data/docs/V2Api.md +1356 -225
  126. data/docs/WebBastionConf.md +20 -0
  127. data/docs/WebBastionGuacamole.md +18 -0
  128. data/docs/WebBastionRdpRecord.md +22 -0
  129. data/lib/akeyless/api/v2_api.rb +1360 -219
  130. data/lib/akeyless/models/account_general_settings.rb +10 -1
  131. data/lib/akeyless/models/acme_account.rb +234 -0
  132. data/lib/akeyless/models/auth_method_role_association.rb +10 -1
  133. data/lib/akeyless/models/aws_storage.rb +260 -0
  134. data/lib/akeyless/models/azure_storage.rb +260 -0
  135. data/lib/akeyless/models/bastion_config_reply_obj.rb +259 -0
  136. data/lib/akeyless/models/bastion_global_conf.rb +243 -0
  137. data/lib/akeyless/models/change_admin_account_password.rb +271 -0
  138. data/lib/akeyless/models/configure.rb +41 -1
  139. data/lib/akeyless/models/connect.rb +11 -11
  140. data/lib/akeyless/models/create_classic_key.rb +45 -1
  141. data/lib/akeyless/models/create_dfc_key.rb +45 -1
  142. data/lib/akeyless/models/create_pki_cert_issuer.rb +24 -2
  143. data/lib/akeyless/models/deactivate_acme_account.rb +282 -0
  144. data/lib/akeyless/models/dynamic_secret_update_artifactory.rb +1 -1
  145. data/lib/akeyless/models/dynamic_secret_update_aws.rb +1 -1
  146. data/lib/akeyless/models/dynamic_secret_update_azure.rb +1 -1
  147. data/lib/akeyless/models/dynamic_secret_update_cassandra.rb +1 -1
  148. data/lib/akeyless/models/dynamic_secret_update_chef.rb +1 -1
  149. data/lib/akeyless/models/dynamic_secret_update_custom.rb +1 -1
  150. data/lib/akeyless/models/dynamic_secret_update_dockerhub.rb +1 -1
  151. data/lib/akeyless/models/dynamic_secret_update_eks.rb +1 -1
  152. data/lib/akeyless/models/dynamic_secret_update_gcp.rb +1 -1
  153. data/lib/akeyless/models/dynamic_secret_update_github.rb +1 -1
  154. data/lib/akeyless/models/dynamic_secret_update_gitlab.rb +1 -1
  155. data/lib/akeyless/models/dynamic_secret_update_gke.rb +1 -1
  156. data/lib/akeyless/models/dynamic_secret_update_google_workspace.rb +1 -1
  157. data/lib/akeyless/models/dynamic_secret_update_hana_db.rb +1 -1
  158. data/lib/akeyless/models/dynamic_secret_update_k8s.rb +1 -1
  159. data/lib/akeyless/models/dynamic_secret_update_ldap.rb +1 -1
  160. data/lib/akeyless/models/dynamic_secret_update_mongo_db.rb +1 -1
  161. data/lib/akeyless/models/dynamic_secret_update_ms_sql.rb +1 -1
  162. data/lib/akeyless/models/dynamic_secret_update_my_sql.rb +1 -1
  163. data/lib/akeyless/models/dynamic_secret_update_oracle_db.rb +1 -1
  164. data/lib/akeyless/models/dynamic_secret_update_ping.rb +1 -1
  165. data/lib/akeyless/models/dynamic_secret_update_venafi.rb +1 -1
  166. data/lib/akeyless/models/email_pass_access_rules.rb +14 -4
  167. data/lib/akeyless/models/event_forwarder_create_email.rb +2 -2
  168. data/lib/akeyless/models/event_forwarder_create_service_now.rb +1 -1
  169. data/lib/akeyless/models/event_forwarder_create_slack.rb +1 -1
  170. data/lib/akeyless/models/event_forwarder_create_webhook.rb +1 -1
  171. data/lib/akeyless/models/event_forwarder_update_email.rb +2 -2
  172. data/lib/akeyless/models/event_forwarder_update_service_now.rb +1 -1
  173. data/lib/akeyless/models/event_forwarder_update_slack.rb +1 -1
  174. data/lib/akeyless/models/event_forwarder_update_webhook.rb +1 -1
  175. data/lib/akeyless/models/gateway_get_remote_access.rb +238 -0
  176. data/lib/akeyless/models/gateway_update_item.rb +13 -1
  177. data/lib/akeyless/models/gateway_update_remote_access.rb +318 -0
  178. data/lib/akeyless/models/gateway_update_remote_access_rdp_recordings.rb +358 -0
  179. data/lib/akeyless/models/generate_acme_eab.rb +254 -0
  180. data/lib/akeyless/models/generate_acme_eab_output.rb +232 -0
  181. data/lib/akeyless/models/get_group_output.rb +10 -1
  182. data/lib/akeyless/models/get_kube_exec_creds.rb +1 -1
  183. data/lib/akeyless/models/get_pki_certificate.rb +1 -1
  184. data/lib/akeyless/models/group.rb +10 -1
  185. data/lib/akeyless/models/gw_update_remote_access_session_logs_aws_s3.rb +346 -0
  186. data/lib/akeyless/models/gw_update_remote_access_session_logs_azure_analytics.rb +294 -0
  187. data/lib/akeyless/models/gw_update_remote_access_session_logs_datadog.rb +330 -0
  188. data/lib/akeyless/models/gw_update_remote_access_session_logs_elasticsearch.rb +376 -0
  189. data/lib/akeyless/models/gw_update_remote_access_session_logs_google_chronicle.rb +314 -0
  190. data/lib/akeyless/models/gw_update_remote_access_session_logs_logstash.rb +316 -0
  191. data/lib/akeyless/models/gw_update_remote_access_session_logs_logz_io.rb +294 -0
  192. data/lib/akeyless/models/gw_update_remote_access_session_logs_splunk.rb +350 -0
  193. data/lib/akeyless/models/gw_update_remote_access_session_logs_stdout.rb +274 -0
  194. data/lib/akeyless/models/gw_update_remote_access_session_logs_sumologic.rb +308 -0
  195. data/lib/akeyless/models/gw_update_remote_access_session_logs_syslog.rb +342 -0
  196. data/lib/akeyless/models/item_general_info.rb +23 -1
  197. data/lib/akeyless/models/list_acme_accounts.rb +255 -0
  198. data/lib/akeyless/models/list_acme_accounts_output.rb +216 -0
  199. data/lib/akeyless/models/next_auto_rotation_event.rb +214 -0
  200. data/lib/akeyless/models/password_expiration_info.rb +242 -0
  201. data/lib/akeyless/models/pki_certificate_issue_details.rb +19 -1
  202. data/lib/akeyless/models/reset_access_key.rb +255 -0
  203. data/lib/akeyless/models/reset_auth_method_access_key_output.rb +215 -0
  204. data/lib/akeyless/models/role_association_details.rb +10 -1
  205. data/lib/akeyless/models/role_auth_method_association.rb +10 -1
  206. data/lib/akeyless/models/rollback_secret.rb +13 -1
  207. data/lib/akeyless/models/rotated_secret_create_aws.rb +13 -1
  208. data/lib/akeyless/models/rotated_secret_create_azure.rb +13 -1
  209. data/lib/akeyless/models/rotated_secret_create_cassandra.rb +13 -1
  210. data/lib/akeyless/models/rotated_secret_create_custom.rb +13 -1
  211. data/lib/akeyless/models/rotated_secret_create_dockerhub.rb +13 -1
  212. data/lib/akeyless/models/rotated_secret_create_gcp.rb +13 -1
  213. data/lib/akeyless/models/rotated_secret_create_hanadb.rb +13 -1
  214. data/lib/akeyless/models/rotated_secret_create_ldap.rb +13 -1
  215. data/lib/akeyless/models/rotated_secret_create_mongodb.rb +13 -1
  216. data/lib/akeyless/models/rotated_secret_create_mssql.rb +13 -1
  217. data/lib/akeyless/models/rotated_secret_create_mysql.rb +13 -1
  218. data/lib/akeyless/models/rotated_secret_create_oracledb.rb +13 -1
  219. data/lib/akeyless/models/rotated_secret_create_postgresql.rb +13 -1
  220. data/lib/akeyless/models/rotated_secret_create_redis.rb +13 -1
  221. data/lib/akeyless/models/rotated_secret_create_redshift.rb +13 -1
  222. data/lib/akeyless/models/rotated_secret_create_snowflake.rb +13 -1
  223. data/lib/akeyless/models/rotated_secret_create_ssh.rb +13 -1
  224. data/lib/akeyless/models/rotated_secret_create_windows.rb +13 -1
  225. data/lib/akeyless/models/rotated_secret_update_aws.rb +13 -1
  226. data/lib/akeyless/models/rotated_secret_update_azure.rb +13 -1
  227. data/lib/akeyless/models/rotated_secret_update_cassandra.rb +13 -1
  228. data/lib/akeyless/models/rotated_secret_update_custom.rb +13 -1
  229. data/lib/akeyless/models/rotated_secret_update_dockerhub.rb +13 -1
  230. data/lib/akeyless/models/rotated_secret_update_gcp.rb +13 -1
  231. data/lib/akeyless/models/rotated_secret_update_hanadb.rb +13 -1
  232. data/lib/akeyless/models/rotated_secret_update_ldap.rb +13 -1
  233. data/lib/akeyless/models/rotated_secret_update_mongodb.rb +13 -1
  234. data/lib/akeyless/models/rotated_secret_update_mssql.rb +13 -1
  235. data/lib/akeyless/models/rotated_secret_update_mysql.rb +13 -1
  236. data/lib/akeyless/models/rotated_secret_update_oracledb.rb +13 -1
  237. data/lib/akeyless/models/rotated_secret_update_postgresql.rb +13 -1
  238. data/lib/akeyless/models/rotated_secret_update_redis.rb +13 -1
  239. data/lib/akeyless/models/rotated_secret_update_redshift.rb +13 -1
  240. data/lib/akeyless/models/rotated_secret_update_snowflake.rb +13 -1
  241. data/lib/akeyless/models/rotated_secret_update_ssh.rb +13 -1
  242. data/lib/akeyless/models/rotated_secret_update_windows.rb +13 -1
  243. data/lib/akeyless/models/ssh_bastion_conf.rb +241 -0
  244. data/lib/akeyless/models/ssh_bastion_session_termination.rb +250 -0
  245. data/lib/akeyless/models/update_account_settings.rb +31 -1
  246. data/lib/akeyless/models/update_classic_key_certificate.rb +10 -1
  247. data/lib/akeyless/models/update_item.rb +22 -1
  248. data/lib/akeyless/models/update_pki_cert_issuer.rb +24 -2
  249. data/lib/akeyless/models/update_rotation_settings.rb +13 -1
  250. data/lib/akeyless/models/update_target.rb +1 -1
  251. data/lib/akeyless/models/upload_rsa.rb +13 -1
  252. data/lib/akeyless/models/web_bastion_conf.rb +223 -0
  253. data/lib/akeyless/models/web_bastion_guacamole.rb +214 -0
  254. data/lib/akeyless/models/web_bastion_rdp_record.rb +232 -0
  255. data/lib/akeyless/version.rb +1 -1
  256. data/lib/akeyless.rb +34 -0
  257. data/spec/models/acme_account_spec.rb +48 -0
  258. data/spec/models/aws_storage_spec.rb +66 -0
  259. data/spec/models/azure_storage_spec.rb +66 -0
  260. data/spec/models/bastion_config_reply_obj_spec.rb +66 -0
  261. data/spec/models/bastion_global_conf_spec.rb +54 -0
  262. data/spec/models/change_admin_account_password_spec.rb +60 -0
  263. data/spec/models/deactivate_acme_account_spec.rb +66 -0
  264. data/spec/models/gateway_get_remote_access_spec.rb +48 -0
  265. data/spec/models/gateway_update_remote_access_rdp_recordings_spec.rb +120 -0
  266. data/spec/models/gateway_update_remote_access_spec.rb +90 -0
  267. data/spec/models/generate_acme_eab_output_spec.rb +48 -0
  268. data/spec/models/generate_acme_eab_spec.rb +54 -0
  269. data/spec/models/gw_update_remote_access_session_logs_aws_s3_spec.rb +108 -0
  270. data/spec/models/gw_update_remote_access_session_logs_azure_analytics_spec.rb +78 -0
  271. data/spec/models/gw_update_remote_access_session_logs_datadog_spec.rb +96 -0
  272. data/spec/models/gw_update_remote_access_session_logs_elasticsearch_spec.rb +126 -0
  273. data/spec/models/gw_update_remote_access_session_logs_google_chronicle_spec.rb +90 -0
  274. data/spec/models/gw_update_remote_access_session_logs_logstash_spec.rb +90 -0
  275. data/spec/models/gw_update_remote_access_session_logs_logz_io_spec.rb +78 -0
  276. data/spec/models/gw_update_remote_access_session_logs_splunk_spec.rb +108 -0
  277. data/spec/models/gw_update_remote_access_session_logs_stdout_spec.rb +66 -0
  278. data/spec/models/gw_update_remote_access_session_logs_sumologic_spec.rb +84 -0
  279. data/spec/models/gw_update_remote_access_session_logs_syslog_spec.rb +102 -0
  280. data/spec/models/list_acme_accounts_output_spec.rb +36 -0
  281. data/spec/models/list_acme_accounts_spec.rb +54 -0
  282. data/spec/models/next_auto_rotation_event_spec.rb +36 -0
  283. data/spec/models/password_expiration_info_spec.rb +54 -0
  284. data/spec/models/reset_access_key_spec.rb +54 -0
  285. data/spec/models/reset_auth_method_access_key_output_spec.rb +36 -0
  286. data/spec/models/ssh_bastion_conf_spec.rb +54 -0
  287. data/spec/models/ssh_bastion_session_termination_spec.rb +60 -0
  288. data/spec/models/web_bastion_conf_spec.rb +42 -0
  289. data/spec/models/web_bastion_guacamole_spec.rb +36 -0
  290. data/spec/models/web_bastion_rdp_record_spec.rb +48 -0
  291. metadata +1117 -981
@@ -0,0 +1,308 @@
1
+ =begin
2
+ #Akeyless API
3
+
4
+ #The purpose of this application is to provide access to Akeyless API.
5
+
6
+ The version of the OpenAPI document: 2.0
7
+ Contact: support@akeyless.io
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.9.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Akeyless
17
+ # gwUpdateRemoteAccessSessionLogsSumologic is a command that updates session log forwarding config (sumologic target)
18
+ class GwUpdateRemoteAccessSessionLogsSumologic
19
+ # Enable Log Forwarding [true/false]
20
+ attr_accessor :enable
21
+
22
+ # Sumologic endpoint URL
23
+ attr_accessor :endpoint
24
+
25
+ # Sumologic host
26
+ attr_accessor :host
27
+
28
+ # Set output format to JSON
29
+ attr_accessor :json
30
+
31
+ # Logs format [text/json]
32
+ attr_accessor :output_format
33
+
34
+ # Pull interval in seconds
35
+ attr_accessor :pull_interval
36
+
37
+ # A comma-separated list of Sumologic tags
38
+ attr_accessor :sumologic_tags
39
+
40
+ # Authentication token (see `/auth` and `/configure`)
41
+ attr_accessor :token
42
+
43
+ # The universal identity token, Required only for universal_identity authentication
44
+ attr_accessor :uid_token
45
+
46
+ # Attribute mapping from ruby-style variable name to JSON key.
47
+ def self.attribute_map
48
+ {
49
+ :'enable' => :'enable',
50
+ :'endpoint' => :'endpoint',
51
+ :'host' => :'host',
52
+ :'json' => :'json',
53
+ :'output_format' => :'output-format',
54
+ :'pull_interval' => :'pull-interval',
55
+ :'sumologic_tags' => :'sumologic-tags',
56
+ :'token' => :'token',
57
+ :'uid_token' => :'uid-token'
58
+ }
59
+ end
60
+
61
+ # Returns all the JSON keys this model knows about
62
+ def self.acceptable_attributes
63
+ attribute_map.values
64
+ end
65
+
66
+ # Attribute type mapping.
67
+ def self.openapi_types
68
+ {
69
+ :'enable' => :'String',
70
+ :'endpoint' => :'String',
71
+ :'host' => :'String',
72
+ :'json' => :'Boolean',
73
+ :'output_format' => :'String',
74
+ :'pull_interval' => :'String',
75
+ :'sumologic_tags' => :'String',
76
+ :'token' => :'String',
77
+ :'uid_token' => :'String'
78
+ }
79
+ end
80
+
81
+ # List of attributes with nullable: true
82
+ def self.openapi_nullable
83
+ Set.new([
84
+ ])
85
+ end
86
+
87
+ # Initializes the object
88
+ # @param [Hash] attributes Model attributes in the form of hash
89
+ def initialize(attributes = {})
90
+ if (!attributes.is_a?(Hash))
91
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Akeyless::GwUpdateRemoteAccessSessionLogsSumologic` initialize method"
92
+ end
93
+
94
+ # check to see if the attribute exists and convert string to symbol for hash key
95
+ attributes = attributes.each_with_object({}) { |(k, v), h|
96
+ if (!self.class.attribute_map.key?(k.to_sym))
97
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Akeyless::GwUpdateRemoteAccessSessionLogsSumologic`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
98
+ end
99
+ h[k.to_sym] = v
100
+ }
101
+
102
+ if attributes.key?(:'enable')
103
+ self.enable = attributes[:'enable']
104
+ else
105
+ self.enable = 'true'
106
+ end
107
+
108
+ if attributes.key?(:'endpoint')
109
+ self.endpoint = attributes[:'endpoint']
110
+ end
111
+
112
+ if attributes.key?(:'host')
113
+ self.host = attributes[:'host']
114
+ else
115
+ self.host = 'use-existing'
116
+ end
117
+
118
+ if attributes.key?(:'json')
119
+ self.json = attributes[:'json']
120
+ else
121
+ self.json = false
122
+ end
123
+
124
+ if attributes.key?(:'output_format')
125
+ self.output_format = attributes[:'output_format']
126
+ else
127
+ self.output_format = 'text'
128
+ end
129
+
130
+ if attributes.key?(:'pull_interval')
131
+ self.pull_interval = attributes[:'pull_interval']
132
+ else
133
+ self.pull_interval = '10'
134
+ end
135
+
136
+ if attributes.key?(:'sumologic_tags')
137
+ self.sumologic_tags = attributes[:'sumologic_tags']
138
+ else
139
+ self.sumologic_tags = 'use-existing'
140
+ end
141
+
142
+ if attributes.key?(:'token')
143
+ self.token = attributes[:'token']
144
+ end
145
+
146
+ if attributes.key?(:'uid_token')
147
+ self.uid_token = attributes[:'uid_token']
148
+ end
149
+ end
150
+
151
+ # Show invalid properties with the reasons. Usually used together with valid?
152
+ # @return Array for valid properties with the reasons
153
+ def list_invalid_properties
154
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
155
+ invalid_properties = Array.new
156
+ invalid_properties
157
+ end
158
+
159
+ # Check to see if the all the properties in the model are valid
160
+ # @return true if the model is valid
161
+ def valid?
162
+ warn '[DEPRECATED] the `valid?` method is obsolete'
163
+ true
164
+ end
165
+
166
+ # Checks equality by comparing each attribute.
167
+ # @param [Object] Object to be compared
168
+ def ==(o)
169
+ return true if self.equal?(o)
170
+ self.class == o.class &&
171
+ enable == o.enable &&
172
+ endpoint == o.endpoint &&
173
+ host == o.host &&
174
+ json == o.json &&
175
+ output_format == o.output_format &&
176
+ pull_interval == o.pull_interval &&
177
+ sumologic_tags == o.sumologic_tags &&
178
+ token == o.token &&
179
+ uid_token == o.uid_token
180
+ end
181
+
182
+ # @see the `==` method
183
+ # @param [Object] Object to be compared
184
+ def eql?(o)
185
+ self == o
186
+ end
187
+
188
+ # Calculates hash code according to all attributes.
189
+ # @return [Integer] Hash code
190
+ def hash
191
+ [enable, endpoint, host, json, output_format, pull_interval, sumologic_tags, token, uid_token].hash
192
+ end
193
+
194
+ # Builds the object from hash
195
+ # @param [Hash] attributes Model attributes in the form of hash
196
+ # @return [Object] Returns the model itself
197
+ def self.build_from_hash(attributes)
198
+ return nil unless attributes.is_a?(Hash)
199
+ attributes = attributes.transform_keys(&:to_sym)
200
+ transformed_hash = {}
201
+ openapi_types.each_pair do |key, type|
202
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
203
+ transformed_hash["#{key}"] = nil
204
+ elsif type =~ /\AArray<(.*)>/i
205
+ # check to ensure the input is an array given that the attribute
206
+ # is documented as an array but the input is not
207
+ if attributes[attribute_map[key]].is_a?(Array)
208
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
209
+ end
210
+ elsif !attributes[attribute_map[key]].nil?
211
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
212
+ end
213
+ end
214
+ new(transformed_hash)
215
+ end
216
+
217
+ # Deserializes the data based on type
218
+ # @param string type Data type
219
+ # @param string value Value to be deserialized
220
+ # @return [Object] Deserialized data
221
+ def self._deserialize(type, value)
222
+ case type.to_sym
223
+ when :Time
224
+ Time.parse(value)
225
+ when :Date
226
+ Date.parse(value)
227
+ when :String
228
+ value.to_s
229
+ when :Integer
230
+ value.to_i
231
+ when :Float
232
+ value.to_f
233
+ when :Boolean
234
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
235
+ true
236
+ else
237
+ false
238
+ end
239
+ when :Object
240
+ # generic object (usually a Hash), return directly
241
+ value
242
+ when /\AArray<(?<inner_type>.+)>\z/
243
+ inner_type = Regexp.last_match[:inner_type]
244
+ value.map { |v| _deserialize(inner_type, v) }
245
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
246
+ k_type = Regexp.last_match[:k_type]
247
+ v_type = Regexp.last_match[:v_type]
248
+ {}.tap do |hash|
249
+ value.each do |k, v|
250
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
251
+ end
252
+ end
253
+ else # model
254
+ # models (e.g. Pet) or oneOf
255
+ klass = Akeyless.const_get(type)
256
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
257
+ end
258
+ end
259
+
260
+ # Returns the string representation of the object
261
+ # @return [String] String presentation of the object
262
+ def to_s
263
+ to_hash.to_s
264
+ end
265
+
266
+ # to_body is an alias to to_hash (backward compatibility)
267
+ # @return [Hash] Returns the object in the form of hash
268
+ def to_body
269
+ to_hash
270
+ end
271
+
272
+ # Returns the object in the form of hash
273
+ # @return [Hash] Returns the object in the form of hash
274
+ def to_hash
275
+ hash = {}
276
+ self.class.attribute_map.each_pair do |attr, param|
277
+ value = self.send(attr)
278
+ if value.nil?
279
+ is_nullable = self.class.openapi_nullable.include?(attr)
280
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
281
+ end
282
+
283
+ hash[param] = _to_hash(value)
284
+ end
285
+ hash
286
+ end
287
+
288
+ # Outputs non-array value in the form of hash
289
+ # For object, use to_hash. Otherwise, just return the value
290
+ # @param [Object] value Any valid value
291
+ # @return [Hash] Returns the value in the form of hash
292
+ def _to_hash(value)
293
+ if value.is_a?(Array)
294
+ value.compact.map { |v| _to_hash(v) }
295
+ elsif value.is_a?(Hash)
296
+ {}.tap do |hash|
297
+ value.each { |k, v| hash[k] = _to_hash(v) }
298
+ end
299
+ elsif value.respond_to? :to_hash
300
+ value.to_hash
301
+ else
302
+ value
303
+ end
304
+ end
305
+
306
+ end
307
+
308
+ end
@@ -0,0 +1,342 @@
1
+ =begin
2
+ #Akeyless API
3
+
4
+ #The purpose of this application is to provide access to Akeyless API.
5
+
6
+ The version of the OpenAPI document: 2.0
7
+ Contact: support@akeyless.io
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.9.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Akeyless
17
+ # gwUpdateRemoteAccessSessionLogsSyslog is a command that updates session log forwarding config (syslog target)
18
+ class GwUpdateRemoteAccessSessionLogsSyslog
19
+ # Enable Log Forwarding [true/false]
20
+ attr_accessor :enable
21
+
22
+ # Enable tls relevant only for network type TCP
23
+ attr_accessor :enable_tls
24
+
25
+ # Syslog formatter [text/cef]
26
+ attr_accessor :formatter
27
+
28
+ # Syslog host
29
+ attr_accessor :host
30
+
31
+ # Set output format to JSON
32
+ attr_accessor :json
33
+
34
+ # Syslog network [tcp/udp]
35
+ attr_accessor :network
36
+
37
+ # Logs format [text/json]
38
+ attr_accessor :output_format
39
+
40
+ # Pull interval in seconds
41
+ attr_accessor :pull_interval
42
+
43
+ # Syslog target tag
44
+ attr_accessor :target_tag
45
+
46
+ # Syslog tls certificate
47
+ attr_accessor :tls_certificate
48
+
49
+ # Authentication token (see `/auth` and `/configure`)
50
+ attr_accessor :token
51
+
52
+ # The universal identity token, Required only for universal_identity authentication
53
+ attr_accessor :uid_token
54
+
55
+ # Attribute mapping from ruby-style variable name to JSON key.
56
+ def self.attribute_map
57
+ {
58
+ :'enable' => :'enable',
59
+ :'enable_tls' => :'enable-tls',
60
+ :'formatter' => :'formatter',
61
+ :'host' => :'host',
62
+ :'json' => :'json',
63
+ :'network' => :'network',
64
+ :'output_format' => :'output-format',
65
+ :'pull_interval' => :'pull-interval',
66
+ :'target_tag' => :'target-tag',
67
+ :'tls_certificate' => :'tls-certificate',
68
+ :'token' => :'token',
69
+ :'uid_token' => :'uid-token'
70
+ }
71
+ end
72
+
73
+ # Returns all the JSON keys this model knows about
74
+ def self.acceptable_attributes
75
+ attribute_map.values
76
+ end
77
+
78
+ # Attribute type mapping.
79
+ def self.openapi_types
80
+ {
81
+ :'enable' => :'String',
82
+ :'enable_tls' => :'Boolean',
83
+ :'formatter' => :'String',
84
+ :'host' => :'String',
85
+ :'json' => :'Boolean',
86
+ :'network' => :'String',
87
+ :'output_format' => :'String',
88
+ :'pull_interval' => :'String',
89
+ :'target_tag' => :'String',
90
+ :'tls_certificate' => :'String',
91
+ :'token' => :'String',
92
+ :'uid_token' => :'String'
93
+ }
94
+ end
95
+
96
+ # List of attributes with nullable: true
97
+ def self.openapi_nullable
98
+ Set.new([
99
+ ])
100
+ end
101
+
102
+ # Initializes the object
103
+ # @param [Hash] attributes Model attributes in the form of hash
104
+ def initialize(attributes = {})
105
+ if (!attributes.is_a?(Hash))
106
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Akeyless::GwUpdateRemoteAccessSessionLogsSyslog` initialize method"
107
+ end
108
+
109
+ # check to see if the attribute exists and convert string to symbol for hash key
110
+ attributes = attributes.each_with_object({}) { |(k, v), h|
111
+ if (!self.class.attribute_map.key?(k.to_sym))
112
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Akeyless::GwUpdateRemoteAccessSessionLogsSyslog`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
113
+ end
114
+ h[k.to_sym] = v
115
+ }
116
+
117
+ if attributes.key?(:'enable')
118
+ self.enable = attributes[:'enable']
119
+ else
120
+ self.enable = 'true'
121
+ end
122
+
123
+ if attributes.key?(:'enable_tls')
124
+ self.enable_tls = attributes[:'enable_tls']
125
+ end
126
+
127
+ if attributes.key?(:'formatter')
128
+ self.formatter = attributes[:'formatter']
129
+ else
130
+ self.formatter = 'text'
131
+ end
132
+
133
+ if attributes.key?(:'host')
134
+ self.host = attributes[:'host']
135
+ end
136
+
137
+ if attributes.key?(:'json')
138
+ self.json = attributes[:'json']
139
+ else
140
+ self.json = false
141
+ end
142
+
143
+ if attributes.key?(:'network')
144
+ self.network = attributes[:'network']
145
+ else
146
+ self.network = 'tcp'
147
+ end
148
+
149
+ if attributes.key?(:'output_format')
150
+ self.output_format = attributes[:'output_format']
151
+ else
152
+ self.output_format = 'text'
153
+ end
154
+
155
+ if attributes.key?(:'pull_interval')
156
+ self.pull_interval = attributes[:'pull_interval']
157
+ else
158
+ self.pull_interval = '10'
159
+ end
160
+
161
+ if attributes.key?(:'target_tag')
162
+ self.target_tag = attributes[:'target_tag']
163
+ else
164
+ self.target_tag = 'use-existing'
165
+ end
166
+
167
+ if attributes.key?(:'tls_certificate')
168
+ self.tls_certificate = attributes[:'tls_certificate']
169
+ else
170
+ self.tls_certificate = 'use-existing'
171
+ end
172
+
173
+ if attributes.key?(:'token')
174
+ self.token = attributes[:'token']
175
+ end
176
+
177
+ if attributes.key?(:'uid_token')
178
+ self.uid_token = attributes[:'uid_token']
179
+ end
180
+ end
181
+
182
+ # Show invalid properties with the reasons. Usually used together with valid?
183
+ # @return Array for valid properties with the reasons
184
+ def list_invalid_properties
185
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
186
+ invalid_properties = Array.new
187
+ invalid_properties
188
+ end
189
+
190
+ # Check to see if the all the properties in the model are valid
191
+ # @return true if the model is valid
192
+ def valid?
193
+ warn '[DEPRECATED] the `valid?` method is obsolete'
194
+ true
195
+ end
196
+
197
+ # Checks equality by comparing each attribute.
198
+ # @param [Object] Object to be compared
199
+ def ==(o)
200
+ return true if self.equal?(o)
201
+ self.class == o.class &&
202
+ enable == o.enable &&
203
+ enable_tls == o.enable_tls &&
204
+ formatter == o.formatter &&
205
+ host == o.host &&
206
+ json == o.json &&
207
+ network == o.network &&
208
+ output_format == o.output_format &&
209
+ pull_interval == o.pull_interval &&
210
+ target_tag == o.target_tag &&
211
+ tls_certificate == o.tls_certificate &&
212
+ token == o.token &&
213
+ uid_token == o.uid_token
214
+ end
215
+
216
+ # @see the `==` method
217
+ # @param [Object] Object to be compared
218
+ def eql?(o)
219
+ self == o
220
+ end
221
+
222
+ # Calculates hash code according to all attributes.
223
+ # @return [Integer] Hash code
224
+ def hash
225
+ [enable, enable_tls, formatter, host, json, network, output_format, pull_interval, target_tag, tls_certificate, token, uid_token].hash
226
+ end
227
+
228
+ # Builds the object from hash
229
+ # @param [Hash] attributes Model attributes in the form of hash
230
+ # @return [Object] Returns the model itself
231
+ def self.build_from_hash(attributes)
232
+ return nil unless attributes.is_a?(Hash)
233
+ attributes = attributes.transform_keys(&:to_sym)
234
+ transformed_hash = {}
235
+ openapi_types.each_pair do |key, type|
236
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
237
+ transformed_hash["#{key}"] = nil
238
+ elsif type =~ /\AArray<(.*)>/i
239
+ # check to ensure the input is an array given that the attribute
240
+ # is documented as an array but the input is not
241
+ if attributes[attribute_map[key]].is_a?(Array)
242
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
243
+ end
244
+ elsif !attributes[attribute_map[key]].nil?
245
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
246
+ end
247
+ end
248
+ new(transformed_hash)
249
+ end
250
+
251
+ # Deserializes the data based on type
252
+ # @param string type Data type
253
+ # @param string value Value to be deserialized
254
+ # @return [Object] Deserialized data
255
+ def self._deserialize(type, value)
256
+ case type.to_sym
257
+ when :Time
258
+ Time.parse(value)
259
+ when :Date
260
+ Date.parse(value)
261
+ when :String
262
+ value.to_s
263
+ when :Integer
264
+ value.to_i
265
+ when :Float
266
+ value.to_f
267
+ when :Boolean
268
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
269
+ true
270
+ else
271
+ false
272
+ end
273
+ when :Object
274
+ # generic object (usually a Hash), return directly
275
+ value
276
+ when /\AArray<(?<inner_type>.+)>\z/
277
+ inner_type = Regexp.last_match[:inner_type]
278
+ value.map { |v| _deserialize(inner_type, v) }
279
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
280
+ k_type = Regexp.last_match[:k_type]
281
+ v_type = Regexp.last_match[:v_type]
282
+ {}.tap do |hash|
283
+ value.each do |k, v|
284
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
285
+ end
286
+ end
287
+ else # model
288
+ # models (e.g. Pet) or oneOf
289
+ klass = Akeyless.const_get(type)
290
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
291
+ end
292
+ end
293
+
294
+ # Returns the string representation of the object
295
+ # @return [String] String presentation of the object
296
+ def to_s
297
+ to_hash.to_s
298
+ end
299
+
300
+ # to_body is an alias to to_hash (backward compatibility)
301
+ # @return [Hash] Returns the object in the form of hash
302
+ def to_body
303
+ to_hash
304
+ end
305
+
306
+ # Returns the object in the form of hash
307
+ # @return [Hash] Returns the object in the form of hash
308
+ def to_hash
309
+ hash = {}
310
+ self.class.attribute_map.each_pair do |attr, param|
311
+ value = self.send(attr)
312
+ if value.nil?
313
+ is_nullable = self.class.openapi_nullable.include?(attr)
314
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
315
+ end
316
+
317
+ hash[param] = _to_hash(value)
318
+ end
319
+ hash
320
+ end
321
+
322
+ # Outputs non-array value in the form of hash
323
+ # For object, use to_hash. Otherwise, just return the value
324
+ # @param [Object] value Any valid value
325
+ # @return [Hash] Returns the value in the form of hash
326
+ def _to_hash(value)
327
+ if value.is_a?(Array)
328
+ value.compact.map { |v| _to_hash(v) }
329
+ elsif value.is_a?(Hash)
330
+ {}.tap do |hash|
331
+ value.each { |k, v| hash[k] = _to_hash(v) }
332
+ end
333
+ elsif value.respond_to? :to_hash
334
+ value.to_hash
335
+ else
336
+ value
337
+ end
338
+ end
339
+
340
+ end
341
+
342
+ end