akeyless 3.5.4 → 3.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (148) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +9 -2
  3. data/docs/AssocTargetItem.md +8 -0
  4. data/docs/AuthMethod.md +2 -0
  5. data/docs/CertificateChainInfo.md +4 -0
  6. data/docs/CertificateVersionInfo.md +22 -0
  7. data/docs/Connect.md +1 -1
  8. data/docs/CreateAuthMethod.md +2 -0
  9. data/docs/CreateAuthMethodAWSIAM.md +2 -0
  10. data/docs/CreateAuthMethodAzureAD.md +3 -1
  11. data/docs/CreateAuthMethodCert.md +2 -0
  12. data/docs/CreateAuthMethodEmail.md +2 -0
  13. data/docs/CreateAuthMethodGCP.md +2 -0
  14. data/docs/CreateAuthMethodHuawei.md +2 -0
  15. data/docs/CreateAuthMethodK8S.md +2 -0
  16. data/docs/CreateAuthMethodLDAP.md +2 -0
  17. data/docs/CreateAuthMethodOAuth2.md +2 -0
  18. data/docs/CreateAuthMethodOIDC.md +2 -0
  19. data/docs/CreateAuthMethodSAML.md +2 -0
  20. data/docs/CreateAuthMethodUniversalIdentity.md +2 -0
  21. data/docs/CreateEventForwarder.md +1 -1
  22. data/docs/CreateLinkedTarget.md +2 -0
  23. data/docs/CreateRole.md +4 -0
  24. data/docs/CreateRotatedSecret.md +7 -1
  25. data/docs/CreateSSHCertIssuer.md +4 -4
  26. data/docs/CreateSecret.md +2 -0
  27. data/docs/GatewayCreateMigration.md +2 -0
  28. data/docs/GatewayCreateProducerCassandra.md +4 -0
  29. data/docs/GatewayUpdateItem.md +2 -0
  30. data/docs/GatewayUpdateMigration.md +2 -0
  31. data/docs/GatewayUpdateProducerCassandra.md +4 -0
  32. data/docs/GenerateCsr.md +1 -1
  33. data/docs/GwClusterIdentity.md +2 -0
  34. data/docs/ImportPasswords.md +3 -1
  35. data/docs/ImportPasswordsOutput.md +3 -1
  36. data/docs/ItemVersion.md +2 -0
  37. data/docs/ProvisionCertificate.md +28 -0
  38. data/docs/ProvisionCertificateOutput.md +24 -0
  39. data/docs/RenewCertificate.md +28 -0
  40. data/docs/RenewCertificateOutput.md +28 -0
  41. data/docs/SecureRemoteAccess.md +2 -0
  42. data/docs/ServerInventoryPayload.md +2 -0
  43. data/docs/SetRoleRule.md +1 -1
  44. data/docs/SignDataWithClassicKey.md +2 -0
  45. data/docs/SignEcDsa.md +5 -1
  46. data/docs/SignPKCS1.md +9 -1
  47. data/docs/SignPKCS1Output.md +1 -1
  48. data/docs/SignRsaSsaPss.md +5 -1
  49. data/docs/StaticSecretDetailsInfo.md +2 -0
  50. data/docs/TargetItemVersion.md +2 -0
  51. data/docs/UpdateAuthMethod.md +2 -0
  52. data/docs/UpdateAuthMethodAWSIAM.md +2 -0
  53. data/docs/UpdateAuthMethodAzureAD.md +3 -1
  54. data/docs/UpdateAuthMethodCert.md +2 -0
  55. data/docs/UpdateAuthMethodGCP.md +2 -0
  56. data/docs/UpdateAuthMethodK8S.md +2 -0
  57. data/docs/UpdateAuthMethodLDAP.md +2 -0
  58. data/docs/UpdateAuthMethodOAuth2.md +2 -0
  59. data/docs/UpdateAuthMethodOIDC.md +2 -0
  60. data/docs/UpdateAuthMethodSAML.md +2 -0
  61. data/docs/UpdateAuthMethodUniversalIdentity.md +2 -0
  62. data/docs/UpdateCertificateValue.md +2 -0
  63. data/docs/UpdateItem.md +6 -0
  64. data/docs/UpdateLinkedTarget.md +2 -0
  65. data/docs/UpdateRole.md +4 -0
  66. data/docs/UpdateSSHCertIssuer.md +3 -3
  67. data/docs/UpdateSecretVal.md +2 -0
  68. data/docs/V2Api.md +138 -9
  69. data/docs/VerifyEcDsa.md +5 -1
  70. data/docs/VerifyPKCS1.md +9 -1
  71. data/docs/VerifyRsaSsaPss.md +5 -1
  72. data/lib/akeyless/api/v2_api.rb +146 -7
  73. data/lib/akeyless/models/assoc_target_item.rb +43 -1
  74. data/lib/akeyless/models/auth_method.rb +10 -1
  75. data/lib/akeyless/models/certificate_chain_info.rb +19 -1
  76. data/lib/akeyless/models/certificate_version_info.rb +232 -0
  77. data/lib/akeyless/models/connect.rb +1 -1
  78. data/lib/akeyless/models/create_auth_method.rb +11 -1
  79. data/lib/akeyless/models/create_auth_method_awsiam.rb +11 -1
  80. data/lib/akeyless/models/create_auth_method_azure_ad.rb +12 -2
  81. data/lib/akeyless/models/create_auth_method_cert.rb +11 -1
  82. data/lib/akeyless/models/create_auth_method_email.rb +11 -1
  83. data/lib/akeyless/models/create_auth_method_gcp.rb +11 -1
  84. data/lib/akeyless/models/create_auth_method_huawei.rb +11 -1
  85. data/lib/akeyless/models/create_auth_method_k8_s.rb +11 -1
  86. data/lib/akeyless/models/create_auth_method_ldap.rb +11 -1
  87. data/lib/akeyless/models/create_auth_method_o_auth2.rb +11 -1
  88. data/lib/akeyless/models/create_auth_method_oidc.rb +11 -1
  89. data/lib/akeyless/models/create_auth_method_saml.rb +11 -1
  90. data/lib/akeyless/models/create_auth_method_universal_identity.rb +11 -1
  91. data/lib/akeyless/models/create_event_forwarder.rb +1 -1
  92. data/lib/akeyless/models/create_linked_target.rb +11 -1
  93. data/lib/akeyless/models/create_role.rb +21 -1
  94. data/lib/akeyless/models/create_rotated_secret.rb +35 -2
  95. data/lib/akeyless/models/create_secret.rb +11 -1
  96. data/lib/akeyless/models/create_ssh_cert_issuer.rb +9 -9
  97. data/lib/akeyless/models/gateway_create_migration.rb +11 -1
  98. data/lib/akeyless/models/gateway_create_producer_cassandra.rb +23 -1
  99. data/lib/akeyless/models/gateway_update_item.rb +11 -1
  100. data/lib/akeyless/models/gateway_update_migration.rb +11 -1
  101. data/lib/akeyless/models/gateway_update_producer_cassandra.rb +23 -1
  102. data/lib/akeyless/models/generate_csr.rb +1 -1
  103. data/lib/akeyless/models/gw_cluster_identity.rb +10 -1
  104. data/lib/akeyless/models/import_passwords.rb +13 -4
  105. data/lib/akeyless/models/import_passwords_output.rb +13 -4
  106. data/lib/akeyless/models/item_version.rb +10 -1
  107. data/lib/akeyless/models/provision_certificate.rb +275 -0
  108. data/lib/akeyless/models/provision_certificate_output.rb +243 -0
  109. data/lib/akeyless/models/renew_certificate.rb +267 -0
  110. data/lib/akeyless/models/renew_certificate_output.rb +259 -0
  111. data/lib/akeyless/models/secure_remote_access.rb +12 -1
  112. data/lib/akeyless/models/server_inventory_payload.rb +12 -1
  113. data/lib/akeyless/models/set_role_rule.rb +1 -1
  114. data/lib/akeyless/models/sign_data_with_classic_key.rb +13 -1
  115. data/lib/akeyless/models/sign_ec_dsa.rb +24 -4
  116. data/lib/akeyless/models/sign_pkcs1.rb +44 -4
  117. data/lib/akeyless/models/sign_pkcs1_output.rb +2 -4
  118. data/lib/akeyless/models/sign_rsa_ssa_pss.rb +24 -4
  119. data/lib/akeyless/models/static_secret_details_info.rb +10 -1
  120. data/lib/akeyless/models/target_item_version.rb +10 -1
  121. data/lib/akeyless/models/update_auth_method.rb +11 -1
  122. data/lib/akeyless/models/update_auth_method_awsiam.rb +11 -1
  123. data/lib/akeyless/models/update_auth_method_azure_ad.rb +12 -2
  124. data/lib/akeyless/models/update_auth_method_cert.rb +11 -1
  125. data/lib/akeyless/models/update_auth_method_gcp.rb +11 -1
  126. data/lib/akeyless/models/update_auth_method_k8_s.rb +11 -1
  127. data/lib/akeyless/models/update_auth_method_ldap.rb +11 -1
  128. data/lib/akeyless/models/update_auth_method_o_auth2.rb +11 -1
  129. data/lib/akeyless/models/update_auth_method_oidc.rb +11 -1
  130. data/lib/akeyless/models/update_auth_method_saml.rb +11 -1
  131. data/lib/akeyless/models/update_auth_method_universal_identity.rb +11 -1
  132. data/lib/akeyless/models/update_certificate_value.rb +11 -1
  133. data/lib/akeyless/models/update_item.rb +32 -1
  134. data/lib/akeyless/models/update_linked_target.rb +11 -1
  135. data/lib/akeyless/models/update_role.rb +21 -1
  136. data/lib/akeyless/models/update_secret_val.rb +11 -1
  137. data/lib/akeyless/models/update_ssh_cert_issuer.rb +8 -8
  138. data/lib/akeyless/models/verify_ec_dsa.rb +24 -4
  139. data/lib/akeyless/models/verify_pkcs1.rb +44 -4
  140. data/lib/akeyless/models/verify_rsa_ssa_pss.rb +24 -4
  141. data/lib/akeyless/version.rb +1 -1
  142. data/lib/akeyless.rb +5 -0
  143. data/spec/models/certificate_version_info_spec.rb +48 -0
  144. data/spec/models/provision_certificate_output_spec.rb +54 -0
  145. data/spec/models/provision_certificate_spec.rb +66 -0
  146. data/spec/models/renew_certificate_output_spec.rb +66 -0
  147. data/spec/models/renew_certificate_spec.rb +66 -0
  148. metadata +23 -3
