akeyless 5.0.14 → 5.0.17

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 (199) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +6 -1
  3. data/docs/AccountGeneralSettings.md +2 -0
  4. data/docs/ActiveDirectoryPayload.md +2 -0
  5. data/docs/AllowedClientType.md +20 -0
  6. data/docs/AuthMethodAccessInfo.md +2 -0
  7. data/docs/AuthMethodCreateApiKey.md +2 -0
  8. data/docs/AuthMethodCreateAwsIam.md +2 -0
  9. data/docs/AuthMethodCreateAzureAD.md +2 -0
  10. data/docs/AuthMethodCreateCert.md +2 -0
  11. data/docs/AuthMethodCreateEmail.md +2 -0
  12. data/docs/AuthMethodCreateGcp.md +2 -0
  13. data/docs/AuthMethodCreateK8s.md +2 -0
  14. data/docs/AuthMethodCreateKerberos.md +2 -0
  15. data/docs/AuthMethodCreateLdap.md +2 -0
  16. data/docs/AuthMethodCreateOCI.md +2 -0
  17. data/docs/AuthMethodCreateOIDC.md +2 -0
  18. data/docs/AuthMethodCreateOauth2.md +2 -0
  19. data/docs/AuthMethodCreateSAML.md +2 -0
  20. data/docs/AuthMethodCreateUniversalIdentity.md +2 -0
  21. data/docs/AuthMethodUpdateApiKey.md +2 -0
  22. data/docs/AuthMethodUpdateAwsIam.md +2 -0
  23. data/docs/AuthMethodUpdateAzureAD.md +2 -0
  24. data/docs/AuthMethodUpdateCert.md +2 -0
  25. data/docs/AuthMethodUpdateEmail.md +2 -0
  26. data/docs/AuthMethodUpdateGcp.md +2 -0
  27. data/docs/AuthMethodUpdateK8s.md +2 -0
  28. data/docs/AuthMethodUpdateKerberos.md +2 -0
  29. data/docs/AuthMethodUpdateLdap.md +2 -0
  30. data/docs/AuthMethodUpdateOCI.md +2 -0
  31. data/docs/AuthMethodUpdateOIDC.md +2 -0
  32. data/docs/AuthMethodUpdateOauth2.md +2 -0
  33. data/docs/AuthMethodUpdateSAML.md +2 -0
  34. data/docs/AuthMethodUpdateUniversalIdentity.md +2 -0
  35. data/docs/BastionGlobalConf.md +4 -0
  36. data/docs/CreateAuthMethod.md +2 -0
  37. data/docs/CreateAuthMethodAWSIAM.md +2 -0
  38. data/docs/CreateAuthMethodAzureAD.md +2 -0
  39. data/docs/CreateAuthMethodCert.md +2 -0
  40. data/docs/CreateAuthMethodEmail.md +2 -0
  41. data/docs/CreateAuthMethodGCP.md +2 -0
  42. data/docs/CreateAuthMethodHuawei.md +2 -0
  43. data/docs/CreateAuthMethodK8S.md +2 -0
  44. data/docs/CreateAuthMethodLDAP.md +2 -0
  45. data/docs/CreateAuthMethodOAuth2.md +2 -0
  46. data/docs/CreateAuthMethodOCI.md +2 -0
  47. data/docs/CreateAuthMethodOIDC.md +2 -0
  48. data/docs/CreateAuthMethodSAML.md +2 -0
  49. data/docs/CreateAuthMethodUniversalIdentity.md +2 -0
  50. data/docs/CreatePKICertIssuer.md +6 -0
  51. data/docs/DSProducerDetails.md +10 -0
  52. data/docs/DynamicSecretCreateGcp.md +22 -6
  53. data/docs/DynamicSecretCreateGoogleWorkspace.md +2 -0
  54. data/docs/DynamicSecretCreateMongoDb.md +2 -0
  55. data/docs/DynamicSecretCreateMsSql.md +2 -0
  56. data/docs/DynamicSecretGetValue.md +2 -0
  57. data/docs/DynamicSecretUpdateGcp.md +22 -6
  58. data/docs/DynamicSecretUpdateGoogleWorkspace.md +2 -0
  59. data/docs/DynamicSecretUpdateMongoDb.md +2 -0
  60. data/docs/DynamicSecretUpdateMsSql.md +2 -0
  61. data/docs/EventForwarderGetOutput.md +3 -1
  62. data/docs/GatewayCreateMigration.md +2 -0
  63. data/docs/GatewayCreateProducerGcp.md +22 -6
  64. data/docs/GatewayCreateProducerMSSQL.md +2 -0
  65. data/docs/GatewayCreateProducerMongo.md +2 -0
  66. data/docs/GatewayUpdateMigration.md +2 -0
  67. data/docs/GatewayUpdateProducerGcp.md +22 -6
  68. data/docs/GatewayUpdateProducerMSSQL.md +2 -0
  69. data/docs/GatewayUpdateProducerMongo.md +2 -0
  70. data/docs/GatewayUpdateRemoteAccess.md +4 -0
  71. data/docs/GetDynamicSecretValue.md +2 -0
  72. data/docs/NotiForwarderDetailsInput.md +28 -0
  73. data/docs/PKICertificateIssueDetails.md +6 -0
  74. data/docs/RotatedSecretCreateSsh.md +4 -0
  75. data/docs/RotatedSecretDeleteSync.md +2 -0
  76. data/docs/RotatedSecretDetailsInfo.md +4 -0
  77. data/docs/RotatedSecretUpdateSsh.md +4 -0
  78. data/docs/SlackNotiForwarderDetails.md +18 -0
  79. data/docs/StaticSecretDeleteSync.md +2 -0
  80. data/docs/TeamsNotiForwarderDetails.md +18 -0
  81. data/docs/UpdateAccountSettings.md +4 -0
  82. data/docs/UpdateAuthMethod.md +2 -0
  83. data/docs/UpdateAuthMethodAWSIAM.md +2 -0
  84. data/docs/UpdateAuthMethodAzureAD.md +2 -0
  85. data/docs/UpdateAuthMethodCert.md +2 -0
  86. data/docs/UpdateAuthMethodGCP.md +2 -0
  87. data/docs/UpdateAuthMethodK8S.md +2 -0
  88. data/docs/UpdateAuthMethodLDAP.md +2 -0
  89. data/docs/UpdateAuthMethodOAuth2.md +2 -0
  90. data/docs/UpdateAuthMethodOCI.md +2 -0
  91. data/docs/UpdateAuthMethodOIDC.md +2 -0
  92. data/docs/UpdateAuthMethodSAML.md +2 -0
  93. data/docs/UpdateAuthMethodUniversalIdentity.md +2 -0
  94. data/docs/UpdatePKICertIssuer.md +6 -0
  95. data/docs/V2Api.md +4 -4
  96. data/docs/WebhookNotiForwarderDetails.md +26 -0
  97. data/docs/WindowsServiceAttributes.md +4 -0
  98. data/lib/akeyless/models/account_general_settings.rb +10 -1
  99. data/lib/akeyless/models/active_directory_payload.rb +10 -1
  100. data/lib/akeyless/models/allowed_client_type.rb +225 -0
  101. data/lib/akeyless/models/auth_method_access_info.rb +12 -1
  102. data/lib/akeyless/models/auth_method_create_api_key.rb +13 -1
  103. data/lib/akeyless/models/auth_method_create_aws_iam.rb +13 -1
  104. data/lib/akeyless/models/auth_method_create_azure_ad.rb +13 -1
  105. data/lib/akeyless/models/auth_method_create_cert.rb +13 -1
  106. data/lib/akeyless/models/auth_method_create_email.rb +13 -1
  107. data/lib/akeyless/models/auth_method_create_gcp.rb +13 -1
  108. data/lib/akeyless/models/auth_method_create_k8s.rb +13 -1
  109. data/lib/akeyless/models/auth_method_create_kerberos.rb +13 -1
  110. data/lib/akeyless/models/auth_method_create_ldap.rb +13 -1
  111. data/lib/akeyless/models/auth_method_create_oauth2.rb +13 -1
  112. data/lib/akeyless/models/auth_method_create_oci.rb +13 -1
  113. data/lib/akeyless/models/auth_method_create_oidc.rb +13 -1
  114. data/lib/akeyless/models/auth_method_create_saml.rb +13 -1
  115. data/lib/akeyless/models/auth_method_create_universal_identity.rb +13 -1
  116. data/lib/akeyless/models/auth_method_update_api_key.rb +13 -1
  117. data/lib/akeyless/models/auth_method_update_aws_iam.rb +13 -1
  118. data/lib/akeyless/models/auth_method_update_azure_ad.rb +13 -1
  119. data/lib/akeyless/models/auth_method_update_cert.rb +13 -1
  120. data/lib/akeyless/models/auth_method_update_email.rb +13 -1
  121. data/lib/akeyless/models/auth_method_update_gcp.rb +13 -1
  122. data/lib/akeyless/models/auth_method_update_k8s.rb +13 -1
  123. data/lib/akeyless/models/auth_method_update_kerberos.rb +13 -1
  124. data/lib/akeyless/models/auth_method_update_ldap.rb +13 -1
  125. data/lib/akeyless/models/auth_method_update_oauth2.rb +13 -1
  126. data/lib/akeyless/models/auth_method_update_oci.rb +13 -1
  127. data/lib/akeyless/models/auth_method_update_oidc.rb +13 -1
  128. data/lib/akeyless/models/auth_method_update_saml.rb +13 -1
  129. data/lib/akeyless/models/auth_method_update_universal_identity.rb +13 -1
  130. data/lib/akeyless/models/bastion_global_conf.rb +19 -1
  131. data/lib/akeyless/models/create_auth_method.rb +13 -1
  132. data/lib/akeyless/models/create_auth_method_awsiam.rb +13 -1
  133. data/lib/akeyless/models/create_auth_method_azure_ad.rb +13 -1
  134. data/lib/akeyless/models/create_auth_method_cert.rb +13 -1
  135. data/lib/akeyless/models/create_auth_method_email.rb +13 -1
  136. data/lib/akeyless/models/create_auth_method_gcp.rb +13 -1
  137. data/lib/akeyless/models/create_auth_method_huawei.rb +13 -1
  138. data/lib/akeyless/models/create_auth_method_k8_s.rb +13 -1
  139. data/lib/akeyless/models/create_auth_method_ldap.rb +13 -1
  140. data/lib/akeyless/models/create_auth_method_o_auth2.rb +13 -1
  141. data/lib/akeyless/models/create_auth_method_oci.rb +13 -1
  142. data/lib/akeyless/models/create_auth_method_oidc.rb +13 -1
  143. data/lib/akeyless/models/create_auth_method_saml.rb +13 -1
  144. data/lib/akeyless/models/create_auth_method_universal_identity.rb +13 -1
  145. data/lib/akeyless/models/create_pki_cert_issuer.rb +31 -1
  146. data/lib/akeyless/models/ds_producer_details.rb +47 -1
  147. data/lib/akeyless/models/dynamic_secret_create_gcp.rb +92 -12
  148. data/lib/akeyless/models/dynamic_secret_create_google_workspace.rb +11 -1
  149. data/lib/akeyless/models/dynamic_secret_create_mongo_db.rb +11 -1
  150. data/lib/akeyless/models/dynamic_secret_create_ms_sql.rb +11 -1
  151. data/lib/akeyless/models/dynamic_secret_get_value.rb +11 -1
  152. data/lib/akeyless/models/dynamic_secret_update_gcp.rb +92 -12
  153. data/lib/akeyless/models/dynamic_secret_update_google_workspace.rb +11 -1
  154. data/lib/akeyless/models/dynamic_secret_update_mongo_db.rb +11 -1
  155. data/lib/akeyless/models/dynamic_secret_update_ms_sql.rb +11 -1
  156. data/lib/akeyless/models/event_forwarder_get_output.rb +13 -4
  157. data/lib/akeyless/models/gateway_create_migration.rb +13 -1
  158. data/lib/akeyless/models/gateway_create_producer_gcp.rb +92 -12
  159. data/lib/akeyless/models/gateway_create_producer_mongo.rb +11 -1
  160. data/lib/akeyless/models/gateway_create_producer_mssql.rb +11 -1
  161. data/lib/akeyless/models/gateway_update_migration.rb +13 -1
  162. data/lib/akeyless/models/gateway_update_producer_gcp.rb +92 -12
  163. data/lib/akeyless/models/gateway_update_producer_mongo.rb +11 -1
  164. data/lib/akeyless/models/gateway_update_producer_mssql.rb +11 -1
  165. data/lib/akeyless/models/gateway_update_remote_access.rb +25 -1
  166. data/lib/akeyless/models/get_dynamic_secret_value.rb +11 -1
  167. data/lib/akeyless/models/noti_forwarder_details_input.rb +261 -0
  168. data/lib/akeyless/models/pki_certificate_issue_details.rb +31 -1
  169. data/lib/akeyless/models/rotated_secret_create_ssh.rb +21 -1
  170. data/lib/akeyless/models/rotated_secret_delete_sync.rb +11 -1
  171. data/lib/akeyless/models/rotated_secret_details_info.rb +21 -1
  172. data/lib/akeyless/models/rotated_secret_update_ssh.rb +21 -1
  173. data/lib/akeyless/models/slack_noti_forwarder_details.rb +214 -0
  174. data/lib/akeyless/models/static_secret_delete_sync.rb +11 -1
  175. data/lib/akeyless/models/teams_noti_forwarder_details.rb +214 -0
  176. data/lib/akeyless/models/update_account_settings.rb +23 -1
  177. data/lib/akeyless/models/update_auth_method.rb +13 -1
  178. data/lib/akeyless/models/update_auth_method_awsiam.rb +13 -1
  179. data/lib/akeyless/models/update_auth_method_azure_ad.rb +13 -1
  180. data/lib/akeyless/models/update_auth_method_cert.rb +13 -1
  181. data/lib/akeyless/models/update_auth_method_gcp.rb +13 -1
  182. data/lib/akeyless/models/update_auth_method_k8_s.rb +13 -1
  183. data/lib/akeyless/models/update_auth_method_ldap.rb +13 -1
  184. data/lib/akeyless/models/update_auth_method_o_auth2.rb +13 -1
  185. data/lib/akeyless/models/update_auth_method_oci.rb +13 -1
  186. data/lib/akeyless/models/update_auth_method_oidc.rb +13 -1
  187. data/lib/akeyless/models/update_auth_method_saml.rb +13 -1
  188. data/lib/akeyless/models/update_auth_method_universal_identity.rb +13 -1
  189. data/lib/akeyless/models/update_pki_cert_issuer.rb +31 -1
  190. data/lib/akeyless/models/webhook_noti_forwarder_details.rb +253 -0
  191. data/lib/akeyless/models/windows_service_attributes.rb +21 -1
  192. data/lib/akeyless/version.rb +1 -1
  193. data/lib/akeyless.rb +5 -0
  194. data/spec/models/allowed_client_type_spec.rb +42 -0
  195. data/spec/models/noti_forwarder_details_input_spec.rb +66 -0
  196. data/spec/models/slack_noti_forwarder_details_spec.rb +36 -0
  197. data/spec/models/teams_noti_forwarder_details_spec.rb +36 -0
  198. data/spec/models/webhook_noti_forwarder_details_spec.rb +60 -0
  199. metadata +21 -1
