akeyless 5.0.40 → 5.0.41

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 (214) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +20 -1
  3. data/docs/AccountGeneralSettings.md +2 -0
  4. data/docs/AnthropicTargetDetails.md +15 -1
  5. data/docs/AtlassianTargetDetails.md +46 -0
  6. data/docs/Auth.md +2 -0
  7. data/docs/AuthMethod.md +2 -0
  8. data/docs/AuthMethodCreateAliCloud.md +2 -0
  9. data/docs/AuthMethodCreateApiKey.md +2 -0
  10. data/docs/AuthMethodCreateAwsIam.md +2 -0
  11. data/docs/AuthMethodCreateAzureAD.md +2 -0
  12. data/docs/AuthMethodCreateCert.md +2 -0
  13. data/docs/AuthMethodCreateEmail.md +2 -0
  14. data/docs/AuthMethodCreateGcp.md +2 -0
  15. data/docs/AuthMethodCreateK8s.md +2 -0
  16. data/docs/AuthMethodCreateKerberos.md +2 -0
  17. data/docs/AuthMethodCreateLdap.md +2 -0
  18. data/docs/AuthMethodCreateOCI.md +2 -0
  19. data/docs/AuthMethodCreateOIDC.md +2 -0
  20. data/docs/AuthMethodCreateOauth2.md +2 -0
  21. data/docs/AuthMethodCreateSAML.md +2 -0
  22. data/docs/AuthMethodCreateUniversalIdentity.md +3 -1
  23. data/docs/AuthMethodList.md +2 -0
  24. data/docs/AuthMethodUpdateAliCloud.md +2 -0
  25. data/docs/AuthMethodUpdateApiKey.md +2 -0
  26. data/docs/AuthMethodUpdateAwsIam.md +2 -0
  27. data/docs/AuthMethodUpdateAzureAD.md +2 -0
  28. data/docs/AuthMethodUpdateCert.md +2 -0
  29. data/docs/AuthMethodUpdateEmail.md +2 -0
  30. data/docs/AuthMethodUpdateGcp.md +2 -0
  31. data/docs/AuthMethodUpdateK8s.md +2 -0
  32. data/docs/AuthMethodUpdateKerberos.md +2 -0
  33. data/docs/AuthMethodUpdateLdap.md +2 -0
  34. data/docs/AuthMethodUpdateOCI.md +2 -0
  35. data/docs/AuthMethodUpdateOIDC.md +2 -0
  36. data/docs/AuthMethodUpdateOauth2.md +2 -0
  37. data/docs/AuthMethodUpdateSAML.md +2 -0
  38. data/docs/AuthMethodUpdateUniversalIdentity.md +3 -1
  39. data/docs/CacheConfigPart.md +2 -0
  40. data/docs/Connect.md +1 -1
  41. data/docs/CreateAuthMethod.md +2 -0
  42. data/docs/CreateAuthMethodAWSIAM.md +2 -0
  43. data/docs/CreateAuthMethodAzureAD.md +2 -0
  44. data/docs/CreateAuthMethodCert.md +2 -0
  45. data/docs/CreateAuthMethodEmail.md +2 -0
  46. data/docs/CreateAuthMethodGCP.md +2 -0
  47. data/docs/CreateAuthMethodHuawei.md +2 -0
  48. data/docs/CreateAuthMethodK8S.md +2 -0
  49. data/docs/CreateAuthMethodLDAP.md +2 -0
  50. data/docs/CreateAuthMethodOAuth2.md +2 -0
  51. data/docs/CreateAuthMethodOCI.md +2 -0
  52. data/docs/CreateAuthMethodOIDC.md +2 -0
  53. data/docs/CreateAuthMethodSAML.md +2 -0
  54. data/docs/CreateAuthMethodUniversalIdentity.md +3 -1
  55. data/docs/CreateEventForwarder.md +1 -1
  56. data/docs/DSProducerDetails.md +28 -0
  57. data/docs/DigiCertTargetDetails.md +2 -0
  58. data/docs/DynamicSecretCreateAliCloud.md +94 -0
  59. data/docs/DynamicSecretUpdateAliCloud.md +96 -0
  60. data/docs/EventForwarderCreateEmail.md +1 -1
  61. data/docs/EventForwarderCreateServiceNow.md +1 -1
  62. data/docs/EventForwarderCreateSlack.md +1 -1
  63. data/docs/EventForwarderCreateTeams.md +1 -1
  64. data/docs/EventForwarderCreateWebhook.md +1 -1
  65. data/docs/EventForwarderUpdateEmail.md +1 -1
  66. data/docs/EventForwarderUpdateServiceNow.md +1 -1
  67. data/docs/EventForwarderUpdateSlack.md +1 -1
  68. data/docs/EventForwarderUpdateTeams.md +1 -1
  69. data/docs/EventForwarderUpdateWebhook.md +1 -1
  70. data/docs/GatewayUpdateCache.md +2 -0
  71. data/docs/ListAuthMethods.md +2 -0
  72. data/docs/ProvisionCertificate.md +2 -0
  73. data/docs/ProvisionCertificateOutput.md +7 -1
  74. data/docs/ProvisionSSHRotatedSecretOutput.md +24 -0
  75. data/docs/RotatedSecretDetailsInfo.md +2 -0
  76. data/docs/RotatedSecretProvisionAssocOutput.md +20 -0
  77. data/docs/RotatedSecretProvisionCreate.md +36 -0
  78. data/docs/RotatedSecretProvisionDelete.md +26 -0
  79. data/docs/RotatedSecretProvisionPush.md +26 -0
  80. data/docs/RotatedSecretProvisionUpdate.md +38 -0
  81. data/docs/TargetCreateAnthropic.md +15 -1
  82. data/docs/TargetCreateAtlassian.md +68 -0
  83. data/docs/TargetCreateDigiCert.md +2 -0
  84. data/docs/TargetTypeDetailsInput.md +2 -0
  85. data/docs/TargetUpdateAnthropic.md +15 -1
  86. data/docs/TargetUpdateAtlassian.md +72 -0
  87. data/docs/TargetUpdateDigiCert.md +2 -0
  88. data/docs/UpdateAccountSettings.md +2 -0
  89. data/docs/UpdateAuthMethod.md +2 -0
  90. data/docs/UpdateAuthMethodAWSIAM.md +2 -0
  91. data/docs/UpdateAuthMethodAzureAD.md +2 -0
  92. data/docs/UpdateAuthMethodCert.md +2 -0
  93. data/docs/UpdateAuthMethodGCP.md +2 -0
  94. data/docs/UpdateAuthMethodK8S.md +2 -0
  95. data/docs/UpdateAuthMethodLDAP.md +2 -0
  96. data/docs/UpdateAuthMethodOAuth2.md +2 -0
  97. data/docs/UpdateAuthMethodOCI.md +2 -0
  98. data/docs/UpdateAuthMethodOIDC.md +2 -0
  99. data/docs/UpdateAuthMethodSAML.md +2 -0
  100. data/docs/UpdateAuthMethodUniversalIdentity.md +3 -1
  101. data/docs/V2Api.md +504 -0
  102. data/lib/akeyless/api/v2_api.rb +512 -0
  103. data/lib/akeyless/models/account_general_settings.rb +11 -1
  104. data/lib/akeyless/models/anthropic_target_details.rb +74 -4
  105. data/lib/akeyless/models/atlassian_target_details.rb +346 -0
  106. data/lib/akeyless/models/auth.rb +11 -1
  107. data/lib/akeyless/models/auth_method.rb +10 -1
  108. data/lib/akeyless/models/auth_method_create_ali_cloud.rb +11 -1
  109. data/lib/akeyless/models/auth_method_create_api_key.rb +11 -1
  110. data/lib/akeyless/models/auth_method_create_aws_iam.rb +11 -1
  111. data/lib/akeyless/models/auth_method_create_azure_ad.rb +11 -1
  112. data/lib/akeyless/models/auth_method_create_cert.rb +11 -1
  113. data/lib/akeyless/models/auth_method_create_email.rb +11 -1
  114. data/lib/akeyless/models/auth_method_create_gcp.rb +11 -1
  115. data/lib/akeyless/models/auth_method_create_k8s.rb +11 -1
  116. data/lib/akeyless/models/auth_method_create_kerberos.rb +11 -1
  117. data/lib/akeyless/models/auth_method_create_ldap.rb +11 -1
  118. data/lib/akeyless/models/auth_method_create_oauth2.rb +11 -1
  119. data/lib/akeyless/models/auth_method_create_oci.rb +11 -1
  120. data/lib/akeyless/models/auth_method_create_oidc.rb +11 -1
  121. data/lib/akeyless/models/auth_method_create_saml.rb +11 -1
  122. data/lib/akeyless/models/auth_method_create_universal_identity.rb +12 -2
  123. data/lib/akeyless/models/auth_method_list.rb +11 -1
  124. data/lib/akeyless/models/auth_method_update_ali_cloud.rb +11 -1
  125. data/lib/akeyless/models/auth_method_update_api_key.rb +11 -1
  126. data/lib/akeyless/models/auth_method_update_aws_iam.rb +11 -1
  127. data/lib/akeyless/models/auth_method_update_azure_ad.rb +11 -1
  128. data/lib/akeyless/models/auth_method_update_cert.rb +11 -1
  129. data/lib/akeyless/models/auth_method_update_email.rb +11 -1
  130. data/lib/akeyless/models/auth_method_update_gcp.rb +11 -1
  131. data/lib/akeyless/models/auth_method_update_k8s.rb +11 -1
  132. data/lib/akeyless/models/auth_method_update_kerberos.rb +11 -1
  133. data/lib/akeyless/models/auth_method_update_ldap.rb +11 -1
  134. data/lib/akeyless/models/auth_method_update_oauth2.rb +11 -1
  135. data/lib/akeyless/models/auth_method_update_oci.rb +11 -1
  136. data/lib/akeyless/models/auth_method_update_oidc.rb +11 -1
  137. data/lib/akeyless/models/auth_method_update_saml.rb +11 -1
  138. data/lib/akeyless/models/auth_method_update_universal_identity.rb +12 -2
  139. data/lib/akeyless/models/cache_config_part.rb +10 -1
  140. data/lib/akeyless/models/connect.rb +1 -1
  141. data/lib/akeyless/models/create_auth_method.rb +12 -1
  142. data/lib/akeyless/models/create_auth_method_awsiam.rb +12 -1
  143. data/lib/akeyless/models/create_auth_method_azure_ad.rb +12 -1
  144. data/lib/akeyless/models/create_auth_method_cert.rb +12 -1
  145. data/lib/akeyless/models/create_auth_method_email.rb +12 -1
  146. data/lib/akeyless/models/create_auth_method_gcp.rb +12 -1
  147. data/lib/akeyless/models/create_auth_method_huawei.rb +11 -1
  148. data/lib/akeyless/models/create_auth_method_k8_s.rb +12 -1
  149. data/lib/akeyless/models/create_auth_method_ldap.rb +12 -1
  150. data/lib/akeyless/models/create_auth_method_o_auth2.rb +12 -1
  151. data/lib/akeyless/models/create_auth_method_oci.rb +12 -1
  152. data/lib/akeyless/models/create_auth_method_oidc.rb +12 -1
  153. data/lib/akeyless/models/create_auth_method_saml.rb +12 -1
  154. data/lib/akeyless/models/create_auth_method_universal_identity.rb +13 -2
  155. data/lib/akeyless/models/create_event_forwarder.rb +1 -1
  156. data/lib/akeyless/models/digi_cert_target_details.rb +11 -1
  157. data/lib/akeyless/models/ds_producer_details.rb +127 -1
  158. data/lib/akeyless/models/dynamic_secret_create_ali_cloud.rb +625 -0
  159. data/lib/akeyless/models/dynamic_secret_update_ali_cloud.rb +635 -0
  160. data/lib/akeyless/models/event_forwarder_create_email.rb +1 -1
  161. data/lib/akeyless/models/event_forwarder_create_service_now.rb +1 -1
  162. data/lib/akeyless/models/event_forwarder_create_slack.rb +1 -1
  163. data/lib/akeyless/models/event_forwarder_create_teams.rb +1 -1
  164. data/lib/akeyless/models/event_forwarder_create_webhook.rb +1 -1
  165. data/lib/akeyless/models/event_forwarder_update_email.rb +1 -1
  166. data/lib/akeyless/models/event_forwarder_update_service_now.rb +1 -1
  167. data/lib/akeyless/models/event_forwarder_update_slack.rb +1 -1
  168. data/lib/akeyless/models/event_forwarder_update_teams.rb +1 -1
  169. data/lib/akeyless/models/event_forwarder_update_webhook.rb +1 -1
  170. data/lib/akeyless/models/gateway_update_cache.rb +11 -1
  171. data/lib/akeyless/models/list_auth_methods.rb +11 -1
  172. data/lib/akeyless/models/provision_certificate.rb +12 -1
  173. data/lib/akeyless/models/provision_certificate_output.rb +35 -4
  174. data/lib/akeyless/models/provision_ssh_rotated_secret_output.rb +243 -0
  175. data/lib/akeyless/models/rotated_secret_details_info.rb +11 -1
  176. data/lib/akeyless/models/rotated_secret_provision_assoc_output.rb +223 -0
  177. data/lib/akeyless/models/rotated_secret_provision_create.rb +322 -0
  178. data/lib/akeyless/models/rotated_secret_provision_delete.rb +271 -0
  179. data/lib/akeyless/models/rotated_secret_provision_push.rb +271 -0
  180. data/lib/akeyless/models/rotated_secret_provision_update.rb +332 -0
  181. data/lib/akeyless/models/target_create_anthropic.rb +74 -4
  182. data/lib/akeyless/models/target_create_atlassian.rb +476 -0
  183. data/lib/akeyless/models/target_create_digi_cert.rb +11 -1
  184. data/lib/akeyless/models/target_type_details_input.rb +10 -1
  185. data/lib/akeyless/models/target_update_anthropic.rb +74 -4
  186. data/lib/akeyless/models/target_update_atlassian.rb +496 -0
  187. data/lib/akeyless/models/target_update_digi_cert.rb +11 -1
  188. data/lib/akeyless/models/update_account_settings.rb +11 -1
  189. data/lib/akeyless/models/update_auth_method.rb +12 -1
  190. data/lib/akeyless/models/update_auth_method_awsiam.rb +12 -1
  191. data/lib/akeyless/models/update_auth_method_azure_ad.rb +12 -1
  192. data/lib/akeyless/models/update_auth_method_cert.rb +12 -1
  193. data/lib/akeyless/models/update_auth_method_gcp.rb +12 -1
  194. data/lib/akeyless/models/update_auth_method_k8_s.rb +12 -1
  195. data/lib/akeyless/models/update_auth_method_ldap.rb +12 -1
  196. data/lib/akeyless/models/update_auth_method_o_auth2.rb +12 -1
  197. data/lib/akeyless/models/update_auth_method_oci.rb +12 -1
  198. data/lib/akeyless/models/update_auth_method_oidc.rb +12 -1
  199. data/lib/akeyless/models/update_auth_method_saml.rb +12 -1
  200. data/lib/akeyless/models/update_auth_method_universal_identity.rb +13 -2
  201. data/lib/akeyless/version.rb +1 -1
  202. data/lib/akeyless.rb +11 -0
  203. data/spec/models/atlassian_target_details_spec.rb +120 -0
  204. data/spec/models/dynamic_secret_create_ali_cloud_spec.rb +264 -0
  205. data/spec/models/dynamic_secret_update_ali_cloud_spec.rb +270 -0
  206. data/spec/models/provision_ssh_rotated_secret_output_spec.rb +54 -0
  207. data/spec/models/rotated_secret_provision_assoc_output_spec.rb +42 -0
  208. data/spec/models/rotated_secret_provision_create_spec.rb +90 -0
  209. data/spec/models/rotated_secret_provision_delete_spec.rb +60 -0
  210. data/spec/models/rotated_secret_provision_push_spec.rb +60 -0
  211. data/spec/models/rotated_secret_provision_update_spec.rb +96 -0
  212. data/spec/models/target_create_atlassian_spec.rb +186 -0
  213. data/spec/models/target_update_atlassian_spec.rb +198 -0
  214. metadata +59 -15