@@ -14,6 +14,7 @@
14
14
  | **parent_target_name** | **String** | The parent Target name | [optional] |
15
15
  | **rm_hosts** | **String** | Comma separated list of existing hosts that will be removed from Linked Target hosts. | [optional] |
16
16
  | **token** | **String** | Authentication token (see `/auth` and `/configure`) | [optional] |
17
+ | **type** | **String** | Specifies the hosts type, relevant only when working without parent target | [optional] |
17
18
  | **uid_token** | **String** | The universal identity token, Required only for universal_identity authentication | [optional] |
18
19
 
19
20
  ## Example
@@ -32,6 +33,7 @@ instance = Akeyless::UpdateLinkedTarget.new(
32
33
  parent_target_name: null,
33
34
  rm_hosts: null,
34
35
  token: null,
36
+ type: null,
35
37
  uid_token: null
36
38
  )
37
39
  ```
data/docs/UpdateRole.md CHANGED
@@ -7,6 +7,8 @@
7
7
  | **analytics_access** | **String** | Allow this role to view analytics. Currently only 'none', 'own', 'all' values are supported, allowing associated auth methods to view reports produced by the same auth methods. | [optional] |
8
8
  | **audit_access** | **String** | Allow this role to view audit logs. Currently only 'none', 'own' and 'all' values are supported, allowing associated auth methods to view audit logs produced by the same auth methods. | [optional] |
9
9
  | **description** | **String** | Description of the object | [optional][default to 'default_comment'] |
10
+ | **event_center_access** | **String** | Allow this role to view Event Center. Currently only 'none', 'own' and 'all' values are supported | [optional] |
11
+ | **event_forwarder_access** | **String** | Allow this role to manage Event Forwarders. Currently only 'none' and 'all' values are supported. | [optional] |
10
12
  | **gw_analytics_access** | **String** | Allow this role to view gw analytics. Currently only 'none', 'own', 'all' values are supported, allowing associated auth methods to view reports produced by the same auth methods. | [optional] |
11
13
  | **json** | **Boolean** | Set output format to JSON | [optional][default to false] |
12
14
  | **name** | **String** | Role name | |
@@ -26,6 +28,8 @@ instance = Akeyless::UpdateRole.new(
26
28
  analytics_access: null,
27
29
  audit_access: null,
28
30
  description: null,
31
+ event_center_access: null,
32
+ event_forwarder_access: null,
29
33
  gw_analytics_access: null,
30
34
  json: null,
31
35
  name: null,
@@ -4,13 +4,13 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **ssh_cert_issuer_host_provider** | **String** | | [optional] |
7
+ | **provider_type** | **String** | | [optional] |
8
8
  | **add_tag** | **Array<String>** | List of the new tags that will be attached to this item | [optional] |
9
9
  | **allowed_users** | **String** | Users allowed to fetch the certificate, e.g root,ubuntu | |
10
10
  | **delete_protection** | **String** | Protection from accidental deletion of this item [true/false] | [optional] |
11
11
  | **description** | **String** | Description of the object | [optional] |
12
12
  | **extensions** | **Hash<String, String>** | Signed certificates with extensions, e.g permit-port-forwarding=\\\"\\\" | [optional] |
13
- | **host_provider** | **String** | Host provider type [explicit/target] | [optional][default to 'explicit'] |
13
+ | **host_provider** | **String** | Host provider type [explicit/target], Relevant only for Secure Remote Access of ssh cert issuer and ldap rotated secret | [optional][default to 'explicit'] |
14
14
  | **json** | **Boolean** | Set output format to JSON | [optional][default to false] |
15
15
  | **metadata** | **String** | Deprecated - use description | [optional] |
16
16
  | **name** | **String** | SSH certificate issuer name | |
@@ -34,7 +34,7 @@
34
34
  require 'akeyless'
35
35
 
36
36
  instance = Akeyless::UpdateSSHCertIssuer.new(
37
- ssh_cert_issuer_host_provider: null,
37
+ provider_type: null,
38
38
  add_tag: null,
39
39
  allowed_users: null,
40
40
  delete_protection: null,
@@ -10,6 +10,7 @@
10
10
  | **json** | **Boolean** | Set output format to JSON | [optional][default to false] |
11
11
  | **keep_prev_version** | **String** | Whether to keep previous version [true/false]. If not set, use default according to account settings | [optional] |
12
12
  | **key** | **String** | The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) | [optional] |
13
+ | **last_version** | **Integer** | The last version number before the update | [optional] |
13
14
  | **multiline** | **Boolean** | The provided value is a multiline value (separated by '\\n') | [optional] |
14
15
  | **name** | **String** | Secret name | |
15
16
  | **new_version** | **Boolean** | Deprecated | [optional] |
@@ -31,6 +32,7 @@ instance = Akeyless::UpdateSecretVal.new(
31
32
  json: null,
32
33
  keep_prev_version: null,
33
34
  key: null,
35
+ last_version: null,
34
36
  multiline: null,
35
37
  name: null,
36
38
  new_version: null,
data/docs/V2Api.md CHANGED
@@ -219,8 +219,10 @@ All URIs are relative to *https://api.akeyless.io*
219
219
  | [**list_sra_bastions**](V2Api.md#list_sra_bastions) | **POST** /list-sra-bastions | |
220
220
  | [**list_targets**](V2Api.md#list_targets) | **POST** /list-targets | |
221
221
  | [**move_objects**](V2Api.md#move_objects) | **POST** /move-objects | |
222
+ | [**provision_certificate**](V2Api.md#provision_certificate) | **POST** /provision-certificate | |
222
223
  | [**raw_creds**](V2Api.md#raw_creds) | **POST** /raw-creds | |
223
224
  | [**refresh_key**](V2Api.md#refresh_key) | **POST** /refresh-key | |
225
+ | [**renew_certificate**](V2Api.md#renew_certificate) | **POST** /renew-certificate | |
224
226
  | [**request_access**](V2Api.md#request_access) | **POST** /request-access | |
225
227
  | [**reverse_rbac**](V2Api.md#reverse_rbac) | **POST** /reverse-rbac | |
226
228
  | [**revoke_creds**](V2Api.md#revoke_creds) | **POST** /revoke-creds | |
@@ -288,7 +290,7 @@ All URIs are relative to *https://api.akeyless.io*
288
290
  | [**update_rdp_target_details**](V2Api.md#update_rdp_target_details) | **POST** /update-rdp-target-details | |
289
291
  | [**update_role**](V2Api.md#update_role) | **POST** /update-role | |
290
292
  | [**update_rotated_secret**](V2Api.md#update_rotated_secret) | **POST** /update-rotated-secret | |
291
- | [**update_rotation_settings**](V2Api.md#update_rotation_settings) | **POST** /update-rotation-settingsrotate-key | |
293
+ | [**update_rotation_settings**](V2Api.md#update_rotation_settings) | **POST** /update-rotation-settings | |
292
294
  | [**update_salesforce_target**](V2Api.md#update_salesforce_target) | **POST** /update-salesforce-target | |
293
295
  | [**update_secret_val**](V2Api.md#update_secret_val) | **POST** /update-secret-val | |
294
296
  | [**update_ssh_cert_issuer**](V2Api.md#update_ssh_cert_issuer) | **POST** /update-ssh-cert-issuer | |
@@ -13672,6 +13674,68 @@ No authorization required
13672
13674
  - **Accept**: application/json
13673
13675
 
13674
13676
 
13677
+ ## provision_certificate
13678
+
13679
+ > <ProvisionCertificateOutput> provision_certificate(body)
13680
+
13681
+
13682
+
13683
+ ### Examples
13684
+
13685
+ ```ruby
13686
+ require 'time'
13687
+ require 'akeyless'
13688
+
13689
+ api_instance = Akeyless::V2Api.new
13690
+ body = Akeyless::ProvisionCertificate.new({name: 'name_example'}) # ProvisionCertificate |
13691
+
13692
+ begin
13693
+
13694
+ result = api_instance.provision_certificate(body)
13695
+ p result
13696
+ rescue Akeyless::ApiError => e
13697
+ puts "Error when calling V2Api->provision_certificate: #{e}"
13698
+ end
13699
+ ```
13700
+
13701
+ #### Using the provision_certificate_with_http_info variant
13702
+
13703
+ This returns an Array which contains the response data, status code and headers.
13704
+
13705
+ > <Array(<ProvisionCertificateOutput>, Integer, Hash)> provision_certificate_with_http_info(body)
13706
+
13707
+ ```ruby
13708
+ begin
13709
+
13710
+ data, status_code, headers = api_instance.provision_certificate_with_http_info(body)
13711
+ p status_code # => 2xx
13712
+ p headers # => { ... }
13713
+ p data # => <ProvisionCertificateOutput>
13714
+ rescue Akeyless::ApiError => e
13715
+ puts "Error when calling V2Api->provision_certificate_with_http_info: #{e}"
13716
+ end
13717
+ ```
13718
+
13719
+ ### Parameters
13720
+
13721
+ | Name | Type | Description | Notes |
13722
+ | ---- | ---- | ----------- | ----- |
13723
+ | **body** | [**ProvisionCertificate**](ProvisionCertificate.md) | | |
13724
+
13725
+ ### Return type
13726
+
13727
+ [**ProvisionCertificateOutput**](ProvisionCertificateOutput.md)
13728
+
13729
+ ### Authorization
13730
+
13731
+ No authorization required
13732
+
13733
+ ### HTTP request headers
13734
+
13735
+ - **Content-Type**: application/json
13736
+ - **Accept**: application/json
13737
+
13738
+
13675
13739
  ## raw_creds
13676
13740
 
13677
13741
  > <SystemAccessCredentialsReplyObj> raw_creds(opts)
@@ -13798,6 +13862,68 @@ No authorization required
13798
13862
  - **Accept**: application/json
13799
13863
 
13800
13864
 
13865
+ ## renew_certificate
13866
+
13867
+ > <RenewCertificateOutput> renew_certificate(body)
13868
+
13869
+
13870
+
13871
+ ### Examples
13872
+
13873
+ ```ruby
13874
+ require 'time'
13875
+ require 'akeyless'
13876
+
13877
+ api_instance = Akeyless::V2Api.new
13878
+ body = Akeyless::RenewCertificate.new # RenewCertificate |
13879
+
13880
+ begin
13881
+
13882
+ result = api_instance.renew_certificate(body)
13883
+ p result
13884
+ rescue Akeyless::ApiError => e
13885
+ puts "Error when calling V2Api->renew_certificate: #{e}"
13886
+ end
13887
+ ```
13888
+
13889
+ #### Using the renew_certificate_with_http_info variant
13890
+
13891
+ This returns an Array which contains the response data, status code and headers.
13892
+
13893
+ > <Array(<RenewCertificateOutput>, Integer, Hash)> renew_certificate_with_http_info(body)
13894
+
13895
+ ```ruby
13896
+ begin
13897
+
13898
+ data, status_code, headers = api_instance.renew_certificate_with_http_info(body)
13899
+ p status_code # => 2xx
13900
+ p headers # => { ... }
13901
+ p data # => <RenewCertificateOutput>
13902
+ rescue Akeyless::ApiError => e
13903
+ puts "Error when calling V2Api->renew_certificate_with_http_info: #{e}"
13904
+ end
13905
+ ```
13906
+
13907
+ ### Parameters
13908
+
13909
+ | Name | Type | Description | Notes |
13910
+ | ---- | ---- | ----------- | ----- |
13911
+ | **body** | [**RenewCertificate**](RenewCertificate.md) | | |
13912
+
13913
+ ### Return type
13914
+
13915
+ [**RenewCertificateOutput**](RenewCertificateOutput.md)
13916
+
13917
+ ### Authorization
13918
+
13919
+ No authorization required
13920
+
13921
+ ### HTTP request headers
13922
+
13923
+ - **Content-Type**: application/json
13924
+ - **Accept**: application/json
13925
+
13926
+
13801
13927
  ## request_access
13802
13928
 
13803
13929
  > <RequestAccessOutput> request_access(body)
@@ -14056,7 +14182,7 @@ require 'time'
14056
14182
  require 'akeyless'
14057
14183
 
14058
14184
  api_instance = Akeyless::V2Api.new
14059
- body = Akeyless::UpdateRotationSettings.new({auto_rotate: false, name: 'name_example'}) # UpdateRotationSettings |
14185
+ body = Akeyless::RotateKey.new({name: 'name_example'}) # RotateKey |
14060
14186
 
14061
14187
  begin
14062
14188
 
@@ -14089,7 +14215,7 @@ end
14089
14215
 
14090
14216
  | Name | Type | Description | Notes |
14091
14217
  | ---- | ---- | ----------- | ----- |
14092
- | **body** | [**UpdateRotationSettings**](UpdateRotationSettings.md) | | |
14218
+ | **body** | [**RotateKey**](RotateKey.md) | | |
14093
14219
 
14094
14220
  ### Return type
14095
14221
 
@@ -17950,7 +18076,7 @@ No authorization required
17950
18076
 
17951
18077
  ## update_rotation_settings
17952
18078
 
17953
- > <RotateKeyOutput> update_rotation_settings
18079
+ > <RotateKeyOutput> update_rotation_settings(body)
17954
18080
 
17955
18081
 
17956
18082
 
@@ -17961,10 +18087,11 @@ require 'time'
17961
18087
  require 'akeyless'
17962
18088
 
17963
18089
  api_instance = Akeyless::V2Api.new
18090
+ body = Akeyless::UpdateRotationSettings.new({auto_rotate: false, name: 'name_example'}) # UpdateRotationSettings |
17964
18091
 
17965
18092
  begin
17966
18093
 
17967
- result = api_instance.update_rotation_settings
18094
+ result = api_instance.update_rotation_settings(body)
17968
18095
  p result
17969
18096
  rescue Akeyless::ApiError => e
17970
18097
  puts "Error when calling V2Api->update_rotation_settings: #{e}"
@@ -17975,12 +18102,12 @@ end
17975
18102
 
17976
18103
  This returns an Array which contains the response data, status code and headers.
17977
18104
 
17978
- > <Array(<RotateKeyOutput>, Integer, Hash)> update_rotation_settings_with_http_info
18105
+ > <Array(<RotateKeyOutput>, Integer, Hash)> update_rotation_settings_with_http_info(body)
17979
18106
 
17980
18107
  ```ruby