@@ -54,9 +54,15 @@ module Akeyless
54
54
  # Set this to allow the issuer will expose a CRL endpoint in the Gateway
55
55
  attr_accessor :create_private_crl
56
56
 
57
+ # Set this to enable an OCSP endpoint in the Gateway and include its URL in AIA
58
+ attr_accessor :create_private_ocsp
59
+
57
60
  # Set this to allow the cert issuer will expose a public CRL endpoint
58
61
  attr_accessor :create_public_crl
59
62
 
63
+ # Set this to enable a public OCSP endpoint and include its URL in AIA (served by UAM and includes account id)
64
+ attr_accessor :create_public_ocsp
65
+
60
66
  # Mark key usage as critical [true/false]
61
67
  attr_accessor :critical_key_usage
62
68
 
@@ -114,6 +120,9 @@ module Akeyless
114
120
  # If set, clients can request certificates without a CN
115
121
  attr_accessor :not_require_cn
116
122
 
123
+ # OCSP NextUpdate window for OCSP responses (min 10m). Supports s,m,h,d suffix.
124
+ attr_accessor :ocsp_ttl
125
+
117
126
  # A comma-separated list of organizational units (OU) that will be set in the issued certificate
118
127
  attr_accessor :organizational_units
119
128
 
@@ -169,7 +178,9 @@ module Akeyless
169
178
  :'code_signing_flag' => :'code-signing-flag',
