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
@@ -20,11 +20,39 @@ module Akeyless
20
20
 
21
21
  attr_accessor :api_key
22
22
 
23
+ # UseGatewayCloudIdentity authenticates with Anthropic Workload Identity Federation instead of ApiKey: the Gateway exchanges its own identity token for a short-lived Anthropic access token. ApiKey must be empty. See go/src/targets/llm/anthropic_wif_client.go.
24
+ attr_accessor :use_gw_cloud_identity
25
+
26
+ # WIFAzureAudience is the identifier URI (api://<app-id>) of the Entra app registration that represents the Claude API audience. Required with the azure source, empty with every other source.
27
+ attr_accessor :wif_azure_audience
28
+
29
+ # WIFFederationRuleID is the federation rule ID (fdrl_...).
30
+ attr_accessor :wif_federation_rule_id
31
+
32
+ # WIFIdentityTokenSource selects where the Gateway takes its identity token: file (default, projected Kubernetes or SPIFFE token), gcp (Google Cloud metadata server), aws (STS web identity token) or azure (Microsoft Entra ID).
33
+ attr_accessor :wif_identity_token_source
34
+
35
+ # WIFOrganizationID is the UUID of the Anthropic organization.
36
+ attr_accessor :wif_organization_id
37
+
38
+ # WIFServiceAccountID is the Claude service account ID (svac_...).
39
+ attr_accessor :wif_service_account_id
40
+
41
+ # WIFWorkspaceID is the optional workspace ID (wrkspc_...). Required by Anthropic only when the rule is enabled for more than one workspace.
42
+ attr_accessor :wif_workspace_id
43
+
23
44
  # Attribute mapping from ruby-style variable name to JSON key.
24
45
  def self.attribute_map
25
46
  {
26
47
  :'anthropic_url' => :'anthropic_url',
27
- :'api_key' => :'api_key'
48
+ :'api_key' => :'api_key',
49
+ :'use_gw_cloud_identity' => :'use_gw_cloud_identity',
50
+ :'wif_azure_audience' => :'wif_azure_audience',
51
+ :'wif_federation_rule_id' => :'wif_federation_rule_id',
52
+ :'wif_identity_token_source' => :'wif_identity_token_source',
53
+ :'wif_organization_id' => :'wif_organization_id',
54
+ :'wif_service_account_id' => :'wif_service_account_id',
55
+ :'wif_workspace_id' => :'wif_workspace_id'
28
56
  }
29
57
  end
30
58
 
@@ -37,7 +65,14 @@ module Akeyless
37
65
  def self.openapi_types
38
66
  {
39
67
  :'anthropic_url' => :'String',
40
- :'api_key' => :'String'
68
+ :'api_key' => :'String',
69
+ :'use_gw_cloud_identity' => :'Boolean',
70
+ :'wif_azure_audience' => :'String',
71
+ :'wif_federation_rule_id' => :'String',
72
+ :'wif_identity_token_source' => :'String',
73
+ :'wif_organization_id' => :'String',
74
+ :'wif_service_account_id' => :'String',
75
+ :'wif_workspace_id' => :'String'
41
76
  }
42
77
  end
43
78
 
@@ -69,6 +104,34 @@ module Akeyless
69
104
  if attributes.key?(:'api_key')
70
105
  self.api_key = attributes[:'api_key']
71
106
  end
107
+
108
+ if attributes.key?(:'use_gw_cloud_identity')
109
+ self.use_gw_cloud_identity = attributes[:'use_gw_cloud_identity']
110
+ end
111
+
112
+ if attributes.key?(:'wif_azure_audience')
113
+ self.wif_azure_audience = attributes[:'wif_azure_audience']
114
+ end
115
+
116
+ if attributes.key?(:'wif_federation_rule_id')
117
+ self.wif_federation_rule_id = attributes[:'wif_federation_rule_id']
118
+ end
119
+
120
+ if attributes.key?(:'wif_identity_token_source')
121
+ self.wif_identity_token_source = attributes[:'wif_identity_token_source']
122
+ end
123
+
124
+ if attributes.key?(:'wif_organization_id')
125
+ self.wif_organization_id = attributes[:'wif_organization_id']
126
+ end
127
+
128
+ if attributes.key?(:'wif_service_account_id')
129
+ self.wif_service_account_id = attributes[:'wif_service_account_id']
130
+ end
131
+
132
+ if attributes.key?(:'wif_workspace_id')
133
+ self.wif_workspace_id = attributes[:'wif_workspace_id']
134
+ end
72
135
  end