@@ -0,0 +1,635 @@
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
+ # dynamicSecretUpdateAliCloud is a command that updates AliCloud dynamic secret
18
+ class DynamicSecretUpdateAliCloud
19
+ # Admin credentials rotation interval (days)
20
+ attr_accessor :admin_rotation_interval_days
21
+
22
+ # AliCloud RAM access key ID
23
+ attr_accessor :alicloud_access_key_id
24
+
25
+ attr_accessor :alicloud_access_mode
26
+
27
+ # AliCloud RAM access key secret
28
+ attr_accessor :alicloud_access_secret_key
29
+
30
+ # The external ID in the trust policy of the AliCloud roles (relevant only for assume_role mode)
31
+ attr_accessor :alicloud_external_id
32
+
33
+ # AliCloud region. Selects the regional STS endpoint. If empty, the global STS endpoint is used
34
+ attr_accessor :alicloud_region
35
+
36
+ # AliCloud role ARNs allowed in the Assume Role operation (relevant only for assume_role mode)
37
+ attr_accessor :alicloud_role_arns
38
+
39
+ # Session policy document (JSON) that limits the assumed role session (relevant only for assume_role mode)
40
+ attr_accessor :alicloud_session_policy
41
+
42
+ # Send the requester's identity as the SourceIdentity of the assumed role session, so it shows in ActionTrail (relevant only for assume_role mode). Needs sts:SetSourceIdentity in both the producer identity's policy and the role trust policy
43
+ attr_accessor :alicloud_set_source_identity
44
+
45
+ # The Alibaba Cloud site of the account: international or china. It selects the console sign-in host of the RAM user
46
+ attr_accessor :alicloud_site
47
+
48
+ # Enable AliCloud RAM user console access (relevant only for ram_user mode)
49
+ attr_accessor :alicloud_user_console_access
50
+
51
+ # AliCloud user groups (relevant only for ram_user mode)
52
+ attr_accessor :alicloud_user_groups
53
+
54
+ # RAM policy document (JSON) for a custom policy created for each RAM user (relevant only for ram_user mode)
55
+ attr_accessor :alicloud_user_inline_policy
56
+
57
+ # AliCloud policies attached to the RAM user, in the form <System|Custom>:<PolicyName> (relevant only for ram_user mode)
58
+ attr_accessor :alicloud_user_policies
59
+
60
+ # Enable AliCloud RAM user programmatic access (relevant only for ram_user mode)
61
+ attr_accessor :alicloud_user_programmatic_access
62
+
63
+ # Enable or disable Agentic Runtime Authority rule enforcement for this item. Mirrors commands.AgenticRulesParams.AraEnabled.
64
+ attr_accessor :ara_enabled
65
+
66
+ # Customize how temporary usernames are generated using go template
67
+ attr_accessor :custom_username_template
68
+
69
+ # Protection from accidental deletion of this object [true/false]
70
+ attr_accessor :delete_protection
71
+
72
+ # Description of the object
73
+ attr_accessor :description
74
+
75
+ # Automatic admin credentials rotation
76
+ attr_accessor :enable_admin_rotation
77
+
78
+ # EnableAra is the documented spelling of AraEnabled; --ara-enabled shipped first and stays as an undocumented alias.
79
+ attr_accessor :enable_agentic_runtime_authority
80
+
81
+ # Turns on AI Quorum checks for this item.
82
+ attr_accessor :enable_ai_quorum
83
+
84
+ # Agentic input rule in name=...,rule=... format (e.g. name=rule1,rule=Sanitize input) Mirrors commands.AgenticRulesParams — kept separate because ResourceDS cannot embed it (different package, different struct layout).
85
+ attr_accessor :input_rule
86
+
87
+ # Additional custom fields to associate with the item
88
+ attr_accessor :item_custom_fields
89
+
90
+ # Set output format to JSON
91
+ attr_accessor :json
92
+
93
+ # Dynamic secret name
94
+ attr_accessor :name
95
+
96
+ # Dynamic secret name
97
+ attr_accessor :new_name
98
+
99
+ # Agentic output rule in name=...,rule=... format (e.g. name=rule1,rule=Mask secrets)
100
+ attr_accessor :output_rule
101
+
102
+ # The length of the password to be generated
103
+ attr_accessor :password_length
104
+
105
+ # Dynamic producer encryption key
106
+ attr_accessor :producer_encryption_key_name
107
+
108
+ # If set, dry-run will be skipped [true/false]
109
+ attr_accessor :skip_dry_run
110
+
111
+ # Add tags attached to this object
112
+ attr_accessor :tags
113
+
114
+ # Target name
115
+ attr_accessor :target_name
116
+
117
+ # Authentication token (see `/auth` and `/configure`)
118
+ attr_accessor :token
119
+
120
+ # The universal identity token, Required only for universal_identity authentication
121
+ attr_accessor :uid_token
122
+
123
+ # Specifies whether the generated temporary password must contain at least one uppercase character from the ISO basic Latin alphabet (A to Z). [true/false]
124
+ attr_accessor :use_capital_letters
125
+
126
+ # Specifies whether the generated temporary password must contain at least one lowercase character from the ISO basic Latin alphabet (a to z). [true/false]
127
+ attr_accessor :use_lower_letters
128
+
129
+ # Specifies whether the generated temporary password must contain at least one numeric character (0 to 9). [true/false]
130
+ attr_accessor :use_numbers
131
+
132
+ attr_accessor :use_special_characters
133
+
134
+ # User TTL
135
+ attr_accessor :user_ttl
136
+
137
+ # Attribute mapping from ruby-style variable name to JSON key.
138
+ def self.attribute_map
139
+ {
140
+ :'admin_rotation_interval_days' => :'admin-rotation-interval-days',
141
+ :'alicloud_access_key_id' => :'alicloud-access-key-id',
142
+ :'alicloud_access_mode' => :'alicloud-access-mode',
143
+ :'alicloud_access_secret_key' => :'alicloud-access-secret-key',
144
+ :'alicloud_external_id' => :'alicloud-external-id',
145
+ :'alicloud_region' => :'alicloud-region',
146
+ :'alicloud_role_arns' => :'alicloud-role-arns',
147
+ :'alicloud_session_policy' => :'alicloud-session-policy',
148
+ :'alicloud_set_source_identity' => :'alicloud-set-source-identity',
149
+ :'alicloud_site' => :'alicloud-site',
150
+ :'alicloud_user_console_access' => :'alicloud-user-console-access',
151
+ :'alicloud_user_groups' => :'alicloud-user-groups',
152
+ :'alicloud_user_inline_policy' => :'alicloud-user-inline-policy',
153
+ :'alicloud_user_policies' => :'alicloud-user-policies',
154
+ :'alicloud_user_programmatic_access' => :'alicloud-user-programmatic-access',
155
+ :'ara_enabled' => :'ara-enabled',
156
+ :'custom_username_template' => :'custom-username-template',
157
+ :'delete_protection' => :'delete_protection',
158
+ :'description' => :'description',
159
+ :'enable_admin_rotation' => :'enable-admin-rotation',
160
+ :'enable_agentic_runtime_authority' => :'enable-agentic-runtime-authority',
161
+ :'enable_ai_quorum' => :'enable-ai-quorum',
162
+ :'input_rule' => :'input-rule',
163
+ :'item_custom_fields' => :'item-custom-fields',
164
+ :'json' => :'json',
165
+ :'name' => :'name',
166
+ :'new_name' => :'new-name',
167
+ :'output_rule' => :'output-rule',
168
+ :'password_length' => :'password-length',
169
+ :'producer_encryption_key_name' => :'producer-encryption-key-name',
170
+ :'skip_dry_run' => :'skip-dry-run',
171
+ :'tags' => :'tags',
172
+ :'target_name' => :'target-name',
173
+ :'token' => :'token',
174
+ :'uid_token' => :'uid-token',
175
+ :'use_capital_letters' => :'use-capital-letters',
176
+ :'use_lower_letters' => :'use-lower-letters',
177
+ :'use_numbers' => :'use-numbers',
178
+ :'use_special_characters' => :'use-special-characters',
179
+ :'user_ttl' => :'user-ttl'
180
+ }
181
+ end
182
+
183
+ # Returns all the JSON keys this model knows about
184
+ def self.acceptable_attributes
185
+ attribute_map.values
186
+ end
187
+
188
+ # Attribute type mapping.
189
+ def self.openapi_types
190
+ {
191
+ :'admin_rotation_interval_days' => :'Integer',
192
+ :'alicloud_access_key_id' => :'String',
193
+ :'alicloud_access_mode' => :'String',
194
+ :'alicloud_access_secret_key' => :'String',
195
+ :'alicloud_external_id' => :'String',
196
+ :'alicloud_region' => :'String',
197
+ :'alicloud_role_arns' => :'String',
198
+ :'alicloud_session_policy' => :'String',
199
+ :'alicloud_set_source_identity' => :'Boolean',
200
+ :'alicloud_site' => :'String',
201
+ :'alicloud_user_console_access' => :'Boolean',
202
+ :'alicloud_user_groups' => :'String',
203
+ :'alicloud_user_inline_policy' => :'String',
204
+ :'alicloud_user_policies' => :'String',
205
+ :'alicloud_user_programmatic_access' => :'Boolean',
206
+ :'ara_enabled' => :'Boolean',
207
+ :'custom_username_template' => :'String',
208
+ :'delete_protection' => :'String',
209
+ :'description' => :'String',
210
+ :'enable_admin_rotation' => :'Boolean',
211
+ :'enable_agentic_runtime_authority' => :'Boolean',
212
+ :'enable_ai_quorum' => :'Boolean',
213
+ :'input_rule' => :'Array<String>',
214
+ :'item_custom_fields' => :'Hash<String, String>',
215
+ :'json' => :'Boolean',
216
+ :'name' => :'String',
217
+ :'new_name' => :'String',
218
+ :'output_rule' => :'Array<String>',
219
+ :'password_length' => :'String',
220
+ :'producer_encryption_key_name' => :'String',
221
+ :'skip_dry_run' => :'Boolean',
222
+ :'tags' => :'Array<String>',
223
+ :'target_name' => :'String',
224
+ :'token' => :'String',
225
+ :'uid_token' => :'String',
226
+ :'use_capital_letters' => :'String',
227
+ :'use_lower_letters' => :'String',
228
+ :'use_numbers' => :'String',
229
+ :'use_special_characters' => :'String',
230
+ :'user_ttl' => :'String'
231
+ }
232
+ end
233
+
234
+ # List of attributes with nullable: true
235
+ def self.openapi_nullable
236
+ Set.new([
237
+ ])
238
+ end
239
+
240
+ # Initializes the object
241
+ # @param [Hash] attributes Model attributes in the form of hash
242
+ def initialize(attributes = {})
243
+ if (!attributes.is_a?(Hash))
244
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Akeyless::DynamicSecretUpdateAliCloud` initialize method"
245
+ end
246
+
247
+ # check to see if the attribute exists and convert string to symbol for hash key
248
+ attributes = attributes.each_with_object({}) { |(k, v), h|
249
+ if (!self.class.attribute_map.key?(k.to_sym))
250
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Akeyless::DynamicSecretUpdateAliCloud`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
251
+ end
252
+ h[k.to_sym] = v
253
+ }
254
+
255
+ if attributes.key?(:'admin_rotation_interval_days')
256
+ self.admin_rotation_interval_days = attributes[:'admin_rotation_interval_days']
257
+ else
258
+ self.admin_rotation_interval_days = 0
259
+ end
260
+
261
+ if attributes.key?(:'alicloud_access_key_id')
262
+ self.alicloud_access_key_id = attributes[:'alicloud_access_key_id']
263
+ end
264
+
265
+ if attributes.key?(:'alicloud_access_mode')
266
+ self.alicloud_access_mode = attributes[:'alicloud_access_mode']
267
+ end
268
+
269
+ if attributes.key?(:'alicloud_access_secret_key')
270
+ self.alicloud_access_secret_key = attributes[:'alicloud_access_secret_key']
271
+ end
272
+
273
+ if attributes.key?(:'alicloud_external_id')
274
+ self.alicloud_external_id = attributes[:'alicloud_external_id']
275
+ end
276
+
277
+ if attributes.key?(:'alicloud_region')
278
+ self.alicloud_region = attributes[:'alicloud_region']
279
+ end
280
+
281
+ if attributes.key?(:'alicloud_role_arns')
282
+ self.alicloud_role_arns = attributes[:'alicloud_role_arns']
283
+ end
284
+
285
+ if attributes.key?(:'alicloud_session_policy')
286
+ self.alicloud_session_policy = attributes[:'alicloud_session_policy']
287
+ end
288
+
289
+ if attributes.key?(:'alicloud_set_source_identity')
290
+ self.alicloud_set_source_identity = attributes[:'alicloud_set_source_identity']
291
+ else
292
+ self.alicloud_set_source_identity = false
293
+ end
294
+
295
+ if attributes.key?(:'alicloud_site')
296
+ self.alicloud_site = attributes[:'alicloud_site']
297
+ else
298
+ self.alicloud_site = 'international'
299
+ end
300
+
301
+ if attributes.key?(:'alicloud_user_console_access')
302
+ self.alicloud_user_console_access = attributes[:'alicloud_user_console_access']
303
+ else
304
+ self.alicloud_user_console_access = false
305
+ end
306
+
307
+ if attributes.key?(:'alicloud_user_groups')
308
+ self.alicloud_user_groups = attributes[:'alicloud_user_groups']
309
+ end
310
+
311
+ if attributes.key?(:'alicloud_user_inline_policy')
312
+ self.alicloud_user_inline_policy = attributes[:'alicloud_user_inline_policy']
313
+ end
314
+
315
+ if attributes.key?(:'alicloud_user_policies')
316
+ self.alicloud_user_policies = attributes[:'alicloud_user_policies']
317
+ end
318
+
319
+ if attributes.key?(:'alicloud_user_programmatic_access')
320
+ self.alicloud_user_programmatic_access = attributes[:'alicloud_user_programmatic_access']
321
+ else
322
+ self.alicloud_user_programmatic_access = true
323
+ end
324
+
325
+ if attributes.key?(:'ara_enabled')
326
+ self.ara_enabled = attributes[:'ara_enabled']
327
+ end
328
+
329
+ if attributes.key?(:'custom_username_template')
330
+ self.custom_username_template = attributes[:'custom_username_template']
331
+ end
332
+
333
+ if attributes.key?(:'delete_protection')
334
+ self.delete_protection = attributes[:'delete_protection']
335
+ end
336
+
337
+ if attributes.key?(:'description')
338
+ self.description = attributes[:'description']
339
+ end
340
+
341
+ if attributes.key?(:'enable_admin_rotation')
342
+ self.enable_admin_rotation = attributes[:'enable_admin_rotation']
343
+ else
344
+ self.enable_admin_rotation = false
345
+ end
346
+
347
+ if attributes.key?(:'enable_agentic_runtime_authority')
348
+ self.enable_agentic_runtime_authority = attributes[:'enable_agentic_runtime_authority']
349
+ end
350
+
351
+ if attributes.key?(:'enable_ai_quorum')
352
+ self.enable_ai_quorum = attributes[:'enable_ai_quorum']
353
+ end
354
+
355
+ if attributes.key?(:'input_rule')
356
+ if (value = attributes[:'input_rule']).is_a?(Array)
357
+ self.input_rule = value
358
+ end
359
+ end
360
+
361
+ if attributes.key?(:'item_custom_fields')
362
+ if (value = attributes[:'item_custom_fields']).is_a?(Hash)
363
+ self.item_custom_fields = value
364
+ end
365
+ end
366
+
367
+ if attributes.key?(:'json')
368
+ self.json = attributes[:'json']
369
+ else
370
+ self.json = false
371
+ end
372
+
373
+ if attributes.key?(:'name')
374
+ self.name = attributes[:'name']
375
+ else
376
+ self.name = nil
377
+ end
378
+
379
+ if attributes.key?(:'new_name')
380
+ self.new_name = attributes[:'new_name']
381
+ end
382
+
383
+ if attributes.key?(:'output_rule')
384
+ if (value = attributes[:'output_rule']).is_a?(Array)
385
+ self.output_rule = value
386
+ end
387
+ end
388
+
389
+ if attributes.key?(:'password_length')
390
+ self.password_length = attributes[:'password_length']
391
+ end
392
+
393
+ if attributes.key?(:'producer_encryption_key_name')
394
+ self.producer_encryption_key_name = attributes[:'producer_encryption_key_name']
395
+ end
396
+
397
+ if attributes.key?(:'skip_dry_run')
398
+ self.skip_dry_run = attributes[:'skip_dry_run']
399
+ end
400
+
401
+ if attributes.key?(:'tags')
402
+ if (value = attributes[:'tags']).is_a?(Array)
403
+ self.tags = value
404
+ end
405
+ end
406
+
407
+ if attributes.key?(:'target_name')
408
+ self.target_name = attributes[:'target_name']
409
+ end
410
+
411
+ if attributes.key?(:'token')
412
+ self.token = attributes[:'token']
413
+ end
414
+
415
+ if attributes.key?(:'uid_token')
416
+ self.uid_token = attributes[:'uid_token']
417
+ end
418
+
419
+ if attributes.key?(:'use_capital_letters')
420
+ self.use_capital_letters = attributes[:'use_capital_letters']
421
+ end
422
+
423
+ if attributes.key?(:'use_lower_letters')
424
+ self.use_lower_letters = attributes[:'use_lower_letters']
425
+ end
426
+
427
+ if attributes.key?(:'use_numbers')
428
+ self.use_numbers = attributes[:'use_numbers']
429
+ end
430
+
431
+ if attributes.key?(:'use_special_characters')
432
+ self.use_special_characters = attributes[:'use_special_characters']
433
+ end
434
+
435
+ if attributes.key?(:'user_ttl')
436
+ self.user_ttl = attributes[:'user_ttl']
437
+ else
438
+ self.user_ttl = '60m'
439
+ end
440
+ end
441
+
442
+ # Show invalid properties with the reasons. Usually used together with valid?
443
+ # @return Array for valid properties with the reasons
444
+ def list_invalid_properties
445
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
446
+ invalid_properties = Array.new
447
+ if @name.nil?
448
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
449
+ end
450
+
451
+ invalid_properties
452
+ end
453
+
454
+ # Check to see if the all the properties in the model are valid
455
+ # @return true if the model is valid
456
+ def valid?
457
+ warn '[DEPRECATED] the `valid?` method is obsolete'
458
+ return false if @name.nil?
459
+ true
460
+ end
461
+
462
+ # Checks equality by comparing each attribute.
463
+ # @param [Object] Object to be compared
464
+ def ==(o)
465
+ return true if self.equal?(o)
466
+ self.class == o.class &&
467
+ admin_rotation_interval_days == o.admin_rotation_interval_days &&
468
+ alicloud_access_key_id == o.alicloud_access_key_id &&
469
+ alicloud_access_mode == o.alicloud_access_mode &&
470
+ alicloud_access_secret_key == o.alicloud_access_secret_key &&
471
+ alicloud_external_id == o.alicloud_external_id &&
472
+ alicloud_region == o.alicloud_region &&
473
+ alicloud_role_arns == o.alicloud_role_arns &&
474
+ alicloud_session_policy == o.alicloud_session_policy &&
475
+ alicloud_set_source_identity == o.alicloud_set_source_identity &&
476
+ alicloud_site == o.alicloud_site &&
477
+ alicloud_user_console_access == o.alicloud_user_console_access &&
478
+ alicloud_user_groups == o.alicloud_user_groups &&
479
+ alicloud_user_inline_policy == o.alicloud_user_inline_policy &&
480
+ alicloud_user_policies == o.alicloud_user_policies &&
481
+ alicloud_user_programmatic_access == o.alicloud_user_programmatic_access &&
482
+ ara_enabled == o.ara_enabled &&
483
+ custom_username_template == o.custom_username_template &&
484
+ delete_protection == o.delete_protection &&
485
+ description == o.description &&
486
+ enable_admin_rotation == o.enable_admin_rotation &&
487
+ enable_agentic_runtime_authority == o.enable_agentic_runtime_authority &&
488
+ enable_ai_quorum == o.enable_ai_quorum &&
489
+ input_rule == o.input_rule &&
490
+ item_custom_fields == o.item_custom_fields &&
491
+ json == o.json &&
492
+ name == o.name &&
493
+ new_name == o.new_name &&
494
+ output_rule == o.output_rule &&
495
+ password_length == o.password_length &&
496
+ producer_encryption_key_name == o.producer_encryption_key_name &&
497
+ skip_dry_run == o.skip_dry_run &&
498
+ tags == o.tags &&
499
+ target_name == o.target_name &&
500
+ token == o.token &&
501
+ uid_token == o.uid_token &&
502
+ use_capital_letters == o.use_capital_letters &&
503
+ use_lower_letters == o.use_lower_letters &&
504
+ use_numbers == o.use_numbers &&
505
+ use_special_characters == o.use_special_characters &&
506
+ user_ttl == o.user_ttl
507
+ end
508
+
509
+ # @see the `==` method
510
+ # @param [Object] Object to be compared
511
+ def eql?(o)
512
+ self == o
513
+ end
514
+
515
+ # Calculates hash code according to all attributes.
516
+ # @return [Integer] Hash code
517
+ def hash
518
+ [admin_rotation_interval_days, alicloud_access_key_id, alicloud_access_mode, alicloud_access_secret_key, alicloud_external_id, alicloud_region, alicloud_role_arns, alicloud_session_policy, alicloud_set_source_identity, alicloud_site, alicloud_user_console_access, alicloud_user_groups, alicloud_user_inline_policy, alicloud_user_policies, alicloud_user_programmatic_access, ara_enabled, custom_username_template, delete_protection, description, enable_admin_rotation, enable_agentic_runtime_authority, enable_ai_quorum, input_rule, item_custom_fields, json, name, new_name, output_rule, password_length, producer_encryption_key_name, skip_dry_run, tags, target_name, token, uid_token, use_capital_letters, use_lower_letters, use_numbers, use_special_characters, user_ttl].hash
519
+ end
520
+
521
+ # Builds the object from hash
522
+ # @param [Hash] attributes Model attributes in the form of hash
523
+ # @return [Object] Returns the model itself
524
+ def self.build_from_hash(attributes)
525
+ return nil unless attributes.is_a?(Hash)
526
+ attributes = attributes.transform_keys(&:to_sym)
527
+ transformed_hash = {}
528
+ openapi_types.each_pair do |key, type|
529
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
530
+ transformed_hash["#{key}"] = nil
531
+ elsif type =~ /\AArray<(.*)>/i
532
+ # check to ensure the input is an array given that the attribute
533
+ # is documented as an array but the input is not
534
+ if attributes[attribute_map[key]].is_a?(Array)
535
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
536
+ end
537
+ elsif !attributes[attribute_map[key]].nil?
538
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
539
+ end
540
+ end
541
+ new(transformed_hash)
542
+ end
543
+
544
+ # Deserializes the data based on type
545
+ # @param string type Data type
546
+ # @param string value Value to be deserialized
547
+ # @return [Object] Deserialized data
548
+ def self._deserialize(type, value)
549
+ case type.to_sym
550
+ when :Time
551
+ Time.parse(value)
552
+ when :Date
553
+ Date.parse(value)
554
+ when :String
555
+ value.to_s
556
+ when :Integer
557
+ value.to_i
558
+ when :Float
559
+ value.to_f
560
+ when :Boolean
561
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
562
+ true
563
+ else
564
+ false
565
+ end
566
+ when :Object
567
+ # generic object (usually a Hash), return directly
568
+ value
569
+ when /\AArray<(?<inner_type>.+)>\z/
570
+ inner_type = Regexp.last_match[:inner_type]
571
+ value.map { |v| _deserialize(inner_type, v) }
572
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
573
+ k_type = Regexp.last_match[:k_type]
574
+ v_type = Regexp.last_match[:v_type]
575
+ {}.tap do |hash|
576
+ value.each do |k, v|
577
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
578
+ end
579
+ end
580
+ else # model
581
+ # models (e.g. Pet) or oneOf
582
+ klass = Akeyless.const_get(type)
583
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
584
+ end
585
+ end
586
+
587
+ # Returns the string representation of the object
588
+ # @return [String] String presentation of the object
589
+ def to_s
590
+ to_hash.to_s
591
+ end
592
+
593
+ # to_body is an alias to to_hash (backward compatibility)
594
+ # @return [Hash] Returns the object in the form of hash
595
+ def to_body
596
+ to_hash
597
+ end
598
+
599
+ # Returns the object in the form of hash
600
+ # @return [Hash] Returns the object in the form of hash
601
+ def to_hash
602
+ hash = {}
603
+ self.class.attribute_map.each_pair do |attr, param|
604
+ value = self.send(attr)
605
+ if value.nil?
606
+ is_nullable = self.class.openapi_nullable.include?(attr)
607
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
608
+ end
609
+
610
+ hash[param] = _to_hash(value)
611
+ end
612
+ hash
613
+ end
614
+
615
+ # Outputs non-array value in the form of hash
616
+ # For object, use to_hash. Otherwise, just return the value
617
+ # @param [Object] value Any valid value
618
+ # @return [Hash] Returns the value in the form of hash
619
+ def _to_hash(value)
620
+ if value.is_a?(Array)
621
+ value.compact.map { |v| _to_hash(v) }
622
+ elsif value.is_a?(Hash)
623
+ {}.tap do |hash|
624
+ value.each { |k, v| hash[k] = _to_hash(v) }
625
+ end
626
+ elsif value.respond_to? :to_hash
627
+ value.to_hash
628
+ else
629
+ value
630
+ end
631
+ end
632
+
633
+ end
634
+
635
+ end
@@ -25,7 +25,7 @@ module Akeyless
25
25
  # A comma seperated list of email addresses to send event to
