akeyless 3.5.4 → 3.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +16 -2
- data/docs/AssocTargetItem.md +8 -0
- data/docs/Auth.md +4 -0
- data/docs/AuthMethod.md +2 -0
- data/docs/AuthMethodAccessInfo.md +2 -0
- data/docs/CertificateChainInfo.md +4 -0
- data/docs/CertificateVersionInfo.md +22 -0
- data/docs/Configure.md +5 -1
- data/docs/Connect.md +1 -1
- data/docs/CreateAuthMethod.md +2 -0
- data/docs/CreateAuthMethodAWSIAM.md +2 -0
- data/docs/CreateAuthMethodAzureAD.md +3 -1
- data/docs/CreateAuthMethodCert.md +2 -0
- data/docs/CreateAuthMethodEmail.md +2 -0
- data/docs/CreateAuthMethodGCP.md +2 -0
- data/docs/CreateAuthMethodHuawei.md +2 -0
- data/docs/CreateAuthMethodK8S.md +2 -0
- data/docs/CreateAuthMethodLDAP.md +2 -0
- data/docs/CreateAuthMethodOAuth2.md +2 -0
- data/docs/CreateAuthMethodOCI.md +40 -0
- data/docs/CreateAuthMethodOCIOutput.md +18 -0
- data/docs/CreateAuthMethodOIDC.md +2 -0
- data/docs/CreateAuthMethodSAML.md +2 -0
- data/docs/CreateAuthMethodUniversalIdentity.md +2 -0
- data/docs/CreateEventForwarder.md +1 -1
- data/docs/CreateLinkedTarget.md +2 -0
- data/docs/CreateRole.md +4 -0
- data/docs/CreateRotatedSecret.md +7 -1
- data/docs/CreateSSHCertIssuer.md +4 -4
- data/docs/CreateSecret.md +2 -0
- data/docs/GatewayCreateMigration.md +2 -0
- data/docs/GatewayCreateProducerCassandra.md +4 -0
- data/docs/GatewayUpdateItem.md +2 -0
- data/docs/GatewayUpdateMigration.md +2 -0
- data/docs/GatewayUpdateProducerCassandra.md +4 -0
- data/docs/GenerateCsr.md +1 -1
- data/docs/GwClusterIdentity.md +2 -0
- data/docs/ImportPasswords.md +3 -1
- data/docs/ImportPasswordsOutput.md +3 -1
- data/docs/ItemVersion.md +2 -0
- data/docs/OCIAccessRules.md +20 -0
- data/docs/ProvisionCertificate.md +28 -0
- data/docs/ProvisionCertificateOutput.md +24 -0
- data/docs/RenewCertificate.md +28 -0
- data/docs/RenewCertificateOutput.md +28 -0
- data/docs/SecureRemoteAccess.md +2 -0
- data/docs/ServerInventoryPayload.md +2 -0
- data/docs/SetRoleRule.md +1 -1
- data/docs/SignDataWithClassicKey.md +2 -0
- data/docs/SignEcDsa.md +5 -1
- data/docs/SignPKCS1.md +9 -1
- data/docs/SignPKCS1Output.md +1 -1
- data/docs/SignRsaSsaPss.md +5 -1
- data/docs/StaticSecretDetailsInfo.md +2 -0
- data/docs/TargetItemVersion.md +2 -0
- data/docs/UpdateAuthMethod.md +2 -0
- data/docs/UpdateAuthMethodAWSIAM.md +2 -0
- data/docs/UpdateAuthMethodAzureAD.md +3 -1
- data/docs/UpdateAuthMethodCert.md +2 -0
- data/docs/UpdateAuthMethodGCP.md +2 -0
- data/docs/UpdateAuthMethodK8S.md +2 -0
- data/docs/UpdateAuthMethodLDAP.md +2 -0
- data/docs/UpdateAuthMethodOAuth2.md +2 -0
- data/docs/UpdateAuthMethodOCI.md +42 -0
- data/docs/UpdateAuthMethodOCIOutput.md +18 -0
- data/docs/UpdateAuthMethodOIDC.md +2 -0
- data/docs/UpdateAuthMethodSAML.md +2 -0
- data/docs/UpdateAuthMethodUniversalIdentity.md +2 -0
- data/docs/UpdateCertificateValue.md +2 -0
- data/docs/UpdateItem.md +6 -0
- data/docs/UpdateLinkedTarget.md +2 -0
- data/docs/UpdateRole.md +4 -0
- data/docs/UpdateSSHCertIssuer.md +3 -3
- data/docs/UpdateSecretVal.md +2 -0
- data/docs/V2Api.md +264 -9
- data/docs/VerifyEcDsa.md +5 -1
- data/docs/VerifyPKCS1.md +9 -1
- data/docs/VerifyRsaSsaPss.md +5 -1
- data/lib/akeyless/api/v2_api.rb +274 -7
- data/lib/akeyless/models/assoc_target_item.rb +43 -1
- data/lib/akeyless/models/auth.rb +25 -1
- data/lib/akeyless/models/auth_method.rb +10 -1
- data/lib/akeyless/models/auth_method_access_info.rb +10 -1
- data/lib/akeyless/models/certificate_chain_info.rb +19 -1
- data/lib/akeyless/models/certificate_version_info.rb +232 -0
- data/lib/akeyless/models/configure.rb +28 -4
- data/lib/akeyless/models/connect.rb +1 -1
- data/lib/akeyless/models/create_auth_method.rb +11 -1
- data/lib/akeyless/models/create_auth_method_awsiam.rb +11 -1
- data/lib/akeyless/models/create_auth_method_azure_ad.rb +12 -2
- data/lib/akeyless/models/create_auth_method_cert.rb +11 -1
- data/lib/akeyless/models/create_auth_method_email.rb +11 -1
- data/lib/akeyless/models/create_auth_method_gcp.rb +11 -1
- data/lib/akeyless/models/create_auth_method_huawei.rb +11 -1
- data/lib/akeyless/models/create_auth_method_k8_s.rb +11 -1
- data/lib/akeyless/models/create_auth_method_ldap.rb +11 -1
- data/lib/akeyless/models/create_auth_method_o_auth2.rb +11 -1
- data/lib/akeyless/models/create_auth_method_oci.rb +359 -0
- data/lib/akeyless/models/create_auth_method_oci_output.rb +214 -0
- data/lib/akeyless/models/create_auth_method_oidc.rb +11 -1
- data/lib/akeyless/models/create_auth_method_saml.rb +11 -1
- data/lib/akeyless/models/create_auth_method_universal_identity.rb +11 -1
- data/lib/akeyless/models/create_event_forwarder.rb +1 -1
- data/lib/akeyless/models/create_linked_target.rb +11 -1
- data/lib/akeyless/models/create_role.rb +21 -1
- data/lib/akeyless/models/create_rotated_secret.rb +35 -2
- data/lib/akeyless/models/create_secret.rb +11 -1
- data/lib/akeyless/models/create_ssh_cert_issuer.rb +9 -9
- data/lib/akeyless/models/gateway_create_migration.rb +11 -1
- data/lib/akeyless/models/gateway_create_producer_cassandra.rb +23 -1
- data/lib/akeyless/models/gateway_update_item.rb +11 -1
- data/lib/akeyless/models/gateway_update_migration.rb +11 -1
- data/lib/akeyless/models/gateway_update_producer_cassandra.rb +23 -1
- data/lib/akeyless/models/generate_csr.rb +1 -1
- data/lib/akeyless/models/gw_cluster_identity.rb +10 -1
- data/lib/akeyless/models/import_passwords.rb +13 -4
- data/lib/akeyless/models/import_passwords_output.rb +13 -4
- data/lib/akeyless/models/item_version.rb +10 -1
- data/lib/akeyless/models/oci_access_rules.rb +226 -0
- data/lib/akeyless/models/provision_certificate.rb +275 -0
- data/lib/akeyless/models/provision_certificate_output.rb +243 -0
- data/lib/akeyless/models/renew_certificate.rb +267 -0
- data/lib/akeyless/models/renew_certificate_output.rb +259 -0
- data/lib/akeyless/models/secure_remote_access.rb +12 -1
- data/lib/akeyless/models/server_inventory_payload.rb +12 -1
- data/lib/akeyless/models/set_role_rule.rb +1 -1
- data/lib/akeyless/models/sign_data_with_classic_key.rb +13 -1
- data/lib/akeyless/models/sign_ec_dsa.rb +24 -4
- data/lib/akeyless/models/sign_pkcs1.rb +44 -4
- data/lib/akeyless/models/sign_pkcs1_output.rb +2 -4
- data/lib/akeyless/models/sign_rsa_ssa_pss.rb +24 -4
- data/lib/akeyless/models/static_secret_details_info.rb +10 -1
- data/lib/akeyless/models/target_item_version.rb +10 -1
- data/lib/akeyless/models/update_auth_method.rb +11 -1
- data/lib/akeyless/models/update_auth_method_awsiam.rb +11 -1
- data/lib/akeyless/models/update_auth_method_azure_ad.rb +12 -2
- data/lib/akeyless/models/update_auth_method_cert.rb +11 -1
- data/lib/akeyless/models/update_auth_method_gcp.rb +11 -1
- data/lib/akeyless/models/update_auth_method_k8_s.rb +11 -1
- data/lib/akeyless/models/update_auth_method_ldap.rb +11 -1
- data/lib/akeyless/models/update_auth_method_o_auth2.rb +11 -1
- data/lib/akeyless/models/update_auth_method_oci.rb +369 -0
- data/lib/akeyless/models/update_auth_method_oci_output.rb +214 -0
- data/lib/akeyless/models/update_auth_method_oidc.rb +11 -1
- data/lib/akeyless/models/update_auth_method_saml.rb +11 -1
- data/lib/akeyless/models/update_auth_method_universal_identity.rb +11 -1
- data/lib/akeyless/models/update_certificate_value.rb +11 -1
- data/lib/akeyless/models/update_item.rb +32 -1
- data/lib/akeyless/models/update_linked_target.rb +11 -1
- data/lib/akeyless/models/update_role.rb +21 -1
- data/lib/akeyless/models/update_secret_val.rb +11 -1
- data/lib/akeyless/models/update_ssh_cert_issuer.rb +8 -8
- data/lib/akeyless/models/verify_ec_dsa.rb +24 -4
- data/lib/akeyless/models/verify_pkcs1.rb +44 -4
- data/lib/akeyless/models/verify_rsa_ssa_pss.rb +24 -4
- data/lib/akeyless/version.rb +1 -1
- data/lib/akeyless.rb +10 -0
- data/spec/models/certificate_version_info_spec.rb +48 -0
- data/spec/models/create_auth_method_oci_output_spec.rb +36 -0
- data/spec/models/create_auth_method_oci_spec.rb +102 -0
- data/spec/models/oci_access_rules_spec.rb +42 -0
- data/spec/models/provision_certificate_output_spec.rb +54 -0
- data/spec/models/provision_certificate_spec.rb +66 -0
- data/spec/models/renew_certificate_output_spec.rb +66 -0
- data/spec/models/renew_certificate_spec.rb +66 -0
- data/spec/models/update_auth_method_oci_output_spec.rb +36 -0
- data/spec/models/update_auth_method_oci_spec.rb +108 -0
- metadata +43 -3
data/lib/akeyless/api/v2_api.rb
CHANGED
@@ -1043,6 +1043,70 @@ module Akeyless
|
|
1043
1043
|
return data, status_code, headers
|
1044
1044
|
end
|
1045
1045
|
|
1046
|
+
# @param body [CreateAuthMethodOCI]
|
1047
|
+
# @param [Hash] opts the optional parameters
|
1048
|
+
# @return [CreateAuthMethodOCIOutput]
|
1049
|
+
def create_auth_method_oci(body, opts = {})
|
1050
|
+
data, _status_code, _headers = create_auth_method_oci_with_http_info(body, opts)
|
1051
|
+
data
|
1052
|
+
end
|
1053
|
+
|
1054
|
+
# @param body [CreateAuthMethodOCI]
|
1055
|
+
# @param [Hash] opts the optional parameters
|
1056
|
+
# @return [Array<(CreateAuthMethodOCIOutput, Integer, Hash)>] CreateAuthMethodOCIOutput data, response status code and response headers
|
1057
|
+
def create_auth_method_oci_with_http_info(body, opts = {})
|
1058
|
+
if @api_client.config.debugging
|
1059
|
+
@api_client.config.logger.debug 'Calling API: V2Api.create_auth_method_oci ...'
|
1060
|
+
end
|
1061
|
+
# verify the required parameter 'body' is set
|
1062
|
+
if @api_client.config.client_side_validation && body.nil?
|
1063
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling V2Api.create_auth_method_oci"
|
1064
|
+
end
|
1065
|
+
# resource path
|
1066
|
+
local_var_path = '/create-auth-method-oci'
|
1067
|
+
|
1068
|
+
# query parameters
|
1069
|
+
query_params = opts[:query_params] || {}
|
1070
|
+
|
1071
|
+
# header parameters
|
1072
|
+
header_params = opts[:header_params] || {}
|
1073
|
+
# HTTP header 'Accept' (if needed)
|
1074
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1075
|
+
# HTTP header 'Content-Type'
|
1076
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
1077
|
+
if !content_type.nil?
|
1078
|
+
header_params['Content-Type'] = content_type
|
1079
|
+
end
|
1080
|
+
|
1081
|
+
# form parameters
|
1082
|
+
form_params = opts[:form_params] || {}
|
1083
|
+
|
1084
|
+
# http body (model)
|
1085
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
1086
|
+
|
1087
|
+
# return_type
|
1088
|
+
return_type = opts[:debug_return_type] || 'CreateAuthMethodOCIOutput'
|
1089
|
+
|
1090
|
+
# auth_names
|
1091
|
+
auth_names = opts[:debug_auth_names] || []
|
1092
|
+
|
1093
|
+
new_options = opts.merge(
|
1094
|
+
:operation => :"V2Api.create_auth_method_oci",
|
1095
|
+
:header_params => header_params,
|
1096
|
+
:query_params => query_params,
|
1097
|
+
:form_params => form_params,
|
1098
|
+
:body => post_body,
|
1099
|
+
:auth_names => auth_names,
|
1100
|
+
:return_type => return_type
|
1101
|
+
)
|
1102
|
+
|
1103
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
1104
|
+
if @api_client.config.debugging
|
1105
|
+
@api_client.config.logger.debug "API called: V2Api#create_auth_method_oci\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1106
|
+
end
|
1107
|
+
return data, status_code, headers
|
1108
|
+
end
|
1109
|
+
|
1046
1110
|
# @param body [CreateAuthMethodOIDC]
|
1047
1111
|
# @param [Hash] opts the optional parameters
|
1048
1112
|
# @return [CreateAuthMethodOIDCOutput]
|
@@ -13704,6 +13768,70 @@ module Akeyless
|
|
13704
13768
|
return data, status_code, headers
|
13705
13769
|
end
|
13706
13770
|
|
13771
|
+
# @param body [ProvisionCertificate]
|
13772
|
+
# @param [Hash] opts the optional parameters
|
13773
|
+
# @return [ProvisionCertificateOutput]
|
13774
|
+
def provision_certificate(body, opts = {})
|
13775
|
+
data, _status_code, _headers = provision_certificate_with_http_info(body, opts)
|
13776
|
+
data
|
13777
|
+
end
|
13778
|
+
|
13779
|
+
# @param body [ProvisionCertificate]
|
13780
|
+
# @param [Hash] opts the optional parameters
|
13781
|
+
# @return [Array<(ProvisionCertificateOutput, Integer, Hash)>] ProvisionCertificateOutput data, response status code and response headers
|
13782
|
+
def provision_certificate_with_http_info(body, opts = {})
|
13783
|
+
if @api_client.config.debugging
|
13784
|
+
@api_client.config.logger.debug 'Calling API: V2Api.provision_certificate ...'
|
13785
|
+
end
|
13786
|
+
# verify the required parameter 'body' is set
|
13787
|
+
if @api_client.config.client_side_validation && body.nil?
|
13788
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling V2Api.provision_certificate"
|
13789
|
+
end
|
13790
|
+
# resource path
|
13791
|
+
local_var_path = '/provision-certificate'
|
13792
|
+
|
13793
|
+
# query parameters
|
13794
|
+
query_params = opts[:query_params] || {}
|
13795
|
+
|
13796
|
+
# header parameters
|
13797
|
+
header_params = opts[:header_params] || {}
|
13798
|
+
# HTTP header 'Accept' (if needed)
|
13799
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
13800
|
+
# HTTP header 'Content-Type'
|
13801
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
13802
|
+
if !content_type.nil?
|
13803
|
+
header_params['Content-Type'] = content_type
|
13804
|
+
end
|
13805
|
+
|
13806
|
+
# form parameters
|
13807
|
+
form_params = opts[:form_params] || {}
|
13808
|
+
|
13809
|
+
# http body (model)
|
13810
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
13811
|
+
|
13812
|
+
# return_type
|
13813
|
+
return_type = opts[:debug_return_type] || 'ProvisionCertificateOutput'
|
13814
|
+
|
13815
|
+
# auth_names
|
13816
|
+
auth_names = opts[:debug_auth_names] || []
|
13817
|
+
|
13818
|
+
new_options = opts.merge(
|
13819
|
+
:operation => :"V2Api.provision_certificate",
|
13820
|
+
:header_params => header_params,
|
13821
|
+
:query_params => query_params,
|
13822
|
+
:form_params => form_params,
|
13823
|
+
:body => post_body,
|
13824
|
+
:auth_names => auth_names,
|
13825
|
+
:return_type => return_type
|
13826
|
+
)
|
13827
|
+
|
13828
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
13829
|
+
if @api_client.config.debugging
|
13830
|
+
@api_client.config.logger.debug "API called: V2Api#provision_certificate\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
13831
|
+
end
|
13832
|
+
return data, status_code, headers
|
13833
|
+
end
|
13834
|
+
|
13707
13835
|
# @param [Hash] opts the optional parameters
|
13708
13836
|
# @option opts [RawCreds] :body
|
13709
13837
|
# @return [SystemAccessCredentialsReplyObj]
|
@@ -13828,6 +13956,70 @@ module Akeyless
|
|
13828
13956
|
return data, status_code, headers
|
13829
13957
|
end
|
13830
13958
|
|
13959
|
+
# @param body [RenewCertificate]
|
13960
|
+
# @param [Hash] opts the optional parameters
|
13961
|
+
# @return [RenewCertificateOutput]
|
13962
|
+
def renew_certificate(body, opts = {})
|
13963
|
+
data, _status_code, _headers = renew_certificate_with_http_info(body, opts)
|
13964
|
+
data
|
13965
|
+
end
|
13966
|
+
|
13967
|
+
# @param body [RenewCertificate]
|
13968
|
+
# @param [Hash] opts the optional parameters
|
13969
|
+
# @return [Array<(RenewCertificateOutput, Integer, Hash)>] RenewCertificateOutput data, response status code and response headers
|
13970
|
+
def renew_certificate_with_http_info(body, opts = {})
|
13971
|
+
if @api_client.config.debugging
|
13972
|
+
@api_client.config.logger.debug 'Calling API: V2Api.renew_certificate ...'
|
13973
|
+
end
|
13974
|
+
# verify the required parameter 'body' is set
|
13975
|
+
if @api_client.config.client_side_validation && body.nil?
|
13976
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling V2Api.renew_certificate"
|
13977
|
+
end
|
13978
|
+
# resource path
|
13979
|
+
local_var_path = '/renew-certificate'
|
13980
|
+
|
13981
|
+
# query parameters
|
13982
|
+
query_params = opts[:query_params] || {}
|
13983
|
+
|
13984
|
+
# header parameters
|
13985
|
+
header_params = opts[:header_params] || {}
|
13986
|
+
# HTTP header 'Accept' (if needed)
|
13987
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
13988
|
+
# HTTP header 'Content-Type'
|
13989
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
13990
|
+
if !content_type.nil?
|
13991
|
+
header_params['Content-Type'] = content_type
|
13992
|
+
end
|
13993
|
+
|
13994
|
+
# form parameters
|
13995
|
+
form_params = opts[:form_params] || {}
|
13996
|
+
|
13997
|
+
# http body (model)
|
13998
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
13999
|
+
|
14000
|
+
# return_type
|
14001
|
+
return_type = opts[:debug_return_type] || 'RenewCertificateOutput'
|
14002
|
+
|
14003
|
+
# auth_names
|
14004
|
+
auth_names = opts[:debug_auth_names] || []
|
14005
|
+
|
14006
|
+
new_options = opts.merge(
|
14007
|
+
:operation => :"V2Api.renew_certificate",
|
14008
|
+
:header_params => header_params,
|
14009
|
+
:query_params => query_params,
|
14010
|
+
:form_params => form_params,
|
14011
|
+
:body => post_body,
|
14012
|
+
:auth_names => auth_names,
|
14013
|
+
:return_type => return_type
|
14014
|
+
)
|
14015
|
+
|
14016
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
14017
|
+
if @api_client.config.debugging
|
14018
|
+
@api_client.config.logger.debug "API called: V2Api#renew_certificate\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
14019
|
+
end
|
14020
|
+
return data, status_code, headers
|
14021
|
+
end
|
14022
|
+
|
13831
14023
|
# @param body [RequestAccess]
|
13832
14024
|
# @param [Hash] opts the optional parameters
|
13833
14025
|
# @return [RequestAccessOutput]
|
@@ -14073,7 +14265,7 @@ module Akeyless
|
|
14073
14265
|
return data, status_code, headers
|
14074
14266
|
end
|
14075
14267
|
|
14076
|
-
# @param body [
|
14268
|
+
# @param body [RotateKey]
|
14077
14269
|
# @param [Hash] opts the optional parameters
|
14078
14270
|
# @return [RotateKeyOutput]
|
14079
14271
|
def rotate_key(body, opts = {})
|
@@ -14081,7 +14273,7 @@ module Akeyless
|
|
14081
14273
|
data
|
14082
14274
|
end
|
14083
14275
|
|
14084
|
-
# @param body [
|
14276
|
+
# @param body [RotateKey]
|
14085
14277
|
# @param [Hash] opts the optional parameters
|
14086
14278
|
# @return [Array<(RotateKeyOutput, Integer, Hash)>] RotateKeyOutput data, response status code and response headers
|
14087
14279
|
def rotate_key_with_http_info(body, opts = {})
|
@@ -16057,6 +16249,70 @@ module Akeyless
|
|
16057
16249
|
return data, status_code, headers
|
16058
16250
|
end
|
16059
16251
|
|
16252
|
+
# @param body [UpdateAuthMethodOCI]
|
16253
|
+
# @param [Hash] opts the optional parameters
|
16254
|
+
# @return [UpdateAuthMethodOCIOutput]
|
16255
|
+
def update_auth_method_oci(body, opts = {})
|
16256
|
+
data, _status_code, _headers = update_auth_method_oci_with_http_info(body, opts)
|
16257
|
+
data
|
16258
|
+
end
|
16259
|
+
|
16260
|
+
# @param body [UpdateAuthMethodOCI]
|
16261
|
+
# @param [Hash] opts the optional parameters
|
16262
|
+
# @return [Array<(UpdateAuthMethodOCIOutput, Integer, Hash)>] UpdateAuthMethodOCIOutput data, response status code and response headers
|
16263
|
+
def update_auth_method_oci_with_http_info(body, opts = {})
|
16264
|
+
if @api_client.config.debugging
|
16265
|
+
@api_client.config.logger.debug 'Calling API: V2Api.update_auth_method_oci ...'
|
16266
|
+
end
|
16267
|
+
# verify the required parameter 'body' is set
|
16268
|
+
if @api_client.config.client_side_validation && body.nil?
|
16269
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling V2Api.update_auth_method_oci"
|
16270
|
+
end
|
16271
|
+
# resource path
|
16272
|
+
local_var_path = '/update-auth-method-oci'
|
16273
|
+
|
16274
|
+
# query parameters
|
16275
|
+
query_params = opts[:query_params] || {}
|
16276
|
+
|
16277
|
+
# header parameters
|
16278
|
+
header_params = opts[:header_params] || {}
|
16279
|
+
# HTTP header 'Accept' (if needed)
|
16280
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
16281
|
+
# HTTP header 'Content-Type'
|
16282
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
16283
|
+
if !content_type.nil?
|
16284
|
+
header_params['Content-Type'] = content_type
|
16285
|
+
end
|
16286
|
+
|
16287
|
+
# form parameters
|
16288
|
+
form_params = opts[:form_params] || {}
|
16289
|
+
|
16290
|
+
# http body (model)
|
16291
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
16292
|
+
|
16293
|
+
# return_type
|
16294
|
+
return_type = opts[:debug_return_type] || 'UpdateAuthMethodOCIOutput'
|
16295
|
+
|
16296
|
+
# auth_names
|
16297
|
+
auth_names = opts[:debug_auth_names] || []
|
16298
|
+
|
16299
|
+
new_options = opts.merge(
|
16300
|
+
:operation => :"V2Api.update_auth_method_oci",
|
16301
|
+
:header_params => header_params,
|
16302
|
+
:query_params => query_params,
|
16303
|
+
:form_params => form_params,
|
16304
|
+
:body => post_body,
|
16305
|
+
:auth_names => auth_names,
|
16306
|
+
:return_type => return_type
|
16307
|
+
)
|
16308
|
+
|
16309
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
16310
|
+
if @api_client.config.debugging
|
16311
|
+
@api_client.config.logger.debug "API called: V2Api#update_auth_method_oci\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
16312
|
+
end
|
16313
|
+
return data, status_code, headers
|
16314
|
+
end
|
16315
|
+
|
16060
16316
|
# @param body [UpdateAuthMethodOIDC]
|
16061
16317
|
# @param [Hash] opts the optional parameters
|
16062
16318
|
# @return [Object]
|
@@ -18105,21 +18361,27 @@ module Akeyless
|
|
18105
18361
|
return data, status_code, headers
|
18106
18362
|
end
|
18107
18363
|
|
18364
|
+
# @param body [UpdateRotationSettings]
|
18108
18365
|
# @param [Hash] opts the optional parameters
|
18109
18366
|
# @return [RotateKeyOutput]
|
18110
|
-
def update_rotation_settings(opts = {})
|
18111
|
-
data, _status_code, _headers = update_rotation_settings_with_http_info(opts)
|
18367
|
+
def update_rotation_settings(body, opts = {})
|
18368
|
+
data, _status_code, _headers = update_rotation_settings_with_http_info(body, opts)
|
18112
18369
|
data
|
18113
18370
|
end
|
18114
18371
|
|
18372
|
+
# @param body [UpdateRotationSettings]
|
18115
18373
|
# @param [Hash] opts the optional parameters
|
18116
18374
|
# @return [Array<(RotateKeyOutput, Integer, Hash)>] RotateKeyOutput data, response status code and response headers
|
18117
|
-
def update_rotation_settings_with_http_info(opts = {})
|
18375
|
+
def update_rotation_settings_with_http_info(body, opts = {})
|
18118
18376
|
if @api_client.config.debugging
|
18119
18377
|
@api_client.config.logger.debug 'Calling API: V2Api.update_rotation_settings ...'
|
18120
18378
|
end
|
18379
|
+
# verify the required parameter 'body' is set
|
18380
|
+
if @api_client.config.client_side_validation && body.nil?
|
18381
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling V2Api.update_rotation_settings"
|
18382
|
+
end
|
18121
18383
|
# resource path
|
18122
|
-
local_var_path = '/update-rotation-
|
18384
|
+
local_var_path = '/update-rotation-settings'
|
18123
18385
|
|
18124
18386
|
# query parameters
|
18125
18387
|
query_params = opts[:query_params] || {}
|
@@ -18128,12 +18390,17 @@ module Akeyless
|
|
18128
18390
|
header_params = opts[:header_params] || {}
|
18129
18391
|
# HTTP header 'Accept' (if needed)
|
18130
18392
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
18393
|
+
# HTTP header 'Content-Type'
|
18394
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
18395
|
+
if !content_type.nil?
|
18396
|
+
header_params['Content-Type'] = content_type
|
18397
|
+
end
|
18131
18398
|
|
18132
18399
|
# form parameters
|
18133
18400
|
form_params = opts[:form_params] || {}
|
18134
18401
|
|
18135
18402
|
# http body (model)
|
18136
|
-
post_body = opts[:debug_body]
|
18403
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
18137
18404
|
|
18138
18405
|
# return_type
|
18139
18406
|
return_type = opts[:debug_return_type] || 'RotateKeyOutput'
|
@@ -16,6 +16,12 @@ require 'time'
|
|
16
16
|
module Akeyless
|
17
17
|
# assocTargetItem is a command that creates an association between target and item.
|
18
18
|
class AssocTargetItem
|
19
|
+
# A path on the target to store the certificate pem file (relevant only for certificate provisioning)
|
20
|
+
attr_accessor :certificate_path
|
21
|
+
|
22
|
+
# A path on the target to store the full chain pem file (relevant only for certificate provisioning)
|
23
|
+
attr_accessor :chain_path
|
24
|
+
|
19
25
|
# Automatically disable previous key version (required for azure targets)
|
20
26
|
attr_accessor :disable_previous_key_version
|
21
27
|
|
@@ -40,6 +46,9 @@ module Akeyless
|
|
40
46
|
# The item to associate
|
41
47
|
attr_accessor :name
|
42
48
|
|
49
|
+
# A path on the target to store the private key (relevant only for certificate provisioning)
|
50
|
+
attr_accessor :private_key_path
|
51
|
+
|
43
52
|
# Project id of the GCP KMS (required for gcp targets)
|
44
53
|
attr_accessor :project_id
|
45
54
|
|
@@ -49,6 +58,9 @@ module Akeyless
|
|
49
58
|
# The list of regions to create a copy of the key in (relevant for aws targets)
|
50
59
|
attr_accessor :regions
|
51
60
|
|
61
|
+
# Is the target to associate is for sra, relevant only for linked target association for ldap rotated secret
|
62
|
+
attr_accessor :sra_association
|
63
|
+
|
52
64
|
# The target to associate
|
53
65
|
attr_accessor :target_name
|
54
66
|
|
@@ -67,6 +79,8 @@ module Akeyless
|
|
67
79
|
# Attribute mapping from ruby-style variable name to JSON key.
|
68
80
|
def self.attribute_map
|
69
81
|
{
|
82
|
+
:'certificate_path' => :'certificate-path',
|
83
|
+
:'chain_path' => :'chain-path',
|
70
84
|
:'disable_previous_key_version' => :'disable-previous-key-version',
|
71
85
|
:'json' => :'json',
|
72
86
|
:'key_operations' => :'key-operations',
|
@@ -75,9 +89,11 @@ module Akeyless
|
|
75
89
|
:'location_id' => :'location-id',
|
76
90
|
:'multi_region' => :'multi-region',
|
77
91
|
:'name' => :'name',
|
92
|
+
:'private_key_path' => :'private-key-path',
|
78
93
|
:'project_id' => :'project-id',
|
79
94
|
:'purpose' => :'purpose',
|
80
95
|
:'regions' => :'regions',
|
96
|
+
:'sra_association' => :'sra-association',
|
81
97
|
:'target_name' => :'target-name',
|
82
98
|
:'tenant_secret_type' => :'tenant-secret-type',
|
83
99
|
:'token' => :'token',
|
@@ -94,6 +110,8 @@ module Akeyless
|
|
94
110
|
# Attribute type mapping.
|
95
111
|
def self.openapi_types
|
96
112
|
{
|
113
|
+
:'certificate_path' => :'String',
|
114
|
+
:'chain_path' => :'String',
|
97
115
|
:'disable_previous_key_version' => :'Boolean',
|
98
116
|
:'json' => :'Boolean',
|
99
117
|
:'key_operations' => :'Array<String>',
|
@@ -102,9 +120,11 @@ module Akeyless
|
|
102
120
|
:'location_id' => :'String',
|
103
121
|
:'multi_region' => :'String',
|
104
122
|
:'name' => :'String',
|
123
|
+
:'private_key_path' => :'String',
|
105
124
|
:'project_id' => :'String',
|
106
125
|
:'purpose' => :'String',
|
107
126
|
:'regions' => :'Array<String>',
|
127
|
+
:'sra_association' => :'Boolean',
|
108
128
|
:'target_name' => :'String',
|
109
129
|
:'tenant_secret_type' => :'String',
|
110
130
|
:'token' => :'String',
|
@@ -134,6 +154,14 @@ module Akeyless
|
|
134
154
|
h[k.to_sym] = v
|
135
155
|
}
|
136
156
|
|
157
|
+
if attributes.key?(:'certificate_path')
|
158
|
+
self.certificate_path = attributes[:'certificate_path']
|
159
|
+
end
|
160
|
+
|
161
|
+
if attributes.key?(:'chain_path')
|
162
|
+
self.chain_path = attributes[:'chain_path']
|
163
|
+
end
|
164
|
+
|
137
165
|
if attributes.key?(:'disable_previous_key_version')
|
138
166
|
self.disable_previous_key_version = attributes[:'disable_previous_key_version']
|
139
167
|
else
|
@@ -176,6 +204,10 @@ module Akeyless
|
|
176
204
|
self.name = nil
|
177
205
|
end
|
178
206
|
|
207
|
+
if attributes.key?(:'private_key_path')
|
208
|
+
self.private_key_path = attributes[:'private_key_path']
|
209
|
+
end
|
210
|
+
|
179
211
|
if attributes.key?(:'project_id')
|
180
212
|
self.project_id = attributes[:'project_id']
|
181
213
|
end
|
@@ -190,6 +222,12 @@ module Akeyless
|
|
190
222
|
end
|
191
223
|
end
|
192
224
|
|
225
|
+
if attributes.key?(:'sra_association')
|
226
|
+
self.sra_association = attributes[:'sra_association']
|
227
|
+
else
|
228
|
+
self.sra_association = false
|
229
|
+
end
|
230
|
+
|
193
231
|
if attributes.key?(:'target_name')
|
194
232
|
self.target_name = attributes[:'target_name']
|
195
233
|
else
|
@@ -243,6 +281,8 @@ module Akeyless
|
|
243
281
|
def ==(o)
|
244
282
|
return true if self.equal?(o)
|
245
283
|
self.class == o.class &&
|
284
|
+
certificate_path == o.certificate_path &&
|
285
|
+
chain_path == o.chain_path &&
|
246
286
|
disable_previous_key_version == o.disable_previous_key_version &&
|
247
287
|
json == o.json &&
|
248
288
|
key_operations == o.key_operations &&
|
@@ -251,9 +291,11 @@ module Akeyless
|
|
251
291
|
location_id == o.location_id &&
|
252
292
|
multi_region == o.multi_region &&
|
253
293
|
name == o.name &&
|
294
|
+
private_key_path == o.private_key_path &&
|
254
295
|
project_id == o.project_id &&
|
255
296
|
purpose == o.purpose &&
|
256
297
|
regions == o.regions &&
|
298
|
+
sra_association == o.sra_association &&
|
257
299
|
target_name == o.target_name &&
|
258
300
|
tenant_secret_type == o.tenant_secret_type &&
|
259
301
|
token == o.token &&
|
@@ -270,7 +312,7 @@ module Akeyless
|
|
270
312
|
# Calculates hash code according to all attributes.
|
271
313
|
# @return [Integer] Hash code
|
272
314
|
def hash
|
273
|
-
[disable_previous_key_version, json, key_operations, keyring_name, kms_algorithm, location_id, multi_region, name, project_id, purpose, regions, target_name, tenant_secret_type, token, uid_token, vault_name].hash
|
315
|
+
[certificate_path, chain_path, disable_previous_key_version, json, key_operations, keyring_name, kms_algorithm, location_id, multi_region, name, private_key_path, project_id, purpose, regions, sra_association, target_name, tenant_secret_type, token, uid_token, vault_name].hash
|
274
316
|
end
|
275
317
|
|
276
318
|
# Builds the object from hash
|
data/lib/akeyless/models/auth.rb
CHANGED
@@ -68,6 +68,12 @@ module Akeyless
|
|
68
68
|
# LDAP username (relevant only for access-type=ldap)
|
69
69
|
attr_accessor :ldap_username
|
70
70
|
|
71
|
+
# The type of the OCI configuration to use [instance/apikey/resource] (relevant only for access-type=oci)
|
72
|
+
attr_accessor :oci_auth_type
|
73
|
+
|
74
|
+
# A list of Oracle Cloud IDs groups (relevant only for access-type=oci)
|
75
|
+
attr_accessor :oci_group_ocid
|
76
|
+
|
71
77
|
# The universal_identity token (relevant only for access-type=universal_identity)
|
72
78
|
attr_accessor :uid_token
|
73
79
|
|
@@ -92,6 +98,8 @@ module Akeyless
|
|
92
98
|
:'key_data' => :'key-data',
|
93
99
|
:'ldap_password' => :'ldap_password',
|
94
100
|
:'ldap_username' => :'ldap_username',
|
101
|
+
:'oci_auth_type' => :'oci-auth-type',
|
102
|
+
:'oci_group_ocid' => :'oci-group-ocid',
|
95
103
|
:'uid_token' => :'uid_token'
|
96
104
|
}
|
97
105
|
end
|
@@ -122,6 +130,8 @@ module Akeyless
|
|
122
130
|
:'key_data' => :'String',
|
123
131
|
:'ldap_password' => :'String',
|
124
132
|
:'ldap_username' => :'String',
|
133
|
+
:'oci_auth_type' => :'String',
|
134
|
+
:'oci_group_ocid' => :'Array<String>',
|
125
135
|
:'uid_token' => :'String'
|
126
136
|
}
|
127
137
|
end
|
@@ -225,6 +235,18 @@ module Akeyless
|
|
225
235
|
self.ldap_username = attributes[:'ldap_username']
|
226
236
|
end
|
227
237
|
|
238
|
+
if attributes.key?(:'oci_auth_type')
|
239
|
+
self.oci_auth_type = attributes[:'oci_auth_type']
|
240
|
+
else
|
241
|
+
self.oci_auth_type = 'apikey'
|
242
|
+
end
|
243
|
+
|
244
|
+
if attributes.key?(:'oci_group_ocid')
|
245
|
+
if (value = attributes[:'oci_group_ocid']).is_a?(Array)
|
246
|
+
self.oci_group_ocid = value
|
247
|
+
end
|
248
|
+
end
|
249
|
+
|
228
250
|
if attributes.key?(:'uid_token')
|
229
251
|
self.uid_token = attributes[:'uid_token']
|
230
252
|
end
|
@@ -268,6 +290,8 @@ module Akeyless
|
|
268
290
|
key_data == o.key_data &&
|
269
291
|
ldap_password == o.ldap_password &&
|
270
292
|
ldap_username == o.ldap_username &&
|
293
|
+
oci_auth_type == o.oci_auth_type &&
|
294
|
+
oci_group_ocid == o.oci_group_ocid &&
|
271
295
|
uid_token == o.uid_token
|
272
296
|
end
|
273
297
|
|
@@ -280,7 +304,7 @@ module Akeyless
|
|
280
304
|
# Calculates hash code according to all attributes.
|
281
305
|
# @return [Integer] Hash code
|
282
306
|
def hash
|
283
|
-
[access_id, access_key, access_type, account_id, admin_email, admin_password, cert_data, cloud_id, debug, gateway_url, gcp_audience, json, jwt, k8s_auth_config_name, k8s_service_account_token, key_data, ldap_password, ldap_username, uid_token].hash
|
307
|
+
[access_id, access_key, access_type, account_id, admin_email, admin_password, cert_data, cloud_id, debug, gateway_url, gcp_audience, json, jwt, k8s_auth_config_name, k8s_service_account_token, key_data, ldap_password, ldap_username, oci_auth_type, oci_group_ocid, uid_token].hash
|
284
308
|
end
|
285
309
|
|
286
310
|
# Builds the object from hash
|
@@ -35,6 +35,8 @@ module Akeyless
|
|
35
35
|
|
36
36
|
attr_accessor :creation_date
|
37
37
|
|
38
|
+
attr_accessor :description
|
39
|
+
|
38
40
|
attr_accessor :is_approved
|
39
41
|
|
40
42
|
attr_accessor :modification_date
|
@@ -52,6 +54,7 @@ module Akeyless
|
|
52
54
|
:'auth_method_roles_assoc' => :'auth_method_roles_assoc',
|
53
55
|
:'client_permissions' => :'client_permissions',
|
54
56
|
:'creation_date' => :'creation_date',
|
57
|
+
:'description' => :'description',
|
55
58
|
:'is_approved' => :'is_approved',
|
56
59
|
:'modification_date' => :'modification_date'
|
57
60
|
}
|
@@ -75,6 +78,7 @@ module Akeyless
|
|
75
78
|
:'auth_method_roles_assoc' => :'Array<AuthMethodRoleAssociation>',
|
76
79
|
:'client_permissions' => :'Array<String>',
|
77
80
|
:'creation_date' => :'Time',
|
81
|
+
:'description' => :'String',
|
78
82
|
:'is_approved' => :'Boolean',
|
79
83
|
:'modification_date' => :'Time'
|
80
84
|
}
|
@@ -147,6 +151,10 @@ module Akeyless
|
|
147
151
|
self.creation_date = attributes[:'creation_date']
|
148
152
|
end
|
149
153
|
|
154
|
+
if attributes.key?(:'description')
|
155
|
+
self.description = attributes[:'description']
|
156
|
+
end
|
157
|
+
|
150
158
|
if attributes.key?(:'is_approved')
|
151
159
|
self.is_approved = attributes[:'is_approved']
|
152
160
|
end
|
@@ -186,6 +194,7 @@ module Akeyless
|
|
186
194
|
auth_method_roles_assoc == o.auth_method_roles_assoc &&
|
187
195
|
client_permissions == o.client_permissions &&
|
188
196
|
creation_date == o.creation_date &&
|
197
|
+
description == o.description &&
|
189
198
|
is_approved == o.is_approved &&
|
190
199
|
modification_date == o.modification_date
|
191
200
|
end
|
@@ -199,7 +208,7 @@ module Akeyless
|
|
199
208
|
# Calculates hash code according to all attributes.
|
200
209
|
# @return [Integer] Hash code
|
201
210
|
def hash
|
202
|
-
[access_date, access_date_display, access_info, account_id, associated_gw_ids, auth_method_access_id, auth_method_name, auth_method_roles_assoc, client_permissions, creation_date, is_approved, modification_date].hash
|
211
|
+
[access_date, access_date_display, access_info, account_id, associated_gw_ids, auth_method_access_id, auth_method_name, auth_method_roles_assoc, client_permissions, creation_date, description, is_approved, modification_date].hash
|
203
212
|
end
|
204
213
|
|
205
214
|
# Builds the object from hash
|
@@ -49,6 +49,8 @@ module Akeyless
|
|
49
49
|
|
50
50
|
attr_accessor :oauth2_access_rules
|
51
51
|
|
52
|
+
attr_accessor :oci_access_rules
|
53
|
+
|
52
54
|
attr_accessor :oidc_access_rules
|
53
55
|
|
54
56
|
attr_accessor :rules_type
|
@@ -78,6 +80,7 @@ module Akeyless
|
|
78
80
|
:'k8s_access_rules' => :'k8s_access_rules',
|
79
81
|
:'ldap_access_rules' => :'ldap_access_rules',
|
80
82
|
:'oauth2_access_rules' => :'oauth2_access_rules',
|
83
|
+
:'oci_access_rules' => :'oci_access_rules',
|
81
84
|
:'oidc_access_rules' => :'oidc_access_rules',
|
82
85
|
:'rules_type' => :'rules_type',
|
83
86
|
:'saml_access_rules' => :'saml_access_rules',
|
@@ -110,6 +113,7 @@ module Akeyless
|
|
110
113
|
:'k8s_access_rules' => :'KubernetesAccessRules',
|
111
114
|
:'ldap_access_rules' => :'LDAPAccessRules',
|
112
115
|
:'oauth2_access_rules' => :'OAuth2AccessRules',
|
116
|
+
:'oci_access_rules' => :'OCIAccessRules',
|
113
117
|
:'oidc_access_rules' => :'OIDCAccessRules',
|
114
118
|
:'rules_type' => :'String',
|
115
119
|
:'saml_access_rules' => :'SAMLAccessRules',
|
@@ -203,6 +207,10 @@ module Akeyless
|
|
203
207
|
self.oauth2_access_rules = attributes[:'oauth2_access_rules']
|
204
208
|
end
|
205
209
|
|
210
|
+
if attributes.key?(:'oci_access_rules')
|
211
|
+
self.oci_access_rules = attributes[:'oci_access_rules']
|
212
|
+
end
|
213
|
+
|
206
214
|
if attributes.key?(:'oidc_access_rules')
|
207
215
|
self.oidc_access_rules = attributes[:'oidc_access_rules']
|
208
216
|
end
|
@@ -262,6 +270,7 @@ module Akeyless
|
|
262
270
|
k8s_access_rules == o.k8s_access_rules &&
|
263
271
|
ldap_access_rules == o.ldap_access_rules &&
|
264
272
|
oauth2_access_rules == o.oauth2_access_rules &&
|
273
|
+
oci_access_rules == o.oci_access_rules &&
|
265
274
|
oidc_access_rules == o.oidc_access_rules &&
|
266
275
|
rules_type == o.rules_type &&
|
267
276
|
saml_access_rules == o.saml_access_rules &&
|
@@ -278,7 +287,7 @@ module Akeyless
|
|
278
287
|
# Calculates hash code according to all attributes.
|
279
288
|
# @return [Integer] Hash code
|
280
289
|
def hash
|
281
|
-
[access_expires, access_id_alias, api_key_access_rules, aws_iam_access_rules, azure_ad_access_rules, cert_access_rules, cidr_whitelist, email_pass_access_rules, force_sub_claims, gcp_access_rules, gw_cidr_whitelist, huawei_access_rules, jwt_ttl, k8s_access_rules, ldap_access_rules, oauth2_access_rules, oidc_access_rules, rules_type, saml_access_rules, sub_claims_delimiters, universal_identity_access_rules].hash
|
290
|
+
[access_expires, access_id_alias, api_key_access_rules, aws_iam_access_rules, azure_ad_access_rules, cert_access_rules, cidr_whitelist, email_pass_access_rules, force_sub_claims, gcp_access_rules, gw_cidr_whitelist, huawei_access_rules, jwt_ttl, k8s_access_rules, ldap_access_rules, oauth2_access_rules, oci_access_rules, oidc_access_rules, rules_type, saml_access_rules, sub_claims_delimiters, universal_identity_access_rules].hash
|
282
291
|
end
|
283
292
|
|
284
293
|
# Builds the object from hash
|