akeyless 4.2.3 → 4.2.4

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 (248) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +43 -2
  3. data/docs/AccountGeneralSettings.md +2 -0
  4. data/docs/AwsStorage.md +28 -0
  5. data/docs/AzureStorage.md +28 -0
  6. data/docs/BastionConfigReplyObj.md +28 -0
  7. data/docs/BastionGlobalConf.md +24 -0
  8. data/docs/Configure.md +8 -0
  9. data/docs/Connect.md +2 -2
  10. data/docs/CreateClassicKey.md +8 -0
  11. data/docs/CreateDFCKey.md +8 -0
  12. data/docs/DynamicSecretUpdateArtifactory.md +1 -1
  13. data/docs/DynamicSecretUpdateAws.md +1 -1
  14. data/docs/DynamicSecretUpdateAzure.md +1 -1
  15. data/docs/DynamicSecretUpdateCassandra.md +1 -1
  16. data/docs/DynamicSecretUpdateChef.md +1 -1
  17. data/docs/DynamicSecretUpdateCustom.md +1 -1
  18. data/docs/DynamicSecretUpdateDockerhub.md +1 -1
  19. data/docs/DynamicSecretUpdateEks.md +1 -1
  20. data/docs/DynamicSecretUpdateGcp.md +1 -1
  21. data/docs/DynamicSecretUpdateGithub.md +1 -1
  22. data/docs/DynamicSecretUpdateGitlab.md +1 -1
  23. data/docs/DynamicSecretUpdateGke.md +1 -1
  24. data/docs/DynamicSecretUpdateGoogleWorkspace.md +1 -1
  25. data/docs/DynamicSecretUpdateHanaDb.md +1 -1
  26. data/docs/DynamicSecretUpdateK8s.md +1 -1
  27. data/docs/DynamicSecretUpdateLdap.md +1 -1
  28. data/docs/DynamicSecretUpdateMongoDb.md +1 -1
  29. data/docs/DynamicSecretUpdateMsSql.md +1 -1
  30. data/docs/DynamicSecretUpdateMySql.md +1 -1
  31. data/docs/DynamicSecretUpdateOracleDb.md +1 -1
  32. data/docs/DynamicSecretUpdatePing.md +1 -1
  33. data/docs/DynamicSecretUpdateVenafi.md +1 -1
  34. data/docs/EmailPassAccessRules.md +3 -1
  35. data/docs/EventForwarderCreateEmail.md +2 -2
  36. data/docs/EventForwarderCreateServiceNow.md +1 -1
  37. data/docs/EventForwarderCreateSlack.md +1 -1
  38. data/docs/EventForwarderCreateWebhook.md +1 -1
  39. data/docs/EventForwarderUpdateEmail.md +2 -2
  40. data/docs/EventForwarderUpdateServiceNow.md +1 -1
  41. data/docs/EventForwarderUpdateSlack.md +1 -1
  42. data/docs/EventForwarderUpdateWebhook.md +1 -1
  43. data/docs/GatewayGetRemoteAccess.md +22 -0
  44. data/docs/GatewayUpdateItem.md +2 -0
  45. data/docs/GatewayUpdateRemoteAccess.md +36 -0
  46. data/docs/GatewayUpdateRemoteAccessRdpRecordings.md +46 -0
  47. data/docs/GwUpdateRemoteAccessSessionLogsAwsS3.md +42 -0
  48. data/docs/GwUpdateRemoteAccessSessionLogsAzureAnalytics.md +32 -0
  49. data/docs/GwUpdateRemoteAccessSessionLogsDatadog.md +38 -0
  50. data/docs/GwUpdateRemoteAccessSessionLogsElasticsearch.md +48 -0
  51. data/docs/GwUpdateRemoteAccessSessionLogsGoogleChronicle.md +36 -0
  52. data/docs/GwUpdateRemoteAccessSessionLogsLogstash.md +36 -0
  53. data/docs/GwUpdateRemoteAccessSessionLogsLogzIo.md +32 -0
  54. data/docs/GwUpdateRemoteAccessSessionLogsSplunk.md +42 -0
  55. data/docs/GwUpdateRemoteAccessSessionLogsStdout.md +28 -0
  56. data/docs/GwUpdateRemoteAccessSessionLogsSumologic.md +34 -0
  57. data/docs/GwUpdateRemoteAccessSessionLogsSyslog.md +40 -0
  58. data/docs/ItemGeneralInfo.md +4 -0
  59. data/docs/NextAutoRotationEvent.md +18 -0
  60. data/docs/PasswordExpirationInfo.md +24 -0
  61. data/docs/ResetAccessKey.md +24 -0
  62. data/docs/ResetAuthMethodAccessKeyOutput.md +18 -0
  63. data/docs/RollbackSecret.md +2 -0
  64. data/docs/RotatedSecretCreateAws.md +2 -0
  65. data/docs/RotatedSecretCreateAzure.md +2 -0
  66. data/docs/RotatedSecretCreateCassandra.md +2 -0
  67. data/docs/RotatedSecretCreateCustom.md +2 -0
  68. data/docs/RotatedSecretCreateDockerhub.md +2 -0
  69. data/docs/RotatedSecretCreateGcp.md +2 -0
  70. data/docs/RotatedSecretCreateHanadb.md +2 -0
  71. data/docs/RotatedSecretCreateLdap.md +2 -0
  72. data/docs/RotatedSecretCreateMongodb.md +2 -0
  73. data/docs/RotatedSecretCreateMssql.md +2 -0
  74. data/docs/RotatedSecretCreateMysql.md +2 -0
  75. data/docs/RotatedSecretCreateOracledb.md +2 -0
  76. data/docs/RotatedSecretCreatePostgresql.md +2 -0
  77. data/docs/RotatedSecretCreateRedis.md +2 -0
  78. data/docs/RotatedSecretCreateRedshift.md +2 -0
  79. data/docs/RotatedSecretCreateSnowflake.md +2 -0
  80. data/docs/RotatedSecretCreateSsh.md +2 -0
  81. data/docs/RotatedSecretCreateWindows.md +2 -0
  82. data/docs/RotatedSecretUpdateAws.md +2 -0
  83. data/docs/RotatedSecretUpdateAzure.md +2 -0
  84. data/docs/RotatedSecretUpdateCassandra.md +2 -0
  85. data/docs/RotatedSecretUpdateCustom.md +2 -0
  86. data/docs/RotatedSecretUpdateDockerhub.md +2 -0
  87. data/docs/RotatedSecretUpdateGcp.md +2 -0
  88. data/docs/RotatedSecretUpdateHanadb.md +2 -0
  89. data/docs/RotatedSecretUpdateLdap.md +2 -0
  90. data/docs/RotatedSecretUpdateMongodb.md +2 -0
  91. data/docs/RotatedSecretUpdateMssql.md +2 -0
  92. data/docs/RotatedSecretUpdateMysql.md +2 -0
  93. data/docs/RotatedSecretUpdateOracledb.md +2 -0
  94. data/docs/RotatedSecretUpdatePostgresql.md +2 -0
  95. data/docs/RotatedSecretUpdateRedis.md +2 -0
  96. data/docs/RotatedSecretUpdateRedshift.md +2 -0
  97. data/docs/RotatedSecretUpdateSnowflake.md +2 -0
  98. data/docs/RotatedSecretUpdateSsh.md +2 -0
  99. data/docs/RotatedSecretUpdateWindows.md +2 -0
  100. data/docs/SshBastionConf.md +24 -0
  101. data/docs/SshBastionSessionTermination.md +26 -0
  102. data/docs/UpdateAccountSettings.md +6 -0
  103. data/docs/UpdateItem.md +2 -0
  104. data/docs/UpdateRotationSettings.md +2 -0
  105. data/docs/UpdateTarget.md +1 -1
  106. data/docs/UploadRSA.md +2 -0
  107. data/docs/V2Api.md +880 -1
  108. data/docs/WebBastionConf.md +20 -0
  109. data/docs/WebBastionGuacamole.md +18 -0
  110. data/docs/WebBastionRdpRecord.md +22 -0
  111. data/lib/akeyless/api/v2_api.rb +886 -1
  112. data/lib/akeyless/models/account_general_settings.rb +10 -1
  113. data/lib/akeyless/models/aws_storage.rb +260 -0
  114. data/lib/akeyless/models/azure_storage.rb +260 -0
  115. data/lib/akeyless/models/bastion_config_reply_obj.rb +259 -0
  116. data/lib/akeyless/models/bastion_global_conf.rb +243 -0
  117. data/lib/akeyless/models/configure.rb +41 -1
  118. data/lib/akeyless/models/connect.rb +11 -11
  119. data/lib/akeyless/models/create_classic_key.rb +45 -1
  120. data/lib/akeyless/models/create_dfc_key.rb +45 -1
  121. data/lib/akeyless/models/dynamic_secret_update_artifactory.rb +1 -1
  122. data/lib/akeyless/models/dynamic_secret_update_aws.rb +1 -1
  123. data/lib/akeyless/models/dynamic_secret_update_azure.rb +1 -1
  124. data/lib/akeyless/models/dynamic_secret_update_cassandra.rb +1 -1
  125. data/lib/akeyless/models/dynamic_secret_update_chef.rb +1 -1
  126. data/lib/akeyless/models/dynamic_secret_update_custom.rb +1 -1
  127. data/lib/akeyless/models/dynamic_secret_update_dockerhub.rb +1 -1
  128. data/lib/akeyless/models/dynamic_secret_update_eks.rb +1 -1
  129. data/lib/akeyless/models/dynamic_secret_update_gcp.rb +1 -1
  130. data/lib/akeyless/models/dynamic_secret_update_github.rb +1 -1
  131. data/lib/akeyless/models/dynamic_secret_update_gitlab.rb +1 -1
  132. data/lib/akeyless/models/dynamic_secret_update_gke.rb +1 -1
  133. data/lib/akeyless/models/dynamic_secret_update_google_workspace.rb +1 -1
  134. data/lib/akeyless/models/dynamic_secret_update_hana_db.rb +1 -1
  135. data/lib/akeyless/models/dynamic_secret_update_k8s.rb +1 -1
  136. data/lib/akeyless/models/dynamic_secret_update_ldap.rb +1 -1
  137. data/lib/akeyless/models/dynamic_secret_update_mongo_db.rb +1 -1
  138. data/lib/akeyless/models/dynamic_secret_update_ms_sql.rb +1 -1
  139. data/lib/akeyless/models/dynamic_secret_update_my_sql.rb +1 -1
  140. data/lib/akeyless/models/dynamic_secret_update_oracle_db.rb +1 -1
  141. data/lib/akeyless/models/dynamic_secret_update_ping.rb +1 -1
  142. data/lib/akeyless/models/dynamic_secret_update_venafi.rb +1 -1
  143. data/lib/akeyless/models/email_pass_access_rules.rb +14 -4
  144. data/lib/akeyless/models/event_forwarder_create_email.rb +2 -2
  145. data/lib/akeyless/models/event_forwarder_create_service_now.rb +1 -1
  146. data/lib/akeyless/models/event_forwarder_create_slack.rb +1 -1
  147. data/lib/akeyless/models/event_forwarder_create_webhook.rb +1 -1
  148. data/lib/akeyless/models/event_forwarder_update_email.rb +2 -2
  149. data/lib/akeyless/models/event_forwarder_update_service_now.rb +1 -1
  150. data/lib/akeyless/models/event_forwarder_update_slack.rb +1 -1
  151. data/lib/akeyless/models/event_forwarder_update_webhook.rb +1 -1
  152. data/lib/akeyless/models/gateway_get_remote_access.rb +238 -0
  153. data/lib/akeyless/models/gateway_update_item.rb +13 -1
  154. data/lib/akeyless/models/gateway_update_remote_access.rb +318 -0
  155. data/lib/akeyless/models/gateway_update_remote_access_rdp_recordings.rb +358 -0
  156. data/lib/akeyless/models/gw_update_remote_access_session_logs_aws_s3.rb +346 -0
  157. data/lib/akeyless/models/gw_update_remote_access_session_logs_azure_analytics.rb +294 -0
  158. data/lib/akeyless/models/gw_update_remote_access_session_logs_datadog.rb +330 -0
  159. data/lib/akeyless/models/gw_update_remote_access_session_logs_elasticsearch.rb +376 -0
  160. data/lib/akeyless/models/gw_update_remote_access_session_logs_google_chronicle.rb +314 -0
  161. data/lib/akeyless/models/gw_update_remote_access_session_logs_logstash.rb +316 -0
  162. data/lib/akeyless/models/gw_update_remote_access_session_logs_logz_io.rb +294 -0
  163. data/lib/akeyless/models/gw_update_remote_access_session_logs_splunk.rb +350 -0
  164. data/lib/akeyless/models/gw_update_remote_access_session_logs_stdout.rb +274 -0
  165. data/lib/akeyless/models/gw_update_remote_access_session_logs_sumologic.rb +308 -0
  166. data/lib/akeyless/models/gw_update_remote_access_session_logs_syslog.rb +342 -0
  167. data/lib/akeyless/models/item_general_info.rb +23 -1
  168. data/lib/akeyless/models/next_auto_rotation_event.rb +214 -0
  169. data/lib/akeyless/models/password_expiration_info.rb +242 -0
  170. data/lib/akeyless/models/reset_access_key.rb +255 -0
  171. data/lib/akeyless/models/reset_auth_method_access_key_output.rb +215 -0
  172. data/lib/akeyless/models/rollback_secret.rb +13 -1
  173. data/lib/akeyless/models/rotated_secret_create_aws.rb +13 -1
  174. data/lib/akeyless/models/rotated_secret_create_azure.rb +13 -1
  175. data/lib/akeyless/models/rotated_secret_create_cassandra.rb +13 -1
  176. data/lib/akeyless/models/rotated_secret_create_custom.rb +13 -1
  177. data/lib/akeyless/models/rotated_secret_create_dockerhub.rb +13 -1
  178. data/lib/akeyless/models/rotated_secret_create_gcp.rb +13 -1
  179. data/lib/akeyless/models/rotated_secret_create_hanadb.rb +13 -1
  180. data/lib/akeyless/models/rotated_secret_create_ldap.rb +13 -1
  181. data/lib/akeyless/models/rotated_secret_create_mongodb.rb +13 -1
  182. data/lib/akeyless/models/rotated_secret_create_mssql.rb +13 -1
  183. data/lib/akeyless/models/rotated_secret_create_mysql.rb +13 -1
  184. data/lib/akeyless/models/rotated_secret_create_oracledb.rb +13 -1
  185. data/lib/akeyless/models/rotated_secret_create_postgresql.rb +13 -1
  186. data/lib/akeyless/models/rotated_secret_create_redis.rb +13 -1
  187. data/lib/akeyless/models/rotated_secret_create_redshift.rb +13 -1
  188. data/lib/akeyless/models/rotated_secret_create_snowflake.rb +13 -1
  189. data/lib/akeyless/models/rotated_secret_create_ssh.rb +13 -1
  190. data/lib/akeyless/models/rotated_secret_create_windows.rb +13 -1
  191. data/lib/akeyless/models/rotated_secret_update_aws.rb +13 -1
  192. data/lib/akeyless/models/rotated_secret_update_azure.rb +13 -1
  193. data/lib/akeyless/models/rotated_secret_update_cassandra.rb +13 -1
  194. data/lib/akeyless/models/rotated_secret_update_custom.rb +13 -1
  195. data/lib/akeyless/models/rotated_secret_update_dockerhub.rb +13 -1
  196. data/lib/akeyless/models/rotated_secret_update_gcp.rb +13 -1
  197. data/lib/akeyless/models/rotated_secret_update_hanadb.rb +13 -1
  198. data/lib/akeyless/models/rotated_secret_update_ldap.rb +13 -1
  199. data/lib/akeyless/models/rotated_secret_update_mongodb.rb +13 -1
  200. data/lib/akeyless/models/rotated_secret_update_mssql.rb +13 -1
  201. data/lib/akeyless/models/rotated_secret_update_mysql.rb +13 -1
  202. data/lib/akeyless/models/rotated_secret_update_oracledb.rb +13 -1
  203. data/lib/akeyless/models/rotated_secret_update_postgresql.rb +13 -1
  204. data/lib/akeyless/models/rotated_secret_update_redis.rb +13 -1
  205. data/lib/akeyless/models/rotated_secret_update_redshift.rb +13 -1
  206. data/lib/akeyless/models/rotated_secret_update_snowflake.rb +13 -1
  207. data/lib/akeyless/models/rotated_secret_update_ssh.rb +13 -1
  208. data/lib/akeyless/models/rotated_secret_update_windows.rb +13 -1
  209. data/lib/akeyless/models/ssh_bastion_conf.rb +241 -0
  210. data/lib/akeyless/models/ssh_bastion_session_termination.rb +250 -0
  211. data/lib/akeyless/models/update_account_settings.rb +31 -1
  212. data/lib/akeyless/models/update_item.rb +13 -1
  213. data/lib/akeyless/models/update_rotation_settings.rb +13 -1
  214. data/lib/akeyless/models/update_target.rb +1 -1
  215. data/lib/akeyless/models/upload_rsa.rb +13 -1
  216. data/lib/akeyless/models/web_bastion_conf.rb +223 -0
  217. data/lib/akeyless/models/web_bastion_guacamole.rb +214 -0
  218. data/lib/akeyless/models/web_bastion_rdp_record.rb +232 -0
  219. data/lib/akeyless/version.rb +1 -1
  220. data/lib/akeyless.rb +27 -0
  221. data/spec/models/aws_storage_spec.rb +66 -0
  222. data/spec/models/azure_storage_spec.rb +66 -0
  223. data/spec/models/bastion_config_reply_obj_spec.rb +66 -0
  224. data/spec/models/bastion_global_conf_spec.rb +54 -0
  225. data/spec/models/gateway_get_remote_access_spec.rb +48 -0
  226. data/spec/models/gateway_update_remote_access_rdp_recordings_spec.rb +120 -0
  227. data/spec/models/gateway_update_remote_access_spec.rb +90 -0
  228. data/spec/models/gw_update_remote_access_session_logs_aws_s3_spec.rb +108 -0
  229. data/spec/models/gw_update_remote_access_session_logs_azure_analytics_spec.rb +78 -0
  230. data/spec/models/gw_update_remote_access_session_logs_datadog_spec.rb +96 -0
  231. data/spec/models/gw_update_remote_access_session_logs_elasticsearch_spec.rb +126 -0
  232. data/spec/models/gw_update_remote_access_session_logs_google_chronicle_spec.rb +90 -0
  233. data/spec/models/gw_update_remote_access_session_logs_logstash_spec.rb +90 -0
  234. data/spec/models/gw_update_remote_access_session_logs_logz_io_spec.rb +78 -0
  235. data/spec/models/gw_update_remote_access_session_logs_splunk_spec.rb +108 -0
  236. data/spec/models/gw_update_remote_access_session_logs_stdout_spec.rb +66 -0
  237. data/spec/models/gw_update_remote_access_session_logs_sumologic_spec.rb +84 -0
  238. data/spec/models/gw_update_remote_access_session_logs_syslog_spec.rb +102 -0
  239. data/spec/models/next_auto_rotation_event_spec.rb +36 -0
  240. data/spec/models/password_expiration_info_spec.rb +54 -0
  241. data/spec/models/reset_access_key_spec.rb +54 -0
  242. data/spec/models/reset_auth_method_access_key_output_spec.rb +36 -0
  243. data/spec/models/ssh_bastion_conf_spec.rb +54 -0
  244. data/spec/models/ssh_bastion_session_termination_spec.rb +60 -0
  245. data/spec/models/web_bastion_conf_spec.rb +42 -0
  246. data/spec/models/web_bastion_guacamole_spec.rb +36 -0
  247. data/spec/models/web_bastion_rdp_record_spec.rb +48 -0
  248. metadata +1089 -981