26
26
  attr_accessor :email_to
27
27
 
28
- # List of event types to notify about [request-access, access-request-expired, access-request-approved, access-request-denied, certificate-pending-expiration, certificate-expired, certificate-provisioning-success, certificate-provisioning-failure, auth-method-pending-expiration, auth-method-expired, next-automatic-rotation, rotated-secret-success, rotated-secret-failure, dynamic-secret-failure, multi-auth-failure, uid-rotation-failure, apply-justification, email-auth-method-approved, usage, rotation-usage, gateway-inactive, static-secret-updated, rate-limiting, usage-report, secret-sync, locked-user, unlocked-user, password-reset]
28
+ # List of event types to notify about [request-access, access-request-expired, access-request-approved, access-request-denied, certificate-pending-expiration, certificate-expired, certificate-provisioning-success, certificate-provisioning-failure, ssh-key-provisioning-success, ssh-key-provisioning-failure, auth-method-pending-expiration, auth-method-expired, next-automatic-rotation, rotated-secret-success, rotated-secret-failure, dynamic-secret-failure, multi-auth-failure, uid-rotation-failure, apply-justification, email-auth-method-approved, usage, rotation-usage, gateway-inactive, static-secret-updated, rate-limiting, usage-report, secret-sync, locked-user, unlocked-user, password-reset]
29
29
  attr_accessor :event_types