17981
18108
  begin
17982
18109
 
17983
- data, status_code, headers = api_instance.update_rotation_settings_with_http_info
18110
+ data, status_code, headers = api_instance.update_rotation_settings_with_http_info(body)
17984
18111
  p status_code # => 2xx
17985
18112
  p headers # => { ... }
17986
18113
  p data # => <RotateKeyOutput>
@@ -17991,7 +18118,9 @@ end
17991
18118
 
17992
18119
  ### Parameters
17993
18120
 
17994
- This endpoint does not need any parameter.
18121
+ | Name | Type | Description | Notes |
18122
+ | ---- | ---- | ----------- | ----- |
18123
+ | **body** | [**UpdateRotationSettings**](UpdateRotationSettings.md) | | |
17995
18124
 
17996
18125
  ### Return type
17997
18126
 
@@ -18003,7 +18132,7 @@ No authorization required
18003
18132
 
18004
18133
  ### HTTP request headers
18005
18134
 
18006
- - **Content-Type**: Not defined
18135
+ - **Content-Type**: application/json
18007
18136
  - **Accept**: application/json
18008
18137
 
18009
18138
 
data/docs/VerifyEcDsa.md CHANGED
@@ -9,9 +9,11 @@
9
9
  | **json** | **Boolean** | Set output format to JSON | [optional][default to false] |