@@ -51,6 +51,9 @@ module Akeyless
51
51
  # username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password)
52
52
  attr_accessor :rotated_username
53
53
 
54
+ # How many days before the rotation of the item would you like to be notified
55
+ attr_accessor :rotation_event_in
56
+
54
57
  # The Hour of the rotation in UTC
55
58
  attr_accessor :rotation_hour
56
59
 
@@ -96,6 +99,7 @@ module Akeyless
96
99
  :'rotate_after_disconnect' => :'rotate-after-disconnect',
97
100
  :'rotated_password' => :'rotated-password',
98
101
  :'rotated_username' => :'rotated-username',
102
+ :'rotation_event_in' => :'rotation-event-in',
99
103
  :'rotation_hour' => :'rotation-hour',
100
104
  :'rotation_interval' => :'rotation-interval',
101
105
  :'rotator_type' => :'rotator-type',
@@ -129,6 +133,7 @@ module Akeyless
129
133
  :'rotate_after_disconnect' => :'String',
130
134
  :'rotated_password' => :'String',
131
135
  :'rotated_username' => :'String',
136
+ :'rotation_event_in' => :'Array<String>',
132
137
  :'rotation_hour' => :'Integer',
133
138
  :'rotation_interval' => :'String',
134
139
  :'rotator_type' => :'String',