30
30
 
31
31
  # Rate of periodic runner repetition in hours
@@ -40,7 +40,7 @@ module Akeyless
40
40
  # Description of the object
41
41
  attr_accessor :description
42
42
 
43
- # List of event types to notify about [request-access, access-request-expired, access-request-approved, access-request-denied, certificate-pending-expiration, certificate-expired, certificate-provisioning-success, certificate-provisioning-failure, auth-method-pending-expiration, auth-method-expired, next-automatic-rotation, rotated-secret-success, rotated-secret-failure, dynamic-secret-failure, multi-auth-failure, uid-rotation-failure, apply-justification, email-auth-method-approved, usage, rotation-usage, gateway-inactive, static-secret-updated, rate-limiting, usage-report, secret-sync, locked-user, unlocked-user, password-reset]
43
+ # List of event types to notify about [request-access, access-request-expired, access-request-approved, access-request-denied, certificate-pending-expiration, certificate-expired, certificate-provisioning-success, certificate-provisioning-failure, ssh-key-provisioning-success, ssh-key-provisioning-failure, auth-method-pending-expiration, auth-method-expired, next-automatic-rotation, rotated-secret-success, rotated-secret-failure, dynamic-secret-failure, multi-auth-failure, uid-rotation-failure, apply-justification, email-auth-method-approved, usage, rotation-usage, gateway-inactive, static-secret-updated, rate-limiting, usage-report, secret-sync, locked-user, unlocked-user, password-reset]
44
44
  attr_accessor :event_types