73
136
 
74
137
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -92,7 +155,14 @@ module Akeyless
92
155
  return true if self.equal?(o)
93
156
  self.class == o.class &&
94
157
  anthropic_url == o.anthropic_url &&
95
- api_key == o.api_key
158
+ api_key == o.api_key &&
159
+ use_gw_cloud_identity == o.use_gw_cloud_identity &&
160
+ wif_azure_audience == o.wif_azure_audience &&
161
+ wif_federation_rule_id == o.wif_federation_rule_id &&
162
+ wif_identity_token_source == o.wif_identity_token_source &&
163
+ wif_organization_id == o.wif_organization_id &&
164
+ wif_service_account_id == o.wif_service_account_id &&
165
+ wif_workspace_id == o.wif_workspace_id
96
166
  end
97
167
 
98
168
  # @see the `==` method
@@ -104,7 +174,7 @@ module Akeyless
104
174
  # Calculates hash code according to all attributes.
105
175
  # @return [Integer] Hash code
106
176
  def hash
107
- [anthropic_url, api_key].hash
177
+ [anthropic_url, api_key, use_gw_cloud_identity, wif_azure_audience, wif_federation_rule_id, wif_identity_token_source, wif_organization_id, wif_service_account_id, wif_workspace_id].hash
108
178
  end
109
179
 
110
180
  # Builds the object from hash
