akeyless 3.1.0 → 3.1.2
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.
- checksums.yaml +4 -4
- data/README.md +24 -1
- data/docs/AssocTargetItem.md +2 -0
- data/docs/CreateCertificate.md +40 -0
- data/docs/CreateCertificateOutput.md +18 -0
- data/docs/CreateClassicKey.md +6 -2
- data/docs/CreateDBTarget.md +4 -0
- data/docs/CreateDFCKey.md +3 -1
- data/docs/CreateDynamicSecret.md +3 -1
- data/docs/CreateKey.md +3 -1
- data/docs/CreatePKICertIssuer.md +3 -1
- data/docs/CreateRotatedSecret.md +3 -1
- data/docs/CreateSSHCertIssuer.md +3 -1
- data/docs/CreateSecret.md +3 -1
- data/docs/CreateTokenizer.md +3 -1
- data/docs/DSProducerDetails.md +8 -0
- data/docs/DecryptGPG.md +34 -0
- data/docs/DecryptGPGOutput.md +18 -0
- data/docs/EncryptGPG.md +32 -0
- data/docs/EncryptGPGOutput.md +18 -0
- data/docs/GatewayCreateProducerSnowflake.md +4 -0
- data/docs/GatewayUpdateItem.md +3 -1
- data/docs/GatewayUpdateProducerSnowflake.md +4 -0
- data/docs/GatewayUpdateTlsCert.md +26 -0
- data/docs/GatewayUpdateTlsCertOutput.md +18 -0
- data/docs/GenCustomerFragment.md +4 -2
- data/docs/GetCertificateValue.md +26 -0
- data/docs/GetCertificateValueOutput.md +20 -0
- data/docs/ListSRABastions.md +2 -0
- data/docs/RotateKey.md +2 -0
- data/docs/SignGPG.md +32 -0
- data/docs/SignGPGOutput.md +18 -0
- data/docs/TargetTypeDetailsInput.md +4 -0
- data/docs/UpdateCertificateOutput.md +18 -0
- data/docs/UpdateCertificateValue.md +32 -0
- data/docs/UpdateDBTarget.md +4 -0
- data/docs/UpdateItem.md +3 -1
- data/docs/UpdatePKICertIssuer.md +3 -1
- data/docs/UpdateRotatedSecret.md +3 -1
- data/docs/UpdateSSHCertIssuer.md +3 -1
- data/docs/UploadPKCS12.md +3 -1
- data/docs/UploadRSA.md +3 -1
- data/docs/V2Api.md +504 -0
- data/docs/VerifyGPG.md +32 -0
- data/lib/akeyless/api/v2_api.rb +512 -0
- data/lib/akeyless/models/assoc_target_item.rb +11 -1
- data/lib/akeyless/models/create_certificate.rb +339 -0
- data/lib/akeyless/models/create_certificate_output.rb +219 -0
- data/lib/akeyless/models/create_classic_key.rb +23 -3
- data/lib/akeyless/models/create_db_target.rb +21 -1
- data/lib/akeyless/models/create_dfc_key.rb +12 -2
- data/lib/akeyless/models/create_dynamic_secret.rb +12 -4
- data/lib/akeyless/models/create_key.rb +12 -2
- data/lib/akeyless/models/create_pki_cert_issuer.rb +12 -2
- data/lib/akeyless/models/create_rotated_secret.rb +12 -2
- data/lib/akeyless/models/create_secret.rb +12 -2
- data/lib/akeyless/models/create_ssh_cert_issuer.rb +12 -2
- data/lib/akeyless/models/create_tokenizer.rb +12 -2
- data/lib/akeyless/models/decrypt_gpg.rb +310 -0
- data/lib/akeyless/models/decrypt_gpg_output.rb +219 -0
- data/lib/akeyless/models/ds_producer_details.rb +40 -1
- data/lib/akeyless/models/encrypt_gpg.rb +300 -0
- data/lib/akeyless/models/encrypt_gpg_output.rb +219 -0
- data/lib/akeyless/models/gateway_create_producer_snowflake.rb +22 -2
- data/lib/akeyless/models/gateway_update_item.rb +14 -2
- data/lib/akeyless/models/gateway_update_producer_snowflake.rb +22 -2
- data/lib/akeyless/models/gateway_update_tls_cert.rb +261 -0
- data/lib/akeyless/models/gateway_update_tls_cert_output.rb +219 -0
- data/lib/akeyless/models/gen_customer_fragment.rb +15 -5
- data/lib/akeyless/models/get_certificate_value.rb +265 -0
- data/lib/akeyless/models/get_certificate_value_output.rb +228 -0
- data/lib/akeyless/models/list_sra_bastions.rb +10 -1
- data/lib/akeyless/models/rotate_key.rb +11 -1
- data/lib/akeyless/models/sign_gpg.rb +300 -0
- data/lib/akeyless/models/sign_gpg_output.rb +219 -0
- data/lib/akeyless/models/target_type_details_input.rb +20 -1
- data/lib/akeyless/models/update_certificate_output.rb +219 -0
- data/lib/akeyless/models/update_certificate_value.rb +297 -0
- data/lib/akeyless/models/update_db_target.rb +21 -1
- data/lib/akeyless/models/update_item.rb +14 -2
- data/lib/akeyless/models/update_pki_cert_issuer.rb +12 -2
- data/lib/akeyless/models/update_rotated_secret.rb +14 -2
- data/lib/akeyless/models/update_ssh_cert_issuer.rb +12 -2
- data/lib/akeyless/models/upload_pkcs12.rb +12 -2
- data/lib/akeyless/models/upload_rsa.rb +12 -2
- data/lib/akeyless/models/verify_gpg.rb +300 -0
- data/lib/akeyless/version.rb +1 -1
- data/lib/akeyless.rb +15 -0
- data/spec/models/create_certificate_output_spec.rb +34 -0
- data/spec/models/create_certificate_spec.rb +94 -0
- data/spec/models/decrypt_gpg_output_spec.rb +34 -0
- data/spec/models/decrypt_gpg_spec.rb +82 -0
- data/spec/models/encrypt_gpg_output_spec.rb +34 -0
- data/spec/models/encrypt_gpg_spec.rb +76 -0
- data/spec/models/gateway_update_tls_cert_output_spec.rb +34 -0
- data/spec/models/gateway_update_tls_cert_spec.rb +58 -0
- data/spec/models/get_certificate_value_output_spec.rb +40 -0
- data/spec/models/get_certificate_value_spec.rb +58 -0
- data/spec/models/sign_gpg_output_spec.rb +34 -0
- data/spec/models/sign_gpg_spec.rb +76 -0
- data/spec/models/update_certificate_output_spec.rb +34 -0
- data/spec/models/update_certificate_value_spec.rb +76 -0
- data/spec/models/verify_gpg_spec.rb +76 -0
- metadata +600 -540
data/lib/akeyless/api/v2_api.rb
CHANGED
|
@@ -1299,6 +1299,70 @@ module Akeyless
|
|
|
1299
1299
|
return data, status_code, headers
|
|
1300
1300
|
end
|
|
1301
1301
|
|
|
1302
|
+
# @param body [CreateCertificate]
|
|
1303
|
+
# @param [Hash] opts the optional parameters
|
|
1304
|
+
# @return [CreateCertificateOutput]
|
|
1305
|
+
def create_certificate(body, opts = {})
|
|
1306
|
+
data, _status_code, _headers = create_certificate_with_http_info(body, opts)
|
|
1307
|
+
data
|
|
1308
|
+
end
|
|
1309
|
+
|
|
1310
|
+
# @param body [CreateCertificate]
|
|
1311
|
+
# @param [Hash] opts the optional parameters
|
|
1312
|
+
# @return [Array<(CreateCertificateOutput, Integer, Hash)>] CreateCertificateOutput data, response status code and response headers
|
|
1313
|
+
def create_certificate_with_http_info(body, opts = {})
|
|
1314
|
+
if @api_client.config.debugging
|
|
1315
|
+
@api_client.config.logger.debug 'Calling API: V2Api.create_certificate ...'
|
|
1316
|
+
end
|
|
1317
|
+
# verify the required parameter 'body' is set
|
|
1318
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
1319
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling V2Api.create_certificate"
|
|
1320
|
+
end
|
|
1321
|
+
# resource path
|
|
1322
|
+
local_var_path = '/create-certificate'
|
|
1323
|
+
|
|
1324
|
+
# query parameters
|
|
1325
|
+
query_params = opts[:query_params] || {}
|
|
1326
|
+
|
|
1327
|
+
# header parameters
|
|
1328
|
+
header_params = opts[:header_params] || {}
|
|
1329
|
+
# HTTP header 'Accept' (if needed)
|
|
1330
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1331
|
+
# HTTP header 'Content-Type'
|
|
1332
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1333
|
+
if !content_type.nil?
|
|
1334
|
+
header_params['Content-Type'] = content_type
|
|
1335
|
+
end
|
|
1336
|
+
|
|
1337
|
+
# form parameters
|
|
1338
|
+
form_params = opts[:form_params] || {}
|
|
1339
|
+
|
|
1340
|
+
# http body (model)
|
|
1341
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
1342
|
+
|
|
1343
|
+
# return_type
|
|
1344
|
+
return_type = opts[:debug_return_type] || 'CreateCertificateOutput'
|
|
1345
|
+
|
|
1346
|
+
# auth_names
|
|
1347
|
+
auth_names = opts[:debug_auth_names] || []
|
|
1348
|
+
|
|
1349
|
+
new_options = opts.merge(
|
|
1350
|
+
:operation => :"V2Api.create_certificate",
|
|
1351
|
+
:header_params => header_params,
|
|
1352
|
+
:query_params => query_params,
|
|
1353
|
+
:form_params => form_params,
|
|
1354
|
+
:body => post_body,
|
|
1355
|
+
:auth_names => auth_names,
|
|
1356
|
+
:return_type => return_type
|
|
1357
|
+
)
|
|
1358
|
+
|
|
1359
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1360
|
+
if @api_client.config.debugging
|
|
1361
|
+
@api_client.config.logger.debug "API called: V2Api#create_certificate\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1362
|
+
end
|
|
1363
|
+
return data, status_code, headers
|
|
1364
|
+
end
|
|
1365
|
+
|
|
1302
1366
|
# @param body [CreateClassicKey]
|
|
1303
1367
|
# @param [Hash] opts the optional parameters
|
|
1304
1368
|
# @return [CreateClassicKeyOutput]
|
|
@@ -2835,6 +2899,70 @@ module Akeyless
|
|
|
2835
2899
|
return data, status_code, headers
|
|
2836
2900
|
end
|
|
2837
2901
|
|
|
2902
|
+
# @param body [DecryptGPG]
|
|
2903
|
+
# @param [Hash] opts the optional parameters
|
|
2904
|
+
# @return [DecryptGPGOutput]
|
|
2905
|
+
def decrypt_gpg(body, opts = {})
|
|
2906
|
+
data, _status_code, _headers = decrypt_gpg_with_http_info(body, opts)
|
|
2907
|
+
data
|
|
2908
|
+
end
|
|
2909
|
+
|
|
2910
|
+
# @param body [DecryptGPG]
|
|
2911
|
+
# @param [Hash] opts the optional parameters
|
|
2912
|
+
# @return [Array<(DecryptGPGOutput, Integer, Hash)>] DecryptGPGOutput data, response status code and response headers
|
|
2913
|
+
def decrypt_gpg_with_http_info(body, opts = {})
|
|
2914
|
+
if @api_client.config.debugging
|
|
2915
|
+
@api_client.config.logger.debug 'Calling API: V2Api.decrypt_gpg ...'
|
|
2916
|
+
end
|
|
2917
|
+
# verify the required parameter 'body' is set
|
|
2918
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
2919
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling V2Api.decrypt_gpg"
|
|
2920
|
+
end
|
|
2921
|
+
# resource path
|
|
2922
|
+
local_var_path = '/decrypt-gpg'
|
|
2923
|
+
|
|
2924
|
+
# query parameters
|
|
2925
|
+
query_params = opts[:query_params] || {}
|
|
2926
|
+
|
|
2927
|
+
# header parameters
|
|
2928
|
+
header_params = opts[:header_params] || {}
|
|
2929
|
+
# HTTP header 'Accept' (if needed)
|
|
2930
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
2931
|
+
# HTTP header 'Content-Type'
|
|
2932
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2933
|
+
if !content_type.nil?
|
|
2934
|
+
header_params['Content-Type'] = content_type
|
|
2935
|
+
end
|
|
2936
|
+
|
|
2937
|
+
# form parameters
|
|
2938
|
+
form_params = opts[:form_params] || {}
|
|
2939
|
+
|
|
2940
|
+
# http body (model)
|
|
2941
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
2942
|
+
|
|
2943
|
+
# return_type
|
|
2944
|
+
return_type = opts[:debug_return_type] || 'DecryptGPGOutput'
|
|
2945
|
+
|
|
2946
|
+
# auth_names
|
|
2947
|
+
auth_names = opts[:debug_auth_names] || []
|
|
2948
|
+
|
|
2949
|
+
new_options = opts.merge(
|
|
2950
|
+
:operation => :"V2Api.decrypt_gpg",
|
|
2951
|
+
:header_params => header_params,
|
|
2952
|
+
:query_params => query_params,
|
|
2953
|
+
:form_params => form_params,
|
|
2954
|
+
:body => post_body,
|
|
2955
|
+
:auth_names => auth_names,
|
|
2956
|
+
:return_type => return_type
|
|
2957
|
+
)
|
|
2958
|
+
|
|
2959
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
2960
|
+
if @api_client.config.debugging
|
|
2961
|
+
@api_client.config.logger.debug "API called: V2Api#decrypt_gpg\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2962
|
+
end
|
|
2963
|
+
return data, status_code, headers
|
|
2964
|
+
end
|
|
2965
|
+
|
|
2838
2966
|
# @param body [DecryptPKCS1]
|
|
2839
2967
|
# @param [Hash] opts the optional parameters
|
|
2840
2968
|
# @return [DecryptPKCS1Output]
|
|
@@ -4051,6 +4179,70 @@ module Akeyless
|
|
|
4051
4179
|
return data, status_code, headers
|
|
4052
4180
|
end
|
|
4053
4181
|
|
|
4182
|
+
# @param body [EncryptGPG]
|
|
4183
|
+
# @param [Hash] opts the optional parameters
|
|
4184
|
+
# @return [EncryptGPGOutput]
|
|
4185
|
+
def encrypt_gpg(body, opts = {})
|
|
4186
|
+
data, _status_code, _headers = encrypt_gpg_with_http_info(body, opts)
|
|
4187
|
+
data
|
|
4188
|
+
end
|
|
4189
|
+
|
|
4190
|
+
# @param body [EncryptGPG]
|
|
4191
|
+
# @param [Hash] opts the optional parameters
|
|
4192
|
+
# @return [Array<(EncryptGPGOutput, Integer, Hash)>] EncryptGPGOutput data, response status code and response headers
|
|
4193
|
+
def encrypt_gpg_with_http_info(body, opts = {})
|
|
4194
|
+
if @api_client.config.debugging
|
|
4195
|
+
@api_client.config.logger.debug 'Calling API: V2Api.encrypt_gpg ...'
|
|
4196
|
+
end
|
|
4197
|
+
# verify the required parameter 'body' is set
|
|
4198
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
4199
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling V2Api.encrypt_gpg"
|
|
4200
|
+
end
|
|
4201
|
+
# resource path
|
|
4202
|
+
local_var_path = '/encrypt-gpg'
|
|
4203
|
+
|
|
4204
|
+
# query parameters
|
|
4205
|
+
query_params = opts[:query_params] || {}
|
|
4206
|
+
|
|
4207
|
+
# header parameters
|
|
4208
|
+
header_params = opts[:header_params] || {}
|
|
4209
|
+
# HTTP header 'Accept' (if needed)
|
|
4210
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
4211
|
+
# HTTP header 'Content-Type'
|
|
4212
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
4213
|
+
if !content_type.nil?
|
|
4214
|
+
header_params['Content-Type'] = content_type
|
|
4215
|
+
end
|
|
4216
|
+
|
|
4217
|
+
# form parameters
|
|
4218
|
+
form_params = opts[:form_params] || {}
|
|
4219
|
+
|
|
4220
|
+
# http body (model)
|
|
4221
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
4222
|
+
|
|
4223
|
+
# return_type
|
|
4224
|
+
return_type = opts[:debug_return_type] || 'EncryptGPGOutput'
|
|
4225
|
+
|
|
4226
|
+
# auth_names
|
|
4227
|
+
auth_names = opts[:debug_auth_names] || []
|
|
4228
|
+
|
|
4229
|
+
new_options = opts.merge(
|
|
4230
|
+
:operation => :"V2Api.encrypt_gpg",
|
|
4231
|
+
:header_params => header_params,
|
|
4232
|
+
:query_params => query_params,
|
|
4233
|
+
:form_params => form_params,
|
|
4234
|
+
:body => post_body,
|
|
4235
|
+
:auth_names => auth_names,
|
|
4236
|
+
:return_type => return_type
|
|
4237
|
+
)
|
|
4238
|
+
|
|
4239
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
4240
|
+
if @api_client.config.debugging
|
|
4241
|
+
@api_client.config.logger.debug "API called: V2Api#encrypt_gpg\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
4242
|
+
end
|
|
4243
|
+
return data, status_code, headers
|
|
4244
|
+
end
|
|
4245
|
+
|
|
4054
4246
|
# @param body [EncryptWithClassicKey]
|
|
4055
4247
|
# @param [Hash] opts the optional parameters
|
|
4056
4248
|
# @return [EncryptOutput]
|
|
@@ -8711,6 +8903,70 @@ module Akeyless
|
|
|
8711
8903
|
return data, status_code, headers
|
|
8712
8904
|
end
|
|
8713
8905
|
|
|
8906
|
+
# @param body [GatewayUpdateTlsCert]
|
|
8907
|
+
# @param [Hash] opts the optional parameters
|
|
8908
|
+
# @return [GatewayUpdateTlsCertOutput]
|
|
8909
|
+
def gateway_update_tls_cert(body, opts = {})
|
|
8910
|
+
data, _status_code, _headers = gateway_update_tls_cert_with_http_info(body, opts)
|
|
8911
|
+
data
|
|
8912
|
+
end
|
|
8913
|
+
|
|
8914
|
+
# @param body [GatewayUpdateTlsCert]
|
|
8915
|
+
# @param [Hash] opts the optional parameters
|
|
8916
|
+
# @return [Array<(GatewayUpdateTlsCertOutput, Integer, Hash)>] GatewayUpdateTlsCertOutput data, response status code and response headers
|
|
8917
|
+
def gateway_update_tls_cert_with_http_info(body, opts = {})
|
|
8918
|
+
if @api_client.config.debugging
|
|
8919
|
+
@api_client.config.logger.debug 'Calling API: V2Api.gateway_update_tls_cert ...'
|
|
8920
|
+
end
|
|
8921
|
+
# verify the required parameter 'body' is set
|
|
8922
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
8923
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling V2Api.gateway_update_tls_cert"
|
|
8924
|
+
end
|
|
8925
|
+
# resource path
|
|
8926
|
+
local_var_path = '/gateway-update-tls-cert'
|
|
8927
|
+
|
|
8928
|
+
# query parameters
|
|
8929
|
+
query_params = opts[:query_params] || {}
|
|
8930
|
+
|
|
8931
|
+
# header parameters
|
|
8932
|
+
header_params = opts[:header_params] || {}
|
|
8933
|
+
# HTTP header 'Accept' (if needed)
|
|
8934
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
8935
|
+
# HTTP header 'Content-Type'
|
|
8936
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
8937
|
+
if !content_type.nil?
|
|
8938
|
+
header_params['Content-Type'] = content_type
|
|
8939
|
+
end
|
|
8940
|
+
|
|
8941
|
+
# form parameters
|
|
8942
|
+
form_params = opts[:form_params] || {}
|
|
8943
|
+
|
|
8944
|
+
# http body (model)
|
|
8945
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
8946
|
+
|
|
8947
|
+
# return_type
|
|
8948
|
+
return_type = opts[:debug_return_type] || 'GatewayUpdateTlsCertOutput'
|
|
8949
|
+
|
|
8950
|
+
# auth_names
|
|
8951
|
+
auth_names = opts[:debug_auth_names] || []
|
|
8952
|
+
|
|
8953
|
+
new_options = opts.merge(
|
|
8954
|
+
:operation => :"V2Api.gateway_update_tls_cert",
|
|
8955
|
+
:header_params => header_params,
|
|
8956
|
+
:query_params => query_params,
|
|
8957
|
+
:form_params => form_params,
|
|
8958
|
+
:body => post_body,
|
|
8959
|
+
:auth_names => auth_names,
|
|
8960
|
+
:return_type => return_type
|
|
8961
|
+
)
|
|
8962
|
+
|
|
8963
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
8964
|
+
if @api_client.config.debugging
|
|
8965
|
+
@api_client.config.logger.debug "API called: V2Api#gateway_update_tls_cert\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
8966
|
+
end
|
|
8967
|
+
return data, status_code, headers
|
|
8968
|
+
end
|
|
8969
|
+
|
|
8714
8970
|
# @param body [GatewayUpdateTmpUsers]
|
|
8715
8971
|
# @param [Hash] opts the optional parameters
|
|
8716
8972
|
# @return [nil]
|
|
@@ -8956,6 +9212,70 @@ module Akeyless
|
|
|
8956
9212
|
return data, status_code, headers
|
|
8957
9213
|
end
|
|
8958
9214
|
|
|
9215
|
+
# @param body [GetCertificateValue]
|
|
9216
|
+
# @param [Hash] opts the optional parameters
|
|
9217
|
+
# @return [GetCertificateValueOutput]
|
|
9218
|
+
def get_certificate_value(body, opts = {})
|
|
9219
|
+
data, _status_code, _headers = get_certificate_value_with_http_info(body, opts)
|
|
9220
|
+
data
|
|
9221
|
+
end
|
|
9222
|
+
|
|
9223
|
+
# @param body [GetCertificateValue]
|
|
9224
|
+
# @param [Hash] opts the optional parameters
|
|
9225
|
+
# @return [Array<(GetCertificateValueOutput, Integer, Hash)>] GetCertificateValueOutput data, response status code and response headers
|
|
9226
|
+
def get_certificate_value_with_http_info(body, opts = {})
|
|
9227
|
+
if @api_client.config.debugging
|
|
9228
|
+
@api_client.config.logger.debug 'Calling API: V2Api.get_certificate_value ...'
|
|
9229
|
+
end
|
|
9230
|
+
# verify the required parameter 'body' is set
|
|
9231
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
9232
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling V2Api.get_certificate_value"
|
|
9233
|
+
end
|
|
9234
|
+
# resource path
|
|
9235
|
+
local_var_path = '/get-certificate-value'
|
|
9236
|
+
|
|
9237
|
+
# query parameters
|
|
9238
|
+
query_params = opts[:query_params] || {}
|
|
9239
|
+
|
|
9240
|
+
# header parameters
|
|
9241
|
+
header_params = opts[:header_params] || {}
|
|
9242
|
+
# HTTP header 'Accept' (if needed)
|
|
9243
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
9244
|
+
# HTTP header 'Content-Type'
|
|
9245
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
9246
|
+
if !content_type.nil?
|
|
9247
|
+
header_params['Content-Type'] = content_type
|
|
9248
|
+
end
|
|
9249
|
+
|
|
9250
|
+
# form parameters
|
|
9251
|
+
form_params = opts[:form_params] || {}
|
|
9252
|
+
|
|
9253
|
+
# http body (model)
|
|
9254
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
9255
|
+
|
|
9256
|
+
# return_type
|
|
9257
|
+
return_type = opts[:debug_return_type] || 'GetCertificateValueOutput'
|
|
9258
|
+
|
|
9259
|
+
# auth_names
|
|
9260
|
+
auth_names = opts[:debug_auth_names] || []
|
|
9261
|
+
|
|
9262
|
+
new_options = opts.merge(
|
|
9263
|
+
:operation => :"V2Api.get_certificate_value",
|
|
9264
|
+
:header_params => header_params,
|
|
9265
|
+
:query_params => query_params,
|
|
9266
|
+
:form_params => form_params,
|
|
9267
|
+
:body => post_body,
|
|
9268
|
+
:auth_names => auth_names,
|
|
9269
|
+
:return_type => return_type
|
|
9270
|
+
)
|
|
9271
|
+
|
|
9272
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
9273
|
+
if @api_client.config.debugging
|
|
9274
|
+
@api_client.config.logger.debug "API called: V2Api#get_certificate_value\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
9275
|
+
end
|
|
9276
|
+
return data, status_code, headers
|
|
9277
|
+
end
|
|
9278
|
+
|
|
8959
9279
|
# @param body [GetDynamicSecretValue]
|
|
8960
9280
|
# @param [Hash] opts the optional parameters
|
|
8961
9281
|
# @return [Hash<String, String>]
|
|
@@ -11705,6 +12025,70 @@ module Akeyless
|
|
|
11705
12025
|
return data, status_code, headers
|
|
11706
12026
|
end
|
|
11707
12027
|
|
|
12028
|
+
# @param body [SignGPG]
|
|
12029
|
+
# @param [Hash] opts the optional parameters
|
|
12030
|
+
# @return [SignGPGOutput]
|
|
12031
|
+
def sign_gpg(body, opts = {})
|
|
12032
|
+
data, _status_code, _headers = sign_gpg_with_http_info(body, opts)
|
|
12033
|
+
data
|
|
12034
|
+
end
|
|
12035
|
+
|
|
12036
|
+
# @param body [SignGPG]
|
|
12037
|
+
# @param [Hash] opts the optional parameters
|
|
12038
|
+
# @return [Array<(SignGPGOutput, Integer, Hash)>] SignGPGOutput data, response status code and response headers
|
|
12039
|
+
def sign_gpg_with_http_info(body, opts = {})
|
|
12040
|
+
if @api_client.config.debugging
|
|
12041
|
+
@api_client.config.logger.debug 'Calling API: V2Api.sign_gpg ...'
|
|
12042
|
+
end
|
|
12043
|
+
# verify the required parameter 'body' is set
|
|
12044
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
12045
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling V2Api.sign_gpg"
|
|
12046
|
+
end
|
|
12047
|
+
# resource path
|
|
12048
|
+
local_var_path = '/sign-gpg'
|
|
12049
|
+
|
|
12050
|
+
# query parameters
|
|
12051
|
+
query_params = opts[:query_params] || {}
|
|
12052
|
+
|
|
12053
|
+
# header parameters
|
|
12054
|
+
header_params = opts[:header_params] || {}
|
|
12055
|
+
# HTTP header 'Accept' (if needed)
|
|
12056
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
12057
|
+
# HTTP header 'Content-Type'
|
|
12058
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
12059
|
+
if !content_type.nil?
|
|
12060
|
+
header_params['Content-Type'] = content_type
|
|
12061
|
+
end
|
|
12062
|
+
|
|
12063
|
+
# form parameters
|
|
12064
|
+
form_params = opts[:form_params] || {}
|
|
12065
|
+
|
|
12066
|
+
# http body (model)
|
|
12067
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
12068
|
+
|
|
12069
|
+
# return_type
|
|
12070
|
+
return_type = opts[:debug_return_type] || 'SignGPGOutput'
|
|
12071
|
+
|
|
12072
|
+
# auth_names
|
|
12073
|
+
auth_names = opts[:debug_auth_names] || []
|
|
12074
|
+
|
|
12075
|
+
new_options = opts.merge(
|
|
12076
|
+
:operation => :"V2Api.sign_gpg",
|
|
12077
|
+
:header_params => header_params,
|
|
12078
|
+
:query_params => query_params,
|
|
12079
|
+
:form_params => form_params,
|
|
12080
|
+
:body => post_body,
|
|
12081
|
+
:auth_names => auth_names,
|
|
12082
|
+
:return_type => return_type
|
|
12083
|
+
)
|
|
12084
|
+
|
|
12085
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
12086
|
+
if @api_client.config.debugging
|
|
12087
|
+
@api_client.config.logger.debug "API called: V2Api#sign_gpg\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
12088
|
+
end
|
|
12089
|
+
return data, status_code, headers
|
|
12090
|
+
end
|
|
12091
|
+
|
|
11708
12092
|
# @param body [SignJWTWithClassicKey]
|
|
11709
12093
|
# @param [Hash] opts the optional parameters
|
|
11710
12094
|
# @return [SignJWTOutput]
|
|
@@ -13433,6 +13817,70 @@ module Akeyless
|
|
|
13433
13817
|
return data, status_code, headers
|
|
13434
13818
|
end
|
|
13435
13819
|
|
|
13820
|
+
# @param body [UpdateCertificateValue]
|
|
13821
|
+
# @param [Hash] opts the optional parameters
|
|
13822
|
+
# @return [UpdateCertificateOutput]
|
|
13823
|
+
def update_certificate_value(body, opts = {})
|
|
13824
|
+
data, _status_code, _headers = update_certificate_value_with_http_info(body, opts)
|
|
13825
|
+
data
|
|
13826
|
+
end
|
|
13827
|
+
|
|
13828
|
+
# @param body [UpdateCertificateValue]
|
|
13829
|
+
# @param [Hash] opts the optional parameters
|
|
13830
|
+
# @return [Array<(UpdateCertificateOutput, Integer, Hash)>] UpdateCertificateOutput data, response status code and response headers
|
|
13831
|
+
def update_certificate_value_with_http_info(body, opts = {})
|
|
13832
|
+
if @api_client.config.debugging
|
|
13833
|
+
@api_client.config.logger.debug 'Calling API: V2Api.update_certificate_value ...'
|
|
13834
|
+
end
|
|
13835
|
+
# verify the required parameter 'body' is set
|
|
13836
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
13837
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling V2Api.update_certificate_value"
|
|
13838
|
+
end
|
|
13839
|
+
# resource path
|
|
13840
|
+
local_var_path = '/update-certificate-value'
|
|
13841
|
+
|
|
13842
|
+
# query parameters
|
|
13843
|
+
query_params = opts[:query_params] || {}
|
|
13844
|
+
|
|
13845
|
+
# header parameters
|
|
13846
|
+
header_params = opts[:header_params] || {}
|
|
13847
|
+
# HTTP header 'Accept' (if needed)
|
|
13848
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
13849
|
+
# HTTP header 'Content-Type'
|
|
13850
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
13851
|
+
if !content_type.nil?
|
|
13852
|
+
header_params['Content-Type'] = content_type
|
|
13853
|
+
end
|
|
13854
|
+
|
|
13855
|
+
# form parameters
|
|
13856
|
+
form_params = opts[:form_params] || {}
|
|
13857
|
+
|
|
13858
|
+
# http body (model)
|
|
13859
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
13860
|
+
|
|
13861
|
+
# return_type
|
|
13862
|
+
return_type = opts[:debug_return_type] || 'UpdateCertificateOutput'
|
|
13863
|
+
|
|
13864
|
+
# auth_names
|
|
13865
|
+
auth_names = opts[:debug_auth_names] || []
|
|
13866
|
+
|
|
13867
|
+
new_options = opts.merge(
|
|
13868
|
+
:operation => :"V2Api.update_certificate_value",
|
|
13869
|
+
:header_params => header_params,
|
|
13870
|
+
:query_params => query_params,
|
|
13871
|
+
:form_params => form_params,
|
|
13872
|
+
:body => post_body,
|
|
13873
|
+
:auth_names => auth_names,
|
|
13874
|
+
:return_type => return_type
|
|
13875
|
+
)
|
|
13876
|
+
|
|
13877
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
13878
|
+
if @api_client.config.debugging
|
|
13879
|
+
@api_client.config.logger.debug "API called: V2Api#update_certificate_value\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
13880
|
+
end
|
|
13881
|
+
return data, status_code, headers
|
|
13882
|
+
end
|
|
13883
|
+
|
|
13436
13884
|
# @param body [UpdateDBTarget]
|
|
13437
13885
|
# @param [Hash] opts the optional parameters
|
|
13438
13886
|
# @return [UpdateDBTargetOutput]
|
|
@@ -15342,6 +15790,70 @@ module Akeyless
|
|
|
15342
15790
|
return data, status_code, headers
|
|
15343
15791
|
end
|
|
15344
15792
|
|
|
15793
|
+
# @param body [VerifyGPG]
|
|
15794
|
+
# @param [Hash] opts the optional parameters
|
|
15795
|
+
# @return [Object]
|
|
15796
|
+
def verify_gpg(body, opts = {})
|
|
15797
|
+
data, _status_code, _headers = verify_gpg_with_http_info(body, opts)
|
|
15798
|
+
data
|
|
15799
|
+
end
|
|
15800
|
+
|
|
15801
|
+
# @param body [VerifyGPG]
|
|
15802
|
+
# @param [Hash] opts the optional parameters
|
|
15803
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
15804
|
+
def verify_gpg_with_http_info(body, opts = {})
|
|
15805
|
+
if @api_client.config.debugging
|
|
15806
|
+
@api_client.config.logger.debug 'Calling API: V2Api.verify_gpg ...'
|
|
15807
|
+
end
|
|
15808
|
+
# verify the required parameter 'body' is set
|
|
15809
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
15810
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling V2Api.verify_gpg"
|
|
15811
|
+
end
|
|
15812
|
+
# resource path
|
|
15813
|
+
local_var_path = '/verify-gpg'
|
|
15814
|
+
|
|
15815
|
+
# query parameters
|
|
15816
|
+
query_params = opts[:query_params] || {}
|
|
15817
|
+
|
|
15818
|
+
# header parameters
|
|
15819
|
+
header_params = opts[:header_params] || {}
|
|
15820
|
+
# HTTP header 'Accept' (if needed)
|
|
15821
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
15822
|
+
# HTTP header 'Content-Type'
|
|
15823
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
15824
|
+
if !content_type.nil?
|
|
15825
|
+
header_params['Content-Type'] = content_type
|
|
15826
|
+
end
|
|
15827
|
+
|
|
15828
|
+
# form parameters
|
|
15829
|
+
form_params = opts[:form_params] || {}
|
|
15830
|
+
|
|
15831
|
+
# http body (model)
|
|
15832
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
15833
|
+
|
|
15834
|
+
# return_type
|
|
15835
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
15836
|
+
|
|
15837
|
+
# auth_names
|
|
15838
|
+
auth_names = opts[:debug_auth_names] || []
|
|
15839
|
+
|
|
15840
|
+
new_options = opts.merge(
|
|
15841
|
+
:operation => :"V2Api.verify_gpg",
|
|
15842
|
+
:header_params => header_params,
|
|
15843
|
+
:query_params => query_params,
|
|
15844
|
+
:form_params => form_params,
|
|
15845
|
+
:body => post_body,
|
|
15846
|
+
:auth_names => auth_names,
|
|
15847
|
+
:return_type => return_type
|
|
15848
|
+
)
|
|
15849
|
+
|
|
15850
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
15851
|
+
if @api_client.config.debugging
|
|
15852
|
+
@api_client.config.logger.debug "API called: V2Api#verify_gpg\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
15853
|
+
end
|
|
15854
|
+
return data, status_code, headers
|
|
15855
|
+
end
|
|
15856
|
+
|
|
15345
15857
|
# @param body [VerifyJWTWithClassicKey]
|
|
15346
15858
|
# @param [Hash] opts the optional parameters
|
|
15347
15859
|
# @return [VerifyJWTOutput]
|
|
@@ -16,6 +16,9 @@ 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
|
+
# Automatically disable previous key version (required for azure targets)
|
|
20
|
+
attr_accessor :disable_previous_key_version
|
|
21
|
+
|
|
19
22
|
# Set output format to JSON
|
|
20
23
|
attr_accessor :json
|
|
21
24
|
|
|
@@ -64,6 +67,7 @@ module Akeyless
|
|
|
64
67
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
65
68
|
def self.attribute_map
|
|
66
69
|
{
|
|
70
|
+
:'disable_previous_key_version' => :'disable-previous-key-version',
|
|
67
71
|
:'json' => :'json',
|
|
68
72
|
:'key_operations' => :'key-operations',
|
|
69
73
|
:'keyring_name' => :'keyring-name',
|
|
@@ -90,6 +94,7 @@ module Akeyless
|
|
|
90
94
|
# Attribute type mapping.
|
|
91
95
|
def self.openapi_types
|
|
92
96
|
{
|
|
97
|
+
:'disable_previous_key_version' => :'Boolean',
|
|
93
98
|
:'json' => :'Boolean',
|
|
94
99
|
:'key_operations' => :'Array<String>',
|
|
95
100
|
:'keyring_name' => :'String',
|
|
@@ -129,6 +134,10 @@ module Akeyless
|
|
|
129
134
|
h[k.to_sym] = v
|
|
130
135
|
}
|
|
131
136
|
|
|
137
|
+
if attributes.key?(:'disable_previous_key_version')
|
|
138
|
+
self.disable_previous_key_version = attributes[:'disable_previous_key_version']
|
|
139
|
+
end
|
|
140
|
+
|
|
132
141
|
if attributes.key?(:'json')
|
|
133
142
|
self.json = attributes[:'json']
|
|
134
143
|
end
|
|
@@ -224,6 +233,7 @@ module Akeyless
|
|
|
224
233
|
def ==(o)
|
|
225
234
|
return true if self.equal?(o)
|
|
226
235
|
self.class == o.class &&
|
|
236
|
+
disable_previous_key_version == o.disable_previous_key_version &&
|
|
227
237
|
json == o.json &&
|
|
228
238
|
key_operations == o.key_operations &&
|
|
229
239
|
keyring_name == o.keyring_name &&
|
|
@@ -250,7 +260,7 @@ module Akeyless
|
|
|
250
260
|
# Calculates hash code according to all attributes.
|
|
251
261
|
# @return [Integer] Hash code
|
|
252
262
|
def hash
|
|
253
|
-
[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
|
|
263
|
+
[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
|
|
254
264
|
end
|
|
255
265
|
|
|
256
266
|
# Builds the object from hash
|