10
10
  | **key_name** | **String** | The name of the EC key to use for the verification process | [optional] |
11
11
  | **message** | **String** | The message to be verified in a base64 format | |
12
+ | **prehashed** | **Boolean** | Markes that the message is already hashed | [optional] |
12
13
  | **signature** | **String** | The message&#39;s signature | |
13
14
  | **token** | **String** | Authentication token (see &#x60;/auth&#x60; and &#x60;/configure&#x60;) | [optional] |
14
15
  | **uid_token** | **String** | The universal identity token, Required only for universal_identity authentication | [optional] |
16
+ | **version** | **Integer** | The version of the key to use for verification | [optional] |
15
17
 
16
18
  ## Example
17
19
 
@@ -24,9 +26,11 @@ instance = Akeyless::VerifyEcDsa.new(
24
26
  json: null,
25
27
  key_name: null,
26
28
  message: null,
29
+ prehashed: null,
27
30
  signature: null,
28
31
  token: null,
29
- uid_token: null
32
+ uid_token: null,
33
+ version: null
30
34
  )
31
35
  ```
32
36
 
data/docs/VerifyPKCS1.md CHANGED
@@ -5,13 +5,17 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **display_id** | **String** | The display id of the key to use in the verification process | [optional] |
8
+ | **hash_function** | **String** | HashFunction defines the hash function (e.g. sha-256) | [optional] |
9
+ | **input_format** | **String** | Select default assumed format for the plaintext message. Currently supported options: [base64] | [optional] |
8
10
  | **item_id** | **Integer** | The item id of the key to use in the verification process | [optional] |
9
11
  | **json** | **Boolean** | Set output format to JSON | [optional][default to false] |
10
12
  | **key_name** | **String** | The name of the RSA key to use in the verification process | |
11
13
  | **message** | **String** | The message to be verified | |
14
+ | **prehashed** | **Boolean** | Markes that the message is already hashed | [optional] |
12
15
  | **signature** | **String** | The message&#39;s signature | |
13
16
  | **token** | **String** | Authentication token (see &#x60;/auth&#x60; and &#x60;/configure&#x60;) | [optional] |
14
17
  | **uid_token** | **String** | The universal identity token, Required only for universal_identity authentication | [optional] |
18
+ | **version** | **Integer** | The version of the key to use for verification | [optional] |
15
19
 
16
20
  ## Example
17
21
 
@@ -20,13 +24,17 @@ require 'akeyless'
20
24
 
21
25
  instance = Akeyless::VerifyPKCS1.new(
22
26
  display_id: null,
27
+ hash_function: null,
28
+ input_format: null,
23
29
  item_id: null,
24
30
  json: null,
25
31
  key_name: null,
26
32
  message: null,
33
+ prehashed: null,
27
34
  signature: null,
28
35
  token: null,
29
- uid_token: null
36
+ uid_token: null,
37
+ version: null
30
38
  )
31
39
  ```
32
40
 
@@ -10,9 +10,11 @@
10
10
  | **json** | **Boolean** | Set output format to JSON | [optional][default to false] |
11
11
  | **key_name** | **String** | The name of the RSA key to use in the verification process | [optional] |
12
12
  | **message** | **String** | The input message to verify in a base64 format | |
13
+ | **prehashed** | **Boolean** | Markes that the message is already hashed | [optional] |
13
14
  | **signature** | **String** | The message&#39;s signature | |
14
15
  | **token** | **String** | Authentication token (see &#x60;/auth&#x60; and &#x60;/configure&#x60;) | [optional] |
15
16
  | **uid_token** | **String** | The universal identity token, Required only for universal_identity authentication | [optional] |
17
+ | **version** | **Integer** | The version of the key to use for verification | [optional] |
16
18
 
17
19
  ## Example
18
20
 
@@ -26,9 +28,11 @@ instance = Akeyless::VerifyRsaSsaPss.new(
26
28
  json: null,
27
29
  key_name: null,
28
30
  message: null,
31
+ prehashed: null,
29
32
  signature: null,
30
33
  token: null,
31
- uid_token: null
34
+ uid_token: null,
35
+ version: null
32
36
  )
33
37
  ```
34
38
 
@@ -13704,6 +13704,70 @@ module Akeyless
13704
13704
  return data, status_code, headers
13705
13705
  end
13706
13706
 
13707
+ # @param body [ProvisionCertificate]
13708
+ # @param [Hash] opts the optional parameters
13709
+ # @return [ProvisionCertificateOutput]
13710
+ def provision_certificate(body, opts = {})
13711
+ data, _status_code, _headers = provision_certificate_with_http_info(body, opts)
13712
+ data
13713
+ end
13714
+
13715
+ # @param body [ProvisionCertificate]
13716
+ # @param [Hash] opts the optional parameters
13717
+ # @return [Array<(ProvisionCertificateOutput, Integer, Hash)>] ProvisionCertificateOutput data, response status code and response headers
13718
+ def provision_certificate_with_http_info(body, opts = {})
13719
+ if @api_client.config.debugging
13720
+ @api_client.config.logger.debug 'Calling API: V2Api.provision_certificate ...'
13721
+ end
13722
+ # verify the required parameter 'body' is set
13723
+ if @api_client.config.client_side_validation && body.nil?
13724
+ fail ArgumentError, "Missing the required parameter 'body' when calling V2Api.provision_certificate"
13725
+ end
13726
+ # resource path
13727
+ local_var_path = '/provision-certificate'
13728
+
13729
+ # query parameters
13730
+ query_params = opts[:query_params] || {}
13731
+
13732
+ # header parameters
13733
+ header_params = opts[:header_params] || {}
13734
+ # HTTP header 'Accept' (if needed)
13735
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
13736
+ # HTTP header 'Content-Type'
13737
+ content_type = @api_client.select_header_content_type(['application/json'])
13738
+ if !content_type.nil?
13739
+ header_params['Content-Type'] = content_type
13740
+ end
13741
+
13742
+ # form parameters
13743
+ form_params = opts[:form_params] || {}
13744
+
13745
+ # http body (model)
13746
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
13747
+
13748
+ # return_type
13749
+ return_type = opts[:debug_return_type] || 'ProvisionCertificateOutput'
13750
+
13751
+ # auth_names
13752
+ auth_names = opts[:debug_auth_names] || []
13753
+
13754
+ new_options = opts.merge(
13755
+ :operation => :"V2Api.provision_certificate",
13756
+ :header_params => header_params,
13757
+ :query_params => query_params,
13758
+ :form_params => form_params,
13759
+ :body => post_body,
13760
+ :auth_names => auth_names,
13761
+ :return_type => return_type
13762
+ )
13763
+
13764
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
13765
+ if @api_client.config.debugging
13766
+ @api_client.config.logger.debug "API called: V2Api#provision_certificate\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
13767
+ end
13768
+ return data, status_code, headers
13769
+ end
13770
+
13707
13771
  # @param [Hash] opts the optional parameters
13708
13772
  # @option opts [RawCreds] :body
13709
13773
  # @return [SystemAccessCredentialsReplyObj]
@@ -13828,6 +13892,70 @@ module Akeyless
13828
13892
  return data, status_code, headers
13829
13893
  end
13830
13894
 
13895
+ # @param body [RenewCertificate]
13896
+ # @param [Hash] opts the optional parameters
13897
+ # @return [RenewCertificateOutput]
13898
+ def renew_certificate(body, opts = {})
13899
+ data, _status_code, _headers = renew_certificate_with_http_info(body, opts)
13900
+ data
13901
+ end
13902
+
13903
+ # @param body [RenewCertificate]
13904
+ # @param [Hash] opts the optional parameters
13905
+ # @return [Array<(RenewCertificateOutput, Integer, Hash)>] RenewCertificateOutput data, response status code and response headers
13906
+ def renew_certificate_with_http_info(body, opts = {})
13907
+ if @api_client.config.debugging
13908
+ @api_client.config.logger.debug 'Calling API: V2Api.renew_certificate ...'
13909
+ end
13910
+ # verify the required parameter 'body' is set
13911
+ if @api_client.config.client_side_validation && body.nil?
13912
+ fail ArgumentError, "Missing the required parameter 'body' when calling V2Api.renew_certificate"
13913
+ end
13914
+ # resource path
13915
+ local_var_path = '/renew-certificate'
13916
+
13917
+ # query parameters
13918
+ query_params = opts[:query_params] || {}
13919
+
13920
+ # header parameters
13921
+ header_params = opts[:header_params] || {}
13922
+ # HTTP header 'Accept' (if needed)
13923
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
13924
+ # HTTP header 'Content-Type'
13925
+ content_type = @api_client.select_header_content_type(['application/json'])
13926
+ if !content_type.nil?
13927
+ header_params['Content-Type'] = content_type
13928
+ end
13929
+
13930
+ # form parameters
13931
+ form_params = opts[:form_params] || {}
13932
+
13933
+ # http body (model)
13934
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
13935
+
13936
+ # return_type
13937
+ return_type = opts[:debug_return_type] || 'RenewCertificateOutput'
13938
+
13939
+ # auth_names
13940
+ auth_names = opts[:debug_auth_names] || []
13941
+
13942
+ new_options = opts.merge(
13943
+ :operation => :"V2Api.renew_certificate",
13944
+ :header_params => header_params,
13945
+ :query_params => query_params,
13946
+ :form_params => form_params,
13947
+ :body => post_body,
13948
+ :auth_names => auth_names,
13949
+ :return_type => return_type
13950
+ )
13951
+
13952
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
13953
+ if @api_client.config.debugging
13954
+ @api_client.config.logger.debug "API called: V2Api#renew_certificate\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
13955
+ end
13956
+ return data, status_code, headers
13957
+ end
13958
+
13831
13959
  # @param body [RequestAccess]
13832
13960
  # @param [Hash] opts the optional parameters
13833
13961
  # @return [RequestAccessOutput]
@@ -14073,7 +14201,7 @@ module Akeyless
14073
14201
  return data, status_code, headers
14074
14202
  end
14075
14203
 
14076
- # @param body [UpdateRotationSettings]
14204
+ # @param body [RotateKey]
14077
14205
  # @param [Hash] opts the optional parameters
14078
14206
  # @return [RotateKeyOutput]
14079
14207
  def rotate_key(body, opts = {})
@@ -14081,7 +14209,7 @@ module Akeyless
14081
14209
  data
14082
14210
  end
14083
14211
 
14084
- # @param body [UpdateRotationSettings]
14212
+ # @param body [RotateKey]
14085
14213
  # @param [Hash] opts the optional parameters
14086
14214
  # @return [Array<(RotateKeyOutput, Integer, Hash)>] RotateKeyOutput data, response status code and response headers
14087
14215
  def rotate_key_with_http_info(body, opts = {})
@@ -18105,21 +18233,27 @@ module Akeyless
18105
18233
  return data, status_code, headers
18106
18234
  end
18107
18235
 
18236
+ # @param body [UpdateRotationSettings]
18108
18237
  # @param [Hash] opts the optional parameters
18109
18238
  # @return [RotateKeyOutput]
18110
- def update_rotation_settings(opts = {})
18111
- data, _status_code, _headers = update_rotation_settings_with_http_info(opts)
18239
+ def update_rotation_settings(body, opts = {})
18240
+ data, _status_code, _headers = update_rotation_settings_with_http_info(body, opts)
18112
18241
  data
18113
18242
  end
18114
18243
 
18244
+ # @param body [UpdateRotationSettings]
18115
18245
  # @param [Hash] opts the optional parameters
18116
18246
  # @return [Array<(RotateKeyOutput, Integer, Hash)>] RotateKeyOutput data, response status code and response headers
18117
- def update_rotation_settings_with_http_info(opts = {})
18247
+ def update_rotation_settings_with_http_info(body, opts = {})
18118
18248
  if @api_client.config.debugging
18119
18249
  @api_client.config.logger.debug 'Calling API: V2Api.update_rotation_settings ...'
18120
18250
  end
18251
+ # verify the required parameter 'body' is set
18252
+ if @api_client.config.client_side_validation && body.nil?
18253
+ fail ArgumentError, "Missing the required parameter 'body' when calling V2Api.update_rotation_settings"
18254
+ end
18121
18255
  # resource path
18122
- local_var_path = '/update-rotation-settingsrotate-key'
18256
+ local_var_path = '/update-rotation-settings'
18123
18257
 
18124
18258
  # query parameters
18125
18259
  query_params = opts[:query_params] || {}
@@ -18128,12 +18262,17 @@ module Akeyless
18128
18262
  header_params = opts[:header_params] || {}
18129
18263
  # HTTP header 'Accept' (if needed)
18130
18264
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
18265
+ # HTTP header 'Content-Type'
18266
+ content_type = @api_client.select_header_content_type(['application/json'])
18267
+ if !content_type.nil?
18268
+ header_params['Content-Type'] = content_type
18269
+ end
18131
18270
 
18132
18271
  # form parameters
18133
18272
  form_params = opts[:form_params] || {}
18134
18273
 
18135
18274
  # http body (model)
18136
- post_body = opts[:debug_body]
18275
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
18137
18276
 
18138
18277
  # return_type
18139
18278
  return_type = opts[:debug_return_type] || 'RotateKeyOutput'