170
179
  :'country' => :'country',
171
180
  :'create_private_crl' => :'create-private-crl',
181
+ :'create_private_ocsp' => :'create-private-ocsp',
172
182
  :'create_public_crl' => :'create-public-crl',
183
+ :'create_public_ocsp' => :'create-public-ocsp',
173
184
  :'critical_key_usage' => :'critical-key-usage',
174
185
  :'delete_protection' => :'delete_protection',
175
186
  :'description' => :'description',
@@ -189,6 +200,7 @@ module Akeyless
189
200
  :'new_name' => :'new-name',
190
201
  :'not_enforce_hostnames' => :'not-enforce-hostnames',
191
202
  :'not_require_cn' => :'not-require-cn',
203
+ :'ocsp_ttl' => :'ocsp-ttl',
192
204
  :'organizational_units' => :'organizational-units',
193
205
  :'organizations' => :'organizations',
194
206
  :'postal_code' => :'postal-code',
@@ -226,7 +238,9 @@ module Akeyless
226
238
  :'code_signing_flag' => :'Boolean',
227
239
  :'country' => :'String',
228
240
  :'create_private_crl' => :'Boolean',
241
+ :'create_private_ocsp' => :'Boolean',
229
242
  :'create_public_crl' => :'Boolean',
243
+ :'create_public_ocsp' => :'Boolean',
230
244
  :'critical_key_usage' => :'String',