@@ -0,0 +1,346 @@
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
+ # An Atlassian site (Jira, Confluence or both) credential, on Atlassian Cloud or Data Center. Cloud uses the site URL (https://<site>.atlassian.net) with an OAuth 2.0 service account, a service account API token, or a user API token paired with the account email. Data Center uses a personal access token per product, with its own Jira and Confluence URLs. Read by the SDR Atlassian scanner.
18
+ class AtlassianTargetDetails
19
+ attr_accessor :atlassian_auth_type
20
+
21
+ # AtlassianAutomationKey is an optional Automation REST API key (Jira settings > System > Automation > API keys). Atlassian's automation API refuses an account API token, so without this key the scanner reports the automation rules as not read.
22
+ attr_accessor :atlassian_automation_key
23
+
24
+ # AtlassianCACertificate is a base64-encoded PEM CA certificate for a Data Center site signed by a private CA.
25
+ attr_accessor :atlassian_ca_certificate
26
+
27
+ attr_accessor :atlassian_client_id
28
+
29
+ attr_accessor :atlassian_client_secret
30
+
31
+ attr_accessor :atlassian_cloud_id
32
+
33
+ attr_accessor :atlassian_confluence_token
34
+
35
+ attr_accessor :atlassian_confluence_url
36
+
37
+ # When empty, the deployment type, auth type and products are inferred from the fields above, so targets saved before these fields existed keep working.
38
+ attr_accessor :atlassian_deployment_type
39
+
40
+ attr_accessor :atlassian_email
41
+
42
+ attr_accessor :atlassian_jira_token
43
+
44
+ attr_accessor :atlassian_jira_url
45
+
46
+ attr_accessor :atlassian_products
47
+
48
+ attr_accessor :atlassian_token
49
+
50
+ attr_accessor :atlassian_url
51
+
52
+ # Attribute mapping from ruby-style variable name to JSON key.
53
+ def self.attribute_map
54
+ {
55
+ :'atlassian_auth_type' => :'atlassian_auth_type',
56
+ :'atlassian_automation_key' => :'atlassian_automation_key',
57
+ :'atlassian_ca_certificate' => :'atlassian_ca_certificate',
58
+ :'atlassian_client_id' => :'atlassian_client_id',
59
+ :'atlassian_client_secret' => :'atlassian_client_secret',
60
+ :'atlassian_cloud_id' => :'atlassian_cloud_id',
61
+ :'atlassian_confluence_token' => :'atlassian_confluence_token',
62
+ :'atlassian_confluence_url' => :'atlassian_confluence_url',
63
+ :'atlassian_deployment_type' => :'atlassian_deployment_type',
64
+ :'atlassian_email' => :'atlassian_email',
65
+ :'atlassian_jira_token' => :'atlassian_jira_token',
66
+ :'atlassian_jira_url' => :'atlassian_jira_url',
67
+ :'atlassian_products' => :'atlassian_products',
68
+ :'atlassian_token' => :'atlassian_token',
69
+ :'atlassian_url' => :'atlassian_url'
70
+ }
71
+ end
72
+
73
+ # Returns all the JSON keys this model knows about
74
+ def self.acceptable_attributes
75
+ attribute_map.values
76
+ end
77
+
78
+ # Attribute type mapping.
79
+ def self.openapi_types
80
+ {
81
+ :'atlassian_auth_type' => :'String',
82
+ :'atlassian_automation_key' => :'String',
83
+ :'atlassian_ca_certificate' => :'String',
84
+ :'atlassian_client_id' => :'String',
85
+ :'atlassian_client_secret' => :'String',
86
+ :'atlassian_cloud_id' => :'String',
87
+ :'atlassian_confluence_token' => :'String',
88
+ :'atlassian_confluence_url' => :'String',
89
+ :'atlassian_deployment_type' => :'String',
90
+ :'atlassian_email' => :'String',
91
+ :'atlassian_jira_token' => :'String',
92
+ :'atlassian_jira_url' => :'String',
93
+ :'atlassian_products' => :'Array<String>',
94
+ :'atlassian_token' => :'String',
95
+ :'atlassian_url' => :'String'
96
+ }
97
+ end
98
+
99
+ # List of attributes with nullable: true
100
+ def self.openapi_nullable
101
+ Set.new([
102
+ ])
103
+ end
104
+
105
+ # Initializes the object
106
+ # @param [Hash] attributes Model attributes in the form of hash
107
+ def initialize(attributes = {})
108
+ if (!attributes.is_a?(Hash))
109
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Akeyless::AtlassianTargetDetails` initialize method"
110
+ end
111
+
112
+ # check to see if the attribute exists and convert string to symbol for hash key
113
+ attributes = attributes.each_with_object({}) { |(k, v), h|
114
+ if (!self.class.attribute_map.key?(k.to_sym))
115
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Akeyless::AtlassianTargetDetails`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
116
+ end
117
+ h[k.to_sym] = v
118
+ }
119
+
120
+ if attributes.key?(:'atlassian_auth_type')
121
+ self.atlassian_auth_type = attributes[:'atlassian_auth_type']
122
+ end
123
+
124
+ if attributes.key?(:'atlassian_automation_key')
125
+ self.atlassian_automation_key = attributes[:'atlassian_automation_key']
126
+ end
127
+
128
+ if attributes.key?(:'atlassian_ca_certificate')
129
+ self.atlassian_ca_certificate = attributes[:'atlassian_ca_certificate']
130
+ end
131
+
132
+ if attributes.key?(:'atlassian_client_id')
133
+ self.atlassian_client_id = attributes[:'atlassian_client_id']
134
+ end
135
+
136
+ if attributes.key?(:'atlassian_client_secret')
137
+ self.atlassian_client_secret = attributes[:'atlassian_client_secret']
138
+ end
139
+
140
+ if attributes.key?(:'atlassian_cloud_id')
141
+ self.atlassian_cloud_id = attributes[:'atlassian_cloud_id']
142
+ end
143
+
144
+ if attributes.key?(:'atlassian_confluence_token')
145
+ self.atlassian_confluence_token = attributes[:'atlassian_confluence_token']
146
+ end
147
+
148
+ if attributes.key?(:'atlassian_confluence_url')
149
+ self.atlassian_confluence_url = attributes[:'atlassian_confluence_url']
150
+ end
151
+
152
+ if attributes.key?(:'atlassian_deployment_type')
153
+ self.atlassian_deployment_type = attributes[:'atlassian_deployment_type']
154
+ end
155
+
156
+ if attributes.key?(:'atlassian_email')
157
+ self.atlassian_email = attributes[:'atlassian_email']
158
+ end
159
+
160
+ if attributes.key?(:'atlassian_jira_token')
161
+ self.atlassian_jira_token = attributes[:'atlassian_jira_token']
162
+ end
163
+
164
+ if attributes.key?(:'atlassian_jira_url')
165
+ self.atlassian_jira_url = attributes[:'atlassian_jira_url']
166
+ end
167
+
168
+ if attributes.key?(:'atlassian_products')
169
+ if (value = attributes[:'atlassian_products']).is_a?(Array)
170
+ self.atlassian_products = value
171
+ end
172
+ end
173
+
174
+ if attributes.key?(:'atlassian_token')
175
+ self.atlassian_token = attributes[:'atlassian_token']
176
+ end
177
+
178
+ if attributes.key?(:'atlassian_url')
179
+ self.atlassian_url = attributes[:'atlassian_url']
180
+ end
181
+ end
182
+
183
+ # Show invalid properties with the reasons. Usually used together with valid?
184
+ # @return Array for valid properties with the reasons
185
+ def list_invalid_properties
186
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
187
+ invalid_properties = Array.new
188
+ invalid_properties
189
+ end
190
+
191
+ # Check to see if the all the properties in the model are valid
192
+ # @return true if the model is valid
193
+ def valid?
194
+ warn '[DEPRECATED] the `valid?` method is obsolete'
195
+ true
196
+ end
197
+
198
+ # Checks equality by comparing each attribute.
199
+ # @param [Object] Object to be compared
200
+ def ==(o)
201
+ return true if self.equal?(o)
202
+ self.class == o.class &&
203
+ atlassian_auth_type == o.atlassian_auth_type &&
204
+ atlassian_automation_key == o.atlassian_automation_key &&
205
+ atlassian_ca_certificate == o.atlassian_ca_certificate &&
206
+ atlassian_client_id == o.atlassian_client_id &&
207
+ atlassian_client_secret == o.atlassian_client_secret &&
208
+ atlassian_cloud_id == o.atlassian_cloud_id &&
209
+ atlassian_confluence_token == o.atlassian_confluence_token &&
210
+ atlassian_confluence_url == o.atlassian_confluence_url &&
211
+ atlassian_deployment_type == o.atlassian_deployment_type &&
212
+ atlassian_email == o.atlassian_email &&
213
+ atlassian_jira_token == o.atlassian_jira_token &&
214
+ atlassian_jira_url == o.atlassian_jira_url &&
215
+ atlassian_products == o.atlassian_products &&
216
+ atlassian_token == o.atlassian_token &&
217
+ atlassian_url == o.atlassian_url
218
+ end
219
+
220
+ # @see the `==` method
221
+ # @param [Object] Object to be compared
222
+ def eql?(o)
223
+ self == o
224
+ end
225
+
226
+ # Calculates hash code according to all attributes.
227
+ # @return [Integer] Hash code
228
+ def hash
229
+ [atlassian_auth_type, atlassian_automation_key, atlassian_ca_certificate, atlassian_client_id, atlassian_client_secret, atlassian_cloud_id, atlassian_confluence_token, atlassian_confluence_url, atlassian_deployment_type, atlassian_email, atlassian_jira_token, atlassian_jira_url, atlassian_products, atlassian_token, atlassian_url].hash
230
+ end
231
+
232
+ # Builds the object from hash
233
+ # @param [Hash] attributes Model attributes in the form of hash
234
+ # @return [Object] Returns the model itself
235
+ def self.build_from_hash(attributes)
236
+ return nil unless attributes.is_a?(Hash)
237
+ attributes = attributes.transform_keys(&:to_sym)
238
+ transformed_hash = {}
239
+ openapi_types.each_pair do |key, type|
240
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
241
+ transformed_hash["#{key}"] = nil
242
+ elsif type =~ /\AArray<(.*)>/i
243
+ # check to ensure the input is an array given that the attribute
244
+ # is documented as an array but the input is not
245
+ if attributes[attribute_map[key]].is_a?(Array)
246
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
247
+ end
248
+ elsif !attributes[attribute_map[key]].nil?
249
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
250
+ end
251
+ end
252
+ new(transformed_hash)
253
+ end
254
+
255
+ # Deserializes the data based on type
256
+ # @param string type Data type
257
+ # @param string value Value to be deserialized
258
+ # @return [Object] Deserialized data
259
+ def self._deserialize(type, value)
260
+ case type.to_sym
261
+ when :Time
262
+ Time.parse(value)
263
+ when :Date
264
+ Date.parse(value)
265
+ when :String
266
+ value.to_s
267
+ when :Integer
268
+ value.to_i
269
+ when :Float
270
+ value.to_f
271
+ when :Boolean
272
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
273
+ true
274
+ else
275
+ false
276
+ end
277
+ when :Object
278
+ # generic object (usually a Hash), return directly
279
+ value
280
+ when /\AArray<(?<inner_type>.+)>\z/
281
+ inner_type = Regexp.last_match[:inner_type]
282
+ value.map { |v| _deserialize(inner_type, v) }
283
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
284
+ k_type = Regexp.last_match[:k_type]
285
+ v_type = Regexp.last_match[:v_type]
286
+ {}.tap do |hash|
287
+ value.each do |k, v|
288
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
289
+ end
290
+ end
291
+ else # model
292
+ # models (e.g. Pet) or oneOf
293
+ klass = Akeyless.const_get(type)
294
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
295
+ end
296
+ end
297
+
298
+ # Returns the string representation of the object
299
+ # @return [String] String presentation of the object
300
+ def to_s
301
+ to_hash.to_s
302
+ end
303
+
304
+ # to_body is an alias to to_hash (backward compatibility)
305
+ # @return [Hash] Returns the object in the form of hash
306
+ def to_body
307
+ to_hash
308
+ end
309
+
310
+ # Returns the object in the form of hash
311
+ # @return [Hash] Returns the object in the form of hash
312
+ def to_hash
313
+ hash = {}
314
+ self.class.attribute_map.each_pair do |attr, param|
315
+ value = self.send(attr)
316
+ if value.nil?
317
+ is_nullable = self.class.openapi_nullable.include?(attr)
318
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
319
+ end
320
+
321
+ hash[param] = _to_hash(value)
322
+ end
323
+ hash
324
+ end
325
+
326
+ # Outputs non-array value in the form of hash
327
+ # For object, use to_hash. Otherwise, just return the value
328
+ # @param [Object] value Any valid value
329
+ # @return [Hash] Returns the value in the form of hash
330
+ def _to_hash(value)
331
+ if value.is_a?(Array)
332
+ value.compact.map { |v| _to_hash(v) }
333
+ elsif value.is_a?(Hash)
334
+ {}.tap do |hash|
335
+ value.each { |k, v| hash[k] = _to_hash(v) }
336
+ end
337
+ elsif value.respond_to? :to_hash
338
+ value.to_hash
339
+ else
340
+ value
341
+ end
342
+ end
343
+
344
+ end
345
+
346
+ end
@@ -33,6 +33,9 @@ module Akeyless
33
33
  # Password (relevant only for access-type=password)