@@ -219,6 +224,12 @@ module Akeyless
219
224
  self.rotated_username = attributes[:'rotated_username']
220
225
  end
221
226
 
227
+ if attributes.key?(:'rotation_event_in')
228
+ if (value = attributes[:'rotation_event_in']).is_a?(Array)
229
+ self.rotation_event_in = value
230
+ end
231
+ end
232
+
222
233
  if attributes.key?(:'rotation_hour')
223
234
  self.rotation_hour = attributes[:'rotation_hour']
224
235
  end
@@ -315,6 +326,7 @@ module Akeyless
315
326
  rotate_after_disconnect == o.rotate_after_disconnect &&
316
327
  rotated_password == o.rotated_password &&
317
328
  rotated_username == o.rotated_username &&
329
+ rotation_event_in == o.rotation_event_in &&
318
330
  rotation_hour == o.rotation_hour &&
319
331
  rotation_interval == o.rotation_interval &&
320
332
  rotator_type == o.rotator_type &&
@@ -336,7 +348,7 @@ module Akeyless
336
348
  # Calculates hash code according to all attributes.
337
349
  # @return [Integer] Hash code
338
350
  def hash
339
- [authentication_credentials, auto_rotate, delete_protection, description, json, key, max_versions, name, password_length, rotate_after_disconnect, rotated_password, rotated_username, rotation_hour, rotation_interval, rotator_type, secure_access_db_name, secure_access_enable, secure_access_host, tags, target_name, token, uid_token].hash
351
+ [authentication_credentials, auto_rotate, delete_protection, description, json, key, max_versions, name, password_length, rotate_after_disconnect, rotated_password, rotated_username, rotation_event_in, rotation_hour, rotation_interval, rotator_type, secure_access_db_name, secure_access_enable, secure_access_host, tags, target_name, token, uid_token].hash
340
352
  end