45
45
 
46
46
  # Rate of periodic runner repetition in hours
@@ -22,7 +22,7 @@ module Akeyless
22
22
  # Description of the object
23
23
  attr_accessor :description
24
24
 
25
- # List of event types to notify about [request-access, access-request-expired, access-request-approved, access-request-denied, certificate-pending-expiration, certificate-expired, certificate-provisioning-success, certificate-provisioning-failure, auth-method-pending-expiration, auth-method-expired, next-automatic-rotation, rotated-secret-success, rotated-secret-failure, dynamic-secret-failure, multi-auth-failure, uid-rotation-failure, apply-justification, email-auth-method-approved, usage, rotation-usage, gateway-inactive, static-secret-updated, rate-limiting, usage-report, secret-sync, locked-user, unlocked-user, password-reset]
25
+ # List of event types to notify about [request-access, access-request-expired, access-request-approved, access-request-denied, certificate-pending-expiration, certificate-expired, certificate-provisioning-success, certificate-provisioning-failure, ssh-key-provisioning-success, ssh-key-provisioning-failure, auth-method-pending-expiration, auth-method-expired, next-automatic-rotation, rotated-secret-success, rotated-secret-failure, dynamic-secret-failure, multi-auth-failure, uid-rotation-failure, apply-justification, email-auth-method-approved, usage, rotation-usage, gateway-inactive, static-secret-updated, rate-limiting, usage-report, secret-sync, locked-user, unlocked-user, password-reset]
26
26
  attr_accessor :event_types