34
34
  attr_accessor :admin_password
35
35
 
36
+ # Route the interactive OIDC/SAML browser login through the Gateway (gateway-url) instead of Akeyless Auth (relevant only for access-type=saml/oidc)
37
+ attr_accessor :auth_via_gateway
38
+
36
39
  # Azure cloud environment to use. Values: AzureCloud (default), AzureUSGovernment, AzureChinaCloud.
37
40
  attr_accessor :azure_cloud
38
41
 
@@ -118,6 +121,7 @@ module Akeyless
118
121
  :'account_id' => :'account-id',
119
122
  :'admin_email' => :'admin-email',
120
123
  :'admin_password' => :'admin-password',
124
+ :'auth_via_gateway' => :'auth-via-gateway',
121
125
  :'azure_cloud' => :'azure-cloud',
122
126
  :'cert_challenge' => :'cert-challenge',
123
127
  :'cert_data' => :'cert-data',
@@ -161,6 +165,7 @@ module Akeyless
161
165
  :'account_id' => :'String',
162
166
  :'admin_email' => :'String',
163
167
  :'admin_password' => :'String',
168
+ :'auth_via_gateway' => :'Boolean',
164
169
  :'azure_cloud' => :'String',
165
170
  :'cert_challenge' => :'String',
166
171
  :'cert_data' => :'String',