341
353
 
342
354
  # Builds the object from hash
@@ -48,6 +48,9 @@ module Akeyless
48
48
  # username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password)
49
49
  attr_accessor :rotated_username
50
50
 
51
+ # How many days before the rotation of the item would you like to be notified
52
+ attr_accessor :rotation_event_in
53
+
51
54
  # The Hour of the rotation in UTC
52
55
  attr_accessor :rotation_hour
53
56
 
@@ -83,6 +86,7 @@ module Akeyless
83
86
  :'password_length' => :'password-length',
84
87
  :'rotated_password' => :'rotated-password',
85
88
  :'rotated_username' => :'rotated-username',
89
+ :'rotation_event_in' => :'rotation-event-in',
86
90
  :'rotation_hour' => :'rotation-hour',
87
91
  :'rotation_interval' => :'rotation-interval',
88
92
  :'rotator_type' => :'rotator-type',
@@ -112,6 +116,7 @@ module Akeyless
112
116
  :'password_length' => :'String',
113
117
  :'rotated_password' => :'String',
114
118
  :'rotated_username' => :'String',
119
+ :'rotation_event_in' => :'Array<String>',
115
120
  :'rotation_hour' => :'Integer',
116
121
  :'rotation_interval' => :'String',
117
122
  :'rotator_type' => :'String',
@@ -193,6 +198,12 @@ module Akeyless
193
198
  self.rotated_username = attributes[:'rotated_username']
194
199
  end
195
200
 
201
+ if attributes.key?(:'rotation_event_in')
202
+ if (value = attributes[:'rotation_event_in']).is_a?(Array)
203
+ self.rotation_event_in = value
204
+ end
205
+ end
206
+
196
207
  if attributes.key?(:'rotation_hour')
197
208
  self.rotation_hour = attributes[:'rotation_hour']
198
209
  end
@@ -274,6 +285,7 @@ module Akeyless
274
285
  password_length == o.password_length &&
275
286
  rotated_password == o.rotated_password &&
276
287
  rotated_username == o.rotated_username &&
288
+ rotation_event_in == o.rotation_event_in &&
277
289
  rotation_hour == o.rotation_hour &&
278
290
  rotation_interval == o.rotation_interval &&
279
291
  rotator_type == o.rotator_type &&
@@ -292,7 +304,7 @@ module Akeyless
292
304
  # Calculates hash code according to all attributes.
293
305
  # @return [Integer] Hash code
294
306
  def hash
295
- [authentication_credentials, auto_rotate, delete_protection, description, json, key, max_versions, name, password_length, rotated_password, rotated_username, rotation_hour, rotation_interval, rotator_type, tags, target_name, token, uid_token].hash
307
+ [authentication_credentials, auto_rotate, delete_protection, description, json, key, max_versions, name, password_length, rotated_password, rotated_username, rotation_event_in, rotation_hour, rotation_interval, rotator_type, tags, target_name, token, uid_token].hash
296
308
  end
297
309
 
298
310
  # Builds the object from hash
@@ -51,6 +51,9 @@ module Akeyless
51
51
  # username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password)
52
52
  attr_accessor :rotated_username
53
53
 
54
+ # How many days before the rotation of the item would you like to be notified
55
+ attr_accessor :rotation_event_in
56
+
54
57
  # The Hour of the rotation in UTC
55
58
  attr_accessor :rotation_hour
56
59
 
@@ -114,6 +117,7 @@ module Akeyless
114
117
  :'rotate_after_disconnect' => :'rotate-after-disconnect',
115
118
  :'rotated_password' => :'rotated-password',
116
119
  :'rotated_username' => :'rotated-username',
120
+ :'rotation_event_in' => :'rotation-event-in',
117
121
  :'rotation_hour' => :'rotation-hour',
118
122
  :'rotation_interval' => :'rotation-interval',
119
123
  :'rotator_custom_cmd' => :'rotator-custom-cmd',
@@ -153,6 +157,7 @@ module Akeyless
153
157
  :'rotate_after_disconnect' => :'String',
154
158
  :'rotated_password' => :'String',
155
159
  :'rotated_username' => :'String',
160
+ :'rotation_event_in' => :'Array<String>',
156
161
  :'rotation_hour' => :'Integer',
157
162
  :'rotation_interval' => :'String',
158
163
  :'rotator_custom_cmd' => :'String',
@@ -249,6 +254,12 @@ module Akeyless
249
254
  self.rotated_username = attributes[:'rotated_username']
250
255
  end
251
256
 