27
27
 
28
28
  # Rate of periodic runner repetition in hours
@@ -22,7 +22,7 @@ module Akeyless
22
22
  # Description of the object
23
23
  attr_accessor :description
24
24
 
25
- # List of event types to notify about [request-access, access-request-expired, access-request-approved, access-request-denied, certificate-pending-expiration, certificate-expired, certificate-provisioning-success, certificate-provisioning-failure, auth-method-pending-expiration, auth-method-expired, next-automatic-rotation, rotated-secret-success, rotated-secret-failure, dynamic-secret-failure, multi-auth-failure, uid-rotation-failure, apply-justification, email-auth-method-approved, usage, rotation-usage, gateway-inactive, static-secret-updated, rate-limiting, usage-report, secret-sync, locked-user, unlocked-user, password-reset]
25
+ # List of event types to notify about [request-access, access-request-expired, access-request-approved, access-request-denied, certificate-pending-expiration, certificate-expired, certificate-provisioning-success, certificate-provisioning-failure, ssh-key-provisioning-success, ssh-key-provisioning-failure, auth-method-pending-expiration, auth-method-expired, next-automatic-rotation, rotated-secret-success, rotated-secret-failure, dynamic-secret-failure, multi-auth-failure, uid-rotation-failure, apply-justification, email-auth-method-approved, usage, rotation-usage, gateway-inactive, static-secret-updated, rate-limiting, usage-report, secret-sync, locked-user, unlocked-user, password-reset]
26
26
  attr_accessor :event_types
27
27
 
28
28
  # Rate of periodic runner repetition in hours