@@ -237,6 +242,10 @@ module Akeyless
237
242
  self.admin_password = attributes[:'admin_password']
238
243
  end
239
244
 
245
+ if attributes.key?(:'auth_via_gateway')
246
+ self.auth_via_gateway = attributes[:'auth_via_gateway']
247
+ end
248
+
240
249
  if attributes.key?(:'azure_cloud')
241
250
  self.azure_cloud = attributes[:'azure_cloud']
242
251
  else
@@ -378,6 +387,7 @@ module Akeyless
378
387
  account_id == o.account_id &&
379
388
  admin_email == o.admin_email &&
380
389
  admin_password == o.admin_password &&
390
+ auth_via_gateway == o.auth_via_gateway &&
381
391
  azure_cloud == o.azure_cloud &&
382
392
  cert_challenge == o.cert_challenge &&
383
393
  cert_data == o.cert_data &&
@@ -415,7 +425,7 @@ module Akeyless
415
425
  # Calculates hash code according to all attributes.
416
426
  # @return [Integer] Hash code
417
427
  def hash
418
- [access_id, access_key, access_type, account_id, admin_email, admin_password, azure_cloud, cert_challenge, cert_data, cloud_id, debug, disable_pafxfast, gateway_spn, gateway_url, gcp_audience, json, jwt, k8s_auth_config_name, k8s_service_account_token, kerberos_token, kerberos_username, key_data, keytab_data, krb5_conf_data, ldap_password, oci_auth_type, oci_group_ocid, otp, signed_cert_challenge, uid_token, use_remote_browser, username].hash
428
+ [access_id, access_key, access_type, account_id, admin_email, admin_password, auth_via_gateway, azure_cloud, cert_challenge, cert_data, cloud_id, debug, disable_pafxfast, gateway_spn, gateway_url, gcp_audience, json, jwt, k8s_auth_config_name, k8s_service_account_token, kerberos_token, kerberos_username, key_data, keytab_data, krb5_conf_data, ldap_password, oci_auth_type, oci_group_ocid, otp, signed_cert_challenge, uid_token, use_remote_browser, username].hash
419
429
  end