257
+ if attributes.key?(:'rotation_event_in')
258
+ if (value = attributes[:'rotation_event_in']).is_a?(Array)
259
+ self.rotation_event_in = value
260
+ end
261
+ end
262
+
252
263
  if attributes.key?(:'rotation_hour')
253
264
  self.rotation_hour = attributes[:'rotation_hour']
254
265
  end
@@ -371,6 +382,7 @@ module Akeyless
371
382
  rotate_after_disconnect == o.rotate_after_disconnect &&
372
383
  rotated_password == o.rotated_password &&
373
384
  rotated_username == o.rotated_username &&
385
+ rotation_event_in == o.rotation_event_in &&
374
386
  rotation_hour == o.rotation_hour &&
375
387
  rotation_interval == o.rotation_interval &&
376
388
  rotator_custom_cmd == o.rotator_custom_cmd &&
@@ -398,7 +410,7 @@ module Akeyless
398
410
  # Calculates hash code according to all attributes.
399
411
  # @return [Integer] Hash code
400
412
  def hash
401
- [authentication_credentials, auto_rotate, delete_protection, description, json, key, max_versions, name, password_length, rotate_after_disconnect, rotated_password, rotated_username, rotation_hour, rotation_interval, rotator_custom_cmd, rotator_type, same_password, secure_access_allow_external_user, secure_access_bastion_issuer, secure_access_enable, secure_access_host, secure_access_rdp_domain, secure_access_rdp_user, secure_access_ssh_user, tags, target_name, token, uid_token].hash
413
+ [authentication_credentials, auto_rotate, delete_protection, description, json, key, max_versions, name, password_length, rotate_after_disconnect, rotated_password, rotated_username, rotation_event_in, rotation_hour, rotation_interval, rotator_custom_cmd, rotator_type, same_password, secure_access_allow_external_user, secure_access_bastion_issuer, secure_access_enable, secure_access_host, secure_access_rdp_domain, secure_access_rdp_user, secure_access_ssh_user, tags, target_name, token, uid_token].hash
402
414
  end
403
415
 
404
416
  # Builds the object from hash
@@ -51,6 +51,9 @@ module Akeyless
51
51
  # username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password)
52
52
  attr_accessor :rotated_username
53
53
 
54
+ # How many days before the rotation of the item would you like to be notified
55
+ attr_accessor :rotation_event_in
56
+
54
57
  # The Hour of the rotation in UTC
55
58
  attr_accessor :rotation_hour
56
59
 
@@ -105,6 +108,7 @@ module Akeyless
105
108
  :'rotate_after_disconnect' => :'rotate-after-disconnect',
106
109
  :'rotated_password' => :'rotated-password',
107
110
  :'rotated_username' => :'rotated-username',
111
+ :'rotation_event_in' => :'rotation-event-in',
108
112
  :'rotation_hour' => :'rotation-hour',
109
113
  :'rotation_interval' => :'rotation-interval',
110
114
  :'rotator_type' => :'rotator-type',
@@ -141,6 +145,7 @@ module Akeyless
141
145
  :'rotate_after_disconnect' => :'String',
142
146
  :'rotated_password' => :'String',
143
147
  :'rotated_username' => :'String',
148
+ :'rotation_event_in' => :'Array<String>',
144
149
  :'rotation_hour' => :'Integer',
145
150
  :'rotation_interval' => :'String',
146
151
  :'rotator_type' => :'String',
@@ -234,6 +239,12 @@ module Akeyless
234
239
  self.rotated_username = attributes[:'rotated_username']
235
240
  end
236
241
 
242
+ if attributes.key?(:'rotation_event_in')
243
+ if (value = attributes[:'rotation_event_in']).is_a?(Array)
244
+ self.rotation_event_in = value
245
+ end
246
+ end
247
+
237
248
  if attributes.key?(:'rotation_hour')
238
249
  self.rotation_hour = attributes[:'rotation_hour']
239
250
  end
@@ -344,6 +355,7 @@ module Akeyless
344
355
  rotate_after_disconnect == o.rotate_after_disconnect &&
345
356
  rotated_password == o.rotated_password &&
346
357
  rotated_username == o.rotated_username &&
358
+ rotation_event_in == o.rotation_event_in &&
347
359
  rotation_hour == o.rotation_hour &&
348
360
  rotation_interval == o.rotation_interval &&
349
361
  rotator_type == o.rotator_type &&
@@ -368,7 +380,7 @@ module Akeyless
368
380
  # Calculates hash code according to all attributes.
369
381
  # @return [Integer] Hash code
370
382
  def hash
371
- [authentication_credentials, auto_rotate, delete_protection, description, json, key, max_versions, name, password_length, rotate_after_disconnect, rotated_password, rotated_username, rotation_hour, rotation_interval, rotator_type, same_password, secure_access_allow_external_user, secure_access_enable, secure_access_host, secure_access_rdp_domain, secure_access_rdp_user, tags, target_name, token, uid_token].hash
383
+ [authentication_credentials, auto_rotate, delete_protection, description, json, key, max_versions, name, password_length, rotate_after_disconnect, rotated_password, rotated_username, rotation_event_in, rotation_hour, rotation_interval, rotator_type, same_password, secure_access_allow_external_user, secure_access_enable, secure_access_host, secure_access_rdp_domain, secure_access_rdp_user, tags, target_name, token, uid_token].hash
372
384
  end
373
385
 
374
386
  # Builds the object from hash
@@ -69,6 +69,9 @@ module Akeyless
69
69
  # Rotate the value of the secret after SRA session ends [true/false]
70
70
  attr_accessor :rotate_after_disconnect
71
71
 
72
+ # How many days before the rotation of the item would you like to be notified
73
+ attr_accessor :rotation_event_in
74
+
72
75
  # The Hour of the rotation in UTC
73
76
  attr_accessor :rotation_hour
74
77
 
@@ -114,6 +117,7 @@ module Akeyless
114
117
  :'password_length' => :'password-length',
115
118
  :'rm_tag' => :'rm-tag',
116
119
  :'rotate_after_disconnect' => :'rotate-after-disconnect',
120
+ :'rotation_event_in' => :'rotation-event-in',
117
121
  :'rotation_hour' => :'rotation-hour',
118
122
  :'rotation_interval' => :'rotation-interval',
119
123
  :'secure_access_aws_account_id' => :'secure-access-aws-account-id',
@@ -151,6 +155,7 @@ module Akeyless
151
155
  :'password_length' => :'String',
152
156
  :'rm_tag' => :'Array<String>',
153
157
  :'rotate_after_disconnect' => :'String',
158
+ :'rotation_event_in' => :'Array<String>',
154
159
  :'rotation_hour' => :'Integer',
155
160
  :'rotation_interval' => :'String',
156
161
  :'secure_access_aws_account_id' => :'String',
@@ -271,6 +276,12 @@ module Akeyless
271
276
  self.rotate_after_disconnect = 'false'
272
277
  end
273
278
 
279
+ if attributes.key?(:'rotation_event_in')
280
+ if (value = attributes[:'rotation_event_in']).is_a?(Array)
281
+ self.rotation_event_in = value
282
+ end
283
+ end
284
+
274
285
  if attributes.key?(:'rotation_hour')