231
245
  :'delete_protection' => :'String',
232
246
  :'description' => :'String',
@@ -246,6 +260,7 @@ module Akeyless
246
260
  :'new_name' => :'String',
247
261
  :'not_enforce_hostnames' => :'Boolean',
248
262
  :'not_require_cn' => :'Boolean',
263
+ :'ocsp_ttl' => :'String',
249
264
  :'organizational_units' => :'String',
250
265
  :'organizations' => :'String',
251
266
  :'postal_code' => :'String',
@@ -337,10 +352,18 @@ module Akeyless
337
352
  self.create_private_crl = attributes[:'create_private_crl']
338
353
  end
339
354
 
355
+ if attributes.key?(:'create_private_ocsp')
356
+ self.create_private_ocsp = attributes[:'create_private_ocsp']
357
+ end
358
+
340
359
  if attributes.key?(:'create_public_crl')
341
360
  self.create_public_crl = attributes[:'create_public_crl']
342
361
  end
343
362
 
363
+ if attributes.key?(:'create_public_ocsp')
364
+ self.create_public_ocsp = attributes[:'create_public_ocsp']
365
+ end
366
+
344
367
  if attributes.key?(:'critical_key_usage')
345
368
  self.critical_key_usage = attributes[:'critical_key_usage']
346
369
  else