420
430
 
421
431
  # Builds the object from hash
@@ -52,6 +52,8 @@ module Akeyless
52
52
 
53
53
  attr_accessor :modification_date
54
54
 
55
+ attr_accessor :owner
56
+
55
57
  attr_accessor :uid_expiration_events
56
58
 
57
59
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -75,6 +77,7 @@ module Akeyless
75
77
  :'expiration_events' => :'expiration_events',
76
78
  :'is_approved' => :'is_approved',
77
79
  :'modification_date' => :'modification_date',
80
+ :'owner' => :'owner',
78
81
  :'uid_expiration_events' => :'uid_expiration_events'
79
82
  }
80
83
  end
@@ -105,6 +108,7 @@ module Akeyless
105
108
  :'expiration_events' => :'Array<AuthExpirationEvent>',
106
109
  :'is_approved' => :'Boolean',
107
110
  :'modification_date' => :'Time',
111
+ :'owner' => :'String',
108
112
  :'uid_expiration_events' => :'Array<UidExpirationEvent>'
109
113
  }
110
114
  end
@@ -210,6 +214,10 @@ module Akeyless
210
214
  self.modification_date = attributes[:'modification_date']
211
215
  end
212
216
 
217
+ if attributes.key?(:'owner')
218
+ self.owner = attributes[:'owner']
219
+ end
220
+
213
221
  if attributes.key?(:'uid_expiration_events')