275
286
  self.rotation_hour = attributes[:'rotation_hour']
276
287
  end
@@ -347,6 +358,7 @@ module Akeyless
347
358
  password_length == o.password_length &&
348
359
  rm_tag == o.rm_tag &&
349
360
  rotate_after_disconnect == o.rotate_after_disconnect &&
361
+ rotation_event_in == o.rotation_event_in &&
350
362
  rotation_hour == o.rotation_hour &&
351
363
  rotation_interval == o.rotation_interval &&
352
364
  secure_access_aws_account_id == o.secure_access_aws_account_id &&
@@ -366,7 +378,7 @@ module Akeyless
366
378
  # Calculates hash code according to all attributes.
367
379
  # @return [Integer] Hash code
368
380
  def hash
369
- [add_tag, api_id, api_key, authentication_credentials, auto_rotate, aws_region, delete_protection, description, grace_rotation, json, keep_prev_version, key, max_versions, name, new_name, password_length, rm_tag, rotate_after_disconnect, rotation_hour, rotation_interval, secure_access_aws_account_id, secure_access_aws_native_cli, secure_access_bastion_issuer, secure_access_enable, token, uid_token].hash
381
+ [add_tag, api_id, api_key, authentication_credentials, auto_rotate, aws_region, delete_protection, description, grace_rotation, json, keep_prev_version, key, max_versions, name, new_name, password_length, rm_tag, rotate_after_disconnect, rotation_event_in, rotation_hour, rotation_interval, secure_access_aws_account_id, secure_access_aws_native_cli, secure_access_bastion_issuer, secure_access_enable, token, uid_token].hash
370
382
  end
371
383
 
372
384
  # Builds the object from hash
@@ -66,6 +66,9 @@ module Akeyless
66
66
  # Rotate the value of the secret after SRA session ends [true/false]
67
67
  attr_accessor :rotate_after_disconnect
68
68
 
69
+ # How many days before the rotation of the item would you like to be notified
70
+ attr_accessor :rotation_event_in
71
+
69
72
  # The Hour of the rotation in UTC
70
73
  attr_accessor :rotation_hour
71
74
 
@@ -122,6 +125,7 @@ module Akeyless
122
125
  :'password_length' => :'password-length',
123
126
  :'rm_tag' => :'rm-tag',
124
127
  :'rotate_after_disconnect' => :'rotate-after-disconnect',
128
+ :'rotation_event_in' => :'rotation-event-in',
125
129
  :'rotation_hour' => :'rotation-hour',
126
130
  :'rotation_interval' => :'rotation-interval',
127
131
  :'secure_access_disable_concurrent_connections' => :'secure-access-disable-concurrent-connections',
@@ -162,6 +166,7 @@ module Akeyless
162
166
  :'password_length' => :'String',
163
167
  :'rm_tag' => :'Array<String>',
164
168
  :'rotate_after_disconnect' => :'String',
169
+ :'rotation_event_in' => :'Array<String>',
165
170
  :'rotation_hour' => :'Integer',
166
171
  :'rotation_interval' => :'String',
167
172
  :'secure_access_disable_concurrent_connections' => :'Boolean',
@@ -280,6 +285,12 @@ module Akeyless
280
285
  self.rotate_after_disconnect = 'false'
281
286
  end
282
287
 
288
+ if attributes.key?(:'rotation_event_in')
289
+ if (value = attributes[:'rotation_event_in']).is_a?(Array)
290
+ self.rotation_event_in = value
291
+ end
292
+ end
293
+
283
294
  if attributes.key?(:'rotation_hour')
284
295
  self.rotation_hour = attributes[:'rotation_hour']
285
296
  end
@@ -377,6 +388,7 @@ module Akeyless
377
388
  password_length == o.password_length &&
378
389
  rm_tag == o.rm_tag &&
379
390
  rotate_after_disconnect == o.rotate_after_disconnect &&
391
+ rotation_event_in == o.rotation_event_in &&
380
392
  rotation_hour == o.rotation_hour &&
381
393
  rotation_interval == o.rotation_interval &&
382
394
  secure_access_disable_concurrent_connections == o.secure_access_disable_concurrent_connections &&
@@ -400,7 +412,7 @@ module Akeyless
400
412
  # Calculates hash code according to all attributes.
401
413
  # @return [Integer] Hash code
402
414
  def hash
403
- [add_tag, api_id, api_key, application_id, authentication_credentials, auto_rotate, delete_protection, description, json, keep_prev_version, key, max_versions, name, new_name, password_length, rm_tag, rotate_after_disconnect, rotation_hour, rotation_interval, secure_access_disable_concurrent_connections, secure_access_enable, secure_access_url, secure_access_web, secure_access_web_browsing, secure_access_web_proxy, storage_account_key_name, token, uid_token, username].hash
415
+ [add_tag, api_id, api_key, application_id, authentication_credentials, auto_rotate, delete_protection, description, json, keep_prev_version, key, max_versions, name, new_name, password_length, rm_tag, rotate_after_disconnect, rotation_event_in, rotation_hour, rotation_interval, secure_access_disable_concurrent_connections, secure_access_enable, secure_access_url, secure_access_web, secure_access_web_browsing, secure_access_web_proxy, storage_account_key_name, token, uid_token, username].hash
404
416
  end
405
417
 
406
418
  # Builds the object from hash
@@ -60,6 +60,9 @@ module Akeyless
60
60
  # username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password)
61
61
  attr_accessor :rotated_username
62
62
 
63
+ # How many days before the rotation of the item would you like to be notified
64
+ attr_accessor :rotation_event_in
65
+
63
66
  # The Hour of the rotation in UTC
64
67
  attr_accessor :rotation_hour
65
68
 
@@ -90,6 +93,7 @@ module Akeyless
90
93
  :'rm_tag' => :'rm-tag',
91
94
  :'rotated_password' => :'rotated-password',
92
95
  :'rotated_username' => :'rotated-username',
96
+ :'rotation_event_in' => :'rotation-event-in',
93
97
  :'rotation_hour' => :'rotation-hour',
94
98
  :'rotation_interval' => :'rotation-interval',
95
99
  :'token' => :'token',
@@ -120,6 +124,7 @@ module Akeyless
120
124
  :'rm_tag' => :'Array<String>',
121
125
  :'rotated_password' => :'String',
122
126
  :'rotated_username' => :'String',
127
+ :'rotation_event_in' => :'Array<String>',
123
128
  :'rotation_hour' => :'Integer',
124
129
  :'rotation_interval' => :'String',
125
130
  :'token' => :'String',
@@ -220,6 +225,12 @@ module Akeyless
220
225
  self.rotated_username = attributes[:'rotated_username']
221
226
  end
222
227
 
228
+ if attributes.key?(:'rotation_event_in')
229
+ if (value = attributes[:'rotation_event_in']).is_a?(Array)
230
+ self.rotation_event_in = value
231
+ end
232
+ end
233
+
223
234
  if attributes.key?(:'rotation_hour')