@@ -431,6 +454,10 @@ module Akeyless
431
454
  self.not_require_cn = attributes[:'not_require_cn']
432
455
  end
433
456
 
457
+ if attributes.key?(:'ocsp_ttl')
458
+ self.ocsp_ttl = attributes[:'ocsp_ttl']
459
+ end
460
+
434
461
  if attributes.key?(:'organizational_units')
435
462
  self.organizational_units = attributes[:'organizational_units']
436
463
  end
@@ -531,7 +558,9 @@ module Akeyless
531
558
  code_signing_flag == o.code_signing_flag &&
532
559
  country == o.country &&
533
560
  create_private_crl == o.create_private_crl &&
561
+ create_private_ocsp == o.create_private_ocsp &&
534
562
  create_public_crl == o.create_public_crl &&
563
+ create_public_ocsp == o.create_public_ocsp &&
535
564
  critical_key_usage == o.critical_key_usage &&
536
565
  delete_protection == o.delete_protection &&
537
566
  description == o.description &&
@@ -551,6 +580,7 @@ module Akeyless
551
580
  new_name == o.new_name &&
552
581
  not_enforce_hostnames == o.not_enforce_hostnames &&
553
582
  not_require_cn == o.not_require_cn &&
583
+ ocsp_ttl == o.ocsp_ttl &&
554
584
  organizational_units == o.organizational_units &&
555
585
  organizations == o.organizations &&
556
586
  postal_code == o.postal_code &&
@@ -575,7 +605,7 @@ module Akeyless
575
605
  # Calculates hash code according to all attributes.
576
606
  # @return [Integer] Hash code
577
607
  def hash
578
- [add_tag, allow_any_name, allow_copy_ext_from_csr, allow_subdomains, allowed_domains, allowed_extra_extensions, allowed_ip_sans, allowed_uri_sans, auto_renew, client_flag, code_signing_flag, country, create_private_crl, create_public_crl, critical_key_usage, delete_protection, description, destination_path, disable_wildcards, enable_acme, expiration_event_in, gw_cluster_url, is_ca, item_custom_fields, json, key_usage, locality, max_path_len, metadata, name, new_name, not_enforce_hostnames, not_require_cn, organizational_units, organizations, postal_code, protect_certificates, province, rm_tag, scheduled_renew, server_flag, signer_key_name, street_address, token, ttl, uid_token].hash
608
+ [add_tag, allow_any_name, allow_copy_ext_from_csr, allow_subdomains, allowed_domains, allowed_extra_extensions, allowed_ip_sans, allowed_uri_sans, auto_renew, client_flag, code_signing_flag, country, create_private_crl, create_private_ocsp, create_public_crl, create_public_ocsp, critical_key_usage, delete_protection, description, destination_path, disable_wildcards, enable_acme, expiration_event_in, gw_cluster_url, is_ca, item_custom_fields, json, key_usage, locality, max_path_len, metadata, name, new_name, not_enforce_hostnames, not_require_cn, ocsp_ttl, organizational_units, organizations, postal_code, protect_certificates, province, rm_tag, scheduled_renew, server_flag, signer_key_name, street_address, token, ttl, uid_token].hash
579
609
  end
580
610
 
581
611
  # Builds the object from hash