214
222
  if (value = attributes[:'uid_expiration_events']).is_a?(Array)
215
223
  self.uid_expiration_events = value
@@ -255,6 +263,7 @@ module Akeyless
255
263
  expiration_events == o.expiration_events &&
256
264
  is_approved == o.is_approved &&
257
265
  modification_date == o.modification_date &&
266
+ owner == o.owner &&
258
267
  uid_expiration_events == o.uid_expiration_events
259
268
  end
260
269
 
@@ -267,7 +276,7 @@ module Akeyless
267
276
  # Calculates hash code according to all attributes.
268
277
  # @return [Integer] Hash code
269
278
  def hash
270
- [access_date, access_date_display, access_info, account_id, associated_gw_ids, auth_method_access_id, auth_method_additional_data, auth_method_id, auth_method_name, auth_method_roles_assoc, bookmark_login_url_template, client_permissions, creation_date, delete_protection, description, expiration_events, is_approved, modification_date, uid_expiration_events].hash
279
+ [access_date, access_date_display, access_info, account_id, associated_gw_ids, auth_method_access_id, auth_method_additional_data, auth_method_id, auth_method_name, auth_method_roles_assoc, bookmark_login_url_template, client_permissions, creation_date, delete_protection, description, expiration_events, is_approved, modification_date, owner, uid_expiration_events].hash
271
280
  end
272
281
 
273
282
  # Builds the object from hash
@@ -73,6 +73,9 @@ module Akeyless
73
73
  # Auth Method name
74
74
  attr_accessor :name
75
75
 
76
+ # Auth Method owner (free text, up to 255 characters). On update, omit to keep the current owner and pass an empty value to clear it
77
+ attr_accessor :owner
78
+
76
79
  # Choose the relevant product type for the auth method [sm, sra, pm, dp, ca, ara]
77
80
  attr_accessor :product_type
78
81
 
@@ -110,6 +113,7 @@ module Akeyless
110
113
  :'json' => :'json',
111
114
  :'jwt_ttl' => :'jwt-ttl',
112
115
  :'name' => :'name',
116
+ :'owner' => :'owner',
113
117
  :'product_type' => :'product-type',
114
118
  :'sts_url' => :'sts-url',
115
119
  :'token' => :'token',
@@ -145,6 +149,7 @@ module Akeyless
145
149
  :'json' => :'Boolean',
146
150
  :'jwt_ttl' => :'Integer',
147
151
  :'name' => :'String',
152
+ :'owner' => :'String',
148
153
  :'product_type' => :'Array<String>',
149
154
  :'sts_url' => :'String',
150
155
  :'token' => :'String',
@@ -282,6 +287,10 @@ module Akeyless
282
287
  self.name = nil
283
288
  end
284
289
 
290
+ if attributes.key?(:'owner')
291
+ self.owner = attributes[:'owner']
292
+ end
293
+
285
294
  if attributes.key?(:'product_type')
286
295
  if (value = attributes[:'product_type']).is_a?(Array)
287
296
  self.product_type = value
@@ -351,6 +360,7 @@ module Akeyless
351
360
  json == o.json &&