224
235
  self.rotation_hour = attributes[:'rotation_hour']
225
236
  end
@@ -277,6 +288,7 @@ module Akeyless
277
288
  rm_tag == o.rm_tag &&
278
289
  rotated_password == o.rotated_password &&
279
290
  rotated_username == o.rotated_username &&
291
+ rotation_event_in == o.rotation_event_in &&
280
292
  rotation_hour == o.rotation_hour &&
281
293
  rotation_interval == o.rotation_interval &&
282
294
  token == o.token &&
@@ -292,7 +304,7 @@ module Akeyless
292
304
  # Calculates hash code according to all attributes.
293
305
  # @return [Integer] Hash code
294
306
  def hash
295
- [add_tag, authentication_credentials, auto_rotate, delete_protection, description, json, keep_prev_version, key, max_versions, name, new_name, password_length, rm_tag, rotated_password, rotated_username, rotation_hour, rotation_interval, token, uid_token].hash
307
+ [add_tag, authentication_credentials, auto_rotate, delete_protection, description, json, keep_prev_version, key, max_versions, name, new_name, password_length, rm_tag, rotated_password, rotated_username, rotation_event_in, rotation_hour, rotation_interval, token, uid_token].hash
296
308
  end
297
309
 
298
310
  # Builds the object from hash
@@ -60,6 +60,9 @@ module Akeyless
60
60
  # Rotate the value of the secret after SRA session ends [true/false]
61
61
  attr_accessor :rotate_after_disconnect
62
62
 
63
+ # How many days before the rotation of the item would you like to be notified
64
+ attr_accessor :rotation_event_in
65
+
63
66
  # The Hour of the rotation in UTC
64
67
  attr_accessor :rotation_hour
65
68
 
@@ -126,6 +129,7 @@ module Akeyless
126
129
  :'password_length' => :'password-length',
127
130
  :'rm_tag' => :'rm-tag',
128
131
  :'rotate_after_disconnect' => :'rotate-after-disconnect',
132
+ :'rotation_event_in' => :'rotation-event-in',
129
133
  :'rotation_hour' => :'rotation-hour',
130
134
  :'rotation_interval' => :'rotation-interval',
131
135
  :'secure_access_allow_external_user' => :'secure-access-allow-external-user',
@@ -168,6 +172,7 @@ module Akeyless
168
172
  :'password_length' => :'String',
169
173
  :'rm_tag' => :'Array<String>',
170
174
  :'rotate_after_disconnect' => :'String',
175
+ :'rotation_event_in' => :'Array<String>',
171
176
  :'rotation_hour' => :'Integer',
172
177
  :'rotation_interval' => :'String',
173
178
  :'secure_access_allow_external_user' => :'Boolean',
@@ -282,6 +287,12 @@ module Akeyless
282
287
  self.rotate_after_disconnect = 'false'
283
288
  end
284
289
 
290
+ if attributes.key?(:'rotation_event_in')
291
+ if (value = attributes[:'rotation_event_in']).is_a?(Array)
292
+ self.rotation_event_in = value
293
+ end
294
+ end
295
+
285
296
  if attributes.key?(:'rotation_hour')
286
297
  self.rotation_hour = attributes[:'rotation_hour']
287
298
  end
@@ -397,6 +408,7 @@ module Akeyless
397
408
  password_length == o.password_length &&
398
409
  rm_tag == o.rm_tag &&
399
410
  rotate_after_disconnect == o.rotate_after_disconnect &&
411
+ rotation_event_in == o.rotation_event_in &&
400
412
  rotation_hour == o.rotation_hour &&
401
413
  rotation_interval == o.rotation_interval &&
402
414
  secure_access_allow_external_user == o.secure_access_allow_external_user &&
@@ -424,7 +436,7 @@ module Akeyless
424
436
  # Calculates hash code according to all attributes.
425
437
  # @return [Integer] Hash code
426
438
  def hash
427
- [add_tag, authentication_credentials, auto_rotate, custom_payload, delete_protection, description, json, keep_prev_version, key, max_versions, name, new_name, password_length, rm_tag, rotate_after_disconnect, rotation_hour, rotation_interval, secure_access_allow_external_user, secure_access_bastion_issuer, secure_access_enable, secure_access_host, secure_access_rdp_domain, secure_access_rdp_user, secure_access_ssh_user, secure_access_url, secure_access_web, secure_access_web_browsing, secure_access_web_proxy, timeout_sec, token, uid_token].hash
439
+ [add_tag, authentication_credentials, auto_rotate, custom_payload, delete_protection, description, json, keep_prev_version, key, max_versions, name, new_name, password_length, rm_tag, rotate_after_disconnect, rotation_event_in, rotation_hour, rotation_interval, secure_access_allow_external_user, secure_access_bastion_issuer, secure_access_enable, secure_access_host, secure_access_rdp_domain, secure_access_rdp_user, secure_access_ssh_user, secure_access_url, secure_access_web, secure_access_web_browsing, secure_access_web_proxy, timeout_sec, token, uid_token].hash
428
440
  end
429
441
 
430
442
  # Builds the object from hash
@@ -54,6 +54,9 @@ module Akeyless
54
54
  # List of the existent tags that will be removed from this item
55
55
  attr_accessor :rm_tag
56
56
 
57
+ # How many days before the rotation of the item would you like to be notified
58
+ attr_accessor :rotation_event_in
59
+
57
60
  # The Hour of the rotation in UTC
58
61
  attr_accessor :rotation_hour
59
62
 
@@ -82,6 +85,7 @@ module Akeyless
82
85
  :'new_name' => :'new-name',
83
86
  :'password_length' => :'password-length',
84
87
  :'rm_tag' => :'rm-tag',
88
+ :'rotation_event_in' => :'rotation-event-in',
85
89
  :'rotation_hour' => :'rotation-hour',
86
90
  :'rotation_interval' => :'rotation-interval',
87
91
  :'token' => :'token',
@@ -110,6 +114,7 @@ module Akeyless
110
114
  :'new_name' => :'String',
111
115
  :'password_length' => :'String',
112
116
  :'rm_tag' => :'Array<String>',
117
+ :'rotation_event_in' => :'Array<String>',
113
118
  :'rotation_hour' => :'Integer',
114
119
  :'rotation_interval' => :'String',
115
120
  :'token' => :'String',
@@ -202,6 +207,12 @@ module Akeyless
202
207
  end
203
208
  end
204
209
 
210
+ if attributes.key?(:'rotation_event_in')
211
+ if (value = attributes[:'rotation_event_in']).is_a?(Array)
212
+ self.rotation_event_in = value
213
+ end
214
+ end
215
+
205
216
  if attributes.key?(:'rotation_hour')
206
217
  self.rotation_hour = attributes[:'rotation_hour']
207
218
  end
@@ -257,6 +268,7 @@ module Akeyless
257
268
  new_name == o.new_name &&