@@ -0,0 +1,253 @@
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
+ class WebhookNotiForwarderDetails
18
+ # Auth type - Certificate
19
+ attr_accessor :certificate
20
+
21
+ # Auth type - User Password
22
+ attr_accessor :password
23
+
24
+ attr_accessor :private_key
25
+
26
+ attr_accessor :server_certificate
27
+
28
+ # Auth type - Token
29
+ attr_accessor :token
30
+
31
+ # Attribute mapping from ruby-style variable name to JSON key.
32
+ def self.attribute_map
33
+ {
34
+ :'certificate' => :'certificate',
35
+ :'password' => :'password',
36
+ :'private_key' => :'private_key',
37
+ :'server_certificate' => :'server_certificate',
38
+ :'token' => :'token'
39
+ }
40
+ end
41
+
42
+ # Returns all the JSON keys this model knows about
43
+ def self.acceptable_attributes
44
+ attribute_map.values
45
+ end
46
+
47
+ # Attribute type mapping.
48
+ def self.openapi_types
49
+ {
50
+ :'certificate' => :'String',
51
+ :'password' => :'String',
52
+ :'private_key' => :'String',
53
+ :'server_certificate' => :'String',
54
+ :'token' => :'String'
55
+ }
56
+ end
57
+
58
+ # List of attributes with nullable: true
59
+ def self.openapi_nullable
60
+ Set.new([
61
+ ])
62
+ end
63
+
64
+ # Initializes the object
65
+ # @param [Hash] attributes Model attributes in the form of hash
66
+ def initialize(attributes = {})
67
+ if (!attributes.is_a?(Hash))
68
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Akeyless::WebhookNotiForwarderDetails` initialize method"
69
+ end
70
+
71
+ # check to see if the attribute exists and convert string to symbol for hash key
72
+ attributes = attributes.each_with_object({}) { |(k, v), h|
73
+ if (!self.class.attribute_map.key?(k.to_sym))
74
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Akeyless::WebhookNotiForwarderDetails`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
75
+ end
76
+ h[k.to_sym] = v
77
+ }
78
+
79
+ if attributes.key?(:'certificate')
80
+ self.certificate = attributes[:'certificate']
81
+ end
82
+
83
+ if attributes.key?(:'password')
84
+ self.password = attributes[:'password']
85
+ end
86
+
87
+ if attributes.key?(:'private_key')
88
+ self.private_key = attributes[:'private_key']
89
+ end
90
+
91
+ if attributes.key?(:'server_certificate')
92
+ self.server_certificate = attributes[:'server_certificate']
93
+ end
94
+
95
+ if attributes.key?(:'token')
96
+ self.token = attributes[:'token']
97
+ end
98
+ end
99
+
100
+ # Show invalid properties with the reasons. Usually used together with valid?
101
+ # @return Array for valid properties with the reasons
102
+ def list_invalid_properties
103
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
104
+ invalid_properties = Array.new
105
+ invalid_properties
106
+ end
107
+
108
+ # Check to see if the all the properties in the model are valid
109
+ # @return true if the model is valid
110
+ def valid?
111
+ warn '[DEPRECATED] the `valid?` method is obsolete'
112
+ true
113
+ end
114
+
115
+ # Checks equality by comparing each attribute.
116
+ # @param [Object] Object to be compared
117
+ def ==(o)
118
+ return true if self.equal?(o)
119
+ self.class == o.class &&
120
+ certificate == o.certificate &&
121
+ password == o.password &&
122
+ private_key == o.private_key &&
123
+ server_certificate == o.server_certificate &&
124
+ token == o.token
125
+ end
126
+
127
+ # @see the `==` method
128
+ # @param [Object] Object to be compared
129
+ def eql?(o)
130
+ self == o
131
+ end
132
+
133
+ # Calculates hash code according to all attributes.
134
+ # @return [Integer] Hash code
135
+ def hash
136
+ [certificate, password, private_key, server_certificate, token].hash
137
+ end
138
+
139
+ # Builds the object from hash
140
+ # @param [Hash] attributes Model attributes in the form of hash
141
+ # @return [Object] Returns the model itself
142
+ def self.build_from_hash(attributes)
143
+ return nil unless attributes.is_a?(Hash)
144
+ attributes = attributes.transform_keys(&:to_sym)
145
+ transformed_hash = {}
146
+ openapi_types.each_pair do |key, type|
147
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
148
+ transformed_hash["#{key}"] = nil
149
+ elsif type =~ /\AArray<(.*)>/i
150
+ # check to ensure the input is an array given that the attribute
151
+ # is documented as an array but the input is not
152
+ if attributes[attribute_map[key]].is_a?(Array)
153
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
154
+ end
155
+ elsif !attributes[attribute_map[key]].nil?
156
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
157
+ end
158
+ end
159
+ new(transformed_hash)
160
+ end
161
+
162
+ # Deserializes the data based on type
163
+ # @param string type Data type
164
+ # @param string value Value to be deserialized
165
+ # @return [Object] Deserialized data
166
+ def self._deserialize(type, value)
167
+ case type.to_sym
168
+ when :Time
169
+ Time.parse(value)
170
+ when :Date
171
+ Date.parse(value)
172
+ when :String
173
+ value.to_s
174
+ when :Integer
175
+ value.to_i
176
+ when :Float
177
+ value.to_f
178
+ when :Boolean
179
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
180
+ true
181
+ else
182
+ false
183
+ end
184
+ when :Object
185
+ # generic object (usually a Hash), return directly
186
+ value
187
+ when /\AArray<(?<inner_type>.+)>\z/
188
+ inner_type = Regexp.last_match[:inner_type]
189
+ value.map { |v| _deserialize(inner_type, v) }
190
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
191
+ k_type = Regexp.last_match[:k_type]
192
+ v_type = Regexp.last_match[:v_type]
193
+ {}.tap do |hash|
194
+ value.each do |k, v|
195
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
196
+ end
197
+ end
198
+ else # model
199
+ # models (e.g. Pet) or oneOf
200
+ klass = Akeyless.const_get(type)
201
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
202
+ end
203
+ end
204
+
205
+ # Returns the string representation of the object
206
+ # @return [String] String presentation of the object
207
+ def to_s
208
+ to_hash.to_s
209
+ end
210
+
211
+ # to_body is an alias to to_hash (backward compatibility)
212
+ # @return [Hash] Returns the object in the form of hash
213
+ def to_body
214
+ to_hash
215
+ end
216
+
217
+ # Returns the object in the form of hash
218
+ # @return [Hash] Returns the object in the form of hash
219
+ def to_hash
220
+ hash = {}
221
+ self.class.attribute_map.each_pair do |attr, param|
222
+ value = self.send(attr)
223
+ if value.nil?
224
+ is_nullable = self.class.openapi_nullable.include?(attr)
225
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
226
+ end
227
+
228
+ hash[param] = _to_hash(value)
229
+ end
230
+ hash
231
+ end
232
+
233
+ # Outputs non-array value in the form of hash
234
+ # For object, use to_hash. Otherwise, just return the value
235
+ # @param [Object] value Any valid value
236
+ # @return [Hash] Returns the value in the form of hash
237
+ def _to_hash(value)
238
+ if value.is_a?(Array)
239
+ value.compact.map { |v| _to_hash(v) }
240
+ elsif value.is_a?(Hash)
241
+ {}.tap do |hash|
242
+ value.each { |k, v| hash[k] = _to_hash(v) }
243
+ end
244
+ elsif value.respond_to? :to_hash
245
+ value.to_hash
246
+ else
247
+ value
248
+ end
249
+ end
250
+
251
+ end
252
+
253
+ end
@@ -17,15 +17,23 @@ module Akeyless
17
17
  class WindowsServiceAttributes
