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,625 @@
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
+ # dynamicSecretCreateAliCloud is a command that creates AliCloud dynamic secret
18
+ class DynamicSecretCreateAliCloud
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
+ # Agentic output rule in name=...,rule=... format (e.g. name=rule1,rule=Mask secrets)
97
+ attr_accessor :output_rule
98
+
99
+ # The length of the password to be generated
100
+ attr_accessor :password_length
101
+
102
+ # Dynamic producer encryption key
103
+ attr_accessor :producer_encryption_key_name
104
+
105
+ # If set, dry-run will be skipped [true/false]
106
+ attr_accessor :skip_dry_run
107
+
108
+ # Add tags attached to this object
109
+ attr_accessor :tags
110
+
111
+ # Target name
112
+ attr_accessor :target_name
113
+
114
+ # Authentication token (see `/auth` and `/configure`)
115
+ attr_accessor :token
116
+
117
+ # The universal identity token, Required only for universal_identity authentication
118
+ attr_accessor :uid_token
119
+
120
+ # Specifies whether the generated temporary password must contain at least one uppercase character from the ISO basic Latin alphabet (A to Z). [true/false]
121
+ attr_accessor :use_capital_letters
122
+
123
+ # Specifies whether the generated temporary password must contain at least one lowercase character from the ISO basic Latin alphabet (a to z). [true/false]
124
+ attr_accessor :use_lower_letters
125
+
126
+ # Specifies whether the generated temporary password must contain at least one numeric character (0 to 9). [true/false]
127
+ attr_accessor :use_numbers
128
+
129
+ attr_accessor :use_special_characters
130
+
131
+ # User TTL
132
+ attr_accessor :user_ttl
133
+
134
+ # Attribute mapping from ruby-style variable name to JSON key.
135
+ def self.attribute_map
136
+ {
137
+ :'admin_rotation_interval_days' => :'admin-rotation-interval-days',
138
+ :'alicloud_access_key_id' => :'alicloud-access-key-id',
139
+ :'alicloud_access_mode' => :'alicloud-access-mode',
140
+ :'alicloud_access_secret_key' => :'alicloud-access-secret-key',
141
+ :'alicloud_external_id' => :'alicloud-external-id',
142
+ :'alicloud_region' => :'alicloud-region',
143
+ :'alicloud_role_arns' => :'alicloud-role-arns',
144
+ :'alicloud_session_policy' => :'alicloud-session-policy',
145
+ :'alicloud_set_source_identity' => :'alicloud-set-source-identity',
146
+ :'alicloud_site' => :'alicloud-site',
147
+ :'alicloud_user_console_access' => :'alicloud-user-console-access',
148
+ :'alicloud_user_groups' => :'alicloud-user-groups',
149
+ :'alicloud_user_inline_policy' => :'alicloud-user-inline-policy',
150
+ :'alicloud_user_policies' => :'alicloud-user-policies',
151
+ :'alicloud_user_programmatic_access' => :'alicloud-user-programmatic-access',
152
+ :'ara_enabled' => :'ara-enabled',
153
+ :'custom_username_template' => :'custom-username-template',
154
+ :'delete_protection' => :'delete_protection',
155
+ :'description' => :'description',
156
+ :'enable_admin_rotation' => :'enable-admin-rotation',
157
+ :'enable_agentic_runtime_authority' => :'enable-agentic-runtime-authority',
158
+ :'enable_ai_quorum' => :'enable-ai-quorum',
159
+ :'input_rule' => :'input-rule',
160
+ :'item_custom_fields' => :'item-custom-fields',
161
+ :'json' => :'json',
162
+ :'name' => :'name',
163
+ :'output_rule' => :'output-rule',
164
+ :'password_length' => :'password-length',
165
+ :'producer_encryption_key_name' => :'producer-encryption-key-name',
166
+ :'skip_dry_run' => :'skip-dry-run',
167
+ :'tags' => :'tags',
168
+ :'target_name' => :'target-name',
169
+ :'token' => :'token',
170
+ :'uid_token' => :'uid-token',
171
+ :'use_capital_letters' => :'use-capital-letters',
172
+ :'use_lower_letters' => :'use-lower-letters',
173
+ :'use_numbers' => :'use-numbers',
174
+ :'use_special_characters' => :'use-special-characters',
175
+ :'user_ttl' => :'user-ttl'
176
+ }
177
+ end
178
+
179
+ # Returns all the JSON keys this model knows about
180
+ def self.acceptable_attributes
181
+ attribute_map.values
182
+ end
183
+
184
+ # Attribute type mapping.
185
+ def self.openapi_types
186
+ {
187
+ :'admin_rotation_interval_days' => :'Integer',
188
+ :'alicloud_access_key_id' => :'String',
189
+ :'alicloud_access_mode' => :'String',
190
+ :'alicloud_access_secret_key' => :'String',
191
+ :'alicloud_external_id' => :'String',
192
+ :'alicloud_region' => :'String',
193
+ :'alicloud_role_arns' => :'String',
194
+ :'alicloud_session_policy' => :'String',
195
+ :'alicloud_set_source_identity' => :'Boolean',
196
+ :'alicloud_site' => :'String',
197
+ :'alicloud_user_console_access' => :'Boolean',
198
+ :'alicloud_user_groups' => :'String',
199
+ :'alicloud_user_inline_policy' => :'String',
200
+ :'alicloud_user_policies' => :'String',
201
+ :'alicloud_user_programmatic_access' => :'Boolean',
202
+ :'ara_enabled' => :'Boolean',
203
+ :'custom_username_template' => :'String',
204
+ :'delete_protection' => :'String',
205
+ :'description' => :'String',
206
+ :'enable_admin_rotation' => :'Boolean',
207
+ :'enable_agentic_runtime_authority' => :'Boolean',
208
+ :'enable_ai_quorum' => :'Boolean',
209
+ :'input_rule' => :'Array<String>',
210
+ :'item_custom_fields' => :'Hash<String, String>',
211
+ :'json' => :'Boolean',
212
+ :'name' => :'String',
213
+ :'output_rule' => :'Array<String>',
214
+ :'password_length' => :'String',
215
+ :'producer_encryption_key_name' => :'String',
216
+ :'skip_dry_run' => :'Boolean',
217
+ :'tags' => :'Array<String>',
218
+ :'target_name' => :'String',
219
+ :'token' => :'String',
220
+ :'uid_token' => :'String',
221
+ :'use_capital_letters' => :'String',
222
+ :'use_lower_letters' => :'String',
223
+ :'use_numbers' => :'String',
224
+ :'use_special_characters' => :'String',
225
+ :'user_ttl' => :'String'
226
+ }
227
+ end
228
+
229
+ # List of attributes with nullable: true
230
+ def self.openapi_nullable
231
+ Set.new([
232
+ ])
233
+ end
234
+
235
+ # Initializes the object
236
+ # @param [Hash] attributes Model attributes in the form of hash
237
+ def initialize(attributes = {})
238
+ if (!attributes.is_a?(Hash))
239
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Akeyless::DynamicSecretCreateAliCloud` initialize method"
240
+ end
241
+
242
+ # check to see if the attribute exists and convert string to symbol for hash key
243
+ attributes = attributes.each_with_object({}) { |(k, v), h|
244
+ if (!self.class.attribute_map.key?(k.to_sym))
245
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Akeyless::DynamicSecretCreateAliCloud`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
246
+ end
247
+ h[k.to_sym] = v
248
+ }
249
+
250
+ if attributes.key?(:'admin_rotation_interval_days')
251
+ self.admin_rotation_interval_days = attributes[:'admin_rotation_interval_days']
252
+ else
253
+ self.admin_rotation_interval_days = 0
254
+ end
255
+
256
+ if attributes.key?(:'alicloud_access_key_id')
257
+ self.alicloud_access_key_id = attributes[:'alicloud_access_key_id']
258
+ end
259
+
260
+ if attributes.key?(:'alicloud_access_mode')
261
+ self.alicloud_access_mode = attributes[:'alicloud_access_mode']
262
+ end
263
+
264
+ if attributes.key?(:'alicloud_access_secret_key')
265
+ self.alicloud_access_secret_key = attributes[:'alicloud_access_secret_key']
266
+ end
267
+
268
+ if attributes.key?(:'alicloud_external_id')
269
+ self.alicloud_external_id = attributes[:'alicloud_external_id']
270
+ end
271
+
272
+ if attributes.key?(:'alicloud_region')
273
+ self.alicloud_region = attributes[:'alicloud_region']
274
+ end
275
+
276
+ if attributes.key?(:'alicloud_role_arns')
277
+ self.alicloud_role_arns = attributes[:'alicloud_role_arns']
278
+ end
279
+
280
+ if attributes.key?(:'alicloud_session_policy')
281
+ self.alicloud_session_policy = attributes[:'alicloud_session_policy']
282
+ end
283
+
284
+ if attributes.key?(:'alicloud_set_source_identity')
285
+ self.alicloud_set_source_identity = attributes[:'alicloud_set_source_identity']
286
+ else
287
+ self.alicloud_set_source_identity = false
288
+ end
289
+
290
+ if attributes.key?(:'alicloud_site')
291
+ self.alicloud_site = attributes[:'alicloud_site']
292
+ else
293
+ self.alicloud_site = 'international'
294
+ end
295
+
296
+ if attributes.key?(:'alicloud_user_console_access')
297
+ self.alicloud_user_console_access = attributes[:'alicloud_user_console_access']
298
+ else
299
+ self.alicloud_user_console_access = false
300
+ end
301
+
302
+ if attributes.key?(:'alicloud_user_groups')
303
+ self.alicloud_user_groups = attributes[:'alicloud_user_groups']
304
+ end
305
+
306
+ if attributes.key?(:'alicloud_user_inline_policy')
307
+ self.alicloud_user_inline_policy = attributes[:'alicloud_user_inline_policy']
308
+ end
309
+
310
+ if attributes.key?(:'alicloud_user_policies')
311
+ self.alicloud_user_policies = attributes[:'alicloud_user_policies']
312
+ end
313
+
314
+ if attributes.key?(:'alicloud_user_programmatic_access')
315
+ self.alicloud_user_programmatic_access = attributes[:'alicloud_user_programmatic_access']
316
+ else
317
+ self.alicloud_user_programmatic_access = true
318
+ end
319
+
320
+ if attributes.key?(:'ara_enabled')
321
+ self.ara_enabled = attributes[:'ara_enabled']
322
+ end
323
+
324
+ if attributes.key?(:'custom_username_template')
325
+ self.custom_username_template = attributes[:'custom_username_template']
326
+ end
327
+
328
+ if attributes.key?(:'delete_protection')
329
+ self.delete_protection = attributes[:'delete_protection']
330
+ end
331
+
332
+ if attributes.key?(:'description')
333
+ self.description = attributes[:'description']
334
+ end
335
+
336
+ if attributes.key?(:'enable_admin_rotation')
337
+ self.enable_admin_rotation = attributes[:'enable_admin_rotation']
338
+ else
339
+ self.enable_admin_rotation = false
340
+ end
341
+
342
+ if attributes.key?(:'enable_agentic_runtime_authority')
343
+ self.enable_agentic_runtime_authority = attributes[:'enable_agentic_runtime_authority']
344
+ end
345
+
346
+ if attributes.key?(:'enable_ai_quorum')
347
+ self.enable_ai_quorum = attributes[:'enable_ai_quorum']
348
+ end
349
+
350
+ if attributes.key?(:'input_rule')
351
+ if (value = attributes[:'input_rule']).is_a?(Array)
352
+ self.input_rule = value
353
+ end
354
+ end
355
+
356
+ if attributes.key?(:'item_custom_fields')
357
+ if (value = attributes[:'item_custom_fields']).is_a?(Hash)
358
+ self.item_custom_fields = value
359
+ end
360
+ end
361
+
362
+ if attributes.key?(:'json')
363
+ self.json = attributes[:'json']
364
+ else
365
+ self.json = false
366
+ end
367
+
368
+ if attributes.key?(:'name')
369
+ self.name = attributes[:'name']
370
+ else
371
+ self.name = nil
372
+ end
373
+
374
+ if attributes.key?(:'output_rule')
375
+ if (value = attributes[:'output_rule']).is_a?(Array)
376
+ self.output_rule = value
377
+ end
378
+ end
379
+
380
+ if attributes.key?(:'password_length')
381
+ self.password_length = attributes[:'password_length']
382
+ end
383
+
384
+ if attributes.key?(:'producer_encryption_key_name')
385
+ self.producer_encryption_key_name = attributes[:'producer_encryption_key_name']
386
+ end
387
+
388
+ if attributes.key?(:'skip_dry_run')
389
+ self.skip_dry_run = attributes[:'skip_dry_run']
390
+ end
391
+
392
+ if attributes.key?(:'tags')
393
+ if (value = attributes[:'tags']).is_a?(Array)
394
+ self.tags = value
395
+ end
396
+ end
397
+
398
+ if attributes.key?(:'target_name')
399
+ self.target_name = attributes[:'target_name']
400
+ end
401
+
402
+ if attributes.key?(:'token')
403
+ self.token = attributes[:'token']
404
+ end
405
+
406
+ if attributes.key?(:'uid_token')
407
+ self.uid_token = attributes[:'uid_token']
408
+ end
409
+
410
+ if attributes.key?(:'use_capital_letters')
411
+ self.use_capital_letters = attributes[:'use_capital_letters']
412
+ end
413
+
414
+ if attributes.key?(:'use_lower_letters')
415
+ self.use_lower_letters = attributes[:'use_lower_letters']
416
+ end
417
+
418
+ if attributes.key?(:'use_numbers')
419
+ self.use_numbers = attributes[:'use_numbers']
420
+ end
421
+
422
+ if attributes.key?(:'use_special_characters')
423
+ self.use_special_characters = attributes[:'use_special_characters']
424
+ end
425
+
426
+ if attributes.key?(:'user_ttl')
427
+ self.user_ttl = attributes[:'user_ttl']
428
+ else
429
+ self.user_ttl = '60m'
430
+ end
431
+ end
432
+
433
+ # Show invalid properties with the reasons. Usually used together with valid?
434
+ # @return Array for valid properties with the reasons
435
+ def list_invalid_properties
436
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
437
+ invalid_properties = Array.new
438
+ if @name.nil?
439
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
440
+ end
441
+
442
+ invalid_properties
443
+ end
444
+
445
+ # Check to see if the all the properties in the model are valid
446
+ # @return true if the model is valid
447
+ def valid?
448
+ warn '[DEPRECATED] the `valid?` method is obsolete'
449
+ return false if @name.nil?
450
+ true
451
+ end
452
+
453
+ # Checks equality by comparing each attribute.
454
+ # @param [Object] Object to be compared
455
+ def ==(o)
456
+ return true if self.equal?(o)
457
+ self.class == o.class &&
458
+ admin_rotation_interval_days == o.admin_rotation_interval_days &&
459
+ alicloud_access_key_id == o.alicloud_access_key_id &&
460
+ alicloud_access_mode == o.alicloud_access_mode &&
461
+ alicloud_access_secret_key == o.alicloud_access_secret_key &&
462
+ alicloud_external_id == o.alicloud_external_id &&
463
+ alicloud_region == o.alicloud_region &&
464
+ alicloud_role_arns == o.alicloud_role_arns &&
465
+ alicloud_session_policy == o.alicloud_session_policy &&
466
+ alicloud_set_source_identity == o.alicloud_set_source_identity &&
467
+ alicloud_site == o.alicloud_site &&
468
+ alicloud_user_console_access == o.alicloud_user_console_access &&
469
+ alicloud_user_groups == o.alicloud_user_groups &&
470
+ alicloud_user_inline_policy == o.alicloud_user_inline_policy &&
471
+ alicloud_user_policies == o.alicloud_user_policies &&
472
+ alicloud_user_programmatic_access == o.alicloud_user_programmatic_access &&
473
+ ara_enabled == o.ara_enabled &&
474
+ custom_username_template == o.custom_username_template &&
475
+ delete_protection == o.delete_protection &&
476
+ description == o.description &&
477
+ enable_admin_rotation == o.enable_admin_rotation &&
478
+ enable_agentic_runtime_authority == o.enable_agentic_runtime_authority &&
479
+ enable_ai_quorum == o.enable_ai_quorum &&
480
+ input_rule == o.input_rule &&
481
+ item_custom_fields == o.item_custom_fields &&
482
+ json == o.json &&
483
+ name == o.name &&
484
+ output_rule == o.output_rule &&
485
+ password_length == o.password_length &&
486
+ producer_encryption_key_name == o.producer_encryption_key_name &&
487
+ skip_dry_run == o.skip_dry_run &&
488
+ tags == o.tags &&
489
+ target_name == o.target_name &&
490
+ token == o.token &&
491
+ uid_token == o.uid_token &&
492
+ use_capital_letters == o.use_capital_letters &&
493
+ use_lower_letters == o.use_lower_letters &&
494
+ use_numbers == o.use_numbers &&
495
+ use_special_characters == o.use_special_characters &&
496
+ user_ttl == o.user_ttl
497
+ end
498
+
499
+ # @see the `==` method
500
+ # @param [Object] Object to be compared
501
+ def eql?(o)
502
+ self == o
503
+ end
504
+
505
+ # Calculates hash code according to all attributes.
506
+ # @return [Integer] Hash code
507
+ def hash
508
+ [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, 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
509
+ end
510
+
511
+ # Builds the object from hash
512
+ # @param [Hash] attributes Model attributes in the form of hash
513
+ # @return [Object] Returns the model itself
514
+ def self.build_from_hash(attributes)
515
+ return nil unless attributes.is_a?(Hash)
516
+ attributes = attributes.transform_keys(&:to_sym)
517
+ transformed_hash = {}
518
+ openapi_types.each_pair do |key, type|
519
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
520
+ transformed_hash["#{key}"] = nil
521
+ elsif type =~ /\AArray<(.*)>/i
522
+ # check to ensure the input is an array given that the attribute
523
+ # is documented as an array but the input is not
524
+ if attributes[attribute_map[key]].is_a?(Array)
525
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
526
+ end
527
+ elsif !attributes[attribute_map[key]].nil?
528
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
529
+ end
530
+ end
531
+ new(transformed_hash)
532
+ end
533
+
534
+ # Deserializes the data based on type
535
+ # @param string type Data type
536
+ # @param string value Value to be deserialized
537
+ # @return [Object] Deserialized data
538
+ def self._deserialize(type, value)
539
+ case type.to_sym
540
+ when :Time
541
+ Time.parse(value)
542
+ when :Date
543
+ Date.parse(value)
544
+ when :String
545
+ value.to_s
546
+ when :Integer
547
+ value.to_i
548
+ when :Float
549
+ value.to_f
550
+ when :Boolean
551
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
552
+ true
553
+ else
554
+ false
555
+ end
556
+ when :Object
557
+ # generic object (usually a Hash), return directly
558
+ value
559
+ when /\AArray<(?<inner_type>.+)>\z/
560
+ inner_type = Regexp.last_match[:inner_type]
561
+ value.map { |v| _deserialize(inner_type, v) }
562
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
563
+ k_type = Regexp.last_match[:k_type]
564
+ v_type = Regexp.last_match[:v_type]
565
+ {}.tap do |hash|
566
+ value.each do |k, v|
567
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
568
+ end
569
+ end
570
+ else # model
571
+ # models (e.g. Pet) or oneOf
572
+ klass = Akeyless.const_get(type)
573
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
574
+ end
575
+ end
576
+
577
+ # Returns the string representation of the object
578
+ # @return [String] String presentation of the object
579
+ def to_s
580
+ to_hash.to_s
581
+ end
582
+
583
+ # to_body is an alias to to_hash (backward compatibility)
584
+ # @return [Hash] Returns the object in the form of hash
585
+ def to_body
586
+ to_hash
587
+ end
588
+
589
+ # Returns the object in the form of hash
590
+ # @return [Hash] Returns the object in the form of hash
591
+ def to_hash
592
+ hash = {}
593
+ self.class.attribute_map.each_pair do |attr, param|
594
+ value = self.send(attr)
595
+ if value.nil?
596
+ is_nullable = self.class.openapi_nullable.include?(attr)
597
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
598
+ end
599
+
600
+ hash[param] = _to_hash(value)
601
+ end
602
+ hash
603
+ end
604
+
605
+ # Outputs non-array value in the form of hash
606
+ # For object, use to_hash. Otherwise, just return the value
607
+ # @param [Object] value Any valid value
608
+ # @return [Hash] Returns the value in the form of hash
609
+ def _to_hash(value)
610
+ if value.is_a?(Array)
611
+ value.compact.map { |v| _to_hash(v) }
612
+ elsif value.is_a?(Hash)
613
+ {}.tap do |hash|
614
+ value.each { |k, v| hash[k] = _to_hash(v) }
615
+ end
616
+ elsif value.respond_to? :to_hash
617
+ value.to_hash
618
+ else
619
+ value
620
+ end
621
+ end
622
+
623
+ end
624
+
625
+ end