258
269
  password_length == o.password_length &&
259
270
  rm_tag == o.rm_tag &&
271
+ rotation_event_in == o.rotation_event_in &&
260
272
  rotation_hour == o.rotation_hour &&
261
273
  rotation_interval == o.rotation_interval &&
262
274
  token == o.token &&
@@ -272,7 +284,7 @@ module Akeyless
272
284
  # Calculates hash code according to all attributes.
273
285
  # @return [Integer] Hash code
274
286
  def hash
275
- [add_tag, authentication_credentials, auto_rotate, delete_protection, description, json, keep_prev_version, key, max_versions, name, new_name, password_length, rm_tag, rotation_hour, rotation_interval, token, uid_token].hash
287
+ [add_tag, authentication_credentials, auto_rotate, delete_protection, description, json, keep_prev_version, key, max_versions, name, new_name, password_length, rm_tag, rotation_event_in, rotation_hour, rotation_interval, token, uid_token].hash
276
288
  end
277
289
 
278
290
  # Builds the object from hash
@@ -63,6 +63,9 @@ module Akeyless
63
63
  # List of the existent tags that will be removed from this item
64
64
  attr_accessor :rm_tag
65
65
 
66
+ # How many days before the rotation of the item would you like to be notified
67
+ attr_accessor :rotation_event_in
68
+
66
69
  # The Hour of the rotation in UTC
67
70
  attr_accessor :rotation_hour
68
71
 
@@ -97,6 +100,7 @@ module Akeyless
97
100
  :'new_name' => :'new-name',
98
101
  :'password_length' => :'password-length',
99
102
  :'rm_tag' => :'rm-tag',
103
+ :'rotation_event_in' => :'rotation-event-in',
100
104
  :'rotation_hour' => :'rotation-hour',
101
105
  :'rotation_interval' => :'rotation-interval',
102
106
  :'rotator_type' => :'rotator-type',
@@ -129,6 +133,7 @@ module Akeyless
129
133
  :'new_name' => :'String',
130
134
  :'password_length' => :'String',
131
135
  :'rm_tag' => :'Array<String>',
136
+ :'rotation_event_in' => :'Array<String>',
132
137
  :'rotation_hour' => :'Integer',
133
138
  :'rotation_interval' => :'String',
134
139
  :'rotator_type' => :'String',
@@ -234,6 +239,12 @@ module Akeyless
234
239
  end
235
240
  end
236
241
 
242
+ if attributes.key?(:'rotation_event_in')
243
+ if (value = attributes[:'rotation_event_in']).is_a?(Array)
244
+ self.rotation_event_in = value
245
+ end
246
+ end
247
+
237
248
  if attributes.key?(:'rotation_hour')
238
249
  self.rotation_hour = attributes[:'rotation_hour']
239
250
  end
@@ -303,6 +314,7 @@ module Akeyless
303
314
  new_name == o.new_name &&
304
315
  password_length == o.password_length &&
305
316
  rm_tag == o.rm_tag &&
317
+ rotation_event_in == o.rotation_event_in &&
306
318
  rotation_hour == o.rotation_hour &&
307
319
  rotation_interval == o.rotation_interval &&
308
320
  rotator_type == o.rotator_type &&
@@ -319,7 +331,7 @@ module Akeyless
319
331
  # Calculates hash code according to all attributes.
320
332
  # @return [Integer] Hash code
321
333
  def hash
322
- [add_tag, authentication_credentials, auto_rotate, delete_protection, description, gcp_key, gcp_service_account_email, gcp_service_account_key_id, json, keep_prev_version, key, max_versions, name, new_name, password_length, rm_tag, rotation_hour, rotation_interval, rotator_type, token, uid_token].hash
334
+ [add_tag, authentication_credentials, auto_rotate, delete_protection, description, gcp_key, gcp_service_account_email, gcp_service_account_key_id, json, keep_prev_version, key, max_versions, name, new_name, password_length, rm_tag, rotation_event_in, rotation_hour, rotation_interval, rotator_type, token, uid_token].hash
323
335
  end
324
336
 
325
337
  # Builds the object from hash
@@ -60,6 +60,9 @@ module Akeyless
60
60
  # username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password)
61
61
  attr_accessor :rotated_username
62
62
 
63
+ # How many days before the rotation of the item would you like to be notified
64
+ attr_accessor :rotation_event_in
65
+
63
66
  # The Hour of the rotation in UTC
64
67
  attr_accessor :rotation_hour
65
68
 
@@ -90,6 +93,7 @@ module Akeyless
90
93
  :'rm_tag' => :'rm-tag',
91
94
  :'rotated_password' => :'rotated-password',
92
95
  :'rotated_username' => :'rotated-username',
96
+ :'rotation_event_in' => :'rotation-event-in',
93
97
  :'rotation_hour' => :'rotation-hour',
94
98
  :'rotation_interval' => :'rotation-interval',
95
99
  :'token' => :'token',
@@ -120,6 +124,7 @@ module Akeyless
120
124
  :'rm_tag' => :'Array<String>',
121
125
  :'rotated_password' => :'String',
122
126
  :'rotated_username' => :'String',
127
+ :'rotation_event_in' => :'Array<String>',
123
128
  :'rotation_hour' => :'Integer',
124
129
  :'rotation_interval' => :'String',
125
130
  :'token' => :'String',
@@ -220,6 +225,12 @@ module Akeyless
220
225
  self.rotated_username = attributes[:'rotated_username']
221
226
  end
222
227
 
228
+ if attributes.key?(:'rotation_event_in')
229
+ if (value = attributes[:'rotation_event_in']).is_a?(Array)
230
+ self.rotation_event_in = value
231
+ end
232
+ end
233
+
223
234
  if attributes.key?(:'rotation_hour')
224
235
  self.rotation_hour = attributes[:'rotation_hour']
225
236
  end
@@ -277,6 +288,7 @@ module Akeyless
277
288
  rm_tag == o.rm_tag &&
278
289
  rotated_password == o.rotated_password &&
279
290
  rotated_username == o.rotated_username &&
291
+ rotation_event_in == o.rotation_event_in &&
280
292
  rotation_hour == o.rotation_hour &&
281
293
  rotation_interval == o.rotation_interval &&
282
294
  token == o.token &&
@@ -292,7 +304,7 @@ module Akeyless
292
304
  # Calculates hash code according to all attributes.
293
305
  # @return [Integer] Hash code
294
306
  def hash
295
- [add_tag, authentication_credentials, auto_rotate, delete_protection, description, json, keep_prev_version, key, max_versions, name, new_name, password_length, rm_tag, rotated_password, rotated_username, rotation_hour, rotation_interval, token, uid_token].hash
307
+ [add_tag, authentication_credentials, auto_rotate, delete_protection, description, json, keep_prev_version, key, max_versions, name, new_name, password_length, rm_tag, rotated_password, rotated_username, rotation_event_in, rotation_hour, rotation_interval, token, uid_token].hash
296
308
  end
297
309
 
298
310
  # Builds the object from hash