352
361
  jwt_ttl == o.jwt_ttl &&
353
362
  name == o.name &&
363
+ owner == o.owner &&
354
364
  product_type == o.product_type &&
355
365
  sts_url == o.sts_url &&
356
366
  token == o.token &&
@@ -367,7 +377,7 @@ module Akeyless
367
377
  # Calculates hash code according to all attributes.
368
378
  # @return [Integer] Hash code
369
379
  def hash
370
- [access_expires, allowed_client_type, audit_logs_claims, bound_account_id, bound_arn, bound_ips, bound_resource_id, bound_role_id, bound_role_name, bound_user_id, bound_user_name, delete_protection, description, expiration_event_in, force_sub_claims, gw_bound_ips, json, jwt_ttl, name, product_type, sts_url, token, uid_token, unique_identifier].hash
380
+ [access_expires, allowed_client_type, audit_logs_claims, bound_account_id, bound_arn, bound_ips, bound_resource_id, bound_role_id, bound_role_name, bound_user_id, bound_user_name, delete_protection, description, expiration_event_in, force_sub_claims, gw_bound_ips, json, jwt_ttl, name, owner, product_type, sts_url, token, uid_token, unique_identifier].hash
371
381
  end
372
382
 
373
383
  # Builds the object from hash
@@ -52,6 +52,9 @@ module Akeyless
52
52
  # Auth Method name
53
53
  attr_accessor :name
54
54
 
55
+ # Auth Method owner (free text, up to 255 characters). On update, omit to keep the current owner and pass an empty value to clear it
56
+ attr_accessor :owner
57
+
55
58
  # Choose the relevant product type for the auth method [sm, sra, pm, dp, ca, ara]
56
59
  attr_accessor :product_type
57
60
 
@@ -76,6 +79,7 @@ module Akeyless
76
79
  :'json' => :'json',
77
80
  :'jwt_ttl' => :'jwt-ttl',
78
81
  :'name' => :'name',
82
+ :'owner' => :'owner',
79
83
  :'product_type' => :'product-type',
80
84
  :'token' => :'token',
81
85
  :'uid_token' => :'uid-token'
@@ -102,6 +106,7 @@ module Akeyless
102
106
  :'json' => :'Boolean',
103
107
  :'jwt_ttl' => :'Integer',
104
108
  :'name' => :'String',
109
+ :'owner' => :'String',
105
110
  :'product_type' => :'Array<String>',
106
111
  :'token' => :'String',
107
112
  :'uid_token' => :'String'
@@ -195,6 +200,10 @@ module Akeyless
195
200
  self.name = nil
196
201
  end
197
202
 
203
+ if attributes.key?(:'owner')
204
+ self.owner = attributes[:'owner']
205
+ end
206
+
198
207
  if attributes.key?(:'product_type')
199
208
  if (value = attributes[:'product_type']).is_a?(Array)
200
209
  self.product_type = value
@@ -247,6 +256,7 @@ module Akeyless
247
256
  json == o.json &&
248
257
  jwt_ttl == o.jwt_ttl &&
249
258
  name == o.name &&
259
+ owner == o.owner &&
250
260
  product_type == o.product_type &&
251
261
  token == o.token &&
252
262
  uid_token == o.uid_token
@@ -261,7 +271,7 @@ module Akeyless
261
271
  # Calculates hash code according to all attributes.
262
272
  # @return [Integer] Hash code
263
273
  def hash
264
- [access_expires, allowed_client_type, audit_logs_claims, bound_ips, delete_protection, description, expiration_event_in, force_sub_claims, gw_bound_ips, json, jwt_ttl, name, product_type, token, uid_token].hash
274
+ [access_expires, allowed_client_type, audit_logs_claims, bound_ips, delete_protection, description, expiration_event_in, force_sub_claims, gw_bound_ips, json, jwt_ttl, name, owner, product_type, token, uid_token].hash
265
275
  end
266
276
 
267
277
  # Builds the object from hash