18
18
  attr_accessor :connection_type
19
19
 
20
+ # IISAppPool marks this entry as an IIS Application Pool rather than a Windows Service
21
+ attr_accessor :iis_app_pool
22
+
20
23
  attr_accessor :port
21
24
 
25
+ # SkipRestart allows skipping recycle/start of the IIS App Pool after credential update
26
+ attr_accessor :skip_restart
27
+
22
28
  attr_accessor :use_tls
23
29
 
24
30
  # Attribute mapping from ruby-style variable name to JSON key.
25
31
  def self.attribute_map
26
32
  {
27
33
  :'connection_type' => :'connection_type',
34
+ :'iis_app_pool' => :'iis_app_pool',
28
35
  :'port' => :'port',
36
+ :'skip_restart' => :'skip_restart',
29
37
  :'use_tls' => :'use_tls'
30
38
  }
31
39
  end
@@ -39,7 +47,9 @@ module Akeyless
39
47
  def self.openapi_types
40
48
  {
41
49
  :'connection_type' => :'String',
50
+ :'iis_app_pool' => :'Boolean',
42
51
  :'port' => :'String',
52
+ :'skip_restart' => :'Boolean',
43
53
  :'use_tls' => :'Boolean'
44
54
  }
45
55
  end
@@ -69,10 +79,18 @@ module Akeyless
69
79
  self.connection_type = attributes[:'connection_type']
70
80
  end
71
81
 
82
+ if attributes.key?(:'iis_app_pool')
83
+ self.iis_app_pool = attributes[:'iis_app_pool']
84
+ end
85
+
72
86
  if attributes.key?(:'port')
73
87
  self.port = attributes[:'port']
74
88
  end
75
89
 
90
+ if attributes.key?(:'skip_restart')
91
+ self.skip_restart = attributes[:'skip_restart']
92
+ end
93
+
76
94
  if attributes.key?(:'use_tls')
77
95
  self.use_tls = attributes[:'use_tls']
78
96
  end
@@ -99,7 +117,9 @@ module Akeyless
99
117
  return true if self.equal?(o)
100
118
  self.class == o.class &&
101
119
  connection_type == o.connection_type &&
120
+ iis_app_pool == o.iis_app_pool &&
102
121
  port == o.port &&
122
+ skip_restart == o.skip_restart &&
103
123
  use_tls == o.use_tls
104
124
  end
105
125
 
@@ -112,7 +132,7 @@ module Akeyless
112
132
  # Calculates hash code according to all attributes.
113
133
  # @return [Integer] Hash code
114
134
  def hash
115
- [connection_type, port, use_tls].hash
135
+ [connection_type, iis_app_pool, port, skip_restart, use_tls].hash
116
136
  end
117
137
 
118
138
  # Builds the object from hash
@@ -11,5 +11,5 @@ Generator version: 7.10.0
11
11
  =end
12
12
 
13
13
  module Akeyless
14
- VERSION = '5.0.14'
14
+ VERSION = '5.0.17'
15
15
  end
data/lib/akeyless.rb CHANGED
@@ -47,6 +47,7 @@ require 'akeyless/models/alias_details_output'
47
47
  require 'akeyless/models/all_analytics_data'
48
48
  require 'akeyless/models/allowed_access'
49
49
  require 'akeyless/models/allowed_access_old'
50
+ require 'akeyless/models/allowed_client_type'
50
51
  require 'akeyless/models/allowed_ip_settings'
51
52
  require 'akeyless/models/artifactory_target_details'
52
53
  require 'akeyless/models/assoc_role_auth_method'
@@ -778,6 +779,7 @@ require 'akeyless/models/name'
778
779
  require 'akeyless/models/native_k8s_target_details'
779
780
  require 'akeyless/models/next_auto_rotation_event'
780
781
  require 'akeyless/models/noti_forwarder'
782
+ require 'akeyless/models/noti_forwarder_details_input'
781
783
  require 'akeyless/models/null_string'
782
784
  require 'akeyless/models/null_time'
783
785
  require 'akeyless/models/o_auth2_access_rules'
@@ -913,6 +915,7 @@ require 'akeyless/models/sign_pki_cert_output'
913
915
  require 'akeyless/models/sign_pki_cert_with_classic_key'
914
916
  require 'akeyless/models/sign_rsa_ssa_pss'
915
917
  require 'akeyless/models/sign_rsa_ssa_pss_output'
918
+ require 'akeyless/models/slack_noti_forwarder_details'
916
919
  require 'akeyless/models/sm_info'
917
920
  require 'akeyless/models/splunk_log_forwarding_config'
918
921
  require 'akeyless/models/sra_desktop_app_conf'
@@ -995,6 +998,7 @@ require 'akeyless/models/target_update_ssh'
995
998
  require 'akeyless/models/target_update_web'
996
999
  require 'akeyless/models/target_update_windows'
997
1000
  require 'akeyless/models/target_update_zero_ssl'
1001
+ require 'akeyless/models/teams_noti_forwarder_details'
998
1002
  require 'akeyless/models/tmp_user_data'
999
1003
  require 'akeyless/models/tokenize'
1000
1004
  require 'akeyless/models/tokenize_output'
@@ -1144,6 +1148,7 @@ require 'akeyless/models/web_bastion_guacamole'
1144
1148
  require 'akeyless/models/web_bastion_rdp_record'
1145
1149
  require 'akeyless/models/web_hook_noti_forwarder_public_details'
1146
1150
  require 'akeyless/models/web_target_details'
1151
+ require 'akeyless/models/webhook_noti_forwarder_details'
1147
1152
  require 'akeyless/models/windows_service'
1148
1153
  require 'akeyless/models/windows_service_attributes'
1149
1154
  require 'akeyless/models/windows_target_details'
@@ -0,0 +1,42 @@
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 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for Akeyless::AllowedClientType
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe Akeyless::AllowedClientType do
21
+ let(:instance) { Akeyless::AllowedClientType.new }
22
+
23
+ describe 'test an instance of AllowedClientType' do
24
+ it 'should create an instance of AllowedClientType' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(Akeyless::AllowedClientType)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "client_types"' do
31
+ it 'should work' do
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
+ end
34
+ end
35
+
36
+ describe 'test attribute "lock"' do
37
+ it 'should work' do
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
+ end
40
+ end
41
+
42
+ end
@@ -0,0 +1,66 @@
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 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for Akeyless::NotiForwarderDetailsInput
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe Akeyless::NotiForwarderDetailsInput do
21
+ let(:instance) { Akeyless::NotiForwarderDetailsInput.new }
22
+
23
+ describe 'test an instance of NotiForwarderDetailsInput' do
24
+ it 'should create an instance of NotiForwarderDetailsInput' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(Akeyless::NotiForwarderDetailsInput)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "app_private_key_pem_base64"' do
31
+ it 'should work' do
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
+ end
34
+ end
35
+
36
+ describe 'test attribute "client_secret"' do
37
+ it 'should work' do
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
+ end
40
+ end
41
+
42
+ describe 'test attribute "password"' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
+ end
46
+ end
47
+
48
+ describe 'test attribute "slack_noti_forwarder_details"' do
49
+ it 'should work' do
50
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
51
+ end
52
+ end
53
+
54
+ describe 'test attribute "teams_noti_forwarder_details"' do
55
+ it 'should work' do
56
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
57
+ end
58
+ end
59
+
60
+ describe 'test attribute "webhook_noti_forwarder_details"' do
61
+ it 'should work' do
62
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
63
+ end
64
+ end
65
+
66
+ end
@@ -0,0 +1,36 @@
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 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for Akeyless::SlackNotiForwarderDetails
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe Akeyless::SlackNotiForwarderDetails do
21
+ let(:instance) { Akeyless::SlackNotiForwarderDetails.new }
22
+
23
+ describe 'test an instance of SlackNotiForwarderDetails' do
24
+ it 'should create an instance of SlackNotiForwarderDetails' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(Akeyless::SlackNotiForwarderDetails)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "endpoint_url"' do
31
+ it 'should work' do
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
+ end
34
+ end
35
+
36
+ end
@@ -0,0 +1,36 @@
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 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for Akeyless::TeamsNotiForwarderDetails
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe Akeyless::TeamsNotiForwarderDetails do
21
+ let(:instance) { Akeyless::TeamsNotiForwarderDetails.new }
22
+
23
+ describe 'test an instance of TeamsNotiForwarderDetails' do
24
+ it 'should create an instance of TeamsNotiForwarderDetails' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(Akeyless::TeamsNotiForwarderDetails)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "webhook_url"' do
31
+ it 'should work' do
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
+ end
34
+ end
35
+
36
+ end